]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
Silence warning in gcc.dg/lto/20091013-1_0.c
[thirdparty/gcc.git] / configure
CommitLineData
671aa708 1#! /bin/sh
671aa708 2# Guess values for system-dependent variables and create Makefiles.
22e05272
JM
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
5213506e 7#
671aa708
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
5213506e
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
1c710c3c 14
5213506e
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
18 emulate sh
19 NULLCMD=:
5213506e 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
1c710c3c 31fi
1c710c3c 32
5213506e
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
1c710c3c
DJ
79fi
80
81
5213506e
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
22e05272 90as_myself=
5213506e
RW
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
1c710c3c
DJ
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
5213506e
RW
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
22e05272
JM
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
5213506e
RW
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
22e05272
JM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
5213506e
RW
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
87264276
PB
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
5213506e
RW
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1c710c3c 211do
5213506e
RW
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
22e05272
JM
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
5213506e
RW
258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
1c710c3c 266 else
5213506e
RW
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
1c710c3c 271 fi
5213506e
RW
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
1c710c3c 301
5213506e
RW
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e
RW
356
357
358} # as_fn_mkdir_p
22e05272
JM
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
5213506e
RW
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
22e05272
JM
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
5213506e
RW
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 407# script with STATUS, using 1 if that was 0.
5213506e
RW
408as_fn_error ()
409{
22e05272
JM
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5213506e 414 fi
22e05272 415 $as_echo "$as_me: error: $2" >&2
5213506e
RW
416 as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
421 as_expr=expr
422else
423 as_expr=false
424fi
425
5213506e 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
427 as_basename=basename
428else
429 as_basename=false
430fi
431
5213506e
RW
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
1c710c3c 437
5213506e 438as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
5213506e
RW
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
1c710c3c 456
2aeb72e9
DD
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
11a67599 463
1c710c3c 464
5213506e
RW
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
1c710c3c 474 sed '
5213506e
RW
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
1c710c3c 479 N
5213506e
RW
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1c710c3c 482 t loop
5213506e 483 s/-\n.*//
1c710c3c 484 ' >$as_me.lineno &&
5213506e
RW
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1c710c3c 487
22e05272
JM
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
1c710c3c
DJ
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
5213506e
RW
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
1c710c3c
DJ
496 # Exit status is that of the last command.
497 exit
498}
499
5213506e
RW
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509*)
510 ECHO_N='-n';;
1c710c3c
DJ
511esac
512
5213506e
RW
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
1c710c3c 516else
5213506e
RW
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
1c710c3c 519fi
5213506e
RW
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 522 as_ln_s='ln -s'
5213506e
RW
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 526 # In both cases, we have to default to `cp -pR'.
5213506e 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 528 as_ln_s='cp -pR'
5213506e
RW
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
22e05272 532 as_ln_s='cp -pR'
2aeb72e9 533 fi
1c710c3c 534else
22e05272 535 as_ln_s='cp -pR'
1c710c3c 536fi
5213506e
RW
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
1c710c3c
DJ
539
540if mkdir -p . 2>/dev/null; then
5213506e 541 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
22e05272
JM
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
0b0dc272 549
1c710c3c
DJ
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
22e05272
JM
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
1c710c3c
DJ
559
560# Name of the host.
22e05272 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1c710c3c
DJ
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
1c710c3c
DJ
565#
566# Initializations.
567#
671aa708 568ac_default_prefix=/usr/local
5213506e 569ac_clean_files=
1c710c3c 570ac_config_libobj_dir=.
5213506e 571LIBOBJS=
1c710c3c
DJ
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
2aeb72e9 576
1c710c3c
DJ
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
5213506e 583PACKAGE_URL=
1c710c3c
DJ
584
585ac_unique_file="move-if-change"
5213506e
RW
586enable_option_checking=no
587ac_subst_vars='LTLIBOBJS
588LIBOBJS
589compare_exclusions
590stage2_werror_flag
591stage1_checking
592stage1_cflags
593MAINT
594MAINTAINER_MODE_FALSE
595MAINTAINER_MODE_TRUE
596COMPILER_NM_FOR_TARGET
597COMPILER_LD_FOR_TARGET
598COMPILER_AS_FOR_TARGET
599FLAGS_FOR_TARGET
600RAW_CXX_FOR_TARGET
601WINDMC_FOR_TARGET
602WINDRES_FOR_TARGET
603STRIP_FOR_TARGET
e7a82751 604READELF_FOR_TARGET
5213506e 605RANLIB_FOR_TARGET
e4a9a572 606OTOOL_FOR_TARGET
5213506e 607OBJDUMP_FOR_TARGET
9bccfdf5 608OBJCOPY_FOR_TARGET
5213506e
RW
609NM_FOR_TARGET
610LIPO_FOR_TARGET
611LD_FOR_TARGET
3b5e8ee4 612DSYMUTIL_FOR_TARGET
5213506e
RW
613DLLTOOL_FOR_TARGET
614AS_FOR_TARGET
615AR_FOR_TARGET
1eee94d3 616GM2_FOR_TARGET
b4c522fa 617GDC_FOR_TARGET
632e2a07 618GOC_FOR_TARGET
5213506e 619GFORTRAN_FOR_TARGET
5213506e
RW
620GCC_FOR_TARGET
621CXX_FOR_TARGET
622CC_FOR_TARGET
5fee5ec3 623GDCFLAGS
e7a82751 624READELF
e4a9a572 625OTOOL
5213506e
RW
626OBJDUMP
627OBJCOPY
628WINDMC
629WINDRES
630STRIP
631RANLIB
632NM
633LIPO
634LD
3b5e8ee4 635DSYMUTIL
5213506e
RW
636DLLTOOL
637AS
638AR
639RUNTEST
640EXPECT
641MAKEINFO
642FLEX
643LEX
644M4
645BISON
646YACC
5213506e
RW
647WINDRES_FOR_BUILD
648WINDMC_FOR_BUILD
649RANLIB_FOR_BUILD
650NM_FOR_BUILD
651LD_FOR_BUILD
652LDFLAGS_FOR_BUILD
b4c522fa 653GDC_FOR_BUILD
632e2a07 654GOC_FOR_BUILD
5213506e 655GFORTRAN_FOR_BUILD
3b5e8ee4 656DSYMUTIL_FOR_BUILD
5213506e
RW
657DLLTOOL_FOR_BUILD
658CXX_FOR_BUILD
659CXXFLAGS_FOR_BUILD
84401ce5
RP
660CPPFLAGS_FOR_BUILD
661CPP_FOR_BUILD
5213506e
RW
662CFLAGS_FOR_BUILD
663CC_FOR_BUILD
664AS_FOR_BUILD
665AR_FOR_BUILD
aae29963 666target_configdirs
5213506e 667configdirs
5213506e 668build_configdirs
5213506e
RW
669INSTALL_GDB_TK
670GDB_TK
671CONFIGURE_GDB_TK
672build_tooldir
673tooldir
674GCC_SHLIB_SUBDIR
675RPATH_ENVVAR
ffedf511
RW
676target_configargs
677host_configargs
678build_configargs
e12c4094 679BUILD_CONFIG
6f57bdf6 680LDFLAGS_FOR_TARGET
5213506e
RW
681CXXFLAGS_FOR_TARGET
682CFLAGS_FOR_TARGET
683DEBUG_PREFIX_CFLAGS_FOR_TARGET
684SYSROOT_CFLAGS_FOR_TARGET
3c36aa6b 685get_gcc_base_ver
1c01ebf6 686extra_host_zlib_configure_flags
d7f09764 687extra_host_libiberty_configure_flags
fca38047 688stage1_languages
05048fc2 689host_libs_picflag
b6cb10af 690PICFLAG
cdfee50a 691host_shared
b6cb10af 692host_pie
45b3824d
TS
693extra_linker_plugin_flags
694extra_linker_plugin_configure_flags
33ad93b9 695islinc
eae1a5d4 696isllibs
5213506e 697poststage1_ldflags
ed2eaa9f 698poststage1_libs
5213506e 699stage1_ldflags
0b21f5d3 700stage1_libs
0ff2d841 701extra_isl_gmp_configure_flags
5213506e
RW
702extra_mpc_mpfr_configure_flags
703extra_mpc_gmp_configure_flags
704extra_mpfr_configure_flags
705gmpinc
706gmplibs
4a5e71f2
L
707PGO_BUILD_LTO_CFLAGS
708PGO_BUILD_USE_CFLAGS
709PGO_BUILD_GEN_CFLAGS
7ffcf5d6 710HAVE_CXX11_FOR_BUILD
ffac9597 711HAVE_CXX11
5213506e 712do_compare
5fee5ec3 713GDC
5213506e
RW
714GNATMAKE
715GNATBIND
716ac_ct_CXX
717CXXFLAGS
718CXX
719OBJEXT
720EXEEXT
721ac_ct_CC
722CPPFLAGS
723LDFLAGS
724CFLAGS
725CC
726target_subdir
727host_subdir
728build_subdir
729build_libsubdir
87264276
PB
730AWK
731SED
5213506e
RW
732LN_S
733LN
734INSTALL_DATA
735INSTALL_SCRIPT
736INSTALL_PROGRAM
737target_os
738target_vendor
739target_cpu
740target
741host_os
742host_vendor
743host_cpu
744host
745target_noncanonical
746host_noncanonical
747build_noncanonical
748build_os
749build_vendor
750build_cpu
751build
752TOPLEVEL_CONFIGURE_ARGUMENTS
753target_alias
754host_alias
755build_alias
756LIBS
757ECHO_T
758ECHO_N
759ECHO_C
760DEFS
761mandir
762localedir
763libdir
764psdir
765pdfdir
766dvidir
767htmldir
768infodir
769docdir
770oldincludedir
771includedir
772localstatedir
773sharedstatedir
774sysconfdir
775datadir
776datarootdir
777libexecdir
778sbindir
779bindir
780program_transform_name
781prefix
782exec_prefix
783PACKAGE_URL
784PACKAGE_BUGREPORT
785PACKAGE_STRING
786PACKAGE_VERSION
787PACKAGE_TARNAME
788PACKAGE_NAME
789PATH_SEPARATOR
790SHELL'
791ac_subst_files='serialization_dependencies
792host_makefile_frag
793target_makefile_frag
794alphaieee_frag
795ospace_frag'
796ac_user_opts='
797enable_option_checking
798with_build_libsubdir
a05c2c75 799with_system_zlib
85c64bbe
BS
800enable_as_accelerator_for
801enable_offload_targets
fe5bfa67 802enable_offload_defaulted
5213506e 803enable_gold
21539e2e 804enable_ld
78edb32f 805enable_compressed_debug_sections
87e6d9dc
TB
806enable_libquadmath
807enable_libquadmath_support
5213506e 808enable_libada
1eee94d3 809enable_libgm2
5213506e 810enable_libssp
1873ec0c 811enable_libstdcxx
ff3ac0f4 812enable_bootstrap
4a5e71f2 813enable_pgo_build
5213506e
RW
814with_mpc
815with_mpc_include
816with_mpc_lib
5213506e
RW
817with_mpfr
818with_mpfr_include
819with_mpfr_lib
5213506e
RW
820with_gmp
821with_gmp_include
822with_gmp_lib
5213506e 823with_stage1_libs
aac9103b 824with_static_standard_libraries
0b21f5d3 825with_stage1_ldflags
5213506e 826with_boot_libs
ed2eaa9f 827with_boot_ldflags
33ad93b9
RG
828with_isl
829with_isl_include
830with_isl_lib
831enable_isl_version_check
d7f09764 832enable_lto
45b3824d
TS
833enable_linker_plugin_configure_flags
834enable_linker_plugin_flags
b6cb10af 835enable_host_pie
cdfee50a 836enable_host_shared
5213506e 837enable_stage1_languages
43c40f3e 838enable_objc_gc
114bf3f1
MK
839with_target_bdw_gc
840with_target_bdw_gc_include
841with_target_bdw_gc_lib
3c36aa6b 842with_gcc_major_version_only
5213506e
RW
843with_build_sysroot
844with_debug_prefix_map
5646b7b9 845with_build_config
beeda1d9 846enable_vtable_verify
5213506e
RW
847enable_serial_configure
848with_build_time_tools
849enable_maintainer_mode
850enable_stage1_checking
851enable_werror
5213506e
RW
852'
853 ac_precious_vars='build_alias
854host_alias
855target_alias
856CC
857CFLAGS
858LDFLAGS
859LIBS
860CPPFLAGS
861CXX
862CXXFLAGS
863CCC
ffedf511
RW
864build_configargs
865host_configargs
866target_configargs
5213506e
RW
867AR
868AS
869DLLTOOL
3b5e8ee4 870DSYMUTIL
5213506e
RW
871LD
872LIPO
873NM
874RANLIB
875STRIP
876WINDRES
877WINDMC
878OBJCOPY
879OBJDUMP
e4a9a572 880OTOOL
e7a82751 881READELF
5213506e
RW
882CC_FOR_TARGET
883CXX_FOR_TARGET
884GCC_FOR_TARGET
5213506e 885GFORTRAN_FOR_TARGET
632e2a07 886GOC_FOR_TARGET
b4c522fa 887GDC_FOR_TARGET
1eee94d3 888GM2_FOR_TARGET
5213506e
RW
889AR_FOR_TARGET
890AS_FOR_TARGET
891DLLTOOL_FOR_TARGET
3b5e8ee4 892DSYMUTIL_FOR_TARGET
5213506e
RW
893LD_FOR_TARGET
894LIPO_FOR_TARGET
895NM_FOR_TARGET
9bccfdf5 896OBJCOPY_FOR_TARGET
5213506e 897OBJDUMP_FOR_TARGET
e4a9a572 898OTOOL_FOR_TARGET
5213506e 899RANLIB_FOR_TARGET
e7a82751 900READELF_FOR_TARGET
5213506e
RW
901STRIP_FOR_TARGET
902WINDRES_FOR_TARGET
903WINDMC_FOR_TARGET'
904
671aa708
NN
905
906# Initialize some variables set by options.
1c710c3c
DJ
907ac_init_help=
908ac_init_version=false
5213506e
RW
909ac_unrecognized_opts=
910ac_unrecognized_sep=
671aa708
NN
911# The variables have the same names as the options, with
912# dashes changed to underlines.
1c710c3c 913cache_file=/dev/null
671aa708 914exec_prefix=NONE
671aa708 915no_create=
671aa708
NN
916no_recursion=
917prefix=NONE
918program_prefix=NONE
919program_suffix=NONE
920program_transform_name=s,x,x,
921silent=
922site=
923srcdir=
671aa708
NN
924verbose=
925x_includes=NONE
926x_libraries=NONE
1c710c3c
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.
5213506e 933# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
934bindir='${exec_prefix}/bin'
935sbindir='${exec_prefix}/sbin'
936libexecdir='${exec_prefix}/libexec'
5213506e
RW
937datarootdir='${prefix}/share'
938datadir='${datarootdir}'
671aa708
NN
939sysconfdir='${prefix}/etc'
940sharedstatedir='${prefix}/com'
941localstatedir='${prefix}/var'
671aa708
NN
942includedir='${prefix}/include'
943oldincludedir='/usr/include'
5213506e
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'
79c06341 953
671aa708 954ac_prev=
5213506e 955ac_dashdash=
671aa708
NN
956for ac_option
957do
671aa708
NN
958 # If the previous option needs an argument, assign it.
959 if test -n "$ac_prev"; then
5213506e 960 eval $ac_prev=\$ac_option
671aa708
NN
961 ac_prev=
962 continue
963 fi
79c06341 964
5213506e 965 case $ac_option in
22e05272
JM
966 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
967 *=) ac_optarg= ;;
968 *) ac_optarg=yes ;;
5213506e 969 esac
671aa708
NN
970
971 # Accept the important Cygnus configure options, so we can diagnose typos.
972
5213506e
RW
973 case $ac_dashdash$ac_option in
974 --)
975 ac_dashdash=yes ;;
671aa708
NN
976
977 -bindir | --bindir | --bindi | --bind | --bin | --bi)
978 ac_prev=bindir ;;
979 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 980 bindir=$ac_optarg ;;
671aa708
NN
981
982 -build | --build | --buil | --bui | --bu)
1c710c3c 983 ac_prev=build_alias ;;
671aa708 984 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 985 build_alias=$ac_optarg ;;
671aa708
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=*)
1c710c3c
DJ
992 cache_file=$ac_optarg ;;
993
994 --config-cache | -C)
995 cache_file=config.cache ;;
671aa708 996
5213506e 997 -datadir | --datadir | --datadi | --datad)
671aa708 998 ac_prev=datadir ;;
5213506e 999 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 1000 datadir=$ac_optarg ;;
671aa708 1001
5213506e
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
671aa708 1009 -disable-* | --disable-*)
5213506e 1010 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 1011 # Reject names that are not valid shell variable names.
5213506e 1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1013 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
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 ;;
671aa708
NN
1034
1035 -enable-* | --enable-*)
5213506e 1036 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 1037 # Reject names that are not valid shell variable names.
5213506e 1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1039 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
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=', ';;
2aeb72e9 1048 esac
5213506e 1049 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
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=*)
1c710c3c 1058 exec_prefix=$ac_optarg ;;
671aa708
NN
1059
1060 -gas | --gas | --ga | --g)
1061 # Obsolete; use --with-gas.
1062 with_gas=yes ;;
1063
1c710c3c
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 ;;
671aa708
NN
1070
1071 -host | --host | --hos | --ho)
1c710c3c 1072 ac_prev=host_alias ;;
671aa708 1073 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1074 host_alias=$ac_optarg ;;
671aa708 1075
5213506e
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
671aa708
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=*)
1c710c3c 1087 includedir=$ac_optarg ;;
671aa708
NN
1088
1089 -infodir | --infodir | --infodi | --infod | --info | --inf)
1090 ac_prev=infodir ;;
1091 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1092 infodir=$ac_optarg ;;
671aa708
NN
1093
1094 -libdir | --libdir | --libdi | --libd)
1095 ac_prev=libdir ;;
1096 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1097 libdir=$ac_optarg ;;
671aa708
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=*)
1c710c3c 1104 libexecdir=$ac_optarg ;;
671aa708 1105
5213506e
RW
1106 -localedir | --localedir | --localedi | --localed | --locale)
1107 ac_prev=localedir ;;
1108 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1109 localedir=$ac_optarg ;;
1110
671aa708 1111 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1112 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1113 ac_prev=localstatedir ;;
1114 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1115 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1116 localstatedir=$ac_optarg ;;
671aa708
NN
1117
1118 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1119 ac_prev=mandir ;;
1120 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1121 mandir=$ac_optarg ;;
671aa708
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 \
1c710c3c 1128 | --no-cr | --no-c | -n)
671aa708
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=*)
1c710c3c 1142 oldincludedir=$ac_optarg ;;
671aa708
NN
1143
1144 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1145 ac_prev=prefix ;;
1146 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1147 prefix=$ac_optarg ;;
671aa708
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=*)
1c710c3c 1154 program_prefix=$ac_optarg ;;
671aa708
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=*)
1c710c3c 1161 program_suffix=$ac_optarg ;;
671aa708
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=*)
1c710c3c 1178 program_transform_name=$ac_optarg ;;
671aa708 1179
5213506e
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
671aa708
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=*)
1c710c3c 1198 sbindir=$ac_optarg ;;
671aa708
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=*)
1c710c3c 1209 sharedstatedir=$ac_optarg ;;
671aa708
NN
1210
1211 -site | --site | --sit)
1212 ac_prev=site ;;
1213 -site=* | --site=* | --sit=*)
1c710c3c 1214 site=$ac_optarg ;;
671aa708
NN
1215
1216 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1217 ac_prev=srcdir ;;
1218 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1219 srcdir=$ac_optarg ;;
671aa708
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=*)
1c710c3c 1226 sysconfdir=$ac_optarg ;;
671aa708
NN
1227
1228 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1229 ac_prev=target_alias ;;
671aa708 1230 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1231 target_alias=$ac_optarg ;;
671aa708
NN
1232
1233 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1234 verbose=yes ;;
1235
1c710c3c
DJ
1236 -version | --version | --versio | --versi | --vers | -V)
1237 ac_init_version=: ;;
671aa708
NN
1238
1239 -with-* | --with-*)
5213506e 1240 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1241 # Reject names that are not valid shell variable names.
5213506e 1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1243 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
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=', ';;
2aeb72e9 1252 esac
5213506e 1253 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1254
1255 -without-* | --without-*)
5213506e 1256 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1257 # Reject names that are not valid shell variable names.
5213506e 1258 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1259 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
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 ;;
671aa708
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=*)
1c710c3c 1280 x_includes=$ac_optarg ;;
671aa708
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=*)
1c710c3c 1287 x_libraries=$ac_optarg ;;
671aa708 1288
22e05272
JM
1289 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1290Try \`$0 --help' for more information"
671aa708
NN
1291 ;;
1292
1c710c3c
DJ
1293 *=*)
1294 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1295 # Reject names that are not valid shell variable names.
5213506e
RW
1296 case $ac_envvar in #(
1297 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1298 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
5213506e
RW
1299 esac
1300 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1301 export $ac_envvar ;;
1302
671aa708 1303 *)
1c710c3c 1304 # FIXME: should be removed in autoconf 3.0.
5213506e 1305 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1306 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1307 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1308 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
671aa708
NN
1309 ;;
1310
1311 esac
1312done
1313
1314if test -n "$ac_prev"; then
1c710c3c 1315 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1316 as_fn_error $? "missing argument to $ac_option"
af71363e 1317fi
af71363e 1318
5213506e
RW
1319if test -n "$ac_unrecognized_opts"; then
1320 case $enable_option_checking in
1321 no) ;;
22e05272 1322 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
5213506e 1323 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1324 esac
5213506e 1325fi
2aeb72e9 1326
5213506e
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
2aeb72e9 1332do
5213506e
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.
2aeb72e9 1341 case $ac_val in
5213506e
RW
1342 [\\/$]* | ?:[\\/]* ) continue;;
1343 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1344 esac
22e05272 1345 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1346done
1347
1c710c3c
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
0b0dc272 1354
1c710c3c
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
1c710c3c
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
671aa708 1368
671aa708 1369
5213506e
RW
1370ac_pwd=`pwd` && test -n "$ac_pwd" &&
1371ac_ls_di=`ls -di .` &&
1372ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1373 as_fn_error $? "working directory cannot be determined"
5213506e 1374test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1375 as_fn_error $? "pwd does not report name of working directory"
5213506e
RW
1376
1377
671aa708
NN
1378# Find the source files, if location was not specified.
1379if test -z "$srcdir"; then
1380 ac_srcdir_defaulted=yes
5213506e
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'`
671aa708 1405 srcdir=$ac_confdir
5213506e 1406 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1407 srcdir=..
1408 fi
1409else
1410 ac_srcdir_defaulted=no
1411fi
5213506e
RW
1412if test ! -r "$srcdir/$ac_unique_file"; then
1413 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1414 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
5213506e
RW
1415fi
1416ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1417ac_abs_confdir=`(
22e05272 1418 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
5213506e
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
87841584
AM
1430case $srcdir in
1431 *" "*)
22e05272 1432 as_fn_error $? "path to source, $srcdir, contains spaces"
87841584
AM
1433 ;;
1434esac
ac9e6043
RW
1435ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1436
5213506e
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
1c710c3c
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
22e05272 1465 -q, --quiet, --silent do not print \`checking ...' messages
1c710c3c
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
1c710c3c
DJ
1471Installation directories:
1472 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1473 [$ac_default_prefix]
1c710c3c 1474 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1475 [PREFIX]
1c710c3c
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:
5213506e
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]
1c710c3c
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
1518fi
1519
1520if test -n "$ac_init_help"; then
1521
1522 cat <<\_ACEOF
1523
1524Optional Features:
5213506e 1525 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1526 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1527 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85c64bbe
BS
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
fe5bfa67
TB
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
21539e2e 1540 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1541 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
324402a0 1542 --enable-compressed-debug-sections={all,gas,gold,ld,none}
78edb32f
L
1543 Enable compressed debug sections for gas, gold or ld
1544 by default
87e6d9dc
TB
1545 --disable-libquadmath do not build libquadmath directory
1546 --disable-libquadmath-support
1547 disable libquadmath support for Fortran
30b74385 1548 --enable-libada build libada directory
1eee94d3 1549 --enable-libgm2 build libgm2 directory
30b74385 1550 --enable-libssp build libssp directory
1873ec0c 1551 --disable-libstdcxx do not build libstdc++-v3 directory
ff3ac0f4 1552 --enable-bootstrap enable bootstrapping [yes if native build]
4a5e71f2
L
1553 --enable-pgo-build[=lto]
1554 enable the PGO build
33ad93b9 1555 --disable-isl-version-check
560d18d3 1556 disable check for isl version
d7f09764 1557 --enable-lto enable link time optimization support
45b3824d
TS
1558 --enable-linker-plugin-configure-flags=FLAGS
1559 additional flags for configuring linker plugins
1560 [none]
1561 --enable-linker-plugin-flags=FLAGS
1562 additional flags for configuring and building linker
1563 plugins [none]
b6cb10af 1564 --enable-host-pie build position independent host executables
cdfee50a 1565 --enable-host-shared build host code as shared libraries
33e39b66
AS
1566 --enable-stage1-languages[=all]
1567 choose additional languages to build during stage1.
1568 Mostly useful for compiler development
43c40f3e
RO
1569 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1570 Objective-C runtime
318a4e6d 1571 --enable-vtable-verify Enable vtable verification feature
30b74385 1572 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1573 force sequential configuration of sub-packages for
1574 the host, target or build machine, or all
1575 sub-packages
1576 --enable-maintainer-mode
1577 enable make rules and dependencies not useful (and
1578 sometimes confusing) to the casual installer
1579 --enable-stage1-checking[=all]
1580 choose additional checking for stage1 of the
1581 compiler
1c710c3c
DJ
1582 --enable-werror enable -Werror in bootstrap stage2 and later
1583
1584Optional Packages:
1585 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1586 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1587 --with-build-libsubdir=DIR Directory where to find libraries for build system
a05c2c75 1588 --with-system-zlib use installed libz
33e39b66
AS
1589 --with-mpc=PATH specify prefix directory for installed MPC package.
1590 Equivalent to --with-mpc-include=PATH/include plus
1591 --with-mpc-lib=PATH/lib
1592 --with-mpc-include=PATH specify directory for installed MPC include files
1593 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385 1594 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1595 Equivalent to --with-mpfr-include=PATH/include plus
1596 --with-mpfr-lib=PATH/lib
1c710c3c 1597 --with-mpfr-include=PATH
30b74385
RW
1598 specify directory for installed MPFR include files
1599 --with-mpfr-lib=PATH specify directory for the installed MPFR library
33e39b66
AS
1600 --with-gmp=PATH specify prefix directory for the installed GMP
1601 package. Equivalent to
1602 --with-gmp-include=PATH/include plus
1603 --with-gmp-lib=PATH/lib
30b74385
RW
1604 --with-gmp-include=PATH specify directory for installed GMP include files
1605 --with-gmp-lib=PATH specify directory for the installed GMP library
0b21f5d3 1606 --with-stage1-libs=LIBS libraries for stage1
aac9103b
TT
1607 --with-static-standard-libraries
1608 use -static-libstdc++ and -static-libgcc
1609 (default=auto)
33e39b66
AS
1610 --with-stage1-ldflags=FLAGS
1611 linker flags for stage1
33e39b66
AS
1612 --with-boot-libs=LIBS libraries for stage2 and later
1613 --with-boot-ldflags=FLAGS
1614 linker flags for stage2 and later
e357a5e0 1615 --with-isl=PATH Specify prefix directory for the installed isl
33e39b66 1616 package. Equivalent to
33ad93b9
RG
1617 --with-isl-include=PATH/include plus
1618 --with-isl-lib=PATH/lib
560d18d3
AK
1619 --with-isl-include=PATH Specify directory for installed isl include files
1620 --with-isl-lib=PATH Specify the directory for the installed isl library
114bf3f1
MK
1621 --with-target-bdw-gc=PATHLIST
1622 specify prefix directory for installed bdw-gc
1623 package. Equivalent to
1624 --with-target-bdw-gc-include=PATH/include plus
1625 --with-target-bdw-gc-lib=PATH/lib
1626 --with-target-bdw-gc-include=PATHLIST
1627 specify directories for installed bdw-gc include
1628 files
1629 --with-target-bdw-gc-lib=PATHLIST
1630 specify directories for installed bdw-gc library
3c36aa6b
JJ
1631 --with-gcc-major-version-only
1632 use only GCC major number in filesystem paths
30b74385 1633 --with-build-sysroot=SYSROOT
1c710c3c 1634 use sysroot as the system root during the build
c8aea42c 1635 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1636 map A to B, C to D ... in debug information
1637 --with-build-config='NAME NAME2...'
1638 use config/NAME.mk build configuration
30b74385 1639 --with-build-time-tools=PATH
1c710c3c 1640 use given path to find target tools during the build
1c710c3c
DJ
1641
1642Some influential environment variables:
1643 CC C compiler command
1644 CFLAGS C compiler flags
1645 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1646 nonstandard directory <lib dir>
5213506e 1647 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1648 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
5213506e 1649 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1650 CXX C++ compiler command
1651 CXXFLAGS C++ compiler flags
ffedf511
RW
1652 build_configargs
1653 additional configure arguments for build directories
1654 host_configargs
1655 additional configure arguments for host directories
1656 target_configargs
1657 additional configure arguments for target directories
278a7a38
AO
1658 AR AR for the host
1659 AS AS for the host
1660 DLLTOOL DLLTOOL for the host
3b5e8ee4 1661 DSYMUTIL DSYMUTIL for the host
278a7a38
AO
1662 LD LD for the host
1663 LIPO LIPO for the host
1664 NM NM for the host
1665 RANLIB RANLIB for the host
1666 STRIP STRIP for the host
1667 WINDRES WINDRES for the host
901119ae 1668 WINDMC WINDMC for the host
278a7a38
AO
1669 OBJCOPY OBJCOPY for the host
1670 OBJDUMP OBJDUMP for the host
e4a9a572 1671 OTOOL OTOOL for the host
e7a82751 1672 READELF READELF for the host
278a7a38
AO
1673 CC_FOR_TARGET
1674 CC for the target
1675 CXX_FOR_TARGET
1676 CXX for the target
1677 GCC_FOR_TARGET
1678 GCC for the target
278a7a38
AO
1679 GFORTRAN_FOR_TARGET
1680 GFORTRAN for the target
632e2a07
ILT
1681 GOC_FOR_TARGET
1682 GOC for the target
b4c522fa
IB
1683 GDC_FOR_TARGET
1684 GDC for the target
1eee94d3
GM
1685 GM2_FOR_TARGET
1686 GM2 for the target
278a7a38
AO
1687 AR_FOR_TARGET
1688 AR for the target
1689 AS_FOR_TARGET
1690 AS for the target
1691 DLLTOOL_FOR_TARGET
1692 DLLTOOL for the target
3b5e8ee4
IS
1693 DSYMUTIL_FOR_TARGET
1694 DSYMUTIL for the target
278a7a38
AO
1695 LD_FOR_TARGET
1696 LD for the target
1697 LIPO_FOR_TARGET
1698 LIPO for the target
1699 NM_FOR_TARGET
1700 NM for the target
9bccfdf5
AP
1701 OBJCOPY_FOR_TARGET
1702 OBJCOPY for the target
278a7a38
AO
1703 OBJDUMP_FOR_TARGET
1704 OBJDUMP for the target
e4a9a572
IS
1705 OTOOL_FOR_TARGET
1706 OTOOL for the target
278a7a38
AO
1707 RANLIB_FOR_TARGET
1708 RANLIB for the target
e7a82751
RM
1709 READELF_FOR_TARGET
1710 READELF for the target
278a7a38
AO
1711 STRIP_FOR_TARGET
1712 STRIP for the target
1713 WINDRES_FOR_TARGET
1714 WINDRES for the target
901119ae
KT
1715 WINDMC_FOR_TARGET
1716 WINDMC for the target
1c710c3c
DJ
1717
1718Use these variables to override the choices made by `configure' or to help
1719it to find libraries and programs with nonstandard names/locations.
1720
5213506e 1721Report bugs to the package provider.
1c710c3c 1722_ACEOF
5213506e 1723ac_status=$?
1c710c3c
DJ
1724fi
1725
1726if test "$ac_init_help" = "recursive"; then
1727 # If there are subdirs, report their specific --help.
1c710c3c 1728 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1729 test -d "$ac_dir" ||
1730 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1731 continue
1c710c3c
DJ
1732 ac_builddir=.
1733
5213506e
RW
1734case "$ac_dir" in
1735.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1736*)
1737 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1738 # A ".." for each directory in $ac_dir_suffix.
1739 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1740 case $ac_top_builddir_sub in
1741 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1742 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1743 esac ;;
1744esac
1745ac_abs_top_builddir=$ac_pwd
1746ac_abs_builddir=$ac_pwd$ac_dir_suffix
1747# for backward compatibility:
1748ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1749
1750case $srcdir in
5213506e 1751 .) # We are building in place.
1c710c3c 1752 ac_srcdir=.
5213506e
RW
1753 ac_top_srcdir=$ac_top_builddir_sub
1754 ac_abs_top_srcdir=$ac_pwd ;;
1755 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1756 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1757 ac_top_srcdir=$srcdir
1758 ac_abs_top_srcdir=$srcdir ;;
1759 *) # Relative name.
1760 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1761 ac_top_srcdir=$ac_top_build_prefix$srcdir
1762 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1763esac
5213506e
RW
1764ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1765
1766 cd "$ac_dir" || { ac_status=$?; continue; }
1767 # Check for guested configure.
1768 if test -f "$ac_srcdir/configure.gnu"; then
1769 echo &&
1770 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1771 elif test -f "$ac_srcdir/configure"; then
1772 echo &&
1773 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1774 else
5213506e
RW
1775 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1776 fi || ac_status=$?
1777 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1778 done
1779fi
1780
5213506e 1781test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1782if $ac_init_version; then
1783 cat <<\_ACEOF
5213506e 1784configure
22e05272 1785generated by GNU Autoconf 2.69
1c710c3c 1786
22e05272 1787Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
1788This configure script is free software; the Free Software Foundation
1789gives unlimited permission to copy, distribute and modify it.
1790_ACEOF
5213506e 1791 exit
0b0dc272 1792fi
5213506e
RW
1793
1794## ------------------------ ##
1795## Autoconf initialization. ##
1796## ------------------------ ##
1797
1798# ac_fn_c_try_compile LINENO
1799# --------------------------
1800# Try to compile conftest.$ac_ext, and return whether this succeeded.
1801ac_fn_c_try_compile ()
1802{
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 rm -f conftest.$ac_objext
1805 if { { ac_try="$ac_compile"
1806case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1809esac
1810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811$as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_compile") 2>conftest.err
1813 ac_status=$?
1814 if test -s conftest.err; then
1815 grep -v '^ *+' conftest.err >conftest.er1
1816 cat conftest.er1 >&5
1817 mv -f conftest.er1 conftest.err
1818 fi
1819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820 test $ac_status = 0; } && {
1821 test -z "$ac_c_werror_flag" ||
1822 test ! -s conftest.err
1823 } && test -s conftest.$ac_objext; then :
1824 ac_retval=0
1825else
1826 $as_echo "$as_me: failed program was:" >&5
1827sed 's/^/| /' conftest.$ac_ext >&5
1828
1829 ac_retval=1
1830fi
22e05272
JM
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832 as_fn_set_status $ac_retval
5213506e
RW
1833
1834} # ac_fn_c_try_compile
1835
1836# ac_fn_cxx_try_compile LINENO
1837# ----------------------------
1838# Try to compile conftest.$ac_ext, and return whether this succeeded.
1839ac_fn_cxx_try_compile ()
1840{
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 rm -f conftest.$ac_objext
1843 if { { ac_try="$ac_compile"
1844case "(($ac_try" in
1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846 *) ac_try_echo=$ac_try;;
1847esac
1848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849$as_echo "$ac_try_echo"; } >&5
1850 (eval "$ac_compile") 2>conftest.err
1851 ac_status=$?
1852 if test -s conftest.err; then
1853 grep -v '^ *+' conftest.err >conftest.er1
1854 cat conftest.er1 >&5
1855 mv -f conftest.er1 conftest.err
1856 fi
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } && {
1859 test -z "$ac_cxx_werror_flag" ||
1860 test ! -s conftest.err
1861 } && test -s conftest.$ac_objext; then :
1862 ac_retval=0
1863else
1864 $as_echo "$as_me: failed program was:" >&5
1865sed 's/^/| /' conftest.$ac_ext >&5
1866
1867 ac_retval=1
1868fi
22e05272
JM
1869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870 as_fn_set_status $ac_retval
5213506e
RW
1871
1872} # ac_fn_cxx_try_compile
1873
0b21f5d3
EB
1874# ac_fn_cxx_try_link LINENO
1875# -------------------------
1876# Try to link conftest.$ac_ext, and return whether this succeeded.
1877ac_fn_cxx_try_link ()
1878{
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 rm -f conftest.$ac_objext conftest$ac_exeext
1881 if { { ac_try="$ac_link"
1882case "(($ac_try" in
1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1885esac
1886eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887$as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_link") 2>conftest.err
1889 ac_status=$?
1890 if test -s conftest.err; then
1891 grep -v '^ *+' conftest.err >conftest.er1
1892 cat conftest.er1 >&5
1893 mv -f conftest.er1 conftest.err
1894 fi
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; } && {
1897 test -z "$ac_cxx_werror_flag" ||
1898 test ! -s conftest.err
1899 } && test -s conftest$ac_exeext && {
1900 test "$cross_compiling" = yes ||
22e05272 1901 test -x conftest$ac_exeext
0b21f5d3
EB
1902 }; then :
1903 ac_retval=0
1904else
1905 $as_echo "$as_me: failed program was:" >&5
1906sed 's/^/| /' conftest.$ac_ext >&5
1907
1908 ac_retval=1
1909fi
1910 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1911 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1912 # interfere with the next link command; also delete a directory that is
1913 # left behind by Apple's compiler. We do this before executing the actions.
1914 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916 as_fn_set_status $ac_retval
0b21f5d3
EB
1917
1918} # ac_fn_cxx_try_link
1919
5213506e
RW
1920# ac_fn_c_try_link LINENO
1921# -----------------------
1922# Try to link conftest.$ac_ext, and return whether this succeeded.
1923ac_fn_c_try_link ()
1924{
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 rm -f conftest.$ac_objext conftest$ac_exeext
1927 if { { ac_try="$ac_link"
1928case "(($ac_try" in
1929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1930 *) ac_try_echo=$ac_try;;
1931esac
1932eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933$as_echo "$ac_try_echo"; } >&5
1934 (eval "$ac_link") 2>conftest.err
1935 ac_status=$?
1936 if test -s conftest.err; then
1937 grep -v '^ *+' conftest.err >conftest.er1
1938 cat conftest.er1 >&5
1939 mv -f conftest.er1 conftest.err
1940 fi
1941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942 test $ac_status = 0; } && {
1943 test -z "$ac_c_werror_flag" ||
1944 test ! -s conftest.err
1945 } && test -s conftest$ac_exeext && {
1946 test "$cross_compiling" = yes ||
22e05272 1947 test -x conftest$ac_exeext
5213506e
RW
1948 }; then :
1949 ac_retval=0
1950else
1951 $as_echo "$as_me: failed program was:" >&5
1952sed 's/^/| /' conftest.$ac_ext >&5
1953
1954 ac_retval=1
1955fi
1956 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1957 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1958 # interfere with the next link command; also delete a directory that is
1959 # left behind by Apple's compiler. We do this before executing the actions.
1960 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962 as_fn_set_status $ac_retval
5213506e
RW
1963
1964} # ac_fn_c_try_link
1965cat >config.log <<_ACEOF
1c710c3c
DJ
1966This file contains any messages produced by compilers while
1967running configure, to aid debugging if configure makes a mistake.
1968
1969It was created by $as_me, which was
22e05272 1970generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
1971
1972 $ $0 $@
1973
1974_ACEOF
5213506e 1975exec 5>>config.log
1c710c3c
DJ
1976{
1977cat <<_ASUNAME
1978## --------- ##
1979## Platform. ##
1980## --------- ##
1981
1982hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1983uname -m = `(uname -m) 2>/dev/null || echo unknown`
1984uname -r = `(uname -r) 2>/dev/null || echo unknown`
1985uname -s = `(uname -s) 2>/dev/null || echo unknown`
1986uname -v = `(uname -v) 2>/dev/null || echo unknown`
1987
1988/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1989/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1990
1991/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1992/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1993/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1994/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1995/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1996/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1997/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1998
1999_ASUNAME
2000
2001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2002for as_dir in $PATH
2003do
2004 IFS=$as_save_IFS
2005 test -z "$as_dir" && as_dir=.
5213506e
RW
2006 $as_echo "PATH: $as_dir"
2007 done
2008IFS=$as_save_IFS
1c710c3c
DJ
2009
2010} >&5
2011
2012cat >&5 <<_ACEOF
2013
2014
2015## ----------- ##
2016## Core tests. ##
2017## ----------- ##
2018
2019_ACEOF
2020
2021
2022# Keep a trace of the command line.
2023# Strip out --no-create and --no-recursion so they do not pile up.
2024# Strip out --silent because we don't want to record it for future runs.
2025# Also quote any args containing shell meta-characters.
2026# Make two passes to allow for proper duplicate-argument suppression.
2027ac_configure_args=
2028ac_configure_args0=
2029ac_configure_args1=
1c710c3c
DJ
2030ac_must_keep_next=false
2031for ac_pass in 1 2
2032do
2033 for ac_arg
2034 do
2035 case $ac_arg in
2036 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2037 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2038 | -silent | --silent | --silen | --sile | --sil)
2039 continue ;;
5213506e
RW
2040 *\'*)
2041 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2042 esac
2043 case $ac_pass in
5213506e 2044 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 2045 2)
5213506e 2046 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
2047 if test $ac_must_keep_next = true; then
2048 ac_must_keep_next=false # Got value, back to normal.
2049 else
2050 case $ac_arg in
2051 *=* | --config-cache | -C | -disable-* | --disable-* \
2052 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2053 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2054 | -with-* | --with-* | -without-* | --without-* | --x)
2055 case "$ac_configure_args0 " in
2056 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2057 esac
2058 ;;
2059 -* ) ac_must_keep_next=true ;;
2060 esac
2061 fi
5213506e 2062 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
2063 ;;
2064 esac
2065 done
2066done
5213506e
RW
2067{ ac_configure_args0=; unset ac_configure_args0;}
2068{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
2069
2070# When interrupted or exit'd, cleanup temporary files, and complete
2071# config.log. We remove comments because anyway the quotes in there
2072# would cause problems or look ugly.
5213506e
RW
2073# WARNING: Use '\'' to represent an apostrophe within the trap.
2074# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
2075trap 'exit_status=$?
2076 # Save into config.log some information that might help in debugging.
2077 {
2078 echo
2079
22e05272 2080 $as_echo "## ---------------- ##
1c710c3c 2081## Cache variables. ##
22e05272 2082## ---------------- ##"
1c710c3c
DJ
2083 echo
2084 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2085(
2086 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2087 eval ac_val=\$$ac_var
2088 case $ac_val in #(
2089 *${as_nl}*)
2090 case $ac_var in #(
2091 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2092$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2093 esac
2094 case $ac_var in #(
2095 _ | IFS | as_nl) ;; #(
2096 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2097 *) { eval $ac_var=; unset $ac_var;} ;;
2098 esac ;;
2099 esac
2100 done
1c710c3c 2101 (set) 2>&1 |
5213506e
RW
2102 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2103 *${as_nl}ac_space=\ *)
1c710c3c 2104 sed -n \
5213506e
RW
2105 "s/'\''/'\''\\\\'\'''\''/g;
2106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2107 ;; #(
1c710c3c 2108 *)
5213506e 2109 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 2110 ;;
5213506e
RW
2111 esac |
2112 sort
2113)
1c710c3c
DJ
2114 echo
2115
22e05272 2116 $as_echo "## ----------------- ##
1c710c3c 2117## Output variables. ##
22e05272 2118## ----------------- ##"
1c710c3c
DJ
2119 echo
2120 for ac_var in $ac_subst_vars
2121 do
5213506e
RW
2122 eval ac_val=\$$ac_var
2123 case $ac_val in
2124 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2125 esac
2126 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2127 done | sort
2128 echo
2129
2130 if test -n "$ac_subst_files"; then
22e05272 2131 $as_echo "## ------------------- ##
5213506e 2132## File substitutions. ##
22e05272 2133## ------------------- ##"
1c710c3c
DJ
2134 echo
2135 for ac_var in $ac_subst_files
2136 do
5213506e
RW
2137 eval ac_val=\$$ac_var
2138 case $ac_val in
2139 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2140 esac
2141 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2142 done | sort
2143 echo
2144 fi
2145
2146 if test -s confdefs.h; then
22e05272 2147 $as_echo "## ----------- ##
1c710c3c 2148## confdefs.h. ##
22e05272 2149## ----------- ##"
1c710c3c 2150 echo
5213506e 2151 cat confdefs.h
1c710c3c
DJ
2152 echo
2153 fi
2154 test "$ac_signal" != 0 &&
5213506e
RW
2155 $as_echo "$as_me: caught signal $ac_signal"
2156 $as_echo "$as_me: exit $exit_status"
1c710c3c 2157 } >&5
5213506e
RW
2158 rm -f core *.core core.conftest.* &&
2159 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2160 exit $exit_status
5213506e 2161' 0
1c710c3c 2162for ac_signal in 1 2 13 15; do
5213506e 2163 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2164done
2165ac_signal=0
2166
2167# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2168rm -f -r conftest* confdefs.h
2169
2170$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2171
2172# Predefined preprocessor variables.
2173
2174cat >>confdefs.h <<_ACEOF
2175#define PACKAGE_NAME "$PACKAGE_NAME"
2176_ACEOF
2177
1c710c3c
DJ
2178cat >>confdefs.h <<_ACEOF
2179#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2180_ACEOF
2181
1c710c3c
DJ
2182cat >>confdefs.h <<_ACEOF
2183#define PACKAGE_VERSION "$PACKAGE_VERSION"
2184_ACEOF
0b0dc272 2185
1c710c3c
DJ
2186cat >>confdefs.h <<_ACEOF
2187#define PACKAGE_STRING "$PACKAGE_STRING"
2188_ACEOF
2189
1c710c3c
DJ
2190cat >>confdefs.h <<_ACEOF
2191#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2192_ACEOF
2193
5213506e
RW
2194cat >>confdefs.h <<_ACEOF
2195#define PACKAGE_URL "$PACKAGE_URL"
2196_ACEOF
2197
1c710c3c
DJ
2198
2199# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2200# Prefer an explicitly selected file to automatically selected ones.
2201ac_site_file1=NONE
2202ac_site_file2=NONE
2203if test -n "$CONFIG_SITE"; then
22e05272
JM
2204 # We do not want a PATH search for config.site.
2205 case $CONFIG_SITE in #((
2206 -*) ac_site_file1=./$CONFIG_SITE;;
2207 */*) ac_site_file1=$CONFIG_SITE;;
2208 *) ac_site_file1=./$CONFIG_SITE;;
2209 esac
5213506e
RW
2210elif test "x$prefix" != xNONE; then
2211 ac_site_file1=$prefix/share/config.site
2212 ac_site_file2=$prefix/etc/config.site
2213else
2214 ac_site_file1=$ac_default_prefix/share/config.site
2215 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2216fi
5213506e
RW
2217for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2218do
2219 test "x$ac_site_file" = xNONE && continue
22e05272 2220 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
5213506e
RW
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2222$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2223 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2224 . "$ac_site_file" \
2225 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2226$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2227as_fn_error $? "failed to load site script $ac_site_file
2228See \`config.log' for more details" "$LINENO" 5; }
671aa708
NN
2229 fi
2230done
2231
2232if test -r "$cache_file"; then
22e05272
JM
2233 # Some versions of bash will fail to source /dev/null (special files
2234 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2235 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
5213506e
RW
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2237$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2238 case $cache_file in
5213506e
RW
2239 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2240 *) . "./$cache_file";;
1c710c3c
DJ
2241 esac
2242 fi
671aa708 2243else
5213506e
RW
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2245$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2246 >$cache_file
2247fi
2248
2249# Check that the precious variables saved in the cache have kept the same
2250# value.
2251ac_cache_corrupted=false
5213506e 2252for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2253 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2254 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2255 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2256 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2257 case $ac_old_set,$ac_new_set in
2258 set,)
5213506e
RW
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2260$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2261 ac_cache_corrupted=: ;;
2262 ,set)
5213506e
RW
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2264$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2265 ac_cache_corrupted=: ;;
2266 ,);;
2267 *)
2268 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2269 # differences in whitespace do not lead to failure.
2270 ac_old_val_w=`echo x $ac_old_val`
2271 ac_new_val_w=`echo x $ac_new_val`
2272 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2274$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2275 ac_cache_corrupted=:
2276 else
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2278$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2279 eval $ac_var=\$ac_old_val
2280 fi
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2282$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2284$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2285 fi;;
2286 esac
2287 # Pass precious variables to config.status.
2288 if test "$ac_new_set" = set; then
2289 case $ac_new_val in
5213506e 2290 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2291 *) ac_arg=$ac_var=$ac_new_val ;;
2292 esac
2293 case " $ac_configure_args " in
2294 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2295 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2296 esac
2297 fi
2298done
2299if $ac_cache_corrupted; then
5213506e
RW
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2301$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2303$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2304 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2305fi
5213506e
RW
2306## -------------------- ##
2307## Main body of script. ##
2308## -------------------- ##
671aa708 2309
2aeb72e9
DD
2310ac_ext=c
2311ac_cpp='$CPP $CPPFLAGS'
2312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2314ac_compiler_gnu=$ac_cv_c_compiler_gnu
2315
1c710c3c
DJ
2316
2317
2318
1c710c3c
DJ
2319
2320
0115d4a3 2321
1c710c3c 2322
ad33ff57
RW
2323progname=$0
2324# if PWD already has a value, it is probably wrong.
2325if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2326
2327# Export original configure arguments for use by sub-configures.
2328# Quote arguments with shell meta charatcers.
2329TOPLEVEL_CONFIGURE_ARGUMENTS=
2330set -- "$progname" "$@"
2331for ac_arg
2332do
2333 case "$ac_arg" in
2334 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2335 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2336 # if the argument is of the form -foo=baz, quote the baz part only
2337 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2338 *) ;;
2339 esac
2340 # Add the quoted argument to the list.
2341 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2342done
2343if test "$silent" = yes; then
2344 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2345fi
2346# Remove the initial space we just introduced and, as these will be
2347# expanded by make, quote '$'.
2348TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2349
1c710c3c
DJ
2350
2351# Find the build, host, and target systems.
671aa708 2352ac_aux_dir=
5213506e 2353for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2354 if test -f "$ac_dir/install-sh"; then
2355 ac_aux_dir=$ac_dir
2356 ac_install_sh="$ac_aux_dir/install-sh -c"
2357 break
2358 elif test -f "$ac_dir/install.sh"; then
2359 ac_aux_dir=$ac_dir
2360 ac_install_sh="$ac_aux_dir/install.sh -c"
2361 break
2362 elif test -f "$ac_dir/shtool"; then
2363 ac_aux_dir=$ac_dir
2364 ac_install_sh="$ac_aux_dir/shtool install -c"
2365 break
2366 fi
671aa708
NN
2367done
2368if test -z "$ac_aux_dir"; then
22e05272 2369 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2370fi
5213506e
RW
2371
2372# These three variables are undocumented and unsupported,
2373# and are intended to be withdrawn in a future Autoconf release.
2374# They can cause serious problems if a builder's source tree is in a directory
2375# whose full name contains unusual characters.
2376ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2377ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2378ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2379
671aa708 2380
1c710c3c 2381# Make sure we can run config.sub.
5213506e 2382$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2383 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5213506e
RW
2384
2385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2386$as_echo_n "checking build system type... " >&6; }
22e05272 2387if ${ac_cv_build+:} false; then :
5213506e
RW
2388 $as_echo_n "(cached) " >&6
2389else
2390 ac_build_alias=$build_alias
2391test "x$ac_build_alias" = x &&
2392 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2393test "x$ac_build_alias" = x &&
22e05272 2394 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5213506e 2395ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2396 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5213506e
RW
2397
2398fi
2399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2400$as_echo "$ac_cv_build" >&6; }
2401case $ac_cv_build in
2402*-*-*) ;;
22e05272 2403*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5213506e 2404esac
1c710c3c 2405build=$ac_cv_build
5213506e
RW
2406ac_save_IFS=$IFS; IFS='-'
2407set x $ac_cv_build
2408shift
2409build_cpu=$1
2410build_vendor=$2
2411shift; shift
2412# Remember, the first character of IFS is used to create $*,
2413# except with old shells:
2414build_os=$*
2415IFS=$ac_save_IFS
2416case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2417
671aa708 2418
1c710c3c
DJ
2419 case ${build_alias} in
2420 "") build_noncanonical=${build} ;;
2421 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2422esac
2423
2424
af71363e 2425
1c710c3c
DJ
2426 case ${host_alias} in
2427 "") host_noncanonical=${build_noncanonical} ;;
2428 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2429esac
2430
af71363e 2431
1c710c3c
DJ
2432
2433 case ${target_alias} in
2434 "") target_noncanonical=${host_noncanonical} ;;
2435 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2436esac
2437
af71363e 2438
1c710c3c
DJ
2439
2440
2441test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2442 test "$program_prefix$program_suffix$program_transform_name" = \
2443 NONENONEs,x,x, &&
1c710c3c 2444 program_transform_name=s,y,y,
af71363e 2445
5213506e
RW
2446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2447$as_echo_n "checking host system type... " >&6; }
22e05272 2448if ${ac_cv_host+:} false; then :
5213506e 2449 $as_echo_n "(cached) " >&6
af71363e 2450else
5213506e
RW
2451 if test "x$host_alias" = x; then
2452 ac_cv_host=$ac_cv_build
2453else
2454 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2455 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5213506e 2456fi
1c710c3c 2457
af71363e 2458fi
5213506e
RW
2459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2460$as_echo "$ac_cv_host" >&6; }
2461case $ac_cv_host in
2462*-*-*) ;;
22e05272 2463*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5213506e 2464esac
1c710c3c 2465host=$ac_cv_host
5213506e
RW
2466ac_save_IFS=$IFS; IFS='-'
2467set x $ac_cv_host
2468shift
2469host_cpu=$1
2470host_vendor=$2
2471shift; shift
2472# Remember, the first character of IFS is used to create $*,
2473# except with old shells:
2474host_os=$*
2475IFS=$ac_save_IFS
2476case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2477
2478
5213506e
RW
2479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2480$as_echo_n "checking target system type... " >&6; }
22e05272 2481if ${ac_cv_target+:} false; then :
5213506e 2482 $as_echo_n "(cached) " >&6
1c710c3c 2483else
5213506e
RW
2484 if test "x$target_alias" = x; then
2485 ac_cv_target=$ac_cv_host
2486else
2487 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2488 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5213506e 2489fi
1c710c3c
DJ
2490
2491fi
5213506e
RW
2492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2493$as_echo "$ac_cv_target" >&6; }
2494case $ac_cv_target in
2495*-*-*) ;;
22e05272 2496*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
5213506e 2497esac
1c710c3c 2498target=$ac_cv_target
5213506e
RW
2499ac_save_IFS=$IFS; IFS='-'
2500set x $ac_cv_target
2501shift
2502target_cpu=$1
2503target_vendor=$2
2504shift; shift
2505# Remember, the first character of IFS is used to create $*,
2506# except with old shells:
2507target_os=$*
2508IFS=$ac_save_IFS
2509case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2510
2511
2512# The aliases save the names the user supplied, while $host etc.
2513# will get canonicalized.
2514test -n "$target_alias" &&
2515 test "$program_prefix$program_suffix$program_transform_name" = \
2516 NONENONEs,x,x, &&
2517 program_prefix=${target_alias}-
5213506e 2518
671aa708 2519test "$program_prefix" != NONE &&
5213506e 2520 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2521# Use a double $ so make ignores it.
2522test "$program_suffix" != NONE &&
5213506e
RW
2523 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2524# Double any \ or $.
1c710c3c 2525# By default was `s,x,x', remove it if useless.
5213506e
RW
2526ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2527program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2528
671aa708
NN
2529
2530
775956d0
NN
2531# Get 'install' or 'install-sh' and its variants.
2532# Find a good install program. We prefer a C program (faster),
2533# so one script is as good as another. But avoid the broken or
2534# incompatible versions:
2535# SysV /etc/install, /usr/sbin/install
2536# SunOS /usr/etc/install
2537# IRIX /sbin/install
2538# AIX /bin/install
1c710c3c 2539# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2540# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2541# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2542# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2543# OS/2's system install, which has a completely different semantic
775956d0 2544# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2545# Reject install programs that cannot install multiple files.
5213506e
RW
2546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2547$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2548if test -z "$INSTALL"; then
22e05272 2549if ${ac_cv_path_install+:} false; then :
5213506e 2550 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2551else
2552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553for as_dir in $PATH
2554do
2555 IFS=$as_save_IFS
2556 test -z "$as_dir" && as_dir=.
5213506e
RW
2557 # Account for people who put trailing slashes in PATH elements.
2558case $as_dir/ in #((
2559 ./ | .// | /[cC]/* | \
1c710c3c 2560 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2561 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2562 /usr/ucb/* ) ;;
2563 *)
2564 # OSF1 and SCO ODT 3.0 have their own names for install.
2565 # Don't use installbsd from OSF since it installs stuff as root
2566 # by default.
2567 for ac_prog in ginstall scoinst install; do
2568 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2569 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 2570 if test $ac_prog = install &&
1c710c3c 2571 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2572 # AIX install. It has an incompatible calling convention.
2573 :
1c710c3c
DJ
2574 elif test $ac_prog = install &&
2575 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2576 # program-specific install script used by HP pwplus--don't use.
2577 :
775956d0 2578 else
38d24731
RW
2579 rm -rf conftest.one conftest.two conftest.dir
2580 echo one > conftest.one
2581 echo two > conftest.two
2582 mkdir conftest.dir
2583 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2584 test -s conftest.one && test -s conftest.two &&
2585 test -s conftest.dir/conftest.one &&
2586 test -s conftest.dir/conftest.two
2587 then
2588 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2589 break 3
2590 fi
775956d0
NN
2591 fi
2592 fi
2593 done
1c710c3c
DJ
2594 done
2595 ;;
2596esac
5213506e
RW
2597
2598 done
2599IFS=$as_save_IFS
1c710c3c 2600
38d24731 2601rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2602
2603fi
2604 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2605 INSTALL=$ac_cv_path_install
775956d0 2606 else
38d24731
RW
2607 # As a last resort, use the slow shell script. Don't cache a
2608 # value for INSTALL within a source directory, because that will
775956d0 2609 # break other packages using the cache if that directory is
38d24731 2610 # removed, or if the value is a relative name.
1c710c3c 2611 INSTALL=$ac_install_sh
775956d0
NN
2612 fi
2613fi
5213506e
RW
2614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2615$as_echo "$INSTALL" >&6; }
775956d0
NN
2616
2617# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2618# It thinks the first close brace ends the variable substitution.
2619test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2620
1c710c3c 2621test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2622
2623test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2624
5213506e
RW
2625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2626$as_echo_n "checking whether ln works... " >&6; }
22e05272 2627if ${acx_cv_prog_LN+:} false; then :
5213506e 2628 $as_echo_n "(cached) " >&6
ad6717df
PB
2629else
2630 rm -f conftestdata_t
2631echo >conftestdata_f
2632if ln conftestdata_f conftestdata_t 2>/dev/null
2633then
2634 acx_cv_prog_LN=ln
2635else
2636 acx_cv_prog_LN=no
2637fi
2638rm -f conftestdata_f conftestdata_t
2639
2640fi
2641if test $acx_cv_prog_LN = no; then
2642 LN="cp"
5213506e
RW
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2644$as_echo "no, using $LN" >&6; }
ad6717df
PB
2645else
2646 LN="$acx_cv_prog_LN"
5213506e
RW
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2648$as_echo "yes" >&6; }
ad6717df
PB
2649fi
2650
5213506e
RW
2651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2652$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2653LN_S=$as_ln_s
2654if test "$LN_S" = "ln -s"; then
5213506e
RW
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2656$as_echo "yes" >&6; }
fb0103e5 2657else
5213506e
RW
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2659$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2660fi
2661
87264276
PB
2662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2663$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 2664if ${ac_cv_path_SED+:} false; then :
87264276
PB
2665 $as_echo_n "(cached) " >&6
2666else
2667 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2668 for ac_i in 1 2 3 4 5 6 7; do
2669 ac_script="$ac_script$as_nl$ac_script"
2670 done
2671 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2672 { ac_script=; unset ac_script;}
2673 if test -z "$SED"; then
2674 ac_path_SED_found=false
2675 # Loop through the user's path and test for each of PROGNAME-LIST
2676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677for as_dir in $PATH
2678do
2679 IFS=$as_save_IFS
2680 test -z "$as_dir" && as_dir=.
2681 for ac_prog in sed gsed; do
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 2684 as_fn_executable_p "$ac_path_SED" || continue
87264276
PB
2685# Check for GNU ac_path_SED and select it if it is found.
2686 # Check for GNU $ac_path_SED
2687case `"$ac_path_SED" --version 2>&1` in
2688*GNU*)
2689 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2690*)
2691 ac_count=0
2692 $as_echo_n 0123456789 >"conftest.in"
2693 while :
2694 do
2695 cat "conftest.in" "conftest.in" >"conftest.tmp"
2696 mv "conftest.tmp" "conftest.in"
2697 cp "conftest.in" "conftest.nl"
2698 $as_echo '' >> "conftest.nl"
2699 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2700 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2701 as_fn_arith $ac_count + 1 && ac_count=$as_val
2702 if test $ac_count -gt ${ac_path_SED_max-0}; then
2703 # Best one so far, save it but keep looking for a better one
2704 ac_cv_path_SED="$ac_path_SED"
2705 ac_path_SED_max=$ac_count
2706 fi
2707 # 10*(2^10) chars as input seems more than enough
2708 test $ac_count -gt 10 && break
2709 done
2710 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2711esac
2712
2713 $ac_path_SED_found && break 3
2714 done
2715 done
2716 done
2717IFS=$as_save_IFS
2718 if test -z "$ac_cv_path_SED"; then
22e05272 2719 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
87264276
PB
2720 fi
2721else
2722 ac_cv_path_SED=$SED
2723fi
2724
2725fi
2726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2727$as_echo "$ac_cv_path_SED" >&6; }
2728 SED="$ac_cv_path_SED"
2729 rm -f conftest.sed
2730
2731for ac_prog in gawk mawk nawk awk
2732do
2733 # Extract the first word of "$ac_prog", so it can be a program name with args.
2734set dummy $ac_prog; ac_word=$2
2735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2736$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2737if ${ac_cv_prog_AWK+:} false; then :
87264276
PB
2738 $as_echo_n "(cached) " >&6
2739else
2740 if test -n "$AWK"; then
2741 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2742else
2743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744for as_dir in $PATH
2745do
2746 IFS=$as_save_IFS
2747 test -z "$as_dir" && as_dir=.
2748 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
87264276
PB
2750 ac_cv_prog_AWK="$ac_prog"
2751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2752 break 2
2753 fi
2754done
2755 done
2756IFS=$as_save_IFS
2757
2758fi
2759fi
2760AWK=$ac_cv_prog_AWK
2761if test -n "$AWK"; then
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2763$as_echo "$AWK" >&6; }
2764else
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2766$as_echo "no" >&6; }
2767fi
2768
2769
2770 test -n "$AWK" && break
2771done
2772
775956d0 2773
ee6a22df
L
2774srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2775
2776# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2777# a relative path.
2778if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2779 INSTALL="${srcpwd}/install-sh -c"
2780fi
2781
671aa708
NN
2782# Set srcdir to "." if that's what it is.
2783# This is important for multilib support.
2784pwd=`${PWDCMD-pwd}`
671aa708
NN
2785if test "${pwd}" = "${srcpwd}" ; then
2786 srcdir=.
79c06341
JL
2787fi
2788
671aa708 2789topsrcdir=$srcpwd
5d4a5ee6 2790
671aa708 2791extra_host_args=
afabd8e6 2792
671aa708
NN
2793### To add a new directory to the tree, first choose whether it is a target
2794### or a host dependent tool. Then put it into the appropriate list
2795### (library or tools, host or target), doing a dependency sort.
79c06341 2796
1c710c3c 2797# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2798# configdirs, or target_configdirs; see the serialization section below.
79c06341 2799
1c710c3c
DJ
2800# Dependency sorting is only needed when *configuration* must be done in
2801# a particular order. In all cases a dependency should be specified in
671aa708 2802# the Makefile, whether or not it's implicitly specified here.
79c06341 2803
671aa708
NN
2804# Double entries in build_configdirs, configdirs, or target_configdirs may
2805# cause circular dependencies and break everything horribly.
79c06341 2806
23f6b2f9
PB
2807# these library is used by various programs built for the build
2808# environment
2809#
929315a9 2810build_libs="build-libiberty build-libcpp"
23f6b2f9
PB
2811
2812# these tools are built for the build environment
85bfb75e 2813build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2814
671aa708 2815# these libraries are used by various programs built for the host environment
eae1a5d4 2816#f
3de627ff 2817host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe"
671aa708 2818
671aa708
NN
2819# these tools are built for the host environment
2820# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2821# know that we are building the simulator.
2822# binutils, gas and ld appear in that order because it makes sense to run
2823# "make check" in that particular order.
38e3d868 2824# If --enable-gold is used, "gold" may replace "ld".
1eee94d3 2825host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gm2tools gotools c++tools"
671aa708 2826
671aa708
NN
2827# these libraries are built for the target environment, and are built after
2828# the host libraries and the host tools (which may be a cross compiler)
8499116a 2829# Note that libiberty is not a target library.
291f172e 2830target_libraries="target-libgcc \
eff02e4f 2831 target-libbacktrace \
671aa708
NN
2832 target-libgloss \
2833 target-newlib \
6d3b5aea 2834 target-libgomp \
48310492 2835 target-libatomic \
0a35513e 2836 target-libitm \
cb543528 2837 target-libstdc++-v3 \
f35db108 2838 target-libsanitizer \
2077db1b 2839 target-libvtv \
77008252 2840 target-libssp \
1ec601bf 2841 target-libquadmath \
6de9cd9a 2842 target-libgfortran \
012447ea 2843 target-libffi \
d9cdb878 2844 target-libobjc \
632e2a07 2845 target-libada \
1eee94d3 2846 target-libgm2 \
b4c522fa 2847 target-libgo \
bb50312e
IB
2848 target-libphobos \
2849 target-zlib"
671aa708 2850
4dbda6f0
NN
2851# these tools are built using the target libraries, and are intended to
2852# run only in the target environment
671aa708 2853#
4dbda6f0 2854# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2855# list belongs in this list.
671aa708 2856#
85bfb75e 2857target_tools="target-rda"
79c06341 2858
671aa708 2859################################################################################
79c06341 2860
671aa708
NN
2861## All tools belong in one of the four categories, and are assigned above
2862## We assign ${configdirs} this way to remove all embedded newlines. This
2863## is important because configure will choke if they ever get through.
2864## ${configdirs} is directories we build using the host tools.
2865## ${target_configdirs} is directories we build using the target tools.
671aa708 2866configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2867target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2868build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2869
ac9e6043
RW
2870
2871
671aa708 2872################################################################################
79c06341 2873
671aa708 2874srcname="gnu development package"
79c06341 2875
671aa708
NN
2876# This gets set non-empty for some net releases of packages.
2877appdirs=""
79c06341 2878
671aa708
NN
2879# Define is_cross_compiler to save on calls to 'test'.
2880is_cross_compiler=
2881if test x"${host}" = x"${target}" ; then
2882 is_cross_compiler=no
79c06341 2883else
671aa708 2884 is_cross_compiler=yes
1c710c3c 2885fi
79c06341 2886
b4acb5ef 2887# Find the build and target subdir names.
8b87bb96 2888
2e9e6f68
DJ
2889# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2890# have matching libraries, they should use host libraries: Makefile.tpl
2891# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2892# However, they still use the build modules, because the corresponding
2893# host modules (e.g. bison) are only built for the host when bootstrap
2894# finishes. So:
2895# - build_subdir is where we find build modules, and never changes.
2896# - build_libsubdir is where we find build libraries, and can be overridden.
2897
2898# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2899build_subdir="build-${build_noncanonical}"
1c710c3c 2900
5213506e
RW
2901# Check whether --with-build-libsubdir was given.
2902if test "${with_build_libsubdir+set}" = set; then :
2903 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2904else
2905 build_libsubdir="$build_subdir"
5213506e
RW
2906fi
2907
215c351a
PB
2908# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2909if ( test $srcdir = . && test -d gcc ) \
2910 || test -d $srcdir/../host-${host_noncanonical}; then
2911 host_subdir="host-${host_noncanonical}"
2912else
2913 host_subdir=.
2914fi
8b87bb96
NN
2915# No prefix.
2916target_subdir=${target_noncanonical}
1c710c3c 2917
0db770bd
RW
2918# Be sure to cover against remnants of an in-tree build.
2919if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
22e05272 2920 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
0db770bd
RW
2921Use a pristine source tree when building in a separate tree" "$LINENO" 5
2922fi
79c06341 2923
671aa708
NN
2924# Skipdirs are removed silently.
2925skipdirs=
2926# Noconfigdirs are removed loudly.
2927noconfigdirs=""
79c06341 2928
671aa708
NN
2929use_gnu_ld=
2930# Make sure we don't let GNU ld be added if we didn't want it.
2931if test x$with_gnu_ld = xno ; then
2932 use_gnu_ld=no
5afab7ad 2933 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2934fi
2935
671aa708
NN
2936use_gnu_as=
2937# Make sure we don't let GNU as be added if we didn't want it.
2938if test x$with_gnu_as = xno ; then
2939 use_gnu_as=no
2940 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2941fi
2942
d7f09764 2943use_included_zlib=
a05c2c75
L
2944
2945# Check whether --with-system-zlib was given.
2946if test "${with_system_zlib+set}" = set; then :
2947 withval=$with_system_zlib;
2948fi
2949
d7f09764
DN
2950# Make sure we don't let ZLIB be added if we didn't want it.
2951if test x$with_system_zlib = xyes ; then
2952 use_included_zlib=no
2953 noconfigdirs="$noconfigdirs zlib"
2954fi
2955
36ba9851
ДП
2956# Don't compile the bundled readline/libreadline.a if --with-system-readline
2957# is provided.
2958if test x$with_system_readline = xyes ; then
2959 noconfigdirs="$noconfigdirs readline"
2960fi
2961
1c710c3c 2962# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2963# it's not even worth trying to configure, much less build, that tool.
79c06341 2964
671aa708
NN
2965case ${with_x} in
2966 yes | "") ;; # the default value for this tree is that X11 is available
2967 no)
b4f96efe 2968 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2969 # We won't be able to build gdbtk without X.
1c710c3c 2970 enable_gdbtk=no
671aa708
NN
2971 ;;
2972 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2973esac
79c06341 2974
1bcce263 2975# Some are only suitable for cross toolchains.
671aa708
NN
2976# Remove these if host=target.
2977cross_only="target-libgloss target-newlib target-opcodes"
2978
2979case $is_cross_compiler in
2980 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 2981esac
79c06341 2982
671aa708
NN
2983# If both --with-headers and --with-libs are specified, default to
2984# --without-newlib.
ee6a22df
L
2985if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2986 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2987 if test x"${with_newlib}" = x ; then
2988 with_newlib=no
2989 fi
79c06341
JL
2990fi
2991
671aa708
NN
2992# Recognize --with-newlib/--without-newlib.
2993case ${with_newlib} in
2994 no) skipdirs="${skipdirs} target-newlib" ;;
2995 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2996esac
79c06341 2997
85c64bbe
BS
2998# Check whether --enable-as-accelerator-for was given.
2999if test "${enable_as_accelerator_for+set}" = set; then :
4b4f2e35 3000 enableval=$enable_as_accelerator_for;
85c64bbe
BS
3001fi
3002
3003
3004# Check whether --enable-offload-targets was given.
3005if test "${enable_offload_targets+set}" = set; then :
3006 enableval=$enable_offload_targets;
3007 if test x"$enable_offload_targets" = x; then
22e05272 3008 as_fn_error $? "no offload targets specified" "$LINENO" 5
85c64bbe
BS
3009 fi
3010
3011else
3012 enable_offload_targets=
3013fi
3014
3015
fe5bfa67
TB
3016# Check whether --enable-offload-defaulted was given.
3017if test "${enable_offload_defaulted+set}" = set; then :
3018 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3019else
3020 enable_offload_defaulted=
3021fi
3022
3023
21539e2e
MK
3024# Handle --enable-gold, --enable-ld.
3025# --disable-gold [--enable-ld]
3026# Build only ld. Default option.
9580395f
L
3027# --enable-gold [--enable-ld]
3028# Build both gold and ld. Install gold as "ld.gold", install ld
3029# as "ld.bfd" and "ld".
3030# --enable-gold=default [--enable-ld]
21539e2e
MK
3031# Build both gold and ld. Install gold as "ld.gold" and "ld",
3032# install ld as "ld.bfd".
3033# --enable-gold[=default] --disable-ld
3034# Build only gold, which is then installed as both "ld.gold" and "ld".
3035# --enable-gold --enable-ld=default
9580395f
L
3036# Build both gold (installed as "ld.gold") and ld (installed as "ld"
3037# and ld.bfd).
21539e2e
MK
3038# In other words, ld is default
3039# --enable-gold=default --enable-ld=default
3040# Error.
3041
3042default_ld=
5213506e
RW
3043# Check whether --enable-gold was given.
3044if test "${enable_gold+set}" = set; then :
3045 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
3046else
3047 ENABLE_GOLD=no
5213506e
RW
3048fi
3049
21539e2e
MK
3050case "${ENABLE_GOLD}" in
3051 yes|default)
38e3d868
RM
3052 # Check for ELF target.
3053 is_elf=no
3054 case "${target}" in
3055 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
0e76460f 3056 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a 3057 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
ff4b7a7e 3058 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
38e3d868
RM
3059 case "${target}" in
3060 *-*-linux*aout* | *-*-linux*oldld*)
3061 ;;
3062 *)
3063 is_elf=yes
3064 ;;
3065 esac
3066 esac
3067
3068 if test "$is_elf" = "yes"; then
3069 # Check for target supported by gold.
5afab7ad 3070 case "${target}" in
7705dfd1 3071 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
fc259b52 3072 | aarch64*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*)
21539e2e
MK
3073 configdirs="$configdirs gold"
3074 if test x${ENABLE_GOLD} = xdefault; then
3075 default_ld=gold
3076 fi
38e3d868 3077 ENABLE_GOLD=yes
5afab7ad
ILT
3078 ;;
3079 esac
38e3d868
RM
3080 fi
3081 ;;
3082 no)
3083 ;;
3084 *)
22e05272 3085 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
38e3d868 3086 ;;
21539e2e
MK
3087esac
3088
3089# Check whether --enable-ld was given.
3090if test "${enable_ld+set}" = set; then :
3091 enableval=$enable_ld; ENABLE_LD=$enableval
3092else
3093 ENABLE_LD=yes
3094fi
3095
3096
3097case "${ENABLE_LD}" in
3098 default)
9580395f 3099 if test x${default_ld} != x; then
22e05272 3100 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
21539e2e
MK
3101 fi
3102 ;;
3103 yes)
3104 ;;
3105 no)
3106 if test x${ENABLE_GOLD} != xyes; then
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3108$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3109 fi
3110 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3111 ;;
3112 *)
22e05272 3113 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
21539e2e
MK
3114 ;;
3115esac
5afab7ad 3116
78edb32f
L
3117# PR gas/19109
3118# Decide the default method for compressing debug sections.
3119# Provide a configure time option to override our default.
3120# Check whether --enable-compressed_debug_sections was given.
3121if test "${enable_compressed_debug_sections+set}" = set; then :
3122 enableval=$enable_compressed_debug_sections;
3123 if test x"$enable_compressed_debug_sections" = xyes; then
22e05272 3124 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
78edb32f
L
3125 fi
3126
3127else
3128 enable_compressed_debug_sections=
3129fi
3130
3131
671aa708 3132# Configure extra directories which are host specific
79c06341 3133
671aa708
NN
3134case "${host}" in
3135 *-cygwin*)
3136 configdirs="$configdirs libtermcap" ;;
3137esac
79c06341 3138
4fab7234
HPN
3139# A target can indicate whether a language isn't supported for some reason.
3140# Only spaces may be used in this macro; not newlines or tabs.
3141unsupported_languages=
3142
1c710c3c 3143# Remove more programs from consideration, based on the host or
671aa708
NN
3144# target this usually means that a port of the program doesn't
3145# exist yet.
ec8d6ddc 3146
671aa708 3147case "${host}" in
111eeb6e 3148 i[3456789]86-*-msdosdjgpp*)
c9bdb152 3149 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 3150 ;;
671aa708 3151esac
ec8d6ddc 3152
6de9cd9a 3153
87e6d9dc
TB
3154# Check whether --enable-libquadmath was given.
3155if test "${enable_libquadmath+set}" = set; then :
3156 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3157else
3158 ENABLE_LIBQUADMATH=yes
3159fi
3160
3161if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3162 noconfigdirs="$noconfigdirs target-libquadmath"
3163fi
3164
3165
3166# Check whether --enable-libquadmath-support was given.
3167if test "${enable_libquadmath_support+set}" = set; then :
3168 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3169else
3170 ENABLE_LIBQUADMATH_SUPPORT=yes
3171fi
3172
3173enable_libquadmath_support=
3174if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3175 enable_libquadmath_support=no
3176fi
3177
3178
5213506e
RW
3179# Check whether --enable-libada was given.
3180if test "${enable_libada+set}" = set; then :
3181 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3182else
3183 ENABLE_LIBADA=yes
5213506e
RW
3184fi
3185
d9cdb878 3186if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3187 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3188fi
3189
1eee94d3
GM
3190# Check whether --enable-libgm2 was given.
3191if test "${enable_libgm2+set}" = set; then :
3192 enableval=$enable_libgm2; ENABLE_LIBGM2=$enableval
3193else
3194 ENABLE_LIBGM2=no
3195fi
3196
3197if test "${ENABLE_LIBGM2}" != "yes" ; then
3198 noconfigdirs="$noconfigdirs gm2tools"
3199fi
3200
5213506e
RW
3201# Check whether --enable-libssp was given.
3202if test "${enable_libssp+set}" = set; then :
3203 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3204else
3205 ENABLE_LIBSSP=yes
5213506e
RW
3206fi
3207
ef0087a7 3208
1873ec0c
L
3209# Check whether --enable-libstdcxx was given.
3210if test "${enable_libstdcxx+set}" = set; then :
3211 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3212else
3213 ENABLE_LIBSTDCXX=default
3214fi
3215
3216if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1007a55c 3217 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1873ec0c
L
3218fi
3219
44a7d18d 3220# Enable libgomp by default on hosted POSIX systems, and a few others.
27079765 3221if test x$enable_libgomp = x ; then
953ff289 3222 case "${target}" in
416ac4d4 3223 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3224 ;;
8c6d158a 3225 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3226 ;;
b24513a1 3227 *-*-solaris2* | *-*-hpux11*)
953ff289 3228 ;;
cac90078 3229 *-*-darwin* | *-*-aix*)
953ff289 3230 ;;
29b1533a 3231 nvptx*-*-* | amdgcn*-*-*)
44a7d18d 3232 ;;
953ff289
DN
3233 *)
3234 noconfigdirs="$noconfigdirs target-libgomp"
3235 ;;
3236 esac
27079765 3237fi
953ff289 3238
48310492
RH
3239# Disable libatomic on unsupported systems.
3240if test -d ${srcdir}/libatomic; then
3241 if test x$enable_libatomic = x; then
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3243$as_echo_n "checking for libatomic support... " >&6; }
3244 if (srcdir=${srcdir}/libatomic; \
3245 . ${srcdir}/configure.tgt; \
3246 test -n "$UNSUPPORTED")
3247 then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249$as_echo "no" >&6; }
3250 noconfigdirs="$noconfigdirs target-libatomic"
3251 else
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3253$as_echo "yes" >&6; }
3254 fi
3255 fi
3256fi
3257
e948157d
RH
3258# Disable libitm on unsupported systems.
3259if test -d ${srcdir}/libitm; then
3260 if test x$enable_libitm = x; then
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
01f3428c 3262$as_echo_n "checking for libitm support... " >&6; }
e948157d
RH
3263 if (srcdir=${srcdir}/libitm; \
3264 . ${srcdir}/configure.tgt; \
3265 test -n "$UNSUPPORTED")
3266 then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
01f3428c 3268$as_echo "no" >&6; }
e948157d
RH
3269 noconfigdirs="$noconfigdirs target-libitm"
3270 else
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
01f3428c 3272$as_echo "yes" >&6; }
e948157d
RH
3273 fi
3274 fi
0a35513e
AH
3275fi
3276
93bf5390
RH
3277# Disable libsanitizer on unsupported systems.
3278if test -d ${srcdir}/libsanitizer; then
3279 if test x$enable_libsanitizer = x; then
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3281$as_echo_n "checking for libsanitizer support... " >&6; }
3282 if (srcdir=${srcdir}/libsanitizer; \
3283 . ${srcdir}/configure.tgt; \
3284 test -n "$UNSUPPORTED")
3285 then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287$as_echo "no" >&6; }
3288 noconfigdirs="$noconfigdirs target-libsanitizer"
3289 else
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3291$as_echo "yes" >&6; }
3292 fi
3293 fi
3294fi
3295
2077db1b
CT
3296# Disable libvtv on unsupported systems.
3297if test -d ${srcdir}/libvtv; then
3298 if test x$enable_libvtv = x; then
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3300$as_echo_n "checking for libvtv support... " >&6; }
3301 if (srcdir=${srcdir}/libvtv; \
3302 . ${srcdir}/configure.tgt; \
1e74b850 3303 test "$VTV_SUPPORTED" != "yes")
2077db1b
CT
3304 then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306$as_echo "no" >&6; }
3307 noconfigdirs="$noconfigdirs target-libvtv"
3308 else
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3310$as_echo "yes" >&6; }
3311 fi
3312 fi
3313fi
3314
d91491e5
SE
3315# Disable libquadmath for some systems.
3316case "${target}" in
e7fae550
DE
3317 avr-*-*)
3318 noconfigdirs="$noconfigdirs target-libquadmath"
3319 ;;
d91491e5
SE
3320 # libquadmath is unused on AIX and libquadmath build process use of
3321 # LD_LIBRARY_PATH can break AIX bootstrap.
3322 powerpc-*-aix* | rs6000-*-aix*)
3323 noconfigdirs="$noconfigdirs target-libquadmath"
3324 ;;
3325esac
3326
1e9e0e23
JM
3327# Disable libssp for some systems.
3328case "${target}" in
3329 avr-*-*)
b318fb4b 3330 # No hosted I/O support.
1e9e0e23
JM
3331 noconfigdirs="$noconfigdirs target-libssp"
3332 ;;
91dfef96
JM
3333 bpf-*-*)
3334 noconfigdirs="$noconfigdirs target-libssp"
3335 ;;
1e9e0e23
JM
3336 powerpc-*-aix* | rs6000-*-aix*)
3337 noconfigdirs="$noconfigdirs target-libssp"
85b8555e 3338 ;;
8d2af3a2
DD
3339 pru-*-*)
3340 # No hosted I/O support.
3341 noconfigdirs="$noconfigdirs target-libssp"
3342 ;;
85b8555e 3343 rl78-*-*)
7cb62ef1
EB
3344 # libssp uses a misaligned load to trigger a fault, but the RL78
3345 # doesn't fault for those - instead, it gives a build-time error
3346 # for explicit misaligned loads.
85b8555e 3347 noconfigdirs="$noconfigdirs target-libssp"
1e9e0e23 3348 ;;
0969ec7d
EB
3349 visium-*-*)
3350 # No hosted I/O support.
3351 noconfigdirs="$noconfigdirs target-libssp"
3352 ;;
1e9e0e23
JM
3353esac
3354
1e9e0e23 3355# Disable libstdc++-v3 for some systems.
67a1cb2a 3356# Allow user to override this if they pass --enable-libstdcxx
1873ec0c
L
3357if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3358 case "${target}" in
3359 *-*-vxworks*)
3360 # VxWorks uses the Dinkumware C++ library.
3361 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3362 ;;
afa3d80e
TS
3363 amdgcn*-*-*)
3364 # Not ported/fails to build when using newlib.
3365 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3366 ;;
1873ec0c
L
3367 arm*-wince-pe*)
3368 # the C++ libraries don't build on top of CE's C libraries
3369 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3370 ;;
3371 avr-*-*)
3372 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3373 ;;
91dfef96
JM
3374 bpf-*-*)
3375 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3376 ;;
fef939d6
JB
3377 ft32-*-*)
3378 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3379 ;;
1873ec0c
L
3380 esac
3381fi
1e9e0e23 3382
91dfef96
JM
3383# Disable C++ on systems where it is known to not work.
3384# For testing, you can override this with --enable-languages=c++.
3385case ,${enable_languages}, in
3386 *,c++,*)
3387 ;;
3388 *)
3389 case "${target}" in
3390 bpf-*-*)
3391 unsupported_languages="$unsupported_languages c++"
3392 ;;
3393 esac
3394 ;;
3395esac
3396
3397# Disable Objc on systems where it is known to not work.
3398# For testing, you can override this with --enable-languages=objc.
3399case ,${enable_languages}, in
3400 *,objc,*)
3401 ;;
3402 *)
3403 case "${target}" in
3404 bpf-*-*)
3405 unsupported_languages="$unsupported_languages objc"
3406 ;;
3407 esac
3408 ;;
3409esac
3410
260eedb9
IB
3411# Disable D on systems where it is known to not work.
3412# For testing, you can override this with --enable-languages=d.
3413case ,${enable_languages}, in
3414 *,d,*)
3415 ;;
3416 *)
3417 case "${target}" in
91dfef96 3418 bpf-*-*)
260eedb9
IB
3419 unsupported_languages="$unsupported_languages d"
3420 ;;
3421 esac
3422 ;;
3423esac
3424
3425# Disable libphobos on unsupported systems.
3426# For testing, you can override this with --enable-libphobos.
3427if test -d ${srcdir}/libphobos; then
3428 if test x$enable_libphobos = x; then
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3430$as_echo_n "checking for libphobos support... " >&6; }
3431 if (srcdir=${srcdir}/libphobos; \
3432 . ${srcdir}/configure.tgt; \
7d31d331 3433 test "$LIBPHOBOS_SUPPORTED" != "yes")
260eedb9
IB
3434 then
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436$as_echo "no" >&6; }
3437 noconfigdirs="$noconfigdirs target-libphobos"
3438 else
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3440$as_echo "yes" >&6; }
3441 fi
3442 fi
3443fi
3444
1e9e0e23
JM
3445# Disable Fortran for some systems.
3446case "${target}" in
3447 mmix-*-*)
3448 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3449 unsupported_languages="$unsupported_languages fortran"
3450 ;;
91dfef96
JM
3451 bpf-*-*)
3452 unsupported_languages="$unsupported_languages fortran"
3453 ;;
1e9e0e23
JM
3454esac
3455
012447ea
JJ
3456# Disable libffi for some systems.
3457case "${target}" in
3458 powerpc-*-darwin*)
3459 ;;
3460 i[3456789]86-*-darwin*)
3461 ;;
3462 x86_64-*-darwin[912]*)
3463 ;;
3464 *-*-darwin*)
3465 noconfigdirs="$noconfigdirs target-libffi"
3466 ;;
3467 *-*-netware*)
3468 noconfigdirs="$noconfigdirs target-libffi"
3469 ;;
3470 *-*-phoenix*)
3471 noconfigdirs="$noconfigdirs target-libffi"
3472 ;;
3473 *-*-rtems*)
3474 noconfigdirs="$noconfigdirs target-libffi"
3475 ;;
3476 *-*-tpf*)
3477 noconfigdirs="$noconfigdirs target-libffi"
3478 ;;
3479 *-*-uclinux*)
3480 noconfigdirs="$noconfigdirs target-libffi"
3481 ;;
3482 *-*-vxworks*)
3483 noconfigdirs="$noconfigdirs target-libffi"
3484 ;;
b20e7532
AT
3485 aarch64*-*-freebsd*)
3486 noconfigdirs="$noconfigdirs target-libffi"
3487 ;;
012447ea
JJ
3488 alpha*-*-*vms*)
3489 noconfigdirs="$noconfigdirs target-libffi"
3490 ;;
3491 arm*-*-freebsd*)
3492 noconfigdirs="$noconfigdirs target-libffi"
3493 ;;
3494 arm-wince-pe)
3495 noconfigdirs="$noconfigdirs target-libffi"
3496 ;;
3497 arm*-*-symbianelf*)
3498 noconfigdirs="$noconfigdirs target-libffi"
3499 ;;
91dfef96
JM
3500 bpf-*-*)
3501 noconfigdirs="$noconfigdirs target-libffi"
3502 ;;
012447ea
JJ
3503 cris-*-* | crisv32-*-*)
3504 case "${target}" in
3505 *-*-linux*)
3506 ;;
3507 *) # See PR46792 regarding target-libffi.
3508 noconfigdirs="$noconfigdirs target-libffi";;
3509 esac
3510 ;;
3511 hppa*64*-*-hpux*)
3512 noconfigdirs="$noconfigdirs target-libffi"
3513 ;;
012447ea
JJ
3514 ia64*-*-*vms*)
3515 noconfigdirs="$noconfigdirs target-libffi"
3516 ;;
3517 i[3456789]86-w64-mingw*)
3518 noconfigdirs="$noconfigdirs target-libffi"
3519 ;;
3520 i[3456789]86-*-mingw*)
3521 noconfigdirs="$noconfigdirs target-libffi"
3522 ;;
3523 x86_64-*-mingw*)
3524 noconfigdirs="$noconfigdirs target-libffi"
3525 ;;
3526 mmix-*-*)
3527 noconfigdirs="$noconfigdirs target-libffi"
3528 ;;
3529 powerpc-*-aix*)
012447ea
JJ
3530 ;;
3531 rs6000-*-aix*)
012447ea
JJ
3532 ;;
3533 ft32-*-*)
3534 noconfigdirs="$noconfigdirs target-libffi"
3535 ;;
3536 *-*-lynxos*)
3537 noconfigdirs="$noconfigdirs target-libffi"
3538 ;;
3539esac
3540
3541# Disable the go frontend on systems where it is known to not work. Please keep
3542# this in sync with contrib/config-list.mk.
3543case "${target}" in
91dfef96 3544*-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
012447ea
JJ
3545 unsupported_languages="$unsupported_languages go"
3546 ;;
3547esac
3548
f9d09df0
TT
3549# Only allow gdbserver on some systems.
3550if test -d ${srcdir}/gdbserver; then
3551 if test x$enable_gdbserver = x; then
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3553$as_echo_n "checking for gdbserver support... " >&6; }
3554 if (srcdir=${srcdir}/gdbserver; \
3555 . ${srcdir}/configure.srv; \
3556 test -n "$UNSUPPORTED")
3557 then
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559$as_echo "no" >&6; }
3560 noconfigdirs="$noconfigdirs gdbserver"
3561 else
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3563$as_echo "yes" >&6; }
3564 fi
3565 fi
3566fi
3567
cdbc9e92
ILT
3568# Disable libgo for some systems where it is known to not work.
3569# For testing, you can easily override this with --enable-libgo.
3570if test x$enable_libgo = x; then
3571 case "${target}" in
3572 *-*-darwin*)
3573 # PR 46986
3574 noconfigdirs="$noconfigdirs target-libgo"
3575 ;;
3576 *-*-cygwin* | *-*-mingw*)
3577 noconfigdirs="$noconfigdirs target-libgo"
3578 ;;
91dfef96
JM
3579 bpf-*-*)
3580 noconfigdirs="$noconfigdirs target-libgo"
3581 ;;
cdbc9e92
ILT
3582 esac
3583fi
3584
c03353e2
RIL
3585# Default libgloss CPU subdirectory.
3586libgloss_dir="$target_cpu"
6de9cd9a 3587
fbcf0dca
JM
3588case "${target}" in
3589 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3590 libgloss_dir=wince
3591 ;;
4dddfc74
YZ
3592 aarch64*-*-* )
3593 libgloss_dir=aarch64
3594 ;;
fbcf0dca
JM
3595 arm*-*-*)
3596 libgloss_dir=arm
3597 ;;
3598 cris-*-* | crisv32-*-*)
3599 libgloss_dir=cris
3600 ;;
3601 hppa*-*-*)
3602 libgloss_dir=pa
3603 ;;
3604 i[3456789]86-*-*)
3605 libgloss_dir=i386
3606 ;;
c6c0594e 3607 loongarch*-*-*)
3608 libgloss_dir=loongarch
3609 ;;
fbcf0dca
JM
3610 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3611 libgloss_dir=m68hc11
3612 ;;
3613 m68*-*-* | fido-*-*)
3614 libgloss_dir=m68k
3615 ;;
3616 mips*-*-*)
3617 libgloss_dir=mips
3618 ;;
3619 powerpc*-*-*)
3620 libgloss_dir=rs6000
3621 ;;
8d2af3a2
DD
3622 pru-*-*)
3623 libgloss_dir=pru
3624 ;;
fbcf0dca
JM
3625 sparc*-*-*)
3626 libgloss_dir=sparc
3627 ;;
3628esac
3629
6a789d5e 3630# Disable newlib and libgloss for various target OSes.
671aa708 3631case "${target}" in
6a789d5e
JM
3632 alpha*-dec-osf*)
3633 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3634 ;;
3635 i[3456789]86-*-linux*)
3636 # This section makes it possible to build newlib natively on linux.
3637 # If we are using a cross compiler then don't configure newlib.
3638 if test x${is_cross_compiler} != xno ; then
3639 noconfigdirs="$noconfigdirs target-newlib"
3640 fi
3641 noconfigdirs="$noconfigdirs target-libgloss"
3642 # If we are not using a cross compiler, do configure newlib.
3643 # Note however, that newlib will only be configured in this situation
3644 # if the --with-newlib option has been given, because otherwise
3645 # 'target-newlib' will appear in skipdirs.
3646 ;;
3647 i[3456789]86-*-rdos*)
3648 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3649 ;;
3650 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3651 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3652 ;;
3653 sparc-*-sunos4*)
3654 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3655 ;;
91dfef96
JM
3656 bpf-*-*)
3657 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3658 ;;
6a789d5e
JM
3659 *-*-aix*)
3660 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3661 ;;
3662 *-*-beos*)
3663 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3664 ;;
671aa708 3665 *-*-chorusos)
0036370f 3666 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3667 ;;
6a789d5e
JM
3668 *-*-dragonfly*)
3669 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3670 ;;
3671 *-*-freebsd*)
3672 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3673 ;;
3674 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3675 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3676 ;;
3677 *-*-lynxos*)
3678 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3679 ;;
3680 *-*-mingw*)
3681 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3682 ;;
3683 *-*-netbsd*)
3684 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3685 ;;
3686 *-*-netware*)
3687 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3688 ;;
3689 *-*-tpf*)
3690 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3691 ;;
3692 *-*-uclinux*)
3693 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3694 ;;
3695 *-*-vxworks*)
3696 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3697 ;;
3698esac
3699
3700case "${target}" in
3701 *-*-chorusos)
3702 ;;
3be96231
TG
3703 aarch64-*-darwin*)
3704 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3705 noconfigdirs="$noconfigdirs sim target-rda"
3706 ;;
7431c1a1
AS
3707 amdgcn*-*-*)
3708 ;;
3be96231
TG
3709 arm-*-darwin*)
3710 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3711 noconfigdirs="$noconfigdirs sim target-rda"
3712 ;;
75eeae1a 3713 powerpc-*-darwin*)
e1514c3f 3714 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3715 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3716 ;;
354ebf88
RW
3717 i[3456789]86-*-darwin*)
3718 noconfigdirs="$noconfigdirs ld gprof"
3719 noconfigdirs="$noconfigdirs sim target-rda"
3720 ;;
3721 x86_64-*-darwin[912]*)
0db3a858
TG
3722 noconfigdirs="$noconfigdirs ld gas gprof"
3723 noconfigdirs="$noconfigdirs sim target-rda"
3724 ;;
42c1cd8a
AT
3725 *-*-darwin*)
3726 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3727 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3728 ;;
8c6d158a 3729 *-*-dragonfly*)
8c6d158a 3730 ;;
c3f84f61 3731 *-*-freebsd*)
88252529 3732 if test "x$with_gmp" = x \
c0d0a722 3733 && ! test -d ${srcdir}/gmp \
6de9cd9a
DN
3734 && test -f /usr/local/include/gmp.h; then
3735 with_gmp=/usr/local
3736 fi
6de9cd9a 3737 ;;
ef4e7569
US
3738 *-*-kaos*)
3739 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3740 noconfigdirs="$noconfigdirs target-libgloss"
3741 ;;
671aa708 3742 *-*-netbsd*)
671aa708 3743 ;;
61fec9ff 3744 *-*-netware*)
671aa708 3745 ;;
fd6487af
JS
3746 *-*-phoenix*)
3747 noconfigdirs="$noconfigdirs target-libgloss"
3748 ;;
671aa708 3749 *-*-rtems*)
2909494b 3750 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3751 ;;
a8ba31f2
EC
3752 # The tpf target doesn't support gdb yet.
3753 *-*-tpf*)
6a789d5e 3754 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3755 ;;
5785c0ed 3756 *-*-uclinux*)
6a789d5e 3757 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3758 ;;
671aa708 3759 *-*-vxworks*)
671aa708
NN
3760 ;;
3761 alpha*-dec-osf*)
3762 # ld works, but does not support shared libraries.
671aa708 3763 # gas doesn't generate exception information.
6a789d5e 3764 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3765 ;;
3766 alpha*-*-*vms*)
2909494b 3767 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3768 ;;
671aa708
NN
3769 alpha*-*-*)
3770 # newlib is not 64 bit ready
2909494b 3771 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3772 ;;
91dfef96
JM
3773 bpf-*-*)
3774 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3775 ;;
671aa708 3776 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3777 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708 3778 ;;
2fd88f4f
AK
3779 arc*-*-*)
3780 noconfigdirs="$noconfigdirs sim"
3781 ;;
671aa708 3782 arm-*-pe*)
2909494b 3783 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3784 ;;
671aa708 3785 arm-*-riscix*)
0036370f 3786 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3787 ;;
b588ae30
GJL
3788 avr-*-*)
3789 if test x${with_avrlibc} != xno; then
3790 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3791 fi
3792 ;;
671aa708 3793 c4x-*-* | tic4x-*-*)
0036370f 3794 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3795 ;;
0036370f
JM
3796 tic54x-*-*)
3797 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3798 ;;
671aa708 3799 d10v-*-*)
0036370f 3800 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3801 ;;
3802 d30v-*-*)
0036370f 3803 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3804 ;;
3805 fr30-*-elf*)
2909494b 3806 noconfigdirs="$noconfigdirs gdb"
671aa708 3807 ;;
a05c2c75
L
3808 ft32-*-*)
3809 noconfigdirs="$noconfigdirs target-rda gprof"
3810 ;;
55f2d967 3811 moxie-*-*)
a05c2c75 3812 noconfigdirs="$noconfigdirs"
55f2d967 3813 ;;
671aa708 3814 h8300*-*-*)
2909494b 3815 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3816 ;;
3817 h8500-*-*)
0036370f 3818 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3819 ;;
a05c2c75
L
3820 hppa*64*-*-hpux*)
3821 noconfigdirs="$noconfigdirs gdb"
3822 ;;
4569f85e 3823 hppa*64*-*-linux*)
671aa708 3824 ;;
56f8587a 3825 hppa*-*-linux*)
3e732ba0 3826 ;;
671aa708 3827 hppa*-*-*elf* | \
671aa708
NN
3828 hppa*-*-lites* | \
3829 hppa*-*-openbsd* | \
3830 hppa*64*-*-*)
671aa708 3831 ;;
c03353e2 3832 hppa*-*-pro*)
c03353e2 3833 ;;
671aa708 3834 hppa*-*-*)
2909494b 3835 noconfigdirs="$noconfigdirs ld"
671aa708 3836 ;;
fb87ad5d 3837 i960-*-*)
0036370f 3838 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3839 ;;
671aa708
NN
3840 ia64*-*-elf*)
3841 # No gdb support yet.
1bcce263 3842 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3843 ;;
3844 ia64*-**-hpux*)
5a2931d1 3845 # No ld support yet.
a05c2c75 3846 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
671aa708 3847 ;;
52535a64 3848 ia64*-*-*vms*)
091fe9ca
TG
3849 # No ld support yet.
3850 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3851 ;;
ef4c4300 3852 i[3456789]86-w64-mingw*)
ef4c4300
KT
3853 ;;
3854 i[3456789]86-*-mingw*)
b91f0a41 3855 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3856 ;;
671aa708
NN
3857 *-*-cygwin*)
3858 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3859 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3860 # always build newlib if winsup directory is present.
b91f0a41 3861 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3862 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3863 elif test -d "$srcdir/newlib"; then
b91f0a41 3864 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3865 fi
1c710c3c 3866 ;;
f2a0e225 3867 i[3456789]86-*-pe)
ebb9f8b0 3868 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3869 ;;
f2a0e225 3870 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3871 # The linker does not yet know about weak symbols in COFF,
3872 # and is not configured to handle mixed ELF and COFF.
0036370f 3873 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3874 ;;
f2a0e225 3875 i[3456789]86-*-sco*)
0036370f 3876 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3877 ;;
fbdd5d87 3878 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3879 noconfigdirs="$noconfigdirs target-libgloss"
3880 ;;
f2a0e225 3881 i[3456789]86-*-sysv4*)
0036370f 3882 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3883 ;;
f2a0e225 3884 i[3456789]86-*-beos*)
6a789d5e 3885 noconfigdirs="$noconfigdirs gdb"
3aa83176 3886 ;;
d1f8db0c 3887 i[3456789]86-*-rdos*)
6a789d5e 3888 noconfigdirs="$noconfigdirs gdb"
c03353e2 3889 ;;
671aa708 3890 mmix-*-*)
2909494b 3891 noconfigdirs="$noconfigdirs gdb"
671aa708 3892 ;;
ab34901f 3893 mt-*-*)
79dd769c
AH
3894 noconfigdirs="$noconfigdirs sim"
3895 ;;
58b40a67
FT
3896 nfp-*-*)
3897 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3898 noconfigdirs="$noconfigdirs $target_libraries"
3899 ;;
e6cbe965
SC
3900 pdp11-*-*)
3901 noconfigdirs="$noconfigdirs gdb gprof"
3902 ;;
671aa708
NN
3903 powerpc-*-aix*)
3904 # copied from rs6000-*-* entry
6a789d5e 3905 noconfigdirs="$noconfigdirs gprof"
671aa708 3906 ;;
4569f85e 3907 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3908 target_configdirs="$target_configdirs target-winsup"
0036370f 3909 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3910 # always build newlib.
3911 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3912 ;;
3913 # This is temporary until we can link against shared libraries
3914 powerpcle-*-solaris*)
0036370f 3915 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3916 ;;
3917 powerpc-*-beos*)
6a789d5e 3918 noconfigdirs="$noconfigdirs gdb"
671aa708 3919 ;;
671aa708 3920 rs6000-*-lynxos*)
6a789d5e 3921 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3922 ;;
3923 rs6000-*-aix*)
6a789d5e 3924 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3925 ;;
3926 rs6000-*-*)
2909494b 3927 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3928 ;;
3929 m68k-apollo-*)
0036370f 3930 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3931 ;;
ca9fe997 3932 microblaze*)
2909494b 3933 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3934 ;;
d896cc4d 3935 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
d9dced13
RS
3936 if test x$with_newlib = xyes; then
3937 noconfigdirs="$noconfigdirs gprof"
3938 fi
d9dced13 3939 ;;
671aa708 3940 mips*-*-irix5*)
0036370f 3941 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3942 ;;
3943 mips*-*-irix6*)
2909494b 3944 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3945 ;;
671aa708 3946 mips*-*-bsd*)
bc98bcc4 3947 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
671aa708 3948 ;;
671aa708 3949 mips*-*-linux*)
671aa708 3950 ;;
bc98bcc4
JBG
3951 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3952 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3953 noconfigdirs="$noconfigdirs ld gas gprof"
3954 ;;
671aa708 3955 mips*-*-*)
2909494b 3956 noconfigdirs="$noconfigdirs gprof"
671aa708 3957 ;;
738f2522 3958 nvptx*-*-*)
738f2522
BS
3959 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3960 ;;
bc6d9014 3961 sh-*-*)
ea2002ba
CB
3962 case "${target}" in
3963 sh*-*-elf)
2909494b 3964 ;;
ea2002ba 3965 *)
2909494b 3966 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 3967 esac
671aa708 3968 ;;
671aa708 3969 sparc-*-sunos4*)
6a789d5e 3970 if test x${is_cross_compiler} = xno ; then
671aa708
NN
3971 use_gnu_ld=no
3972 fi
3973 ;;
b42f0d7e 3974 tic6x-*-*)
0d557ff8 3975 noconfigdirs="$noconfigdirs sim"
b42f0d7e 3976 ;;
671aa708 3977 v810-*-*)
0036370f 3978 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
3979 ;;
3980 vax-*-*)
2909494b 3981 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3982 ;;
1fc1d82e
MR
3983 wasm32-*-*)
3984 noconfigdirs="$noconfigdirs ld"
3985 ;;
c6c0594e 3986 loongarch*-*-linux*)
3987 ;;
3988 loongarch*-*-*)
3989 noconfigdirs="$noconfigdirs gprof"
3990 ;;
671aa708 3991esac
79c06341 3992
671aa708
NN
3993# If we aren't building newlib, then don't build libgloss, since libgloss
3994# depends upon some newlib header files.
3995case "${noconfigdirs}" in
3996 *target-libgloss*) ;;
3997 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3998esac
3999
671aa708 4000# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
4001host_makefile_frag=/dev/null
4002if test -d ${srcdir}/config ; then
4003case "${host}" in
f2a0e225 4004 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
4005 host_makefile_frag="config/mh-djgpp"
4006 ;;
4007 *-cygwin*)
2a79c47f 4008
5213506e
RW
4009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4010$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 4011echo a >cygwin-cat-check
e25a8c82 4012if test `cat cygwin-cat-check` = a ; then
2a79c47f 4013 rm cygwin-cat-check
5213506e
RW
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4015$as_echo "yes" >&6; }
2a79c47f
NC
4016else
4017 rm cygwin-cat-check
5213506e
RW
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4019$as_echo "no" >&6; }
22e05272 4020 as_fn_error $? "The cat command does not ignore carriage return characters.
2a79c47f
NC
4021 Please either mount the build directory in binary mode or run the following
4022 commands before running any configure script:
4023set -o igncr
4024export SHELLOPTS
5213506e 4025 " "$LINENO" 5
2a79c47f
NC
4026fi
4027
671aa708
NN
4028 host_makefile_frag="config/mh-cygwin"
4029 ;;
c53a18d3 4030 *-mingw*)
1f5a6b84 4031 host_makefile_frag="config/mh-mingw"
95af8923 4032 ;;
cabb9d59 4033 alpha*-linux*)
13be44ed
UB
4034 host_makefile_frag="config/mh-alpha-linux"
4035 ;;
111eeb6e 4036 hppa*-hp-hpux*)
efd41714
PB
4037 host_makefile_frag="config/mh-pa"
4038 ;;
4039 hppa*-*)
4040 host_makefile_frag="config/mh-pa"
4041 ;;
54258e22 4042 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
d8ed14ce 4043 host_makefile_frag="config/mh-darwin"
be8fff81 4044 ;;
d19bca38
PB
4045 powerpc-*-aix*)
4046 host_makefile_frag="config/mh-ppc-aix"
4047 ;;
4048 rs6000-*-aix*)
4049 host_makefile_frag="config/mh-ppc-aix"
4050 ;;
671aa708
NN
4051esac
4052fi
4053
55ffb5ed 4054if test "${build}" != "${host}" ; then
0999159b
PB
4055 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4056 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 4057 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
c841dc0a 4058 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
0999159b 4059 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3b5e8ee4 4060 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
0999159b 4061 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 4062 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
b4c522fa 4063 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
0999159b
PB
4064 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4065 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4066 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4067 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4068 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4069 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4070else
4071 AR_FOR_BUILD="\$(AR)"
4072 AS_FOR_BUILD="\$(AS)"
fb0103e5 4073 CC_FOR_BUILD="\$(CC)"
0999159b 4074 CXX_FOR_BUILD="\$(CXX)"
3b5e8ee4 4075 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
0999159b 4076 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 4077 GOC_FOR_BUILD="\$(GOC)"
b4c522fa 4078 GDC_FOR_BUILD="\$(GDC)"
0999159b
PB
4079 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4080 LD_FOR_BUILD="\$(LD)"
4081 NM_FOR_BUILD="\$(NM)"
4082 RANLIB_FOR_BUILD="\$(RANLIB)"
4083 WINDRES_FOR_BUILD="\$(WINDRES)"
4084 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
4085fi
4086
4087ac_ext=c
1c710c3c
DJ
4088ac_cpp='$CPP $CPPFLAGS'
4089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4091ac_compiler_gnu=$ac_cv_c_compiler_gnu
4092if test -n "$ac_tool_prefix"; then
4093 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4094set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
4095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4096$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4097if ${ac_cv_prog_CC+:} false; then :
5213506e 4098 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4099else
4100 if test -n "$CC"; then
4101 ac_cv_prog_CC="$CC" # Let the user override the test.
4102else
4103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104for as_dir in $PATH
4105do
4106 IFS=$as_save_IFS
4107 test -z "$as_dir" && as_dir=.
5213506e 4108 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4110 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 4111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4112 break 2
4113 fi
4114done
5213506e
RW
4115 done
4116IFS=$as_save_IFS
1c710c3c
DJ
4117
4118fi
4119fi
4120CC=$ac_cv_prog_CC
4121if test -n "$CC"; then
5213506e
RW
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4123$as_echo "$CC" >&6; }
1c710c3c 4124else
5213506e
RW
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4126$as_echo "no" >&6; }
1c710c3c
DJ
4127fi
4128
5213506e 4129
1c710c3c
DJ
4130fi
4131if test -z "$ac_cv_prog_CC"; then
4132 ac_ct_CC=$CC
fb0103e5
RG
4133 # Extract the first word of "gcc", so it can be a program name with args.
4134set dummy gcc; ac_word=$2
5213506e
RW
4135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4136$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4137if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4138 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4139else
4140 if test -n "$ac_ct_CC"; then
4141 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4142else
4143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4144for as_dir in $PATH
4145do
4146 IFS=$as_save_IFS
4147 test -z "$as_dir" && as_dir=.
5213506e 4148 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4150 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4152 break 2
4153 fi
4154done
5213506e
RW
4155 done
4156IFS=$as_save_IFS
1c710c3c
DJ
4157
4158fi
4159fi
4160ac_ct_CC=$ac_cv_prog_ac_ct_CC
4161if test -n "$ac_ct_CC"; then
5213506e
RW
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4163$as_echo "$ac_ct_CC" >&6; }
1c710c3c 4164else
5213506e
RW
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4166$as_echo "no" >&6; }
1c710c3c
DJ
4167fi
4168
5213506e
RW
4169 if test "x$ac_ct_CC" = x; then
4170 CC=""
4171 else
4172 case $cross_compiling:$ac_tool_warned in
4173yes:)
4174{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4175$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4176ac_tool_warned=yes ;;
4177esac
4178 CC=$ac_ct_CC
4179 fi
1c710c3c
DJ
4180else
4181 CC="$ac_cv_prog_CC"
4182fi
4183
4184if test -z "$CC"; then
5213506e
RW
4185 if test -n "$ac_tool_prefix"; then
4186 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4187set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4189$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4190if ${ac_cv_prog_CC+:} false; then :
5213506e 4191 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4192else
4193 if test -n "$CC"; then
4194 ac_cv_prog_CC="$CC" # Let the user override the test.
4195else
1c710c3c
DJ
4196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197for as_dir in $PATH
4198do
4199 IFS=$as_save_IFS
4200 test -z "$as_dir" && as_dir=.
5213506e 4201 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4203 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4205 break 2
4206 fi
4207done
5213506e
RW
4208 done
4209IFS=$as_save_IFS
1c710c3c 4210
0b0dc272 4211fi
0b0dc272 4212fi
1c710c3c 4213CC=$ac_cv_prog_CC
af71363e 4214if test -n "$CC"; then
5213506e
RW
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4216$as_echo "$CC" >&6; }
2aeb72e9 4217else
5213506e
RW
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4219$as_echo "no" >&6; }
2aeb72e9
DD
4220fi
4221
2aeb72e9 4222
5213506e 4223 fi
1c710c3c 4224fi
55ffb5ed
NN
4225if test -z "$CC"; then
4226 # Extract the first word of "cc", so it can be a program name with args.
4227set dummy cc; ac_word=$2
5213506e
RW
4228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4229$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4230if ${ac_cv_prog_CC+:} false; then :
5213506e 4231 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4232else
4233 if test -n "$CC"; then
4234 ac_cv_prog_CC="$CC" # Let the user override the test.
4235else
0b0dc272 4236 ac_prog_rejected=no
1c710c3c
DJ
4237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238for as_dir in $PATH
4239do
4240 IFS=$as_save_IFS
4241 test -z "$as_dir" && as_dir=.
5213506e 4242 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4244 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4245 ac_prog_rejected=yes
4246 continue
4247 fi
4248 ac_cv_prog_CC="cc"
5213506e 4249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4250 break 2
4251 fi
4252done
5213506e
RW
4253 done
4254IFS=$as_save_IFS
1c710c3c 4255
55ffb5ed
NN
4256if test $ac_prog_rejected = yes; then
4257 # We found a bogon in the path, so make sure we never use it.
4258 set dummy $ac_cv_prog_CC
4259 shift
1c710c3c 4260 if test $# != 0; then
55ffb5ed
NN
4261 # We chose a different compiler from the bogus one.
4262 # However, it has the same basename, so the bogon will be chosen
4263 # first if we set CC to just the basename; use the full file name.
4264 shift
1c710c3c 4265 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4266 fi
4267fi
4268fi
4269fi
1c710c3c 4270CC=$ac_cv_prog_CC
55ffb5ed 4271if test -n "$CC"; then
5213506e
RW
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4273$as_echo "$CC" >&6; }
55ffb5ed 4274else
5213506e
RW
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4276$as_echo "no" >&6; }
55ffb5ed
NN
4277fi
4278
5213506e 4279
1c710c3c
DJ
4280fi
4281if test -z "$CC"; then
4282 if test -n "$ac_tool_prefix"; then
5213506e 4283 for ac_prog in cl.exe
1c710c3c
DJ
4284 do
4285 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4286set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4288$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4289if ${ac_cv_prog_CC+:} false; then :
5213506e 4290 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4291else
4292 if test -n "$CC"; then
4293 ac_cv_prog_CC="$CC" # Let the user override the test.
4294else
1c710c3c
DJ
4295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296for as_dir in $PATH
4297do
4298 IFS=$as_save_IFS
4299 test -z "$as_dir" && as_dir=.
5213506e 4300 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4302 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4304 break 2
4305 fi
4306done
5213506e
RW
4307 done
4308IFS=$as_save_IFS
1c710c3c 4309
55ffb5ed
NN
4310fi
4311fi
1c710c3c 4312CC=$ac_cv_prog_CC
55ffb5ed 4313if test -n "$CC"; then
5213506e
RW
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4315$as_echo "$CC" >&6; }
a4b9e93e 4316else
5213506e
RW
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4318$as_echo "no" >&6; }
fb0103e5 4319fi
af71363e 4320
5213506e 4321
1c710c3c
DJ
4322 test -n "$CC" && break
4323 done
af71363e 4324fi
1c710c3c
DJ
4325if test -z "$CC"; then
4326 ac_ct_CC=$CC
5213506e 4327 for ac_prog in cl.exe
1c710c3c
DJ
4328do
4329 # Extract the first word of "$ac_prog", so it can be a program name with args.
4330set dummy $ac_prog; ac_word=$2
5213506e
RW
4331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4332$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4333if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4334 $as_echo_n "(cached) " >&6
0b0dc272 4335else
1c710c3c
DJ
4336 if test -n "$ac_ct_CC"; then
4337 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4338else
1c710c3c
DJ
4339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340for as_dir in $PATH
4341do
4342 IFS=$as_save_IFS
4343 test -z "$as_dir" && as_dir=.
5213506e 4344 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4346 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4348 break 2
4349 fi
4350done
5213506e
RW
4351 done
4352IFS=$as_save_IFS
1c710c3c 4353
af71363e
AS
4354fi
4355fi
1c710c3c
DJ
4356ac_ct_CC=$ac_cv_prog_ac_ct_CC
4357if test -n "$ac_ct_CC"; then
5213506e
RW
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4359$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4360else
5213506e
RW
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4362$as_echo "no" >&6; }
af71363e 4363fi
0b0dc272 4364
5213506e 4365
1c710c3c
DJ
4366 test -n "$ac_ct_CC" && break
4367done
4368
5213506e
RW
4369 if test "x$ac_ct_CC" = x; then
4370 CC=""
4371 else
4372 case $cross_compiling:$ac_tool_warned in
4373yes:)
4374{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4375$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4376ac_tool_warned=yes ;;
4377esac
4378 CC=$ac_ct_CC
4379 fi
1c710c3c
DJ
4380fi
4381
4382fi
4383
4384
5213506e
RW
4385test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4387as_fn_error $? "no acceptable C compiler found in \$PATH
4388See \`config.log' for more details" "$LINENO" 5; }
1c710c3c
DJ
4389
4390# Provide some information about the compiler.
5213506e
RW
4391$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4392set X $ac_compile
4393ac_compiler=$2
4394for ac_option in --version -v -V -qversion; do
4395 { { ac_try="$ac_compiler $ac_option >&5"
4396case "(($ac_try" in
4397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398 *) ac_try_echo=$ac_try;;
4399esac
4400eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4401$as_echo "$ac_try_echo"; } >&5
4402 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4403 ac_status=$?
5213506e
RW
4404 if test -s conftest.err; then
4405 sed '10a\
4406... rest of stderr output deleted ...
4407 10q' conftest.err >conftest.er1
4408 cat conftest.er1 >&5
5213506e 4409 fi
22e05272 4410 rm -f conftest.er1 conftest.err
5213506e
RW
4411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4412 test $ac_status = 0; }
4413done
1c710c3c 4414
5213506e 4415cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4416/* end confdefs.h. */
4417
4418int
4419main ()
4420{
4421
4422 ;
4423 return 0;
4424}
4425_ACEOF
4426ac_clean_files_save=$ac_clean_files
22e05272 4427ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1c710c3c
DJ
4428# Try to create an executable without -o first, disregard a.out.
4429# It will help us diagnose broken compilers, and finding out an intuition
4430# of exeext.
22e05272
JM
4431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4432$as_echo_n "checking whether the C compiler works... " >&6; }
5213506e
RW
4433ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4434
4435# The possible output files:
4436ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4437
4438ac_rmfiles=
4439for ac_file in $ac_files
4440do
4441 case $ac_file in
4442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4443 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4444 esac
4445done
4446rm -f $ac_rmfiles
4447
4448if { { ac_try="$ac_link_default"
4449case "(($ac_try" in
4450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451 *) ac_try_echo=$ac_try;;
4452esac
4453eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4454$as_echo "$ac_try_echo"; } >&5
4455 (eval "$ac_link_default") 2>&5
1c710c3c 4456 ac_status=$?
5213506e
RW
4457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4458 test $ac_status = 0; }; then :
4459 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4460# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4461# in a Makefile. We should not override ac_cv_exeext if it was cached,
4462# so that the user can short-circuit this test for compilers unknown to
4463# Autoconf.
4464for ac_file in $ac_files ''
1c710c3c
DJ
4465do
4466 test -f "$ac_file" || continue
4467 case $ac_file in
5213506e 4468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4469 ;;
4470 [ab].out )
4471 # We found the default executable, but exeext='' is most
4472 # certainly right.
4473 break;;
4474 *.* )
5213506e
RW
4475 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4476 then :; else
4477 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4478 fi
4479 # We set ac_cv_exeext here because the later test for it is not
4480 # safe: cross compilers may not add the suffix if given an `-o'
4481 # argument, so we may need to know it at that point already.
4482 # Even if this section looks crufty: it has the advantage of
4483 # actually working.
1c710c3c
DJ
4484 break;;
4485 * )
4486 break;;
4487 esac
4488done
5213506e
RW
4489test "$ac_cv_exeext" = no && ac_cv_exeext=
4490
1c710c3c 4491else
5213506e
RW
4492 ac_file=''
4493fi
5213506e 4494if test -z "$ac_file"; then :
22e05272
JM
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4496$as_echo "no" >&6; }
4497$as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4498sed 's/^/| /' conftest.$ac_ext >&5
4499
5213506e
RW
4500{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4501$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4502as_fn_error 77 "C compiler cannot create executables
4503See \`config.log' for more details" "$LINENO" 5; }
4504else
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4506$as_echo "yes" >&6; }
1c710c3c 4507fi
22e05272
JM
4508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4509$as_echo_n "checking for C compiler default output file name... " >&6; }
4510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4511$as_echo "$ac_file" >&6; }
1c710c3c 4512ac_exeext=$ac_cv_exeext
1c710c3c 4513
22e05272 4514rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1c710c3c 4515ac_clean_files=$ac_clean_files_save
5213506e
RW
4516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4517$as_echo_n "checking for suffix of executables... " >&6; }
4518if { { ac_try="$ac_link"
4519case "(($ac_try" in
4520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4521 *) ac_try_echo=$ac_try;;
4522esac
4523eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4524$as_echo "$ac_try_echo"; } >&5
4525 (eval "$ac_link") 2>&5
1c710c3c 4526 ac_status=$?
5213506e
RW
4527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4528 test $ac_status = 0; }; then :
1c710c3c
DJ
4529 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4530# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4531# work properly (i.e., refer to `conftest.exe'), while it won't with
4532# `rm'.
4533for ac_file in conftest.exe conftest conftest.*; do
4534 test -f "$ac_file" || continue
4535 case $ac_file in
5213506e 4536 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4537 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4538 break;;
4539 * ) break;;
4540 esac
4541done
af71363e 4542else
5213506e
RW
4543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4544$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4545as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4546See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4547fi
22e05272 4548rm -f conftest conftest$ac_cv_exeext
5213506e
RW
4549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4550$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4551
4552rm -f conftest.$ac_ext
4553EXEEXT=$ac_cv_exeext
4554ac_exeext=$EXEEXT
22e05272
JM
4555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556/* end confdefs.h. */
4557#include <stdio.h>
4558int
4559main ()
4560{
4561FILE *f = fopen ("conftest.out", "w");
4562 return ferror (f) || fclose (f) != 0;
4563
4564 ;
4565 return 0;
4566}
4567_ACEOF
4568ac_clean_files="$ac_clean_files conftest.out"
4569# Check that the compiler produces executables we can run. If not, either
4570# the compiler is broken, or we cross compile.
4571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4572$as_echo_n "checking whether we are cross compiling... " >&6; }
4573if test "$cross_compiling" != yes; then
4574 { { ac_try="$ac_link"
4575case "(($ac_try" in
4576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577 *) ac_try_echo=$ac_try;;
4578esac
4579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4580$as_echo "$ac_try_echo"; } >&5
4581 (eval "$ac_link") 2>&5
4582 ac_status=$?
4583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4584 test $ac_status = 0; }
4585 if { ac_try='./conftest$ac_cv_exeext'
4586 { { case "(($ac_try" in
4587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4588 *) ac_try_echo=$ac_try;;
4589esac
4590eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4591$as_echo "$ac_try_echo"; } >&5
4592 (eval "$ac_try") 2>&5
4593 ac_status=$?
4594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4595 test $ac_status = 0; }; }; then
4596 cross_compiling=no
4597 else
4598 if test "$cross_compiling" = maybe; then
4599 cross_compiling=yes
4600 else
4601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4602$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4603as_fn_error $? "cannot run C compiled programs.
4604If you meant to cross compile, use \`--host'.
4605See \`config.log' for more details" "$LINENO" 5; }
4606 fi
4607 fi
4608fi
4609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4610$as_echo "$cross_compiling" >&6; }
4611
4612rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4613ac_clean_files=$ac_clean_files_save
5213506e
RW
4614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4615$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 4616if ${ac_cv_objext+:} false; then :
5213506e 4617 $as_echo_n "(cached) " >&6
1c710c3c 4618else
5213506e 4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4620/* end confdefs.h. */
4621
4622int
4623main ()
4624{
4625
4626 ;
4627 return 0;
4628}
4629_ACEOF
4630rm -f conftest.o conftest.obj
5213506e
RW
4631if { { ac_try="$ac_compile"
4632case "(($ac_try" in
4633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634 *) ac_try_echo=$ac_try;;
4635esac
4636eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4637$as_echo "$ac_try_echo"; } >&5
4638 (eval "$ac_compile") 2>&5
1c710c3c 4639 ac_status=$?
5213506e
RW
4640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4641 test $ac_status = 0; }; then :
4642 for ac_file in conftest.o conftest.obj conftest.*; do
4643 test -f "$ac_file" || continue;
1c710c3c 4644 case $ac_file in
5213506e 4645 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4646 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4647 break;;
4648 esac
4649done
4650else
5213506e 4651 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4652sed 's/^/| /' conftest.$ac_ext >&5
4653
5213506e
RW
4654{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4655$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4656as_fn_error $? "cannot compute suffix of object files: cannot compile
4657See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4658fi
1c710c3c
DJ
4659rm -f conftest.$ac_cv_objext conftest.$ac_ext
4660fi
5213506e
RW
4661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4662$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4663OBJEXT=$ac_cv_objext
4664ac_objext=$OBJEXT
5213506e
RW
4665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4666$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 4667if ${ac_cv_c_compiler_gnu+:} false; then :
5213506e 4668 $as_echo_n "(cached) " >&6
1c710c3c 4669else
5213506e 4670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4671/* end confdefs.h. */
4672
4673int
4674main ()
4675{
4676#ifndef __GNUC__
4677 choke me
4678#endif
4679
4680 ;
4681 return 0;
4682}
4683_ACEOF
5213506e 4684if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4685 ac_compiler_gnu=yes
4686else
5213506e 4687 ac_compiler_gnu=no
1c710c3c 4688fi
5213506e 4689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4690ac_cv_c_compiler_gnu=$ac_compiler_gnu
4691
4692fi
5213506e
RW
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4694$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4695if test $ac_compiler_gnu = yes; then
4696 GCC=yes
4697else
4698 GCC=
4699fi
1c710c3c
DJ
4700ac_test_CFLAGS=${CFLAGS+set}
4701ac_save_CFLAGS=$CFLAGS
5213506e
RW
4702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4703$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 4704if ${ac_cv_prog_cc_g+:} false; then :
5213506e
RW
4705 $as_echo_n "(cached) " >&6
4706else
4707 ac_save_c_werror_flag=$ac_c_werror_flag
4708 ac_c_werror_flag=yes
4709 ac_cv_prog_cc_g=no
4710 CFLAGS="-g"
4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4712/* end confdefs.h. */
4713
4714int
4715main ()
4716{
4717
4718 ;
4719 return 0;
4720}
4721_ACEOF
5213506e 4722if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4723 ac_cv_prog_cc_g=yes
4724else
5213506e
RW
4725 CFLAGS=""
4726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727/* end confdefs.h. */
4728
4729int
4730main ()
4731{
4732
4733 ;
4734 return 0;
4735}
4736_ACEOF
4737if ac_fn_c_try_compile "$LINENO"; then :
4738
4739else
4740 ac_c_werror_flag=$ac_save_c_werror_flag
4741 CFLAGS="-g"
4742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4743/* end confdefs.h. */
af71363e 4744
5213506e
RW
4745int
4746main ()
4747{
4748
4749 ;
4750 return 0;
4751}
4752_ACEOF
4753if ac_fn_c_try_compile "$LINENO"; then :
4754 ac_cv_prog_cc_g=yes
4755fi
4756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4757fi
5213506e 4758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4759fi
5213506e
RW
4760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4761 ac_c_werror_flag=$ac_save_c_werror_flag
4762fi
4763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4764$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4765if test "$ac_test_CFLAGS" = set; then
1c710c3c 4766 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4767elif test $ac_cv_prog_cc_g = yes; then
4768 if test "$GCC" = yes; then
4769 CFLAGS="-g -O2"
4770 else
4771 CFLAGS="-g"
4772 fi
4773else
4774 if test "$GCC" = yes; then
4775 CFLAGS="-O2"
4776 else
4777 CFLAGS=
4778 fi
4779fi
5213506e
RW
4780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4781$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 4782if ${ac_cv_prog_cc_c89+:} false; then :
5213506e 4783 $as_echo_n "(cached) " >&6
1c710c3c 4784else
5213506e 4785 ac_cv_prog_cc_c89=no
1c710c3c 4786ac_save_CC=$CC
5213506e 4787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4788/* end confdefs.h. */
4789#include <stdarg.h>
4790#include <stdio.h>
22e05272 4791struct stat;
1c710c3c
DJ
4792/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4793struct buf { int x; };
4794FILE * (*rcsopen) (struct buf *, struct stat *, int);
4795static char *e (p, i)
4796 char **p;
4797 int i;
4798{
4799 return p[i];
4800}
4801static char *f (char * (*g) (char **, int), char **p, ...)
4802{
4803 char *s;
4804 va_list v;
4805 va_start (v,p);
4806 s = g (p, va_arg (v,int));
4807 va_end (v);
4808 return s;
4809}
4810
4811/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4812 function prototypes and stuff, but not '\xHH' hex character constants.
4813 These don't provoke an error unfortunately, instead are silently treated
5213506e 4814 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4815 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4816 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4817 that's true only with -std. */
1c710c3c
DJ
4818int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4819
5213506e
RW
4820/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4821 inside strings and character constants. */
4822#define FOO(x) 'x'
4823int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4824
1c710c3c
DJ
4825int test (int i, double x);
4826struct s1 {int (*f) (int a);};
4827struct s2 {int (*f) (double a);};
4828int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4829int argc;
4830char **argv;
4831int
4832main ()
4833{
4834return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4835 ;
4836 return 0;
4837}
4838_ACEOF
5213506e
RW
4839for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4840 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4841do
4842 CC="$ac_save_CC $ac_arg"
5213506e
RW
4843 if ac_fn_c_try_compile "$LINENO"; then :
4844 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4845fi
5213506e
RW
4846rm -f core conftest.err conftest.$ac_objext
4847 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4848done
5213506e 4849rm -f conftest.$ac_ext
1c710c3c
DJ
4850CC=$ac_save_CC
4851
4852fi
5213506e
RW
4853# AC_CACHE_VAL
4854case "x$ac_cv_prog_cc_c89" in
4855 x)
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4857$as_echo "none needed" >&6; } ;;
4858 xno)
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4860$as_echo "unsupported" >&6; } ;;
1c710c3c 4861 *)
5213506e
RW
4862 CC="$CC $ac_cv_prog_cc_c89"
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4864$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4865esac
5213506e 4866if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4867
2aeb72e9
DD
4868fi
4869
2aeb72e9
DD
4870ac_ext=c
4871ac_cpp='$CPP $CPPFLAGS'
4872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4874ac_compiler_gnu=$ac_cv_c_compiler_gnu
4875
91743432
NC
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4877$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4878if ${ac_cv_prog_cc_c99+:} false; then :
4879 $as_echo_n "(cached) " >&6
4880else
4881 ac_cv_prog_cc_c99=no
4882ac_save_CC=$CC
4883cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884/* end confdefs.h. */
4885#include <stdarg.h>
4886#include <stdbool.h>
4887#include <stdlib.h>
4888#include <wchar.h>
4889#include <stdio.h>
4890
4891// Check varargs macros. These examples are taken from C99 6.10.3.5.
4892#define debug(...) fprintf (stderr, __VA_ARGS__)
4893#define showlist(...) puts (#__VA_ARGS__)
4894#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4895static void
4896test_varargs_macros (void)
4897{
4898 int x = 1234;
4899 int y = 5678;
4900 debug ("Flag");
4901 debug ("X = %d\n", x);
4902 showlist (The first, second, and third items.);
4903 report (x>y, "x is %d but y is %d", x, y);
4904}
4905
4906// Check long long types.
4907#define BIG64 18446744073709551615ull
4908#define BIG32 4294967295ul
4909#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4910#if !BIG_OK
4911 your preprocessor is broken;
4912#endif
4913#if BIG_OK
4914#else
4915 your preprocessor is broken;
4916#endif
4917static long long int bignum = -9223372036854775807LL;
4918static unsigned long long int ubignum = BIG64;
4919
4920struct incomplete_array
4921{
4922 int datasize;
4923 double data[];
4924};
4925
4926struct named_init {
4927 int number;
4928 const wchar_t *name;
4929 double average;
4930};
4931
4932typedef const char *ccp;
4933
4934static inline int
4935test_restrict (ccp restrict text)
4936{
4937 // See if C++-style comments work.
4938 // Iterate through items via the restricted pointer.
4939 // Also check for declarations in for loops.
4940 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4941 continue;
4942 return 0;
4943}
4944
4945// Check varargs and va_copy.
4946static void
4947test_varargs (const char *format, ...)
4948{
4949 va_list args;
4950 va_start (args, format);
4951 va_list args_copy;
4952 va_copy (args_copy, args);
4953
4954 const char *str;
4955 int number;
4956 float fnumber;
4957
4958 while (*format)
4959 {
4960 switch (*format++)
4961 {
4962 case 's': // string
4963 str = va_arg (args_copy, const char *);
4964 break;
4965 case 'd': // int
4966 number = va_arg (args_copy, int);
4967 break;
4968 case 'f': // float
4969 fnumber = va_arg (args_copy, double);
4970 break;
4971 default:
4972 break;
4973 }
4974 }
4975 va_end (args_copy);
4976 va_end (args);
4977}
4978
4979int
4980main ()
4981{
4982
4983 // Check bool.
4984 _Bool success = false;
4985
4986 // Check restrict.
4987 if (test_restrict ("String literal") == 0)
4988 success = true;
4989 char *restrict newvar = "Another string";
4990
4991 // Check varargs.
4992 test_varargs ("s, d' f .", "string", 65, 34.234);
4993 test_varargs_macros ();
4994
4995 // Check flexible array members.
4996 struct incomplete_array *ia =
4997 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4998 ia->datasize = 10;
4999 for (int i = 0; i < ia->datasize; ++i)
5000 ia->data[i] = i * 1.234;
5001
5002 // Check named initializers.
5003 struct named_init ni = {
5004 .number = 34,
5005 .name = L"Test wide string",
5006 .average = 543.34343,
5007 };
5008
5009 ni.number = 58;
5010
5011 int dynamic_array[ni.number];
5012 dynamic_array[ni.number - 1] = 543;
5013
5014 // work around unused variable warnings
5015 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5016 || dynamic_array[ni.number - 1] != 543);
5017
5018 ;
5019 return 0;
5020}
5021_ACEOF
5022for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5023do
5024 CC="$ac_save_CC $ac_arg"
5025 if ac_fn_c_try_compile "$LINENO"; then :
5026 ac_cv_prog_cc_c99=$ac_arg
5027fi
5028rm -f core conftest.err conftest.$ac_objext
5029 test "x$ac_cv_prog_cc_c99" != "xno" && break
5030done
5031rm -f conftest.$ac_ext
5032CC=$ac_save_CC
5033
5034fi
5035# AC_CACHE_VAL
5036case "x$ac_cv_prog_cc_c99" in
5037 x)
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5039$as_echo "none needed" >&6; } ;;
5040 xno)
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5042$as_echo "unsupported" >&6; } ;;
5043 *)
5044 CC="$CC $ac_cv_prog_cc_c99"
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5046$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5047esac
5048if test "x$ac_cv_prog_cc_c99" != xno; then :
5049
5050fi
5051
5052
5213506e 5053ac_ext=cpp
2aeb72e9
DD
5054ac_cpp='$CXXCPP $CPPFLAGS'
5055ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5056ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5057ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
5058if test -z "$CXX"; then
5059 if test -n "$CCC"; then
5060 CXX=$CCC
5061 else
5062 if test -n "$ac_tool_prefix"; then
5063 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
5064 do
5065 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5066set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
5067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5068$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5069if ${ac_cv_prog_CXX+:} false; then :
5213506e 5070 $as_echo_n "(cached) " >&6
2aeb72e9
DD
5071else
5072 if test -n "$CXX"; then
5073 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5074else
5075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076for as_dir in $PATH
5077do
5078 IFS=$as_save_IFS
5079 test -z "$as_dir" && as_dir=.
5213506e 5080 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2aeb72e9 5082 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 5083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
5084 break 2
5085 fi
5086done
5213506e
RW
5087 done
5088IFS=$as_save_IFS
55ffb5ed 5089
c3a86da9
DJ
5090fi
5091fi
5092CXX=$ac_cv_prog_CXX
5093if test -n "$CXX"; then
5213506e
RW
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5095$as_echo "$CXX" >&6; }
c3a86da9 5096else
5213506e
RW
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098$as_echo "no" >&6; }
c3a86da9
DJ
5099fi
5100
5213506e 5101
c3a86da9
DJ
5102 test -n "$CXX" && break
5103 done
5104fi
5105if test -z "$CXX"; then
5106 ac_ct_CXX=$CXX
5213506e 5107 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
5108do
5109 # Extract the first word of "$ac_prog", so it can be a program name with args.
5110set dummy $ac_prog; ac_word=$2
5213506e
RW
5111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5112$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5113if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5213506e 5114 $as_echo_n "(cached) " >&6
c3a86da9
DJ
5115else
5116 if test -n "$ac_ct_CXX"; then
5117 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5118else
5119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120for as_dir in $PATH
5121do
5122 IFS=$as_save_IFS
5123 test -z "$as_dir" && as_dir=.
5213506e 5124 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c3a86da9 5126 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 5127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
5128 break 2
5129 fi
5130done
5213506e
RW
5131 done
5132IFS=$as_save_IFS
c3a86da9
DJ
5133
5134fi
5135fi
5136ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5137if test -n "$ac_ct_CXX"; then
5213506e
RW
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5139$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 5140else
5213506e
RW
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5142$as_echo "no" >&6; }
c3a86da9
DJ
5143fi
5144
5213506e 5145
c3a86da9
DJ
5146 test -n "$ac_ct_CXX" && break
5147done
c3a86da9 5148
5213506e
RW
5149 if test "x$ac_ct_CXX" = x; then
5150 CXX="g++"
5151 else
5152 case $cross_compiling:$ac_tool_warned in
5153yes:)
5154{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5155$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5156ac_tool_warned=yes ;;
5157esac
5158 CXX=$ac_ct_CXX
5159 fi
c3a86da9
DJ
5160fi
5161
5213506e
RW
5162 fi
5163fi
c3a86da9 5164# Provide some information about the compiler.
5213506e
RW
5165$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5166set X $ac_compile
5167ac_compiler=$2
5168for ac_option in --version -v -V -qversion; do
5169 { { ac_try="$ac_compiler $ac_option >&5"
5170case "(($ac_try" in
5171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5172 *) ac_try_echo=$ac_try;;
5173esac
5174eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5175$as_echo "$ac_try_echo"; } >&5
5176 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 5177 ac_status=$?
5213506e
RW
5178 if test -s conftest.err; then
5179 sed '10a\
5180... rest of stderr output deleted ...
5181 10q' conftest.err >conftest.er1
5182 cat conftest.er1 >&5
5213506e 5183 fi
22e05272 5184 rm -f conftest.er1 conftest.err
5213506e
RW
5185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5186 test $ac_status = 0; }
5187done
c3a86da9 5188
5213506e
RW
5189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5190$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
22e05272 5191if ${ac_cv_cxx_compiler_gnu+:} false; then :
5213506e 5192 $as_echo_n "(cached) " >&6
c3a86da9 5193else
5213506e 5194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5195/* end confdefs.h. */
5196
5197int
5198main ()
5199{
5200#ifndef __GNUC__
5201 choke me
5202#endif
5203
5204 ;
5205 return 0;
5206}
5207_ACEOF
5213506e 5208if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5209 ac_compiler_gnu=yes
5210else
5213506e 5211 ac_compiler_gnu=no
c3a86da9 5212fi
5213506e 5213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
5214ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5215
5216fi
5213506e
RW
5217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5218$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5219if test $ac_compiler_gnu = yes; then
5220 GXX=yes
5221else
5222 GXX=
5223fi
c3a86da9
DJ
5224ac_test_CXXFLAGS=${CXXFLAGS+set}
5225ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
5226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5227$as_echo_n "checking whether $CXX accepts -g... " >&6; }
22e05272 5228if ${ac_cv_prog_cxx_g+:} false; then :
5213506e
RW
5229 $as_echo_n "(cached) " >&6
5230else
5231 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5232 ac_cxx_werror_flag=yes
5233 ac_cv_prog_cxx_g=no
5234 CXXFLAGS="-g"
5235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5236/* end confdefs.h. */
5237
5238int
5239main ()
5240{
5241
5242 ;
5243 return 0;
5244}
5245_ACEOF
5213506e 5246if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5247 ac_cv_prog_cxx_g=yes
5248else
5213506e
RW
5249 CXXFLAGS=""
5250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5251/* end confdefs.h. */
5213506e 5252
c3a86da9
DJ
5253int
5254main ()
5255{
5213506e 5256
c3a86da9
DJ
5257 ;
5258 return 0;
5259}
5260_ACEOF
5213506e 5261if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 5262
5213506e
RW
5263else
5264 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5265 CXXFLAGS="-g"
5266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5267/* end confdefs.h. */
5213506e 5268
c3a86da9
DJ
5269int
5270main ()
5271{
5213506e 5272
c3a86da9
DJ
5273 ;
5274 return 0;
5275}
5276_ACEOF
5213506e
RW
5277if ac_fn_cxx_try_compile "$LINENO"; then :
5278 ac_cv_prog_cxx_g=yes
11a67599 5279fi
5213506e
RW
5280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5281fi
5282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5283fi
5284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5286fi
5287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5288$as_echo "$ac_cv_prog_cxx_g" >&6; }
5289if test "$ac_test_CXXFLAGS" = set; then
5290 CXXFLAGS=$ac_save_CXXFLAGS
5291elif test $ac_cv_prog_cxx_g = yes; then
5292 if test "$GXX" = yes; then
5293 CXXFLAGS="-g -O2"
5294 else
5295 CXXFLAGS="-g"
5296 fi
5297else
5298 if test "$GXX" = yes; then
5299 CXXFLAGS="-O2"
5300 else
5301 CXXFLAGS=
5302 fi
c3a86da9 5303fi
c3a86da9
DJ
5304ac_ext=c
5305ac_cpp='$CPP $CPPFLAGS'
5306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5308ac_compiler_gnu=$ac_cv_c_compiler_gnu
5309
5310
5311# We must set the default linker to the linker used by gcc for the correct
5312# operation of libtool. If LD is not defined and we are using gcc, try to
5313# set the LD default to the ld used by gcc.
5314if test -z "$LD"; then
5315 if test "$GCC" = yes; then
5316 case $build in
5317 *-*-mingw*)
5318 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5319 *)
5320 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5321 esac
5322 case $gcc_prog_ld in
5323 # Accept absolute paths.
5324 [\\/]* | [A-Za-z]:[\\/]*)
5325 LD="$gcc_prog_ld" ;;
5326 esac
5327 fi
23f6b2f9
PB
5328fi
5329
0b21f5d3
EB
5330# Check whether -static-libstdc++ -static-libgcc is supported.
5331have_static_libs=no
5332if test "$GCC" = yes; then
5333 saved_LDFLAGS="$LDFLAGS"
5334
5335 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5337$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5338 ac_ext=cpp
5339ac_cpp='$CXXCPP $CPPFLAGS'
5340ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5341ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5342ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5343
5344
5345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346/* end confdefs.h. */
0d6414b2
EB
5347
5348#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5349#error -static-libstdc++ not implemented
5350#endif
0b21f5d3
EB
5351int main() {}
5352_ACEOF
5353if ac_fn_cxx_try_link "$LINENO"; then :
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5355$as_echo "yes" >&6; }; have_static_libs=yes
5356else
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358$as_echo "no" >&6; }
5359fi
5360rm -f core conftest.err conftest.$ac_objext \
5361 conftest$ac_exeext conftest.$ac_ext
5362 ac_ext=c
5363ac_cpp='$CPP $CPPFLAGS'
5364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5366ac_compiler_gnu=$ac_cv_c_compiler_gnu
5367
5368
5369 LDFLAGS="$saved_LDFLAGS"
5370fi
5371
23f6b2f9
PB
5372
5373
55ffb5ed 5374
1c710c3c
DJ
5375if test -n "$ac_tool_prefix"; then
5376 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 5377set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
5378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5379$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5380if ${ac_cv_prog_GNATBIND+:} false; then :
5213506e 5381 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5382else
5383 if test -n "$GNATBIND"; then
5384 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5385else
1c710c3c
DJ
5386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387for as_dir in $PATH
5388do
5389 IFS=$as_save_IFS
5390 test -z "$as_dir" && as_dir=.
5213506e 5391 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5393 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5395 break 2
5396 fi
5397done
5213506e
RW
5398 done
5399IFS=$as_save_IFS
1c710c3c 5400
55ffb5ed
NN
5401fi
5402fi
1c710c3c 5403GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5404if test -n "$GNATBIND"; then
5213506e
RW
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5406$as_echo "$GNATBIND" >&6; }
55ffb5ed 5407else
5213506e
RW
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5409$as_echo "no" >&6; }
55ffb5ed
NN
5410fi
5411
5213506e 5412
1c710c3c 5413fi
55ffb5ed 5414if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5415 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5416 # Extract the first word of "gnatbind", so it can be a program name with args.
5417set dummy gnatbind; ac_word=$2
5213506e
RW
5418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5419$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5420if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5213506e 5421 $as_echo_n "(cached) " >&6
55ffb5ed 5422else
1c710c3c
DJ
5423 if test -n "$ac_ct_GNATBIND"; then
5424 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5425else
1c710c3c
DJ
5426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427for as_dir in $PATH
5428do
5429 IFS=$as_save_IFS
5430 test -z "$as_dir" && as_dir=.
5213506e 5431 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5433 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5435 break 2
5436 fi
5437done
5213506e
RW
5438 done
5439IFS=$as_save_IFS
1c710c3c 5440
55ffb5ed
NN
5441fi
5442fi
1c710c3c
DJ
5443ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5444if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5446$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5447else
5213506e
RW
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449$as_echo "no" >&6; }
55ffb5ed
NN
5450fi
5451
5213506e
RW
5452 if test "x$ac_ct_GNATBIND" = x; then
5453 GNATBIND="no"
5454 else
5455 case $cross_compiling:$ac_tool_warned in
5456yes:)
5457{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5458$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5459ac_tool_warned=yes ;;
5460esac
5461 GNATBIND=$ac_ct_GNATBIND
5462 fi
55ffb5ed 5463else
1c710c3c 5464 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5465fi
5466
1c710c3c
DJ
5467if test -n "$ac_tool_prefix"; then
5468 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5469set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5471$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5472if ${ac_cv_prog_GNATMAKE+:} false; then :
5213506e 5473 $as_echo_n "(cached) " >&6
5305be7e
RG
5474else
5475 if test -n "$GNATMAKE"; then
5476 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5477else
1c710c3c
DJ
5478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479for as_dir in $PATH
5480do
5481 IFS=$as_save_IFS
5482 test -z "$as_dir" && as_dir=.
5213506e 5483 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5485 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5487 break 2
5488 fi
5489done
5213506e
RW
5490 done
5491IFS=$as_save_IFS
1c710c3c 5492
5305be7e
RG
5493fi
5494fi
1c710c3c 5495GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5496if test -n "$GNATMAKE"; then
5213506e
RW
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5498$as_echo "$GNATMAKE" >&6; }
5305be7e 5499else
5213506e
RW
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5501$as_echo "no" >&6; }
5305be7e
RG
5502fi
5503
5213506e 5504
1c710c3c 5505fi
5305be7e 5506if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5507 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5508 # Extract the first word of "gnatmake", so it can be a program name with args.
5509set dummy gnatmake; ac_word=$2
5213506e
RW
5510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5511$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5512if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5213506e 5513 $as_echo_n "(cached) " >&6
5305be7e 5514else
1c710c3c
DJ
5515 if test -n "$ac_ct_GNATMAKE"; then
5516 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5517else
1c710c3c
DJ
5518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5519for as_dir in $PATH
5520do
5521 IFS=$as_save_IFS
5522 test -z "$as_dir" && as_dir=.
5213506e 5523 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5525 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5527 break 2
5528 fi
5529done
5213506e
RW
5530 done
5531IFS=$as_save_IFS
1c710c3c 5532
5305be7e
RG
5533fi
5534fi
1c710c3c
DJ
5535ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5536if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5538$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5539else
5213506e
RW
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5541$as_echo "no" >&6; }
5305be7e
RG
5542fi
5543
5213506e
RW
5544 if test "x$ac_ct_GNATMAKE" = x; then
5545 GNATMAKE="no"
5546 else
5547 case $cross_compiling:$ac_tool_warned in
5548yes:)
5549{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5550$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5551ac_tool_warned=yes ;;
5552esac
5553 GNATMAKE=$ac_ct_GNATMAKE
5554 fi
5305be7e 5555else
1c710c3c 5556 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5557fi
5558
71f068a9
RS
5559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5560$as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
22e05272 5561if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5213506e 5562 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5563else
5564 cat >conftest.adb <<EOF
71f068a9
RS
5565pragma Warnings (Off);
5566with System.CRTL;
5567pragma Warnings (On);
5568use type System.CRTL.int64;
55ffb5ed
NN
5569procedure conftest is begin null; end conftest;
5570EOF
5571acx_cv_cc_gcc_supports_ada=no
5572# There is a bug in old released versions of GCC which causes the
5573# driver to exit successfully when the appropriate language module
5574# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5575# Therefore we must check for the error message as well as an
5576# unsuccessful exit.
1db673ca
RO
5577# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5578# given a .adb file, but produce no object file. So we must check
5579# if an object file was really produced to guard against this.
55ffb5ed 5580errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5581if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5582 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5583fi
5584rm -f conftest.*
5585fi
5213506e
RW
5586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5587$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5588
7cb62ef1 5589if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5590 have_gnat=yes
5591else
5592 have_gnat=no
5593fi
5594
5fee5ec3
IB
5595
5596
5597if test -n "$ac_tool_prefix"; then
5598 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5599set dummy ${ac_tool_prefix}gdc; ac_word=$2
5600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601$as_echo_n "checking for $ac_word... " >&6; }
5602if ${ac_cv_prog_GDC+:} false; then :
5603 $as_echo_n "(cached) " >&6
5604else
5605 if test -n "$GDC"; then
5606 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5607else
5608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609for as_dir in $PATH
5610do
5611 IFS=$as_save_IFS
5612 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5615 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5617 break 2
5618 fi
5619done
5620 done
5621IFS=$as_save_IFS
5622
5623fi
5624fi
5625GDC=$ac_cv_prog_GDC
5626if test -n "$GDC"; then
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5628$as_echo "$GDC" >&6; }
5629else
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631$as_echo "no" >&6; }
5632fi
5633
5634
5635fi
5636if test -z "$ac_cv_prog_GDC"; then
5637 ac_ct_GDC=$GDC
5638 # Extract the first word of "gdc", so it can be a program name with args.
5639set dummy gdc; ac_word=$2
5640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5641$as_echo_n "checking for $ac_word... " >&6; }
5642if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5643 $as_echo_n "(cached) " >&6
5644else
5645 if test -n "$ac_ct_GDC"; then
5646 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5647else
5648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649for as_dir in $PATH
5650do
5651 IFS=$as_save_IFS
5652 test -z "$as_dir" && as_dir=.
5653 for ac_exec_ext in '' $ac_executable_extensions; do
5654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5655 ac_cv_prog_ac_ct_GDC="gdc"
5656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5657 break 2
5658 fi
5659done
5660 done
5661IFS=$as_save_IFS
5662
5663fi
5664fi
5665ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5666if test -n "$ac_ct_GDC"; then
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5668$as_echo "$ac_ct_GDC" >&6; }
5669else
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671$as_echo "no" >&6; }
5672fi
5673
5674 if test "x$ac_ct_GDC" = x; then
5675 GDC="no"
5676 else
5677 case $cross_compiling:$ac_tool_warned in
5678yes:)
5679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5681ac_tool_warned=yes ;;
5682esac
5683 GDC=$ac_ct_GDC
5684 fi
5685else
5686 GDC="$ac_cv_prog_GDC"
5687fi
5688
7c6ae994
IB
5689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5690$as_echo_n "checking whether the D compiler works... " >&6; }
5691if ${acx_cv_d_compiler_works+:} false; then :
5692 $as_echo_n "(cached) " >&6
5693else
5694 cat >conftest.d <<EOF
5695module conftest; int main() { return 0; }
5696EOF
5697acx_cv_d_compiler_works=no
5fee5ec3 5698if test "x$GDC" != xno; then
7c6ae994
IB
5699 errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5700 if test x"$errors" = x && test -f conftest.$ac_objext; then
5701 acx_cv_d_compiler_works=yes
5702 fi
5703 rm -f conftest.*
5704fi
5705fi
5706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5707$as_echo "$acx_cv_d_compiler_works" >&6; }
5708if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5fee5ec3
IB
5709 have_gdc=yes
5710else
5711 have_gdc=no
5712fi
5713
5213506e
RW
5714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5715$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
22e05272 5716if ${gcc_cv_prog_cmp_skip+:} false; then :
5213506e 5717 $as_echo_n "(cached) " >&6
a76494aa
PB
5718else
5719 echo abfoo >t1
5720 echo cdfoo >t2
b55e6680 5721 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5722 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5723 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5724 :
5725 else
5726 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5727 fi
5728 fi
a76494aa
PB
5729 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5730 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5731 :
a76494aa
PB
5732 else
5733 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5734 fi
5735 fi
5736 rm t1 t2
5737
5738fi
5213506e
RW
5739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5740$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5741do_compare="$gcc_cv_prog_cmp_skip"
5742
5743
55ffb5ed 5744
ff3ac0f4
ILT
5745# Check whether --enable-bootstrap was given.
5746if test "${enable_bootstrap+set}" = set; then :
5747 enableval=$enable_bootstrap;
5748else
5749 enable_bootstrap=default
5750fi
5751
5752
5753# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5754if test -r $srcdir/gcc/configure; then
5755 have_compiler=yes
5756else
5757 have_compiler=no
5758fi
ff3ac0f4
ILT
5759
5760case "$have_compiler:$host:$target:$enable_bootstrap" in
5761 *:*:*:no) ;;
5762
5763 # Default behavior. Enable bootstrap if we have a compiler
5764 # and we are in a native configuration.
5765 yes:$build:$build:default)
5766 enable_bootstrap=yes ;;
5767
5768 *:*:*:default)
5769 enable_bootstrap=no ;;
5770
5771 # We have a compiler and we are in a native configuration, bootstrap is ok
5772 yes:$build:$build:yes)
5773 ;;
5774
5775 # Other configurations, but we have a compiler. Assume the user knows
5776 # what he's doing.
5777 yes:*:*:yes)
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5779$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5780 ;;
5781
5782 # No compiler: if they passed --enable-bootstrap explicitly, fail
5783 no:*:*:yes)
22e05272 5784 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ff3ac0f4
ILT
5785
5786 # Fail if wrong command line
5787 *)
22e05272 5788 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
ff3ac0f4
ILT
5789 ;;
5790esac
5791
5329b59a 5792# When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
ffac9597
JM
5793# C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5794# require C++11 (or higher).
46070488 5795if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5329b59a 5796 CXX="$CXX -std=c++11"
ffac9597
JM
5797elif test "$have_compiler" = yes; then
5798 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5799 ac_ext=cpp
5800ac_cpp='$CXXCPP $CPPFLAGS'
5801ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5802ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5803ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5804 ac_success=no
5805
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5807$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5808if ${ax_cv_cxx_compile_cxx11+:} false; then :
5809 $as_echo_n "(cached) " >&6
5810else
5811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5812/* end confdefs.h. */
5813
5814
5815// If the compiler admits that it is not ready for C++11, why torture it?
5816// Hopefully, this will speed up the test.
5817
5818#ifndef __cplusplus
5819
5820#error "This is not a C++ compiler"
5821
5822#elif __cplusplus < 201103L
5823
5824#error "This is not a C++11 compiler"
5825
5826#else
5827
5828namespace cxx11
5829{
5830
5831 namespace test_static_assert
5832 {
5833
5834 template <typename T>
5835 struct check
5836 {
5837 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5838 };
5839
5840 }
5841
5842 namespace test_final_override
5843 {
5844
5845 struct Base
5846 {
5847 virtual ~Base() {}
5848 virtual void f() {}
5849 };
5850
5851 struct Derived : public Base
5852 {
5853 virtual ~Derived() override {}
5854 virtual void f() override {}
5855 };
5856
5857 }
5858
5859 namespace test_double_right_angle_brackets
5860 {
5861
5862 template < typename T >
5863 struct check {};
5864
5865 typedef check<void> single_type;
5866 typedef check<check<void>> double_type;
5867 typedef check<check<check<void>>> triple_type;
5868 typedef check<check<check<check<void>>>> quadruple_type;
5869
5870 }
5871
5872 namespace test_decltype
5873 {
5874
5875 int
5876 f()
5877 {
5878 int a = 1;
5879 decltype(a) b = 2;
5880 return a + b;
5881 }
5882
5883 }
5884
5885 namespace test_type_deduction
5886 {
5887
5888 template < typename T1, typename T2 >
5889 struct is_same
5890 {
5891 static const bool value = false;
5892 };
5893
5894 template < typename T >
5895 struct is_same<T, T>
5896 {
5897 static const bool value = true;
5898 };
5899
5900 template < typename T1, typename T2 >
5901 auto
5902 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5903 {
5904 return a1 + a2;
5905 }
5906
5907 int
5908 test(const int c, volatile int v)
5909 {
5910 static_assert(is_same<int, decltype(0)>::value == true, "");
5911 static_assert(is_same<int, decltype(c)>::value == false, "");
5912 static_assert(is_same<int, decltype(v)>::value == false, "");
5913 auto ac = c;
5914 auto av = v;
5915 auto sumi = ac + av + 'x';
5916 auto sumf = ac + av + 1.0;
5917 static_assert(is_same<int, decltype(ac)>::value == true, "");
5918 static_assert(is_same<int, decltype(av)>::value == true, "");
5919 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5920 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5921 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5922 return (sumf > 0.0) ? sumi : add(c, v);
5923 }
5924
5925 }
5926
5927 namespace test_noexcept
5928 {
5929
5930 int f() { return 0; }
5931 int g() noexcept { return 0; }
5932
5933 static_assert(noexcept(f()) == false, "");
5934 static_assert(noexcept(g()) == true, "");
5935
5936 }
5937
5938 namespace test_constexpr
5939 {
5940
5941 template < typename CharT >
5942 unsigned long constexpr
5943 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5944 {
5945 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5946 }
5947
5948 template < typename CharT >
5949 unsigned long constexpr
5950 strlen_c(const CharT *const s) noexcept
5951 {
5952 return strlen_c_r(s, 0UL);
5953 }
5954
5955 static_assert(strlen_c("") == 0UL, "");
5956 static_assert(strlen_c("1") == 1UL, "");
5957 static_assert(strlen_c("example") == 7UL, "");
5958 static_assert(strlen_c("another\0example") == 7UL, "");
5959
5960 }
5961
5962 namespace test_rvalue_references
5963 {
5964
5965 template < int N >
5966 struct answer
5967 {
5968 static constexpr int value = N;
5969 };
5970
5971 answer<1> f(int&) { return answer<1>(); }
5972 answer<2> f(const int&) { return answer<2>(); }
5973 answer<3> f(int&&) { return answer<3>(); }
5974
5975 void
5976 test()
5977 {
5978 int i = 0;
5979 const int c = 0;
5980 static_assert(decltype(f(i))::value == 1, "");
5981 static_assert(decltype(f(c))::value == 2, "");
5982 static_assert(decltype(f(0))::value == 3, "");
5983 }
5984
5985 }
5986
5987 namespace test_uniform_initialization
5988 {
5989
5990 struct test
5991 {
5992 static const int zero {};
5993 static const int one {1};
5994 };
5995
5996 static_assert(test::zero == 0, "");
5997 static_assert(test::one == 1, "");
5998
5999 }
6000
6001 namespace test_lambdas
6002 {
6003
6004 void
6005 test1()
6006 {
6007 auto lambda1 = [](){};
6008 auto lambda2 = lambda1;
6009 lambda1();
6010 lambda2();
6011 }
6012
6013 int
6014 test2()
6015 {
6016 auto a = [](int i, int j){ return i + j; }(1, 2);
6017 auto b = []() -> int { return '0'; }();
6018 auto c = [=](){ return a + b; }();
6019 auto d = [&](){ return c; }();
6020 auto e = [a, &b](int x) mutable {
6021 const auto identity = [](int y){ return y; };
6022 for (auto i = 0; i < a; ++i)
6023 a += b--;
6024 return x + identity(a + b);
6025 }(0);
6026 return a + b + c + d + e;
6027 }
6028
6029 int
6030 test3()
6031 {
6032 const auto nullary = [](){ return 0; };
6033 const auto unary = [](int x){ return x; };
6034 using nullary_t = decltype(nullary);
6035 using unary_t = decltype(unary);
6036 const auto higher1st = [](nullary_t f){ return f(); };
6037 const auto higher2nd = [unary](nullary_t f1){
6038 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6039 };
6040 return higher1st(nullary) + higher2nd(nullary)(unary);
6041 }
6042
6043 }
6044
6045 namespace test_variadic_templates
6046 {
6047
6048 template <int...>
6049 struct sum;
6050
6051 template <int N0, int... N1toN>
6052 struct sum<N0, N1toN...>
6053 {
6054 static constexpr auto value = N0 + sum<N1toN...>::value;
6055 };
6056
6057 template <>
6058 struct sum<>
6059 {
6060 static constexpr auto value = 0;
6061 };
6062
6063 static_assert(sum<>::value == 0, "");
6064 static_assert(sum<1>::value == 1, "");
6065 static_assert(sum<23>::value == 23, "");
6066 static_assert(sum<1, 2>::value == 3, "");
6067 static_assert(sum<5, 5, 11>::value == 21, "");
6068 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6069
6070 }
6071
6072 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6073 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6074 // because of this.
6075 namespace test_template_alias_sfinae
6076 {
6077
6078 struct foo {};
6079
6080 template<typename T>
6081 using member = typename T::member_type;
6082
6083 template<typename T>
6084 void func(...) {}
6085
6086 template<typename T>
6087 void func(member<T>*) {}
6088
6089 void test();
6090
6091 void test() { func<foo>(0); }
6092
6093 }
6094
6095} // namespace cxx11
6096
6097#endif // __cplusplus >= 201103L
6098
6099
6100
6101_ACEOF
6102if ac_fn_cxx_try_compile "$LINENO"; then :
6103 ax_cv_cxx_compile_cxx11=yes
6104else
6105 ax_cv_cxx_compile_cxx11=no
6106fi
6107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6108fi
6109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6110$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6111 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6112 ac_success=yes
6113 fi
6114
6115 if test x$ac_success = xno; then
6116 for alternative in ${ax_cxx_compile_alternatives}; do
6117 switch="-std=gnu++${alternative}"
6118 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6120$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6121if eval \${$cachevar+:} false; then :
6122 $as_echo_n "(cached) " >&6
6123else
6124 ac_save_CXX="$CXX"
6125 CXX="$CXX $switch"
6126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6127/* end confdefs.h. */
6128
6129
6130// If the compiler admits that it is not ready for C++11, why torture it?
6131// Hopefully, this will speed up the test.
6132
6133#ifndef __cplusplus
6134
6135#error "This is not a C++ compiler"
6136
6137#elif __cplusplus < 201103L
6138
6139#error "This is not a C++11 compiler"
6140
6141#else
6142
6143namespace cxx11
6144{
6145
6146 namespace test_static_assert
6147 {
6148
6149 template <typename T>
6150 struct check
6151 {
6152 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6153 };
6154
6155 }
6156
6157 namespace test_final_override
6158 {
6159
6160 struct Base
6161 {
6162 virtual ~Base() {}
6163 virtual void f() {}
6164 };
6165
6166 struct Derived : public Base
6167 {
6168 virtual ~Derived() override {}
6169 virtual void f() override {}
6170 };
6171
6172 }
6173
6174 namespace test_double_right_angle_brackets
6175 {
6176
6177 template < typename T >
6178 struct check {};
6179
6180 typedef check<void> single_type;
6181 typedef check<check<void>> double_type;
6182 typedef check<check<check<void>>> triple_type;
6183 typedef check<check<check<check<void>>>> quadruple_type;
6184
6185 }
6186
6187 namespace test_decltype
6188 {
6189
6190 int
6191 f()
6192 {
6193 int a = 1;
6194 decltype(a) b = 2;
6195 return a + b;
6196 }
6197
6198 }
6199
6200 namespace test_type_deduction
6201 {
6202
6203 template < typename T1, typename T2 >
6204 struct is_same
6205 {
6206 static const bool value = false;
6207 };
6208
6209 template < typename T >
6210 struct is_same<T, T>
6211 {
6212 static const bool value = true;
6213 };
6214
6215 template < typename T1, typename T2 >
6216 auto
6217 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6218 {
6219 return a1 + a2;
6220 }
6221
6222 int
6223 test(const int c, volatile int v)
6224 {
6225 static_assert(is_same<int, decltype(0)>::value == true, "");
6226 static_assert(is_same<int, decltype(c)>::value == false, "");
6227 static_assert(is_same<int, decltype(v)>::value == false, "");
6228 auto ac = c;
6229 auto av = v;
6230 auto sumi = ac + av + 'x';
6231 auto sumf = ac + av + 1.0;
6232 static_assert(is_same<int, decltype(ac)>::value == true, "");
6233 static_assert(is_same<int, decltype(av)>::value == true, "");
6234 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6235 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6236 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6237 return (sumf > 0.0) ? sumi : add(c, v);
6238 }
6239
6240 }
6241
6242 namespace test_noexcept
6243 {
6244
6245 int f() { return 0; }
6246 int g() noexcept { return 0; }
6247
6248 static_assert(noexcept(f()) == false, "");
6249 static_assert(noexcept(g()) == true, "");
6250
6251 }
6252
6253 namespace test_constexpr
6254 {
6255
6256 template < typename CharT >
6257 unsigned long constexpr
6258 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6259 {
6260 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6261 }
6262
6263 template < typename CharT >
6264 unsigned long constexpr
6265 strlen_c(const CharT *const s) noexcept
6266 {
6267 return strlen_c_r(s, 0UL);
6268 }
6269
6270 static_assert(strlen_c("") == 0UL, "");
6271 static_assert(strlen_c("1") == 1UL, "");
6272 static_assert(strlen_c("example") == 7UL, "");
6273 static_assert(strlen_c("another\0example") == 7UL, "");
6274
6275 }
6276
6277 namespace test_rvalue_references
6278 {
6279
6280 template < int N >
6281 struct answer
6282 {
6283 static constexpr int value = N;
6284 };
6285
6286 answer<1> f(int&) { return answer<1>(); }
6287 answer<2> f(const int&) { return answer<2>(); }
6288 answer<3> f(int&&) { return answer<3>(); }
6289
6290 void
6291 test()
6292 {
6293 int i = 0;
6294 const int c = 0;
6295 static_assert(decltype(f(i))::value == 1, "");
6296 static_assert(decltype(f(c))::value == 2, "");
6297 static_assert(decltype(f(0))::value == 3, "");
6298 }
6299
6300 }
6301
6302 namespace test_uniform_initialization
6303 {
6304
6305 struct test
6306 {
6307 static const int zero {};
6308 static const int one {1};
6309 };
6310
6311 static_assert(test::zero == 0, "");
6312 static_assert(test::one == 1, "");
6313
6314 }
6315
6316 namespace test_lambdas
6317 {
6318
6319 void
6320 test1()
6321 {
6322 auto lambda1 = [](){};
6323 auto lambda2 = lambda1;
6324 lambda1();
6325 lambda2();
6326 }
6327
6328 int
6329 test2()
6330 {
6331 auto a = [](int i, int j){ return i + j; }(1, 2);
6332 auto b = []() -> int { return '0'; }();
6333 auto c = [=](){ return a + b; }();
6334 auto d = [&](){ return c; }();
6335 auto e = [a, &b](int x) mutable {
6336 const auto identity = [](int y){ return y; };
6337 for (auto i = 0; i < a; ++i)
6338 a += b--;
6339 return x + identity(a + b);
6340 }(0);
6341 return a + b + c + d + e;
6342 }
6343
6344 int
6345 test3()
6346 {
6347 const auto nullary = [](){ return 0; };
6348 const auto unary = [](int x){ return x; };
6349 using nullary_t = decltype(nullary);
6350 using unary_t = decltype(unary);
6351 const auto higher1st = [](nullary_t f){ return f(); };
6352 const auto higher2nd = [unary](nullary_t f1){
6353 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6354 };
6355 return higher1st(nullary) + higher2nd(nullary)(unary);
6356 }
6357
6358 }
6359
6360 namespace test_variadic_templates
6361 {
6362
6363 template <int...>
6364 struct sum;
6365
6366 template <int N0, int... N1toN>
6367 struct sum<N0, N1toN...>
6368 {
6369 static constexpr auto value = N0 + sum<N1toN...>::value;
6370 };
6371
6372 template <>
6373 struct sum<>
6374 {
6375 static constexpr auto value = 0;
6376 };
6377
6378 static_assert(sum<>::value == 0, "");
6379 static_assert(sum<1>::value == 1, "");
6380 static_assert(sum<23>::value == 23, "");
6381 static_assert(sum<1, 2>::value == 3, "");
6382 static_assert(sum<5, 5, 11>::value == 21, "");
6383 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6384
6385 }
6386
6387 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6388 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6389 // because of this.
6390 namespace test_template_alias_sfinae
6391 {
6392
6393 struct foo {};
6394
6395 template<typename T>
6396 using member = typename T::member_type;
6397
6398 template<typename T>
6399 void func(...) {}
6400
6401 template<typename T>
6402 void func(member<T>*) {}
6403
6404 void test();
6405
6406 void test() { func<foo>(0); }
6407
6408 }
6409
6410} // namespace cxx11
6411
6412#endif // __cplusplus >= 201103L
6413
6414
6415
6416_ACEOF
6417if ac_fn_cxx_try_compile "$LINENO"; then :
6418 eval $cachevar=yes
6419else
6420 eval $cachevar=no
6421fi
6422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6423 CXX="$ac_save_CXX"
6424fi
6425eval ac_res=\$$cachevar
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6427$as_echo "$ac_res" >&6; }
6428 if eval test x\$$cachevar = xyes; then
6429 CXX="$CXX $switch"
6430 if test -n "$CXXCPP" ; then
6431 CXXCPP="$CXXCPP $switch"
6432 fi
6433 ac_success=yes
6434 break
6435 fi
6436 done
6437 fi
6438
6439 if test x$ac_success = xno; then
6440 for alternative in ${ax_cxx_compile_alternatives}; do
6441 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6442 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6444$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6445if eval \${$cachevar+:} false; then :
6446 $as_echo_n "(cached) " >&6
6447else
6448 ac_save_CXX="$CXX"
6449 CXX="$CXX $switch"
6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451/* end confdefs.h. */
6452
6453
6454// If the compiler admits that it is not ready for C++11, why torture it?
6455// Hopefully, this will speed up the test.
6456
6457#ifndef __cplusplus
6458
6459#error "This is not a C++ compiler"
6460
6461#elif __cplusplus < 201103L
6462
6463#error "This is not a C++11 compiler"
6464
6465#else
6466
6467namespace cxx11
6468{
6469
6470 namespace test_static_assert
6471 {
6472
6473 template <typename T>
6474 struct check
6475 {
6476 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6477 };
6478
6479 }
6480
6481 namespace test_final_override
6482 {
6483
6484 struct Base
6485 {
6486 virtual ~Base() {}
6487 virtual void f() {}
6488 };
6489
6490 struct Derived : public Base
6491 {
6492 virtual ~Derived() override {}
6493 virtual void f() override {}
6494 };
6495
6496 }
6497
6498 namespace test_double_right_angle_brackets
6499 {
6500
6501 template < typename T >
6502 struct check {};
6503
6504 typedef check<void> single_type;
6505 typedef check<check<void>> double_type;
6506 typedef check<check<check<void>>> triple_type;
6507 typedef check<check<check<check<void>>>> quadruple_type;
6508
6509 }
6510
6511 namespace test_decltype
6512 {
6513
6514 int
6515 f()
6516 {
6517 int a = 1;
6518 decltype(a) b = 2;
6519 return a + b;
6520 }
6521
6522 }
6523
6524 namespace test_type_deduction
6525 {
6526
6527 template < typename T1, typename T2 >
6528 struct is_same
6529 {
6530 static const bool value = false;
6531 };
6532
6533 template < typename T >
6534 struct is_same<T, T>
6535 {
6536 static const bool value = true;
6537 };
6538
6539 template < typename T1, typename T2 >
6540 auto
6541 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6542 {
6543 return a1 + a2;
6544 }
6545
6546 int
6547 test(const int c, volatile int v)
6548 {
6549 static_assert(is_same<int, decltype(0)>::value == true, "");
6550 static_assert(is_same<int, decltype(c)>::value == false, "");
6551 static_assert(is_same<int, decltype(v)>::value == false, "");
6552 auto ac = c;
6553 auto av = v;
6554 auto sumi = ac + av + 'x';
6555 auto sumf = ac + av + 1.0;
6556 static_assert(is_same<int, decltype(ac)>::value == true, "");
6557 static_assert(is_same<int, decltype(av)>::value == true, "");
6558 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6559 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6560 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6561 return (sumf > 0.0) ? sumi : add(c, v);
6562 }
6563
6564 }
6565
6566 namespace test_noexcept
6567 {
6568
6569 int f() { return 0; }
6570 int g() noexcept { return 0; }
6571
6572 static_assert(noexcept(f()) == false, "");
6573 static_assert(noexcept(g()) == true, "");
6574
6575 }
6576
6577 namespace test_constexpr
6578 {
6579
6580 template < typename CharT >
6581 unsigned long constexpr
6582 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6583 {
6584 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6585 }
6586
6587 template < typename CharT >
6588 unsigned long constexpr
6589 strlen_c(const CharT *const s) noexcept
6590 {
6591 return strlen_c_r(s, 0UL);
6592 }
6593
6594 static_assert(strlen_c("") == 0UL, "");
6595 static_assert(strlen_c("1") == 1UL, "");
6596 static_assert(strlen_c("example") == 7UL, "");
6597 static_assert(strlen_c("another\0example") == 7UL, "");
6598
6599 }
6600
6601 namespace test_rvalue_references
6602 {
6603
6604 template < int N >
6605 struct answer
6606 {
6607 static constexpr int value = N;
6608 };
6609
6610 answer<1> f(int&) { return answer<1>(); }
6611 answer<2> f(const int&) { return answer<2>(); }
6612 answer<3> f(int&&) { return answer<3>(); }
6613
6614 void
6615 test()
6616 {
6617 int i = 0;
6618 const int c = 0;
6619 static_assert(decltype(f(i))::value == 1, "");
6620 static_assert(decltype(f(c))::value == 2, "");
6621 static_assert(decltype(f(0))::value == 3, "");
6622 }
6623
6624 }
6625
6626 namespace test_uniform_initialization
6627 {
6628
6629 struct test
6630 {
6631 static const int zero {};
6632 static const int one {1};
6633 };
6634
6635 static_assert(test::zero == 0, "");
6636 static_assert(test::one == 1, "");
6637
6638 }
6639
6640 namespace test_lambdas
6641 {
6642
6643 void
6644 test1()
6645 {
6646 auto lambda1 = [](){};
6647 auto lambda2 = lambda1;
6648 lambda1();
6649 lambda2();
6650 }
6651
6652 int
6653 test2()
6654 {
6655 auto a = [](int i, int j){ return i + j; }(1, 2);
6656 auto b = []() -> int { return '0'; }();
6657 auto c = [=](){ return a + b; }();
6658 auto d = [&](){ return c; }();
6659 auto e = [a, &b](int x) mutable {
6660 const auto identity = [](int y){ return y; };
6661 for (auto i = 0; i < a; ++i)
6662 a += b--;
6663 return x + identity(a + b);
6664 }(0);
6665 return a + b + c + d + e;
6666 }
6667
6668 int
6669 test3()
6670 {
6671 const auto nullary = [](){ return 0; };
6672 const auto unary = [](int x){ return x; };
6673 using nullary_t = decltype(nullary);
6674 using unary_t = decltype(unary);
6675 const auto higher1st = [](nullary_t f){ return f(); };
6676 const auto higher2nd = [unary](nullary_t f1){
6677 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6678 };
6679 return higher1st(nullary) + higher2nd(nullary)(unary);
6680 }
6681
6682 }
6683
6684 namespace test_variadic_templates
6685 {
6686
6687 template <int...>
6688 struct sum;
6689
6690 template <int N0, int... N1toN>
6691 struct sum<N0, N1toN...>
6692 {
6693 static constexpr auto value = N0 + sum<N1toN...>::value;
6694 };
6695
6696 template <>
6697 struct sum<>
6698 {
6699 static constexpr auto value = 0;
6700 };
6701
6702 static_assert(sum<>::value == 0, "");
6703 static_assert(sum<1>::value == 1, "");
6704 static_assert(sum<23>::value == 23, "");
6705 static_assert(sum<1, 2>::value == 3, "");
6706 static_assert(sum<5, 5, 11>::value == 21, "");
6707 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6708
6709 }
6710
6711 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6712 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6713 // because of this.
6714 namespace test_template_alias_sfinae
6715 {
6716
6717 struct foo {};
6718
6719 template<typename T>
6720 using member = typename T::member_type;
6721
6722 template<typename T>
6723 void func(...) {}
6724
6725 template<typename T>
6726 void func(member<T>*) {}
6727
6728 void test();
6729
6730 void test() { func<foo>(0); }
6731
6732 }
6733
6734} // namespace cxx11
6735
6736#endif // __cplusplus >= 201103L
6737
6738
6739
6740_ACEOF
6741if ac_fn_cxx_try_compile "$LINENO"; then :
6742 eval $cachevar=yes
6743else
6744 eval $cachevar=no
6745fi
6746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6747 CXX="$ac_save_CXX"
6748fi
6749eval ac_res=\$$cachevar
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6751$as_echo "$ac_res" >&6; }
6752 if eval test x\$$cachevar = xyes; then
6753 CXX="$CXX $switch"
6754 if test -n "$CXXCPP" ; then
6755 CXXCPP="$CXXCPP $switch"
6756 fi
6757 ac_success=yes
6758 break
6759 fi
6760 done
6761 if test x$ac_success = xyes; then
6762 break
6763 fi
6764 done
6765 fi
7ffcf5d6 6766
ffac9597
JM
6767 ac_ext=c
6768ac_cpp='$CPP $CPPFLAGS'
6769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6771ac_compiler_gnu=$ac_cv_c_compiler_gnu
6772
6773 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6774 if test x$ac_success = xno; then
6775 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6776 fi
6777 fi
6778 if test x$ac_success = xno; then
6779 HAVE_CXX11=0
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6781$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6782 else
6783 HAVE_CXX11=1
6784
6785$as_echo "#define HAVE_CXX11 1" >>confdefs.h
6786
6787 fi
6788
6789
7ffcf5d6
TB
6790
6791 if test "${build}" != "${host}"; then
6792 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6793 ac_ext=cpp
6794ac_cpp='$CXXCPP $CPPFLAGS'
6795ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6796ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6797ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6798 ac_success=no
6799 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6800 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6801 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6802 CXX="$CXX_FOR_BUILD"
6803 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6804 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6806$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6807if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6808 $as_echo_n "(cached) " >&6
6809else
6810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811/* end confdefs.h. */
6812
6813
6814// If the compiler admits that it is not ready for C++11, why torture it?
6815// Hopefully, this will speed up the test.
6816
6817#ifndef __cplusplus
6818
6819#error "This is not a C++ compiler"
6820
6821#elif __cplusplus < 201103L
6822
6823#error "This is not a C++11 compiler"
6824
6825#else
6826
6827namespace cxx11
6828{
6829
6830 namespace test_static_assert
6831 {
6832
6833 template <typename T>
6834 struct check
6835 {
6836 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6837 };
6838
6839 }
6840
6841 namespace test_final_override
6842 {
6843
6844 struct Base
6845 {
6846 virtual ~Base() {}
6847 virtual void f() {}
6848 };
6849
6850 struct Derived : public Base
6851 {
6852 virtual ~Derived() override {}
6853 virtual void f() override {}
6854 };
6855
6856 }
6857
6858 namespace test_double_right_angle_brackets
6859 {
6860
6861 template < typename T >
6862 struct check {};
6863
6864 typedef check<void> single_type;
6865 typedef check<check<void>> double_type;
6866 typedef check<check<check<void>>> triple_type;
6867 typedef check<check<check<check<void>>>> quadruple_type;
6868
6869 }
6870
6871 namespace test_decltype
6872 {
6873
6874 int
6875 f()
6876 {
6877 int a = 1;
6878 decltype(a) b = 2;
6879 return a + b;
6880 }
6881
6882 }
6883
6884 namespace test_type_deduction
6885 {
6886
6887 template < typename T1, typename T2 >
6888 struct is_same
6889 {
6890 static const bool value = false;
6891 };
6892
6893 template < typename T >
6894 struct is_same<T, T>
6895 {
6896 static const bool value = true;
6897 };
6898
6899 template < typename T1, typename T2 >
6900 auto
6901 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6902 {
6903 return a1 + a2;
6904 }
6905
6906 int
6907 test(const int c, volatile int v)
6908 {
6909 static_assert(is_same<int, decltype(0)>::value == true, "");
6910 static_assert(is_same<int, decltype(c)>::value == false, "");
6911 static_assert(is_same<int, decltype(v)>::value == false, "");
6912 auto ac = c;
6913 auto av = v;
6914 auto sumi = ac + av + 'x';
6915 auto sumf = ac + av + 1.0;
6916 static_assert(is_same<int, decltype(ac)>::value == true, "");
6917 static_assert(is_same<int, decltype(av)>::value == true, "");
6918 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6919 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6920 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6921 return (sumf > 0.0) ? sumi : add(c, v);
6922 }
6923
6924 }
6925
6926 namespace test_noexcept
6927 {
6928
6929 int f() { return 0; }
6930 int g() noexcept { return 0; }
6931
6932 static_assert(noexcept(f()) == false, "");
6933 static_assert(noexcept(g()) == true, "");
6934
6935 }
6936
6937 namespace test_constexpr
6938 {
6939
6940 template < typename CharT >
6941 unsigned long constexpr
6942 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6943 {
6944 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6945 }
6946
6947 template < typename CharT >
6948 unsigned long constexpr
6949 strlen_c(const CharT *const s) noexcept
6950 {
6951 return strlen_c_r(s, 0UL);
6952 }
6953
6954 static_assert(strlen_c("") == 0UL, "");
6955 static_assert(strlen_c("1") == 1UL, "");
6956 static_assert(strlen_c("example") == 7UL, "");
6957 static_assert(strlen_c("another\0example") == 7UL, "");
6958
6959 }
6960
6961 namespace test_rvalue_references
6962 {
6963
6964 template < int N >
6965 struct answer
6966 {
6967 static constexpr int value = N;
6968 };
6969
6970 answer<1> f(int&) { return answer<1>(); }
6971 answer<2> f(const int&) { return answer<2>(); }
6972 answer<3> f(int&&) { return answer<3>(); }
6973
6974 void
6975 test()
6976 {
6977 int i = 0;
6978 const int c = 0;
6979 static_assert(decltype(f(i))::value == 1, "");
6980 static_assert(decltype(f(c))::value == 2, "");
6981 static_assert(decltype(f(0))::value == 3, "");
6982 }
6983
6984 }
6985
6986 namespace test_uniform_initialization
6987 {
6988
6989 struct test
6990 {
6991 static const int zero {};
6992 static const int one {1};
6993 };
6994
6995 static_assert(test::zero == 0, "");
6996 static_assert(test::one == 1, "");
6997
6998 }
6999
7000 namespace test_lambdas
7001 {
7002
7003 void
7004 test1()
7005 {
7006 auto lambda1 = [](){};
7007 auto lambda2 = lambda1;
7008 lambda1();
7009 lambda2();
7010 }
7011
7012 int
7013 test2()
7014 {
7015 auto a = [](int i, int j){ return i + j; }(1, 2);
7016 auto b = []() -> int { return '0'; }();
7017 auto c = [=](){ return a + b; }();
7018 auto d = [&](){ return c; }();
7019 auto e = [a, &b](int x) mutable {
7020 const auto identity = [](int y){ return y; };
7021 for (auto i = 0; i < a; ++i)
7022 a += b--;
7023 return x + identity(a + b);
7024 }(0);
7025 return a + b + c + d + e;
7026 }
7027
7028 int
7029 test3()
7030 {
7031 const auto nullary = [](){ return 0; };
7032 const auto unary = [](int x){ return x; };
7033 using nullary_t = decltype(nullary);
7034 using unary_t = decltype(unary);
7035 const auto higher1st = [](nullary_t f){ return f(); };
7036 const auto higher2nd = [unary](nullary_t f1){
7037 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7038 };
7039 return higher1st(nullary) + higher2nd(nullary)(unary);
7040 }
7041
7042 }
7043
7044 namespace test_variadic_templates
7045 {
7046
7047 template <int...>
7048 struct sum;
7049
7050 template <int N0, int... N1toN>
7051 struct sum<N0, N1toN...>
7052 {
7053 static constexpr auto value = N0 + sum<N1toN...>::value;
7054 };
7055
7056 template <>
7057 struct sum<>
7058 {
7059 static constexpr auto value = 0;
7060 };
7061
7062 static_assert(sum<>::value == 0, "");
7063 static_assert(sum<1>::value == 1, "");
7064 static_assert(sum<23>::value == 23, "");
7065 static_assert(sum<1, 2>::value == 3, "");
7066 static_assert(sum<5, 5, 11>::value == 21, "");
7067 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7068
7069 }
7070
7071 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7072 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7073 // because of this.
7074 namespace test_template_alias_sfinae
7075 {
7076
7077 struct foo {};
7078
7079 template<typename T>
7080 using member = typename T::member_type;
7081
7082 template<typename T>
7083 void func(...) {}
7084
7085 template<typename T>
7086 void func(member<T>*) {}
7087
7088 void test();
7089
7090 void test() { func<foo>(0); }
7091
7092 }
7093
7094} // namespace cxx11
7095
7096#endif // __cplusplus >= 201103L
7097
7098
7099
7100_ACEOF
7101if ac_fn_cxx_try_compile "$LINENO"; then :
7102 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7103else
7104 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7105fi
7106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7107fi
7108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7109$as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7110 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7111 ac_success=yes
7112 fi
7113
7114 if test x$ac_success = xno; then
7115 for alternative in ${ax_cxx_compile_alternatives}; do
7116 switch="-std=gnu++${alternative}"
7117 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7119$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7120if eval \${$cachevar+:} false; then :
7121 $as_echo_n "(cached) " >&6
7122else
7123 ac_save_CXX="$CXX"
7124 CXX="$CXX $switch"
7125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126/* end confdefs.h. */
7127
7128
7129// If the compiler admits that it is not ready for C++11, why torture it?
7130// Hopefully, this will speed up the test.
7131
7132#ifndef __cplusplus
7133
7134#error "This is not a C++ compiler"
7135
7136#elif __cplusplus < 201103L
7137
7138#error "This is not a C++11 compiler"
7139
7140#else
7141
7142namespace cxx11
7143{
7144
7145 namespace test_static_assert
7146 {
7147
7148 template <typename T>
7149 struct check
7150 {
7151 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7152 };
7153
7154 }
7155
7156 namespace test_final_override
7157 {
7158
7159 struct Base
7160 {
7161 virtual ~Base() {}
7162 virtual void f() {}
7163 };
7164
7165 struct Derived : public Base
7166 {
7167 virtual ~Derived() override {}
7168 virtual void f() override {}
7169 };
7170
7171 }
7172
7173 namespace test_double_right_angle_brackets
7174 {
7175
7176 template < typename T >
7177 struct check {};
7178
7179 typedef check<void> single_type;
7180 typedef check<check<void>> double_type;
7181 typedef check<check<check<void>>> triple_type;
7182 typedef check<check<check<check<void>>>> quadruple_type;
7183
7184 }
7185
7186 namespace test_decltype
7187 {
7188
7189 int
7190 f()
7191 {
7192 int a = 1;
7193 decltype(a) b = 2;
7194 return a + b;
7195 }
7196
7197 }
7198
7199 namespace test_type_deduction
7200 {
7201
7202 template < typename T1, typename T2 >
7203 struct is_same
7204 {
7205 static const bool value = false;
7206 };
7207
7208 template < typename T >
7209 struct is_same<T, T>
7210 {
7211 static const bool value = true;
7212 };
7213
7214 template < typename T1, typename T2 >
7215 auto
7216 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7217 {
7218 return a1 + a2;
7219 }
7220
7221 int
7222 test(const int c, volatile int v)
7223 {
7224 static_assert(is_same<int, decltype(0)>::value == true, "");
7225 static_assert(is_same<int, decltype(c)>::value == false, "");
7226 static_assert(is_same<int, decltype(v)>::value == false, "");
7227 auto ac = c;
7228 auto av = v;
7229 auto sumi = ac + av + 'x';
7230 auto sumf = ac + av + 1.0;
7231 static_assert(is_same<int, decltype(ac)>::value == true, "");
7232 static_assert(is_same<int, decltype(av)>::value == true, "");
7233 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7234 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7235 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7236 return (sumf > 0.0) ? sumi : add(c, v);
7237 }
7238
7239 }
7240
7241 namespace test_noexcept
7242 {
7243
7244 int f() { return 0; }
7245 int g() noexcept { return 0; }
7246
7247 static_assert(noexcept(f()) == false, "");
7248 static_assert(noexcept(g()) == true, "");
7249
7250 }
7251
7252 namespace test_constexpr
7253 {
7254
7255 template < typename CharT >
7256 unsigned long constexpr
7257 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7258 {
7259 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7260 }
7261
7262 template < typename CharT >
7263 unsigned long constexpr
7264 strlen_c(const CharT *const s) noexcept
7265 {
7266 return strlen_c_r(s, 0UL);
7267 }
7268
7269 static_assert(strlen_c("") == 0UL, "");
7270 static_assert(strlen_c("1") == 1UL, "");
7271 static_assert(strlen_c("example") == 7UL, "");
7272 static_assert(strlen_c("another\0example") == 7UL, "");
7273
7274 }
7275
7276 namespace test_rvalue_references
7277 {
7278
7279 template < int N >
7280 struct answer
7281 {
7282 static constexpr int value = N;
7283 };
7284
7285 answer<1> f(int&) { return answer<1>(); }
7286 answer<2> f(const int&) { return answer<2>(); }
7287 answer<3> f(int&&) { return answer<3>(); }
7288
7289 void
7290 test()
7291 {
7292 int i = 0;
7293 const int c = 0;
7294 static_assert(decltype(f(i))::value == 1, "");
7295 static_assert(decltype(f(c))::value == 2, "");
7296 static_assert(decltype(f(0))::value == 3, "");
7297 }
7298
7299 }
7300
7301 namespace test_uniform_initialization
7302 {
7303
7304 struct test
7305 {
7306 static const int zero {};
7307 static const int one {1};
7308 };
7309
7310 static_assert(test::zero == 0, "");
7311 static_assert(test::one == 1, "");
7312
7313 }
7314
7315 namespace test_lambdas
7316 {
7317
7318 void
7319 test1()
7320 {
7321 auto lambda1 = [](){};
7322 auto lambda2 = lambda1;
7323 lambda1();
7324 lambda2();
7325 }
7326
7327 int
7328 test2()
7329 {
7330 auto a = [](int i, int j){ return i + j; }(1, 2);
7331 auto b = []() -> int { return '0'; }();
7332 auto c = [=](){ return a + b; }();
7333 auto d = [&](){ return c; }();
7334 auto e = [a, &b](int x) mutable {
7335 const auto identity = [](int y){ return y; };
7336 for (auto i = 0; i < a; ++i)
7337 a += b--;
7338 return x + identity(a + b);
7339 }(0);
7340 return a + b + c + d + e;
7341 }
7342
7343 int
7344 test3()
7345 {
7346 const auto nullary = [](){ return 0; };
7347 const auto unary = [](int x){ return x; };
7348 using nullary_t = decltype(nullary);
7349 using unary_t = decltype(unary);
7350 const auto higher1st = [](nullary_t f){ return f(); };
7351 const auto higher2nd = [unary](nullary_t f1){
7352 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7353 };
7354 return higher1st(nullary) + higher2nd(nullary)(unary);
7355 }
7356
7357 }
7358
7359 namespace test_variadic_templates
7360 {
7361
7362 template <int...>
7363 struct sum;
7364
7365 template <int N0, int... N1toN>
7366 struct sum<N0, N1toN...>
7367 {
7368 static constexpr auto value = N0 + sum<N1toN...>::value;
7369 };
7370
7371 template <>
7372 struct sum<>
7373 {
7374 static constexpr auto value = 0;
7375 };
7376
7377 static_assert(sum<>::value == 0, "");
7378 static_assert(sum<1>::value == 1, "");
7379 static_assert(sum<23>::value == 23, "");
7380 static_assert(sum<1, 2>::value == 3, "");
7381 static_assert(sum<5, 5, 11>::value == 21, "");
7382 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7383
7384 }
7385
7386 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7387 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7388 // because of this.
7389 namespace test_template_alias_sfinae
7390 {
7391
7392 struct foo {};
7393
7394 template<typename T>
7395 using member = typename T::member_type;
7396
7397 template<typename T>
7398 void func(...) {}
7399
7400 template<typename T>
7401 void func(member<T>*) {}
7402
7403 void test();
7404
7405 void test() { func<foo>(0); }
7406
7407 }
7408
7409} // namespace cxx11
7410
7411#endif // __cplusplus >= 201103L
7412
7413
7414
7415_ACEOF
7416if ac_fn_cxx_try_compile "$LINENO"; then :
7417 eval $cachevar=yes
7418else
7419 eval $cachevar=no
7420fi
7421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7422 CXX="$ac_save_CXX"
7423fi
7424eval ac_res=\$$cachevar
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7426$as_echo "$ac_res" >&6; }
7427 if eval test x\$$cachevar = xyes; then
7428 CXX="$CXX $switch"
7429 if test -n "$CXXCPP" ; then
7430 CXXCPP="$CXXCPP $switch"
7431 fi
7432 ac_success=yes
7433 break
7434 fi
7435 done
7436 fi
7437
7438 if test x$ac_success = xno; then
7439 for alternative in ${ax_cxx_compile_alternatives}; do
7440 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7441 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7443$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7444if eval \${$cachevar+:} false; then :
7445 $as_echo_n "(cached) " >&6
7446else
7447 ac_save_CXX="$CXX"
7448 CXX="$CXX $switch"
7449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7450/* end confdefs.h. */
7451
7452
7453// If the compiler admits that it is not ready for C++11, why torture it?
7454// Hopefully, this will speed up the test.
7455
7456#ifndef __cplusplus
7457
7458#error "This is not a C++ compiler"
7459
7460#elif __cplusplus < 201103L
7461
7462#error "This is not a C++11 compiler"
7463
7464#else
7465
7466namespace cxx11
7467{
7468
7469 namespace test_static_assert
7470 {
7471
7472 template <typename T>
7473 struct check
7474 {
7475 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7476 };
7477
7478 }
7479
7480 namespace test_final_override
7481 {
7482
7483 struct Base
7484 {
7485 virtual ~Base() {}
7486 virtual void f() {}
7487 };
7488
7489 struct Derived : public Base
7490 {
7491 virtual ~Derived() override {}
7492 virtual void f() override {}
7493 };
7494
7495 }
7496
7497 namespace test_double_right_angle_brackets
7498 {
7499
7500 template < typename T >
7501 struct check {};
7502
7503 typedef check<void> single_type;
7504 typedef check<check<void>> double_type;
7505 typedef check<check<check<void>>> triple_type;
7506 typedef check<check<check<check<void>>>> quadruple_type;
7507
7508 }
7509
7510 namespace test_decltype
7511 {
7512
7513 int
7514 f()
7515 {
7516 int a = 1;
7517 decltype(a) b = 2;
7518 return a + b;
7519 }
7520
7521 }
7522
7523 namespace test_type_deduction
7524 {
7525
7526 template < typename T1, typename T2 >
7527 struct is_same
7528 {
7529 static const bool value = false;
7530 };
7531
7532 template < typename T >
7533 struct is_same<T, T>
7534 {
7535 static const bool value = true;
7536 };
7537
7538 template < typename T1, typename T2 >
7539 auto
7540 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7541 {
7542 return a1 + a2;
7543 }
7544
7545 int
7546 test(const int c, volatile int v)
7547 {
7548 static_assert(is_same<int, decltype(0)>::value == true, "");
7549 static_assert(is_same<int, decltype(c)>::value == false, "");
7550 static_assert(is_same<int, decltype(v)>::value == false, "");
7551 auto ac = c;
7552 auto av = v;
7553 auto sumi = ac + av + 'x';
7554 auto sumf = ac + av + 1.0;
7555 static_assert(is_same<int, decltype(ac)>::value == true, "");
7556 static_assert(is_same<int, decltype(av)>::value == true, "");
7557 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7558 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7559 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7560 return (sumf > 0.0) ? sumi : add(c, v);
7561 }
7562
7563 }
7564
7565 namespace test_noexcept
7566 {
7567
7568 int f() { return 0; }
7569 int g() noexcept { return 0; }
7570
7571 static_assert(noexcept(f()) == false, "");
7572 static_assert(noexcept(g()) == true, "");
7573
7574 }
7575
7576 namespace test_constexpr
7577 {
7578
7579 template < typename CharT >
7580 unsigned long constexpr
7581 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7582 {
7583 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7584 }
7585
7586 template < typename CharT >
7587 unsigned long constexpr
7588 strlen_c(const CharT *const s) noexcept
7589 {
7590 return strlen_c_r(s, 0UL);
7591 }
7592
7593 static_assert(strlen_c("") == 0UL, "");
7594 static_assert(strlen_c("1") == 1UL, "");
7595 static_assert(strlen_c("example") == 7UL, "");
7596 static_assert(strlen_c("another\0example") == 7UL, "");
7597
7598 }
7599
7600 namespace test_rvalue_references
7601 {
7602
7603 template < int N >
7604 struct answer
7605 {
7606 static constexpr int value = N;
7607 };
7608
7609 answer<1> f(int&) { return answer<1>(); }
7610 answer<2> f(const int&) { return answer<2>(); }
7611 answer<3> f(int&&) { return answer<3>(); }
7612
7613 void
7614 test()
7615 {
7616 int i = 0;
7617 const int c = 0;
7618 static_assert(decltype(f(i))::value == 1, "");
7619 static_assert(decltype(f(c))::value == 2, "");
7620 static_assert(decltype(f(0))::value == 3, "");
7621 }
7622
7623 }
7624
7625 namespace test_uniform_initialization
7626 {
7627
7628 struct test
7629 {
7630 static const int zero {};
7631 static const int one {1};
7632 };
7633
7634 static_assert(test::zero == 0, "");
7635 static_assert(test::one == 1, "");
7636
7637 }
7638
7639 namespace test_lambdas
7640 {
7641
7642 void
7643 test1()
7644 {
7645 auto lambda1 = [](){};
7646 auto lambda2 = lambda1;
7647 lambda1();
7648 lambda2();
7649 }
7650
7651 int
7652 test2()
7653 {
7654 auto a = [](int i, int j){ return i + j; }(1, 2);
7655 auto b = []() -> int { return '0'; }();
7656 auto c = [=](){ return a + b; }();
7657 auto d = [&](){ return c; }();
7658 auto e = [a, &b](int x) mutable {
7659 const auto identity = [](int y){ return y; };
7660 for (auto i = 0; i < a; ++i)
7661 a += b--;
7662 return x + identity(a + b);
7663 }(0);
7664 return a + b + c + d + e;
7665 }
7666
7667 int
7668 test3()
7669 {
7670 const auto nullary = [](){ return 0; };
7671 const auto unary = [](int x){ return x; };
7672 using nullary_t = decltype(nullary);
7673 using unary_t = decltype(unary);
7674 const auto higher1st = [](nullary_t f){ return f(); };
7675 const auto higher2nd = [unary](nullary_t f1){
7676 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7677 };
7678 return higher1st(nullary) + higher2nd(nullary)(unary);
7679 }
7680
7681 }
7682
7683 namespace test_variadic_templates
7684 {
7685
7686 template <int...>
7687 struct sum;
7688
7689 template <int N0, int... N1toN>
7690 struct sum<N0, N1toN...>
7691 {
7692 static constexpr auto value = N0 + sum<N1toN...>::value;
7693 };
7694
7695 template <>
7696 struct sum<>
7697 {
7698 static constexpr auto value = 0;
7699 };
7700
7701 static_assert(sum<>::value == 0, "");
7702 static_assert(sum<1>::value == 1, "");
7703 static_assert(sum<23>::value == 23, "");
7704 static_assert(sum<1, 2>::value == 3, "");
7705 static_assert(sum<5, 5, 11>::value == 21, "");
7706 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7707
7708 }
7709
7710 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7711 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7712 // because of this.
7713 namespace test_template_alias_sfinae
7714 {
7715
7716 struct foo {};
7717
7718 template<typename T>
7719 using member = typename T::member_type;
7720
7721 template<typename T>
7722 void func(...) {}
7723
7724 template<typename T>
7725 void func(member<T>*) {}
7726
7727 void test();
7728
7729 void test() { func<foo>(0); }
7730
7731 }
7732
7733} // namespace cxx11
7734
7735#endif // __cplusplus >= 201103L
7736
7737
7738
7739_ACEOF
7740if ac_fn_cxx_try_compile "$LINENO"; then :
7741 eval $cachevar=yes
7742else
7743 eval $cachevar=no
7744fi
7745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7746 CXX="$ac_save_CXX"
7747fi
7748eval ac_res=\$$cachevar
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7750$as_echo "$ac_res" >&6; }
7751 if eval test x\$$cachevar = xyes; then
7752 CXX="$CXX $switch"
7753 if test -n "$CXXCPP" ; then
7754 CXXCPP="$CXXCPP $switch"
7755 fi
7756 ac_success=yes
7757 break
7758 fi
7759 done
7760 if test x$ac_success = xyes; then
7761 break
7762 fi
7763 done
7764 fi
7765 CXX_FOR_BUILD="$CXX"
7766 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7767 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7768 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7769 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7770 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7771 ac_ext=c
7772ac_cpp='$CPP $CPPFLAGS'
7773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7775ac_compiler_gnu=$ac_cv_c_compiler_gnu
7776
7777 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7778 if test x$ac_success = xno; then
7779 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7780 fi
7781 fi
7782 if test x$ac_success = xno; then
7783 HAVE_CXX11_FOR_BUILD=0
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7785$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7786 else
7787 HAVE_CXX11_FOR_BUILD=1
7788
7789$as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7790
7791 fi
7792
7793
7794 fi
46070488
JM
7795fi
7796
4a5e71f2
L
7797# Check whether --enable-pgo-build was given.
7798if test "${enable_pgo_build+set}" = set; then :
7799 enableval=$enable_pgo_build; enable_pgo_build=$enableval
7800else
7801 enable_pgo_build=no
7802fi
7803
7804
7805# Issue errors and warnings for invalid/strange PGO build combinations.
7806case "$have_compiler:$host:$target:$enable_pgo_build" in
7807 *:*:*:no) ;;
7808
7809 # Allow the PGO build only if we aren't building a compiler and
7810 # we are in a native configuration.
7811 no:$build:$build:yes | no:$build:$build:lto) ;;
7812
7813 # Disallow the PGO bootstrap if we are building a compiler.
7814 yes:*:*:yes | yes:*:*:lto)
7815 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7816
7817 *)
7818 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7819 ;;
7820esac
7821
7822if test "$enable_pgo_build" != "no"; then
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7824$as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7825 old_CFLAGS="$CFLAGS"
7826 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7827 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7828
7829cat 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_GEN_CFLAGS=
7837fi
7838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7839 CFLAGS="$old_CFLAGS"
7840 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7842$as_echo "yes" >&6; }
7843 PGO_BUILD_USE_CFLAGS="-fprofile-use"
7844 else
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7846$as_echo "no" >&6; }
7847 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7848 fi
7849
7850 if test "$enable_pgo_build" = "lto"; then
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7852$as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7853 old_CFLAGS="$CFLAGS"
7854 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7855 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7857/* end confdefs.h. */
7858int foo;
7859_ACEOF
7860if ac_fn_c_try_compile "$LINENO"; then :
7861
7862else
7863 PGO_BUILD_LTO_CFLAGS=
7864fi
7865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7866 CFLAGS="$old_CFLAGS"
7867 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7869$as_echo "yes" >&6; }
7870 else
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7872$as_echo "no" >&6; }
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7874$as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7875 fi
7876 fi
7877fi
7878
7879
7880
7881
592c90ff
KG
7882# Used for setting $lt_cv_objdir
7883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7884$as_echo_n "checking for objdir... " >&6; }
22e05272 7885if ${lt_cv_objdir+:} false; then :
592c90ff
KG
7886 $as_echo_n "(cached) " >&6
7887else
7888 rm -f .libs 2>/dev/null
7889mkdir .libs 2>/dev/null
7890if test -d .libs; then
7891 lt_cv_objdir=.libs
7892else
7893 # MS-DOS does not allow filenames that begin with a dot.
7894 lt_cv_objdir=_libs
7895fi
7896rmdir .libs 2>/dev/null
7897fi
7898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7899$as_echo "$lt_cv_objdir" >&6; }
7900objdir=$lt_cv_objdir
7901
7902
7903
7904
7905
7906cat >>confdefs.h <<_ACEOF
7907#define LT_OBJDIR "$lt_cv_objdir/"
7908_ACEOF
7909
7910
7911
acd26225 7912# Check for GMP, MPFR and MPC
91e0d220
AP
7913require_gmp=no
7914require_mpc=no
7915if test -d ${srcdir}/gcc ; then
7916 require_gmp=yes
7917 require_mpc=yes
7918fi
7919if test -d ${srcdir}/gdb ; then
5977d14a
CC
7920 if test "x$enable_gdb" != xno; then
7921 require_gmp=yes
7922 fi
91e0d220
AP
7923fi
7924
7925gmplibs="-lmpfr -lgmp"
7926if test x"$require_mpc" = "xyes" ; then
7927 gmplibs="-lmpc $gmplibs"
7928fi
6de9cd9a 7929gmpinc=
e69bf64b 7930have_gmp=no
acd26225
KG
7931
7932# Specify a location for mpc
7933# check for this first so it ends up on the link line before mpfr.
7934
5213506e
RW
7935# Check whether --with-mpc was given.
7936if test "${with_mpc+set}" = set; then :
7937 withval=$with_mpc;
7938fi
acd26225 7939
acd26225 7940
9965e3cd 7941# Check whether --with-mpc-include was given.
5213506e
RW
7942if test "${with_mpc_include+set}" = set; then :
7943 withval=$with_mpc_include;
7944fi
acd26225 7945
acd26225 7946
9965e3cd 7947# Check whether --with-mpc-lib was given.
5213506e
RW
7948if test "${with_mpc_lib+set}" = set; then :
7949 withval=$with_mpc_lib;
7950fi
acd26225 7951
acd26225
KG
7952
7953if test "x$with_mpc" != x; then
3a5729ea
KG
7954 gmplibs="-L$with_mpc/lib $gmplibs"
7955 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
7956fi
7957if test "x$with_mpc_include" != x; then
3a5729ea 7958 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
7959fi
7960if test "x$with_mpc_lib" != x; then
3a5729ea 7961 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
7962fi
7963if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 7964 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 7965 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
7966 # Do not test the mpc version. Assume that it is sufficient, since
7967 # it is in the source tree, and the library has not been built yet
7968 # but it would be included on the link line in the version check below
7969 # hence making the test fail.
3a5729ea 7970 have_gmp=yes
acd26225 7971fi
e69bf64b 7972
bebf829d
PB
7973# Specify a location for mpfr
7974# check for this first so it ends up on the link line before gmp.
1c710c3c 7975
5213506e
RW
7976# Check whether --with-mpfr was given.
7977if test "${with_mpfr+set}" = set; then :
7978 withval=$with_mpfr;
7979fi
1c710c3c 7980
bebf829d 7981
9965e3cd 7982# Check whether --with-mpfr-include was given.
5213506e
RW
7983if test "${with_mpfr_include+set}" = set; then :
7984 withval=$with_mpfr_include;
7985fi
1c710c3c 7986
8a877c9c 7987
9965e3cd 7988# Check whether --with-mpfr-lib was given.
5213506e
RW
7989if test "${with_mpfr_lib+set}" = set; then :
7990 withval=$with_mpfr_lib;
7991fi
8a877c9c 7992
bebf829d
PB
7993
7994if test "x$with_mpfr" != x; then
7995 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 7996 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 7997fi
8a877c9c 7998if test "x$with_mpfr_include" != x; then
3a5729ea 7999 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
8000fi
8001if test "x$with_mpfr_lib" != x; then
8002 gmplibs="-L$with_mpfr_lib $gmplibs"
8003fi
e69bf64b 8004if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8f3675f8
MR
8005 # MPFR v3.1.0 moved the sources into a src sub-directory.
8006 if ! test -d ${srcdir}/mpfr/src; then
22e05272 8007 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8f3675f8 8008 fi
00f35794
BE
8009 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8010 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8011 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
e69bf64b
PB
8012 # Do not test the mpfr version. Assume that it is sufficient, since
8013 # it is in the source tree, and the library has not been built yet
8014 # but it would be included on the link line in the version check below
8015 # hence making the test fail.
8016 have_gmp=yes
8017fi
bebf829d 8018
6de9cd9a 8019# Specify a location for gmp
1c710c3c 8020
5213506e
RW
8021# Check whether --with-gmp was given.
8022if test "${with_gmp+set}" = set; then :
8023 withval=$with_gmp;
8024fi
1c710c3c 8025
6de9cd9a 8026
9965e3cd 8027# Check whether --with-gmp-include was given.
5213506e
RW
8028if test "${with_gmp_include+set}" = set; then :
8029 withval=$with_gmp_include;
8030fi
1c710c3c 8031
8a877c9c 8032
9965e3cd 8033# Check whether --with-gmp-lib was given.
5213506e
RW
8034if test "${with_gmp_lib+set}" = set; then :
8035 withval=$with_gmp_lib;
8036fi
8a877c9c
KG
8037
8038
6de9cd9a 8039
bebf829d
PB
8040if test "x$with_gmp" != x; then
8041 gmplibs="-L$with_gmp/lib $gmplibs"
8042 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 8043fi
8a877c9c
KG
8044if test "x$with_gmp_include" != x; then
8045 gmpinc="-I$with_gmp_include $gmpinc"
8046fi
8047if test "x$with_gmp_lib" != x; then
8048 gmplibs="-L$with_gmp_lib $gmplibs"
8049fi
e69bf64b 8050if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 8051 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 8052 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 8053 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 8054 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 8055 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
8056 # Do not test the gmp version. Assume that it is sufficient, since
8057 # it is in the source tree, and the library has not been built yet
8058 # but it would be included on the link line in the version check below
8059 # hence making the test fail.
8060 have_gmp=yes
8061fi
6de9cd9a 8062
91e0d220 8063if test "x$require_gmp" = xyes && test "x$have_gmp" = xno; then
e69bf64b
PB
8064 have_gmp=yes
8065 saved_CFLAGS="$CFLAGS"
8066 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
8067 # Check for the recommended and required versions of GMP.
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8069$as_echo_n "checking for the correct version of gmp.h... " >&6; }
4a5e71f2 8070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
8071/* end confdefs.h. */
8072#include "gmp.h"
8073int
8074main ()
8075{
8076
8077 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8078 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 8079 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
8080 choke me
8081 #endif
8082
8083 ;
8084 return 0;
8085}
8086_ACEOF
8087if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 8088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 8089/* end confdefs.h. */
362c6d2f 8090#include <gmp.h>
1c710c3c
DJ
8091int
8092main ()
8093{
6de9cd9a 8094
362c6d2f
KG
8095 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8096 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8097 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
8098 choke me
8099 #endif
1c710c3c
DJ
8100
8101 ;
8102 return 0;
8103}
8104_ACEOF
5213506e
RW
8105if ac_fn_c_try_compile "$LINENO"; then :
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8107$as_echo "yes" >&6; }
362c6d2f
KG
8108else
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8110$as_echo "buggy but acceptable" >&6; }
8111fi
8112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 8113else
5213506e
RW
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8115$as_echo "no" >&6; }; have_gmp=no
1c710c3c 8116fi
5213506e 8117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 8118
acd26225 8119 # If we have GMP, check the MPFR version.
e69bf64b 8120 if test x"$have_gmp" = xyes; then
362c6d2f
KG
8121 # Check for the recommended and required versions of MPFR.
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8123$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 8124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 8125/* end confdefs.h. */
70ec446f 8126#include <gmp.h>
e69bf64b 8127 #include <mpfr.h>
1c710c3c
DJ
8128int
8129main ()
8130{
e48d66a9 8131
8be34204 8132 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
e69bf64b
PB
8133 choke me
8134 #endif
1c710c3c
DJ
8135
8136 ;
8137 return 0;
8138}
8139_ACEOF
5213506e
RW
8140if ac_fn_c_try_compile "$LINENO"; then :
8141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 8142/* end confdefs.h. */
a3993f33 8143#include <gmp.h>
e69bf64b 8144 #include <mpfr.h>
1c710c3c
DJ
8145int
8146main ()
8147{
a3993f33 8148
8be34204 8149 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
e69bf64b
PB
8150 choke me
8151 #endif
acd26225
KG
8152
8153 ;
8154 return 0;
8155}
8156_ACEOF
5213506e
RW
8157if ac_fn_c_try_compile "$LINENO"; then :
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8159$as_echo "yes" >&6; }
acd26225 8160else
5213506e
RW
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8162$as_echo "buggy but acceptable" >&6; }
acd26225 8163fi
5213506e 8164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 8165else
5213506e
RW
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8167$as_echo "no" >&6; }; have_gmp=no
acd26225 8168fi
5213506e 8169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
8170 fi
8171
8172 # Check for the MPC header version.
91e0d220 8173 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes ; then
362c6d2f 8174 # Check for the recommended and required versions of MPC.
5213506e
RW
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8176$as_echo_n "checking for the correct version of mpc.h... " >&6; }
8177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
8178/* end confdefs.h. */
8179#include <mpc.h>
8180int
8181main ()
8182{
8183
362c6d2f
KG
8184 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8185 choke me
8186 #endif
8187
8188 ;
8189 return 0;
8190}
8191_ACEOF
8192if ac_fn_c_try_compile "$LINENO"; then :
8193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8194/* end confdefs.h. */
8195#include <mpc.h>
8196int
8197main ()
8198{
8199
8200 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
8201 choke me
8202 #endif
8203
8204 ;
8205 return 0;
8206}
8207_ACEOF
5213506e
RW
8208if ac_fn_c_try_compile "$LINENO"; then :
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 8210$as_echo "yes" >&6; }
362c6d2f
KG
8211else
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8213$as_echo "buggy but acceptable" >&6; }
8214fi
8215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 8216else
5213506e 8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 8218$as_echo "no" >&6; }; have_gmp=no
acd26225 8219fi
5213506e 8220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
8221 fi
8222
8223 # Now check the MPFR library.
8224 if test x"$have_gmp" = xyes; then
8225 saved_LIBS="$LIBS"
8226 LIBS="$LIBS $gmplibs"
91e0d220
AP
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
8228$as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
5213506e 8229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 8230/* end confdefs.h. */
91e0d220 8231#include <mpfr.h>
acd26225
KG
8232int
8233main ()
8234{
8235
8236 mpfr_t n;
8237 mpfr_t x;
8238 int t;
8239 mpfr_init (n);
8240 mpfr_init (x);
90ca6847
TB
8241 mpfr_atan2 (n, n, x, MPFR_RNDN);
8242 mpfr_erfc (n, x, MPFR_RNDN);
8243 mpfr_subnormalize (x, t, MPFR_RNDN);
3a5729ea
KG
8244 mpfr_clear(n);
8245 mpfr_clear(x);
91e0d220
AP
8246
8247 ;
8248 return 0;
8249}
8250_ACEOF
8251if ac_fn_c_try_link "$LINENO"; then :
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8253$as_echo "yes" >&6; }
8254else
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8256$as_echo "no" >&6; }; have_gmp=no
8257fi
8258rm -f core conftest.err conftest.$ac_objext \
8259 conftest$ac_exeext conftest.$ac_ext
8260 LIBS="$saved_LIBS"
8261 fi
8262
8263 # Now check the MPC library
8264 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes; then
8265 saved_LIBS="$LIBS"
8266 LIBS="$LIBS $gmplibs"
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
8268$as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
8269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8270/* end confdefs.h. */
8271#include <mpc.h>
8272int
8273main ()
8274{
8275
8276 mpc_t c;
3a5729ea
KG
8277 mpc_init2 (c, 53);
8278 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8279 mpc_cosh (c, c, MPC_RNDNN);
8280 mpc_pow (c, c, c, MPC_RNDNN);
8281 mpc_acosh (c, c, MPC_RNDNN);
8282 mpc_clear (c);
1c710c3c
DJ
8283
8284 ;
8285 return 0;
8286}
8287_ACEOF
5213506e
RW
8288if ac_fn_c_try_link "$LINENO"; then :
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8290$as_echo "yes" >&6; }
1c710c3c 8291else
5213506e
RW
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293$as_echo "no" >&6; }; have_gmp=no
1c710c3c 8294fi
5213506e
RW
8295rm -f core conftest.err conftest.$ac_objext \
8296 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
8297 LIBS="$saved_LIBS"
8298 fi
8299
e69bf64b 8300 CFLAGS="$saved_CFLAGS"
6de9cd9a 8301
362c6d2f
KG
8302# The library versions listed in the error message below should match
8303# the HARD-minimums enforced above.
e69bf64b 8304 if test x$have_gmp != xyes; then
91e0d220
AP
8305 if test -d ${srcdir}/gcc ; then
8306 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
3a5729ea
KG
8307Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8308their locations. Source code for these libraries can be found at
8309their respective hosting sites as well as at
aeebd94c 8310https://gcc.gnu.org/pub/gcc/infrastructure/. See also
45ab87d4 8311http://gcc.gnu.org/install/prerequisites.html for additional info. If
3a5729ea
KG
8312you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8313make sure that you have installed both the libraries and the header
8314files. They may be located in separate packages." "$LINENO" 5
91e0d220
AP
8315 else
8316 as_fn_error $? "Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
8317Try the --with-gmp and/or --with-mpfr options to specify
8318their locations. If you obtained GMP and/or MPFR from a vendor
8319distribution package, make sure that you have installed both the libraries
8320and the header files. They may be located in separate packages." "$LINENO" 5
8321 fi
e69bf64b 8322 fi
70ec446f
KG
8323fi
8324
acd26225
KG
8325# Flags needed for both GMP, MPFR and/or MPC.
8326
8327
6de9cd9a
DN
8328
8329
8330
9e3eba15 8331
0ff2d841 8332
0b21f5d3 8333# Libraries to use for stage1 or when not bootstrapping.
00020c16 8334
0b21f5d3
EB
8335# Check whether --with-stage1-libs was given.
8336if test "${with_stage1_libs+set}" = set; then :
8337 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8338 stage1_libs=
00020c16 8339 else
0b21f5d3 8340 stage1_libs=$withval
00020c16
ILT
8341 fi
8342else
5dc85f7e 8343 stage1_libs=
5213506e
RW
8344fi
8345
00020c16
ILT
8346
8347
aac9103b
TT
8348# Whether or not to use -static-libstdc++ and -static-libgcc. The
8349# default is yes if gcc is being built; no otherwise. The reason for
8350# this default is that gdb is sometimes linked against GNU Source
8351# Highlight, which is a shared library that uses C++ exceptions. In
8352# this case, -static-libstdc++ will cause crashes.
8353
8354# Check whether --with-static-standard-libraries was given.
8355if test "${with_static_standard_libraries+set}" = set; then :
8356 withval=$with_static_standard_libraries;
8357else
8358 with_static_standard_libraries=auto
8359fi
8360
8361if test "$with_static_standard_libraries" = auto; then
8362 with_static_standard_libraries=$have_compiler
8363fi
8364
0b21f5d3 8365# Linker flags to use for stage1 or when not bootstrapping.
00020c16 8366
0b21f5d3
EB
8367# Check whether --with-stage1-ldflags was given.
8368if test "${with_stage1_ldflags+set}" = set; then :
8369 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8370 stage1_ldflags=
00020c16 8371 else
0b21f5d3 8372 stage1_ldflags=$withval
00020c16
ILT
8373 fi
8374else
0b21f5d3
EB
8375 stage1_ldflags=
8376 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8377 # if supported. But if the user explicitly specified the libraries to use,
8378 # trust that they are doing what they want.
aac9103b
TT
8379 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8380 -a "$have_static_libs" = yes; then
0b21f5d3
EB
8381 stage1_ldflags="-static-libstdc++ -static-libgcc"
8382 fi
5213506e
RW
8383fi
8384
00020c16
ILT
8385
8386
5dc85f7e 8387# Libraries to use for stage2 and later builds.
00020c16 8388
5213506e
RW
8389# Check whether --with-boot-libs was given.
8390if test "${with_boot_libs+set}" = set; then :
8391 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
8392 poststage1_libs=
8393 else
8394 poststage1_libs=$withval
8395 fi
8396else
5dc85f7e 8397 poststage1_libs=
5213506e
RW
8398fi
8399
00020c16
ILT
8400
8401
ed2eaa9f
ILT
8402# Linker flags to use for stage2 and later builds.
8403
8404# Check whether --with-boot-ldflags was given.
8405if test "${with_boot_ldflags+set}" = set; then :
8406 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8407 poststage1_ldflags=
8408 else
8409 poststage1_ldflags=$withval
8410 fi
8411else
8412 poststage1_ldflags=
bec93d73
ILT
8413 # In stages 2 and 3, default to linking libstdc++ and libgcc
8414 # statically. But if the user explicitly specified the libraries to
8415 # use, trust that they are doing what they want.
8416 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
8417 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8418 fi
8419fi
8420
8421
8422
e357a5e0 8423# GCC GRAPHITE dependency isl.
4a9bb2aa 8424# Basic setup is inlined here, actual checks are in config/isl.m4
f8bf9252
SP
8425
8426
33ad93b9
RG
8427# Check whether --with-isl was given.
8428if test "${with_isl+set}" = set; then :
8429 withval=$with_isl;
5213506e 8430fi
f8bf9252 8431
f8bf9252 8432
eae1a5d4 8433# Treat --without-isl as a request to disable
625afa23 8434# GRAPHITE support and skip all following checks.
eae1a5d4 8435if test "x$with_isl" != "xno"; then
e357a5e0 8436 # Check for isl
625afa23
RG
8437
8438
33ad93b9
RG
8439# Check whether --with-isl-include was given.
8440if test "${with_isl_include+set}" = set; then :
8441 withval=$with_isl_include;
5213506e
RW
8442fi
8443
f8bf9252 8444
33ad93b9
RG
8445# Check whether --with-isl-lib was given.
8446if test "${with_isl_lib+set}" = set; then :
8447 withval=$with_isl_lib;
5213506e 8448fi
f8bf9252 8449
f8bf9252 8450
33ad93b9
RG
8451 # Check whether --enable-isl-version-check was given.
8452if test "${enable_isl_version_check+set}" = set; then :
8453 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8454else
8455 ENABLE_ISL_CHECK=yes
7d32a440
SP
8456fi
8457
8458
33ad93b9
RG
8459 # Initialize isllibs and islinc.
8460 case $with_isl in
8461 no)
8462 isllibs=
8463 islinc=
8464 ;;
8465 "" | yes)
8466 ;;
8467 *)
8468 isllibs="-L$with_isl/lib"
8469 islinc="-I$with_isl/include"
8470 ;;
8471 esac
8472 if test "x${with_isl_include}" != x ; then
8473 islinc="-I$with_isl_include"
8474 fi
8475 if test "x${with_isl_lib}" != x; then
8476 isllibs="-L$with_isl_lib"
8477 fi
8478 if test "x${islinc}" = x && test "x${isllibs}" = x \
8479 && test -d ${srcdir}/isl; then
8480 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8481 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8482 ENABLE_ISL_CHECK=no
560d18d3
AK
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8484$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
33ad93b9 8485 fi
7d32a440 8486
eae1a5d4
RG
8487 isllibs="${isllibs} -lisl"
8488
7d32a440 8489
7d32a440 8490
9847828b
RB
8491 if test "${ENABLE_ISL_CHECK}" = yes ; then
8492 _isl_saved_CFLAGS=$CFLAGS
8493 _isl_saved_LDFLAGS=$LDFLAGS
8494 _isl_saved_LIBS=$LIBS
8495
8496 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
70decafb
NS
8497 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8498 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
9847828b 8499
f877b3ad
RB
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8501$as_echo_n "checking for isl 0.15 or later... " >&6; }
e0c0c325 8502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
622dbadf 8503/* end confdefs.h. */
f877b3ad 8504#include <isl/schedule.h>
622dbadf
BC
8505int
8506main ()
8507{
f877b3ad 8508isl_options_set_schedule_serialize_sccs (NULL, 0);
622dbadf
BC
8509 ;
8510 return 0;
8511}
8512_ACEOF
8513if ac_fn_c_try_link "$LINENO"; then :
9847828b 8514 gcc_cv_isl=yes
622dbadf
BC
8515else
8516 gcc_cv_isl=no
8517fi
8518rm -f core conftest.err conftest.$ac_objext \
8519 conftest$ac_exeext conftest.$ac_ext
9847828b
RB
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8521$as_echo "$gcc_cv_isl" >&6; }
8522
560d18d3 8523 if test "${gcc_cv_isl}" = no ; then
f877b3ad
RB
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8525$as_echo "required isl version is 0.15 or later" >&6; }
1e050c90
AK
8526 fi
8527
9847828b
RB
8528 CFLAGS=$_isl_saved_CFLAGS
8529 LDFLAGS=$_isl_saved_LDFLAGS
8530 LIBS=$_isl_saved_LIBS
8531 fi
8532
8533
f8bf9252 8534
f8bf9252 8535
33ad93b9
RG
8536
8537
33ad93b9
RG
8538 if test "x${with_isl}" = xno; then
8539 graphite_requested=no
8540 elif test "x${with_isl}" != x \
8541 || test "x${with_isl_include}" != x \
8542 || test "x${with_isl_lib}" != x ; then
8543 graphite_requested=yes
8544 else
8545 graphite_requested=no
7d32a440 8546 fi
d789184e 8547
d789184e
SP
8548
8549
33ad93b9
RG
8550 if test "${gcc_cv_isl}" = no ; then
8551 isllibs=
8552 islinc=
8553 fi
8554
8555 if test "${graphite_requested}" = yes \
8556 && test "x${isllibs}" = x \
8557 && test "x${islinc}" = x ; then
f8bf9252 8558
22e05272 8559 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
33ad93b9 8560 fi
f8bf9252 8561
d32ef397 8562
d32ef397
AS
8563fi
8564
e357a5e0 8565# If the isl check failed, disable builds of in-tree variant of isl
625afa23 8566if test "x$with_isl" = xno ||
625afa23 8567 test "x$gcc_cv_isl" = xno; then
4a9bb2aa 8568 noconfigdirs="$noconfigdirs isl"
625afa23 8569 islinc=
32d024bf
RG
8570fi
8571
625afa23
RG
8572
8573
8574
d7f09764
DN
8575# Check for LTO support.
8576# Check whether --enable-lto was given.
8577if test "${enable_lto+set}" = set; then :
8578 enableval=$enable_lto; enable_lto=$enableval
8579else
8580 enable_lto=yes; default_enable_lto=yes
8581fi
8582
8583
7413962d 8584
9a02962b
DK
8585
8586
8587target_elf=no
8588case $target in
8589 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 8590 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8f56cb51 8591 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8ae12d71 8592 nvptx-*-none)
9a02962b
DK
8593 target_elf=no
8594 ;;
8595 *)
8596 target_elf=yes
8597 ;;
8598esac
8599
8600if test $target_elf = yes; then :
48215350
DK
8601 # ELF platforms build the lto-plugin always.
8602 build_lto_plugin=yes
9a02962b 8603
9a02962b
DK
8604else
8605 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 8606 case $target in
deeba76a 8607 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
48215350 8608 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
8609 *) enable_lto=no ;;
8610 esac
9a02962b 8611 else
db50fe7d
IS
8612 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8613 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
8614 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8615 # warn during gcc/ subconfigure; unless you're bootstrapping with
8616 # -flto it won't be needed until after installation anyway.
8617 case $target in
9e530bcd 8618 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9a02962b 8619 *) if test x"$enable_lto" = x"yes"; then
22e05272 8620 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
9a02962b
DK
8621 fi
8622 ;;
8623 esac
8624 fi
1cd0b716 8625 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 8626 # Build it unless LTO was explicitly disabled.
1cd0b716 8627 case $target in
48215350 8628 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
8629 *) ;;
8630 esac
48215350 8631
9a02962b
DK
8632fi
8633
d7f09764 8634
45b3824d
TS
8635# Check whether --enable-linker-plugin-configure-flags was given.
8636if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8637 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8638else
8639 extra_linker_plugin_configure_flags=
8640fi
8641
8642
8643# Check whether --enable-linker-plugin-flags was given.
8644if test "${enable_linker_plugin_flags+set}" = set; then :
8645 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8646else
8647 extra_linker_plugin_flags=
8648fi
8649
8650
8651
b6cb10af
MP
8652# Enable --enable-host-pie.
8653# Checked early to determine whether jit is an 'all' language
8654# Check whether --enable-host-pie was given.
8655if test "${enable_host_pie+set}" = set; then :
8656 enableval=$enable_host_pie; host_pie=$enableval
8657 case $host in
8658 x86_64-*-darwin* | aarch64-*-darwin*)
8659 if test x$host_pie != xyes ; then
8660 # PIC is the default, and actually cannot be switched off.
8661 echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2
8662 host_pie=yes
8663 fi ;;
8664 *) ;;
8665 esac
8666else
8667 case $host in
8668 *-*-darwin2*) host_pie=yes ;;
8669 *) host_pie=no ;;
8670 esac
8671fi
8672
8673
8674
8675
cdfee50a
NS
8676# Enable --enable-host-shared.
8677# Checked early to determine whether jit is an 'all' language
8678# Check whether --enable-host-shared was given.
8679if test "${enable_host_shared+set}" = set; then :
8680 enableval=$enable_host_shared; host_shared=$enableval
1edfc8f2 8681 case $host in
a1d2b162
IS
8682 x86_64-*-darwin* | aarch64-*-darwin*)
8683 if test x$host_shared != xyes ; then
8684 # PIC is the default, and actually cannot be switched off.
8685 echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2
8686 host_shared=yes
8687 fi ;;
b6cb10af
MP
8688 *-*-darwin*)
8689 if test x$host_pie == xyes ; then
8690 echo configure.ac: warning: PIC code is required for PIE executables. 1>&2
8691 host_shared=yes
8692 fi ;;
a1d2b162
IS
8693 *) ;;
8694 esac
cdfee50a 8695else
1edfc8f2 8696 case $host in
a1d2b162 8697 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
b6cb10af
MP
8698 # Darwin needs PIC objects to link PIE executables.
8699 *-*-darwin*) host_shared=host_pie ;;
8700 *) host_shared=no;;
a1d2b162 8701 esac
cdfee50a
NS
8702fi
8703
8704
f8bf9252 8705
05048fc2 8706
b6cb10af
MP
8707if test x$host_shared = xyes; then
8708 PICFLAG=-fPIC
8709elif test x$host_pie = xyes; then
8710 PICFLAG=-fPIE
8711else
8712 PICFLAG=
8713fi
8714
8715
8716
05048fc2
IS
8717# If we are building PIC/PIE host executables, and we are building dependent
8718# libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
8719# code.
8720host_libs_picflag=
b6cb10af 8721if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then
05048fc2
IS
8722host_libs_picflag='--with-pic'
8723fi
8724
8725
0823efed 8726# By default, C and C++ are the only stage 1 languages.
e1888513 8727stage1_languages=,c,
2805b53a 8728
00020c16 8729# Target libraries that we bootstrap.
ad1e5170 8730bootstrap_target_libs=,target-libgcc,
00020c16 8731
55ffb5ed
NN
8732# Figure out what language subdirectories are present.
8733# Look if the user specified --enable-languages="..."; if not, use
8734# the environment variable $LANGUAGES if defined. $LANGUAGES might
8735# go away some day.
8736# NB: embedded tabs in this IF block -- do not untabify
8737if test -d ${srcdir}/gcc; then
8738 if test x"${enable_languages+set}" != xset; then
8739 if test x"${LANGUAGES+set}" = xset; then
8740 enable_languages="${LANGUAGES}"
6b1786aa 8741 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
55ffb5ed 8742 else
cdfee50a 8743 enable_languages=default
55ffb5ed
NN
8744 fi
8745 else
8746 if test x"${enable_languages}" = x ||
8747 test x"${enable_languages}" = xyes;
8748 then
6b1786aa 8749 echo configure.ac: --enable-languages needs at least one language argument 1>&2
55ffb5ed
NN
8750 exit 1
8751 fi
8752 fi
8753 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8754
7f26dfa3
FXC
8755 # 'f95' is the old name for the 'fortran' language. We issue a warning
8756 # and make the substitution.
8757 case ,${enable_languages}, in
8758 *,f95,*)
6b1786aa 8759 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
7f26dfa3
FXC
8760 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8761 ;;
8762 esac
8763
0823efed
DN
8764 # If bootstrapping, C++ must be enabled.
8765 case ",$enable_languages,:$enable_bootstrap" in
8766 *,c++,*:*) ;;
8767 *:yes)
ff3ac0f4
ILT
8768 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8769 enable_languages="${enable_languages},c++"
8770 else
22e05272 8771 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
8772 fi
8773 ;;
8774 esac
8775
55ffb5ed
NN
8776 # First scan to see if an enabled language requires some other language.
8777 # We assume that a given config-lang.in will list all the language
8778 # front ends it requires, even if some are required indirectly.
8779 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8780 case ${lang_frag} in
8781 ..) ;;
8782 # The odd quoting in the next line works around
8783 # an apparent bug in bash 1.12 on linux.
8784 ${srcdir}/gcc/[*]/config-lang.in) ;;
8785 *)
69ecd18f
ILT
8786 # From the config-lang.in, get $language, $lang_requires, and
8787 # $lang_requires_boot_languages.
55ffb5ed
NN
8788 language=
8789 lang_requires=
69ecd18f 8790 lang_requires_boot_languages=
d4360477
NS
8791 # set srcdir during sourcing lang_frag to the gcc dir.
8792 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8793 # polutes this shell
8794 saved_srcdir=${srcdir}
8795 srcdir=${srcdir}/gcc . ${lang_frag}
8796 srcdir=${saved_srcdir}
69ecd18f 8797 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
8798 case ,${enable_languages}, in
8799 *,$other,*) ;;
cdfee50a 8800 *,default,*) ;;
55ffb5ed
NN
8801 *,all,*) ;;
8802 *,$language,*)
8803 echo " \`$other' language required by \`$language'; enabling" 1>&2
8804 enable_languages="${enable_languages},${other}"
8805 ;;
8806 esac
8807 done
69ecd18f
ILT
8808 for other in ${lang_requires_boot_languages} ; do
8809 if test "$other" != "c"; then
8810 case ,${enable_stage1_languages}, in
8811 *,$other,*) ;;
cdfee50a 8812 *,default,*) ;;
69ecd18f
ILT
8813 *,all,*) ;;
8814 *)
8815 case ,${enable_languages}, in
8816 *,$language,*)
8817 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8818 enable_stage1_languages="$enable_stage1_languages,${other}"
8819 ;;
8820 esac
8821 ;;
8822 esac
8823 fi
8824 done
55ffb5ed
NN
8825 ;;
8826 esac
8827 done
8828
e1888513 8829 new_enable_languages=,c,
d7f09764
DN
8830
8831 # If LTO is enabled, add the LTO front end.
d7f09764 8832 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
8833 case ,${enable_languages}, in
8834 *,lto,*) ;;
8835 *) enable_languages="${enable_languages},lto" ;;
8836 esac
1cd0b716 8837 if test "${build_lto_plugin}" = "yes" ; then
d7f09764 8838 configdirs="$configdirs lto-plugin"
d7f09764
DN
8839 fi
8840 fi
8841
426c1eb0
TS
8842 # If we're building an offloading compiler, add the LTO front end.
8843 if test x"$enable_as_accelerator_for" != x ; then
8844 case ,${enable_languages}, in
8845 *,lto,*) ;;
8846 *) enable_languages="${enable_languages},lto" ;;
8847 esac
8848 fi
8849
cdfee50a 8850 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
e1888513 8851 potential_languages=,c,
55ffb5ed 8852
4da3b0f8
ILT
8853 enabled_target_libs=
8854 disabled_target_libs=
8855
55ffb5ed
NN
8856 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8857 case ${lang_frag} in
8858 ..) ;;
8859 # The odd quoting in the next line works around
8860 # an apparent bug in bash 1.12 on linux.
8861 ${srcdir}/gcc/[*]/config-lang.in) ;;
8862 *)
1c710c3c 8863 # From the config-lang.in, get $language, $target_libs,
2805b53a 8864 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
8865 language=
8866 target_libs=
8867 lang_dirs=
1546bb64 8868 subdir_requires=
e1888513
PB
8869 boot_language=no
8870 build_by_default=yes
d4360477
NS
8871 # set srcdir during sourcing. See above about save & restore
8872 saved_srcdir=${srcdir}
8873 srcdir=${srcdir}/gcc . ${lang_frag}
8874 srcdir=${saved_srcdir}
e1888513
PB
8875 if test x${language} = x; then
8876 echo "${lang_frag} doesn't set \$language." 1>&2
8877 exit 1
8878 fi
8879
78767fd9 8880 if test "$language" = "c++"; then
0823efed 8881 boot_language=yes
00020c16
ILT
8882 fi
8883
178f875a 8884 add_this_lang=no
cdfee50a
NS
8885 # C is always enabled, so no need to add it again
8886 if test "$language" != "c"; then
8887 case ,${enable_languages}, in
8888 *,${language},*)
8889 # Language was explicitly selected; include it
d4a10d0a 8890 add_this_lang=yes
cdfee50a
NS
8891 ;;
8892 *,all,*)
8893 # All languages are enabled
8894 add_this_lang=all
8895 ;;
8896 *,default,*)
8897 # 'default' was selected, select it if it is a default language
178f875a 8898 add_this_lang=${build_by_default}
cdfee50a
NS
8899 ;;
8900 esac
8901 fi
6de9cd9a 8902
1546bb64 8903 # Disable languages that need other directories if these aren't available.
95695ad3 8904 for i in $subdir_requires; do
b6348cb3 8905 test -f "$srcdir/gcc/$i/config-lang.in" && continue
cdfee50a
NS
8906 case ${add_this_lang} in
8907 yes)
1546bb64 8908 # Specifically requested language; tell them.
22e05272 8909 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64 8910 ;;
cdfee50a
NS
8911 all)
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8913$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8914 add_this_lang=unsupported
8915 ;;
1546bb64
PB
8916 *)
8917 # Silently disable.
e1888513 8918 add_this_lang=unsupported
1546bb64
PB
8919 ;;
8920 esac
8921 done
8922
e1888513 8923 # Disable Ada if no preexisting GNAT is available.
cdfee50a
NS
8924 case ${add_this_lang}:${language}:${have_gnat} in
8925 yes:ada:no)
e1888513 8926 # Specifically requested language; tell them.
22e05272 8927 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
e1888513 8928 ;;
cdfee50a
NS
8929 all:ada:no)
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8931$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8932 add_this_lang=unsupported
8933 ;;
e1888513
PB
8934 *:ada:no)
8935 # Silently disable.
8936 add_this_lang=unsupported
8937 ;;
8938 esac
8939
5fee5ec3
IB
8940 # Disable D if no preexisting GDC is available.
8941 case ${add_this_lang}:${language}:${have_gdc} in
8942 yes:d:no)
8943 # Specifically requested language; tell them.
8944 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
8945 ;;
8946 all:d:no)
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8948$as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8949 add_this_lang=unsupported
8950 ;;
8951 *:d:no)
8952 # Silently disable.
8953 add_this_lang=unsupported
8954 ;;
8955 esac
8956
cdfee50a 8957 # Disable jit if -enable-host-shared not specified
ffac9597
JM
8958 # but not if building for Mingw. All code in Windows
8959 # is position independent code (PIC).
c83027f3
NB
8960 case $target in
8961 *mingw*) ;;
8962 *)
8963 case ${add_this_lang}:${language}:${host_shared} in
8964 yes:jit:no)
8965 # PR jit/64780: explicitly specify --enable-host-shared
22e05272 8966 as_fn_error $? "
cdfee50a
NS
8967Enabling language \"jit\" requires --enable-host-shared.
8968
8969--enable-host-shared typically slows the rest of the compiler down by
8970a few %, so you must explicitly enable it.
8971
8972If you want to build both the jit and the regular compiler, it is often
8973best to do this via two separate configure/builds, in separate
8974directories, to avoid imposing the performance cost of
8975--enable-host-shared on the regular compiler." "$LINENO" 5
c83027f3
NB
8976 ;;
8977 all:jit:no)
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
cdfee50a 8979$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
c83027f3
NB
8980 add_this_lang=unsupported
8981 ;;
8982 *:jit:no)
8983 # Silently disable.
8984 add_this_lang=unsupported
8985 ;;
8986 esac
8987 ;;
8988 esac
cdfee50a
NS
8989
8990 # Disable a language that is unsupported by the target.
8991 case "${add_this_lang}: $unsupported_languages " in
8992 no:*) ;;
8993 unsupported:*) ;;
8994 *:*" $language "*)
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8996$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
e1888513 8997 add_this_lang=unsupported
4fab7234
HPN
8998 ;;
8999 esac
9000
6de9cd9a 9001 case $add_this_lang in
e1888513 9002 unsupported)
55ffb5ed 9003 # Remove language-dependent dirs.
4da3b0f8
ILT
9004 disabled_target_libs="$disabled_target_libs $target_libs"
9005 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 9006 ;;
e1888513
PB
9007 no)
9008 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
9009 disabled_target_libs="$disabled_target_libs $target_libs"
9010 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
9011 potential_languages="${potential_languages}${language},"
9012 ;;
cdfee50a 9013 all|yes)
e1888513
PB
9014 new_enable_languages="${new_enable_languages}${language},"
9015 potential_languages="${potential_languages}${language},"
2805b53a 9016 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 9017 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
9018 case "${boot_language}:,$enable_stage1_languages," in
9019 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 9020 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
9021 case ",$stage1_languages," in
9022 *,$language,* | ,yes, | ,all,) ;;
9023 *) stage1_languages="${stage1_languages}${language}," ;;
9024 esac
00020c16 9025 # We need to bootstrap any supporting libraries.
5fee5ec3 9026 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
2805b53a
NN
9027 ;;
9028 esac
9029 ;;
55ffb5ed
NN
9030 esac
9031 ;;
9032 esac
9033 done
9034
4da3b0f8
ILT
9035 # Add target libraries which are only needed for disabled languages
9036 # to noconfigdirs.
9037 if test -n "$disabled_target_libs"; then
9038 for dir in $disabled_target_libs; do
9039 case " $enabled_target_libs " in
9040 *" ${dir} "*) ;;
9041 *) noconfigdirs="$noconfigdirs $dir" ;;
9042 esac
9043 done
9044 fi
9045
5213506e
RW
9046 # Check whether --enable-stage1-languages was given.
9047if test "${enable_stage1_languages+set}" = set; then :
9048 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
9049 ,no,|,,)
9050 # Set it to something that will have no effect in the loop below
9051 enable_stage1_languages=c ;;
9052 ,yes,)
9053 enable_stage1_languages=`echo $new_enable_languages | \
9054 sed -e "s/^,//" -e "s/,$//" ` ;;
9055 *,all,*)
9056 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
9057 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9058 esac
9059
9060 # Add "good" languages from enable_stage1_languages to stage1_languages,
9061 # while "bad" languages go in missing_languages. Leave no duplicates.
9062 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9063 case $potential_languages in
9064 *,$i,*)
9065 case $stage1_languages in
9066 *,$i,*) ;;
9067 *) stage1_languages="$stage1_languages$i," ;;
9068 esac ;;
9069 *)
9070 case $missing_languages in
9071 *,$i,*) ;;
9072 *) missing_languages="$missing_languages$i," ;;
9073 esac ;;
9074 esac
9075 done
5213506e
RW
9076fi
9077
e1888513
PB
9078
9079 # Remove leading/trailing commas that were added for simplicity
9080 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 9081 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
9082 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9083 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9084
55ffb5ed 9085 if test "x$missing_languages" != x; then
22e05272 9086 as_fn_error $? "
0cf085e4 9087The following requested languages could not be built: ${missing_languages}
5213506e 9088Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 9089 fi
55ffb5ed
NN
9090 if test "x$new_enable_languages" != "x$enable_languages"; then
9091 echo The following languages will be built: ${new_enable_languages}
e1888513 9092 enable_languages="$new_enable_languages"
55ffb5ed 9093 fi
e1888513 9094
1c710c3c 9095
b2eaac4a 9096 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
9097fi
9098
27079765
AH
9099# Handle --disable-<component> generically.
9100for dir in $configdirs $build_configdirs $target_configdirs ; do
9101 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
9102 varname=`echo $dirname | sed -e s/+/_/g`
9103 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
9104 noconfigdirs="$noconfigdirs $dir"
9105 fi
9106done
9107
43c40f3e
RO
9108# Check for Boehm's garbage collector
9109# Check whether --enable-objc-gc was given.
9110if test "${enable_objc_gc+set}" = set; then :
114bf3f1
MK
9111 enableval=$enable_objc_gc;
9112fi
9113
9114
9115# Check whether --with-target-bdw-gc was given.
9116if test "${with_target_bdw_gc+set}" = set; then :
9117 withval=$with_target_bdw_gc;
9118fi
9119
9120
9121# Check whether --with-target-bdw-gc-include was given.
9122if test "${with_target_bdw_gc_include+set}" = set; then :
9123 withval=$with_target_bdw_gc_include;
9124fi
9125
9126
9127# Check whether --with-target-bdw-gc-lib was given.
9128if test "${with_target_bdw_gc_lib+set}" = set; then :
9129 withval=$with_target_bdw_gc_lib;
9130fi
9131
9132
9133case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9135$as_echo_n "checking for bdw garbage collector... " >&6; }
9136 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
825fba52
MK
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9138$as_echo "using bdw-gc in default locations" >&6; }
114bf3f1
MK
9139 else
9140 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
22e05272 9141 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
114bf3f1 9142 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
22e05272 9143 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
114bf3f1
MK
9144 else
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9146$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9147 fi
9148 fi
43c40f3e
RO
9149esac
9150
e4cba494 9151# Disable libitm, libsanitizer, libvtv if we're not building C++
99776ebd 9152case ,${enable_languages}, in
1007a55c 9153 *,c++,*)
5e9d6aa4 9154 # Disable libitm, libsanitizer if we're not building libstdc++
1007a55c
JW
9155 case "${noconfigdirs}" in
9156 *target-libstdc++-v3*)
5e9d6aa4 9157 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
1007a55c
JW
9158 ;;
9159 *) ;;
9160 esac
9161 ;;
99776ebd 9162 *)
e4cba494 9163 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
99776ebd
RH
9164 ;;
9165esac
9166
dc614a83
AB
9167# If gcc/ is not in the source tree then we'll not be building a
9168# target compiler, assume in that case we don't want to build any
9169# target libraries or tools.
9170#
9171# This was added primarily for the benefit for binutils-gdb who reuse
9172# this configure script, but don't always have target tools available.
9173if test ! -d ${srcdir}/gcc; then
9174 skipdirs="${skipdirs} ${target_configdirs}"
9175fi
9176
ee6a22df
L
9177# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9178# $build_configdirs and $target_configdirs.
55ffb5ed
NN
9179# If we have the source for $noconfigdirs entries, add them to $notsupp.
9180
9181notsupp=""
9182for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 9183 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
9184 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9185 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9186 if test -r $srcdir/$dirname/configure ; then
9187 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9188 true
9189 else
9190 notsupp="$notsupp $dir"
9191 fi
9192 fi
9193 fi
ee6a22df
L
9194 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9195 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9196 if test -r $srcdir/$dirname/configure ; then
9197 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9198 true
9199 else
9200 notsupp="$notsupp $dir"
9201 fi
9202 fi
9203 fi
55ffb5ed
NN
9204 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9205 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9206 if test -r $srcdir/$dirname/configure ; then
9207 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9208 true
9209 else
9210 notsupp="$notsupp $dir"
9211 fi
9212 fi
9213 fi
9214done
9215
55ffb5ed
NN
9216# Quietly strip out all directories which aren't configurable in this tree.
9217# This relies on all configurable subdirectories being autoconfiscated, which
9218# is now the case.
23f6b2f9
PB
9219build_configdirs_all="$build_configdirs"
9220build_configdirs=
9221for i in ${build_configdirs_all} ; do
1c710c3c 9222 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
9223 if test -f ${srcdir}/$j/configure ; then
9224 build_configdirs="${build_configdirs} $i"
9225 fi
9226done
9227
55ffb5ed
NN
9228configdirs_all="$configdirs"
9229configdirs=
9230for i in ${configdirs_all} ; do
9231 if test -f ${srcdir}/$i/configure ; then
9232 configdirs="${configdirs} $i"
9233 fi
9234done
23f6b2f9 9235
55ffb5ed
NN
9236target_configdirs_all="$target_configdirs"
9237target_configdirs=
9238for i in ${target_configdirs_all} ; do
1c710c3c 9239 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
9240 if test -f ${srcdir}/$j/configure ; then
9241 target_configdirs="${target_configdirs} $i"
9242 fi
9243done
9244
45b3824d
TS
9245# libiberty-linker-plugin is special: it doesn't have its own source directory,
9246# so we have to add it after the preceding checks.
9247if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9248then
9249 case " $configdirs " in
9250 *" libiberty "*)
9251 # If we can build libiberty, we can also build libiberty-linker-plugin.
9252 configdirs="$configdirs libiberty-linker-plugin"
9253 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9254 --with-libiberty=../libiberty-linker-plugin";;
9255 *)
22e05272 9256 as_fn_error $? "libiberty missing" "$LINENO" 5;;
45b3824d
TS
9257 esac
9258fi
9259
fca38047
TS
9260# Sometimes we have special requirements for the host libiberty.
9261extra_host_libiberty_configure_flags=
9262case " $configdirs " in
15368960 9263 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
fca38047
TS
9264 # When these are to be built as shared libraries, the same applies to
9265 # libiberty.
9266 extra_host_libiberty_configure_flags=--enable-shared
9267 ;;
04bb15e4
TV
9268esac
9269
9270
9271# Sometimes we have special requirements for the host zlib.
9272extra_host_zlib_configure_flags=
9273case " $configdirs " in
1c01ebf6
L
9274 *" bfd "*)
9275 # When bfd is to be built as a shared library, the same applies to
9276 # zlib.
9277 if test "$enable_shared" = "yes"; then
9278 extra_host_zlib_configure_flags=--enable-host-shared
9279 fi
9280 ;;
fca38047
TS
9281esac
9282
9283
55ffb5ed
NN
9284# Produce a warning message for the subdirs we can't configure.
9285# This isn't especially interesting in the Cygnus tree, but in the individual
9286# FSF releases, it's important to let people know when their machine isn't
9287# supported by the one or two programs in a package.
9288
9289if test -n "${notsupp}" && test -z "${norecursion}" ; then
9290 # If $appdirs is non-empty, at least one of those directories must still
9291 # be configured, or we error out. (E.g., if the gas release supports a
9292 # specified target in some subdirs but not the gas subdir, we shouldn't
9293 # pretend that all is well.)
9294 if test -n "$appdirs" ; then
9295 for dir in $appdirs ; do
9296 if test -r $dir/Makefile.in ; then
9297 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9298 appdirs=""
9299 break
9300 fi
23f6b2f9 9301 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
9302 appdirs=""
9303 break
9304 fi
9305 fi
9306 done
9307 if test -n "$appdirs" ; then
9308 echo "*** This configuration is not supported by this package." 1>&2
9309 exit 1
9310 fi
9311 fi
9312 # Okay, some application will build, or we don't care to check. Still
9313 # notify of subdirs not getting built.
9314 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9315 echo " ${notsupp}" 1>&2
9316 echo " (Any other directories should still work fine.)" 1>&2
9317fi
9318
9319case "$host" in
9320 *msdosdjgpp*)
9321 enable_gdbtk=no ;;
9322esac
9323
c3a86da9
DJ
9324# To find our prefix, in gcc_cv_tool_prefix.
9325
9326# The user is always right.
9327if test "${PATH_SEPARATOR+set}" != set; then
9328 echo "#! /bin/sh" >conf$$.sh
9329 echo "exit 0" >>conf$$.sh
9330 chmod +x conf$$.sh
9331 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9332 PATH_SEPARATOR=';'
9333 else
9334 PATH_SEPARATOR=:
9335 fi
9336 rm -f conf$$.sh
9337fi
9338
9339
3c36aa6b
JJ
9340 get_gcc_base_ver="cat"
9341
9342# Check whether --with-gcc-major-version-only was given.
9343if test "${with_gcc_major_version_only+set}" = set; then :
9344 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
31db0fe0 9345 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
9346 fi
9347
9348fi
9349
9350
9351
9352
9353
c3a86da9
DJ
9354
9355if test "x$exec_prefix" = xNONE; then
9356 if test "x$prefix" = xNONE; then
9357 gcc_cv_tool_prefix=$ac_default_prefix
9358 else
9359 gcc_cv_tool_prefix=$prefix
9360 fi
9361else
9362 gcc_cv_tool_prefix=$exec_prefix
9363fi
9364
9365# If there is no compiler in the tree, use the PATH only. In any
9366# case, if there is no compiler in the tree nobody should use
9367# AS_FOR_TARGET and LD_FOR_TARGET.
9368if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
3c36aa6b
JJ
9369 if test x$with_gcc_major_version_only = xyes ; then
9370 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9371 else
9372 gcc_version=`cat $srcdir/gcc/BASE-VER`
9373 fi
c3a86da9
DJ
9374 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9375 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9376 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9377 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9378 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9379 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9380else
9381 gcc_cv_tool_dirs=
9382fi
9383
9384if test x$build = x$target && test -n "$md_exec_prefix"; then
9385 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9386fi
9387
9388
9389
55ffb5ed
NN
9390copy_dirs=
9391
1c710c3c 9392
5213506e
RW
9393# Check whether --with-build-sysroot was given.
9394if test "${with_build_sysroot+set}" = set; then :
9395 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
9396 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9397 fi
9398else
9399 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 9400fi
526635cb
MM
9401
9402
c8aea42c 9403
5213506e
RW
9404
9405# Check whether --with-debug-prefix-map was given.
9406if test "${with_debug_prefix_map+set}" = set; then :
9407 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
9408 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9409 for debug_map in $withval; do
9410 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9411 done
9412 fi
9413else
9414 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
9415fi
9416
c8aea42c
PB
9417
9418
1c8bd6a3
PB
9419# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9420# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9421# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9422# We want to ensure that TARGET libraries (which we know are built with
9423# gcc) are built with "-O2 -g", so include those options when setting
9424# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9425if test "x$CFLAGS_FOR_TARGET" = x; then
fc30054e
AH
9426 if test "x${is_cross_compiler}" = xyes; then
9427 CFLAGS_FOR_TARGET="-g -O2"
9428 else
9429 CFLAGS_FOR_TARGET=$CFLAGS
9430 case " $CFLAGS " in
9431 *" -O2 "*) ;;
9432 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9433 esac
9434 case " $CFLAGS " in
9435 *" -g "* | *" -g3 "*) ;;
9436 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9437 esac
9438 fi
1c8bd6a3
PB
9439fi
9440
9441
9442if test "x$CXXFLAGS_FOR_TARGET" = x; then
fc30054e
AH
9443 if test "x${is_cross_compiler}" = xyes; then
9444 CXXFLAGS_FOR_TARGET="-g -O2"
9445 else
9446 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9447 case " $CXXFLAGS " in
9448 *" -O2 "*) ;;
9449 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9450 esac
9451 case " $CXXFLAGS " in
9452 *" -g "* | *" -g3 "*) ;;
9453 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9454 esac
9455 fi
1c8bd6a3
PB
9456fi
9457
9458
6f57bdf6
DK
9459
9460
55ffb5ed
NN
9461# Handle --with-headers=XXX. If the value is not "yes", the contents of
9462# the named directory are copied to $(tooldir)/sys-include.
9463if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9464 if test x${is_cross_compiler} = xno ; then
9465 echo 1>&2 '***' --with-headers is only supported when cross compiling
9466 exit 1
9467 fi
9468 if test x"${with_headers}" != xyes ; then
c3a86da9 9469 x=${gcc_cv_tool_prefix}
1c710c3c 9470 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
9471 fi
9472fi
9473
9474# Handle --with-libs=XXX. If the value is not "yes", the contents of
9475# the name directories are copied to $(tooldir)/lib. Multiple directories
9476# are permitted.
9477if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9478 if test x${is_cross_compiler} = xno ; then
9479 echo 1>&2 '***' --with-libs is only supported when cross compiling
9480 exit 1
9481 fi
9482 if test x"${with_libs}" != xyes ; then
9483 # Copy the libraries in reverse order, so that files in the first named
9484 # library override files in subsequent libraries.
c3a86da9 9485 x=${gcc_cv_tool_prefix}
55ffb5ed 9486 for l in ${with_libs}; do
1c710c3c 9487 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
9488 done
9489 fi
9490fi
9491
d7f09764 9492# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
9493#
9494# This is done by determining whether or not the appropriate directory
9495# is available, and by checking whether or not specific configurations
9496# have requested that this magic not happen.
1c710c3c
DJ
9497#
9498# The command line options always override the explicit settings in
6b1786aa 9499# configure.ac, and the settings in configure.ac override this magic.
e8b05380 9500#
1c710c3c 9501# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 9502# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
9503# --without-gnu-ld options for the configure script. Similarly, if
9504# the default is to use the included zlib and you don't want to do that,
9505# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
9506
9507if test x${use_gnu_as} = x &&
9508 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9509 with_gnu_as=yes
9510 extra_host_args="$extra_host_args --with-gnu-as"
9511fi
9512
9513if test x${use_gnu_ld} = x &&
5afab7ad 9514 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
9515 with_gnu_ld=yes
9516 extra_host_args="$extra_host_args --with-gnu-ld"
9517fi
9518
d7f09764
DN
9519if test x${use_included_zlib} = x &&
9520 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9521 :
9522else
9523 with_system_zlib=yes
9524 extra_host_args="$extra_host_args --with-system-zlib"
9525fi
9526
e8b05380
PB
9527# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9528# can detect this case.
9529
9530if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9531 with_newlib=yes
9532 extra_host_args="$extra_host_args --with-newlib"
9533fi
9534
55ffb5ed
NN
9535# Handle ${copy_dirs}
9536set fnord ${copy_dirs}
9537shift
9538while test $# != 0 ; do
9539 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9540 :
9541 else
9542 echo Copying $1 to $2
9543
9544 # Use the install script to create the directory and all required
9545 # parent directories.
9546 if test -d $2 ; then
9547 :
9548 else
9549 echo >config.temp
9550 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9551 fi
9552
9553 # Copy the directory, assuming we have tar.
9554 # FIXME: Should we use B in the second tar? Not all systems support it.
9555 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9556
9557 # It is the responsibility of the user to correctly adjust all
9558 # symlinks. If somebody can figure out how to handle them correctly
9559 # here, feel free to add the code.
9560
9561 echo $1 > $2/COPIED
9562 fi
9563 shift; shift
9564done
9565
e8b05380
PB
9566# Determine a target-dependent exec_prefix that the installed
9567# gcc will search in. Keep this list sorted by triplet, with
9568# the *-*-osname triplets last.
9569md_exec_prefix=
9570case "${target}" in
30b74385 9571 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
9572 md_exec_prefix=/dev/env/DJDIR/bin
9573 ;;
e8b05380 9574 *-*-hpux* | \
e8b05380 9575 *-*-nto-qnx* | \
6de66370 9576 *-*-solaris2*)
e8b05380
PB
9577 md_exec_prefix=/usr/ccs/bin
9578 ;;
9579esac
9580
671aa708
NN
9581extra_arflags_for_target=
9582extra_nmflags_for_target=
9583extra_ranlibflags_for_target=
9584target_makefile_frag=/dev/null
9585case "${target}" in
58e24147
AM
9586 spu-*-*)
9587 target_makefile_frag="config/mt-spu"
9588 ;;
d896cc4d 9589 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4bf6c438
RS
9590 target_makefile_frag="config/mt-sde"
9591 ;;
1ec3b87b
RS
9592 mipsisa*-*-elfoabi*)
9593 target_makefile_frag="config/mt-mips-elfoabi"
9594 ;;
08d0963a
RS
9595 mips*-*-*linux* | mips*-*-gnu*)
9596 target_makefile_frag="config/mt-mips-gnu"
9597 ;;
707f1839
SL
9598 nios2-*-elf*)
9599 target_makefile_frag="config/mt-nios2-elf"
9600 ;;
76052545
EB
9601 *-*-linux-android*)
9602 target_makefile_frag="config/mt-android"
9603 ;;
416ac4d4 9604 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 9605 target_makefile_frag="config/mt-gnu"
671aa708
NN
9606 ;;
9607 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 9608 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
9609 # commands to handle both 32-bit and 64-bit objects. These flags are
9610 # harmless if we're using GNU nm or ar.
9611 extra_arflags_for_target=" -X32_64"
9612 extra_nmflags_for_target=" -B -X32_64"
9613 ;;
671aa708
NN
9614esac
9615
9616alphaieee_frag=/dev/null
9617case $target in
9618 alpha*-*-*)
9619 # This just makes sure to use the -mieee option to build target libs.
9620 # This should probably be set individually by each library.
9621 alphaieee_frag="config/mt-alphaieee"
9622 ;;
9623esac
9624
9625# If --enable-target-optspace always use -Os instead of -O2 to build
9626# the target libraries, similarly if it is not specified, use -Os
9627# on selected platforms.
9628ospace_frag=/dev/null
9629case "${enable_target_optspace}:${target}" in
9630 yes:*)
9631 ospace_frag="config/mt-ospace"
9632 ;;
9633 :d30v-*)
9634 ospace_frag="config/mt-d30v"
9635 ;;
d9063947 9636 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
671aa708
NN
9637 ospace_frag="config/mt-ospace"
9638 ;;
9639 no:* | :*)
9640 ;;
9641 *)
9642 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9643 ;;
9644esac
9645
671aa708
NN
9646# Some systems (e.g., one of the i386-aix systems the gas testers are
9647# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 9648tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
9649build_tooldir=${tooldir}
9650
671aa708
NN
9651# Create a .gdbinit file which runs the one in srcdir
9652# and tells GDB to look there for source files.
9653
9654if test -r ${srcdir}/.gdbinit ; then
9655 case ${srcdir} in
9656 .) ;;
9657 *) cat > ./.gdbinit <<EOF
9658# ${NO_EDIT}
9659dir ${srcdir}
9660dir .
9661source ${srcdir}/.gdbinit
9662EOF
9663 ;;
9664 esac
9665fi
9666
671aa708
NN
9667# Make sure that the compiler is able to generate an executable. If it
9668# can't, we are probably in trouble. We don't care whether we can run the
9669# executable--we might be using a cross compiler--we only care whether it
9670# can be created. At this point the main configure script has set CC.
9671we_are_ok=no
9672echo "int main () { return 0; }" > conftest.c
9673${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9674if test $? = 0 ; then
9675 if test -s conftest || test -s conftest.exe ; then
9676 we_are_ok=yes
9677 fi
1c710c3c 9678fi
671aa708
NN
9679case $we_are_ok in
9680 no)
9681 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9682 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9683 rm -f conftest*
9684 exit 1
9685 ;;
9686esac
9687rm -f conftest*
9688
d89f0ad6 9689# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
9690case "${host}" in
9691 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 9692 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 9693 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
9694 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9695esac
9696
d89f0ad6
AL
9697# On systems where the dynamic library environment variable is PATH,
9698# gcc/ will put dynamic libraries into a subdirectory to avoid adding
9699# built executables to PATH.
9700if test "$RPATH_ENVVAR" = PATH; then
9701 GCC_SHLIB_SUBDIR=/shlib
9702else
9703 GCC_SHLIB_SUBDIR=
9704fi
9705
beeda1d9
JJ
9706# Adjust the toplevel makefile according to whether bootstrap was selected.
9707case $enable_bootstrap in
9708 yes)
9709 bootstrap_suffix=bootstrap
9710 BUILD_CONFIG=bootstrap-debug
9711 ;;
9712 no)
9713 bootstrap_suffix=no-bootstrap
9714 BUILD_CONFIG=
9715 ;;
9716esac
9717
9718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9719$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9720
9721
9722# Check whether --with-build-config was given.
9723if test "${with_build_config+set}" = set; then :
9724 withval=$with_build_config; case $with_build_config in
9725 yes) with_build_config= ;;
9726 no) with_build_config= BUILD_CONFIG= ;;
9727 esac
9728fi
9729
9730
9731if test "x${with_build_config}" != x; then
9732 BUILD_CONFIG=$with_build_config
9733else
9734 case $BUILD_CONFIG in
9735 bootstrap-debug)
9736 if echo "int f (void) { return 0; }" > conftest.c &&
9737 ${CC} -c conftest.c &&
9738 mv conftest.o conftest.o.g0 &&
9739 ${CC} -c -g conftest.c &&
9740 mv conftest.o conftest.o.g &&
9741 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9742 :
9743 else
9744 BUILD_CONFIG=
9745 fi
9746 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9747 ;;
9748 esac
9749fi
9750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9751$as_echo "$BUILD_CONFIG" >&6; }
9752
9753
9754# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9756$as_echo_n "checking for --enable-vtable-verify... " >&6; }
9757# Check whether --enable-vtable-verify was given.
9758if test "${enable_vtable_verify+set}" = set; then :
9759 enableval=$enable_vtable_verify; case "$enableval" in
9760 yes) enable_vtable_verify=yes ;;
9761 no) enable_vtable_verify=no ;;
9762 *) enable_vtable_verify=no;;
9763 esac
9764else
9765 enable_vtable_verify=no
9766fi
9767
9768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9769$as_echo "$enable_vtable_verify" >&6; }
9770
671aa708
NN
9771# Record target_configdirs and the configure arguments for target and
9772# build configuration in Makefile.
9773target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 9774build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9e1c8fc1 9775bootstrap_fixincludes=no
671aa708 9776
ad1e5170
JR
9777# If we are building libgomp, bootstrap it.
9778if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9779 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9780fi
9781
beeda1d9
JJ
9782# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9783# or bootstrap-ubsan, bootstrap it.
9784if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9785 case "$BUILD_CONFIG" in
170e618e 9786 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
beeda1d9 9787 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9e1c8fc1 9788 bootstrap_fixincludes=yes
beeda1d9
JJ
9789 ;;
9790 esac
ac8701fe
L
9791fi
9792
beeda1d9
JJ
9793# If we are building libvtv and --enable-vtable-verify, bootstrap it.
9794if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9795 test "$enable_vtable_verify" != no; then
2077db1b
CT
9796 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9797fi
9798
5fee5ec3
IB
9799# If we are building libatomic and the list of enabled languages includes the
9800# D frontend, bootstrap it.
9801if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9802 case ,${enable_languages}, in
9803 *,d,*)
9804 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9805 ;;
9806 esac
9807fi
9808
671aa708
NN
9809# Determine whether gdb needs tk/tcl or not.
9810# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9811# and in that case we want gdb to be built without tk. Ugh!
9812# In fact I believe gdb is the *only* package directly dependent on tk,
9813# so we should be able to put the 'maybe's in unconditionally and
9814# leave out the maybe dependencies when enable_gdbtk is false. I'm not
9815# 100% sure that that's safe though.
e914a571 9816
b4f96efe 9817gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
9818case "$enable_gdbtk" in
9819 no)
9820 GDB_TK="" ;;
e914a571
AC
9821 yes)
9822 GDB_TK="${gdb_tk}" ;;
671aa708 9823 *)
e914a571
AC
9824 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9825 # distro. Eventually someone will fix this and move Insight, nee
9826 # gdbtk to a separate directory.
9827 if test -d ${srcdir}/gdb/gdbtk ; then
9828 GDB_TK="${gdb_tk}"
9829 else
9830 GDB_TK=""
9831 fi
9832 ;;
671aa708 9833esac
ef9db8d5
DJ
9834CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9835INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 9836
f9d09df0
TT
9837# gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9838# else does, only include them if one of these is built. The Makefile
9839# provides the ordering, so it's enough here to add to the list.
9840case " ${configdirs} " in
9841 *\ gdb\ *)
9842 configdirs="${configdirs} gnulib gdbsupport"
9843 ;;
9844 *\ gdbserver\ *)
9845 configdirs="${configdirs} gnulib gdbsupport"
9846 ;;
f14c9bd4
MF
9847 *\ sim\ *)
9848 configdirs="${configdirs} gnulib"
9849 ;;
f9d09df0 9850esac
98e5be21 9851
60975492 9852# Strip out unwanted targets.
8b87bb96
NN
9853
9854# While at that, we remove Makefiles if we were started for recursive
9855# configuration, so that the top-level Makefile reconfigures them,
9856# like we used to do when configure itself was recursive.
8b87bb96 9857
3e54529c
RW
9858# Loop over modules. We used to use the "$extrasub" feature from Autoconf
9859# but now we're fixing up the Makefile ourselves with the additional
9860# commands passed to AC_CONFIG_FILES. Use separate variables
9861# extrasub-{build,host,target} not because there is any reason to split
9862# the substitutions up that way, but only to remain below the limit of
9863# 99 commands in a script, for HP-UX sed.
da34ca3f
AO
9864
9865# Do not nest @if/@endif or @unless/@endunless pairs, because
9866# configure will not warn you at all.
8b87bb96 9867
79cd2b23
RW
9868case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9869 yes:yes:*\ gold\ *:*,c++,*) ;;
9870 yes:yes:*\ gold\ *:*)
22e05272 9871 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
79cd2b23
RW
9872 ;;
9873esac
9874
3e54529c 9875extrasub_build=
23f6b2f9 9876for module in ${build_configdirs} ; do
5607edfd
PB
9877 if test -z "${no_recursion}" \
9878 && test -f ${build_subdir}/${module}/Makefile; then
9879 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9880 rm -f ${build_subdir}/${module}/Makefile
9881 fi
3e54529c 9882 extrasub_build="$extrasub_build
5607edfd
PB
9883/^@if build-$module\$/d
9884/^@endif build-$module\$/d
da34ca3f 9885/^@unless build-$module\$/,/^@endunless build-$module\$/d
5607edfd 9886/^@if build-$module-$bootstrap_suffix\$/d
da34ca3f
AO
9887/^@endif build-$module-$bootstrap_suffix\$/d
9888/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
5607edfd 9889done
3e54529c 9890extrasub_host=
5607edfd 9891for module in ${configdirs} ; do
a6fbc1e2 9892 if test -z "${no_recursion}"; then
f063a9ed 9893 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
9894 if test -f ${file}; then
9895 echo 1>&2 "*** removing ${file} to force reconfigure"
9896 rm -f ${file}
9897 fi
9898 done
5607edfd 9899 fi
9e1c8fc1
JJ
9900 case ${module},${bootstrap_fixincludes} in
9901 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9902 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9903 esac
3e54529c 9904 extrasub_host="$extrasub_host
5607edfd
PB
9905/^@if $module\$/d
9906/^@endif $module\$/d
da34ca3f 9907/^@unless $module\$/,/^@endunless $module\$/d
9e1c8fc1 9908/^@if $module-$host_bootstrap_suffix\$/d
da34ca3f
AO
9909/^@endif $module-$host_bootstrap_suffix\$/d
9910/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
5607edfd 9911done
3e54529c 9912extrasub_target=
5607edfd
PB
9913for module in ${target_configdirs} ; do
9914 if test -z "${no_recursion}" \
9915 && test -f ${target_subdir}/${module}/Makefile; then
9916 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9917 rm -f ${target_subdir}/${module}/Makefile
9918 fi
00020c16
ILT
9919
9920 # We only bootstrap target libraries listed in bootstrap_target_libs.
9921 case $bootstrap_target_libs in
9922 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9923 *) target_bootstrap_suffix=no-bootstrap ;;
9924 esac
9925
3e54529c 9926 extrasub_target="$extrasub_target
5607edfd
PB
9927/^@if target-$module\$/d
9928/^@endif target-$module\$/d
da34ca3f 9929/^@unless target-$module\$/,/^@endunless target-$module\$/d
00020c16 9930/^@if target-$module-$target_bootstrap_suffix\$/d
da34ca3f
AO
9931/^@endif target-$module-$target_bootstrap_suffix\$/d
9932/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
9933done
9934
3e54529c
RW
9935# Do the final fixup along with target modules.
9936extrasub_target="$extrasub_target
da34ca3f
AO
9937/^@if /,/^@endif /d
9938/^@unless /d
9939/^@endunless /d"
671aa708 9940
4a5e71f2
L
9941if test "$enable_pgo_build" != "no"; then
9942 extrasub_build="$extrasub_build
9943/^@if pgo-build\$/d
9944/^@endif pgo-build\$/d"
9945fi
9946
671aa708
NN
9947# Create the serialization dependencies. This uses a temporary file.
9948
5213506e
RW
9949# Check whether --enable-serial-configure was given.
9950if test "${enable_serial_configure+set}" = set; then :
9951 enableval=$enable_serial_configure;
9952fi
ade82b16
AO
9953
9954
bf1d3e81
NN
9955case ${enable_serial_configure} in
9956 yes)
9957 enable_serial_build_configure=yes
9958 enable_serial_host_configure=yes
9959 enable_serial_target_configure=yes
9960 ;;
9961esac
9962
671aa708
NN
9963# These force 'configure's to be done one at a time, to avoid problems
9964# with contention over a shared config.cache.
9965rm -f serdep.tmp
7d115e01 9966if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes; then
ade82b16 9967echo '# serdep.tmp' > serdep.tmp
7d115e01 9968fi
671aa708 9969olditem=
bf1d3e81 9970test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
9971for item in ${build_configdirs} ; do
9972 case ${olditem} in
9973 "") ;;
ade82b16 9974 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
9975 esac
9976 olditem=${item}
9977done
9978olditem=
bf1d3e81 9979test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
9980for item in ${configdirs} ; do
9981 case ${olditem} in
9982 "") ;;
ade82b16 9983 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
9984 esac
9985 olditem=${item}
9986done
9987olditem=
bf1d3e81 9988test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
9989for item in ${target_configdirs} ; do
9990 case ${olditem} in
9991 "") ;;
ade82b16 9992 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
9993 esac
9994 olditem=${item}
9995done
9996serialization_dependencies=serdep.tmp
9997
9998
ade82b16 9999# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 10000# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
10001# might not want to pass down to subconfigures. The exception being
10002# --cache-file=/dev/null, which is used to turn off the use of cache
10003# files altogether, and which should be passed on to subconfigures.
10004# Also strip program-prefix, program-suffix, and program-transform-name,
10005# so that we can pass down a consistent program-transform-name.
1c710c3c 10006baseargs=
29a63921 10007tbaseargs=
1c710c3c
DJ
10008keep_next=no
10009skip_next=no
10010eval "set -- $ac_configure_args"
44bfc3ac
DJ
10011for ac_arg
10012do
1c710c3c
DJ
10013 if test X"$skip_next" = X"yes"; then
10014 skip_next=no
10015 continue
10016 fi
10017 if test X"$keep_next" = X"yes"; then
10018 case $ac_arg in
10019 *\'*)
10020 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10021 esac
10022 baseargs="$baseargs '$ac_arg'"
29a63921 10023 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
10024 keep_next=no
10025 continue
10026 fi
10027
10028 # Handle separated arguments. Based on the logic generated by
10029 # autoconf 2.59.
10030 case $ac_arg in
10031 *=* | --config-cache | -C | -disable-* | --disable-* \
10032 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
10033 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
10034 | -with-* | --with-* | -without-* | --without-* | --x)
10035 separate_arg=no
10036 ;;
10037 -*)
10038 separate_arg=yes
10039 ;;
10040 *)
10041 separate_arg=no
10042 ;;
10043 esac
10044
29a63921
AO
10045 skip_targ=no
10046 case $ac_arg in
10047
10048 --with-* | --without-*)
10049 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
10050
10051 case $libopt in
10052 *[-_]include)
10053 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
10054 ;;
10055 *[-_]lib)
10056 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
10057 ;;
10058 *)
10059 lib=$libopt
10060 ;;
10061 esac
10062
10063
10064 case $lib in
4a9bb2aa 10065 mpc | mpfr | gmp | isl)
29a63921
AO
10066 # If we're processing --with-$lib, --with-$lib-include or
10067 # --with-$lib-lib, for one of the libs above, and target is
10068 # different from host, don't pass the current argument to any
10069 # target library's configure.
10070 if test x$is_cross_compiler = xyes; then
10071 skip_targ=yes
10072 fi
10073 ;;
10074 esac
10075 ;;
10076 esac
10077
1c710c3c 10078 case "$ac_arg" in
f1a036e4
NC
10079 --cache-file=/dev/null | \
10080 -cache-file=/dev/null )
10081 # Handled here to avoid the test to skip args below.
10082 baseargs="$baseargs '$ac_arg'"
29a63921 10083 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
10084 # Assert: $separate_arg should always be no.
10085 keep_next=$separate_arg
10086 ;;
1c710c3c
DJ
10087 --no*)
10088 continue
10089 ;;
10090 --c* | \
10091 --sr* | \
10092 --ho* | \
10093 --bu* | \
10094 --t* | \
10095 --program-* | \
10096 -cache_file* | \
10097 -srcdir* | \
10098 -host* | \
10099 -build* | \
10100 -target* | \
10101 -program-prefix* | \
10102 -program-suffix* | \
10103 -program-transform-name* )
10104 skip_next=$separate_arg
10105 continue
10106 ;;
10107 -*)
10108 # An option. Add it.
10109 case $ac_arg in
10110 *\'*)
10111 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10112 esac
10113 baseargs="$baseargs '$ac_arg'"
29a63921
AO
10114 if test X"$skip_targ" = Xno; then
10115 tbaseargs="$tbaseargs '$ac_arg'"
10116 fi
1c710c3c
DJ
10117 keep_next=$separate_arg
10118 ;;
10119 *)
10120 # Either a variable assignment, or a nonopt (triplet). Don't
10121 # pass it down; let the Makefile handle this.
10122 continue
10123 ;;
10124 esac
10125done
10126# Remove the initial space we just introduced and, as these will be
10127# expanded by make, quote '$'.
10128baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 10129
43bb47c2
DJ
10130# Add in --program-transform-name, after --program-prefix and
10131# --program-suffix have been applied to it. Autoconf has already
10132# doubled dollar signs and backslashes in program_transform_name; we want
10133# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 10134# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
10135# Also, because we want to override the logic in subdir configure scripts to
10136# choose program_transform_name, replace any s,x,x, with s,y,y,.
10137sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10138${program_transform_name}
10139EOF_SED
10140gcc_transform_name=`cat conftestsed.out`
10141rm -f conftestsed.out
10142baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 10143tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
10144if test "$silent" = yes; then
10145 baseargs="$baseargs --silent"
29a63921 10146 tbaseargs="$tbaseargs --silent"
d9acb717 10147fi
0115d4a3 10148baseargs="$baseargs --disable-option-checking"
29a63921 10149tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 10150
ffedf511
RW
10151# Record and document user additions to sub configure arguments.
10152
10153
10154
10155
671aa708
NN
10156# For the build-side libraries, we just need to pretend we're native,
10157# and not use the same cache file. Multilibs are neither needed nor
3d96b0d0
HPN
10158# desired. We can't even use the same cache file for all build-side
10159# libraries, as they're compiled differently; some with C, some with
10160# C++ or with different feature-enabling options.
10161build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
671aa708
NN
10162
10163# For host modules, accept cache file option, or specification as blank.
10164case "${cache_file}" in
10165"") # empty
10166 cache_file_option="" ;;
10167/* | [A-Za-z]:[\\/]* ) # absolute path
10168 cache_file_option="--cache-file=${cache_file}" ;;
10169*) # relative path
10170 cache_file_option="--cache-file=../${cache_file}" ;;
10171esac
10172
09438bde
NN
10173# Host dirs don't like to share a cache file either, horribly enough.
10174# This seems to be due to autoconf 2.5x stupidity.
ffedf511 10175host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 10176
29a63921 10177target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
10178
10179# Passing a --with-cross-host argument lets the target libraries know
10180# whether they are being built with a cross-compiler or being built
10181# native. However, it would be better to use other mechanisms to make the
10182# sorts of decisions they want to make on this basis. Please consider
10183# this option to be deprecated. FIXME.
10184if test x${is_cross_compiler} = xyes ; then
1c710c3c 10185 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
10186fi
10187
79e0604d
FXC
10188# Special user-friendly check for native x86_64-linux build, if
10189# multilib is not explicitly enabled.
10190case "$target:$have_compiler:$host:$target:$enable_multilib" in
10191 x86_64-*linux*:yes:$build:$build:)
e640447c 10192 # Make sure we have a development environment that handles 32-bit
79e0604d
FXC
10193 dev64=no
10194 echo "int main () { return 0; }" > conftest.c
10195 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10196 if test $? = 0 ; then
10197 if test -s conftest || test -s conftest.exe ; then
10198 dev64=yes
10199 fi
10200 fi
10201 rm -f conftest*
10202 if test x${dev64} != xyes ; then
22e05272 10203 as_fn_error $? "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
79e0604d
FXC
10204 fi
10205 ;;
10206esac
10207
dc683a3f
RW
10208# Default to --enable-multilib.
10209if test x${enable_multilib} = x ; then
671aa708 10210 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 10211fi
671aa708
NN
10212
10213# Pass --with-newlib if appropriate. Note that target_configdirs has
10214# changed from the earlier setting of with_newlib.
10215if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10216 target_configargs="--with-newlib ${target_configargs}"
10217fi
10218
6b9eb62c
NN
10219# Different target subdirs use different values of certain variables
10220# (notably CXX). Worse, multilibs use *lots* of different values.
10221# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10222# it doesn't automatically accept command-line overrides of them.
10223# This means it's not safe for target subdirs to share a cache file,
10224# which is disgusting, but there you have it. Hopefully this can be
10225# fixed in future. It's still worthwhile to use a cache file for each
10226# directory. I think.
10227
bebcd931
MS
10228# Pass the appropriate --build, --host, --target and --cache-file arguments.
10229# We need to pass --target, as newer autoconf's requires consistency
10230# for target_alias and gcc doesn't manage it consistently.
e69bf64b 10231target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 10232
671aa708
NN
10233FLAGS_FOR_TARGET=
10234case " $target_configdirs " in
10235 *" newlib "*)
10236 case " $target_configargs " in
10237 *" --with-newlib "*)
10238 case "$target" in
5d571eaa 10239 *-cygwin*)
443e6238 10240 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5d571eaa 10241 ;;
671aa708
NN
10242 esac
10243
10244 # If we're not building GCC, don't discard standard headers.
10245 if test -d ${srcdir}/gcc; then
10246 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10247
10248 if test "${build}" != "${host}"; then
10249 # On Canadian crosses, CC_FOR_TARGET will have already been set
10250 # by `configure', so we won't have an opportunity to add -Bgcc/
10251 # to it. This is right: we don't want to search that directory
10252 # for binaries, but we want the header files in there, so add
10253 # them explicitly.
0463992b 10254 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
10255
10256 # Someone might think of using the pre-installed headers on
10257 # Canadian crosses, in case the installed compiler is not fully
10258 # compatible with the compiler being built. In this case, it
10259 # would be better to flag an error than risking having
10260 # incompatible object files being constructed. We can't
10261 # guarantee that an error will be flagged, but let's hope the
10262 # compiler will do it, when presented with incompatible header
10263 # files.
10264 fi
10265 fi
10266
10267 case "${target}-${is_cross_compiler}" in
f2a0e225 10268 i[3456789]86-*-linux*-no)
671aa708
NN
10269 # Here host == target, so we don't need to build gcc,
10270 # so we don't want to discard standard headers.
10271 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10272 ;;
10273 *)
10274 # If we're building newlib, use its generic headers last, but search
10275 # for any libc-related directories first (so make it the last -B
10276 # switch).
10277 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
c03353e2
RIL
10278
10279 # If we're building libgloss, find the startup file, simulator library
10280 # and linker script.
10281 case " $target_configdirs " in
10282 *" libgloss "*)
10283 # Look for startup file, simulator library and maybe linker script.
10284 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10285 # Look for libnosys.a in case the target needs it.
10286 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10287 # Most targets have the linker script in the source directory.
10288 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10289 ;;
10290 esac
671aa708
NN
10291 ;;
10292 esac
10293 ;;
10294 esac
10295 ;;
10296esac
5d571eaa 10297
b91f0a41 10298case "$target" in
5d571eaa
OS
10299 x86_64-*mingw* | *-w64-mingw*)
10300 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10301 # however, use a symlink named 'mingw' in ${prefix} .
10302 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10303 ;;
10304 *-mingw*)
10305 # MinGW can't be handled as Cygwin above since it does not use newlib.
10306 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'
10307 ;;
b91f0a41 10308esac
671aa708 10309
6691a79e
ME
10310# Allow the user to override the flags for
10311# our build compiler if desired.
f019adc1
MF
10312if test x"${build}" = x"${host}" ; then
10313 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
84401ce5 10314 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
f019adc1
MF
10315 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10316 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10317fi
6691a79e 10318
671aa708
NN
10319# On Canadian crosses, we'll be searching the right directories for
10320# the previously-installed cross compiler, so don't bother to add
10321# flags for directories within the install tree of the compiler
10322# being built; programs in there won't even run.
10323if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10324 # Search for pre-installed headers if nothing else fits.
9124bc53 10325 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
671aa708
NN
10326fi
10327
10328if test "x${use_gnu_ld}" = x &&
10329 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10330 # Arrange for us to find uninstalled linker scripts.
215c351a 10331 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
10332fi
10333
e88a2c09
DD
10334# Search for other target-specific linker scripts and such.
10335case "${target}" in
3e19841a
PB
10336 mep*)
10337 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10338 ;;
9b8ffbb8
OH
10339 # The VxWorks support for shared libraries is getting in
10340 # incrementally. Make sure it doesn't get activated implicitly:
10341 *vxworks*)
10342 if test "${enable_shared-unset}" = unset ; then
10343 enable_shared=no
10344 # So the build of libraries knows ...
10345 target_configargs="${target_configargs} --disable-shared"
10346 # So gcc knows ...
10347 host_configargs="${host_configargs} --disable-shared"
10348 fi
10349 ;;
e88a2c09
DD
10350esac
10351
671aa708 10352# Makefile fragments.
7b61653a
PE
10353for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10354do
10355 eval fragval=\$$frag
10356 if test $fragval != /dev/null; then
10357 eval $frag=${srcdir}/$fragval
10358 fi
10359done
671aa708
NN
10360
10361
10362
10363
10364
10365# Miscellanea: directories, flags, etc.
10366
10367
10368
10369
10370
10371
10372
d89f0ad6 10373
23f6b2f9 10374# Build module lists & subconfigure args.
671aa708
NN
10375
10376
10377
2abefe3d
PB
10378# Host module lists & subconfigure args.
10379
10380
10381
aae29963 10382
2abefe3d
PB
10383# Target module lists & subconfigure args.
10384
10385
10386
10387# Build tools.
10388
10389
10390
0999159b
PB
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
b4c522fa 10404
3b5e8ee4 10405
a1d2b162
IS
10406
10407
2abefe3d
PB
10408# Generate default definitions for YACC, M4, LEX and other programs that run
10409# on the build machine. These are used if the Makefile can't locate these
10410# programs in objdir.
10411MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10412
10413for ac_prog in 'bison -y' byacc yacc
10414do
1c710c3c 10415 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10416set dummy $ac_prog; ac_word=$2
5213506e
RW
10417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10418$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10419if ${ac_cv_prog_YACC+:} false; then :
5213506e 10420 $as_echo_n "(cached) " >&6
2abefe3d
PB
10421else
10422 if test -n "$YACC"; then
10423 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10424else
1c710c3c
DJ
10425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10426for as_dir in $PATH
10427do
10428 IFS=$as_save_IFS
10429 test -z "$as_dir" && as_dir=.
5213506e 10430 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10432 ac_cv_prog_YACC="$ac_prog"
5213506e 10433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10434 break 2
10435 fi
10436done
5213506e
RW
10437 done
10438IFS=$as_save_IFS
1c710c3c 10439
2abefe3d
PB
10440fi
10441fi
1c710c3c 10442YACC=$ac_cv_prog_YACC
2abefe3d 10443if test -n "$YACC"; then
5213506e
RW
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10445$as_echo "$YACC" >&6; }
2abefe3d 10446else
5213506e
RW
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10448$as_echo "no" >&6; }
2abefe3d
PB
10449fi
10450
5213506e 10451
1c710c3c 10452 test -n "$YACC" && break
2abefe3d
PB
10453done
10454test -n "$YACC" || YACC="$MISSING bison -y"
10455
10456case " $build_configdirs " in
10457 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
10458esac
10459
10460for ac_prog in bison
10461do
1c710c3c 10462 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10463set dummy $ac_prog; ac_word=$2
5213506e
RW
10464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10465$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10466if ${ac_cv_prog_BISON+:} false; then :
5213506e 10467 $as_echo_n "(cached) " >&6
2abefe3d
PB
10468else
10469 if test -n "$BISON"; then
10470 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10471else
1c710c3c
DJ
10472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10473for as_dir in $PATH
10474do
10475 IFS=$as_save_IFS
10476 test -z "$as_dir" && as_dir=.
5213506e 10477 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10479 ac_cv_prog_BISON="$ac_prog"
5213506e 10480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10481 break 2
10482 fi
10483done
5213506e
RW
10484 done
10485IFS=$as_save_IFS
1c710c3c 10486
2abefe3d
PB
10487fi
10488fi
1c710c3c 10489BISON=$ac_cv_prog_BISON
2abefe3d 10490if test -n "$BISON"; then
5213506e
RW
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10492$as_echo "$BISON" >&6; }
2abefe3d 10493else
5213506e
RW
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10495$as_echo "no" >&6; }
2abefe3d
PB
10496fi
10497
5213506e 10498
1c710c3c 10499 test -n "$BISON" && break
2abefe3d
PB
10500done
10501test -n "$BISON" || BISON="$MISSING bison"
10502
10503case " $build_configdirs " in
10504 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10505esac
10506
10507for ac_prog in gm4 gnum4 m4
10508do
1c710c3c 10509 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10510set dummy $ac_prog; ac_word=$2
5213506e
RW
10511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10512$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10513if ${ac_cv_prog_M4+:} false; then :
5213506e 10514 $as_echo_n "(cached) " >&6
2abefe3d
PB
10515else
10516 if test -n "$M4"; then
10517 ac_cv_prog_M4="$M4" # Let the user override the test.
10518else
1c710c3c
DJ
10519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10520for as_dir in $PATH
10521do
10522 IFS=$as_save_IFS
10523 test -z "$as_dir" && as_dir=.
5213506e 10524 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10526 ac_cv_prog_M4="$ac_prog"
5213506e 10527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10528 break 2
10529 fi
10530done
5213506e
RW
10531 done
10532IFS=$as_save_IFS
1c710c3c 10533
2abefe3d
PB
10534fi
10535fi
1c710c3c 10536M4=$ac_cv_prog_M4
2abefe3d 10537if test -n "$M4"; then
5213506e
RW
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10539$as_echo "$M4" >&6; }
2abefe3d 10540else
5213506e
RW
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10542$as_echo "no" >&6; }
2abefe3d
PB
10543fi
10544
5213506e 10545
1c710c3c 10546 test -n "$M4" && break
2abefe3d
PB
10547done
10548test -n "$M4" || M4="$MISSING m4"
10549
10550case " $build_configdirs " in
10551 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10552esac
10553
10554for ac_prog in flex lex
10555do
1c710c3c 10556 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10557set dummy $ac_prog; ac_word=$2
5213506e
RW
10558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10559$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10560if ${ac_cv_prog_LEX+:} false; then :
5213506e 10561 $as_echo_n "(cached) " >&6
2abefe3d
PB
10562else
10563 if test -n "$LEX"; then
10564 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10565else
1c710c3c
DJ
10566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10567for as_dir in $PATH
10568do
10569 IFS=$as_save_IFS
10570 test -z "$as_dir" && as_dir=.
5213506e 10571 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10573 ac_cv_prog_LEX="$ac_prog"
5213506e 10574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10575 break 2
10576 fi
10577done
5213506e
RW
10578 done
10579IFS=$as_save_IFS
1c710c3c 10580
2abefe3d
PB
10581fi
10582fi
1c710c3c 10583LEX=$ac_cv_prog_LEX
2abefe3d 10584if test -n "$LEX"; then
5213506e
RW
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10586$as_echo "$LEX" >&6; }
2abefe3d 10587else
5213506e
RW
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10589$as_echo "no" >&6; }
2abefe3d
PB
10590fi
10591
5213506e 10592
1c710c3c 10593 test -n "$LEX" && break
2abefe3d
PB
10594done
10595test -n "$LEX" || LEX="$MISSING flex"
10596
10597case " $build_configdirs " in
10598 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10599 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10600esac
10601
10602for ac_prog in flex
10603do
1c710c3c 10604 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10605set dummy $ac_prog; ac_word=$2
5213506e
RW
10606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10607$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10608if ${ac_cv_prog_FLEX+:} false; then :
5213506e 10609 $as_echo_n "(cached) " >&6
2abefe3d
PB
10610else
10611 if test -n "$FLEX"; then
10612 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10613else
1c710c3c
DJ
10614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10615for as_dir in $PATH
10616do
10617 IFS=$as_save_IFS
10618 test -z "$as_dir" && as_dir=.
5213506e 10619 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10621 ac_cv_prog_FLEX="$ac_prog"
5213506e 10622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10623 break 2
10624 fi
10625done
5213506e
RW
10626 done
10627IFS=$as_save_IFS
1c710c3c 10628
2abefe3d
PB
10629fi
10630fi
1c710c3c 10631FLEX=$ac_cv_prog_FLEX
2abefe3d 10632if test -n "$FLEX"; then
5213506e
RW
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10634$as_echo "$FLEX" >&6; }
2abefe3d 10635else
5213506e
RW
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10637$as_echo "no" >&6; }
2abefe3d
PB
10638fi
10639
5213506e 10640
1c710c3c 10641 test -n "$FLEX" && break
2abefe3d
PB
10642done
10643test -n "$FLEX" || FLEX="$MISSING flex"
10644
10645case " $build_configdirs " in
10646 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10647esac
10648
10649for ac_prog in makeinfo
10650do
1c710c3c 10651 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10652set dummy $ac_prog; ac_word=$2
5213506e
RW
10653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10654$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10655if ${ac_cv_prog_MAKEINFO+:} false; then :
5213506e 10656 $as_echo_n "(cached) " >&6
2abefe3d
PB
10657else
10658 if test -n "$MAKEINFO"; then
10659 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10660else
1c710c3c
DJ
10661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10662for as_dir in $PATH
10663do
10664 IFS=$as_save_IFS
10665 test -z "$as_dir" && as_dir=.
5213506e 10666 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10668 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 10669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10670 break 2
10671 fi
10672done
5213506e
RW
10673 done
10674IFS=$as_save_IFS
1c710c3c 10675
2abefe3d
PB
10676fi
10677fi
1c710c3c 10678MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 10679if test -n "$MAKEINFO"; then
5213506e
RW
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10681$as_echo "$MAKEINFO" >&6; }
2abefe3d 10682else
5213506e
RW
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10684$as_echo "no" >&6; }
2abefe3d
PB
10685fi
10686
5213506e 10687
1c710c3c 10688 test -n "$MAKEINFO" && break
2abefe3d
PB
10689done
10690test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10691
10692case " $build_configdirs " in
10693 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10694 *)
10695
d18ff35a 10696 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
10697 # higher, else we use the "missing" dummy.
10698 if ${MAKEINFO} --version \
d18ff35a 10699 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
10700 :
10701 else
10702 MAKEINFO="$MISSING makeinfo"
10703 fi
10704 ;;
10705
10706esac
671aa708 10707
2abefe3d 10708# FIXME: expect and dejagnu may become build tools?
671aa708 10709
2abefe3d
PB
10710for ac_prog in expect
10711do
1c710c3c 10712 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10713set dummy $ac_prog; ac_word=$2
5213506e
RW
10714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10715$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10716if ${ac_cv_prog_EXPECT+:} false; then :
5213506e 10717 $as_echo_n "(cached) " >&6
2abefe3d
PB
10718else
10719 if test -n "$EXPECT"; then
10720 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10721else
1c710c3c
DJ
10722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10723for as_dir in $PATH
10724do
10725 IFS=$as_save_IFS
10726 test -z "$as_dir" && as_dir=.
5213506e 10727 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10729 ac_cv_prog_EXPECT="$ac_prog"
5213506e 10730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10731 break 2
10732 fi
10733done
5213506e
RW
10734 done
10735IFS=$as_save_IFS
1c710c3c 10736
2abefe3d
PB
10737fi
10738fi
1c710c3c 10739EXPECT=$ac_cv_prog_EXPECT
2abefe3d 10740if test -n "$EXPECT"; then
5213506e
RW
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10742$as_echo "$EXPECT" >&6; }
2abefe3d 10743else
5213506e
RW
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10745$as_echo "no" >&6; }
2abefe3d 10746fi
671aa708 10747
5213506e 10748
1c710c3c 10749 test -n "$EXPECT" && break
2abefe3d
PB
10750done
10751test -n "$EXPECT" || EXPECT="expect"
671aa708 10752
2abefe3d
PB
10753case " $configdirs " in
10754 *" expect "*)
10755 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10756 ;;
10757esac
671aa708 10758
2abefe3d
PB
10759for ac_prog in runtest
10760do
1c710c3c 10761 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10762set dummy $ac_prog; ac_word=$2
5213506e
RW
10763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10764$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10765if ${ac_cv_prog_RUNTEST+:} false; then :
5213506e 10766 $as_echo_n "(cached) " >&6
2abefe3d
PB
10767else
10768 if test -n "$RUNTEST"; then
10769 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 10770else
1c710c3c
DJ
10771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10772for as_dir in $PATH
10773do
10774 IFS=$as_save_IFS
10775 test -z "$as_dir" && as_dir=.
5213506e 10776 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10778 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 10779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10780 break 2
10781 fi
10782done
5213506e
RW
10783 done
10784IFS=$as_save_IFS
1c710c3c 10785
2abefe3d
PB
10786fi
10787fi
1c710c3c 10788RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 10789if test -n "$RUNTEST"; then
5213506e
RW
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10791$as_echo "$RUNTEST" >&6; }
2abefe3d 10792else
5213506e
RW
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10794$as_echo "no" >&6; }
2abefe3d 10795fi
671aa708 10796
5213506e 10797
1c710c3c 10798 test -n "$RUNTEST" && break
2abefe3d
PB
10799done
10800test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 10801
2abefe3d
PB
10802case " $configdirs " in
10803 *" dejagnu "*)
c394e891 10804 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
10805 ;;
10806esac
671aa708 10807
4e3dcf20 10808
671aa708 10809# Host tools.
ca9f4b81
AO
10810ncn_tool_prefix=
10811test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10812ncn_target_tool_prefix=
10813test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10814
278a7a38
AO
10815
10816
10817if test -n "$AR"; then
10818 ac_cv_prog_AR=$AR
10819elif test -n "$ac_cv_prog_AR"; then
10820 AR=$ac_cv_prog_AR
10821fi
10822
10823if test -n "$ac_cv_prog_AR"; then
10824 for ncn_progname in ar; do
10825 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10826set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10828$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10829if ${ac_cv_prog_AR+:} false; then :
5213506e 10830 $as_echo_n "(cached) " >&6
278a7a38
AO
10831else
10832 if test -n "$AR"; then
10833 ac_cv_prog_AR="$AR" # Let the user override the test.
10834else
10835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10836for as_dir in $PATH
10837do
10838 IFS=$as_save_IFS
10839 test -z "$as_dir" && as_dir=.
5213506e 10840 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10842 ac_cv_prog_AR="${ncn_progname}"
5213506e 10843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10844 break 2
10845 fi
10846done
5213506e
RW
10847 done
10848IFS=$as_save_IFS
278a7a38
AO
10849
10850fi
10851fi
10852AR=$ac_cv_prog_AR
10853if test -n "$AR"; then
5213506e
RW
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10855$as_echo "$AR" >&6; }
278a7a38 10856else
5213506e
RW
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10858$as_echo "no" >&6; }
278a7a38
AO
10859fi
10860
5213506e 10861
278a7a38
AO
10862 done
10863fi
10864
10865for ncn_progname in ar; do
2693c0b0
PB
10866 if test -n "$ncn_tool_prefix"; then
10867 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10868set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10870$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10871if ${ac_cv_prog_AR+:} false; then :
5213506e 10872 $as_echo_n "(cached) " >&6
ca9f4b81
AO
10873else
10874 if test -n "$AR"; then
10875 ac_cv_prog_AR="$AR" # Let the user override the test.
10876else
1c710c3c
DJ
10877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10878for as_dir in $PATH
10879do
10880 IFS=$as_save_IFS
10881 test -z "$as_dir" && as_dir=.
5213506e 10882 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10884 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 10885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10886 break 2
10887 fi
10888done
5213506e
RW
10889 done
10890IFS=$as_save_IFS
1c710c3c 10891
ca9f4b81
AO
10892fi
10893fi
1c710c3c 10894AR=$ac_cv_prog_AR
ca9f4b81 10895if test -n "$AR"; then
5213506e
RW
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10897$as_echo "$AR" >&6; }
ca9f4b81 10898else
5213506e
RW
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10900$as_echo "no" >&6; }
ca9f4b81
AO
10901fi
10902
5213506e 10903
2693c0b0
PB
10904 fi
10905 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10906 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10907set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10909$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10910if ${ac_cv_prog_AR+:} false; then :
5213506e 10911 $as_echo_n "(cached) " >&6
ca9f4b81 10912else
2693c0b0 10913 if test -n "$AR"; then
af71363e
AS
10914 ac_cv_prog_AR="$AR" # Let the user override the test.
10915else
1c710c3c
DJ
10916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10917for as_dir in $PATH
10918do
10919 IFS=$as_save_IFS
10920 test -z "$as_dir" && as_dir=.
5213506e 10921 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10923 ac_cv_prog_AR="${ncn_progname}"
5213506e 10924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10925 break 2
10926 fi
10927done
5213506e
RW
10928 done
10929IFS=$as_save_IFS
1c710c3c 10930
ca9f4b81
AO
10931fi
10932fi
1c710c3c 10933AR=$ac_cv_prog_AR
2693c0b0 10934if test -n "$AR"; then
5213506e
RW
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10936$as_echo "$AR" >&6; }
ca9f4b81 10937else
5213506e
RW
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10939$as_echo "no" >&6; }
ca9f4b81 10940fi
1c710c3c 10941
5213506e 10942
2693c0b0
PB
10943 fi
10944 test -n "$ac_cv_prog_AR" && break
10945done
10946
10947if test -z "$ac_cv_prog_AR" ; then
10948 set dummy ar
10949 if test $build = $host ; then
10950 AR="$2"
ca9f4b81 10951 else
2693c0b0 10952 AR="${ncn_tool_prefix}$2"
ca9f4b81 10953 fi
ca9f4b81
AO
10954fi
10955
278a7a38
AO
10956
10957
10958if test -n "$AS"; then
10959 ac_cv_prog_AS=$AS
10960elif test -n "$ac_cv_prog_AS"; then
10961 AS=$ac_cv_prog_AS
10962fi
10963
10964if test -n "$ac_cv_prog_AS"; then
10965 for ncn_progname in as; do
10966 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10967set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10969$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10970if ${ac_cv_prog_AS+:} false; then :
5213506e 10971 $as_echo_n "(cached) " >&6
278a7a38
AO
10972else
10973 if test -n "$AS"; then
10974 ac_cv_prog_AS="$AS" # Let the user override the test.
10975else
10976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10977for as_dir in $PATH
10978do
10979 IFS=$as_save_IFS
10980 test -z "$as_dir" && as_dir=.
5213506e 10981 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10983 ac_cv_prog_AS="${ncn_progname}"
5213506e 10984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10985 break 2
10986 fi
10987done
5213506e
RW
10988 done
10989IFS=$as_save_IFS
278a7a38
AO
10990
10991fi
10992fi
10993AS=$ac_cv_prog_AS
10994if test -n "$AS"; then
5213506e
RW
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10996$as_echo "$AS" >&6; }
278a7a38 10997else
5213506e
RW
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10999$as_echo "no" >&6; }
278a7a38
AO
11000fi
11001
5213506e 11002
278a7a38
AO
11003 done
11004fi
11005
11006for ncn_progname in as; do
2693c0b0
PB
11007 if test -n "$ncn_tool_prefix"; then
11008 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11009set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11011$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11012if ${ac_cv_prog_AS+:} false; then :
5213506e 11013 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11014else
11015 if test -n "$AS"; then
11016 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 11017else
1c710c3c
DJ
11018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11019for as_dir in $PATH
11020do
11021 IFS=$as_save_IFS
11022 test -z "$as_dir" && as_dir=.
5213506e 11023 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11025 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 11026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11027 break 2
11028 fi
11029done
5213506e
RW
11030 done
11031IFS=$as_save_IFS
1c710c3c 11032
ca9f4b81
AO
11033fi
11034fi
1c710c3c 11035AS=$ac_cv_prog_AS
ca9f4b81 11036if test -n "$AS"; then
5213506e
RW
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11038$as_echo "$AS" >&6; }
ca9f4b81 11039else
5213506e
RW
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11041$as_echo "no" >&6; }
ca9f4b81
AO
11042fi
11043
5213506e 11044
2693c0b0
PB
11045 fi
11046 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
11047 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11048set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11050$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11051if ${ac_cv_prog_AS+:} false; then :
5213506e 11052 $as_echo_n "(cached) " >&6
ca9f4b81 11053else
2693c0b0
PB
11054 if test -n "$AS"; then
11055 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 11056else
1c710c3c
DJ
11057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11058for as_dir in $PATH
11059do
11060 IFS=$as_save_IFS
11061 test -z "$as_dir" && as_dir=.
5213506e 11062 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11064 ac_cv_prog_AS="${ncn_progname}"
5213506e 11065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11066 break 2
11067 fi
11068done
5213506e
RW
11069 done
11070IFS=$as_save_IFS
1c710c3c 11071
ca9f4b81
AO
11072fi
11073fi
1c710c3c 11074AS=$ac_cv_prog_AS
2693c0b0 11075if test -n "$AS"; then
5213506e
RW
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11077$as_echo "$AS" >&6; }
ca9f4b81 11078else
5213506e
RW
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11080$as_echo "no" >&6; }
ca9f4b81 11081fi
1c710c3c 11082
5213506e 11083
2693c0b0
PB
11084 fi
11085 test -n "$ac_cv_prog_AS" && break
11086done
11087
11088if test -z "$ac_cv_prog_AS" ; then
11089 set dummy as
11090 if test $build = $host ; then
11091 AS="$2"
ca9f4b81 11092 else
2693c0b0 11093 AS="${ncn_tool_prefix}$2"
ca9f4b81 11094 fi
ca9f4b81
AO
11095fi
11096
278a7a38
AO
11097
11098
11099if test -n "$DLLTOOL"; then
11100 ac_cv_prog_DLLTOOL=$DLLTOOL
11101elif test -n "$ac_cv_prog_DLLTOOL"; then
11102 DLLTOOL=$ac_cv_prog_DLLTOOL
11103fi
11104
11105if test -n "$ac_cv_prog_DLLTOOL"; then
11106 for ncn_progname in dlltool; do
11107 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11108set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11110$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11111if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 11112 $as_echo_n "(cached) " >&6
278a7a38
AO
11113else
11114 if test -n "$DLLTOOL"; then
11115 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11116else
11117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11118for as_dir in $PATH
11119do
11120 IFS=$as_save_IFS
11121 test -z "$as_dir" && as_dir=.
5213506e 11122 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11124 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 11125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11126 break 2
11127 fi
11128done
5213506e
RW
11129 done
11130IFS=$as_save_IFS
278a7a38
AO
11131
11132fi
11133fi
11134DLLTOOL=$ac_cv_prog_DLLTOOL
11135if test -n "$DLLTOOL"; then
5213506e
RW
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11137$as_echo "$DLLTOOL" >&6; }
278a7a38 11138else
5213506e
RW
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11140$as_echo "no" >&6; }
278a7a38
AO
11141fi
11142
5213506e 11143
278a7a38
AO
11144 done
11145fi
11146
11147for ncn_progname in dlltool; do
2693c0b0
PB
11148 if test -n "$ncn_tool_prefix"; then
11149 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11150set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11152$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11153if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 11154 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11155else
11156 if test -n "$DLLTOOL"; then
11157 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11158else
1c710c3c
DJ
11159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11160for as_dir in $PATH
11161do
11162 IFS=$as_save_IFS
11163 test -z "$as_dir" && as_dir=.
5213506e 11164 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11166 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 11167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11168 break 2
11169 fi
11170done
5213506e
RW
11171 done
11172IFS=$as_save_IFS
1c710c3c 11173
ca9f4b81
AO
11174fi
11175fi
1c710c3c 11176DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 11177if test -n "$DLLTOOL"; then
5213506e
RW
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11179$as_echo "$DLLTOOL" >&6; }
ca9f4b81 11180else
5213506e
RW
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11182$as_echo "no" >&6; }
ca9f4b81
AO
11183fi
11184
5213506e 11185
2693c0b0
PB
11186 fi
11187 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11188 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11189set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11191$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11192if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 11193 $as_echo_n "(cached) " >&6
ca9f4b81 11194else
2693c0b0
PB
11195 if test -n "$DLLTOOL"; then
11196 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 11197else
1c710c3c
DJ
11198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11199for as_dir in $PATH
11200do
11201 IFS=$as_save_IFS
11202 test -z "$as_dir" && as_dir=.
5213506e 11203 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11205 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 11206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11207 break 2
11208 fi
11209done
5213506e
RW
11210 done
11211IFS=$as_save_IFS
1c710c3c 11212
ca9f4b81
AO
11213fi
11214fi
1c710c3c 11215DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 11216if test -n "$DLLTOOL"; then
5213506e
RW
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11218$as_echo "$DLLTOOL" >&6; }
ca9f4b81 11219else
5213506e
RW
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11221$as_echo "no" >&6; }
ca9f4b81 11222fi
1c710c3c 11223
5213506e 11224
2693c0b0
PB
11225 fi
11226 test -n "$ac_cv_prog_DLLTOOL" && break
11227done
11228
11229if test -z "$ac_cv_prog_DLLTOOL" ; then
11230 set dummy dlltool
11231 if test $build = $host ; then
11232 DLLTOOL="$2"
ca9f4b81 11233 else
2693c0b0 11234 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 11235 fi
ca9f4b81
AO
11236fi
11237
278a7a38
AO
11238
11239
3b5e8ee4
IS
11240if test -n "$DSYMUTIL"; then
11241 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11242elif test -n "$ac_cv_prog_DSYMUTIL"; then
11243 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11244fi
11245
11246if test -n "$ac_cv_prog_DSYMUTIL"; then
11247 for ncn_progname in dsymutil; do
11248 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11249set dummy ${ncn_progname}; ac_word=$2
11250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11251$as_echo_n "checking for $ac_word... " >&6; }
11252if ${ac_cv_prog_DSYMUTIL+:} false; then :
11253 $as_echo_n "(cached) " >&6
11254else
11255 if test -n "$DSYMUTIL"; then
11256 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11257else
11258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11259for as_dir in $PATH
11260do
11261 IFS=$as_save_IFS
11262 test -z "$as_dir" && as_dir=.
11263 for ac_exec_ext in '' $ac_executable_extensions; do
11264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11265 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11267 break 2
11268 fi
11269done
11270 done
11271IFS=$as_save_IFS
11272
11273fi
11274fi
11275DSYMUTIL=$ac_cv_prog_DSYMUTIL
11276if test -n "$DSYMUTIL"; then
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11278$as_echo "$DSYMUTIL" >&6; }
11279else
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11281$as_echo "no" >&6; }
11282fi
11283
11284
11285 done
11286fi
11287
11288for ncn_progname in dsymutil; do
11289 if test -n "$ncn_tool_prefix"; then
11290 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11291set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11293$as_echo_n "checking for $ac_word... " >&6; }
11294if ${ac_cv_prog_DSYMUTIL+:} false; then :
11295 $as_echo_n "(cached) " >&6
11296else
11297 if test -n "$DSYMUTIL"; then
11298 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11299else
11300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11301for as_dir in $PATH
11302do
11303 IFS=$as_save_IFS
11304 test -z "$as_dir" && as_dir=.
11305 for ac_exec_ext in '' $ac_executable_extensions; do
11306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11307 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11309 break 2
11310 fi
11311done
11312 done
11313IFS=$as_save_IFS
11314
11315fi
11316fi
11317DSYMUTIL=$ac_cv_prog_DSYMUTIL
11318if test -n "$DSYMUTIL"; then
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11320$as_echo "$DSYMUTIL" >&6; }
11321else
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11323$as_echo "no" >&6; }
11324fi
11325
11326
11327 fi
11328 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11329 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11330set dummy ${ncn_progname}; ac_word=$2
11331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11332$as_echo_n "checking for $ac_word... " >&6; }
11333if ${ac_cv_prog_DSYMUTIL+:} false; then :
11334 $as_echo_n "(cached) " >&6
11335else
11336 if test -n "$DSYMUTIL"; then
11337 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11338else
11339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11340for as_dir in $PATH
11341do
11342 IFS=$as_save_IFS
11343 test -z "$as_dir" && as_dir=.
11344 for ac_exec_ext in '' $ac_executable_extensions; do
11345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11346 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11348 break 2
11349 fi
11350done
11351 done
11352IFS=$as_save_IFS
11353
11354fi
11355fi
11356DSYMUTIL=$ac_cv_prog_DSYMUTIL
11357if test -n "$DSYMUTIL"; then
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11359$as_echo "$DSYMUTIL" >&6; }
11360else
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11362$as_echo "no" >&6; }
11363fi
11364
11365
11366 fi
11367 test -n "$ac_cv_prog_DSYMUTIL" && break
11368done
11369
11370if test -z "$ac_cv_prog_DSYMUTIL" ; then
11371 set dummy dsymutil
11372 if test $build = $host ; then
11373 DSYMUTIL="$2"
11374 else
11375 DSYMUTIL="${ncn_tool_prefix}$2"
11376 fi
11377fi
11378
11379
11380
278a7a38
AO
11381if test -n "$LD"; then
11382 ac_cv_prog_LD=$LD
11383elif test -n "$ac_cv_prog_LD"; then
11384 LD=$ac_cv_prog_LD
11385fi
11386
11387if test -n "$ac_cv_prog_LD"; then
11388 for ncn_progname in ld; do
11389 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11390set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11392$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11393if ${ac_cv_prog_LD+:} false; then :
5213506e 11394 $as_echo_n "(cached) " >&6
278a7a38
AO
11395else
11396 if test -n "$LD"; then
11397 ac_cv_prog_LD="$LD" # Let the user override the test.
11398else
11399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11400for as_dir in $PATH
11401do
11402 IFS=$as_save_IFS
11403 test -z "$as_dir" && as_dir=.
5213506e 11404 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11406 ac_cv_prog_LD="${ncn_progname}"
5213506e 11407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11408 break 2
11409 fi
11410done
5213506e
RW
11411 done
11412IFS=$as_save_IFS
278a7a38
AO
11413
11414fi
11415fi
11416LD=$ac_cv_prog_LD
11417if test -n "$LD"; then
5213506e
RW
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11419$as_echo "$LD" >&6; }
278a7a38 11420else
5213506e
RW
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11422$as_echo "no" >&6; }
278a7a38
AO
11423fi
11424
5213506e 11425
278a7a38
AO
11426 done
11427fi
11428
11429for ncn_progname in ld; do
2693c0b0
PB
11430 if test -n "$ncn_tool_prefix"; then
11431 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11432set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11434$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11435if ${ac_cv_prog_LD+:} false; then :
5213506e 11436 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11437else
11438 if test -n "$LD"; then
11439 ac_cv_prog_LD="$LD" # Let the user override the test.
11440else
1c710c3c
DJ
11441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11442for as_dir in $PATH
11443do
11444 IFS=$as_save_IFS
11445 test -z "$as_dir" && as_dir=.
5213506e 11446 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11448 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 11449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11450 break 2
11451 fi
11452done
5213506e
RW
11453 done
11454IFS=$as_save_IFS
1c710c3c 11455
ca9f4b81
AO
11456fi
11457fi
1c710c3c 11458LD=$ac_cv_prog_LD
ca9f4b81 11459if test -n "$LD"; then
5213506e
RW
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11461$as_echo "$LD" >&6; }
ca9f4b81 11462else
5213506e
RW
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11464$as_echo "no" >&6; }
ca9f4b81
AO
11465fi
11466
5213506e 11467
2693c0b0
PB
11468 fi
11469 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11470 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11471set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11473$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11474if ${ac_cv_prog_LD+:} false; then :
5213506e 11475 $as_echo_n "(cached) " >&6
ca9f4b81 11476else
2693c0b0
PB
11477 if test -n "$LD"; then
11478 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 11479else
1c710c3c
DJ
11480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11481for as_dir in $PATH
11482do
11483 IFS=$as_save_IFS
11484 test -z "$as_dir" && as_dir=.
5213506e 11485 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11487 ac_cv_prog_LD="${ncn_progname}"
5213506e 11488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11489 break 2
11490 fi
11491done
5213506e
RW
11492 done
11493IFS=$as_save_IFS
1c710c3c 11494
ca9f4b81
AO
11495fi
11496fi
1c710c3c 11497LD=$ac_cv_prog_LD
2693c0b0 11498if test -n "$LD"; then
5213506e
RW
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11500$as_echo "$LD" >&6; }
ca9f4b81 11501else
5213506e
RW
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11503$as_echo "no" >&6; }
ca9f4b81 11504fi
1c710c3c 11505
5213506e 11506
2693c0b0
PB
11507 fi
11508 test -n "$ac_cv_prog_LD" && break
11509done
11510
11511if test -z "$ac_cv_prog_LD" ; then
11512 set dummy ld
11513 if test $build = $host ; then
11514 LD="$2"
ca9f4b81 11515 else
2693c0b0 11516 LD="${ncn_tool_prefix}$2"
ca9f4b81 11517 fi
ca9f4b81
AO
11518fi
11519
278a7a38
AO
11520
11521
11522if test -n "$LIPO"; then
11523 ac_cv_prog_LIPO=$LIPO
11524elif test -n "$ac_cv_prog_LIPO"; then
11525 LIPO=$ac_cv_prog_LIPO
11526fi
11527
11528if test -n "$ac_cv_prog_LIPO"; then
11529 for ncn_progname in lipo; do
11530 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11531set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11533$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11534if ${ac_cv_prog_LIPO+:} false; then :
5213506e 11535 $as_echo_n "(cached) " >&6
278a7a38
AO
11536else
11537 if test -n "$LIPO"; then
11538 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11539else
11540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11541for as_dir in $PATH
11542do
11543 IFS=$as_save_IFS
11544 test -z "$as_dir" && as_dir=.
5213506e 11545 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11547 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 11548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11549 break 2
11550 fi
11551done
5213506e
RW
11552 done
11553IFS=$as_save_IFS
278a7a38
AO
11554
11555fi
11556fi
11557LIPO=$ac_cv_prog_LIPO
11558if test -n "$LIPO"; then
5213506e
RW
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11560$as_echo "$LIPO" >&6; }
278a7a38 11561else
5213506e
RW
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11563$as_echo "no" >&6; }
278a7a38
AO
11564fi
11565
5213506e 11566
278a7a38
AO
11567 done
11568fi
11569
11570for ncn_progname in lipo; do
2abefe3d
PB
11571 if test -n "$ncn_tool_prefix"; then
11572 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11573set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11575$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11576if ${ac_cv_prog_LIPO+:} false; then :
5213506e 11577 $as_echo_n "(cached) " >&6
2abefe3d
PB
11578else
11579 if test -n "$LIPO"; then
11580 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11581else
1c710c3c
DJ
11582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11583for as_dir in $PATH
11584do
11585 IFS=$as_save_IFS
11586 test -z "$as_dir" && as_dir=.
5213506e 11587 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11589 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 11590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11591 break 2
11592 fi
11593done
5213506e
RW
11594 done
11595IFS=$as_save_IFS
1c710c3c 11596
2abefe3d
PB
11597fi
11598fi
1c710c3c 11599LIPO=$ac_cv_prog_LIPO
2abefe3d 11600if test -n "$LIPO"; then
5213506e
RW
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11602$as_echo "$LIPO" >&6; }
2abefe3d 11603else
5213506e
RW
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11605$as_echo "no" >&6; }
2abefe3d
PB
11606fi
11607
5213506e 11608
2abefe3d
PB
11609 fi
11610 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11611 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11612set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11614$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11615if ${ac_cv_prog_LIPO+:} false; then :
5213506e 11616 $as_echo_n "(cached) " >&6
2abefe3d
PB
11617else
11618 if test -n "$LIPO"; then
11619 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11620else
1c710c3c
DJ
11621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11622for as_dir in $PATH
11623do
11624 IFS=$as_save_IFS
11625 test -z "$as_dir" && as_dir=.
5213506e 11626 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11628 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 11629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11630 break 2
11631 fi
11632done
5213506e
RW
11633 done
11634IFS=$as_save_IFS
1c710c3c 11635
2abefe3d
PB
11636fi
11637fi
1c710c3c 11638LIPO=$ac_cv_prog_LIPO
2abefe3d 11639if test -n "$LIPO"; then
5213506e
RW
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11641$as_echo "$LIPO" >&6; }
2abefe3d 11642else
5213506e
RW
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11644$as_echo "no" >&6; }
2abefe3d 11645fi
1c710c3c 11646
5213506e 11647
2abefe3d
PB
11648 fi
11649 test -n "$ac_cv_prog_LIPO" && break
11650done
11651
11652if test -z "$ac_cv_prog_LIPO" ; then
11653 set dummy lipo
11654 if test $build = $host ; then
11655 LIPO="$2"
11656 else
11657 LIPO="${ncn_tool_prefix}$2"
11658 fi
11659fi
11660
278a7a38
AO
11661
11662
11663if test -n "$NM"; then
11664 ac_cv_prog_NM=$NM
11665elif test -n "$ac_cv_prog_NM"; then
11666 NM=$ac_cv_prog_NM
11667fi
11668
11669if test -n "$ac_cv_prog_NM"; then
11670 for ncn_progname in nm; do
11671 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11672set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11674$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11675if ${ac_cv_prog_NM+:} false; then :
5213506e 11676 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11677else
11678 if test -n "$NM"; then
11679 ac_cv_prog_NM="$NM" # Let the user override the test.
11680else
1c710c3c
DJ
11681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11682for as_dir in $PATH
11683do
11684 IFS=$as_save_IFS
11685 test -z "$as_dir" && as_dir=.
5213506e 11686 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11688 ac_cv_prog_NM="${ncn_progname}"
5213506e 11689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11690 break 2
11691 fi
11692done
5213506e
RW
11693 done
11694IFS=$as_save_IFS
1c710c3c 11695
ca9f4b81
AO
11696fi
11697fi
1c710c3c 11698NM=$ac_cv_prog_NM
ca9f4b81 11699if test -n "$NM"; then
5213506e
RW
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11701$as_echo "$NM" >&6; }
ca9f4b81 11702else
5213506e
RW
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11704$as_echo "no" >&6; }
ca9f4b81
AO
11705fi
11706
5213506e 11707
278a7a38
AO
11708 done
11709fi
11710
11711for ncn_progname in nm; do
11712 if test -n "$ncn_tool_prefix"; then
11713 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11714set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11716$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11717if ${ac_cv_prog_NM+:} false; then :
5213506e 11718 $as_echo_n "(cached) " >&6
ca9f4b81 11719else
2693c0b0
PB
11720 if test -n "$NM"; then
11721 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 11722else
1c710c3c
DJ
11723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11724for as_dir in $PATH
11725do
11726 IFS=$as_save_IFS
11727 test -z "$as_dir" && as_dir=.
5213506e 11728 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11730 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 11731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11732 break 2
11733 fi
11734done
5213506e
RW
11735 done
11736IFS=$as_save_IFS
1c710c3c 11737
ca9f4b81
AO
11738fi
11739fi
1c710c3c 11740NM=$ac_cv_prog_NM
2693c0b0 11741if test -n "$NM"; then
5213506e
RW
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11743$as_echo "$NM" >&6; }
ca9f4b81 11744else
5213506e
RW
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11746$as_echo "no" >&6; }
ca9f4b81 11747fi
1c710c3c 11748
5213506e 11749
2693c0b0 11750 fi
278a7a38
AO
11751 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11752 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11753set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11755$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11756if ${ac_cv_prog_NM+:} false; then :
5213506e 11757 $as_echo_n "(cached) " >&6
278a7a38
AO
11758else
11759 if test -n "$NM"; then
11760 ac_cv_prog_NM="$NM" # Let the user override the test.
11761else
11762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11763for as_dir in $PATH
11764do
11765 IFS=$as_save_IFS
11766 test -z "$as_dir" && as_dir=.
5213506e 11767 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11769 ac_cv_prog_NM="${ncn_progname}"
5213506e 11770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11771 break 2
11772 fi
11773done
5213506e
RW
11774 done
11775IFS=$as_save_IFS
278a7a38
AO
11776
11777fi
11778fi
11779NM=$ac_cv_prog_NM
11780if test -n "$NM"; then
5213506e
RW
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11782$as_echo "$NM" >&6; }
278a7a38 11783else
5213506e
RW
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11785$as_echo "no" >&6; }
278a7a38
AO
11786fi
11787
5213506e 11788
278a7a38
AO
11789 fi
11790 test -n "$ac_cv_prog_NM" && break
11791done
11792
11793if test -z "$ac_cv_prog_NM" ; then
11794 set dummy nm
11795 if test $build = $host ; then
11796 NM="$2"
11797 else
11798 NM="${ncn_tool_prefix}$2"
11799 fi
11800fi
11801
11802
11803
11804if test -n "$RANLIB"; then
11805 ac_cv_prog_RANLIB=$RANLIB
11806elif test -n "$ac_cv_prog_RANLIB"; then
11807 RANLIB=$ac_cv_prog_RANLIB
11808fi
11809
11810if test -n "$ac_cv_prog_RANLIB"; then
11811 for ncn_progname in ranlib; do
11812 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11813set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11815$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11816if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 11817 $as_echo_n "(cached) " >&6
278a7a38
AO
11818else
11819 if test -n "$RANLIB"; then
11820 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11821else
11822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11823for as_dir in $PATH
11824do
11825 IFS=$as_save_IFS
11826 test -z "$as_dir" && as_dir=.
5213506e 11827 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11829 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 11830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11831 break 2
11832 fi
11833done
5213506e
RW
11834 done
11835IFS=$as_save_IFS
278a7a38
AO
11836
11837fi
11838fi
11839RANLIB=$ac_cv_prog_RANLIB
11840if test -n "$RANLIB"; then
5213506e
RW
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11842$as_echo "$RANLIB" >&6; }
278a7a38 11843else
5213506e
RW
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11845$as_echo "no" >&6; }
278a7a38
AO
11846fi
11847
5213506e 11848
278a7a38
AO
11849 done
11850fi
ca9f4b81 11851
278a7a38 11852for ncn_progname in ranlib; do
2693c0b0
PB
11853 if test -n "$ncn_tool_prefix"; then
11854 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11855set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11857$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11858if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 11859 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11860else
11861 if test -n "$RANLIB"; then
11862 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11863else
1c710c3c
DJ
11864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11865for as_dir in $PATH
11866do
11867 IFS=$as_save_IFS
11868 test -z "$as_dir" && as_dir=.
5213506e 11869 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11871 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 11872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11873 break 2
11874 fi
11875done
5213506e
RW
11876 done
11877IFS=$as_save_IFS
1c710c3c 11878
ca9f4b81
AO
11879fi
11880fi
1c710c3c 11881RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 11882if test -n "$RANLIB"; then
5213506e
RW
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11884$as_echo "$RANLIB" >&6; }
ca9f4b81 11885else
5213506e
RW
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11887$as_echo "no" >&6; }
ca9f4b81
AO
11888fi
11889
5213506e 11890
2693c0b0
PB
11891 fi
11892 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11893 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11894set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11896$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11897if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 11898 $as_echo_n "(cached) " >&6
ca9f4b81 11899else
2693c0b0
PB
11900 if test -n "$RANLIB"; then
11901 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 11902else
1c710c3c
DJ
11903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11904for as_dir in $PATH
11905do
11906 IFS=$as_save_IFS
11907 test -z "$as_dir" && as_dir=.
5213506e 11908 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11910 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 11911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11912 break 2
11913 fi
11914done
5213506e
RW
11915 done
11916IFS=$as_save_IFS
1c710c3c 11917
ca9f4b81
AO
11918fi
11919fi
1c710c3c 11920RANLIB=$ac_cv_prog_RANLIB
2693c0b0 11921if test -n "$RANLIB"; then
5213506e
RW
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11923$as_echo "$RANLIB" >&6; }
ca9f4b81 11924else
5213506e
RW
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11926$as_echo "no" >&6; }
ca9f4b81 11927fi
1c710c3c 11928
5213506e 11929
ca9f4b81 11930 fi
2693c0b0
PB
11931 test -n "$ac_cv_prog_RANLIB" && break
11932done
11933
11934if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 11935 RANLIB="true"
ca9f4b81
AO
11936fi
11937
278a7a38
AO
11938
11939
11940if test -n "$STRIP"; then
11941 ac_cv_prog_STRIP=$STRIP
11942elif test -n "$ac_cv_prog_STRIP"; then
11943 STRIP=$ac_cv_prog_STRIP
11944fi
11945
11946if test -n "$ac_cv_prog_STRIP"; then
11947 for ncn_progname in strip; do
11948 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11949set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11951$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11952if ${ac_cv_prog_STRIP+:} false; then :
5213506e 11953 $as_echo_n "(cached) " >&6
278a7a38
AO
11954else
11955 if test -n "$STRIP"; then
11956 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11957else
11958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11959for as_dir in $PATH
11960do
11961 IFS=$as_save_IFS
11962 test -z "$as_dir" && as_dir=.
5213506e 11963 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11965 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 11966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11967 break 2
11968 fi
11969done
5213506e
RW
11970 done
11971IFS=$as_save_IFS
278a7a38
AO
11972
11973fi
11974fi
11975STRIP=$ac_cv_prog_STRIP
11976if test -n "$STRIP"; then
5213506e
RW
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11978$as_echo "$STRIP" >&6; }
278a7a38 11979else
5213506e
RW
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11981$as_echo "no" >&6; }
278a7a38
AO
11982fi
11983
5213506e 11984
278a7a38
AO
11985 done
11986fi
11987
11988for ncn_progname in strip; do
2abefe3d
PB
11989 if test -n "$ncn_tool_prefix"; then
11990 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11991set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11993$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11994if ${ac_cv_prog_STRIP+:} false; then :
5213506e 11995 $as_echo_n "(cached) " >&6
2abefe3d
PB
11996else
11997 if test -n "$STRIP"; then
11998 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11999else
1c710c3c
DJ
12000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12001for as_dir in $PATH
12002do
12003 IFS=$as_save_IFS
12004 test -z "$as_dir" && as_dir=.
5213506e 12005 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12007 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 12008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12009 break 2
12010 fi
12011done
5213506e
RW
12012 done
12013IFS=$as_save_IFS
1c710c3c 12014
2abefe3d
PB
12015fi
12016fi
1c710c3c 12017STRIP=$ac_cv_prog_STRIP
2abefe3d 12018if test -n "$STRIP"; then
5213506e
RW
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12020$as_echo "$STRIP" >&6; }
2abefe3d 12021else
5213506e
RW
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12023$as_echo "no" >&6; }
2abefe3d
PB
12024fi
12025
5213506e 12026
2abefe3d
PB
12027 fi
12028 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
12029 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12030set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12032$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12033if ${ac_cv_prog_STRIP+:} false; then :
5213506e 12034 $as_echo_n "(cached) " >&6
2abefe3d
PB
12035else
12036 if test -n "$STRIP"; then
12037 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12038else
1c710c3c
DJ
12039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12040for as_dir in $PATH
12041do
12042 IFS=$as_save_IFS
12043 test -z "$as_dir" && as_dir=.
5213506e 12044 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12046 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 12047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12048 break 2
12049 fi
12050done
5213506e
RW
12051 done
12052IFS=$as_save_IFS
1c710c3c 12053
2abefe3d
PB
12054fi
12055fi
1c710c3c 12056STRIP=$ac_cv_prog_STRIP
2abefe3d 12057if test -n "$STRIP"; then
5213506e
RW
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12059$as_echo "$STRIP" >&6; }
2abefe3d 12060else
5213506e
RW
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12062$as_echo "no" >&6; }
2abefe3d 12063fi
1c710c3c 12064
5213506e 12065
2abefe3d
PB
12066 fi
12067 test -n "$ac_cv_prog_STRIP" && break
12068done
12069
12070if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 12071 STRIP="true"
2abefe3d
PB
12072fi
12073
278a7a38
AO
12074
12075
12076if test -n "$WINDRES"; then
12077 ac_cv_prog_WINDRES=$WINDRES
12078elif test -n "$ac_cv_prog_WINDRES"; then
12079 WINDRES=$ac_cv_prog_WINDRES
12080fi
12081
12082if test -n "$ac_cv_prog_WINDRES"; then
12083 for ncn_progname in windres; do
12084 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12085set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12087$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12088if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 12089 $as_echo_n "(cached) " >&6
278a7a38
AO
12090else
12091 if test -n "$WINDRES"; then
12092 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12093else
12094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12095for as_dir in $PATH
12096do
12097 IFS=$as_save_IFS
12098 test -z "$as_dir" && as_dir=.
5213506e 12099 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12101 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 12102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12103 break 2
12104 fi
12105done
5213506e
RW
12106 done
12107IFS=$as_save_IFS
278a7a38
AO
12108
12109fi
12110fi
12111WINDRES=$ac_cv_prog_WINDRES
12112if test -n "$WINDRES"; then
5213506e
RW
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12114$as_echo "$WINDRES" >&6; }
278a7a38 12115else
5213506e
RW
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117$as_echo "no" >&6; }
278a7a38
AO
12118fi
12119
5213506e 12120
278a7a38
AO
12121 done
12122fi
12123
12124for ncn_progname in windres; do
2693c0b0
PB
12125 if test -n "$ncn_tool_prefix"; then
12126 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12127set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12129$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12130if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 12131 $as_echo_n "(cached) " >&6
ca9f4b81
AO
12132else
12133 if test -n "$WINDRES"; then
12134 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12135else
1c710c3c
DJ
12136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12137for as_dir in $PATH
12138do
12139 IFS=$as_save_IFS
12140 test -z "$as_dir" && as_dir=.
5213506e 12141 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12143 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 12144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12145 break 2
12146 fi
12147done
5213506e
RW
12148 done
12149IFS=$as_save_IFS
1c710c3c 12150
ca9f4b81
AO
12151fi
12152fi
1c710c3c 12153WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 12154if test -n "$WINDRES"; then
5213506e
RW
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12156$as_echo "$WINDRES" >&6; }
ca9f4b81 12157else
5213506e
RW
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12159$as_echo "no" >&6; }
ca9f4b81
AO
12160fi
12161
5213506e 12162
2693c0b0
PB
12163 fi
12164 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12165 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12166set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12168$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12169if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 12170 $as_echo_n "(cached) " >&6
ca9f4b81 12171else
2693c0b0
PB
12172 if test -n "$WINDRES"; then
12173 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 12174else
1c710c3c
DJ
12175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12176for as_dir in $PATH
12177do
12178 IFS=$as_save_IFS
12179 test -z "$as_dir" && as_dir=.
5213506e 12180 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12182 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 12183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12184 break 2
12185 fi
12186done
5213506e
RW
12187 done
12188IFS=$as_save_IFS
1c710c3c 12189
ca9f4b81
AO
12190fi
12191fi
1c710c3c 12192WINDRES=$ac_cv_prog_WINDRES
2693c0b0 12193if test -n "$WINDRES"; then
5213506e
RW
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12195$as_echo "$WINDRES" >&6; }
ca9f4b81 12196else
5213506e
RW
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12198$as_echo "no" >&6; }
ca9f4b81 12199fi
1c710c3c 12200
5213506e 12201
2693c0b0
PB
12202 fi
12203 test -n "$ac_cv_prog_WINDRES" && break
12204done
12205
12206if test -z "$ac_cv_prog_WINDRES" ; then
12207 set dummy windres
12208 if test $build = $host ; then
12209 WINDRES="$2"
ca9f4b81 12210 else
2693c0b0 12211 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 12212 fi
ca9f4b81
AO
12213fi
12214
278a7a38
AO
12215
12216
901119ae
KT
12217if test -n "$WINDMC"; then
12218 ac_cv_prog_WINDMC=$WINDMC
12219elif test -n "$ac_cv_prog_WINDMC"; then
12220 WINDMC=$ac_cv_prog_WINDMC
12221fi
12222
12223if test -n "$ac_cv_prog_WINDMC"; then
12224 for ncn_progname in windmc; do
12225 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12226set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12228$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12229if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 12230 $as_echo_n "(cached) " >&6
901119ae
KT
12231else
12232 if test -n "$WINDMC"; then
12233 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12234else
12235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12236for as_dir in $PATH
12237do
12238 IFS=$as_save_IFS
12239 test -z "$as_dir" && as_dir=.
5213506e 12240 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 12242 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 12243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12244 break 2
12245 fi
12246done
5213506e
RW
12247 done
12248IFS=$as_save_IFS
901119ae
KT
12249
12250fi
12251fi
12252WINDMC=$ac_cv_prog_WINDMC
12253if test -n "$WINDMC"; then
5213506e
RW
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12255$as_echo "$WINDMC" >&6; }
901119ae 12256else
5213506e
RW
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12258$as_echo "no" >&6; }
901119ae
KT
12259fi
12260
5213506e 12261
901119ae
KT
12262 done
12263fi
12264
12265for ncn_progname in windmc; do
12266 if test -n "$ncn_tool_prefix"; then
12267 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12268set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12270$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12271if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 12272 $as_echo_n "(cached) " >&6
901119ae
KT
12273else
12274 if test -n "$WINDMC"; then
12275 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12276else
12277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12278for as_dir in $PATH
12279do
12280 IFS=$as_save_IFS
12281 test -z "$as_dir" && as_dir=.
5213506e 12282 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 12284 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 12285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12286 break 2
12287 fi
12288done
5213506e
RW
12289 done
12290IFS=$as_save_IFS
901119ae
KT
12291
12292fi
12293fi
12294WINDMC=$ac_cv_prog_WINDMC
12295if test -n "$WINDMC"; then
5213506e
RW
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12297$as_echo "$WINDMC" >&6; }
901119ae 12298else
5213506e
RW
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12300$as_echo "no" >&6; }
901119ae
KT
12301fi
12302
5213506e 12303
901119ae
KT
12304 fi
12305 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12306 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12307set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12309$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12310if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 12311 $as_echo_n "(cached) " >&6
901119ae
KT
12312else
12313 if test -n "$WINDMC"; then
12314 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12315else
12316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12317for as_dir in $PATH
12318do
12319 IFS=$as_save_IFS
12320 test -z "$as_dir" && as_dir=.
5213506e 12321 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 12323 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 12324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12325 break 2
12326 fi
12327done
5213506e
RW
12328 done
12329IFS=$as_save_IFS
901119ae
KT
12330
12331fi
12332fi
12333WINDMC=$ac_cv_prog_WINDMC
12334if test -n "$WINDMC"; then
5213506e
RW
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12336$as_echo "$WINDMC" >&6; }
901119ae 12337else
5213506e
RW
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12339$as_echo "no" >&6; }
901119ae
KT
12340fi
12341
5213506e 12342
901119ae
KT
12343 fi
12344 test -n "$ac_cv_prog_WINDMC" && break
12345done
12346
12347if test -z "$ac_cv_prog_WINDMC" ; then
12348 set dummy windmc
12349 if test $build = $host ; then
12350 WINDMC="$2"
12351 else
12352 WINDMC="${ncn_tool_prefix}$2"
12353 fi
12354fi
12355
12356
12357
278a7a38
AO
12358if test -n "$OBJCOPY"; then
12359 ac_cv_prog_OBJCOPY=$OBJCOPY
12360elif test -n "$ac_cv_prog_OBJCOPY"; then
12361 OBJCOPY=$ac_cv_prog_OBJCOPY
12362fi
12363
12364if test -n "$ac_cv_prog_OBJCOPY"; then
12365 for ncn_progname in objcopy; do
12366 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12367set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12369$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12370if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 12371 $as_echo_n "(cached) " >&6
278a7a38
AO
12372else
12373 if test -n "$OBJCOPY"; then
12374 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12375else
12376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12377for as_dir in $PATH
12378do
12379 IFS=$as_save_IFS
12380 test -z "$as_dir" && as_dir=.
5213506e 12381 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12383 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 12384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12385 break 2
12386 fi
12387done
5213506e
RW
12388 done
12389IFS=$as_save_IFS
278a7a38
AO
12390
12391fi
12392fi
12393OBJCOPY=$ac_cv_prog_OBJCOPY
12394if test -n "$OBJCOPY"; then
5213506e
RW
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12396$as_echo "$OBJCOPY" >&6; }
278a7a38 12397else
5213506e
RW
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12399$as_echo "no" >&6; }
278a7a38
AO
12400fi
12401
5213506e 12402
278a7a38
AO
12403 done
12404fi
12405
12406for ncn_progname in objcopy; do
2693c0b0
PB
12407 if test -n "$ncn_tool_prefix"; then
12408 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12409set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12411$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12412if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 12413 $as_echo_n "(cached) " >&6
ca9f4b81
AO
12414else
12415 if test -n "$OBJCOPY"; then
12416 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12417else
1c710c3c
DJ
12418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12419for as_dir in $PATH
12420do
12421 IFS=$as_save_IFS
12422 test -z "$as_dir" && as_dir=.
5213506e 12423 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12425 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 12426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12427 break 2
12428 fi
12429done
5213506e
RW
12430 done
12431IFS=$as_save_IFS
1c710c3c 12432
ca9f4b81
AO
12433fi
12434fi
1c710c3c 12435OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 12436if test -n "$OBJCOPY"; then
5213506e
RW
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12438$as_echo "$OBJCOPY" >&6; }
ca9f4b81 12439else
5213506e
RW
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12441$as_echo "no" >&6; }
ca9f4b81
AO
12442fi
12443
5213506e 12444
2693c0b0
PB
12445 fi
12446 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12447 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12448set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12450$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12451if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 12452 $as_echo_n "(cached) " >&6
ca9f4b81 12453else
2693c0b0
PB
12454 if test -n "$OBJCOPY"; then
12455 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 12456else
1c710c3c
DJ
12457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12458for as_dir in $PATH
12459do
12460 IFS=$as_save_IFS
12461 test -z "$as_dir" && as_dir=.
5213506e 12462 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12464 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 12465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12466 break 2
12467 fi
12468done
5213506e
RW
12469 done
12470IFS=$as_save_IFS
1c710c3c 12471
ca9f4b81
AO
12472fi
12473fi
1c710c3c 12474OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 12475if test -n "$OBJCOPY"; then
5213506e
RW
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12477$as_echo "$OBJCOPY" >&6; }
ca9f4b81 12478else
5213506e
RW
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12480$as_echo "no" >&6; }
ca9f4b81 12481fi
1c710c3c 12482
5213506e 12483
2693c0b0
PB
12484 fi
12485 test -n "$ac_cv_prog_OBJCOPY" && break
12486done
12487
12488if test -z "$ac_cv_prog_OBJCOPY" ; then
12489 set dummy objcopy
12490 if test $build = $host ; then
12491 OBJCOPY="$2"
ca9f4b81 12492 else
2693c0b0 12493 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 12494 fi
ca9f4b81
AO
12495fi
12496
278a7a38
AO
12497
12498
12499if test -n "$OBJDUMP"; then
12500 ac_cv_prog_OBJDUMP=$OBJDUMP
12501elif test -n "$ac_cv_prog_OBJDUMP"; then
12502 OBJDUMP=$ac_cv_prog_OBJDUMP
12503fi
12504
12505if test -n "$ac_cv_prog_OBJDUMP"; then
12506 for ncn_progname in objdump; do
12507 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12508set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12510$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12511if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 12512 $as_echo_n "(cached) " >&6
278a7a38
AO
12513else
12514 if test -n "$OBJDUMP"; then
12515 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12516else
12517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12518for as_dir in $PATH
12519do
12520 IFS=$as_save_IFS
12521 test -z "$as_dir" && as_dir=.
5213506e 12522 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12524 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 12525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12526 break 2
12527 fi
12528done
5213506e
RW
12529 done
12530IFS=$as_save_IFS
278a7a38
AO
12531
12532fi
12533fi
12534OBJDUMP=$ac_cv_prog_OBJDUMP
12535if test -n "$OBJDUMP"; then
5213506e
RW
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12537$as_echo "$OBJDUMP" >&6; }
278a7a38 12538else
5213506e
RW
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12540$as_echo "no" >&6; }
278a7a38
AO
12541fi
12542
5213506e 12543
278a7a38
AO
12544 done
12545fi
12546
12547for ncn_progname in objdump; do
2693c0b0
PB
12548 if test -n "$ncn_tool_prefix"; then
12549 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12550set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12552$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12553if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 12554 $as_echo_n "(cached) " >&6
ca9f4b81
AO
12555else
12556 if test -n "$OBJDUMP"; then
12557 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12558else
1c710c3c
DJ
12559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12560for as_dir in $PATH
12561do
12562 IFS=$as_save_IFS
12563 test -z "$as_dir" && as_dir=.
5213506e 12564 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12566 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 12567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12568 break 2
12569 fi
12570done
5213506e
RW
12571 done
12572IFS=$as_save_IFS
1c710c3c 12573
ca9f4b81
AO
12574fi
12575fi
1c710c3c 12576OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 12577if test -n "$OBJDUMP"; then
5213506e
RW
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12579$as_echo "$OBJDUMP" >&6; }
ca9f4b81 12580else
5213506e
RW
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12582$as_echo "no" >&6; }
ca9f4b81
AO
12583fi
12584
5213506e 12585
2693c0b0
PB
12586 fi
12587 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12588 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12589set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12591$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12592if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 12593 $as_echo_n "(cached) " >&6
ca9f4b81 12594else
2693c0b0
PB
12595 if test -n "$OBJDUMP"; then
12596 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 12597else
1c710c3c
DJ
12598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12599for as_dir in $PATH
12600do
12601 IFS=$as_save_IFS
12602 test -z "$as_dir" && as_dir=.
5213506e 12603 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12605 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 12606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12607 break 2
12608 fi
12609done
5213506e
RW
12610 done
12611IFS=$as_save_IFS
1c710c3c 12612
ca9f4b81
AO
12613fi
12614fi
1c710c3c 12615OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 12616if test -n "$OBJDUMP"; then
5213506e
RW
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12618$as_echo "$OBJDUMP" >&6; }
ca9f4b81 12619else
5213506e
RW
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12621$as_echo "no" >&6; }
ca9f4b81 12622fi
1c710c3c 12623
5213506e 12624
2693c0b0
PB
12625 fi
12626 test -n "$ac_cv_prog_OBJDUMP" && break
12627done
12628
12629if test -z "$ac_cv_prog_OBJDUMP" ; then
12630 set dummy objdump
12631 if test $build = $host ; then
12632 OBJDUMP="$2"
ca9f4b81 12633 else
2693c0b0 12634 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 12635 fi
ca9f4b81
AO
12636fi
12637
671aa708
NN
12638
12639
e4a9a572
IS
12640if test -n "$OTOOL"; then
12641 ac_cv_prog_OTOOL=$OTOOL
12642elif test -n "$ac_cv_prog_OTOOL"; then
12643 OTOOL=$ac_cv_prog_OTOOL
12644fi
12645
12646if test -n "$ac_cv_prog_OTOOL"; then
12647 for ncn_progname in otool; do
12648 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12649set dummy ${ncn_progname}; ac_word=$2
12650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12651$as_echo_n "checking for $ac_word... " >&6; }
12652if ${ac_cv_prog_OTOOL+:} false; then :
12653 $as_echo_n "(cached) " >&6
12654else
12655 if test -n "$OTOOL"; then
12656 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12657else
12658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12659for as_dir in $PATH
12660do
12661 IFS=$as_save_IFS
12662 test -z "$as_dir" && as_dir=.
12663 for ac_exec_ext in '' $ac_executable_extensions; do
12664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12665 ac_cv_prog_OTOOL="${ncn_progname}"
12666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12667 break 2
12668 fi
12669done
12670 done
12671IFS=$as_save_IFS
12672
12673fi
12674fi
12675OTOOL=$ac_cv_prog_OTOOL
12676if test -n "$OTOOL"; then
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12678$as_echo "$OTOOL" >&6; }
12679else
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12681$as_echo "no" >&6; }
12682fi
12683
12684
12685 done
12686fi
12687
12688for ncn_progname in otool; do
12689 if test -n "$ncn_tool_prefix"; then
12690 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12691set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12693$as_echo_n "checking for $ac_word... " >&6; }
12694if ${ac_cv_prog_OTOOL+:} false; then :
12695 $as_echo_n "(cached) " >&6
12696else
12697 if test -n "$OTOOL"; then
12698 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12699else
12700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12701for as_dir in $PATH
12702do
12703 IFS=$as_save_IFS
12704 test -z "$as_dir" && as_dir=.
12705 for ac_exec_ext in '' $ac_executable_extensions; do
12706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12707 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12709 break 2
12710 fi
12711done
12712 done
12713IFS=$as_save_IFS
12714
12715fi
12716fi
12717OTOOL=$ac_cv_prog_OTOOL
12718if test -n "$OTOOL"; then
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12720$as_echo "$OTOOL" >&6; }
12721else
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12723$as_echo "no" >&6; }
12724fi
12725
12726
12727 fi
12728 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12729 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12730set dummy ${ncn_progname}; ac_word=$2
12731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12732$as_echo_n "checking for $ac_word... " >&6; }
12733if ${ac_cv_prog_OTOOL+:} false; then :
12734 $as_echo_n "(cached) " >&6
12735else
12736 if test -n "$OTOOL"; then
12737 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12738else
12739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12740for as_dir in $PATH
12741do
12742 IFS=$as_save_IFS
12743 test -z "$as_dir" && as_dir=.
12744 for ac_exec_ext in '' $ac_executable_extensions; do
12745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12746 ac_cv_prog_OTOOL="${ncn_progname}"
12747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12748 break 2
12749 fi
12750done
12751 done
12752IFS=$as_save_IFS
12753
12754fi
12755fi
12756OTOOL=$ac_cv_prog_OTOOL
12757if test -n "$OTOOL"; then
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12759$as_echo "$OTOOL" >&6; }
12760else
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12762$as_echo "no" >&6; }
12763fi
12764
12765
12766 fi
12767 test -n "$ac_cv_prog_OTOOL" && break
12768done
12769
12770if test -z "$ac_cv_prog_OTOOL" ; then
12771 set dummy otool
12772 if test $build = $host ; then
12773 OTOOL="$2"
12774 else
12775 OTOOL="${ncn_tool_prefix}$2"
12776 fi
12777fi
12778
12779
12780
e7a82751
RM
12781if test -n "$READELF"; then
12782 ac_cv_prog_READELF=$READELF
12783elif test -n "$ac_cv_prog_READELF"; then
12784 READELF=$ac_cv_prog_READELF
12785fi
12786
12787if test -n "$ac_cv_prog_READELF"; then
12788 for ncn_progname in readelf; do
12789 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12790set dummy ${ncn_progname}; ac_word=$2
12791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12792$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12793if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
12794 $as_echo_n "(cached) " >&6
12795else
12796 if test -n "$READELF"; then
12797 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12798else
12799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12800for as_dir in $PATH
12801do
12802 IFS=$as_save_IFS
12803 test -z "$as_dir" && as_dir=.
12804 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
12806 ac_cv_prog_READELF="${ncn_progname}"
12807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12808 break 2
12809 fi
12810done
12811 done
12812IFS=$as_save_IFS
12813
12814fi
12815fi
12816READELF=$ac_cv_prog_READELF
12817if test -n "$READELF"; then
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12819$as_echo "$READELF" >&6; }
12820else
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12822$as_echo "no" >&6; }
12823fi
12824
12825
12826 done
12827fi
12828
12829for ncn_progname in readelf; do
12830 if test -n "$ncn_tool_prefix"; then
12831 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12832set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12834$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12835if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
12836 $as_echo_n "(cached) " >&6
12837else
12838 if test -n "$READELF"; then
12839 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12840else
12841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12842for as_dir in $PATH
12843do
12844 IFS=$as_save_IFS
12845 test -z "$as_dir" && as_dir=.
12846 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
12848 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12850 break 2
12851 fi
12852done
12853 done
12854IFS=$as_save_IFS
12855
12856fi
12857fi
12858READELF=$ac_cv_prog_READELF
12859if test -n "$READELF"; then
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12861$as_echo "$READELF" >&6; }
12862else
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12864$as_echo "no" >&6; }
12865fi
12866
12867
12868 fi
12869 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12870 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12871set dummy ${ncn_progname}; ac_word=$2
12872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12873$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12874if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
12875 $as_echo_n "(cached) " >&6
12876else
12877 if test -n "$READELF"; then
12878 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12879else
12880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12881for as_dir in $PATH
12882do
12883 IFS=$as_save_IFS
12884 test -z "$as_dir" && as_dir=.
12885 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
12887 ac_cv_prog_READELF="${ncn_progname}"
12888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12889 break 2
12890 fi
12891done
12892 done
12893IFS=$as_save_IFS
12894
12895fi
12896fi
12897READELF=$ac_cv_prog_READELF
12898if test -n "$READELF"; then
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12900$as_echo "$READELF" >&6; }
12901else
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12903$as_echo "no" >&6; }
12904fi
12905
12906
12907 fi
12908 test -n "$ac_cv_prog_READELF" && break
12909done
12910
12911if test -z "$ac_cv_prog_READELF" ; then
12912 set dummy readelf
12913 if test $build = $host ; then
12914 READELF="$2"
12915 else
12916 READELF="${ncn_tool_prefix}$2"
12917 fi
12918fi
12919
12920
12921
671aa708
NN
12922
12923
12924
5fee5ec3
IB
12925
12926
2abefe3d 12927# Target tools.
1c710c3c 12928
5213506e
RW
12929# Check whether --with-build-time-tools was given.
12930if test "${with_build_time_tools+set}" = set; then :
12931 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
12932 x/*) ;;
12933 *)
12934 with_build_time_tools=
5213506e
RW
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12936$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
12937 ;;
12938 esac
ca9f4b81 12939else
e8b05380 12940 with_build_time_tools=
5213506e
RW
12941fi
12942
ca9f4b81 12943
278a7a38
AO
12944
12945
12946if test -n "$CC_FOR_TARGET"; then
12947 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12948elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12949 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12950fi
12951
12952if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12953 for ncn_progname in cc gcc; do
12954 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12955set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12957$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12958if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 12959 $as_echo_n "(cached) " >&6
278a7a38
AO
12960else
12961 if test -n "$CC_FOR_TARGET"; then
12962 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12963else
12964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12965for as_dir in $PATH
12966do
12967 IFS=$as_save_IFS
12968 test -z "$as_dir" && as_dir=.
5213506e 12969 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12971 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 12972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12973 break 2
12974 fi
12975done
5213506e
RW
12976 done
12977IFS=$as_save_IFS
278a7a38
AO
12978
12979fi
12980fi
12981CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12982if test -n "$CC_FOR_TARGET"; then
5213506e
RW
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12984$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 12985else
5213506e
RW
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12987$as_echo "no" >&6; }
278a7a38
AO
12988fi
12989
5213506e 12990
278a7a38
AO
12991 done
12992fi
12993
12994if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12995 for ncn_progname in cc gcc; do
5213506e
RW
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12997$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12998 if test -x $with_build_time_tools/${ncn_progname}; then
12999 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13001$as_echo "yes" >&6; }
72a7ab82 13002 break
e8b05380 13003 else
5213506e
RW
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13005$as_echo "no" >&6; }
72a7ab82
AP
13006 fi
13007 done
4de997d1
PB
13008fi
13009
e8b05380
PB
13010if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
13011 for ncn_progname in cc gcc; do
13012 if test -n "$ncn_target_tool_prefix"; then
13013 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13014set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13016$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13017if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 13018 $as_echo_n "(cached) " >&6
4de997d1
PB
13019else
13020 if test -n "$CC_FOR_TARGET"; then
13021 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13022else
1c710c3c
DJ
13023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13024for as_dir in $PATH
13025do
13026 IFS=$as_save_IFS
13027 test -z "$as_dir" && as_dir=.
5213506e 13028 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13030 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13032 break 2
13033 fi
13034done
5213506e
RW
13035 done
13036IFS=$as_save_IFS
1c710c3c 13037
4de997d1
PB
13038fi
13039fi
1c710c3c 13040CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 13041if test -n "$CC_FOR_TARGET"; then
5213506e
RW
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13043$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 13044else
5213506e
RW
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13046$as_echo "no" >&6; }
4de997d1
PB
13047fi
13048
5213506e 13049
e8b05380
PB
13050 fi
13051 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13052 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13053set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13055$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13056if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 13057 $as_echo_n "(cached) " >&6
4de997d1 13058else
2693c0b0
PB
13059 if test -n "$CC_FOR_TARGET"; then
13060 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 13061else
1c710c3c
DJ
13062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13063for as_dir in $PATH
13064do
13065 IFS=$as_save_IFS
13066 test -z "$as_dir" && as_dir=.
5213506e 13067 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13069 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 13070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13071 break 2
13072 fi
13073done
5213506e
RW
13074 done
13075IFS=$as_save_IFS
1c710c3c 13076
4de997d1
PB
13077fi
13078fi
1c710c3c 13079CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 13080if test -n "$CC_FOR_TARGET"; then
5213506e
RW
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13082$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 13083else
5213506e
RW
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13085$as_echo "no" >&6; }
4de997d1 13086fi
1c710c3c 13087
5213506e 13088
e8b05380
PB
13089 fi
13090 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13091 done
13092fi
1c710c3c 13093
2693c0b0
PB
13094if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13095 set dummy cc gcc
13096 if test $build = $target ; then
13097 CC_FOR_TARGET="$2"
4de997d1 13098 else
2693c0b0 13099 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 13100 fi
1c00b503
PB
13101else
13102 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
13103fi
13104
278a7a38
AO
13105
13106
13107if test -n "$CXX_FOR_TARGET"; then
13108 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13109elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13110 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13111fi
13112
13113if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13114 for ncn_progname in c++ g++ cxx gxx; do
13115 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13116set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13118$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13119if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 13120 $as_echo_n "(cached) " >&6
278a7a38
AO
13121else
13122 if test -n "$CXX_FOR_TARGET"; then
13123 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13124else
13125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13126for as_dir in $PATH
13127do
13128 IFS=$as_save_IFS
13129 test -z "$as_dir" && as_dir=.
5213506e 13130 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13132 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 13133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13134 break 2
13135 fi
13136done
5213506e
RW
13137 done
13138IFS=$as_save_IFS
278a7a38
AO
13139
13140fi
13141fi
13142CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13143if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13145$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 13146else
5213506e
RW
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13148$as_echo "no" >&6; }
278a7a38
AO
13149fi
13150
5213506e 13151
278a7a38
AO
13152 done
13153fi
13154
13155if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13156 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13158$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13159 if test -x $with_build_time_tools/${ncn_progname}; then
13160 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13162$as_echo "yes" >&6; }
e8b05380
PB
13163 break
13164 else
5213506e
RW
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13166$as_echo "no" >&6; }
e8b05380
PB
13167 fi
13168 done
13169fi
13170
13171if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13172 for ncn_progname in c++ g++ cxx gxx; do
13173 if test -n "$ncn_target_tool_prefix"; then
13174 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13175set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13177$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13178if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 13179 $as_echo_n "(cached) " >&6
4de997d1
PB
13180else
13181 if test -n "$CXX_FOR_TARGET"; then
13182 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13183else
1c710c3c
DJ
13184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13185for as_dir in $PATH
13186do
13187 IFS=$as_save_IFS
13188 test -z "$as_dir" && as_dir=.
5213506e 13189 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13191 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13193 break 2
13194 fi
13195done
5213506e
RW
13196 done
13197IFS=$as_save_IFS
1c710c3c 13198
4de997d1
PB
13199fi
13200fi
1c710c3c 13201CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 13202if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13204$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 13205else
5213506e
RW
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13207$as_echo "no" >&6; }
4de997d1
PB
13208fi
13209
5213506e 13210
e8b05380
PB
13211 fi
13212 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13213 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13214set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13216$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13217if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 13218 $as_echo_n "(cached) " >&6
4de997d1 13219else
2693c0b0
PB
13220 if test -n "$CXX_FOR_TARGET"; then
13221 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 13222else
1c710c3c
DJ
13223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13224for as_dir in $PATH
13225do
13226 IFS=$as_save_IFS
13227 test -z "$as_dir" && as_dir=.
5213506e 13228 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13230 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 13231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13232 break 2
13233 fi
13234done
5213506e
RW
13235 done
13236IFS=$as_save_IFS
1c710c3c 13237
4de997d1
PB
13238fi
13239fi
1c710c3c 13240CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 13241if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13243$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 13244else
5213506e
RW
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13246$as_echo "no" >&6; }
4de997d1 13247fi
1c710c3c 13248
5213506e 13249
e8b05380
PB
13250 fi
13251 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13252 done
13253fi
1c710c3c 13254
2693c0b0
PB
13255if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13256 set dummy c++ g++ cxx gxx
13257 if test $build = $target ; then
13258 CXX_FOR_TARGET="$2"
4de997d1 13259 else
2693c0b0 13260 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 13261 fi
1c00b503
PB
13262else
13263 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
13264fi
13265
278a7a38
AO
13266
13267
13268if test -n "$GCC_FOR_TARGET"; then
13269 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13270elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13271 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13272fi
13273
13274if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13275 for ncn_progname in gcc; do
13276 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13277set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13279$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13280if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 13281 $as_echo_n "(cached) " >&6
278a7a38
AO
13282else
13283 if test -n "$GCC_FOR_TARGET"; then
13284 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13285else
13286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13287for as_dir in $PATH
13288do
13289 IFS=$as_save_IFS
13290 test -z "$as_dir" && as_dir=.
5213506e 13291 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13293 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 13294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13295 break 2
13296 fi
13297done
5213506e
RW
13298 done
13299IFS=$as_save_IFS
278a7a38
AO
13300
13301fi
13302fi
13303GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13304if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13306$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 13307else
5213506e
RW
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13309$as_echo "no" >&6; }
278a7a38
AO
13310fi
13311
5213506e 13312
278a7a38
AO
13313 done
13314fi
13315
13316if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13317 for ncn_progname in gcc; do
5213506e
RW
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13319$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13320 if test -x $with_build_time_tools/${ncn_progname}; then
13321 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13323$as_echo "yes" >&6; }
e8b05380
PB
13324 break
13325 else
5213506e
RW
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13327$as_echo "no" >&6; }
e8b05380
PB
13328 fi
13329 done
13330fi
13331
13332if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13333 for ncn_progname in gcc; do
13334 if test -n "$ncn_target_tool_prefix"; then
13335 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13336set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13338$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13339if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 13340 $as_echo_n "(cached) " >&6
ca9f4b81 13341else
e8b05380
PB
13342 if test -n "$GCC_FOR_TARGET"; then
13343 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 13344else
1c710c3c
DJ
13345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13346for as_dir in $PATH
13347do
13348 IFS=$as_save_IFS
13349 test -z "$as_dir" && as_dir=.
5213506e 13350 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13352 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13354 break 2
13355 fi
13356done
5213506e
RW
13357 done
13358IFS=$as_save_IFS
1c710c3c 13359
ca9f4b81
AO
13360fi
13361fi
1c710c3c 13362GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 13363if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13365$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 13366else
5213506e
RW
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13368$as_echo "no" >&6; }
ca9f4b81
AO
13369fi
13370
5213506e 13371
e8b05380
PB
13372 fi
13373 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13374 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13375set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13377$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13378if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 13379 $as_echo_n "(cached) " >&6
ca9f4b81 13380else
e8b05380
PB
13381 if test -n "$GCC_FOR_TARGET"; then
13382 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 13383else
1c710c3c
DJ
13384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13385for as_dir in $PATH
13386do
13387 IFS=$as_save_IFS
13388 test -z "$as_dir" && as_dir=.
5213506e 13389 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13391 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 13392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13393 break 2
13394 fi
13395done
5213506e
RW
13396 done
13397IFS=$as_save_IFS
1c710c3c 13398
ca9f4b81
AO
13399fi
13400fi
1c710c3c 13401GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 13402if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13404$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 13405else
5213506e
RW
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13407$as_echo "no" >&6; }
ca9f4b81 13408fi
1c710c3c 13409
5213506e 13410
e8b05380
PB
13411 fi
13412 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13413 done
13414fi
1c710c3c 13415
e8b05380
PB
13416if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13417 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
13418else
13419 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
13420fi
13421
278a7a38
AO
13422
13423
278a7a38
AO
13424if test -n "$GFORTRAN_FOR_TARGET"; then
13425 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13426elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13427 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
13428fi
13429
278a7a38
AO
13430if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13431 for ncn_progname in gfortran; do
13432 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 13433set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13435$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13436if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 13437 $as_echo_n "(cached) " >&6
e8b05380 13438else
278a7a38
AO
13439 if test -n "$GFORTRAN_FOR_TARGET"; then
13440 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 13441else
1c710c3c
DJ
13442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13443for as_dir in $PATH
13444do
13445 IFS=$as_save_IFS
13446 test -z "$as_dir" && as_dir=.
5213506e 13447 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13449 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 13450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13451 break 2
13452 fi
13453done
5213506e
RW
13454 done
13455IFS=$as_save_IFS
1c710c3c 13456
e8b05380
PB
13457fi
13458fi
278a7a38
AO
13459GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13460if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13462$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 13463else
5213506e
RW
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13465$as_echo "no" >&6; }
e8b05380 13466fi
1c710c3c 13467
5213506e 13468
e8b05380
PB
13469 done
13470fi
1c710c3c 13471
278a7a38 13472if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13473 for ncn_progname in gfortran; do
5213506e
RW
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13475$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13476 if test -x $with_build_time_tools/${ncn_progname}; then
13477 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13479$as_echo "yes" >&6; }
e8b05380
PB
13480 break
13481 else
5213506e
RW
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13483$as_echo "no" >&6; }
e8b05380
PB
13484 fi
13485 done
13486fi
13487
13488if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13489 for ncn_progname in gfortran; do
13490 if test -n "$ncn_target_tool_prefix"; then
13491 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13492set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13494$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13495if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 13496 $as_echo_n "(cached) " >&6
e8b05380
PB
13497else
13498 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
13499 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13500else
13501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13502for as_dir in $PATH
13503do
13504 IFS=$as_save_IFS
13505 test -z "$as_dir" && as_dir=.
5213506e 13506 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13508 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13510 break 2
13511 fi
13512done
5213506e
RW
13513 done
13514IFS=$as_save_IFS
1c710c3c 13515
e8b05380
PB
13516fi
13517fi
1c710c3c 13518GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 13519if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13521$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 13522else
5213506e
RW
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13524$as_echo "no" >&6; }
e8b05380
PB
13525fi
13526
5213506e 13527
e8b05380
PB
13528 fi
13529 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13530 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13531set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13533$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13534if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 13535 $as_echo_n "(cached) " >&6
e8b05380
PB
13536else
13537 if test -n "$GFORTRAN_FOR_TARGET"; then
13538 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13539else
1c710c3c
DJ
13540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13541for as_dir in $PATH
13542do
13543 IFS=$as_save_IFS
13544 test -z "$as_dir" && as_dir=.
5213506e 13545 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13547 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 13548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13549 break 2
13550 fi
13551done
5213506e
RW
13552 done
13553IFS=$as_save_IFS
1c710c3c 13554
e8b05380
PB
13555fi
13556fi
1c710c3c 13557GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 13558if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13560$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 13561else
5213506e
RW
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13563$as_echo "no" >&6; }
e8b05380 13564fi
1c710c3c 13565
5213506e 13566
e8b05380
PB
13567 fi
13568 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13569 done
13570fi
1c710c3c 13571
e8b05380
PB
13572if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13573 set dummy gfortran
2693c0b0 13574 if test $build = $target ; then
e8b05380 13575 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 13576 else
e8b05380
PB
13577 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13578 fi
1c00b503
PB
13579else
13580 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
13581fi
13582
13583
13584
632e2a07
ILT
13585if test -n "$GOC_FOR_TARGET"; then
13586 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13587elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13588 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13589fi
13590
13591if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13592 for ncn_progname in gccgo; do
13593 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13594set dummy ${ncn_progname}; ac_word=$2
13595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13596$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13597if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13598 $as_echo_n "(cached) " >&6
13599else
13600 if test -n "$GOC_FOR_TARGET"; then
13601 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13602else
13603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13604for as_dir in $PATH
13605do
13606 IFS=$as_save_IFS
13607 test -z "$as_dir" && as_dir=.
13608 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13610 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13612 break 2
13613 fi
13614done
13615 done
13616IFS=$as_save_IFS
13617
13618fi
13619fi
13620GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13621if test -n "$GOC_FOR_TARGET"; then
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13623$as_echo "$GOC_FOR_TARGET" >&6; }
13624else
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13626$as_echo "no" >&6; }
13627fi
13628
13629
13630 done
13631fi
13632
13633if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13634 for ncn_progname in gccgo; do
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13636$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13637 if test -x $with_build_time_tools/${ncn_progname}; then
13638 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13640$as_echo "yes" >&6; }
13641 break
13642 else
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13644$as_echo "no" >&6; }
13645 fi
13646 done
13647fi
13648
13649if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13650 for ncn_progname in gccgo; do
13651 if test -n "$ncn_target_tool_prefix"; then
13652 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13653set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13655$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13656if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13657 $as_echo_n "(cached) " >&6
13658else
13659 if test -n "$GOC_FOR_TARGET"; then
13660 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13661else
13662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13663for as_dir in $PATH
13664do
13665 IFS=$as_save_IFS
13666 test -z "$as_dir" && as_dir=.
13667 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13669 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13671 break 2
13672 fi
13673done
13674 done
13675IFS=$as_save_IFS
13676
13677fi
13678fi
13679GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13680if test -n "$GOC_FOR_TARGET"; then
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13682$as_echo "$GOC_FOR_TARGET" >&6; }
13683else
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13685$as_echo "no" >&6; }
13686fi
13687
13688
13689 fi
13690 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13691 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13692set dummy ${ncn_progname}; ac_word=$2
13693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13694$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13695if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13696 $as_echo_n "(cached) " >&6
13697else
13698 if test -n "$GOC_FOR_TARGET"; then
13699 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13700else
13701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13702for as_dir in $PATH
13703do
13704 IFS=$as_save_IFS
13705 test -z "$as_dir" && as_dir=.
13706 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13708 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13710 break 2
13711 fi
13712done
13713 done
13714IFS=$as_save_IFS
13715
13716fi
13717fi
13718GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13719if test -n "$GOC_FOR_TARGET"; then
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13721$as_echo "$GOC_FOR_TARGET" >&6; }
13722else
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13724$as_echo "no" >&6; }
13725fi
13726
13727
13728 fi
13729 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13730 done
13731fi
13732
13733if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13734 set dummy gccgo
13735 if test $build = $target ; then
13736 GOC_FOR_TARGET="$2"
13737 else
13738 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13739 fi
13740else
13741 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13742fi
13743
13744
13745
b4c522fa
IB
13746if test -n "$GDC_FOR_TARGET"; then
13747 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13748elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13749 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13750fi
13751
13752if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13753 for ncn_progname in gdc; do
13754 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13755set dummy ${ncn_progname}; ac_word=$2
13756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13757$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13758if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
13759 $as_echo_n "(cached) " >&6
13760else
13761 if test -n "$GDC_FOR_TARGET"; then
13762 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13763else
13764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13765for as_dir in $PATH
13766do
13767 IFS=$as_save_IFS
13768 test -z "$as_dir" && as_dir=.
13769 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
13771 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13773 break 2
13774 fi
13775done
13776 done
13777IFS=$as_save_IFS
13778
13779fi
13780fi
13781GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13782if test -n "$GDC_FOR_TARGET"; then
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13784$as_echo "$GDC_FOR_TARGET" >&6; }
13785else
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13787$as_echo "no" >&6; }
13788fi
13789
13790
13791 done
13792fi
13793
13794if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13795 for ncn_progname in gdc; do
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13797$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13798 if test -x $with_build_time_tools/${ncn_progname}; then
13799 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13801$as_echo "yes" >&6; }
13802 break
13803 else
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13805$as_echo "no" >&6; }
13806 fi
13807 done
13808fi
13809
13810if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13811 for ncn_progname in gdc; do
13812 if test -n "$ncn_target_tool_prefix"; then
13813 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13814set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13816$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13817if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
13818 $as_echo_n "(cached) " >&6
13819else
13820 if test -n "$GDC_FOR_TARGET"; then
13821 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13822else
13823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13824for as_dir in $PATH
13825do
13826 IFS=$as_save_IFS
13827 test -z "$as_dir" && as_dir=.
13828 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
13830 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13832 break 2
13833 fi
13834done
13835 done
13836IFS=$as_save_IFS
13837
13838fi
13839fi
13840GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13841if test -n "$GDC_FOR_TARGET"; then
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13843$as_echo "$GDC_FOR_TARGET" >&6; }
13844else
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13846$as_echo "no" >&6; }
13847fi
13848
13849
13850 fi
13851 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13852 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13853set dummy ${ncn_progname}; ac_word=$2
13854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13855$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13856if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
13857 $as_echo_n "(cached) " >&6
13858else
13859 if test -n "$GDC_FOR_TARGET"; then
13860 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13861else
13862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13863for as_dir in $PATH
13864do
13865 IFS=$as_save_IFS
13866 test -z "$as_dir" && as_dir=.
13867 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
13869 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13871 break 2
13872 fi
13873done
13874 done
13875IFS=$as_save_IFS
13876
13877fi
13878fi
13879GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13880if test -n "$GDC_FOR_TARGET"; then
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13882$as_echo "$GDC_FOR_TARGET" >&6; }
13883else
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13885$as_echo "no" >&6; }
13886fi
13887
13888
13889 fi
13890 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13891 done
13892fi
13893
13894if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13895 set dummy gdc
13896 if test $build = $target ; then
13897 GDC_FOR_TARGET="$2"
13898 else
13899 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13900 fi
13901else
13902 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13903fi
13904
13905
13906
1eee94d3
GM
13907if test -n "$GM2_FOR_TARGET"; then
13908 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
13909elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
13910 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13911fi
13912
13913if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
13914 for ncn_progname in gm2; do
13915 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13916set dummy ${ncn_progname}; ac_word=$2
13917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13918$as_echo_n "checking for $ac_word... " >&6; }
13919if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
13920 $as_echo_n "(cached) " >&6
13921else
13922 if test -n "$GM2_FOR_TARGET"; then
13923 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
13924else
13925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13926for as_dir in $PATH
13927do
13928 IFS=$as_save_IFS
13929 test -z "$as_dir" && as_dir=.
13930 for ac_exec_ext in '' $ac_executable_extensions; do
13931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13932 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
13933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13934 break 2
13935 fi
13936done
13937 done
13938IFS=$as_save_IFS
13939
13940fi
13941fi
13942GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13943if test -n "$GM2_FOR_TARGET"; then
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
13945$as_echo "$GM2_FOR_TARGET" >&6; }
13946else
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13948$as_echo "no" >&6; }
13949fi
13950
13951
13952 done
13953fi
13954
13955if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
13956 for ncn_progname in gm2; do
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13958$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13959 if test -x $with_build_time_tools/${ncn_progname}; then
13960 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13962$as_echo "yes" >&6; }
13963 break
13964 else
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13966$as_echo "no" >&6; }
13967 fi
13968 done
13969fi
13970
13971if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
13972 for ncn_progname in gm2; do
13973 if test -n "$ncn_target_tool_prefix"; then
13974 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13975set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13977$as_echo_n "checking for $ac_word... " >&6; }
13978if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
13979 $as_echo_n "(cached) " >&6
13980else
13981 if test -n "$GM2_FOR_TARGET"; then
13982 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
13983else
13984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13985for as_dir in $PATH
13986do
13987 IFS=$as_save_IFS
13988 test -z "$as_dir" && as_dir=.
13989 for ac_exec_ext in '' $ac_executable_extensions; do
13990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13991 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13993 break 2
13994 fi
13995done
13996 done
13997IFS=$as_save_IFS
13998
13999fi
14000fi
14001GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14002if test -n "$GM2_FOR_TARGET"; then
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14004$as_echo "$GM2_FOR_TARGET" >&6; }
14005else
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14007$as_echo "no" >&6; }
14008fi
14009
14010
14011 fi
14012 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
14013 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14014set dummy ${ncn_progname}; ac_word=$2
14015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14016$as_echo_n "checking for $ac_word... " >&6; }
14017if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14018 $as_echo_n "(cached) " >&6
14019else
14020 if test -n "$GM2_FOR_TARGET"; then
14021 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14022else
14023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14024for as_dir in $PATH
14025do
14026 IFS=$as_save_IFS
14027 test -z "$as_dir" && as_dir=.
14028 for ac_exec_ext in '' $ac_executable_extensions; do
14029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14030 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14032 break 2
14033 fi
14034done
14035 done
14036IFS=$as_save_IFS
14037
14038fi
14039fi
14040GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14041if test -n "$GM2_FOR_TARGET"; then
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14043$as_echo "$GM2_FOR_TARGET" >&6; }
14044else
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14046$as_echo "no" >&6; }
14047fi
14048
14049
14050 fi
14051 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
14052 done
14053fi
14054
14055if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
14056 set dummy gm2
14057 if test $build = $target ; then
14058 GM2_FOR_TARGET="$2"
14059 else
14060 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
14061 fi
14062else
14063 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
14064fi
14065
14066
14067
e8b05380
PB
14068cat > conftest.c << \EOF
14069#ifdef __GNUC__
14070 gcc_yay;
14071#endif
14072EOF
14073if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
14074 have_gcc_for_target=yes
14075else
14076 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
14077 have_gcc_for_target=no
14078fi
14079rm conftest.c
14080
14081
14082
14083
14084if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14085 if test -n "$with_build_time_tools"; then
5213506e
RW
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
14087$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14088 if test -x $with_build_time_tools/ar; then
14089 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
14090 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
14092$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 14093 else
5213506e
RW
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14095$as_echo "no" >&6; }
d1f8db0c 14096 fi
e8b05380
PB
14097 elif test $build != $host && test $have_gcc_for_target = yes; then
14098 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
14099 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14100 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
14101 fi
14102fi
3e19841a 14103if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14104 # Extract the first word of "ar", so it can be a program name with args.
14105set dummy ar; ac_word=$2
5213506e
RW
14106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14107$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14108if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
5213506e 14109 $as_echo_n "(cached) " >&6
e8b05380 14110else
1c710c3c
DJ
14111 case $AR_FOR_TARGET in
14112 [\\/]* | ?:[\\/]*)
e8b05380
PB
14113 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14114 ;;
e8b05380 14115 *)
1c710c3c
DJ
14116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14117for as_dir in $gcc_cv_tool_dirs
14118do
14119 IFS=$as_save_IFS
14120 test -z "$as_dir" && as_dir=.
5213506e 14121 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14123 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14125 break 2
14126 fi
14127done
5213506e
RW
14128 done
14129IFS=$as_save_IFS
1c710c3c 14130
e8b05380
PB
14131 ;;
14132esac
14133fi
1c710c3c 14134AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 14135if test -n "$AR_FOR_TARGET"; then
5213506e
RW
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14137$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 14138else
5213506e
RW
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14140$as_echo "no" >&6; }
4de997d1
PB
14141fi
14142
5213506e 14143
e8b05380
PB
14144fi
14145if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
14146
14147
14148if test -n "$AR_FOR_TARGET"; then
14149 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14150elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14151 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14152fi
14153
14154if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14155 for ncn_progname in ar; do
14156 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14157set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14159$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14160if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 14161 $as_echo_n "(cached) " >&6
278a7a38
AO
14162else
14163 if test -n "$AR_FOR_TARGET"; then
14164 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14165else
14166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14167for as_dir in $PATH
14168do
14169 IFS=$as_save_IFS
14170 test -z "$as_dir" && as_dir=.
5213506e 14171 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14173 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 14174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14175 break 2
14176 fi
14177done
5213506e
RW
14178 done
14179IFS=$as_save_IFS
278a7a38
AO
14180
14181fi
14182fi
14183AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14184if test -n "$AR_FOR_TARGET"; then
5213506e
RW
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14186$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 14187else
5213506e
RW
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14189$as_echo "no" >&6; }
278a7a38
AO
14190fi
14191
5213506e 14192
278a7a38
AO
14193 done
14194fi
14195
14196if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14197 for ncn_progname in ar; do
5213506e
RW
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14199$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14200 if test -x $with_build_time_tools/${ncn_progname}; then
14201 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14203$as_echo "yes" >&6; }
e8b05380
PB
14204 break
14205 else
5213506e
RW
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14207$as_echo "no" >&6; }
e8b05380
PB
14208 fi
14209 done
14210fi
14211
14212if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14213 for ncn_progname in ar; do
14214 if test -n "$ncn_target_tool_prefix"; then
14215 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 14216set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14218$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14219if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 14220 $as_echo_n "(cached) " >&6
4de997d1 14221else
e8b05380
PB
14222 if test -n "$AR_FOR_TARGET"; then
14223 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 14224else
1c710c3c
DJ
14225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14226for as_dir in $PATH
14227do
14228 IFS=$as_save_IFS
14229 test -z "$as_dir" && as_dir=.
5213506e 14230 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14232 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14234 break 2
14235 fi
14236done
5213506e
RW
14237 done
14238IFS=$as_save_IFS
1c710c3c 14239
4de997d1
PB
14240fi
14241fi
1c710c3c 14242AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 14243if test -n "$AR_FOR_TARGET"; then
5213506e
RW
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14245$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 14246else
5213506e
RW
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14248$as_echo "no" >&6; }
4de997d1
PB
14249fi
14250
5213506e 14251
e8b05380
PB
14252 fi
14253 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14254 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14255set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14257$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14258if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 14259 $as_echo_n "(cached) " >&6
e8b05380
PB
14260else
14261 if test -n "$AR_FOR_TARGET"; then
14262 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14263else
1c710c3c
DJ
14264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14265for as_dir in $PATH
14266do
14267 IFS=$as_save_IFS
14268 test -z "$as_dir" && as_dir=.
5213506e 14269 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14271 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 14272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14273 break 2
14274 fi
14275done
5213506e
RW
14276 done
14277IFS=$as_save_IFS
1c710c3c 14278
e8b05380
PB
14279fi
14280fi
1c710c3c 14281AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 14282if test -n "$AR_FOR_TARGET"; then
5213506e
RW
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14284$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 14285else
5213506e
RW
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14287$as_echo "no" >&6; }
e8b05380 14288fi
1c710c3c 14289
5213506e 14290
e8b05380
PB
14291 fi
14292 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14293 done
14294fi
1c710c3c 14295
e8b05380
PB
14296if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14297 set dummy ar
14298 if test $build = $target ; then
14299 AR_FOR_TARGET="$2"
14300 else
14301 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 14302 fi
1c00b503
PB
14303else
14304 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
14305fi
14306
d1f8db0c
PB
14307else
14308 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
14309fi
14310
14311
14312
14313
14314if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14315 if test -n "$with_build_time_tools"; then
5213506e
RW
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14317$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14318 if test -x $with_build_time_tools/as; then
14319 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14320 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14322$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 14323 else
5213506e
RW
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14325$as_echo "no" >&6; }
d1f8db0c 14326 fi
e8b05380
PB
14327 elif test $build != $host && test $have_gcc_for_target = yes; then
14328 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
14329 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14330 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
14331 fi
14332fi
3e19841a 14333if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14334 # Extract the first word of "as", so it can be a program name with args.
14335set dummy as; ac_word=$2
5213506e
RW
14336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14337$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14338if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
5213506e 14339 $as_echo_n "(cached) " >&6
e8b05380 14340else
1c710c3c
DJ
14341 case $AS_FOR_TARGET in
14342 [\\/]* | ?:[\\/]*)
e8b05380
PB
14343 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14344 ;;
e8b05380 14345 *)
1c710c3c
DJ
14346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14347for as_dir in $gcc_cv_tool_dirs
14348do
14349 IFS=$as_save_IFS
14350 test -z "$as_dir" && as_dir=.
5213506e 14351 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14353 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14355 break 2
14356 fi
14357done
5213506e
RW
14358 done
14359IFS=$as_save_IFS
1c710c3c 14360
e8b05380
PB
14361 ;;
14362esac
14363fi
1c710c3c 14364AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 14365if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14367$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 14368else
5213506e
RW
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14370$as_echo "no" >&6; }
e8b05380
PB
14371fi
14372
5213506e 14373
e8b05380
PB
14374fi
14375if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
14376
14377
14378if test -n "$AS_FOR_TARGET"; then
14379 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14380elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14381 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14382fi
14383
14384if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14385 for ncn_progname in as; do
14386 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14387set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14389$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14390if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 14391 $as_echo_n "(cached) " >&6
278a7a38
AO
14392else
14393 if test -n "$AS_FOR_TARGET"; then
14394 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14395else
14396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14397for as_dir in $PATH
14398do
14399 IFS=$as_save_IFS
14400 test -z "$as_dir" && as_dir=.
5213506e 14401 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14403 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 14404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14405 break 2
14406 fi
14407done
5213506e
RW
14408 done
14409IFS=$as_save_IFS
278a7a38
AO
14410
14411fi
14412fi
14413AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14414if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14416$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 14417else
5213506e
RW
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14419$as_echo "no" >&6; }
278a7a38
AO
14420fi
14421
5213506e 14422
278a7a38
AO
14423 done
14424fi
14425
14426if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14427 for ncn_progname in as; do
5213506e
RW
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14429$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14430 if test -x $with_build_time_tools/${ncn_progname}; then
14431 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14433$as_echo "yes" >&6; }
e8b05380
PB
14434 break
14435 else
5213506e
RW
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14437$as_echo "no" >&6; }
e8b05380
PB
14438 fi
14439 done
14440fi
14441
14442if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14443 for ncn_progname in as; do
14444 if test -n "$ncn_target_tool_prefix"; then
14445 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14446set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14448$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14449if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 14450 $as_echo_n "(cached) " >&6
e8b05380
PB
14451else
14452 if test -n "$AS_FOR_TARGET"; then
14453 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14454else
1c710c3c
DJ
14455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14456for as_dir in $PATH
14457do
14458 IFS=$as_save_IFS
14459 test -z "$as_dir" && as_dir=.
5213506e 14460 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14462 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14464 break 2
14465 fi
14466done
5213506e
RW
14467 done
14468IFS=$as_save_IFS
1c710c3c 14469
e8b05380
PB
14470fi
14471fi
1c710c3c 14472AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 14473if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14475$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 14476else
5213506e
RW
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14478$as_echo "no" >&6; }
e8b05380
PB
14479fi
14480
5213506e 14481
e8b05380
PB
14482 fi
14483 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14484 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 14485set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14487$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14488if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 14489 $as_echo_n "(cached) " >&6
4de997d1 14490else
e8b05380
PB
14491 if test -n "$AS_FOR_TARGET"; then
14492 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 14493else
1c710c3c
DJ
14494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14495for as_dir in $PATH
14496do
14497 IFS=$as_save_IFS
14498 test -z "$as_dir" && as_dir=.
5213506e 14499 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14501 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 14502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14503 break 2
14504 fi
14505done
5213506e
RW
14506 done
14507IFS=$as_save_IFS
1c710c3c 14508
4de997d1
PB
14509fi
14510fi
1c710c3c 14511AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 14512if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14514$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 14515else
5213506e
RW
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14517$as_echo "no" >&6; }
4de997d1 14518fi
1c710c3c 14519
5213506e 14520
e8b05380
PB
14521 fi
14522 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14523 done
14524fi
1c710c3c 14525
e8b05380
PB
14526if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14527 set dummy as
14528 if test $build = $target ; then
14529 AS_FOR_TARGET="$2"
14530 else
14531 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 14532 fi
1c00b503
PB
14533else
14534 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 14535fi
2693c0b0 14536
d1f8db0c
PB
14537else
14538 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
14539fi
14540
e8b05380
PB
14541
14542
14543
14544if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14545 if test -n "$with_build_time_tools"; then
5213506e
RW
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14547$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14548 if test -x $with_build_time_tools/dlltool; then
14549 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14550 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14552$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 14553 else
5213506e
RW
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14555$as_echo "no" >&6; }
d1f8db0c 14556 fi
e8b05380
PB
14557 elif test $build != $host && test $have_gcc_for_target = yes; then
14558 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
14559 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14560 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
14561 fi
14562fi
3e19841a 14563if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14564 # Extract the first word of "dlltool", so it can be a program name with args.
14565set dummy dlltool; ac_word=$2
5213506e
RW
14566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14567$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14568if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14569 $as_echo_n "(cached) " >&6
4de997d1 14570else
1c710c3c
DJ
14571 case $DLLTOOL_FOR_TARGET in
14572 [\\/]* | ?:[\\/]*)
e8b05380
PB
14573 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14574 ;;
e8b05380 14575 *)
1c710c3c
DJ
14576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14577for as_dir in $gcc_cv_tool_dirs
14578do
14579 IFS=$as_save_IFS
14580 test -z "$as_dir" && as_dir=.
5213506e 14581 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14583 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14585 break 2
14586 fi
14587done
5213506e
RW
14588 done
14589IFS=$as_save_IFS
1c710c3c 14590
e8b05380
PB
14591 ;;
14592esac
4de997d1 14593fi
1c710c3c 14594DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 14595if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14597$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 14598else
5213506e
RW
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14600$as_echo "no" >&6; }
4de997d1
PB
14601fi
14602
5213506e 14603
e8b05380
PB
14604fi
14605if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
14606
14607
14608if test -n "$DLLTOOL_FOR_TARGET"; then
14609 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14610elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14611 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14612fi
14613
14614if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14615 for ncn_progname in dlltool; do
14616 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14617set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14619$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14620if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14621 $as_echo_n "(cached) " >&6
278a7a38
AO
14622else
14623 if test -n "$DLLTOOL_FOR_TARGET"; then
14624 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14625else
14626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14627for as_dir in $PATH
14628do
14629 IFS=$as_save_IFS
14630 test -z "$as_dir" && as_dir=.
5213506e 14631 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14633 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 14634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14635 break 2
14636 fi
14637done
5213506e
RW
14638 done
14639IFS=$as_save_IFS
278a7a38
AO
14640
14641fi
14642fi
14643DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14644if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14646$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 14647else
5213506e
RW
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14649$as_echo "no" >&6; }
278a7a38
AO
14650fi
14651
5213506e 14652
278a7a38
AO
14653 done
14654fi
14655
14656if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14657 for ncn_progname in dlltool; do
5213506e
RW
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14659$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14660 if test -x $with_build_time_tools/${ncn_progname}; then
14661 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14663$as_echo "yes" >&6; }
e8b05380
PB
14664 break
14665 else
5213506e
RW
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14667$as_echo "no" >&6; }
e8b05380
PB
14668 fi
14669 done
14670fi
14671
14672if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14673 for ncn_progname in dlltool; do
14674 if test -n "$ncn_target_tool_prefix"; then
14675 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14676set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14678$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14679if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14680 $as_echo_n "(cached) " >&6
4de997d1 14681else
e8b05380
PB
14682 if test -n "$DLLTOOL_FOR_TARGET"; then
14683 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 14684else
1c710c3c
DJ
14685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14686for as_dir in $PATH
14687do
14688 IFS=$as_save_IFS
14689 test -z "$as_dir" && as_dir=.
5213506e 14690 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14692 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14694 break 2
14695 fi
14696done
5213506e
RW
14697 done
14698IFS=$as_save_IFS
1c710c3c 14699
4de997d1
PB
14700fi
14701fi
1c710c3c 14702DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 14703if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14705$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 14706else
5213506e
RW
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14708$as_echo "no" >&6; }
4de997d1 14709fi
4de997d1 14710
5213506e 14711
e8b05380
PB
14712 fi
14713 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14714 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14715set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14717$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14718if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14719 $as_echo_n "(cached) " >&6
4de997d1 14720else
e8b05380
PB
14721 if test -n "$DLLTOOL_FOR_TARGET"; then
14722 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 14723else
1c710c3c
DJ
14724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14725for as_dir in $PATH
14726do
14727 IFS=$as_save_IFS
14728 test -z "$as_dir" && as_dir=.
5213506e 14729 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14731 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 14732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14733 break 2
14734 fi
14735done
5213506e
RW
14736 done
14737IFS=$as_save_IFS
1c710c3c 14738
4de997d1
PB
14739fi
14740fi
1c710c3c 14741DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 14742if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14744$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 14745else
5213506e
RW
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14747$as_echo "no" >&6; }
4de997d1 14748fi
1c710c3c 14749
5213506e 14750
e8b05380
PB
14751 fi
14752 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14753 done
14754fi
1c710c3c 14755
e8b05380
PB
14756if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14757 set dummy dlltool
14758 if test $build = $target ; then
14759 DLLTOOL_FOR_TARGET="$2"
14760 else
14761 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14762 fi
1c00b503
PB
14763else
14764 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
14765fi
14766
d1f8db0c
PB
14767else
14768 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
14769fi
14770
4de997d1 14771
e8b05380
PB
14772
14773
3b5e8ee4
IS
14774if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14775 if test -n "$with_build_time_tools"; then
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14777$as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14778 if test -x $with_build_time_tools/dsymutil; then
14779 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14780 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14782$as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14783 else
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14785$as_echo "no" >&6; }
14786 fi
14787 elif test $build != $host && test $have_gcc_for_target = yes; then
14788 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14789 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14790 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14791 fi
14792fi
14793if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14794 # Extract the first word of "dsymutil", so it can be a program name with args.
14795set dummy dsymutil; ac_word=$2
14796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14797$as_echo_n "checking for $ac_word... " >&6; }
14798if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14799 $as_echo_n "(cached) " >&6
14800else
14801 case $DSYMUTIL_FOR_TARGET in
14802 [\\/]* | ?:[\\/]*)
14803 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14804 ;;
14805 *)
14806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14807for as_dir in $gcc_cv_tool_dirs
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_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
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
14821 ;;
14822esac
14823fi
14824DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14825if test -n "$DSYMUTIL_FOR_TARGET"; then
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14827$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14828else
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14830$as_echo "no" >&6; }
14831fi
14832
14833
14834fi
14835if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14836
14837
14838if test -n "$DSYMUTIL_FOR_TARGET"; then
14839 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14840elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14841 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14842fi
14843
14844if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14845 for ncn_progname in dsymutil; do
14846 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14847set dummy ${ncn_progname}; ac_word=$2
14848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14849$as_echo_n "checking for $ac_word... " >&6; }
14850if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14851 $as_echo_n "(cached) " >&6
14852else
14853 if test -n "$DSYMUTIL_FOR_TARGET"; then
14854 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14855else
14856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14857for as_dir in $PATH
14858do
14859 IFS=$as_save_IFS
14860 test -z "$as_dir" && as_dir=.
14861 for ac_exec_ext in '' $ac_executable_extensions; do
14862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14863 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14865 break 2
14866 fi
14867done
14868 done
14869IFS=$as_save_IFS
14870
14871fi
14872fi
14873DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14874if test -n "$DSYMUTIL_FOR_TARGET"; then
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14876$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14877else
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14879$as_echo "no" >&6; }
14880fi
14881
14882
14883 done
14884fi
14885
14886if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14887 for ncn_progname in dsymutil; do
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14889$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14890 if test -x $with_build_time_tools/${ncn_progname}; then
14891 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14893$as_echo "yes" >&6; }
14894 break
14895 else
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14897$as_echo "no" >&6; }
14898 fi
14899 done
14900fi
14901
14902if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14903 for ncn_progname in dsymutil; do
14904 if test -n "$ncn_target_tool_prefix"; then
14905 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14906set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14908$as_echo_n "checking for $ac_word... " >&6; }
14909if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14910 $as_echo_n "(cached) " >&6
14911else
14912 if test -n "$DSYMUTIL_FOR_TARGET"; then
14913 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14914else
14915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14916for as_dir in $PATH
14917do
14918 IFS=$as_save_IFS
14919 test -z "$as_dir" && as_dir=.
14920 for ac_exec_ext in '' $ac_executable_extensions; do
14921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14922 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14924 break 2
14925 fi
14926done
14927 done
14928IFS=$as_save_IFS
14929
14930fi
14931fi
14932DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14933if test -n "$DSYMUTIL_FOR_TARGET"; then
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14935$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14936else
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14938$as_echo "no" >&6; }
14939fi
14940
14941
14942 fi
14943 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14944 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14945set dummy ${ncn_progname}; ac_word=$2
14946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14947$as_echo_n "checking for $ac_word... " >&6; }
14948if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14949 $as_echo_n "(cached) " >&6
14950else
14951 if test -n "$DSYMUTIL_FOR_TARGET"; then
14952 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14953else
14954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14955for as_dir in $PATH
14956do
14957 IFS=$as_save_IFS
14958 test -z "$as_dir" && as_dir=.
14959 for ac_exec_ext in '' $ac_executable_extensions; do
14960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14961 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14963 break 2
14964 fi
14965done
14966 done
14967IFS=$as_save_IFS
14968
14969fi
14970fi
14971DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14972if test -n "$DSYMUTIL_FOR_TARGET"; then
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14974$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14975else
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14977$as_echo "no" >&6; }
14978fi
14979
14980
14981 fi
14982 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14983 done
14984fi
14985
14986if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14987 set dummy dsymutil
14988 if test $build = $target ; then
14989 DSYMUTIL_FOR_TARGET="$2"
14990 else
14991 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14992 fi
14993else
14994 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14995fi
14996
14997else
14998 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14999fi
15000
15001
15002
15003
e8b05380
PB
15004if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15005 if test -n "$with_build_time_tools"; then
5213506e
RW
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
15007$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15008 if test -x $with_build_time_tools/ld; then
15009 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
15010 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
15012$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 15013 else
5213506e
RW
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15015$as_echo "no" >&6; }
d1f8db0c 15016 fi
e8b05380
PB
15017 elif test $build != $host && test $have_gcc_for_target = yes; then
15018 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
15019 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
15020 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 15021 fi
e8b05380 15022fi
3e19841a 15023if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
15024 # Extract the first word of "ld", so it can be a program name with args.
15025set dummy ld; ac_word=$2
5213506e
RW
15026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15027$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15028if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
5213506e 15029 $as_echo_n "(cached) " >&6
4de997d1 15030else
1c710c3c
DJ
15031 case $LD_FOR_TARGET in
15032 [\\/]* | ?:[\\/]*)
e8b05380
PB
15033 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
15034 ;;
e8b05380 15035 *)
1c710c3c
DJ
15036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15037for as_dir in $gcc_cv_tool_dirs
15038do
15039 IFS=$as_save_IFS
15040 test -z "$as_dir" && as_dir=.
5213506e 15041 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15043 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 15044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15045 break 2
15046 fi
15047done
5213506e
RW
15048 done
15049IFS=$as_save_IFS
1c710c3c 15050
e8b05380
PB
15051 ;;
15052esac
4de997d1 15053fi
1c710c3c 15054LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 15055if test -n "$LD_FOR_TARGET"; then
5213506e
RW
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15057$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 15058else
5213506e
RW
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15060$as_echo "no" >&6; }
4de997d1 15061fi
2693c0b0 15062
5213506e 15063
e8b05380
PB
15064fi
15065if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
15066
15067
15068if test -n "$LD_FOR_TARGET"; then
15069 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
15070elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15071 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15072fi
15073
15074if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15075 for ncn_progname in ld; do
15076 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15077set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15079$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15080if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 15081 $as_echo_n "(cached) " >&6
278a7a38
AO
15082else
15083 if test -n "$LD_FOR_TARGET"; then
15084 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15085else
15086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15087for as_dir in $PATH
15088do
15089 IFS=$as_save_IFS
15090 test -z "$as_dir" && as_dir=.
5213506e 15091 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15093 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 15094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
15095 break 2
15096 fi
15097done
5213506e
RW
15098 done
15099IFS=$as_save_IFS
278a7a38
AO
15100
15101fi
15102fi
15103LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15104if test -n "$LD_FOR_TARGET"; then
5213506e
RW
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15106$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 15107else
5213506e
RW
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15109$as_echo "no" >&6; }
278a7a38
AO
15110fi
15111
5213506e 15112
278a7a38
AO
15113 done
15114fi
15115
15116if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15117 for ncn_progname in ld; do
5213506e
RW
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15119$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15120 if test -x $with_build_time_tools/${ncn_progname}; then
15121 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15123$as_echo "yes" >&6; }
e8b05380
PB
15124 break
15125 else
5213506e
RW
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15127$as_echo "no" >&6; }
e8b05380
PB
15128 fi
15129 done
ca9f4b81
AO
15130fi
15131
e8b05380
PB
15132if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15133 for ncn_progname in ld; do
15134 if test -n "$ncn_target_tool_prefix"; then
15135 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 15136set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
15137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15138$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15139if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 15140 $as_echo_n "(cached) " >&6
ca9f4b81 15141else
4de997d1
PB
15142 if test -n "$LD_FOR_TARGET"; then
15143 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 15144else
1c710c3c
DJ
15145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15146for as_dir in $PATH
15147do
15148 IFS=$as_save_IFS
15149 test -z "$as_dir" && as_dir=.
5213506e 15150 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15152 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 15153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15154 break 2
15155 fi
15156done
5213506e
RW
15157 done
15158IFS=$as_save_IFS
1c710c3c 15159
ca9f4b81
AO
15160fi
15161fi
1c710c3c 15162LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 15163if test -n "$LD_FOR_TARGET"; then
5213506e
RW
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15165$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 15166else
5213506e
RW
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15168$as_echo "no" >&6; }
ca9f4b81
AO
15169fi
15170
5213506e 15171
e8b05380
PB
15172 fi
15173 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15174 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 15175set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15177$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15178if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 15179 $as_echo_n "(cached) " >&6
ca9f4b81 15180else
2693c0b0
PB
15181 if test -n "$LD_FOR_TARGET"; then
15182 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 15183else
1c710c3c
DJ
15184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15185for as_dir in $PATH
15186do
15187 IFS=$as_save_IFS
15188 test -z "$as_dir" && as_dir=.
5213506e 15189 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15191 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 15192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15193 break 2
15194 fi
15195done
5213506e
RW
15196 done
15197IFS=$as_save_IFS
1c710c3c 15198
ca9f4b81
AO
15199fi
15200fi
1c710c3c 15201LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 15202if test -n "$LD_FOR_TARGET"; then
5213506e
RW
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15204$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 15205else
5213506e
RW
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15207$as_echo "no" >&6; }
ca9f4b81 15208fi
1c710c3c 15209
5213506e 15210
e8b05380
PB
15211 fi
15212 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15213 done
15214fi
1c710c3c 15215
2693c0b0
PB
15216if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15217 set dummy ld
15218 if test $build = $target ; then
15219 LD_FOR_TARGET="$2"
ca9f4b81 15220 else
2693c0b0 15221 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 15222 fi
1c00b503
PB
15223else
15224 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
15225fi
15226
d1f8db0c
PB
15227else
15228 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
15229fi
15230
15231
15232
15233
15234if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15235 if test -n "$with_build_time_tools"; then
5213506e
RW
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
15237$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15238 if test -x $with_build_time_tools/lipo; then
15239 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15240 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
15242$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 15243 else
5213506e
RW
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15245$as_echo "no" >&6; }
d1f8db0c 15246 fi
e8b05380
PB
15247 elif test $build != $host && test $have_gcc_for_target = yes; then
15248 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
15249 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15250 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
15251 fi
15252fi
278a7a38
AO
15253if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15254 # Extract the first word of "lipo", so it can be a program name with args.
15255set dummy lipo; ac_word=$2
5213506e
RW
15256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15257$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15258if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
5213506e 15259 $as_echo_n "(cached) " >&6
278a7a38
AO
15260else
15261 case $LIPO_FOR_TARGET in
15262 [\\/]* | ?:[\\/]*)
15263 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15264 ;;
15265 *)
15266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15267for as_dir in $gcc_cv_tool_dirs
15268do
15269 IFS=$as_save_IFS
15270 test -z "$as_dir" && as_dir=.
5213506e 15271 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15273 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 15274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
15275 break 2
15276 fi
15277done
5213506e
RW
15278 done
15279IFS=$as_save_IFS
278a7a38
AO
15280
15281 ;;
15282esac
15283fi
15284LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 15285if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15287$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 15288else
5213506e
RW
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15290$as_echo "no" >&6; }
278a7a38
AO
15291fi
15292
5213506e 15293
278a7a38
AO
15294fi
15295if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15296
15297
15298if test -n "$LIPO_FOR_TARGET"; then
15299 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15300elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15301 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15302fi
15303
15304if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15305 for ncn_progname in lipo; do
15306 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15307set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15309$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15310if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 15311 $as_echo_n "(cached) " >&6
e8b05380 15312else
278a7a38
AO
15313 if test -n "$LIPO_FOR_TARGET"; then
15314 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15315else
15316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15317for as_dir in $PATH
1c710c3c
DJ
15318do
15319 IFS=$as_save_IFS
15320 test -z "$as_dir" && as_dir=.
5213506e 15321 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15323 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 15324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15325 break 2
15326 fi
15327done
5213506e
RW
15328 done
15329IFS=$as_save_IFS
1c710c3c 15330
e8b05380 15331fi
278a7a38
AO
15332fi
15333LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 15334if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15336$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 15337else
5213506e
RW
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15339$as_echo "no" >&6; }
e8b05380
PB
15340fi
15341
5213506e 15342
278a7a38 15343 done
e8b05380 15344fi
278a7a38
AO
15345
15346if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15347 for ncn_progname in lipo; do
5213506e
RW
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15349$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15350 if test -x $with_build_time_tools/${ncn_progname}; then
15351 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15353$as_echo "yes" >&6; }
e8b05380
PB
15354 break
15355 else
5213506e
RW
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15357$as_echo "no" >&6; }
e8b05380
PB
15358 fi
15359 done
15360fi
15361
15362if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15363 for ncn_progname in lipo; do
15364 if test -n "$ncn_target_tool_prefix"; then
15365 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 15366set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
15367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15368$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15369if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 15370 $as_echo_n "(cached) " >&6
040b1c5a
GK
15371else
15372 if test -n "$LIPO_FOR_TARGET"; then
15373 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15374else
1c710c3c
DJ
15375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15376for as_dir in $PATH
15377do
15378 IFS=$as_save_IFS
15379 test -z "$as_dir" && as_dir=.
5213506e 15380 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15382 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 15383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15384 break 2
15385 fi
15386done
5213506e
RW
15387 done
15388IFS=$as_save_IFS
1c710c3c 15389
040b1c5a
GK
15390fi
15391fi
1c710c3c 15392LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 15393if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15395$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 15396else
5213506e
RW
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15398$as_echo "no" >&6; }
040b1c5a
GK
15399fi
15400
5213506e 15401
e8b05380
PB
15402 fi
15403 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15404 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 15405set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15407$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15408if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 15409 $as_echo_n "(cached) " >&6
040b1c5a
GK
15410else
15411 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
15412 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15413else
1c710c3c
DJ
15414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15415for as_dir in $PATH
15416do
15417 IFS=$as_save_IFS
15418 test -z "$as_dir" && as_dir=.
5213506e 15419 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15421 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 15422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15423 break 2
15424 fi
15425done
5213506e
RW
15426 done
15427IFS=$as_save_IFS
1c710c3c 15428
040b1c5a
GK
15429fi
15430fi
1c710c3c 15431LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 15432if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15434$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 15435else
5213506e
RW
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15437$as_echo "no" >&6; }
040b1c5a 15438fi
1c710c3c 15439
5213506e 15440
e8b05380
PB
15441 fi
15442 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15443 done
15444fi
1c710c3c 15445
040b1c5a
GK
15446if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15447 set dummy lipo
15448 if test $build = $target ; then
15449 LIPO_FOR_TARGET="$2"
15450 else
15451 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15452 fi
1c00b503
PB
15453else
15454 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
15455fi
15456
d1f8db0c
PB
15457else
15458 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
15459fi
15460
15461
15462
15463
15464if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15465 if test -n "$with_build_time_tools"; then
5213506e
RW
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15467$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15468 if test -x $with_build_time_tools/nm; then
15469 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15470 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15472$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 15473 else
5213506e
RW
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15475$as_echo "no" >&6; }
d1f8db0c 15476 fi
e8b05380
PB
15477 elif test $build != $host && test $have_gcc_for_target = yes; then
15478 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
15479 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15480 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
15481 fi
15482fi
3e19841a 15483if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
15484 # Extract the first word of "nm", so it can be a program name with args.
15485set dummy nm; ac_word=$2
5213506e
RW
15486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15487$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15488if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
5213506e 15489 $as_echo_n "(cached) " >&6
e8b05380 15490else
1c710c3c
DJ
15491 case $NM_FOR_TARGET in
15492 [\\/]* | ?:[\\/]*)
e8b05380
PB
15493 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15494 ;;
e8b05380 15495 *)
1c710c3c
DJ
15496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15497for as_dir in $gcc_cv_tool_dirs
15498do
15499 IFS=$as_save_IFS
15500 test -z "$as_dir" && as_dir=.
5213506e 15501 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15503 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 15504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15505 break 2
15506 fi
15507done
5213506e
RW
15508 done
15509IFS=$as_save_IFS
1c710c3c 15510
e8b05380
PB
15511 ;;
15512esac
15513fi
1c710c3c 15514NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 15515if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15517$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 15518else
5213506e
RW
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15520$as_echo "no" >&6; }
e8b05380
PB
15521fi
15522
5213506e 15523
e8b05380
PB
15524fi
15525if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
15526
15527
15528if test -n "$NM_FOR_TARGET"; then
15529 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15530elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15531 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15532fi
15533
15534if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15535 for ncn_progname in nm; do
15536 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15537set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15539$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15540if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 15541 $as_echo_n "(cached) " >&6
278a7a38
AO
15542else
15543 if test -n "$NM_FOR_TARGET"; then
15544 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15545else
15546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15547for as_dir in $PATH
15548do
15549 IFS=$as_save_IFS
15550 test -z "$as_dir" && as_dir=.
5213506e 15551 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15553 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 15554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
15555 break 2
15556 fi
15557done
5213506e
RW
15558 done
15559IFS=$as_save_IFS
278a7a38
AO
15560
15561fi
15562fi
15563NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15564if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15566$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 15567else
5213506e
RW
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15569$as_echo "no" >&6; }
278a7a38
AO
15570fi
15571
5213506e 15572
278a7a38
AO
15573 done
15574fi
15575
15576if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15577 for ncn_progname in nm; do
5213506e
RW
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15579$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15580 if test -x $with_build_time_tools/${ncn_progname}; then
15581 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15583$as_echo "yes" >&6; }
e8b05380
PB
15584 break
15585 else
5213506e
RW
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15587$as_echo "no" >&6; }
e8b05380
PB
15588 fi
15589 done
15590fi
15591
15592if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15593 for ncn_progname in nm; do
15594 if test -n "$ncn_target_tool_prefix"; then
15595 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 15596set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
15597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15598$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15599if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 15600 $as_echo_n "(cached) " >&6
ca9f4b81 15601else
4de997d1
PB
15602 if test -n "$NM_FOR_TARGET"; then
15603 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 15604else
1c710c3c
DJ
15605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15606for as_dir in $PATH
15607do
15608 IFS=$as_save_IFS
15609 test -z "$as_dir" && as_dir=.
5213506e 15610 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15612 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 15613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15614 break 2
15615 fi
15616done
5213506e
RW
15617 done
15618IFS=$as_save_IFS
1c710c3c 15619
ca9f4b81
AO
15620fi
15621fi
1c710c3c 15622NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 15623if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15625$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 15626else
5213506e
RW
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15628$as_echo "no" >&6; }
ca9f4b81
AO
15629fi
15630
5213506e 15631
e8b05380
PB
15632 fi
15633 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15634 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 15635set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15637$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15638if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 15639 $as_echo_n "(cached) " >&6
ca9f4b81 15640else
2693c0b0
PB
15641 if test -n "$NM_FOR_TARGET"; then
15642 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 15643else
1c710c3c
DJ
15644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15645for as_dir in $PATH
15646do
15647 IFS=$as_save_IFS
15648 test -z "$as_dir" && as_dir=.
5213506e 15649 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15651 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 15652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15653 break 2
15654 fi
15655done
5213506e
RW
15656 done
15657IFS=$as_save_IFS
1c710c3c 15658
ca9f4b81
AO
15659fi
15660fi
1c710c3c 15661NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 15662if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15664$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 15665else
5213506e
RW
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15667$as_echo "no" >&6; }
ca9f4b81 15668fi
1c710c3c 15669
5213506e 15670
e8b05380
PB
15671 fi
15672 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15673 done
15674fi
1c710c3c 15675
2693c0b0
PB
15676if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15677 set dummy nm
15678 if test $build = $target ; then
15679 NM_FOR_TARGET="$2"
ca9f4b81 15680 else
2693c0b0 15681 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 15682 fi
1c00b503
PB
15683else
15684 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
15685fi
15686
d1f8db0c
PB
15687else
15688 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
15689fi
15690
15691
15692
15693
9bccfdf5
AP
15694if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15695 if test -n "$with_build_time_tools"; then
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15697$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15698 if test -x $with_build_time_tools/objcopy; then
15699 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15700 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15702$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15703 else
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15705$as_echo "no" >&6; }
15706 fi
15707 elif test $build != $host && test $have_gcc_for_target = yes; then
15708 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15709 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15710 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15711 fi
15712fi
15713if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15714 # Extract the first word of "objcopy", so it can be a program name with args.
15715set dummy objcopy; ac_word=$2
15716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15717$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15718if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15719 $as_echo_n "(cached) " >&6
15720else
15721 case $OBJCOPY_FOR_TARGET in
15722 [\\/]* | ?:[\\/]*)
15723 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15724 ;;
15725 *)
15726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15727for as_dir in $gcc_cv_tool_dirs
15728do
15729 IFS=$as_save_IFS
15730 test -z "$as_dir" && as_dir=.
15731 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15733 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
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
15741 ;;
15742esac
15743fi
15744OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15745if test -n "$OBJCOPY_FOR_TARGET"; then
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15747$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15748else
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15750$as_echo "no" >&6; }
15751fi
15752
15753
15754fi
15755if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15756
15757
15758if test -n "$OBJCOPY_FOR_TARGET"; then
15759 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15760elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15761 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15762fi
15763
15764if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15765 for ncn_progname in objcopy; do
15766 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15767set dummy ${ncn_progname}; ac_word=$2
15768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15769$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15770if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15771 $as_echo_n "(cached) " >&6
15772else
15773 if test -n "$OBJCOPY_FOR_TARGET"; then
15774 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15775else
15776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15777for as_dir in $PATH
15778do
15779 IFS=$as_save_IFS
15780 test -z "$as_dir" && as_dir=.
15781 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15783 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15785 break 2
15786 fi
15787done
15788 done
15789IFS=$as_save_IFS
15790
15791fi
15792fi
15793OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15794if test -n "$OBJCOPY_FOR_TARGET"; then
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15796$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15797else
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15799$as_echo "no" >&6; }
15800fi
15801
15802
15803 done
15804fi
15805
15806if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15807 for ncn_progname in objcopy; do
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15809$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15810 if test -x $with_build_time_tools/${ncn_progname}; then
15811 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15813$as_echo "yes" >&6; }
15814 break
15815 else
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15817$as_echo "no" >&6; }
15818 fi
15819 done
15820fi
15821
15822if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15823 for ncn_progname in objcopy; do
15824 if test -n "$ncn_target_tool_prefix"; then
15825 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15826set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15828$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15829if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15830 $as_echo_n "(cached) " >&6
15831else
15832 if test -n "$OBJCOPY_FOR_TARGET"; then
15833 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15834else
15835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15836for as_dir in $PATH
15837do
15838 IFS=$as_save_IFS
15839 test -z "$as_dir" && as_dir=.
15840 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15842 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15844 break 2
15845 fi
15846done
15847 done
15848IFS=$as_save_IFS
15849
15850fi
15851fi
15852OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15853if test -n "$OBJCOPY_FOR_TARGET"; then
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15855$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15856else
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15858$as_echo "no" >&6; }
15859fi
15860
15861
15862 fi
15863 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15864 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15865set dummy ${ncn_progname}; ac_word=$2
15866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15867$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15868if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15869 $as_echo_n "(cached) " >&6
15870else
15871 if test -n "$OBJCOPY_FOR_TARGET"; then
15872 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15873else
15874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15875for as_dir in $PATH
15876do
15877 IFS=$as_save_IFS
15878 test -z "$as_dir" && as_dir=.
15879 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15881 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15883 break 2
15884 fi
15885done
15886 done
15887IFS=$as_save_IFS
15888
15889fi
15890fi
15891OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15892if test -n "$OBJCOPY_FOR_TARGET"; then
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15894$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15895else
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15897$as_echo "no" >&6; }
15898fi
15899
15900
15901 fi
15902 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15903 done
15904fi
15905
15906if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15907 set dummy objcopy
15908 if test $build = $target ; then
15909 OBJCOPY_FOR_TARGET="$2"
15910 else
15911 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15912 fi
15913else
15914 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15915fi
15916
15917else
15918 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15919fi
15920
15921
15922
15923
e8b05380
PB
15924if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15925 if test -n "$with_build_time_tools"; then
5213506e
RW
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15927$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15928 if test -x $with_build_time_tools/objdump; then
15929 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15930 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15932$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 15933 else
5213506e
RW
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15935$as_echo "no" >&6; }
d1f8db0c 15936 fi
e8b05380
PB
15937 elif test $build != $host && test $have_gcc_for_target = yes; then
15938 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
15939 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15940 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
15941 fi
15942fi
3e19841a 15943if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
15944 # Extract the first word of "objdump", so it can be a program name with args.
15945set dummy objdump; ac_word=$2
5213506e
RW
15946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15947$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15948if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 15949 $as_echo_n "(cached) " >&6
e8b05380 15950else
1c710c3c
DJ
15951 case $OBJDUMP_FOR_TARGET in
15952 [\\/]* | ?:[\\/]*)
e8b05380
PB
15953 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15954 ;;
e8b05380 15955 *)
1c710c3c
DJ
15956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15957for as_dir in $gcc_cv_tool_dirs
15958do
15959 IFS=$as_save_IFS
15960 test -z "$as_dir" && as_dir=.
5213506e 15961 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15963 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 15964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15965 break 2
15966 fi
15967done
5213506e
RW
15968 done
15969IFS=$as_save_IFS
1c710c3c 15970
e8b05380
PB
15971 ;;
15972esac
15973fi
1c710c3c 15974OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 15975if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15977$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 15978else
5213506e
RW
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15980$as_echo "no" >&6; }
e8b05380
PB
15981fi
15982
5213506e 15983
e8b05380
PB
15984fi
15985if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
15986
15987
15988if test -n "$OBJDUMP_FOR_TARGET"; then
15989 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15990elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15991 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15992fi
15993
15994if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15995 for ncn_progname in objdump; do
15996 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15997set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15999$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16000if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 16001 $as_echo_n "(cached) " >&6
278a7a38
AO
16002else
16003 if test -n "$OBJDUMP_FOR_TARGET"; then
16004 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16005else
16006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16007for as_dir in $PATH
16008do
16009 IFS=$as_save_IFS
16010 test -z "$as_dir" && as_dir=.
5213506e 16011 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 16013 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 16014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
16015 break 2
16016 fi
16017done
5213506e
RW
16018 done
16019IFS=$as_save_IFS
278a7a38
AO
16020
16021fi
16022fi
16023OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16024if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16026$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 16027else
5213506e
RW
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16029$as_echo "no" >&6; }
278a7a38
AO
16030fi
16031
5213506e 16032
278a7a38
AO
16033 done
16034fi
16035
16036if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 16037 for ncn_progname in objdump; do
5213506e
RW
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16039$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16040 if test -x $with_build_time_tools/${ncn_progname}; then
16041 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
16042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16043$as_echo "yes" >&6; }
e8b05380
PB
16044 break
16045 else
5213506e
RW
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16047$as_echo "no" >&6; }
e8b05380
PB
16048 fi
16049 done
16050fi
16051
16052if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16053 for ncn_progname in objdump; do
16054 if test -n "$ncn_target_tool_prefix"; then
16055 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 16056set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
16057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16058$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16059if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 16060 $as_echo_n "(cached) " >&6
d739199a
DJ
16061else
16062 if test -n "$OBJDUMP_FOR_TARGET"; then
16063 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16064else
1c710c3c
DJ
16065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16066for as_dir in $PATH
16067do
16068 IFS=$as_save_IFS
16069 test -z "$as_dir" && as_dir=.
5213506e 16070 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16072 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 16073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16074 break 2
16075 fi
16076done
5213506e
RW
16077 done
16078IFS=$as_save_IFS
1c710c3c 16079
d739199a
DJ
16080fi
16081fi
1c710c3c 16082OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 16083if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16085$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 16086else
5213506e
RW
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16088$as_echo "no" >&6; }
d739199a
DJ
16089fi
16090
5213506e 16091
e8b05380
PB
16092 fi
16093 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
16094 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 16095set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16097$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16098if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 16099 $as_echo_n "(cached) " >&6
d739199a
DJ
16100else
16101 if test -n "$OBJDUMP_FOR_TARGET"; then
16102 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16103else
1c710c3c
DJ
16104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16105for as_dir in $PATH
16106do
16107 IFS=$as_save_IFS
16108 test -z "$as_dir" && as_dir=.
5213506e 16109 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16111 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 16112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16113 break 2
16114 fi
16115done
5213506e
RW
16116 done
16117IFS=$as_save_IFS
1c710c3c 16118
d739199a
DJ
16119fi
16120fi
1c710c3c 16121OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 16122if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16124$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 16125else
5213506e
RW
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16127$as_echo "no" >&6; }
d739199a 16128fi
1c710c3c 16129
5213506e 16130
e8b05380
PB
16131 fi
16132 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16133 done
16134fi
1c710c3c 16135
d739199a
DJ
16136if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16137 set dummy objdump
16138 if test $build = $target ; then
16139 OBJDUMP_FOR_TARGET="$2"
16140 else
16141 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16142 fi
1c00b503
PB
16143else
16144 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
16145fi
16146
d1f8db0c
PB
16147else
16148 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
16149fi
16150
16151
16152
16153
e4a9a572
IS
16154if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16155 if test -n "$with_build_time_tools"; then
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
16157$as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
16158 if test -x $with_build_time_tools/otool; then
16159 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16160 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16162$as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16163 else
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16165$as_echo "no" >&6; }
16166 fi
16167 elif test $build != $host && test $have_gcc_for_target = yes; then
16168 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16169 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16170 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16171 fi
16172fi
16173if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16174 # Extract the first word of "otool", so it can be a program name with args.
16175set dummy otool; ac_word=$2
16176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16177$as_echo_n "checking for $ac_word... " >&6; }
16178if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16179 $as_echo_n "(cached) " >&6
16180else
16181 case $OTOOL_FOR_TARGET in
16182 [\\/]* | ?:[\\/]*)
16183 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16184 ;;
16185 *)
16186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16187for as_dir in $gcc_cv_tool_dirs
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_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
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
16201 ;;
16202esac
16203fi
16204OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16205if test -n "$OTOOL_FOR_TARGET"; then
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16207$as_echo "$OTOOL_FOR_TARGET" >&6; }
16208else
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16210$as_echo "no" >&6; }
16211fi
16212
16213
16214fi
16215if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16216
16217
16218if test -n "$OTOOL_FOR_TARGET"; then
16219 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16220elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16221 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16222fi
16223
16224if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16225 for ncn_progname in otool; do
16226 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16227set dummy ${ncn_progname}; ac_word=$2
16228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16229$as_echo_n "checking for $ac_word... " >&6; }
16230if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16231 $as_echo_n "(cached) " >&6
16232else
16233 if test -n "$OTOOL_FOR_TARGET"; then
16234 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16235else
16236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16237for as_dir in $PATH
16238do
16239 IFS=$as_save_IFS
16240 test -z "$as_dir" && as_dir=.
16241 for ac_exec_ext in '' $ac_executable_extensions; do
16242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16243 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16245 break 2
16246 fi
16247done
16248 done
16249IFS=$as_save_IFS
16250
16251fi
16252fi
16253OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16254if test -n "$OTOOL_FOR_TARGET"; then
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16256$as_echo "$OTOOL_FOR_TARGET" >&6; }
16257else
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16259$as_echo "no" >&6; }
16260fi
16261
16262
16263 done
16264fi
16265
16266if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16267 for ncn_progname in otool; do
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16269$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16270 if test -x $with_build_time_tools/${ncn_progname}; then
16271 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16273$as_echo "yes" >&6; }
16274 break
16275 else
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16277$as_echo "no" >&6; }
16278 fi
16279 done
16280fi
16281
16282if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16283 for ncn_progname in otool; do
16284 if test -n "$ncn_target_tool_prefix"; then
16285 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16286set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16288$as_echo_n "checking for $ac_word... " >&6; }
16289if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16290 $as_echo_n "(cached) " >&6
16291else
16292 if test -n "$OTOOL_FOR_TARGET"; then
16293 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16294else
16295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16296for as_dir in $PATH
16297do
16298 IFS=$as_save_IFS
16299 test -z "$as_dir" && as_dir=.
16300 for ac_exec_ext in '' $ac_executable_extensions; do
16301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16302 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16304 break 2
16305 fi
16306done
16307 done
16308IFS=$as_save_IFS
16309
16310fi
16311fi
16312OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16313if test -n "$OTOOL_FOR_TARGET"; then
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16315$as_echo "$OTOOL_FOR_TARGET" >&6; }
16316else
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16318$as_echo "no" >&6; }
16319fi
16320
16321
16322 fi
16323 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16324 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16325set dummy ${ncn_progname}; ac_word=$2
16326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16327$as_echo_n "checking for $ac_word... " >&6; }
16328if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16329 $as_echo_n "(cached) " >&6
16330else
16331 if test -n "$OTOOL_FOR_TARGET"; then
16332 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16333else
16334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16335for as_dir in $PATH
16336do
16337 IFS=$as_save_IFS
16338 test -z "$as_dir" && as_dir=.
16339 for ac_exec_ext in '' $ac_executable_extensions; do
16340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16341 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16343 break 2
16344 fi
16345done
16346 done
16347IFS=$as_save_IFS
16348
16349fi
16350fi
16351OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16352if test -n "$OTOOL_FOR_TARGET"; then
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16354$as_echo "$OTOOL_FOR_TARGET" >&6; }
16355else
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16357$as_echo "no" >&6; }
16358fi
16359
16360
16361 fi
16362 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16363 done
16364fi
16365
16366if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16367 set dummy otool
16368 if test $build = $target ; then
16369 OTOOL_FOR_TARGET="$2"
16370 else
16371 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16372 fi
16373else
16374 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16375fi
16376
16377else
16378 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16379fi
16380
16381
16382
16383
e8b05380
PB
16384if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16385 if test -n "$with_build_time_tools"; then
5213506e
RW
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16387$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16388 if test -x $with_build_time_tools/ranlib; then
16389 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16390 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16392$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 16393 else
5213506e
RW
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16395$as_echo "no" >&6; }
d1f8db0c 16396 fi
e8b05380
PB
16397 elif test $build != $host && test $have_gcc_for_target = yes; then
16398 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
16399 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16400 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
16401 fi
16402fi
3e19841a 16403if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
16404 # Extract the first word of "ranlib", so it can be a program name with args.
16405set dummy ranlib; ac_word=$2
5213506e
RW
16406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16407$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16408if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
5213506e 16409 $as_echo_n "(cached) " >&6
e8b05380 16410else
1c710c3c
DJ
16411 case $RANLIB_FOR_TARGET in
16412 [\\/]* | ?:[\\/]*)
e8b05380
PB
16413 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16414 ;;
e8b05380 16415 *)
1c710c3c
DJ
16416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16417for as_dir in $gcc_cv_tool_dirs
16418do
16419 IFS=$as_save_IFS
16420 test -z "$as_dir" && as_dir=.
5213506e 16421 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16423 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 16424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16425 break 2
16426 fi
16427done
5213506e
RW
16428 done
16429IFS=$as_save_IFS
1c710c3c 16430
e8b05380
PB
16431 ;;
16432esac
16433fi
1c710c3c 16434RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 16435if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16437$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 16438else
5213506e
RW
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16440$as_echo "no" >&6; }
e8b05380
PB
16441fi
16442
5213506e 16443
e8b05380
PB
16444fi
16445if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
16446
16447
16448if test -n "$RANLIB_FOR_TARGET"; then
16449 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16450elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16451 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16452fi
16453
16454if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16455 for ncn_progname in ranlib; do
16456 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16457set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16459$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16460if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 16461 $as_echo_n "(cached) " >&6
278a7a38
AO
16462else
16463 if test -n "$RANLIB_FOR_TARGET"; then
16464 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16465else
16466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16467for as_dir in $PATH
16468do
16469 IFS=$as_save_IFS
16470 test -z "$as_dir" && as_dir=.
5213506e 16471 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 16473 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 16474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
16475 break 2
16476 fi
16477done
5213506e
RW
16478 done
16479IFS=$as_save_IFS
278a7a38
AO
16480
16481fi
16482fi
16483RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16484if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16486$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 16487else
5213506e
RW
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16489$as_echo "no" >&6; }
278a7a38
AO
16490fi
16491
5213506e 16492
278a7a38
AO
16493 done
16494fi
16495
16496if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 16497 for ncn_progname in ranlib; do
5213506e
RW
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16499$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16500 if test -x $with_build_time_tools/${ncn_progname}; then
16501 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16503$as_echo "yes" >&6; }
e8b05380
PB
16504 break
16505 else
5213506e
RW
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16507$as_echo "no" >&6; }
e8b05380
PB
16508 fi
16509 done
16510fi
16511
16512if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16513 for ncn_progname in ranlib; do
16514 if test -n "$ncn_target_tool_prefix"; then
16515 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 16516set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
16517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16518$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16519if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 16520 $as_echo_n "(cached) " >&6
ca9f4b81 16521else
4de997d1
PB
16522 if test -n "$RANLIB_FOR_TARGET"; then
16523 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 16524else
1c710c3c
DJ
16525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16526for as_dir in $PATH
16527do
16528 IFS=$as_save_IFS
16529 test -z "$as_dir" && as_dir=.
5213506e 16530 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16532 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 16533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16534 break 2
16535 fi
16536done
5213506e
RW
16537 done
16538IFS=$as_save_IFS
1c710c3c 16539
ca9f4b81
AO
16540fi
16541fi
1c710c3c 16542RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 16543if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16545$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 16546else
5213506e
RW
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16548$as_echo "no" >&6; }
ca9f4b81
AO
16549fi
16550
5213506e 16551
e8b05380
PB
16552 fi
16553 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16554 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 16555set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16557$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16558if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 16559 $as_echo_n "(cached) " >&6
ca9f4b81 16560else
2693c0b0
PB
16561 if test -n "$RANLIB_FOR_TARGET"; then
16562 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 16563else
1c710c3c
DJ
16564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16565for as_dir in $PATH
16566do
16567 IFS=$as_save_IFS
16568 test -z "$as_dir" && as_dir=.
5213506e 16569 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16571 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 16572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16573 break 2
16574 fi
16575done
5213506e
RW
16576 done
16577IFS=$as_save_IFS
1c710c3c 16578
ca9f4b81
AO
16579fi
16580fi
1c710c3c 16581RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 16582if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16584$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 16585else
5213506e
RW
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16587$as_echo "no" >&6; }
ca9f4b81 16588fi
1c710c3c 16589
5213506e 16590
e8b05380
PB
16591 fi
16592 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16593 done
16594fi
1c710c3c 16595
e8b05380
PB
16596if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16597 set dummy ranlib
16598 if test $build = $target ; then
16599 RANLIB_FOR_TARGET="$2"
16600 else
16601 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 16602 fi
1c00b503
PB
16603else
16604 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 16605fi
2693c0b0 16606
d1f8db0c
PB
16607else
16608 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
16609fi
16610
e8b05380
PB
16611
16612
16613
e7a82751
RM
16614if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16615 if test -n "$with_build_time_tools"; then
16616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16617$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16618 if test -x $with_build_time_tools/readelf; then
16619 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16620 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16622$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16623 else
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16625$as_echo "no" >&6; }
16626 fi
16627 elif test $build != $host && test $have_gcc_for_target = yes; then
16628 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16629 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16630 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16631 fi
16632fi
16633if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16634 # Extract the first word of "readelf", so it can be a program name with args.
16635set dummy readelf; ac_word=$2
16636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16637$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16638if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16639 $as_echo_n "(cached) " >&6
16640else
16641 case $READELF_FOR_TARGET in
16642 [\\/]* | ?:[\\/]*)
16643 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16644 ;;
16645 *)
16646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16647for as_dir in $gcc_cv_tool_dirs
16648do
16649 IFS=$as_save_IFS
16650 test -z "$as_dir" && as_dir=.
16651 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16653 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
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
16661 ;;
16662esac
16663fi
16664READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16665if test -n "$READELF_FOR_TARGET"; then
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16667$as_echo "$READELF_FOR_TARGET" >&6; }
16668else
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16670$as_echo "no" >&6; }
16671fi
16672
16673
16674fi
16675if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16676
16677
16678if test -n "$READELF_FOR_TARGET"; then
16679 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16680elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16681 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16682fi
16683
16684if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16685 for ncn_progname in readelf; do
16686 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16687set dummy ${ncn_progname}; ac_word=$2
16688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16689$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16690if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16691 $as_echo_n "(cached) " >&6
16692else
16693 if test -n "$READELF_FOR_TARGET"; then
16694 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16695else
16696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16697for as_dir in $PATH
16698do
16699 IFS=$as_save_IFS
16700 test -z "$as_dir" && as_dir=.
16701 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16703 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16705 break 2
16706 fi
16707done
16708 done
16709IFS=$as_save_IFS
16710
16711fi
16712fi
16713READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16714if test -n "$READELF_FOR_TARGET"; then
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16716$as_echo "$READELF_FOR_TARGET" >&6; }
16717else
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16719$as_echo "no" >&6; }
16720fi
16721
16722
16723 done
16724fi
16725
16726if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16727 for ncn_progname in readelf; do
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16729$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16730 if test -x $with_build_time_tools/${ncn_progname}; then
16731 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16733$as_echo "yes" >&6; }
16734 break
16735 else
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16737$as_echo "no" >&6; }
16738 fi
16739 done
16740fi
16741
16742if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16743 for ncn_progname in readelf; do
16744 if test -n "$ncn_target_tool_prefix"; then
16745 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16746set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16748$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16749if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16750 $as_echo_n "(cached) " >&6
16751else
16752 if test -n "$READELF_FOR_TARGET"; then
16753 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16754else
16755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16756for as_dir in $PATH
16757do
16758 IFS=$as_save_IFS
16759 test -z "$as_dir" && as_dir=.
16760 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16762 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16764 break 2
16765 fi
16766done
16767 done
16768IFS=$as_save_IFS
16769
16770fi
16771fi
16772READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16773if test -n "$READELF_FOR_TARGET"; then
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16775$as_echo "$READELF_FOR_TARGET" >&6; }
16776else
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16778$as_echo "no" >&6; }
16779fi
16780
16781
16782 fi
16783 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16784 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16785set dummy ${ncn_progname}; ac_word=$2
16786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16787$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16788if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16789 $as_echo_n "(cached) " >&6
16790else
16791 if test -n "$READELF_FOR_TARGET"; then
16792 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16793else
16794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16795for as_dir in $PATH
16796do
16797 IFS=$as_save_IFS
16798 test -z "$as_dir" && as_dir=.
16799 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16801 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16803 break 2
16804 fi
16805done
16806 done
16807IFS=$as_save_IFS
16808
16809fi
16810fi
16811READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16812if test -n "$READELF_FOR_TARGET"; then
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16814$as_echo "$READELF_FOR_TARGET" >&6; }
16815else
16816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16817$as_echo "no" >&6; }
16818fi
16819
16820
16821 fi
16822 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16823 done
16824fi
16825
16826if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16827 set dummy readelf
16828 if test $build = $target ; then
16829 READELF_FOR_TARGET="$2"
16830 else
16831 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16832 fi
16833else
16834 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16835fi
16836
16837else
16838 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16839fi
16840
16841
16842
16843
e8b05380
PB
16844if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16845 if test -n "$with_build_time_tools"; then
5213506e
RW
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16847$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16848 if test -x $with_build_time_tools/strip; then
16849 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16850 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16852$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 16853 else
5213506e
RW
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16855$as_echo "no" >&6; }
d1f8db0c 16856 fi
e8b05380
PB
16857 elif test $build != $host && test $have_gcc_for_target = yes; then
16858 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
16859 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16860 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
16861 fi
16862fi
3e19841a 16863if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
16864 # Extract the first word of "strip", so it can be a program name with args.
16865set dummy strip; ac_word=$2
5213506e
RW
16866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16867$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16868if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
5213506e 16869 $as_echo_n "(cached) " >&6
e8b05380 16870else
1c710c3c
DJ
16871 case $STRIP_FOR_TARGET in
16872 [\\/]* | ?:[\\/]*)
e8b05380
PB
16873 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16874 ;;
e8b05380 16875 *)
1c710c3c
DJ
16876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16877for as_dir in $gcc_cv_tool_dirs
16878do
16879 IFS=$as_save_IFS
16880 test -z "$as_dir" && as_dir=.
5213506e 16881 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16883 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 16884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16885 break 2
16886 fi
16887done
5213506e
RW
16888 done
16889IFS=$as_save_IFS
1c710c3c 16890
e8b05380
PB
16891 ;;
16892esac
16893fi
1c710c3c 16894STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 16895if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16897$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 16898else
5213506e
RW
16899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16900$as_echo "no" >&6; }
e8b05380
PB
16901fi
16902
5213506e 16903
e8b05380
PB
16904fi
16905if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
16906
16907
16908if test -n "$STRIP_FOR_TARGET"; then
16909 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16910elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16911 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16912fi
16913
16914if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16915 for ncn_progname in strip; do
16916 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16917set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16919$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16920if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 16921 $as_echo_n "(cached) " >&6
278a7a38
AO
16922else
16923 if test -n "$STRIP_FOR_TARGET"; then
16924 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16925else
16926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16927for as_dir in $PATH
16928do
16929 IFS=$as_save_IFS
16930 test -z "$as_dir" && as_dir=.
5213506e 16931 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 16933 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 16934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
16935 break 2
16936 fi
16937done
5213506e
RW
16938 done
16939IFS=$as_save_IFS
278a7a38
AO
16940
16941fi
16942fi
16943STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16944if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16946$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 16947else
5213506e
RW
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16949$as_echo "no" >&6; }
278a7a38
AO
16950fi
16951
5213506e 16952
278a7a38
AO
16953 done
16954fi
16955
16956if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 16957 for ncn_progname in strip; do
5213506e
RW
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16959$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16960 if test -x $with_build_time_tools/${ncn_progname}; then
16961 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16963$as_echo "yes" >&6; }
e8b05380
PB
16964 break
16965 else
5213506e
RW
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16967$as_echo "no" >&6; }
e8b05380
PB
16968 fi
16969 done
16970fi
16971
16972if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16973 for ncn_progname in strip; do
16974 if test -n "$ncn_target_tool_prefix"; then
16975 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 16976set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
16977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16978$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16979if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 16980 $as_echo_n "(cached) " >&6
af71363e
AS
16981else
16982 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
16983 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16984else
16985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16986for as_dir in $PATH
16987do
16988 IFS=$as_save_IFS
16989 test -z "$as_dir" && as_dir=.
5213506e 16990 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16992 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 16993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16994 break 2
16995 fi
16996done
5213506e
RW
16997 done
16998IFS=$as_save_IFS
1c710c3c 16999
040b1c5a
GK
17000fi
17001fi
1c710c3c 17002STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 17003if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17005$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 17006else
5213506e
RW
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17008$as_echo "no" >&6; }
040b1c5a
GK
17009fi
17010
5213506e 17011
e8b05380
PB
17012 fi
17013 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
17014 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 17015set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
17016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17017$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17018if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 17019 $as_echo_n "(cached) " >&6
040b1c5a
GK
17020else
17021 if test -n "$STRIP_FOR_TARGET"; then
17022 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17023else
1c710c3c
DJ
17024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17025for as_dir in $PATH
17026do
17027 IFS=$as_save_IFS
17028 test -z "$as_dir" && as_dir=.
5213506e 17029 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 17031 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 17032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
17033 break 2
17034 fi
17035done
5213506e
RW
17036 done
17037IFS=$as_save_IFS
1c710c3c 17038
040b1c5a
GK
17039fi
17040fi
1c710c3c 17041STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 17042if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17044$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 17045else
5213506e
RW
17046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17047$as_echo "no" >&6; }
040b1c5a 17048fi
1c710c3c 17049
5213506e 17050
e8b05380
PB
17051 fi
17052 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
17053 done
17054fi
1c710c3c 17055
040b1c5a
GK
17056if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
17057 set dummy strip
17058 if test $build = $target ; then
17059 STRIP_FOR_TARGET="$2"
17060 else
17061 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17062 fi
1c00b503
PB
17063else
17064 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
17065fi
17066
d1f8db0c
PB
17067else
17068 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
17069fi
17070
17071
17072
17073
17074if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17075 if test -n "$with_build_time_tools"; then
5213506e
RW
17076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
17077$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
17078 if test -x $with_build_time_tools/windres; then
17079 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
17080 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
17082$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 17083 else
5213506e
RW
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17085$as_echo "no" >&6; }
d1f8db0c 17086 fi
e8b05380
PB
17087 elif test $build != $host && test $have_gcc_for_target = yes; then
17088 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
17089 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
17090 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
17091 fi
17092fi
3e19841a 17093if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
17094 # Extract the first word of "windres", so it can be a program name with args.
17095set dummy windres; ac_word=$2
5213506e
RW
17096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17097$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17098if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
5213506e 17099 $as_echo_n "(cached) " >&6
e8b05380 17100else
1c710c3c
DJ
17101 case $WINDRES_FOR_TARGET in
17102 [\\/]* | ?:[\\/]*)
e8b05380
PB
17103 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17104 ;;
e8b05380 17105 *)
1c710c3c
DJ
17106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17107for as_dir in $gcc_cv_tool_dirs
17108do
17109 IFS=$as_save_IFS
17110 test -z "$as_dir" && as_dir=.
5213506e 17111 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 17113 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 17114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
17115 break 2
17116 fi
17117done
5213506e
RW
17118 done
17119IFS=$as_save_IFS
1c710c3c 17120
e8b05380
PB
17121 ;;
17122esac
17123fi
1c710c3c 17124WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 17125if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17127$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 17128else
5213506e
RW
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17130$as_echo "no" >&6; }
e8b05380
PB
17131fi
17132
5213506e 17133
e8b05380
PB
17134fi
17135if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
17136
17137
17138if test -n "$WINDRES_FOR_TARGET"; then
17139 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17140elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17141 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17142fi
17143
17144if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17145 for ncn_progname in windres; do
17146 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17147set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
17148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17149$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17150if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 17151 $as_echo_n "(cached) " >&6
278a7a38
AO
17152else
17153 if test -n "$WINDRES_FOR_TARGET"; then
17154 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17155else
17156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17157for as_dir in $PATH
17158do
17159 IFS=$as_save_IFS
17160 test -z "$as_dir" && as_dir=.
5213506e 17161 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 17163 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 17164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
17165 break 2
17166 fi
17167done
5213506e
RW
17168 done
17169IFS=$as_save_IFS
278a7a38
AO
17170
17171fi
17172fi
17173WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17174if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17176$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 17177else
5213506e
RW
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17179$as_echo "no" >&6; }
278a7a38
AO
17180fi
17181
5213506e 17182
278a7a38
AO
17183 done
17184fi
17185
17186if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 17187 for ncn_progname in windres; do
5213506e
RW
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17189$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
17190 if test -x $with_build_time_tools/${ncn_progname}; then
17191 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17193$as_echo "yes" >&6; }
e8b05380
PB
17194 break
17195 else
5213506e
RW
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17197$as_echo "no" >&6; }
e8b05380
PB
17198 fi
17199 done
17200fi
17201
17202if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17203 for ncn_progname in windres; do
17204 if test -n "$ncn_target_tool_prefix"; then
17205 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 17206set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
17207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17208$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17209if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 17210 $as_echo_n "(cached) " >&6
ca9f4b81 17211else
4de997d1
PB
17212 if test -n "$WINDRES_FOR_TARGET"; then
17213 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 17214else
1c710c3c
DJ
17215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17216for as_dir in $PATH
17217do
17218 IFS=$as_save_IFS
17219 test -z "$as_dir" && as_dir=.
5213506e 17220 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 17222 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 17223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
17224 break 2
17225 fi
17226done
5213506e
RW
17227 done
17228IFS=$as_save_IFS
1c710c3c 17229
ca9f4b81
AO
17230fi
17231fi
1c710c3c 17232WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 17233if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17235$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 17236else
5213506e
RW
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17238$as_echo "no" >&6; }
ca9f4b81
AO
17239fi
17240
5213506e 17241
e8b05380
PB
17242 fi
17243 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17244 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 17245set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
17246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17247$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17248if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 17249 $as_echo_n "(cached) " >&6
ca9f4b81 17250else
2693c0b0
PB
17251 if test -n "$WINDRES_FOR_TARGET"; then
17252 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 17253else
1c710c3c
DJ
17254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17255for as_dir in $PATH
17256do
17257 IFS=$as_save_IFS
17258 test -z "$as_dir" && as_dir=.
5213506e 17259 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 17261 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 17262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
17263 break 2
17264 fi
17265done
5213506e
RW
17266 done
17267IFS=$as_save_IFS
1c710c3c 17268
ca9f4b81
AO
17269fi
17270fi
1c710c3c 17271WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 17272if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17274$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 17275else
5213506e
RW
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17277$as_echo "no" >&6; }
ca9f4b81 17278fi
1c710c3c 17279
5213506e 17280
e8b05380
PB
17281 fi
17282 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17283 done
17284fi
1c710c3c 17285
2693c0b0
PB
17286if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17287 set dummy windres
17288 if test $build = $target ; then
17289 WINDRES_FOR_TARGET="$2"
ca9f4b81 17290 else
2693c0b0 17291 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 17292 fi
1c00b503
PB
17293else
17294 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
17295fi
17296
d1f8db0c
PB
17297else
17298 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
17299fi
17300
4977bab6 17301
901119ae
KT
17302
17303
17304if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17305 if test -n "$with_build_time_tools"; then
5213506e
RW
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17307$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
17308 if test -x $with_build_time_tools/windmc; then
17309 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17310 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17312$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 17313 else
5213506e
RW
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17315$as_echo "no" >&6; }
901119ae
KT
17316 fi
17317 elif test $build != $host && test $have_gcc_for_target = yes; then
17318 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
17319 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17320 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
17321 fi
17322fi
17323if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17324 # Extract the first word of "windmc", so it can be a program name with args.
17325set dummy windmc; ac_word=$2
5213506e
RW
17326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17327$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17328if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
5213506e 17329 $as_echo_n "(cached) " >&6
901119ae
KT
17330else
17331 case $WINDMC_FOR_TARGET in
17332 [\\/]* | ?:[\\/]*)
17333 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17334 ;;
17335 *)
17336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17337for as_dir in $gcc_cv_tool_dirs
17338do
17339 IFS=$as_save_IFS
17340 test -z "$as_dir" && as_dir=.
5213506e 17341 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17343 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 17344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17345 break 2
17346 fi
17347done
5213506e
RW
17348 done
17349IFS=$as_save_IFS
901119ae
KT
17350
17351 ;;
17352esac
17353fi
17354WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 17355if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17357$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17358else
5213506e
RW
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17360$as_echo "no" >&6; }
901119ae
KT
17361fi
17362
5213506e 17363
901119ae
KT
17364fi
17365if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17366
17367
17368if test -n "$WINDMC_FOR_TARGET"; then
17369 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17370elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17371 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17372fi
17373
17374if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17375 for ncn_progname in windmc; do
17376 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17377set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
17378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17379$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17380if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 17381 $as_echo_n "(cached) " >&6
901119ae
KT
17382else
17383 if test -n "$WINDMC_FOR_TARGET"; then
17384 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17385else
17386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17387for as_dir in $PATH
17388do
17389 IFS=$as_save_IFS
17390 test -z "$as_dir" && as_dir=.
5213506e 17391 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17393 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 17394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17395 break 2
17396 fi
17397done
5213506e
RW
17398 done
17399IFS=$as_save_IFS
901119ae
KT
17400
17401fi
17402fi
17403WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17404if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17406$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17407else
5213506e
RW
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17409$as_echo "no" >&6; }
901119ae
KT
17410fi
17411
5213506e 17412
901119ae
KT
17413 done
17414fi
17415
17416if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17417 for ncn_progname in windmc; do
5213506e
RW
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17419$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
17420 if test -x $with_build_time_tools/${ncn_progname}; then
17421 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17423$as_echo "yes" >&6; }
901119ae
KT
17424 break
17425 else
5213506e
RW
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17427$as_echo "no" >&6; }
901119ae
KT
17428 fi
17429 done
17430fi
17431
17432if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17433 for ncn_progname in windmc; do
17434 if test -n "$ncn_target_tool_prefix"; then
17435 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17436set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
17437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17438$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17439if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 17440 $as_echo_n "(cached) " >&6
901119ae
KT
17441else
17442 if test -n "$WINDMC_FOR_TARGET"; then
17443 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17444else
17445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17446for as_dir in $PATH
17447do
17448 IFS=$as_save_IFS
17449 test -z "$as_dir" && as_dir=.
5213506e 17450 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17452 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 17453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17454 break 2
17455 fi
17456done
5213506e
RW
17457 done
17458IFS=$as_save_IFS
901119ae
KT
17459
17460fi
17461fi
17462WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17463if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17465$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17466else
5213506e
RW
17467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17468$as_echo "no" >&6; }
901119ae
KT
17469fi
17470
5213506e 17471
901119ae
KT
17472 fi
17473 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17474 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17475set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
17476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17477$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17478if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 17479 $as_echo_n "(cached) " >&6
901119ae
KT
17480else
17481 if test -n "$WINDMC_FOR_TARGET"; then
17482 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17483else
17484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17485for as_dir in $PATH
17486do
17487 IFS=$as_save_IFS
17488 test -z "$as_dir" && as_dir=.
5213506e 17489 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17491 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 17492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17493 break 2
17494 fi
17495done
5213506e
RW
17496 done
17497IFS=$as_save_IFS
901119ae
KT
17498
17499fi
17500fi
17501WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17502if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17504$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17505else
5213506e
RW
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17507$as_echo "no" >&6; }
901119ae
KT
17508fi
17509
5213506e 17510
901119ae
KT
17511 fi
17512 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17513 done
17514fi
17515
17516if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17517 set dummy windmc
17518 if test $build = $target ; then
17519 WINDMC_FOR_TARGET="$2"
17520 else
17521 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17522 fi
1c00b503
PB
17523else
17524 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
17525fi
17526
17527else
17528 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17529fi
17530
17531
2abefe3d
PB
17532RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17533
5213506e
RW
17534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17535$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 17536if test "x${build}" != "x${host}" ; then
e8b05380
PB
17537 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17538 # We already found the complete path
172e41aa 17539 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17541$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17542 else
17543 # Canadian cross, just use what we found
5213506e
RW
17544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17545$as_echo "pre-installed" >&6; }
e8b05380 17546 fi
2abefe3d
PB
17547else
17548 ok=yes
17549 case " ${configdirs} " in
17550 *" binutils "*) ;;
17551 *) ok=no ;;
17552 esac
1c710c3c 17553
2abefe3d
PB
17554 if test $ok = yes; then
17555 # An in-tree tool is available and we can use it
17556 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17558$as_echo "just compiled" >&6; }
e8b05380
PB
17559 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17560 # We already found the complete path
172e41aa 17561 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17563$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17564 elif test "x$target" = "x$host"; then
17565 # We can use an host tool
17566 AR_FOR_TARGET='$(AR)'
5213506e
RW
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17568$as_echo "host tool" >&6; }
2abefe3d
PB
17569 else
17570 # We need a cross tool
5213506e
RW
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17572$as_echo "pre-installed" >&6; }
2abefe3d
PB
17573 fi
17574fi
0b0dc272 17575
5213506e
RW
17576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17577$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 17578if test "x${build}" != "x${host}" ; then
e8b05380
PB
17579 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17580 # We already found the complete path
172e41aa 17581 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17583$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17584 else
17585 # Canadian cross, just use what we found
5213506e
RW
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17587$as_echo "pre-installed" >&6; }
e8b05380 17588 fi
2abefe3d
PB
17589else
17590 ok=yes
17591 case " ${configdirs} " in
17592 *" gas "*) ;;
17593 *) ok=no ;;
17594 esac
1c710c3c 17595
2abefe3d
PB
17596 if test $ok = yes; then
17597 # An in-tree tool is available and we can use it
17598 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17600$as_echo "just compiled" >&6; }
e8b05380
PB
17601 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17602 # We already found the complete path
172e41aa 17603 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17605$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17606 elif test "x$target" = "x$host"; then
17607 # We can use an host tool
17608 AS_FOR_TARGET='$(AS)'
5213506e
RW
17609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17610$as_echo "host tool" >&6; }
2abefe3d
PB
17611 else
17612 # We need a cross tool
5213506e
RW
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17614$as_echo "pre-installed" >&6; }
2abefe3d
PB
17615 fi
17616fi
0b0dc272 17617
5213506e
RW
17618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17619$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 17620if test "x${build}" != "x${host}" ; then
e8b05380
PB
17621 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17622 # We already found the complete path
172e41aa 17623 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17625$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17626 else
17627 # Canadian cross, just use what we found
5213506e
RW
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17629$as_echo "pre-installed" >&6; }
e8b05380 17630 fi
2abefe3d
PB
17631else
17632 ok=yes
17633 case " ${configdirs} " in
17634 *" gcc "*) ;;
17635 *) ok=no ;;
17636 esac
1c710c3c 17637
2abefe3d
PB
17638 if test $ok = yes; then
17639 # An in-tree tool is available and we can use it
17640 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17642$as_echo "just compiled" >&6; }
e8b05380
PB
17643 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17644 # We already found the complete path
172e41aa 17645 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17647$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17648 elif test "x$target" = "x$host"; then
17649 # We can use an host tool
17650 CC_FOR_TARGET='$(CC)'
5213506e
RW
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17652$as_echo "host tool" >&6; }
2abefe3d
PB
17653 else
17654 # We need a cross tool
5213506e
RW
17655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17656$as_echo "pre-installed" >&6; }
2abefe3d
PB
17657 fi
17658fi
0b0dc272 17659
5213506e
RW
17660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17661$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 17662if test "x${build}" != "x${host}" ; then
e8b05380
PB
17663 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17664 # We already found the complete path
172e41aa 17665 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
17666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17667$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17668 else
17669 # Canadian cross, just use what we found
5213506e
RW
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17671$as_echo "pre-installed" >&6; }
e8b05380 17672 fi
2abefe3d
PB
17673else
17674 ok=yes
17675 case " ${configdirs} " in
17676 *" gcc "*) ;;
17677 *) ok=no ;;
17678 esac
17679 case ,${enable_languages}, in
17680 *,c++,*) ;;
17681 *) ok=no ;;
17682 esac
17683 if test $ok = yes; then
17684 # An in-tree tool is available and we can use it
2077db1b 17685 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
5213506e
RW
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17687$as_echo "just compiled" >&6; }
e8b05380
PB
17688 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17689 # We already found the complete path
172e41aa 17690 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17692$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17693 elif test "x$target" = "x$host"; then
17694 # We can use an host tool
17695 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17697$as_echo "host tool" >&6; }
2abefe3d
PB
17698 else
17699 # We need a cross tool
5213506e
RW
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17701$as_echo "pre-installed" >&6; }
2abefe3d
PB
17702 fi
17703fi
0b0dc272 17704
5213506e
RW
17705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17706$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 17707if test "x${build}" != "x${host}" ; then
e8b05380
PB
17708 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17709 # We already found the complete path
172e41aa 17710 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17712$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17713 else
17714 # Canadian cross, just use what we found
5213506e
RW
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17716$as_echo "pre-installed" >&6; }
e8b05380 17717 fi
2abefe3d
PB
17718else
17719 ok=yes
17720 case " ${configdirs} " in
17721 *" gcc "*) ;;
17722 *) ok=no ;;
17723 esac
17724 case ,${enable_languages}, in
17725 *,c++,*) ;;
17726 *) ok=no ;;
17727 esac
17728 if test $ok = yes; then
17729 # An in-tree tool is available and we can use it
2077db1b 17730 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
5213506e
RW
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17732$as_echo "just compiled" >&6; }
e8b05380
PB
17733 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17734 # We already found the complete path
172e41aa 17735 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17737$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17738 elif test "x$target" = "x$host"; then
17739 # We can use an host tool
17740 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17742$as_echo "host tool" >&6; }
2abefe3d
PB
17743 else
17744 # We need a cross tool
5213506e
RW
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17746$as_echo "pre-installed" >&6; }
2abefe3d
PB
17747 fi
17748fi
0b0dc272 17749
5213506e
RW
17750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17751$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 17752if test "x${build}" != "x${host}" ; then
e8b05380
PB
17753 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17754 # We already found the complete path
172e41aa 17755 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17757$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17758 else
17759 # Canadian cross, just use what we found
5213506e
RW
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17761$as_echo "pre-installed" >&6; }
e8b05380 17762 fi
2abefe3d
PB
17763else
17764 ok=yes
17765 case " ${configdirs} " in
17766 *" binutils "*) ;;
17767 *) ok=no ;;
17768 esac
1c710c3c 17769
2abefe3d
PB
17770 if test $ok = yes; then
17771 # An in-tree tool is available and we can use it
17772 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
17773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17774$as_echo "just compiled" >&6; }
e8b05380
PB
17775 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17776 # We already found the complete path
172e41aa 17777 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17779$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17780 elif test "x$target" = "x$host"; then
17781 # We can use an host tool
17782 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17784$as_echo "host tool" >&6; }
2abefe3d
PB
17785 else
17786 # We need a cross tool
5213506e
RW
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17788$as_echo "pre-installed" >&6; }
2abefe3d
PB
17789 fi
17790fi
0b0dc272 17791
3b5e8ee4
IS
17792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17793$as_echo_n "checking where to find the target dsymutil... " >&6; }
17794if test "x${build}" != "x${host}" ; then
17795 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17796 # We already found the complete path
17797 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17799$as_echo "pre-installed in $ac_dir" >&6; }
17800 else
17801 # Canadian cross, just use what we found
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17803$as_echo "pre-installed" >&6; }
17804 fi
17805else
17806 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17807 # We already found the complete path
17808 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17810$as_echo "pre-installed in $ac_dir" >&6; }
17811 elif test "x$target" = "x$host"; then
17812 # We can use an host tool
17813 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17815$as_echo "host tool" >&6; }
17816 else
17817 # We need a cross tool
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17819$as_echo "pre-installed" >&6; }
17820 fi
17821fi
17822
5213506e
RW
17823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17824$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 17825if test "x${build}" != "x${host}" ; then
e8b05380
PB
17826 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17827 # We already found the complete path
172e41aa 17828 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17830$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17831 else
17832 # Canadian cross, just use what we found
5213506e
RW
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17834$as_echo "pre-installed" >&6; }
e8b05380 17835 fi
2abefe3d
PB
17836else
17837 ok=yes
17838 case " ${configdirs} " in
17839 *" gcc "*) ;;
17840 *) ok=no ;;
17841 esac
1c710c3c 17842
2abefe3d
PB
17843 if test $ok = yes; then
17844 # An in-tree tool is available and we can use it
17845 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17847$as_echo "just compiled" >&6; }
e8b05380
PB
17848 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17849 # We already found the complete path
172e41aa 17850 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17852$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17853 elif test "x$target" = "x$host"; then
17854 # We can use an host tool
17855 GCC_FOR_TARGET='$()'
5213506e
RW
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17857$as_echo "host tool" >&6; }
2abefe3d
PB
17858 else
17859 # We need a cross tool
5213506e
RW
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17861$as_echo "pre-installed" >&6; }
2abefe3d
PB
17862 fi
17863fi
0b0dc272 17864
5213506e
RW
17865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17866$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 17867if test "x${build}" != "x${host}" ; then
e8b05380
PB
17868 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17869 # We already found the complete path
172e41aa 17870 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17872$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17873 else
17874 # Canadian cross, just use what we found
5213506e
RW
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17876$as_echo "pre-installed" >&6; }
e8b05380 17877 fi
2abefe3d
PB
17878else
17879 ok=yes
17880 case " ${configdirs} " in
17881 *" gcc "*) ;;
17882 *) ok=no ;;
17883 esac
17884 case ,${enable_languages}, in
17885 *,fortran,*) ;;
17886 *) ok=no ;;
17887 esac
17888 if test $ok = yes; then
17889 # An in-tree tool is available and we can use it
17890 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17892$as_echo "just compiled" >&6; }
e8b05380
PB
17893 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17894 # We already found the complete path
172e41aa 17895 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17897$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17898 elif test "x$target" = "x$host"; then
17899 # We can use an host tool
17900 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17902$as_echo "host tool" >&6; }
2abefe3d
PB
17903 else
17904 # We need a cross tool
5213506e
RW
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17906$as_echo "pre-installed" >&6; }
2abefe3d
PB
17907 fi
17908fi
0b0dc272 17909
632e2a07
ILT
17910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17911$as_echo_n "checking where to find the target gccgo... " >&6; }
17912if test "x${build}" != "x${host}" ; then
17913 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17914 # We already found the complete path
17915 ac_dir=`dirname $GOC_FOR_TARGET`
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17917$as_echo "pre-installed in $ac_dir" >&6; }
17918 else
17919 # Canadian cross, just use what we found
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17921$as_echo "pre-installed" >&6; }
17922 fi
17923else
17924 ok=yes
17925 case " ${configdirs} " in
17926 *" gcc "*) ;;
17927 *) ok=no ;;
17928 esac
17929 case ,${enable_languages}, in
17930 *,go,*) ;;
17931 *) ok=no ;;
17932 esac
17933 if test $ok = yes; then
17934 # An in-tree tool is available and we can use it
17935 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17937$as_echo "just compiled" >&6; }
17938 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17939 # We already found the complete path
17940 ac_dir=`dirname $GOC_FOR_TARGET`
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17942$as_echo "pre-installed in $ac_dir" >&6; }
17943 elif test "x$target" = "x$host"; then
17944 # We can use an host tool
17945 GOC_FOR_TARGET='$(GOC)'
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17947$as_echo "host tool" >&6; }
17948 else
17949 # We need a cross tool
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17951$as_echo "pre-installed" >&6; }
17952 fi
17953fi
17954
b4c522fa
IB
17955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17956$as_echo_n "checking where to find the target gdc... " >&6; }
17957if test "x${build}" != "x${host}" ; then
17958 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17959 # We already found the complete path
17960 ac_dir=`dirname $GDC_FOR_TARGET`
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17962$as_echo "pre-installed in $ac_dir" >&6; }
17963 else
17964 # Canadian cross, just use what we found
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17966$as_echo "pre-installed" >&6; }
17967 fi
17968else
17969 ok=yes
17970 case " ${configdirs} " in
17971 *" gcc "*) ;;
17972 *) ok=no ;;
17973 esac
17974 case ,${enable_languages}, in
17975 *,d,*) ;;
17976 *) ok=no ;;
17977 esac
17978 if test $ok = yes; then
17979 # An in-tree tool is available and we can use it
17980 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17982$as_echo "just compiled" >&6; }
17983 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17984 # We already found the complete path
17985 ac_dir=`dirname $GDC_FOR_TARGET`
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17987$as_echo "pre-installed in $ac_dir" >&6; }
17988 elif test "x$target" = "x$host"; then
17989 # We can use an host tool
17990 GDC_FOR_TARGET='$(GDC)'
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17992$as_echo "host tool" >&6; }
17993 else
17994 # We need a cross tool
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17996$as_echo "pre-installed" >&6; }
17997 fi
17998fi
17999
1eee94d3
GM
18000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gm2" >&5
18001$as_echo_n "checking where to find the target gm2... " >&6; }
18002if test "x${build}" != "x${host}" ; then
18003 if expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
18004 # We already found the complete path
18005 ac_dir=`dirname $GM2_FOR_TARGET`
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18007$as_echo "pre-installed in $ac_dir" >&6; }
18008 else
18009 # Canadian cross, just use what we found
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18011$as_echo "pre-installed" >&6; }
18012 fi
18013else
18014 ok=yes
18015 case " ${configdirs} " in
18016 *" gcc "*) ;;
18017 *) ok=no ;;
18018 esac
18019 case ,${enable_languages}, in
18020 *,m2,*) ;;
18021 *) ok=no ;;
18022 esac
18023 if test $ok = yes; then
18024 # An in-tree tool is available and we can use it
18025 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18027$as_echo "just compiled" >&6; }
18028 elif expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
18029 # We already found the complete path
18030 ac_dir=`dirname $GM2_FOR_TARGET`
18031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18032$as_echo "pre-installed in $ac_dir" >&6; }
18033 elif test "x$target" = "x$host"; then
18034 # We can use an host tool
18035 GM2_FOR_TARGET='$(GM2)'
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18037$as_echo "host tool" >&6; }
18038 else
18039 # We need a cross tool
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18041$as_echo "pre-installed" >&6; }
18042 fi
18043fi
18044
5213506e
RW
18045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
18046$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 18047if test "x${build}" != "x${host}" ; then
e8b05380
PB
18048 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18049 # We already found the complete path
172e41aa 18050 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18052$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18053 else
18054 # Canadian cross, just use what we found
5213506e
RW
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18056$as_echo "pre-installed" >&6; }
e8b05380 18057 fi
2abefe3d
PB
18058else
18059 ok=yes
18060 case " ${configdirs} " in
18061 *" ld "*) ;;
18062 *) ok=no ;;
18063 esac
1c710c3c 18064
2abefe3d
PB
18065 if test $ok = yes; then
18066 # An in-tree tool is available and we can use it
18067 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18069$as_echo "just compiled" >&6; }
e8b05380
PB
18070 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18071 # We already found the complete path
172e41aa 18072 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18074$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18075 elif test "x$target" = "x$host"; then
18076 # We can use an host tool
18077 LD_FOR_TARGET='$(LD)'
5213506e
RW
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18079$as_echo "host tool" >&6; }
2abefe3d
PB
18080 else
18081 # We need a cross tool
5213506e
RW
18082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18083$as_echo "pre-installed" >&6; }
2abefe3d
PB
18084 fi
18085fi
0b0dc272 18086
5213506e
RW
18087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
18088$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 18089if test "x${build}" != "x${host}" ; then
e8b05380
PB
18090 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18091 # We already found the complete path
172e41aa 18092 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18094$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18095 else
18096 # Canadian cross, just use what we found
5213506e
RW
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18098$as_echo "pre-installed" >&6; }
e8b05380 18099 fi
2abefe3d 18100else
e8b05380
PB
18101 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18102 # We already found the complete path
172e41aa 18103 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18105$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 18106 elif test "x$target" = "x$host"; then
2abefe3d
PB
18107 # We can use an host tool
18108 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18110$as_echo "host tool" >&6; }
2abefe3d
PB
18111 else
18112 # We need a cross tool
5213506e
RW
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18114$as_echo "pre-installed" >&6; }
2abefe3d
PB
18115 fi
18116fi
0b0dc272 18117
5213506e
RW
18118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
18119$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 18120if test "x${build}" != "x${host}" ; then
e8b05380
PB
18121 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18122 # We already found the complete path
172e41aa 18123 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18125$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18126 else
18127 # Canadian cross, just use what we found
5213506e
RW
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18129$as_echo "pre-installed" >&6; }
e8b05380 18130 fi
2abefe3d
PB
18131else
18132 ok=yes
18133 case " ${configdirs} " in
18134 *" binutils "*) ;;
18135 *) ok=no ;;
18136 esac
1c710c3c 18137
2abefe3d
PB
18138 if test $ok = yes; then
18139 # An in-tree tool is available and we can use it
18140 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18142$as_echo "just compiled" >&6; }
e8b05380
PB
18143 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18144 # We already found the complete path
172e41aa 18145 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
18146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18147$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18148 elif test "x$target" = "x$host"; then
18149 # We can use an host tool
18150 NM_FOR_TARGET='$(NM)'
5213506e
RW
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18152$as_echo "host tool" >&6; }
2abefe3d
PB
18153 else
18154 # We need a cross tool
5213506e
RW
18155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18156$as_echo "pre-installed" >&6; }
2abefe3d
PB
18157 fi
18158fi
0b0dc272 18159
9bccfdf5
AP
18160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
18161$as_echo_n "checking where to find the target objcopy... " >&6; }
18162if test "x${build}" != "x${host}" ; then
18163 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18164 # We already found the complete path
18165 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18167$as_echo "pre-installed in $ac_dir" >&6; }
18168 else
18169 # Canadian cross, just use what we found
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18171$as_echo "pre-installed" >&6; }
18172 fi
18173else
18174 ok=yes
18175 case " ${configdirs} " in
18176 *" binutils "*) ;;
18177 *) ok=no ;;
18178 esac
18179
18180 if test $ok = yes; then
18181 # An in-tree tool is available and we can use it
18182 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18184$as_echo "just compiled" >&6; }
18185 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18186 # We already found the complete path
18187 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18189$as_echo "pre-installed in $ac_dir" >&6; }
18190 elif test "x$target" = "x$host"; then
18191 # We can use an host tool
ec8fd1c0 18192 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
9bccfdf5
AP
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18194$as_echo "host tool" >&6; }
18195 else
18196 # We need a cross tool
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18198$as_echo "pre-installed" >&6; }
18199 fi
18200fi
18201
5213506e
RW
18202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
18203$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 18204if test "x${build}" != "x${host}" ; then
e8b05380
PB
18205 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18206 # We already found the complete path
172e41aa 18207 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18209$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18210 else
18211 # Canadian cross, just use what we found
5213506e
RW
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18213$as_echo "pre-installed" >&6; }
e8b05380 18214 fi
2abefe3d
PB
18215else
18216 ok=yes
18217 case " ${configdirs} " in
18218 *" binutils "*) ;;
18219 *) ok=no ;;
18220 esac
1c710c3c 18221
2abefe3d
PB
18222 if test $ok = yes; then
18223 # An in-tree tool is available and we can use it
18224 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18226$as_echo "just compiled" >&6; }
e8b05380
PB
18227 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18228 # We already found the complete path
172e41aa 18229 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18231$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18232 elif test "x$target" = "x$host"; then
18233 # We can use an host tool
18234 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
18235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18236$as_echo "host tool" >&6; }
2abefe3d
PB
18237 else
18238 # We need a cross tool
5213506e
RW
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18240$as_echo "pre-installed" >&6; }
2abefe3d
PB
18241 fi
18242fi
0b0dc272 18243
e4a9a572
IS
18244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
18245$as_echo_n "checking where to find the target otool... " >&6; }
18246if test "x${build}" != "x${host}" ; then
18247 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18248 # We already found the complete path
18249 ac_dir=`dirname $OTOOL_FOR_TARGET`
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18251$as_echo "pre-installed in $ac_dir" >&6; }
18252 else
18253 # Canadian cross, just use what we found
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18255$as_echo "pre-installed" >&6; }
18256 fi
18257else
18258 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18259 # We already found the complete path
18260 ac_dir=`dirname $OTOOL_FOR_TARGET`
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18262$as_echo "pre-installed in $ac_dir" >&6; }
18263 elif test "x$target" = "x$host"; then
18264 # We can use an host tool
18265 OTOOL_FOR_TARGET='$(OTOOL)'
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18267$as_echo "host tool" >&6; }
18268 else
18269 # We need a cross tool
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18271$as_echo "pre-installed" >&6; }
18272 fi
18273fi
18274
5213506e
RW
18275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
18276$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 18277if test "x${build}" != "x${host}" ; then
e8b05380
PB
18278 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18279 # We already found the complete path
172e41aa 18280 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18282$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18283 else
18284 # Canadian cross, just use what we found
5213506e
RW
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18286$as_echo "pre-installed" >&6; }
e8b05380 18287 fi
2abefe3d
PB
18288else
18289 ok=yes
18290 case " ${configdirs} " in
18291 *" binutils "*) ;;
18292 *) ok=no ;;
18293 esac
1c710c3c 18294
2abefe3d
PB
18295 if test $ok = yes; then
18296 # An in-tree tool is available and we can use it
18297 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18299$as_echo "just compiled" >&6; }
e8b05380
PB
18300 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18301 # We already found the complete path
172e41aa 18302 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18304$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18305 elif test "x$target" = "x$host"; then
18306 # We can use an host tool
18307 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18309$as_echo "host tool" >&6; }
2abefe3d
PB
18310 else
18311 # We need a cross tool
5213506e
RW
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18313$as_echo "pre-installed" >&6; }
2abefe3d
PB
18314 fi
18315fi
0b0dc272 18316
e7a82751
RM
18317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18318$as_echo_n "checking where to find the target readelf... " >&6; }
18319if test "x${build}" != "x${host}" ; then
18320 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18321 # We already found the complete path
18322 ac_dir=`dirname $READELF_FOR_TARGET`
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18324$as_echo "pre-installed in $ac_dir" >&6; }
18325 else
18326 # Canadian cross, just use what we found
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18328$as_echo "pre-installed" >&6; }
18329 fi
18330else
18331 ok=yes
18332 case " ${configdirs} " in
18333 *" binutils "*) ;;
18334 *) ok=no ;;
18335 esac
18336
18337 if test $ok = yes; then
18338 # An in-tree tool is available and we can use it
18339 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18341$as_echo "just compiled" >&6; }
18342 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18343 # We already found the complete path
18344 ac_dir=`dirname $READELF_FOR_TARGET`
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18346$as_echo "pre-installed in $ac_dir" >&6; }
18347 elif test "x$target" = "x$host"; then
18348 # We can use an host tool
18349 READELF_FOR_TARGET='$(READELF)'
18350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18351$as_echo "host tool" >&6; }
18352 else
18353 # We need a cross tool
18354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18355$as_echo "pre-installed" >&6; }
18356 fi
18357fi
18358
5213506e
RW
18359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18360$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 18361if test "x${build}" != "x${host}" ; then
e8b05380
PB
18362 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18363 # We already found the complete path
172e41aa 18364 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18366$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18367 else
18368 # Canadian cross, just use what we found
5213506e
RW
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18370$as_echo "pre-installed" >&6; }
e8b05380 18371 fi
2abefe3d
PB
18372else
18373 ok=yes
18374 case " ${configdirs} " in
18375 *" binutils "*) ;;
18376 *) ok=no ;;
18377 esac
1c710c3c 18378
2abefe3d
PB
18379 if test $ok = yes; then
18380 # An in-tree tool is available and we can use it
455c8f48 18381 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18383$as_echo "just compiled" >&6; }
e8b05380
PB
18384 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18385 # We already found the complete path
172e41aa 18386 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18388$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18389 elif test "x$target" = "x$host"; then
18390 # We can use an host tool
18391 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18393$as_echo "host tool" >&6; }
2abefe3d
PB
18394 else
18395 # We need a cross tool
5213506e
RW
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18397$as_echo "pre-installed" >&6; }
2abefe3d
PB
18398 fi
18399fi
0b0dc272 18400
5213506e
RW
18401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18402$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 18403if test "x${build}" != "x${host}" ; then
e8b05380
PB
18404 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18405 # We already found the complete path
172e41aa 18406 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18408$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18409 else
18410 # Canadian cross, just use what we found
5213506e
RW
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18412$as_echo "pre-installed" >&6; }
e8b05380 18413 fi
2abefe3d
PB
18414else
18415 ok=yes
18416 case " ${configdirs} " in
18417 *" binutils "*) ;;
18418 *) ok=no ;;
18419 esac
1c710c3c 18420
2abefe3d
PB
18421 if test $ok = yes; then
18422 # An in-tree tool is available and we can use it
18423 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18425$as_echo "just compiled" >&6; }
e8b05380
PB
18426 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18427 # We already found the complete path
172e41aa 18428 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
18429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18430$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18431 elif test "x$target" = "x$host"; then
18432 # We can use an host tool
18433 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18435$as_echo "host tool" >&6; }
2abefe3d
PB
18436 else
18437 # We need a cross tool
5213506e
RW
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18439$as_echo "pre-installed" >&6; }
2abefe3d 18440 fi
671aa708 18441fi
be912515 18442
5213506e
RW
18443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18444$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
18445if test "x${build}" != "x${host}" ; then
18446 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18447 # We already found the complete path
18448 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
18449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18450$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
18451 else
18452 # Canadian cross, just use what we found
5213506e
RW
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18454$as_echo "pre-installed" >&6; }
901119ae
KT
18455 fi
18456else
18457 ok=yes
18458 case " ${configdirs} " in
18459 *" binutils "*) ;;
18460 *) ok=no ;;
18461 esac
18462
18463 if test $ok = yes; then
18464 # An in-tree tool is available and we can use it
18465 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18467$as_echo "just compiled" >&6; }
901119ae
KT
18468 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18469 # We already found the complete path
18470 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
18471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18472$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
18473 elif test "x$target" = "x$host"; then
18474 # We can use an host tool
18475 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18477$as_echo "host tool" >&6; }
901119ae
KT
18478 else
18479 # We need a cross tool
5213506e
RW
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18481$as_echo "pre-installed" >&6; }
901119ae
KT
18482 fi
18483fi
18484
be912515
NN
18485
18486
2abefe3d 18487
0b0dc272 18488
671aa708
NN
18489# Certain tools may need extra flags.
18490AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18491RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18492NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18493
2abefe3d
PB
18494# When building target libraries, except in a Canadian cross, we use
18495# the same toolchain as the compiler we just built.
18496COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18497COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18498COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18499if test $host = $build; then
18500 case " $configdirs " in
18501 *" gcc "*)
18502 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18503 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18504 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18505 ;;
18506 esac
18507fi
18508
18509
18510
18511
18512
5213506e
RW
18513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18514$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18515# Check whether --enable-maintainer-mode was given.
18516if test "${enable_maintainer_mode+set}" = set; then :
18517 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
18518else
18519 USE_MAINTAINER_MODE=no
5213506e
RW
18520fi
18521
18522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18523$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
18524
18525
18526if test "$USE_MAINTAINER_MODE" = yes; then
18527 MAINTAINER_MODE_TRUE=
18528 MAINTAINER_MODE_FALSE='#'
18529else
18530 MAINTAINER_MODE_TRUE='#'
18531 MAINTAINER_MODE_FALSE=
1c710c3c 18532fi
ee03dc5e
AO
18533MAINT=$MAINTAINER_MODE_TRUE
18534
2805b53a
NN
18535# ---------------------
18536# GCC bootstrap support
18537# ---------------------
18538
18539# Stage specific cflags for build.
18540stage1_cflags="-g"
18541case $build in
18542 vax-*-*)
18543 case ${GCC} in
18544 yes) stage1_cflags="-g -Wa,-J" ;;
18545 *) stage1_cflags="-g -J" ;;
18546 esac ;;
2805b53a
NN
18547esac
18548
0b50988a 18549
2805b53a 18550
8efea775 18551# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
18552# Check whether --enable-stage1-checking was given.
18553if test "${enable_stage1_checking+set}" = set; then :
18554 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 18555else
e643dc23 18556 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
c10b5ea0
JJ
18557 # For --disable-checking or implicit --enable-checking=release, avoid
18558 # setting --enable-checking=gc in the default stage1 checking for LTO
18559 # bootstraps. See PR62077.
c10b5ea0
JJ
18560 case $BUILD_CONFIG in
18561 *lto*)
7db11a5a
JJ
18562 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18563 *)
18564 stage1_checking=--enable-checking=yes,types;;
c10b5ea0 18565 esac
7db11a5a
JJ
18566 if test "x$enable_checking" = x && \
18567 test -d ${srcdir}/gcc && \
18568 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
c100769b 18569 stage1_checking=--enable-checking=yes,types,extra
7db11a5a 18570 fi
8efea775 18571else
e643dc23 18572 stage1_checking=--enable-checking=$enable_checking,types
8efea775 18573fi
5213506e 18574fi
8efea775
PB
18575
18576
2aeb72e9 18577
5213506e
RW
18578# Enable -Werror in bootstrap stage2 and later.
18579# Check whether --enable-werror was given.
18580if test "${enable_werror+set}" = set; then :
18581 enableval=$enable_werror;
09a9c095
NN
18582case ${enable_werror} in
18583 yes) stage2_werror_flag="--enable-werror-always" ;;
18584 *) stage2_werror_flag="" ;;
2805b53a
NN
18585esac
18586
afd88efc
ML
18587else
18588
01c712cb
ML
18589if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18590 case $BUILD_CONFIG in
18591 bootstrap-debug)
18592 stage2_werror_flag="--enable-werror-always" ;;
18593 "")
18594 stage2_werror_flag="--enable-werror-always" ;;
18595 esac
18596fi
18597
afd88efc
ML
18598fi
18599
18600
01c712cb 18601
2805b53a 18602
f2689b09
SE
18603# Specify what files to not compare during bootstrap.
18604
18605compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
1eee94d3
GM
18606compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/M2Version*"
18607compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/SYSTEM*"
18608compare_exclusions="$compare_exclusions | gcc/m2/gm2version*"
f2689b09
SE
18609case "$target" in
18610 hppa*64*-*-hpux*) ;;
4f943869 18611 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
f2689b09
SE
18612esac
18613
18614
5213506e
RW
18615ac_config_files="$ac_config_files Makefile"
18616
1c710c3c 18617cat >confcache <<\_ACEOF
671aa708
NN
18618# This file is a shell script that caches the results of configure
18619# tests run on this system so they can be shared between configure
1c710c3c
DJ
18620# scripts and configure runs, see configure's option --config-cache.
18621# It is not useful on other systems. If it contains results you don't
18622# want to keep, you may remove or edit it.
671aa708 18623#
1c710c3c
DJ
18624# config.status only pays attention to the cache file if you give it
18625# the --recheck option to rerun configure.
671aa708 18626#
1c710c3c
DJ
18627# `ac_cv_env_foo' variables (set or unset) will be overridden when
18628# loading this file, other *unset* `ac_cv_foo' will be assigned the
18629# following values.
18630
18631_ACEOF
18632
671aa708
NN
18633# The following way of writing the cache mishandles newlines in values,
18634# but we know of no workaround that is simple, portable, and efficient.
5213506e 18635# So, we kill variables containing newlines.
671aa708
NN
18636# Ultrix sh set writes to stderr and can't be redirected directly,
18637# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
18638(
18639 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18640 eval ac_val=\$$ac_var
18641 case $ac_val in #(
18642 *${as_nl}*)
18643 case $ac_var in #(
18644 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18645$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18646 esac
18647 case $ac_var in #(
18648 _ | IFS | as_nl) ;; #(
18649 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18650 *) { eval $ac_var=; unset $ac_var;} ;;
18651 esac ;;
18652 esac
18653 done
18654
1c710c3c 18655 (set) 2>&1 |
5213506e
RW
18656 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18657 *${as_nl}ac_space=\ *)
18658 # `set' does not quote correctly, so add quotes: double-quote
18659 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
18660 sed -n \
18661 "s/'/'\\\\''/g;
18662 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 18663 ;; #(
1c710c3c
DJ
18664 *)
18665 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 18666 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 18667 ;;
5213506e
RW
18668 esac |
18669 sort
18670) |
1c710c3c 18671 sed '
5213506e 18672 /^ac_cv_env_/b end
1c710c3c 18673 t clear
5213506e 18674 :clear
1c710c3c
DJ
18675 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18676 t end
5213506e
RW
18677 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18678 :end' >>confcache
18679if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18680 if test -w "$cache_file"; then
22e05272 18681 if test "x$cache_file" != "x/dev/null"; then
5213506e
RW
18682 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18683$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
18684 if test ! -f "$cache_file" || test -h "$cache_file"; then
18685 cat confcache >"$cache_file"
18686 else
18687 case $cache_file in #(
18688 */* | ?:*)
18689 mv -f confcache "$cache_file"$$ &&
18690 mv -f "$cache_file"$$ "$cache_file" ;; #(
18691 *)
18692 mv -f confcache "$cache_file" ;;
18693 esac
18694 fi
18695 fi
671aa708 18696 else
5213506e
RW
18697 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18698$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 18699 fi
4977bab6 18700fi
671aa708 18701rm -f confcache
79c06341 18702
671aa708
NN
18703test "x$prefix" = xNONE && prefix=$ac_default_prefix
18704# Let make expand exec_prefix.
18705test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 18706
671aa708
NN
18707# Transform confdefs.h into DEFS.
18708# Protect against shell expansion while executing Makefile rules.
18709# Protect against Makefile macro expansion.
1c710c3c
DJ
18710#
18711# If the first sed substitution is executed (which looks for macros that
5213506e 18712# take arguments), then branch to the quote section. Otherwise,
1c710c3c 18713# look for a macro that doesn't take arguments.
5213506e
RW
18714ac_script='
18715:mline
18716/\\$/{
18717 N
18718 s,\\\n,,
18719 b mline
18720}
1c710c3c 18721t clear
5213506e
RW
18722:clear
18723s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 18724t quote
5213506e 18725s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 18726t quote
5213506e
RW
18727b any
18728:quote
18729s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18730s/\[/\\&/g
18731s/\]/\\&/g
18732s/\$/$$/g
18733H
18734:any
18735${
18736 g
18737 s/^\n//
18738 s/\n/ /g
18739 p
18740}
18741'
18742DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
18743
18744
18745ac_libobjs=
18746ac_ltlibobjs=
22e05272 18747U=
1c710c3c
DJ
18748for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18749 # 1. Remove the extension, and $U if already installed.
5213506e
RW
18750 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18751 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18752 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18753 # will be set to the directory where LIBOBJS objects are built.
18754 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18755 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
18756done
18757LIBOBJS=$ac_libobjs
fb0103e5 18758
1c710c3c 18759LTLIBOBJS=$ac_ltlibobjs
0b0dc272 18760
af71363e 18761
1c710c3c 18762
22e05272 18763: "${CONFIG_STATUS=./config.status}"
5213506e 18764ac_write_fail=0
1c710c3c
DJ
18765ac_clean_files_save=$ac_clean_files
18766ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
18767{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18768$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18769as_write_fail=0
18770cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
18771#! $SHELL
18772# Generated by $as_me.
671aa708 18773# Run this file to recreate the current configuration.
671aa708 18774# Compiler output produced by configure, useful for debugging
1c710c3c 18775# configure, is in config.log if it exists.
0b0dc272 18776
1c710c3c
DJ
18777debug=false
18778ac_cs_recheck=false
18779ac_cs_silent=false
1c710c3c 18780
5213506e
RW
18781SHELL=\${CONFIG_SHELL-$SHELL}
18782export SHELL
18783_ASEOF
18784cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18785## -------------------- ##
18786## M4sh Initialization. ##
18787## -------------------- ##
18788
18789# Be more Bourne compatible
18790DUALCASE=1; export DUALCASE # for MKS sh
18791if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
18792 emulate sh
18793 NULLCMD=:
5213506e 18794 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
18795 # is contrary to our usage. Disable this feature.
18796 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
18797 setopt NO_GLOB_SUBST
18798else
18799 case `(set -o) 2>/dev/null` in #(
18800 *posix*) :
18801 set -o posix ;; #(
18802 *) :
18803 ;;
18804esac
1c710c3c 18805fi
1c710c3c 18806
5213506e
RW
18807
18808as_nl='
18809'
18810export as_nl
18811# Printing a long string crashes Solaris 7 /usr/bin/printf.
18812as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18813as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18814as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18815# Prefer a ksh shell builtin over an external printf program on Solaris,
18816# but without wasting forks for bash or zsh.
18817if test -z "$BASH_VERSION$ZSH_VERSION" \
18818 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18819 as_echo='print -r --'
18820 as_echo_n='print -rn --'
18821elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18822 as_echo='printf %s\n'
18823 as_echo_n='printf %s'
18824else
18825 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18826 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18827 as_echo_n='/usr/ucb/echo -n'
18828 else
18829 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18830 as_echo_n_body='eval
18831 arg=$1;
18832 case $arg in #(
18833 *"$as_nl"*)
18834 expr "X$arg" : "X\\(.*\\)$as_nl";
18835 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18836 esac;
18837 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18838 '
18839 export as_echo_n_body
18840 as_echo_n='sh -c $as_echo_n_body as_echo'
18841 fi
18842 export as_echo_body
18843 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
18844fi
18845
5213506e
RW
18846# The user is always right.
18847if test "${PATH_SEPARATOR+set}" != set; then
18848 PATH_SEPARATOR=:
18849 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18850 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18851 PATH_SEPARATOR=';'
18852 }
18853fi
18854
18855
18856# IFS
18857# We need space, tab and new line, in precisely that order. Quoting is
18858# there to prevent editors from complaining about space-tab.
18859# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18860# splitting by setting IFS to empty value.)
18861IFS=" "" $as_nl"
18862
18863# Find who we are. Look in the path if we contain no directory separator.
22e05272 18864as_myself=
5213506e
RW
18865case $0 in #((
18866 *[\\/]* ) as_myself=$0 ;;
18867 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18868for as_dir in $PATH
18869do
18870 IFS=$as_save_IFS
18871 test -z "$as_dir" && as_dir=.
18872 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18873 done
18874IFS=$as_save_IFS
18875
18876 ;;
18877esac
18878# We did not find ourselves, most probably we were run as `sh COMMAND'
18879# in which case we are not to be found in the path.
18880if test "x$as_myself" = x; then
18881 as_myself=$0
18882fi
18883if test ! -f "$as_myself"; then
18884 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18885 exit 1
18886fi
1c710c3c 18887
5213506e
RW
18888# Unset variables that we do not need and which cause bugs (e.g. in
18889# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18890# suppresses any "Segmentation fault" message there. '((' could
18891# trigger a bug in pdksh 5.2.14.
18892for as_var in BASH_ENV ENV MAIL MAILPATH
18893do eval test x\${$as_var+set} = xset \
18894 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18895done
1c710c3c
DJ
18896PS1='$ '
18897PS2='> '
18898PS4='+ '
18899
18900# NLS nuisances.
5213506e
RW
18901LC_ALL=C
18902export LC_ALL
18903LANGUAGE=C
18904export LANGUAGE
18905
18906# CDPATH.
18907(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18908
18909
22e05272
JM
18910# as_fn_error STATUS ERROR [LINENO LOG_FD]
18911# ----------------------------------------
5213506e
RW
18912# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18913# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 18914# script with STATUS, using 1 if that was 0.
5213506e
RW
18915as_fn_error ()
18916{
22e05272
JM
18917 as_status=$1; test $as_status -eq 0 && as_status=1
18918 if test "$4"; then
18919 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18920 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1c710c3c 18921 fi
22e05272 18922 $as_echo "$as_me: error: $2" >&2
5213506e
RW
18923 as_fn_exit $as_status
18924} # as_fn_error
18925
18926
18927# as_fn_set_status STATUS
18928# -----------------------
18929# Set $? to STATUS, without forking.
18930as_fn_set_status ()
18931{
18932 return $1
18933} # as_fn_set_status
18934
18935# as_fn_exit STATUS
18936# -----------------
18937# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18938as_fn_exit ()
18939{
18940 set +e
18941 as_fn_set_status $1
18942 exit $1
18943} # as_fn_exit
18944
18945# as_fn_unset VAR
18946# ---------------
18947# Portably unset VAR.
18948as_fn_unset ()
18949{
18950 { eval $1=; unset $1;}
18951}
18952as_unset=as_fn_unset
18953# as_fn_append VAR VALUE
18954# ----------------------
18955# Append the text in VALUE to the end of the definition contained in VAR. Take
18956# advantage of any shell optimizations that allow amortized linear growth over
18957# repeated appends, instead of the typical quadratic growth present in naive
18958# implementations.
18959if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18960 eval 'as_fn_append ()
18961 {
18962 eval $1+=\$2
18963 }'
18964else
18965 as_fn_append ()
18966 {
18967 eval $1=\$$1\$2
18968 }
18969fi # as_fn_append
18970
18971# as_fn_arith ARG...
18972# ------------------
18973# Perform arithmetic evaluation on the ARGs, and store the result in the
18974# global $as_val. Take advantage of shells that can avoid forks. The arguments
18975# must be portable across $(()) and expr.
18976if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18977 eval 'as_fn_arith ()
18978 {
18979 as_val=$(( $* ))
18980 }'
18981else
18982 as_fn_arith ()
18983 {
18984 as_val=`expr "$@" || test $? -eq 1`
18985 }
18986fi # as_fn_arith
18987
1c710c3c 18988
5213506e
RW
18989if expr a : '\(a\)' >/dev/null 2>&1 &&
18990 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
18991 as_expr=expr
18992else
18993 as_expr=false
18994fi
18995
5213506e 18996if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
18997 as_basename=basename
18998else
18999 as_basename=false
19000fi
19001
5213506e
RW
19002if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19003 as_dirname=dirname
19004else
19005 as_dirname=false
19006fi
1c710c3c 19007
5213506e 19008as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
19009$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19010 X"$0" : 'X\(//\)$' \| \
5213506e
RW
19011 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19012$as_echo X/"$0" |
19013 sed '/^.*\/\([^/][^/]*\)\/*$/{
19014 s//\1/
19015 q
19016 }
19017 /^X\/\(\/\/\)$/{
19018 s//\1/
19019 q
19020 }
19021 /^X\/\(\/\).*/{
19022 s//\1/
19023 q
19024 }
19025 s/.*/./; q'`
2aeb72e9 19026
2aeb72e9
DD
19027# Avoid depending upon Character Ranges.
19028as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19029as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19030as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19031as_cr_digits='0123456789'
19032as_cr_alnum=$as_cr_Letters$as_cr_digits
19033
5213506e
RW
19034ECHO_C= ECHO_N= ECHO_T=
19035case `echo -n x` in #(((((
19036-n*)
19037 case `echo 'xy\c'` in
19038 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19039 xy) ECHO_C='\c';;
19040 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19041 ECHO_T=' ';;
19042 esac;;
19043*)
19044 ECHO_N='-n';;
1c710c3c
DJ
19045esac
19046
5213506e
RW
19047rm -f conf$$ conf$$.exe conf$$.file
19048if test -d conf$$.dir; then
19049 rm -f conf$$.dir/conf$$.file
1c710c3c 19050else
5213506e
RW
19051 rm -f conf$$.dir
19052 mkdir conf$$.dir 2>/dev/null
1c710c3c 19053fi
5213506e
RW
19054if (echo >conf$$.file) 2>/dev/null; then
19055 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 19056 as_ln_s='ln -s'
5213506e
RW
19057 # ... but there are two gotchas:
19058 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19059 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 19060 # In both cases, we have to default to `cp -pR'.
5213506e 19061 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 19062 as_ln_s='cp -pR'
5213506e
RW
19063 elif ln conf$$.file conf$$ 2>/dev/null; then
19064 as_ln_s=ln
19065 else
22e05272 19066 as_ln_s='cp -pR'
2aeb72e9 19067 fi
1c710c3c 19068else
22e05272 19069 as_ln_s='cp -pR'
1c710c3c 19070fi
5213506e
RW
19071rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19072rmdir conf$$.dir 2>/dev/null
19073
19074
19075# as_fn_mkdir_p
19076# -------------
19077# Create "$as_dir" as a directory, including parents if necessary.
19078as_fn_mkdir_p ()
19079{
19080
19081 case $as_dir in #(
19082 -*) as_dir=./$as_dir;;
19083 esac
19084 test -d "$as_dir" || eval $as_mkdir_p || {
19085 as_dirs=
19086 while :; do
19087 case $as_dir in #(
19088 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19089 *) as_qdir=$as_dir;;
19090 esac
19091 as_dirs="'$as_qdir' $as_dirs"
19092 as_dir=`$as_dirname -- "$as_dir" ||
19093$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19094 X"$as_dir" : 'X\(//\)[^/]' \| \
19095 X"$as_dir" : 'X\(//\)$' \| \
19096 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19097$as_echo X"$as_dir" |
19098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19099 s//\1/
19100 q
19101 }
19102 /^X\(\/\/\)[^/].*/{
19103 s//\1/
19104 q
19105 }
19106 /^X\(\/\/\)$/{
19107 s//\1/
19108 q
19109 }
19110 /^X\(\/\).*/{
19111 s//\1/
19112 q
19113 }
19114 s/.*/./; q'`
19115 test -d "$as_dir" && break
19116 done
19117 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 19118 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e 19119
1c710c3c 19120
5213506e 19121} # as_fn_mkdir_p
1c710c3c 19122if mkdir -p . 2>/dev/null; then
5213506e 19123 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
19124else
19125 test -d ./-p && rmdir ./-p
19126 as_mkdir_p=false
19127fi
19128
22e05272
JM
19129
19130# as_fn_executable_p FILE
19131# -----------------------
19132# Test if FILE is an executable regular file.
19133as_fn_executable_p ()
19134{
19135 test -f "$1" && test -x "$1"
19136} # as_fn_executable_p
19137as_test_x='test -x'
19138as_executable_p=as_fn_executable_p
1c710c3c
DJ
19139
19140# Sed expression to map a string onto a valid CPP name.
19141as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19142
19143# Sed expression to map a string onto a valid variable name.
19144as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19145
19146
1c710c3c 19147exec 6>&1
5213506e
RW
19148## ----------------------------------- ##
19149## Main body of $CONFIG_STATUS script. ##
19150## ----------------------------------- ##
19151_ASEOF
19152test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19153
19154cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19155# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 19156# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
19157# values after options handling.
19158ac_log="
1c710c3c 19159This file was extended by $as_me, which was
22e05272 19160generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
19161
19162 CONFIG_FILES = $CONFIG_FILES
19163 CONFIG_HEADERS = $CONFIG_HEADERS
19164 CONFIG_LINKS = $CONFIG_LINKS
19165 CONFIG_COMMANDS = $CONFIG_COMMANDS
19166 $ $0 $@
19167
5213506e
RW
19168on `(hostname || uname -n) 2>/dev/null | sed 1q`
19169"
19170
1c710c3c
DJ
19171_ACEOF
19172
5213506e
RW
19173case $ac_config_files in *"
19174"*) set x $ac_config_files; shift; ac_config_files=$*;;
19175esac
1c710c3c 19176
2aeb72e9 19177
2aeb72e9 19178
5213506e
RW
19179cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19180# Files that config.status was made for.
19181config_files="$ac_config_files"
1c710c3c 19182
5213506e 19183_ACEOF
2aeb72e9 19184
5213506e 19185cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 19186ac_cs_usage="\
5213506e
RW
19187\`$as_me' instantiates files and other configuration actions
19188from templates according to the current configuration. Unless the files
19189and actions are specified as TAGs, all are instantiated by default.
1c710c3c 19190
5213506e 19191Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
19192
19193 -h, --help print this help, then exit
5213506e 19194 -V, --version print version number and configuration settings, then exit
22e05272 19195 --config print configuration, then exit
5213506e
RW
19196 -q, --quiet, --silent
19197 do not print progress messages
1c710c3c
DJ
19198 -d, --debug don't remove temporary files
19199 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
19200 --file=FILE[:TEMPLATE]
19201 instantiate the configuration file FILE
1c710c3c
DJ
19202
19203Configuration files:
19204$config_files
19205
5213506e 19206Report bugs to the package provider."
2aeb72e9 19207
5213506e
RW
19208_ACEOF
19209cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 19210ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1c710c3c
DJ
19211ac_cs_version="\\
19212config.status
22e05272
JM
19213configured by $0, generated by GNU Autoconf 2.69,
19214 with options \\"\$ac_cs_config\\"
1c710c3c 19215
22e05272 19216Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
19217This config.status script is free software; the Free Software Foundation
19218gives unlimited permission to copy, distribute and modify it."
5213506e
RW
19219
19220ac_pwd='$ac_pwd'
19221srcdir='$srcdir'
19222INSTALL='$INSTALL'
87264276 19223AWK='$AWK'
5213506e 19224test -n "\$AWK" || AWK=awk
1c710c3c
DJ
19225_ACEOF
19226
5213506e
RW
19227cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19228# The default lists apply if the user does not specify any file.
1c710c3c
DJ
19229ac_need_defaults=:
19230while test $# != 0
a4b9e93e 19231do
1c710c3c 19232 case $1 in
22e05272 19233 --*=?*)
5213506e
RW
19234 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19235 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
19236 ac_shift=:
19237 ;;
22e05272
JM
19238 --*=)
19239 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19240 ac_optarg=
19241 ac_shift=:
19242 ;;
5213506e 19243 *)
1c710c3c
DJ
19244 ac_option=$1
19245 ac_optarg=$2
19246 ac_shift=shift
19247 ;;
1c710c3c
DJ
19248 esac
19249
19250 case $ac_option in
19251 # Handling of the options.
671aa708 19252 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 19253 ac_cs_recheck=: ;;
5213506e
RW
19254 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19255 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
19256 --config | --confi | --conf | --con | --co | --c )
19257 $as_echo "$ac_cs_config"; exit ;;
5213506e 19258 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
19259 debug=: ;;
19260 --file | --fil | --fi | --f )
19261 $ac_shift
5213506e
RW
19262 case $ac_optarg in
19263 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 19264 '') as_fn_error $? "missing file argument" ;;
5213506e
RW
19265 esac
19266 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 19267 ac_need_defaults=false;;
5213506e
RW
19268 --he | --h | --help | --hel | -h )
19269 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
19270 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19271 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19272 ac_cs_silent=: ;;
19273
19274 # This is an error.
22e05272 19275 -*) as_fn_error $? "unrecognized option: \`$1'
5213506e 19276Try \`$0 --help' for more information." ;;
1c710c3c 19277
5213506e
RW
19278 *) as_fn_append ac_config_targets " $1"
19279 ac_need_defaults=false ;;
1c710c3c 19280
0b0dc272 19281 esac
1c710c3c 19282 shift
0b0dc272
AM
19283done
19284
1c710c3c 19285ac_configure_extra_args=
0b0dc272 19286
1c710c3c
DJ
19287if $ac_cs_silent; then
19288 exec 6>/dev/null
19289 ac_configure_extra_args="$ac_configure_extra_args --silent"
19290fi
0b0dc272 19291
1c710c3c 19292_ACEOF
5213506e 19293cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 19294if \$ac_cs_recheck; then
22e05272 19295 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5213506e
RW
19296 shift
19297 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19298 CONFIG_SHELL='$SHELL'
19299 export CONFIG_SHELL
19300 exec "\$@"
1c710c3c
DJ
19301fi
19302
19303_ACEOF
5213506e
RW
19304cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19305exec 5>>config.log
19306{
19307 echo
19308 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19309## Running $as_me. ##
19310_ASBOX
19311 $as_echo "$ac_log"
19312} >&5
1c710c3c 19313
5213506e
RW
19314_ACEOF
19315cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
19316#
19317# INIT-COMMANDS
19318#
19319extrasub_build="$extrasub_build"
19320 extrasub_host="$extrasub_host"
19321 extrasub_target="$extrasub_target"
19322
5213506e 19323_ACEOF
1c710c3c 19324
5213506e 19325cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 19326
5213506e 19327# Handling of arguments.
1c710c3c
DJ
19328for ac_config_target in $ac_config_targets
19329do
5213506e
RW
19330 case $ac_config_target in
19331 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19332
22e05272 19333 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
19334 esac
19335done
19336
5213506e 19337
1c710c3c
DJ
19338# If the user did not use the arguments to specify the items to instantiate,
19339# then the envvar interface is used. Set only those that are not.
19340# We use the long form for the default assignment because of an extremely
19341# bizarre bug on SunOS 4.1.3.
19342if $ac_need_defaults; then
19343 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19344fi
19345
19346# Have a temporary directory for convenience. Make it in the build tree
5213506e 19347# simply because there is no reason against having it here, and in addition,
1c710c3c 19348# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
19349# Hook for its removal unless debugging.
19350# Note that there is a small window in which the directory will not be cleaned:
19351# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
19352$debug ||
19353{
22e05272 19354 tmp= ac_tmp=
5213506e 19355 trap 'exit_status=$?
22e05272
JM
19356 : "${ac_tmp:=$tmp}"
19357 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5213506e
RW
19358' 0
19359 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 19360}
1c710c3c
DJ
19361# Create a (secure) tmp directory for tmp files.
19362
19363{
5213506e 19364 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 19365 test -d "$tmp"
1c710c3c
DJ
19366} ||
19367{
5213506e
RW
19368 tmp=./conf$$-$RANDOM
19369 (umask 077 && mkdir "$tmp")
22e05272
JM
19370} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19371ac_tmp=$tmp
5213506e
RW
19372
19373# Set up the scripts for CONFIG_FILES section.
19374# No need to generate them if there are no CONFIG_FILES.
19375# This happens for instance with `./config.status config.h'.
19376if test -n "$CONFIG_FILES"; then
19377
19378if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19379 ac_cs_awk_getline=:
19380 ac_cs_awk_pipe_init=
19381 ac_cs_awk_read_file='
19382 while ((getline aline < (F[key])) > 0)
19383 print(aline)
19384 close(F[key])'
19385 ac_cs_awk_pipe_fini=
19386else
19387 ac_cs_awk_getline=false
19388 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19389 ac_cs_awk_read_file='
19390 print "|#_!!_#|"
19391 print "cat " F[key] " &&"
19392 '$ac_cs_awk_pipe_init
19393 # The final `:' finishes the AND list.
19394 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19395fi
19396ac_cr=`echo X | tr X '\015'`
19397# On cygwin, bash can eat \r inside `` if the user requested igncr.
19398# But we know of no other shell where ac_cr would be empty at this
19399# point, so we can use a bashism as a fallback.
19400if test "x$ac_cr" = x; then
19401 eval ac_cr=\$\'\\r\'
19402fi
19403ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19404if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 19405 ac_cs_awk_cr='\\r'
5213506e
RW
19406else
19407 ac_cs_awk_cr=$ac_cr
19408fi
19409
22e05272 19410echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5213506e
RW
19411_ACEOF
19412
19413# Create commands to substitute file output variables.
1c710c3c 19414{
5213506e 19415 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
22e05272 19416 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
5213506e
RW
19417 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19418 echo "_ACAWK" &&
19419 echo "_ACEOF"
19420} >conf$$files.sh &&
19421. ./conf$$files.sh ||
22e05272 19422 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e 19423rm -f conf$$files.sh
1c710c3c 19424
5213506e
RW
19425{
19426 echo "cat >conf$$subs.awk <<_ACEOF" &&
19427 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19428 echo "_ACEOF"
19429} >conf$$subs.sh ||
22e05272
JM
19430 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19431ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5213506e
RW
19432ac_delim='%!_!# '
19433for ac_last_try in false false false false false :; do
19434 . ./conf$$subs.sh ||
22e05272 19435 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
19436
19437 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19438 if test $ac_delim_n = $ac_delim_num; then
19439 break
19440 elif $ac_last_try; then
22e05272 19441 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
19442 else
19443 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19444 fi
19445done
19446rm -f conf$$subs.sh
19447
19448cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 19449cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 19450_ACEOF
5213506e
RW
19451sed -n '
19452h
19453s/^/S["/; s/!.*/"]=/
19454p
19455g
19456s/^[^!]*!//
19457:repl
19458t repl
19459s/'"$ac_delim"'$//
19460t delim
19461:nl
19462h
22e05272 19463s/\(.\{148\}\)..*/\1/
5213506e
RW
19464t more1
19465s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19466p
19467n
19468b repl
19469:more1
19470s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19471p
19472g
19473s/.\{148\}//
19474t nl
19475:delim
19476h
22e05272 19477s/\(.\{148\}\)..*/\1/
5213506e
RW
19478t more2
19479s/["\\]/\\&/g; s/^/"/; s/$/"/
19480p
19481b
19482:more2
19483s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19484p
19485g
19486s/.\{148\}//
19487t delim
19488' <conf$$subs.awk | sed '
19489/^[^""]/{
19490 N
19491 s/\n//
19492}
19493' >>$CONFIG_STATUS || ac_write_fail=1
19494rm -f conf$$subs.awk
19495cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19496_ACAWK
22e05272 19497cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5213506e
RW
19498 for (key in S) S_is_set[key] = 1
19499 FS = "\a"
19500 \$ac_cs_awk_pipe_init
19501}
19502{
19503 line = $ 0
19504 nfields = split(line, field, "@")
19505 substed = 0
19506 len = length(field[1])
19507 for (i = 2; i < nfields; i++) {
19508 key = field[i]
19509 keylen = length(key)
19510 if (S_is_set[key]) {
19511 value = S[key]
19512 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19513 len += length(value) + length(field[++i])
19514 substed = 1
19515 } else
19516 len += 1 + keylen
19517 }
19518 if (nfields == 3 && !substed) {
19519 key = field[2]
19520 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19521 \$ac_cs_awk_read_file
19522 next
19523 }
19524 }
19525 print line
19526}
19527\$ac_cs_awk_pipe_fini
19528_ACAWK
19529_ACEOF
19530cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19531if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19532 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19533else
19534 cat
22e05272
JM
19535fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19536 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5213506e
RW
19537_ACEOF
19538
22e05272
JM
19539# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19540# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5213506e
RW
19541# trailing colons and then remove the whole line if VPATH becomes empty
19542# (actually we leave an empty line to preserve line numbers).
19543if test "x$srcdir" = x.; then
22e05272
JM
19544 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19545h
19546s///
19547s/^/:/
19548s/[ ]*$/:/
19549s/:\$(srcdir):/:/g
19550s/:\${srcdir}:/:/g
19551s/:@srcdir@:/:/g
19552s/^:*//
5213506e 19553s/:*$//
22e05272
JM
19554x
19555s/\(=[ ]*\).*/\1/
19556G
19557s/\n//
5213506e
RW
19558s/^[^=]*=[ ]*$//
19559}'
19560fi
2aeb72e9 19561
5213506e
RW
19562cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19563fi # test -n "$CONFIG_FILES"
2aeb72e9 19564
1c710c3c 19565
5213506e
RW
19566eval set X " :F $CONFIG_FILES "
19567shift
19568for ac_tag
19569do
19570 case $ac_tag in
19571 :[FHLC]) ac_mode=$ac_tag; continue;;
19572 esac
19573 case $ac_mode$ac_tag in
19574 :[FHL]*:*);;
22e05272 19575 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5213506e
RW
19576 :[FH]-) ac_tag=-:-;;
19577 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19578 esac
19579 ac_save_IFS=$IFS
19580 IFS=:
19581 set x $ac_tag
19582 IFS=$ac_save_IFS
19583 shift
19584 ac_file=$1
19585 shift
79c06341 19586
5213506e
RW
19587 case $ac_mode in
19588 :L) ac_source=$1;;
19589 :[FH])
19590 ac_file_inputs=
19591 for ac_f
19592 do
19593 case $ac_f in
22e05272 19594 -) ac_f="$ac_tmp/stdin";;
5213506e
RW
19595 *) # Look for the file first in the build tree, then in the source tree
19596 # (if the path is not absolute). The absolute path cannot be DOS-style,
19597 # because $ac_f cannot contain `:'.
19598 test -f "$ac_f" ||
19599 case $ac_f in
19600 [\\/$]*) false;;
19601 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19602 esac ||
22e05272 19603 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5213506e
RW
19604 esac
19605 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19606 as_fn_append ac_file_inputs " '$ac_f'"
19607 done
1c710c3c 19608
5213506e
RW
19609 # Let's still pretend it is `configure' which instantiates (i.e., don't
19610 # use $as_me), people would be surprised to read:
19611 # /* config.h. Generated by config.status. */
19612 configure_input='Generated from '`
19613 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19614 `' by configure.'
19615 if test x"$ac_file" != x-; then
19616 configure_input="$ac_file. $configure_input"
19617 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19618$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 19619 fi
5213506e
RW
19620 # Neutralize special characters interpreted by sed in replacement strings.
19621 case $configure_input in #(
19622 *\&* | *\|* | *\\* )
19623 ac_sed_conf_input=`$as_echo "$configure_input" |
19624 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19625 *) ac_sed_conf_input=$configure_input;;
19626 esac
11a67599 19627
5213506e 19628 case $ac_tag in
22e05272
JM
19629 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19630 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5213506e
RW
19631 esac
19632 ;;
11a67599
ZW
19633 esac
19634
5213506e 19635 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
19636$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19637 X"$ac_file" : 'X\(//\)[^/]' \| \
19638 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
19639 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19640$as_echo X"$ac_file" |
19641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19642 s//\1/
19643 q
19644 }
19645 /^X\(\/\/\)[^/].*/{
19646 s//\1/
19647 q
19648 }
19649 /^X\(\/\/\)$/{
19650 s//\1/
19651 q
19652 }
19653 /^X\(\/\).*/{
19654 s//\1/
19655 q
19656 }
19657 s/.*/./; q'`
19658 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 19659 ac_builddir=.
0b0dc272 19660
5213506e
RW
19661case "$ac_dir" in
19662.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19663*)
19664 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19665 # A ".." for each directory in $ac_dir_suffix.
19666 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19667 case $ac_top_builddir_sub in
19668 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19669 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19670 esac ;;
19671esac
19672ac_abs_top_builddir=$ac_pwd
19673ac_abs_builddir=$ac_pwd$ac_dir_suffix
19674# for backward compatibility:
19675ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
19676
19677case $srcdir in
5213506e 19678 .) # We are building in place.
1c710c3c 19679 ac_srcdir=.
5213506e
RW
19680 ac_top_srcdir=$ac_top_builddir_sub
19681 ac_abs_top_srcdir=$ac_pwd ;;
19682 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 19683 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
19684 ac_top_srcdir=$srcdir
19685 ac_abs_top_srcdir=$srcdir ;;
19686 *) # Relative name.
19687 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19688 ac_top_srcdir=$ac_top_build_prefix$srcdir
19689 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 19690esac
5213506e 19691ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 19692
0b0dc272 19693
5213506e
RW
19694 case $ac_mode in
19695 :F)
19696 #
19697 # CONFIG_FILE
19698 #
1c710c3c
DJ
19699
19700 case $INSTALL in
19701 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 19702 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 19703 esac
5213506e 19704_ACEOF
11a67599 19705
5213506e
RW
19706cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19707# If the template does not know about datarootdir, expand it.
19708# FIXME: This hack should be removed a few years after 2.60.
19709ac_datarootdir_hack=; ac_datarootdir_seen=
19710ac_sed_dataroot='
19711/datarootdir/ {
19712 p
19713 q
19714}
19715/@datadir@/p
19716/@docdir@/p
19717/@infodir@/p
19718/@localedir@/p
19719/@mandir@/p'
19720case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19721*datarootdir*) ac_datarootdir_seen=yes;;
19722*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19724$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 19725_ACEOF
5213506e
RW
19726cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19727 ac_datarootdir_hack='
19728 s&@datadir@&$datadir&g
19729 s&@docdir@&$docdir&g
19730 s&@infodir@&$infodir&g
19731 s&@localedir@&$localedir&g
19732 s&@mandir@&$mandir&g
19733 s&\\\${datarootdir}&$datarootdir&g' ;;
19734esac
19735_ACEOF
19736
19737# Neutralize VPATH when `$srcdir' = `.'.
19738# Shell code in configure.ac might set extrasub.
19739# FIXME: do we really want to maintain this feature?
19740cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19741ac_sed_extra="$ac_vpsub
1c710c3c
DJ
19742$extrasub
19743_ACEOF
5213506e 19744cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
19745:t
19746/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
19747s|@configure_input@|$ac_sed_conf_input|;t t
19748s&@top_builddir@&$ac_top_builddir_sub&;t t
19749s&@top_build_prefix@&$ac_top_build_prefix&;t t
19750s&@srcdir@&$ac_srcdir&;t t
19751s&@abs_srcdir@&$ac_abs_srcdir&;t t
19752s&@top_srcdir@&$ac_top_srcdir&;t t
19753s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19754s&@builddir@&$ac_builddir&;t t
19755s&@abs_builddir@&$ac_abs_builddir&;t t
19756s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19757s&@INSTALL@&$ac_INSTALL&;t t
19758$ac_datarootdir_hack
19759"
19760eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19761if $ac_cs_awk_getline; then
22e05272 19762 $AWK -f "$ac_tmp/subs.awk"
5213506e 19763else
22e05272
JM
19764 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19765fi \
19766 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e
RW
19767
19768test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
19769 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19770 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19771 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5213506e 19772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 19773which seems to be undefined. Please make sure it is defined" >&5
5213506e 19774$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 19775which seems to be undefined. Please make sure it is defined" >&2;}
5213506e 19776
22e05272 19777 rm -f "$ac_tmp/stdin"
5213506e 19778 case $ac_file in
22e05272
JM
19779 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19780 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5213506e 19781 esac \
22e05272 19782 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e 19783 ;;
11a67599 19784
11a67599 19785
79c06341 19786
5213506e
RW
19787 esac
19788
3e54529c
RW
19789
19790 case $ac_file$ac_mode in
19791 "Makefile":F) sed "$extrasub_build" Makefile |
19792 sed "$extrasub_host" |
19793 sed "$extrasub_target" > mf$$
19794 mv -f mf$$ Makefile ;;
19795
19796 esac
5213506e
RW
19797done # for ac_tag
19798
19799
19800as_fn_exit 0
1c710c3c 19801_ACEOF
1c710c3c
DJ
19802ac_clean_files=$ac_clean_files_save
19803
5213506e 19804test $ac_write_fail = 0 ||
22e05272 19805 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5213506e 19806
1c710c3c
DJ
19807
19808# configure is writing to config.log, and then calls config.status.
19809# config.status does its own redirection, appending to config.log.
19810# Unfortunately, on DOS this fails, as config.log is still kept open
19811# by configure, so config.status won't be able to write to it; its
19812# output is simply discarded. So we exec the FD to /dev/null,
19813# effectively closing config.log, so it can be properly (re)opened and
19814# appended to by config.status. When coming back to configure, we
19815# need to make the FD available again.
19816if test "$no_create" != yes; then
19817 ac_cs_success=:
19818 ac_config_status_args=
19819 test "$silent" = yes &&
19820 ac_config_status_args="$ac_config_status_args --quiet"
19821 exec 5>/dev/null
19822 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19823 exec 5>>config.log
19824 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19825 # would make configure fail if this is the last instruction.
22e05272 19826 $ac_cs_success || as_fn_exit 1
5213506e
RW
19827fi
19828if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19830$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 19831fi
79c06341 19832