]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
updat_bb_profile_for_threading TLC
[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
c1fecabe 692gcc_host_pie
b6cb10af 693host_pie
45b3824d
TS
694extra_linker_plugin_flags
695extra_linker_plugin_configure_flags
33ad93b9 696islinc
eae1a5d4 697isllibs
5213506e 698poststage1_ldflags
ed2eaa9f 699poststage1_libs
5213506e 700stage1_ldflags
0b21f5d3 701stage1_libs
0ff2d841 702extra_isl_gmp_configure_flags
5213506e
RW
703extra_mpc_mpfr_configure_flags
704extra_mpc_gmp_configure_flags
705extra_mpfr_configure_flags
706gmpinc
707gmplibs
4a5e71f2
L
708PGO_BUILD_LTO_CFLAGS
709PGO_BUILD_USE_CFLAGS
710PGO_BUILD_GEN_CFLAGS
7ffcf5d6 711HAVE_CXX11_FOR_BUILD
ffac9597 712HAVE_CXX11
5213506e 713do_compare
5fee5ec3 714GDC
5213506e
RW
715GNATMAKE
716GNATBIND
717ac_ct_CXX
718CXXFLAGS
719CXX
720OBJEXT
721EXEEXT
722ac_ct_CC
723CPPFLAGS
724LDFLAGS
725CFLAGS
726CC
727target_subdir
728host_subdir
729build_subdir
730build_libsubdir
87264276
PB
731AWK
732SED
5213506e
RW
733LN_S
734LN
735INSTALL_DATA
736INSTALL_SCRIPT
737INSTALL_PROGRAM
738target_os
739target_vendor
740target_cpu
741target
742host_os
743host_vendor
744host_cpu
745host
746target_noncanonical
747host_noncanonical
748build_noncanonical
749build_os
750build_vendor
751build_cpu
752build
753TOPLEVEL_CONFIGURE_ARGUMENTS
754target_alias
755host_alias
756build_alias
757LIBS
758ECHO_T
759ECHO_N
760ECHO_C
761DEFS
762mandir
763localedir
764libdir
765psdir
766pdfdir
767dvidir
768htmldir
769infodir
770docdir
771oldincludedir
772includedir
773localstatedir
774sharedstatedir
775sysconfdir
776datadir
777datarootdir
778libexecdir
779sbindir
780bindir
781program_transform_name
782prefix
783exec_prefix
784PACKAGE_URL
785PACKAGE_BUGREPORT
786PACKAGE_STRING
787PACKAGE_VERSION
788PACKAGE_TARNAME
789PACKAGE_NAME
790PATH_SEPARATOR
791SHELL'
792ac_subst_files='serialization_dependencies
793host_makefile_frag
794target_makefile_frag
795alphaieee_frag
796ospace_frag'
797ac_user_opts='
798enable_option_checking
799with_build_libsubdir
a05c2c75 800with_system_zlib
85c64bbe
BS
801enable_as_accelerator_for
802enable_offload_targets
fe5bfa67 803enable_offload_defaulted
5213506e 804enable_gold
21539e2e 805enable_ld
78edb32f 806enable_compressed_debug_sections
87e6d9dc
TB
807enable_libquadmath
808enable_libquadmath_support
5213506e 809enable_libada
1eee94d3 810enable_libgm2
5213506e 811enable_libssp
1873ec0c 812enable_libstdcxx
ff3ac0f4 813enable_bootstrap
4a5e71f2 814enable_pgo_build
5213506e
RW
815with_mpc
816with_mpc_include
817with_mpc_lib
5213506e
RW
818with_mpfr
819with_mpfr_include
820with_mpfr_lib
5213506e
RW
821with_gmp
822with_gmp_include
823with_gmp_lib
5213506e 824with_stage1_libs
aac9103b 825with_static_standard_libraries
0b21f5d3 826with_stage1_ldflags
5213506e 827with_boot_libs
ed2eaa9f 828with_boot_ldflags
33ad93b9
RG
829with_isl
830with_isl_include
831with_isl_lib
832enable_isl_version_check
d7f09764 833enable_lto
45b3824d
TS
834enable_linker_plugin_configure_flags
835enable_linker_plugin_flags
b6cb10af 836enable_host_pie
cdfee50a 837enable_host_shared
5213506e 838enable_stage1_languages
43c40f3e 839enable_objc_gc
114bf3f1
MK
840with_target_bdw_gc
841with_target_bdw_gc_include
842with_target_bdw_gc_lib
3c36aa6b 843with_gcc_major_version_only
5213506e
RW
844with_build_sysroot
845with_debug_prefix_map
5646b7b9 846with_build_config
beeda1d9 847enable_vtable_verify
5213506e
RW
848enable_serial_configure
849with_build_time_tools
850enable_maintainer_mode
851enable_stage1_checking
852enable_werror
5213506e
RW
853'
854 ac_precious_vars='build_alias
855host_alias
856target_alias
857CC
858CFLAGS
859LDFLAGS
860LIBS
861CPPFLAGS
862CXX
863CXXFLAGS
864CCC
ffedf511
RW
865build_configargs
866host_configargs
867target_configargs
5213506e
RW
868AR
869AS
870DLLTOOL
3b5e8ee4 871DSYMUTIL
5213506e
RW
872LD
873LIPO
874NM
875RANLIB
876STRIP
877WINDRES
878WINDMC
879OBJCOPY
880OBJDUMP
e4a9a572 881OTOOL
e7a82751 882READELF
5213506e
RW
883CC_FOR_TARGET
884CXX_FOR_TARGET
885GCC_FOR_TARGET
5213506e 886GFORTRAN_FOR_TARGET
632e2a07 887GOC_FOR_TARGET
b4c522fa 888GDC_FOR_TARGET
1eee94d3 889GM2_FOR_TARGET
5213506e
RW
890AR_FOR_TARGET
891AS_FOR_TARGET
892DLLTOOL_FOR_TARGET
3b5e8ee4 893DSYMUTIL_FOR_TARGET
5213506e
RW
894LD_FOR_TARGET
895LIPO_FOR_TARGET
896NM_FOR_TARGET
9bccfdf5 897OBJCOPY_FOR_TARGET
5213506e 898OBJDUMP_FOR_TARGET
e4a9a572 899OTOOL_FOR_TARGET
5213506e 900RANLIB_FOR_TARGET
e7a82751 901READELF_FOR_TARGET
5213506e
RW
902STRIP_FOR_TARGET
903WINDRES_FOR_TARGET
904WINDMC_FOR_TARGET'
905
671aa708
NN
906
907# Initialize some variables set by options.
1c710c3c
DJ
908ac_init_help=
909ac_init_version=false
5213506e
RW
910ac_unrecognized_opts=
911ac_unrecognized_sep=
671aa708
NN
912# The variables have the same names as the options, with
913# dashes changed to underlines.
1c710c3c 914cache_file=/dev/null
671aa708 915exec_prefix=NONE
671aa708 916no_create=
671aa708
NN
917no_recursion=
918prefix=NONE
919program_prefix=NONE
920program_suffix=NONE
921program_transform_name=s,x,x,
922silent=
923site=
924srcdir=
671aa708
NN
925verbose=
926x_includes=NONE
927x_libraries=NONE
1c710c3c
DJ
928
929# Installation directory options.
930# These are left unexpanded so users can "make install exec_prefix=/foo"
931# and all the variables that are supposed to be based on exec_prefix
932# by default will actually change.
933# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 934# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
935bindir='${exec_prefix}/bin'
936sbindir='${exec_prefix}/sbin'
937libexecdir='${exec_prefix}/libexec'
5213506e
RW
938datarootdir='${prefix}/share'
939datadir='${datarootdir}'
671aa708
NN
940sysconfdir='${prefix}/etc'
941sharedstatedir='${prefix}/com'
942localstatedir='${prefix}/var'
671aa708
NN
943includedir='${prefix}/include'
944oldincludedir='/usr/include'
5213506e
RW
945docdir='${datarootdir}/doc/${PACKAGE}'
946infodir='${datarootdir}/info'
947htmldir='${docdir}'
948dvidir='${docdir}'
949pdfdir='${docdir}'
950psdir='${docdir}'
951libdir='${exec_prefix}/lib'
952localedir='${datarootdir}/locale'
953mandir='${datarootdir}/man'
79c06341 954
671aa708 955ac_prev=
5213506e 956ac_dashdash=
671aa708
NN
957for ac_option
958do
671aa708
NN
959 # If the previous option needs an argument, assign it.
960 if test -n "$ac_prev"; then
5213506e 961 eval $ac_prev=\$ac_option
671aa708
NN
962 ac_prev=
963 continue
964 fi
79c06341 965
5213506e 966 case $ac_option in
22e05272
JM
967 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
968 *=) ac_optarg= ;;
969 *) ac_optarg=yes ;;
5213506e 970 esac
671aa708
NN
971
972 # Accept the important Cygnus configure options, so we can diagnose typos.
973
5213506e
RW
974 case $ac_dashdash$ac_option in
975 --)
976 ac_dashdash=yes ;;
671aa708
NN
977
978 -bindir | --bindir | --bindi | --bind | --bin | --bi)
979 ac_prev=bindir ;;
980 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 981 bindir=$ac_optarg ;;
671aa708
NN
982
983 -build | --build | --buil | --bui | --bu)
1c710c3c 984 ac_prev=build_alias ;;
671aa708 985 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 986 build_alias=$ac_optarg ;;
671aa708
NN
987
988 -cache-file | --cache-file | --cache-fil | --cache-fi \
989 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
990 ac_prev=cache_file ;;
991 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
992 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
993 cache_file=$ac_optarg ;;
994
995 --config-cache | -C)
996 cache_file=config.cache ;;
671aa708 997
5213506e 998 -datadir | --datadir | --datadi | --datad)
671aa708 999 ac_prev=datadir ;;
5213506e 1000 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 1001 datadir=$ac_optarg ;;
671aa708 1002
5213506e
RW
1003 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1004 | --dataroo | --dataro | --datar)
1005 ac_prev=datarootdir ;;
1006 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1007 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1008 datarootdir=$ac_optarg ;;
1009
671aa708 1010 -disable-* | --disable-*)
5213506e 1011 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 1012 # Reject names that are not valid shell variable names.
5213506e 1013 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1014 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
1015 ac_useropt_orig=$ac_useropt
1016 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017 case $ac_user_opts in
1018 *"
1019"enable_$ac_useropt"
1020"*) ;;
1021 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1022 ac_unrecognized_sep=', ';;
1023 esac
1024 eval enable_$ac_useropt=no ;;
1025
1026 -docdir | --docdir | --docdi | --doc | --do)
1027 ac_prev=docdir ;;
1028 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1029 docdir=$ac_optarg ;;
1030
1031 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1032 ac_prev=dvidir ;;
1033 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1034 dvidir=$ac_optarg ;;
671aa708
NN
1035
1036 -enable-* | --enable-*)
5213506e 1037 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 1038 # Reject names that are not valid shell variable names.
5213506e 1039 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1040 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
1041 ac_useropt_orig=$ac_useropt
1042 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043 case $ac_user_opts in
1044 *"
1045"enable_$ac_useropt"
1046"*) ;;
1047 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1048 ac_unrecognized_sep=', ';;
2aeb72e9 1049 esac
5213506e 1050 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1051
1052 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1053 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1054 | --exec | --exe | --ex)
1055 ac_prev=exec_prefix ;;
1056 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1057 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1058 | --exec=* | --exe=* | --ex=*)
1c710c3c 1059 exec_prefix=$ac_optarg ;;
671aa708
NN
1060
1061 -gas | --gas | --ga | --g)
1062 # Obsolete; use --with-gas.
1063 with_gas=yes ;;
1064
1c710c3c
DJ
1065 -help | --help | --hel | --he | -h)
1066 ac_init_help=long ;;
1067 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1068 ac_init_help=recursive ;;
1069 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1070 ac_init_help=short ;;
671aa708
NN
1071
1072 -host | --host | --hos | --ho)
1c710c3c 1073 ac_prev=host_alias ;;
671aa708 1074 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1075 host_alias=$ac_optarg ;;
671aa708 1076
5213506e
RW
1077 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1078 ac_prev=htmldir ;;
1079 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1080 | --ht=*)
1081 htmldir=$ac_optarg ;;
1082
671aa708
NN
1083 -includedir | --includedir | --includedi | --included | --include \
1084 | --includ | --inclu | --incl | --inc)
1085 ac_prev=includedir ;;
1086 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1087 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1088 includedir=$ac_optarg ;;
671aa708
NN
1089
1090 -infodir | --infodir | --infodi | --infod | --info | --inf)
1091 ac_prev=infodir ;;
1092 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1093 infodir=$ac_optarg ;;
671aa708
NN
1094
1095 -libdir | --libdir | --libdi | --libd)
1096 ac_prev=libdir ;;
1097 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1098 libdir=$ac_optarg ;;
671aa708
NN
1099
1100 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1101 | --libexe | --libex | --libe)
1102 ac_prev=libexecdir ;;
1103 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1104 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1105 libexecdir=$ac_optarg ;;
671aa708 1106
5213506e
RW
1107 -localedir | --localedir | --localedi | --localed | --locale)
1108 ac_prev=localedir ;;
1109 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1110 localedir=$ac_optarg ;;
1111
671aa708 1112 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1113 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1114 ac_prev=localstatedir ;;
1115 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1116 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1117 localstatedir=$ac_optarg ;;
671aa708
NN
1118
1119 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1120 ac_prev=mandir ;;
1121 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1122 mandir=$ac_optarg ;;
671aa708
NN
1123
1124 -nfp | --nfp | --nf)
1125 # Obsolete; use --without-fp.
1126 with_fp=no ;;
1127
1128 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1129 | --no-cr | --no-c | -n)
671aa708
NN
1130 no_create=yes ;;
1131
1132 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1133 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1134 no_recursion=yes ;;
1135
1136 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1137 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1138 | --oldin | --oldi | --old | --ol | --o)
1139 ac_prev=oldincludedir ;;
1140 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1141 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1142 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1143 oldincludedir=$ac_optarg ;;
671aa708
NN
1144
1145 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1146 ac_prev=prefix ;;
1147 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1148 prefix=$ac_optarg ;;
671aa708
NN
1149
1150 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1151 | --program-pre | --program-pr | --program-p)
1152 ac_prev=program_prefix ;;
1153 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1154 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1155 program_prefix=$ac_optarg ;;
671aa708
NN
1156
1157 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1158 | --program-suf | --program-su | --program-s)
1159 ac_prev=program_suffix ;;
1160 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1161 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1162 program_suffix=$ac_optarg ;;
671aa708
NN
1163
1164 -program-transform-name | --program-transform-name \
1165 | --program-transform-nam | --program-transform-na \
1166 | --program-transform-n | --program-transform- \
1167 | --program-transform | --program-transfor \
1168 | --program-transfo | --program-transf \
1169 | --program-trans | --program-tran \
1170 | --progr-tra | --program-tr | --program-t)
1171 ac_prev=program_transform_name ;;
1172 -program-transform-name=* | --program-transform-name=* \
1173 | --program-transform-nam=* | --program-transform-na=* \
1174 | --program-transform-n=* | --program-transform-=* \
1175 | --program-transform=* | --program-transfor=* \
1176 | --program-transfo=* | --program-transf=* \
1177 | --program-trans=* | --program-tran=* \
1178 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1179 program_transform_name=$ac_optarg ;;
671aa708 1180
5213506e
RW
1181 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1182 ac_prev=pdfdir ;;
1183 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1184 pdfdir=$ac_optarg ;;
1185
1186 -psdir | --psdir | --psdi | --psd | --ps)
1187 ac_prev=psdir ;;
1188 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1189 psdir=$ac_optarg ;;
1190
671aa708
NN
1191 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1192 | -silent | --silent | --silen | --sile | --sil)
1193 silent=yes ;;
1194
1195 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1196 ac_prev=sbindir ;;
1197 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1198 | --sbi=* | --sb=*)
1c710c3c 1199 sbindir=$ac_optarg ;;
671aa708
NN
1200
1201 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1202 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1203 | --sharedst | --shareds | --shared | --share | --shar \
1204 | --sha | --sh)
1205 ac_prev=sharedstatedir ;;
1206 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1207 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1208 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1209 | --sha=* | --sh=*)
1c710c3c 1210 sharedstatedir=$ac_optarg ;;
671aa708
NN
1211
1212 -site | --site | --sit)
1213 ac_prev=site ;;
1214 -site=* | --site=* | --sit=*)
1c710c3c 1215 site=$ac_optarg ;;
671aa708
NN
1216
1217 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1218 ac_prev=srcdir ;;
1219 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1220 srcdir=$ac_optarg ;;
671aa708
NN
1221
1222 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1223 | --syscon | --sysco | --sysc | --sys | --sy)
1224 ac_prev=sysconfdir ;;
1225 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1226 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1227 sysconfdir=$ac_optarg ;;
671aa708
NN
1228
1229 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1230 ac_prev=target_alias ;;
671aa708 1231 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1232 target_alias=$ac_optarg ;;
671aa708
NN
1233
1234 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1235 verbose=yes ;;
1236
1c710c3c
DJ
1237 -version | --version | --versio | --versi | --vers | -V)
1238 ac_init_version=: ;;
671aa708
NN
1239
1240 -with-* | --with-*)
5213506e 1241 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1242 # Reject names that are not valid shell variable names.
5213506e 1243 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1244 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1245 ac_useropt_orig=$ac_useropt
1246 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247 case $ac_user_opts in
1248 *"
1249"with_$ac_useropt"
1250"*) ;;
1251 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1252 ac_unrecognized_sep=', ';;
2aeb72e9 1253 esac
5213506e 1254 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1255
1256 -without-* | --without-*)
5213506e 1257 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1258 # Reject names that are not valid shell variable names.
5213506e 1259 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1260 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1261 ac_useropt_orig=$ac_useropt
1262 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1263 case $ac_user_opts in
1264 *"
1265"with_$ac_useropt"
1266"*) ;;
1267 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1268 ac_unrecognized_sep=', ';;
1269 esac
1270 eval with_$ac_useropt=no ;;
671aa708
NN
1271
1272 --x)
1273 # Obsolete; use --with-x.
1274 with_x=yes ;;
1275
1276 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1277 | --x-incl | --x-inc | --x-in | --x-i)
1278 ac_prev=x_includes ;;
1279 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1280 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1281 x_includes=$ac_optarg ;;
671aa708
NN
1282
1283 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1284 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1285 ac_prev=x_libraries ;;
1286 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1287 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1288 x_libraries=$ac_optarg ;;
671aa708 1289
22e05272
JM
1290 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1291Try \`$0 --help' for more information"
671aa708
NN
1292 ;;
1293
1c710c3c
DJ
1294 *=*)
1295 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1296 # Reject names that are not valid shell variable names.
5213506e
RW
1297 case $ac_envvar in #(
1298 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1299 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
5213506e
RW
1300 esac
1301 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1302 export $ac_envvar ;;
1303
671aa708 1304 *)
1c710c3c 1305 # FIXME: should be removed in autoconf 3.0.
5213506e 1306 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1307 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1308 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1309 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
671aa708
NN
1310 ;;
1311
1312 esac
1313done
1314
1315if test -n "$ac_prev"; then
1c710c3c 1316 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1317 as_fn_error $? "missing argument to $ac_option"
af71363e 1318fi
af71363e 1319
5213506e
RW
1320if test -n "$ac_unrecognized_opts"; then
1321 case $enable_option_checking in
1322 no) ;;
22e05272 1323 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
5213506e 1324 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1325 esac
5213506e 1326fi
2aeb72e9 1327
5213506e
RW
1328# Check all directory arguments for consistency.
1329for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1330 datadir sysconfdir sharedstatedir localstatedir includedir \
1331 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1332 libdir localedir mandir
2aeb72e9 1333do
5213506e
RW
1334 eval ac_val=\$$ac_var
1335 # Remove trailing slashes.
1336 case $ac_val in
1337 */ )
1338 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1339 eval $ac_var=\$ac_val;;
1340 esac
1341 # Be sure to have absolute directory names.
2aeb72e9 1342 case $ac_val in
5213506e
RW
1343 [\\/$]* | ?:[\\/]* ) continue;;
1344 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1345 esac
22e05272 1346 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1347done
1348
1c710c3c
DJ
1349# There might be people who depend on the old broken behavior: `$host'
1350# used to hold the argument of --host etc.
1351# FIXME: To remove some day.
1352build=$build_alias
1353host=$host_alias
1354target=$target_alias
0b0dc272 1355
1c710c3c
DJ
1356# FIXME: To remove some day.
1357if test "x$host_alias" != x; then
1358 if test "x$build_alias" = x; then
1359 cross_compiling=maybe
1c710c3c
DJ
1360 elif test "x$build_alias" != "x$host_alias"; then
1361 cross_compiling=yes
1362 fi
1363fi
1364
1365ac_tool_prefix=
1366test -n "$host_alias" && ac_tool_prefix=$host_alias-
1367
1368test "$silent" = yes && exec 6>/dev/null
671aa708 1369
671aa708 1370
5213506e
RW
1371ac_pwd=`pwd` && test -n "$ac_pwd" &&
1372ac_ls_di=`ls -di .` &&
1373ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1374 as_fn_error $? "working directory cannot be determined"
5213506e 1375test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1376 as_fn_error $? "pwd does not report name of working directory"
5213506e
RW
1377
1378
671aa708
NN
1379# Find the source files, if location was not specified.
1380if test -z "$srcdir"; then
1381 ac_srcdir_defaulted=yes
5213506e
RW
1382 # Try the directory containing this script, then the parent directory.
1383 ac_confdir=`$as_dirname -- "$as_myself" ||
1384$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1385 X"$as_myself" : 'X\(//\)[^/]' \| \
1386 X"$as_myself" : 'X\(//\)$' \| \
1387 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1388$as_echo X"$as_myself" |
1389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1390 s//\1/
1391 q
1392 }
1393 /^X\(\/\/\)[^/].*/{
1394 s//\1/
1395 q
1396 }
1397 /^X\(\/\/\)$/{
1398 s//\1/
1399 q
1400 }
1401 /^X\(\/\).*/{
1402 s//\1/
1403 q
1404 }
1405 s/.*/./; q'`
671aa708 1406 srcdir=$ac_confdir
5213506e 1407 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1408 srcdir=..
1409 fi
1410else
1411 ac_srcdir_defaulted=no
1412fi
5213506e
RW
1413if test ! -r "$srcdir/$ac_unique_file"; then
1414 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1415 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
5213506e
RW
1416fi
1417ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1418ac_abs_confdir=`(
22e05272 1419 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
5213506e
RW
1420 pwd)`
1421# When building in place, set srcdir=.
1422if test "$ac_abs_confdir" = "$ac_pwd"; then
1423 srcdir=.
1424fi
1425# Remove unnecessary trailing slashes from srcdir.
1426# Double slashes in file names in object file debugging info
1427# mess up M-x gdb in Emacs.
1428case $srcdir in
1429*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1430esac
87841584
AM
1431case $srcdir in
1432 *" "*)
22e05272 1433 as_fn_error $? "path to source, $srcdir, contains spaces"
87841584
AM
1434 ;;
1435esac
ac9e6043
RW
1436ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1437
5213506e
RW
1438for ac_var in $ac_precious_vars; do
1439 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1440 eval ac_env_${ac_var}_value=\$${ac_var}
1441 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1442 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1443done
1c710c3c
DJ
1444
1445#
1446# Report the --help message.
1447#
1448if test "$ac_init_help" = "long"; then
1449 # Omit some internal or obsolete options to make the list less imposing.
1450 # This message is too long to be a string in the A/UX 3.1 sh.
1451 cat <<_ACEOF
1452\`configure' configures this package to adapt to many kinds of systems.
1453
1454Usage: $0 [OPTION]... [VAR=VALUE]...
1455
1456To assign environment variables (e.g., CC, CFLAGS...), specify them as
1457VAR=VALUE. See below for descriptions of some of the useful variables.
1458
1459Defaults for the options are specified in brackets.
1460
1461Configuration:
1462 -h, --help display this help and exit
1463 --help=short display options specific to this package
1464 --help=recursive display the short help of all the included packages
1465 -V, --version display version information and exit
22e05272 1466 -q, --quiet, --silent do not print \`checking ...' messages
1c710c3c
DJ
1467 --cache-file=FILE cache test results in FILE [disabled]
1468 -C, --config-cache alias for \`--cache-file=config.cache'
1469 -n, --no-create do not create output files
1470 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1471
1c710c3c
DJ
1472Installation directories:
1473 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1474 [$ac_default_prefix]
1c710c3c 1475 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1476 [PREFIX]
1c710c3c
DJ
1477
1478By default, \`make install' will install all the files in
1479\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1480an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1481for instance \`--prefix=\$HOME'.
1482
1483For better control, use the options below.
1484
1485Fine tuning of the installation directories:
5213506e
RW
1486 --bindir=DIR user executables [EPREFIX/bin]
1487 --sbindir=DIR system admin executables [EPREFIX/sbin]
1488 --libexecdir=DIR program executables [EPREFIX/libexec]
1489 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1490 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1491 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1492 --libdir=DIR object code libraries [EPREFIX/lib]
1493 --includedir=DIR C header files [PREFIX/include]
1494 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1495 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1496 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1497 --infodir=DIR info documentation [DATAROOTDIR/info]
1498 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1499 --mandir=DIR man documentation [DATAROOTDIR/man]
1500 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1501 --htmldir=DIR html documentation [DOCDIR]
1502 --dvidir=DIR dvi documentation [DOCDIR]
1503 --pdfdir=DIR pdf documentation [DOCDIR]
1504 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1505_ACEOF
1506
1507 cat <<\_ACEOF
1508
1509Program names:
1510 --program-prefix=PREFIX prepend PREFIX to installed program names
1511 --program-suffix=SUFFIX append SUFFIX to installed program names
1512 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1513
1514System types:
1515 --build=BUILD configure for building on BUILD [guessed]
1516 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1517 --target=TARGET configure for building compilers for TARGET [HOST]
1518_ACEOF
1519fi
1520
1521if test -n "$ac_init_help"; then
1522
1523 cat <<\_ACEOF
1524
1525Optional Features:
5213506e 1526 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1527 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1528 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85c64bbe
BS
1529 --enable-as-accelerator-for=ARG
1530 build as offload target compiler. Specify offload
1531 host triple by ARG
1532 --enable-offload-targets=LIST
1533 enable offloading to devices from comma-separated
1534 LIST of TARGET[=DIR]. Use optional path to find
1535 offload target compiler during the build
fe5bfa67
TB
1536 --enable-offload-defaulted
1537 If enabled, configured but not installed offload compilers and
1538 libgomp plugins are silently ignored. Useful for distribution
1539 compilers where those are in separate optional packages.
1540
21539e2e 1541 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1542 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
324402a0 1543 --enable-compressed-debug-sections={all,gas,gold,ld,none}
78edb32f
L
1544 Enable compressed debug sections for gas, gold or ld
1545 by default
87e6d9dc
TB
1546 --disable-libquadmath do not build libquadmath directory
1547 --disable-libquadmath-support
1548 disable libquadmath support for Fortran
30b74385 1549 --enable-libada build libada directory
1eee94d3 1550 --enable-libgm2 build libgm2 directory
30b74385 1551 --enable-libssp build libssp directory
1873ec0c 1552 --disable-libstdcxx do not build libstdc++-v3 directory
ff3ac0f4 1553 --enable-bootstrap enable bootstrapping [yes if native build]
4a5e71f2
L
1554 --enable-pgo-build[=lto]
1555 enable the PGO build
33ad93b9 1556 --disable-isl-version-check
560d18d3 1557 disable check for isl version
d7f09764 1558 --enable-lto enable link time optimization support
45b3824d
TS
1559 --enable-linker-plugin-configure-flags=FLAGS
1560 additional flags for configuring linker plugins
1561 [none]
1562 --enable-linker-plugin-flags=FLAGS
1563 additional flags for configuring and building linker
1564 plugins [none]
b6cb10af 1565 --enable-host-pie build position independent host executables
cdfee50a 1566 --enable-host-shared build host code as shared libraries
33e39b66
AS
1567 --enable-stage1-languages[=all]
1568 choose additional languages to build during stage1.
1569 Mostly useful for compiler development
43c40f3e
RO
1570 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1571 Objective-C runtime
318a4e6d 1572 --enable-vtable-verify Enable vtable verification feature
30b74385 1573 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1574 force sequential configuration of sub-packages for
1575 the host, target or build machine, or all
1576 sub-packages
1577 --enable-maintainer-mode
1578 enable make rules and dependencies not useful (and
1579 sometimes confusing) to the casual installer
1580 --enable-stage1-checking[=all]
1581 choose additional checking for stage1 of the
1582 compiler
1c710c3c
DJ
1583 --enable-werror enable -Werror in bootstrap stage2 and later
1584
1585Optional Packages:
1586 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1587 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1588 --with-build-libsubdir=DIR Directory where to find libraries for build system
a05c2c75 1589 --with-system-zlib use installed libz
33e39b66
AS
1590 --with-mpc=PATH specify prefix directory for installed MPC package.
1591 Equivalent to --with-mpc-include=PATH/include plus
1592 --with-mpc-lib=PATH/lib
1593 --with-mpc-include=PATH specify directory for installed MPC include files
1594 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385 1595 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1596 Equivalent to --with-mpfr-include=PATH/include plus
1597 --with-mpfr-lib=PATH/lib
1c710c3c 1598 --with-mpfr-include=PATH
30b74385
RW
1599 specify directory for installed MPFR include files
1600 --with-mpfr-lib=PATH specify directory for the installed MPFR library
33e39b66
AS
1601 --with-gmp=PATH specify prefix directory for the installed GMP
1602 package. Equivalent to
1603 --with-gmp-include=PATH/include plus
1604 --with-gmp-lib=PATH/lib
30b74385
RW
1605 --with-gmp-include=PATH specify directory for installed GMP include files
1606 --with-gmp-lib=PATH specify directory for the installed GMP library
0b21f5d3 1607 --with-stage1-libs=LIBS libraries for stage1
aac9103b
TT
1608 --with-static-standard-libraries
1609 use -static-libstdc++ and -static-libgcc
1610 (default=auto)
33e39b66
AS
1611 --with-stage1-ldflags=FLAGS
1612 linker flags for stage1
33e39b66
AS
1613 --with-boot-libs=LIBS libraries for stage2 and later
1614 --with-boot-ldflags=FLAGS
1615 linker flags for stage2 and later
e357a5e0 1616 --with-isl=PATH Specify prefix directory for the installed isl
33e39b66 1617 package. Equivalent to
33ad93b9
RG
1618 --with-isl-include=PATH/include plus
1619 --with-isl-lib=PATH/lib
560d18d3
AK
1620 --with-isl-include=PATH Specify directory for installed isl include files
1621 --with-isl-lib=PATH Specify the directory for the installed isl library
114bf3f1
MK
1622 --with-target-bdw-gc=PATHLIST
1623 specify prefix directory for installed bdw-gc
1624 package. Equivalent to
1625 --with-target-bdw-gc-include=PATH/include plus
1626 --with-target-bdw-gc-lib=PATH/lib
1627 --with-target-bdw-gc-include=PATHLIST
1628 specify directories for installed bdw-gc include
1629 files
1630 --with-target-bdw-gc-lib=PATHLIST
1631 specify directories for installed bdw-gc library
3c36aa6b
JJ
1632 --with-gcc-major-version-only
1633 use only GCC major number in filesystem paths
30b74385 1634 --with-build-sysroot=SYSROOT
1c710c3c 1635 use sysroot as the system root during the build
c8aea42c 1636 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1637 map A to B, C to D ... in debug information
1638 --with-build-config='NAME NAME2...'
1639 use config/NAME.mk build configuration
30b74385 1640 --with-build-time-tools=PATH
1c710c3c 1641 use given path to find target tools during the build
1c710c3c
DJ
1642
1643Some influential environment variables:
1644 CC C compiler command
1645 CFLAGS C compiler flags
1646 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1647 nonstandard directory <lib dir>
5213506e 1648 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1649 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
5213506e 1650 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1651 CXX C++ compiler command
1652 CXXFLAGS C++ compiler flags
ffedf511
RW
1653 build_configargs
1654 additional configure arguments for build directories
1655 host_configargs
1656 additional configure arguments for host directories
1657 target_configargs
1658 additional configure arguments for target directories
278a7a38
AO
1659 AR AR for the host
1660 AS AS for the host
1661 DLLTOOL DLLTOOL for the host
3b5e8ee4 1662 DSYMUTIL DSYMUTIL for the host
278a7a38
AO
1663 LD LD for the host
1664 LIPO LIPO for the host
1665 NM NM for the host
1666 RANLIB RANLIB for the host
1667 STRIP STRIP for the host
1668 WINDRES WINDRES for the host
901119ae 1669 WINDMC WINDMC for the host
278a7a38
AO
1670 OBJCOPY OBJCOPY for the host
1671 OBJDUMP OBJDUMP for the host
e4a9a572 1672 OTOOL OTOOL for the host
e7a82751 1673 READELF READELF for the host
278a7a38
AO
1674 CC_FOR_TARGET
1675 CC for the target
1676 CXX_FOR_TARGET
1677 CXX for the target
1678 GCC_FOR_TARGET
1679 GCC for the target
278a7a38
AO
1680 GFORTRAN_FOR_TARGET
1681 GFORTRAN for the target
632e2a07
ILT
1682 GOC_FOR_TARGET
1683 GOC for the target
b4c522fa
IB
1684 GDC_FOR_TARGET
1685 GDC for the target
1eee94d3
GM
1686 GM2_FOR_TARGET
1687 GM2 for the target
278a7a38
AO
1688 AR_FOR_TARGET
1689 AR for the target
1690 AS_FOR_TARGET
1691 AS for the target
1692 DLLTOOL_FOR_TARGET
1693 DLLTOOL for the target
3b5e8ee4
IS
1694 DSYMUTIL_FOR_TARGET
1695 DSYMUTIL for the target
278a7a38
AO
1696 LD_FOR_TARGET
1697 LD for the target
1698 LIPO_FOR_TARGET
1699 LIPO for the target
1700 NM_FOR_TARGET
1701 NM for the target
9bccfdf5
AP
1702 OBJCOPY_FOR_TARGET
1703 OBJCOPY for the target
278a7a38
AO
1704 OBJDUMP_FOR_TARGET
1705 OBJDUMP for the target
e4a9a572
IS
1706 OTOOL_FOR_TARGET
1707 OTOOL for the target
278a7a38
AO
1708 RANLIB_FOR_TARGET
1709 RANLIB for the target
e7a82751
RM
1710 READELF_FOR_TARGET
1711 READELF for the target
278a7a38
AO
1712 STRIP_FOR_TARGET
1713 STRIP for the target
1714 WINDRES_FOR_TARGET
1715 WINDRES for the target
901119ae
KT
1716 WINDMC_FOR_TARGET
1717 WINDMC for the target
1c710c3c
DJ
1718
1719Use these variables to override the choices made by `configure' or to help
1720it to find libraries and programs with nonstandard names/locations.
1721
5213506e 1722Report bugs to the package provider.
1c710c3c 1723_ACEOF
5213506e 1724ac_status=$?
1c710c3c
DJ
1725fi
1726
1727if test "$ac_init_help" = "recursive"; then
1728 # If there are subdirs, report their specific --help.
1c710c3c 1729 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1730 test -d "$ac_dir" ||
1731 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1732 continue
1c710c3c
DJ
1733 ac_builddir=.
1734
5213506e
RW
1735case "$ac_dir" in
1736.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1737*)
1738 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1739 # A ".." for each directory in $ac_dir_suffix.
1740 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1741 case $ac_top_builddir_sub in
1742 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1743 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1744 esac ;;
1745esac
1746ac_abs_top_builddir=$ac_pwd
1747ac_abs_builddir=$ac_pwd$ac_dir_suffix
1748# for backward compatibility:
1749ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1750
1751case $srcdir in
5213506e 1752 .) # We are building in place.
1c710c3c 1753 ac_srcdir=.
5213506e
RW
1754 ac_top_srcdir=$ac_top_builddir_sub
1755 ac_abs_top_srcdir=$ac_pwd ;;
1756 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1757 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1758 ac_top_srcdir=$srcdir
1759 ac_abs_top_srcdir=$srcdir ;;
1760 *) # Relative name.
1761 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1762 ac_top_srcdir=$ac_top_build_prefix$srcdir
1763 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1764esac
5213506e
RW
1765ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1766
1767 cd "$ac_dir" || { ac_status=$?; continue; }
1768 # Check for guested configure.
1769 if test -f "$ac_srcdir/configure.gnu"; then
1770 echo &&
1771 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1772 elif test -f "$ac_srcdir/configure"; then
1773 echo &&
1774 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1775 else
5213506e
RW
1776 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1777 fi || ac_status=$?
1778 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1779 done
1780fi
1781
5213506e 1782test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1783if $ac_init_version; then
1784 cat <<\_ACEOF
5213506e 1785configure
22e05272 1786generated by GNU Autoconf 2.69
1c710c3c 1787
22e05272 1788Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
1789This configure script is free software; the Free Software Foundation
1790gives unlimited permission to copy, distribute and modify it.
1791_ACEOF
5213506e 1792 exit
0b0dc272 1793fi
5213506e
RW
1794
1795## ------------------------ ##
1796## Autoconf initialization. ##
1797## ------------------------ ##
1798
1799# ac_fn_c_try_compile LINENO
1800# --------------------------
1801# Try to compile conftest.$ac_ext, and return whether this succeeded.
1802ac_fn_c_try_compile ()
1803{
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 rm -f conftest.$ac_objext
1806 if { { ac_try="$ac_compile"
1807case "(($ac_try" in
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1810esac
1811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812$as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_compile") 2>conftest.err
1814 ac_status=$?
1815 if test -s conftest.err; then
1816 grep -v '^ *+' conftest.err >conftest.er1
1817 cat conftest.er1 >&5
1818 mv -f conftest.er1 conftest.err
1819 fi
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } && {
1822 test -z "$ac_c_werror_flag" ||
1823 test ! -s conftest.err
1824 } && test -s conftest.$ac_objext; then :
1825 ac_retval=0
1826else
1827 $as_echo "$as_me: failed program was:" >&5
1828sed 's/^/| /' conftest.$ac_ext >&5
1829
1830 ac_retval=1
1831fi
22e05272
JM
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833 as_fn_set_status $ac_retval
5213506e
RW
1834
1835} # ac_fn_c_try_compile
1836
1837# ac_fn_cxx_try_compile LINENO
1838# ----------------------------
1839# Try to compile conftest.$ac_ext, and return whether this succeeded.
1840ac_fn_cxx_try_compile ()
1841{
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 rm -f conftest.$ac_objext
1844 if { { ac_try="$ac_compile"
1845case "(($ac_try" in
1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1848esac
1849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850$as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_compile") 2>conftest.err
1852 ac_status=$?
1853 if test -s conftest.err; then
1854 grep -v '^ *+' conftest.err >conftest.er1
1855 cat conftest.er1 >&5
1856 mv -f conftest.er1 conftest.err
1857 fi
1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; } && {
1860 test -z "$ac_cxx_werror_flag" ||
1861 test ! -s conftest.err
1862 } && test -s conftest.$ac_objext; then :
1863 ac_retval=0
1864else
1865 $as_echo "$as_me: failed program was:" >&5
1866sed 's/^/| /' conftest.$ac_ext >&5
1867
1868 ac_retval=1
1869fi
22e05272
JM
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871 as_fn_set_status $ac_retval
5213506e
RW
1872
1873} # ac_fn_cxx_try_compile
1874
0b21f5d3
EB
1875# ac_fn_cxx_try_link LINENO
1876# -------------------------
1877# Try to link conftest.$ac_ext, and return whether this succeeded.
1878ac_fn_cxx_try_link ()
1879{
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 rm -f conftest.$ac_objext conftest$ac_exeext
1882 if { { ac_try="$ac_link"
1883case "(($ac_try" in
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1886esac
1887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888$as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_link") 2>conftest.err
1890 ac_status=$?
1891 if test -s conftest.err; then
1892 grep -v '^ *+' conftest.err >conftest.er1
1893 cat conftest.er1 >&5
1894 mv -f conftest.er1 conftest.err
1895 fi
1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897 test $ac_status = 0; } && {
1898 test -z "$ac_cxx_werror_flag" ||
1899 test ! -s conftest.err
1900 } && test -s conftest$ac_exeext && {
1901 test "$cross_compiling" = yes ||
22e05272 1902 test -x conftest$ac_exeext
0b21f5d3
EB
1903 }; then :
1904 ac_retval=0
1905else
1906 $as_echo "$as_me: failed program was:" >&5
1907sed 's/^/| /' conftest.$ac_ext >&5
1908
1909 ac_retval=1
1910fi
1911 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1912 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1913 # interfere with the next link command; also delete a directory that is
1914 # left behind by Apple's compiler. We do this before executing the actions.
1915 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917 as_fn_set_status $ac_retval
0b21f5d3
EB
1918
1919} # ac_fn_cxx_try_link
1920
5213506e
RW
1921# ac_fn_c_try_link LINENO
1922# -----------------------
1923# Try to link conftest.$ac_ext, and return whether this succeeded.
1924ac_fn_c_try_link ()
1925{
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 rm -f conftest.$ac_objext conftest$ac_exeext
1928 if { { ac_try="$ac_link"
1929case "(($ac_try" in
1930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1931 *) ac_try_echo=$ac_try;;
1932esac
1933eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934$as_echo "$ac_try_echo"; } >&5
1935 (eval "$ac_link") 2>conftest.err
1936 ac_status=$?
1937 if test -s conftest.err; then
1938 grep -v '^ *+' conftest.err >conftest.er1
1939 cat conftest.er1 >&5
1940 mv -f conftest.er1 conftest.err
1941 fi
1942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943 test $ac_status = 0; } && {
1944 test -z "$ac_c_werror_flag" ||
1945 test ! -s conftest.err
1946 } && test -s conftest$ac_exeext && {
1947 test "$cross_compiling" = yes ||
22e05272 1948 test -x conftest$ac_exeext
5213506e
RW
1949 }; then :
1950 ac_retval=0
1951else
1952 $as_echo "$as_me: failed program was:" >&5
1953sed 's/^/| /' conftest.$ac_ext >&5
1954
1955 ac_retval=1
1956fi
1957 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1958 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1959 # interfere with the next link command; also delete a directory that is
1960 # left behind by Apple's compiler. We do this before executing the actions.
1961 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963 as_fn_set_status $ac_retval
5213506e
RW
1964
1965} # ac_fn_c_try_link
1966cat >config.log <<_ACEOF
1c710c3c
DJ
1967This file contains any messages produced by compilers while
1968running configure, to aid debugging if configure makes a mistake.
1969
1970It was created by $as_me, which was
22e05272 1971generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
1972
1973 $ $0 $@
1974
1975_ACEOF
5213506e 1976exec 5>>config.log
1c710c3c
DJ
1977{
1978cat <<_ASUNAME
1979## --------- ##
1980## Platform. ##
1981## --------- ##
1982
1983hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1984uname -m = `(uname -m) 2>/dev/null || echo unknown`
1985uname -r = `(uname -r) 2>/dev/null || echo unknown`
1986uname -s = `(uname -s) 2>/dev/null || echo unknown`
1987uname -v = `(uname -v) 2>/dev/null || echo unknown`
1988
1989/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1990/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1991
1992/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1993/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1994/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1995/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1996/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1997/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1998/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1999
2000_ASUNAME
2001
2002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003for as_dir in $PATH
2004do
2005 IFS=$as_save_IFS
2006 test -z "$as_dir" && as_dir=.
5213506e
RW
2007 $as_echo "PATH: $as_dir"
2008 done
2009IFS=$as_save_IFS
1c710c3c
DJ
2010
2011} >&5
2012
2013cat >&5 <<_ACEOF
2014
2015
2016## ----------- ##
2017## Core tests. ##
2018## ----------- ##
2019
2020_ACEOF
2021
2022
2023# Keep a trace of the command line.
2024# Strip out --no-create and --no-recursion so they do not pile up.
2025# Strip out --silent because we don't want to record it for future runs.
2026# Also quote any args containing shell meta-characters.
2027# Make two passes to allow for proper duplicate-argument suppression.
2028ac_configure_args=
2029ac_configure_args0=
2030ac_configure_args1=
1c710c3c
DJ
2031ac_must_keep_next=false
2032for ac_pass in 1 2
2033do
2034 for ac_arg
2035 do
2036 case $ac_arg in
2037 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2038 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2039 | -silent | --silent | --silen | --sile | --sil)
2040 continue ;;
5213506e
RW
2041 *\'*)
2042 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2043 esac
2044 case $ac_pass in
5213506e 2045 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 2046 2)
5213506e 2047 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
2048 if test $ac_must_keep_next = true; then
2049 ac_must_keep_next=false # Got value, back to normal.
2050 else
2051 case $ac_arg in
2052 *=* | --config-cache | -C | -disable-* | --disable-* \
2053 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2054 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2055 | -with-* | --with-* | -without-* | --without-* | --x)
2056 case "$ac_configure_args0 " in
2057 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2058 esac
2059 ;;
2060 -* ) ac_must_keep_next=true ;;
2061 esac
2062 fi
5213506e 2063 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
2064 ;;
2065 esac
2066 done
2067done
5213506e
RW
2068{ ac_configure_args0=; unset ac_configure_args0;}
2069{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
2070
2071# When interrupted or exit'd, cleanup temporary files, and complete
2072# config.log. We remove comments because anyway the quotes in there
2073# would cause problems or look ugly.
5213506e
RW
2074# WARNING: Use '\'' to represent an apostrophe within the trap.
2075# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
2076trap 'exit_status=$?
2077 # Save into config.log some information that might help in debugging.
2078 {
2079 echo
2080
22e05272 2081 $as_echo "## ---------------- ##
1c710c3c 2082## Cache variables. ##
22e05272 2083## ---------------- ##"
1c710c3c
DJ
2084 echo
2085 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2086(
2087 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2088 eval ac_val=\$$ac_var
2089 case $ac_val in #(
2090 *${as_nl}*)
2091 case $ac_var in #(
2092 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2093$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2094 esac
2095 case $ac_var in #(
2096 _ | IFS | as_nl) ;; #(
2097 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2098 *) { eval $ac_var=; unset $ac_var;} ;;
2099 esac ;;
2100 esac
2101 done
1c710c3c 2102 (set) 2>&1 |
5213506e
RW
2103 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2104 *${as_nl}ac_space=\ *)
1c710c3c 2105 sed -n \
5213506e
RW
2106 "s/'\''/'\''\\\\'\'''\''/g;
2107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2108 ;; #(
1c710c3c 2109 *)
5213506e 2110 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 2111 ;;
5213506e
RW
2112 esac |
2113 sort
2114)
1c710c3c
DJ
2115 echo
2116
22e05272 2117 $as_echo "## ----------------- ##
1c710c3c 2118## Output variables. ##
22e05272 2119## ----------------- ##"
1c710c3c
DJ
2120 echo
2121 for ac_var in $ac_subst_vars
2122 do
5213506e
RW
2123 eval ac_val=\$$ac_var
2124 case $ac_val in
2125 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2126 esac
2127 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2128 done | sort
2129 echo
2130
2131 if test -n "$ac_subst_files"; then
22e05272 2132 $as_echo "## ------------------- ##
5213506e 2133## File substitutions. ##
22e05272 2134## ------------------- ##"
1c710c3c
DJ
2135 echo
2136 for ac_var in $ac_subst_files
2137 do
5213506e
RW
2138 eval ac_val=\$$ac_var
2139 case $ac_val in
2140 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2141 esac
2142 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2143 done | sort
2144 echo
2145 fi
2146
2147 if test -s confdefs.h; then
22e05272 2148 $as_echo "## ----------- ##
1c710c3c 2149## confdefs.h. ##
22e05272 2150## ----------- ##"
1c710c3c 2151 echo
5213506e 2152 cat confdefs.h
1c710c3c
DJ
2153 echo
2154 fi
2155 test "$ac_signal" != 0 &&
5213506e
RW
2156 $as_echo "$as_me: caught signal $ac_signal"
2157 $as_echo "$as_me: exit $exit_status"
1c710c3c 2158 } >&5
5213506e
RW
2159 rm -f core *.core core.conftest.* &&
2160 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2161 exit $exit_status
5213506e 2162' 0
1c710c3c 2163for ac_signal in 1 2 13 15; do
5213506e 2164 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2165done
2166ac_signal=0
2167
2168# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2169rm -f -r conftest* confdefs.h
2170
2171$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2172
2173# Predefined preprocessor variables.
2174
2175cat >>confdefs.h <<_ACEOF
2176#define PACKAGE_NAME "$PACKAGE_NAME"
2177_ACEOF
2178
1c710c3c
DJ
2179cat >>confdefs.h <<_ACEOF
2180#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2181_ACEOF
2182
1c710c3c
DJ
2183cat >>confdefs.h <<_ACEOF
2184#define PACKAGE_VERSION "$PACKAGE_VERSION"
2185_ACEOF
0b0dc272 2186
1c710c3c
DJ
2187cat >>confdefs.h <<_ACEOF
2188#define PACKAGE_STRING "$PACKAGE_STRING"
2189_ACEOF
2190
1c710c3c
DJ
2191cat >>confdefs.h <<_ACEOF
2192#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2193_ACEOF
2194
5213506e
RW
2195cat >>confdefs.h <<_ACEOF
2196#define PACKAGE_URL "$PACKAGE_URL"
2197_ACEOF
2198
1c710c3c
DJ
2199
2200# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2201# Prefer an explicitly selected file to automatically selected ones.
2202ac_site_file1=NONE
2203ac_site_file2=NONE
2204if test -n "$CONFIG_SITE"; then
22e05272
JM
2205 # We do not want a PATH search for config.site.
2206 case $CONFIG_SITE in #((
2207 -*) ac_site_file1=./$CONFIG_SITE;;
2208 */*) ac_site_file1=$CONFIG_SITE;;
2209 *) ac_site_file1=./$CONFIG_SITE;;
2210 esac
5213506e
RW
2211elif test "x$prefix" != xNONE; then
2212 ac_site_file1=$prefix/share/config.site
2213 ac_site_file2=$prefix/etc/config.site
2214else
2215 ac_site_file1=$ac_default_prefix/share/config.site
2216 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2217fi
5213506e
RW
2218for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2219do
2220 test "x$ac_site_file" = xNONE && continue
22e05272 2221 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
5213506e
RW
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2223$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2224 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2225 . "$ac_site_file" \
2226 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2227$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2228as_fn_error $? "failed to load site script $ac_site_file
2229See \`config.log' for more details" "$LINENO" 5; }
671aa708
NN
2230 fi
2231done
2232
2233if test -r "$cache_file"; then
22e05272
JM
2234 # Some versions of bash will fail to source /dev/null (special files
2235 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2236 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
5213506e
RW
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2238$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2239 case $cache_file in
5213506e
RW
2240 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2241 *) . "./$cache_file";;
1c710c3c
DJ
2242 esac
2243 fi
671aa708 2244else
5213506e
RW
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2246$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2247 >$cache_file
2248fi
2249
2250# Check that the precious variables saved in the cache have kept the same
2251# value.
2252ac_cache_corrupted=false
5213506e 2253for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2254 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2255 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2256 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2257 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2258 case $ac_old_set,$ac_new_set in
2259 set,)
5213506e
RW
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2261$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2262 ac_cache_corrupted=: ;;
2263 ,set)
5213506e
RW
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2265$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2266 ac_cache_corrupted=: ;;
2267 ,);;
2268 *)
2269 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2270 # differences in whitespace do not lead to failure.
2271 ac_old_val_w=`echo x $ac_old_val`
2272 ac_new_val_w=`echo x $ac_new_val`
2273 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2275$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2276 ac_cache_corrupted=:
2277 else
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2279$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2280 eval $ac_var=\$ac_old_val
2281 fi
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2283$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2285$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2286 fi;;
2287 esac
2288 # Pass precious variables to config.status.
2289 if test "$ac_new_set" = set; then
2290 case $ac_new_val in
5213506e 2291 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2292 *) ac_arg=$ac_var=$ac_new_val ;;
2293 esac
2294 case " $ac_configure_args " in
2295 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2296 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2297 esac
2298 fi
2299done
2300if $ac_cache_corrupted; then
5213506e
RW
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2302$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2304$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2305 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2306fi
5213506e
RW
2307## -------------------- ##
2308## Main body of script. ##
2309## -------------------- ##
671aa708 2310
2aeb72e9
DD
2311ac_ext=c
2312ac_cpp='$CPP $CPPFLAGS'
2313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2315ac_compiler_gnu=$ac_cv_c_compiler_gnu
2316
1c710c3c
DJ
2317
2318
2319
1c710c3c
DJ
2320
2321
0115d4a3 2322
1c710c3c 2323
ad33ff57
RW
2324progname=$0
2325# if PWD already has a value, it is probably wrong.
2326if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2327
2328# Export original configure arguments for use by sub-configures.
2329# Quote arguments with shell meta charatcers.
2330TOPLEVEL_CONFIGURE_ARGUMENTS=
2331set -- "$progname" "$@"
2332for ac_arg
2333do
2334 case "$ac_arg" in
2335 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2336 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2337 # if the argument is of the form -foo=baz, quote the baz part only
2338 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2339 *) ;;
2340 esac
2341 # Add the quoted argument to the list.
2342 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2343done
2344if test "$silent" = yes; then
2345 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2346fi
2347# Remove the initial space we just introduced and, as these will be
2348# expanded by make, quote '$'.
2349TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2350
1c710c3c
DJ
2351
2352# Find the build, host, and target systems.
671aa708 2353ac_aux_dir=
5213506e 2354for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2355 if test -f "$ac_dir/install-sh"; then
2356 ac_aux_dir=$ac_dir
2357 ac_install_sh="$ac_aux_dir/install-sh -c"
2358 break
2359 elif test -f "$ac_dir/install.sh"; then
2360 ac_aux_dir=$ac_dir
2361 ac_install_sh="$ac_aux_dir/install.sh -c"
2362 break
2363 elif test -f "$ac_dir/shtool"; then
2364 ac_aux_dir=$ac_dir
2365 ac_install_sh="$ac_aux_dir/shtool install -c"
2366 break
2367 fi
671aa708
NN
2368done
2369if test -z "$ac_aux_dir"; then
22e05272 2370 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2371fi
5213506e
RW
2372
2373# These three variables are undocumented and unsupported,
2374# and are intended to be withdrawn in a future Autoconf release.
2375# They can cause serious problems if a builder's source tree is in a directory
2376# whose full name contains unusual characters.
2377ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2378ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2379ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2380
671aa708 2381
1c710c3c 2382# Make sure we can run config.sub.
5213506e 2383$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2384 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5213506e
RW
2385
2386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2387$as_echo_n "checking build system type... " >&6; }
22e05272 2388if ${ac_cv_build+:} false; then :
5213506e
RW
2389 $as_echo_n "(cached) " >&6
2390else
2391 ac_build_alias=$build_alias
2392test "x$ac_build_alias" = x &&
2393 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2394test "x$ac_build_alias" = x &&
22e05272 2395 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5213506e 2396ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2397 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5213506e
RW
2398
2399fi
2400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2401$as_echo "$ac_cv_build" >&6; }
2402case $ac_cv_build in
2403*-*-*) ;;
22e05272 2404*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5213506e 2405esac
1c710c3c 2406build=$ac_cv_build
5213506e
RW
2407ac_save_IFS=$IFS; IFS='-'
2408set x $ac_cv_build
2409shift
2410build_cpu=$1
2411build_vendor=$2
2412shift; shift
2413# Remember, the first character of IFS is used to create $*,
2414# except with old shells:
2415build_os=$*
2416IFS=$ac_save_IFS
2417case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2418
671aa708 2419
1c710c3c
DJ
2420 case ${build_alias} in
2421 "") build_noncanonical=${build} ;;
2422 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2423esac
2424
2425
af71363e 2426
1c710c3c
DJ
2427 case ${host_alias} in
2428 "") host_noncanonical=${build_noncanonical} ;;
2429 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2430esac
2431
af71363e 2432
1c710c3c
DJ
2433
2434 case ${target_alias} in
2435 "") target_noncanonical=${host_noncanonical} ;;
2436 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2437esac
2438
af71363e 2439
1c710c3c
DJ
2440
2441
2442test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2443 test "$program_prefix$program_suffix$program_transform_name" = \
2444 NONENONEs,x,x, &&
1c710c3c 2445 program_transform_name=s,y,y,
af71363e 2446
5213506e
RW
2447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2448$as_echo_n "checking host system type... " >&6; }
22e05272 2449if ${ac_cv_host+:} false; then :
5213506e 2450 $as_echo_n "(cached) " >&6
af71363e 2451else
5213506e
RW
2452 if test "x$host_alias" = x; then
2453 ac_cv_host=$ac_cv_build
2454else
2455 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2456 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5213506e 2457fi
1c710c3c 2458
af71363e 2459fi
5213506e
RW
2460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2461$as_echo "$ac_cv_host" >&6; }
2462case $ac_cv_host in
2463*-*-*) ;;
22e05272 2464*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5213506e 2465esac
1c710c3c 2466host=$ac_cv_host
5213506e
RW
2467ac_save_IFS=$IFS; IFS='-'
2468set x $ac_cv_host
2469shift
2470host_cpu=$1
2471host_vendor=$2
2472shift; shift
2473# Remember, the first character of IFS is used to create $*,
2474# except with old shells:
2475host_os=$*
2476IFS=$ac_save_IFS
2477case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2478
2479
5213506e
RW
2480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2481$as_echo_n "checking target system type... " >&6; }
22e05272 2482if ${ac_cv_target+:} false; then :
5213506e 2483 $as_echo_n "(cached) " >&6
1c710c3c 2484else
5213506e
RW
2485 if test "x$target_alias" = x; then
2486 ac_cv_target=$ac_cv_host
2487else
2488 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2489 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5213506e 2490fi
1c710c3c
DJ
2491
2492fi
5213506e
RW
2493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2494$as_echo "$ac_cv_target" >&6; }
2495case $ac_cv_target in
2496*-*-*) ;;
22e05272 2497*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
5213506e 2498esac
1c710c3c 2499target=$ac_cv_target
5213506e
RW
2500ac_save_IFS=$IFS; IFS='-'
2501set x $ac_cv_target
2502shift
2503target_cpu=$1
2504target_vendor=$2
2505shift; shift
2506# Remember, the first character of IFS is used to create $*,
2507# except with old shells:
2508target_os=$*
2509IFS=$ac_save_IFS
2510case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2511
2512
2513# The aliases save the names the user supplied, while $host etc.
2514# will get canonicalized.
2515test -n "$target_alias" &&
2516 test "$program_prefix$program_suffix$program_transform_name" = \
2517 NONENONEs,x,x, &&
2518 program_prefix=${target_alias}-
5213506e 2519
671aa708 2520test "$program_prefix" != NONE &&
5213506e 2521 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2522# Use a double $ so make ignores it.
2523test "$program_suffix" != NONE &&
5213506e
RW
2524 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2525# Double any \ or $.
1c710c3c 2526# By default was `s,x,x', remove it if useless.
5213506e
RW
2527ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2528program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2529
671aa708
NN
2530
2531
775956d0
NN
2532# Get 'install' or 'install-sh' and its variants.
2533# Find a good install program. We prefer a C program (faster),
2534# so one script is as good as another. But avoid the broken or
2535# incompatible versions:
2536# SysV /etc/install, /usr/sbin/install
2537# SunOS /usr/etc/install
2538# IRIX /sbin/install
2539# AIX /bin/install
1c710c3c 2540# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2541# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2542# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2543# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2544# OS/2's system install, which has a completely different semantic
775956d0 2545# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2546# Reject install programs that cannot install multiple files.
5213506e
RW
2547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2548$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2549if test -z "$INSTALL"; then
22e05272 2550if ${ac_cv_path_install+:} false; then :
5213506e 2551 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2552else
2553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2554for as_dir in $PATH
2555do
2556 IFS=$as_save_IFS
2557 test -z "$as_dir" && as_dir=.
5213506e
RW
2558 # Account for people who put trailing slashes in PATH elements.
2559case $as_dir/ in #((
2560 ./ | .// | /[cC]/* | \
1c710c3c 2561 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2562 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2563 /usr/ucb/* ) ;;
2564 *)
2565 # OSF1 and SCO ODT 3.0 have their own names for install.
2566 # Don't use installbsd from OSF since it installs stuff as root
2567 # by default.
2568 for ac_prog in ginstall scoinst install; do
2569 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2570 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 2571 if test $ac_prog = install &&
1c710c3c 2572 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2573 # AIX install. It has an incompatible calling convention.
2574 :
1c710c3c
DJ
2575 elif test $ac_prog = install &&
2576 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2577 # program-specific install script used by HP pwplus--don't use.
2578 :
775956d0 2579 else
38d24731
RW
2580 rm -rf conftest.one conftest.two conftest.dir
2581 echo one > conftest.one
2582 echo two > conftest.two
2583 mkdir conftest.dir
2584 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2585 test -s conftest.one && test -s conftest.two &&
2586 test -s conftest.dir/conftest.one &&
2587 test -s conftest.dir/conftest.two
2588 then
2589 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2590 break 3
2591 fi
775956d0
NN
2592 fi
2593 fi
2594 done
1c710c3c
DJ
2595 done
2596 ;;
2597esac
5213506e
RW
2598
2599 done
2600IFS=$as_save_IFS
1c710c3c 2601
38d24731 2602rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2603
2604fi
2605 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2606 INSTALL=$ac_cv_path_install
775956d0 2607 else
38d24731
RW
2608 # As a last resort, use the slow shell script. Don't cache a
2609 # value for INSTALL within a source directory, because that will
775956d0 2610 # break other packages using the cache if that directory is
38d24731 2611 # removed, or if the value is a relative name.
1c710c3c 2612 INSTALL=$ac_install_sh
775956d0
NN
2613 fi
2614fi
5213506e
RW
2615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2616$as_echo "$INSTALL" >&6; }
775956d0
NN
2617
2618# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2619# It thinks the first close brace ends the variable substitution.
2620test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2621
1c710c3c 2622test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2623
2624test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2625
5213506e
RW
2626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2627$as_echo_n "checking whether ln works... " >&6; }
22e05272 2628if ${acx_cv_prog_LN+:} false; then :
5213506e 2629 $as_echo_n "(cached) " >&6
ad6717df
PB
2630else
2631 rm -f conftestdata_t
2632echo >conftestdata_f
2633if ln conftestdata_f conftestdata_t 2>/dev/null
2634then
2635 acx_cv_prog_LN=ln
2636else
2637 acx_cv_prog_LN=no
2638fi
2639rm -f conftestdata_f conftestdata_t
2640
2641fi
2642if test $acx_cv_prog_LN = no; then
2643 LN="cp"
5213506e
RW
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2645$as_echo "no, using $LN" >&6; }
ad6717df
PB
2646else
2647 LN="$acx_cv_prog_LN"
5213506e
RW
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2649$as_echo "yes" >&6; }
ad6717df
PB
2650fi
2651
5213506e
RW
2652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2653$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2654LN_S=$as_ln_s
2655if test "$LN_S" = "ln -s"; then
5213506e
RW
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2657$as_echo "yes" >&6; }
fb0103e5 2658else
5213506e
RW
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2660$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2661fi
2662
87264276
PB
2663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2664$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 2665if ${ac_cv_path_SED+:} false; then :
87264276
PB
2666 $as_echo_n "(cached) " >&6
2667else
2668 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2669 for ac_i in 1 2 3 4 5 6 7; do
2670 ac_script="$ac_script$as_nl$ac_script"
2671 done
2672 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2673 { ac_script=; unset ac_script;}
2674 if test -z "$SED"; then
2675 ac_path_SED_found=false
2676 # Loop through the user's path and test for each of PROGNAME-LIST
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678for as_dir in $PATH
2679do
2680 IFS=$as_save_IFS
2681 test -z "$as_dir" && as_dir=.
2682 for ac_prog in sed gsed; do
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 2685 as_fn_executable_p "$ac_path_SED" || continue
87264276
PB
2686# Check for GNU ac_path_SED and select it if it is found.
2687 # Check for GNU $ac_path_SED
2688case `"$ac_path_SED" --version 2>&1` in
2689*GNU*)
2690 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2691*)
2692 ac_count=0
2693 $as_echo_n 0123456789 >"conftest.in"
2694 while :
2695 do
2696 cat "conftest.in" "conftest.in" >"conftest.tmp"
2697 mv "conftest.tmp" "conftest.in"
2698 cp "conftest.in" "conftest.nl"
2699 $as_echo '' >> "conftest.nl"
2700 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2701 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2702 as_fn_arith $ac_count + 1 && ac_count=$as_val
2703 if test $ac_count -gt ${ac_path_SED_max-0}; then
2704 # Best one so far, save it but keep looking for a better one
2705 ac_cv_path_SED="$ac_path_SED"
2706 ac_path_SED_max=$ac_count
2707 fi
2708 # 10*(2^10) chars as input seems more than enough
2709 test $ac_count -gt 10 && break
2710 done
2711 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2712esac
2713
2714 $ac_path_SED_found && break 3
2715 done
2716 done
2717 done
2718IFS=$as_save_IFS
2719 if test -z "$ac_cv_path_SED"; then
22e05272 2720 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
87264276
PB
2721 fi
2722else
2723 ac_cv_path_SED=$SED
2724fi
2725
2726fi
2727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2728$as_echo "$ac_cv_path_SED" >&6; }
2729 SED="$ac_cv_path_SED"
2730 rm -f conftest.sed
2731
2732for ac_prog in gawk mawk nawk awk
2733do
2734 # Extract the first word of "$ac_prog", so it can be a program name with args.
2735set dummy $ac_prog; ac_word=$2
2736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2737$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2738if ${ac_cv_prog_AWK+:} false; then :
87264276
PB
2739 $as_echo_n "(cached) " >&6
2740else
2741 if test -n "$AWK"; then
2742 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2743else
2744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745for as_dir in $PATH
2746do
2747 IFS=$as_save_IFS
2748 test -z "$as_dir" && as_dir=.
2749 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
87264276
PB
2751 ac_cv_prog_AWK="$ac_prog"
2752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2753 break 2
2754 fi
2755done
2756 done
2757IFS=$as_save_IFS
2758
2759fi
2760fi
2761AWK=$ac_cv_prog_AWK
2762if test -n "$AWK"; then
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2764$as_echo "$AWK" >&6; }
2765else
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767$as_echo "no" >&6; }
2768fi
2769
2770
2771 test -n "$AWK" && break
2772done
2773
775956d0 2774
ee6a22df
L
2775srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2776
2777# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2778# a relative path.
2779if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2780 INSTALL="${srcpwd}/install-sh -c"
2781fi
2782
671aa708
NN
2783# Set srcdir to "." if that's what it is.
2784# This is important for multilib support.
2785pwd=`${PWDCMD-pwd}`
671aa708
NN
2786if test "${pwd}" = "${srcpwd}" ; then
2787 srcdir=.
79c06341
JL
2788fi
2789
671aa708 2790topsrcdir=$srcpwd
5d4a5ee6 2791
671aa708 2792extra_host_args=
afabd8e6 2793
671aa708
NN
2794### To add a new directory to the tree, first choose whether it is a target
2795### or a host dependent tool. Then put it into the appropriate list
2796### (library or tools, host or target), doing a dependency sort.
79c06341 2797
1c710c3c 2798# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2799# configdirs, or target_configdirs; see the serialization section below.
79c06341 2800
1c710c3c
DJ
2801# Dependency sorting is only needed when *configuration* must be done in
2802# a particular order. In all cases a dependency should be specified in
671aa708 2803# the Makefile, whether or not it's implicitly specified here.
79c06341 2804
671aa708
NN
2805# Double entries in build_configdirs, configdirs, or target_configdirs may
2806# cause circular dependencies and break everything horribly.
79c06341 2807
23f6b2f9
PB
2808# these library is used by various programs built for the build
2809# environment
2810#
929315a9 2811build_libs="build-libiberty build-libcpp"
23f6b2f9
PB
2812
2813# these tools are built for the build environment
85bfb75e 2814build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2815
671aa708 2816# these libraries are used by various programs built for the host environment
eae1a5d4 2817#f
3de627ff 2818host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe"
671aa708 2819
671aa708
NN
2820# these tools are built for the host environment
2821# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2822# know that we are building the simulator.
2823# binutils, gas and ld appear in that order because it makes sense to run
2824# "make check" in that particular order.
38e3d868 2825# If --enable-gold is used, "gold" may replace "ld".
1eee94d3 2826host_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 2827
671aa708
NN
2828# these libraries are built for the target environment, and are built after
2829# the host libraries and the host tools (which may be a cross compiler)
8499116a 2830# Note that libiberty is not a target library.
291f172e 2831target_libraries="target-libgcc \
eff02e4f 2832 target-libbacktrace \
671aa708
NN
2833 target-libgloss \
2834 target-newlib \
6d3b5aea 2835 target-libgomp \
48310492 2836 target-libatomic \
0a35513e 2837 target-libitm \
cb543528 2838 target-libstdc++-v3 \
f35db108 2839 target-libsanitizer \
2077db1b 2840 target-libvtv \
77008252 2841 target-libssp \
1ec601bf 2842 target-libquadmath \
6de9cd9a 2843 target-libgfortran \
012447ea 2844 target-libffi \
d9cdb878 2845 target-libobjc \
632e2a07 2846 target-libada \
1eee94d3 2847 target-libgm2 \
b4c522fa 2848 target-libgo \
bb50312e
IB
2849 target-libphobos \
2850 target-zlib"
671aa708 2851
4dbda6f0
NN
2852# these tools are built using the target libraries, and are intended to
2853# run only in the target environment
671aa708 2854#
4dbda6f0 2855# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2856# list belongs in this list.
671aa708 2857#
85bfb75e 2858target_tools="target-rda"
79c06341 2859
671aa708 2860################################################################################
79c06341 2861
671aa708
NN
2862## All tools belong in one of the four categories, and are assigned above
2863## We assign ${configdirs} this way to remove all embedded newlines. This
2864## is important because configure will choke if they ever get through.
2865## ${configdirs} is directories we build using the host tools.
2866## ${target_configdirs} is directories we build using the target tools.
671aa708 2867configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2868target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2869build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2870
ac9e6043
RW
2871
2872
671aa708 2873################################################################################
79c06341 2874
671aa708 2875srcname="gnu development package"
79c06341 2876
671aa708
NN
2877# This gets set non-empty for some net releases of packages.
2878appdirs=""
79c06341 2879
671aa708
NN
2880# Define is_cross_compiler to save on calls to 'test'.
2881is_cross_compiler=
2882if test x"${host}" = x"${target}" ; then
2883 is_cross_compiler=no
79c06341 2884else
671aa708 2885 is_cross_compiler=yes
1c710c3c 2886fi
79c06341 2887
b4acb5ef 2888# Find the build and target subdir names.
8b87bb96 2889
2e9e6f68
DJ
2890# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2891# have matching libraries, they should use host libraries: Makefile.tpl
2892# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2893# However, they still use the build modules, because the corresponding
2894# host modules (e.g. bison) are only built for the host when bootstrap
2895# finishes. So:
2896# - build_subdir is where we find build modules, and never changes.
2897# - build_libsubdir is where we find build libraries, and can be overridden.
2898
2899# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2900build_subdir="build-${build_noncanonical}"
1c710c3c 2901
5213506e
RW
2902# Check whether --with-build-libsubdir was given.
2903if test "${with_build_libsubdir+set}" = set; then :
2904 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2905else
2906 build_libsubdir="$build_subdir"
5213506e
RW
2907fi
2908
215c351a
PB
2909# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2910if ( test $srcdir = . && test -d gcc ) \
2911 || test -d $srcdir/../host-${host_noncanonical}; then
2912 host_subdir="host-${host_noncanonical}"
2913else
2914 host_subdir=.
2915fi
8b87bb96
NN
2916# No prefix.
2917target_subdir=${target_noncanonical}
1c710c3c 2918
0db770bd
RW
2919# Be sure to cover against remnants of an in-tree build.
2920if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
22e05272 2921 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
0db770bd
RW
2922Use a pristine source tree when building in a separate tree" "$LINENO" 5
2923fi
79c06341 2924
671aa708
NN
2925# Skipdirs are removed silently.
2926skipdirs=
2927# Noconfigdirs are removed loudly.
2928noconfigdirs=""
79c06341 2929
671aa708
NN
2930use_gnu_ld=
2931# Make sure we don't let GNU ld be added if we didn't want it.
2932if test x$with_gnu_ld = xno ; then
2933 use_gnu_ld=no
5afab7ad 2934 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2935fi
2936
671aa708
NN
2937use_gnu_as=
2938# Make sure we don't let GNU as be added if we didn't want it.
2939if test x$with_gnu_as = xno ; then
2940 use_gnu_as=no
2941 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2942fi
2943
d7f09764 2944use_included_zlib=
a05c2c75
L
2945
2946# Check whether --with-system-zlib was given.
2947if test "${with_system_zlib+set}" = set; then :
2948 withval=$with_system_zlib;
2949fi
2950
d7f09764
DN
2951# Make sure we don't let ZLIB be added if we didn't want it.
2952if test x$with_system_zlib = xyes ; then
2953 use_included_zlib=no
2954 noconfigdirs="$noconfigdirs zlib"
2955fi
2956
36ba9851
ДП
2957# Don't compile the bundled readline/libreadline.a if --with-system-readline
2958# is provided.
2959if test x$with_system_readline = xyes ; then
2960 noconfigdirs="$noconfigdirs readline"
2961fi
2962
1c710c3c 2963# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2964# it's not even worth trying to configure, much less build, that tool.
79c06341 2965
671aa708
NN
2966case ${with_x} in
2967 yes | "") ;; # the default value for this tree is that X11 is available
2968 no)
b4f96efe 2969 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2970 # We won't be able to build gdbtk without X.
1c710c3c 2971 enable_gdbtk=no
671aa708
NN
2972 ;;
2973 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2974esac
79c06341 2975
1bcce263 2976# Some are only suitable for cross toolchains.
671aa708
NN
2977# Remove these if host=target.
2978cross_only="target-libgloss target-newlib target-opcodes"
2979
2980case $is_cross_compiler in
2981 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 2982esac
79c06341 2983
671aa708
NN
2984# If both --with-headers and --with-libs are specified, default to
2985# --without-newlib.
ee6a22df
L
2986if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2987 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2988 if test x"${with_newlib}" = x ; then
2989 with_newlib=no
2990 fi
79c06341
JL
2991fi
2992
671aa708
NN
2993# Recognize --with-newlib/--without-newlib.
2994case ${with_newlib} in
2995 no) skipdirs="${skipdirs} target-newlib" ;;
2996 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2997esac
79c06341 2998
85c64bbe
BS
2999# Check whether --enable-as-accelerator-for was given.
3000if test "${enable_as_accelerator_for+set}" = set; then :
4b4f2e35 3001 enableval=$enable_as_accelerator_for;
85c64bbe
BS
3002fi
3003
3004
3005# Check whether --enable-offload-targets was given.
3006if test "${enable_offload_targets+set}" = set; then :
3007 enableval=$enable_offload_targets;
3008 if test x"$enable_offload_targets" = x; then
22e05272 3009 as_fn_error $? "no offload targets specified" "$LINENO" 5
85c64bbe
BS
3010 fi
3011
3012else
3013 enable_offload_targets=
3014fi
3015
3016
fe5bfa67
TB
3017# Check whether --enable-offload-defaulted was given.
3018if test "${enable_offload_defaulted+set}" = set; then :
3019 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3020else
3021 enable_offload_defaulted=
3022fi
3023
3024
21539e2e
MK
3025# Handle --enable-gold, --enable-ld.
3026# --disable-gold [--enable-ld]
3027# Build only ld. Default option.
9580395f
L
3028# --enable-gold [--enable-ld]
3029# Build both gold and ld. Install gold as "ld.gold", install ld
3030# as "ld.bfd" and "ld".
3031# --enable-gold=default [--enable-ld]
21539e2e
MK
3032# Build both gold and ld. Install gold as "ld.gold" and "ld",
3033# install ld as "ld.bfd".
3034# --enable-gold[=default] --disable-ld
3035# Build only gold, which is then installed as both "ld.gold" and "ld".
3036# --enable-gold --enable-ld=default
9580395f
L
3037# Build both gold (installed as "ld.gold") and ld (installed as "ld"
3038# and ld.bfd).
21539e2e
MK
3039# In other words, ld is default
3040# --enable-gold=default --enable-ld=default
3041# Error.
3042
3043default_ld=
5213506e
RW
3044# Check whether --enable-gold was given.
3045if test "${enable_gold+set}" = set; then :
3046 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
3047else
3048 ENABLE_GOLD=no
5213506e
RW
3049fi
3050
21539e2e
MK
3051case "${ENABLE_GOLD}" in
3052 yes|default)
38e3d868
RM
3053 # Check for ELF target.
3054 is_elf=no
3055 case "${target}" in
3056 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
0e76460f 3057 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a 3058 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
ff4b7a7e 3059 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
38e3d868
RM
3060 case "${target}" in
3061 *-*-linux*aout* | *-*-linux*oldld*)
3062 ;;
3063 *)
3064 is_elf=yes
3065 ;;
3066 esac
3067 esac
3068
3069 if test "$is_elf" = "yes"; then
3070 # Check for target supported by gold.
5afab7ad 3071 case "${target}" in
7705dfd1 3072 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
fc259b52 3073 | aarch64*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*)
21539e2e
MK
3074 configdirs="$configdirs gold"
3075 if test x${ENABLE_GOLD} = xdefault; then
3076 default_ld=gold
3077 fi
38e3d868 3078 ENABLE_GOLD=yes
5afab7ad
ILT
3079 ;;
3080 esac
38e3d868
RM
3081 fi
3082 ;;
3083 no)
3084 ;;
3085 *)
22e05272 3086 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
38e3d868 3087 ;;
21539e2e
MK
3088esac
3089
3090# Check whether --enable-ld was given.
3091if test "${enable_ld+set}" = set; then :
3092 enableval=$enable_ld; ENABLE_LD=$enableval
3093else
3094 ENABLE_LD=yes
3095fi
3096
3097
3098case "${ENABLE_LD}" in
3099 default)
9580395f 3100 if test x${default_ld} != x; then
22e05272 3101 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
21539e2e
MK
3102 fi
3103 ;;
3104 yes)
3105 ;;
3106 no)
3107 if test x${ENABLE_GOLD} != xyes; then
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3109$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3110 fi
3111 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3112 ;;
3113 *)
22e05272 3114 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
21539e2e
MK
3115 ;;
3116esac
5afab7ad 3117
78edb32f
L
3118# PR gas/19109
3119# Decide the default method for compressing debug sections.
3120# Provide a configure time option to override our default.
3121# Check whether --enable-compressed_debug_sections was given.
3122if test "${enable_compressed_debug_sections+set}" = set; then :
3123 enableval=$enable_compressed_debug_sections;
3124 if test x"$enable_compressed_debug_sections" = xyes; then
22e05272 3125 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
78edb32f
L
3126 fi
3127
3128else
3129 enable_compressed_debug_sections=
3130fi
3131
3132
671aa708 3133# Configure extra directories which are host specific
79c06341 3134
671aa708
NN
3135case "${host}" in
3136 *-cygwin*)
3137 configdirs="$configdirs libtermcap" ;;
3138esac
79c06341 3139
4fab7234
HPN
3140# A target can indicate whether a language isn't supported for some reason.
3141# Only spaces may be used in this macro; not newlines or tabs.
3142unsupported_languages=
3143
1c710c3c 3144# Remove more programs from consideration, based on the host or
671aa708
NN
3145# target this usually means that a port of the program doesn't
3146# exist yet.
ec8d6ddc 3147
671aa708 3148case "${host}" in
111eeb6e 3149 i[3456789]86-*-msdosdjgpp*)
c9bdb152 3150 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 3151 ;;
671aa708 3152esac
ec8d6ddc 3153
6de9cd9a 3154
87e6d9dc
TB
3155# Check whether --enable-libquadmath was given.
3156if test "${enable_libquadmath+set}" = set; then :
3157 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3158else
3159 ENABLE_LIBQUADMATH=yes
3160fi
3161
3162if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3163 noconfigdirs="$noconfigdirs target-libquadmath"
3164fi
3165
3166
3167# Check whether --enable-libquadmath-support was given.
3168if test "${enable_libquadmath_support+set}" = set; then :
3169 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3170else
3171 ENABLE_LIBQUADMATH_SUPPORT=yes
3172fi
3173
3174enable_libquadmath_support=
3175if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3176 enable_libquadmath_support=no
3177fi
3178
3179
5213506e
RW
3180# Check whether --enable-libada was given.
3181if test "${enable_libada+set}" = set; then :
3182 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3183else
3184 ENABLE_LIBADA=yes
5213506e
RW
3185fi
3186
d9cdb878 3187if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3188 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3189fi
3190
1eee94d3
GM
3191# Check whether --enable-libgm2 was given.
3192if test "${enable_libgm2+set}" = set; then :
3193 enableval=$enable_libgm2; ENABLE_LIBGM2=$enableval
3194else
3195 ENABLE_LIBGM2=no
3196fi
3197
3198if test "${ENABLE_LIBGM2}" != "yes" ; then
3199 noconfigdirs="$noconfigdirs gm2tools"
3200fi
3201
5213506e
RW
3202# Check whether --enable-libssp was given.
3203if test "${enable_libssp+set}" = set; then :
3204 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3205else
3206 ENABLE_LIBSSP=yes
5213506e
RW
3207fi
3208
ef0087a7 3209
1873ec0c
L
3210# Check whether --enable-libstdcxx was given.
3211if test "${enable_libstdcxx+set}" = set; then :
3212 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3213else
3214 ENABLE_LIBSTDCXX=default
3215fi
3216
3217if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1007a55c 3218 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1873ec0c
L
3219fi
3220
44a7d18d 3221# Enable libgomp by default on hosted POSIX systems, and a few others.
27079765 3222if test x$enable_libgomp = x ; then
953ff289 3223 case "${target}" in
416ac4d4 3224 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3225 ;;
8c6d158a 3226 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3227 ;;
b24513a1 3228 *-*-solaris2* | *-*-hpux11*)
953ff289 3229 ;;
cac90078 3230 *-*-darwin* | *-*-aix*)
953ff289 3231 ;;
29b1533a 3232 nvptx*-*-* | amdgcn*-*-*)
44a7d18d 3233 ;;
953ff289
DN
3234 *)
3235 noconfigdirs="$noconfigdirs target-libgomp"
3236 ;;
3237 esac
27079765 3238fi
953ff289 3239
48310492
RH
3240# Disable libatomic on unsupported systems.
3241if test -d ${srcdir}/libatomic; then
3242 if test x$enable_libatomic = x; then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3244$as_echo_n "checking for libatomic support... " >&6; }
3245 if (srcdir=${srcdir}/libatomic; \
3246 . ${srcdir}/configure.tgt; \
3247 test -n "$UNSUPPORTED")
3248 then
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3250$as_echo "no" >&6; }
3251 noconfigdirs="$noconfigdirs target-libatomic"
3252 else
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3254$as_echo "yes" >&6; }
3255 fi
3256 fi
3257fi
3258
e948157d
RH
3259# Disable libitm on unsupported systems.
3260if test -d ${srcdir}/libitm; then
3261 if test x$enable_libitm = x; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
01f3428c 3263$as_echo_n "checking for libitm support... " >&6; }
e948157d
RH
3264 if (srcdir=${srcdir}/libitm; \
3265 . ${srcdir}/configure.tgt; \
3266 test -n "$UNSUPPORTED")
3267 then
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
01f3428c 3269$as_echo "no" >&6; }
e948157d
RH
3270 noconfigdirs="$noconfigdirs target-libitm"
3271 else
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
01f3428c 3273$as_echo "yes" >&6; }
e948157d
RH
3274 fi
3275 fi
0a35513e
AH
3276fi
3277
93bf5390
RH
3278# Disable libsanitizer on unsupported systems.
3279if test -d ${srcdir}/libsanitizer; then
3280 if test x$enable_libsanitizer = x; then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3282$as_echo_n "checking for libsanitizer support... " >&6; }
3283 if (srcdir=${srcdir}/libsanitizer; \
3284 . ${srcdir}/configure.tgt; \
3285 test -n "$UNSUPPORTED")
3286 then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288$as_echo "no" >&6; }
3289 noconfigdirs="$noconfigdirs target-libsanitizer"
3290 else
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3292$as_echo "yes" >&6; }
3293 fi
3294 fi
3295fi
3296
2077db1b
CT
3297# Disable libvtv on unsupported systems.
3298if test -d ${srcdir}/libvtv; then
3299 if test x$enable_libvtv = x; then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3301$as_echo_n "checking for libvtv support... " >&6; }
3302 if (srcdir=${srcdir}/libvtv; \
3303 . ${srcdir}/configure.tgt; \
1e74b850 3304 test "$VTV_SUPPORTED" != "yes")
2077db1b
CT
3305 then
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307$as_echo "no" >&6; }
3308 noconfigdirs="$noconfigdirs target-libvtv"
3309 else
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3311$as_echo "yes" >&6; }
3312 fi
3313 fi
3314fi
3315
d91491e5
SE
3316# Disable libquadmath for some systems.
3317case "${target}" in
e7fae550
DE
3318 avr-*-*)
3319 noconfigdirs="$noconfigdirs target-libquadmath"
3320 ;;
d91491e5
SE
3321 # libquadmath is unused on AIX and libquadmath build process use of
3322 # LD_LIBRARY_PATH can break AIX bootstrap.
3323 powerpc-*-aix* | rs6000-*-aix*)
3324 noconfigdirs="$noconfigdirs target-libquadmath"
3325 ;;
3326esac
3327
1e9e0e23
JM
3328# Disable libssp for some systems.
3329case "${target}" in
3330 avr-*-*)
b318fb4b 3331 # No hosted I/O support.
1e9e0e23
JM
3332 noconfigdirs="$noconfigdirs target-libssp"
3333 ;;
91dfef96
JM
3334 bpf-*-*)
3335 noconfigdirs="$noconfigdirs target-libssp"
3336 ;;
1e9e0e23
JM
3337 powerpc-*-aix* | rs6000-*-aix*)
3338 noconfigdirs="$noconfigdirs target-libssp"
85b8555e 3339 ;;
8d2af3a2
DD
3340 pru-*-*)
3341 # No hosted I/O support.
3342 noconfigdirs="$noconfigdirs target-libssp"
3343 ;;
85b8555e 3344 rl78-*-*)
7cb62ef1
EB
3345 # libssp uses a misaligned load to trigger a fault, but the RL78
3346 # doesn't fault for those - instead, it gives a build-time error
3347 # for explicit misaligned loads.
85b8555e 3348 noconfigdirs="$noconfigdirs target-libssp"
1e9e0e23 3349 ;;
0969ec7d
EB
3350 visium-*-*)
3351 # No hosted I/O support.
3352 noconfigdirs="$noconfigdirs target-libssp"
3353 ;;
1e9e0e23
JM
3354esac
3355
1e9e0e23 3356# Disable libstdc++-v3 for some systems.
67a1cb2a 3357# Allow user to override this if they pass --enable-libstdcxx
1873ec0c
L
3358if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3359 case "${target}" in
3360 *-*-vxworks*)
3361 # VxWorks uses the Dinkumware C++ library.
3362 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3363 ;;
afa3d80e
TS
3364 amdgcn*-*-*)
3365 # Not ported/fails to build when using newlib.
3366 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3367 ;;
1873ec0c
L
3368 arm*-wince-pe*)
3369 # the C++ libraries don't build on top of CE's C libraries
3370 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3371 ;;
3372 avr-*-*)
3373 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3374 ;;
91dfef96
JM
3375 bpf-*-*)
3376 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3377 ;;
fef939d6
JB
3378 ft32-*-*)
3379 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3380 ;;
1873ec0c
L
3381 esac
3382fi
1e9e0e23 3383
91dfef96
JM
3384# Disable C++ on systems where it is known to not work.
3385# For testing, you can override this with --enable-languages=c++.
3386case ,${enable_languages}, in
3387 *,c++,*)
3388 ;;
3389 *)
3390 case "${target}" in
3391 bpf-*-*)
3392 unsupported_languages="$unsupported_languages c++"
3393 ;;
3394 esac
3395 ;;
3396esac
3397
3398# Disable Objc on systems where it is known to not work.
3399# For testing, you can override this with --enable-languages=objc.
3400case ,${enable_languages}, in
3401 *,objc,*)
3402 ;;
3403 *)
3404 case "${target}" in
3405 bpf-*-*)
3406 unsupported_languages="$unsupported_languages objc"
3407 ;;
3408 esac
3409 ;;
3410esac
3411
260eedb9
IB
3412# Disable D on systems where it is known to not work.
3413# For testing, you can override this with --enable-languages=d.
3414case ,${enable_languages}, in
3415 *,d,*)
3416 ;;
3417 *)
3418 case "${target}" in
91dfef96 3419 bpf-*-*)
260eedb9
IB
3420 unsupported_languages="$unsupported_languages d"
3421 ;;
3422 esac
3423 ;;
3424esac
3425
3426# Disable libphobos on unsupported systems.
3427# For testing, you can override this with --enable-libphobos.
3428if test -d ${srcdir}/libphobos; then
3429 if test x$enable_libphobos = x; then
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3431$as_echo_n "checking for libphobos support... " >&6; }
3432 if (srcdir=${srcdir}/libphobos; \
3433 . ${srcdir}/configure.tgt; \
7d31d331 3434 test "$LIBPHOBOS_SUPPORTED" != "yes")
260eedb9
IB
3435 then
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437$as_echo "no" >&6; }
3438 noconfigdirs="$noconfigdirs target-libphobos"
3439 else
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3441$as_echo "yes" >&6; }
3442 fi
3443 fi
3444fi
3445
1e9e0e23
JM
3446# Disable Fortran for some systems.
3447case "${target}" in
3448 mmix-*-*)
3449 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3450 unsupported_languages="$unsupported_languages fortran"
3451 ;;
91dfef96
JM
3452 bpf-*-*)
3453 unsupported_languages="$unsupported_languages fortran"
3454 ;;
1e9e0e23
JM
3455esac
3456
012447ea
JJ
3457# Disable libffi for some systems.
3458case "${target}" in
3459 powerpc-*-darwin*)
3460 ;;
3461 i[3456789]86-*-darwin*)
3462 ;;
3463 x86_64-*-darwin[912]*)
3464 ;;
3465 *-*-darwin*)
3466 noconfigdirs="$noconfigdirs target-libffi"
3467 ;;
3468 *-*-netware*)
3469 noconfigdirs="$noconfigdirs target-libffi"
3470 ;;
3471 *-*-phoenix*)
3472 noconfigdirs="$noconfigdirs target-libffi"
3473 ;;
3474 *-*-rtems*)
3475 noconfigdirs="$noconfigdirs target-libffi"
3476 ;;
3477 *-*-tpf*)
3478 noconfigdirs="$noconfigdirs target-libffi"
3479 ;;
3480 *-*-uclinux*)
3481 noconfigdirs="$noconfigdirs target-libffi"
3482 ;;
3483 *-*-vxworks*)
3484 noconfigdirs="$noconfigdirs target-libffi"
3485 ;;
b20e7532
AT
3486 aarch64*-*-freebsd*)
3487 noconfigdirs="$noconfigdirs target-libffi"
3488 ;;
012447ea
JJ
3489 alpha*-*-*vms*)
3490 noconfigdirs="$noconfigdirs target-libffi"
3491 ;;
3492 arm*-*-freebsd*)
3493 noconfigdirs="$noconfigdirs target-libffi"
3494 ;;
3495 arm-wince-pe)
3496 noconfigdirs="$noconfigdirs target-libffi"
3497 ;;
3498 arm*-*-symbianelf*)
3499 noconfigdirs="$noconfigdirs target-libffi"
3500 ;;
91dfef96
JM
3501 bpf-*-*)
3502 noconfigdirs="$noconfigdirs target-libffi"
3503 ;;
012447ea
JJ
3504 cris-*-* | crisv32-*-*)
3505 case "${target}" in
3506 *-*-linux*)
3507 ;;
3508 *) # See PR46792 regarding target-libffi.
3509 noconfigdirs="$noconfigdirs target-libffi";;
3510 esac
3511 ;;
3512 hppa*64*-*-hpux*)
3513 noconfigdirs="$noconfigdirs target-libffi"
3514 ;;
012447ea
JJ
3515 ia64*-*-*vms*)
3516 noconfigdirs="$noconfigdirs target-libffi"
3517 ;;
3518 i[3456789]86-w64-mingw*)
3519 noconfigdirs="$noconfigdirs target-libffi"
3520 ;;
3521 i[3456789]86-*-mingw*)
3522 noconfigdirs="$noconfigdirs target-libffi"
3523 ;;
3524 x86_64-*-mingw*)
3525 noconfigdirs="$noconfigdirs target-libffi"
3526 ;;
3527 mmix-*-*)
3528 noconfigdirs="$noconfigdirs target-libffi"
3529 ;;
3530 powerpc-*-aix*)
012447ea
JJ
3531 ;;
3532 rs6000-*-aix*)
012447ea
JJ
3533 ;;
3534 ft32-*-*)
3535 noconfigdirs="$noconfigdirs target-libffi"
3536 ;;
3537 *-*-lynxos*)
3538 noconfigdirs="$noconfigdirs target-libffi"
3539 ;;
3540esac
3541
3542# Disable the go frontend on systems where it is known to not work. Please keep
3543# this in sync with contrib/config-list.mk.
3544case "${target}" in
91dfef96 3545*-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
012447ea
JJ
3546 unsupported_languages="$unsupported_languages go"
3547 ;;
3548esac
3549
f9d09df0
TT
3550# Only allow gdbserver on some systems.
3551if test -d ${srcdir}/gdbserver; then
3552 if test x$enable_gdbserver = x; then
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3554$as_echo_n "checking for gdbserver support... " >&6; }
3555 if (srcdir=${srcdir}/gdbserver; \
3556 . ${srcdir}/configure.srv; \
3557 test -n "$UNSUPPORTED")
3558 then
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3560$as_echo "no" >&6; }
3561 noconfigdirs="$noconfigdirs gdbserver"
3562 else
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3564$as_echo "yes" >&6; }
3565 fi
3566 fi
3567fi
3568
cdbc9e92
ILT
3569# Disable libgo for some systems where it is known to not work.
3570# For testing, you can easily override this with --enable-libgo.
3571if test x$enable_libgo = x; then
3572 case "${target}" in
3573 *-*-darwin*)
3574 # PR 46986
3575 noconfigdirs="$noconfigdirs target-libgo"
3576 ;;
3577 *-*-cygwin* | *-*-mingw*)
3578 noconfigdirs="$noconfigdirs target-libgo"
3579 ;;
91dfef96
JM
3580 bpf-*-*)
3581 noconfigdirs="$noconfigdirs target-libgo"
3582 ;;
cdbc9e92
ILT
3583 esac
3584fi
3585
c03353e2
RIL
3586# Default libgloss CPU subdirectory.
3587libgloss_dir="$target_cpu"
6de9cd9a 3588
fbcf0dca
JM
3589case "${target}" in
3590 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3591 libgloss_dir=wince
3592 ;;
4dddfc74
YZ
3593 aarch64*-*-* )
3594 libgloss_dir=aarch64
3595 ;;
fbcf0dca
JM
3596 arm*-*-*)
3597 libgloss_dir=arm
3598 ;;
3599 cris-*-* | crisv32-*-*)
3600 libgloss_dir=cris
3601 ;;
3602 hppa*-*-*)
3603 libgloss_dir=pa
3604 ;;
3605 i[3456789]86-*-*)
3606 libgloss_dir=i386
3607 ;;
c6c0594e 3608 loongarch*-*-*)
3609 libgloss_dir=loongarch
3610 ;;
fbcf0dca
JM
3611 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3612 libgloss_dir=m68hc11
3613 ;;
3614 m68*-*-* | fido-*-*)
3615 libgloss_dir=m68k
3616 ;;
3617 mips*-*-*)
3618 libgloss_dir=mips
3619 ;;
3620 powerpc*-*-*)
3621 libgloss_dir=rs6000
3622 ;;
8d2af3a2
DD
3623 pru-*-*)
3624 libgloss_dir=pru
3625 ;;
fbcf0dca
JM
3626 sparc*-*-*)
3627 libgloss_dir=sparc
3628 ;;
3629esac
3630
6a789d5e 3631# Disable newlib and libgloss for various target OSes.
671aa708 3632case "${target}" in
6a789d5e
JM
3633 alpha*-dec-osf*)
3634 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3635 ;;
3636 i[3456789]86-*-linux*)
3637 # This section makes it possible to build newlib natively on linux.
3638 # If we are using a cross compiler then don't configure newlib.
3639 if test x${is_cross_compiler} != xno ; then
3640 noconfigdirs="$noconfigdirs target-newlib"
3641 fi
3642 noconfigdirs="$noconfigdirs target-libgloss"
3643 # If we are not using a cross compiler, do configure newlib.
3644 # Note however, that newlib will only be configured in this situation
3645 # if the --with-newlib option has been given, because otherwise
3646 # 'target-newlib' will appear in skipdirs.
3647 ;;
3648 i[3456789]86-*-rdos*)
3649 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3650 ;;
3651 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3652 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3653 ;;
3654 sparc-*-sunos4*)
3655 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3656 ;;
91dfef96
JM
3657 bpf-*-*)
3658 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3659 ;;
6a789d5e
JM
3660 *-*-aix*)
3661 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3662 ;;
3663 *-*-beos*)
3664 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3665 ;;
671aa708 3666 *-*-chorusos)
0036370f 3667 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3668 ;;
6a789d5e
JM
3669 *-*-dragonfly*)
3670 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3671 ;;
3672 *-*-freebsd*)
3673 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3674 ;;
3675 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3676 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3677 ;;
3678 *-*-lynxos*)
3679 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3680 ;;
3681 *-*-mingw*)
3682 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3683 ;;
3684 *-*-netbsd*)
3685 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3686 ;;
3687 *-*-netware*)
3688 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3689 ;;
3690 *-*-tpf*)
3691 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3692 ;;
3693 *-*-uclinux*)
3694 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3695 ;;
3696 *-*-vxworks*)
3697 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3698 ;;
3699esac
3700
3701case "${target}" in
3702 *-*-chorusos)
3703 ;;
3be96231
TG
3704 aarch64-*-darwin*)
3705 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3706 noconfigdirs="$noconfigdirs sim target-rda"
3707 ;;
7431c1a1
AS
3708 amdgcn*-*-*)
3709 ;;
3be96231
TG
3710 arm-*-darwin*)
3711 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3712 noconfigdirs="$noconfigdirs sim target-rda"
3713 ;;
75eeae1a 3714 powerpc-*-darwin*)
e1514c3f 3715 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3716 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3717 ;;
354ebf88
RW
3718 i[3456789]86-*-darwin*)
3719 noconfigdirs="$noconfigdirs ld gprof"
3720 noconfigdirs="$noconfigdirs sim target-rda"
3721 ;;
3722 x86_64-*-darwin[912]*)
0db3a858
TG
3723 noconfigdirs="$noconfigdirs ld gas gprof"
3724 noconfigdirs="$noconfigdirs sim target-rda"
3725 ;;
42c1cd8a
AT
3726 *-*-darwin*)
3727 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3728 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3729 ;;
8c6d158a 3730 *-*-dragonfly*)
8c6d158a 3731 ;;
c3f84f61 3732 *-*-freebsd*)
88252529 3733 if test "x$with_gmp" = x \
c0d0a722 3734 && ! test -d ${srcdir}/gmp \
6de9cd9a
DN
3735 && test -f /usr/local/include/gmp.h; then
3736 with_gmp=/usr/local
3737 fi
6de9cd9a 3738 ;;
ef4e7569
US
3739 *-*-kaos*)
3740 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3741 noconfigdirs="$noconfigdirs target-libgloss"
3742 ;;
671aa708 3743 *-*-netbsd*)
671aa708 3744 ;;
61fec9ff 3745 *-*-netware*)
671aa708 3746 ;;
fd6487af
JS
3747 *-*-phoenix*)
3748 noconfigdirs="$noconfigdirs target-libgloss"
3749 ;;
671aa708 3750 *-*-rtems*)
2909494b 3751 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3752 ;;
a8ba31f2
EC
3753 # The tpf target doesn't support gdb yet.
3754 *-*-tpf*)
6a789d5e 3755 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3756 ;;
5785c0ed 3757 *-*-uclinux*)
6a789d5e 3758 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3759 ;;
671aa708 3760 *-*-vxworks*)
671aa708
NN
3761 ;;
3762 alpha*-dec-osf*)
3763 # ld works, but does not support shared libraries.
671aa708 3764 # gas doesn't generate exception information.
6a789d5e 3765 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3766 ;;
3767 alpha*-*-*vms*)
2909494b 3768 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3769 ;;
671aa708
NN
3770 alpha*-*-*)
3771 # newlib is not 64 bit ready
2909494b 3772 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3773 ;;
91dfef96
JM
3774 bpf-*-*)
3775 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3776 ;;
671aa708 3777 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3778 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708 3779 ;;
2fd88f4f
AK
3780 arc*-*-*)
3781 noconfigdirs="$noconfigdirs sim"
3782 ;;
671aa708 3783 arm-*-pe*)
2909494b 3784 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3785 ;;
671aa708 3786 arm-*-riscix*)
0036370f 3787 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3788 ;;
b588ae30
GJL
3789 avr-*-*)
3790 if test x${with_avrlibc} != xno; then
3791 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3792 fi
3793 ;;
671aa708 3794 c4x-*-* | tic4x-*-*)
0036370f 3795 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3796 ;;
0036370f
JM
3797 tic54x-*-*)
3798 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3799 ;;
671aa708 3800 d10v-*-*)
0036370f 3801 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3802 ;;
3803 d30v-*-*)
0036370f 3804 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3805 ;;
3806 fr30-*-elf*)
2909494b 3807 noconfigdirs="$noconfigdirs gdb"
671aa708 3808 ;;
a05c2c75
L
3809 ft32-*-*)
3810 noconfigdirs="$noconfigdirs target-rda gprof"
3811 ;;
55f2d967 3812 moxie-*-*)
a05c2c75 3813 noconfigdirs="$noconfigdirs"
55f2d967 3814 ;;
671aa708 3815 h8300*-*-*)
2909494b 3816 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3817 ;;
3818 h8500-*-*)
0036370f 3819 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3820 ;;
a05c2c75
L
3821 hppa*64*-*-hpux*)
3822 noconfigdirs="$noconfigdirs gdb"
3823 ;;
4569f85e 3824 hppa*64*-*-linux*)
671aa708 3825 ;;
56f8587a 3826 hppa*-*-linux*)
3e732ba0 3827 ;;
671aa708 3828 hppa*-*-*elf* | \
671aa708
NN
3829 hppa*-*-lites* | \
3830 hppa*-*-openbsd* | \
3831 hppa*64*-*-*)
671aa708 3832 ;;
c03353e2 3833 hppa*-*-pro*)
c03353e2 3834 ;;
671aa708 3835 hppa*-*-*)
2909494b 3836 noconfigdirs="$noconfigdirs ld"
671aa708 3837 ;;
fb87ad5d 3838 i960-*-*)
0036370f 3839 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3840 ;;
671aa708
NN
3841 ia64*-*-elf*)
3842 # No gdb support yet.
1bcce263 3843 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3844 ;;
3845 ia64*-**-hpux*)
5a2931d1 3846 # No ld support yet.
a05c2c75 3847 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
671aa708 3848 ;;
52535a64 3849 ia64*-*-*vms*)
091fe9ca
TG
3850 # No ld support yet.
3851 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3852 ;;
ef4c4300 3853 i[3456789]86-w64-mingw*)
ef4c4300
KT
3854 ;;
3855 i[3456789]86-*-mingw*)
b91f0a41 3856 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3857 ;;
671aa708
NN
3858 *-*-cygwin*)
3859 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3860 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3861 # always build newlib if winsup directory is present.
b91f0a41 3862 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3863 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3864 elif test -d "$srcdir/newlib"; then
b91f0a41 3865 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3866 fi
1c710c3c 3867 ;;
f2a0e225 3868 i[3456789]86-*-pe)
ebb9f8b0 3869 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3870 ;;
f2a0e225 3871 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3872 # The linker does not yet know about weak symbols in COFF,
3873 # and is not configured to handle mixed ELF and COFF.
0036370f 3874 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3875 ;;
f2a0e225 3876 i[3456789]86-*-sco*)
0036370f 3877 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3878 ;;
fbdd5d87 3879 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3880 noconfigdirs="$noconfigdirs target-libgloss"
3881 ;;
f2a0e225 3882 i[3456789]86-*-sysv4*)
0036370f 3883 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3884 ;;
f2a0e225 3885 i[3456789]86-*-beos*)
6a789d5e 3886 noconfigdirs="$noconfigdirs gdb"
3aa83176 3887 ;;
d1f8db0c 3888 i[3456789]86-*-rdos*)
6a789d5e 3889 noconfigdirs="$noconfigdirs gdb"
c03353e2 3890 ;;
671aa708 3891 mmix-*-*)
2909494b 3892 noconfigdirs="$noconfigdirs gdb"
671aa708 3893 ;;
ab34901f 3894 mt-*-*)
79dd769c
AH
3895 noconfigdirs="$noconfigdirs sim"
3896 ;;
58b40a67
FT
3897 nfp-*-*)
3898 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3899 noconfigdirs="$noconfigdirs $target_libraries"
3900 ;;
e6cbe965
SC
3901 pdp11-*-*)
3902 noconfigdirs="$noconfigdirs gdb gprof"
3903 ;;
671aa708
NN
3904 powerpc-*-aix*)
3905 # copied from rs6000-*-* entry
6a789d5e 3906 noconfigdirs="$noconfigdirs gprof"
671aa708 3907 ;;
4569f85e 3908 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3909 target_configdirs="$target_configdirs target-winsup"
0036370f 3910 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3911 # always build newlib.
3912 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3913 ;;
3914 # This is temporary until we can link against shared libraries
3915 powerpcle-*-solaris*)
0036370f 3916 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3917 ;;
3918 powerpc-*-beos*)
6a789d5e 3919 noconfigdirs="$noconfigdirs gdb"
671aa708 3920 ;;
671aa708 3921 rs6000-*-lynxos*)
6a789d5e 3922 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3923 ;;
3924 rs6000-*-aix*)
6a789d5e 3925 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3926 ;;
3927 rs6000-*-*)
2909494b 3928 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3929 ;;
3930 m68k-apollo-*)
0036370f 3931 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3932 ;;
ca9fe997 3933 microblaze*)
2909494b 3934 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3935 ;;
d896cc4d 3936 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
d9dced13
RS
3937 if test x$with_newlib = xyes; then
3938 noconfigdirs="$noconfigdirs gprof"
3939 fi
d9dced13 3940 ;;
671aa708 3941 mips*-*-irix5*)
0036370f 3942 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3943 ;;
3944 mips*-*-irix6*)
2909494b 3945 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3946 ;;
671aa708 3947 mips*-*-bsd*)
bc98bcc4 3948 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
671aa708 3949 ;;
671aa708 3950 mips*-*-linux*)
671aa708 3951 ;;
bc98bcc4
JBG
3952 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3953 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3954 noconfigdirs="$noconfigdirs ld gas gprof"
3955 ;;
671aa708 3956 mips*-*-*)
2909494b 3957 noconfigdirs="$noconfigdirs gprof"
671aa708 3958 ;;
738f2522 3959 nvptx*-*-*)
738f2522
BS
3960 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3961 ;;
bc6d9014 3962 sh-*-*)
ea2002ba
CB
3963 case "${target}" in
3964 sh*-*-elf)
2909494b 3965 ;;
ea2002ba 3966 *)
2909494b 3967 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 3968 esac
671aa708 3969 ;;
671aa708 3970 sparc-*-sunos4*)
6a789d5e 3971 if test x${is_cross_compiler} = xno ; then
671aa708
NN
3972 use_gnu_ld=no
3973 fi
3974 ;;
b42f0d7e 3975 tic6x-*-*)
0d557ff8 3976 noconfigdirs="$noconfigdirs sim"
b42f0d7e 3977 ;;
671aa708 3978 v810-*-*)
0036370f 3979 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
3980 ;;
3981 vax-*-*)
2909494b 3982 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3983 ;;
1fc1d82e
MR
3984 wasm32-*-*)
3985 noconfigdirs="$noconfigdirs ld"
3986 ;;
c6c0594e 3987 loongarch*-*-linux*)
3988 ;;
3989 loongarch*-*-*)
3990 noconfigdirs="$noconfigdirs gprof"
3991 ;;
671aa708 3992esac
79c06341 3993
671aa708
NN
3994# If we aren't building newlib, then don't build libgloss, since libgloss
3995# depends upon some newlib header files.
3996case "${noconfigdirs}" in
3997 *target-libgloss*) ;;
3998 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3999esac
4000
671aa708 4001# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
4002host_makefile_frag=/dev/null
4003if test -d ${srcdir}/config ; then
4004case "${host}" in
f2a0e225 4005 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
4006 host_makefile_frag="config/mh-djgpp"
4007 ;;
4008 *-cygwin*)
2a79c47f 4009
5213506e
RW
4010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4011$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 4012echo a >cygwin-cat-check
e25a8c82 4013if test `cat cygwin-cat-check` = a ; then
2a79c47f 4014 rm cygwin-cat-check
5213506e
RW
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4016$as_echo "yes" >&6; }
2a79c47f
NC
4017else
4018 rm cygwin-cat-check
5213506e
RW
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4020$as_echo "no" >&6; }
22e05272 4021 as_fn_error $? "The cat command does not ignore carriage return characters.
2a79c47f
NC
4022 Please either mount the build directory in binary mode or run the following
4023 commands before running any configure script:
4024set -o igncr
4025export SHELLOPTS
5213506e 4026 " "$LINENO" 5
2a79c47f
NC
4027fi
4028
671aa708
NN
4029 host_makefile_frag="config/mh-cygwin"
4030 ;;
c53a18d3 4031 *-mingw*)
1f5a6b84 4032 host_makefile_frag="config/mh-mingw"
95af8923 4033 ;;
cabb9d59 4034 alpha*-linux*)
13be44ed
UB
4035 host_makefile_frag="config/mh-alpha-linux"
4036 ;;
111eeb6e 4037 hppa*-hp-hpux*)
efd41714
PB
4038 host_makefile_frag="config/mh-pa"
4039 ;;
4040 hppa*-*)
4041 host_makefile_frag="config/mh-pa"
4042 ;;
54258e22 4043 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
d8ed14ce 4044 host_makefile_frag="config/mh-darwin"
be8fff81 4045 ;;
d19bca38
PB
4046 powerpc-*-aix*)
4047 host_makefile_frag="config/mh-ppc-aix"
4048 ;;
4049 rs6000-*-aix*)
4050 host_makefile_frag="config/mh-ppc-aix"
4051 ;;
671aa708
NN
4052esac
4053fi
4054
55ffb5ed 4055if test "${build}" != "${host}" ; then
0999159b
PB
4056 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4057 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 4058 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
c841dc0a 4059 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
0999159b 4060 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3b5e8ee4 4061 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
0999159b 4062 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 4063 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
b4c522fa 4064 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
0999159b
PB
4065 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4066 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4067 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4068 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4069 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4070 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4071else
4072 AR_FOR_BUILD="\$(AR)"
4073 AS_FOR_BUILD="\$(AS)"
fb0103e5 4074 CC_FOR_BUILD="\$(CC)"
0999159b 4075 CXX_FOR_BUILD="\$(CXX)"
3b5e8ee4 4076 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
0999159b 4077 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 4078 GOC_FOR_BUILD="\$(GOC)"
b4c522fa 4079 GDC_FOR_BUILD="\$(GDC)"
0999159b
PB
4080 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4081 LD_FOR_BUILD="\$(LD)"
4082 NM_FOR_BUILD="\$(NM)"
4083 RANLIB_FOR_BUILD="\$(RANLIB)"
4084 WINDRES_FOR_BUILD="\$(WINDRES)"
4085 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
4086fi
4087
4088ac_ext=c
1c710c3c
DJ
4089ac_cpp='$CPP $CPPFLAGS'
4090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4092ac_compiler_gnu=$ac_cv_c_compiler_gnu
4093if test -n "$ac_tool_prefix"; then
4094 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4095set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
4096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4097$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4098if ${ac_cv_prog_CC+:} false; then :
5213506e 4099 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4100else
4101 if test -n "$CC"; then
4102 ac_cv_prog_CC="$CC" # Let the user override the test.
4103else
4104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105for as_dir in $PATH
4106do
4107 IFS=$as_save_IFS
4108 test -z "$as_dir" && as_dir=.
5213506e 4109 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4111 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 4112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4113 break 2
4114 fi
4115done
5213506e
RW
4116 done
4117IFS=$as_save_IFS
1c710c3c
DJ
4118
4119fi
4120fi
4121CC=$ac_cv_prog_CC
4122if test -n "$CC"; then
5213506e
RW
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4124$as_echo "$CC" >&6; }
1c710c3c 4125else
5213506e
RW
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4127$as_echo "no" >&6; }
1c710c3c
DJ
4128fi
4129
5213506e 4130
1c710c3c
DJ
4131fi
4132if test -z "$ac_cv_prog_CC"; then
4133 ac_ct_CC=$CC
fb0103e5
RG
4134 # Extract the first word of "gcc", so it can be a program name with args.
4135set dummy gcc; ac_word=$2
5213506e
RW
4136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4137$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4138if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4139 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4140else
4141 if test -n "$ac_ct_CC"; then
4142 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4143else
4144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145for as_dir in $PATH
4146do
4147 IFS=$as_save_IFS
4148 test -z "$as_dir" && as_dir=.
5213506e 4149 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4151 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4153 break 2
4154 fi
4155done
5213506e
RW
4156 done
4157IFS=$as_save_IFS
1c710c3c
DJ
4158
4159fi
4160fi
4161ac_ct_CC=$ac_cv_prog_ac_ct_CC
4162if test -n "$ac_ct_CC"; then
5213506e
RW
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4164$as_echo "$ac_ct_CC" >&6; }
1c710c3c 4165else
5213506e
RW
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4167$as_echo "no" >&6; }
1c710c3c
DJ
4168fi
4169
5213506e
RW
4170 if test "x$ac_ct_CC" = x; then
4171 CC=""
4172 else
4173 case $cross_compiling:$ac_tool_warned in
4174yes:)
4175{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4176$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4177ac_tool_warned=yes ;;
4178esac
4179 CC=$ac_ct_CC
4180 fi
1c710c3c
DJ
4181else
4182 CC="$ac_cv_prog_CC"
4183fi
4184
4185if test -z "$CC"; then
5213506e
RW
4186 if test -n "$ac_tool_prefix"; then
4187 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4188set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4190$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4191if ${ac_cv_prog_CC+:} false; then :
5213506e 4192 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4193else
4194 if test -n "$CC"; then
4195 ac_cv_prog_CC="$CC" # Let the user override the test.
4196else
1c710c3c
DJ
4197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198for as_dir in $PATH
4199do
4200 IFS=$as_save_IFS
4201 test -z "$as_dir" && as_dir=.
5213506e 4202 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4204 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4206 break 2
4207 fi
4208done
5213506e
RW
4209 done
4210IFS=$as_save_IFS
1c710c3c 4211
0b0dc272 4212fi
0b0dc272 4213fi
1c710c3c 4214CC=$ac_cv_prog_CC
af71363e 4215if test -n "$CC"; then
5213506e
RW
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4217$as_echo "$CC" >&6; }
2aeb72e9 4218else
5213506e
RW
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4220$as_echo "no" >&6; }
2aeb72e9
DD
4221fi
4222
2aeb72e9 4223
5213506e 4224 fi
1c710c3c 4225fi
55ffb5ed
NN
4226if test -z "$CC"; then
4227 # Extract the first word of "cc", so it can be a program name with args.
4228set dummy cc; ac_word=$2
5213506e
RW
4229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4230$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4231if ${ac_cv_prog_CC+:} false; then :
5213506e 4232 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4233else
4234 if test -n "$CC"; then
4235 ac_cv_prog_CC="$CC" # Let the user override the test.
4236else
0b0dc272 4237 ac_prog_rejected=no
1c710c3c
DJ
4238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239for as_dir in $PATH
4240do
4241 IFS=$as_save_IFS
4242 test -z "$as_dir" && as_dir=.
5213506e 4243 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4245 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4246 ac_prog_rejected=yes
4247 continue
4248 fi
4249 ac_cv_prog_CC="cc"
5213506e 4250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4251 break 2
4252 fi
4253done
5213506e
RW
4254 done
4255IFS=$as_save_IFS
1c710c3c 4256
55ffb5ed
NN
4257if test $ac_prog_rejected = yes; then
4258 # We found a bogon in the path, so make sure we never use it.
4259 set dummy $ac_cv_prog_CC
4260 shift
1c710c3c 4261 if test $# != 0; then
55ffb5ed
NN
4262 # We chose a different compiler from the bogus one.
4263 # However, it has the same basename, so the bogon will be chosen
4264 # first if we set CC to just the basename; use the full file name.
4265 shift
1c710c3c 4266 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4267 fi
4268fi
4269fi
4270fi
1c710c3c 4271CC=$ac_cv_prog_CC
55ffb5ed 4272if test -n "$CC"; then
5213506e
RW
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4274$as_echo "$CC" >&6; }
55ffb5ed 4275else
5213506e
RW
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4277$as_echo "no" >&6; }
55ffb5ed
NN
4278fi
4279
5213506e 4280
1c710c3c
DJ
4281fi
4282if test -z "$CC"; then
4283 if test -n "$ac_tool_prefix"; then
5213506e 4284 for ac_prog in cl.exe
1c710c3c
DJ
4285 do
4286 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4287set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4289$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4290if ${ac_cv_prog_CC+:} false; then :
5213506e 4291 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4292else
4293 if test -n "$CC"; then
4294 ac_cv_prog_CC="$CC" # Let the user override the test.
4295else
1c710c3c
DJ
4296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297for as_dir in $PATH
4298do
4299 IFS=$as_save_IFS
4300 test -z "$as_dir" && as_dir=.
5213506e 4301 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4303 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4305 break 2
4306 fi
4307done
5213506e
RW
4308 done
4309IFS=$as_save_IFS
1c710c3c 4310
55ffb5ed
NN
4311fi
4312fi
1c710c3c 4313CC=$ac_cv_prog_CC
55ffb5ed 4314if test -n "$CC"; then
5213506e
RW
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4316$as_echo "$CC" >&6; }
a4b9e93e 4317else
5213506e
RW
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4319$as_echo "no" >&6; }
fb0103e5 4320fi
af71363e 4321
5213506e 4322
1c710c3c
DJ
4323 test -n "$CC" && break
4324 done
af71363e 4325fi
1c710c3c
DJ
4326if test -z "$CC"; then
4327 ac_ct_CC=$CC
5213506e 4328 for ac_prog in cl.exe
1c710c3c
DJ
4329do
4330 # Extract the first word of "$ac_prog", so it can be a program name with args.
4331set dummy $ac_prog; ac_word=$2
5213506e
RW
4332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4333$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4334if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4335 $as_echo_n "(cached) " >&6
0b0dc272 4336else
1c710c3c
DJ
4337 if test -n "$ac_ct_CC"; then
4338 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4339else
1c710c3c
DJ
4340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341for as_dir in $PATH
4342do
4343 IFS=$as_save_IFS
4344 test -z "$as_dir" && as_dir=.
5213506e 4345 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4347 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4349 break 2
4350 fi
4351done
5213506e
RW
4352 done
4353IFS=$as_save_IFS
1c710c3c 4354
af71363e
AS
4355fi
4356fi
1c710c3c
DJ
4357ac_ct_CC=$ac_cv_prog_ac_ct_CC
4358if test -n "$ac_ct_CC"; then
5213506e
RW
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4360$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4361else
5213506e
RW
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363$as_echo "no" >&6; }
af71363e 4364fi
0b0dc272 4365
5213506e 4366
1c710c3c
DJ
4367 test -n "$ac_ct_CC" && break
4368done
4369
5213506e
RW
4370 if test "x$ac_ct_CC" = x; then
4371 CC=""
4372 else
4373 case $cross_compiling:$ac_tool_warned in
4374yes:)
4375{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4376$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4377ac_tool_warned=yes ;;
4378esac
4379 CC=$ac_ct_CC
4380 fi
1c710c3c
DJ
4381fi
4382
4383fi
4384
4385
5213506e
RW
4386test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4387$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4388as_fn_error $? "no acceptable C compiler found in \$PATH
4389See \`config.log' for more details" "$LINENO" 5; }
1c710c3c
DJ
4390
4391# Provide some information about the compiler.
5213506e
RW
4392$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4393set X $ac_compile
4394ac_compiler=$2
4395for ac_option in --version -v -V -qversion; do
4396 { { ac_try="$ac_compiler $ac_option >&5"
4397case "(($ac_try" in
4398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399 *) ac_try_echo=$ac_try;;
4400esac
4401eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4402$as_echo "$ac_try_echo"; } >&5
4403 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4404 ac_status=$?
5213506e
RW
4405 if test -s conftest.err; then
4406 sed '10a\
4407... rest of stderr output deleted ...
4408 10q' conftest.err >conftest.er1
4409 cat conftest.er1 >&5
5213506e 4410 fi
22e05272 4411 rm -f conftest.er1 conftest.err
5213506e
RW
4412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4413 test $ac_status = 0; }
4414done
1c710c3c 4415
5213506e 4416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4417/* end confdefs.h. */
4418
4419int
4420main ()
4421{
4422
4423 ;
4424 return 0;
4425}
4426_ACEOF
4427ac_clean_files_save=$ac_clean_files
22e05272 4428ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1c710c3c
DJ
4429# Try to create an executable without -o first, disregard a.out.
4430# It will help us diagnose broken compilers, and finding out an intuition
4431# of exeext.
22e05272
JM
4432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4433$as_echo_n "checking whether the C compiler works... " >&6; }
5213506e
RW
4434ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4435
4436# The possible output files:
4437ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4438
4439ac_rmfiles=
4440for ac_file in $ac_files
4441do
4442 case $ac_file in
4443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4444 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4445 esac
4446done
4447rm -f $ac_rmfiles
4448
4449if { { ac_try="$ac_link_default"
4450case "(($ac_try" in
4451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452 *) ac_try_echo=$ac_try;;
4453esac
4454eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4455$as_echo "$ac_try_echo"; } >&5
4456 (eval "$ac_link_default") 2>&5
1c710c3c 4457 ac_status=$?
5213506e
RW
4458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4459 test $ac_status = 0; }; then :
4460 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4461# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4462# in a Makefile. We should not override ac_cv_exeext if it was cached,
4463# so that the user can short-circuit this test for compilers unknown to
4464# Autoconf.
4465for ac_file in $ac_files ''
1c710c3c
DJ
4466do
4467 test -f "$ac_file" || continue
4468 case $ac_file in
5213506e 4469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4470 ;;
4471 [ab].out )
4472 # We found the default executable, but exeext='' is most
4473 # certainly right.
4474 break;;
4475 *.* )
5213506e
RW
4476 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4477 then :; else
4478 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4479 fi
4480 # We set ac_cv_exeext here because the later test for it is not
4481 # safe: cross compilers may not add the suffix if given an `-o'
4482 # argument, so we may need to know it at that point already.
4483 # Even if this section looks crufty: it has the advantage of
4484 # actually working.
1c710c3c
DJ
4485 break;;
4486 * )
4487 break;;
4488 esac
4489done
5213506e
RW
4490test "$ac_cv_exeext" = no && ac_cv_exeext=
4491
1c710c3c 4492else
5213506e
RW
4493 ac_file=''
4494fi
5213506e 4495if test -z "$ac_file"; then :
22e05272
JM
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4497$as_echo "no" >&6; }
4498$as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4499sed 's/^/| /' conftest.$ac_ext >&5
4500
5213506e
RW
4501{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4502$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4503as_fn_error 77 "C compiler cannot create executables
4504See \`config.log' for more details" "$LINENO" 5; }
4505else
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4507$as_echo "yes" >&6; }
1c710c3c 4508fi
22e05272
JM
4509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4510$as_echo_n "checking for C compiler default output file name... " >&6; }
4511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4512$as_echo "$ac_file" >&6; }
1c710c3c 4513ac_exeext=$ac_cv_exeext
1c710c3c 4514
22e05272 4515rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1c710c3c 4516ac_clean_files=$ac_clean_files_save
5213506e
RW
4517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4518$as_echo_n "checking for suffix of executables... " >&6; }
4519if { { ac_try="$ac_link"
4520case "(($ac_try" in
4521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4522 *) ac_try_echo=$ac_try;;
4523esac
4524eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4525$as_echo "$ac_try_echo"; } >&5
4526 (eval "$ac_link") 2>&5
1c710c3c 4527 ac_status=$?
5213506e
RW
4528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4529 test $ac_status = 0; }; then :
1c710c3c
DJ
4530 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4531# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4532# work properly (i.e., refer to `conftest.exe'), while it won't with
4533# `rm'.
4534for ac_file in conftest.exe conftest conftest.*; do
4535 test -f "$ac_file" || continue
4536 case $ac_file in
5213506e 4537 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4538 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4539 break;;
4540 * ) break;;
4541 esac
4542done
af71363e 4543else
5213506e
RW
4544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4545$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4546as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4547See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4548fi
22e05272 4549rm -f conftest conftest$ac_cv_exeext
5213506e
RW
4550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4551$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4552
4553rm -f conftest.$ac_ext
4554EXEEXT=$ac_cv_exeext
4555ac_exeext=$EXEEXT
22e05272
JM
4556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557/* end confdefs.h. */
4558#include <stdio.h>
4559int
4560main ()
4561{
4562FILE *f = fopen ("conftest.out", "w");
4563 return ferror (f) || fclose (f) != 0;
4564
4565 ;
4566 return 0;
4567}
4568_ACEOF
4569ac_clean_files="$ac_clean_files conftest.out"
4570# Check that the compiler produces executables we can run. If not, either
4571# the compiler is broken, or we cross compile.
4572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4573$as_echo_n "checking whether we are cross compiling... " >&6; }
4574if test "$cross_compiling" != yes; then
4575 { { ac_try="$ac_link"
4576case "(($ac_try" in
4577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578 *) ac_try_echo=$ac_try;;
4579esac
4580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4581$as_echo "$ac_try_echo"; } >&5
4582 (eval "$ac_link") 2>&5
4583 ac_status=$?
4584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4585 test $ac_status = 0; }
4586 if { ac_try='./conftest$ac_cv_exeext'
4587 { { case "(($ac_try" in
4588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4589 *) ac_try_echo=$ac_try;;
4590esac
4591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4592$as_echo "$ac_try_echo"; } >&5
4593 (eval "$ac_try") 2>&5
4594 ac_status=$?
4595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4596 test $ac_status = 0; }; }; then
4597 cross_compiling=no
4598 else
4599 if test "$cross_compiling" = maybe; then
4600 cross_compiling=yes
4601 else
4602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4603$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4604as_fn_error $? "cannot run C compiled programs.
4605If you meant to cross compile, use \`--host'.
4606See \`config.log' for more details" "$LINENO" 5; }
4607 fi
4608 fi
4609fi
4610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4611$as_echo "$cross_compiling" >&6; }
4612
4613rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4614ac_clean_files=$ac_clean_files_save
5213506e
RW
4615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4616$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 4617if ${ac_cv_objext+:} false; then :
5213506e 4618 $as_echo_n "(cached) " >&6
1c710c3c 4619else
5213506e 4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4621/* end confdefs.h. */
4622
4623int
4624main ()
4625{
4626
4627 ;
4628 return 0;
4629}
4630_ACEOF
4631rm -f conftest.o conftest.obj
5213506e
RW
4632if { { ac_try="$ac_compile"
4633case "(($ac_try" in
4634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4635 *) ac_try_echo=$ac_try;;
4636esac
4637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4638$as_echo "$ac_try_echo"; } >&5
4639 (eval "$ac_compile") 2>&5
1c710c3c 4640 ac_status=$?
5213506e
RW
4641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4642 test $ac_status = 0; }; then :
4643 for ac_file in conftest.o conftest.obj conftest.*; do
4644 test -f "$ac_file" || continue;
1c710c3c 4645 case $ac_file in
5213506e 4646 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4647 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4648 break;;
4649 esac
4650done
4651else
5213506e 4652 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4653sed 's/^/| /' conftest.$ac_ext >&5
4654
5213506e
RW
4655{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4656$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4657as_fn_error $? "cannot compute suffix of object files: cannot compile
4658See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4659fi
1c710c3c
DJ
4660rm -f conftest.$ac_cv_objext conftest.$ac_ext
4661fi
5213506e
RW
4662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4663$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4664OBJEXT=$ac_cv_objext
4665ac_objext=$OBJEXT
5213506e
RW
4666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4667$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 4668if ${ac_cv_c_compiler_gnu+:} false; then :
5213506e 4669 $as_echo_n "(cached) " >&6
1c710c3c 4670else
5213506e 4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4672/* end confdefs.h. */
4673
4674int
4675main ()
4676{
4677#ifndef __GNUC__
4678 choke me
4679#endif
4680
4681 ;
4682 return 0;
4683}
4684_ACEOF
5213506e 4685if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4686 ac_compiler_gnu=yes
4687else
5213506e 4688 ac_compiler_gnu=no
1c710c3c 4689fi
5213506e 4690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4691ac_cv_c_compiler_gnu=$ac_compiler_gnu
4692
4693fi
5213506e
RW
4694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4695$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4696if test $ac_compiler_gnu = yes; then
4697 GCC=yes
4698else
4699 GCC=
4700fi
1c710c3c
DJ
4701ac_test_CFLAGS=${CFLAGS+set}
4702ac_save_CFLAGS=$CFLAGS
5213506e
RW
4703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4704$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 4705if ${ac_cv_prog_cc_g+:} false; then :
5213506e
RW
4706 $as_echo_n "(cached) " >&6
4707else
4708 ac_save_c_werror_flag=$ac_c_werror_flag
4709 ac_c_werror_flag=yes
4710 ac_cv_prog_cc_g=no
4711 CFLAGS="-g"
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4713/* end confdefs.h. */
4714
4715int
4716main ()
4717{
4718
4719 ;
4720 return 0;
4721}
4722_ACEOF
5213506e 4723if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4724 ac_cv_prog_cc_g=yes
4725else
5213506e
RW
4726 CFLAGS=""
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728/* end confdefs.h. */
4729
4730int
4731main ()
4732{
4733
4734 ;
4735 return 0;
4736}
4737_ACEOF
4738if ac_fn_c_try_compile "$LINENO"; then :
4739
4740else
4741 ac_c_werror_flag=$ac_save_c_werror_flag
4742 CFLAGS="-g"
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744/* end confdefs.h. */
af71363e 4745
5213506e
RW
4746int
4747main ()
4748{
4749
4750 ;
4751 return 0;
4752}
4753_ACEOF
4754if ac_fn_c_try_compile "$LINENO"; then :
4755 ac_cv_prog_cc_g=yes
4756fi
4757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4758fi
5213506e 4759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4760fi
5213506e
RW
4761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762 ac_c_werror_flag=$ac_save_c_werror_flag
4763fi
4764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4765$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4766if test "$ac_test_CFLAGS" = set; then
1c710c3c 4767 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4768elif test $ac_cv_prog_cc_g = yes; then
4769 if test "$GCC" = yes; then
4770 CFLAGS="-g -O2"
4771 else
4772 CFLAGS="-g"
4773 fi
4774else
4775 if test "$GCC" = yes; then
4776 CFLAGS="-O2"
4777 else
4778 CFLAGS=
4779 fi
4780fi
5213506e
RW
4781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4782$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 4783if ${ac_cv_prog_cc_c89+:} false; then :
5213506e 4784 $as_echo_n "(cached) " >&6
1c710c3c 4785else
5213506e 4786 ac_cv_prog_cc_c89=no
1c710c3c 4787ac_save_CC=$CC
5213506e 4788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4789/* end confdefs.h. */
4790#include <stdarg.h>
4791#include <stdio.h>
22e05272 4792struct stat;
1c710c3c
DJ
4793/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4794struct buf { int x; };
4795FILE * (*rcsopen) (struct buf *, struct stat *, int);
4796static char *e (p, i)
4797 char **p;
4798 int i;
4799{
4800 return p[i];
4801}
4802static char *f (char * (*g) (char **, int), char **p, ...)
4803{
4804 char *s;
4805 va_list v;
4806 va_start (v,p);
4807 s = g (p, va_arg (v,int));
4808 va_end (v);
4809 return s;
4810}
4811
4812/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4813 function prototypes and stuff, but not '\xHH' hex character constants.
4814 These don't provoke an error unfortunately, instead are silently treated
5213506e 4815 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4816 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4817 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4818 that's true only with -std. */
1c710c3c
DJ
4819int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4820
5213506e
RW
4821/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4822 inside strings and character constants. */
4823#define FOO(x) 'x'
4824int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4825
1c710c3c
DJ
4826int test (int i, double x);
4827struct s1 {int (*f) (int a);};
4828struct s2 {int (*f) (double a);};
4829int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4830int argc;
4831char **argv;
4832int
4833main ()
4834{
4835return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4836 ;
4837 return 0;
4838}
4839_ACEOF
5213506e
RW
4840for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4841 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4842do
4843 CC="$ac_save_CC $ac_arg"
5213506e
RW
4844 if ac_fn_c_try_compile "$LINENO"; then :
4845 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4846fi
5213506e
RW
4847rm -f core conftest.err conftest.$ac_objext
4848 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4849done
5213506e 4850rm -f conftest.$ac_ext
1c710c3c
DJ
4851CC=$ac_save_CC
4852
4853fi
5213506e
RW
4854# AC_CACHE_VAL
4855case "x$ac_cv_prog_cc_c89" in
4856 x)
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4858$as_echo "none needed" >&6; } ;;
4859 xno)
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4861$as_echo "unsupported" >&6; } ;;
1c710c3c 4862 *)
5213506e
RW
4863 CC="$CC $ac_cv_prog_cc_c89"
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4865$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4866esac
5213506e 4867if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4868
2aeb72e9
DD
4869fi
4870
2aeb72e9
DD
4871ac_ext=c
4872ac_cpp='$CPP $CPPFLAGS'
4873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4875ac_compiler_gnu=$ac_cv_c_compiler_gnu
4876
91743432
NC
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4878$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4879if ${ac_cv_prog_cc_c99+:} false; then :
4880 $as_echo_n "(cached) " >&6
4881else
4882 ac_cv_prog_cc_c99=no
4883ac_save_CC=$CC
4884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885/* end confdefs.h. */
4886#include <stdarg.h>
4887#include <stdbool.h>
4888#include <stdlib.h>
4889#include <wchar.h>
4890#include <stdio.h>
4891
4892// Check varargs macros. These examples are taken from C99 6.10.3.5.
4893#define debug(...) fprintf (stderr, __VA_ARGS__)
4894#define showlist(...) puts (#__VA_ARGS__)
4895#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4896static void
4897test_varargs_macros (void)
4898{
4899 int x = 1234;
4900 int y = 5678;
4901 debug ("Flag");
4902 debug ("X = %d\n", x);
4903 showlist (The first, second, and third items.);
4904 report (x>y, "x is %d but y is %d", x, y);
4905}
4906
4907// Check long long types.
4908#define BIG64 18446744073709551615ull
4909#define BIG32 4294967295ul
4910#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4911#if !BIG_OK
4912 your preprocessor is broken;
4913#endif
4914#if BIG_OK
4915#else
4916 your preprocessor is broken;
4917#endif
4918static long long int bignum = -9223372036854775807LL;
4919static unsigned long long int ubignum = BIG64;
4920
4921struct incomplete_array
4922{
4923 int datasize;
4924 double data[];
4925};
4926
4927struct named_init {
4928 int number;
4929 const wchar_t *name;
4930 double average;
4931};
4932
4933typedef const char *ccp;
4934
4935static inline int
4936test_restrict (ccp restrict text)
4937{
4938 // See if C++-style comments work.
4939 // Iterate through items via the restricted pointer.
4940 // Also check for declarations in for loops.
4941 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4942 continue;
4943 return 0;
4944}
4945
4946// Check varargs and va_copy.
4947static void
4948test_varargs (const char *format, ...)
4949{
4950 va_list args;
4951 va_start (args, format);
4952 va_list args_copy;
4953 va_copy (args_copy, args);
4954
4955 const char *str;
4956 int number;
4957 float fnumber;
4958
4959 while (*format)
4960 {
4961 switch (*format++)
4962 {
4963 case 's': // string
4964 str = va_arg (args_copy, const char *);
4965 break;
4966 case 'd': // int
4967 number = va_arg (args_copy, int);
4968 break;
4969 case 'f': // float
4970 fnumber = va_arg (args_copy, double);
4971 break;
4972 default:
4973 break;
4974 }
4975 }
4976 va_end (args_copy);
4977 va_end (args);
4978}
4979
4980int
4981main ()
4982{
4983
4984 // Check bool.
4985 _Bool success = false;
4986
4987 // Check restrict.
4988 if (test_restrict ("String literal") == 0)
4989 success = true;
4990 char *restrict newvar = "Another string";
4991
4992 // Check varargs.
4993 test_varargs ("s, d' f .", "string", 65, 34.234);
4994 test_varargs_macros ();
4995
4996 // Check flexible array members.
4997 struct incomplete_array *ia =
4998 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4999 ia->datasize = 10;
5000 for (int i = 0; i < ia->datasize; ++i)
5001 ia->data[i] = i * 1.234;
5002
5003 // Check named initializers.
5004 struct named_init ni = {
5005 .number = 34,
5006 .name = L"Test wide string",
5007 .average = 543.34343,
5008 };
5009
5010 ni.number = 58;
5011
5012 int dynamic_array[ni.number];
5013 dynamic_array[ni.number - 1] = 543;
5014
5015 // work around unused variable warnings
5016 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5017 || dynamic_array[ni.number - 1] != 543);
5018
5019 ;
5020 return 0;
5021}
5022_ACEOF
5023for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5024do
5025 CC="$ac_save_CC $ac_arg"
5026 if ac_fn_c_try_compile "$LINENO"; then :
5027 ac_cv_prog_cc_c99=$ac_arg
5028fi
5029rm -f core conftest.err conftest.$ac_objext
5030 test "x$ac_cv_prog_cc_c99" != "xno" && break
5031done
5032rm -f conftest.$ac_ext
5033CC=$ac_save_CC
5034
5035fi
5036# AC_CACHE_VAL
5037case "x$ac_cv_prog_cc_c99" in
5038 x)
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5040$as_echo "none needed" >&6; } ;;
5041 xno)
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5043$as_echo "unsupported" >&6; } ;;
5044 *)
5045 CC="$CC $ac_cv_prog_cc_c99"
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5047$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5048esac
5049if test "x$ac_cv_prog_cc_c99" != xno; then :
5050
5051fi
5052
5053
5213506e 5054ac_ext=cpp
2aeb72e9
DD
5055ac_cpp='$CXXCPP $CPPFLAGS'
5056ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5057ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5058ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
5059if test -z "$CXX"; then
5060 if test -n "$CCC"; then
5061 CXX=$CCC
5062 else
5063 if test -n "$ac_tool_prefix"; then
5064 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
5065 do
5066 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5067set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
5068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5069$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5070if ${ac_cv_prog_CXX+:} false; then :
5213506e 5071 $as_echo_n "(cached) " >&6
2aeb72e9
DD
5072else
5073 if test -n "$CXX"; then
5074 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5075else
5076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077for as_dir in $PATH
5078do
5079 IFS=$as_save_IFS
5080 test -z "$as_dir" && as_dir=.
5213506e 5081 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2aeb72e9 5083 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 5084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
5085 break 2
5086 fi
5087done
5213506e
RW
5088 done
5089IFS=$as_save_IFS
55ffb5ed 5090
c3a86da9
DJ
5091fi
5092fi
5093CXX=$ac_cv_prog_CXX
5094if test -n "$CXX"; then
5213506e
RW
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5096$as_echo "$CXX" >&6; }
c3a86da9 5097else
5213506e
RW
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099$as_echo "no" >&6; }
c3a86da9
DJ
5100fi
5101
5213506e 5102
c3a86da9
DJ
5103 test -n "$CXX" && break
5104 done
5105fi
5106if test -z "$CXX"; then
5107 ac_ct_CXX=$CXX
5213506e 5108 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
5109do
5110 # Extract the first word of "$ac_prog", so it can be a program name with args.
5111set dummy $ac_prog; ac_word=$2
5213506e
RW
5112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5113$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5114if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5213506e 5115 $as_echo_n "(cached) " >&6
c3a86da9
DJ
5116else
5117 if test -n "$ac_ct_CXX"; then
5118 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5119else
5120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121for as_dir in $PATH
5122do
5123 IFS=$as_save_IFS
5124 test -z "$as_dir" && as_dir=.
5213506e 5125 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c3a86da9 5127 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 5128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
5129 break 2
5130 fi
5131done
5213506e
RW
5132 done
5133IFS=$as_save_IFS
c3a86da9
DJ
5134
5135fi
5136fi
5137ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5138if test -n "$ac_ct_CXX"; then
5213506e
RW
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5140$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 5141else
5213506e
RW
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5143$as_echo "no" >&6; }
c3a86da9
DJ
5144fi
5145
5213506e 5146
c3a86da9
DJ
5147 test -n "$ac_ct_CXX" && break
5148done
c3a86da9 5149
5213506e
RW
5150 if test "x$ac_ct_CXX" = x; then
5151 CXX="g++"
5152 else
5153 case $cross_compiling:$ac_tool_warned in
5154yes:)
5155{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5156$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5157ac_tool_warned=yes ;;
5158esac
5159 CXX=$ac_ct_CXX
5160 fi
c3a86da9
DJ
5161fi
5162
5213506e
RW
5163 fi
5164fi
c3a86da9 5165# Provide some information about the compiler.
5213506e
RW
5166$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5167set X $ac_compile
5168ac_compiler=$2
5169for ac_option in --version -v -V -qversion; do
5170 { { ac_try="$ac_compiler $ac_option >&5"
5171case "(($ac_try" in
5172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5173 *) ac_try_echo=$ac_try;;
5174esac
5175eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5176$as_echo "$ac_try_echo"; } >&5
5177 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 5178 ac_status=$?
5213506e
RW
5179 if test -s conftest.err; then
5180 sed '10a\
5181... rest of stderr output deleted ...
5182 10q' conftest.err >conftest.er1
5183 cat conftest.er1 >&5
5213506e 5184 fi
22e05272 5185 rm -f conftest.er1 conftest.err
5213506e
RW
5186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5187 test $ac_status = 0; }
5188done
c3a86da9 5189
5213506e
RW
5190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5191$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
22e05272 5192if ${ac_cv_cxx_compiler_gnu+:} false; then :
5213506e 5193 $as_echo_n "(cached) " >&6
c3a86da9 5194else
5213506e 5195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5196/* end confdefs.h. */
5197
5198int
5199main ()
5200{
5201#ifndef __GNUC__
5202 choke me
5203#endif
5204
5205 ;
5206 return 0;
5207}
5208_ACEOF
5213506e 5209if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5210 ac_compiler_gnu=yes
5211else
5213506e 5212 ac_compiler_gnu=no
c3a86da9 5213fi
5213506e 5214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
5215ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5216
5217fi
5213506e
RW
5218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5219$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5220if test $ac_compiler_gnu = yes; then
5221 GXX=yes
5222else
5223 GXX=
5224fi
c3a86da9
DJ
5225ac_test_CXXFLAGS=${CXXFLAGS+set}
5226ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
5227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5228$as_echo_n "checking whether $CXX accepts -g... " >&6; }
22e05272 5229if ${ac_cv_prog_cxx_g+:} false; then :
5213506e
RW
5230 $as_echo_n "(cached) " >&6
5231else
5232 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5233 ac_cxx_werror_flag=yes
5234 ac_cv_prog_cxx_g=no
5235 CXXFLAGS="-g"
5236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5237/* end confdefs.h. */
5238
5239int
5240main ()
5241{
5242
5243 ;
5244 return 0;
5245}
5246_ACEOF
5213506e 5247if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5248 ac_cv_prog_cxx_g=yes
5249else
5213506e
RW
5250 CXXFLAGS=""
5251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5252/* end confdefs.h. */
5213506e 5253
c3a86da9
DJ
5254int
5255main ()
5256{
5213506e 5257
c3a86da9
DJ
5258 ;
5259 return 0;
5260}
5261_ACEOF
5213506e 5262if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 5263
5213506e
RW
5264else
5265 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5266 CXXFLAGS="-g"
5267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5268/* end confdefs.h. */
5213506e 5269
c3a86da9
DJ
5270int
5271main ()
5272{
5213506e 5273
c3a86da9
DJ
5274 ;
5275 return 0;
5276}
5277_ACEOF
5213506e
RW
5278if ac_fn_cxx_try_compile "$LINENO"; then :
5279 ac_cv_prog_cxx_g=yes
11a67599 5280fi
5213506e
RW
5281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5282fi
5283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5284fi
5285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5286 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5287fi
5288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5289$as_echo "$ac_cv_prog_cxx_g" >&6; }
5290if test "$ac_test_CXXFLAGS" = set; then
5291 CXXFLAGS=$ac_save_CXXFLAGS
5292elif test $ac_cv_prog_cxx_g = yes; then
5293 if test "$GXX" = yes; then
5294 CXXFLAGS="-g -O2"
5295 else
5296 CXXFLAGS="-g"
5297 fi
5298else
5299 if test "$GXX" = yes; then
5300 CXXFLAGS="-O2"
5301 else
5302 CXXFLAGS=
5303 fi
c3a86da9 5304fi
c3a86da9
DJ
5305ac_ext=c
5306ac_cpp='$CPP $CPPFLAGS'
5307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5309ac_compiler_gnu=$ac_cv_c_compiler_gnu
5310
5311
5312# We must set the default linker to the linker used by gcc for the correct
5313# operation of libtool. If LD is not defined and we are using gcc, try to
5314# set the LD default to the ld used by gcc.
5315if test -z "$LD"; then
5316 if test "$GCC" = yes; then
5317 case $build in
5318 *-*-mingw*)
5319 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5320 *)
5321 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5322 esac
5323 case $gcc_prog_ld in
5324 # Accept absolute paths.
5325 [\\/]* | [A-Za-z]:[\\/]*)
5326 LD="$gcc_prog_ld" ;;
5327 esac
5328 fi
23f6b2f9
PB
5329fi
5330
0b21f5d3
EB
5331# Check whether -static-libstdc++ -static-libgcc is supported.
5332have_static_libs=no
5333if test "$GCC" = yes; then
5334 saved_LDFLAGS="$LDFLAGS"
5335
5336 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5338$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5339 ac_ext=cpp
5340ac_cpp='$CXXCPP $CPPFLAGS'
5341ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5342ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5343ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5344
5345
5346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5347/* end confdefs.h. */
0d6414b2
EB
5348
5349#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5350#error -static-libstdc++ not implemented
5351#endif
0b21f5d3
EB
5352int main() {}
5353_ACEOF
5354if ac_fn_cxx_try_link "$LINENO"; then :
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5356$as_echo "yes" >&6; }; have_static_libs=yes
5357else
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359$as_echo "no" >&6; }
5360fi
5361rm -f core conftest.err conftest.$ac_objext \
5362 conftest$ac_exeext conftest.$ac_ext
5363 ac_ext=c
5364ac_cpp='$CPP $CPPFLAGS'
5365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5367ac_compiler_gnu=$ac_cv_c_compiler_gnu
5368
5369
5370 LDFLAGS="$saved_LDFLAGS"
5371fi
5372
23f6b2f9
PB
5373
5374
55ffb5ed 5375
1c710c3c
DJ
5376if test -n "$ac_tool_prefix"; then
5377 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 5378set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
5379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5380$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5381if ${ac_cv_prog_GNATBIND+:} false; then :
5213506e 5382 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5383else
5384 if test -n "$GNATBIND"; then
5385 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5386else
1c710c3c
DJ
5387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388for as_dir in $PATH
5389do
5390 IFS=$as_save_IFS
5391 test -z "$as_dir" && as_dir=.
5213506e 5392 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5394 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5396 break 2
5397 fi
5398done
5213506e
RW
5399 done
5400IFS=$as_save_IFS
1c710c3c 5401
55ffb5ed
NN
5402fi
5403fi
1c710c3c 5404GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5405if test -n "$GNATBIND"; then
5213506e
RW
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5407$as_echo "$GNATBIND" >&6; }
55ffb5ed 5408else
5213506e
RW
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5410$as_echo "no" >&6; }
55ffb5ed
NN
5411fi
5412
5213506e 5413
1c710c3c 5414fi
55ffb5ed 5415if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5416 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5417 # Extract the first word of "gnatbind", so it can be a program name with args.
5418set dummy gnatbind; ac_word=$2
5213506e
RW
5419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5420$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5421if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5213506e 5422 $as_echo_n "(cached) " >&6
55ffb5ed 5423else
1c710c3c
DJ
5424 if test -n "$ac_ct_GNATBIND"; then
5425 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5426else
1c710c3c
DJ
5427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428for as_dir in $PATH
5429do
5430 IFS=$as_save_IFS
5431 test -z "$as_dir" && as_dir=.
5213506e 5432 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5434 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5436 break 2
5437 fi
5438done
5213506e
RW
5439 done
5440IFS=$as_save_IFS
1c710c3c 5441
55ffb5ed
NN
5442fi
5443fi
1c710c3c
DJ
5444ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5445if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5447$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5448else
5213506e
RW
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450$as_echo "no" >&6; }
55ffb5ed
NN
5451fi
5452
5213506e
RW
5453 if test "x$ac_ct_GNATBIND" = x; then
5454 GNATBIND="no"
5455 else
5456 case $cross_compiling:$ac_tool_warned in
5457yes:)
5458{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5459$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5460ac_tool_warned=yes ;;
5461esac
5462 GNATBIND=$ac_ct_GNATBIND
5463 fi
55ffb5ed 5464else
1c710c3c 5465 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5466fi
5467
1c710c3c
DJ
5468if test -n "$ac_tool_prefix"; then
5469 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5470set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5472$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5473if ${ac_cv_prog_GNATMAKE+:} false; then :
5213506e 5474 $as_echo_n "(cached) " >&6
5305be7e
RG
5475else
5476 if test -n "$GNATMAKE"; then
5477 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5478else
1c710c3c
DJ
5479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480for as_dir in $PATH
5481do
5482 IFS=$as_save_IFS
5483 test -z "$as_dir" && as_dir=.
5213506e 5484 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5486 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5488 break 2
5489 fi
5490done
5213506e
RW
5491 done
5492IFS=$as_save_IFS
1c710c3c 5493
5305be7e
RG
5494fi
5495fi
1c710c3c 5496GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5497if test -n "$GNATMAKE"; then
5213506e
RW
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5499$as_echo "$GNATMAKE" >&6; }
5305be7e 5500else
5213506e
RW
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502$as_echo "no" >&6; }
5305be7e
RG
5503fi
5504
5213506e 5505
1c710c3c 5506fi
5305be7e 5507if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5508 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5509 # Extract the first word of "gnatmake", so it can be a program name with args.
5510set dummy gnatmake; ac_word=$2
5213506e
RW
5511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5512$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5513if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5213506e 5514 $as_echo_n "(cached) " >&6
5305be7e 5515else
1c710c3c
DJ
5516 if test -n "$ac_ct_GNATMAKE"; then
5517 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5518else
1c710c3c
DJ
5519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520for as_dir in $PATH
5521do
5522 IFS=$as_save_IFS
5523 test -z "$as_dir" && as_dir=.
5213506e 5524 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5526 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5528 break 2
5529 fi
5530done
5213506e
RW
5531 done
5532IFS=$as_save_IFS
1c710c3c 5533
5305be7e
RG
5534fi
5535fi
1c710c3c
DJ
5536ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5537if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5539$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5540else
5213506e
RW
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5542$as_echo "no" >&6; }
5305be7e
RG
5543fi
5544
5213506e
RW
5545 if test "x$ac_ct_GNATMAKE" = x; then
5546 GNATMAKE="no"
5547 else
5548 case $cross_compiling:$ac_tool_warned in
5549yes:)
5550{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5551$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5552ac_tool_warned=yes ;;
5553esac
5554 GNATMAKE=$ac_ct_GNATMAKE
5555 fi
5305be7e 5556else
1c710c3c 5557 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5558fi
5559
71f068a9
RS
5560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5561$as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
22e05272 5562if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5213506e 5563 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5564else
5565 cat >conftest.adb <<EOF
71f068a9
RS
5566pragma Warnings (Off);
5567with System.CRTL;
5568pragma Warnings (On);
5569use type System.CRTL.int64;
55ffb5ed
NN
5570procedure conftest is begin null; end conftest;
5571EOF
5572acx_cv_cc_gcc_supports_ada=no
5573# There is a bug in old released versions of GCC which causes the
5574# driver to exit successfully when the appropriate language module
5575# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5576# Therefore we must check for the error message as well as an
5577# unsuccessful exit.
1db673ca
RO
5578# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5579# given a .adb file, but produce no object file. So we must check
5580# if an object file was really produced to guard against this.
55ffb5ed 5581errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5582if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5583 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5584fi
5585rm -f conftest.*
5586fi
5213506e
RW
5587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5588$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5589
7cb62ef1 5590if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5591 have_gnat=yes
5592else
5593 have_gnat=no
5594fi
5595
5fee5ec3
IB
5596
5597
5598if test -n "$ac_tool_prefix"; then
5599 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5600set dummy ${ac_tool_prefix}gdc; ac_word=$2
5601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5602$as_echo_n "checking for $ac_word... " >&6; }
5603if ${ac_cv_prog_GDC+:} false; then :
5604 $as_echo_n "(cached) " >&6
5605else
5606 if test -n "$GDC"; then
5607 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5608else
5609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610for as_dir in $PATH
5611do
5612 IFS=$as_save_IFS
5613 test -z "$as_dir" && as_dir=.
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5616 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5618 break 2
5619 fi
5620done
5621 done
5622IFS=$as_save_IFS
5623
5624fi
5625fi
5626GDC=$ac_cv_prog_GDC
5627if test -n "$GDC"; then
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5629$as_echo "$GDC" >&6; }
5630else
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632$as_echo "no" >&6; }
5633fi
5634
5635
5636fi
5637if test -z "$ac_cv_prog_GDC"; then
5638 ac_ct_GDC=$GDC
5639 # Extract the first word of "gdc", so it can be a program name with args.
5640set dummy gdc; ac_word=$2
5641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5642$as_echo_n "checking for $ac_word... " >&6; }
5643if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5644 $as_echo_n "(cached) " >&6
5645else
5646 if test -n "$ac_ct_GDC"; then
5647 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5648else
5649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650for as_dir in $PATH
5651do
5652 IFS=$as_save_IFS
5653 test -z "$as_dir" && as_dir=.
5654 for ac_exec_ext in '' $ac_executable_extensions; do
5655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5656 ac_cv_prog_ac_ct_GDC="gdc"
5657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5658 break 2
5659 fi
5660done
5661 done
5662IFS=$as_save_IFS
5663
5664fi
5665fi
5666ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5667if test -n "$ac_ct_GDC"; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5669$as_echo "$ac_ct_GDC" >&6; }
5670else
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672$as_echo "no" >&6; }
5673fi
5674
5675 if test "x$ac_ct_GDC" = x; then
5676 GDC="no"
5677 else
5678 case $cross_compiling:$ac_tool_warned in
5679yes:)
5680{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5681$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5682ac_tool_warned=yes ;;
5683esac
5684 GDC=$ac_ct_GDC
5685 fi
5686else
5687 GDC="$ac_cv_prog_GDC"
5688fi
5689
7c6ae994
IB
5690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5691$as_echo_n "checking whether the D compiler works... " >&6; }
5692if ${acx_cv_d_compiler_works+:} false; then :
5693 $as_echo_n "(cached) " >&6
5694else
5695 cat >conftest.d <<EOF
5696module conftest; int main() { return 0; }
5697EOF
5698acx_cv_d_compiler_works=no
5fee5ec3 5699if test "x$GDC" != xno; then
7c6ae994
IB
5700 errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5701 if test x"$errors" = x && test -f conftest.$ac_objext; then
5702 acx_cv_d_compiler_works=yes
5703 fi
5704 rm -f conftest.*
5705fi
5706fi
5707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5708$as_echo "$acx_cv_d_compiler_works" >&6; }
5709if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5fee5ec3
IB
5710 have_gdc=yes
5711else
5712 have_gdc=no
5713fi
5714
5213506e
RW
5715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5716$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
22e05272 5717if ${gcc_cv_prog_cmp_skip+:} false; then :
5213506e 5718 $as_echo_n "(cached) " >&6
a76494aa
PB
5719else
5720 echo abfoo >t1
5721 echo cdfoo >t2
b55e6680 5722 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5723 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5724 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5725 :
5726 else
5727 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5728 fi
5729 fi
a76494aa
PB
5730 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5731 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5732 :
a76494aa
PB
5733 else
5734 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5735 fi
5736 fi
5737 rm t1 t2
5738
5739fi
5213506e
RW
5740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5741$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5742do_compare="$gcc_cv_prog_cmp_skip"
5743
5744
55ffb5ed 5745
ff3ac0f4
ILT
5746# Check whether --enable-bootstrap was given.
5747if test "${enable_bootstrap+set}" = set; then :
5748 enableval=$enable_bootstrap;
5749else
5750 enable_bootstrap=default
5751fi
5752
5753
5754# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5755if test -r $srcdir/gcc/configure; then
5756 have_compiler=yes
5757else
5758 have_compiler=no
5759fi
ff3ac0f4
ILT
5760
5761case "$have_compiler:$host:$target:$enable_bootstrap" in
5762 *:*:*:no) ;;
5763
5764 # Default behavior. Enable bootstrap if we have a compiler
5765 # and we are in a native configuration.
5766 yes:$build:$build:default)
5767 enable_bootstrap=yes ;;
5768
5769 *:*:*:default)
5770 enable_bootstrap=no ;;
5771
5772 # We have a compiler and we are in a native configuration, bootstrap is ok
5773 yes:$build:$build:yes)
5774 ;;
5775
5776 # Other configurations, but we have a compiler. Assume the user knows
5777 # what he's doing.
5778 yes:*:*:yes)
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5780$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5781 ;;
5782
5783 # No compiler: if they passed --enable-bootstrap explicitly, fail
5784 no:*:*:yes)
22e05272 5785 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ff3ac0f4
ILT
5786
5787 # Fail if wrong command line
5788 *)
22e05272 5789 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
ff3ac0f4
ILT
5790 ;;
5791esac
5792
5329b59a 5793# When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
ffac9597
JM
5794# C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5795# require C++11 (or higher).
46070488 5796if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5329b59a 5797 CXX="$CXX -std=c++11"
ffac9597
JM
5798elif test "$have_compiler" = yes; then
5799 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5800 ac_ext=cpp
5801ac_cpp='$CXXCPP $CPPFLAGS'
5802ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5803ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5804ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5805 ac_success=no
5806
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5808$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5809if ${ax_cv_cxx_compile_cxx11+:} false; then :
5810 $as_echo_n "(cached) " >&6
5811else
5812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5813/* end confdefs.h. */
5814
5815
5816// If the compiler admits that it is not ready for C++11, why torture it?
5817// Hopefully, this will speed up the test.
5818
5819#ifndef __cplusplus
5820
5821#error "This is not a C++ compiler"
5822
5823#elif __cplusplus < 201103L
5824
5825#error "This is not a C++11 compiler"
5826
5827#else
5828
5829namespace cxx11
5830{
5831
5832 namespace test_static_assert
5833 {
5834
5835 template <typename T>
5836 struct check
5837 {
5838 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5839 };
5840
5841 }
5842
5843 namespace test_final_override
5844 {
5845
5846 struct Base
5847 {
5848 virtual ~Base() {}
5849 virtual void f() {}
5850 };
5851
5852 struct Derived : public Base
5853 {
5854 virtual ~Derived() override {}
5855 virtual void f() override {}
5856 };
5857
5858 }
5859
5860 namespace test_double_right_angle_brackets
5861 {
5862
5863 template < typename T >
5864 struct check {};
5865
5866 typedef check<void> single_type;
5867 typedef check<check<void>> double_type;
5868 typedef check<check<check<void>>> triple_type;
5869 typedef check<check<check<check<void>>>> quadruple_type;
5870
5871 }
5872
5873 namespace test_decltype
5874 {
5875
5876 int
5877 f()
5878 {
5879 int a = 1;
5880 decltype(a) b = 2;
5881 return a + b;
5882 }
5883
5884 }
5885
5886 namespace test_type_deduction
5887 {
5888
5889 template < typename T1, typename T2 >
5890 struct is_same
5891 {
5892 static const bool value = false;
5893 };
5894
5895 template < typename T >
5896 struct is_same<T, T>
5897 {
5898 static const bool value = true;
5899 };
5900
5901 template < typename T1, typename T2 >
5902 auto
5903 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5904 {
5905 return a1 + a2;
5906 }
5907
5908 int
5909 test(const int c, volatile int v)
5910 {
5911 static_assert(is_same<int, decltype(0)>::value == true, "");
5912 static_assert(is_same<int, decltype(c)>::value == false, "");
5913 static_assert(is_same<int, decltype(v)>::value == false, "");
5914 auto ac = c;
5915 auto av = v;
5916 auto sumi = ac + av + 'x';
5917 auto sumf = ac + av + 1.0;
5918 static_assert(is_same<int, decltype(ac)>::value == true, "");
5919 static_assert(is_same<int, decltype(av)>::value == true, "");
5920 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5921 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5922 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5923 return (sumf > 0.0) ? sumi : add(c, v);
5924 }
5925
5926 }
5927
5928 namespace test_noexcept
5929 {
5930
5931 int f() { return 0; }
5932 int g() noexcept { return 0; }
5933
5934 static_assert(noexcept(f()) == false, "");
5935 static_assert(noexcept(g()) == true, "");
5936
5937 }
5938
5939 namespace test_constexpr
5940 {
5941
5942 template < typename CharT >
5943 unsigned long constexpr
5944 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5945 {
5946 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5947 }
5948
5949 template < typename CharT >
5950 unsigned long constexpr
5951 strlen_c(const CharT *const s) noexcept
5952 {
5953 return strlen_c_r(s, 0UL);
5954 }
5955
5956 static_assert(strlen_c("") == 0UL, "");
5957 static_assert(strlen_c("1") == 1UL, "");
5958 static_assert(strlen_c("example") == 7UL, "");
5959 static_assert(strlen_c("another\0example") == 7UL, "");
5960
5961 }
5962
5963 namespace test_rvalue_references
5964 {
5965
5966 template < int N >
5967 struct answer
5968 {
5969 static constexpr int value = N;
5970 };
5971
5972 answer<1> f(int&) { return answer<1>(); }
5973 answer<2> f(const int&) { return answer<2>(); }
5974 answer<3> f(int&&) { return answer<3>(); }
5975
5976 void
5977 test()
5978 {
5979 int i = 0;
5980 const int c = 0;
5981 static_assert(decltype(f(i))::value == 1, "");
5982 static_assert(decltype(f(c))::value == 2, "");
5983 static_assert(decltype(f(0))::value == 3, "");
5984 }
5985
5986 }
5987
5988 namespace test_uniform_initialization
5989 {
5990
5991 struct test
5992 {
5993 static const int zero {};
5994 static const int one {1};
5995 };
5996
5997 static_assert(test::zero == 0, "");
5998 static_assert(test::one == 1, "");
5999
6000 }
6001
6002 namespace test_lambdas
6003 {
6004
6005 void
6006 test1()
6007 {
6008 auto lambda1 = [](){};
6009 auto lambda2 = lambda1;
6010 lambda1();
6011 lambda2();
6012 }
6013
6014 int
6015 test2()
6016 {
6017 auto a = [](int i, int j){ return i + j; }(1, 2);
6018 auto b = []() -> int { return '0'; }();
6019 auto c = [=](){ return a + b; }();
6020 auto d = [&](){ return c; }();
6021 auto e = [a, &b](int x) mutable {
6022 const auto identity = [](int y){ return y; };
6023 for (auto i = 0; i < a; ++i)
6024 a += b--;
6025 return x + identity(a + b);
6026 }(0);
6027 return a + b + c + d + e;
6028 }
6029
6030 int
6031 test3()
6032 {
6033 const auto nullary = [](){ return 0; };
6034 const auto unary = [](int x){ return x; };
6035 using nullary_t = decltype(nullary);
6036 using unary_t = decltype(unary);
6037 const auto higher1st = [](nullary_t f){ return f(); };
6038 const auto higher2nd = [unary](nullary_t f1){
6039 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6040 };
6041 return higher1st(nullary) + higher2nd(nullary)(unary);
6042 }
6043
6044 }
6045
6046 namespace test_variadic_templates
6047 {
6048
6049 template <int...>
6050 struct sum;
6051
6052 template <int N0, int... N1toN>
6053 struct sum<N0, N1toN...>
6054 {
6055 static constexpr auto value = N0 + sum<N1toN...>::value;
6056 };
6057
6058 template <>
6059 struct sum<>
6060 {
6061 static constexpr auto value = 0;
6062 };
6063
6064 static_assert(sum<>::value == 0, "");
6065 static_assert(sum<1>::value == 1, "");
6066 static_assert(sum<23>::value == 23, "");
6067 static_assert(sum<1, 2>::value == 3, "");
6068 static_assert(sum<5, 5, 11>::value == 21, "");
6069 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6070
6071 }
6072
6073 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6074 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6075 // because of this.
6076 namespace test_template_alias_sfinae
6077 {
6078
6079 struct foo {};
6080
6081 template<typename T>
6082 using member = typename T::member_type;
6083
6084 template<typename T>
6085 void func(...) {}
6086
6087 template<typename T>
6088 void func(member<T>*) {}
6089
6090 void test();
6091
6092 void test() { func<foo>(0); }
6093
6094 }
6095
6096} // namespace cxx11
6097
6098#endif // __cplusplus >= 201103L
6099
6100
6101
6102_ACEOF
6103if ac_fn_cxx_try_compile "$LINENO"; then :
6104 ax_cv_cxx_compile_cxx11=yes
6105else
6106 ax_cv_cxx_compile_cxx11=no
6107fi
6108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6109fi
6110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6111$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6112 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6113 ac_success=yes
6114 fi
6115
6116 if test x$ac_success = xno; then
6117 for alternative in ${ax_cxx_compile_alternatives}; do
6118 switch="-std=gnu++${alternative}"
6119 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6121$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6122if eval \${$cachevar+:} false; then :
6123 $as_echo_n "(cached) " >&6
6124else
6125 ac_save_CXX="$CXX"
6126 CXX="$CXX $switch"
6127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128/* end confdefs.h. */
6129
6130
6131// If the compiler admits that it is not ready for C++11, why torture it?
6132// Hopefully, this will speed up the test.
6133
6134#ifndef __cplusplus
6135
6136#error "This is not a C++ compiler"
6137
6138#elif __cplusplus < 201103L
6139
6140#error "This is not a C++11 compiler"
6141
6142#else
6143
6144namespace cxx11
6145{
6146
6147 namespace test_static_assert
6148 {
6149
6150 template <typename T>
6151 struct check
6152 {
6153 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6154 };
6155
6156 }
6157
6158 namespace test_final_override
6159 {
6160
6161 struct Base
6162 {
6163 virtual ~Base() {}
6164 virtual void f() {}
6165 };
6166
6167 struct Derived : public Base
6168 {
6169 virtual ~Derived() override {}
6170 virtual void f() override {}
6171 };
6172
6173 }
6174
6175 namespace test_double_right_angle_brackets
6176 {
6177
6178 template < typename T >
6179 struct check {};
6180
6181 typedef check<void> single_type;
6182 typedef check<check<void>> double_type;
6183 typedef check<check<check<void>>> triple_type;
6184 typedef check<check<check<check<void>>>> quadruple_type;
6185
6186 }
6187
6188 namespace test_decltype
6189 {
6190
6191 int
6192 f()
6193 {
6194 int a = 1;
6195 decltype(a) b = 2;
6196 return a + b;
6197 }
6198
6199 }
6200
6201 namespace test_type_deduction
6202 {
6203
6204 template < typename T1, typename T2 >
6205 struct is_same
6206 {
6207 static const bool value = false;
6208 };
6209
6210 template < typename T >
6211 struct is_same<T, T>
6212 {
6213 static const bool value = true;
6214 };
6215
6216 template < typename T1, typename T2 >
6217 auto
6218 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6219 {
6220 return a1 + a2;
6221 }
6222
6223 int
6224 test(const int c, volatile int v)
6225 {
6226 static_assert(is_same<int, decltype(0)>::value == true, "");
6227 static_assert(is_same<int, decltype(c)>::value == false, "");
6228 static_assert(is_same<int, decltype(v)>::value == false, "");
6229 auto ac = c;
6230 auto av = v;
6231 auto sumi = ac + av + 'x';
6232 auto sumf = ac + av + 1.0;
6233 static_assert(is_same<int, decltype(ac)>::value == true, "");
6234 static_assert(is_same<int, decltype(av)>::value == true, "");
6235 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6236 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6237 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6238 return (sumf > 0.0) ? sumi : add(c, v);
6239 }
6240
6241 }
6242
6243 namespace test_noexcept
6244 {
6245
6246 int f() { return 0; }
6247 int g() noexcept { return 0; }
6248
6249 static_assert(noexcept(f()) == false, "");
6250 static_assert(noexcept(g()) == true, "");
6251
6252 }
6253
6254 namespace test_constexpr
6255 {
6256
6257 template < typename CharT >
6258 unsigned long constexpr
6259 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6260 {
6261 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6262 }
6263
6264 template < typename CharT >
6265 unsigned long constexpr
6266 strlen_c(const CharT *const s) noexcept
6267 {
6268 return strlen_c_r(s, 0UL);
6269 }
6270
6271 static_assert(strlen_c("") == 0UL, "");
6272 static_assert(strlen_c("1") == 1UL, "");
6273 static_assert(strlen_c("example") == 7UL, "");
6274 static_assert(strlen_c("another\0example") == 7UL, "");
6275
6276 }
6277
6278 namespace test_rvalue_references
6279 {
6280
6281 template < int N >
6282 struct answer
6283 {
6284 static constexpr int value = N;
6285 };
6286
6287 answer<1> f(int&) { return answer<1>(); }
6288 answer<2> f(const int&) { return answer<2>(); }
6289 answer<3> f(int&&) { return answer<3>(); }
6290
6291 void
6292 test()
6293 {
6294 int i = 0;
6295 const int c = 0;
6296 static_assert(decltype(f(i))::value == 1, "");
6297 static_assert(decltype(f(c))::value == 2, "");
6298 static_assert(decltype(f(0))::value == 3, "");
6299 }
6300
6301 }
6302
6303 namespace test_uniform_initialization
6304 {
6305
6306 struct test
6307 {
6308 static const int zero {};
6309 static const int one {1};
6310 };
6311
6312 static_assert(test::zero == 0, "");
6313 static_assert(test::one == 1, "");
6314
6315 }
6316
6317 namespace test_lambdas
6318 {
6319
6320 void
6321 test1()
6322 {
6323 auto lambda1 = [](){};
6324 auto lambda2 = lambda1;
6325 lambda1();
6326 lambda2();
6327 }
6328
6329 int
6330 test2()
6331 {
6332 auto a = [](int i, int j){ return i + j; }(1, 2);
6333 auto b = []() -> int { return '0'; }();
6334 auto c = [=](){ return a + b; }();
6335 auto d = [&](){ return c; }();
6336 auto e = [a, &b](int x) mutable {
6337 const auto identity = [](int y){ return y; };
6338 for (auto i = 0; i < a; ++i)
6339 a += b--;
6340 return x + identity(a + b);
6341 }(0);
6342 return a + b + c + d + e;
6343 }
6344
6345 int
6346 test3()
6347 {
6348 const auto nullary = [](){ return 0; };
6349 const auto unary = [](int x){ return x; };
6350 using nullary_t = decltype(nullary);
6351 using unary_t = decltype(unary);
6352 const auto higher1st = [](nullary_t f){ return f(); };
6353 const auto higher2nd = [unary](nullary_t f1){
6354 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6355 };
6356 return higher1st(nullary) + higher2nd(nullary)(unary);
6357 }
6358
6359 }
6360
6361 namespace test_variadic_templates
6362 {
6363
6364 template <int...>
6365 struct sum;
6366
6367 template <int N0, int... N1toN>
6368 struct sum<N0, N1toN...>
6369 {
6370 static constexpr auto value = N0 + sum<N1toN...>::value;
6371 };
6372
6373 template <>
6374 struct sum<>
6375 {
6376 static constexpr auto value = 0;
6377 };
6378
6379 static_assert(sum<>::value == 0, "");
6380 static_assert(sum<1>::value == 1, "");
6381 static_assert(sum<23>::value == 23, "");
6382 static_assert(sum<1, 2>::value == 3, "");
6383 static_assert(sum<5, 5, 11>::value == 21, "");
6384 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6385
6386 }
6387
6388 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6389 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6390 // because of this.
6391 namespace test_template_alias_sfinae
6392 {
6393
6394 struct foo {};
6395
6396 template<typename T>
6397 using member = typename T::member_type;
6398
6399 template<typename T>
6400 void func(...) {}
6401
6402 template<typename T>
6403 void func(member<T>*) {}
6404
6405 void test();
6406
6407 void test() { func<foo>(0); }
6408
6409 }
6410
6411} // namespace cxx11
6412
6413#endif // __cplusplus >= 201103L
6414
6415
6416
6417_ACEOF
6418if ac_fn_cxx_try_compile "$LINENO"; then :
6419 eval $cachevar=yes
6420else
6421 eval $cachevar=no
6422fi
6423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6424 CXX="$ac_save_CXX"
6425fi
6426eval ac_res=\$$cachevar
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6428$as_echo "$ac_res" >&6; }
6429 if eval test x\$$cachevar = xyes; then
6430 CXX="$CXX $switch"
6431 if test -n "$CXXCPP" ; then
6432 CXXCPP="$CXXCPP $switch"
6433 fi
6434 ac_success=yes
6435 break
6436 fi
6437 done
6438 fi
6439
6440 if test x$ac_success = xno; then
6441 for alternative in ${ax_cxx_compile_alternatives}; do
6442 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6443 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6445$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6446if eval \${$cachevar+:} false; then :
6447 $as_echo_n "(cached) " >&6
6448else
6449 ac_save_CXX="$CXX"
6450 CXX="$CXX $switch"
6451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6452/* end confdefs.h. */
6453
6454
6455// If the compiler admits that it is not ready for C++11, why torture it?
6456// Hopefully, this will speed up the test.
6457
6458#ifndef __cplusplus
6459
6460#error "This is not a C++ compiler"
6461
6462#elif __cplusplus < 201103L
6463
6464#error "This is not a C++11 compiler"
6465
6466#else
6467
6468namespace cxx11
6469{
6470
6471 namespace test_static_assert
6472 {
6473
6474 template <typename T>
6475 struct check
6476 {
6477 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6478 };
6479
6480 }
6481
6482 namespace test_final_override
6483 {
6484
6485 struct Base
6486 {
6487 virtual ~Base() {}
6488 virtual void f() {}
6489 };
6490
6491 struct Derived : public Base
6492 {
6493 virtual ~Derived() override {}
6494 virtual void f() override {}
6495 };
6496
6497 }
6498
6499 namespace test_double_right_angle_brackets
6500 {
6501
6502 template < typename T >
6503 struct check {};
6504
6505 typedef check<void> single_type;
6506 typedef check<check<void>> double_type;
6507 typedef check<check<check<void>>> triple_type;
6508 typedef check<check<check<check<void>>>> quadruple_type;
6509
6510 }
6511
6512 namespace test_decltype
6513 {
6514
6515 int
6516 f()
6517 {
6518 int a = 1;
6519 decltype(a) b = 2;
6520 return a + b;
6521 }
6522
6523 }
6524
6525 namespace test_type_deduction
6526 {
6527
6528 template < typename T1, typename T2 >
6529 struct is_same
6530 {
6531 static const bool value = false;
6532 };
6533
6534 template < typename T >
6535 struct is_same<T, T>
6536 {
6537 static const bool value = true;
6538 };
6539
6540 template < typename T1, typename T2 >
6541 auto
6542 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6543 {
6544 return a1 + a2;
6545 }
6546
6547 int
6548 test(const int c, volatile int v)
6549 {
6550 static_assert(is_same<int, decltype(0)>::value == true, "");
6551 static_assert(is_same<int, decltype(c)>::value == false, "");
6552 static_assert(is_same<int, decltype(v)>::value == false, "");
6553 auto ac = c;
6554 auto av = v;
6555 auto sumi = ac + av + 'x';
6556 auto sumf = ac + av + 1.0;
6557 static_assert(is_same<int, decltype(ac)>::value == true, "");
6558 static_assert(is_same<int, decltype(av)>::value == true, "");
6559 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6560 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6561 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6562 return (sumf > 0.0) ? sumi : add(c, v);
6563 }
6564
6565 }
6566
6567 namespace test_noexcept
6568 {
6569
6570 int f() { return 0; }
6571 int g() noexcept { return 0; }
6572
6573 static_assert(noexcept(f()) == false, "");
6574 static_assert(noexcept(g()) == true, "");
6575
6576 }
6577
6578 namespace test_constexpr
6579 {
6580
6581 template < typename CharT >
6582 unsigned long constexpr
6583 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6584 {
6585 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6586 }
6587
6588 template < typename CharT >
6589 unsigned long constexpr
6590 strlen_c(const CharT *const s) noexcept
6591 {
6592 return strlen_c_r(s, 0UL);
6593 }
6594
6595 static_assert(strlen_c("") == 0UL, "");
6596 static_assert(strlen_c("1") == 1UL, "");
6597 static_assert(strlen_c("example") == 7UL, "");
6598 static_assert(strlen_c("another\0example") == 7UL, "");
6599
6600 }
6601
6602 namespace test_rvalue_references
6603 {
6604
6605 template < int N >
6606 struct answer
6607 {
6608 static constexpr int value = N;
6609 };
6610
6611 answer<1> f(int&) { return answer<1>(); }
6612 answer<2> f(const int&) { return answer<2>(); }
6613 answer<3> f(int&&) { return answer<3>(); }
6614
6615 void
6616 test()
6617 {
6618 int i = 0;
6619 const int c = 0;
6620 static_assert(decltype(f(i))::value == 1, "");
6621 static_assert(decltype(f(c))::value == 2, "");
6622 static_assert(decltype(f(0))::value == 3, "");
6623 }
6624
6625 }
6626
6627 namespace test_uniform_initialization
6628 {
6629
6630 struct test
6631 {
6632 static const int zero {};
6633 static const int one {1};
6634 };
6635
6636 static_assert(test::zero == 0, "");
6637 static_assert(test::one == 1, "");
6638
6639 }
6640
6641 namespace test_lambdas
6642 {
6643
6644 void
6645 test1()
6646 {
6647 auto lambda1 = [](){};
6648 auto lambda2 = lambda1;
6649 lambda1();
6650 lambda2();
6651 }
6652
6653 int
6654 test2()
6655 {
6656 auto a = [](int i, int j){ return i + j; }(1, 2);
6657 auto b = []() -> int { return '0'; }();
6658 auto c = [=](){ return a + b; }();
6659 auto d = [&](){ return c; }();
6660 auto e = [a, &b](int x) mutable {
6661 const auto identity = [](int y){ return y; };
6662 for (auto i = 0; i < a; ++i)
6663 a += b--;
6664 return x + identity(a + b);
6665 }(0);
6666 return a + b + c + d + e;
6667 }
6668
6669 int
6670 test3()
6671 {
6672 const auto nullary = [](){ return 0; };
6673 const auto unary = [](int x){ return x; };
6674 using nullary_t = decltype(nullary);
6675 using unary_t = decltype(unary);
6676 const auto higher1st = [](nullary_t f){ return f(); };
6677 const auto higher2nd = [unary](nullary_t f1){
6678 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6679 };
6680 return higher1st(nullary) + higher2nd(nullary)(unary);
6681 }
6682
6683 }
6684
6685 namespace test_variadic_templates
6686 {
6687
6688 template <int...>
6689 struct sum;
6690
6691 template <int N0, int... N1toN>
6692 struct sum<N0, N1toN...>
6693 {
6694 static constexpr auto value = N0 + sum<N1toN...>::value;
6695 };
6696
6697 template <>
6698 struct sum<>
6699 {
6700 static constexpr auto value = 0;
6701 };
6702
6703 static_assert(sum<>::value == 0, "");
6704 static_assert(sum<1>::value == 1, "");
6705 static_assert(sum<23>::value == 23, "");
6706 static_assert(sum<1, 2>::value == 3, "");
6707 static_assert(sum<5, 5, 11>::value == 21, "");
6708 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6709
6710 }
6711
6712 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6713 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6714 // because of this.
6715 namespace test_template_alias_sfinae
6716 {
6717
6718 struct foo {};
6719
6720 template<typename T>
6721 using member = typename T::member_type;
6722
6723 template<typename T>
6724 void func(...) {}
6725
6726 template<typename T>
6727 void func(member<T>*) {}
6728
6729 void test();
6730
6731 void test() { func<foo>(0); }
6732
6733 }
6734
6735} // namespace cxx11
6736
6737#endif // __cplusplus >= 201103L
6738
6739
6740
6741_ACEOF
6742if ac_fn_cxx_try_compile "$LINENO"; then :
6743 eval $cachevar=yes
6744else
6745 eval $cachevar=no
6746fi
6747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6748 CXX="$ac_save_CXX"
6749fi
6750eval ac_res=\$$cachevar
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6752$as_echo "$ac_res" >&6; }
6753 if eval test x\$$cachevar = xyes; then
6754 CXX="$CXX $switch"
6755 if test -n "$CXXCPP" ; then
6756 CXXCPP="$CXXCPP $switch"
6757 fi
6758 ac_success=yes
6759 break
6760 fi
6761 done
6762 if test x$ac_success = xyes; then
6763 break
6764 fi
6765 done
6766 fi
7ffcf5d6 6767
ffac9597
JM
6768 ac_ext=c
6769ac_cpp='$CPP $CPPFLAGS'
6770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6772ac_compiler_gnu=$ac_cv_c_compiler_gnu
6773
6774 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6775 if test x$ac_success = xno; then
6776 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6777 fi
6778 fi
6779 if test x$ac_success = xno; then
6780 HAVE_CXX11=0
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6782$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6783 else
6784 HAVE_CXX11=1
6785
6786$as_echo "#define HAVE_CXX11 1" >>confdefs.h
6787
6788 fi
6789
6790
7ffcf5d6
TB
6791
6792 if test "${build}" != "${host}"; then
6793 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6794 ac_ext=cpp
6795ac_cpp='$CXXCPP $CPPFLAGS'
6796ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6797ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6798ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6799 ac_success=no
6800 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6801 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6802 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6803 CXX="$CXX_FOR_BUILD"
6804 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6805 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6807$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6808if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6809 $as_echo_n "(cached) " >&6
6810else
6811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6812/* end confdefs.h. */
6813
6814
6815// If the compiler admits that it is not ready for C++11, why torture it?
6816// Hopefully, this will speed up the test.
6817
6818#ifndef __cplusplus
6819
6820#error "This is not a C++ compiler"
6821
6822#elif __cplusplus < 201103L
6823
6824#error "This is not a C++11 compiler"
6825
6826#else
6827
6828namespace cxx11
6829{
6830
6831 namespace test_static_assert
6832 {
6833
6834 template <typename T>
6835 struct check
6836 {
6837 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6838 };
6839
6840 }
6841
6842 namespace test_final_override
6843 {
6844
6845 struct Base
6846 {
6847 virtual ~Base() {}
6848 virtual void f() {}
6849 };
6850
6851 struct Derived : public Base
6852 {
6853 virtual ~Derived() override {}
6854 virtual void f() override {}
6855 };
6856
6857 }
6858
6859 namespace test_double_right_angle_brackets
6860 {
6861
6862 template < typename T >
6863 struct check {};
6864
6865 typedef check<void> single_type;
6866 typedef check<check<void>> double_type;
6867 typedef check<check<check<void>>> triple_type;
6868 typedef check<check<check<check<void>>>> quadruple_type;
6869
6870 }
6871
6872 namespace test_decltype
6873 {
6874
6875 int
6876 f()
6877 {
6878 int a = 1;
6879 decltype(a) b = 2;
6880 return a + b;
6881 }
6882
6883 }
6884
6885 namespace test_type_deduction
6886 {
6887
6888 template < typename T1, typename T2 >
6889 struct is_same
6890 {
6891 static const bool value = false;
6892 };
6893
6894 template < typename T >
6895 struct is_same<T, T>
6896 {
6897 static const bool value = true;
6898 };
6899
6900 template < typename T1, typename T2 >
6901 auto
6902 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6903 {
6904 return a1 + a2;
6905 }
6906
6907 int
6908 test(const int c, volatile int v)
6909 {
6910 static_assert(is_same<int, decltype(0)>::value == true, "");
6911 static_assert(is_same<int, decltype(c)>::value == false, "");
6912 static_assert(is_same<int, decltype(v)>::value == false, "");
6913 auto ac = c;
6914 auto av = v;
6915 auto sumi = ac + av + 'x';
6916 auto sumf = ac + av + 1.0;
6917 static_assert(is_same<int, decltype(ac)>::value == true, "");
6918 static_assert(is_same<int, decltype(av)>::value == true, "");
6919 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6920 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6921 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6922 return (sumf > 0.0) ? sumi : add(c, v);
6923 }
6924
6925 }
6926
6927 namespace test_noexcept
6928 {
6929
6930 int f() { return 0; }
6931 int g() noexcept { return 0; }
6932
6933 static_assert(noexcept(f()) == false, "");
6934 static_assert(noexcept(g()) == true, "");
6935
6936 }
6937
6938 namespace test_constexpr
6939 {
6940
6941 template < typename CharT >
6942 unsigned long constexpr
6943 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6944 {
6945 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6946 }
6947
6948 template < typename CharT >
6949 unsigned long constexpr
6950 strlen_c(const CharT *const s) noexcept
6951 {
6952 return strlen_c_r(s, 0UL);
6953 }
6954
6955 static_assert(strlen_c("") == 0UL, "");
6956 static_assert(strlen_c("1") == 1UL, "");
6957 static_assert(strlen_c("example") == 7UL, "");
6958 static_assert(strlen_c("another\0example") == 7UL, "");
6959
6960 }
6961
6962 namespace test_rvalue_references
6963 {
6964
6965 template < int N >
6966 struct answer
6967 {
6968 static constexpr int value = N;
6969 };
6970
6971 answer<1> f(int&) { return answer<1>(); }
6972 answer<2> f(const int&) { return answer<2>(); }
6973 answer<3> f(int&&) { return answer<3>(); }
6974
6975 void
6976 test()
6977 {
6978 int i = 0;
6979 const int c = 0;
6980 static_assert(decltype(f(i))::value == 1, "");
6981 static_assert(decltype(f(c))::value == 2, "");
6982 static_assert(decltype(f(0))::value == 3, "");
6983 }
6984
6985 }
6986
6987 namespace test_uniform_initialization
6988 {
6989
6990 struct test
6991 {
6992 static const int zero {};
6993 static const int one {1};
6994 };
6995
6996 static_assert(test::zero == 0, "");
6997 static_assert(test::one == 1, "");
6998
6999 }
7000
7001 namespace test_lambdas
7002 {
7003
7004 void
7005 test1()
7006 {
7007 auto lambda1 = [](){};
7008 auto lambda2 = lambda1;
7009 lambda1();
7010 lambda2();
7011 }
7012
7013 int
7014 test2()
7015 {
7016 auto a = [](int i, int j){ return i + j; }(1, 2);
7017 auto b = []() -> int { return '0'; }();
7018 auto c = [=](){ return a + b; }();
7019 auto d = [&](){ return c; }();
7020 auto e = [a, &b](int x) mutable {
7021 const auto identity = [](int y){ return y; };
7022 for (auto i = 0; i < a; ++i)
7023 a += b--;
7024 return x + identity(a + b);
7025 }(0);
7026 return a + b + c + d + e;
7027 }
7028
7029 int
7030 test3()
7031 {
7032 const auto nullary = [](){ return 0; };
7033 const auto unary = [](int x){ return x; };
7034 using nullary_t = decltype(nullary);
7035 using unary_t = decltype(unary);
7036 const auto higher1st = [](nullary_t f){ return f(); };
7037 const auto higher2nd = [unary](nullary_t f1){
7038 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7039 };
7040 return higher1st(nullary) + higher2nd(nullary)(unary);
7041 }
7042
7043 }
7044
7045 namespace test_variadic_templates
7046 {
7047
7048 template <int...>
7049 struct sum;
7050
7051 template <int N0, int... N1toN>
7052 struct sum<N0, N1toN...>
7053 {
7054 static constexpr auto value = N0 + sum<N1toN...>::value;
7055 };
7056
7057 template <>
7058 struct sum<>
7059 {
7060 static constexpr auto value = 0;
7061 };
7062
7063 static_assert(sum<>::value == 0, "");
7064 static_assert(sum<1>::value == 1, "");
7065 static_assert(sum<23>::value == 23, "");
7066 static_assert(sum<1, 2>::value == 3, "");
7067 static_assert(sum<5, 5, 11>::value == 21, "");
7068 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7069
7070 }
7071
7072 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7073 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7074 // because of this.
7075 namespace test_template_alias_sfinae
7076 {
7077
7078 struct foo {};
7079
7080 template<typename T>
7081 using member = typename T::member_type;
7082
7083 template<typename T>
7084 void func(...) {}
7085
7086 template<typename T>
7087 void func(member<T>*) {}
7088
7089 void test();
7090
7091 void test() { func<foo>(0); }
7092
7093 }
7094
7095} // namespace cxx11
7096
7097#endif // __cplusplus >= 201103L
7098
7099
7100
7101_ACEOF
7102if ac_fn_cxx_try_compile "$LINENO"; then :
7103 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7104else
7105 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7106fi
7107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7108fi
7109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7110$as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7111 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7112 ac_success=yes
7113 fi
7114
7115 if test x$ac_success = xno; then
7116 for alternative in ${ax_cxx_compile_alternatives}; do
7117 switch="-std=gnu++${alternative}"
7118 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7120$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7121if eval \${$cachevar+:} false; then :
7122 $as_echo_n "(cached) " >&6
7123else
7124 ac_save_CXX="$CXX"
7125 CXX="$CXX $switch"
7126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7127/* end confdefs.h. */
7128
7129
7130// If the compiler admits that it is not ready for C++11, why torture it?
7131// Hopefully, this will speed up the test.
7132
7133#ifndef __cplusplus
7134
7135#error "This is not a C++ compiler"
7136
7137#elif __cplusplus < 201103L
7138
7139#error "This is not a C++11 compiler"
7140
7141#else
7142
7143namespace cxx11
7144{
7145
7146 namespace test_static_assert
7147 {
7148
7149 template <typename T>
7150 struct check
7151 {
7152 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7153 };
7154
7155 }
7156
7157 namespace test_final_override
7158 {
7159
7160 struct Base
7161 {
7162 virtual ~Base() {}
7163 virtual void f() {}
7164 };
7165
7166 struct Derived : public Base
7167 {
7168 virtual ~Derived() override {}
7169 virtual void f() override {}
7170 };
7171
7172 }
7173
7174 namespace test_double_right_angle_brackets
7175 {
7176
7177 template < typename T >
7178 struct check {};
7179
7180 typedef check<void> single_type;
7181 typedef check<check<void>> double_type;
7182 typedef check<check<check<void>>> triple_type;
7183 typedef check<check<check<check<void>>>> quadruple_type;
7184
7185 }
7186
7187 namespace test_decltype
7188 {
7189
7190 int
7191 f()
7192 {
7193 int a = 1;
7194 decltype(a) b = 2;
7195 return a + b;
7196 }
7197
7198 }
7199
7200 namespace test_type_deduction
7201 {
7202
7203 template < typename T1, typename T2 >
7204 struct is_same
7205 {
7206 static const bool value = false;
7207 };
7208
7209 template < typename T >
7210 struct is_same<T, T>
7211 {
7212 static const bool value = true;
7213 };
7214
7215 template < typename T1, typename T2 >
7216 auto
7217 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7218 {
7219 return a1 + a2;
7220 }
7221
7222 int
7223 test(const int c, volatile int v)
7224 {
7225 static_assert(is_same<int, decltype(0)>::value == true, "");
7226 static_assert(is_same<int, decltype(c)>::value == false, "");
7227 static_assert(is_same<int, decltype(v)>::value == false, "");
7228 auto ac = c;
7229 auto av = v;
7230 auto sumi = ac + av + 'x';
7231 auto sumf = ac + av + 1.0;
7232 static_assert(is_same<int, decltype(ac)>::value == true, "");
7233 static_assert(is_same<int, decltype(av)>::value == true, "");
7234 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7235 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7236 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7237 return (sumf > 0.0) ? sumi : add(c, v);
7238 }
7239
7240 }
7241
7242 namespace test_noexcept
7243 {
7244
7245 int f() { return 0; }
7246 int g() noexcept { return 0; }
7247
7248 static_assert(noexcept(f()) == false, "");
7249 static_assert(noexcept(g()) == true, "");
7250
7251 }
7252
7253 namespace test_constexpr
7254 {
7255
7256 template < typename CharT >
7257 unsigned long constexpr
7258 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7259 {
7260 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7261 }
7262
7263 template < typename CharT >
7264 unsigned long constexpr
7265 strlen_c(const CharT *const s) noexcept
7266 {
7267 return strlen_c_r(s, 0UL);
7268 }
7269
7270 static_assert(strlen_c("") == 0UL, "");
7271 static_assert(strlen_c("1") == 1UL, "");
7272 static_assert(strlen_c("example") == 7UL, "");
7273 static_assert(strlen_c("another\0example") == 7UL, "");
7274
7275 }
7276
7277 namespace test_rvalue_references
7278 {
7279
7280 template < int N >
7281 struct answer
7282 {
7283 static constexpr int value = N;
7284 };
7285
7286 answer<1> f(int&) { return answer<1>(); }
7287 answer<2> f(const int&) { return answer<2>(); }
7288 answer<3> f(int&&) { return answer<3>(); }
7289
7290 void
7291 test()
7292 {
7293 int i = 0;
7294 const int c = 0;
7295 static_assert(decltype(f(i))::value == 1, "");
7296 static_assert(decltype(f(c))::value == 2, "");
7297 static_assert(decltype(f(0))::value == 3, "");
7298 }
7299
7300 }
7301
7302 namespace test_uniform_initialization
7303 {
7304
7305 struct test
7306 {
7307 static const int zero {};
7308 static const int one {1};
7309 };
7310
7311 static_assert(test::zero == 0, "");
7312 static_assert(test::one == 1, "");
7313
7314 }
7315
7316 namespace test_lambdas
7317 {
7318
7319 void
7320 test1()
7321 {
7322 auto lambda1 = [](){};
7323 auto lambda2 = lambda1;
7324 lambda1();
7325 lambda2();
7326 }
7327
7328 int
7329 test2()
7330 {
7331 auto a = [](int i, int j){ return i + j; }(1, 2);
7332 auto b = []() -> int { return '0'; }();
7333 auto c = [=](){ return a + b; }();
7334 auto d = [&](){ return c; }();
7335 auto e = [a, &b](int x) mutable {
7336 const auto identity = [](int y){ return y; };
7337 for (auto i = 0; i < a; ++i)
7338 a += b--;
7339 return x + identity(a + b);
7340 }(0);
7341 return a + b + c + d + e;
7342 }
7343
7344 int
7345 test3()
7346 {
7347 const auto nullary = [](){ return 0; };
7348 const auto unary = [](int x){ return x; };
7349 using nullary_t = decltype(nullary);
7350 using unary_t = decltype(unary);
7351 const auto higher1st = [](nullary_t f){ return f(); };
7352 const auto higher2nd = [unary](nullary_t f1){
7353 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7354 };
7355 return higher1st(nullary) + higher2nd(nullary)(unary);
7356 }
7357
7358 }
7359
7360 namespace test_variadic_templates
7361 {
7362
7363 template <int...>
7364 struct sum;
7365
7366 template <int N0, int... N1toN>
7367 struct sum<N0, N1toN...>
7368 {
7369 static constexpr auto value = N0 + sum<N1toN...>::value;
7370 };
7371
7372 template <>
7373 struct sum<>
7374 {
7375 static constexpr auto value = 0;
7376 };
7377
7378 static_assert(sum<>::value == 0, "");
7379 static_assert(sum<1>::value == 1, "");
7380 static_assert(sum<23>::value == 23, "");
7381 static_assert(sum<1, 2>::value == 3, "");
7382 static_assert(sum<5, 5, 11>::value == 21, "");
7383 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7384
7385 }
7386
7387 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7388 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7389 // because of this.
7390 namespace test_template_alias_sfinae
7391 {
7392
7393 struct foo {};
7394
7395 template<typename T>
7396 using member = typename T::member_type;
7397
7398 template<typename T>
7399 void func(...) {}
7400
7401 template<typename T>
7402 void func(member<T>*) {}
7403
7404 void test();
7405
7406 void test() { func<foo>(0); }
7407
7408 }
7409
7410} // namespace cxx11
7411
7412#endif // __cplusplus >= 201103L
7413
7414
7415
7416_ACEOF
7417if ac_fn_cxx_try_compile "$LINENO"; then :
7418 eval $cachevar=yes
7419else
7420 eval $cachevar=no
7421fi
7422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7423 CXX="$ac_save_CXX"
7424fi
7425eval ac_res=\$$cachevar
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7427$as_echo "$ac_res" >&6; }
7428 if eval test x\$$cachevar = xyes; then
7429 CXX="$CXX $switch"
7430 if test -n "$CXXCPP" ; then
7431 CXXCPP="$CXXCPP $switch"
7432 fi
7433 ac_success=yes
7434 break
7435 fi
7436 done
7437 fi
7438
7439 if test x$ac_success = xno; then
7440 for alternative in ${ax_cxx_compile_alternatives}; do
7441 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7442 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7444$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7445if eval \${$cachevar+:} false; then :
7446 $as_echo_n "(cached) " >&6
7447else
7448 ac_save_CXX="$CXX"
7449 CXX="$CXX $switch"
7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451/* end confdefs.h. */
7452
7453
7454// If the compiler admits that it is not ready for C++11, why torture it?
7455// Hopefully, this will speed up the test.
7456
7457#ifndef __cplusplus
7458
7459#error "This is not a C++ compiler"
7460
7461#elif __cplusplus < 201103L
7462
7463#error "This is not a C++11 compiler"
7464
7465#else
7466
7467namespace cxx11
7468{
7469
7470 namespace test_static_assert
7471 {
7472
7473 template <typename T>
7474 struct check
7475 {
7476 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7477 };
7478
7479 }
7480
7481 namespace test_final_override
7482 {
7483
7484 struct Base
7485 {
7486 virtual ~Base() {}
7487 virtual void f() {}
7488 };
7489
7490 struct Derived : public Base
7491 {
7492 virtual ~Derived() override {}
7493 virtual void f() override {}
7494 };
7495
7496 }
7497
7498 namespace test_double_right_angle_brackets
7499 {
7500
7501 template < typename T >
7502 struct check {};
7503
7504 typedef check<void> single_type;
7505 typedef check<check<void>> double_type;
7506 typedef check<check<check<void>>> triple_type;
7507 typedef check<check<check<check<void>>>> quadruple_type;
7508
7509 }
7510
7511 namespace test_decltype
7512 {
7513
7514 int
7515 f()
7516 {
7517 int a = 1;
7518 decltype(a) b = 2;
7519 return a + b;
7520 }
7521
7522 }
7523
7524 namespace test_type_deduction
7525 {
7526
7527 template < typename T1, typename T2 >
7528 struct is_same
7529 {
7530 static const bool value = false;
7531 };
7532
7533 template < typename T >
7534 struct is_same<T, T>
7535 {
7536 static const bool value = true;
7537 };
7538
7539 template < typename T1, typename T2 >
7540 auto
7541 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7542 {
7543 return a1 + a2;
7544 }
7545
7546 int
7547 test(const int c, volatile int v)
7548 {
7549 static_assert(is_same<int, decltype(0)>::value == true, "");
7550 static_assert(is_same<int, decltype(c)>::value == false, "");
7551 static_assert(is_same<int, decltype(v)>::value == false, "");
7552 auto ac = c;
7553 auto av = v;
7554 auto sumi = ac + av + 'x';
7555 auto sumf = ac + av + 1.0;
7556 static_assert(is_same<int, decltype(ac)>::value == true, "");
7557 static_assert(is_same<int, decltype(av)>::value == true, "");
7558 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7559 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7560 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7561 return (sumf > 0.0) ? sumi : add(c, v);
7562 }
7563
7564 }
7565
7566 namespace test_noexcept
7567 {
7568
7569 int f() { return 0; }
7570 int g() noexcept { return 0; }
7571
7572 static_assert(noexcept(f()) == false, "");
7573 static_assert(noexcept(g()) == true, "");
7574
7575 }
7576
7577 namespace test_constexpr
7578 {
7579
7580 template < typename CharT >
7581 unsigned long constexpr
7582 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7583 {
7584 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7585 }
7586
7587 template < typename CharT >
7588 unsigned long constexpr
7589 strlen_c(const CharT *const s) noexcept
7590 {
7591 return strlen_c_r(s, 0UL);
7592 }
7593
7594 static_assert(strlen_c("") == 0UL, "");
7595 static_assert(strlen_c("1") == 1UL, "");
7596 static_assert(strlen_c("example") == 7UL, "");
7597 static_assert(strlen_c("another\0example") == 7UL, "");
7598
7599 }
7600
7601 namespace test_rvalue_references
7602 {
7603
7604 template < int N >
7605 struct answer
7606 {
7607 static constexpr int value = N;
7608 };
7609
7610 answer<1> f(int&) { return answer<1>(); }
7611 answer<2> f(const int&) { return answer<2>(); }
7612 answer<3> f(int&&) { return answer<3>(); }
7613
7614 void
7615 test()
7616 {
7617 int i = 0;
7618 const int c = 0;
7619 static_assert(decltype(f(i))::value == 1, "");
7620 static_assert(decltype(f(c))::value == 2, "");
7621 static_assert(decltype(f(0))::value == 3, "");
7622 }
7623
7624 }
7625
7626 namespace test_uniform_initialization
7627 {
7628
7629 struct test
7630 {
7631 static const int zero {};
7632 static const int one {1};
7633 };
7634
7635 static_assert(test::zero == 0, "");
7636 static_assert(test::one == 1, "");
7637
7638 }
7639
7640 namespace test_lambdas
7641 {
7642
7643 void
7644 test1()
7645 {
7646 auto lambda1 = [](){};
7647 auto lambda2 = lambda1;
7648 lambda1();
7649 lambda2();
7650 }
7651
7652 int
7653 test2()
7654 {
7655 auto a = [](int i, int j){ return i + j; }(1, 2);
7656 auto b = []() -> int { return '0'; }();
7657 auto c = [=](){ return a + b; }();
7658 auto d = [&](){ return c; }();
7659 auto e = [a, &b](int x) mutable {
7660 const auto identity = [](int y){ return y; };
7661 for (auto i = 0; i < a; ++i)
7662 a += b--;
7663 return x + identity(a + b);
7664 }(0);
7665 return a + b + c + d + e;
7666 }
7667
7668 int
7669 test3()
7670 {
7671 const auto nullary = [](){ return 0; };
7672 const auto unary = [](int x){ return x; };
7673 using nullary_t = decltype(nullary);
7674 using unary_t = decltype(unary);
7675 const auto higher1st = [](nullary_t f){ return f(); };
7676 const auto higher2nd = [unary](nullary_t f1){
7677 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7678 };
7679 return higher1st(nullary) + higher2nd(nullary)(unary);
7680 }
7681
7682 }
7683
7684 namespace test_variadic_templates
7685 {
7686
7687 template <int...>
7688 struct sum;
7689
7690 template <int N0, int... N1toN>
7691 struct sum<N0, N1toN...>
7692 {
7693 static constexpr auto value = N0 + sum<N1toN...>::value;
7694 };
7695
7696 template <>
7697 struct sum<>
7698 {
7699 static constexpr auto value = 0;
7700 };
7701
7702 static_assert(sum<>::value == 0, "");
7703 static_assert(sum<1>::value == 1, "");
7704 static_assert(sum<23>::value == 23, "");
7705 static_assert(sum<1, 2>::value == 3, "");
7706 static_assert(sum<5, 5, 11>::value == 21, "");
7707 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7708
7709 }
7710
7711 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7712 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7713 // because of this.
7714 namespace test_template_alias_sfinae
7715 {
7716
7717 struct foo {};
7718
7719 template<typename T>
7720 using member = typename T::member_type;
7721
7722 template<typename T>
7723 void func(...) {}
7724
7725 template<typename T>
7726 void func(member<T>*) {}
7727
7728 void test();
7729
7730 void test() { func<foo>(0); }
7731
7732 }
7733
7734} // namespace cxx11
7735
7736#endif // __cplusplus >= 201103L
7737
7738
7739
7740_ACEOF
7741if ac_fn_cxx_try_compile "$LINENO"; then :
7742 eval $cachevar=yes
7743else
7744 eval $cachevar=no
7745fi
7746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7747 CXX="$ac_save_CXX"
7748fi
7749eval ac_res=\$$cachevar
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7751$as_echo "$ac_res" >&6; }
7752 if eval test x\$$cachevar = xyes; then
7753 CXX="$CXX $switch"
7754 if test -n "$CXXCPP" ; then
7755 CXXCPP="$CXXCPP $switch"
7756 fi
7757 ac_success=yes
7758 break
7759 fi
7760 done
7761 if test x$ac_success = xyes; then
7762 break
7763 fi
7764 done
7765 fi
7766 CXX_FOR_BUILD="$CXX"
7767 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7768 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7769 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7770 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7771 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7772 ac_ext=c
7773ac_cpp='$CPP $CPPFLAGS'
7774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7776ac_compiler_gnu=$ac_cv_c_compiler_gnu
7777
7778 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7779 if test x$ac_success = xno; then
7780 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7781 fi
7782 fi
7783 if test x$ac_success = xno; then
7784 HAVE_CXX11_FOR_BUILD=0
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7786$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7787 else
7788 HAVE_CXX11_FOR_BUILD=1
7789
7790$as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7791
7792 fi
7793
7794
7795 fi
46070488
JM
7796fi
7797
4a5e71f2
L
7798# Check whether --enable-pgo-build was given.
7799if test "${enable_pgo_build+set}" = set; then :
7800 enableval=$enable_pgo_build; enable_pgo_build=$enableval
7801else
7802 enable_pgo_build=no
7803fi
7804
7805
7806# Issue errors and warnings for invalid/strange PGO build combinations.
7807case "$have_compiler:$host:$target:$enable_pgo_build" in
7808 *:*:*:no) ;;
7809
7810 # Allow the PGO build only if we aren't building a compiler and
7811 # we are in a native configuration.
7812 no:$build:$build:yes | no:$build:$build:lto) ;;
7813
7814 # Disallow the PGO bootstrap if we are building a compiler.
7815 yes:*:*:yes | yes:*:*:lto)
7816 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7817
7818 *)
7819 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7820 ;;
7821esac
7822
7823if test "$enable_pgo_build" != "no"; then
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7825$as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7826 old_CFLAGS="$CFLAGS"
7827 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7828 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7829
7830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7831/* end confdefs.h. */
7832int foo;
7833_ACEOF
7834if ac_fn_c_try_compile "$LINENO"; then :
7835
7836else
7837 PGO_BUILD_GEN_CFLAGS=
7838fi
7839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7840 CFLAGS="$old_CFLAGS"
7841 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7843$as_echo "yes" >&6; }
7844 PGO_BUILD_USE_CFLAGS="-fprofile-use"
7845 else
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847$as_echo "no" >&6; }
7848 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7849 fi
7850
7851 if test "$enable_pgo_build" = "lto"; then
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7853$as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7854 old_CFLAGS="$CFLAGS"
7855 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7856 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7858/* end confdefs.h. */
7859int foo;
7860_ACEOF
7861if ac_fn_c_try_compile "$LINENO"; then :
7862
7863else
7864 PGO_BUILD_LTO_CFLAGS=
7865fi
7866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7867 CFLAGS="$old_CFLAGS"
7868 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7870$as_echo "yes" >&6; }
7871 else
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873$as_echo "no" >&6; }
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7875$as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7876 fi
7877 fi
7878fi
7879
7880
7881
7882
592c90ff
KG
7883# Used for setting $lt_cv_objdir
7884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7885$as_echo_n "checking for objdir... " >&6; }
22e05272 7886if ${lt_cv_objdir+:} false; then :
592c90ff
KG
7887 $as_echo_n "(cached) " >&6
7888else
7889 rm -f .libs 2>/dev/null
7890mkdir .libs 2>/dev/null
7891if test -d .libs; then
7892 lt_cv_objdir=.libs
7893else
7894 # MS-DOS does not allow filenames that begin with a dot.
7895 lt_cv_objdir=_libs
7896fi
7897rmdir .libs 2>/dev/null
7898fi
7899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7900$as_echo "$lt_cv_objdir" >&6; }
7901objdir=$lt_cv_objdir
7902
7903
7904
7905
7906
7907cat >>confdefs.h <<_ACEOF
7908#define LT_OBJDIR "$lt_cv_objdir/"
7909_ACEOF
7910
7911
7912
acd26225 7913# Check for GMP, MPFR and MPC
91e0d220
AP
7914require_gmp=no
7915require_mpc=no
7916if test -d ${srcdir}/gcc ; then
7917 require_gmp=yes
7918 require_mpc=yes
7919fi
7920if test -d ${srcdir}/gdb ; then
5977d14a
CC
7921 if test "x$enable_gdb" != xno; then
7922 require_gmp=yes
7923 fi
91e0d220
AP
7924fi
7925
7926gmplibs="-lmpfr -lgmp"
7927if test x"$require_mpc" = "xyes" ; then
7928 gmplibs="-lmpc $gmplibs"
7929fi
6de9cd9a 7930gmpinc=
e69bf64b 7931have_gmp=no
acd26225
KG
7932
7933# Specify a location for mpc
7934# check for this first so it ends up on the link line before mpfr.
7935
5213506e
RW
7936# Check whether --with-mpc was given.
7937if test "${with_mpc+set}" = set; then :
7938 withval=$with_mpc;
7939fi
acd26225 7940
acd26225 7941
9965e3cd 7942# Check whether --with-mpc-include was given.
5213506e
RW
7943if test "${with_mpc_include+set}" = set; then :
7944 withval=$with_mpc_include;
7945fi
acd26225 7946
acd26225 7947
9965e3cd 7948# Check whether --with-mpc-lib was given.
5213506e
RW
7949if test "${with_mpc_lib+set}" = set; then :
7950 withval=$with_mpc_lib;
7951fi
acd26225 7952
acd26225
KG
7953
7954if test "x$with_mpc" != x; then
3a5729ea
KG
7955 gmplibs="-L$with_mpc/lib $gmplibs"
7956 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
7957fi
7958if test "x$with_mpc_include" != x; then
3a5729ea 7959 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
7960fi
7961if test "x$with_mpc_lib" != x; then
3a5729ea 7962 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
7963fi
7964if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 7965 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 7966 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
7967 # Do not test the mpc version. Assume that it is sufficient, since
7968 # it is in the source tree, and the library has not been built yet
7969 # but it would be included on the link line in the version check below
7970 # hence making the test fail.
3a5729ea 7971 have_gmp=yes
acd26225 7972fi
e69bf64b 7973
bebf829d
PB
7974# Specify a location for mpfr
7975# check for this first so it ends up on the link line before gmp.
1c710c3c 7976
5213506e
RW
7977# Check whether --with-mpfr was given.
7978if test "${with_mpfr+set}" = set; then :
7979 withval=$with_mpfr;
7980fi
1c710c3c 7981
bebf829d 7982
9965e3cd 7983# Check whether --with-mpfr-include was given.
5213506e
RW
7984if test "${with_mpfr_include+set}" = set; then :
7985 withval=$with_mpfr_include;
7986fi
1c710c3c 7987
8a877c9c 7988
9965e3cd 7989# Check whether --with-mpfr-lib was given.
5213506e
RW
7990if test "${with_mpfr_lib+set}" = set; then :
7991 withval=$with_mpfr_lib;
7992fi
8a877c9c 7993
bebf829d
PB
7994
7995if test "x$with_mpfr" != x; then
7996 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 7997 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 7998fi
8a877c9c 7999if test "x$with_mpfr_include" != x; then
3a5729ea 8000 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
8001fi
8002if test "x$with_mpfr_lib" != x; then
8003 gmplibs="-L$with_mpfr_lib $gmplibs"
8004fi
e69bf64b 8005if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8f3675f8
MR
8006 # MPFR v3.1.0 moved the sources into a src sub-directory.
8007 if ! test -d ${srcdir}/mpfr/src; then
22e05272 8008 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8f3675f8 8009 fi
00f35794
BE
8010 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8011 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8012 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
e69bf64b
PB
8013 # Do not test the mpfr version. Assume that it is sufficient, since
8014 # it is in the source tree, and the library has not been built yet
8015 # but it would be included on the link line in the version check below
8016 # hence making the test fail.
8017 have_gmp=yes
8018fi
bebf829d 8019
6de9cd9a 8020# Specify a location for gmp
1c710c3c 8021
5213506e
RW
8022# Check whether --with-gmp was given.
8023if test "${with_gmp+set}" = set; then :
8024 withval=$with_gmp;
8025fi
1c710c3c 8026
6de9cd9a 8027
9965e3cd 8028# Check whether --with-gmp-include was given.
5213506e
RW
8029if test "${with_gmp_include+set}" = set; then :
8030 withval=$with_gmp_include;
8031fi
1c710c3c 8032
8a877c9c 8033
9965e3cd 8034# Check whether --with-gmp-lib was given.
5213506e
RW
8035if test "${with_gmp_lib+set}" = set; then :
8036 withval=$with_gmp_lib;
8037fi
8a877c9c
KG
8038
8039
6de9cd9a 8040
bebf829d
PB
8041if test "x$with_gmp" != x; then
8042 gmplibs="-L$with_gmp/lib $gmplibs"
8043 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 8044fi
8a877c9c
KG
8045if test "x$with_gmp_include" != x; then
8046 gmpinc="-I$with_gmp_include $gmpinc"
8047fi
8048if test "x$with_gmp_lib" != x; then
8049 gmplibs="-L$with_gmp_lib $gmplibs"
8050fi
e69bf64b 8051if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 8052 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 8053 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 8054 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 8055 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 8056 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
8057 # Do not test the gmp version. Assume that it is sufficient, since
8058 # it is in the source tree, and the library has not been built yet
8059 # but it would be included on the link line in the version check below
8060 # hence making the test fail.
8061 have_gmp=yes
8062fi
6de9cd9a 8063
91e0d220 8064if test "x$require_gmp" = xyes && test "x$have_gmp" = xno; then
e69bf64b
PB
8065 have_gmp=yes
8066 saved_CFLAGS="$CFLAGS"
8067 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
8068 # Check for the recommended and required versions of GMP.
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8070$as_echo_n "checking for the correct version of gmp.h... " >&6; }
4a5e71f2 8071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
8072/* end confdefs.h. */
8073#include "gmp.h"
8074int
8075main ()
8076{
8077
8078 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8079 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 8080 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
8081 choke me
8082 #endif
8083
8084 ;
8085 return 0;
8086}
8087_ACEOF
8088if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 8089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 8090/* end confdefs.h. */
362c6d2f 8091#include <gmp.h>
1c710c3c
DJ
8092int
8093main ()
8094{
6de9cd9a 8095
362c6d2f
KG
8096 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8097 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8098 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
8099 choke me
8100 #endif
1c710c3c
DJ
8101
8102 ;
8103 return 0;
8104}
8105_ACEOF
5213506e
RW
8106if ac_fn_c_try_compile "$LINENO"; then :
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8108$as_echo "yes" >&6; }
362c6d2f
KG
8109else
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8111$as_echo "buggy but acceptable" >&6; }
8112fi
8113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 8114else
5213506e
RW
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8116$as_echo "no" >&6; }; have_gmp=no
1c710c3c 8117fi
5213506e 8118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 8119
acd26225 8120 # If we have GMP, check the MPFR version.
e69bf64b 8121 if test x"$have_gmp" = xyes; then
362c6d2f
KG
8122 # Check for the recommended and required versions of MPFR.
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8124$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 8125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 8126/* end confdefs.h. */
70ec446f 8127#include <gmp.h>
e69bf64b 8128 #include <mpfr.h>
1c710c3c
DJ
8129int
8130main ()
8131{
e48d66a9 8132
8be34204 8133 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
e69bf64b
PB
8134 choke me
8135 #endif
1c710c3c
DJ
8136
8137 ;
8138 return 0;
8139}
8140_ACEOF
5213506e
RW
8141if ac_fn_c_try_compile "$LINENO"; then :
8142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 8143/* end confdefs.h. */
a3993f33 8144#include <gmp.h>
e69bf64b 8145 #include <mpfr.h>
1c710c3c
DJ
8146int
8147main ()
8148{
a3993f33 8149
8be34204 8150 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
e69bf64b
PB
8151 choke me
8152 #endif
acd26225
KG
8153
8154 ;
8155 return 0;
8156}
8157_ACEOF
5213506e
RW
8158if ac_fn_c_try_compile "$LINENO"; then :
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8160$as_echo "yes" >&6; }
acd26225 8161else
5213506e
RW
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8163$as_echo "buggy but acceptable" >&6; }
acd26225 8164fi
5213506e 8165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 8166else
5213506e
RW
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8168$as_echo "no" >&6; }; have_gmp=no
acd26225 8169fi
5213506e 8170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
8171 fi
8172
8173 # Check for the MPC header version.
91e0d220 8174 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes ; then
362c6d2f 8175 # Check for the recommended and required versions of MPC.
5213506e
RW
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8177$as_echo_n "checking for the correct version of mpc.h... " >&6; }
8178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
8179/* end confdefs.h. */
8180#include <mpc.h>
8181int
8182main ()
8183{
8184
362c6d2f
KG
8185 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8186 choke me
8187 #endif
8188
8189 ;
8190 return 0;
8191}
8192_ACEOF
8193if ac_fn_c_try_compile "$LINENO"; then :
8194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8195/* end confdefs.h. */
8196#include <mpc.h>
8197int
8198main ()
8199{
8200
8201 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
8202 choke me
8203 #endif
8204
8205 ;
8206 return 0;
8207}
8208_ACEOF
5213506e
RW
8209if ac_fn_c_try_compile "$LINENO"; then :
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 8211$as_echo "yes" >&6; }
362c6d2f
KG
8212else
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8214$as_echo "buggy but acceptable" >&6; }
8215fi
8216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 8217else
5213506e 8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 8219$as_echo "no" >&6; }; have_gmp=no
acd26225 8220fi
5213506e 8221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
8222 fi
8223
8224 # Now check the MPFR library.
8225 if test x"$have_gmp" = xyes; then
8226 saved_LIBS="$LIBS"
8227 LIBS="$LIBS $gmplibs"
91e0d220
AP
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
8229$as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
5213506e 8230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 8231/* end confdefs.h. */
91e0d220 8232#include <mpfr.h>
acd26225
KG
8233int
8234main ()
8235{
8236
8237 mpfr_t n;
8238 mpfr_t x;
8239 int t;
8240 mpfr_init (n);
8241 mpfr_init (x);
90ca6847
TB
8242 mpfr_atan2 (n, n, x, MPFR_RNDN);
8243 mpfr_erfc (n, x, MPFR_RNDN);
8244 mpfr_subnormalize (x, t, MPFR_RNDN);
3a5729ea
KG
8245 mpfr_clear(n);
8246 mpfr_clear(x);
91e0d220
AP
8247
8248 ;
8249 return 0;
8250}
8251_ACEOF
8252if ac_fn_c_try_link "$LINENO"; then :
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8254$as_echo "yes" >&6; }
8255else
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8257$as_echo "no" >&6; }; have_gmp=no
8258fi
8259rm -f core conftest.err conftest.$ac_objext \
8260 conftest$ac_exeext conftest.$ac_ext
8261 LIBS="$saved_LIBS"
8262 fi
8263
8264 # Now check the MPC library
8265 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes; then
8266 saved_LIBS="$LIBS"
8267 LIBS="$LIBS $gmplibs"
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
8269$as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
8270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8271/* end confdefs.h. */
8272#include <mpc.h>
8273int
8274main ()
8275{
8276
8277 mpc_t c;
3a5729ea
KG
8278 mpc_init2 (c, 53);
8279 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8280 mpc_cosh (c, c, MPC_RNDNN);
8281 mpc_pow (c, c, c, MPC_RNDNN);
8282 mpc_acosh (c, c, MPC_RNDNN);
8283 mpc_clear (c);
1c710c3c
DJ
8284
8285 ;
8286 return 0;
8287}
8288_ACEOF
5213506e
RW
8289if ac_fn_c_try_link "$LINENO"; then :
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8291$as_echo "yes" >&6; }
1c710c3c 8292else
5213506e
RW
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294$as_echo "no" >&6; }; have_gmp=no
1c710c3c 8295fi
5213506e
RW
8296rm -f core conftest.err conftest.$ac_objext \
8297 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
8298 LIBS="$saved_LIBS"
8299 fi
8300
e69bf64b 8301 CFLAGS="$saved_CFLAGS"
6de9cd9a 8302
362c6d2f
KG
8303# The library versions listed in the error message below should match
8304# the HARD-minimums enforced above.
e69bf64b 8305 if test x$have_gmp != xyes; then
91e0d220
AP
8306 if test -d ${srcdir}/gcc ; then
8307 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
3a5729ea
KG
8308Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8309their locations. Source code for these libraries can be found at
8310their respective hosting sites as well as at
aeebd94c 8311https://gcc.gnu.org/pub/gcc/infrastructure/. See also
45ab87d4 8312http://gcc.gnu.org/install/prerequisites.html for additional info. If
3a5729ea
KG
8313you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8314make sure that you have installed both the libraries and the header
8315files. They may be located in separate packages." "$LINENO" 5
91e0d220
AP
8316 else
8317 as_fn_error $? "Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
8318Try the --with-gmp and/or --with-mpfr options to specify
8319their locations. If you obtained GMP and/or MPFR from a vendor
8320distribution package, make sure that you have installed both the libraries
8321and the header files. They may be located in separate packages." "$LINENO" 5
8322 fi
e69bf64b 8323 fi
70ec446f
KG
8324fi
8325
acd26225
KG
8326# Flags needed for both GMP, MPFR and/or MPC.
8327
8328
6de9cd9a
DN
8329
8330
8331
9e3eba15 8332
0ff2d841 8333
0b21f5d3 8334# Libraries to use for stage1 or when not bootstrapping.
00020c16 8335
0b21f5d3
EB
8336# Check whether --with-stage1-libs was given.
8337if test "${with_stage1_libs+set}" = set; then :
8338 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8339 stage1_libs=
00020c16 8340 else
0b21f5d3 8341 stage1_libs=$withval
00020c16
ILT
8342 fi
8343else
5dc85f7e 8344 stage1_libs=
5213506e
RW
8345fi
8346
00020c16
ILT
8347
8348
aac9103b
TT
8349# Whether or not to use -static-libstdc++ and -static-libgcc. The
8350# default is yes if gcc is being built; no otherwise. The reason for
8351# this default is that gdb is sometimes linked against GNU Source
8352# Highlight, which is a shared library that uses C++ exceptions. In
8353# this case, -static-libstdc++ will cause crashes.
8354
8355# Check whether --with-static-standard-libraries was given.
8356if test "${with_static_standard_libraries+set}" = set; then :
8357 withval=$with_static_standard_libraries;
8358else
8359 with_static_standard_libraries=auto
8360fi
8361
8362if test "$with_static_standard_libraries" = auto; then
8363 with_static_standard_libraries=$have_compiler
8364fi
8365
0b21f5d3 8366# Linker flags to use for stage1 or when not bootstrapping.
00020c16 8367
0b21f5d3
EB
8368# Check whether --with-stage1-ldflags was given.
8369if test "${with_stage1_ldflags+set}" = set; then :
8370 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8371 stage1_ldflags=
00020c16 8372 else
0b21f5d3 8373 stage1_ldflags=$withval
00020c16
ILT
8374 fi
8375else
0b21f5d3
EB
8376 stage1_ldflags=
8377 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8378 # if supported. But if the user explicitly specified the libraries to use,
8379 # trust that they are doing what they want.
aac9103b
TT
8380 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8381 -a "$have_static_libs" = yes; then
0b21f5d3
EB
8382 stage1_ldflags="-static-libstdc++ -static-libgcc"
8383 fi
5213506e
RW
8384fi
8385
00020c16
ILT
8386
8387
5dc85f7e 8388# Libraries to use for stage2 and later builds.
00020c16 8389
5213506e
RW
8390# Check whether --with-boot-libs was given.
8391if test "${with_boot_libs+set}" = set; then :
8392 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
8393 poststage1_libs=
8394 else
8395 poststage1_libs=$withval
8396 fi
8397else
5dc85f7e 8398 poststage1_libs=
5213506e
RW
8399fi
8400
00020c16
ILT
8401
8402
ed2eaa9f
ILT
8403# Linker flags to use for stage2 and later builds.
8404
8405# Check whether --with-boot-ldflags was given.
8406if test "${with_boot_ldflags+set}" = set; then :
8407 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8408 poststage1_ldflags=
8409 else
8410 poststage1_ldflags=$withval
8411 fi
8412else
8413 poststage1_ldflags=
bec93d73
ILT
8414 # In stages 2 and 3, default to linking libstdc++ and libgcc
8415 # statically. But if the user explicitly specified the libraries to
8416 # use, trust that they are doing what they want.
8417 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
8418 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8419 fi
8420fi
8421
8422
8423
e357a5e0 8424# GCC GRAPHITE dependency isl.
4a9bb2aa 8425# Basic setup is inlined here, actual checks are in config/isl.m4
f8bf9252
SP
8426
8427
33ad93b9
RG
8428# Check whether --with-isl was given.
8429if test "${with_isl+set}" = set; then :
8430 withval=$with_isl;
5213506e 8431fi
f8bf9252 8432
f8bf9252 8433
eae1a5d4 8434# Treat --without-isl as a request to disable
625afa23 8435# GRAPHITE support and skip all following checks.
eae1a5d4 8436if test "x$with_isl" != "xno"; then
e357a5e0 8437 # Check for isl
625afa23
RG
8438
8439
33ad93b9
RG
8440# Check whether --with-isl-include was given.
8441if test "${with_isl_include+set}" = set; then :
8442 withval=$with_isl_include;
5213506e
RW
8443fi
8444
f8bf9252 8445
33ad93b9
RG
8446# Check whether --with-isl-lib was given.
8447if test "${with_isl_lib+set}" = set; then :
8448 withval=$with_isl_lib;
5213506e 8449fi
f8bf9252 8450
f8bf9252 8451
33ad93b9
RG
8452 # Check whether --enable-isl-version-check was given.
8453if test "${enable_isl_version_check+set}" = set; then :
8454 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8455else
8456 ENABLE_ISL_CHECK=yes
7d32a440
SP
8457fi
8458
8459
33ad93b9
RG
8460 # Initialize isllibs and islinc.
8461 case $with_isl in
8462 no)
8463 isllibs=
8464 islinc=
8465 ;;
8466 "" | yes)
8467 ;;
8468 *)
8469 isllibs="-L$with_isl/lib"
8470 islinc="-I$with_isl/include"
8471 ;;
8472 esac
8473 if test "x${with_isl_include}" != x ; then
8474 islinc="-I$with_isl_include"
8475 fi
8476 if test "x${with_isl_lib}" != x; then
8477 isllibs="-L$with_isl_lib"
8478 fi
8479 if test "x${islinc}" = x && test "x${isllibs}" = x \
8480 && test -d ${srcdir}/isl; then
8481 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8482 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8483 ENABLE_ISL_CHECK=no
560d18d3
AK
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8485$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
33ad93b9 8486 fi
7d32a440 8487
eae1a5d4
RG
8488 isllibs="${isllibs} -lisl"
8489
7d32a440 8490
7d32a440 8491
9847828b
RB
8492 if test "${ENABLE_ISL_CHECK}" = yes ; then
8493 _isl_saved_CFLAGS=$CFLAGS
8494 _isl_saved_LDFLAGS=$LDFLAGS
8495 _isl_saved_LIBS=$LIBS
8496
8497 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
70decafb
NS
8498 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8499 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
9847828b 8500
f877b3ad
RB
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8502$as_echo_n "checking for isl 0.15 or later... " >&6; }
e0c0c325 8503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
622dbadf 8504/* end confdefs.h. */
f877b3ad 8505#include <isl/schedule.h>
622dbadf
BC
8506int
8507main ()
8508{
f877b3ad 8509isl_options_set_schedule_serialize_sccs (NULL, 0);
622dbadf
BC
8510 ;
8511 return 0;
8512}
8513_ACEOF
8514if ac_fn_c_try_link "$LINENO"; then :
9847828b 8515 gcc_cv_isl=yes
622dbadf
BC
8516else
8517 gcc_cv_isl=no
8518fi
8519rm -f core conftest.err conftest.$ac_objext \
8520 conftest$ac_exeext conftest.$ac_ext
9847828b
RB
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8522$as_echo "$gcc_cv_isl" >&6; }
8523
560d18d3 8524 if test "${gcc_cv_isl}" = no ; then
f877b3ad
RB
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8526$as_echo "required isl version is 0.15 or later" >&6; }
1e050c90
AK
8527 fi
8528
9847828b
RB
8529 CFLAGS=$_isl_saved_CFLAGS
8530 LDFLAGS=$_isl_saved_LDFLAGS
8531 LIBS=$_isl_saved_LIBS
8532 fi
8533
8534
f8bf9252 8535
f8bf9252 8536
33ad93b9
RG
8537
8538
33ad93b9
RG
8539 if test "x${with_isl}" = xno; then
8540 graphite_requested=no
8541 elif test "x${with_isl}" != x \
8542 || test "x${with_isl_include}" != x \
8543 || test "x${with_isl_lib}" != x ; then
8544 graphite_requested=yes
8545 else
8546 graphite_requested=no
7d32a440 8547 fi
d789184e 8548
d789184e
SP
8549
8550
33ad93b9
RG
8551 if test "${gcc_cv_isl}" = no ; then
8552 isllibs=
8553 islinc=
8554 fi
8555
8556 if test "${graphite_requested}" = yes \
8557 && test "x${isllibs}" = x \
8558 && test "x${islinc}" = x ; then
f8bf9252 8559
22e05272 8560 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
33ad93b9 8561 fi
f8bf9252 8562
d32ef397 8563
d32ef397
AS
8564fi
8565
e357a5e0 8566# If the isl check failed, disable builds of in-tree variant of isl
625afa23 8567if test "x$with_isl" = xno ||
625afa23 8568 test "x$gcc_cv_isl" = xno; then
4a9bb2aa 8569 noconfigdirs="$noconfigdirs isl"
625afa23 8570 islinc=
32d024bf
RG
8571fi
8572
625afa23
RG
8573
8574
8575
d7f09764
DN
8576# Check for LTO support.
8577# Check whether --enable-lto was given.
8578if test "${enable_lto+set}" = set; then :
8579 enableval=$enable_lto; enable_lto=$enableval
8580else
8581 enable_lto=yes; default_enable_lto=yes
8582fi
8583
8584
7413962d 8585
9a02962b
DK
8586
8587
8588target_elf=no
8589case $target in
8590 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 8591 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8f56cb51 8592 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8ae12d71 8593 nvptx-*-none)
9a02962b
DK
8594 target_elf=no
8595 ;;
8596 *)
8597 target_elf=yes
8598 ;;
8599esac
8600
8601if test $target_elf = yes; then :
48215350
DK
8602 # ELF platforms build the lto-plugin always.
8603 build_lto_plugin=yes
9a02962b 8604
9a02962b
DK
8605else
8606 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 8607 case $target in
deeba76a 8608 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
48215350 8609 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
8610 *) enable_lto=no ;;
8611 esac
9a02962b 8612 else
db50fe7d
IS
8613 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8614 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
8615 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8616 # warn during gcc/ subconfigure; unless you're bootstrapping with
8617 # -flto it won't be needed until after installation anyway.
8618 case $target in
9e530bcd 8619 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9a02962b 8620 *) if test x"$enable_lto" = x"yes"; then
22e05272 8621 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
9a02962b
DK
8622 fi
8623 ;;
8624 esac
8625 fi
1cd0b716 8626 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 8627 # Build it unless LTO was explicitly disabled.
1cd0b716 8628 case $target in
48215350 8629 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
8630 *) ;;
8631 esac
48215350 8632
9a02962b
DK
8633fi
8634
d7f09764 8635
45b3824d
TS
8636# Check whether --enable-linker-plugin-configure-flags was given.
8637if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8638 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8639else
8640 extra_linker_plugin_configure_flags=
8641fi
8642
8643
8644# Check whether --enable-linker-plugin-flags was given.
8645if test "${enable_linker_plugin_flags+set}" = set; then :
8646 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8647else
8648 extra_linker_plugin_flags=
8649fi
8650
8651
8652
c1fecabe
IS
8653# Handle --enable-host-pie
8654# If host PIE executables are the default (or must be forced on) for some host,
8655# we must pass that configuration to the gcc directory.
8656gcc_host_pie=
b6cb10af
MP
8657# Check whether --enable-host-pie was given.
8658if test "${enable_host_pie+set}" = set; then :
8659 enableval=$enable_host_pie; host_pie=$enableval
8660 case $host in
c1fecabe 8661 *-*-darwin2*)
b6cb10af 8662 if test x$host_pie != xyes ; then
c1fecabe
IS
8663 # for Darwin20+ this is required.
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&5
8665$as_echo "$as_me: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&2;}
b6cb10af 8666 host_pie=yes
c1fecabe 8667 gcc_host_pie=--enable-host-pie
b6cb10af
MP
8668 fi ;;
8669 *) ;;
8670 esac
8671else
8672 case $host in
c1fecabe
IS
8673 *-*-darwin2*)
8674 # Default to PIE (mandatory for aarch64).
8675 host_pie=yes
8676 gcc_host_pie=--enable-host-pie
8677 ;;
b6cb10af
MP
8678 *) host_pie=no ;;
8679 esac
8680fi
8681
8682
8683
8684
c1fecabe 8685
cdfee50a
NS
8686# Enable --enable-host-shared.
8687# Checked early to determine whether jit is an 'all' language
8688# Check whether --enable-host-shared was given.
8689if test "${enable_host_shared+set}" = set; then :
8690 enableval=$enable_host_shared; host_shared=$enableval
1edfc8f2 8691 case $host in
a1d2b162
IS
8692 x86_64-*-darwin* | aarch64-*-darwin*)
8693 if test x$host_shared != xyes ; then
8694 # PIC is the default, and actually cannot be switched off.
c1fecabe
IS
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&5
8696$as_echo "$as_me: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&2;}
a1d2b162
IS
8697 host_shared=yes
8698 fi ;;
b6cb10af 8699 *-*-darwin*)
c1fecabe
IS
8700 if test x$host_pie = xyes -a x$host_shared != xyes ; then
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&5
8702$as_echo "$as_me: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&2;}
b6cb10af
MP
8703 host_shared=yes
8704 fi ;;
a1d2b162
IS
8705 *) ;;
8706 esac
cdfee50a 8707else
1edfc8f2 8708 case $host in
c1fecabe 8709 # 64B x86_64 and Aarch64 Darwin default to PIC.
a1d2b162 8710 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
c1fecabe
IS
8711 # 32B and powerpc64 Darwin must use PIC to link PIE exes.
8712 *-*-darwin*) host_shared=$host_pie ;;
b6cb10af 8713 *) host_shared=no;;
a1d2b162 8714 esac
cdfee50a
NS
8715fi
8716
8717
f8bf9252 8718
05048fc2 8719
b6cb10af 8720if test x$host_shared = xyes; then
c1fecabe
IS
8721 case $host in
8722 *-*-darwin*)
8723 # Since host shared is the default for 64b Darwin, and also enabled for
8724 # host_pie, ensure that we present the PIE flag when host_pie is active.
8725 if test x$host_pie = xyes; then
8726 PICFLAG=-fPIE
8727 fi
8728 ;;
8729 *)
8730 PICFLAG=-fPIC
8731 ;;
8732 esac
b6cb10af
MP
8733elif test x$host_pie = xyes; then
8734 PICFLAG=-fPIE
8735else
8736 PICFLAG=
8737fi
8738
8739
8740
05048fc2
IS
8741# If we are building PIC/PIE host executables, and we are building dependent
8742# libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
8743# code.
8744host_libs_picflag=
b6cb10af 8745if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then
05048fc2
IS
8746host_libs_picflag='--with-pic'
8747fi
8748
8749
0823efed 8750# By default, C and C++ are the only stage 1 languages.
e1888513 8751stage1_languages=,c,
2805b53a 8752
00020c16 8753# Target libraries that we bootstrap.
ad1e5170 8754bootstrap_target_libs=,target-libgcc,
00020c16 8755
55ffb5ed
NN
8756# Figure out what language subdirectories are present.
8757# Look if the user specified --enable-languages="..."; if not, use
8758# the environment variable $LANGUAGES if defined. $LANGUAGES might
8759# go away some day.
8760# NB: embedded tabs in this IF block -- do not untabify
8761if test -d ${srcdir}/gcc; then
8762 if test x"${enable_languages+set}" != xset; then
8763 if test x"${LANGUAGES+set}" = xset; then
8764 enable_languages="${LANGUAGES}"
6b1786aa 8765 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
55ffb5ed 8766 else
cdfee50a 8767 enable_languages=default
55ffb5ed
NN
8768 fi
8769 else
8770 if test x"${enable_languages}" = x ||
8771 test x"${enable_languages}" = xyes;
8772 then
6b1786aa 8773 echo configure.ac: --enable-languages needs at least one language argument 1>&2
55ffb5ed
NN
8774 exit 1
8775 fi
8776 fi
8777 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8778
7f26dfa3
FXC
8779 # 'f95' is the old name for the 'fortran' language. We issue a warning
8780 # and make the substitution.
8781 case ,${enable_languages}, in
8782 *,f95,*)
6b1786aa 8783 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
7f26dfa3
FXC
8784 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8785 ;;
8786 esac
8787
0823efed
DN
8788 # If bootstrapping, C++ must be enabled.
8789 case ",$enable_languages,:$enable_bootstrap" in
8790 *,c++,*:*) ;;
8791 *:yes)
ff3ac0f4
ILT
8792 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8793 enable_languages="${enable_languages},c++"
8794 else
22e05272 8795 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
8796 fi
8797 ;;
8798 esac
8799
55ffb5ed
NN
8800 # First scan to see if an enabled language requires some other language.
8801 # We assume that a given config-lang.in will list all the language
8802 # front ends it requires, even if some are required indirectly.
8803 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8804 case ${lang_frag} in
8805 ..) ;;
8806 # The odd quoting in the next line works around
8807 # an apparent bug in bash 1.12 on linux.
8808 ${srcdir}/gcc/[*]/config-lang.in) ;;
8809 *)
69ecd18f
ILT
8810 # From the config-lang.in, get $language, $lang_requires, and
8811 # $lang_requires_boot_languages.
55ffb5ed
NN
8812 language=
8813 lang_requires=
69ecd18f 8814 lang_requires_boot_languages=
d4360477
NS
8815 # set srcdir during sourcing lang_frag to the gcc dir.
8816 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8817 # polutes this shell
8818 saved_srcdir=${srcdir}
8819 srcdir=${srcdir}/gcc . ${lang_frag}
8820 srcdir=${saved_srcdir}
69ecd18f 8821 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
8822 case ,${enable_languages}, in
8823 *,$other,*) ;;
cdfee50a 8824 *,default,*) ;;
55ffb5ed
NN
8825 *,all,*) ;;
8826 *,$language,*)
8827 echo " \`$other' language required by \`$language'; enabling" 1>&2
8828 enable_languages="${enable_languages},${other}"
8829 ;;
8830 esac
8831 done
69ecd18f
ILT
8832 for other in ${lang_requires_boot_languages} ; do
8833 if test "$other" != "c"; then
8834 case ,${enable_stage1_languages}, in
8835 *,$other,*) ;;
cdfee50a 8836 *,default,*) ;;
69ecd18f
ILT
8837 *,all,*) ;;
8838 *)
8839 case ,${enable_languages}, in
8840 *,$language,*)
8841 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8842 enable_stage1_languages="$enable_stage1_languages,${other}"
8843 ;;
8844 esac
8845 ;;
8846 esac
8847 fi
8848 done
55ffb5ed
NN
8849 ;;
8850 esac
8851 done
8852
e1888513 8853 new_enable_languages=,c,
d7f09764
DN
8854
8855 # If LTO is enabled, add the LTO front end.
d7f09764 8856 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
8857 case ,${enable_languages}, in
8858 *,lto,*) ;;
8859 *) enable_languages="${enable_languages},lto" ;;
8860 esac
1cd0b716 8861 if test "${build_lto_plugin}" = "yes" ; then
d7f09764 8862 configdirs="$configdirs lto-plugin"
d7f09764
DN
8863 fi
8864 fi
8865
426c1eb0
TS
8866 # If we're building an offloading compiler, add the LTO front end.
8867 if test x"$enable_as_accelerator_for" != x ; then
8868 case ,${enable_languages}, in
8869 *,lto,*) ;;
8870 *) enable_languages="${enable_languages},lto" ;;
8871 esac
8872 fi
8873
cdfee50a 8874 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
e1888513 8875 potential_languages=,c,
55ffb5ed 8876
4da3b0f8
ILT
8877 enabled_target_libs=
8878 disabled_target_libs=
8879
55ffb5ed
NN
8880 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8881 case ${lang_frag} in
8882 ..) ;;
8883 # The odd quoting in the next line works around
8884 # an apparent bug in bash 1.12 on linux.
8885 ${srcdir}/gcc/[*]/config-lang.in) ;;
8886 *)
1c710c3c 8887 # From the config-lang.in, get $language, $target_libs,
2805b53a 8888 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
8889 language=
8890 target_libs=
8891 lang_dirs=
1546bb64 8892 subdir_requires=
e1888513
PB
8893 boot_language=no
8894 build_by_default=yes
d4360477
NS
8895 # set srcdir during sourcing. See above about save & restore
8896 saved_srcdir=${srcdir}
8897 srcdir=${srcdir}/gcc . ${lang_frag}
8898 srcdir=${saved_srcdir}
e1888513
PB
8899 if test x${language} = x; then
8900 echo "${lang_frag} doesn't set \$language." 1>&2
8901 exit 1
8902 fi
8903
78767fd9 8904 if test "$language" = "c++"; then
0823efed 8905 boot_language=yes
00020c16
ILT
8906 fi
8907
178f875a 8908 add_this_lang=no
cdfee50a
NS
8909 # C is always enabled, so no need to add it again
8910 if test "$language" != "c"; then
8911 case ,${enable_languages}, in
8912 *,${language},*)
8913 # Language was explicitly selected; include it
d4a10d0a 8914 add_this_lang=yes
cdfee50a
NS
8915 ;;
8916 *,all,*)
8917 # All languages are enabled
8918 add_this_lang=all
8919 ;;
8920 *,default,*)
8921 # 'default' was selected, select it if it is a default language
178f875a 8922 add_this_lang=${build_by_default}
cdfee50a
NS
8923 ;;
8924 esac
8925 fi
6de9cd9a 8926
1546bb64 8927 # Disable languages that need other directories if these aren't available.
95695ad3 8928 for i in $subdir_requires; do
b6348cb3 8929 test -f "$srcdir/gcc/$i/config-lang.in" && continue
cdfee50a
NS
8930 case ${add_this_lang} in
8931 yes)
1546bb64 8932 # Specifically requested language; tell them.
22e05272 8933 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64 8934 ;;
cdfee50a
NS
8935 all)
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8937$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8938 add_this_lang=unsupported
8939 ;;
1546bb64
PB
8940 *)
8941 # Silently disable.
e1888513 8942 add_this_lang=unsupported
1546bb64
PB
8943 ;;
8944 esac
8945 done
8946
e1888513 8947 # Disable Ada if no preexisting GNAT is available.
cdfee50a
NS
8948 case ${add_this_lang}:${language}:${have_gnat} in
8949 yes:ada:no)
e1888513 8950 # Specifically requested language; tell them.
22e05272 8951 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
e1888513 8952 ;;
cdfee50a
NS
8953 all:ada:no)
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8955$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8956 add_this_lang=unsupported
8957 ;;
e1888513
PB
8958 *:ada:no)
8959 # Silently disable.
8960 add_this_lang=unsupported
8961 ;;
8962 esac
8963
5fee5ec3
IB
8964 # Disable D if no preexisting GDC is available.
8965 case ${add_this_lang}:${language}:${have_gdc} in
8966 yes:d:no)
8967 # Specifically requested language; tell them.
8968 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
8969 ;;
8970 all:d:no)
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8972$as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8973 add_this_lang=unsupported
8974 ;;
8975 *:d:no)
8976 # Silently disable.
8977 add_this_lang=unsupported
8978 ;;
8979 esac
8980
cdfee50a 8981 # Disable jit if -enable-host-shared not specified
ffac9597
JM
8982 # but not if building for Mingw. All code in Windows
8983 # is position independent code (PIC).
c83027f3
NB
8984 case $target in
8985 *mingw*) ;;
8986 *)
8987 case ${add_this_lang}:${language}:${host_shared} in
8988 yes:jit:no)
8989 # PR jit/64780: explicitly specify --enable-host-shared
22e05272 8990 as_fn_error $? "
cdfee50a
NS
8991Enabling language \"jit\" requires --enable-host-shared.
8992
8993--enable-host-shared typically slows the rest of the compiler down by
8994a few %, so you must explicitly enable it.
8995
8996If you want to build both the jit and the regular compiler, it is often
8997best to do this via two separate configure/builds, in separate
8998directories, to avoid imposing the performance cost of
8999--enable-host-shared on the regular compiler." "$LINENO" 5
c83027f3
NB
9000 ;;
9001 all:jit:no)
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
cdfee50a 9003$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
c83027f3
NB
9004 add_this_lang=unsupported
9005 ;;
9006 *:jit:no)
9007 # Silently disable.
9008 add_this_lang=unsupported
9009 ;;
9010 esac
9011 ;;
9012 esac
cdfee50a
NS
9013
9014 # Disable a language that is unsupported by the target.
9015 case "${add_this_lang}: $unsupported_languages " in
9016 no:*) ;;
9017 unsupported:*) ;;
9018 *:*" $language "*)
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
9020$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
e1888513 9021 add_this_lang=unsupported
4fab7234
HPN
9022 ;;
9023 esac
9024
6de9cd9a 9025 case $add_this_lang in
e1888513 9026 unsupported)
55ffb5ed 9027 # Remove language-dependent dirs.
4da3b0f8
ILT
9028 disabled_target_libs="$disabled_target_libs $target_libs"
9029 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 9030 ;;
e1888513
PB
9031 no)
9032 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
9033 disabled_target_libs="$disabled_target_libs $target_libs"
9034 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
9035 potential_languages="${potential_languages}${language},"
9036 ;;
cdfee50a 9037 all|yes)
e1888513
PB
9038 new_enable_languages="${new_enable_languages}${language},"
9039 potential_languages="${potential_languages}${language},"
2805b53a 9040 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 9041 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
9042 case "${boot_language}:,$enable_stage1_languages," in
9043 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 9044 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
9045 case ",$stage1_languages," in
9046 *,$language,* | ,yes, | ,all,) ;;
9047 *) stage1_languages="${stage1_languages}${language}," ;;
9048 esac
00020c16 9049 # We need to bootstrap any supporting libraries.
5fee5ec3 9050 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
2805b53a
NN
9051 ;;
9052 esac
9053 ;;
55ffb5ed
NN
9054 esac
9055 ;;
9056 esac
9057 done
9058
4da3b0f8
ILT
9059 # Add target libraries which are only needed for disabled languages
9060 # to noconfigdirs.
9061 if test -n "$disabled_target_libs"; then
9062 for dir in $disabled_target_libs; do
9063 case " $enabled_target_libs " in
9064 *" ${dir} "*) ;;
9065 *) noconfigdirs="$noconfigdirs $dir" ;;
9066 esac
9067 done
9068 fi
9069
5213506e
RW
9070 # Check whether --enable-stage1-languages was given.
9071if test "${enable_stage1_languages+set}" = set; then :
9072 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
9073 ,no,|,,)
9074 # Set it to something that will have no effect in the loop below
9075 enable_stage1_languages=c ;;
9076 ,yes,)
9077 enable_stage1_languages=`echo $new_enable_languages | \
9078 sed -e "s/^,//" -e "s/,$//" ` ;;
9079 *,all,*)
9080 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
9081 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9082 esac
9083
9084 # Add "good" languages from enable_stage1_languages to stage1_languages,
9085 # while "bad" languages go in missing_languages. Leave no duplicates.
9086 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9087 case $potential_languages in
9088 *,$i,*)
9089 case $stage1_languages in
9090 *,$i,*) ;;
9091 *) stage1_languages="$stage1_languages$i," ;;
9092 esac ;;
9093 *)
9094 case $missing_languages in
9095 *,$i,*) ;;
9096 *) missing_languages="$missing_languages$i," ;;
9097 esac ;;
9098 esac
9099 done
5213506e
RW
9100fi
9101
e1888513
PB
9102
9103 # Remove leading/trailing commas that were added for simplicity
9104 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 9105 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
9106 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9107 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9108
55ffb5ed 9109 if test "x$missing_languages" != x; then
22e05272 9110 as_fn_error $? "
0cf085e4 9111The following requested languages could not be built: ${missing_languages}
5213506e 9112Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 9113 fi
55ffb5ed
NN
9114 if test "x$new_enable_languages" != "x$enable_languages"; then
9115 echo The following languages will be built: ${new_enable_languages}
e1888513 9116 enable_languages="$new_enable_languages"
55ffb5ed 9117 fi
e1888513 9118
1c710c3c 9119
b2eaac4a 9120 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
9121fi
9122
27079765
AH
9123# Handle --disable-<component> generically.
9124for dir in $configdirs $build_configdirs $target_configdirs ; do
9125 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
9126 varname=`echo $dirname | sed -e s/+/_/g`
9127 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
9128 noconfigdirs="$noconfigdirs $dir"
9129 fi
9130done
9131
43c40f3e
RO
9132# Check for Boehm's garbage collector
9133# Check whether --enable-objc-gc was given.
9134if test "${enable_objc_gc+set}" = set; then :
114bf3f1
MK
9135 enableval=$enable_objc_gc;
9136fi
9137
9138
9139# Check whether --with-target-bdw-gc was given.
9140if test "${with_target_bdw_gc+set}" = set; then :
9141 withval=$with_target_bdw_gc;
9142fi
9143
9144
9145# Check whether --with-target-bdw-gc-include was given.
9146if test "${with_target_bdw_gc_include+set}" = set; then :
9147 withval=$with_target_bdw_gc_include;
9148fi
9149
9150
9151# Check whether --with-target-bdw-gc-lib was given.
9152if test "${with_target_bdw_gc_lib+set}" = set; then :
9153 withval=$with_target_bdw_gc_lib;
9154fi
9155
9156
9157case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9159$as_echo_n "checking for bdw garbage collector... " >&6; }
9160 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
825fba52
MK
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9162$as_echo "using bdw-gc in default locations" >&6; }
114bf3f1
MK
9163 else
9164 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
22e05272 9165 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
114bf3f1 9166 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
22e05272 9167 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
114bf3f1
MK
9168 else
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9170$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9171 fi
9172 fi
43c40f3e
RO
9173esac
9174
e4cba494 9175# Disable libitm, libsanitizer, libvtv if we're not building C++
99776ebd 9176case ,${enable_languages}, in
1007a55c 9177 *,c++,*)
5e9d6aa4 9178 # Disable libitm, libsanitizer if we're not building libstdc++
1007a55c
JW
9179 case "${noconfigdirs}" in
9180 *target-libstdc++-v3*)
5e9d6aa4 9181 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
1007a55c
JW
9182 ;;
9183 *) ;;
9184 esac
9185 ;;
99776ebd 9186 *)
e4cba494 9187 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
99776ebd
RH
9188 ;;
9189esac
9190
dc614a83
AB
9191# If gcc/ is not in the source tree then we'll not be building a
9192# target compiler, assume in that case we don't want to build any
9193# target libraries or tools.
9194#
9195# This was added primarily for the benefit for binutils-gdb who reuse
9196# this configure script, but don't always have target tools available.
9197if test ! -d ${srcdir}/gcc; then
9198 skipdirs="${skipdirs} ${target_configdirs}"
9199fi
9200
ee6a22df
L
9201# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9202# $build_configdirs and $target_configdirs.
55ffb5ed
NN
9203# If we have the source for $noconfigdirs entries, add them to $notsupp.
9204
9205notsupp=""
9206for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 9207 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
9208 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9209 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9210 if test -r $srcdir/$dirname/configure ; then
9211 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9212 true
9213 else
9214 notsupp="$notsupp $dir"
9215 fi
9216 fi
9217 fi
ee6a22df
L
9218 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9219 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9220 if test -r $srcdir/$dirname/configure ; then
9221 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9222 true
9223 else
9224 notsupp="$notsupp $dir"
9225 fi
9226 fi
9227 fi
55ffb5ed
NN
9228 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9229 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9230 if test -r $srcdir/$dirname/configure ; then
9231 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9232 true
9233 else
9234 notsupp="$notsupp $dir"
9235 fi
9236 fi
9237 fi
9238done
9239
55ffb5ed
NN
9240# Quietly strip out all directories which aren't configurable in this tree.
9241# This relies on all configurable subdirectories being autoconfiscated, which
9242# is now the case.
23f6b2f9
PB
9243build_configdirs_all="$build_configdirs"
9244build_configdirs=
9245for i in ${build_configdirs_all} ; do
1c710c3c 9246 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
9247 if test -f ${srcdir}/$j/configure ; then
9248 build_configdirs="${build_configdirs} $i"
9249 fi
9250done
9251
55ffb5ed
NN
9252configdirs_all="$configdirs"
9253configdirs=
9254for i in ${configdirs_all} ; do
9255 if test -f ${srcdir}/$i/configure ; then
9256 configdirs="${configdirs} $i"
9257 fi
9258done
23f6b2f9 9259
55ffb5ed
NN
9260target_configdirs_all="$target_configdirs"
9261target_configdirs=
9262for i in ${target_configdirs_all} ; do
1c710c3c 9263 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
9264 if test -f ${srcdir}/$j/configure ; then
9265 target_configdirs="${target_configdirs} $i"
9266 fi
9267done
9268
45b3824d
TS
9269# libiberty-linker-plugin is special: it doesn't have its own source directory,
9270# so we have to add it after the preceding checks.
9271if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9272then
9273 case " $configdirs " in
9274 *" libiberty "*)
9275 # If we can build libiberty, we can also build libiberty-linker-plugin.
9276 configdirs="$configdirs libiberty-linker-plugin"
9277 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9278 --with-libiberty=../libiberty-linker-plugin";;
9279 *)
22e05272 9280 as_fn_error $? "libiberty missing" "$LINENO" 5;;
45b3824d
TS
9281 esac
9282fi
9283
fca38047
TS
9284# Sometimes we have special requirements for the host libiberty.
9285extra_host_libiberty_configure_flags=
9286case " $configdirs " in
15368960 9287 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
fca38047
TS
9288 # When these are to be built as shared libraries, the same applies to
9289 # libiberty.
9290 extra_host_libiberty_configure_flags=--enable-shared
9291 ;;
04bb15e4
TV
9292esac
9293
9294
9295# Sometimes we have special requirements for the host zlib.
9296extra_host_zlib_configure_flags=
9297case " $configdirs " in
1c01ebf6
L
9298 *" bfd "*)
9299 # When bfd is to be built as a shared library, the same applies to
9300 # zlib.
9301 if test "$enable_shared" = "yes"; then
9302 extra_host_zlib_configure_flags=--enable-host-shared
9303 fi
9304 ;;
fca38047
TS
9305esac
9306
9307
55ffb5ed
NN
9308# Produce a warning message for the subdirs we can't configure.
9309# This isn't especially interesting in the Cygnus tree, but in the individual
9310# FSF releases, it's important to let people know when their machine isn't
9311# supported by the one or two programs in a package.
9312
9313if test -n "${notsupp}" && test -z "${norecursion}" ; then
9314 # If $appdirs is non-empty, at least one of those directories must still
9315 # be configured, or we error out. (E.g., if the gas release supports a
9316 # specified target in some subdirs but not the gas subdir, we shouldn't
9317 # pretend that all is well.)
9318 if test -n "$appdirs" ; then
9319 for dir in $appdirs ; do
9320 if test -r $dir/Makefile.in ; then
9321 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9322 appdirs=""
9323 break
9324 fi
23f6b2f9 9325 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
9326 appdirs=""
9327 break
9328 fi
9329 fi
9330 done
9331 if test -n "$appdirs" ; then
9332 echo "*** This configuration is not supported by this package." 1>&2
9333 exit 1
9334 fi
9335 fi
9336 # Okay, some application will build, or we don't care to check. Still
9337 # notify of subdirs not getting built.
9338 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9339 echo " ${notsupp}" 1>&2
9340 echo " (Any other directories should still work fine.)" 1>&2
9341fi
9342
9343case "$host" in
9344 *msdosdjgpp*)
9345 enable_gdbtk=no ;;
9346esac
9347
c3a86da9
DJ
9348# To find our prefix, in gcc_cv_tool_prefix.
9349
9350# The user is always right.
9351if test "${PATH_SEPARATOR+set}" != set; then
9352 echo "#! /bin/sh" >conf$$.sh
9353 echo "exit 0" >>conf$$.sh
9354 chmod +x conf$$.sh
9355 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9356 PATH_SEPARATOR=';'
9357 else
9358 PATH_SEPARATOR=:
9359 fi
9360 rm -f conf$$.sh
9361fi
9362
9363
3c36aa6b
JJ
9364 get_gcc_base_ver="cat"
9365
9366# Check whether --with-gcc-major-version-only was given.
9367if test "${with_gcc_major_version_only+set}" = set; then :
9368 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
31db0fe0 9369 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
9370 fi
9371
9372fi
9373
9374
9375
9376
9377
c3a86da9
DJ
9378
9379if test "x$exec_prefix" = xNONE; then
9380 if test "x$prefix" = xNONE; then
9381 gcc_cv_tool_prefix=$ac_default_prefix
9382 else
9383 gcc_cv_tool_prefix=$prefix
9384 fi
9385else
9386 gcc_cv_tool_prefix=$exec_prefix
9387fi
9388
9389# If there is no compiler in the tree, use the PATH only. In any
9390# case, if there is no compiler in the tree nobody should use
9391# AS_FOR_TARGET and LD_FOR_TARGET.
9392if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
3c36aa6b
JJ
9393 if test x$with_gcc_major_version_only = xyes ; then
9394 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9395 else
9396 gcc_version=`cat $srcdir/gcc/BASE-VER`
9397 fi
c3a86da9
DJ
9398 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9399 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9400 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9401 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9402 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9403 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9404else
9405 gcc_cv_tool_dirs=
9406fi
9407
9408if test x$build = x$target && test -n "$md_exec_prefix"; then
9409 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9410fi
9411
9412
9413
55ffb5ed
NN
9414copy_dirs=
9415
1c710c3c 9416
5213506e
RW
9417# Check whether --with-build-sysroot was given.
9418if test "${with_build_sysroot+set}" = set; then :
9419 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
9420 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9421 fi
9422else
9423 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 9424fi
526635cb
MM
9425
9426
c8aea42c 9427
5213506e
RW
9428
9429# Check whether --with-debug-prefix-map was given.
9430if test "${with_debug_prefix_map+set}" = set; then :
9431 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
9432 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9433 for debug_map in $withval; do
9434 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9435 done
9436 fi
9437else
9438 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
9439fi
9440
c8aea42c
PB
9441
9442
1c8bd6a3
PB
9443# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9444# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9445# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9446# We want to ensure that TARGET libraries (which we know are built with
9447# gcc) are built with "-O2 -g", so include those options when setting
9448# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9449if test "x$CFLAGS_FOR_TARGET" = x; then
fc30054e
AH
9450 if test "x${is_cross_compiler}" = xyes; then
9451 CFLAGS_FOR_TARGET="-g -O2"
9452 else
9453 CFLAGS_FOR_TARGET=$CFLAGS
9454 case " $CFLAGS " in
9455 *" -O2 "*) ;;
9456 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9457 esac
9458 case " $CFLAGS " in
9459 *" -g "* | *" -g3 "*) ;;
9460 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9461 esac
9462 fi
1c8bd6a3
PB
9463fi
9464
9465
9466if test "x$CXXFLAGS_FOR_TARGET" = x; then
fc30054e
AH
9467 if test "x${is_cross_compiler}" = xyes; then
9468 CXXFLAGS_FOR_TARGET="-g -O2"
9469 else
9470 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9471 case " $CXXFLAGS " in
9472 *" -O2 "*) ;;
9473 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9474 esac
9475 case " $CXXFLAGS " in
9476 *" -g "* | *" -g3 "*) ;;
9477 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9478 esac
9479 fi
1c8bd6a3
PB
9480fi
9481
9482
6f57bdf6
DK
9483
9484
55ffb5ed
NN
9485# Handle --with-headers=XXX. If the value is not "yes", the contents of
9486# the named directory are copied to $(tooldir)/sys-include.
9487if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9488 if test x${is_cross_compiler} = xno ; then
9489 echo 1>&2 '***' --with-headers is only supported when cross compiling
9490 exit 1
9491 fi
9492 if test x"${with_headers}" != xyes ; then
c3a86da9 9493 x=${gcc_cv_tool_prefix}
1c710c3c 9494 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
9495 fi
9496fi
9497
9498# Handle --with-libs=XXX. If the value is not "yes", the contents of
9499# the name directories are copied to $(tooldir)/lib. Multiple directories
9500# are permitted.
9501if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9502 if test x${is_cross_compiler} = xno ; then
9503 echo 1>&2 '***' --with-libs is only supported when cross compiling
9504 exit 1
9505 fi
9506 if test x"${with_libs}" != xyes ; then
9507 # Copy the libraries in reverse order, so that files in the first named
9508 # library override files in subsequent libraries.
c3a86da9 9509 x=${gcc_cv_tool_prefix}
55ffb5ed 9510 for l in ${with_libs}; do
1c710c3c 9511 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
9512 done
9513 fi
9514fi
9515
d7f09764 9516# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
9517#
9518# This is done by determining whether or not the appropriate directory
9519# is available, and by checking whether or not specific configurations
9520# have requested that this magic not happen.
1c710c3c
DJ
9521#
9522# The command line options always override the explicit settings in
6b1786aa 9523# configure.ac, and the settings in configure.ac override this magic.
e8b05380 9524#
1c710c3c 9525# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 9526# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
9527# --without-gnu-ld options for the configure script. Similarly, if
9528# the default is to use the included zlib and you don't want to do that,
9529# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
9530
9531if test x${use_gnu_as} = x &&
9532 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9533 with_gnu_as=yes
9534 extra_host_args="$extra_host_args --with-gnu-as"
9535fi
9536
9537if test x${use_gnu_ld} = x &&
5afab7ad 9538 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
9539 with_gnu_ld=yes
9540 extra_host_args="$extra_host_args --with-gnu-ld"
9541fi
9542
d7f09764
DN
9543if test x${use_included_zlib} = x &&
9544 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9545 :
9546else
9547 with_system_zlib=yes
9548 extra_host_args="$extra_host_args --with-system-zlib"
9549fi
9550
e8b05380
PB
9551# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9552# can detect this case.
9553
9554if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9555 with_newlib=yes
9556 extra_host_args="$extra_host_args --with-newlib"
9557fi
9558
55ffb5ed
NN
9559# Handle ${copy_dirs}
9560set fnord ${copy_dirs}
9561shift
9562while test $# != 0 ; do
9563 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9564 :
9565 else
9566 echo Copying $1 to $2
9567
9568 # Use the install script to create the directory and all required
9569 # parent directories.
9570 if test -d $2 ; then
9571 :
9572 else
9573 echo >config.temp
9574 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9575 fi
9576
9577 # Copy the directory, assuming we have tar.
9578 # FIXME: Should we use B in the second tar? Not all systems support it.
9579 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9580
9581 # It is the responsibility of the user to correctly adjust all
9582 # symlinks. If somebody can figure out how to handle them correctly
9583 # here, feel free to add the code.
9584
9585 echo $1 > $2/COPIED
9586 fi
9587 shift; shift
9588done
9589
e8b05380
PB
9590# Determine a target-dependent exec_prefix that the installed
9591# gcc will search in. Keep this list sorted by triplet, with
9592# the *-*-osname triplets last.
9593md_exec_prefix=
9594case "${target}" in
30b74385 9595 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
9596 md_exec_prefix=/dev/env/DJDIR/bin
9597 ;;
e8b05380 9598 *-*-hpux* | \
e8b05380 9599 *-*-nto-qnx* | \
6de66370 9600 *-*-solaris2*)
e8b05380
PB
9601 md_exec_prefix=/usr/ccs/bin
9602 ;;
9603esac
9604
671aa708
NN
9605extra_arflags_for_target=
9606extra_nmflags_for_target=
9607extra_ranlibflags_for_target=
9608target_makefile_frag=/dev/null
9609case "${target}" in
58e24147
AM
9610 spu-*-*)
9611 target_makefile_frag="config/mt-spu"
9612 ;;
d896cc4d 9613 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4bf6c438
RS
9614 target_makefile_frag="config/mt-sde"
9615 ;;
1ec3b87b
RS
9616 mipsisa*-*-elfoabi*)
9617 target_makefile_frag="config/mt-mips-elfoabi"
9618 ;;
08d0963a
RS
9619 mips*-*-*linux* | mips*-*-gnu*)
9620 target_makefile_frag="config/mt-mips-gnu"
9621 ;;
707f1839
SL
9622 nios2-*-elf*)
9623 target_makefile_frag="config/mt-nios2-elf"
9624 ;;
76052545
EB
9625 *-*-linux-android*)
9626 target_makefile_frag="config/mt-android"
9627 ;;
416ac4d4 9628 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 9629 target_makefile_frag="config/mt-gnu"
671aa708
NN
9630 ;;
9631 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 9632 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
9633 # commands to handle both 32-bit and 64-bit objects. These flags are
9634 # harmless if we're using GNU nm or ar.
9635 extra_arflags_for_target=" -X32_64"
9636 extra_nmflags_for_target=" -B -X32_64"
9637 ;;
671aa708
NN
9638esac
9639
9640alphaieee_frag=/dev/null
9641case $target in
9642 alpha*-*-*)
9643 # This just makes sure to use the -mieee option to build target libs.
9644 # This should probably be set individually by each library.
9645 alphaieee_frag="config/mt-alphaieee"
9646 ;;
9647esac
9648
9649# If --enable-target-optspace always use -Os instead of -O2 to build
9650# the target libraries, similarly if it is not specified, use -Os
9651# on selected platforms.
9652ospace_frag=/dev/null
9653case "${enable_target_optspace}:${target}" in
9654 yes:*)
9655 ospace_frag="config/mt-ospace"
9656 ;;
9657 :d30v-*)
9658 ospace_frag="config/mt-d30v"
9659 ;;
d9063947 9660 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
671aa708
NN
9661 ospace_frag="config/mt-ospace"
9662 ;;
9663 no:* | :*)
9664 ;;
9665 *)
9666 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9667 ;;
9668esac
9669
671aa708
NN
9670# Some systems (e.g., one of the i386-aix systems the gas testers are
9671# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 9672tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
9673build_tooldir=${tooldir}
9674
671aa708
NN
9675# Create a .gdbinit file which runs the one in srcdir
9676# and tells GDB to look there for source files.
9677
9678if test -r ${srcdir}/.gdbinit ; then
9679 case ${srcdir} in
9680 .) ;;
9681 *) cat > ./.gdbinit <<EOF
9682# ${NO_EDIT}
9683dir ${srcdir}
9684dir .
9685source ${srcdir}/.gdbinit
9686EOF
9687 ;;
9688 esac
9689fi
9690
671aa708
NN
9691# Make sure that the compiler is able to generate an executable. If it
9692# can't, we are probably in trouble. We don't care whether we can run the
9693# executable--we might be using a cross compiler--we only care whether it
9694# can be created. At this point the main configure script has set CC.
9695we_are_ok=no
9696echo "int main () { return 0; }" > conftest.c
9697${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9698if test $? = 0 ; then
9699 if test -s conftest || test -s conftest.exe ; then
9700 we_are_ok=yes
9701 fi
1c710c3c 9702fi
671aa708
NN
9703case $we_are_ok in
9704 no)
9705 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9706 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9707 rm -f conftest*
9708 exit 1
9709 ;;
9710esac
9711rm -f conftest*
9712
d89f0ad6 9713# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
9714case "${host}" in
9715 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 9716 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 9717 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
9718 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9719esac
9720
d89f0ad6
AL
9721# On systems where the dynamic library environment variable is PATH,
9722# gcc/ will put dynamic libraries into a subdirectory to avoid adding
9723# built executables to PATH.
9724if test "$RPATH_ENVVAR" = PATH; then
9725 GCC_SHLIB_SUBDIR=/shlib
9726else
9727 GCC_SHLIB_SUBDIR=
9728fi
9729
beeda1d9
JJ
9730# Adjust the toplevel makefile according to whether bootstrap was selected.
9731case $enable_bootstrap in
9732 yes)
9733 bootstrap_suffix=bootstrap
9734 BUILD_CONFIG=bootstrap-debug
9735 ;;
9736 no)
9737 bootstrap_suffix=no-bootstrap
9738 BUILD_CONFIG=
9739 ;;
9740esac
9741
9742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9743$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9744
9745
9746# Check whether --with-build-config was given.
9747if test "${with_build_config+set}" = set; then :
9748 withval=$with_build_config; case $with_build_config in
9749 yes) with_build_config= ;;
9750 no) with_build_config= BUILD_CONFIG= ;;
9751 esac
9752fi
9753
9754
9755if test "x${with_build_config}" != x; then
9756 BUILD_CONFIG=$with_build_config
9757else
9758 case $BUILD_CONFIG in
9759 bootstrap-debug)
9760 if echo "int f (void) { return 0; }" > conftest.c &&
9761 ${CC} -c conftest.c &&
9762 mv conftest.o conftest.o.g0 &&
9763 ${CC} -c -g conftest.c &&
9764 mv conftest.o conftest.o.g &&
9765 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9766 :
9767 else
9768 BUILD_CONFIG=
9769 fi
9770 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9771 ;;
9772 esac
9773fi
9774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9775$as_echo "$BUILD_CONFIG" >&6; }
9776
9777
9778# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9780$as_echo_n "checking for --enable-vtable-verify... " >&6; }
9781# Check whether --enable-vtable-verify was given.
9782if test "${enable_vtable_verify+set}" = set; then :
9783 enableval=$enable_vtable_verify; case "$enableval" in
9784 yes) enable_vtable_verify=yes ;;
9785 no) enable_vtable_verify=no ;;
9786 *) enable_vtable_verify=no;;
9787 esac
9788else
9789 enable_vtable_verify=no
9790fi
9791
9792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9793$as_echo "$enable_vtable_verify" >&6; }
9794
671aa708
NN
9795# Record target_configdirs and the configure arguments for target and
9796# build configuration in Makefile.
9797target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 9798build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9e1c8fc1 9799bootstrap_fixincludes=no
671aa708 9800
ad1e5170
JR
9801# If we are building libgomp, bootstrap it.
9802if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9803 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9804fi
9805
beeda1d9
JJ
9806# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9807# or bootstrap-ubsan, bootstrap it.
9808if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9809 case "$BUILD_CONFIG" in
170e618e 9810 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
beeda1d9 9811 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9e1c8fc1 9812 bootstrap_fixincludes=yes
beeda1d9
JJ
9813 ;;
9814 esac
ac8701fe
L
9815fi
9816
beeda1d9
JJ
9817# If we are building libvtv and --enable-vtable-verify, bootstrap it.
9818if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9819 test "$enable_vtable_verify" != no; then
2077db1b
CT
9820 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9821fi
9822
5fee5ec3
IB
9823# If we are building libatomic and the list of enabled languages includes the
9824# D frontend, bootstrap it.
9825if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9826 case ,${enable_languages}, in
9827 *,d,*)
9828 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9829 ;;
9830 esac
9831fi
9832
671aa708
NN
9833# Determine whether gdb needs tk/tcl or not.
9834# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9835# and in that case we want gdb to be built without tk. Ugh!
9836# In fact I believe gdb is the *only* package directly dependent on tk,
9837# so we should be able to put the 'maybe's in unconditionally and
9838# leave out the maybe dependencies when enable_gdbtk is false. I'm not
9839# 100% sure that that's safe though.
e914a571 9840
b4f96efe 9841gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
9842case "$enable_gdbtk" in
9843 no)
9844 GDB_TK="" ;;
e914a571
AC
9845 yes)
9846 GDB_TK="${gdb_tk}" ;;
671aa708 9847 *)
e914a571
AC
9848 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9849 # distro. Eventually someone will fix this and move Insight, nee
9850 # gdbtk to a separate directory.
9851 if test -d ${srcdir}/gdb/gdbtk ; then
9852 GDB_TK="${gdb_tk}"
9853 else
9854 GDB_TK=""
9855 fi
9856 ;;
671aa708 9857esac
ef9db8d5
DJ
9858CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9859INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 9860
f9d09df0
TT
9861# gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9862# else does, only include them if one of these is built. The Makefile
9863# provides the ordering, so it's enough here to add to the list.
9864case " ${configdirs} " in
9865 *\ gdb\ *)
9866 configdirs="${configdirs} gnulib gdbsupport"
9867 ;;
9868 *\ gdbserver\ *)
9869 configdirs="${configdirs} gnulib gdbsupport"
9870 ;;
f14c9bd4
MF
9871 *\ sim\ *)
9872 configdirs="${configdirs} gnulib"
9873 ;;
f9d09df0 9874esac
98e5be21 9875
60975492 9876# Strip out unwanted targets.
8b87bb96
NN
9877
9878# While at that, we remove Makefiles if we were started for recursive
9879# configuration, so that the top-level Makefile reconfigures them,
9880# like we used to do when configure itself was recursive.
8b87bb96 9881
3e54529c
RW
9882# Loop over modules. We used to use the "$extrasub" feature from Autoconf
9883# but now we're fixing up the Makefile ourselves with the additional
9884# commands passed to AC_CONFIG_FILES. Use separate variables
9885# extrasub-{build,host,target} not because there is any reason to split
9886# the substitutions up that way, but only to remain below the limit of
9887# 99 commands in a script, for HP-UX sed.
da34ca3f
AO
9888
9889# Do not nest @if/@endif or @unless/@endunless pairs, because
9890# configure will not warn you at all.
8b87bb96 9891
79cd2b23
RW
9892case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9893 yes:yes:*\ gold\ *:*,c++,*) ;;
9894 yes:yes:*\ gold\ *:*)
22e05272 9895 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
79cd2b23
RW
9896 ;;
9897esac
9898
3e54529c 9899extrasub_build=
23f6b2f9 9900for module in ${build_configdirs} ; do
5607edfd
PB
9901 if test -z "${no_recursion}" \
9902 && test -f ${build_subdir}/${module}/Makefile; then
9903 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9904 rm -f ${build_subdir}/${module}/Makefile
9905 fi
3e54529c 9906 extrasub_build="$extrasub_build
5607edfd
PB
9907/^@if build-$module\$/d
9908/^@endif build-$module\$/d
da34ca3f 9909/^@unless build-$module\$/,/^@endunless build-$module\$/d
5607edfd 9910/^@if build-$module-$bootstrap_suffix\$/d
da34ca3f
AO
9911/^@endif build-$module-$bootstrap_suffix\$/d
9912/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
5607edfd 9913done
3e54529c 9914extrasub_host=
5607edfd 9915for module in ${configdirs} ; do
a6fbc1e2 9916 if test -z "${no_recursion}"; then
f063a9ed 9917 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
9918 if test -f ${file}; then
9919 echo 1>&2 "*** removing ${file} to force reconfigure"
9920 rm -f ${file}
9921 fi
9922 done
5607edfd 9923 fi
9e1c8fc1
JJ
9924 case ${module},${bootstrap_fixincludes} in
9925 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9926 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9927 esac
3e54529c 9928 extrasub_host="$extrasub_host
5607edfd
PB
9929/^@if $module\$/d
9930/^@endif $module\$/d
da34ca3f 9931/^@unless $module\$/,/^@endunless $module\$/d
9e1c8fc1 9932/^@if $module-$host_bootstrap_suffix\$/d
da34ca3f
AO
9933/^@endif $module-$host_bootstrap_suffix\$/d
9934/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
5607edfd 9935done
3e54529c 9936extrasub_target=
5607edfd
PB
9937for module in ${target_configdirs} ; do
9938 if test -z "${no_recursion}" \
9939 && test -f ${target_subdir}/${module}/Makefile; then
9940 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9941 rm -f ${target_subdir}/${module}/Makefile
9942 fi
00020c16
ILT
9943
9944 # We only bootstrap target libraries listed in bootstrap_target_libs.
9945 case $bootstrap_target_libs in
9946 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9947 *) target_bootstrap_suffix=no-bootstrap ;;
9948 esac
9949
3e54529c 9950 extrasub_target="$extrasub_target
5607edfd
PB
9951/^@if target-$module\$/d
9952/^@endif target-$module\$/d
da34ca3f 9953/^@unless target-$module\$/,/^@endunless target-$module\$/d
00020c16 9954/^@if target-$module-$target_bootstrap_suffix\$/d
da34ca3f
AO
9955/^@endif target-$module-$target_bootstrap_suffix\$/d
9956/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
9957done
9958
3e54529c
RW
9959# Do the final fixup along with target modules.
9960extrasub_target="$extrasub_target
da34ca3f
AO
9961/^@if /,/^@endif /d
9962/^@unless /d
9963/^@endunless /d"
671aa708 9964
4a5e71f2
L
9965if test "$enable_pgo_build" != "no"; then
9966 extrasub_build="$extrasub_build
9967/^@if pgo-build\$/d
9968/^@endif pgo-build\$/d"
9969fi
9970
671aa708
NN
9971# Create the serialization dependencies. This uses a temporary file.
9972
5213506e
RW
9973# Check whether --enable-serial-configure was given.
9974if test "${enable_serial_configure+set}" = set; then :
9975 enableval=$enable_serial_configure;
9976fi
ade82b16
AO
9977
9978
bf1d3e81
NN
9979case ${enable_serial_configure} in
9980 yes)
9981 enable_serial_build_configure=yes
9982 enable_serial_host_configure=yes
9983 enable_serial_target_configure=yes
9984 ;;
9985esac
9986
671aa708
NN
9987# These force 'configure's to be done one at a time, to avoid problems
9988# with contention over a shared config.cache.
9989rm -f serdep.tmp
7d115e01 9990if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes; then
ade82b16 9991echo '# serdep.tmp' > serdep.tmp
7d115e01 9992fi
671aa708 9993olditem=
bf1d3e81 9994test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
9995for item in ${build_configdirs} ; do
9996 case ${olditem} in
9997 "") ;;
ade82b16 9998 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
9999 esac
10000 olditem=${item}
10001done
10002olditem=
bf1d3e81 10003test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
10004for item in ${configdirs} ; do
10005 case ${olditem} in
10006 "") ;;
ade82b16 10007 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
10008 esac
10009 olditem=${item}
10010done
10011olditem=
bf1d3e81 10012test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
10013for item in ${target_configdirs} ; do
10014 case ${olditem} in
10015 "") ;;
ade82b16 10016 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
10017 esac
10018 olditem=${item}
10019done
10020serialization_dependencies=serdep.tmp
10021
10022
ade82b16 10023# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 10024# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
10025# might not want to pass down to subconfigures. The exception being
10026# --cache-file=/dev/null, which is used to turn off the use of cache
10027# files altogether, and which should be passed on to subconfigures.
10028# Also strip program-prefix, program-suffix, and program-transform-name,
10029# so that we can pass down a consistent program-transform-name.
1c710c3c 10030baseargs=
29a63921 10031tbaseargs=
1c710c3c
DJ
10032keep_next=no
10033skip_next=no
10034eval "set -- $ac_configure_args"
44bfc3ac
DJ
10035for ac_arg
10036do
1c710c3c
DJ
10037 if test X"$skip_next" = X"yes"; then
10038 skip_next=no
10039 continue
10040 fi
10041 if test X"$keep_next" = X"yes"; then
10042 case $ac_arg in
10043 *\'*)
10044 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10045 esac
10046 baseargs="$baseargs '$ac_arg'"
29a63921 10047 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
10048 keep_next=no
10049 continue
10050 fi
10051
10052 # Handle separated arguments. Based on the logic generated by
10053 # autoconf 2.59.
10054 case $ac_arg in
10055 *=* | --config-cache | -C | -disable-* | --disable-* \
10056 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
10057 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
10058 | -with-* | --with-* | -without-* | --without-* | --x)
10059 separate_arg=no
10060 ;;
10061 -*)
10062 separate_arg=yes
10063 ;;
10064 *)
10065 separate_arg=no
10066 ;;
10067 esac
10068
29a63921
AO
10069 skip_targ=no
10070 case $ac_arg in
10071
10072 --with-* | --without-*)
10073 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
10074
10075 case $libopt in
10076 *[-_]include)
10077 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
10078 ;;
10079 *[-_]lib)
10080 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
10081 ;;
10082 *)
10083 lib=$libopt
10084 ;;
10085 esac
10086
10087
10088 case $lib in
4a9bb2aa 10089 mpc | mpfr | gmp | isl)
29a63921
AO
10090 # If we're processing --with-$lib, --with-$lib-include or
10091 # --with-$lib-lib, for one of the libs above, and target is
10092 # different from host, don't pass the current argument to any
10093 # target library's configure.
10094 if test x$is_cross_compiler = xyes; then
10095 skip_targ=yes
10096 fi
10097 ;;
10098 esac
10099 ;;
10100 esac
10101
1c710c3c 10102 case "$ac_arg" in
f1a036e4
NC
10103 --cache-file=/dev/null | \
10104 -cache-file=/dev/null )
10105 # Handled here to avoid the test to skip args below.
10106 baseargs="$baseargs '$ac_arg'"
29a63921 10107 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
10108 # Assert: $separate_arg should always be no.
10109 keep_next=$separate_arg
10110 ;;
1c710c3c
DJ
10111 --no*)
10112 continue
10113 ;;
10114 --c* | \
10115 --sr* | \
10116 --ho* | \
10117 --bu* | \
10118 --t* | \
10119 --program-* | \
10120 -cache_file* | \
10121 -srcdir* | \
10122 -host* | \
10123 -build* | \
10124 -target* | \
10125 -program-prefix* | \
10126 -program-suffix* | \
10127 -program-transform-name* )
10128 skip_next=$separate_arg
10129 continue
10130 ;;
10131 -*)
10132 # An option. Add it.
10133 case $ac_arg in
10134 *\'*)
10135 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10136 esac
10137 baseargs="$baseargs '$ac_arg'"
29a63921
AO
10138 if test X"$skip_targ" = Xno; then
10139 tbaseargs="$tbaseargs '$ac_arg'"
10140 fi
1c710c3c
DJ
10141 keep_next=$separate_arg
10142 ;;
10143 *)
10144 # Either a variable assignment, or a nonopt (triplet). Don't
10145 # pass it down; let the Makefile handle this.
10146 continue
10147 ;;
10148 esac
10149done
10150# Remove the initial space we just introduced and, as these will be
10151# expanded by make, quote '$'.
10152baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 10153
43bb47c2
DJ
10154# Add in --program-transform-name, after --program-prefix and
10155# --program-suffix have been applied to it. Autoconf has already
10156# doubled dollar signs and backslashes in program_transform_name; we want
10157# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 10158# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
10159# Also, because we want to override the logic in subdir configure scripts to
10160# choose program_transform_name, replace any s,x,x, with s,y,y,.
10161sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10162${program_transform_name}
10163EOF_SED
10164gcc_transform_name=`cat conftestsed.out`
10165rm -f conftestsed.out
10166baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 10167tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
10168if test "$silent" = yes; then
10169 baseargs="$baseargs --silent"
29a63921 10170 tbaseargs="$tbaseargs --silent"
d9acb717 10171fi
0115d4a3 10172baseargs="$baseargs --disable-option-checking"
29a63921 10173tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 10174
ffedf511
RW
10175# Record and document user additions to sub configure arguments.
10176
10177
10178
10179
671aa708
NN
10180# For the build-side libraries, we just need to pretend we're native,
10181# and not use the same cache file. Multilibs are neither needed nor
3d96b0d0
HPN
10182# desired. We can't even use the same cache file for all build-side
10183# libraries, as they're compiled differently; some with C, some with
10184# C++ or with different feature-enabling options.
10185build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
671aa708
NN
10186
10187# For host modules, accept cache file option, or specification as blank.
10188case "${cache_file}" in
10189"") # empty
10190 cache_file_option="" ;;
10191/* | [A-Za-z]:[\\/]* ) # absolute path
10192 cache_file_option="--cache-file=${cache_file}" ;;
10193*) # relative path
10194 cache_file_option="--cache-file=../${cache_file}" ;;
10195esac
10196
09438bde
NN
10197# Host dirs don't like to share a cache file either, horribly enough.
10198# This seems to be due to autoconf 2.5x stupidity.
ffedf511 10199host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 10200
29a63921 10201target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
10202
10203# Passing a --with-cross-host argument lets the target libraries know
10204# whether they are being built with a cross-compiler or being built
10205# native. However, it would be better to use other mechanisms to make the
10206# sorts of decisions they want to make on this basis. Please consider
10207# this option to be deprecated. FIXME.
10208if test x${is_cross_compiler} = xyes ; then
1c710c3c 10209 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
10210fi
10211
79e0604d
FXC
10212# Special user-friendly check for native x86_64-linux build, if
10213# multilib is not explicitly enabled.
10214case "$target:$have_compiler:$host:$target:$enable_multilib" in
10215 x86_64-*linux*:yes:$build:$build:)
e640447c 10216 # Make sure we have a development environment that handles 32-bit
79e0604d
FXC
10217 dev64=no
10218 echo "int main () { return 0; }" > conftest.c
10219 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10220 if test $? = 0 ; then
10221 if test -s conftest || test -s conftest.exe ; then
10222 dev64=yes
10223 fi
10224 fi
10225 rm -f conftest*
10226 if test x${dev64} != xyes ; then
22e05272 10227 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
10228 fi
10229 ;;
10230esac
10231
dc683a3f
RW
10232# Default to --enable-multilib.
10233if test x${enable_multilib} = x ; then
671aa708 10234 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 10235fi
671aa708
NN
10236
10237# Pass --with-newlib if appropriate. Note that target_configdirs has
10238# changed from the earlier setting of with_newlib.
10239if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10240 target_configargs="--with-newlib ${target_configargs}"
10241fi
10242
6b9eb62c
NN
10243# Different target subdirs use different values of certain variables
10244# (notably CXX). Worse, multilibs use *lots* of different values.
10245# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10246# it doesn't automatically accept command-line overrides of them.
10247# This means it's not safe for target subdirs to share a cache file,
10248# which is disgusting, but there you have it. Hopefully this can be
10249# fixed in future. It's still worthwhile to use a cache file for each
10250# directory. I think.
10251
bebcd931
MS
10252# Pass the appropriate --build, --host, --target and --cache-file arguments.
10253# We need to pass --target, as newer autoconf's requires consistency
10254# for target_alias and gcc doesn't manage it consistently.
e69bf64b 10255target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 10256
671aa708
NN
10257FLAGS_FOR_TARGET=
10258case " $target_configdirs " in
10259 *" newlib "*)
10260 case " $target_configargs " in
10261 *" --with-newlib "*)
10262 case "$target" in
5d571eaa 10263 *-cygwin*)
443e6238 10264 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5d571eaa 10265 ;;
671aa708
NN
10266 esac
10267
10268 # If we're not building GCC, don't discard standard headers.
10269 if test -d ${srcdir}/gcc; then
10270 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10271
10272 if test "${build}" != "${host}"; then
10273 # On Canadian crosses, CC_FOR_TARGET will have already been set
10274 # by `configure', so we won't have an opportunity to add -Bgcc/
10275 # to it. This is right: we don't want to search that directory
10276 # for binaries, but we want the header files in there, so add
10277 # them explicitly.
0463992b 10278 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
10279
10280 # Someone might think of using the pre-installed headers on
10281 # Canadian crosses, in case the installed compiler is not fully
10282 # compatible with the compiler being built. In this case, it
10283 # would be better to flag an error than risking having
10284 # incompatible object files being constructed. We can't
10285 # guarantee that an error will be flagged, but let's hope the
10286 # compiler will do it, when presented with incompatible header
10287 # files.
10288 fi
10289 fi
10290
10291 case "${target}-${is_cross_compiler}" in
f2a0e225 10292 i[3456789]86-*-linux*-no)
671aa708
NN
10293 # Here host == target, so we don't need to build gcc,
10294 # so we don't want to discard standard headers.
10295 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10296 ;;
10297 *)
10298 # If we're building newlib, use its generic headers last, but search
10299 # for any libc-related directories first (so make it the last -B
10300 # switch).
10301 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
10302
10303 # If we're building libgloss, find the startup file, simulator library
10304 # and linker script.
10305 case " $target_configdirs " in
10306 *" libgloss "*)
10307 # Look for startup file, simulator library and maybe linker script.
10308 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10309 # Look for libnosys.a in case the target needs it.
10310 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10311 # Most targets have the linker script in the source directory.
10312 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10313 ;;
10314 esac
671aa708
NN
10315 ;;
10316 esac
10317 ;;
10318 esac
10319 ;;
10320esac
5d571eaa 10321
b91f0a41 10322case "$target" in
5d571eaa
OS
10323 x86_64-*mingw* | *-w64-mingw*)
10324 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10325 # however, use a symlink named 'mingw' in ${prefix} .
10326 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10327 ;;
10328 *-mingw*)
10329 # MinGW can't be handled as Cygwin above since it does not use newlib.
10330 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'
10331 ;;
b91f0a41 10332esac
671aa708 10333
6691a79e
ME
10334# Allow the user to override the flags for
10335# our build compiler if desired.
f019adc1
MF
10336if test x"${build}" = x"${host}" ; then
10337 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
84401ce5 10338 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
f019adc1
MF
10339 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10340 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10341fi
6691a79e 10342
671aa708
NN
10343# On Canadian crosses, we'll be searching the right directories for
10344# the previously-installed cross compiler, so don't bother to add
10345# flags for directories within the install tree of the compiler
10346# being built; programs in there won't even run.
10347if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10348 # Search for pre-installed headers if nothing else fits.
9124bc53 10349 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
10350fi
10351
10352if test "x${use_gnu_ld}" = x &&
10353 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10354 # Arrange for us to find uninstalled linker scripts.
215c351a 10355 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
10356fi
10357
e88a2c09
DD
10358# Search for other target-specific linker scripts and such.
10359case "${target}" in
3e19841a
PB
10360 mep*)
10361 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10362 ;;
9b8ffbb8
OH
10363 # The VxWorks support for shared libraries is getting in
10364 # incrementally. Make sure it doesn't get activated implicitly:
10365 *vxworks*)
10366 if test "${enable_shared-unset}" = unset ; then
10367 enable_shared=no
10368 # So the build of libraries knows ...
10369 target_configargs="${target_configargs} --disable-shared"
10370 # So gcc knows ...
10371 host_configargs="${host_configargs} --disable-shared"
10372 fi
10373 ;;
e88a2c09
DD
10374esac
10375
671aa708 10376# Makefile fragments.
7b61653a
PE
10377for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10378do
10379 eval fragval=\$$frag
10380 if test $fragval != /dev/null; then
10381 eval $frag=${srcdir}/$fragval
10382 fi
10383done
671aa708
NN
10384
10385
10386
10387
10388
10389# Miscellanea: directories, flags, etc.
10390
10391
10392
10393
10394
10395
10396
d89f0ad6 10397
23f6b2f9 10398# Build module lists & subconfigure args.
671aa708
NN
10399
10400
10401
2abefe3d
PB
10402# Host module lists & subconfigure args.
10403
10404
10405
aae29963 10406
2abefe3d
PB
10407# Target module lists & subconfigure args.
10408
10409
10410
10411# Build tools.
10412
10413
10414
0999159b
PB
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
b4c522fa 10428
3b5e8ee4 10429
a1d2b162
IS
10430
10431
2abefe3d
PB
10432# Generate default definitions for YACC, M4, LEX and other programs that run
10433# on the build machine. These are used if the Makefile can't locate these
10434# programs in objdir.
10435MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10436
10437for ac_prog in 'bison -y' byacc yacc
10438do
1c710c3c 10439 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10440set dummy $ac_prog; ac_word=$2
5213506e
RW
10441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10442$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10443if ${ac_cv_prog_YACC+:} false; then :
5213506e 10444 $as_echo_n "(cached) " >&6
2abefe3d
PB
10445else
10446 if test -n "$YACC"; then
10447 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10448else
1c710c3c
DJ
10449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10450for as_dir in $PATH
10451do
10452 IFS=$as_save_IFS
10453 test -z "$as_dir" && as_dir=.
5213506e 10454 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10456 ac_cv_prog_YACC="$ac_prog"
5213506e 10457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10458 break 2
10459 fi
10460done
5213506e
RW
10461 done
10462IFS=$as_save_IFS
1c710c3c 10463
2abefe3d
PB
10464fi
10465fi
1c710c3c 10466YACC=$ac_cv_prog_YACC
2abefe3d 10467if test -n "$YACC"; then
5213506e
RW
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10469$as_echo "$YACC" >&6; }
2abefe3d 10470else
5213506e
RW
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10472$as_echo "no" >&6; }
2abefe3d
PB
10473fi
10474
5213506e 10475
1c710c3c 10476 test -n "$YACC" && break
2abefe3d
PB
10477done
10478test -n "$YACC" || YACC="$MISSING bison -y"
10479
10480case " $build_configdirs " in
10481 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
10482esac
10483
10484for ac_prog in bison
10485do
1c710c3c 10486 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10487set dummy $ac_prog; ac_word=$2
5213506e
RW
10488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10489$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10490if ${ac_cv_prog_BISON+:} false; then :
5213506e 10491 $as_echo_n "(cached) " >&6
2abefe3d
PB
10492else
10493 if test -n "$BISON"; then
10494 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10495else
1c710c3c
DJ
10496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10497for as_dir in $PATH
10498do
10499 IFS=$as_save_IFS
10500 test -z "$as_dir" && as_dir=.
5213506e 10501 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10503 ac_cv_prog_BISON="$ac_prog"
5213506e 10504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10505 break 2
10506 fi
10507done
5213506e
RW
10508 done
10509IFS=$as_save_IFS
1c710c3c 10510
2abefe3d
PB
10511fi
10512fi
1c710c3c 10513BISON=$ac_cv_prog_BISON
2abefe3d 10514if test -n "$BISON"; then
5213506e
RW
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10516$as_echo "$BISON" >&6; }
2abefe3d 10517else
5213506e
RW
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10519$as_echo "no" >&6; }
2abefe3d
PB
10520fi
10521
5213506e 10522
1c710c3c 10523 test -n "$BISON" && break
2abefe3d
PB
10524done
10525test -n "$BISON" || BISON="$MISSING bison"
10526
10527case " $build_configdirs " in
10528 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10529esac
10530
10531for ac_prog in gm4 gnum4 m4
10532do
1c710c3c 10533 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10534set dummy $ac_prog; ac_word=$2
5213506e
RW
10535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10536$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10537if ${ac_cv_prog_M4+:} false; then :
5213506e 10538 $as_echo_n "(cached) " >&6
2abefe3d
PB
10539else
10540 if test -n "$M4"; then
10541 ac_cv_prog_M4="$M4" # Let the user override the test.
10542else
1c710c3c
DJ
10543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10544for as_dir in $PATH
10545do
10546 IFS=$as_save_IFS
10547 test -z "$as_dir" && as_dir=.
5213506e 10548 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10550 ac_cv_prog_M4="$ac_prog"
5213506e 10551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10552 break 2
10553 fi
10554done
5213506e
RW
10555 done
10556IFS=$as_save_IFS
1c710c3c 10557
2abefe3d
PB
10558fi
10559fi
1c710c3c 10560M4=$ac_cv_prog_M4
2abefe3d 10561if test -n "$M4"; then
5213506e
RW
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10563$as_echo "$M4" >&6; }
2abefe3d 10564else
5213506e
RW
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10566$as_echo "no" >&6; }
2abefe3d
PB
10567fi
10568
5213506e 10569
1c710c3c 10570 test -n "$M4" && break
2abefe3d
PB
10571done
10572test -n "$M4" || M4="$MISSING m4"
10573
10574case " $build_configdirs " in
10575 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10576esac
10577
10578for ac_prog in flex lex
10579do
1c710c3c 10580 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10581set dummy $ac_prog; ac_word=$2
5213506e
RW
10582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10583$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10584if ${ac_cv_prog_LEX+:} false; then :
5213506e 10585 $as_echo_n "(cached) " >&6
2abefe3d
PB
10586else
10587 if test -n "$LEX"; then
10588 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10589else
1c710c3c
DJ
10590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10591for as_dir in $PATH
10592do
10593 IFS=$as_save_IFS
10594 test -z "$as_dir" && as_dir=.
5213506e 10595 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10597 ac_cv_prog_LEX="$ac_prog"
5213506e 10598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10599 break 2
10600 fi
10601done
5213506e
RW
10602 done
10603IFS=$as_save_IFS
1c710c3c 10604
2abefe3d
PB
10605fi
10606fi
1c710c3c 10607LEX=$ac_cv_prog_LEX
2abefe3d 10608if test -n "$LEX"; then
5213506e
RW
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10610$as_echo "$LEX" >&6; }
2abefe3d 10611else
5213506e
RW
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10613$as_echo "no" >&6; }
2abefe3d
PB
10614fi
10615
5213506e 10616
1c710c3c 10617 test -n "$LEX" && break
2abefe3d
PB
10618done
10619test -n "$LEX" || LEX="$MISSING flex"
10620
10621case " $build_configdirs " in
10622 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10623 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10624esac
10625
10626for ac_prog in flex
10627do
1c710c3c 10628 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10629set dummy $ac_prog; ac_word=$2
5213506e
RW
10630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10631$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10632if ${ac_cv_prog_FLEX+:} false; then :
5213506e 10633 $as_echo_n "(cached) " >&6
2abefe3d
PB
10634else
10635 if test -n "$FLEX"; then
10636 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10637else
1c710c3c
DJ
10638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10639for as_dir in $PATH
10640do
10641 IFS=$as_save_IFS
10642 test -z "$as_dir" && as_dir=.
5213506e 10643 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10645 ac_cv_prog_FLEX="$ac_prog"
5213506e 10646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10647 break 2
10648 fi
10649done
5213506e
RW
10650 done
10651IFS=$as_save_IFS
1c710c3c 10652
2abefe3d
PB
10653fi
10654fi
1c710c3c 10655FLEX=$ac_cv_prog_FLEX
2abefe3d 10656if test -n "$FLEX"; then
5213506e
RW
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10658$as_echo "$FLEX" >&6; }
2abefe3d 10659else
5213506e
RW
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10661$as_echo "no" >&6; }
2abefe3d
PB
10662fi
10663
5213506e 10664
1c710c3c 10665 test -n "$FLEX" && break
2abefe3d
PB
10666done
10667test -n "$FLEX" || FLEX="$MISSING flex"
10668
10669case " $build_configdirs " in
10670 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10671esac
10672
10673for ac_prog in makeinfo
10674do
1c710c3c 10675 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10676set dummy $ac_prog; ac_word=$2
5213506e
RW
10677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10678$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10679if ${ac_cv_prog_MAKEINFO+:} false; then :
5213506e 10680 $as_echo_n "(cached) " >&6
2abefe3d
PB
10681else
10682 if test -n "$MAKEINFO"; then
10683 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10684else
1c710c3c
DJ
10685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10686for as_dir in $PATH
10687do
10688 IFS=$as_save_IFS
10689 test -z "$as_dir" && as_dir=.
5213506e 10690 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10692 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 10693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10694 break 2
10695 fi
10696done
5213506e
RW
10697 done
10698IFS=$as_save_IFS
1c710c3c 10699
2abefe3d
PB
10700fi
10701fi
1c710c3c 10702MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 10703if test -n "$MAKEINFO"; then
5213506e
RW
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10705$as_echo "$MAKEINFO" >&6; }
2abefe3d 10706else
5213506e
RW
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10708$as_echo "no" >&6; }
2abefe3d
PB
10709fi
10710
5213506e 10711
1c710c3c 10712 test -n "$MAKEINFO" && break
2abefe3d
PB
10713done
10714test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10715
10716case " $build_configdirs " in
10717 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10718 *)
10719
d18ff35a 10720 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
10721 # higher, else we use the "missing" dummy.
10722 if ${MAKEINFO} --version \
d18ff35a 10723 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
10724 :
10725 else
10726 MAKEINFO="$MISSING makeinfo"
10727 fi
10728 ;;
10729
10730esac
671aa708 10731
2abefe3d 10732# FIXME: expect and dejagnu may become build tools?
671aa708 10733
2abefe3d
PB
10734for ac_prog in expect
10735do
1c710c3c 10736 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10737set dummy $ac_prog; ac_word=$2
5213506e
RW
10738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10739$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10740if ${ac_cv_prog_EXPECT+:} false; then :
5213506e 10741 $as_echo_n "(cached) " >&6
2abefe3d
PB
10742else
10743 if test -n "$EXPECT"; then
10744 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10745else
1c710c3c
DJ
10746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10747for as_dir in $PATH
10748do
10749 IFS=$as_save_IFS
10750 test -z "$as_dir" && as_dir=.
5213506e 10751 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10753 ac_cv_prog_EXPECT="$ac_prog"
5213506e 10754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10755 break 2
10756 fi
10757done
5213506e
RW
10758 done
10759IFS=$as_save_IFS
1c710c3c 10760
2abefe3d
PB
10761fi
10762fi
1c710c3c 10763EXPECT=$ac_cv_prog_EXPECT
2abefe3d 10764if test -n "$EXPECT"; then
5213506e
RW
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10766$as_echo "$EXPECT" >&6; }
2abefe3d 10767else
5213506e
RW
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10769$as_echo "no" >&6; }
2abefe3d 10770fi
671aa708 10771
5213506e 10772
1c710c3c 10773 test -n "$EXPECT" && break
2abefe3d
PB
10774done
10775test -n "$EXPECT" || EXPECT="expect"
671aa708 10776
2abefe3d
PB
10777case " $configdirs " in
10778 *" expect "*)
10779 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10780 ;;
10781esac
671aa708 10782
2abefe3d
PB
10783for ac_prog in runtest
10784do
1c710c3c 10785 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10786set dummy $ac_prog; ac_word=$2
5213506e
RW
10787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10788$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10789if ${ac_cv_prog_RUNTEST+:} false; then :
5213506e 10790 $as_echo_n "(cached) " >&6
2abefe3d
PB
10791else
10792 if test -n "$RUNTEST"; then
10793 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 10794else
1c710c3c
DJ
10795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10796for as_dir in $PATH
10797do
10798 IFS=$as_save_IFS
10799 test -z "$as_dir" && as_dir=.
5213506e 10800 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10802 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 10803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10804 break 2
10805 fi
10806done
5213506e
RW
10807 done
10808IFS=$as_save_IFS
1c710c3c 10809
2abefe3d
PB
10810fi
10811fi
1c710c3c 10812RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 10813if test -n "$RUNTEST"; then
5213506e
RW
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10815$as_echo "$RUNTEST" >&6; }
2abefe3d 10816else
5213506e
RW
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10818$as_echo "no" >&6; }
2abefe3d 10819fi
671aa708 10820
5213506e 10821
1c710c3c 10822 test -n "$RUNTEST" && break
2abefe3d
PB
10823done
10824test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 10825
2abefe3d
PB
10826case " $configdirs " in
10827 *" dejagnu "*)
c394e891 10828 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
10829 ;;
10830esac
671aa708 10831
4e3dcf20 10832
671aa708 10833# Host tools.
ca9f4b81
AO
10834ncn_tool_prefix=
10835test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10836ncn_target_tool_prefix=
10837test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10838
278a7a38
AO
10839
10840
10841if test -n "$AR"; then
10842 ac_cv_prog_AR=$AR
10843elif test -n "$ac_cv_prog_AR"; then
10844 AR=$ac_cv_prog_AR
10845fi
10846
10847if test -n "$ac_cv_prog_AR"; then
10848 for ncn_progname in ar; do
10849 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10850set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10852$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10853if ${ac_cv_prog_AR+:} false; then :
5213506e 10854 $as_echo_n "(cached) " >&6
278a7a38
AO
10855else
10856 if test -n "$AR"; then
10857 ac_cv_prog_AR="$AR" # Let the user override the test.
10858else
10859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10860for as_dir in $PATH
10861do
10862 IFS=$as_save_IFS
10863 test -z "$as_dir" && as_dir=.
5213506e 10864 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10866 ac_cv_prog_AR="${ncn_progname}"
5213506e 10867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10868 break 2
10869 fi
10870done
5213506e
RW
10871 done
10872IFS=$as_save_IFS
278a7a38
AO
10873
10874fi
10875fi
10876AR=$ac_cv_prog_AR
10877if test -n "$AR"; then
5213506e
RW
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10879$as_echo "$AR" >&6; }
278a7a38 10880else
5213506e
RW
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10882$as_echo "no" >&6; }
278a7a38
AO
10883fi
10884
5213506e 10885
278a7a38
AO
10886 done
10887fi
10888
10889for ncn_progname in ar; do
2693c0b0
PB
10890 if test -n "$ncn_tool_prefix"; then
10891 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10892set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10894$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10895if ${ac_cv_prog_AR+:} false; then :
5213506e 10896 $as_echo_n "(cached) " >&6
ca9f4b81
AO
10897else
10898 if test -n "$AR"; then
10899 ac_cv_prog_AR="$AR" # Let the user override the test.
10900else
1c710c3c
DJ
10901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10902for as_dir in $PATH
10903do
10904 IFS=$as_save_IFS
10905 test -z "$as_dir" && as_dir=.
5213506e 10906 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10908 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 10909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10910 break 2
10911 fi
10912done
5213506e
RW
10913 done
10914IFS=$as_save_IFS
1c710c3c 10915
ca9f4b81
AO
10916fi
10917fi
1c710c3c 10918AR=$ac_cv_prog_AR
ca9f4b81 10919if test -n "$AR"; then
5213506e
RW
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10921$as_echo "$AR" >&6; }
ca9f4b81 10922else
5213506e
RW
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10924$as_echo "no" >&6; }
ca9f4b81
AO
10925fi
10926
5213506e 10927
2693c0b0
PB
10928 fi
10929 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10930 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10931set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10933$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10934if ${ac_cv_prog_AR+:} false; then :
5213506e 10935 $as_echo_n "(cached) " >&6
ca9f4b81 10936else
2693c0b0 10937 if test -n "$AR"; then
af71363e
AS
10938 ac_cv_prog_AR="$AR" # Let the user override the test.
10939else
1c710c3c
DJ
10940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10941for as_dir in $PATH
10942do
10943 IFS=$as_save_IFS
10944 test -z "$as_dir" && as_dir=.
5213506e 10945 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10947 ac_cv_prog_AR="${ncn_progname}"
5213506e 10948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10949 break 2
10950 fi
10951done
5213506e
RW
10952 done
10953IFS=$as_save_IFS
1c710c3c 10954
ca9f4b81
AO
10955fi
10956fi
1c710c3c 10957AR=$ac_cv_prog_AR
2693c0b0 10958if test -n "$AR"; then
5213506e
RW
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10960$as_echo "$AR" >&6; }
ca9f4b81 10961else
5213506e
RW
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10963$as_echo "no" >&6; }
ca9f4b81 10964fi
1c710c3c 10965
5213506e 10966
2693c0b0
PB
10967 fi
10968 test -n "$ac_cv_prog_AR" && break
10969done
10970
10971if test -z "$ac_cv_prog_AR" ; then
10972 set dummy ar
10973 if test $build = $host ; then
10974 AR="$2"
ca9f4b81 10975 else
2693c0b0 10976 AR="${ncn_tool_prefix}$2"
ca9f4b81 10977 fi
ca9f4b81
AO
10978fi
10979
278a7a38
AO
10980
10981
10982if test -n "$AS"; then
10983 ac_cv_prog_AS=$AS
10984elif test -n "$ac_cv_prog_AS"; then
10985 AS=$ac_cv_prog_AS
10986fi
10987
10988if test -n "$ac_cv_prog_AS"; then
10989 for ncn_progname in as; do
10990 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10991set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10993$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10994if ${ac_cv_prog_AS+:} false; then :
5213506e 10995 $as_echo_n "(cached) " >&6
278a7a38
AO
10996else
10997 if test -n "$AS"; then
10998 ac_cv_prog_AS="$AS" # Let the user override the test.
10999else
11000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11001for as_dir in $PATH
11002do
11003 IFS=$as_save_IFS
11004 test -z "$as_dir" && as_dir=.
5213506e 11005 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11007 ac_cv_prog_AS="${ncn_progname}"
5213506e 11008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11009 break 2
11010 fi
11011done
5213506e
RW
11012 done
11013IFS=$as_save_IFS
278a7a38
AO
11014
11015fi
11016fi
11017AS=$ac_cv_prog_AS
11018if test -n "$AS"; then
5213506e
RW
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11020$as_echo "$AS" >&6; }
278a7a38 11021else
5213506e
RW
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11023$as_echo "no" >&6; }
278a7a38
AO
11024fi
11025
5213506e 11026
278a7a38
AO
11027 done
11028fi
11029
11030for ncn_progname in as; do
2693c0b0
PB
11031 if test -n "$ncn_tool_prefix"; then
11032 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11033set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11035$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11036if ${ac_cv_prog_AS+:} false; then :
5213506e 11037 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11038else
11039 if test -n "$AS"; then
11040 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 11041else
1c710c3c
DJ
11042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11043for as_dir in $PATH
11044do
11045 IFS=$as_save_IFS
11046 test -z "$as_dir" && as_dir=.
5213506e 11047 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11049 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 11050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11051 break 2
11052 fi
11053done
5213506e
RW
11054 done
11055IFS=$as_save_IFS
1c710c3c 11056
ca9f4b81
AO
11057fi
11058fi
1c710c3c 11059AS=$ac_cv_prog_AS
ca9f4b81 11060if test -n "$AS"; then
5213506e
RW
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11062$as_echo "$AS" >&6; }
ca9f4b81 11063else
5213506e
RW
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11065$as_echo "no" >&6; }
ca9f4b81
AO
11066fi
11067
5213506e 11068
2693c0b0
PB
11069 fi
11070 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
11071 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11072set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11074$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11075if ${ac_cv_prog_AS+:} false; then :
5213506e 11076 $as_echo_n "(cached) " >&6
ca9f4b81 11077else
2693c0b0
PB
11078 if test -n "$AS"; then
11079 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 11080else
1c710c3c
DJ
11081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11082for as_dir in $PATH
11083do
11084 IFS=$as_save_IFS
11085 test -z "$as_dir" && as_dir=.
5213506e 11086 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11088 ac_cv_prog_AS="${ncn_progname}"
5213506e 11089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11090 break 2
11091 fi
11092done
5213506e
RW
11093 done
11094IFS=$as_save_IFS
1c710c3c 11095
ca9f4b81
AO
11096fi
11097fi
1c710c3c 11098AS=$ac_cv_prog_AS
2693c0b0 11099if test -n "$AS"; then
5213506e
RW
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11101$as_echo "$AS" >&6; }
ca9f4b81 11102else
5213506e
RW
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11104$as_echo "no" >&6; }
ca9f4b81 11105fi
1c710c3c 11106
5213506e 11107
2693c0b0
PB
11108 fi
11109 test -n "$ac_cv_prog_AS" && break
11110done
11111
11112if test -z "$ac_cv_prog_AS" ; then
11113 set dummy as
11114 if test $build = $host ; then
11115 AS="$2"
ca9f4b81 11116 else
2693c0b0 11117 AS="${ncn_tool_prefix}$2"
ca9f4b81 11118 fi
ca9f4b81
AO
11119fi
11120
278a7a38
AO
11121
11122
11123if test -n "$DLLTOOL"; then
11124 ac_cv_prog_DLLTOOL=$DLLTOOL
11125elif test -n "$ac_cv_prog_DLLTOOL"; then
11126 DLLTOOL=$ac_cv_prog_DLLTOOL
11127fi
11128
11129if test -n "$ac_cv_prog_DLLTOOL"; then
11130 for ncn_progname in dlltool; do
11131 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11132set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11134$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11135if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 11136 $as_echo_n "(cached) " >&6
278a7a38
AO
11137else
11138 if test -n "$DLLTOOL"; then
11139 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11140else
11141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11142for as_dir in $PATH
11143do
11144 IFS=$as_save_IFS
11145 test -z "$as_dir" && as_dir=.
5213506e 11146 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11148 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 11149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11150 break 2
11151 fi
11152done
5213506e
RW
11153 done
11154IFS=$as_save_IFS
278a7a38
AO
11155
11156fi
11157fi
11158DLLTOOL=$ac_cv_prog_DLLTOOL
11159if test -n "$DLLTOOL"; then
5213506e
RW
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11161$as_echo "$DLLTOOL" >&6; }
278a7a38 11162else
5213506e
RW
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11164$as_echo "no" >&6; }
278a7a38
AO
11165fi
11166
5213506e 11167
278a7a38
AO
11168 done
11169fi
11170
11171for ncn_progname in dlltool; do
2693c0b0
PB
11172 if test -n "$ncn_tool_prefix"; then
11173 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11174set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11176$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11177if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 11178 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11179else
11180 if test -n "$DLLTOOL"; then
11181 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11182else
1c710c3c
DJ
11183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11184for as_dir in $PATH
11185do
11186 IFS=$as_save_IFS
11187 test -z "$as_dir" && as_dir=.
5213506e 11188 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11190 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 11191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11192 break 2
11193 fi
11194done
5213506e
RW
11195 done
11196IFS=$as_save_IFS
1c710c3c 11197
ca9f4b81
AO
11198fi
11199fi
1c710c3c 11200DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 11201if test -n "$DLLTOOL"; then
5213506e
RW
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11203$as_echo "$DLLTOOL" >&6; }
ca9f4b81 11204else
5213506e
RW
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11206$as_echo "no" >&6; }
ca9f4b81
AO
11207fi
11208
5213506e 11209
2693c0b0
PB
11210 fi
11211 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11212 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11213set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11215$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11216if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 11217 $as_echo_n "(cached) " >&6
ca9f4b81 11218else
2693c0b0
PB
11219 if test -n "$DLLTOOL"; then
11220 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 11221else
1c710c3c
DJ
11222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11223for as_dir in $PATH
11224do
11225 IFS=$as_save_IFS
11226 test -z "$as_dir" && as_dir=.
5213506e 11227 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11229 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 11230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11231 break 2
11232 fi
11233done
5213506e
RW
11234 done
11235IFS=$as_save_IFS
1c710c3c 11236
ca9f4b81
AO
11237fi
11238fi
1c710c3c 11239DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 11240if test -n "$DLLTOOL"; then
5213506e
RW
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11242$as_echo "$DLLTOOL" >&6; }
ca9f4b81 11243else
5213506e
RW
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11245$as_echo "no" >&6; }
ca9f4b81 11246fi
1c710c3c 11247
5213506e 11248
2693c0b0
PB
11249 fi
11250 test -n "$ac_cv_prog_DLLTOOL" && break
11251done
11252
11253if test -z "$ac_cv_prog_DLLTOOL" ; then
11254 set dummy dlltool
11255 if test $build = $host ; then
11256 DLLTOOL="$2"
ca9f4b81 11257 else
2693c0b0 11258 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 11259 fi
ca9f4b81
AO
11260fi
11261
278a7a38
AO
11262
11263
3b5e8ee4
IS
11264if test -n "$DSYMUTIL"; then
11265 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11266elif test -n "$ac_cv_prog_DSYMUTIL"; then
11267 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11268fi
11269
11270if test -n "$ac_cv_prog_DSYMUTIL"; then
11271 for ncn_progname in dsymutil; do
11272 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11273set dummy ${ncn_progname}; ac_word=$2
11274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11275$as_echo_n "checking for $ac_word... " >&6; }
11276if ${ac_cv_prog_DSYMUTIL+:} false; then :
11277 $as_echo_n "(cached) " >&6
11278else
11279 if test -n "$DSYMUTIL"; then
11280 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11281else
11282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11283for as_dir in $PATH
11284do
11285 IFS=$as_save_IFS
11286 test -z "$as_dir" && as_dir=.
11287 for ac_exec_ext in '' $ac_executable_extensions; do
11288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11289 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11291 break 2
11292 fi
11293done
11294 done
11295IFS=$as_save_IFS
11296
11297fi
11298fi
11299DSYMUTIL=$ac_cv_prog_DSYMUTIL
11300if test -n "$DSYMUTIL"; then
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11302$as_echo "$DSYMUTIL" >&6; }
11303else
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11305$as_echo "no" >&6; }
11306fi
11307
11308
11309 done
11310fi
11311
11312for ncn_progname in dsymutil; do
11313 if test -n "$ncn_tool_prefix"; then
11314 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11315set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11317$as_echo_n "checking for $ac_word... " >&6; }
11318if ${ac_cv_prog_DSYMUTIL+:} false; then :
11319 $as_echo_n "(cached) " >&6
11320else
11321 if test -n "$DSYMUTIL"; then
11322 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11323else
11324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11325for as_dir in $PATH
11326do
11327 IFS=$as_save_IFS
11328 test -z "$as_dir" && as_dir=.
11329 for ac_exec_ext in '' $ac_executable_extensions; do
11330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11331 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11333 break 2
11334 fi
11335done
11336 done
11337IFS=$as_save_IFS
11338
11339fi
11340fi
11341DSYMUTIL=$ac_cv_prog_DSYMUTIL
11342if test -n "$DSYMUTIL"; then
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11344$as_echo "$DSYMUTIL" >&6; }
11345else
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11347$as_echo "no" >&6; }
11348fi
11349
11350
11351 fi
11352 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11353 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11354set dummy ${ncn_progname}; ac_word=$2
11355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11356$as_echo_n "checking for $ac_word... " >&6; }
11357if ${ac_cv_prog_DSYMUTIL+:} false; then :
11358 $as_echo_n "(cached) " >&6
11359else
11360 if test -n "$DSYMUTIL"; then
11361 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11362else
11363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11364for as_dir in $PATH
11365do
11366 IFS=$as_save_IFS
11367 test -z "$as_dir" && as_dir=.
11368 for ac_exec_ext in '' $ac_executable_extensions; do
11369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11370 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11372 break 2
11373 fi
11374done
11375 done
11376IFS=$as_save_IFS
11377
11378fi
11379fi
11380DSYMUTIL=$ac_cv_prog_DSYMUTIL
11381if test -n "$DSYMUTIL"; then
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11383$as_echo "$DSYMUTIL" >&6; }
11384else
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11386$as_echo "no" >&6; }
11387fi
11388
11389
11390 fi
11391 test -n "$ac_cv_prog_DSYMUTIL" && break
11392done
11393
11394if test -z "$ac_cv_prog_DSYMUTIL" ; then
11395 set dummy dsymutil
11396 if test $build = $host ; then
11397 DSYMUTIL="$2"
11398 else
11399 DSYMUTIL="${ncn_tool_prefix}$2"
11400 fi
11401fi
11402
11403
11404
278a7a38
AO
11405if test -n "$LD"; then
11406 ac_cv_prog_LD=$LD
11407elif test -n "$ac_cv_prog_LD"; then
11408 LD=$ac_cv_prog_LD
11409fi
11410
11411if test -n "$ac_cv_prog_LD"; then
11412 for ncn_progname in ld; do
11413 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11414set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11416$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11417if ${ac_cv_prog_LD+:} false; then :
5213506e 11418 $as_echo_n "(cached) " >&6
278a7a38
AO
11419else
11420 if test -n "$LD"; then
11421 ac_cv_prog_LD="$LD" # Let the user override the test.
11422else
11423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11424for as_dir in $PATH
11425do
11426 IFS=$as_save_IFS
11427 test -z "$as_dir" && as_dir=.
5213506e 11428 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11430 ac_cv_prog_LD="${ncn_progname}"
5213506e 11431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11432 break 2
11433 fi
11434done
5213506e
RW
11435 done
11436IFS=$as_save_IFS
278a7a38
AO
11437
11438fi
11439fi
11440LD=$ac_cv_prog_LD
11441if test -n "$LD"; then
5213506e
RW
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11443$as_echo "$LD" >&6; }
278a7a38 11444else
5213506e
RW
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11446$as_echo "no" >&6; }
278a7a38
AO
11447fi
11448
5213506e 11449
278a7a38
AO
11450 done
11451fi
11452
11453for ncn_progname in ld; do
2693c0b0
PB
11454 if test -n "$ncn_tool_prefix"; then
11455 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11456set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11458$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11459if ${ac_cv_prog_LD+:} false; then :
5213506e 11460 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11461else
11462 if test -n "$LD"; then
11463 ac_cv_prog_LD="$LD" # Let the user override the test.
11464else
1c710c3c
DJ
11465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11466for as_dir in $PATH
11467do
11468 IFS=$as_save_IFS
11469 test -z "$as_dir" && as_dir=.
5213506e 11470 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11472 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 11473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11474 break 2
11475 fi
11476done
5213506e
RW
11477 done
11478IFS=$as_save_IFS
1c710c3c 11479
ca9f4b81
AO
11480fi
11481fi
1c710c3c 11482LD=$ac_cv_prog_LD
ca9f4b81 11483if test -n "$LD"; then
5213506e
RW
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11485$as_echo "$LD" >&6; }
ca9f4b81 11486else
5213506e
RW
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11488$as_echo "no" >&6; }
ca9f4b81
AO
11489fi
11490
5213506e 11491
2693c0b0
PB
11492 fi
11493 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11494 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11495set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11497$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11498if ${ac_cv_prog_LD+:} false; then :
5213506e 11499 $as_echo_n "(cached) " >&6
ca9f4b81 11500else
2693c0b0
PB
11501 if test -n "$LD"; then
11502 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 11503else
1c710c3c
DJ
11504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11505for as_dir in $PATH
11506do
11507 IFS=$as_save_IFS
11508 test -z "$as_dir" && as_dir=.
5213506e 11509 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11511 ac_cv_prog_LD="${ncn_progname}"
5213506e 11512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11513 break 2
11514 fi
11515done
5213506e
RW
11516 done
11517IFS=$as_save_IFS
1c710c3c 11518
ca9f4b81
AO
11519fi
11520fi
1c710c3c 11521LD=$ac_cv_prog_LD
2693c0b0 11522if test -n "$LD"; then
5213506e
RW
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11524$as_echo "$LD" >&6; }
ca9f4b81 11525else
5213506e
RW
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11527$as_echo "no" >&6; }
ca9f4b81 11528fi
1c710c3c 11529
5213506e 11530
2693c0b0
PB
11531 fi
11532 test -n "$ac_cv_prog_LD" && break
11533done
11534
11535if test -z "$ac_cv_prog_LD" ; then
11536 set dummy ld
11537 if test $build = $host ; then
11538 LD="$2"
ca9f4b81 11539 else
2693c0b0 11540 LD="${ncn_tool_prefix}$2"
ca9f4b81 11541 fi
ca9f4b81
AO
11542fi
11543
278a7a38
AO
11544
11545
11546if test -n "$LIPO"; then
11547 ac_cv_prog_LIPO=$LIPO
11548elif test -n "$ac_cv_prog_LIPO"; then
11549 LIPO=$ac_cv_prog_LIPO
11550fi
11551
11552if test -n "$ac_cv_prog_LIPO"; then
11553 for ncn_progname in lipo; do
11554 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11555set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11557$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11558if ${ac_cv_prog_LIPO+:} false; then :
5213506e 11559 $as_echo_n "(cached) " >&6
278a7a38
AO
11560else
11561 if test -n "$LIPO"; then
11562 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11563else
11564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11565for as_dir in $PATH
11566do
11567 IFS=$as_save_IFS
11568 test -z "$as_dir" && as_dir=.
5213506e 11569 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11571 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 11572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11573 break 2
11574 fi
11575done
5213506e
RW
11576 done
11577IFS=$as_save_IFS
278a7a38
AO
11578
11579fi
11580fi
11581LIPO=$ac_cv_prog_LIPO
11582if test -n "$LIPO"; then
5213506e
RW
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11584$as_echo "$LIPO" >&6; }
278a7a38 11585else
5213506e
RW
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11587$as_echo "no" >&6; }
278a7a38
AO
11588fi
11589
5213506e 11590
278a7a38
AO
11591 done
11592fi
11593
11594for ncn_progname in lipo; do
2abefe3d
PB
11595 if test -n "$ncn_tool_prefix"; then
11596 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11597set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11599$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11600if ${ac_cv_prog_LIPO+:} false; then :
5213506e 11601 $as_echo_n "(cached) " >&6
2abefe3d
PB
11602else
11603 if test -n "$LIPO"; then
11604 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11605else
1c710c3c
DJ
11606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11607for as_dir in $PATH
11608do
11609 IFS=$as_save_IFS
11610 test -z "$as_dir" && as_dir=.
5213506e 11611 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11613 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 11614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11615 break 2
11616 fi
11617done
5213506e
RW
11618 done
11619IFS=$as_save_IFS
1c710c3c 11620
2abefe3d
PB
11621fi
11622fi
1c710c3c 11623LIPO=$ac_cv_prog_LIPO
2abefe3d 11624if test -n "$LIPO"; then
5213506e
RW
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11626$as_echo "$LIPO" >&6; }
2abefe3d 11627else
5213506e
RW
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11629$as_echo "no" >&6; }
2abefe3d
PB
11630fi
11631
5213506e 11632
2abefe3d
PB
11633 fi
11634 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11635 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11636set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11638$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11639if ${ac_cv_prog_LIPO+:} false; then :
5213506e 11640 $as_echo_n "(cached) " >&6
2abefe3d
PB
11641else
11642 if test -n "$LIPO"; then
11643 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11644else
1c710c3c
DJ
11645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11646for as_dir in $PATH
11647do
11648 IFS=$as_save_IFS
11649 test -z "$as_dir" && as_dir=.
5213506e 11650 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11652 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 11653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11654 break 2
11655 fi
11656done
5213506e
RW
11657 done
11658IFS=$as_save_IFS
1c710c3c 11659
2abefe3d
PB
11660fi
11661fi
1c710c3c 11662LIPO=$ac_cv_prog_LIPO
2abefe3d 11663if test -n "$LIPO"; then
5213506e
RW
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11665$as_echo "$LIPO" >&6; }
2abefe3d 11666else
5213506e
RW
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11668$as_echo "no" >&6; }
2abefe3d 11669fi
1c710c3c 11670
5213506e 11671
2abefe3d
PB
11672 fi
11673 test -n "$ac_cv_prog_LIPO" && break
11674done
11675
11676if test -z "$ac_cv_prog_LIPO" ; then
11677 set dummy lipo
11678 if test $build = $host ; then
11679 LIPO="$2"
11680 else
11681 LIPO="${ncn_tool_prefix}$2"
11682 fi
11683fi
11684
278a7a38
AO
11685
11686
11687if test -n "$NM"; then
11688 ac_cv_prog_NM=$NM
11689elif test -n "$ac_cv_prog_NM"; then
11690 NM=$ac_cv_prog_NM
11691fi
11692
11693if test -n "$ac_cv_prog_NM"; then
11694 for ncn_progname in nm; do
11695 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11696set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11698$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11699if ${ac_cv_prog_NM+:} false; then :
5213506e 11700 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11701else
11702 if test -n "$NM"; then
11703 ac_cv_prog_NM="$NM" # Let the user override the test.
11704else
1c710c3c
DJ
11705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11706for as_dir in $PATH
11707do
11708 IFS=$as_save_IFS
11709 test -z "$as_dir" && as_dir=.
5213506e 11710 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11712 ac_cv_prog_NM="${ncn_progname}"
5213506e 11713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11714 break 2
11715 fi
11716done
5213506e
RW
11717 done
11718IFS=$as_save_IFS
1c710c3c 11719
ca9f4b81
AO
11720fi
11721fi
1c710c3c 11722NM=$ac_cv_prog_NM
ca9f4b81 11723if test -n "$NM"; then
5213506e
RW
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11725$as_echo "$NM" >&6; }
ca9f4b81 11726else
5213506e
RW
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11728$as_echo "no" >&6; }
ca9f4b81
AO
11729fi
11730
5213506e 11731
278a7a38
AO
11732 done
11733fi
11734
11735for ncn_progname in nm; do
11736 if test -n "$ncn_tool_prefix"; then
11737 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11738set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11740$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11741if ${ac_cv_prog_NM+:} false; then :
5213506e 11742 $as_echo_n "(cached) " >&6
ca9f4b81 11743else
2693c0b0
PB
11744 if test -n "$NM"; then
11745 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 11746else
1c710c3c
DJ
11747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11748for as_dir in $PATH
11749do
11750 IFS=$as_save_IFS
11751 test -z "$as_dir" && as_dir=.
5213506e 11752 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11754 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 11755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11756 break 2
11757 fi
11758done
5213506e
RW
11759 done
11760IFS=$as_save_IFS
1c710c3c 11761
ca9f4b81
AO
11762fi
11763fi
1c710c3c 11764NM=$ac_cv_prog_NM
2693c0b0 11765if test -n "$NM"; then
5213506e
RW
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11767$as_echo "$NM" >&6; }
ca9f4b81 11768else
5213506e
RW
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11770$as_echo "no" >&6; }
ca9f4b81 11771fi
1c710c3c 11772
5213506e 11773
2693c0b0 11774 fi
278a7a38
AO
11775 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11776 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11777set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11779$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11780if ${ac_cv_prog_NM+:} false; then :
5213506e 11781 $as_echo_n "(cached) " >&6
278a7a38
AO
11782else
11783 if test -n "$NM"; then
11784 ac_cv_prog_NM="$NM" # Let the user override the test.
11785else
11786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11787for as_dir in $PATH
11788do
11789 IFS=$as_save_IFS
11790 test -z "$as_dir" && as_dir=.
5213506e 11791 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11793 ac_cv_prog_NM="${ncn_progname}"
5213506e 11794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11795 break 2
11796 fi
11797done
5213506e
RW
11798 done
11799IFS=$as_save_IFS
278a7a38
AO
11800
11801fi
11802fi
11803NM=$ac_cv_prog_NM
11804if test -n "$NM"; then
5213506e
RW
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11806$as_echo "$NM" >&6; }
278a7a38 11807else
5213506e
RW
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11809$as_echo "no" >&6; }
278a7a38
AO
11810fi
11811
5213506e 11812
278a7a38
AO
11813 fi
11814 test -n "$ac_cv_prog_NM" && break
11815done
11816
11817if test -z "$ac_cv_prog_NM" ; then
11818 set dummy nm
11819 if test $build = $host ; then
11820 NM="$2"
11821 else
11822 NM="${ncn_tool_prefix}$2"
11823 fi
11824fi
11825
11826
11827
11828if test -n "$RANLIB"; then
11829 ac_cv_prog_RANLIB=$RANLIB
11830elif test -n "$ac_cv_prog_RANLIB"; then
11831 RANLIB=$ac_cv_prog_RANLIB
11832fi
11833
11834if test -n "$ac_cv_prog_RANLIB"; then
11835 for ncn_progname in ranlib; do
11836 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11837set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11839$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11840if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 11841 $as_echo_n "(cached) " >&6
278a7a38
AO
11842else
11843 if test -n "$RANLIB"; then
11844 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11845else
11846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11847for as_dir in $PATH
11848do
11849 IFS=$as_save_IFS
11850 test -z "$as_dir" && as_dir=.
5213506e 11851 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11853 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 11854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11855 break 2
11856 fi
11857done
5213506e
RW
11858 done
11859IFS=$as_save_IFS
278a7a38
AO
11860
11861fi
11862fi
11863RANLIB=$ac_cv_prog_RANLIB
11864if test -n "$RANLIB"; then
5213506e
RW
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11866$as_echo "$RANLIB" >&6; }
278a7a38 11867else
5213506e
RW
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11869$as_echo "no" >&6; }
278a7a38
AO
11870fi
11871
5213506e 11872
278a7a38
AO
11873 done
11874fi
ca9f4b81 11875
278a7a38 11876for ncn_progname in ranlib; do
2693c0b0
PB
11877 if test -n "$ncn_tool_prefix"; then
11878 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11879set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11881$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11882if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 11883 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11884else
11885 if test -n "$RANLIB"; then
11886 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11887else
1c710c3c
DJ
11888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11889for as_dir in $PATH
11890do
11891 IFS=$as_save_IFS
11892 test -z "$as_dir" && as_dir=.
5213506e 11893 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11895 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 11896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11897 break 2
11898 fi
11899done
5213506e
RW
11900 done
11901IFS=$as_save_IFS
1c710c3c 11902
ca9f4b81
AO
11903fi
11904fi
1c710c3c 11905RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 11906if test -n "$RANLIB"; then
5213506e
RW
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11908$as_echo "$RANLIB" >&6; }
ca9f4b81 11909else
5213506e
RW
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11911$as_echo "no" >&6; }
ca9f4b81
AO
11912fi
11913
5213506e 11914
2693c0b0
PB
11915 fi
11916 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11917 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11918set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11920$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11921if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 11922 $as_echo_n "(cached) " >&6
ca9f4b81 11923else
2693c0b0
PB
11924 if test -n "$RANLIB"; then
11925 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 11926else
1c710c3c
DJ
11927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11928for as_dir in $PATH
11929do
11930 IFS=$as_save_IFS
11931 test -z "$as_dir" && as_dir=.
5213506e 11932 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11934 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 11935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11936 break 2
11937 fi
11938done
5213506e
RW
11939 done
11940IFS=$as_save_IFS
1c710c3c 11941
ca9f4b81
AO
11942fi
11943fi
1c710c3c 11944RANLIB=$ac_cv_prog_RANLIB
2693c0b0 11945if test -n "$RANLIB"; then
5213506e
RW
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11947$as_echo "$RANLIB" >&6; }
ca9f4b81 11948else
5213506e
RW
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11950$as_echo "no" >&6; }
ca9f4b81 11951fi
1c710c3c 11952
5213506e 11953
ca9f4b81 11954 fi
2693c0b0
PB
11955 test -n "$ac_cv_prog_RANLIB" && break
11956done
11957
11958if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 11959 RANLIB="true"
ca9f4b81
AO
11960fi
11961
278a7a38
AO
11962
11963
11964if test -n "$STRIP"; then
11965 ac_cv_prog_STRIP=$STRIP
11966elif test -n "$ac_cv_prog_STRIP"; then
11967 STRIP=$ac_cv_prog_STRIP
11968fi
11969
11970if test -n "$ac_cv_prog_STRIP"; then
11971 for ncn_progname in strip; do
11972 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11973set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11975$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11976if ${ac_cv_prog_STRIP+:} false; then :
5213506e 11977 $as_echo_n "(cached) " >&6
278a7a38
AO
11978else
11979 if test -n "$STRIP"; then
11980 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11981else
11982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11983for as_dir in $PATH
11984do
11985 IFS=$as_save_IFS
11986 test -z "$as_dir" && as_dir=.
5213506e 11987 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11989 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 11990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11991 break 2
11992 fi
11993done
5213506e
RW
11994 done
11995IFS=$as_save_IFS
278a7a38
AO
11996
11997fi
11998fi
11999STRIP=$ac_cv_prog_STRIP
12000if test -n "$STRIP"; then
5213506e
RW
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12002$as_echo "$STRIP" >&6; }
278a7a38 12003else
5213506e
RW
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12005$as_echo "no" >&6; }
278a7a38
AO
12006fi
12007
5213506e 12008
278a7a38
AO
12009 done
12010fi
12011
12012for ncn_progname in strip; do
2abefe3d
PB
12013 if test -n "$ncn_tool_prefix"; then
12014 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12015set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12017$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12018if ${ac_cv_prog_STRIP+:} false; then :
5213506e 12019 $as_echo_n "(cached) " >&6
2abefe3d
PB
12020else
12021 if test -n "$STRIP"; then
12022 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12023else
1c710c3c
DJ
12024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12025for as_dir in $PATH
12026do
12027 IFS=$as_save_IFS
12028 test -z "$as_dir" && as_dir=.
5213506e 12029 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12031 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 12032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12033 break 2
12034 fi
12035done
5213506e
RW
12036 done
12037IFS=$as_save_IFS
1c710c3c 12038
2abefe3d
PB
12039fi
12040fi
1c710c3c 12041STRIP=$ac_cv_prog_STRIP
2abefe3d 12042if test -n "$STRIP"; then
5213506e
RW
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12044$as_echo "$STRIP" >&6; }
2abefe3d 12045else
5213506e
RW
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12047$as_echo "no" >&6; }
2abefe3d
PB
12048fi
12049
5213506e 12050
2abefe3d
PB
12051 fi
12052 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
12053 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12054set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12056$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12057if ${ac_cv_prog_STRIP+:} false; then :
5213506e 12058 $as_echo_n "(cached) " >&6
2abefe3d
PB
12059else
12060 if test -n "$STRIP"; then
12061 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12062else
1c710c3c
DJ
12063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12064for as_dir in $PATH
12065do
12066 IFS=$as_save_IFS
12067 test -z "$as_dir" && as_dir=.
5213506e 12068 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12070 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 12071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12072 break 2
12073 fi
12074done
5213506e
RW
12075 done
12076IFS=$as_save_IFS
1c710c3c 12077
2abefe3d
PB
12078fi
12079fi
1c710c3c 12080STRIP=$ac_cv_prog_STRIP
2abefe3d 12081if test -n "$STRIP"; then
5213506e
RW
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12083$as_echo "$STRIP" >&6; }
2abefe3d 12084else
5213506e
RW
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12086$as_echo "no" >&6; }
2abefe3d 12087fi
1c710c3c 12088
5213506e 12089
2abefe3d
PB
12090 fi
12091 test -n "$ac_cv_prog_STRIP" && break
12092done
12093
12094if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 12095 STRIP="true"
2abefe3d
PB
12096fi
12097
278a7a38
AO
12098
12099
12100if test -n "$WINDRES"; then
12101 ac_cv_prog_WINDRES=$WINDRES
12102elif test -n "$ac_cv_prog_WINDRES"; then
12103 WINDRES=$ac_cv_prog_WINDRES
12104fi
12105
12106if test -n "$ac_cv_prog_WINDRES"; then
12107 for ncn_progname in windres; do
12108 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12109set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12111$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12112if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 12113 $as_echo_n "(cached) " >&6
278a7a38
AO
12114else
12115 if test -n "$WINDRES"; then
12116 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12117else
12118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12119for as_dir in $PATH
12120do
12121 IFS=$as_save_IFS
12122 test -z "$as_dir" && as_dir=.
5213506e 12123 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12125 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 12126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12127 break 2
12128 fi
12129done
5213506e
RW
12130 done
12131IFS=$as_save_IFS
278a7a38
AO
12132
12133fi
12134fi
12135WINDRES=$ac_cv_prog_WINDRES
12136if test -n "$WINDRES"; then
5213506e
RW
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12138$as_echo "$WINDRES" >&6; }
278a7a38 12139else
5213506e
RW
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12141$as_echo "no" >&6; }
278a7a38
AO
12142fi
12143
5213506e 12144
278a7a38
AO
12145 done
12146fi
12147
12148for ncn_progname in windres; do
2693c0b0
PB
12149 if test -n "$ncn_tool_prefix"; then
12150 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12151set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12153$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12154if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 12155 $as_echo_n "(cached) " >&6
ca9f4b81
AO
12156else
12157 if test -n "$WINDRES"; then
12158 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12159else
1c710c3c
DJ
12160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12161for as_dir in $PATH
12162do
12163 IFS=$as_save_IFS
12164 test -z "$as_dir" && as_dir=.
5213506e 12165 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12167 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 12168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12169 break 2
12170 fi
12171done
5213506e
RW
12172 done
12173IFS=$as_save_IFS
1c710c3c 12174
ca9f4b81
AO
12175fi
12176fi
1c710c3c 12177WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 12178if test -n "$WINDRES"; then
5213506e
RW
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12180$as_echo "$WINDRES" >&6; }
ca9f4b81 12181else
5213506e
RW
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12183$as_echo "no" >&6; }
ca9f4b81
AO
12184fi
12185
5213506e 12186
2693c0b0
PB
12187 fi
12188 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12189 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12190set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12192$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12193if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 12194 $as_echo_n "(cached) " >&6
ca9f4b81 12195else
2693c0b0
PB
12196 if test -n "$WINDRES"; then
12197 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 12198else
1c710c3c
DJ
12199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12200for as_dir in $PATH
12201do
12202 IFS=$as_save_IFS
12203 test -z "$as_dir" && as_dir=.
5213506e 12204 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12206 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 12207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12208 break 2
12209 fi
12210done
5213506e
RW
12211 done
12212IFS=$as_save_IFS
1c710c3c 12213
ca9f4b81
AO
12214fi
12215fi
1c710c3c 12216WINDRES=$ac_cv_prog_WINDRES
2693c0b0 12217if test -n "$WINDRES"; then
5213506e
RW
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12219$as_echo "$WINDRES" >&6; }
ca9f4b81 12220else
5213506e
RW
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12222$as_echo "no" >&6; }
ca9f4b81 12223fi
1c710c3c 12224
5213506e 12225
2693c0b0
PB
12226 fi
12227 test -n "$ac_cv_prog_WINDRES" && break
12228done
12229
12230if test -z "$ac_cv_prog_WINDRES" ; then
12231 set dummy windres
12232 if test $build = $host ; then
12233 WINDRES="$2"
ca9f4b81 12234 else
2693c0b0 12235 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 12236 fi
ca9f4b81
AO
12237fi
12238
278a7a38
AO
12239
12240
901119ae
KT
12241if test -n "$WINDMC"; then
12242 ac_cv_prog_WINDMC=$WINDMC
12243elif test -n "$ac_cv_prog_WINDMC"; then
12244 WINDMC=$ac_cv_prog_WINDMC
12245fi
12246
12247if test -n "$ac_cv_prog_WINDMC"; then
12248 for ncn_progname in windmc; do
12249 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12250set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12252$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12253if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 12254 $as_echo_n "(cached) " >&6
901119ae
KT
12255else
12256 if test -n "$WINDMC"; then
12257 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12258else
12259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12260for as_dir in $PATH
12261do
12262 IFS=$as_save_IFS
12263 test -z "$as_dir" && as_dir=.
5213506e 12264 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 12266 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 12267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12268 break 2
12269 fi
12270done
5213506e
RW
12271 done
12272IFS=$as_save_IFS
901119ae
KT
12273
12274fi
12275fi
12276WINDMC=$ac_cv_prog_WINDMC
12277if test -n "$WINDMC"; then
5213506e
RW
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12279$as_echo "$WINDMC" >&6; }
901119ae 12280else
5213506e
RW
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12282$as_echo "no" >&6; }
901119ae
KT
12283fi
12284
5213506e 12285
901119ae
KT
12286 done
12287fi
12288
12289for ncn_progname in windmc; do
12290 if test -n "$ncn_tool_prefix"; then
12291 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12292set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12294$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12295if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 12296 $as_echo_n "(cached) " >&6
901119ae
KT
12297else
12298 if test -n "$WINDMC"; then
12299 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12300else
12301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12302for as_dir in $PATH
12303do
12304 IFS=$as_save_IFS
12305 test -z "$as_dir" && as_dir=.
5213506e 12306 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 12308 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 12309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12310 break 2
12311 fi
12312done
5213506e
RW
12313 done
12314IFS=$as_save_IFS
901119ae
KT
12315
12316fi
12317fi
12318WINDMC=$ac_cv_prog_WINDMC
12319if test -n "$WINDMC"; then
5213506e
RW
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12321$as_echo "$WINDMC" >&6; }
901119ae 12322else
5213506e
RW
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12324$as_echo "no" >&6; }
901119ae
KT
12325fi
12326
5213506e 12327
901119ae
KT
12328 fi
12329 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12330 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12331set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12333$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12334if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 12335 $as_echo_n "(cached) " >&6
901119ae
KT
12336else
12337 if test -n "$WINDMC"; then
12338 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12339else
12340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12341for as_dir in $PATH
12342do
12343 IFS=$as_save_IFS
12344 test -z "$as_dir" && as_dir=.
5213506e 12345 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 12347 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 12348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12349 break 2
12350 fi
12351done
5213506e
RW
12352 done
12353IFS=$as_save_IFS
901119ae
KT
12354
12355fi
12356fi
12357WINDMC=$ac_cv_prog_WINDMC
12358if test -n "$WINDMC"; then
5213506e
RW
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12360$as_echo "$WINDMC" >&6; }
901119ae 12361else
5213506e
RW
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12363$as_echo "no" >&6; }
901119ae
KT
12364fi
12365
5213506e 12366
901119ae
KT
12367 fi
12368 test -n "$ac_cv_prog_WINDMC" && break
12369done
12370
12371if test -z "$ac_cv_prog_WINDMC" ; then
12372 set dummy windmc
12373 if test $build = $host ; then
12374 WINDMC="$2"
12375 else
12376 WINDMC="${ncn_tool_prefix}$2"
12377 fi
12378fi
12379
12380
12381
278a7a38
AO
12382if test -n "$OBJCOPY"; then
12383 ac_cv_prog_OBJCOPY=$OBJCOPY
12384elif test -n "$ac_cv_prog_OBJCOPY"; then
12385 OBJCOPY=$ac_cv_prog_OBJCOPY
12386fi
12387
12388if test -n "$ac_cv_prog_OBJCOPY"; then
12389 for ncn_progname in objcopy; do
12390 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12391set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12393$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12394if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 12395 $as_echo_n "(cached) " >&6
278a7a38
AO
12396else
12397 if test -n "$OBJCOPY"; then
12398 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12399else
12400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12401for as_dir in $PATH
12402do
12403 IFS=$as_save_IFS
12404 test -z "$as_dir" && as_dir=.
5213506e 12405 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12407 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 12408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12409 break 2
12410 fi
12411done
5213506e
RW
12412 done
12413IFS=$as_save_IFS
278a7a38
AO
12414
12415fi
12416fi
12417OBJCOPY=$ac_cv_prog_OBJCOPY
12418if test -n "$OBJCOPY"; then
5213506e
RW
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12420$as_echo "$OBJCOPY" >&6; }
278a7a38 12421else
5213506e
RW
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12423$as_echo "no" >&6; }
278a7a38
AO
12424fi
12425
5213506e 12426
278a7a38
AO
12427 done
12428fi
12429
12430for ncn_progname in objcopy; do
2693c0b0
PB
12431 if test -n "$ncn_tool_prefix"; then
12432 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12433set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12435$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12436if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 12437 $as_echo_n "(cached) " >&6
ca9f4b81
AO
12438else
12439 if test -n "$OBJCOPY"; then
12440 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12441else
1c710c3c
DJ
12442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12443for as_dir in $PATH
12444do
12445 IFS=$as_save_IFS
12446 test -z "$as_dir" && as_dir=.
5213506e 12447 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12449 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 12450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12451 break 2
12452 fi
12453done
5213506e
RW
12454 done
12455IFS=$as_save_IFS
1c710c3c 12456
ca9f4b81
AO
12457fi
12458fi
1c710c3c 12459OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 12460if test -n "$OBJCOPY"; then
5213506e
RW
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12462$as_echo "$OBJCOPY" >&6; }
ca9f4b81 12463else
5213506e
RW
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12465$as_echo "no" >&6; }
ca9f4b81
AO
12466fi
12467
5213506e 12468
2693c0b0
PB
12469 fi
12470 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12471 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12472set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12474$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12475if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 12476 $as_echo_n "(cached) " >&6
ca9f4b81 12477else
2693c0b0
PB
12478 if test -n "$OBJCOPY"; then
12479 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 12480else
1c710c3c
DJ
12481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12482for as_dir in $PATH
12483do
12484 IFS=$as_save_IFS
12485 test -z "$as_dir" && as_dir=.
5213506e 12486 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12488 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 12489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12490 break 2
12491 fi
12492done
5213506e
RW
12493 done
12494IFS=$as_save_IFS
1c710c3c 12495
ca9f4b81
AO
12496fi
12497fi
1c710c3c 12498OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 12499if test -n "$OBJCOPY"; then
5213506e
RW
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12501$as_echo "$OBJCOPY" >&6; }
ca9f4b81 12502else
5213506e
RW
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12504$as_echo "no" >&6; }
ca9f4b81 12505fi
1c710c3c 12506
5213506e 12507
2693c0b0
PB
12508 fi
12509 test -n "$ac_cv_prog_OBJCOPY" && break
12510done
12511
12512if test -z "$ac_cv_prog_OBJCOPY" ; then
12513 set dummy objcopy
12514 if test $build = $host ; then
12515 OBJCOPY="$2"
ca9f4b81 12516 else
2693c0b0 12517 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 12518 fi
ca9f4b81
AO
12519fi
12520
278a7a38
AO
12521
12522
12523if test -n "$OBJDUMP"; then
12524 ac_cv_prog_OBJDUMP=$OBJDUMP
12525elif test -n "$ac_cv_prog_OBJDUMP"; then
12526 OBJDUMP=$ac_cv_prog_OBJDUMP
12527fi
12528
12529if test -n "$ac_cv_prog_OBJDUMP"; then
12530 for ncn_progname in objdump; do
12531 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12532set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12534$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12535if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 12536 $as_echo_n "(cached) " >&6
278a7a38
AO
12537else
12538 if test -n "$OBJDUMP"; then
12539 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12540else
12541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12542for as_dir in $PATH
12543do
12544 IFS=$as_save_IFS
12545 test -z "$as_dir" && as_dir=.
5213506e 12546 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12548 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 12549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12550 break 2
12551 fi
12552done
5213506e
RW
12553 done
12554IFS=$as_save_IFS
278a7a38
AO
12555
12556fi
12557fi
12558OBJDUMP=$ac_cv_prog_OBJDUMP
12559if test -n "$OBJDUMP"; then
5213506e
RW
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12561$as_echo "$OBJDUMP" >&6; }
278a7a38 12562else
5213506e
RW
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12564$as_echo "no" >&6; }
278a7a38
AO
12565fi
12566
5213506e 12567
278a7a38
AO
12568 done
12569fi
12570
12571for ncn_progname in objdump; do
2693c0b0
PB
12572 if test -n "$ncn_tool_prefix"; then
12573 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12574set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12576$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12577if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 12578 $as_echo_n "(cached) " >&6
ca9f4b81
AO
12579else
12580 if test -n "$OBJDUMP"; then
12581 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12582else
1c710c3c
DJ
12583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12584for as_dir in $PATH
12585do
12586 IFS=$as_save_IFS
12587 test -z "$as_dir" && as_dir=.
5213506e 12588 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12590 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 12591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12592 break 2
12593 fi
12594done
5213506e
RW
12595 done
12596IFS=$as_save_IFS
1c710c3c 12597
ca9f4b81
AO
12598fi
12599fi
1c710c3c 12600OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 12601if test -n "$OBJDUMP"; then
5213506e
RW
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12603$as_echo "$OBJDUMP" >&6; }
ca9f4b81 12604else
5213506e
RW
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12606$as_echo "no" >&6; }
ca9f4b81
AO
12607fi
12608
5213506e 12609
2693c0b0
PB
12610 fi
12611 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12612 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12613set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12615$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12616if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 12617 $as_echo_n "(cached) " >&6
ca9f4b81 12618else
2693c0b0
PB
12619 if test -n "$OBJDUMP"; then
12620 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 12621else
1c710c3c
DJ
12622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12623for as_dir in $PATH
12624do
12625 IFS=$as_save_IFS
12626 test -z "$as_dir" && as_dir=.
5213506e 12627 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12629 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 12630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12631 break 2
12632 fi
12633done
5213506e
RW
12634 done
12635IFS=$as_save_IFS
1c710c3c 12636
ca9f4b81
AO
12637fi
12638fi
1c710c3c 12639OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 12640if test -n "$OBJDUMP"; then
5213506e
RW
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12642$as_echo "$OBJDUMP" >&6; }
ca9f4b81 12643else
5213506e
RW
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12645$as_echo "no" >&6; }
ca9f4b81 12646fi
1c710c3c 12647
5213506e 12648
2693c0b0
PB
12649 fi
12650 test -n "$ac_cv_prog_OBJDUMP" && break
12651done
12652
12653if test -z "$ac_cv_prog_OBJDUMP" ; then
12654 set dummy objdump
12655 if test $build = $host ; then
12656 OBJDUMP="$2"
ca9f4b81 12657 else
2693c0b0 12658 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 12659 fi
ca9f4b81
AO
12660fi
12661
671aa708
NN
12662
12663
e4a9a572
IS
12664if test -n "$OTOOL"; then
12665 ac_cv_prog_OTOOL=$OTOOL
12666elif test -n "$ac_cv_prog_OTOOL"; then
12667 OTOOL=$ac_cv_prog_OTOOL
12668fi
12669
12670if test -n "$ac_cv_prog_OTOOL"; then
12671 for ncn_progname in otool; do
12672 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12673set dummy ${ncn_progname}; ac_word=$2
12674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12675$as_echo_n "checking for $ac_word... " >&6; }
12676if ${ac_cv_prog_OTOOL+:} false; then :
12677 $as_echo_n "(cached) " >&6
12678else
12679 if test -n "$OTOOL"; then
12680 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12681else
12682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12683for as_dir in $PATH
12684do
12685 IFS=$as_save_IFS
12686 test -z "$as_dir" && as_dir=.
12687 for ac_exec_ext in '' $ac_executable_extensions; do
12688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12689 ac_cv_prog_OTOOL="${ncn_progname}"
12690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12691 break 2
12692 fi
12693done
12694 done
12695IFS=$as_save_IFS
12696
12697fi
12698fi
12699OTOOL=$ac_cv_prog_OTOOL
12700if test -n "$OTOOL"; then
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12702$as_echo "$OTOOL" >&6; }
12703else
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12705$as_echo "no" >&6; }
12706fi
12707
12708
12709 done
12710fi
12711
12712for ncn_progname in otool; do
12713 if test -n "$ncn_tool_prefix"; then
12714 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12715set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12717$as_echo_n "checking for $ac_word... " >&6; }
12718if ${ac_cv_prog_OTOOL+:} false; then :
12719 $as_echo_n "(cached) " >&6
12720else
12721 if test -n "$OTOOL"; then
12722 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12723else
12724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12725for as_dir in $PATH
12726do
12727 IFS=$as_save_IFS
12728 test -z "$as_dir" && as_dir=.
12729 for ac_exec_ext in '' $ac_executable_extensions; do
12730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12731 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12733 break 2
12734 fi
12735done
12736 done
12737IFS=$as_save_IFS
12738
12739fi
12740fi
12741OTOOL=$ac_cv_prog_OTOOL
12742if test -n "$OTOOL"; then
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12744$as_echo "$OTOOL" >&6; }
12745else
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12747$as_echo "no" >&6; }
12748fi
12749
12750
12751 fi
12752 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12753 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12754set dummy ${ncn_progname}; ac_word=$2
12755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12756$as_echo_n "checking for $ac_word... " >&6; }
12757if ${ac_cv_prog_OTOOL+:} false; then :
12758 $as_echo_n "(cached) " >&6
12759else
12760 if test -n "$OTOOL"; then
12761 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12762else
12763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12764for as_dir in $PATH
12765do
12766 IFS=$as_save_IFS
12767 test -z "$as_dir" && as_dir=.
12768 for ac_exec_ext in '' $ac_executable_extensions; do
12769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12770 ac_cv_prog_OTOOL="${ncn_progname}"
12771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12772 break 2
12773 fi
12774done
12775 done
12776IFS=$as_save_IFS
12777
12778fi
12779fi
12780OTOOL=$ac_cv_prog_OTOOL
12781if test -n "$OTOOL"; then
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12783$as_echo "$OTOOL" >&6; }
12784else
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12786$as_echo "no" >&6; }
12787fi
12788
12789
12790 fi
12791 test -n "$ac_cv_prog_OTOOL" && break
12792done
12793
12794if test -z "$ac_cv_prog_OTOOL" ; then
12795 set dummy otool
12796 if test $build = $host ; then
12797 OTOOL="$2"
12798 else
12799 OTOOL="${ncn_tool_prefix}$2"
12800 fi
12801fi
12802
12803
12804
e7a82751
RM
12805if test -n "$READELF"; then
12806 ac_cv_prog_READELF=$READELF
12807elif test -n "$ac_cv_prog_READELF"; then
12808 READELF=$ac_cv_prog_READELF
12809fi
12810
12811if test -n "$ac_cv_prog_READELF"; then
12812 for ncn_progname in readelf; do
12813 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12814set dummy ${ncn_progname}; ac_word=$2
12815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12816$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12817if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
12818 $as_echo_n "(cached) " >&6
12819else
12820 if test -n "$READELF"; then
12821 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12822else
12823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12824for as_dir in $PATH
12825do
12826 IFS=$as_save_IFS
12827 test -z "$as_dir" && as_dir=.
12828 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
12830 ac_cv_prog_READELF="${ncn_progname}"
12831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12832 break 2
12833 fi
12834done
12835 done
12836IFS=$as_save_IFS
12837
12838fi
12839fi
12840READELF=$ac_cv_prog_READELF
12841if test -n "$READELF"; then
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12843$as_echo "$READELF" >&6; }
12844else
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12846$as_echo "no" >&6; }
12847fi
12848
12849
12850 done
12851fi
12852
12853for ncn_progname in readelf; do
12854 if test -n "$ncn_tool_prefix"; then
12855 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12856set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12858$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12859if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
12860 $as_echo_n "(cached) " >&6
12861else
12862 if test -n "$READELF"; then
12863 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12864else
12865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12866for as_dir in $PATH
12867do
12868 IFS=$as_save_IFS
12869 test -z "$as_dir" && as_dir=.
12870 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
12872 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12874 break 2
12875 fi
12876done
12877 done
12878IFS=$as_save_IFS
12879
12880fi
12881fi
12882READELF=$ac_cv_prog_READELF
12883if test -n "$READELF"; then
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12885$as_echo "$READELF" >&6; }
12886else
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12888$as_echo "no" >&6; }
12889fi
12890
12891
12892 fi
12893 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12894 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12895set dummy ${ncn_progname}; ac_word=$2
12896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12897$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12898if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
12899 $as_echo_n "(cached) " >&6
12900else
12901 if test -n "$READELF"; then
12902 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12903else
12904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12905for as_dir in $PATH
12906do
12907 IFS=$as_save_IFS
12908 test -z "$as_dir" && as_dir=.
12909 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
12911 ac_cv_prog_READELF="${ncn_progname}"
12912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12913 break 2
12914 fi
12915done
12916 done
12917IFS=$as_save_IFS
12918
12919fi
12920fi
12921READELF=$ac_cv_prog_READELF
12922if test -n "$READELF"; then
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12924$as_echo "$READELF" >&6; }
12925else
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12927$as_echo "no" >&6; }
12928fi
12929
12930
12931 fi
12932 test -n "$ac_cv_prog_READELF" && break
12933done
12934
12935if test -z "$ac_cv_prog_READELF" ; then
12936 set dummy readelf
12937 if test $build = $host ; then
12938 READELF="$2"
12939 else
12940 READELF="${ncn_tool_prefix}$2"
12941 fi
12942fi
12943
12944
12945
671aa708
NN
12946
12947
12948
5fee5ec3
IB
12949
12950
2abefe3d 12951# Target tools.
1c710c3c 12952
5213506e
RW
12953# Check whether --with-build-time-tools was given.
12954if test "${with_build_time_tools+set}" = set; then :
12955 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
12956 x/*) ;;
12957 *)
12958 with_build_time_tools=
5213506e
RW
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12960$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
12961 ;;
12962 esac
ca9f4b81 12963else
e8b05380 12964 with_build_time_tools=
5213506e
RW
12965fi
12966
ca9f4b81 12967
278a7a38
AO
12968
12969
12970if test -n "$CC_FOR_TARGET"; then
12971 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12972elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12973 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12974fi
12975
12976if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12977 for ncn_progname in cc gcc; do
12978 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12979set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12981$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12982if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 12983 $as_echo_n "(cached) " >&6
278a7a38
AO
12984else
12985 if test -n "$CC_FOR_TARGET"; then
12986 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12987else
12988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12989for as_dir in $PATH
12990do
12991 IFS=$as_save_IFS
12992 test -z "$as_dir" && as_dir=.
5213506e 12993 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12995 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 12996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12997 break 2
12998 fi
12999done
5213506e
RW
13000 done
13001IFS=$as_save_IFS
278a7a38
AO
13002
13003fi
13004fi
13005CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13006if test -n "$CC_FOR_TARGET"; then
5213506e
RW
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13008$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 13009else
5213506e
RW
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13011$as_echo "no" >&6; }
278a7a38
AO
13012fi
13013
5213506e 13014
278a7a38
AO
13015 done
13016fi
13017
13018if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13019 for ncn_progname in cc gcc; do
5213506e
RW
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13021$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13022 if test -x $with_build_time_tools/${ncn_progname}; then
13023 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13025$as_echo "yes" >&6; }
72a7ab82 13026 break
e8b05380 13027 else
5213506e
RW
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13029$as_echo "no" >&6; }
72a7ab82
AP
13030 fi
13031 done
4de997d1
PB
13032fi
13033
e8b05380
PB
13034if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
13035 for ncn_progname in cc gcc; do
13036 if test -n "$ncn_target_tool_prefix"; then
13037 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13038set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13040$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13041if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 13042 $as_echo_n "(cached) " >&6
4de997d1
PB
13043else
13044 if test -n "$CC_FOR_TARGET"; then
13045 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13046else
1c710c3c
DJ
13047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13048for as_dir in $PATH
13049do
13050 IFS=$as_save_IFS
13051 test -z "$as_dir" && as_dir=.
5213506e 13052 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13054 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13056 break 2
13057 fi
13058done
5213506e
RW
13059 done
13060IFS=$as_save_IFS
1c710c3c 13061
4de997d1
PB
13062fi
13063fi
1c710c3c 13064CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 13065if test -n "$CC_FOR_TARGET"; then
5213506e
RW
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13067$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 13068else
5213506e
RW
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13070$as_echo "no" >&6; }
4de997d1
PB
13071fi
13072
5213506e 13073
e8b05380
PB
13074 fi
13075 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13076 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13077set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13079$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13080if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 13081 $as_echo_n "(cached) " >&6
4de997d1 13082else
2693c0b0
PB
13083 if test -n "$CC_FOR_TARGET"; then
13084 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 13085else
1c710c3c
DJ
13086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13087for as_dir in $PATH
13088do
13089 IFS=$as_save_IFS
13090 test -z "$as_dir" && as_dir=.
5213506e 13091 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13093 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 13094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13095 break 2
13096 fi
13097done
5213506e
RW
13098 done
13099IFS=$as_save_IFS
1c710c3c 13100
4de997d1
PB
13101fi
13102fi
1c710c3c 13103CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 13104if test -n "$CC_FOR_TARGET"; then
5213506e
RW
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13106$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 13107else
5213506e
RW
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13109$as_echo "no" >&6; }
4de997d1 13110fi
1c710c3c 13111
5213506e 13112
e8b05380
PB
13113 fi
13114 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13115 done
13116fi
1c710c3c 13117
2693c0b0
PB
13118if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13119 set dummy cc gcc
13120 if test $build = $target ; then
13121 CC_FOR_TARGET="$2"
4de997d1 13122 else
2693c0b0 13123 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 13124 fi
1c00b503
PB
13125else
13126 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
13127fi
13128
278a7a38
AO
13129
13130
13131if test -n "$CXX_FOR_TARGET"; then
13132 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13133elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13134 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13135fi
13136
13137if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13138 for ncn_progname in c++ g++ cxx gxx; do
13139 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13140set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13142$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13143if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 13144 $as_echo_n "(cached) " >&6
278a7a38
AO
13145else
13146 if test -n "$CXX_FOR_TARGET"; then
13147 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13148else
13149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13150for as_dir in $PATH
13151do
13152 IFS=$as_save_IFS
13153 test -z "$as_dir" && as_dir=.
5213506e 13154 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13156 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 13157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13158 break 2
13159 fi
13160done
5213506e
RW
13161 done
13162IFS=$as_save_IFS
278a7a38
AO
13163
13164fi
13165fi
13166CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13167if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13169$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 13170else
5213506e
RW
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13172$as_echo "no" >&6; }
278a7a38
AO
13173fi
13174
5213506e 13175
278a7a38
AO
13176 done
13177fi
13178
13179if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13180 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13182$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13183 if test -x $with_build_time_tools/${ncn_progname}; then
13184 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13186$as_echo "yes" >&6; }
e8b05380
PB
13187 break
13188 else
5213506e
RW
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13190$as_echo "no" >&6; }
e8b05380
PB
13191 fi
13192 done
13193fi
13194
13195if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13196 for ncn_progname in c++ g++ cxx gxx; do
13197 if test -n "$ncn_target_tool_prefix"; then
13198 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13199set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13201$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13202if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 13203 $as_echo_n "(cached) " >&6
4de997d1
PB
13204else
13205 if test -n "$CXX_FOR_TARGET"; then
13206 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13207else
1c710c3c
DJ
13208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13209for as_dir in $PATH
13210do
13211 IFS=$as_save_IFS
13212 test -z "$as_dir" && as_dir=.
5213506e 13213 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13215 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13217 break 2
13218 fi
13219done
5213506e
RW
13220 done
13221IFS=$as_save_IFS
1c710c3c 13222
4de997d1
PB
13223fi
13224fi
1c710c3c 13225CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 13226if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13228$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 13229else
5213506e
RW
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13231$as_echo "no" >&6; }
4de997d1
PB
13232fi
13233
5213506e 13234
e8b05380
PB
13235 fi
13236 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13237 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13238set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13240$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13241if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 13242 $as_echo_n "(cached) " >&6
4de997d1 13243else
2693c0b0
PB
13244 if test -n "$CXX_FOR_TARGET"; then
13245 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 13246else
1c710c3c
DJ
13247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13248for as_dir in $PATH
13249do
13250 IFS=$as_save_IFS
13251 test -z "$as_dir" && as_dir=.
5213506e 13252 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13254 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 13255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13256 break 2
13257 fi
13258done
5213506e
RW
13259 done
13260IFS=$as_save_IFS
1c710c3c 13261
4de997d1
PB
13262fi
13263fi
1c710c3c 13264CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 13265if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13267$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 13268else
5213506e
RW
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13270$as_echo "no" >&6; }
4de997d1 13271fi
1c710c3c 13272
5213506e 13273
e8b05380
PB
13274 fi
13275 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13276 done
13277fi
1c710c3c 13278
2693c0b0
PB
13279if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13280 set dummy c++ g++ cxx gxx
13281 if test $build = $target ; then
13282 CXX_FOR_TARGET="$2"
4de997d1 13283 else
2693c0b0 13284 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 13285 fi
1c00b503
PB
13286else
13287 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
13288fi
13289
278a7a38
AO
13290
13291
13292if test -n "$GCC_FOR_TARGET"; then
13293 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13294elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13295 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13296fi
13297
13298if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13299 for ncn_progname in gcc; do
13300 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13301set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13303$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13304if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 13305 $as_echo_n "(cached) " >&6
278a7a38
AO
13306else
13307 if test -n "$GCC_FOR_TARGET"; then
13308 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13309else
13310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13311for as_dir in $PATH
13312do
13313 IFS=$as_save_IFS
13314 test -z "$as_dir" && as_dir=.
5213506e 13315 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13317 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 13318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13319 break 2
13320 fi
13321done
5213506e
RW
13322 done
13323IFS=$as_save_IFS
278a7a38
AO
13324
13325fi
13326fi
13327GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13328if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13330$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 13331else
5213506e
RW
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13333$as_echo "no" >&6; }
278a7a38
AO
13334fi
13335
5213506e 13336
278a7a38
AO
13337 done
13338fi
13339
13340if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13341 for ncn_progname in gcc; do
5213506e
RW
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13343$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13344 if test -x $with_build_time_tools/${ncn_progname}; then
13345 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13347$as_echo "yes" >&6; }
e8b05380
PB
13348 break
13349 else
5213506e
RW
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13351$as_echo "no" >&6; }
e8b05380
PB
13352 fi
13353 done
13354fi
13355
13356if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13357 for ncn_progname in gcc; do
13358 if test -n "$ncn_target_tool_prefix"; then
13359 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13360set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13362$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13363if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 13364 $as_echo_n "(cached) " >&6
ca9f4b81 13365else
e8b05380
PB
13366 if test -n "$GCC_FOR_TARGET"; then
13367 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 13368else
1c710c3c
DJ
13369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13370for as_dir in $PATH
13371do
13372 IFS=$as_save_IFS
13373 test -z "$as_dir" && as_dir=.
5213506e 13374 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13376 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13378 break 2
13379 fi
13380done
5213506e
RW
13381 done
13382IFS=$as_save_IFS
1c710c3c 13383
ca9f4b81
AO
13384fi
13385fi
1c710c3c 13386GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 13387if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13389$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 13390else
5213506e
RW
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13392$as_echo "no" >&6; }
ca9f4b81
AO
13393fi
13394
5213506e 13395
e8b05380
PB
13396 fi
13397 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13398 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13399set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13401$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13402if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 13403 $as_echo_n "(cached) " >&6
ca9f4b81 13404else
e8b05380
PB
13405 if test -n "$GCC_FOR_TARGET"; then
13406 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 13407else
1c710c3c
DJ
13408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13409for as_dir in $PATH
13410do
13411 IFS=$as_save_IFS
13412 test -z "$as_dir" && as_dir=.
5213506e 13413 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13415 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 13416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13417 break 2
13418 fi
13419done
5213506e
RW
13420 done
13421IFS=$as_save_IFS
1c710c3c 13422
ca9f4b81
AO
13423fi
13424fi
1c710c3c 13425GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 13426if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13428$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 13429else
5213506e
RW
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13431$as_echo "no" >&6; }
ca9f4b81 13432fi
1c710c3c 13433
5213506e 13434
e8b05380
PB
13435 fi
13436 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13437 done
13438fi
1c710c3c 13439
e8b05380
PB
13440if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13441 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
13442else
13443 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
13444fi
13445
278a7a38
AO
13446
13447
278a7a38
AO
13448if test -n "$GFORTRAN_FOR_TARGET"; then
13449 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13450elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13451 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
13452fi
13453
278a7a38
AO
13454if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13455 for ncn_progname in gfortran; do
13456 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 13457set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13459$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13460if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 13461 $as_echo_n "(cached) " >&6
e8b05380 13462else
278a7a38
AO
13463 if test -n "$GFORTRAN_FOR_TARGET"; then
13464 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 13465else
1c710c3c
DJ
13466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13467for as_dir in $PATH
13468do
13469 IFS=$as_save_IFS
13470 test -z "$as_dir" && as_dir=.
5213506e 13471 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13473 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 13474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13475 break 2
13476 fi
13477done
5213506e
RW
13478 done
13479IFS=$as_save_IFS
1c710c3c 13480
e8b05380
PB
13481fi
13482fi
278a7a38
AO
13483GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13484if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13486$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 13487else
5213506e
RW
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13489$as_echo "no" >&6; }
e8b05380 13490fi
1c710c3c 13491
5213506e 13492
e8b05380
PB
13493 done
13494fi
1c710c3c 13495
278a7a38 13496if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13497 for ncn_progname in gfortran; do
5213506e
RW
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13499$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13500 if test -x $with_build_time_tools/${ncn_progname}; then
13501 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13503$as_echo "yes" >&6; }
e8b05380
PB
13504 break
13505 else
5213506e
RW
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13507$as_echo "no" >&6; }
e8b05380
PB
13508 fi
13509 done
13510fi
13511
13512if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13513 for ncn_progname in gfortran; do
13514 if test -n "$ncn_target_tool_prefix"; then
13515 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13516set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13518$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13519if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 13520 $as_echo_n "(cached) " >&6
e8b05380
PB
13521else
13522 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
13523 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13524else
13525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13526for as_dir in $PATH
13527do
13528 IFS=$as_save_IFS
13529 test -z "$as_dir" && as_dir=.
5213506e 13530 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13532 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13534 break 2
13535 fi
13536done
5213506e
RW
13537 done
13538IFS=$as_save_IFS
1c710c3c 13539
e8b05380
PB
13540fi
13541fi
1c710c3c 13542GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 13543if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13545$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 13546else
5213506e
RW
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13548$as_echo "no" >&6; }
e8b05380
PB
13549fi
13550
5213506e 13551
e8b05380
PB
13552 fi
13553 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13554 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13555set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13557$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13558if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 13559 $as_echo_n "(cached) " >&6
e8b05380
PB
13560else
13561 if test -n "$GFORTRAN_FOR_TARGET"; then
13562 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13563else
1c710c3c
DJ
13564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13565for as_dir in $PATH
13566do
13567 IFS=$as_save_IFS
13568 test -z "$as_dir" && as_dir=.
5213506e 13569 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13571 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 13572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13573 break 2
13574 fi
13575done
5213506e
RW
13576 done
13577IFS=$as_save_IFS
1c710c3c 13578
e8b05380
PB
13579fi
13580fi
1c710c3c 13581GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 13582if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13584$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 13585else
5213506e
RW
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13587$as_echo "no" >&6; }
e8b05380 13588fi
1c710c3c 13589
5213506e 13590
e8b05380
PB
13591 fi
13592 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13593 done
13594fi
1c710c3c 13595
e8b05380
PB
13596if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13597 set dummy gfortran
2693c0b0 13598 if test $build = $target ; then
e8b05380 13599 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 13600 else
e8b05380
PB
13601 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13602 fi
1c00b503
PB
13603else
13604 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
13605fi
13606
13607
13608
632e2a07
ILT
13609if test -n "$GOC_FOR_TARGET"; then
13610 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13611elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13612 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13613fi
13614
13615if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13616 for ncn_progname in gccgo; do
13617 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13618set dummy ${ncn_progname}; ac_word=$2
13619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13620$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13621if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13622 $as_echo_n "(cached) " >&6
13623else
13624 if test -n "$GOC_FOR_TARGET"; then
13625 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13626else
13627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13628for as_dir in $PATH
13629do
13630 IFS=$as_save_IFS
13631 test -z "$as_dir" && as_dir=.
13632 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13634 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13636 break 2
13637 fi
13638done
13639 done
13640IFS=$as_save_IFS
13641
13642fi
13643fi
13644GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13645if test -n "$GOC_FOR_TARGET"; then
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13647$as_echo "$GOC_FOR_TARGET" >&6; }
13648else
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13650$as_echo "no" >&6; }
13651fi
13652
13653
13654 done
13655fi
13656
13657if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13658 for ncn_progname in gccgo; do
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13660$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13661 if test -x $with_build_time_tools/${ncn_progname}; then
13662 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13664$as_echo "yes" >&6; }
13665 break
13666 else
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13668$as_echo "no" >&6; }
13669 fi
13670 done
13671fi
13672
13673if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13674 for ncn_progname in gccgo; do
13675 if test -n "$ncn_target_tool_prefix"; then
13676 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13677set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13679$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13680if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13681 $as_echo_n "(cached) " >&6
13682else
13683 if test -n "$GOC_FOR_TARGET"; then
13684 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13685else
13686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13687for as_dir in $PATH
13688do
13689 IFS=$as_save_IFS
13690 test -z "$as_dir" && as_dir=.
13691 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13693 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13695 break 2
13696 fi
13697done
13698 done
13699IFS=$as_save_IFS
13700
13701fi
13702fi
13703GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13704if test -n "$GOC_FOR_TARGET"; then
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13706$as_echo "$GOC_FOR_TARGET" >&6; }
13707else
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13709$as_echo "no" >&6; }
13710fi
13711
13712
13713 fi
13714 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13715 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13716set dummy ${ncn_progname}; ac_word=$2
13717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13718$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13719if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13720 $as_echo_n "(cached) " >&6
13721else
13722 if test -n "$GOC_FOR_TARGET"; then
13723 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13724else
13725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13726for as_dir in $PATH
13727do
13728 IFS=$as_save_IFS
13729 test -z "$as_dir" && as_dir=.
13730 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13732 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13734 break 2
13735 fi
13736done
13737 done
13738IFS=$as_save_IFS
13739
13740fi
13741fi
13742GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13743if test -n "$GOC_FOR_TARGET"; then
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13745$as_echo "$GOC_FOR_TARGET" >&6; }
13746else
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13748$as_echo "no" >&6; }
13749fi
13750
13751
13752 fi
13753 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13754 done
13755fi
13756
13757if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13758 set dummy gccgo
13759 if test $build = $target ; then
13760 GOC_FOR_TARGET="$2"
13761 else
13762 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13763 fi
13764else
13765 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13766fi
13767
13768
13769
b4c522fa
IB
13770if test -n "$GDC_FOR_TARGET"; then
13771 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13772elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13773 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13774fi
13775
13776if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13777 for ncn_progname in gdc; do
13778 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13779set dummy ${ncn_progname}; ac_word=$2
13780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13781$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13782if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
13783 $as_echo_n "(cached) " >&6
13784else
13785 if test -n "$GDC_FOR_TARGET"; then
13786 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13787else
13788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13789for as_dir in $PATH
13790do
13791 IFS=$as_save_IFS
13792 test -z "$as_dir" && as_dir=.
13793 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
13795 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13797 break 2
13798 fi
13799done
13800 done
13801IFS=$as_save_IFS
13802
13803fi
13804fi
13805GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13806if test -n "$GDC_FOR_TARGET"; then
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13808$as_echo "$GDC_FOR_TARGET" >&6; }
13809else
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13811$as_echo "no" >&6; }
13812fi
13813
13814
13815 done
13816fi
13817
13818if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13819 for ncn_progname in gdc; do
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13821$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13822 if test -x $with_build_time_tools/${ncn_progname}; then
13823 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13825$as_echo "yes" >&6; }
13826 break
13827 else
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13829$as_echo "no" >&6; }
13830 fi
13831 done
13832fi
13833
13834if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13835 for ncn_progname in gdc; do
13836 if test -n "$ncn_target_tool_prefix"; then
13837 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13838set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13840$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13841if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
13842 $as_echo_n "(cached) " >&6
13843else
13844 if test -n "$GDC_FOR_TARGET"; then
13845 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13846else
13847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13848for as_dir in $PATH
13849do
13850 IFS=$as_save_IFS
13851 test -z "$as_dir" && as_dir=.
13852 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
13854 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13856 break 2
13857 fi
13858done
13859 done
13860IFS=$as_save_IFS
13861
13862fi
13863fi
13864GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13865if test -n "$GDC_FOR_TARGET"; then
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13867$as_echo "$GDC_FOR_TARGET" >&6; }
13868else
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13870$as_echo "no" >&6; }
13871fi
13872
13873
13874 fi
13875 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13876 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13877set dummy ${ncn_progname}; ac_word=$2
13878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13879$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13880if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
13881 $as_echo_n "(cached) " >&6
13882else
13883 if test -n "$GDC_FOR_TARGET"; then
13884 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13885else
13886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13887for as_dir in $PATH
13888do
13889 IFS=$as_save_IFS
13890 test -z "$as_dir" && as_dir=.
13891 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
13893 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13895 break 2
13896 fi
13897done
13898 done
13899IFS=$as_save_IFS
13900
13901fi
13902fi
13903GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13904if test -n "$GDC_FOR_TARGET"; then
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13906$as_echo "$GDC_FOR_TARGET" >&6; }
13907else
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13909$as_echo "no" >&6; }
13910fi
13911
13912
13913 fi
13914 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13915 done
13916fi
13917
13918if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13919 set dummy gdc
13920 if test $build = $target ; then
13921 GDC_FOR_TARGET="$2"
13922 else
13923 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13924 fi
13925else
13926 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13927fi
13928
13929
13930
1eee94d3
GM
13931if test -n "$GM2_FOR_TARGET"; then
13932 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
13933elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
13934 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13935fi
13936
13937if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
13938 for ncn_progname in gm2; do
13939 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13940set dummy ${ncn_progname}; ac_word=$2
13941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13942$as_echo_n "checking for $ac_word... " >&6; }
13943if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
13944 $as_echo_n "(cached) " >&6
13945else
13946 if test -n "$GM2_FOR_TARGET"; then
13947 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
13948else
13949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13950for as_dir in $PATH
13951do
13952 IFS=$as_save_IFS
13953 test -z "$as_dir" && as_dir=.
13954 for ac_exec_ext in '' $ac_executable_extensions; do
13955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13956 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
13957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13958 break 2
13959 fi
13960done
13961 done
13962IFS=$as_save_IFS
13963
13964fi
13965fi
13966GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13967if test -n "$GM2_FOR_TARGET"; then
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
13969$as_echo "$GM2_FOR_TARGET" >&6; }
13970else
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13972$as_echo "no" >&6; }
13973fi
13974
13975
13976 done
13977fi
13978
13979if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
13980 for ncn_progname in gm2; do
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13982$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13983 if test -x $with_build_time_tools/${ncn_progname}; then
13984 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13986$as_echo "yes" >&6; }
13987 break
13988 else
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13990$as_echo "no" >&6; }
13991 fi
13992 done
13993fi
13994
13995if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
13996 for ncn_progname in gm2; do
13997 if test -n "$ncn_target_tool_prefix"; then
13998 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13999set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14001$as_echo_n "checking for $ac_word... " >&6; }
14002if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14003 $as_echo_n "(cached) " >&6
14004else
14005 if test -n "$GM2_FOR_TARGET"; then
14006 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14007else
14008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14009for as_dir in $PATH
14010do
14011 IFS=$as_save_IFS
14012 test -z "$as_dir" && as_dir=.
14013 for ac_exec_ext in '' $ac_executable_extensions; do
14014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14015 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14017 break 2
14018 fi
14019done
14020 done
14021IFS=$as_save_IFS
14022
14023fi
14024fi
14025GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14026if test -n "$GM2_FOR_TARGET"; then
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14028$as_echo "$GM2_FOR_TARGET" >&6; }
14029else
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14031$as_echo "no" >&6; }
14032fi
14033
14034
14035 fi
14036 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
14037 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14038set dummy ${ncn_progname}; ac_word=$2
14039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14040$as_echo_n "checking for $ac_word... " >&6; }
14041if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14042 $as_echo_n "(cached) " >&6
14043else
14044 if test -n "$GM2_FOR_TARGET"; then
14045 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14046else
14047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14048for as_dir in $PATH
14049do
14050 IFS=$as_save_IFS
14051 test -z "$as_dir" && as_dir=.
14052 for ac_exec_ext in '' $ac_executable_extensions; do
14053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14054 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14056 break 2
14057 fi
14058done
14059 done
14060IFS=$as_save_IFS
14061
14062fi
14063fi
14064GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14065if test -n "$GM2_FOR_TARGET"; then
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14067$as_echo "$GM2_FOR_TARGET" >&6; }
14068else
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14070$as_echo "no" >&6; }
14071fi
14072
14073
14074 fi
14075 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
14076 done
14077fi
14078
14079if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
14080 set dummy gm2
14081 if test $build = $target ; then
14082 GM2_FOR_TARGET="$2"
14083 else
14084 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
14085 fi
14086else
14087 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
14088fi
14089
14090
14091
e8b05380
PB
14092cat > conftest.c << \EOF
14093#ifdef __GNUC__
14094 gcc_yay;
14095#endif
14096EOF
14097if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
14098 have_gcc_for_target=yes
14099else
14100 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
14101 have_gcc_for_target=no
14102fi
14103rm conftest.c
14104
14105
14106
14107
14108if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14109 if test -n "$with_build_time_tools"; then
5213506e
RW
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
14111$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14112 if test -x $with_build_time_tools/ar; then
14113 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
14114 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
14116$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 14117 else
5213506e
RW
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14119$as_echo "no" >&6; }
d1f8db0c 14120 fi
e8b05380
PB
14121 elif test $build != $host && test $have_gcc_for_target = yes; then
14122 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
14123 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14124 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
14125 fi
14126fi
3e19841a 14127if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14128 # Extract the first word of "ar", so it can be a program name with args.
14129set dummy ar; ac_word=$2
5213506e
RW
14130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14131$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14132if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
5213506e 14133 $as_echo_n "(cached) " >&6
e8b05380 14134else
1c710c3c
DJ
14135 case $AR_FOR_TARGET in
14136 [\\/]* | ?:[\\/]*)
e8b05380
PB
14137 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14138 ;;
e8b05380 14139 *)
1c710c3c
DJ
14140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14141for as_dir in $gcc_cv_tool_dirs
14142do
14143 IFS=$as_save_IFS
14144 test -z "$as_dir" && as_dir=.
5213506e 14145 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14147 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14149 break 2
14150 fi
14151done
5213506e
RW
14152 done
14153IFS=$as_save_IFS
1c710c3c 14154
e8b05380
PB
14155 ;;
14156esac
14157fi
1c710c3c 14158AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 14159if test -n "$AR_FOR_TARGET"; then
5213506e
RW
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14161$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 14162else
5213506e
RW
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14164$as_echo "no" >&6; }
4de997d1
PB
14165fi
14166
5213506e 14167
e8b05380
PB
14168fi
14169if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
14170
14171
14172if test -n "$AR_FOR_TARGET"; then
14173 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14174elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14175 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14176fi
14177
14178if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14179 for ncn_progname in ar; do
14180 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14181set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14183$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14184if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 14185 $as_echo_n "(cached) " >&6
278a7a38
AO
14186else
14187 if test -n "$AR_FOR_TARGET"; then
14188 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14189else
14190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14191for as_dir in $PATH
14192do
14193 IFS=$as_save_IFS
14194 test -z "$as_dir" && as_dir=.
5213506e 14195 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14197 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 14198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14199 break 2
14200 fi
14201done
5213506e
RW
14202 done
14203IFS=$as_save_IFS
278a7a38
AO
14204
14205fi
14206fi
14207AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14208if test -n "$AR_FOR_TARGET"; then
5213506e
RW
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14210$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 14211else
5213506e
RW
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14213$as_echo "no" >&6; }
278a7a38
AO
14214fi
14215
5213506e 14216
278a7a38
AO
14217 done
14218fi
14219
14220if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14221 for ncn_progname in ar; do
5213506e
RW
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14223$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14224 if test -x $with_build_time_tools/${ncn_progname}; then
14225 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14227$as_echo "yes" >&6; }
e8b05380
PB
14228 break
14229 else
5213506e
RW
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14231$as_echo "no" >&6; }
e8b05380
PB
14232 fi
14233 done
14234fi
14235
14236if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14237 for ncn_progname in ar; do
14238 if test -n "$ncn_target_tool_prefix"; then
14239 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 14240set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14242$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14243if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 14244 $as_echo_n "(cached) " >&6
4de997d1 14245else
e8b05380
PB
14246 if test -n "$AR_FOR_TARGET"; then
14247 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 14248else
1c710c3c
DJ
14249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14250for as_dir in $PATH
14251do
14252 IFS=$as_save_IFS
14253 test -z "$as_dir" && as_dir=.
5213506e 14254 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14256 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14258 break 2
14259 fi
14260done
5213506e
RW
14261 done
14262IFS=$as_save_IFS
1c710c3c 14263
4de997d1
PB
14264fi
14265fi
1c710c3c 14266AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 14267if test -n "$AR_FOR_TARGET"; then
5213506e
RW
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14269$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 14270else
5213506e
RW
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14272$as_echo "no" >&6; }
4de997d1
PB
14273fi
14274
5213506e 14275
e8b05380
PB
14276 fi
14277 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14278 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14279set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14281$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14282if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 14283 $as_echo_n "(cached) " >&6
e8b05380
PB
14284else
14285 if test -n "$AR_FOR_TARGET"; then
14286 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14287else
1c710c3c
DJ
14288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14289for as_dir in $PATH
14290do
14291 IFS=$as_save_IFS
14292 test -z "$as_dir" && as_dir=.
5213506e 14293 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14295 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 14296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14297 break 2
14298 fi
14299done
5213506e
RW
14300 done
14301IFS=$as_save_IFS
1c710c3c 14302
e8b05380
PB
14303fi
14304fi
1c710c3c 14305AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 14306if test -n "$AR_FOR_TARGET"; then
5213506e
RW
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14308$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 14309else
5213506e
RW
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14311$as_echo "no" >&6; }
e8b05380 14312fi
1c710c3c 14313
5213506e 14314
e8b05380
PB
14315 fi
14316 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14317 done
14318fi
1c710c3c 14319
e8b05380
PB
14320if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14321 set dummy ar
14322 if test $build = $target ; then
14323 AR_FOR_TARGET="$2"
14324 else
14325 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 14326 fi
1c00b503
PB
14327else
14328 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
14329fi
14330
d1f8db0c
PB
14331else
14332 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
14333fi
14334
14335
14336
14337
14338if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14339 if test -n "$with_build_time_tools"; then
5213506e
RW
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14341$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14342 if test -x $with_build_time_tools/as; then
14343 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14344 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14346$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 14347 else
5213506e
RW
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14349$as_echo "no" >&6; }
d1f8db0c 14350 fi
e8b05380
PB
14351 elif test $build != $host && test $have_gcc_for_target = yes; then
14352 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
14353 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14354 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
14355 fi
14356fi
3e19841a 14357if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14358 # Extract the first word of "as", so it can be a program name with args.
14359set dummy as; ac_word=$2
5213506e
RW
14360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14361$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14362if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
5213506e 14363 $as_echo_n "(cached) " >&6
e8b05380 14364else
1c710c3c
DJ
14365 case $AS_FOR_TARGET in
14366 [\\/]* | ?:[\\/]*)
e8b05380
PB
14367 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14368 ;;
e8b05380 14369 *)
1c710c3c
DJ
14370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14371for as_dir in $gcc_cv_tool_dirs
14372do
14373 IFS=$as_save_IFS
14374 test -z "$as_dir" && as_dir=.
5213506e 14375 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14377 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14379 break 2
14380 fi
14381done
5213506e
RW
14382 done
14383IFS=$as_save_IFS
1c710c3c 14384
e8b05380
PB
14385 ;;
14386esac
14387fi
1c710c3c 14388AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 14389if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14391$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 14392else
5213506e
RW
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14394$as_echo "no" >&6; }
e8b05380
PB
14395fi
14396
5213506e 14397
e8b05380
PB
14398fi
14399if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
14400
14401
14402if test -n "$AS_FOR_TARGET"; then
14403 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14404elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14405 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14406fi
14407
14408if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14409 for ncn_progname in as; do
14410 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14411set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14413$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14414if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 14415 $as_echo_n "(cached) " >&6
278a7a38
AO
14416else
14417 if test -n "$AS_FOR_TARGET"; then
14418 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14419else
14420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14421for as_dir in $PATH
14422do
14423 IFS=$as_save_IFS
14424 test -z "$as_dir" && as_dir=.
5213506e 14425 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14427 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 14428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14429 break 2
14430 fi
14431done
5213506e
RW
14432 done
14433IFS=$as_save_IFS
278a7a38
AO
14434
14435fi
14436fi
14437AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14438if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14440$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 14441else
5213506e
RW
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14443$as_echo "no" >&6; }
278a7a38
AO
14444fi
14445
5213506e 14446
278a7a38
AO
14447 done
14448fi
14449
14450if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14451 for ncn_progname in as; do
5213506e
RW
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14453$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14454 if test -x $with_build_time_tools/${ncn_progname}; then
14455 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14457$as_echo "yes" >&6; }
e8b05380
PB
14458 break
14459 else
5213506e
RW
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14461$as_echo "no" >&6; }
e8b05380
PB
14462 fi
14463 done
14464fi
14465
14466if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14467 for ncn_progname in as; do
14468 if test -n "$ncn_target_tool_prefix"; then
14469 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14470set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14472$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14473if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 14474 $as_echo_n "(cached) " >&6
e8b05380
PB
14475else
14476 if test -n "$AS_FOR_TARGET"; then
14477 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14478else
1c710c3c
DJ
14479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14480for as_dir in $PATH
14481do
14482 IFS=$as_save_IFS
14483 test -z "$as_dir" && as_dir=.
5213506e 14484 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14486 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14488 break 2
14489 fi
14490done
5213506e
RW
14491 done
14492IFS=$as_save_IFS
1c710c3c 14493
e8b05380
PB
14494fi
14495fi
1c710c3c 14496AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 14497if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14499$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 14500else
5213506e
RW
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14502$as_echo "no" >&6; }
e8b05380
PB
14503fi
14504
5213506e 14505
e8b05380
PB
14506 fi
14507 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14508 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 14509set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14511$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14512if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 14513 $as_echo_n "(cached) " >&6
4de997d1 14514else
e8b05380
PB
14515 if test -n "$AS_FOR_TARGET"; then
14516 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 14517else
1c710c3c
DJ
14518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14519for as_dir in $PATH
14520do
14521 IFS=$as_save_IFS
14522 test -z "$as_dir" && as_dir=.
5213506e 14523 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14525 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 14526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14527 break 2
14528 fi
14529done
5213506e
RW
14530 done
14531IFS=$as_save_IFS
1c710c3c 14532
4de997d1
PB
14533fi
14534fi
1c710c3c 14535AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 14536if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14538$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 14539else
5213506e
RW
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14541$as_echo "no" >&6; }
4de997d1 14542fi
1c710c3c 14543
5213506e 14544
e8b05380
PB
14545 fi
14546 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14547 done
14548fi
1c710c3c 14549
e8b05380
PB
14550if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14551 set dummy as
14552 if test $build = $target ; then
14553 AS_FOR_TARGET="$2"
14554 else
14555 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 14556 fi
1c00b503
PB
14557else
14558 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 14559fi
2693c0b0 14560
d1f8db0c
PB
14561else
14562 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
14563fi
14564
e8b05380
PB
14565
14566
14567
14568if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14569 if test -n "$with_build_time_tools"; then
5213506e
RW
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14571$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14572 if test -x $with_build_time_tools/dlltool; then
14573 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14574 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14576$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 14577 else
5213506e
RW
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14579$as_echo "no" >&6; }
d1f8db0c 14580 fi
e8b05380
PB
14581 elif test $build != $host && test $have_gcc_for_target = yes; then
14582 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
14583 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14584 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
14585 fi
14586fi
3e19841a 14587if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14588 # Extract the first word of "dlltool", so it can be a program name with args.
14589set dummy dlltool; ac_word=$2
5213506e
RW
14590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14591$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14592if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14593 $as_echo_n "(cached) " >&6
4de997d1 14594else
1c710c3c
DJ
14595 case $DLLTOOL_FOR_TARGET in
14596 [\\/]* | ?:[\\/]*)
e8b05380
PB
14597 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14598 ;;
e8b05380 14599 *)
1c710c3c
DJ
14600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14601for as_dir in $gcc_cv_tool_dirs
14602do
14603 IFS=$as_save_IFS
14604 test -z "$as_dir" && as_dir=.
5213506e 14605 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14607 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14609 break 2
14610 fi
14611done
5213506e
RW
14612 done
14613IFS=$as_save_IFS
1c710c3c 14614
e8b05380
PB
14615 ;;
14616esac
4de997d1 14617fi
1c710c3c 14618DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 14619if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14621$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 14622else
5213506e
RW
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14624$as_echo "no" >&6; }
4de997d1
PB
14625fi
14626
5213506e 14627
e8b05380
PB
14628fi
14629if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
14630
14631
14632if test -n "$DLLTOOL_FOR_TARGET"; then
14633 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14634elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14635 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14636fi
14637
14638if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14639 for ncn_progname in dlltool; do
14640 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14641set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14643$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14644if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14645 $as_echo_n "(cached) " >&6
278a7a38
AO
14646else
14647 if test -n "$DLLTOOL_FOR_TARGET"; then
14648 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14649else
14650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14651for as_dir in $PATH
14652do
14653 IFS=$as_save_IFS
14654 test -z "$as_dir" && as_dir=.
5213506e 14655 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14657 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 14658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14659 break 2
14660 fi
14661done
5213506e
RW
14662 done
14663IFS=$as_save_IFS
278a7a38
AO
14664
14665fi
14666fi
14667DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14668if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14670$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 14671else
5213506e
RW
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14673$as_echo "no" >&6; }
278a7a38
AO
14674fi
14675
5213506e 14676
278a7a38
AO
14677 done
14678fi
14679
14680if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14681 for ncn_progname in dlltool; do
5213506e
RW
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14683$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14684 if test -x $with_build_time_tools/${ncn_progname}; then
14685 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14687$as_echo "yes" >&6; }
e8b05380
PB
14688 break
14689 else
5213506e
RW
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14691$as_echo "no" >&6; }
e8b05380
PB
14692 fi
14693 done
14694fi
14695
14696if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14697 for ncn_progname in dlltool; do
14698 if test -n "$ncn_target_tool_prefix"; then
14699 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14700set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14702$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14703if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14704 $as_echo_n "(cached) " >&6
4de997d1 14705else
e8b05380
PB
14706 if test -n "$DLLTOOL_FOR_TARGET"; then
14707 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 14708else
1c710c3c
DJ
14709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14710for as_dir in $PATH
14711do
14712 IFS=$as_save_IFS
14713 test -z "$as_dir" && as_dir=.
5213506e 14714 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14716 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14718 break 2
14719 fi
14720done
5213506e
RW
14721 done
14722IFS=$as_save_IFS
1c710c3c 14723
4de997d1
PB
14724fi
14725fi
1c710c3c 14726DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 14727if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14729$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 14730else
5213506e
RW
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14732$as_echo "no" >&6; }
4de997d1 14733fi
4de997d1 14734
5213506e 14735
e8b05380
PB
14736 fi
14737 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14738 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14739set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14741$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14742if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14743 $as_echo_n "(cached) " >&6
4de997d1 14744else
e8b05380
PB
14745 if test -n "$DLLTOOL_FOR_TARGET"; then
14746 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 14747else
1c710c3c
DJ
14748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14749for as_dir in $PATH
14750do
14751 IFS=$as_save_IFS
14752 test -z "$as_dir" && as_dir=.
5213506e 14753 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14755 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 14756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14757 break 2
14758 fi
14759done
5213506e
RW
14760 done
14761IFS=$as_save_IFS
1c710c3c 14762
4de997d1
PB
14763fi
14764fi
1c710c3c 14765DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 14766if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14768$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 14769else
5213506e
RW
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14771$as_echo "no" >&6; }
4de997d1 14772fi
1c710c3c 14773
5213506e 14774
e8b05380
PB
14775 fi
14776 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14777 done
14778fi
1c710c3c 14779
e8b05380
PB
14780if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14781 set dummy dlltool
14782 if test $build = $target ; then
14783 DLLTOOL_FOR_TARGET="$2"
14784 else
14785 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14786 fi
1c00b503
PB
14787else
14788 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
14789fi
14790
d1f8db0c
PB
14791else
14792 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
14793fi
14794
4de997d1 14795
e8b05380
PB
14796
14797
3b5e8ee4
IS
14798if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14799 if test -n "$with_build_time_tools"; then
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14801$as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14802 if test -x $with_build_time_tools/dsymutil; then
14803 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14804 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14806$as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14807 else
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14809$as_echo "no" >&6; }
14810 fi
14811 elif test $build != $host && test $have_gcc_for_target = yes; then
14812 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14813 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14814 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14815 fi
14816fi
14817if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14818 # Extract the first word of "dsymutil", so it can be a program name with args.
14819set dummy dsymutil; ac_word=$2
14820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14821$as_echo_n "checking for $ac_word... " >&6; }
14822if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14823 $as_echo_n "(cached) " >&6
14824else
14825 case $DSYMUTIL_FOR_TARGET in
14826 [\\/]* | ?:[\\/]*)
14827 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14828 ;;
14829 *)
14830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14831for as_dir in $gcc_cv_tool_dirs
14832do
14833 IFS=$as_save_IFS
14834 test -z "$as_dir" && as_dir=.
14835 for ac_exec_ext in '' $ac_executable_extensions; do
14836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14837 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14839 break 2
14840 fi
14841done
14842 done
14843IFS=$as_save_IFS
14844
14845 ;;
14846esac
14847fi
14848DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14849if test -n "$DSYMUTIL_FOR_TARGET"; then
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14851$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14852else
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14854$as_echo "no" >&6; }
14855fi
14856
14857
14858fi
14859if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14860
14861
14862if test -n "$DSYMUTIL_FOR_TARGET"; then
14863 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14864elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14865 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14866fi
14867
14868if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14869 for ncn_progname in dsymutil; do
14870 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14871set dummy ${ncn_progname}; ac_word=$2
14872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14873$as_echo_n "checking for $ac_word... " >&6; }
14874if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14875 $as_echo_n "(cached) " >&6
14876else
14877 if test -n "$DSYMUTIL_FOR_TARGET"; then
14878 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14879else
14880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14881for as_dir in $PATH
14882do
14883 IFS=$as_save_IFS
14884 test -z "$as_dir" && as_dir=.
14885 for ac_exec_ext in '' $ac_executable_extensions; do
14886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14887 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14889 break 2
14890 fi
14891done
14892 done
14893IFS=$as_save_IFS
14894
14895fi
14896fi
14897DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14898if test -n "$DSYMUTIL_FOR_TARGET"; then
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14900$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14901else
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14903$as_echo "no" >&6; }
14904fi
14905
14906
14907 done
14908fi
14909
14910if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14911 for ncn_progname in dsymutil; do
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14913$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14914 if test -x $with_build_time_tools/${ncn_progname}; then
14915 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14917$as_echo "yes" >&6; }
14918 break
14919 else
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14921$as_echo "no" >&6; }
14922 fi
14923 done
14924fi
14925
14926if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14927 for ncn_progname in dsymutil; do
14928 if test -n "$ncn_target_tool_prefix"; then
14929 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14930set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14932$as_echo_n "checking for $ac_word... " >&6; }
14933if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14934 $as_echo_n "(cached) " >&6
14935else
14936 if test -n "$DSYMUTIL_FOR_TARGET"; then
14937 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14938else
14939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14940for as_dir in $PATH
14941do
14942 IFS=$as_save_IFS
14943 test -z "$as_dir" && as_dir=.
14944 for ac_exec_ext in '' $ac_executable_extensions; do
14945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14946 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14948 break 2
14949 fi
14950done
14951 done
14952IFS=$as_save_IFS
14953
14954fi
14955fi
14956DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14957if test -n "$DSYMUTIL_FOR_TARGET"; then
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14959$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14960else
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14962$as_echo "no" >&6; }
14963fi
14964
14965
14966 fi
14967 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14968 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14969set dummy ${ncn_progname}; ac_word=$2
14970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14971$as_echo_n "checking for $ac_word... " >&6; }
14972if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14973 $as_echo_n "(cached) " >&6
14974else
14975 if test -n "$DSYMUTIL_FOR_TARGET"; then
14976 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14977else
14978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14979for as_dir in $PATH
14980do
14981 IFS=$as_save_IFS
14982 test -z "$as_dir" && as_dir=.
14983 for ac_exec_ext in '' $ac_executable_extensions; do
14984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14985 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14987 break 2
14988 fi
14989done
14990 done
14991IFS=$as_save_IFS
14992
14993fi
14994fi
14995DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14996if test -n "$DSYMUTIL_FOR_TARGET"; then
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14998$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14999else
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15001$as_echo "no" >&6; }
15002fi
15003
15004
15005 fi
15006 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
15007 done
15008fi
15009
15010if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
15011 set dummy dsymutil
15012 if test $build = $target ; then
15013 DSYMUTIL_FOR_TARGET="$2"
15014 else
15015 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15016 fi
15017else
15018 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
15019fi
15020
15021else
15022 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15023fi
15024
15025
15026
15027
e8b05380
PB
15028if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15029 if test -n "$with_build_time_tools"; then
5213506e
RW
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
15031$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15032 if test -x $with_build_time_tools/ld; then
15033 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
15034 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
15036$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 15037 else
5213506e
RW
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15039$as_echo "no" >&6; }
d1f8db0c 15040 fi
e8b05380
PB
15041 elif test $build != $host && test $have_gcc_for_target = yes; then
15042 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
15043 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
15044 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 15045 fi
e8b05380 15046fi
3e19841a 15047if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
15048 # Extract the first word of "ld", so it can be a program name with args.
15049set dummy ld; ac_word=$2
5213506e
RW
15050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15051$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15052if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
5213506e 15053 $as_echo_n "(cached) " >&6
4de997d1 15054else
1c710c3c
DJ
15055 case $LD_FOR_TARGET in
15056 [\\/]* | ?:[\\/]*)
e8b05380
PB
15057 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
15058 ;;
e8b05380 15059 *)
1c710c3c
DJ
15060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15061for as_dir in $gcc_cv_tool_dirs
15062do
15063 IFS=$as_save_IFS
15064 test -z "$as_dir" && as_dir=.
5213506e 15065 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15067 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 15068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15069 break 2
15070 fi
15071done
5213506e
RW
15072 done
15073IFS=$as_save_IFS
1c710c3c 15074
e8b05380
PB
15075 ;;
15076esac
4de997d1 15077fi
1c710c3c 15078LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 15079if test -n "$LD_FOR_TARGET"; then
5213506e
RW
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15081$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 15082else
5213506e
RW
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15084$as_echo "no" >&6; }
4de997d1 15085fi
2693c0b0 15086
5213506e 15087
e8b05380
PB
15088fi
15089if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
15090
15091
15092if test -n "$LD_FOR_TARGET"; then
15093 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
15094elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15095 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15096fi
15097
15098if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15099 for ncn_progname in ld; do
15100 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15101set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15103$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15104if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 15105 $as_echo_n "(cached) " >&6
278a7a38
AO
15106else
15107 if test -n "$LD_FOR_TARGET"; then
15108 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15109else
15110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15111for as_dir in $PATH
15112do
15113 IFS=$as_save_IFS
15114 test -z "$as_dir" && as_dir=.
5213506e 15115 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15117 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 15118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
15119 break 2
15120 fi
15121done
5213506e
RW
15122 done
15123IFS=$as_save_IFS
278a7a38
AO
15124
15125fi
15126fi
15127LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15128if test -n "$LD_FOR_TARGET"; then
5213506e
RW
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15130$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 15131else
5213506e
RW
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15133$as_echo "no" >&6; }
278a7a38
AO
15134fi
15135
5213506e 15136
278a7a38
AO
15137 done
15138fi
15139
15140if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15141 for ncn_progname in ld; do
5213506e
RW
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15143$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15144 if test -x $with_build_time_tools/${ncn_progname}; then
15145 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15147$as_echo "yes" >&6; }
e8b05380
PB
15148 break
15149 else
5213506e
RW
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15151$as_echo "no" >&6; }
e8b05380
PB
15152 fi
15153 done
ca9f4b81
AO
15154fi
15155
e8b05380
PB
15156if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15157 for ncn_progname in ld; do
15158 if test -n "$ncn_target_tool_prefix"; then
15159 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 15160set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
15161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15162$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15163if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 15164 $as_echo_n "(cached) " >&6
ca9f4b81 15165else
4de997d1
PB
15166 if test -n "$LD_FOR_TARGET"; then
15167 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 15168else
1c710c3c
DJ
15169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15170for as_dir in $PATH
15171do
15172 IFS=$as_save_IFS
15173 test -z "$as_dir" && as_dir=.
5213506e 15174 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15176 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 15177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15178 break 2
15179 fi
15180done
5213506e
RW
15181 done
15182IFS=$as_save_IFS
1c710c3c 15183
ca9f4b81
AO
15184fi
15185fi
1c710c3c 15186LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 15187if test -n "$LD_FOR_TARGET"; then
5213506e
RW
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15189$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 15190else
5213506e
RW
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15192$as_echo "no" >&6; }
ca9f4b81
AO
15193fi
15194
5213506e 15195
e8b05380
PB
15196 fi
15197 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15198 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 15199set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15201$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15202if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 15203 $as_echo_n "(cached) " >&6
ca9f4b81 15204else
2693c0b0
PB
15205 if test -n "$LD_FOR_TARGET"; then
15206 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 15207else
1c710c3c
DJ
15208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15209for as_dir in $PATH
15210do
15211 IFS=$as_save_IFS
15212 test -z "$as_dir" && as_dir=.
5213506e 15213 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15215 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 15216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15217 break 2
15218 fi
15219done
5213506e
RW
15220 done
15221IFS=$as_save_IFS
1c710c3c 15222
ca9f4b81
AO
15223fi
15224fi
1c710c3c 15225LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 15226if test -n "$LD_FOR_TARGET"; then
5213506e
RW
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15228$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 15229else
5213506e
RW
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15231$as_echo "no" >&6; }
ca9f4b81 15232fi
1c710c3c 15233
5213506e 15234
e8b05380
PB
15235 fi
15236 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15237 done
15238fi
1c710c3c 15239
2693c0b0
PB
15240if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15241 set dummy ld
15242 if test $build = $target ; then
15243 LD_FOR_TARGET="$2"
ca9f4b81 15244 else
2693c0b0 15245 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 15246 fi
1c00b503
PB
15247else
15248 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
15249fi
15250
d1f8db0c
PB
15251else
15252 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
15253fi
15254
15255
15256
15257
15258if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15259 if test -n "$with_build_time_tools"; then
5213506e
RW
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
15261$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15262 if test -x $with_build_time_tools/lipo; then
15263 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15264 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
15266$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 15267 else
5213506e
RW
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15269$as_echo "no" >&6; }
d1f8db0c 15270 fi
e8b05380
PB
15271 elif test $build != $host && test $have_gcc_for_target = yes; then
15272 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
15273 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15274 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
15275 fi
15276fi
278a7a38
AO
15277if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15278 # Extract the first word of "lipo", so it can be a program name with args.
15279set dummy lipo; ac_word=$2
5213506e
RW
15280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15281$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15282if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
5213506e 15283 $as_echo_n "(cached) " >&6
278a7a38
AO
15284else
15285 case $LIPO_FOR_TARGET in
15286 [\\/]* | ?:[\\/]*)
15287 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15288 ;;
15289 *)
15290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15291for as_dir in $gcc_cv_tool_dirs
15292do
15293 IFS=$as_save_IFS
15294 test -z "$as_dir" && as_dir=.
5213506e 15295 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15297 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 15298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
15299 break 2
15300 fi
15301done
5213506e
RW
15302 done
15303IFS=$as_save_IFS
278a7a38
AO
15304
15305 ;;
15306esac
15307fi
15308LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 15309if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15311$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 15312else
5213506e
RW
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15314$as_echo "no" >&6; }
278a7a38
AO
15315fi
15316
5213506e 15317
278a7a38
AO
15318fi
15319if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15320
15321
15322if test -n "$LIPO_FOR_TARGET"; then
15323 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15324elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15325 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15326fi
15327
15328if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15329 for ncn_progname in lipo; do
15330 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15331set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15333$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15334if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 15335 $as_echo_n "(cached) " >&6
e8b05380 15336else
278a7a38
AO
15337 if test -n "$LIPO_FOR_TARGET"; then
15338 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15339else
15340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15341for as_dir in $PATH
1c710c3c
DJ
15342do
15343 IFS=$as_save_IFS
15344 test -z "$as_dir" && as_dir=.
5213506e 15345 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15347 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 15348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15349 break 2
15350 fi
15351done
5213506e
RW
15352 done
15353IFS=$as_save_IFS
1c710c3c 15354
e8b05380 15355fi
278a7a38
AO
15356fi
15357LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 15358if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15360$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 15361else
5213506e
RW
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15363$as_echo "no" >&6; }
e8b05380
PB
15364fi
15365
5213506e 15366
278a7a38 15367 done
e8b05380 15368fi
278a7a38
AO
15369
15370if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15371 for ncn_progname in lipo; do
5213506e
RW
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15373$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15374 if test -x $with_build_time_tools/${ncn_progname}; then
15375 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15377$as_echo "yes" >&6; }
e8b05380
PB
15378 break
15379 else
5213506e
RW
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15381$as_echo "no" >&6; }
e8b05380
PB
15382 fi
15383 done
15384fi
15385
15386if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15387 for ncn_progname in lipo; do
15388 if test -n "$ncn_target_tool_prefix"; then
15389 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 15390set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
15391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15392$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15393if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 15394 $as_echo_n "(cached) " >&6
040b1c5a
GK
15395else
15396 if test -n "$LIPO_FOR_TARGET"; then
15397 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15398else
1c710c3c
DJ
15399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15400for as_dir in $PATH
15401do
15402 IFS=$as_save_IFS
15403 test -z "$as_dir" && as_dir=.
5213506e 15404 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15406 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 15407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15408 break 2
15409 fi
15410done
5213506e
RW
15411 done
15412IFS=$as_save_IFS
1c710c3c 15413
040b1c5a
GK
15414fi
15415fi
1c710c3c 15416LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 15417if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15419$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 15420else
5213506e
RW
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15422$as_echo "no" >&6; }
040b1c5a
GK
15423fi
15424
5213506e 15425
e8b05380
PB
15426 fi
15427 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15428 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 15429set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15431$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15432if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 15433 $as_echo_n "(cached) " >&6
040b1c5a
GK
15434else
15435 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
15436 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15437else
1c710c3c
DJ
15438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15439for as_dir in $PATH
15440do
15441 IFS=$as_save_IFS
15442 test -z "$as_dir" && as_dir=.
5213506e 15443 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15445 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 15446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15447 break 2
15448 fi
15449done
5213506e
RW
15450 done
15451IFS=$as_save_IFS
1c710c3c 15452
040b1c5a
GK
15453fi
15454fi
1c710c3c 15455LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 15456if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15458$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 15459else
5213506e
RW
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15461$as_echo "no" >&6; }
040b1c5a 15462fi
1c710c3c 15463
5213506e 15464
e8b05380
PB
15465 fi
15466 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15467 done
15468fi
1c710c3c 15469
040b1c5a
GK
15470if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15471 set dummy lipo
15472 if test $build = $target ; then
15473 LIPO_FOR_TARGET="$2"
15474 else
15475 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15476 fi
1c00b503
PB
15477else
15478 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
15479fi
15480
d1f8db0c
PB
15481else
15482 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
15483fi
15484
15485
15486
15487
15488if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15489 if test -n "$with_build_time_tools"; then
5213506e
RW
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15491$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15492 if test -x $with_build_time_tools/nm; then
15493 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15494 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15496$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 15497 else
5213506e
RW
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15499$as_echo "no" >&6; }
d1f8db0c 15500 fi
e8b05380
PB
15501 elif test $build != $host && test $have_gcc_for_target = yes; then
15502 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
15503 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15504 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
15505 fi
15506fi
3e19841a 15507if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
15508 # Extract the first word of "nm", so it can be a program name with args.
15509set dummy nm; ac_word=$2
5213506e
RW
15510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15511$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15512if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
5213506e 15513 $as_echo_n "(cached) " >&6
e8b05380 15514else
1c710c3c
DJ
15515 case $NM_FOR_TARGET in
15516 [\\/]* | ?:[\\/]*)
e8b05380
PB
15517 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15518 ;;
e8b05380 15519 *)
1c710c3c
DJ
15520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15521for as_dir in $gcc_cv_tool_dirs
15522do
15523 IFS=$as_save_IFS
15524 test -z "$as_dir" && as_dir=.
5213506e 15525 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15527 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 15528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15529 break 2
15530 fi
15531done
5213506e
RW
15532 done
15533IFS=$as_save_IFS
1c710c3c 15534
e8b05380
PB
15535 ;;
15536esac
15537fi
1c710c3c 15538NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 15539if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15541$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 15542else
5213506e
RW
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15544$as_echo "no" >&6; }
e8b05380
PB
15545fi
15546
5213506e 15547
e8b05380
PB
15548fi
15549if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
15550
15551
15552if test -n "$NM_FOR_TARGET"; then
15553 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15554elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15555 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15556fi
15557
15558if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15559 for ncn_progname in nm; do
15560 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15561set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15563$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15564if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 15565 $as_echo_n "(cached) " >&6
278a7a38
AO
15566else
15567 if test -n "$NM_FOR_TARGET"; then
15568 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15569else
15570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15571for as_dir in $PATH
15572do
15573 IFS=$as_save_IFS
15574 test -z "$as_dir" && as_dir=.
5213506e 15575 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15577 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 15578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
15579 break 2
15580 fi
15581done
5213506e
RW
15582 done
15583IFS=$as_save_IFS
278a7a38
AO
15584
15585fi
15586fi
15587NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15588if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15590$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 15591else
5213506e
RW
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15593$as_echo "no" >&6; }
278a7a38
AO
15594fi
15595
5213506e 15596
278a7a38
AO
15597 done
15598fi
15599
15600if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15601 for ncn_progname in nm; do
5213506e
RW
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15603$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15604 if test -x $with_build_time_tools/${ncn_progname}; then
15605 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15607$as_echo "yes" >&6; }
e8b05380
PB
15608 break
15609 else
5213506e
RW
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15611$as_echo "no" >&6; }
e8b05380
PB
15612 fi
15613 done
15614fi
15615
15616if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15617 for ncn_progname in nm; do
15618 if test -n "$ncn_target_tool_prefix"; then
15619 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 15620set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
15621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15622$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15623if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 15624 $as_echo_n "(cached) " >&6
ca9f4b81 15625else
4de997d1
PB
15626 if test -n "$NM_FOR_TARGET"; then
15627 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 15628else
1c710c3c
DJ
15629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15630for as_dir in $PATH
15631do
15632 IFS=$as_save_IFS
15633 test -z "$as_dir" && as_dir=.
5213506e 15634 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15636 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 15637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15638 break 2
15639 fi
15640done
5213506e
RW
15641 done
15642IFS=$as_save_IFS
1c710c3c 15643
ca9f4b81
AO
15644fi
15645fi
1c710c3c 15646NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 15647if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15649$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 15650else
5213506e
RW
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15652$as_echo "no" >&6; }
ca9f4b81
AO
15653fi
15654
5213506e 15655
e8b05380
PB
15656 fi
15657 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15658 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 15659set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15661$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15662if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 15663 $as_echo_n "(cached) " >&6
ca9f4b81 15664else
2693c0b0
PB
15665 if test -n "$NM_FOR_TARGET"; then
15666 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 15667else
1c710c3c
DJ
15668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15669for as_dir in $PATH
15670do
15671 IFS=$as_save_IFS
15672 test -z "$as_dir" && as_dir=.
5213506e 15673 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15675 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 15676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15677 break 2
15678 fi
15679done
5213506e
RW
15680 done
15681IFS=$as_save_IFS
1c710c3c 15682
ca9f4b81
AO
15683fi
15684fi
1c710c3c 15685NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 15686if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15688$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 15689else
5213506e
RW
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15691$as_echo "no" >&6; }
ca9f4b81 15692fi
1c710c3c 15693
5213506e 15694
e8b05380
PB
15695 fi
15696 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15697 done
15698fi
1c710c3c 15699
2693c0b0
PB
15700if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15701 set dummy nm
15702 if test $build = $target ; then
15703 NM_FOR_TARGET="$2"
ca9f4b81 15704 else
2693c0b0 15705 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 15706 fi
1c00b503
PB
15707else
15708 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
15709fi
15710
d1f8db0c
PB
15711else
15712 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
15713fi
15714
15715
15716
15717
9bccfdf5
AP
15718if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15719 if test -n "$with_build_time_tools"; then
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15721$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15722 if test -x $with_build_time_tools/objcopy; then
15723 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15724 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15726$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15727 else
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15729$as_echo "no" >&6; }
15730 fi
15731 elif test $build != $host && test $have_gcc_for_target = yes; then
15732 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15733 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15734 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15735 fi
15736fi
15737if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15738 # Extract the first word of "objcopy", so it can be a program name with args.
15739set dummy objcopy; ac_word=$2
15740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15741$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15742if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15743 $as_echo_n "(cached) " >&6
15744else
15745 case $OBJCOPY_FOR_TARGET in
15746 [\\/]* | ?:[\\/]*)
15747 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15748 ;;
15749 *)
15750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15751for as_dir in $gcc_cv_tool_dirs
15752do
15753 IFS=$as_save_IFS
15754 test -z "$as_dir" && as_dir=.
15755 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15757 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15759 break 2
15760 fi
15761done
15762 done
15763IFS=$as_save_IFS
15764
15765 ;;
15766esac
15767fi
15768OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15769if test -n "$OBJCOPY_FOR_TARGET"; then
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15771$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15772else
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15774$as_echo "no" >&6; }
15775fi
15776
15777
15778fi
15779if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15780
15781
15782if test -n "$OBJCOPY_FOR_TARGET"; then
15783 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15784elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15785 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15786fi
15787
15788if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15789 for ncn_progname in objcopy; do
15790 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15791set dummy ${ncn_progname}; ac_word=$2
15792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15793$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15794if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15795 $as_echo_n "(cached) " >&6
15796else
15797 if test -n "$OBJCOPY_FOR_TARGET"; then
15798 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15799else
15800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15801for as_dir in $PATH
15802do
15803 IFS=$as_save_IFS
15804 test -z "$as_dir" && as_dir=.
15805 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15807 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15809 break 2
15810 fi
15811done
15812 done
15813IFS=$as_save_IFS
15814
15815fi
15816fi
15817OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15818if test -n "$OBJCOPY_FOR_TARGET"; then
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15820$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15821else
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15823$as_echo "no" >&6; }
15824fi
15825
15826
15827 done
15828fi
15829
15830if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15831 for ncn_progname in objcopy; do
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15833$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15834 if test -x $with_build_time_tools/${ncn_progname}; then
15835 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15837$as_echo "yes" >&6; }
15838 break
15839 else
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15841$as_echo "no" >&6; }
15842 fi
15843 done
15844fi
15845
15846if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15847 for ncn_progname in objcopy; do
15848 if test -n "$ncn_target_tool_prefix"; then
15849 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15850set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15852$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15853if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15854 $as_echo_n "(cached) " >&6
15855else
15856 if test -n "$OBJCOPY_FOR_TARGET"; then
15857 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15858else
15859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15860for as_dir in $PATH
15861do
15862 IFS=$as_save_IFS
15863 test -z "$as_dir" && as_dir=.
15864 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15866 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15868 break 2
15869 fi
15870done
15871 done
15872IFS=$as_save_IFS
15873
15874fi
15875fi
15876OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15877if test -n "$OBJCOPY_FOR_TARGET"; then
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15879$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15880else
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15882$as_echo "no" >&6; }
15883fi
15884
15885
15886 fi
15887 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15888 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15889set dummy ${ncn_progname}; ac_word=$2
15890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15891$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15892if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15893 $as_echo_n "(cached) " >&6
15894else
15895 if test -n "$OBJCOPY_FOR_TARGET"; then
15896 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15897else
15898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15899for as_dir in $PATH
15900do
15901 IFS=$as_save_IFS
15902 test -z "$as_dir" && as_dir=.
15903 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15905 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15907 break 2
15908 fi
15909done
15910 done
15911IFS=$as_save_IFS
15912
15913fi
15914fi
15915OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15916if test -n "$OBJCOPY_FOR_TARGET"; then
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15918$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15919else
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15921$as_echo "no" >&6; }
15922fi
15923
15924
15925 fi
15926 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15927 done
15928fi
15929
15930if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15931 set dummy objcopy
15932 if test $build = $target ; then
15933 OBJCOPY_FOR_TARGET="$2"
15934 else
15935 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15936 fi
15937else
15938 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15939fi
15940
15941else
15942 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15943fi
15944
15945
15946
15947
e8b05380
PB
15948if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15949 if test -n "$with_build_time_tools"; then
5213506e
RW
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15951$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15952 if test -x $with_build_time_tools/objdump; then
15953 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15954 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15956$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 15957 else
5213506e
RW
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15959$as_echo "no" >&6; }
d1f8db0c 15960 fi
e8b05380
PB
15961 elif test $build != $host && test $have_gcc_for_target = yes; then
15962 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
15963 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15964 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
15965 fi
15966fi
3e19841a 15967if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
15968 # Extract the first word of "objdump", so it can be a program name with args.
15969set dummy objdump; ac_word=$2
5213506e
RW
15970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15971$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15972if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 15973 $as_echo_n "(cached) " >&6
e8b05380 15974else
1c710c3c
DJ
15975 case $OBJDUMP_FOR_TARGET in
15976 [\\/]* | ?:[\\/]*)
e8b05380
PB
15977 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15978 ;;
e8b05380 15979 *)
1c710c3c
DJ
15980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15981for as_dir in $gcc_cv_tool_dirs
15982do
15983 IFS=$as_save_IFS
15984 test -z "$as_dir" && as_dir=.
5213506e 15985 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15987 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 15988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15989 break 2
15990 fi
15991done
5213506e
RW
15992 done
15993IFS=$as_save_IFS
1c710c3c 15994
e8b05380
PB
15995 ;;
15996esac
15997fi
1c710c3c 15998OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 15999if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16001$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 16002else
5213506e
RW
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16004$as_echo "no" >&6; }
e8b05380
PB
16005fi
16006
5213506e 16007
e8b05380
PB
16008fi
16009if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
16010
16011
16012if test -n "$OBJDUMP_FOR_TARGET"; then
16013 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16014elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16015 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16016fi
16017
16018if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16019 for ncn_progname in objdump; do
16020 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16021set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16023$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16024if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 16025 $as_echo_n "(cached) " >&6
278a7a38
AO
16026else
16027 if test -n "$OBJDUMP_FOR_TARGET"; then
16028 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16029else
16030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16031for as_dir in $PATH
16032do
16033 IFS=$as_save_IFS
16034 test -z "$as_dir" && as_dir=.
5213506e 16035 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 16037 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 16038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
16039 break 2
16040 fi
16041done
5213506e
RW
16042 done
16043IFS=$as_save_IFS
278a7a38
AO
16044
16045fi
16046fi
16047OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16048if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16050$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 16051else
5213506e
RW
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16053$as_echo "no" >&6; }
278a7a38
AO
16054fi
16055
5213506e 16056
278a7a38
AO
16057 done
16058fi
16059
16060if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 16061 for ncn_progname in objdump; do
5213506e
RW
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16063$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16064 if test -x $with_build_time_tools/${ncn_progname}; then
16065 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16067$as_echo "yes" >&6; }
e8b05380
PB
16068 break
16069 else
5213506e
RW
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16071$as_echo "no" >&6; }
e8b05380
PB
16072 fi
16073 done
16074fi
16075
16076if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16077 for ncn_progname in objdump; do
16078 if test -n "$ncn_target_tool_prefix"; then
16079 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 16080set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
16081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16082$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16083if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 16084 $as_echo_n "(cached) " >&6
d739199a
DJ
16085else
16086 if test -n "$OBJDUMP_FOR_TARGET"; then
16087 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16088else
1c710c3c
DJ
16089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16090for as_dir in $PATH
16091do
16092 IFS=$as_save_IFS
16093 test -z "$as_dir" && as_dir=.
5213506e 16094 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16096 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 16097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16098 break 2
16099 fi
16100done
5213506e
RW
16101 done
16102IFS=$as_save_IFS
1c710c3c 16103
d739199a
DJ
16104fi
16105fi
1c710c3c 16106OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 16107if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16109$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 16110else
5213506e
RW
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16112$as_echo "no" >&6; }
d739199a
DJ
16113fi
16114
5213506e 16115
e8b05380
PB
16116 fi
16117 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
16118 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 16119set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16121$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16122if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 16123 $as_echo_n "(cached) " >&6
d739199a
DJ
16124else
16125 if test -n "$OBJDUMP_FOR_TARGET"; then
16126 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16127else
1c710c3c
DJ
16128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16129for as_dir in $PATH
16130do
16131 IFS=$as_save_IFS
16132 test -z "$as_dir" && as_dir=.
5213506e 16133 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16135 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 16136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16137 break 2
16138 fi
16139done
5213506e
RW
16140 done
16141IFS=$as_save_IFS
1c710c3c 16142
d739199a
DJ
16143fi
16144fi
1c710c3c 16145OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 16146if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16148$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 16149else
5213506e
RW
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16151$as_echo "no" >&6; }
d739199a 16152fi
1c710c3c 16153
5213506e 16154
e8b05380
PB
16155 fi
16156 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16157 done
16158fi
1c710c3c 16159
d739199a
DJ
16160if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16161 set dummy objdump
16162 if test $build = $target ; then
16163 OBJDUMP_FOR_TARGET="$2"
16164 else
16165 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16166 fi
1c00b503
PB
16167else
16168 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
16169fi
16170
d1f8db0c
PB
16171else
16172 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
16173fi
16174
16175
16176
16177
e4a9a572
IS
16178if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16179 if test -n "$with_build_time_tools"; then
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
16181$as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
16182 if test -x $with_build_time_tools/otool; then
16183 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16184 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16186$as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16187 else
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16189$as_echo "no" >&6; }
16190 fi
16191 elif test $build != $host && test $have_gcc_for_target = yes; then
16192 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16193 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16194 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16195 fi
16196fi
16197if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16198 # Extract the first word of "otool", so it can be a program name with args.
16199set dummy otool; ac_word=$2
16200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16201$as_echo_n "checking for $ac_word... " >&6; }
16202if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16203 $as_echo_n "(cached) " >&6
16204else
16205 case $OTOOL_FOR_TARGET in
16206 [\\/]* | ?:[\\/]*)
16207 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16208 ;;
16209 *)
16210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16211for as_dir in $gcc_cv_tool_dirs
16212do
16213 IFS=$as_save_IFS
16214 test -z "$as_dir" && as_dir=.
16215 for ac_exec_ext in '' $ac_executable_extensions; do
16216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16217 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16219 break 2
16220 fi
16221done
16222 done
16223IFS=$as_save_IFS
16224
16225 ;;
16226esac
16227fi
16228OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16229if test -n "$OTOOL_FOR_TARGET"; then
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16231$as_echo "$OTOOL_FOR_TARGET" >&6; }
16232else
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16234$as_echo "no" >&6; }
16235fi
16236
16237
16238fi
16239if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16240
16241
16242if test -n "$OTOOL_FOR_TARGET"; then
16243 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16244elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16245 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16246fi
16247
16248if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16249 for ncn_progname in otool; do
16250 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16251set dummy ${ncn_progname}; ac_word=$2
16252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16253$as_echo_n "checking for $ac_word... " >&6; }
16254if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16255 $as_echo_n "(cached) " >&6
16256else
16257 if test -n "$OTOOL_FOR_TARGET"; then
16258 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16259else
16260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16261for as_dir in $PATH
16262do
16263 IFS=$as_save_IFS
16264 test -z "$as_dir" && as_dir=.
16265 for ac_exec_ext in '' $ac_executable_extensions; do
16266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16267 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16269 break 2
16270 fi
16271done
16272 done
16273IFS=$as_save_IFS
16274
16275fi
16276fi
16277OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16278if test -n "$OTOOL_FOR_TARGET"; then
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16280$as_echo "$OTOOL_FOR_TARGET" >&6; }
16281else
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16283$as_echo "no" >&6; }
16284fi
16285
16286
16287 done
16288fi
16289
16290if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16291 for ncn_progname in otool; do
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16293$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16294 if test -x $with_build_time_tools/${ncn_progname}; then
16295 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16297$as_echo "yes" >&6; }
16298 break
16299 else
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16301$as_echo "no" >&6; }
16302 fi
16303 done
16304fi
16305
16306if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16307 for ncn_progname in otool; do
16308 if test -n "$ncn_target_tool_prefix"; then
16309 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16310set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16312$as_echo_n "checking for $ac_word... " >&6; }
16313if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16314 $as_echo_n "(cached) " >&6
16315else
16316 if test -n "$OTOOL_FOR_TARGET"; then
16317 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16318else
16319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16320for as_dir in $PATH
16321do
16322 IFS=$as_save_IFS
16323 test -z "$as_dir" && as_dir=.
16324 for ac_exec_ext in '' $ac_executable_extensions; do
16325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16326 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16328 break 2
16329 fi
16330done
16331 done
16332IFS=$as_save_IFS
16333
16334fi
16335fi
16336OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16337if test -n "$OTOOL_FOR_TARGET"; then
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16339$as_echo "$OTOOL_FOR_TARGET" >&6; }
16340else
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16342$as_echo "no" >&6; }
16343fi
16344
16345
16346 fi
16347 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16348 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16349set dummy ${ncn_progname}; ac_word=$2
16350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16351$as_echo_n "checking for $ac_word... " >&6; }
16352if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16353 $as_echo_n "(cached) " >&6
16354else
16355 if test -n "$OTOOL_FOR_TARGET"; then
16356 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16357else
16358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16359for as_dir in $PATH
16360do
16361 IFS=$as_save_IFS
16362 test -z "$as_dir" && as_dir=.
16363 for ac_exec_ext in '' $ac_executable_extensions; do
16364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16365 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16367 break 2
16368 fi
16369done
16370 done
16371IFS=$as_save_IFS
16372
16373fi
16374fi
16375OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16376if test -n "$OTOOL_FOR_TARGET"; then
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16378$as_echo "$OTOOL_FOR_TARGET" >&6; }
16379else
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16381$as_echo "no" >&6; }
16382fi
16383
16384
16385 fi
16386 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16387 done
16388fi
16389
16390if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16391 set dummy otool
16392 if test $build = $target ; then
16393 OTOOL_FOR_TARGET="$2"
16394 else
16395 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16396 fi
16397else
16398 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16399fi
16400
16401else
16402 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16403fi
16404
16405
16406
16407
e8b05380
PB
16408if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16409 if test -n "$with_build_time_tools"; then
5213506e
RW
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16411$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16412 if test -x $with_build_time_tools/ranlib; then
16413 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16414 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16416$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 16417 else
5213506e
RW
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16419$as_echo "no" >&6; }
d1f8db0c 16420 fi
e8b05380
PB
16421 elif test $build != $host && test $have_gcc_for_target = yes; then
16422 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
16423 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16424 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
16425 fi
16426fi
3e19841a 16427if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
16428 # Extract the first word of "ranlib", so it can be a program name with args.
16429set dummy ranlib; ac_word=$2
5213506e
RW
16430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16431$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16432if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
5213506e 16433 $as_echo_n "(cached) " >&6
e8b05380 16434else
1c710c3c
DJ
16435 case $RANLIB_FOR_TARGET in
16436 [\\/]* | ?:[\\/]*)
e8b05380
PB
16437 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16438 ;;
e8b05380 16439 *)
1c710c3c
DJ
16440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16441for as_dir in $gcc_cv_tool_dirs
16442do
16443 IFS=$as_save_IFS
16444 test -z "$as_dir" && as_dir=.
5213506e 16445 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16447 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 16448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16449 break 2
16450 fi
16451done
5213506e
RW
16452 done
16453IFS=$as_save_IFS
1c710c3c 16454
e8b05380
PB
16455 ;;
16456esac
16457fi
1c710c3c 16458RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 16459if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16461$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 16462else
5213506e
RW
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16464$as_echo "no" >&6; }
e8b05380
PB
16465fi
16466
5213506e 16467
e8b05380
PB
16468fi
16469if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
16470
16471
16472if test -n "$RANLIB_FOR_TARGET"; then
16473 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16474elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16475 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16476fi
16477
16478if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16479 for ncn_progname in ranlib; do
16480 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16481set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16483$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16484if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 16485 $as_echo_n "(cached) " >&6
278a7a38
AO
16486else
16487 if test -n "$RANLIB_FOR_TARGET"; then
16488 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16489else
16490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16491for as_dir in $PATH
16492do
16493 IFS=$as_save_IFS
16494 test -z "$as_dir" && as_dir=.
5213506e 16495 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 16497 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 16498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
16499 break 2
16500 fi
16501done
5213506e
RW
16502 done
16503IFS=$as_save_IFS
278a7a38
AO
16504
16505fi
16506fi
16507RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16508if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16510$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 16511else
5213506e
RW
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16513$as_echo "no" >&6; }
278a7a38
AO
16514fi
16515
5213506e 16516
278a7a38
AO
16517 done
16518fi
16519
16520if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 16521 for ncn_progname in ranlib; do
5213506e
RW
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16523$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16524 if test -x $with_build_time_tools/${ncn_progname}; then
16525 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16527$as_echo "yes" >&6; }
e8b05380
PB
16528 break
16529 else
5213506e
RW
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16531$as_echo "no" >&6; }
e8b05380
PB
16532 fi
16533 done
16534fi
16535
16536if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16537 for ncn_progname in ranlib; do
16538 if test -n "$ncn_target_tool_prefix"; then
16539 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 16540set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
16541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16542$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16543if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 16544 $as_echo_n "(cached) " >&6
ca9f4b81 16545else
4de997d1
PB
16546 if test -n "$RANLIB_FOR_TARGET"; then
16547 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 16548else
1c710c3c
DJ
16549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16550for as_dir in $PATH
16551do
16552 IFS=$as_save_IFS
16553 test -z "$as_dir" && as_dir=.
5213506e 16554 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16556 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 16557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16558 break 2
16559 fi
16560done
5213506e
RW
16561 done
16562IFS=$as_save_IFS
1c710c3c 16563
ca9f4b81
AO
16564fi
16565fi
1c710c3c 16566RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 16567if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16569$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 16570else
5213506e
RW
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16572$as_echo "no" >&6; }
ca9f4b81
AO
16573fi
16574
5213506e 16575
e8b05380
PB
16576 fi
16577 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16578 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 16579set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16581$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16582if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 16583 $as_echo_n "(cached) " >&6
ca9f4b81 16584else
2693c0b0
PB
16585 if test -n "$RANLIB_FOR_TARGET"; then
16586 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 16587else
1c710c3c
DJ
16588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16589for as_dir in $PATH
16590do
16591 IFS=$as_save_IFS
16592 test -z "$as_dir" && as_dir=.
5213506e 16593 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16595 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 16596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16597 break 2
16598 fi
16599done
5213506e
RW
16600 done
16601IFS=$as_save_IFS
1c710c3c 16602
ca9f4b81
AO
16603fi
16604fi
1c710c3c 16605RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 16606if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16608$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 16609else
5213506e
RW
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16611$as_echo "no" >&6; }
ca9f4b81 16612fi
1c710c3c 16613
5213506e 16614
e8b05380
PB
16615 fi
16616 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16617 done
16618fi
1c710c3c 16619
e8b05380
PB
16620if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16621 set dummy ranlib
16622 if test $build = $target ; then
16623 RANLIB_FOR_TARGET="$2"
16624 else
16625 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 16626 fi
1c00b503
PB
16627else
16628 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 16629fi
2693c0b0 16630
d1f8db0c
PB
16631else
16632 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
16633fi
16634
e8b05380
PB
16635
16636
16637
e7a82751
RM
16638if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16639 if test -n "$with_build_time_tools"; then
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16641$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16642 if test -x $with_build_time_tools/readelf; then
16643 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16644 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16646$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16647 else
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16649$as_echo "no" >&6; }
16650 fi
16651 elif test $build != $host && test $have_gcc_for_target = yes; then
16652 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16653 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16654 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16655 fi
16656fi
16657if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16658 # Extract the first word of "readelf", so it can be a program name with args.
16659set dummy readelf; ac_word=$2
16660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16661$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16662if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16663 $as_echo_n "(cached) " >&6
16664else
16665 case $READELF_FOR_TARGET in
16666 [\\/]* | ?:[\\/]*)
16667 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16668 ;;
16669 *)
16670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16671for as_dir in $gcc_cv_tool_dirs
16672do
16673 IFS=$as_save_IFS
16674 test -z "$as_dir" && as_dir=.
16675 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16677 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16679 break 2
16680 fi
16681done
16682 done
16683IFS=$as_save_IFS
16684
16685 ;;
16686esac
16687fi
16688READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16689if test -n "$READELF_FOR_TARGET"; then
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16691$as_echo "$READELF_FOR_TARGET" >&6; }
16692else
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16694$as_echo "no" >&6; }
16695fi
16696
16697
16698fi
16699if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16700
16701
16702if test -n "$READELF_FOR_TARGET"; then
16703 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16704elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16705 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16706fi
16707
16708if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16709 for ncn_progname in readelf; do
16710 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16711set dummy ${ncn_progname}; ac_word=$2
16712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16713$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16714if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16715 $as_echo_n "(cached) " >&6
16716else
16717 if test -n "$READELF_FOR_TARGET"; then
16718 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16719else
16720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16721for as_dir in $PATH
16722do
16723 IFS=$as_save_IFS
16724 test -z "$as_dir" && as_dir=.
16725 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16727 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16729 break 2
16730 fi
16731done
16732 done
16733IFS=$as_save_IFS
16734
16735fi
16736fi
16737READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16738if test -n "$READELF_FOR_TARGET"; then
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16740$as_echo "$READELF_FOR_TARGET" >&6; }
16741else
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16743$as_echo "no" >&6; }
16744fi
16745
16746
16747 done
16748fi
16749
16750if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16751 for ncn_progname in readelf; do
16752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16753$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16754 if test -x $with_build_time_tools/${ncn_progname}; then
16755 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16757$as_echo "yes" >&6; }
16758 break
16759 else
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16761$as_echo "no" >&6; }
16762 fi
16763 done
16764fi
16765
16766if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16767 for ncn_progname in readelf; do
16768 if test -n "$ncn_target_tool_prefix"; then
16769 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16770set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16772$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16773if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16774 $as_echo_n "(cached) " >&6
16775else
16776 if test -n "$READELF_FOR_TARGET"; then
16777 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16778else
16779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16780for as_dir in $PATH
16781do
16782 IFS=$as_save_IFS
16783 test -z "$as_dir" && as_dir=.
16784 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16786 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16788 break 2
16789 fi
16790done
16791 done
16792IFS=$as_save_IFS
16793
16794fi
16795fi
16796READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16797if test -n "$READELF_FOR_TARGET"; then
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16799$as_echo "$READELF_FOR_TARGET" >&6; }
16800else
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16802$as_echo "no" >&6; }
16803fi
16804
16805
16806 fi
16807 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16808 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16809set dummy ${ncn_progname}; ac_word=$2
16810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16811$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16812if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16813 $as_echo_n "(cached) " >&6
16814else
16815 if test -n "$READELF_FOR_TARGET"; then
16816 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16817else
16818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16819for as_dir in $PATH
16820do
16821 IFS=$as_save_IFS
16822 test -z "$as_dir" && as_dir=.
16823 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16825 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16827 break 2
16828 fi
16829done
16830 done
16831IFS=$as_save_IFS
16832
16833fi
16834fi
16835READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16836if test -n "$READELF_FOR_TARGET"; then
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16838$as_echo "$READELF_FOR_TARGET" >&6; }
16839else
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16841$as_echo "no" >&6; }
16842fi
16843
16844
16845 fi
16846 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16847 done
16848fi
16849
16850if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16851 set dummy readelf
16852 if test $build = $target ; then
16853 READELF_FOR_TARGET="$2"
16854 else
16855 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16856 fi
16857else
16858 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16859fi
16860
16861else
16862 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16863fi
16864
16865
16866
16867
e8b05380
PB
16868if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16869 if test -n "$with_build_time_tools"; then
5213506e
RW
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16871$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16872 if test -x $with_build_time_tools/strip; then
16873 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16874 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16876$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 16877 else
5213506e
RW
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16879$as_echo "no" >&6; }
d1f8db0c 16880 fi
e8b05380
PB
16881 elif test $build != $host && test $have_gcc_for_target = yes; then
16882 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
16883 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16884 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
16885 fi
16886fi
3e19841a 16887if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
16888 # Extract the first word of "strip", so it can be a program name with args.
16889set dummy strip; ac_word=$2
5213506e
RW
16890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16891$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16892if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
5213506e 16893 $as_echo_n "(cached) " >&6
e8b05380 16894else
1c710c3c
DJ
16895 case $STRIP_FOR_TARGET in
16896 [\\/]* | ?:[\\/]*)
e8b05380
PB
16897 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16898 ;;
e8b05380 16899 *)
1c710c3c
DJ
16900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16901for as_dir in $gcc_cv_tool_dirs
16902do
16903 IFS=$as_save_IFS
16904 test -z "$as_dir" && as_dir=.
5213506e 16905 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16907 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 16908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16909 break 2
16910 fi
16911done
5213506e
RW
16912 done
16913IFS=$as_save_IFS
1c710c3c 16914
e8b05380
PB
16915 ;;
16916esac
16917fi
1c710c3c 16918STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 16919if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16921$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 16922else
5213506e
RW
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16924$as_echo "no" >&6; }
e8b05380
PB
16925fi
16926
5213506e 16927
e8b05380
PB
16928fi
16929if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
16930
16931
16932if test -n "$STRIP_FOR_TARGET"; then
16933 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16934elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16935 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16936fi
16937
16938if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16939 for ncn_progname in strip; do
16940 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16941set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16943$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16944if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 16945 $as_echo_n "(cached) " >&6
278a7a38
AO
16946else
16947 if test -n "$STRIP_FOR_TARGET"; then
16948 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16949else
16950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16951for as_dir in $PATH
16952do
16953 IFS=$as_save_IFS
16954 test -z "$as_dir" && as_dir=.
5213506e 16955 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 16957 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 16958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
16959 break 2
16960 fi
16961done
5213506e
RW
16962 done
16963IFS=$as_save_IFS
278a7a38
AO
16964
16965fi
16966fi
16967STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16968if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16970$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 16971else
5213506e
RW
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16973$as_echo "no" >&6; }
278a7a38
AO
16974fi
16975
5213506e 16976
278a7a38
AO
16977 done
16978fi
16979
16980if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 16981 for ncn_progname in strip; do
5213506e
RW
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16983$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16984 if test -x $with_build_time_tools/${ncn_progname}; then
16985 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16987$as_echo "yes" >&6; }
e8b05380
PB
16988 break
16989 else
5213506e
RW
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16991$as_echo "no" >&6; }
e8b05380
PB
16992 fi
16993 done
16994fi
16995
16996if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16997 for ncn_progname in strip; do
16998 if test -n "$ncn_target_tool_prefix"; then
16999 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 17000set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
17001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17002$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17003if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 17004 $as_echo_n "(cached) " >&6
af71363e
AS
17005else
17006 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
17007 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17008else
17009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17010for as_dir in $PATH
17011do
17012 IFS=$as_save_IFS
17013 test -z "$as_dir" && as_dir=.
5213506e 17014 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 17016 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 17017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
17018 break 2
17019 fi
17020done
5213506e
RW
17021 done
17022IFS=$as_save_IFS
1c710c3c 17023
040b1c5a
GK
17024fi
17025fi
1c710c3c 17026STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 17027if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17029$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 17030else
5213506e
RW
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17032$as_echo "no" >&6; }
040b1c5a
GK
17033fi
17034
5213506e 17035
e8b05380
PB
17036 fi
17037 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
17038 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 17039set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
17040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17041$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17042if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 17043 $as_echo_n "(cached) " >&6
040b1c5a
GK
17044else
17045 if test -n "$STRIP_FOR_TARGET"; then
17046 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17047else
1c710c3c
DJ
17048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17049for as_dir in $PATH
17050do
17051 IFS=$as_save_IFS
17052 test -z "$as_dir" && as_dir=.
5213506e 17053 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 17055 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 17056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
17057 break 2
17058 fi
17059done
5213506e
RW
17060 done
17061IFS=$as_save_IFS
1c710c3c 17062
040b1c5a
GK
17063fi
17064fi
1c710c3c 17065STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 17066if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17068$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 17069else
5213506e
RW
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17071$as_echo "no" >&6; }
040b1c5a 17072fi
1c710c3c 17073
5213506e 17074
e8b05380
PB
17075 fi
17076 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
17077 done
17078fi
1c710c3c 17079
040b1c5a
GK
17080if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
17081 set dummy strip
17082 if test $build = $target ; then
17083 STRIP_FOR_TARGET="$2"
17084 else
17085 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17086 fi
1c00b503
PB
17087else
17088 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
17089fi
17090
d1f8db0c
PB
17091else
17092 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
17093fi
17094
17095
17096
17097
17098if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17099 if test -n "$with_build_time_tools"; then
5213506e
RW
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
17101$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
17102 if test -x $with_build_time_tools/windres; then
17103 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
17104 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
17105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
17106$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 17107 else
5213506e
RW
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17109$as_echo "no" >&6; }
d1f8db0c 17110 fi
e8b05380
PB
17111 elif test $build != $host && test $have_gcc_for_target = yes; then
17112 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
17113 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
17114 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
17115 fi
17116fi
3e19841a 17117if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
17118 # Extract the first word of "windres", so it can be a program name with args.
17119set dummy windres; ac_word=$2
5213506e
RW
17120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17121$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17122if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
5213506e 17123 $as_echo_n "(cached) " >&6
e8b05380 17124else
1c710c3c
DJ
17125 case $WINDRES_FOR_TARGET in
17126 [\\/]* | ?:[\\/]*)
e8b05380
PB
17127 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17128 ;;
e8b05380 17129 *)
1c710c3c
DJ
17130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17131for as_dir in $gcc_cv_tool_dirs
17132do
17133 IFS=$as_save_IFS
17134 test -z "$as_dir" && as_dir=.
5213506e 17135 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 17137 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 17138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
17139 break 2
17140 fi
17141done
5213506e
RW
17142 done
17143IFS=$as_save_IFS
1c710c3c 17144
e8b05380
PB
17145 ;;
17146esac
17147fi
1c710c3c 17148WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 17149if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17151$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 17152else
5213506e
RW
17153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17154$as_echo "no" >&6; }
e8b05380
PB
17155fi
17156
5213506e 17157
e8b05380
PB
17158fi
17159if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
17160
17161
17162if test -n "$WINDRES_FOR_TARGET"; then
17163 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17164elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17165 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17166fi
17167
17168if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17169 for ncn_progname in windres; do
17170 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17171set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
17172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17173$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17174if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 17175 $as_echo_n "(cached) " >&6
278a7a38
AO
17176else
17177 if test -n "$WINDRES_FOR_TARGET"; then
17178 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17179else
17180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17181for as_dir in $PATH
17182do
17183 IFS=$as_save_IFS
17184 test -z "$as_dir" && as_dir=.
5213506e 17185 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 17187 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 17188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
17189 break 2
17190 fi
17191done
5213506e
RW
17192 done
17193IFS=$as_save_IFS
278a7a38
AO
17194
17195fi
17196fi
17197WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17198if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17200$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 17201else
5213506e
RW
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17203$as_echo "no" >&6; }
278a7a38
AO
17204fi
17205
5213506e 17206
278a7a38
AO
17207 done
17208fi
17209
17210if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 17211 for ncn_progname in windres; do
5213506e
RW
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17213$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
17214 if test -x $with_build_time_tools/${ncn_progname}; then
17215 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17217$as_echo "yes" >&6; }
e8b05380
PB
17218 break
17219 else
5213506e
RW
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17221$as_echo "no" >&6; }
e8b05380
PB
17222 fi
17223 done
17224fi
17225
17226if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17227 for ncn_progname in windres; do
17228 if test -n "$ncn_target_tool_prefix"; then
17229 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 17230set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
17231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17232$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17233if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 17234 $as_echo_n "(cached) " >&6
ca9f4b81 17235else
4de997d1
PB
17236 if test -n "$WINDRES_FOR_TARGET"; then
17237 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 17238else
1c710c3c
DJ
17239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17240for as_dir in $PATH
17241do
17242 IFS=$as_save_IFS
17243 test -z "$as_dir" && as_dir=.
5213506e 17244 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 17246 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 17247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
17248 break 2
17249 fi
17250done
5213506e
RW
17251 done
17252IFS=$as_save_IFS
1c710c3c 17253
ca9f4b81
AO
17254fi
17255fi
1c710c3c 17256WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 17257if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17259$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 17260else
5213506e
RW
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17262$as_echo "no" >&6; }
ca9f4b81
AO
17263fi
17264
5213506e 17265
e8b05380
PB
17266 fi
17267 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17268 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 17269set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
17270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17271$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17272if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 17273 $as_echo_n "(cached) " >&6
ca9f4b81 17274else
2693c0b0
PB
17275 if test -n "$WINDRES_FOR_TARGET"; then
17276 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 17277else
1c710c3c
DJ
17278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17279for as_dir in $PATH
17280do
17281 IFS=$as_save_IFS
17282 test -z "$as_dir" && as_dir=.
5213506e 17283 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 17285 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 17286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
17287 break 2
17288 fi
17289done
5213506e
RW
17290 done
17291IFS=$as_save_IFS
1c710c3c 17292
ca9f4b81
AO
17293fi
17294fi
1c710c3c 17295WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 17296if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17298$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 17299else
5213506e
RW
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17301$as_echo "no" >&6; }
ca9f4b81 17302fi
1c710c3c 17303
5213506e 17304
e8b05380
PB
17305 fi
17306 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17307 done
17308fi
1c710c3c 17309
2693c0b0
PB
17310if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17311 set dummy windres
17312 if test $build = $target ; then
17313 WINDRES_FOR_TARGET="$2"
ca9f4b81 17314 else
2693c0b0 17315 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 17316 fi
1c00b503
PB
17317else
17318 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
17319fi
17320
d1f8db0c
PB
17321else
17322 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
17323fi
17324
4977bab6 17325
901119ae
KT
17326
17327
17328if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17329 if test -n "$with_build_time_tools"; then
5213506e
RW
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17331$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
17332 if test -x $with_build_time_tools/windmc; then
17333 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17334 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17336$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 17337 else
5213506e
RW
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17339$as_echo "no" >&6; }
901119ae
KT
17340 fi
17341 elif test $build != $host && test $have_gcc_for_target = yes; then
17342 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
17343 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17344 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
17345 fi
17346fi
17347if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17348 # Extract the first word of "windmc", so it can be a program name with args.
17349set dummy windmc; ac_word=$2
5213506e
RW
17350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17351$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17352if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
5213506e 17353 $as_echo_n "(cached) " >&6
901119ae
KT
17354else
17355 case $WINDMC_FOR_TARGET in
17356 [\\/]* | ?:[\\/]*)
17357 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17358 ;;
17359 *)
17360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17361for as_dir in $gcc_cv_tool_dirs
17362do
17363 IFS=$as_save_IFS
17364 test -z "$as_dir" && as_dir=.
5213506e 17365 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17367 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 17368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17369 break 2
17370 fi
17371done
5213506e
RW
17372 done
17373IFS=$as_save_IFS
901119ae
KT
17374
17375 ;;
17376esac
17377fi
17378WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 17379if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17381$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17382else
5213506e
RW
17383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17384$as_echo "no" >&6; }
901119ae
KT
17385fi
17386
5213506e 17387
901119ae
KT
17388fi
17389if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17390
17391
17392if test -n "$WINDMC_FOR_TARGET"; then
17393 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17394elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17395 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17396fi
17397
17398if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17399 for ncn_progname in windmc; do
17400 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17401set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
17402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17403$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17404if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 17405 $as_echo_n "(cached) " >&6
901119ae
KT
17406else
17407 if test -n "$WINDMC_FOR_TARGET"; then
17408 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17409else
17410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17411for as_dir in $PATH
17412do
17413 IFS=$as_save_IFS
17414 test -z "$as_dir" && as_dir=.
5213506e 17415 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17417 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 17418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17419 break 2
17420 fi
17421done
5213506e
RW
17422 done
17423IFS=$as_save_IFS
901119ae
KT
17424
17425fi
17426fi
17427WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17428if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17430$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17431else
5213506e
RW
17432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17433$as_echo "no" >&6; }
901119ae
KT
17434fi
17435
5213506e 17436
901119ae
KT
17437 done
17438fi
17439
17440if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17441 for ncn_progname in windmc; do
5213506e
RW
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17443$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
17444 if test -x $with_build_time_tools/${ncn_progname}; then
17445 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
17446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17447$as_echo "yes" >&6; }
901119ae
KT
17448 break
17449 else
5213506e
RW
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17451$as_echo "no" >&6; }
901119ae
KT
17452 fi
17453 done
17454fi
17455
17456if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17457 for ncn_progname in windmc; do
17458 if test -n "$ncn_target_tool_prefix"; then
17459 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17460set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
17461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17462$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17463if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 17464 $as_echo_n "(cached) " >&6
901119ae
KT
17465else
17466 if test -n "$WINDMC_FOR_TARGET"; then
17467 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17468else
17469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17470for as_dir in $PATH
17471do
17472 IFS=$as_save_IFS
17473 test -z "$as_dir" && as_dir=.
5213506e 17474 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17476 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 17477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17478 break 2
17479 fi
17480done
5213506e
RW
17481 done
17482IFS=$as_save_IFS
901119ae
KT
17483
17484fi
17485fi
17486WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17487if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17489$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17490else
5213506e
RW
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17492$as_echo "no" >&6; }
901119ae
KT
17493fi
17494
5213506e 17495
901119ae
KT
17496 fi
17497 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17498 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17499set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
17500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17501$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17502if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 17503 $as_echo_n "(cached) " >&6
901119ae
KT
17504else
17505 if test -n "$WINDMC_FOR_TARGET"; then
17506 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17507else
17508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17509for as_dir in $PATH
17510do
17511 IFS=$as_save_IFS
17512 test -z "$as_dir" && as_dir=.
5213506e 17513 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17515 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 17516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17517 break 2
17518 fi
17519done
5213506e
RW
17520 done
17521IFS=$as_save_IFS
901119ae
KT
17522
17523fi
17524fi
17525WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17526if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17528$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17529else
5213506e
RW
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17531$as_echo "no" >&6; }
901119ae
KT
17532fi
17533
5213506e 17534
901119ae
KT
17535 fi
17536 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17537 done
17538fi
17539
17540if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17541 set dummy windmc
17542 if test $build = $target ; then
17543 WINDMC_FOR_TARGET="$2"
17544 else
17545 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17546 fi
1c00b503
PB
17547else
17548 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
17549fi
17550
17551else
17552 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17553fi
17554
17555
2abefe3d
PB
17556RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17557
5213506e
RW
17558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17559$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 17560if test "x${build}" != "x${host}" ; then
e8b05380
PB
17561 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17562 # We already found the complete path
172e41aa 17563 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17565$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17566 else
17567 # Canadian cross, just use what we found
5213506e
RW
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17569$as_echo "pre-installed" >&6; }
e8b05380 17570 fi
2abefe3d
PB
17571else
17572 ok=yes
17573 case " ${configdirs} " in
17574 *" binutils "*) ;;
17575 *) ok=no ;;
17576 esac
1c710c3c 17577
2abefe3d
PB
17578 if test $ok = yes; then
17579 # An in-tree tool is available and we can use it
17580 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17582$as_echo "just compiled" >&6; }
e8b05380
PB
17583 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17584 # We already found the complete path
172e41aa 17585 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17587$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17588 elif test "x$target" = "x$host"; then
17589 # We can use an host tool
17590 AR_FOR_TARGET='$(AR)'
5213506e
RW
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17592$as_echo "host tool" >&6; }
2abefe3d
PB
17593 else
17594 # We need a cross tool
5213506e
RW
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17596$as_echo "pre-installed" >&6; }
2abefe3d
PB
17597 fi
17598fi
0b0dc272 17599
5213506e
RW
17600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17601$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 17602if test "x${build}" != "x${host}" ; then
e8b05380
PB
17603 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17604 # We already found the complete path
172e41aa 17605 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17607$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17608 else
17609 # Canadian cross, just use what we found
5213506e
RW
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17611$as_echo "pre-installed" >&6; }
e8b05380 17612 fi
2abefe3d
PB
17613else
17614 ok=yes
17615 case " ${configdirs} " in
17616 *" gas "*) ;;
17617 *) ok=no ;;
17618 esac
1c710c3c 17619
2abefe3d
PB
17620 if test $ok = yes; then
17621 # An in-tree tool is available and we can use it
17622 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17624$as_echo "just compiled" >&6; }
e8b05380
PB
17625 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17626 # We already found the complete path
172e41aa 17627 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17629$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17630 elif test "x$target" = "x$host"; then
17631 # We can use an host tool
17632 AS_FOR_TARGET='$(AS)'
5213506e
RW
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17634$as_echo "host tool" >&6; }
2abefe3d
PB
17635 else
17636 # We need a cross tool
5213506e
RW
17637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17638$as_echo "pre-installed" >&6; }
2abefe3d
PB
17639 fi
17640fi
0b0dc272 17641
5213506e
RW
17642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17643$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 17644if test "x${build}" != "x${host}" ; then
e8b05380
PB
17645 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17646 # We already found the complete path
172e41aa 17647 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
17648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17649$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17650 else
17651 # Canadian cross, just use what we found
5213506e
RW
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17653$as_echo "pre-installed" >&6; }
e8b05380 17654 fi
2abefe3d
PB
17655else
17656 ok=yes
17657 case " ${configdirs} " in
17658 *" gcc "*) ;;
17659 *) ok=no ;;
17660 esac
1c710c3c 17661
2abefe3d
PB
17662 if test $ok = yes; then
17663 # An in-tree tool is available and we can use it
17664 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17666$as_echo "just compiled" >&6; }
e8b05380
PB
17667 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17668 # We already found the complete path
172e41aa 17669 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17671$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17672 elif test "x$target" = "x$host"; then
17673 # We can use an host tool
17674 CC_FOR_TARGET='$(CC)'
5213506e
RW
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17676$as_echo "host tool" >&6; }
2abefe3d
PB
17677 else
17678 # We need a cross tool
5213506e
RW
17679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17680$as_echo "pre-installed" >&6; }
2abefe3d
PB
17681 fi
17682fi
0b0dc272 17683
5213506e
RW
17684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17685$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 17686if test "x${build}" != "x${host}" ; then
e8b05380
PB
17687 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17688 # We already found the complete path
172e41aa 17689 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17691$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17692 else
17693 # Canadian cross, just use what we found
5213506e
RW
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17695$as_echo "pre-installed" >&6; }
e8b05380 17696 fi
2abefe3d
PB
17697else
17698 ok=yes
17699 case " ${configdirs} " in
17700 *" gcc "*) ;;
17701 *) ok=no ;;
17702 esac
17703 case ,${enable_languages}, in
17704 *,c++,*) ;;
17705 *) ok=no ;;
17706 esac
17707 if test $ok = yes; then
17708 # An in-tree tool is available and we can use it
2077db1b 17709 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
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17711$as_echo "just compiled" >&6; }
e8b05380
PB
17712 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17713 # We already found the complete path
172e41aa 17714 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17716$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17717 elif test "x$target" = "x$host"; then
17718 # We can use an host tool
17719 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
17720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17721$as_echo "host tool" >&6; }
2abefe3d
PB
17722 else
17723 # We need a cross tool
5213506e
RW
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17725$as_echo "pre-installed" >&6; }
2abefe3d
PB
17726 fi
17727fi
0b0dc272 17728
5213506e
RW
17729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17730$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 17731if test "x${build}" != "x${host}" ; then
e8b05380
PB
17732 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17733 # We already found the complete path
172e41aa 17734 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
17735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17736$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17737 else
17738 # Canadian cross, just use what we found
5213506e
RW
17739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17740$as_echo "pre-installed" >&6; }
e8b05380 17741 fi
2abefe3d
PB
17742else
17743 ok=yes
17744 case " ${configdirs} " in
17745 *" gcc "*) ;;
17746 *) ok=no ;;
17747 esac
17748 case ,${enable_languages}, in
17749 *,c++,*) ;;
17750 *) ok=no ;;
17751 esac
17752 if test $ok = yes; then
17753 # An in-tree tool is available and we can use it
2077db1b 17754 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
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17756$as_echo "just compiled" >&6; }
e8b05380
PB
17757 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17758 # We already found the complete path
172e41aa 17759 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17761$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17762 elif test "x$target" = "x$host"; then
17763 # We can use an host tool
17764 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17766$as_echo "host tool" >&6; }
2abefe3d
PB
17767 else
17768 # We need a cross tool
5213506e
RW
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17770$as_echo "pre-installed" >&6; }
2abefe3d
PB
17771 fi
17772fi
0b0dc272 17773
5213506e
RW
17774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17775$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 17776if test "x${build}" != "x${host}" ; then
e8b05380
PB
17777 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17778 # We already found the complete path
172e41aa 17779 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17781$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17782 else
17783 # Canadian cross, just use what we found
5213506e
RW
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17785$as_echo "pre-installed" >&6; }
e8b05380 17786 fi
2abefe3d
PB
17787else
17788 ok=yes
17789 case " ${configdirs} " in
17790 *" binutils "*) ;;
17791 *) ok=no ;;
17792 esac
1c710c3c 17793
2abefe3d
PB
17794 if test $ok = yes; then
17795 # An in-tree tool is available and we can use it
17796 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17798$as_echo "just compiled" >&6; }
e8b05380
PB
17799 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17800 # We already found the complete path
172e41aa 17801 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17803$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17804 elif test "x$target" = "x$host"; then
17805 # We can use an host tool
17806 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17808$as_echo "host tool" >&6; }
2abefe3d
PB
17809 else
17810 # We need a cross tool
5213506e
RW
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17812$as_echo "pre-installed" >&6; }
2abefe3d
PB
17813 fi
17814fi
0b0dc272 17815
3b5e8ee4
IS
17816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17817$as_echo_n "checking where to find the target dsymutil... " >&6; }
17818if test "x${build}" != "x${host}" ; then
17819 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17820 # We already found the complete path
17821 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17823$as_echo "pre-installed in $ac_dir" >&6; }
17824 else
17825 # Canadian cross, just use what we found
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17827$as_echo "pre-installed" >&6; }
17828 fi
17829else
17830 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17831 # We already found the complete path
17832 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17834$as_echo "pre-installed in $ac_dir" >&6; }
17835 elif test "x$target" = "x$host"; then
17836 # We can use an host tool
17837 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17839$as_echo "host tool" >&6; }
17840 else
17841 # We need a cross tool
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17843$as_echo "pre-installed" >&6; }
17844 fi
17845fi
17846
5213506e
RW
17847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17848$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 17849if test "x${build}" != "x${host}" ; then
e8b05380
PB
17850 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17851 # We already found the complete path
172e41aa 17852 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17854$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17855 else
17856 # Canadian cross, just use what we found
5213506e
RW
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17858$as_echo "pre-installed" >&6; }
e8b05380 17859 fi
2abefe3d
PB
17860else
17861 ok=yes
17862 case " ${configdirs} " in
17863 *" gcc "*) ;;
17864 *) ok=no ;;
17865 esac
1c710c3c 17866
2abefe3d
PB
17867 if test $ok = yes; then
17868 # An in-tree tool is available and we can use it
17869 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17871$as_echo "just compiled" >&6; }
e8b05380
PB
17872 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17873 # We already found the complete path
172e41aa 17874 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17876$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17877 elif test "x$target" = "x$host"; then
17878 # We can use an host tool
17879 GCC_FOR_TARGET='$()'
5213506e
RW
17880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17881$as_echo "host tool" >&6; }
2abefe3d
PB
17882 else
17883 # We need a cross tool
5213506e
RW
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17885$as_echo "pre-installed" >&6; }
2abefe3d
PB
17886 fi
17887fi
0b0dc272 17888
5213506e
RW
17889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17890$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 17891if test "x${build}" != "x${host}" ; then
e8b05380
PB
17892 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17893 # We already found the complete path
172e41aa 17894 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
17895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17896$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17897 else
17898 # Canadian cross, just use what we found
5213506e
RW
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17900$as_echo "pre-installed" >&6; }
e8b05380 17901 fi
2abefe3d
PB
17902else
17903 ok=yes
17904 case " ${configdirs} " in
17905 *" gcc "*) ;;
17906 *) ok=no ;;
17907 esac
17908 case ,${enable_languages}, in
17909 *,fortran,*) ;;
17910 *) ok=no ;;
17911 esac
17912 if test $ok = yes; then
17913 # An in-tree tool is available and we can use it
17914 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17916$as_echo "just compiled" >&6; }
e8b05380
PB
17917 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17918 # We already found the complete path
172e41aa 17919 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17921$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17922 elif test "x$target" = "x$host"; then
17923 # We can use an host tool
17924 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17926$as_echo "host tool" >&6; }
2abefe3d
PB
17927 else
17928 # We need a cross tool
5213506e
RW
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17930$as_echo "pre-installed" >&6; }
2abefe3d
PB
17931 fi
17932fi
0b0dc272 17933
632e2a07
ILT
17934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17935$as_echo_n "checking where to find the target gccgo... " >&6; }
17936if test "x${build}" != "x${host}" ; then
17937 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17938 # We already found the complete path
17939 ac_dir=`dirname $GOC_FOR_TARGET`
17940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17941$as_echo "pre-installed in $ac_dir" >&6; }
17942 else
17943 # Canadian cross, just use what we found
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17945$as_echo "pre-installed" >&6; }
17946 fi
17947else
17948 ok=yes
17949 case " ${configdirs} " in
17950 *" gcc "*) ;;
17951 *) ok=no ;;
17952 esac
17953 case ,${enable_languages}, in
17954 *,go,*) ;;
17955 *) ok=no ;;
17956 esac
17957 if test $ok = yes; then
17958 # An in-tree tool is available and we can use it
17959 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17961$as_echo "just compiled" >&6; }
17962 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17963 # We already found the complete path
17964 ac_dir=`dirname $GOC_FOR_TARGET`
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17966$as_echo "pre-installed in $ac_dir" >&6; }
17967 elif test "x$target" = "x$host"; then
17968 # We can use an host tool
17969 GOC_FOR_TARGET='$(GOC)'
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17971$as_echo "host tool" >&6; }
17972 else
17973 # We need a cross tool
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17975$as_echo "pre-installed" >&6; }
17976 fi
17977fi
17978
b4c522fa
IB
17979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17980$as_echo_n "checking where to find the target gdc... " >&6; }
17981if test "x${build}" != "x${host}" ; then
17982 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17983 # We already found the complete path
17984 ac_dir=`dirname $GDC_FOR_TARGET`
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17986$as_echo "pre-installed in $ac_dir" >&6; }
17987 else
17988 # Canadian cross, just use what we found
17989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17990$as_echo "pre-installed" >&6; }
17991 fi
17992else
17993 ok=yes
17994 case " ${configdirs} " in
17995 *" gcc "*) ;;
17996 *) ok=no ;;
17997 esac
17998 case ,${enable_languages}, in
17999 *,d,*) ;;
18000 *) ok=no ;;
18001 esac
18002 if test $ok = yes; then
18003 # An in-tree tool is available and we can use it
18004 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
18005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18006$as_echo "just compiled" >&6; }
18007 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
18008 # We already found the complete path
18009 ac_dir=`dirname $GDC_FOR_TARGET`
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18011$as_echo "pre-installed in $ac_dir" >&6; }
18012 elif test "x$target" = "x$host"; then
18013 # We can use an host tool
18014 GDC_FOR_TARGET='$(GDC)'
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18016$as_echo "host tool" >&6; }
18017 else
18018 # We need a cross tool
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18020$as_echo "pre-installed" >&6; }
18021 fi
18022fi
18023
1eee94d3
GM
18024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gm2" >&5
18025$as_echo_n "checking where to find the target gm2... " >&6; }
18026if test "x${build}" != "x${host}" ; then
18027 if expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
18028 # We already found the complete path
18029 ac_dir=`dirname $GM2_FOR_TARGET`
18030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18031$as_echo "pre-installed in $ac_dir" >&6; }
18032 else
18033 # Canadian cross, just use what we found
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18035$as_echo "pre-installed" >&6; }
18036 fi
18037else
18038 ok=yes
18039 case " ${configdirs} " in
18040 *" gcc "*) ;;
18041 *) ok=no ;;
18042 esac
18043 case ,${enable_languages}, in
18044 *,m2,*) ;;
18045 *) ok=no ;;
18046 esac
18047 if test $ok = yes; then
18048 # An in-tree tool is available and we can use it
18049 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18051$as_echo "just compiled" >&6; }
18052 elif expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
18053 # We already found the complete path
18054 ac_dir=`dirname $GM2_FOR_TARGET`
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18056$as_echo "pre-installed in $ac_dir" >&6; }
18057 elif test "x$target" = "x$host"; then
18058 # We can use an host tool
18059 GM2_FOR_TARGET='$(GM2)'
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18061$as_echo "host tool" >&6; }
18062 else
18063 # We need a cross tool
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18065$as_echo "pre-installed" >&6; }
18066 fi
18067fi
18068
5213506e
RW
18069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
18070$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 18071if test "x${build}" != "x${host}" ; then
e8b05380
PB
18072 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18073 # We already found the complete path
172e41aa 18074 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18076$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18077 else
18078 # Canadian cross, just use what we found
5213506e
RW
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18080$as_echo "pre-installed" >&6; }
e8b05380 18081 fi
2abefe3d
PB
18082else
18083 ok=yes
18084 case " ${configdirs} " in
18085 *" ld "*) ;;
18086 *) ok=no ;;
18087 esac
1c710c3c 18088
2abefe3d
PB
18089 if test $ok = yes; then
18090 # An in-tree tool is available and we can use it
18091 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18093$as_echo "just compiled" >&6; }
e8b05380
PB
18094 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18095 # We already found the complete path
172e41aa 18096 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18098$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18099 elif test "x$target" = "x$host"; then
18100 # We can use an host tool
18101 LD_FOR_TARGET='$(LD)'
5213506e
RW
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18103$as_echo "host tool" >&6; }
2abefe3d
PB
18104 else
18105 # We need a cross tool
5213506e
RW
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18107$as_echo "pre-installed" >&6; }
2abefe3d
PB
18108 fi
18109fi
0b0dc272 18110
5213506e
RW
18111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
18112$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 18113if test "x${build}" != "x${host}" ; then
e8b05380
PB
18114 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18115 # We already found the complete path
172e41aa 18116 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
18117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18118$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18119 else
18120 # Canadian cross, just use what we found
5213506e
RW
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18122$as_echo "pre-installed" >&6; }
e8b05380 18123 fi
2abefe3d 18124else
e8b05380
PB
18125 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18126 # We already found the complete path
172e41aa 18127 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18129$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 18130 elif test "x$target" = "x$host"; then
2abefe3d
PB
18131 # We can use an host tool
18132 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18134$as_echo "host tool" >&6; }
2abefe3d
PB
18135 else
18136 # We need a cross tool
5213506e
RW
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18138$as_echo "pre-installed" >&6; }
2abefe3d
PB
18139 fi
18140fi
0b0dc272 18141
5213506e
RW
18142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
18143$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 18144if test "x${build}" != "x${host}" ; then
e8b05380
PB
18145 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18146 # We already found the complete path
172e41aa 18147 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18149$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18150 else
18151 # Canadian cross, just use what we found
5213506e
RW
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18153$as_echo "pre-installed" >&6; }
e8b05380 18154 fi
2abefe3d
PB
18155else
18156 ok=yes
18157 case " ${configdirs} " in
18158 *" binutils "*) ;;
18159 *) ok=no ;;
18160 esac
1c710c3c 18161
2abefe3d
PB
18162 if test $ok = yes; then
18163 # An in-tree tool is available and we can use it
18164 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18166$as_echo "just compiled" >&6; }
e8b05380
PB
18167 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18168 # We already found the complete path
172e41aa 18169 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18171$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18172 elif test "x$target" = "x$host"; then
18173 # We can use an host tool
18174 NM_FOR_TARGET='$(NM)'
5213506e
RW
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18176$as_echo "host tool" >&6; }
2abefe3d
PB
18177 else
18178 # We need a cross tool
5213506e
RW
18179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18180$as_echo "pre-installed" >&6; }
2abefe3d
PB
18181 fi
18182fi
0b0dc272 18183
9bccfdf5
AP
18184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
18185$as_echo_n "checking where to find the target objcopy... " >&6; }
18186if test "x${build}" != "x${host}" ; then
18187 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18188 # We already found the complete path
18189 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18191$as_echo "pre-installed in $ac_dir" >&6; }
18192 else
18193 # Canadian cross, just use what we found
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18195$as_echo "pre-installed" >&6; }
18196 fi
18197else
18198 ok=yes
18199 case " ${configdirs} " in
18200 *" binutils "*) ;;
18201 *) ok=no ;;
18202 esac
18203
18204 if test $ok = yes; then
18205 # An in-tree tool is available and we can use it
18206 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18208$as_echo "just compiled" >&6; }
18209 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18210 # We already found the complete path
18211 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18213$as_echo "pre-installed in $ac_dir" >&6; }
18214 elif test "x$target" = "x$host"; then
18215 # We can use an host tool
ec8fd1c0 18216 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
9bccfdf5
AP
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18218$as_echo "host tool" >&6; }
18219 else
18220 # We need a cross tool
18221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18222$as_echo "pre-installed" >&6; }
18223 fi
18224fi
18225
5213506e
RW
18226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
18227$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 18228if test "x${build}" != "x${host}" ; then
e8b05380
PB
18229 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18230 # We already found the complete path
172e41aa 18231 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18233$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18234 else
18235 # Canadian cross, just use what we found
5213506e
RW
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18237$as_echo "pre-installed" >&6; }
e8b05380 18238 fi
2abefe3d
PB
18239else
18240 ok=yes
18241 case " ${configdirs} " in
18242 *" binutils "*) ;;
18243 *) ok=no ;;
18244 esac
1c710c3c 18245
2abefe3d
PB
18246 if test $ok = yes; then
18247 # An in-tree tool is available and we can use it
18248 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18250$as_echo "just compiled" >&6; }
e8b05380
PB
18251 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18252 # We already found the complete path
172e41aa 18253 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18255$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18256 elif test "x$target" = "x$host"; then
18257 # We can use an host tool
18258 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18260$as_echo "host tool" >&6; }
2abefe3d
PB
18261 else
18262 # We need a cross tool
5213506e
RW
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18264$as_echo "pre-installed" >&6; }
2abefe3d
PB
18265 fi
18266fi
0b0dc272 18267
e4a9a572
IS
18268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
18269$as_echo_n "checking where to find the target otool... " >&6; }
18270if test "x${build}" != "x${host}" ; then
18271 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18272 # We already found the complete path
18273 ac_dir=`dirname $OTOOL_FOR_TARGET`
18274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18275$as_echo "pre-installed in $ac_dir" >&6; }
18276 else
18277 # Canadian cross, just use what we found
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18279$as_echo "pre-installed" >&6; }
18280 fi
18281else
18282 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18283 # We already found the complete path
18284 ac_dir=`dirname $OTOOL_FOR_TARGET`
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18286$as_echo "pre-installed in $ac_dir" >&6; }
18287 elif test "x$target" = "x$host"; then
18288 # We can use an host tool
18289 OTOOL_FOR_TARGET='$(OTOOL)'
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18291$as_echo "host tool" >&6; }
18292 else
18293 # We need a cross tool
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18295$as_echo "pre-installed" >&6; }
18296 fi
18297fi
18298
5213506e
RW
18299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
18300$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 18301if test "x${build}" != "x${host}" ; then
e8b05380
PB
18302 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18303 # We already found the complete path
172e41aa 18304 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18306$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18307 else
18308 # Canadian cross, just use what we found
5213506e
RW
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18310$as_echo "pre-installed" >&6; }
e8b05380 18311 fi
2abefe3d
PB
18312else
18313 ok=yes
18314 case " ${configdirs} " in
18315 *" binutils "*) ;;
18316 *) ok=no ;;
18317 esac
1c710c3c 18318
2abefe3d
PB
18319 if test $ok = yes; then
18320 # An in-tree tool is available and we can use it
18321 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
18322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18323$as_echo "just compiled" >&6; }
e8b05380
PB
18324 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18325 # We already found the complete path
172e41aa 18326 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18328$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18329 elif test "x$target" = "x$host"; then
18330 # We can use an host tool
18331 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18333$as_echo "host tool" >&6; }
2abefe3d
PB
18334 else
18335 # We need a cross tool
5213506e
RW
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18337$as_echo "pre-installed" >&6; }
2abefe3d
PB
18338 fi
18339fi
0b0dc272 18340
e7a82751
RM
18341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18342$as_echo_n "checking where to find the target readelf... " >&6; }
18343if test "x${build}" != "x${host}" ; then
18344 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18345 # We already found the complete path
18346 ac_dir=`dirname $READELF_FOR_TARGET`
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18348$as_echo "pre-installed in $ac_dir" >&6; }
18349 else
18350 # Canadian cross, just use what we found
18351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18352$as_echo "pre-installed" >&6; }
18353 fi
18354else
18355 ok=yes
18356 case " ${configdirs} " in
18357 *" binutils "*) ;;
18358 *) ok=no ;;
18359 esac
18360
18361 if test $ok = yes; then
18362 # An in-tree tool is available and we can use it
18363 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18365$as_echo "just compiled" >&6; }
18366 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18367 # We already found the complete path
18368 ac_dir=`dirname $READELF_FOR_TARGET`
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18370$as_echo "pre-installed in $ac_dir" >&6; }
18371 elif test "x$target" = "x$host"; then
18372 # We can use an host tool
18373 READELF_FOR_TARGET='$(READELF)'
18374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18375$as_echo "host tool" >&6; }
18376 else
18377 # We need a cross tool
18378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18379$as_echo "pre-installed" >&6; }
18380 fi
18381fi
18382
5213506e
RW
18383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18384$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 18385if test "x${build}" != "x${host}" ; then
e8b05380
PB
18386 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18387 # We already found the complete path
172e41aa 18388 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
18389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18390$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18391 else
18392 # Canadian cross, just use what we found
5213506e
RW
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18394$as_echo "pre-installed" >&6; }
e8b05380 18395 fi
2abefe3d
PB
18396else
18397 ok=yes
18398 case " ${configdirs} " in
18399 *" binutils "*) ;;
18400 *) ok=no ;;
18401 esac
1c710c3c 18402
2abefe3d
PB
18403 if test $ok = yes; then
18404 # An in-tree tool is available and we can use it
455c8f48 18405 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18407$as_echo "just compiled" >&6; }
e8b05380
PB
18408 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18409 # We already found the complete path
172e41aa 18410 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18412$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18413 elif test "x$target" = "x$host"; then
18414 # We can use an host tool
18415 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18417$as_echo "host tool" >&6; }
2abefe3d
PB
18418 else
18419 # We need a cross tool
5213506e
RW
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18421$as_echo "pre-installed" >&6; }
2abefe3d
PB
18422 fi
18423fi
0b0dc272 18424
5213506e
RW
18425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18426$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 18427if test "x${build}" != "x${host}" ; then
e8b05380
PB
18428 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18429 # We already found the complete path
172e41aa 18430 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
18431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18432$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18433 else
18434 # Canadian cross, just use what we found
5213506e
RW
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18436$as_echo "pre-installed" >&6; }
e8b05380 18437 fi
2abefe3d
PB
18438else
18439 ok=yes
18440 case " ${configdirs} " in
18441 *" binutils "*) ;;
18442 *) ok=no ;;
18443 esac
1c710c3c 18444
2abefe3d
PB
18445 if test $ok = yes; then
18446 # An in-tree tool is available and we can use it
18447 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
18448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18449$as_echo "just compiled" >&6; }
e8b05380
PB
18450 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18451 # We already found the complete path
172e41aa 18452 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18454$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18455 elif test "x$target" = "x$host"; then
18456 # We can use an host tool
18457 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18459$as_echo "host tool" >&6; }
2abefe3d
PB
18460 else
18461 # We need a cross tool
5213506e
RW
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18463$as_echo "pre-installed" >&6; }
2abefe3d 18464 fi
671aa708 18465fi
be912515 18466
5213506e
RW
18467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18468$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
18469if test "x${build}" != "x${host}" ; then
18470 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18471 # We already found the complete path
18472 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18474$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
18475 else
18476 # Canadian cross, just use what we found
5213506e
RW
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18478$as_echo "pre-installed" >&6; }
901119ae
KT
18479 fi
18480else
18481 ok=yes
18482 case " ${configdirs} " in
18483 *" binutils "*) ;;
18484 *) ok=no ;;
18485 esac
18486
18487 if test $ok = yes; then
18488 # An in-tree tool is available and we can use it
18489 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
18490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18491$as_echo "just compiled" >&6; }
901119ae
KT
18492 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18493 # We already found the complete path
18494 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18496$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
18497 elif test "x$target" = "x$host"; then
18498 # We can use an host tool
18499 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
18500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18501$as_echo "host tool" >&6; }
901119ae
KT
18502 else
18503 # We need a cross tool
5213506e
RW
18504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18505$as_echo "pre-installed" >&6; }
901119ae
KT
18506 fi
18507fi
18508
be912515
NN
18509
18510
2abefe3d 18511
0b0dc272 18512
671aa708
NN
18513# Certain tools may need extra flags.
18514AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18515RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18516NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18517
2abefe3d
PB
18518# When building target libraries, except in a Canadian cross, we use
18519# the same toolchain as the compiler we just built.
18520COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18521COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18522COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18523if test $host = $build; then
18524 case " $configdirs " in
18525 *" gcc "*)
18526 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18527 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18528 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18529 ;;
18530 esac
18531fi
18532
18533
18534
18535
18536
5213506e
RW
18537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18538$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18539# Check whether --enable-maintainer-mode was given.
18540if test "${enable_maintainer_mode+set}" = set; then :
18541 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
18542else
18543 USE_MAINTAINER_MODE=no
5213506e
RW
18544fi
18545
18546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18547$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
18548
18549
18550if test "$USE_MAINTAINER_MODE" = yes; then
18551 MAINTAINER_MODE_TRUE=
18552 MAINTAINER_MODE_FALSE='#'
18553else
18554 MAINTAINER_MODE_TRUE='#'
18555 MAINTAINER_MODE_FALSE=
1c710c3c 18556fi
ee03dc5e
AO
18557MAINT=$MAINTAINER_MODE_TRUE
18558
2805b53a
NN
18559# ---------------------
18560# GCC bootstrap support
18561# ---------------------
18562
18563# Stage specific cflags for build.
18564stage1_cflags="-g"
18565case $build in
18566 vax-*-*)
18567 case ${GCC} in
18568 yes) stage1_cflags="-g -Wa,-J" ;;
18569 *) stage1_cflags="-g -J" ;;
18570 esac ;;
2805b53a
NN
18571esac
18572
0b50988a 18573
2805b53a 18574
8efea775 18575# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
18576# Check whether --enable-stage1-checking was given.
18577if test "${enable_stage1_checking+set}" = set; then :
18578 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 18579else
e643dc23 18580 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
c10b5ea0
JJ
18581 # For --disable-checking or implicit --enable-checking=release, avoid
18582 # setting --enable-checking=gc in the default stage1 checking for LTO
18583 # bootstraps. See PR62077.
c10b5ea0
JJ
18584 case $BUILD_CONFIG in
18585 *lto*)
7db11a5a
JJ
18586 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18587 *)
18588 stage1_checking=--enable-checking=yes,types;;
c10b5ea0 18589 esac
7db11a5a
JJ
18590 if test "x$enable_checking" = x && \
18591 test -d ${srcdir}/gcc && \
18592 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
c100769b 18593 stage1_checking=--enable-checking=yes,types,extra
7db11a5a 18594 fi
8efea775 18595else
e643dc23 18596 stage1_checking=--enable-checking=$enable_checking,types
8efea775 18597fi
5213506e 18598fi
8efea775
PB
18599
18600
2aeb72e9 18601
5213506e
RW
18602# Enable -Werror in bootstrap stage2 and later.
18603# Check whether --enable-werror was given.
18604if test "${enable_werror+set}" = set; then :
18605 enableval=$enable_werror;
09a9c095
NN
18606case ${enable_werror} in
18607 yes) stage2_werror_flag="--enable-werror-always" ;;
18608 *) stage2_werror_flag="" ;;
2805b53a
NN
18609esac
18610
afd88efc
ML
18611else
18612
01c712cb
ML
18613if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18614 case $BUILD_CONFIG in
18615 bootstrap-debug)
18616 stage2_werror_flag="--enable-werror-always" ;;
18617 "")
18618 stage2_werror_flag="--enable-werror-always" ;;
18619 esac
18620fi
18621
afd88efc
ML
18622fi
18623
18624
01c712cb 18625
2805b53a 18626
f2689b09
SE
18627# Specify what files to not compare during bootstrap.
18628
18629compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
1eee94d3
GM
18630compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/M2Version*"
18631compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/SYSTEM*"
18632compare_exclusions="$compare_exclusions | gcc/m2/gm2version*"
f2689b09
SE
18633case "$target" in
18634 hppa*64*-*-hpux*) ;;
4f943869 18635 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
f2689b09
SE
18636esac
18637
18638
5213506e
RW
18639ac_config_files="$ac_config_files Makefile"
18640
1c710c3c 18641cat >confcache <<\_ACEOF
671aa708
NN
18642# This file is a shell script that caches the results of configure
18643# tests run on this system so they can be shared between configure
1c710c3c
DJ
18644# scripts and configure runs, see configure's option --config-cache.
18645# It is not useful on other systems. If it contains results you don't
18646# want to keep, you may remove or edit it.
671aa708 18647#
1c710c3c
DJ
18648# config.status only pays attention to the cache file if you give it
18649# the --recheck option to rerun configure.
671aa708 18650#
1c710c3c
DJ
18651# `ac_cv_env_foo' variables (set or unset) will be overridden when
18652# loading this file, other *unset* `ac_cv_foo' will be assigned the
18653# following values.
18654
18655_ACEOF
18656
671aa708
NN
18657# The following way of writing the cache mishandles newlines in values,
18658# but we know of no workaround that is simple, portable, and efficient.
5213506e 18659# So, we kill variables containing newlines.
671aa708
NN
18660# Ultrix sh set writes to stderr and can't be redirected directly,
18661# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
18662(
18663 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18664 eval ac_val=\$$ac_var
18665 case $ac_val in #(
18666 *${as_nl}*)
18667 case $ac_var in #(
18668 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18669$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18670 esac
18671 case $ac_var in #(
18672 _ | IFS | as_nl) ;; #(
18673 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18674 *) { eval $ac_var=; unset $ac_var;} ;;
18675 esac ;;
18676 esac
18677 done
18678
1c710c3c 18679 (set) 2>&1 |
5213506e
RW
18680 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18681 *${as_nl}ac_space=\ *)
18682 # `set' does not quote correctly, so add quotes: double-quote
18683 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
18684 sed -n \
18685 "s/'/'\\\\''/g;
18686 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 18687 ;; #(
1c710c3c
DJ
18688 *)
18689 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 18690 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 18691 ;;
5213506e
RW
18692 esac |
18693 sort
18694) |
1c710c3c 18695 sed '
5213506e 18696 /^ac_cv_env_/b end
1c710c3c 18697 t clear
5213506e 18698 :clear
1c710c3c
DJ
18699 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18700 t end
5213506e
RW
18701 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18702 :end' >>confcache
18703if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18704 if test -w "$cache_file"; then
22e05272 18705 if test "x$cache_file" != "x/dev/null"; then
5213506e
RW
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18707$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
18708 if test ! -f "$cache_file" || test -h "$cache_file"; then
18709 cat confcache >"$cache_file"
18710 else
18711 case $cache_file in #(
18712 */* | ?:*)
18713 mv -f confcache "$cache_file"$$ &&
18714 mv -f "$cache_file"$$ "$cache_file" ;; #(
18715 *)
18716 mv -f confcache "$cache_file" ;;
18717 esac
18718 fi
18719 fi
671aa708 18720 else
5213506e
RW
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18722$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 18723 fi
4977bab6 18724fi
671aa708 18725rm -f confcache
79c06341 18726
671aa708
NN
18727test "x$prefix" = xNONE && prefix=$ac_default_prefix
18728# Let make expand exec_prefix.
18729test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 18730
671aa708
NN
18731# Transform confdefs.h into DEFS.
18732# Protect against shell expansion while executing Makefile rules.
18733# Protect against Makefile macro expansion.
1c710c3c
DJ
18734#
18735# If the first sed substitution is executed (which looks for macros that
5213506e 18736# take arguments), then branch to the quote section. Otherwise,
1c710c3c 18737# look for a macro that doesn't take arguments.
5213506e
RW
18738ac_script='
18739:mline
18740/\\$/{
18741 N
18742 s,\\\n,,
18743 b mline
18744}
1c710c3c 18745t clear
5213506e
RW
18746:clear
18747s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 18748t quote
5213506e 18749s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 18750t quote
5213506e
RW
18751b any
18752:quote
18753s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18754s/\[/\\&/g
18755s/\]/\\&/g
18756s/\$/$$/g
18757H
18758:any
18759${
18760 g
18761 s/^\n//
18762 s/\n/ /g
18763 p
18764}
18765'
18766DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
18767
18768
18769ac_libobjs=
18770ac_ltlibobjs=
22e05272 18771U=
1c710c3c
DJ
18772for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18773 # 1. Remove the extension, and $U if already installed.
5213506e
RW
18774 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18775 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18776 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18777 # will be set to the directory where LIBOBJS objects are built.
18778 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18779 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
18780done
18781LIBOBJS=$ac_libobjs
fb0103e5 18782
1c710c3c 18783LTLIBOBJS=$ac_ltlibobjs
0b0dc272 18784
af71363e 18785
1c710c3c 18786
22e05272 18787: "${CONFIG_STATUS=./config.status}"
5213506e 18788ac_write_fail=0
1c710c3c
DJ
18789ac_clean_files_save=$ac_clean_files
18790ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
18791{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18792$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18793as_write_fail=0
18794cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
18795#! $SHELL
18796# Generated by $as_me.
671aa708 18797# Run this file to recreate the current configuration.
671aa708 18798# Compiler output produced by configure, useful for debugging
1c710c3c 18799# configure, is in config.log if it exists.
0b0dc272 18800
1c710c3c
DJ
18801debug=false
18802ac_cs_recheck=false
18803ac_cs_silent=false
1c710c3c 18804
5213506e
RW
18805SHELL=\${CONFIG_SHELL-$SHELL}
18806export SHELL
18807_ASEOF
18808cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18809## -------------------- ##
18810## M4sh Initialization. ##
18811## -------------------- ##
18812
18813# Be more Bourne compatible
18814DUALCASE=1; export DUALCASE # for MKS sh
18815if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
18816 emulate sh
18817 NULLCMD=:
5213506e 18818 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
18819 # is contrary to our usage. Disable this feature.
18820 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
18821 setopt NO_GLOB_SUBST
18822else
18823 case `(set -o) 2>/dev/null` in #(
18824 *posix*) :
18825 set -o posix ;; #(
18826 *) :
18827 ;;
18828esac
1c710c3c 18829fi
1c710c3c 18830
5213506e
RW
18831
18832as_nl='
18833'
18834export as_nl
18835# Printing a long string crashes Solaris 7 /usr/bin/printf.
18836as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18837as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18838as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18839# Prefer a ksh shell builtin over an external printf program on Solaris,
18840# but without wasting forks for bash or zsh.
18841if test -z "$BASH_VERSION$ZSH_VERSION" \
18842 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18843 as_echo='print -r --'
18844 as_echo_n='print -rn --'
18845elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18846 as_echo='printf %s\n'
18847 as_echo_n='printf %s'
18848else
18849 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18850 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18851 as_echo_n='/usr/ucb/echo -n'
18852 else
18853 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18854 as_echo_n_body='eval
18855 arg=$1;
18856 case $arg in #(
18857 *"$as_nl"*)
18858 expr "X$arg" : "X\\(.*\\)$as_nl";
18859 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18860 esac;
18861 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18862 '
18863 export as_echo_n_body
18864 as_echo_n='sh -c $as_echo_n_body as_echo'
18865 fi
18866 export as_echo_body
18867 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
18868fi
18869
5213506e
RW
18870# The user is always right.
18871if test "${PATH_SEPARATOR+set}" != set; then
18872 PATH_SEPARATOR=:
18873 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18874 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18875 PATH_SEPARATOR=';'
18876 }
18877fi
18878
18879
18880# IFS
18881# We need space, tab and new line, in precisely that order. Quoting is
18882# there to prevent editors from complaining about space-tab.
18883# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18884# splitting by setting IFS to empty value.)
18885IFS=" "" $as_nl"
18886
18887# Find who we are. Look in the path if we contain no directory separator.
22e05272 18888as_myself=
5213506e
RW
18889case $0 in #((
18890 *[\\/]* ) as_myself=$0 ;;
18891 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18892for as_dir in $PATH
18893do
18894 IFS=$as_save_IFS
18895 test -z "$as_dir" && as_dir=.
18896 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18897 done
18898IFS=$as_save_IFS
18899
18900 ;;
18901esac
18902# We did not find ourselves, most probably we were run as `sh COMMAND'
18903# in which case we are not to be found in the path.
18904if test "x$as_myself" = x; then
18905 as_myself=$0
18906fi
18907if test ! -f "$as_myself"; then
18908 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18909 exit 1
18910fi
1c710c3c 18911
5213506e
RW
18912# Unset variables that we do not need and which cause bugs (e.g. in
18913# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18914# suppresses any "Segmentation fault" message there. '((' could
18915# trigger a bug in pdksh 5.2.14.
18916for as_var in BASH_ENV ENV MAIL MAILPATH
18917do eval test x\${$as_var+set} = xset \
18918 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18919done
1c710c3c
DJ
18920PS1='$ '
18921PS2='> '
18922PS4='+ '
18923
18924# NLS nuisances.
5213506e
RW
18925LC_ALL=C
18926export LC_ALL
18927LANGUAGE=C
18928export LANGUAGE
18929
18930# CDPATH.
18931(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18932
18933
22e05272
JM
18934# as_fn_error STATUS ERROR [LINENO LOG_FD]
18935# ----------------------------------------
5213506e
RW
18936# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18937# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 18938# script with STATUS, using 1 if that was 0.
5213506e
RW
18939as_fn_error ()
18940{
22e05272
JM
18941 as_status=$1; test $as_status -eq 0 && as_status=1
18942 if test "$4"; then
18943 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18944 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1c710c3c 18945 fi
22e05272 18946 $as_echo "$as_me: error: $2" >&2
5213506e
RW
18947 as_fn_exit $as_status
18948} # as_fn_error
18949
18950
18951# as_fn_set_status STATUS
18952# -----------------------
18953# Set $? to STATUS, without forking.
18954as_fn_set_status ()
18955{
18956 return $1
18957} # as_fn_set_status
18958
18959# as_fn_exit STATUS
18960# -----------------
18961# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18962as_fn_exit ()
18963{
18964 set +e
18965 as_fn_set_status $1
18966 exit $1
18967} # as_fn_exit
18968
18969# as_fn_unset VAR
18970# ---------------
18971# Portably unset VAR.
18972as_fn_unset ()
18973{
18974 { eval $1=; unset $1;}
18975}
18976as_unset=as_fn_unset
18977# as_fn_append VAR VALUE
18978# ----------------------
18979# Append the text in VALUE to the end of the definition contained in VAR. Take
18980# advantage of any shell optimizations that allow amortized linear growth over
18981# repeated appends, instead of the typical quadratic growth present in naive
18982# implementations.
18983if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18984 eval 'as_fn_append ()
18985 {
18986 eval $1+=\$2
18987 }'
18988else
18989 as_fn_append ()
18990 {
18991 eval $1=\$$1\$2
18992 }
18993fi # as_fn_append
18994
18995# as_fn_arith ARG...
18996# ------------------
18997# Perform arithmetic evaluation on the ARGs, and store the result in the
18998# global $as_val. Take advantage of shells that can avoid forks. The arguments
18999# must be portable across $(()) and expr.
19000if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19001 eval 'as_fn_arith ()
19002 {
19003 as_val=$(( $* ))
19004 }'
19005else
19006 as_fn_arith ()
19007 {
19008 as_val=`expr "$@" || test $? -eq 1`
19009 }
19010fi # as_fn_arith
19011
1c710c3c 19012
5213506e
RW
19013if expr a : '\(a\)' >/dev/null 2>&1 &&
19014 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
19015 as_expr=expr
19016else
19017 as_expr=false
19018fi
19019
5213506e 19020if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
19021 as_basename=basename
19022else
19023 as_basename=false
19024fi
19025
5213506e
RW
19026if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19027 as_dirname=dirname
19028else
19029 as_dirname=false
19030fi
1c710c3c 19031
5213506e 19032as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
19033$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19034 X"$0" : 'X\(//\)$' \| \
5213506e
RW
19035 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19036$as_echo X/"$0" |
19037 sed '/^.*\/\([^/][^/]*\)\/*$/{
19038 s//\1/
19039 q
19040 }
19041 /^X\/\(\/\/\)$/{
19042 s//\1/
19043 q
19044 }
19045 /^X\/\(\/\).*/{
19046 s//\1/
19047 q
19048 }
19049 s/.*/./; q'`
2aeb72e9 19050
2aeb72e9
DD
19051# Avoid depending upon Character Ranges.
19052as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19053as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19054as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19055as_cr_digits='0123456789'
19056as_cr_alnum=$as_cr_Letters$as_cr_digits
19057
5213506e
RW
19058ECHO_C= ECHO_N= ECHO_T=
19059case `echo -n x` in #(((((
19060-n*)
19061 case `echo 'xy\c'` in
19062 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19063 xy) ECHO_C='\c';;
19064 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19065 ECHO_T=' ';;
19066 esac;;
19067*)
19068 ECHO_N='-n';;
1c710c3c
DJ
19069esac
19070
5213506e
RW
19071rm -f conf$$ conf$$.exe conf$$.file
19072if test -d conf$$.dir; then
19073 rm -f conf$$.dir/conf$$.file
1c710c3c 19074else
5213506e
RW
19075 rm -f conf$$.dir
19076 mkdir conf$$.dir 2>/dev/null
1c710c3c 19077fi
5213506e
RW
19078if (echo >conf$$.file) 2>/dev/null; then
19079 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 19080 as_ln_s='ln -s'
5213506e
RW
19081 # ... but there are two gotchas:
19082 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19083 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 19084 # In both cases, we have to default to `cp -pR'.
5213506e 19085 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 19086 as_ln_s='cp -pR'
5213506e
RW
19087 elif ln conf$$.file conf$$ 2>/dev/null; then
19088 as_ln_s=ln
19089 else
22e05272 19090 as_ln_s='cp -pR'
2aeb72e9 19091 fi
1c710c3c 19092else
22e05272 19093 as_ln_s='cp -pR'
1c710c3c 19094fi
5213506e
RW
19095rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19096rmdir conf$$.dir 2>/dev/null
19097
19098
19099# as_fn_mkdir_p
19100# -------------
19101# Create "$as_dir" as a directory, including parents if necessary.
19102as_fn_mkdir_p ()
19103{
19104
19105 case $as_dir in #(
19106 -*) as_dir=./$as_dir;;
19107 esac
19108 test -d "$as_dir" || eval $as_mkdir_p || {
19109 as_dirs=
19110 while :; do
19111 case $as_dir in #(
19112 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19113 *) as_qdir=$as_dir;;
19114 esac
19115 as_dirs="'$as_qdir' $as_dirs"
19116 as_dir=`$as_dirname -- "$as_dir" ||
19117$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19118 X"$as_dir" : 'X\(//\)[^/]' \| \
19119 X"$as_dir" : 'X\(//\)$' \| \
19120 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19121$as_echo X"$as_dir" |
19122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19123 s//\1/
19124 q
19125 }
19126 /^X\(\/\/\)[^/].*/{
19127 s//\1/
19128 q
19129 }
19130 /^X\(\/\/\)$/{
19131 s//\1/
19132 q
19133 }
19134 /^X\(\/\).*/{
19135 s//\1/
19136 q
19137 }
19138 s/.*/./; q'`
19139 test -d "$as_dir" && break
19140 done
19141 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 19142 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e 19143
1c710c3c 19144
5213506e 19145} # as_fn_mkdir_p
1c710c3c 19146if mkdir -p . 2>/dev/null; then
5213506e 19147 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
19148else
19149 test -d ./-p && rmdir ./-p
19150 as_mkdir_p=false
19151fi
19152
22e05272
JM
19153
19154# as_fn_executable_p FILE
19155# -----------------------
19156# Test if FILE is an executable regular file.
19157as_fn_executable_p ()
19158{
19159 test -f "$1" && test -x "$1"
19160} # as_fn_executable_p
19161as_test_x='test -x'
19162as_executable_p=as_fn_executable_p
1c710c3c
DJ
19163
19164# Sed expression to map a string onto a valid CPP name.
19165as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19166
19167# Sed expression to map a string onto a valid variable name.
19168as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19169
19170
1c710c3c 19171exec 6>&1
5213506e
RW
19172## ----------------------------------- ##
19173## Main body of $CONFIG_STATUS script. ##
19174## ----------------------------------- ##
19175_ASEOF
19176test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19177
19178cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19179# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 19180# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
19181# values after options handling.
19182ac_log="
1c710c3c 19183This file was extended by $as_me, which was
22e05272 19184generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
19185
19186 CONFIG_FILES = $CONFIG_FILES
19187 CONFIG_HEADERS = $CONFIG_HEADERS
19188 CONFIG_LINKS = $CONFIG_LINKS
19189 CONFIG_COMMANDS = $CONFIG_COMMANDS
19190 $ $0 $@
19191
5213506e
RW
19192on `(hostname || uname -n) 2>/dev/null | sed 1q`
19193"
19194
1c710c3c
DJ
19195_ACEOF
19196
5213506e
RW
19197case $ac_config_files in *"
19198"*) set x $ac_config_files; shift; ac_config_files=$*;;
19199esac
1c710c3c 19200
2aeb72e9 19201
2aeb72e9 19202
5213506e
RW
19203cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19204# Files that config.status was made for.
19205config_files="$ac_config_files"
1c710c3c 19206
5213506e 19207_ACEOF
2aeb72e9 19208
5213506e 19209cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 19210ac_cs_usage="\
5213506e
RW
19211\`$as_me' instantiates files and other configuration actions
19212from templates according to the current configuration. Unless the files
19213and actions are specified as TAGs, all are instantiated by default.
1c710c3c 19214
5213506e 19215Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
19216
19217 -h, --help print this help, then exit
5213506e 19218 -V, --version print version number and configuration settings, then exit
22e05272 19219 --config print configuration, then exit
5213506e
RW
19220 -q, --quiet, --silent
19221 do not print progress messages
1c710c3c
DJ
19222 -d, --debug don't remove temporary files
19223 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
19224 --file=FILE[:TEMPLATE]
19225 instantiate the configuration file FILE
1c710c3c
DJ
19226
19227Configuration files:
19228$config_files
19229
5213506e 19230Report bugs to the package provider."
2aeb72e9 19231
5213506e
RW
19232_ACEOF
19233cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 19234ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1c710c3c
DJ
19235ac_cs_version="\\
19236config.status
22e05272
JM
19237configured by $0, generated by GNU Autoconf 2.69,
19238 with options \\"\$ac_cs_config\\"
1c710c3c 19239
22e05272 19240Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
19241This config.status script is free software; the Free Software Foundation
19242gives unlimited permission to copy, distribute and modify it."
5213506e
RW
19243
19244ac_pwd='$ac_pwd'
19245srcdir='$srcdir'
19246INSTALL='$INSTALL'
87264276 19247AWK='$AWK'
5213506e 19248test -n "\$AWK" || AWK=awk
1c710c3c
DJ
19249_ACEOF
19250
5213506e
RW
19251cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19252# The default lists apply if the user does not specify any file.
1c710c3c
DJ
19253ac_need_defaults=:
19254while test $# != 0
a4b9e93e 19255do
1c710c3c 19256 case $1 in
22e05272 19257 --*=?*)
5213506e
RW
19258 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19259 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
19260 ac_shift=:
19261 ;;
22e05272
JM
19262 --*=)
19263 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19264 ac_optarg=
19265 ac_shift=:
19266 ;;
5213506e 19267 *)
1c710c3c
DJ
19268 ac_option=$1
19269 ac_optarg=$2
19270 ac_shift=shift
19271 ;;
1c710c3c
DJ
19272 esac
19273
19274 case $ac_option in
19275 # Handling of the options.
671aa708 19276 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 19277 ac_cs_recheck=: ;;
5213506e
RW
19278 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19279 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
19280 --config | --confi | --conf | --con | --co | --c )
19281 $as_echo "$ac_cs_config"; exit ;;
5213506e 19282 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
19283 debug=: ;;
19284 --file | --fil | --fi | --f )
19285 $ac_shift
5213506e
RW
19286 case $ac_optarg in
19287 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 19288 '') as_fn_error $? "missing file argument" ;;
5213506e
RW
19289 esac
19290 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 19291 ac_need_defaults=false;;
5213506e
RW
19292 --he | --h | --help | --hel | -h )
19293 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
19294 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19295 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19296 ac_cs_silent=: ;;
19297
19298 # This is an error.
22e05272 19299 -*) as_fn_error $? "unrecognized option: \`$1'
5213506e 19300Try \`$0 --help' for more information." ;;
1c710c3c 19301
5213506e
RW
19302 *) as_fn_append ac_config_targets " $1"
19303 ac_need_defaults=false ;;
1c710c3c 19304
0b0dc272 19305 esac
1c710c3c 19306 shift
0b0dc272
AM
19307done
19308
1c710c3c 19309ac_configure_extra_args=
0b0dc272 19310
1c710c3c
DJ
19311if $ac_cs_silent; then
19312 exec 6>/dev/null
19313 ac_configure_extra_args="$ac_configure_extra_args --silent"
19314fi
0b0dc272 19315
1c710c3c 19316_ACEOF
5213506e 19317cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 19318if \$ac_cs_recheck; then
22e05272 19319 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5213506e
RW
19320 shift
19321 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19322 CONFIG_SHELL='$SHELL'
19323 export CONFIG_SHELL
19324 exec "\$@"
1c710c3c
DJ
19325fi
19326
19327_ACEOF
5213506e
RW
19328cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19329exec 5>>config.log
19330{
19331 echo
19332 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19333## Running $as_me. ##
19334_ASBOX
19335 $as_echo "$ac_log"
19336} >&5
1c710c3c 19337
5213506e
RW
19338_ACEOF
19339cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
19340#
19341# INIT-COMMANDS
19342#
19343extrasub_build="$extrasub_build"
19344 extrasub_host="$extrasub_host"
19345 extrasub_target="$extrasub_target"
19346
5213506e 19347_ACEOF
1c710c3c 19348
5213506e 19349cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 19350
5213506e 19351# Handling of arguments.
1c710c3c
DJ
19352for ac_config_target in $ac_config_targets
19353do
5213506e
RW
19354 case $ac_config_target in
19355 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19356
22e05272 19357 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
19358 esac
19359done
19360
5213506e 19361
1c710c3c
DJ
19362# If the user did not use the arguments to specify the items to instantiate,
19363# then the envvar interface is used. Set only those that are not.
19364# We use the long form for the default assignment because of an extremely
19365# bizarre bug on SunOS 4.1.3.
19366if $ac_need_defaults; then
19367 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19368fi
19369
19370# Have a temporary directory for convenience. Make it in the build tree
5213506e 19371# simply because there is no reason against having it here, and in addition,
1c710c3c 19372# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
19373# Hook for its removal unless debugging.
19374# Note that there is a small window in which the directory will not be cleaned:
19375# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
19376$debug ||
19377{
22e05272 19378 tmp= ac_tmp=
5213506e 19379 trap 'exit_status=$?
22e05272
JM
19380 : "${ac_tmp:=$tmp}"
19381 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5213506e
RW
19382' 0
19383 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 19384}
1c710c3c
DJ
19385# Create a (secure) tmp directory for tmp files.
19386
19387{
5213506e 19388 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 19389 test -d "$tmp"
1c710c3c
DJ
19390} ||
19391{
5213506e
RW
19392 tmp=./conf$$-$RANDOM
19393 (umask 077 && mkdir "$tmp")
22e05272
JM
19394} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19395ac_tmp=$tmp
5213506e
RW
19396
19397# Set up the scripts for CONFIG_FILES section.
19398# No need to generate them if there are no CONFIG_FILES.
19399# This happens for instance with `./config.status config.h'.
19400if test -n "$CONFIG_FILES"; then
19401
19402if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19403 ac_cs_awk_getline=:
19404 ac_cs_awk_pipe_init=
19405 ac_cs_awk_read_file='
19406 while ((getline aline < (F[key])) > 0)
19407 print(aline)
19408 close(F[key])'
19409 ac_cs_awk_pipe_fini=
19410else
19411 ac_cs_awk_getline=false
19412 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19413 ac_cs_awk_read_file='
19414 print "|#_!!_#|"
19415 print "cat " F[key] " &&"
19416 '$ac_cs_awk_pipe_init
19417 # The final `:' finishes the AND list.
19418 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19419fi
19420ac_cr=`echo X | tr X '\015'`
19421# On cygwin, bash can eat \r inside `` if the user requested igncr.
19422# But we know of no other shell where ac_cr would be empty at this
19423# point, so we can use a bashism as a fallback.
19424if test "x$ac_cr" = x; then
19425 eval ac_cr=\$\'\\r\'
19426fi
19427ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19428if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 19429 ac_cs_awk_cr='\\r'
5213506e
RW
19430else
19431 ac_cs_awk_cr=$ac_cr
19432fi
19433
22e05272 19434echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5213506e
RW
19435_ACEOF
19436
19437# Create commands to substitute file output variables.
1c710c3c 19438{
5213506e 19439 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
22e05272 19440 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
5213506e
RW
19441 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19442 echo "_ACAWK" &&
19443 echo "_ACEOF"
19444} >conf$$files.sh &&
19445. ./conf$$files.sh ||
22e05272 19446 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e 19447rm -f conf$$files.sh
1c710c3c 19448
5213506e
RW
19449{
19450 echo "cat >conf$$subs.awk <<_ACEOF" &&
19451 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19452 echo "_ACEOF"
19453} >conf$$subs.sh ||
22e05272
JM
19454 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19455ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5213506e
RW
19456ac_delim='%!_!# '
19457for ac_last_try in false false false false false :; do
19458 . ./conf$$subs.sh ||
22e05272 19459 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
19460
19461 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19462 if test $ac_delim_n = $ac_delim_num; then
19463 break
19464 elif $ac_last_try; then
22e05272 19465 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
19466 else
19467 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19468 fi
19469done
19470rm -f conf$$subs.sh
19471
19472cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 19473cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 19474_ACEOF
5213506e
RW
19475sed -n '
19476h
19477s/^/S["/; s/!.*/"]=/
19478p
19479g
19480s/^[^!]*!//
19481:repl
19482t repl
19483s/'"$ac_delim"'$//
19484t delim
19485:nl
19486h
22e05272 19487s/\(.\{148\}\)..*/\1/
5213506e
RW
19488t more1
19489s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19490p
19491n
19492b repl
19493:more1
19494s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19495p
19496g
19497s/.\{148\}//
19498t nl
19499:delim
19500h
22e05272 19501s/\(.\{148\}\)..*/\1/
5213506e
RW
19502t more2
19503s/["\\]/\\&/g; s/^/"/; s/$/"/
19504p
19505b
19506:more2
19507s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19508p
19509g
19510s/.\{148\}//
19511t delim
19512' <conf$$subs.awk | sed '
19513/^[^""]/{
19514 N
19515 s/\n//
19516}
19517' >>$CONFIG_STATUS || ac_write_fail=1
19518rm -f conf$$subs.awk
19519cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19520_ACAWK
22e05272 19521cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5213506e
RW
19522 for (key in S) S_is_set[key] = 1
19523 FS = "\a"
19524 \$ac_cs_awk_pipe_init
19525}
19526{
19527 line = $ 0
19528 nfields = split(line, field, "@")
19529 substed = 0
19530 len = length(field[1])
19531 for (i = 2; i < nfields; i++) {
19532 key = field[i]
19533 keylen = length(key)
19534 if (S_is_set[key]) {
19535 value = S[key]
19536 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19537 len += length(value) + length(field[++i])
19538 substed = 1
19539 } else
19540 len += 1 + keylen
19541 }
19542 if (nfields == 3 && !substed) {
19543 key = field[2]
19544 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19545 \$ac_cs_awk_read_file
19546 next
19547 }
19548 }
19549 print line
19550}
19551\$ac_cs_awk_pipe_fini
19552_ACAWK
19553_ACEOF
19554cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19555if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19556 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19557else
19558 cat
22e05272
JM
19559fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19560 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5213506e
RW
19561_ACEOF
19562
22e05272
JM
19563# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19564# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5213506e
RW
19565# trailing colons and then remove the whole line if VPATH becomes empty
19566# (actually we leave an empty line to preserve line numbers).
19567if test "x$srcdir" = x.; then
22e05272
JM
19568 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19569h
19570s///
19571s/^/:/
19572s/[ ]*$/:/
19573s/:\$(srcdir):/:/g
19574s/:\${srcdir}:/:/g
19575s/:@srcdir@:/:/g
19576s/^:*//
5213506e 19577s/:*$//
22e05272
JM
19578x
19579s/\(=[ ]*\).*/\1/
19580G
19581s/\n//
5213506e
RW
19582s/^[^=]*=[ ]*$//
19583}'
19584fi
2aeb72e9 19585
5213506e
RW
19586cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19587fi # test -n "$CONFIG_FILES"
2aeb72e9 19588
1c710c3c 19589
5213506e
RW
19590eval set X " :F $CONFIG_FILES "
19591shift
19592for ac_tag
19593do
19594 case $ac_tag in
19595 :[FHLC]) ac_mode=$ac_tag; continue;;
19596 esac
19597 case $ac_mode$ac_tag in
19598 :[FHL]*:*);;
22e05272 19599 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5213506e
RW
19600 :[FH]-) ac_tag=-:-;;
19601 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19602 esac
19603 ac_save_IFS=$IFS
19604 IFS=:
19605 set x $ac_tag
19606 IFS=$ac_save_IFS
19607 shift
19608 ac_file=$1
19609 shift
79c06341 19610
5213506e
RW
19611 case $ac_mode in
19612 :L) ac_source=$1;;
19613 :[FH])
19614 ac_file_inputs=
19615 for ac_f
19616 do
19617 case $ac_f in
22e05272 19618 -) ac_f="$ac_tmp/stdin";;
5213506e
RW
19619 *) # Look for the file first in the build tree, then in the source tree
19620 # (if the path is not absolute). The absolute path cannot be DOS-style,
19621 # because $ac_f cannot contain `:'.
19622 test -f "$ac_f" ||
19623 case $ac_f in
19624 [\\/$]*) false;;
19625 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19626 esac ||
22e05272 19627 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5213506e
RW
19628 esac
19629 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19630 as_fn_append ac_file_inputs " '$ac_f'"
19631 done
1c710c3c 19632
5213506e
RW
19633 # Let's still pretend it is `configure' which instantiates (i.e., don't
19634 # use $as_me), people would be surprised to read:
19635 # /* config.h. Generated by config.status. */
19636 configure_input='Generated from '`
19637 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19638 `' by configure.'
19639 if test x"$ac_file" != x-; then
19640 configure_input="$ac_file. $configure_input"
19641 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19642$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 19643 fi
5213506e
RW
19644 # Neutralize special characters interpreted by sed in replacement strings.
19645 case $configure_input in #(
19646 *\&* | *\|* | *\\* )
19647 ac_sed_conf_input=`$as_echo "$configure_input" |
19648 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19649 *) ac_sed_conf_input=$configure_input;;
19650 esac
11a67599 19651
5213506e 19652 case $ac_tag in
22e05272
JM
19653 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19654 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5213506e
RW
19655 esac
19656 ;;
11a67599
ZW
19657 esac
19658
5213506e 19659 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
19660$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19661 X"$ac_file" : 'X\(//\)[^/]' \| \
19662 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
19663 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19664$as_echo X"$ac_file" |
19665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19666 s//\1/
19667 q
19668 }
19669 /^X\(\/\/\)[^/].*/{
19670 s//\1/
19671 q
19672 }
19673 /^X\(\/\/\)$/{
19674 s//\1/
19675 q
19676 }
19677 /^X\(\/\).*/{
19678 s//\1/
19679 q
19680 }
19681 s/.*/./; q'`
19682 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 19683 ac_builddir=.
0b0dc272 19684
5213506e
RW
19685case "$ac_dir" in
19686.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19687*)
19688 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19689 # A ".." for each directory in $ac_dir_suffix.
19690 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19691 case $ac_top_builddir_sub in
19692 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19693 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19694 esac ;;
19695esac
19696ac_abs_top_builddir=$ac_pwd
19697ac_abs_builddir=$ac_pwd$ac_dir_suffix
19698# for backward compatibility:
19699ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
19700
19701case $srcdir in
5213506e 19702 .) # We are building in place.
1c710c3c 19703 ac_srcdir=.
5213506e
RW
19704 ac_top_srcdir=$ac_top_builddir_sub
19705 ac_abs_top_srcdir=$ac_pwd ;;
19706 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 19707 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
19708 ac_top_srcdir=$srcdir
19709 ac_abs_top_srcdir=$srcdir ;;
19710 *) # Relative name.
19711 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19712 ac_top_srcdir=$ac_top_build_prefix$srcdir
19713 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 19714esac
5213506e 19715ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 19716
0b0dc272 19717
5213506e
RW
19718 case $ac_mode in
19719 :F)
19720 #
19721 # CONFIG_FILE
19722 #
1c710c3c
DJ
19723
19724 case $INSTALL in
19725 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 19726 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 19727 esac
5213506e 19728_ACEOF
11a67599 19729
5213506e
RW
19730cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19731# If the template does not know about datarootdir, expand it.
19732# FIXME: This hack should be removed a few years after 2.60.
19733ac_datarootdir_hack=; ac_datarootdir_seen=
19734ac_sed_dataroot='
19735/datarootdir/ {
19736 p
19737 q
19738}
19739/@datadir@/p
19740/@docdir@/p
19741/@infodir@/p
19742/@localedir@/p
19743/@mandir@/p'
19744case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19745*datarootdir*) ac_datarootdir_seen=yes;;
19746*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19748$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 19749_ACEOF
5213506e
RW
19750cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19751 ac_datarootdir_hack='
19752 s&@datadir@&$datadir&g
19753 s&@docdir@&$docdir&g
19754 s&@infodir@&$infodir&g
19755 s&@localedir@&$localedir&g
19756 s&@mandir@&$mandir&g
19757 s&\\\${datarootdir}&$datarootdir&g' ;;
19758esac
19759_ACEOF
19760
19761# Neutralize VPATH when `$srcdir' = `.'.
19762# Shell code in configure.ac might set extrasub.
19763# FIXME: do we really want to maintain this feature?
19764cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19765ac_sed_extra="$ac_vpsub
1c710c3c
DJ
19766$extrasub
19767_ACEOF
5213506e 19768cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
19769:t
19770/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
19771s|@configure_input@|$ac_sed_conf_input|;t t
19772s&@top_builddir@&$ac_top_builddir_sub&;t t
19773s&@top_build_prefix@&$ac_top_build_prefix&;t t
19774s&@srcdir@&$ac_srcdir&;t t
19775s&@abs_srcdir@&$ac_abs_srcdir&;t t
19776s&@top_srcdir@&$ac_top_srcdir&;t t
19777s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19778s&@builddir@&$ac_builddir&;t t
19779s&@abs_builddir@&$ac_abs_builddir&;t t
19780s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19781s&@INSTALL@&$ac_INSTALL&;t t
19782$ac_datarootdir_hack
19783"
19784eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19785if $ac_cs_awk_getline; then
22e05272 19786 $AWK -f "$ac_tmp/subs.awk"
5213506e 19787else
22e05272
JM
19788 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19789fi \
19790 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e
RW
19791
19792test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
19793 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19794 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19795 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5213506e 19796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 19797which seems to be undefined. Please make sure it is defined" >&5
5213506e 19798$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 19799which seems to be undefined. Please make sure it is defined" >&2;}
5213506e 19800
22e05272 19801 rm -f "$ac_tmp/stdin"
5213506e 19802 case $ac_file in
22e05272
JM
19803 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19804 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5213506e 19805 esac \
22e05272 19806 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e 19807 ;;
11a67599 19808
11a67599 19809
79c06341 19810
5213506e
RW
19811 esac
19812
3e54529c
RW
19813
19814 case $ac_file$ac_mode in
19815 "Makefile":F) sed "$extrasub_build" Makefile |
19816 sed "$extrasub_host" |
19817 sed "$extrasub_target" > mf$$
19818 mv -f mf$$ Makefile ;;
19819
19820 esac
5213506e
RW
19821done # for ac_tag
19822
19823
19824as_fn_exit 0
1c710c3c 19825_ACEOF
1c710c3c
DJ
19826ac_clean_files=$ac_clean_files_save
19827
5213506e 19828test $ac_write_fail = 0 ||
22e05272 19829 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5213506e 19830
1c710c3c
DJ
19831
19832# configure is writing to config.log, and then calls config.status.
19833# config.status does its own redirection, appending to config.log.
19834# Unfortunately, on DOS this fails, as config.log is still kept open
19835# by configure, so config.status won't be able to write to it; its
19836# output is simply discarded. So we exec the FD to /dev/null,
19837# effectively closing config.log, so it can be properly (re)opened and
19838# appended to by config.status. When coming back to configure, we
19839# need to make the FD available again.
19840if test "$no_create" != yes; then
19841 ac_cs_success=:
19842 ac_config_status_args=
19843 test "$silent" = yes &&
19844 ac_config_status_args="$ac_config_status_args --quiet"
19845 exec 5>/dev/null
19846 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19847 exec 5>>config.log
19848 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19849 # would make configure fail if this is the last instruction.
22e05272 19850 $ac_cs_success || as_fn_exit 1
5213506e
RW
19851fi
19852if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19854$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 19855fi
79c06341 19856