]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
[Ada] Warning for out-of-order record representation clauses
[thirdparty/gcc.git] / configure
CommitLineData
71ab34df 1#! /bin/sh
71ab34df 2# Guess values for system-dependent variables and create Makefiles.
f00f02a3 3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
cd9a469c 7#
71ab34df 8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
cd9a469c 11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
b30fcfae 14
cd9a469c 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 :
b30fcfae 18 emulate sh
19 NULLCMD=:
cd9a469c 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b30fcfae 21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
cd9a469c 23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
b30fcfae 31fi
b30fcfae 32
cd9a469c 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 }
b30fcfae 79fi
80
81
cd9a469c 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.
f00f02a3 90as_myself=
cd9a469c 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
b30fcfae 122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
cd9a469c 127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
f00f02a3 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;}
cd9a469c 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
f00f02a3 193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
cd9a469c 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'\" &&
b181f265 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
cd9a469c 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
b30fcfae 211do
cd9a469c 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 :
f00f02a3 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
cd9a469c 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."
b30fcfae 266 else
cd9a469c 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."
b30fcfae 271 fi
cd9a469c 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
b30fcfae 301
cd9a469c 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"
f00f02a3 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cd9a469c 356
357
358} # as_fn_mkdir_p
f00f02a3 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
cd9a469c 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
f00f02a3 403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
cd9a469c 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
f00f02a3 407# script with STATUS, using 1 if that was 0.
cd9a469c 408as_fn_error ()
409{
f00f02a3 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
cd9a469c 414 fi
f00f02a3 415 $as_echo "$as_me: error: $2" >&2
cd9a469c 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
b30fcfae 421 as_expr=expr
422else
423 as_expr=false
424fi
425
cd9a469c 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b30fcfae 427 as_basename=basename
428else
429 as_basename=false
430fi
431
cd9a469c 432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
b30fcfae 437
cd9a469c 438as_me=`$as_basename -- "$0" ||
b30fcfae 439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
cd9a469c 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'`
b30fcfae 456
5084f823 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
570af75a 463
b30fcfae 464
cd9a469c 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 |
b30fcfae 474 sed '
cd9a469c 475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
b30fcfae 479 N
cd9a469c 480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b30fcfae 482 t loop
cd9a469c 483 s/-\n.*//
b30fcfae 484 ' >$as_me.lineno &&
cd9a469c 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; }
b30fcfae 487
f00f02a3 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
b30fcfae 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
cd9a469c 494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
b30fcfae 496 # Exit status is that of the last command.
497 exit
498}
499
cd9a469c 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';;
b30fcfae 511esac
512
cd9a469c 513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
b30fcfae 516else
cd9a469c 517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
b30fcfae 519fi
cd9a469c 520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
5084f823 522 as_ln_s='ln -s'
cd9a469c 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.
f00f02a3 526 # In both cases, we have to default to `cp -pR'.
cd9a469c 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
f00f02a3 528 as_ln_s='cp -pR'
cd9a469c 529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
f00f02a3 532 as_ln_s='cp -pR'
5084f823 533 fi
b30fcfae 534else
f00f02a3 535 as_ln_s='cp -pR'
b30fcfae 536fi
cd9a469c 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
b30fcfae 539
540if mkdir -p . 2>/dev/null; then
cd9a469c 541 as_mkdir_p='mkdir -p "$as_dir"'
b30fcfae 542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
f00f02a3 547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
a83ffacf 549
b30fcfae 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
f00f02a3 557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
b30fcfae 559
560# Name of the host.
f00f02a3 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
b30fcfae 562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
b30fcfae 565#
566# Initializations.
567#
71ab34df 568ac_default_prefix=/usr/local
cd9a469c 569ac_clean_files=
b30fcfae 570ac_config_libobj_dir=.
cd9a469c 571LIBOBJS=
b30fcfae 572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
5084f823 576
b30fcfae 577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
cd9a469c 583PACKAGE_URL=
b30fcfae 584
585ac_unique_file="move-if-change"
cd9a469c 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
3f71364d 604READELF_FOR_TARGET
cd9a469c 605RANLIB_FOR_TARGET
16706a2e 606OTOOL_FOR_TARGET
cd9a469c 607OBJDUMP_FOR_TARGET
fc740d70 608OBJCOPY_FOR_TARGET
cd9a469c 609NM_FOR_TARGET
610LIPO_FOR_TARGET
611LD_FOR_TARGET
612DLLTOOL_FOR_TARGET
613AS_FOR_TARGET
614AR_FOR_TARGET
03385ed3 615GDC_FOR_TARGET
5ff5b630 616GOC_FOR_TARGET
cd9a469c 617GFORTRAN_FOR_TARGET
cd9a469c 618GCC_FOR_TARGET
619CXX_FOR_TARGET
620CC_FOR_TARGET
3f71364d 621READELF
16706a2e 622OTOOL
cd9a469c 623OBJDUMP
624OBJCOPY
625WINDMC
626WINDRES
627STRIP
628RANLIB
629NM
630LIPO
631LD
632DLLTOOL
633AS
634AR
635RUNTEST
636EXPECT
637MAKEINFO
638FLEX
639LEX
640M4
641BISON
642YACC
cd9a469c 643WINDRES_FOR_BUILD
644WINDMC_FOR_BUILD
645RANLIB_FOR_BUILD
646NM_FOR_BUILD
647LD_FOR_BUILD
648LDFLAGS_FOR_BUILD
03385ed3 649GDC_FOR_BUILD
5ff5b630 650GOC_FOR_BUILD
cd9a469c 651GFORTRAN_FOR_BUILD
cd9a469c 652DLLTOOL_FOR_BUILD
653CXX_FOR_BUILD
654CXXFLAGS_FOR_BUILD
655CFLAGS_FOR_BUILD
656CC_FOR_BUILD
657AS_FOR_BUILD
658AR_FOR_BUILD
1fda3360 659target_configdirs
cd9a469c 660configdirs
cd9a469c 661build_configdirs
cd9a469c 662INSTALL_GDB_TK
663GDB_TK
664CONFIGURE_GDB_TK
665build_tooldir
666tooldir
667GCC_SHLIB_SUBDIR
668RPATH_ENVVAR
372a3f1e 669target_configargs
670host_configargs
671build_configargs
719faf1c 672BUILD_CONFIG
ed9516f5 673LDFLAGS_FOR_TARGET
cd9a469c 674CXXFLAGS_FOR_TARGET
675CFLAGS_FOR_TARGET
676DEBUG_PREFIX_CFLAGS_FOR_TARGET
677SYSROOT_CFLAGS_FOR_TARGET
0812bb06 678get_gcc_base_ver
c850ece7 679extra_host_zlib_configure_flags
7bfefa9d 680extra_host_libiberty_configure_flags
944792ef 681stage1_languages
01b4453c 682host_shared
1015a063 683extra_linker_plugin_flags
684extra_linker_plugin_configure_flags
87e20041 685islinc
429cca51 686isllibs
cd9a469c 687poststage1_ldflags
d6dfe18a 688poststage1_libs
cd9a469c 689stage1_ldflags
13687c85 690stage1_libs
e4128452 691extra_isl_gmp_configure_flags
cd9a469c 692extra_mpc_mpfr_configure_flags
693extra_mpc_gmp_configure_flags
694extra_mpfr_configure_flags
695gmpinc
696gmplibs
697do_compare
698GNATMAKE
699GNATBIND
700ac_ct_CXX
701CXXFLAGS
702CXX
703OBJEXT
704EXEEXT
705ac_ct_CC
706CPPFLAGS
707LDFLAGS
708CFLAGS
709CC
d3a7dd32 710extra_liboffloadmic_configure_flags
cd9a469c 711target_subdir
712host_subdir
713build_subdir
714build_libsubdir
b181f265 715AWK
716SED
cd9a469c 717LN_S
718LN
719INSTALL_DATA
720INSTALL_SCRIPT
721INSTALL_PROGRAM
722target_os
723target_vendor
724target_cpu
725target
726host_os
727host_vendor
728host_cpu
729host
730target_noncanonical
731host_noncanonical
732build_noncanonical
733build_os
734build_vendor
735build_cpu
736build
737TOPLEVEL_CONFIGURE_ARGUMENTS
738target_alias
739host_alias
740build_alias
741LIBS
742ECHO_T
743ECHO_N
744ECHO_C
745DEFS
746mandir
747localedir
748libdir
749psdir
750pdfdir
751dvidir
752htmldir
753infodir
754docdir
755oldincludedir
756includedir
757localstatedir
758sharedstatedir
759sysconfdir
760datadir
761datarootdir
762libexecdir
763sbindir
764bindir
765program_transform_name
766prefix
767exec_prefix
768PACKAGE_URL
769PACKAGE_BUGREPORT
770PACKAGE_STRING
771PACKAGE_VERSION
772PACKAGE_TARNAME
773PACKAGE_NAME
774PATH_SEPARATOR
775SHELL'
776ac_subst_files='serialization_dependencies
777host_makefile_frag
778target_makefile_frag
779alphaieee_frag
780ospace_frag'
781ac_user_opts='
782enable_option_checking
783with_build_libsubdir
6406d366 784with_system_zlib
a3d93be3 785enable_as_accelerator_for
786enable_offload_targets
cd9a469c 787enable_gold
1e369e5f 788enable_ld
afb6adb9 789enable_compressed_debug_sections
d9d975ae 790enable_libquadmath
791enable_libquadmath_support
cd9a469c 792enable_libada
793enable_libssp
a3ba808f 794enable_libstdcxx
d3a7dd32 795enable_liboffloadmic
6c59dfa4 796enable_bootstrap
cd9a469c 797with_mpc
798with_mpc_include
799with_mpc_lib
800with_mpfr_dir
801with_mpfr
802with_mpfr_include
803with_mpfr_lib
804with_gmp_dir
805with_gmp
806with_gmp_include
807with_gmp_lib
cd9a469c 808with_stage1_libs
2b89c028 809with_static_standard_libraries
13687c85 810with_stage1_ldflags
cd9a469c 811with_boot_libs
d6dfe18a 812with_boot_ldflags
87e20041 813with_isl
814with_isl_include
815with_isl_lib
816enable_isl_version_check
7bfefa9d 817enable_lto
1015a063 818enable_linker_plugin_configure_flags
819enable_linker_plugin_flags
01b4453c 820enable_host_shared
cd9a469c 821enable_stage1_languages
03869f98 822enable_objc_gc
baf71228 823with_target_bdw_gc
824with_target_bdw_gc_include
825with_target_bdw_gc_lib
0812bb06 826with_gcc_major_version_only
cd9a469c 827with_build_sysroot
828with_debug_prefix_map
a2059f7a 829with_build_config
ee055341 830enable_vtable_verify
cd9a469c 831enable_serial_configure
832with_build_time_tools
833enable_maintainer_mode
834enable_stage1_checking
835enable_werror
cd9a469c 836'
837 ac_precious_vars='build_alias
838host_alias
839target_alias
840CC
841CFLAGS
842LDFLAGS
843LIBS
844CPPFLAGS
845CXX
846CXXFLAGS
847CCC
372a3f1e 848build_configargs
849host_configargs
850target_configargs
cd9a469c 851AR
852AS
853DLLTOOL
854LD
855LIPO
856NM
857RANLIB
858STRIP
859WINDRES
860WINDMC
861OBJCOPY
862OBJDUMP
16706a2e 863OTOOL
3f71364d 864READELF
cd9a469c 865CC_FOR_TARGET
866CXX_FOR_TARGET
867GCC_FOR_TARGET
cd9a469c 868GFORTRAN_FOR_TARGET
5ff5b630 869GOC_FOR_TARGET
03385ed3 870GDC_FOR_TARGET
cd9a469c 871AR_FOR_TARGET
872AS_FOR_TARGET
873DLLTOOL_FOR_TARGET
874LD_FOR_TARGET
875LIPO_FOR_TARGET
876NM_FOR_TARGET
fc740d70 877OBJCOPY_FOR_TARGET
cd9a469c 878OBJDUMP_FOR_TARGET
16706a2e 879OTOOL_FOR_TARGET
cd9a469c 880RANLIB_FOR_TARGET
3f71364d 881READELF_FOR_TARGET
cd9a469c 882STRIP_FOR_TARGET
883WINDRES_FOR_TARGET
884WINDMC_FOR_TARGET'
885
71ab34df 886
887# Initialize some variables set by options.
b30fcfae 888ac_init_help=
889ac_init_version=false
cd9a469c 890ac_unrecognized_opts=
891ac_unrecognized_sep=
71ab34df 892# The variables have the same names as the options, with
893# dashes changed to underlines.
b30fcfae 894cache_file=/dev/null
71ab34df 895exec_prefix=NONE
71ab34df 896no_create=
71ab34df 897no_recursion=
898prefix=NONE
899program_prefix=NONE
900program_suffix=NONE
901program_transform_name=s,x,x,
902silent=
903site=
904srcdir=
71ab34df 905verbose=
906x_includes=NONE
907x_libraries=NONE
b30fcfae 908
909# Installation directory options.
910# These are left unexpanded so users can "make install exec_prefix=/foo"
911# and all the variables that are supposed to be based on exec_prefix
912# by default will actually change.
913# Use braces instead of parens because sh, perl, etc. also accept them.
cd9a469c 914# (The list follows the same order as the GNU Coding Standards.)
71ab34df 915bindir='${exec_prefix}/bin'
916sbindir='${exec_prefix}/sbin'
917libexecdir='${exec_prefix}/libexec'
cd9a469c 918datarootdir='${prefix}/share'
919datadir='${datarootdir}'
71ab34df 920sysconfdir='${prefix}/etc'
921sharedstatedir='${prefix}/com'
922localstatedir='${prefix}/var'
71ab34df 923includedir='${prefix}/include'
924oldincludedir='/usr/include'
cd9a469c 925docdir='${datarootdir}/doc/${PACKAGE}'
926infodir='${datarootdir}/info'
927htmldir='${docdir}'
928dvidir='${docdir}'
929pdfdir='${docdir}'
930psdir='${docdir}'
931libdir='${exec_prefix}/lib'
932localedir='${datarootdir}/locale'
933mandir='${datarootdir}/man'
a8298541 934
71ab34df 935ac_prev=
cd9a469c 936ac_dashdash=
71ab34df 937for ac_option
938do
71ab34df 939 # If the previous option needs an argument, assign it.
940 if test -n "$ac_prev"; then
cd9a469c 941 eval $ac_prev=\$ac_option
71ab34df 942 ac_prev=
943 continue
944 fi
a8298541 945
cd9a469c 946 case $ac_option in
f00f02a3 947 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
948 *=) ac_optarg= ;;
949 *) ac_optarg=yes ;;
cd9a469c 950 esac
71ab34df 951
952 # Accept the important Cygnus configure options, so we can diagnose typos.
953
cd9a469c 954 case $ac_dashdash$ac_option in
955 --)
956 ac_dashdash=yes ;;
71ab34df 957
958 -bindir | --bindir | --bindi | --bind | --bin | --bi)
959 ac_prev=bindir ;;
960 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b30fcfae 961 bindir=$ac_optarg ;;
71ab34df 962
963 -build | --build | --buil | --bui | --bu)
b30fcfae 964 ac_prev=build_alias ;;
71ab34df 965 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b30fcfae 966 build_alias=$ac_optarg ;;
71ab34df 967
968 -cache-file | --cache-file | --cache-fil | --cache-fi \
969 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
970 ac_prev=cache_file ;;
971 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
972 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b30fcfae 973 cache_file=$ac_optarg ;;
974
975 --config-cache | -C)
976 cache_file=config.cache ;;
71ab34df 977
cd9a469c 978 -datadir | --datadir | --datadi | --datad)
71ab34df 979 ac_prev=datadir ;;
cd9a469c 980 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b30fcfae 981 datadir=$ac_optarg ;;
71ab34df 982
cd9a469c 983 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
984 | --dataroo | --dataro | --datar)
985 ac_prev=datarootdir ;;
986 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
987 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
988 datarootdir=$ac_optarg ;;
989
71ab34df 990 -disable-* | --disable-*)
cd9a469c 991 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
71ab34df 992 # Reject names that are not valid shell variable names.
cd9a469c 993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f00f02a3 994 as_fn_error $? "invalid feature name: $ac_useropt"
cd9a469c 995 ac_useropt_orig=$ac_useropt
996 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
997 case $ac_user_opts in
998 *"
999"enable_$ac_useropt"
1000"*) ;;
1001 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1002 ac_unrecognized_sep=', ';;
1003 esac
1004 eval enable_$ac_useropt=no ;;
1005
1006 -docdir | --docdir | --docdi | --doc | --do)
1007 ac_prev=docdir ;;
1008 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009 docdir=$ac_optarg ;;
1010
1011 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1012 ac_prev=dvidir ;;
1013 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014 dvidir=$ac_optarg ;;
71ab34df 1015
1016 -enable-* | --enable-*)
cd9a469c 1017 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
71ab34df 1018 # Reject names that are not valid shell variable names.
cd9a469c 1019 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f00f02a3 1020 as_fn_error $? "invalid feature name: $ac_useropt"
cd9a469c 1021 ac_useropt_orig=$ac_useropt
1022 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1023 case $ac_user_opts in
1024 *"
1025"enable_$ac_useropt"
1026"*) ;;
1027 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1028 ac_unrecognized_sep=', ';;
5084f823 1029 esac
cd9a469c 1030 eval enable_$ac_useropt=\$ac_optarg ;;
71ab34df 1031
1032 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1033 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1034 | --exec | --exe | --ex)
1035 ac_prev=exec_prefix ;;
1036 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1037 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1038 | --exec=* | --exe=* | --ex=*)
b30fcfae 1039 exec_prefix=$ac_optarg ;;
71ab34df 1040
1041 -gas | --gas | --ga | --g)
1042 # Obsolete; use --with-gas.
1043 with_gas=yes ;;
1044
b30fcfae 1045 -help | --help | --hel | --he | -h)
1046 ac_init_help=long ;;
1047 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1048 ac_init_help=recursive ;;
1049 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1050 ac_init_help=short ;;
71ab34df 1051
1052 -host | --host | --hos | --ho)
b30fcfae 1053 ac_prev=host_alias ;;
71ab34df 1054 -host=* | --host=* | --hos=* | --ho=*)
b30fcfae 1055 host_alias=$ac_optarg ;;
71ab34df 1056
cd9a469c 1057 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1058 ac_prev=htmldir ;;
1059 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1060 | --ht=*)
1061 htmldir=$ac_optarg ;;
1062
71ab34df 1063 -includedir | --includedir | --includedi | --included | --include \
1064 | --includ | --inclu | --incl | --inc)
1065 ac_prev=includedir ;;
1066 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1067 | --includ=* | --inclu=* | --incl=* | --inc=*)
b30fcfae 1068 includedir=$ac_optarg ;;
71ab34df 1069
1070 -infodir | --infodir | --infodi | --infod | --info | --inf)
1071 ac_prev=infodir ;;
1072 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b30fcfae 1073 infodir=$ac_optarg ;;
71ab34df 1074
1075 -libdir | --libdir | --libdi | --libd)
1076 ac_prev=libdir ;;
1077 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b30fcfae 1078 libdir=$ac_optarg ;;
71ab34df 1079
1080 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1081 | --libexe | --libex | --libe)
1082 ac_prev=libexecdir ;;
1083 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1084 | --libexe=* | --libex=* | --libe=*)
b30fcfae 1085 libexecdir=$ac_optarg ;;
71ab34df 1086
cd9a469c 1087 -localedir | --localedir | --localedi | --localed | --locale)
1088 ac_prev=localedir ;;
1089 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1090 localedir=$ac_optarg ;;
1091
71ab34df 1092 -localstatedir | --localstatedir | --localstatedi | --localstated \
cd9a469c 1093 | --localstate | --localstat | --localsta | --localst | --locals)
71ab34df 1094 ac_prev=localstatedir ;;
1095 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
cd9a469c 1096 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b30fcfae 1097 localstatedir=$ac_optarg ;;
71ab34df 1098
1099 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1100 ac_prev=mandir ;;
1101 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b30fcfae 1102 mandir=$ac_optarg ;;
71ab34df 1103
1104 -nfp | --nfp | --nf)
1105 # Obsolete; use --without-fp.
1106 with_fp=no ;;
1107
1108 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b30fcfae 1109 | --no-cr | --no-c | -n)
71ab34df 1110 no_create=yes ;;
1111
1112 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1113 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1114 no_recursion=yes ;;
1115
1116 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1117 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1118 | --oldin | --oldi | --old | --ol | --o)
1119 ac_prev=oldincludedir ;;
1120 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1121 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1122 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b30fcfae 1123 oldincludedir=$ac_optarg ;;
71ab34df 1124
1125 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1126 ac_prev=prefix ;;
1127 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b30fcfae 1128 prefix=$ac_optarg ;;
71ab34df 1129
1130 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1131 | --program-pre | --program-pr | --program-p)
1132 ac_prev=program_prefix ;;
1133 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1134 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b30fcfae 1135 program_prefix=$ac_optarg ;;
71ab34df 1136
1137 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1138 | --program-suf | --program-su | --program-s)
1139 ac_prev=program_suffix ;;
1140 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1141 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b30fcfae 1142 program_suffix=$ac_optarg ;;
71ab34df 1143
1144 -program-transform-name | --program-transform-name \
1145 | --program-transform-nam | --program-transform-na \
1146 | --program-transform-n | --program-transform- \
1147 | --program-transform | --program-transfor \
1148 | --program-transfo | --program-transf \
1149 | --program-trans | --program-tran \
1150 | --progr-tra | --program-tr | --program-t)
1151 ac_prev=program_transform_name ;;
1152 -program-transform-name=* | --program-transform-name=* \
1153 | --program-transform-nam=* | --program-transform-na=* \
1154 | --program-transform-n=* | --program-transform-=* \
1155 | --program-transform=* | --program-transfor=* \
1156 | --program-transfo=* | --program-transf=* \
1157 | --program-trans=* | --program-tran=* \
1158 | --progr-tra=* | --program-tr=* | --program-t=*)
b30fcfae 1159 program_transform_name=$ac_optarg ;;
71ab34df 1160
cd9a469c 1161 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1162 ac_prev=pdfdir ;;
1163 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1164 pdfdir=$ac_optarg ;;
1165
1166 -psdir | --psdir | --psdi | --psd | --ps)
1167 ac_prev=psdir ;;
1168 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1169 psdir=$ac_optarg ;;
1170
71ab34df 1171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1172 | -silent | --silent | --silen | --sile | --sil)
1173 silent=yes ;;
1174
1175 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1176 ac_prev=sbindir ;;
1177 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1178 | --sbi=* | --sb=*)
b30fcfae 1179 sbindir=$ac_optarg ;;
71ab34df 1180
1181 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1182 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1183 | --sharedst | --shareds | --shared | --share | --shar \
1184 | --sha | --sh)
1185 ac_prev=sharedstatedir ;;
1186 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1187 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1188 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1189 | --sha=* | --sh=*)
b30fcfae 1190 sharedstatedir=$ac_optarg ;;
71ab34df 1191
1192 -site | --site | --sit)
1193 ac_prev=site ;;
1194 -site=* | --site=* | --sit=*)
b30fcfae 1195 site=$ac_optarg ;;
71ab34df 1196
1197 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1198 ac_prev=srcdir ;;
1199 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b30fcfae 1200 srcdir=$ac_optarg ;;
71ab34df 1201
1202 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1203 | --syscon | --sysco | --sysc | --sys | --sy)
1204 ac_prev=sysconfdir ;;
1205 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1206 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b30fcfae 1207 sysconfdir=$ac_optarg ;;
71ab34df 1208
1209 -target | --target | --targe | --targ | --tar | --ta | --t)
b30fcfae 1210 ac_prev=target_alias ;;
71ab34df 1211 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b30fcfae 1212 target_alias=$ac_optarg ;;
71ab34df 1213
1214 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1215 verbose=yes ;;
1216
b30fcfae 1217 -version | --version | --versio | --versi | --vers | -V)
1218 ac_init_version=: ;;
71ab34df 1219
1220 -with-* | --with-*)
cd9a469c 1221 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
71ab34df 1222 # Reject names that are not valid shell variable names.
cd9a469c 1223 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f00f02a3 1224 as_fn_error $? "invalid package name: $ac_useropt"
cd9a469c 1225 ac_useropt_orig=$ac_useropt
1226 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1227 case $ac_user_opts in
1228 *"
1229"with_$ac_useropt"
1230"*) ;;
1231 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1232 ac_unrecognized_sep=', ';;
5084f823 1233 esac
cd9a469c 1234 eval with_$ac_useropt=\$ac_optarg ;;
71ab34df 1235
1236 -without-* | --without-*)
cd9a469c 1237 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
71ab34df 1238 # Reject names that are not valid shell variable names.
cd9a469c 1239 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f00f02a3 1240 as_fn_error $? "invalid package name: $ac_useropt"
cd9a469c 1241 ac_useropt_orig=$ac_useropt
1242 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1243 case $ac_user_opts in
1244 *"
1245"with_$ac_useropt"
1246"*) ;;
1247 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1248 ac_unrecognized_sep=', ';;
1249 esac
1250 eval with_$ac_useropt=no ;;
71ab34df 1251
1252 --x)
1253 # Obsolete; use --with-x.
1254 with_x=yes ;;
1255
1256 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1257 | --x-incl | --x-inc | --x-in | --x-i)
1258 ac_prev=x_includes ;;
1259 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1260 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b30fcfae 1261 x_includes=$ac_optarg ;;
71ab34df 1262
1263 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1264 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1265 ac_prev=x_libraries ;;
1266 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1267 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b30fcfae 1268 x_libraries=$ac_optarg ;;
71ab34df 1269
f00f02a3 1270 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1271Try \`$0 --help' for more information"
71ab34df 1272 ;;
1273
b30fcfae 1274 *=*)
1275 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1276 # Reject names that are not valid shell variable names.
cd9a469c 1277 case $ac_envvar in #(
1278 '' | [0-9]* | *[!_$as_cr_alnum]* )
f00f02a3 1279 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cd9a469c 1280 esac
1281 eval $ac_envvar=\$ac_optarg
b30fcfae 1282 export $ac_envvar ;;
1283
71ab34df 1284 *)
b30fcfae 1285 # FIXME: should be removed in autoconf 3.0.
cd9a469c 1286 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b30fcfae 1287 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
cd9a469c 1288 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
f00f02a3 1289 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
71ab34df 1290 ;;
1291
1292 esac
1293done
1294
1295if test -n "$ac_prev"; then
b30fcfae 1296 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
f00f02a3 1297 as_fn_error $? "missing argument to $ac_option"
ae48753c 1298fi
ae48753c 1299
cd9a469c 1300if test -n "$ac_unrecognized_opts"; then
1301 case $enable_option_checking in
1302 no) ;;
f00f02a3 1303 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cd9a469c 1304 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
5084f823 1305 esac
cd9a469c 1306fi
5084f823 1307
cd9a469c 1308# Check all directory arguments for consistency.
1309for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1310 datadir sysconfdir sharedstatedir localstatedir includedir \
1311 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1312 libdir localedir mandir
5084f823 1313do
cd9a469c 1314 eval ac_val=\$$ac_var
1315 # Remove trailing slashes.
1316 case $ac_val in
1317 */ )
1318 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1319 eval $ac_var=\$ac_val;;
1320 esac
1321 # Be sure to have absolute directory names.
5084f823 1322 case $ac_val in
cd9a469c 1323 [\\/$]* | ?:[\\/]* ) continue;;
1324 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
71ab34df 1325 esac
f00f02a3 1326 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
71ab34df 1327done
1328
b30fcfae 1329# There might be people who depend on the old broken behavior: `$host'
1330# used to hold the argument of --host etc.
1331# FIXME: To remove some day.
1332build=$build_alias
1333host=$host_alias
1334target=$target_alias
a83ffacf 1335
b30fcfae 1336# FIXME: To remove some day.
1337if test "x$host_alias" != x; then
1338 if test "x$build_alias" = x; then
1339 cross_compiling=maybe
b30fcfae 1340 elif test "x$build_alias" != "x$host_alias"; then
1341 cross_compiling=yes
1342 fi
1343fi
1344
1345ac_tool_prefix=
1346test -n "$host_alias" && ac_tool_prefix=$host_alias-
1347
1348test "$silent" = yes && exec 6>/dev/null
71ab34df 1349
71ab34df 1350
cd9a469c 1351ac_pwd=`pwd` && test -n "$ac_pwd" &&
1352ac_ls_di=`ls -di .` &&
1353ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
f00f02a3 1354 as_fn_error $? "working directory cannot be determined"
cd9a469c 1355test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
f00f02a3 1356 as_fn_error $? "pwd does not report name of working directory"
cd9a469c 1357
1358
71ab34df 1359# Find the source files, if location was not specified.
1360if test -z "$srcdir"; then
1361 ac_srcdir_defaulted=yes
cd9a469c 1362 # Try the directory containing this script, then the parent directory.
1363 ac_confdir=`$as_dirname -- "$as_myself" ||
1364$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1365 X"$as_myself" : 'X\(//\)[^/]' \| \
1366 X"$as_myself" : 'X\(//\)$' \| \
1367 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1368$as_echo X"$as_myself" |
1369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1370 s//\1/
1371 q
1372 }
1373 /^X\(\/\/\)[^/].*/{
1374 s//\1/
1375 q
1376 }
1377 /^X\(\/\/\)$/{
1378 s//\1/
1379 q
1380 }
1381 /^X\(\/\).*/{
1382 s//\1/
1383 q
1384 }
1385 s/.*/./; q'`
71ab34df 1386 srcdir=$ac_confdir
cd9a469c 1387 if test ! -r "$srcdir/$ac_unique_file"; then
71ab34df 1388 srcdir=..
1389 fi
1390else
1391 ac_srcdir_defaulted=no
1392fi
cd9a469c 1393if test ! -r "$srcdir/$ac_unique_file"; then
1394 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
f00f02a3 1395 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cd9a469c 1396fi
1397ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1398ac_abs_confdir=`(
f00f02a3 1399 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cd9a469c 1400 pwd)`
1401# When building in place, set srcdir=.
1402if test "$ac_abs_confdir" = "$ac_pwd"; then
1403 srcdir=.
1404fi
1405# Remove unnecessary trailing slashes from srcdir.
1406# Double slashes in file names in object file debugging info
1407# mess up M-x gdb in Emacs.
1408case $srcdir in
1409*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1410esac
13d2f2b2 1411case $srcdir in
1412 *" "*)
f00f02a3 1413 as_fn_error $? "path to source, $srcdir, contains spaces"
13d2f2b2 1414 ;;
1415esac
d2d2630b 1416ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1417
cd9a469c 1418for ac_var in $ac_precious_vars; do
1419 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1420 eval ac_env_${ac_var}_value=\$${ac_var}
1421 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1423done
b30fcfae 1424
1425#
1426# Report the --help message.
1427#
1428if test "$ac_init_help" = "long"; then
1429 # Omit some internal or obsolete options to make the list less imposing.
1430 # This message is too long to be a string in the A/UX 3.1 sh.
1431 cat <<_ACEOF
1432\`configure' configures this package to adapt to many kinds of systems.
1433
1434Usage: $0 [OPTION]... [VAR=VALUE]...
1435
1436To assign environment variables (e.g., CC, CFLAGS...), specify them as
1437VAR=VALUE. See below for descriptions of some of the useful variables.
1438
1439Defaults for the options are specified in brackets.
1440
1441Configuration:
1442 -h, --help display this help and exit
1443 --help=short display options specific to this package
1444 --help=recursive display the short help of all the included packages
1445 -V, --version display version information and exit
f00f02a3 1446 -q, --quiet, --silent do not print \`checking ...' messages
b30fcfae 1447 --cache-file=FILE cache test results in FILE [disabled]
1448 -C, --config-cache alias for \`--cache-file=config.cache'
1449 -n, --no-create do not create output files
1450 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1451
b30fcfae 1452Installation directories:
1453 --prefix=PREFIX install architecture-independent files in PREFIX
cd9a469c 1454 [$ac_default_prefix]
b30fcfae 1455 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
cd9a469c 1456 [PREFIX]
b30fcfae 1457
1458By default, \`make install' will install all the files in
1459\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1460an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1461for instance \`--prefix=\$HOME'.
1462
1463For better control, use the options below.
1464
1465Fine tuning of the installation directories:
cd9a469c 1466 --bindir=DIR user executables [EPREFIX/bin]
1467 --sbindir=DIR system admin executables [EPREFIX/sbin]
1468 --libexecdir=DIR program executables [EPREFIX/libexec]
1469 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1470 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1471 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1472 --libdir=DIR object code libraries [EPREFIX/lib]
1473 --includedir=DIR C header files [PREFIX/include]
1474 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1475 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1476 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1477 --infodir=DIR info documentation [DATAROOTDIR/info]
1478 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1479 --mandir=DIR man documentation [DATAROOTDIR/man]
1480 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1481 --htmldir=DIR html documentation [DOCDIR]
1482 --dvidir=DIR dvi documentation [DOCDIR]
1483 --pdfdir=DIR pdf documentation [DOCDIR]
1484 --psdir=DIR ps documentation [DOCDIR]
b30fcfae 1485_ACEOF
1486
1487 cat <<\_ACEOF
1488
1489Program names:
1490 --program-prefix=PREFIX prepend PREFIX to installed program names
1491 --program-suffix=SUFFIX append SUFFIX to installed program names
1492 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1493
1494System types:
1495 --build=BUILD configure for building on BUILD [guessed]
1496 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1497 --target=TARGET configure for building compilers for TARGET [HOST]
1498_ACEOF
1499fi
1500
1501if test -n "$ac_init_help"; then
1502
1503 cat <<\_ACEOF
1504
1505Optional Features:
cd9a469c 1506 --disable-option-checking ignore unrecognized --enable/--with options
b30fcfae 1507 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1508 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
a3d93be3 1509 --enable-as-accelerator-for=ARG
1510 build as offload target compiler. Specify offload
1511 host triple by ARG
1512 --enable-offload-targets=LIST
1513 enable offloading to devices from comma-separated
1514 LIST of TARGET[=DIR]. Use optional path to find
1515 offload target compiler during the build
1e369e5f 1516 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
8747a938 1517 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
325f661b 1518 --enable-compressed-debug-sections={all,gas,gold,ld,none}
afb6adb9 1519 Enable compressed debug sections for gas, gold or ld
1520 by default
d9d975ae 1521 --disable-libquadmath do not build libquadmath directory
1522 --disable-libquadmath-support
1523 disable libquadmath support for Fortran
09c2d953 1524 --enable-libada build libada directory
1525 --enable-libssp build libssp directory
a3ba808f 1526 --disable-libstdcxx do not build libstdc++-v3 directory
d3a7dd32 1527 --enable-liboffloadmic=ARG
1528 build liboffloadmic [ARG={no,host,target}]
6c59dfa4 1529 --enable-bootstrap enable bootstrapping [yes if native build]
87e20041 1530 --disable-isl-version-check
7458b15a 1531 disable check for isl version
7bfefa9d 1532 --enable-lto enable link time optimization support
1015a063 1533 --enable-linker-plugin-configure-flags=FLAGS
1534 additional flags for configuring linker plugins
1535 [none]
1536 --enable-linker-plugin-flags=FLAGS
1537 additional flags for configuring and building linker
1538 plugins [none]
01b4453c 1539 --enable-host-shared build host code as shared libraries
8747a938 1540 --enable-stage1-languages[=all]
1541 choose additional languages to build during stage1.
1542 Mostly useful for compiler development
03869f98 1543 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1544 Objective-C runtime
d5f3a33f 1545 --enable-vtable-verify Enable vtable verification feature
09c2d953 1546 --enable-serial-[{host,target,build}-]configure
8747a938 1547 force sequential configuration of sub-packages for
1548 the host, target or build machine, or all
1549 sub-packages
1550 --enable-maintainer-mode
1551 enable make rules and dependencies not useful (and
1552 sometimes confusing) to the casual installer
1553 --enable-stage1-checking[=all]
1554 choose additional checking for stage1 of the
1555 compiler
b30fcfae 1556 --enable-werror enable -Werror in bootstrap stage2 and later
1557
1558Optional Packages:
1559 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1560 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1561 --with-build-libsubdir=DIR Directory where to find libraries for build system
6406d366 1562 --with-system-zlib use installed libz
8747a938 1563 --with-mpc=PATH specify prefix directory for installed MPC package.
1564 Equivalent to --with-mpc-include=PATH/include plus
1565 --with-mpc-lib=PATH/lib
1566 --with-mpc-include=PATH specify directory for installed MPC include files
1567 --with-mpc-lib=PATH specify directory for the installed MPC library
09c2d953 1568 --with-mpfr-dir=PATH this option has been REMOVED
1569 --with-mpfr=PATH specify prefix directory for installed MPFR package.
8747a938 1570 Equivalent to --with-mpfr-include=PATH/include plus
1571 --with-mpfr-lib=PATH/lib
b30fcfae 1572 --with-mpfr-include=PATH
09c2d953 1573 specify directory for installed MPFR include files
1574 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1575 --with-gmp-dir=PATH this option has been REMOVED
8747a938 1576 --with-gmp=PATH specify prefix directory for the installed GMP
1577 package. Equivalent to
1578 --with-gmp-include=PATH/include plus
1579 --with-gmp-lib=PATH/lib
09c2d953 1580 --with-gmp-include=PATH specify directory for installed GMP include files
1581 --with-gmp-lib=PATH specify directory for the installed GMP library
13687c85 1582 --with-stage1-libs=LIBS libraries for stage1
2b89c028 1583 --with-static-standard-libraries
1584 use -static-libstdc++ and -static-libgcc
1585 (default=auto)
8747a938 1586 --with-stage1-ldflags=FLAGS
1587 linker flags for stage1
8747a938 1588 --with-boot-libs=LIBS libraries for stage2 and later
1589 --with-boot-ldflags=FLAGS
1590 linker flags for stage2 and later
71130ef8 1591 --with-isl=PATH Specify prefix directory for the installed isl
8747a938 1592 package. Equivalent to
87e20041 1593 --with-isl-include=PATH/include plus
1594 --with-isl-lib=PATH/lib
7458b15a 1595 --with-isl-include=PATH Specify directory for installed isl include files
1596 --with-isl-lib=PATH Specify the directory for the installed isl library
baf71228 1597 --with-target-bdw-gc=PATHLIST
1598 specify prefix directory for installed bdw-gc
1599 package. Equivalent to
1600 --with-target-bdw-gc-include=PATH/include plus
1601 --with-target-bdw-gc-lib=PATH/lib
1602 --with-target-bdw-gc-include=PATHLIST
1603 specify directories for installed bdw-gc include
1604 files
1605 --with-target-bdw-gc-lib=PATHLIST
1606 specify directories for installed bdw-gc library
0812bb06 1607 --with-gcc-major-version-only
1608 use only GCC major number in filesystem paths
09c2d953 1609 --with-build-sysroot=SYSROOT
b30fcfae 1610 use sysroot as the system root during the build
5f1f2de5 1611 --with-debug-prefix-map='A=B C=D ...'
8747a938 1612 map A to B, C to D ... in debug information
1613 --with-build-config='NAME NAME2...'
1614 use config/NAME.mk build configuration
09c2d953 1615 --with-build-time-tools=PATH
b30fcfae 1616 use given path to find target tools during the build
b30fcfae 1617
1618Some influential environment variables:
1619 CC C compiler command
1620 CFLAGS C compiler flags
1621 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1622 nonstandard directory <lib dir>
cd9a469c 1623 LIBS libraries to pass to the linker, e.g. -l<library>
f00f02a3 1624 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cd9a469c 1625 you have headers in a nonstandard directory <include dir>
eae5b2bc 1626 CXX C++ compiler command
1627 CXXFLAGS C++ compiler flags
372a3f1e 1628 build_configargs
1629 additional configure arguments for build directories
1630 host_configargs
1631 additional configure arguments for host directories
1632 target_configargs
1633 additional configure arguments for target directories
95a05732 1634 AR AR for the host
1635 AS AS for the host
1636 DLLTOOL DLLTOOL for the host
1637 LD LD for the host
1638 LIPO LIPO for the host
1639 NM NM for the host
1640 RANLIB RANLIB for the host
1641 STRIP STRIP for the host
1642 WINDRES WINDRES for the host
75d6a0a9 1643 WINDMC WINDMC for the host
95a05732 1644 OBJCOPY OBJCOPY for the host
1645 OBJDUMP OBJDUMP for the host
16706a2e 1646 OTOOL OTOOL for the host
3f71364d 1647 READELF READELF for the host
95a05732 1648 CC_FOR_TARGET
1649 CC for the target
1650 CXX_FOR_TARGET
1651 CXX for the target
1652 GCC_FOR_TARGET
1653 GCC for the target
95a05732 1654 GFORTRAN_FOR_TARGET
1655 GFORTRAN for the target
5ff5b630 1656 GOC_FOR_TARGET
1657 GOC for the target
03385ed3 1658 GDC_FOR_TARGET
1659 GDC for the target
95a05732 1660 AR_FOR_TARGET
1661 AR for the target
1662 AS_FOR_TARGET
1663 AS for the target
1664 DLLTOOL_FOR_TARGET
1665 DLLTOOL for the target
1666 LD_FOR_TARGET
1667 LD for the target
1668 LIPO_FOR_TARGET
1669 LIPO for the target
1670 NM_FOR_TARGET
1671 NM for the target
fc740d70 1672 OBJCOPY_FOR_TARGET
1673 OBJCOPY for the target
95a05732 1674 OBJDUMP_FOR_TARGET
1675 OBJDUMP for the target
16706a2e 1676 OTOOL_FOR_TARGET
1677 OTOOL for the target
95a05732 1678 RANLIB_FOR_TARGET
1679 RANLIB for the target
3f71364d 1680 READELF_FOR_TARGET
1681 READELF for the target
95a05732 1682 STRIP_FOR_TARGET
1683 STRIP for the target
1684 WINDRES_FOR_TARGET
1685 WINDRES for the target
75d6a0a9 1686 WINDMC_FOR_TARGET
1687 WINDMC for the target
b30fcfae 1688
1689Use these variables to override the choices made by `configure' or to help
1690it to find libraries and programs with nonstandard names/locations.
1691
cd9a469c 1692Report bugs to the package provider.
b30fcfae 1693_ACEOF
cd9a469c 1694ac_status=$?
b30fcfae 1695fi
1696
1697if test "$ac_init_help" = "recursive"; then
1698 # If there are subdirs, report their specific --help.
b30fcfae 1699 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
cd9a469c 1700 test -d "$ac_dir" ||
1701 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1702 continue
b30fcfae 1703 ac_builddir=.
1704
cd9a469c 1705case "$ac_dir" in
1706.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1707*)
1708 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1709 # A ".." for each directory in $ac_dir_suffix.
1710 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1711 case $ac_top_builddir_sub in
1712 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1713 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1714 esac ;;
1715esac
1716ac_abs_top_builddir=$ac_pwd
1717ac_abs_builddir=$ac_pwd$ac_dir_suffix
1718# for backward compatibility:
1719ac_top_builddir=$ac_top_build_prefix
b30fcfae 1720
1721case $srcdir in
cd9a469c 1722 .) # We are building in place.
b30fcfae 1723 ac_srcdir=.
cd9a469c 1724 ac_top_srcdir=$ac_top_builddir_sub
1725 ac_abs_top_srcdir=$ac_pwd ;;
1726 [\\/]* | ?:[\\/]* ) # Absolute name.
b30fcfae 1727 ac_srcdir=$srcdir$ac_dir_suffix;
cd9a469c 1728 ac_top_srcdir=$srcdir
1729 ac_abs_top_srcdir=$srcdir ;;
1730 *) # Relative name.
1731 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1732 ac_top_srcdir=$ac_top_build_prefix$srcdir
1733 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5084f823 1734esac
cd9a469c 1735ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1736
1737 cd "$ac_dir" || { ac_status=$?; continue; }
1738 # Check for guested configure.
1739 if test -f "$ac_srcdir/configure.gnu"; then
1740 echo &&
1741 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1742 elif test -f "$ac_srcdir/configure"; then
1743 echo &&
1744 $SHELL "$ac_srcdir/configure" --help=recursive
b30fcfae 1745 else
cd9a469c 1746 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1747 fi || ac_status=$?
1748 cd "$ac_pwd" || { ac_status=$?; break; }
b30fcfae 1749 done
1750fi
1751
cd9a469c 1752test -n "$ac_init_help" && exit $ac_status
b30fcfae 1753if $ac_init_version; then
1754 cat <<\_ACEOF
cd9a469c 1755configure
f00f02a3 1756generated by GNU Autoconf 2.69
b30fcfae 1757
f00f02a3 1758Copyright (C) 2012 Free Software Foundation, Inc.
b30fcfae 1759This configure script is free software; the Free Software Foundation
1760gives unlimited permission to copy, distribute and modify it.
1761_ACEOF
cd9a469c 1762 exit
a83ffacf 1763fi
cd9a469c 1764
1765## ------------------------ ##
1766## Autoconf initialization. ##
1767## ------------------------ ##
1768
1769# ac_fn_c_try_compile LINENO
1770# --------------------------
1771# Try to compile conftest.$ac_ext, and return whether this succeeded.
1772ac_fn_c_try_compile ()
1773{
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 rm -f conftest.$ac_objext
1776 if { { ac_try="$ac_compile"
1777case "(($ac_try" in
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1780esac
1781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782$as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_compile") 2>conftest.err
1784 ac_status=$?
1785 if test -s conftest.err; then
1786 grep -v '^ *+' conftest.err >conftest.er1
1787 cat conftest.er1 >&5
1788 mv -f conftest.er1 conftest.err
1789 fi
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && {
1792 test -z "$ac_c_werror_flag" ||
1793 test ! -s conftest.err
1794 } && test -s conftest.$ac_objext; then :
1795 ac_retval=0
1796else
1797 $as_echo "$as_me: failed program was:" >&5
1798sed 's/^/| /' conftest.$ac_ext >&5
1799
1800 ac_retval=1
1801fi
f00f02a3 1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803 as_fn_set_status $ac_retval
cd9a469c 1804
1805} # ac_fn_c_try_compile
1806
1807# ac_fn_cxx_try_compile LINENO
1808# ----------------------------
1809# Try to compile conftest.$ac_ext, and return whether this succeeded.
1810ac_fn_cxx_try_compile ()
1811{
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 rm -f conftest.$ac_objext
1814 if { { ac_try="$ac_compile"
1815case "(($ac_try" in
1816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817 *) ac_try_echo=$ac_try;;
1818esac
1819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820$as_echo "$ac_try_echo"; } >&5
1821 (eval "$ac_compile") 2>conftest.err
1822 ac_status=$?
1823 if test -s conftest.err; then
1824 grep -v '^ *+' conftest.err >conftest.er1
1825 cat conftest.er1 >&5
1826 mv -f conftest.er1 conftest.err
1827 fi
1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829 test $ac_status = 0; } && {
1830 test -z "$ac_cxx_werror_flag" ||
1831 test ! -s conftest.err
1832 } && test -s conftest.$ac_objext; then :
1833 ac_retval=0
1834else
1835 $as_echo "$as_me: failed program was:" >&5
1836sed 's/^/| /' conftest.$ac_ext >&5
1837
1838 ac_retval=1
1839fi
f00f02a3 1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841 as_fn_set_status $ac_retval
cd9a469c 1842
1843} # ac_fn_cxx_try_compile
1844
13687c85 1845# ac_fn_cxx_try_link LINENO
1846# -------------------------
1847# Try to link conftest.$ac_ext, and return whether this succeeded.
1848ac_fn_cxx_try_link ()
1849{
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 rm -f conftest.$ac_objext conftest$ac_exeext
1852 if { { ac_try="$ac_link"
1853case "(($ac_try" in
1854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855 *) ac_try_echo=$ac_try;;
1856esac
1857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858$as_echo "$ac_try_echo"; } >&5
1859 (eval "$ac_link") 2>conftest.err
1860 ac_status=$?
1861 if test -s conftest.err; then
1862 grep -v '^ *+' conftest.err >conftest.er1
1863 cat conftest.er1 >&5
1864 mv -f conftest.er1 conftest.err
1865 fi
1866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867 test $ac_status = 0; } && {
1868 test -z "$ac_cxx_werror_flag" ||
1869 test ! -s conftest.err
1870 } && test -s conftest$ac_exeext && {
1871 test "$cross_compiling" = yes ||
f00f02a3 1872 test -x conftest$ac_exeext
13687c85 1873 }; then :
1874 ac_retval=0
1875else
1876 $as_echo "$as_me: failed program was:" >&5
1877sed 's/^/| /' conftest.$ac_ext >&5
1878
1879 ac_retval=1
1880fi
1881 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1882 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1883 # interfere with the next link command; also delete a directory that is
1884 # left behind by Apple's compiler. We do this before executing the actions.
1885 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
f00f02a3 1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887 as_fn_set_status $ac_retval
13687c85 1888
1889} # ac_fn_cxx_try_link
1890
cd9a469c 1891# ac_fn_c_try_link LINENO
1892# -----------------------
1893# Try to link conftest.$ac_ext, and return whether this succeeded.
1894ac_fn_c_try_link ()
1895{
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 rm -f conftest.$ac_objext conftest$ac_exeext
1898 if { { ac_try="$ac_link"
1899case "(($ac_try" in
1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1902esac
1903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904$as_echo "$ac_try_echo"; } >&5
1905 (eval "$ac_link") 2>conftest.err
1906 ac_status=$?
1907 if test -s conftest.err; then
1908 grep -v '^ *+' conftest.err >conftest.er1
1909 cat conftest.er1 >&5
1910 mv -f conftest.er1 conftest.err
1911 fi
1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913 test $ac_status = 0; } && {
1914 test -z "$ac_c_werror_flag" ||
1915 test ! -s conftest.err
1916 } && test -s conftest$ac_exeext && {
1917 test "$cross_compiling" = yes ||
f00f02a3 1918 test -x conftest$ac_exeext
cd9a469c 1919 }; then :
1920 ac_retval=0
1921else
1922 $as_echo "$as_me: failed program was:" >&5
1923sed 's/^/| /' conftest.$ac_ext >&5
1924
1925 ac_retval=1
1926fi
1927 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1928 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1929 # interfere with the next link command; also delete a directory that is
1930 # left behind by Apple's compiler. We do this before executing the actions.
1931 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
f00f02a3 1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933 as_fn_set_status $ac_retval
cd9a469c 1934
1935} # ac_fn_c_try_link
1936cat >config.log <<_ACEOF
b30fcfae 1937This file contains any messages produced by compilers while
1938running configure, to aid debugging if configure makes a mistake.
1939
1940It was created by $as_me, which was
f00f02a3 1941generated by GNU Autoconf 2.69. Invocation command line was
b30fcfae 1942
1943 $ $0 $@
1944
1945_ACEOF
cd9a469c 1946exec 5>>config.log
b30fcfae 1947{
1948cat <<_ASUNAME
1949## --------- ##
1950## Platform. ##
1951## --------- ##
1952
1953hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1954uname -m = `(uname -m) 2>/dev/null || echo unknown`
1955uname -r = `(uname -r) 2>/dev/null || echo unknown`
1956uname -s = `(uname -s) 2>/dev/null || echo unknown`
1957uname -v = `(uname -v) 2>/dev/null || echo unknown`
1958
1959/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1960/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1961
1962/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1963/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1964/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
cd9a469c 1965/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
b30fcfae 1966/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1967/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1968/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1969
1970_ASUNAME
1971
1972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973for as_dir in $PATH
1974do
1975 IFS=$as_save_IFS
1976 test -z "$as_dir" && as_dir=.
cd9a469c 1977 $as_echo "PATH: $as_dir"
1978 done
1979IFS=$as_save_IFS
b30fcfae 1980
1981} >&5
1982
1983cat >&5 <<_ACEOF
1984
1985
1986## ----------- ##
1987## Core tests. ##
1988## ----------- ##
1989
1990_ACEOF
1991
1992
1993# Keep a trace of the command line.
1994# Strip out --no-create and --no-recursion so they do not pile up.
1995# Strip out --silent because we don't want to record it for future runs.
1996# Also quote any args containing shell meta-characters.
1997# Make two passes to allow for proper duplicate-argument suppression.
1998ac_configure_args=
1999ac_configure_args0=
2000ac_configure_args1=
b30fcfae 2001ac_must_keep_next=false
2002for ac_pass in 1 2
2003do
2004 for ac_arg
2005 do
2006 case $ac_arg in
2007 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2008 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2009 | -silent | --silent | --silen | --sile | --sil)
2010 continue ;;
cd9a469c 2011 *\'*)
2012 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b30fcfae 2013 esac
2014 case $ac_pass in
cd9a469c 2015 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b30fcfae 2016 2)
cd9a469c 2017 as_fn_append ac_configure_args1 " '$ac_arg'"
b30fcfae 2018 if test $ac_must_keep_next = true; then
2019 ac_must_keep_next=false # Got value, back to normal.
2020 else
2021 case $ac_arg in
2022 *=* | --config-cache | -C | -disable-* | --disable-* \
2023 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2024 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2025 | -with-* | --with-* | -without-* | --without-* | --x)
2026 case "$ac_configure_args0 " in
2027 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2028 esac
2029 ;;
2030 -* ) ac_must_keep_next=true ;;
2031 esac
2032 fi
cd9a469c 2033 as_fn_append ac_configure_args " '$ac_arg'"
b30fcfae 2034 ;;
2035 esac
2036 done
2037done
cd9a469c 2038{ ac_configure_args0=; unset ac_configure_args0;}
2039{ ac_configure_args1=; unset ac_configure_args1;}
b30fcfae 2040
2041# When interrupted or exit'd, cleanup temporary files, and complete
2042# config.log. We remove comments because anyway the quotes in there
2043# would cause problems or look ugly.
cd9a469c 2044# WARNING: Use '\'' to represent an apostrophe within the trap.
2045# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b30fcfae 2046trap 'exit_status=$?
2047 # Save into config.log some information that might help in debugging.
2048 {
2049 echo
2050
f00f02a3 2051 $as_echo "## ---------------- ##
b30fcfae 2052## Cache variables. ##
f00f02a3 2053## ---------------- ##"
b30fcfae 2054 echo
2055 # The following way of writing the cache mishandles newlines in values,
cd9a469c 2056(
2057 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2058 eval ac_val=\$$ac_var
2059 case $ac_val in #(
2060 *${as_nl}*)
2061 case $ac_var in #(
2062 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2063$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2064 esac
2065 case $ac_var in #(
2066 _ | IFS | as_nl) ;; #(
2067 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2068 *) { eval $ac_var=; unset $ac_var;} ;;
2069 esac ;;
2070 esac
2071 done
b30fcfae 2072 (set) 2>&1 |
cd9a469c 2073 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2074 *${as_nl}ac_space=\ *)
b30fcfae 2075 sed -n \
cd9a469c 2076 "s/'\''/'\''\\\\'\'''\''/g;
2077 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2078 ;; #(
b30fcfae 2079 *)
cd9a469c 2080 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b30fcfae 2081 ;;
cd9a469c 2082 esac |
2083 sort
2084)
b30fcfae 2085 echo
2086
f00f02a3 2087 $as_echo "## ----------------- ##
b30fcfae 2088## Output variables. ##
f00f02a3 2089## ----------------- ##"
b30fcfae 2090 echo
2091 for ac_var in $ac_subst_vars
2092 do
cd9a469c 2093 eval ac_val=\$$ac_var
2094 case $ac_val in
2095 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2096 esac
2097 $as_echo "$ac_var='\''$ac_val'\''"
b30fcfae 2098 done | sort
2099 echo
2100
2101 if test -n "$ac_subst_files"; then
f00f02a3 2102 $as_echo "## ------------------- ##
cd9a469c 2103## File substitutions. ##
f00f02a3 2104## ------------------- ##"
b30fcfae 2105 echo
2106 for ac_var in $ac_subst_files
2107 do
cd9a469c 2108 eval ac_val=\$$ac_var
2109 case $ac_val in
2110 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2111 esac
2112 $as_echo "$ac_var='\''$ac_val'\''"
b30fcfae 2113 done | sort
2114 echo
2115 fi
2116
2117 if test -s confdefs.h; then
f00f02a3 2118 $as_echo "## ----------- ##
b30fcfae 2119## confdefs.h. ##
f00f02a3 2120## ----------- ##"
b30fcfae 2121 echo
cd9a469c 2122 cat confdefs.h
b30fcfae 2123 echo
2124 fi
2125 test "$ac_signal" != 0 &&
cd9a469c 2126 $as_echo "$as_me: caught signal $ac_signal"
2127 $as_echo "$as_me: exit $exit_status"
b30fcfae 2128 } >&5
cd9a469c 2129 rm -f core *.core core.conftest.* &&
2130 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b30fcfae 2131 exit $exit_status
cd9a469c 2132' 0
b30fcfae 2133for ac_signal in 1 2 13 15; do
cd9a469c 2134 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b30fcfae 2135done
2136ac_signal=0
2137
2138# confdefs.h avoids OS command line length limits that DEFS can exceed.
cd9a469c 2139rm -f -r conftest* confdefs.h
2140
2141$as_echo "/* confdefs.h */" > confdefs.h
b30fcfae 2142
2143# Predefined preprocessor variables.
2144
2145cat >>confdefs.h <<_ACEOF
2146#define PACKAGE_NAME "$PACKAGE_NAME"
2147_ACEOF
2148
b30fcfae 2149cat >>confdefs.h <<_ACEOF
2150#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2151_ACEOF
2152
b30fcfae 2153cat >>confdefs.h <<_ACEOF
2154#define PACKAGE_VERSION "$PACKAGE_VERSION"
2155_ACEOF
a83ffacf 2156
b30fcfae 2157cat >>confdefs.h <<_ACEOF
2158#define PACKAGE_STRING "$PACKAGE_STRING"
2159_ACEOF
2160
b30fcfae 2161cat >>confdefs.h <<_ACEOF
2162#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2163_ACEOF
2164
cd9a469c 2165cat >>confdefs.h <<_ACEOF
2166#define PACKAGE_URL "$PACKAGE_URL"
2167_ACEOF
2168
b30fcfae 2169
2170# Let the site file select an alternate cache file if it wants to.
cd9a469c 2171# Prefer an explicitly selected file to automatically selected ones.
2172ac_site_file1=NONE
2173ac_site_file2=NONE
2174if test -n "$CONFIG_SITE"; then
f00f02a3 2175 # We do not want a PATH search for config.site.
2176 case $CONFIG_SITE in #((
2177 -*) ac_site_file1=./$CONFIG_SITE;;
2178 */*) ac_site_file1=$CONFIG_SITE;;
2179 *) ac_site_file1=./$CONFIG_SITE;;
2180 esac
cd9a469c 2181elif test "x$prefix" != xNONE; then
2182 ac_site_file1=$prefix/share/config.site
2183 ac_site_file2=$prefix/etc/config.site
2184else
2185 ac_site_file1=$ac_default_prefix/share/config.site
2186 ac_site_file2=$ac_default_prefix/etc/config.site
71ab34df 2187fi
cd9a469c 2188for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2189do
2190 test "x$ac_site_file" = xNONE && continue
f00f02a3 2191 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cd9a469c 2192 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2193$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b30fcfae 2194 sed 's/^/| /' "$ac_site_file" >&5
f00f02a3 2195 . "$ac_site_file" \
2196 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2197$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2198as_fn_error $? "failed to load site script $ac_site_file
2199See \`config.log' for more details" "$LINENO" 5; }
71ab34df 2200 fi
2201done
2202
2203if test -r "$cache_file"; then
f00f02a3 2204 # Some versions of bash will fail to source /dev/null (special files
2205 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2206 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cd9a469c 2207 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2208$as_echo "$as_me: loading cache $cache_file" >&6;}
b30fcfae 2209 case $cache_file in
cd9a469c 2210 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2211 *) . "./$cache_file";;
b30fcfae 2212 esac
2213 fi
71ab34df 2214else
cd9a469c 2215 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2216$as_echo "$as_me: creating cache $cache_file" >&6;}
b30fcfae 2217 >$cache_file
2218fi
2219
2220# Check that the precious variables saved in the cache have kept the same
2221# value.
2222ac_cache_corrupted=false
cd9a469c 2223for ac_var in $ac_precious_vars; do
b30fcfae 2224 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2225 eval ac_new_set=\$ac_env_${ac_var}_set
cd9a469c 2226 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2227 eval ac_new_val=\$ac_env_${ac_var}_value
b30fcfae 2228 case $ac_old_set,$ac_new_set in
2229 set,)
cd9a469c 2230 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2231$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b30fcfae 2232 ac_cache_corrupted=: ;;
2233 ,set)
cd9a469c 2234 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2235$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b30fcfae 2236 ac_cache_corrupted=: ;;
2237 ,);;
2238 *)
2239 if test "x$ac_old_val" != "x$ac_new_val"; then
cd9a469c 2240 # differences in whitespace do not lead to failure.
2241 ac_old_val_w=`echo x $ac_old_val`
2242 ac_new_val_w=`echo x $ac_new_val`
2243 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2245$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2246 ac_cache_corrupted=:
2247 else
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2249$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2250 eval $ac_var=\$ac_old_val
2251 fi
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2253$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2255$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b30fcfae 2256 fi;;
2257 esac
2258 # Pass precious variables to config.status.
2259 if test "$ac_new_set" = set; then
2260 case $ac_new_val in
cd9a469c 2261 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b30fcfae 2262 *) ac_arg=$ac_var=$ac_new_val ;;
2263 esac
2264 case " $ac_configure_args " in
2265 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cd9a469c 2266 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b30fcfae 2267 esac
2268 fi
2269done
2270if $ac_cache_corrupted; then
cd9a469c 2271 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2272$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2274$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
f00f02a3 2275 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
71ab34df 2276fi
cd9a469c 2277## -------------------- ##
2278## Main body of script. ##
2279## -------------------- ##
71ab34df 2280
5084f823 2281ac_ext=c
2282ac_cpp='$CPP $CPPFLAGS'
2283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2285ac_compiler_gnu=$ac_cv_c_compiler_gnu
2286
b30fcfae 2287
2288
2289
b30fcfae 2290
2291
cd2f3773 2292
b30fcfae 2293
4e8a889d 2294progname=$0
2295# if PWD already has a value, it is probably wrong.
2296if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2297
2298# Export original configure arguments for use by sub-configures.
2299# Quote arguments with shell meta charatcers.
2300TOPLEVEL_CONFIGURE_ARGUMENTS=
2301set -- "$progname" "$@"
2302for ac_arg
2303do
2304 case "$ac_arg" in
2305 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2306 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2307 # if the argument is of the form -foo=baz, quote the baz part only
2308 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2309 *) ;;
2310 esac
2311 # Add the quoted argument to the list.
2312 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2313done
2314if test "$silent" = yes; then
2315 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2316fi
2317# Remove the initial space we just introduced and, as these will be
2318# expanded by make, quote '$'.
2319TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2320
b30fcfae 2321
2322# Find the build, host, and target systems.
71ab34df 2323ac_aux_dir=
cd9a469c 2324for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
f00f02a3 2325 if test -f "$ac_dir/install-sh"; then
2326 ac_aux_dir=$ac_dir
2327 ac_install_sh="$ac_aux_dir/install-sh -c"
2328 break
2329 elif test -f "$ac_dir/install.sh"; then
2330 ac_aux_dir=$ac_dir
2331 ac_install_sh="$ac_aux_dir/install.sh -c"
2332 break
2333 elif test -f "$ac_dir/shtool"; then
2334 ac_aux_dir=$ac_dir
2335 ac_install_sh="$ac_aux_dir/shtool install -c"
2336 break
2337 fi
71ab34df 2338done
2339if test -z "$ac_aux_dir"; then
f00f02a3 2340 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
71ab34df 2341fi
cd9a469c 2342
2343# These three variables are undocumented and unsupported,
2344# and are intended to be withdrawn in a future Autoconf release.
2345# They can cause serious problems if a builder's source tree is in a directory
2346# whose full name contains unusual characters.
2347ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2348ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2349ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2350
71ab34df 2351
b30fcfae 2352# Make sure we can run config.sub.
cd9a469c 2353$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
f00f02a3 2354 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cd9a469c 2355
2356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2357$as_echo_n "checking build system type... " >&6; }
f00f02a3 2358if ${ac_cv_build+:} false; then :
cd9a469c 2359 $as_echo_n "(cached) " >&6
2360else
2361 ac_build_alias=$build_alias
2362test "x$ac_build_alias" = x &&
2363 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2364test "x$ac_build_alias" = x &&
f00f02a3 2365 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cd9a469c 2366ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
f00f02a3 2367 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cd9a469c 2368
2369fi
2370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2371$as_echo "$ac_cv_build" >&6; }
2372case $ac_cv_build in
2373*-*-*) ;;
f00f02a3 2374*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cd9a469c 2375esac
b30fcfae 2376build=$ac_cv_build
cd9a469c 2377ac_save_IFS=$IFS; IFS='-'
2378set x $ac_cv_build
2379shift
2380build_cpu=$1
2381build_vendor=$2
2382shift; shift
2383# Remember, the first character of IFS is used to create $*,
2384# except with old shells:
2385build_os=$*
2386IFS=$ac_save_IFS
2387case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
71ab34df 2388
71ab34df 2389
b30fcfae 2390 case ${build_alias} in
2391 "") build_noncanonical=${build} ;;
2392 *) build_noncanonical=${build_alias} ;;
ae48753c 2393esac
2394
2395
ae48753c 2396
b30fcfae 2397 case ${host_alias} in
2398 "") host_noncanonical=${build_noncanonical} ;;
2399 *) host_noncanonical=${host_alias} ;;
ae48753c 2400esac
2401
ae48753c 2402
b30fcfae 2403
2404 case ${target_alias} in
2405 "") target_noncanonical=${host_noncanonical} ;;
2406 *) target_noncanonical=${target_alias} ;;
ae48753c 2407esac
2408
ae48753c 2409
b30fcfae 2410
2411
2412test "$host_noncanonical" = "$target_noncanonical" &&
71ab34df 2413 test "$program_prefix$program_suffix$program_transform_name" = \
2414 NONENONEs,x,x, &&
b30fcfae 2415 program_transform_name=s,y,y,
ae48753c 2416
cd9a469c 2417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2418$as_echo_n "checking host system type... " >&6; }
f00f02a3 2419if ${ac_cv_host+:} false; then :
cd9a469c 2420 $as_echo_n "(cached) " >&6
ae48753c 2421else
cd9a469c 2422 if test "x$host_alias" = x; then
2423 ac_cv_host=$ac_cv_build
2424else
2425 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
f00f02a3 2426 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cd9a469c 2427fi
b30fcfae 2428
ae48753c 2429fi
cd9a469c 2430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2431$as_echo "$ac_cv_host" >&6; }
2432case $ac_cv_host in
2433*-*-*) ;;
f00f02a3 2434*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cd9a469c 2435esac
b30fcfae 2436host=$ac_cv_host
cd9a469c 2437ac_save_IFS=$IFS; IFS='-'
2438set x $ac_cv_host
2439shift
2440host_cpu=$1
2441host_vendor=$2
2442shift; shift
2443# Remember, the first character of IFS is used to create $*,
2444# except with old shells:
2445host_os=$*
2446IFS=$ac_save_IFS
2447case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5084f823 2448
2449
cd9a469c 2450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2451$as_echo_n "checking target system type... " >&6; }
f00f02a3 2452if ${ac_cv_target+:} false; then :
cd9a469c 2453 $as_echo_n "(cached) " >&6
b30fcfae 2454else
cd9a469c 2455 if test "x$target_alias" = x; then
2456 ac_cv_target=$ac_cv_host
2457else
2458 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
f00f02a3 2459 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cd9a469c 2460fi
b30fcfae 2461
2462fi
cd9a469c 2463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2464$as_echo "$ac_cv_target" >&6; }
2465case $ac_cv_target in
2466*-*-*) ;;
f00f02a3 2467*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cd9a469c 2468esac
b30fcfae 2469target=$ac_cv_target
cd9a469c 2470ac_save_IFS=$IFS; IFS='-'
2471set x $ac_cv_target
2472shift
2473target_cpu=$1
2474target_vendor=$2
2475shift; shift
2476# Remember, the first character of IFS is used to create $*,
2477# except with old shells:
2478target_os=$*
2479IFS=$ac_save_IFS
2480case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
b30fcfae 2481
2482
2483# The aliases save the names the user supplied, while $host etc.
2484# will get canonicalized.
2485test -n "$target_alias" &&
2486 test "$program_prefix$program_suffix$program_transform_name" = \
2487 NONENONEs,x,x, &&
2488 program_prefix=${target_alias}-
cd9a469c 2489
71ab34df 2490test "$program_prefix" != NONE &&
cd9a469c 2491 program_transform_name="s&^&$program_prefix&;$program_transform_name"
71ab34df 2492# Use a double $ so make ignores it.
2493test "$program_suffix" != NONE &&
cd9a469c 2494 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2495# Double any \ or $.
b30fcfae 2496# By default was `s,x,x', remove it if useless.
cd9a469c 2497ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2498program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
ae48753c 2499
71ab34df 2500
2501
450e6c84 2502# Get 'install' or 'install-sh' and its variants.
2503# Find a good install program. We prefer a C program (faster),
2504# so one script is as good as another. But avoid the broken or
2505# incompatible versions:
2506# SysV /etc/install, /usr/sbin/install
2507# SunOS /usr/etc/install
2508# IRIX /sbin/install
2509# AIX /bin/install
b30fcfae 2510# AmigaOS /C/install, which installs bootblocks on floppy discs
450e6c84 2511# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2512# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2513# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
b30fcfae 2514# OS/2's system install, which has a completely different semantic
450e6c84 2515# ./install, which can be erroneously created by make from ./install.sh.
82eaf560 2516# Reject install programs that cannot install multiple files.
cd9a469c 2517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2518$as_echo_n "checking for a BSD-compatible install... " >&6; }
450e6c84 2519if test -z "$INSTALL"; then
f00f02a3 2520if ${ac_cv_path_install+:} false; then :
cd9a469c 2521 $as_echo_n "(cached) " >&6
b30fcfae 2522else
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524for as_dir in $PATH
2525do
2526 IFS=$as_save_IFS
2527 test -z "$as_dir" && as_dir=.
cd9a469c 2528 # Account for people who put trailing slashes in PATH elements.
2529case $as_dir/ in #((
2530 ./ | .// | /[cC]/* | \
b30fcfae 2531 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cd9a469c 2532 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
b30fcfae 2533 /usr/ucb/* ) ;;
2534 *)
2535 # OSF1 and SCO ODT 3.0 have their own names for install.
2536 # Don't use installbsd from OSF since it installs stuff as root
2537 # by default.
2538 for ac_prog in ginstall scoinst install; do
2539 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 2540 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
450e6c84 2541 if test $ac_prog = install &&
b30fcfae 2542 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
450e6c84 2543 # AIX install. It has an incompatible calling convention.
2544 :
b30fcfae 2545 elif test $ac_prog = install &&
2546 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2547 # program-specific install script used by HP pwplus--don't use.
2548 :
450e6c84 2549 else
82eaf560 2550 rm -rf conftest.one conftest.two conftest.dir
2551 echo one > conftest.one
2552 echo two > conftest.two
2553 mkdir conftest.dir
2554 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2555 test -s conftest.one && test -s conftest.two &&
2556 test -s conftest.dir/conftest.one &&
2557 test -s conftest.dir/conftest.two
2558 then
2559 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2560 break 3
2561 fi
450e6c84 2562 fi
2563 fi
2564 done
b30fcfae 2565 done
2566 ;;
2567esac
cd9a469c 2568
2569 done
2570IFS=$as_save_IFS
b30fcfae 2571
82eaf560 2572rm -rf conftest.one conftest.two conftest.dir
450e6c84 2573
2574fi
2575 if test "${ac_cv_path_install+set}" = set; then
b30fcfae 2576 INSTALL=$ac_cv_path_install
450e6c84 2577 else
82eaf560 2578 # As a last resort, use the slow shell script. Don't cache a
2579 # value for INSTALL within a source directory, because that will
450e6c84 2580 # break other packages using the cache if that directory is
82eaf560 2581 # removed, or if the value is a relative name.
b30fcfae 2582 INSTALL=$ac_install_sh
450e6c84 2583 fi
2584fi
cd9a469c 2585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2586$as_echo "$INSTALL" >&6; }
450e6c84 2587
2588# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2589# It thinks the first close brace ends the variable substitution.
2590test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2591
b30fcfae 2592test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
450e6c84 2593
2594test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2595
cd9a469c 2596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2597$as_echo_n "checking whether ln works... " >&6; }
f00f02a3 2598if ${acx_cv_prog_LN+:} false; then :
cd9a469c 2599 $as_echo_n "(cached) " >&6
599a3eac 2600else
2601 rm -f conftestdata_t
2602echo >conftestdata_f
2603if ln conftestdata_f conftestdata_t 2>/dev/null
2604then
2605 acx_cv_prog_LN=ln
2606else
2607 acx_cv_prog_LN=no
2608fi
2609rm -f conftestdata_f conftestdata_t
2610
2611fi
2612if test $acx_cv_prog_LN = no; then
2613 LN="cp"
cd9a469c 2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2615$as_echo "no, using $LN" >&6; }
599a3eac 2616else
2617 LN="$acx_cv_prog_LN"
cd9a469c 2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2619$as_echo "yes" >&6; }
599a3eac 2620fi
2621
cd9a469c 2622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2623$as_echo_n "checking whether ln -s works... " >&6; }
b30fcfae 2624LN_S=$as_ln_s
2625if test "$LN_S" = "ln -s"; then
cd9a469c 2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2627$as_echo "yes" >&6; }
a4af6a58 2628else
cd9a469c 2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2630$as_echo "no, using $LN_S" >&6; }
5965d276 2631fi
2632
b181f265 2633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2634$as_echo_n "checking for a sed that does not truncate output... " >&6; }
f00f02a3 2635if ${ac_cv_path_SED+:} false; then :
b181f265 2636 $as_echo_n "(cached) " >&6
2637else
2638 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2639 for ac_i in 1 2 3 4 5 6 7; do
2640 ac_script="$ac_script$as_nl$ac_script"
2641 done
2642 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2643 { ac_script=; unset ac_script;}
2644 if test -z "$SED"; then
2645 ac_path_SED_found=false
2646 # Loop through the user's path and test for each of PROGNAME-LIST
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648for as_dir in $PATH
2649do
2650 IFS=$as_save_IFS
2651 test -z "$as_dir" && as_dir=.
2652 for ac_prog in sed gsed; do
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
f00f02a3 2655 as_fn_executable_p "$ac_path_SED" || continue
b181f265 2656# Check for GNU ac_path_SED and select it if it is found.
2657 # Check for GNU $ac_path_SED
2658case `"$ac_path_SED" --version 2>&1` in
2659*GNU*)
2660 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2661*)
2662 ac_count=0
2663 $as_echo_n 0123456789 >"conftest.in"
2664 while :
2665 do
2666 cat "conftest.in" "conftest.in" >"conftest.tmp"
2667 mv "conftest.tmp" "conftest.in"
2668 cp "conftest.in" "conftest.nl"
2669 $as_echo '' >> "conftest.nl"
2670 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2671 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2672 as_fn_arith $ac_count + 1 && ac_count=$as_val
2673 if test $ac_count -gt ${ac_path_SED_max-0}; then
2674 # Best one so far, save it but keep looking for a better one
2675 ac_cv_path_SED="$ac_path_SED"
2676 ac_path_SED_max=$ac_count
2677 fi
2678 # 10*(2^10) chars as input seems more than enough
2679 test $ac_count -gt 10 && break
2680 done
2681 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2682esac
2683
2684 $ac_path_SED_found && break 3
2685 done
2686 done
2687 done
2688IFS=$as_save_IFS
2689 if test -z "$ac_cv_path_SED"; then
f00f02a3 2690 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
b181f265 2691 fi
2692else
2693 ac_cv_path_SED=$SED
2694fi
2695
2696fi
2697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2698$as_echo "$ac_cv_path_SED" >&6; }
2699 SED="$ac_cv_path_SED"
2700 rm -f conftest.sed
2701
2702for ac_prog in gawk mawk nawk awk
2703do
2704 # Extract the first word of "$ac_prog", so it can be a program name with args.
2705set dummy $ac_prog; ac_word=$2
2706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2707$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 2708if ${ac_cv_prog_AWK+:} false; then :
b181f265 2709 $as_echo_n "(cached) " >&6
2710else
2711 if test -n "$AWK"; then
2712 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2713else
2714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715for as_dir in $PATH
2716do
2717 IFS=$as_save_IFS
2718 test -z "$as_dir" && as_dir=.
2719 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 2720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b181f265 2721 ac_cv_prog_AWK="$ac_prog"
2722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2723 break 2
2724 fi
2725done
2726 done
2727IFS=$as_save_IFS
2728
2729fi
2730fi
2731AWK=$ac_cv_prog_AWK
2732if test -n "$AWK"; then
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2734$as_echo "$AWK" >&6; }
2735else
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2737$as_echo "no" >&6; }
2738fi
2739
2740
2741 test -n "$AWK" && break
2742done
2743
450e6c84 2744
e8eddfdd 2745srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2746
2747# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2748# a relative path.
2749if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2750 INSTALL="${srcpwd}/install-sh -c"
2751fi
2752
71ab34df 2753# Set srcdir to "." if that's what it is.
2754# This is important for multilib support.
2755pwd=`${PWDCMD-pwd}`
71ab34df 2756if test "${pwd}" = "${srcpwd}" ; then
2757 srcdir=.
a8298541 2758fi
2759
71ab34df 2760topsrcdir=$srcpwd
ed37269d 2761
71ab34df 2762extra_host_args=
14ac9144 2763
71ab34df 2764### To add a new directory to the tree, first choose whether it is a target
2765### or a host dependent tool. Then put it into the appropriate list
2766### (library or tools, host or target), doing a dependency sort.
a8298541 2767
b30fcfae 2768# Subdirs will be configured in the order listed in build_configdirs,
71ab34df 2769# configdirs, or target_configdirs; see the serialization section below.
a8298541 2770
b30fcfae 2771# Dependency sorting is only needed when *configuration* must be done in
2772# a particular order. In all cases a dependency should be specified in
71ab34df 2773# the Makefile, whether or not it's implicitly specified here.
a8298541 2774
71ab34df 2775# Double entries in build_configdirs, configdirs, or target_configdirs may
2776# cause circular dependencies and break everything horribly.
a8298541 2777
2f8725b0 2778# these library is used by various programs built for the build
2779# environment
2780#
9245d2c5 2781build_libs="build-libiberty build-libcpp"
2f8725b0 2782
2783# these tools are built for the build environment
4fc99708 2784build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2f8725b0 2785
71ab34df 2786# these libraries are used by various programs built for the host environment
429cca51 2787#f
7f6a0bbc 2788host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
71ab34df 2789
71ab34df 2790# these tools are built for the host environment
2791# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2792# know that we are building the simulator.
2793# binutils, gas and ld appear in that order because it makes sense to run
2794# "make check" in that particular order.
af7c5662 2795# If --enable-gold is used, "gold" may replace "ld".
dcfe52b6 2796host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
71ab34df 2797
71ab34df 2798# these libraries are built for the target environment, and are built after
2799# the host libraries and the host tools (which may be a cross compiler)
5ab7e123 2800# Note that libiberty is not a target library.
27bfe7b7 2801target_libraries="target-libgcc \
ecd3459e 2802 target-libbacktrace \
71ab34df 2803 target-libgloss \
2804 target-newlib \
a0191bfe 2805 target-libgomp \
d3a7dd32 2806 target-liboffloadmic \
55a56509 2807 target-libhsail-rt \
6db1d2ca 2808 target-libatomic \
4c0315d0 2809 target-libitm \
54d7d5f2 2810 target-libstdc++-v3 \
549e2197 2811 target-libsanitizer \
b710ec85 2812 target-libvtv \
0d55f4d0 2813 target-libssp \
87969c8c 2814 target-libquadmath \
4ee9c684 2815 target-libgfortran \
38cf534f 2816 target-libffi \
93341878 2817 target-libobjc \
5ff5b630 2818 target-libada \
03385ed3 2819 target-libgo \
e60a24bd 2820 target-libphobos \
2821 target-zlib"
71ab34df 2822
328637e8 2823# these tools are built using the target libraries, and are intended to
2824# run only in the target environment
71ab34df 2825#
328637e8 2826# note: any program that *uses* libraries that are in the "target_libraries"
6c9785b4 2827# list belongs in this list.
71ab34df 2828#
4fc99708 2829target_tools="target-rda"
a8298541 2830
71ab34df 2831################################################################################
a8298541 2832
71ab34df 2833## All tools belong in one of the four categories, and are assigned above
2834## We assign ${configdirs} this way to remove all embedded newlines. This
2835## is important because configure will choke if they ever get through.
2836## ${configdirs} is directories we build using the host tools.
2837## ${target_configdirs} is directories we build using the target tools.
71ab34df 2838configdirs=`echo ${host_libs} ${host_tools}`
328637e8 2839target_configdirs=`echo ${target_libraries} ${target_tools}`
2b59cb05 2840build_configdirs=`echo ${build_libs} ${build_tools}`
6f4f34a7 2841
d2d2630b 2842
2843
71ab34df 2844################################################################################
a8298541 2845
71ab34df 2846srcname="gnu development package"
a8298541 2847
71ab34df 2848# This gets set non-empty for some net releases of packages.
2849appdirs=""
a8298541 2850
71ab34df 2851# Define is_cross_compiler to save on calls to 'test'.
2852is_cross_compiler=
2853if test x"${host}" = x"${target}" ; then
2854 is_cross_compiler=no
a8298541 2855else
71ab34df 2856 is_cross_compiler=yes
b30fcfae 2857fi
a8298541 2858
2f61b8ca 2859# Find the build and target subdir names.
6f4f34a7 2860
d3e7b04c 2861# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2862# have matching libraries, they should use host libraries: Makefile.tpl
2863# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2864# However, they still use the build modules, because the corresponding
2865# host modules (e.g. bison) are only built for the host when bootstrap
2866# finishes. So:
2867# - build_subdir is where we find build modules, and never changes.
2868# - build_libsubdir is where we find build libraries, and can be overridden.
2869
2870# Prefix 'build-' so this never conflicts with target_subdir.
6f4f34a7 2871build_subdir="build-${build_noncanonical}"
b30fcfae 2872
cd9a469c 2873# Check whether --with-build-libsubdir was given.
2874if test "${with_build_libsubdir+set}" = set; then :
2875 withval=$with_build_libsubdir; build_libsubdir="$withval"
d3e7b04c 2876else
2877 build_libsubdir="$build_subdir"
cd9a469c 2878fi
2879
c1eb9e31 2880# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2881if ( test $srcdir = . && test -d gcc ) \
2882 || test -d $srcdir/../host-${host_noncanonical}; then
2883 host_subdir="host-${host_noncanonical}"
2884else
2885 host_subdir=.
2886fi
6f4f34a7 2887# No prefix.
2888target_subdir=${target_noncanonical}
b30fcfae 2889
04a2e841 2890# Be sure to cover against remnants of an in-tree build.
2891if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
f00f02a3 2892 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
04a2e841 2893Use a pristine source tree when building in a separate tree" "$LINENO" 5
2894fi
a8298541 2895
71ab34df 2896# Skipdirs are removed silently.
2897skipdirs=
2898# Noconfigdirs are removed loudly.
2899noconfigdirs=""
a8298541 2900
71ab34df 2901use_gnu_ld=
2902# Make sure we don't let GNU ld be added if we didn't want it.
2903if test x$with_gnu_ld = xno ; then
2904 use_gnu_ld=no
3d47fcf5 2905 noconfigdirs="$noconfigdirs ld gold"
a8298541 2906fi
2907
71ab34df 2908use_gnu_as=
2909# Make sure we don't let GNU as be added if we didn't want it.
2910if test x$with_gnu_as = xno ; then
2911 use_gnu_as=no
2912 noconfigdirs="$noconfigdirs gas"
a8298541 2913fi
2914
7bfefa9d 2915use_included_zlib=
6406d366 2916
2917# Check whether --with-system-zlib was given.
2918if test "${with_system_zlib+set}" = set; then :
2919 withval=$with_system_zlib;
2920fi
2921
7bfefa9d 2922# Make sure we don't let ZLIB be added if we didn't want it.
2923if test x$with_system_zlib = xyes ; then
2924 use_included_zlib=no
2925 noconfigdirs="$noconfigdirs zlib"
2926fi
2927
b30fcfae 2928# some tools are so dependent upon X11 that if we're not building with X,
71ab34df 2929# it's not even worth trying to configure, much less build, that tool.
a8298541 2930
71ab34df 2931case ${with_x} in
2932 yes | "") ;; # the default value for this tree is that X11 is available
2933 no)
f843f075 2934 skipdirs="${skipdirs} tk itcl libgui"
71ab34df 2935 # We won't be able to build gdbtk without X.
b30fcfae 2936 enable_gdbtk=no
71ab34df 2937 ;;
2938 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2939esac
a8298541 2940
6c9785b4 2941# Some are only suitable for cross toolchains.
71ab34df 2942# Remove these if host=target.
2943cross_only="target-libgloss target-newlib target-opcodes"
2944
2945case $is_cross_compiler in
2946 no) skipdirs="${skipdirs} ${cross_only}" ;;
71ab34df 2947esac
a8298541 2948
71ab34df 2949# If both --with-headers and --with-libs are specified, default to
2950# --without-newlib.
e8eddfdd 2951if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2952 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
71ab34df 2953 if test x"${with_newlib}" = x ; then
2954 with_newlib=no
2955 fi
a8298541 2956fi
2957
71ab34df 2958# Recognize --with-newlib/--without-newlib.
2959case ${with_newlib} in
2960 no) skipdirs="${skipdirs} target-newlib" ;;
2961 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2962esac
a8298541 2963
a3d93be3 2964# Check whether --enable-as-accelerator-for was given.
2965if test "${enable_as_accelerator_for+set}" = set; then :
67cedda8 2966 enableval=$enable_as_accelerator_for;
a3d93be3 2967fi
2968
2969
2970# Check whether --enable-offload-targets was given.
2971if test "${enable_offload_targets+set}" = set; then :
2972 enableval=$enable_offload_targets;
2973 if test x"$enable_offload_targets" = x; then
f00f02a3 2974 as_fn_error $? "no offload targets specified" "$LINENO" 5
a3d93be3 2975 fi
2976
2977else
2978 enable_offload_targets=
2979fi
2980
2981
1e369e5f 2982# Handle --enable-gold, --enable-ld.
2983# --disable-gold [--enable-ld]
2984# Build only ld. Default option.
85516948 2985# --enable-gold [--enable-ld]
2986# Build both gold and ld. Install gold as "ld.gold", install ld
2987# as "ld.bfd" and "ld".
2988# --enable-gold=default [--enable-ld]
1e369e5f 2989# Build both gold and ld. Install gold as "ld.gold" and "ld",
2990# install ld as "ld.bfd".
2991# --enable-gold[=default] --disable-ld
2992# Build only gold, which is then installed as both "ld.gold" and "ld".
2993# --enable-gold --enable-ld=default
85516948 2994# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2995# and ld.bfd).
1e369e5f 2996# In other words, ld is default
2997# --enable-gold=default --enable-ld=default
2998# Error.
2999
3000default_ld=
cd9a469c 3001# Check whether --enable-gold was given.
3002if test "${enable_gold+set}" = set; then :
3003 enableval=$enable_gold; ENABLE_GOLD=$enableval
3d47fcf5 3004else
3005 ENABLE_GOLD=no
cd9a469c 3006fi
3007
1e369e5f 3008case "${ENABLE_GOLD}" in
3009 yes|default)
af7c5662 3010 # Check for ELF target.
3011 is_elf=no
3012 case "${target}" in
3013 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
e4c33dd2 3014 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
e3a1fe08 3015 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
9d36d513 3016 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
af7c5662 3017 case "${target}" in
3018 *-*-linux*aout* | *-*-linux*oldld*)
3019 ;;
3020 *)
3021 is_elf=yes
3022 ;;
3023 esac
3024 esac
3025
3026 if test "$is_elf" = "yes"; then
3027 # Check for target supported by gold.
3d47fcf5 3028 case "${target}" in
58f62c51 3029 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
ca7ff757 3030 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
1e369e5f 3031 configdirs="$configdirs gold"
3032 if test x${ENABLE_GOLD} = xdefault; then
3033 default_ld=gold
3034 fi
af7c5662 3035 ENABLE_GOLD=yes
3d47fcf5 3036 ;;
3037 esac
af7c5662 3038 fi
3039 ;;
3040 no)
3041 ;;
3042 *)
f00f02a3 3043 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
af7c5662 3044 ;;
1e369e5f 3045esac
3046
3047# Check whether --enable-ld was given.
3048if test "${enable_ld+set}" = set; then :
3049 enableval=$enable_ld; ENABLE_LD=$enableval
3050else
3051 ENABLE_LD=yes
3052fi
3053
3054
3055case "${ENABLE_LD}" in
3056 default)
85516948 3057 if test x${default_ld} != x; then
f00f02a3 3058 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
1e369e5f 3059 fi
3060 ;;
3061 yes)
3062 ;;
3063 no)
3064 if test x${ENABLE_GOLD} != xyes; then
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3066$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3067 fi
3068 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3069 ;;
3070 *)
f00f02a3 3071 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
1e369e5f 3072 ;;
3073esac
3d47fcf5 3074
afb6adb9 3075# PR gas/19109
3076# Decide the default method for compressing debug sections.
3077# Provide a configure time option to override our default.
3078# Check whether --enable-compressed_debug_sections was given.
3079if test "${enable_compressed_debug_sections+set}" = set; then :
3080 enableval=$enable_compressed_debug_sections;
3081 if test x"$enable_compressed_debug_sections" = xyes; then
f00f02a3 3082 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
afb6adb9 3083 fi
3084
3085else
3086 enable_compressed_debug_sections=
3087fi
3088
3089
71ab34df 3090# Configure extra directories which are host specific
a8298541 3091
71ab34df 3092case "${host}" in
3093 *-cygwin*)
3094 configdirs="$configdirs libtermcap" ;;
3095esac
a8298541 3096
ff7dcf6a 3097# A target can indicate whether a language isn't supported for some reason.
3098# Only spaces may be used in this macro; not newlines or tabs.
3099unsupported_languages=
3100
b30fcfae 3101# Remove more programs from consideration, based on the host or
71ab34df 3102# target this usually means that a port of the program doesn't
3103# exist yet.
c7879c37 3104
71ab34df 3105case "${host}" in
b2240ff6 3106 i[3456789]86-*-msdosdjgpp*)
e3a5e6ff 3107 noconfigdirs="$noconfigdirs tcl tk itcl"
71ab34df 3108 ;;
71ab34df 3109esac
c7879c37 3110
4ee9c684 3111
d9d975ae 3112# Check whether --enable-libquadmath was given.
3113if test "${enable_libquadmath+set}" = set; then :
3114 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3115else
3116 ENABLE_LIBQUADMATH=yes
3117fi
3118
3119if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3120 noconfigdirs="$noconfigdirs target-libquadmath"
3121fi
3122
3123
3124# Check whether --enable-libquadmath-support was given.
3125if test "${enable_libquadmath_support+set}" = set; then :
3126 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3127else
3128 ENABLE_LIBQUADMATH_SUPPORT=yes
3129fi
3130
3131enable_libquadmath_support=
3132if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3133 enable_libquadmath_support=no
3134fi
3135
3136
cd9a469c 3137# Check whether --enable-libada was given.
3138if test "${enable_libada+set}" = set; then :
3139 enableval=$enable_libada; ENABLE_LIBADA=$enableval
93341878 3140else
3141 ENABLE_LIBADA=yes
cd9a469c 3142fi
3143
93341878 3144if test "${ENABLE_LIBADA}" != "yes" ; then
a136b23d 3145 noconfigdirs="$noconfigdirs gnattools"
93341878 3146fi
3147
cd9a469c 3148# Check whether --enable-libssp was given.
3149if test "${enable_libssp+set}" = set; then :
3150 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
07da5214 3151else
3152 ENABLE_LIBSSP=yes
cd9a469c 3153fi
3154
07da5214 3155
a3ba808f 3156# Check whether --enable-libstdcxx was given.
3157if test "${enable_libstdcxx+set}" = set; then :
3158 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3159else
3160 ENABLE_LIBSTDCXX=default
3161fi
3162
3163if test "${ENABLE_LIBSTDCXX}" = "no" ; then
df148e44 3164 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a3ba808f 3165fi
3166
d3a7dd32 3167# If this is accelerator compiler and its target is intelmic we enable
3168# target liboffloadmic by default. If this is compiler with offloading
3169# for intelmic we enable host liboffloadmic by default. Otherwise
3170# liboffloadmic is disabled by default.
3171# Check whether --enable-liboffloadmic was given.
3172if test "${enable_liboffloadmic+set}" = set; then :
3173 enableval=$enable_liboffloadmic; case "$enableval" in
3174 no | host | target)
3175 enable_liboffloadmic=$enableval ;;
3176 *)
f00f02a3 3177 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
d3a7dd32 3178esac
3179else
67cedda8 3180 if test x"$enable_as_accelerator_for" != x; then
d3a7dd32 3181 case "${target}" in
3182 *-intelmic-* | *-intelmicemul-*)
3183 enable_liboffloadmic=target
3184 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3185 ;;
3186 *)
3187 enable_liboffloadmic=no
3188 ;;
3189 esac
3190else
3191 case "${enable_offload_targets}" in
3192 *-intelmic-* | *-intelmicemul-*)
3193 enable_liboffloadmic=host
3194 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3195 ;;
3196 *)
3197 enable_liboffloadmic=no
3198 ;;
3199 esac
3200fi
3201fi
3202
3203
3204
fdcd05c8 3205# Enable libgomp by default on hosted POSIX systems, and a few others.
50996fe5 3206if test x$enable_libgomp = x ; then
1e8e9920 3207 case "${target}" in
3bef4012 3208 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
1e8e9920 3209 ;;
e3a1fe08 3210 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
1e8e9920 3211 ;;
5641963c 3212 *-*-solaris2* | *-*-hpux11*)
1e8e9920 3213 ;;
634efbee 3214 *-*-darwin* | *-*-aix*)
1e8e9920 3215 ;;
fdcd05c8 3216 nvptx*-*-*)
3217 ;;
1e8e9920 3218 *)
3219 noconfigdirs="$noconfigdirs target-libgomp"
3220 ;;
3221 esac
50996fe5 3222fi
1e8e9920 3223
6db1d2ca 3224# Disable libatomic on unsupported systems.
3225if test -d ${srcdir}/libatomic; then
3226 if test x$enable_libatomic = x; then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3228$as_echo_n "checking for libatomic support... " >&6; }
3229 if (srcdir=${srcdir}/libatomic; \
3230 . ${srcdir}/configure.tgt; \
3231 test -n "$UNSUPPORTED")
3232 then
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234$as_echo "no" >&6; }
3235 noconfigdirs="$noconfigdirs target-libatomic"
3236 else
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3238$as_echo "yes" >&6; }
3239 fi
3240 fi
3241fi
3242
d3a7dd32 3243# Disable liboffloadmic on unsupported systems.
3244if test -d ${srcdir}/liboffloadmic; then
3245 if test x$enable_liboffloadmic != xno; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3247$as_echo_n "checking for liboffloadmic support... " >&6; }
3248 if (srcdir=${srcdir}/liboffloadmic; \
3249 . ${srcdir}/configure.tgt; \
3250 test -n "$UNSUPPORTED")
3251 then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253$as_echo "no" >&6; }
3254 noconfigdirs="$noconfigdirs target-liboffloadmic"
3255 else
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3257$as_echo "yes" >&6; }
3258 fi
3259 fi
3260fi
3261
42b15c81 3262# Disable libitm on unsupported systems.
3263if test -d ${srcdir}/libitm; then
3264 if test x$enable_libitm = x; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
298c66d9 3266$as_echo_n "checking for libitm support... " >&6; }
42b15c81 3267 if (srcdir=${srcdir}/libitm; \
3268 . ${srcdir}/configure.tgt; \
3269 test -n "$UNSUPPORTED")
3270 then
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
298c66d9 3272$as_echo "no" >&6; }
42b15c81 3273 noconfigdirs="$noconfigdirs target-libitm"
3274 else
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
298c66d9 3276$as_echo "yes" >&6; }
42b15c81 3277 fi
3278 fi
4c0315d0 3279fi
3280
492e75a7 3281# Disable libsanitizer on unsupported systems.
3282if test -d ${srcdir}/libsanitizer; then
3283 if test x$enable_libsanitizer = x; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3285$as_echo_n "checking for libsanitizer support... " >&6; }
3286 if (srcdir=${srcdir}/libsanitizer; \
3287 . ${srcdir}/configure.tgt; \
3288 test -n "$UNSUPPORTED")
3289 then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291$as_echo "no" >&6; }
3292 noconfigdirs="$noconfigdirs target-libsanitizer"
3293 else
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3295$as_echo "yes" >&6; }
3296 fi
3297 fi
3298fi
3299
b710ec85 3300# Disable libvtv on unsupported systems.
3301if test -d ${srcdir}/libvtv; then
3302 if test x$enable_libvtv = x; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3304$as_echo_n "checking for libvtv support... " >&6; }
3305 if (srcdir=${srcdir}/libvtv; \
3306 . ${srcdir}/configure.tgt; \
6d0992e1 3307 test "$VTV_SUPPORTED" != "yes")
b710ec85 3308 then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310$as_echo "no" >&6; }
3311 noconfigdirs="$noconfigdirs target-libvtv"
3312 else
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3314$as_echo "yes" >&6; }
3315 fi
3316 fi
3317fi
3318
202baac8 3319
645a0bd9 3320# Disable libhsail-rt on unsupported systems.
3321if test -d ${srcdir}/libhsail-rt; then
3322 if test x$enable_libhsail_rt = x; then
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3324$as_echo_n "checking for libhsail-rt support... " >&6; }
3325 if (srcdir=${srcdir}/libhsail-rt; \
3326 . ${srcdir}/configure.tgt; \
3327 test -n "$UNSUPPORTED")
3328 then
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330$as_echo "no" >&6; }
3331 unsupported_languages="$unsupported_languages brig"
3332 # This implicitly disables also target-libhsail-rt as it won't
3333 # get added to the build without BRIG FE.
3334 else
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3336$as_echo "yes" >&6; }
3337 fi
3338 fi
3339fi
202baac8 3340
3341
62f0972f 3342# Disable libquadmath for some systems.
3343case "${target}" in
c36ee471 3344 avr-*-*)
3345 noconfigdirs="$noconfigdirs target-libquadmath"
3346 ;;
62f0972f 3347 # libquadmath is unused on AIX and libquadmath build process use of
3348 # LD_LIBRARY_PATH can break AIX bootstrap.
3349 powerpc-*-aix* | rs6000-*-aix*)
3350 noconfigdirs="$noconfigdirs target-libquadmath"
3351 ;;
3352esac
3353
d5831552 3354# Disable libssp for some systems.
3355case "${target}" in
3356 avr-*-*)
76c19016 3357 # No hosted I/O support.
d5831552 3358 noconfigdirs="$noconfigdirs target-libssp"
3359 ;;
3360 powerpc-*-aix* | rs6000-*-aix*)
3361 noconfigdirs="$noconfigdirs target-libssp"
78e515f7 3362 ;;
48aa9227 3363 pru-*-*)
3364 # No hosted I/O support.
3365 noconfigdirs="$noconfigdirs target-libssp"
3366 ;;
78e515f7 3367 rl78-*-*)
9d5fd7d0 3368 # libssp uses a misaligned load to trigger a fault, but the RL78
3369 # doesn't fault for those - instead, it gives a build-time error
3370 # for explicit misaligned loads.
78e515f7 3371 noconfigdirs="$noconfigdirs target-libssp"
d5831552 3372 ;;
8992df51 3373 visium-*-*)
3374 # No hosted I/O support.
3375 noconfigdirs="$noconfigdirs target-libssp"
3376 ;;
d5831552 3377esac
3378
d5831552 3379# Disable libstdc++-v3 for some systems.
a3ba808f 3380# Allow user to override this if they pass --enable-libstdc++-v3
3381if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3382 case "${target}" in
3383 *-*-vxworks*)
3384 # VxWorks uses the Dinkumware C++ library.
3385 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3386 ;;
3387 arm*-wince-pe*)
3388 # the C++ libraries don't build on top of CE's C libraries
3389 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3390 ;;
3391 avr-*-*)
3392 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3393 ;;
b6616c9c 3394 ft32-*-*)
3395 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3396 ;;
a3ba808f 3397 esac
3398fi
d5831552 3399
72a2ce3d 3400# Disable D on systems where it is known to not work.
3401# For testing, you can override this with --enable-languages=d.
3402case ,${enable_languages}, in
3403 *,d,*)
3404 ;;
3405 *)
3406 case "${target}" in
77999887 3407 *-*-darwin*)
72a2ce3d 3408 unsupported_languages="$unsupported_languages d"
3409 ;;
3410 esac
3411 ;;
3412esac
3413
3414# Disable libphobos on unsupported systems.
3415# For testing, you can override this with --enable-libphobos.
3416if test -d ${srcdir}/libphobos; then
3417 if test x$enable_libphobos = x; then
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3419$as_echo_n "checking for libphobos support... " >&6; }
3420 if (srcdir=${srcdir}/libphobos; \
3421 . ${srcdir}/configure.tgt; \
20abc61c 3422 test "$LIBPHOBOS_SUPPORTED" != "yes")
72a2ce3d 3423 then
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425$as_echo "no" >&6; }
3426 noconfigdirs="$noconfigdirs target-libphobos"
3427 else
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3429$as_echo "yes" >&6; }
3430 fi
3431 fi
3432fi
3433
d5831552 3434# Disable Fortran for some systems.
3435case "${target}" in
3436 mmix-*-*)
3437 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3438 unsupported_languages="$unsupported_languages fortran"
3439 ;;
3440esac
3441
38cf534f 3442# Disable libffi for some systems.
3443case "${target}" in
3444 powerpc-*-darwin*)
3445 ;;
3446 i[3456789]86-*-darwin*)
3447 ;;
3448 x86_64-*-darwin[912]*)
3449 ;;
3450 *-*-darwin*)
3451 noconfigdirs="$noconfigdirs target-libffi"
3452 ;;
3453 *-*-netware*)
3454 noconfigdirs="$noconfigdirs target-libffi"
3455 ;;
3456 *-*-phoenix*)
3457 noconfigdirs="$noconfigdirs target-libffi"
3458 ;;
3459 *-*-rtems*)
3460 noconfigdirs="$noconfigdirs target-libffi"
3461 ;;
3462 *-*-tpf*)
3463 noconfigdirs="$noconfigdirs target-libffi"
3464 ;;
3465 *-*-uclinux*)
3466 noconfigdirs="$noconfigdirs target-libffi"
3467 ;;
3468 *-*-vxworks*)
3469 noconfigdirs="$noconfigdirs target-libffi"
3470 ;;
88afddbc 3471 aarch64*-*-freebsd*)
3472 noconfigdirs="$noconfigdirs target-libffi"
3473 ;;
38cf534f 3474 alpha*-*-*vms*)
3475 noconfigdirs="$noconfigdirs target-libffi"
3476 ;;
3477 arm*-*-freebsd*)
3478 noconfigdirs="$noconfigdirs target-libffi"
3479 ;;
3480 arm-wince-pe)
3481 noconfigdirs="$noconfigdirs target-libffi"
3482 ;;
3483 arm*-*-symbianelf*)
3484 noconfigdirs="$noconfigdirs target-libffi"
3485 ;;
3486 cris-*-* | crisv32-*-*)
3487 case "${target}" in
3488 *-*-linux*)
3489 ;;
3490 *) # See PR46792 regarding target-libffi.
3491 noconfigdirs="$noconfigdirs target-libffi";;
3492 esac
3493 ;;
3494 hppa*64*-*-hpux*)
3495 noconfigdirs="$noconfigdirs target-libffi"
3496 ;;
3497 hppa*-hp-hpux11*)
3498 ;;
3499 hppa*-*-hpux*)
3500 noconfigdirs="$noconfigdirs target-libffi"
3501 ;;
3502 ia64*-*-*vms*)
3503 noconfigdirs="$noconfigdirs target-libffi"
3504 ;;
3505 i[3456789]86-w64-mingw*)
3506 noconfigdirs="$noconfigdirs target-libffi"
3507 ;;
3508 i[3456789]86-*-mingw*)
3509 noconfigdirs="$noconfigdirs target-libffi"
3510 ;;
3511 x86_64-*-mingw*)
3512 noconfigdirs="$noconfigdirs target-libffi"
3513 ;;
3514 mmix-*-*)
3515 noconfigdirs="$noconfigdirs target-libffi"
3516 ;;
3517 powerpc-*-aix*)
38cf534f 3518 ;;
3519 rs6000-*-aix*)
38cf534f 3520 ;;
3521 ft32-*-*)
3522 noconfigdirs="$noconfigdirs target-libffi"
3523 ;;
3524 *-*-lynxos*)
3525 noconfigdirs="$noconfigdirs target-libffi"
3526 ;;
3527esac
3528
3529# Disable the go frontend on systems where it is known to not work. Please keep
3530# this in sync with contrib/config-list.mk.
3531case "${target}" in
475738b0 3532*-*-darwin* | *-*-cygwin* | *-*-mingw*)
38cf534f 3533 unsupported_languages="$unsupported_languages go"
3534 ;;
3535esac
3536
a6999726 3537# Disable libgo for some systems where it is known to not work.
3538# For testing, you can easily override this with --enable-libgo.
3539if test x$enable_libgo = x; then
3540 case "${target}" in
3541 *-*-darwin*)
3542 # PR 46986
3543 noconfigdirs="$noconfigdirs target-libgo"
3544 ;;
3545 *-*-cygwin* | *-*-mingw*)
3546 noconfigdirs="$noconfigdirs target-libgo"
3547 ;;
a6999726 3548 esac
3549fi
3550
1c5767f1 3551# Default libgloss CPU subdirectory.
3552libgloss_dir="$target_cpu"
4ee9c684 3553
e0942c78 3554case "${target}" in
3555 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3556 libgloss_dir=wince
3557 ;;
e26fddfa 3558 aarch64*-*-* )
3559 libgloss_dir=aarch64
3560 ;;
e0942c78 3561 arm*-*-*)
3562 libgloss_dir=arm
3563 ;;
3564 cris-*-* | crisv32-*-*)
3565 libgloss_dir=cris
3566 ;;
3567 hppa*-*-*)
3568 libgloss_dir=pa
3569 ;;
3570 i[3456789]86-*-*)
3571 libgloss_dir=i386
3572 ;;
3573 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3574 libgloss_dir=m68hc11
3575 ;;
3576 m68*-*-* | fido-*-*)
3577 libgloss_dir=m68k
3578 ;;
3579 mips*-*-*)
3580 libgloss_dir=mips
3581 ;;
3582 powerpc*-*-*)
3583 libgloss_dir=rs6000
3584 ;;
48aa9227 3585 pru-*-*)
3586 libgloss_dir=pru
3587 ;;
e0942c78 3588 sparc*-*-*)
3589 libgloss_dir=sparc
3590 ;;
3591esac
3592
d556f192 3593# Disable newlib and libgloss for various target OSes.
71ab34df 3594case "${target}" in
d556f192 3595 alpha*-dec-osf*)
3596 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3597 ;;
3598 i[3456789]86-*-linux*)
3599 # This section makes it possible to build newlib natively on linux.
3600 # If we are using a cross compiler then don't configure newlib.
3601 if test x${is_cross_compiler} != xno ; then
3602 noconfigdirs="$noconfigdirs target-newlib"
3603 fi
3604 noconfigdirs="$noconfigdirs target-libgloss"
3605 # If we are not using a cross compiler, do configure newlib.
3606 # Note however, that newlib will only be configured in this situation
3607 # if the --with-newlib option has been given, because otherwise
3608 # 'target-newlib' will appear in skipdirs.
3609 ;;
3610 i[3456789]86-*-rdos*)
3611 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3612 ;;
3613 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3614 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3615 ;;
3616 sparc-*-sunos4*)
3617 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3618 ;;
3619 *-*-aix*)
3620 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3621 ;;
3622 *-*-beos*)
3623 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3624 ;;
71ab34df 3625 *-*-chorusos)
71559dce 3626 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
71ab34df 3627 ;;
d556f192 3628 *-*-dragonfly*)
3629 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3630 ;;
3631 *-*-freebsd*)
3632 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3633 ;;
3634 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3635 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3636 ;;
3637 *-*-lynxos*)
3638 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3639 ;;
3640 *-*-mingw*)
3641 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3642 ;;
3643 *-*-netbsd*)
3644 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3645 ;;
3646 *-*-netware*)
3647 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3648 ;;
3649 *-*-tpf*)
3650 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3651 ;;
3652 *-*-uclinux*)
3653 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3654 ;;
3655 *-*-vxworks*)
3656 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3657 ;;
3658esac
3659
3660case "${target}" in
3661 *-*-chorusos)
3662 ;;
38f4c967 3663 aarch64-*-darwin*)
3664 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3665 noconfigdirs="$noconfigdirs sim target-rda"
3666 ;;
d62c0949 3667 amdgcn*-*-*)
3668 ;;
38f4c967 3669 arm-*-darwin*)
3670 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3671 noconfigdirs="$noconfigdirs sim target-rda"
3672 ;;
40c500e1 3673 powerpc-*-darwin*)
dba2c8ea 3674 noconfigdirs="$noconfigdirs ld gas gdb gprof"
d28caca4 3675 noconfigdirs="$noconfigdirs sim target-rda"
0894307c 3676 ;;
ea864ded 3677 i[3456789]86-*-darwin*)
3678 noconfigdirs="$noconfigdirs ld gprof"
3679 noconfigdirs="$noconfigdirs sim target-rda"
3680 ;;
3681 x86_64-*-darwin[912]*)
d9f9f3af 3682 noconfigdirs="$noconfigdirs ld gas gprof"
3683 noconfigdirs="$noconfigdirs sim target-rda"
3684 ;;
fce068fd 3685 *-*-darwin*)
3686 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3687 noconfigdirs="$noconfigdirs sim target-rda"
fce068fd 3688 ;;
e3a1fe08 3689 *-*-dragonfly*)
e3a1fe08 3690 ;;
c01dd063 3691 *-*-freebsd*)
4ee9c684 3692 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3693 && test -f /usr/local/include/gmp.h; then
3694 with_gmp=/usr/local
3695 fi
4ee9c684 3696 ;;
336577be 3697 *-*-kaos*)
3698 # Remove unsupported stuff on all kaOS configurations.
336577be 3699 noconfigdirs="$noconfigdirs target-libgloss"
3700 ;;
71ab34df 3701 *-*-netbsd*)
71ab34df 3702 ;;
634f7a13 3703 *-*-netware*)
71ab34df 3704 ;;
1d6aa005 3705 *-*-phoenix*)
3706 noconfigdirs="$noconfigdirs target-libgloss"
3707 ;;
71ab34df 3708 *-*-rtems*)
f24be480 3709 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3710 ;;
9f88bc9d 3711 # The tpf target doesn't support gdb yet.
3712 *-*-tpf*)
d556f192 3713 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
9f88bc9d 3714 ;;
688429c4 3715 *-*-uclinux*)
d556f192 3716 noconfigdirs="$noconfigdirs target-rda"
688429c4 3717 ;;
71ab34df 3718 *-*-vxworks*)
71ab34df 3719 ;;
3720 alpha*-dec-osf*)
3721 # ld works, but does not support shared libraries.
71ab34df 3722 # gas doesn't generate exception information.
d556f192 3723 noconfigdirs="$noconfigdirs gas ld"
71ab34df 3724 ;;
3725 alpha*-*-*vms*)
f24be480 3726 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
71ab34df 3727 ;;
71ab34df 3728 alpha*-*-*)
3729 # newlib is not 64 bit ready
f24be480 3730 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
71ab34df 3731 ;;
71ab34df 3732 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
f843f075 3733 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
71ab34df 3734 ;;
194b906d 3735 arc*-*-*)
3736 noconfigdirs="$noconfigdirs sim"
3737 ;;
71ab34df 3738 arm-*-pe*)
f24be480 3739 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3740 ;;
71ab34df 3741 arm-*-riscix*)
71559dce 3742 noconfigdirs="$noconfigdirs ld target-libgloss"
71ab34df 3743 ;;
fd28e216 3744 avr-*-*)
3745 if test x${with_avrlibc} != xno; then
3746 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3747 fi
3748 ;;
71ab34df 3749 c4x-*-* | tic4x-*-*)
71559dce 3750 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3751 ;;
71559dce 3752 tic54x-*-*)
3753 noconfigdirs="$noconfigdirs target-libgloss gdb"
71ab34df 3754 ;;
71ab34df 3755 d10v-*-*)
71559dce 3756 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3757 ;;
3758 d30v-*-*)
71559dce 3759 noconfigdirs="$noconfigdirs gdb"
71ab34df 3760 ;;
3761 fr30-*-elf*)
f24be480 3762 noconfigdirs="$noconfigdirs gdb"
71ab34df 3763 ;;
6406d366 3764 ft32-*-*)
3765 noconfigdirs="$noconfigdirs target-rda gprof"
3766 ;;
ca2751b6 3767 moxie-*-*)
6406d366 3768 noconfigdirs="$noconfigdirs"
ca2751b6 3769 ;;
71ab34df 3770 h8300*-*-*)
f24be480 3771 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3772 ;;
3773 h8500-*-*)
71559dce 3774 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3775 ;;
e8eddfdd 3776 hppa1.1-*-osf* | hppa1.1-*-bsd* )
e8eddfdd 3777 ;;
6406d366 3778 hppa*64*-*-hpux*)
3779 noconfigdirs="$noconfigdirs gdb"
3780 ;;
3781 hppa*-*-hpux11*)
3782 noconfigdirs="$noconfigdirs gdb ld"
3783 ;;
6bd59761 3784 hppa*64*-*-linux*)
71ab34df 3785 ;;
99684e84 3786 hppa*-*-linux*)
08261f02 3787 ;;
71ab34df 3788 hppa*-*-*elf* | \
71ab34df 3789 hppa*-*-lites* | \
3790 hppa*-*-openbsd* | \
3791 hppa*64*-*-*)
71ab34df 3792 ;;
1c5767f1 3793 hppa*-*-pro*)
1c5767f1 3794 ;;
71ab34df 3795 hppa*-*-*)
f24be480 3796 noconfigdirs="$noconfigdirs ld"
71ab34df 3797 ;;
4a9237fb 3798 i960-*-*)
71559dce 3799 noconfigdirs="$noconfigdirs gdb"
4a9237fb 3800 ;;
71ab34df 3801 ia64*-*-elf*)
3802 # No gdb support yet.
6c9785b4 3803 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
71ab34df 3804 ;;
3805 ia64*-**-hpux*)
1aca86a6 3806 # No ld support yet.
6406d366 3807 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
71ab34df 3808 ;;
8408ca00 3809 ia64*-*-*vms*)
3211401d 3810 # No ld support yet.
3811 noconfigdirs="$noconfigdirs libgui itcl ld"
8408ca00 3812 ;;
ec2eb8fb 3813 i[3456789]86-w64-mingw*)
ec2eb8fb 3814 ;;
3815 i[3456789]86-*-mingw*)
d6d689df 3816 target_configdirs="$target_configdirs target-winsup"
b30fcfae 3817 ;;
71ab34df 3818 *-*-cygwin*)
3819 target_configdirs="$target_configdirs target-libtermcap target-winsup"
6c9785b4 3820 noconfigdirs="$noconfigdirs target-libgloss"
2c10944d 3821 # always build newlib if winsup directory is present.
d6d689df 3822 if test -d "$srcdir/winsup/cygwin"; then
2c10944d 3823 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
e8eddfdd 3824 elif test -d "$srcdir/newlib"; then
d6d689df 3825 echo "Warning: winsup/cygwin is missing so newlib can't be built."
2c10944d 3826 fi
b30fcfae 3827 ;;
f74ea578 3828 i[3456789]86-*-pe)
17b3d2a8 3829 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3830 ;;
f74ea578 3831 i[3456789]86-*-sco3.2v5*)
71ab34df 3832 # The linker does not yet know about weak symbols in COFF,
3833 # and is not configured to handle mixed ELF and COFF.
71559dce 3834 noconfigdirs="$noconfigdirs ld target-libgloss"
71ab34df 3835 ;;
f74ea578 3836 i[3456789]86-*-sco*)
71559dce 3837 noconfigdirs="$noconfigdirs gprof target-libgloss"
71ab34df 3838 ;;
14f27bc6 3839 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
71ab34df 3840 noconfigdirs="$noconfigdirs target-libgloss"
3841 ;;
f74ea578 3842 i[3456789]86-*-sysv4*)
71559dce 3843 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3844 ;;
f74ea578 3845 i[3456789]86-*-beos*)
d556f192 3846 noconfigdirs="$noconfigdirs gdb"
602d002b 3847 ;;
ab0da556 3848 i[3456789]86-*-rdos*)
d556f192 3849 noconfigdirs="$noconfigdirs gdb"
1c5767f1 3850 ;;
71ab34df 3851 mmix-*-*)
f24be480 3852 noconfigdirs="$noconfigdirs gdb"
71ab34df 3853 ;;
957985d9 3854 mt-*-*)
f6fa11cb 3855 noconfigdirs="$noconfigdirs sim"
3856 ;;
b9bdd103 3857 nfp-*-*)
3858 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3859 noconfigdirs="$noconfigdirs $target_libraries"
3860 ;;
71ab34df 3861 powerpc-*-aix*)
3862 # copied from rs6000-*-* entry
d556f192 3863 noconfigdirs="$noconfigdirs gprof"
71ab34df 3864 ;;
6bd59761 3865 powerpc*-*-winnt* | powerpc*-*-pe*)
71ab34df 3866 target_configdirs="$target_configdirs target-winsup"
71559dce 3867 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
71ab34df 3868 # always build newlib.
3869 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3870 ;;
3871 # This is temporary until we can link against shared libraries
3872 powerpcle-*-solaris*)
71559dce 3873 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
71ab34df 3874 ;;
3875 powerpc-*-beos*)
d556f192 3876 noconfigdirs="$noconfigdirs gdb"
71ab34df 3877 ;;
71ab34df 3878 rs6000-*-lynxos*)
d556f192 3879 noconfigdirs="$noconfigdirs gprof"
71ab34df 3880 ;;
3881 rs6000-*-aix*)
d556f192 3882 noconfigdirs="$noconfigdirs gprof"
71ab34df 3883 ;;
3884 rs6000-*-*)
f24be480 3885 noconfigdirs="$noconfigdirs gprof"
71ab34df 3886 ;;
3887 m68k-apollo-*)
71559dce 3888 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
71ab34df 3889 ;;
ba2b484f 3890 microblaze*)
f24be480 3891 noconfigdirs="$noconfigdirs gprof"
ba2b484f 3892 ;;
d781ea5c 3893 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
68c9bc25 3894 if test x$with_newlib = xyes; then
3895 noconfigdirs="$noconfigdirs gprof"
3896 fi
68c9bc25 3897 ;;
71ab34df 3898 mips*-*-irix5*)
71559dce 3899 noconfigdirs="$noconfigdirs gprof target-libgloss"
71ab34df 3900 ;;
3901 mips*-*-irix6*)
f24be480 3902 noconfigdirs="$noconfigdirs gprof target-libgloss"
71ab34df 3903 ;;
71ab34df 3904 mips*-*-bsd*)
d6449910 3905 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
71ab34df 3906 ;;
71ab34df 3907 mips*-*-linux*)
71ab34df 3908 ;;
d6449910 3909 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3910 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3911 noconfigdirs="$noconfigdirs ld gas gprof"
3912 ;;
71ab34df 3913 mips*-*-*)
f24be480 3914 noconfigdirs="$noconfigdirs gprof"
71ab34df 3915 ;;
8ce80784 3916 nvptx*-*-*)
8ce80784 3917 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3918 ;;
9a9b5abf 3919 sh-*-*)
39f6b116 3920 case "${target}" in
3921 sh*-*-elf)
f24be480 3922 ;;
39f6b116 3923 *)
f24be480 3924 noconfigdirs="$noconfigdirs target-libgloss" ;;
39f6b116 3925 esac
71ab34df 3926 ;;
71ab34df 3927 sparc-*-sunos4*)
d556f192 3928 if test x${is_cross_compiler} = xno ; then
71ab34df 3929 use_gnu_ld=no
3930 fi
3931 ;;
fa0a53e3 3932 tic6x-*-*)
ccdfa490 3933 noconfigdirs="$noconfigdirs sim"
fa0a53e3 3934 ;;
2da35515 3935 tilepro*-*-* | tilegx*-*-*)
e5fa74b2 3936 noconfigdirs="$noconfigdirs sim"
3937 ;;
71ab34df 3938 v810-*-*)
71559dce 3939 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
71ab34df 3940 ;;
3941 vax-*-*)
f24be480 3942 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
71ab34df 3943 ;;
c2762a30 3944 wasm32-*-*)
3945 noconfigdirs="$noconfigdirs ld"
3946 ;;
71ab34df 3947esac
a8298541 3948
71ab34df 3949# If we aren't building newlib, then don't build libgloss, since libgloss
3950# depends upon some newlib header files.
3951case "${noconfigdirs}" in
3952 *target-libgloss*) ;;
3953 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3954esac
3955
71ab34df 3956# Work in distributions that contain no compiler tools, like Autoconf.
71ab34df 3957host_makefile_frag=/dev/null
3958if test -d ${srcdir}/config ; then
3959case "${host}" in
f74ea578 3960 i[3456789]86-*-msdosdjgpp*)
71ab34df 3961 host_makefile_frag="config/mh-djgpp"
3962 ;;
3963 *-cygwin*)
45043b2b 3964
cd9a469c 3965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3966$as_echo_n "checking to see if cat works as expected... " >&6; }
45043b2b 3967echo a >cygwin-cat-check
82d97a59 3968if test `cat cygwin-cat-check` = a ; then
45043b2b 3969 rm cygwin-cat-check
cd9a469c 3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3971$as_echo "yes" >&6; }
45043b2b 3972else
3973 rm cygwin-cat-check
cd9a469c 3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975$as_echo "no" >&6; }
f00f02a3 3976 as_fn_error $? "The cat command does not ignore carriage return characters.
45043b2b 3977 Please either mount the build directory in binary mode or run the following
3978 commands before running any configure script:
3979set -o igncr
3980export SHELLOPTS
cd9a469c 3981 " "$LINENO" 5
45043b2b 3982fi
3983
71ab34df 3984 host_makefile_frag="config/mh-cygwin"
3985 ;;
5a92bcc2 3986 *-mingw*)
70d8e49e 3987 host_makefile_frag="config/mh-mingw"
a378fc89 3988 ;;
bed3355c 3989 alpha*-linux*)
539ded76 3990 host_makefile_frag="config/mh-alpha-linux"
3991 ;;
d2b94e36 3992 hppa*-hp-hpux10*)
d2b94e36 3993 host_makefile_frag="config/mh-pa-hpux10"
71ab34df 3994 ;;
b2240ff6 3995 hppa*-hp-hpux*)
d2b94e36 3996 host_makefile_frag="config/mh-pa"
3997 ;;
3998 hppa*-*)
3999 host_makefile_frag="config/mh-pa"
4000 ;;
16463c8d 4001 *-*-darwin*)
4002 host_makefile_frag="config/mh-darwin"
0222d984 4003 ;;
9d44a802 4004 powerpc-*-aix*)
4005 host_makefile_frag="config/mh-ppc-aix"
4006 ;;
4007 rs6000-*-aix*)
4008 host_makefile_frag="config/mh-ppc-aix"
4009 ;;
71ab34df 4010esac
4011fi
4012
8e1fea1a 4013if test "${build}" != "${host}" ; then
93c5e793 4014 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4015 AS_FOR_BUILD=${AS_FOR_BUILD-as}
8e1fea1a 4016 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
93c5e793 4017 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
93c5e793 4018 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
5ff5b630 4019 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
03385ed3 4020 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
93c5e793 4021 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4022 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4023 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4024 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4025 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4026 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4027else
4028 AR_FOR_BUILD="\$(AR)"
4029 AS_FOR_BUILD="\$(AS)"
a4af6a58 4030 CC_FOR_BUILD="\$(CC)"
93c5e793 4031 CXX_FOR_BUILD="\$(CXX)"
93c5e793 4032 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
5ff5b630 4033 GOC_FOR_BUILD="\$(GOC)"
03385ed3 4034 GDC_FOR_BUILD="\$(GDC)"
93c5e793 4035 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4036 LD_FOR_BUILD="\$(LD)"
4037 NM_FOR_BUILD="\$(NM)"
4038 RANLIB_FOR_BUILD="\$(RANLIB)"
4039 WINDRES_FOR_BUILD="\$(WINDRES)"
4040 WINDMC_FOR_BUILD="\$(WINDMC)"
eae5b2bc 4041fi
4042
4043ac_ext=c
b30fcfae 4044ac_cpp='$CPP $CPPFLAGS'
4045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4047ac_compiler_gnu=$ac_cv_c_compiler_gnu
4048if test -n "$ac_tool_prefix"; then
4049 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4050set dummy ${ac_tool_prefix}gcc; ac_word=$2
cd9a469c 4051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4052$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4053if ${ac_cv_prog_CC+:} false; then :
cd9a469c 4054 $as_echo_n "(cached) " >&6
b30fcfae 4055else
4056 if test -n "$CC"; then
4057 ac_cv_prog_CC="$CC" # Let the user override the test.
4058else
4059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060for as_dir in $PATH
4061do
4062 IFS=$as_save_IFS
4063 test -z "$as_dir" && as_dir=.
cd9a469c 4064 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 4066 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cd9a469c 4067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 4068 break 2
4069 fi
4070done
cd9a469c 4071 done
4072IFS=$as_save_IFS
b30fcfae 4073
4074fi
4075fi
4076CC=$ac_cv_prog_CC
4077if test -n "$CC"; then
cd9a469c 4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4079$as_echo "$CC" >&6; }
b30fcfae 4080else
cd9a469c 4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4082$as_echo "no" >&6; }
b30fcfae 4083fi
4084
cd9a469c 4085
b30fcfae 4086fi
4087if test -z "$ac_cv_prog_CC"; then
4088 ac_ct_CC=$CC
a4af6a58 4089 # Extract the first word of "gcc", so it can be a program name with args.
4090set dummy gcc; ac_word=$2
cd9a469c 4091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4092$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4093if ${ac_cv_prog_ac_ct_CC+:} false; then :
cd9a469c 4094 $as_echo_n "(cached) " >&6
b30fcfae 4095else
4096 if test -n "$ac_ct_CC"; then
4097 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4098else
4099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100for as_dir in $PATH
4101do
4102 IFS=$as_save_IFS
4103 test -z "$as_dir" && as_dir=.
cd9a469c 4104 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 4106 ac_cv_prog_ac_ct_CC="gcc"
cd9a469c 4107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 4108 break 2
4109 fi
4110done
cd9a469c 4111 done
4112IFS=$as_save_IFS
b30fcfae 4113
4114fi
4115fi
4116ac_ct_CC=$ac_cv_prog_ac_ct_CC
4117if test -n "$ac_ct_CC"; then
cd9a469c 4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4119$as_echo "$ac_ct_CC" >&6; }
b30fcfae 4120else
cd9a469c 4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122$as_echo "no" >&6; }
b30fcfae 4123fi
4124
cd9a469c 4125 if test "x$ac_ct_CC" = x; then
4126 CC=""
4127 else
4128 case $cross_compiling:$ac_tool_warned in
4129yes:)
4130{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4131$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4132ac_tool_warned=yes ;;
4133esac
4134 CC=$ac_ct_CC
4135 fi
b30fcfae 4136else
4137 CC="$ac_cv_prog_CC"
4138fi
4139
4140if test -z "$CC"; then
cd9a469c 4141 if test -n "$ac_tool_prefix"; then
4142 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b30fcfae 4143set dummy ${ac_tool_prefix}cc; ac_word=$2
cd9a469c 4144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4145$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4146if ${ac_cv_prog_CC+:} false; then :
cd9a469c 4147 $as_echo_n "(cached) " >&6
8e1fea1a 4148else
4149 if test -n "$CC"; then
4150 ac_cv_prog_CC="$CC" # Let the user override the test.
4151else
b30fcfae 4152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153for as_dir in $PATH
4154do
4155 IFS=$as_save_IFS
4156 test -z "$as_dir" && as_dir=.
cd9a469c 4157 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 4159 ac_cv_prog_CC="${ac_tool_prefix}cc"
cd9a469c 4160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 4161 break 2
4162 fi
4163done
cd9a469c 4164 done
4165IFS=$as_save_IFS
b30fcfae 4166
a83ffacf 4167fi
a83ffacf 4168fi
b30fcfae 4169CC=$ac_cv_prog_CC
ae48753c 4170if test -n "$CC"; then
cd9a469c 4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4172$as_echo "$CC" >&6; }
5084f823 4173else
cd9a469c 4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4175$as_echo "no" >&6; }
5084f823 4176fi
4177
5084f823 4178
cd9a469c 4179 fi
b30fcfae 4180fi
8e1fea1a 4181if test -z "$CC"; then
4182 # Extract the first word of "cc", so it can be a program name with args.
4183set dummy cc; ac_word=$2
cd9a469c 4184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4185$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4186if ${ac_cv_prog_CC+:} false; then :
cd9a469c 4187 $as_echo_n "(cached) " >&6
8e1fea1a 4188else
4189 if test -n "$CC"; then
4190 ac_cv_prog_CC="$CC" # Let the user override the test.
4191else
a83ffacf 4192 ac_prog_rejected=no
b30fcfae 4193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194for as_dir in $PATH
4195do
4196 IFS=$as_save_IFS
4197 test -z "$as_dir" && as_dir=.
cd9a469c 4198 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 4200 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4201 ac_prog_rejected=yes
4202 continue
4203 fi
4204 ac_cv_prog_CC="cc"
cd9a469c 4205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 4206 break 2
4207 fi
4208done
cd9a469c 4209 done
4210IFS=$as_save_IFS
b30fcfae 4211
8e1fea1a 4212if test $ac_prog_rejected = yes; then
4213 # We found a bogon in the path, so make sure we never use it.
4214 set dummy $ac_cv_prog_CC
4215 shift
b30fcfae 4216 if test $# != 0; then
8e1fea1a 4217 # We chose a different compiler from the bogus one.
4218 # However, it has the same basename, so the bogon will be chosen
4219 # first if we set CC to just the basename; use the full file name.
4220 shift
b30fcfae 4221 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
8e1fea1a 4222 fi
4223fi
4224fi
4225fi
b30fcfae 4226CC=$ac_cv_prog_CC
8e1fea1a 4227if test -n "$CC"; then
cd9a469c 4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4229$as_echo "$CC" >&6; }
8e1fea1a 4230else
cd9a469c 4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4232$as_echo "no" >&6; }
8e1fea1a 4233fi
4234
cd9a469c 4235
b30fcfae 4236fi
4237if test -z "$CC"; then
4238 if test -n "$ac_tool_prefix"; then
cd9a469c 4239 for ac_prog in cl.exe
b30fcfae 4240 do
4241 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4242set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cd9a469c 4243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4244$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4245if ${ac_cv_prog_CC+:} false; then :
cd9a469c 4246 $as_echo_n "(cached) " >&6
8e1fea1a 4247else
4248 if test -n "$CC"; then
4249 ac_cv_prog_CC="$CC" # Let the user override the test.
4250else
b30fcfae 4251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252for as_dir in $PATH
4253do
4254 IFS=$as_save_IFS
4255 test -z "$as_dir" && as_dir=.
cd9a469c 4256 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 4258 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cd9a469c 4259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 4260 break 2
4261 fi
4262done
cd9a469c 4263 done
4264IFS=$as_save_IFS
b30fcfae 4265
8e1fea1a 4266fi
4267fi
b30fcfae 4268CC=$ac_cv_prog_CC
8e1fea1a 4269if test -n "$CC"; then
cd9a469c 4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4271$as_echo "$CC" >&6; }
b1660f25 4272else
cd9a469c 4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4274$as_echo "no" >&6; }
a4af6a58 4275fi
ae48753c 4276
cd9a469c 4277
b30fcfae 4278 test -n "$CC" && break
4279 done
ae48753c 4280fi
b30fcfae 4281if test -z "$CC"; then
4282 ac_ct_CC=$CC
cd9a469c 4283 for ac_prog in cl.exe
b30fcfae 4284do
4285 # Extract the first word of "$ac_prog", so it can be a program name with args.
4286set dummy $ac_prog; ac_word=$2
cd9a469c 4287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4288$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4289if ${ac_cv_prog_ac_ct_CC+:} false; then :
cd9a469c 4290 $as_echo_n "(cached) " >&6
a83ffacf 4291else
b30fcfae 4292 if test -n "$ac_ct_CC"; then
4293 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
a83ffacf 4294else
b30fcfae 4295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296for as_dir in $PATH
4297do
4298 IFS=$as_save_IFS
4299 test -z "$as_dir" && as_dir=.
cd9a469c 4300 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 4302 ac_cv_prog_ac_ct_CC="$ac_prog"
cd9a469c 4303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 4304 break 2
4305 fi
4306done
cd9a469c 4307 done
4308IFS=$as_save_IFS
b30fcfae 4309
ae48753c 4310fi
4311fi
b30fcfae 4312ac_ct_CC=$ac_cv_prog_ac_ct_CC
4313if test -n "$ac_ct_CC"; then
cd9a469c 4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4315$as_echo "$ac_ct_CC" >&6; }
a4af6a58 4316else
cd9a469c 4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4318$as_echo "no" >&6; }
ae48753c 4319fi
a83ffacf 4320
cd9a469c 4321
b30fcfae 4322 test -n "$ac_ct_CC" && break
4323done
4324
cd9a469c 4325 if test "x$ac_ct_CC" = x; then
4326 CC=""
4327 else
4328 case $cross_compiling:$ac_tool_warned in
4329yes:)
4330{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4331$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4332ac_tool_warned=yes ;;
4333esac
4334 CC=$ac_ct_CC
4335 fi
b30fcfae 4336fi
4337
4338fi
4339
4340
cd9a469c 4341test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4342$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 4343as_fn_error $? "no acceptable C compiler found in \$PATH
4344See \`config.log' for more details" "$LINENO" 5; }
b30fcfae 4345
4346# Provide some information about the compiler.
cd9a469c 4347$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4348set X $ac_compile
4349ac_compiler=$2
4350for ac_option in --version -v -V -qversion; do
4351 { { ac_try="$ac_compiler $ac_option >&5"
4352case "(($ac_try" in
4353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4354 *) ac_try_echo=$ac_try;;
4355esac
4356eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4357$as_echo "$ac_try_echo"; } >&5
4358 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b30fcfae 4359 ac_status=$?
cd9a469c 4360 if test -s conftest.err; then
4361 sed '10a\
4362... rest of stderr output deleted ...
4363 10q' conftest.err >conftest.er1
4364 cat conftest.er1 >&5
cd9a469c 4365 fi
f00f02a3 4366 rm -f conftest.er1 conftest.err
cd9a469c 4367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4368 test $ac_status = 0; }
4369done
b30fcfae 4370
cd9a469c 4371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 4372/* end confdefs.h. */
4373
4374int
4375main ()
4376{
4377
4378 ;
4379 return 0;
4380}
4381_ACEOF
4382ac_clean_files_save=$ac_clean_files
f00f02a3 4383ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
b30fcfae 4384# Try to create an executable without -o first, disregard a.out.
4385# It will help us diagnose broken compilers, and finding out an intuition
4386# of exeext.
f00f02a3 4387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4388$as_echo_n "checking whether the C compiler works... " >&6; }
cd9a469c 4389ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4390
4391# The possible output files:
4392ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4393
4394ac_rmfiles=
4395for ac_file in $ac_files
4396do
4397 case $ac_file in
4398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4399 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4400 esac
4401done
4402rm -f $ac_rmfiles
4403
4404if { { ac_try="$ac_link_default"
4405case "(($ac_try" in
4406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407 *) ac_try_echo=$ac_try;;
4408esac
4409eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4410$as_echo "$ac_try_echo"; } >&5
4411 (eval "$ac_link_default") 2>&5
b30fcfae 4412 ac_status=$?
cd9a469c 4413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4414 test $ac_status = 0; }; then :
4415 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4416# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4417# in a Makefile. We should not override ac_cv_exeext if it was cached,
4418# so that the user can short-circuit this test for compilers unknown to
4419# Autoconf.
4420for ac_file in $ac_files ''
b30fcfae 4421do
4422 test -f "$ac_file" || continue
4423 case $ac_file in
cd9a469c 4424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b30fcfae 4425 ;;
4426 [ab].out )
4427 # We found the default executable, but exeext='' is most
4428 # certainly right.
4429 break;;
4430 *.* )
cd9a469c 4431 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4432 then :; else
4433 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4434 fi
4435 # We set ac_cv_exeext here because the later test for it is not
4436 # safe: cross compilers may not add the suffix if given an `-o'
4437 # argument, so we may need to know it at that point already.
4438 # Even if this section looks crufty: it has the advantage of
4439 # actually working.
b30fcfae 4440 break;;
4441 * )
4442 break;;
4443 esac
4444done
cd9a469c 4445test "$ac_cv_exeext" = no && ac_cv_exeext=
4446
b30fcfae 4447else
cd9a469c 4448 ac_file=''
4449fi
cd9a469c 4450if test -z "$ac_file"; then :
f00f02a3 4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4452$as_echo "no" >&6; }
4453$as_echo "$as_me: failed program was:" >&5
b30fcfae 4454sed 's/^/| /' conftest.$ac_ext >&5
4455
cd9a469c 4456{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4457$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 4458as_fn_error 77 "C compiler cannot create executables
4459See \`config.log' for more details" "$LINENO" 5; }
4460else
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4462$as_echo "yes" >&6; }
b30fcfae 4463fi
f00f02a3 4464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4465$as_echo_n "checking for C compiler default output file name... " >&6; }
4466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4467$as_echo "$ac_file" >&6; }
b30fcfae 4468ac_exeext=$ac_cv_exeext
b30fcfae 4469
f00f02a3 4470rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
b30fcfae 4471ac_clean_files=$ac_clean_files_save
cd9a469c 4472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4473$as_echo_n "checking for suffix of executables... " >&6; }
4474if { { ac_try="$ac_link"
4475case "(($ac_try" in
4476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4477 *) ac_try_echo=$ac_try;;
4478esac
4479eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4480$as_echo "$ac_try_echo"; } >&5
4481 (eval "$ac_link") 2>&5
b30fcfae 4482 ac_status=$?
cd9a469c 4483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4484 test $ac_status = 0; }; then :
b30fcfae 4485 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4486# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4487# work properly (i.e., refer to `conftest.exe'), while it won't with
4488# `rm'.
4489for ac_file in conftest.exe conftest conftest.*; do
4490 test -f "$ac_file" || continue
4491 case $ac_file in
cd9a469c 4492 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b30fcfae 4493 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b30fcfae 4494 break;;
4495 * ) break;;
4496 esac
4497done
ae48753c 4498else
cd9a469c 4499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4500$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 4501as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4502See \`config.log' for more details" "$LINENO" 5; }
b30fcfae 4503fi
f00f02a3 4504rm -f conftest conftest$ac_cv_exeext
cd9a469c 4505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4506$as_echo "$ac_cv_exeext" >&6; }
b30fcfae 4507
4508rm -f conftest.$ac_ext
4509EXEEXT=$ac_cv_exeext
4510ac_exeext=$EXEEXT
f00f02a3 4511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4512/* end confdefs.h. */
4513#include <stdio.h>
4514int
4515main ()
4516{
4517FILE *f = fopen ("conftest.out", "w");
4518 return ferror (f) || fclose (f) != 0;
4519
4520 ;
4521 return 0;
4522}
4523_ACEOF
4524ac_clean_files="$ac_clean_files conftest.out"
4525# Check that the compiler produces executables we can run. If not, either
4526# the compiler is broken, or we cross compile.
4527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4528$as_echo_n "checking whether we are cross compiling... " >&6; }
4529if test "$cross_compiling" != yes; then
4530 { { ac_try="$ac_link"
4531case "(($ac_try" in
4532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4533 *) ac_try_echo=$ac_try;;
4534esac
4535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4536$as_echo "$ac_try_echo"; } >&5
4537 (eval "$ac_link") 2>&5
4538 ac_status=$?
4539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4540 test $ac_status = 0; }
4541 if { ac_try='./conftest$ac_cv_exeext'
4542 { { case "(($ac_try" in
4543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4544 *) ac_try_echo=$ac_try;;
4545esac
4546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4547$as_echo "$ac_try_echo"; } >&5
4548 (eval "$ac_try") 2>&5
4549 ac_status=$?
4550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4551 test $ac_status = 0; }; }; then
4552 cross_compiling=no
4553 else
4554 if test "$cross_compiling" = maybe; then
4555 cross_compiling=yes
4556 else
4557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4558$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4559as_fn_error $? "cannot run C compiled programs.
4560If you meant to cross compile, use \`--host'.
4561See \`config.log' for more details" "$LINENO" 5; }
4562 fi
4563 fi
4564fi
4565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4566$as_echo "$cross_compiling" >&6; }
4567
4568rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4569ac_clean_files=$ac_clean_files_save
cd9a469c 4570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4571$as_echo_n "checking for suffix of object files... " >&6; }
f00f02a3 4572if ${ac_cv_objext+:} false; then :
cd9a469c 4573 $as_echo_n "(cached) " >&6
b30fcfae 4574else
cd9a469c 4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 4576/* end confdefs.h. */
4577
4578int
4579main ()
4580{
4581
4582 ;
4583 return 0;
4584}
4585_ACEOF
4586rm -f conftest.o conftest.obj
cd9a469c 4587if { { ac_try="$ac_compile"
4588case "(($ac_try" in
4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4591esac
4592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4593$as_echo "$ac_try_echo"; } >&5
4594 (eval "$ac_compile") 2>&5
b30fcfae 4595 ac_status=$?
cd9a469c 4596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4597 test $ac_status = 0; }; then :
4598 for ac_file in conftest.o conftest.obj conftest.*; do
4599 test -f "$ac_file" || continue;
b30fcfae 4600 case $ac_file in
cd9a469c 4601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b30fcfae 4602 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4603 break;;
4604 esac
4605done
4606else
cd9a469c 4607 $as_echo "$as_me: failed program was:" >&5
b30fcfae 4608sed 's/^/| /' conftest.$ac_ext >&5
4609
cd9a469c 4610{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4611$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 4612as_fn_error $? "cannot compute suffix of object files: cannot compile
4613See \`config.log' for more details" "$LINENO" 5; }
b30fcfae 4614fi
b30fcfae 4615rm -f conftest.$ac_cv_objext conftest.$ac_ext
4616fi
cd9a469c 4617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4618$as_echo "$ac_cv_objext" >&6; }
b30fcfae 4619OBJEXT=$ac_cv_objext
4620ac_objext=$OBJEXT
cd9a469c 4621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4622$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
f00f02a3 4623if ${ac_cv_c_compiler_gnu+:} false; then :
cd9a469c 4624 $as_echo_n "(cached) " >&6
b30fcfae 4625else
cd9a469c 4626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 4627/* end confdefs.h. */
4628
4629int
4630main ()
4631{
4632#ifndef __GNUC__
4633 choke me
4634#endif
4635
4636 ;
4637 return 0;
4638}
4639_ACEOF
cd9a469c 4640if ac_fn_c_try_compile "$LINENO"; then :
b30fcfae 4641 ac_compiler_gnu=yes
4642else
cd9a469c 4643 ac_compiler_gnu=no
b30fcfae 4644fi
cd9a469c 4645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b30fcfae 4646ac_cv_c_compiler_gnu=$ac_compiler_gnu
4647
4648fi
cd9a469c 4649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4650$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4651if test $ac_compiler_gnu = yes; then
4652 GCC=yes
4653else
4654 GCC=
4655fi
b30fcfae 4656ac_test_CFLAGS=${CFLAGS+set}
4657ac_save_CFLAGS=$CFLAGS
cd9a469c 4658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4659$as_echo_n "checking whether $CC accepts -g... " >&6; }
f00f02a3 4660if ${ac_cv_prog_cc_g+:} false; then :
cd9a469c 4661 $as_echo_n "(cached) " >&6
4662else
4663 ac_save_c_werror_flag=$ac_c_werror_flag
4664 ac_c_werror_flag=yes
4665 ac_cv_prog_cc_g=no
4666 CFLAGS="-g"
4667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 4668/* end confdefs.h. */
4669
4670int
4671main ()
4672{
4673
4674 ;
4675 return 0;
4676}
4677_ACEOF
cd9a469c 4678if ac_fn_c_try_compile "$LINENO"; then :
8e1fea1a 4679 ac_cv_prog_cc_g=yes
4680else
cd9a469c 4681 CFLAGS=""
4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683/* end confdefs.h. */
4684
4685int
4686main ()
4687{
4688
4689 ;
4690 return 0;
4691}
4692_ACEOF
4693if ac_fn_c_try_compile "$LINENO"; then :
4694
4695else
4696 ac_c_werror_flag=$ac_save_c_werror_flag
4697 CFLAGS="-g"
4698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699/* end confdefs.h. */
ae48753c 4700
cd9a469c 4701int
4702main ()
4703{
4704
4705 ;
4706 return 0;
4707}
4708_ACEOF
4709if ac_fn_c_try_compile "$LINENO"; then :
4710 ac_cv_prog_cc_g=yes
4711fi
4712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a83ffacf 4713fi
cd9a469c 4714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b30fcfae 4715fi
cd9a469c 4716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4717 ac_c_werror_flag=$ac_save_c_werror_flag
4718fi
4719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4720$as_echo "$ac_cv_prog_cc_g" >&6; }
8e1fea1a 4721if test "$ac_test_CFLAGS" = set; then
b30fcfae 4722 CFLAGS=$ac_save_CFLAGS
8e1fea1a 4723elif test $ac_cv_prog_cc_g = yes; then
4724 if test "$GCC" = yes; then
4725 CFLAGS="-g -O2"
4726 else
4727 CFLAGS="-g"
4728 fi
4729else
4730 if test "$GCC" = yes; then
4731 CFLAGS="-O2"
4732 else
4733 CFLAGS=
4734 fi
4735fi
cd9a469c 4736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4737$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
f00f02a3 4738if ${ac_cv_prog_cc_c89+:} false; then :
cd9a469c 4739 $as_echo_n "(cached) " >&6
b30fcfae 4740else
cd9a469c 4741 ac_cv_prog_cc_c89=no
b30fcfae 4742ac_save_CC=$CC
cd9a469c 4743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 4744/* end confdefs.h. */
4745#include <stdarg.h>
4746#include <stdio.h>
f00f02a3 4747struct stat;
b30fcfae 4748/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4749struct buf { int x; };
4750FILE * (*rcsopen) (struct buf *, struct stat *, int);
4751static char *e (p, i)
4752 char **p;
4753 int i;
4754{
4755 return p[i];
4756}
4757static char *f (char * (*g) (char **, int), char **p, ...)
4758{
4759 char *s;
4760 va_list v;
4761 va_start (v,p);
4762 s = g (p, va_arg (v,int));
4763 va_end (v);
4764 return s;
4765}
4766
4767/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4768 function prototypes and stuff, but not '\xHH' hex character constants.
4769 These don't provoke an error unfortunately, instead are silently treated
cd9a469c 4770 as 'x'. The following induces an error, until -std is added to get
b30fcfae 4771 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4772 array size at least. It's necessary to write '\x00'==0 to get something
cd9a469c 4773 that's true only with -std. */
b30fcfae 4774int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4775
cd9a469c 4776/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4777 inside strings and character constants. */
4778#define FOO(x) 'x'
4779int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4780
b30fcfae 4781int test (int i, double x);
4782struct s1 {int (*f) (int a);};
4783struct s2 {int (*f) (double a);};
4784int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4785int argc;
4786char **argv;
4787int
4788main ()
4789{
4790return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4791 ;
4792 return 0;
4793}
4794_ACEOF
cd9a469c 4795for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4796 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b30fcfae 4797do
4798 CC="$ac_save_CC $ac_arg"
cd9a469c 4799 if ac_fn_c_try_compile "$LINENO"; then :
4800 ac_cv_prog_cc_c89=$ac_arg
b30fcfae 4801fi
cd9a469c 4802rm -f core conftest.err conftest.$ac_objext
4803 test "x$ac_cv_prog_cc_c89" != "xno" && break
b30fcfae 4804done
cd9a469c 4805rm -f conftest.$ac_ext
b30fcfae 4806CC=$ac_save_CC
4807
4808fi
cd9a469c 4809# AC_CACHE_VAL
4810case "x$ac_cv_prog_cc_c89" in
4811 x)
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4813$as_echo "none needed" >&6; } ;;
4814 xno)
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4816$as_echo "unsupported" >&6; } ;;
b30fcfae 4817 *)
cd9a469c 4818 CC="$CC $ac_cv_prog_cc_c89"
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4820$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b30fcfae 4821esac
cd9a469c 4822if test "x$ac_cv_prog_cc_c89" != xno; then :
b30fcfae 4823
5084f823 4824fi
4825
5084f823 4826ac_ext=c
4827ac_cpp='$CPP $CPPFLAGS'
4828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4830ac_compiler_gnu=$ac_cv_c_compiler_gnu
4831
cd9a469c 4832ac_ext=cpp
5084f823 4833ac_cpp='$CXXCPP $CPPFLAGS'
4834ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4835ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4836ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
cd9a469c 4837if test -z "$CXX"; then
4838 if test -n "$CCC"; then
4839 CXX=$CCC
4840 else
4841 if test -n "$ac_tool_prefix"; then
4842 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5084f823 4843 do
4844 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4845set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cd9a469c 4846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4847$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4848if ${ac_cv_prog_CXX+:} false; then :
cd9a469c 4849 $as_echo_n "(cached) " >&6
5084f823 4850else
4851 if test -n "$CXX"; then
4852 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4853else
4854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855for as_dir in $PATH
4856do
4857 IFS=$as_save_IFS
4858 test -z "$as_dir" && as_dir=.
cd9a469c 4859 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5084f823 4861 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cd9a469c 4862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5084f823 4863 break 2
4864 fi
4865done
cd9a469c 4866 done
4867IFS=$as_save_IFS
8e1fea1a 4868
eae5b2bc 4869fi
4870fi
4871CXX=$ac_cv_prog_CXX
4872if test -n "$CXX"; then
cd9a469c 4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4874$as_echo "$CXX" >&6; }
eae5b2bc 4875else
cd9a469c 4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4877$as_echo "no" >&6; }
eae5b2bc 4878fi
4879
cd9a469c 4880
eae5b2bc 4881 test -n "$CXX" && break
4882 done
4883fi
4884if test -z "$CXX"; then
4885 ac_ct_CXX=$CXX
cd9a469c 4886 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
eae5b2bc 4887do
4888 # Extract the first word of "$ac_prog", so it can be a program name with args.
4889set dummy $ac_prog; ac_word=$2
cd9a469c 4890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4891$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4892if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cd9a469c 4893 $as_echo_n "(cached) " >&6
eae5b2bc 4894else
4895 if test -n "$ac_ct_CXX"; then
4896 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4897else
4898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899for as_dir in $PATH
4900do
4901 IFS=$as_save_IFS
4902 test -z "$as_dir" && as_dir=.
cd9a469c 4903 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eae5b2bc 4905 ac_cv_prog_ac_ct_CXX="$ac_prog"
cd9a469c 4906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
eae5b2bc 4907 break 2
4908 fi
4909done
cd9a469c 4910 done
4911IFS=$as_save_IFS
eae5b2bc 4912
4913fi
4914fi
4915ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4916if test -n "$ac_ct_CXX"; then
cd9a469c 4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4918$as_echo "$ac_ct_CXX" >&6; }
eae5b2bc 4919else
cd9a469c 4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4921$as_echo "no" >&6; }
eae5b2bc 4922fi
4923
cd9a469c 4924
eae5b2bc 4925 test -n "$ac_ct_CXX" && break
4926done
eae5b2bc 4927
cd9a469c 4928 if test "x$ac_ct_CXX" = x; then
4929 CXX="g++"
4930 else
4931 case $cross_compiling:$ac_tool_warned in
4932yes:)
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4934$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4935ac_tool_warned=yes ;;
4936esac
4937 CXX=$ac_ct_CXX
4938 fi
eae5b2bc 4939fi
4940
cd9a469c 4941 fi
4942fi
eae5b2bc 4943# Provide some information about the compiler.
cd9a469c 4944$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4945set X $ac_compile
4946ac_compiler=$2
4947for ac_option in --version -v -V -qversion; do
4948 { { ac_try="$ac_compiler $ac_option >&5"
4949case "(($ac_try" in
4950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4951 *) ac_try_echo=$ac_try;;
4952esac
4953eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4954$as_echo "$ac_try_echo"; } >&5
4955 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
eae5b2bc 4956 ac_status=$?
cd9a469c 4957 if test -s conftest.err; then
4958 sed '10a\
4959... rest of stderr output deleted ...
4960 10q' conftest.err >conftest.er1
4961 cat conftest.er1 >&5
cd9a469c 4962 fi
f00f02a3 4963 rm -f conftest.er1 conftest.err
cd9a469c 4964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4965 test $ac_status = 0; }
4966done
eae5b2bc 4967
cd9a469c 4968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4969$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
f00f02a3 4970if ${ac_cv_cxx_compiler_gnu+:} false; then :
cd9a469c 4971 $as_echo_n "(cached) " >&6
eae5b2bc 4972else
cd9a469c 4973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eae5b2bc 4974/* end confdefs.h. */
4975
4976int
4977main ()
4978{
4979#ifndef __GNUC__
4980 choke me
4981#endif
4982
4983 ;
4984 return 0;
4985}
4986_ACEOF
cd9a469c 4987if ac_fn_cxx_try_compile "$LINENO"; then :
eae5b2bc 4988 ac_compiler_gnu=yes
4989else
cd9a469c 4990 ac_compiler_gnu=no
eae5b2bc 4991fi
cd9a469c 4992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
eae5b2bc 4993ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4994
4995fi
cd9a469c 4996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4997$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4998if test $ac_compiler_gnu = yes; then
4999 GXX=yes
5000else
5001 GXX=
5002fi
eae5b2bc 5003ac_test_CXXFLAGS=${CXXFLAGS+set}
5004ac_save_CXXFLAGS=$CXXFLAGS
cd9a469c 5005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5006$as_echo_n "checking whether $CXX accepts -g... " >&6; }
f00f02a3 5007if ${ac_cv_prog_cxx_g+:} false; then :
cd9a469c 5008 $as_echo_n "(cached) " >&6
5009else
5010 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5011 ac_cxx_werror_flag=yes
5012 ac_cv_prog_cxx_g=no
5013 CXXFLAGS="-g"
5014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eae5b2bc 5015/* end confdefs.h. */
5016
5017int
5018main ()
5019{
5020
5021 ;
5022 return 0;
5023}
5024_ACEOF
cd9a469c 5025if ac_fn_cxx_try_compile "$LINENO"; then :
eae5b2bc 5026 ac_cv_prog_cxx_g=yes
5027else
cd9a469c 5028 CXXFLAGS=""
5029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eae5b2bc 5030/* end confdefs.h. */
cd9a469c 5031
eae5b2bc 5032int
5033main ()
5034{
cd9a469c 5035
eae5b2bc 5036 ;
5037 return 0;
5038}
5039_ACEOF
cd9a469c 5040if ac_fn_cxx_try_compile "$LINENO"; then :
2f8725b0 5041
cd9a469c 5042else
5043 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5044 CXXFLAGS="-g"
5045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eae5b2bc 5046/* end confdefs.h. */
cd9a469c 5047
eae5b2bc 5048int
5049main ()
5050{
cd9a469c 5051
eae5b2bc 5052 ;
5053 return 0;
5054}
5055_ACEOF
cd9a469c 5056if ac_fn_cxx_try_compile "$LINENO"; then :
5057 ac_cv_prog_cxx_g=yes
570af75a 5058fi
cd9a469c 5059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5060fi
5061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5062fi
5063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5064 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5065fi
5066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5067$as_echo "$ac_cv_prog_cxx_g" >&6; }
5068if test "$ac_test_CXXFLAGS" = set; then
5069 CXXFLAGS=$ac_save_CXXFLAGS
5070elif test $ac_cv_prog_cxx_g = yes; then
5071 if test "$GXX" = yes; then
5072 CXXFLAGS="-g -O2"
5073 else
5074 CXXFLAGS="-g"
5075 fi
5076else
5077 if test "$GXX" = yes; then
5078 CXXFLAGS="-O2"
5079 else
5080 CXXFLAGS=
5081 fi
eae5b2bc 5082fi
eae5b2bc 5083ac_ext=c
5084ac_cpp='$CPP $CPPFLAGS'
5085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5087ac_compiler_gnu=$ac_cv_c_compiler_gnu
5088
5089
5090# We must set the default linker to the linker used by gcc for the correct
5091# operation of libtool. If LD is not defined and we are using gcc, try to
5092# set the LD default to the ld used by gcc.
5093if test -z "$LD"; then
5094 if test "$GCC" = yes; then
5095 case $build in
5096 *-*-mingw*)
5097 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5098 *)
5099 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5100 esac
5101 case $gcc_prog_ld in
5102 # Accept absolute paths.
5103 [\\/]* | [A-Za-z]:[\\/]*)
5104 LD="$gcc_prog_ld" ;;
5105 esac
5106 fi
2f8725b0 5107fi
5108
13687c85 5109# Check whether -static-libstdc++ -static-libgcc is supported.
5110have_static_libs=no
5111if test "$GCC" = yes; then
5112 saved_LDFLAGS="$LDFLAGS"
5113
5114 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5116$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5117 ac_ext=cpp
5118ac_cpp='$CXXCPP $CPPFLAGS'
5119ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5120ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5121ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5122
5123
5124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5125/* end confdefs.h. */
74f1ea54 5126
5127#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5128#error -static-libstdc++ not implemented
5129#endif
13687c85 5130int main() {}
5131_ACEOF
5132if ac_fn_cxx_try_link "$LINENO"; then :
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5134$as_echo "yes" >&6; }; have_static_libs=yes
5135else
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5137$as_echo "no" >&6; }
5138fi
5139rm -f core conftest.err conftest.$ac_objext \
5140 conftest$ac_exeext conftest.$ac_ext
5141 ac_ext=c
5142ac_cpp='$CPP $CPPFLAGS'
5143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5145ac_compiler_gnu=$ac_cv_c_compiler_gnu
5146
5147
5148 LDFLAGS="$saved_LDFLAGS"
5149fi
5150
2f8725b0 5151
5152
8e1fea1a 5153
b30fcfae 5154if test -n "$ac_tool_prefix"; then
5155 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
8e1fea1a 5156set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
cd9a469c 5157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5158$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 5159if ${ac_cv_prog_GNATBIND+:} false; then :
cd9a469c 5160 $as_echo_n "(cached) " >&6
8e1fea1a 5161else
5162 if test -n "$GNATBIND"; then
5163 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5164else
b30fcfae 5165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166for as_dir in $PATH
5167do
5168 IFS=$as_save_IFS
5169 test -z "$as_dir" && as_dir=.
cd9a469c 5170 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 5171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 5172 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
cd9a469c 5173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 5174 break 2
5175 fi
5176done
cd9a469c 5177 done
5178IFS=$as_save_IFS
b30fcfae 5179
8e1fea1a 5180fi
5181fi
b30fcfae 5182GNATBIND=$ac_cv_prog_GNATBIND
8e1fea1a 5183if test -n "$GNATBIND"; then
cd9a469c 5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5185$as_echo "$GNATBIND" >&6; }
8e1fea1a 5186else
cd9a469c 5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5188$as_echo "no" >&6; }
8e1fea1a 5189fi
5190
cd9a469c 5191
b30fcfae 5192fi
8e1fea1a 5193if test -z "$ac_cv_prog_GNATBIND"; then
b30fcfae 5194 ac_ct_GNATBIND=$GNATBIND
8e1fea1a 5195 # Extract the first word of "gnatbind", so it can be a program name with args.
5196set dummy gnatbind; ac_word=$2
cd9a469c 5197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5198$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 5199if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
cd9a469c 5200 $as_echo_n "(cached) " >&6
8e1fea1a 5201else
b30fcfae 5202 if test -n "$ac_ct_GNATBIND"; then
5203 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
8e1fea1a 5204else
b30fcfae 5205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206for as_dir in $PATH
5207do
5208 IFS=$as_save_IFS
5209 test -z "$as_dir" && as_dir=.
cd9a469c 5210 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 5211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 5212 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
cd9a469c 5213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 5214 break 2
5215 fi
5216done
cd9a469c 5217 done
5218IFS=$as_save_IFS
b30fcfae 5219
8e1fea1a 5220fi
5221fi
b30fcfae 5222ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5223if test -n "$ac_ct_GNATBIND"; then
cd9a469c 5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5225$as_echo "$ac_ct_GNATBIND" >&6; }
8e1fea1a 5226else
cd9a469c 5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228$as_echo "no" >&6; }
8e1fea1a 5229fi
5230
cd9a469c 5231 if test "x$ac_ct_GNATBIND" = x; then
5232 GNATBIND="no"
5233 else
5234 case $cross_compiling:$ac_tool_warned in
5235yes:)
5236{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5237$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5238ac_tool_warned=yes ;;
5239esac
5240 GNATBIND=$ac_ct_GNATBIND
5241 fi
8e1fea1a 5242else
b30fcfae 5243 GNATBIND="$ac_cv_prog_GNATBIND"
8e1fea1a 5244fi
5245
b30fcfae 5246if test -n "$ac_tool_prefix"; then
5247 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
a18b2c54 5248set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
cd9a469c 5249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5250$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 5251if ${ac_cv_prog_GNATMAKE+:} false; then :
cd9a469c 5252 $as_echo_n "(cached) " >&6
a18b2c54 5253else
5254 if test -n "$GNATMAKE"; then
5255 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5256else
b30fcfae 5257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258for as_dir in $PATH
5259do
5260 IFS=$as_save_IFS
5261 test -z "$as_dir" && as_dir=.
cd9a469c 5262 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 5263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 5264 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
cd9a469c 5265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 5266 break 2
5267 fi
5268done
cd9a469c 5269 done
5270IFS=$as_save_IFS
b30fcfae 5271
a18b2c54 5272fi
5273fi
b30fcfae 5274GNATMAKE=$ac_cv_prog_GNATMAKE
a18b2c54 5275if test -n "$GNATMAKE"; then
cd9a469c 5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5277$as_echo "$GNATMAKE" >&6; }
a18b2c54 5278else
cd9a469c 5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5280$as_echo "no" >&6; }
a18b2c54 5281fi
5282
cd9a469c 5283
b30fcfae 5284fi
a18b2c54 5285if test -z "$ac_cv_prog_GNATMAKE"; then
b30fcfae 5286 ac_ct_GNATMAKE=$GNATMAKE
a18b2c54 5287 # Extract the first word of "gnatmake", so it can be a program name with args.
5288set dummy gnatmake; ac_word=$2
cd9a469c 5289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5290$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 5291if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
cd9a469c 5292 $as_echo_n "(cached) " >&6
a18b2c54 5293else
b30fcfae 5294 if test -n "$ac_ct_GNATMAKE"; then
5295 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
a18b2c54 5296else
b30fcfae 5297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298for as_dir in $PATH
5299do
5300 IFS=$as_save_IFS
5301 test -z "$as_dir" && as_dir=.
cd9a469c 5302 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 5303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 5304 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
cd9a469c 5305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 5306 break 2
5307 fi
5308done
cd9a469c 5309 done
5310IFS=$as_save_IFS
b30fcfae 5311
a18b2c54 5312fi
5313fi
b30fcfae 5314ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5315if test -n "$ac_ct_GNATMAKE"; then
cd9a469c 5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5317$as_echo "$ac_ct_GNATMAKE" >&6; }
a18b2c54 5318else
cd9a469c 5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320$as_echo "no" >&6; }
a18b2c54 5321fi
5322
cd9a469c 5323 if test "x$ac_ct_GNATMAKE" = x; then
5324 GNATMAKE="no"
5325 else
5326 case $cross_compiling:$ac_tool_warned in
5327yes:)
5328{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5329$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5330ac_tool_warned=yes ;;
5331esac
5332 GNATMAKE=$ac_ct_GNATMAKE
5333 fi
a18b2c54 5334else
b30fcfae 5335 GNATMAKE="$ac_cv_prog_GNATMAKE"
a18b2c54 5336fi
5337
cd9a469c 5338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5339$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
f00f02a3 5340if ${acx_cv_cc_gcc_supports_ada+:} false; then :
cd9a469c 5341 $as_echo_n "(cached) " >&6
8e1fea1a 5342else
5343 cat >conftest.adb <<EOF
5344procedure conftest is begin null; end conftest;
5345EOF
5346acx_cv_cc_gcc_supports_ada=no
5347# There is a bug in old released versions of GCC which causes the
5348# driver to exit successfully when the appropriate language module
5349# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5350# Therefore we must check for the error message as well as an
5351# unsuccessful exit.
216de822 5352# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5353# given a .adb file, but produce no object file. So we must check
5354# if an object file was really produced to guard against this.
8e1fea1a 5355errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
216de822 5356if test x"$errors" = x && test -f conftest.$ac_objext; then
8e1fea1a 5357 acx_cv_cc_gcc_supports_ada=yes
8e1fea1a 5358fi
5359rm -f conftest.*
5360fi
cd9a469c 5361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5362$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
8e1fea1a 5363
9d5fd7d0 5364if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
8e1fea1a 5365 have_gnat=yes
5366else
5367 have_gnat=no
5368fi
5369
cd9a469c 5370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5371$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
f00f02a3 5372if ${gcc_cv_prog_cmp_skip+:} false; then :
cd9a469c 5373 $as_echo_n "(cached) " >&6
7bcc3b4a 5374else
5375 echo abfoo >t1
5376 echo cdfoo >t2
efbca99c 5377 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
697dfd2c 5378 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5379 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5380 :
5381 else
5382 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5383 fi
5384 fi
7bcc3b4a 5385 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5386 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
697dfd2c 5387 :
7bcc3b4a 5388 else
5389 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5390 fi
5391 fi
5392 rm t1 t2
5393
5394fi
cd9a469c 5395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5396$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7bcc3b4a 5397do_compare="$gcc_cv_prog_cmp_skip"
5398
5399
8e1fea1a 5400
6c59dfa4 5401# Check whether --enable-bootstrap was given.
5402if test "${enable_bootstrap+set}" = set; then :
5403 enableval=$enable_bootstrap;
5404else
5405 enable_bootstrap=default
5406fi
5407
5408
5409# Issue errors and warnings for invalid/strange bootstrap combinations.
d7c9b4c1 5410if test -r $srcdir/gcc/configure; then
5411 have_compiler=yes
5412else
5413 have_compiler=no
5414fi
6c59dfa4 5415
5416case "$have_compiler:$host:$target:$enable_bootstrap" in
5417 *:*:*:no) ;;
5418
5419 # Default behavior. Enable bootstrap if we have a compiler
5420 # and we are in a native configuration.
5421 yes:$build:$build:default)
5422 enable_bootstrap=yes ;;
5423
5424 *:*:*:default)
5425 enable_bootstrap=no ;;
5426
5427 # We have a compiler and we are in a native configuration, bootstrap is ok
5428 yes:$build:$build:yes)
5429 ;;
5430
5431 # Other configurations, but we have a compiler. Assume the user knows
5432 # what he's doing.
5433 yes:*:*:yes)
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5435$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5436 ;;
5437
5438 # No compiler: if they passed --enable-bootstrap explicitly, fail
5439 no:*:*:yes)
f00f02a3 5440 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
6c59dfa4 5441
5442 # Fail if wrong command line
5443 *)
f00f02a3 5444 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
6c59dfa4 5445 ;;
5446esac
5447
27590679 5448# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5449# C++98 compiler can still start the bootstrap.
5450if test "$enable_bootstrap:$GXX" = "yes:yes"; then
dce53dbc 5451 CXX="$CXX -std=gnu++98"
27590679 5452fi
5453
c3fc6a63 5454# Used for setting $lt_cv_objdir
5455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5456$as_echo_n "checking for objdir... " >&6; }
f00f02a3 5457if ${lt_cv_objdir+:} false; then :
c3fc6a63 5458 $as_echo_n "(cached) " >&6
5459else
5460 rm -f .libs 2>/dev/null
5461mkdir .libs 2>/dev/null
5462if test -d .libs; then
5463 lt_cv_objdir=.libs
5464else
5465 # MS-DOS does not allow filenames that begin with a dot.
5466 lt_cv_objdir=_libs
5467fi
5468rmdir .libs 2>/dev/null
5469fi
5470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5471$as_echo "$lt_cv_objdir" >&6; }
5472objdir=$lt_cv_objdir
5473
5474
5475
5476
5477
5478cat >>confdefs.h <<_ACEOF
5479#define LT_OBJDIR "$lt_cv_objdir/"
5480_ACEOF
5481
5482
5483
7601a55c 5484# Check for GMP, MPFR and MPC
16de6a81 5485gmplibs="-lmpc -lmpfr -lgmp"
4ee9c684 5486gmpinc=
d45318b3 5487have_gmp=no
7601a55c 5488
5489# Specify a location for mpc
5490# check for this first so it ends up on the link line before mpfr.
5491
cd9a469c 5492# Check whether --with-mpc was given.
5493if test "${with_mpc+set}" = set; then :
5494 withval=$with_mpc;
5495fi
7601a55c 5496
7601a55c 5497
73f813e1 5498# Check whether --with-mpc-include was given.
cd9a469c 5499if test "${with_mpc_include+set}" = set; then :
5500 withval=$with_mpc_include;
5501fi
7601a55c 5502
7601a55c 5503
73f813e1 5504# Check whether --with-mpc-lib was given.
cd9a469c 5505if test "${with_mpc_lib+set}" = set; then :
5506 withval=$with_mpc_lib;
5507fi
7601a55c 5508
7601a55c 5509
5510if test "x$with_mpc" != x; then
16de6a81 5511 gmplibs="-L$with_mpc/lib $gmplibs"
5512 gmpinc="-I$with_mpc/include $gmpinc"
7601a55c 5513fi
5514if test "x$with_mpc_include" != x; then
16de6a81 5515 gmpinc="-I$with_mpc_include $gmpinc"
7601a55c 5516fi
5517if test "x$with_mpc_lib" != x; then
16de6a81 5518 gmplibs="-L$with_mpc_lib $gmplibs"
7601a55c 5519fi
5520if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
c3fc6a63 5521 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
16de6a81 5522 gmpinc='-I$$s/mpc/src '"$gmpinc"
7601a55c 5523 # Do not test the mpc version. Assume that it is sufficient, since
5524 # it is in the source tree, and the library has not been built yet
5525 # but it would be included on the link line in the version check below
5526 # hence making the test fail.
16de6a81 5527 have_gmp=yes
7601a55c 5528fi
d45318b3 5529
5ca838b8 5530# Specify a location for mpfr
5531# check for this first so it ends up on the link line before gmp.
b30fcfae 5532
cd9a469c 5533# Check whether --with-mpfr-dir was given.
5534if test "${with_mpfr_dir+set}" = set; then :
f00f02a3 5535 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
cd9a469c 5536Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5537fi
5538
5ca838b8 5539
5540
cd9a469c 5541# Check whether --with-mpfr was given.
5542if test "${with_mpfr+set}" = set; then :
5543 withval=$with_mpfr;
5544fi
b30fcfae 5545
5ca838b8 5546
73f813e1 5547# Check whether --with-mpfr-include was given.
cd9a469c 5548if test "${with_mpfr_include+set}" = set; then :
5549 withval=$with_mpfr_include;
5550fi
b30fcfae 5551
a5144c1d 5552
73f813e1 5553# Check whether --with-mpfr-lib was given.
cd9a469c 5554if test "${with_mpfr_lib+set}" = set; then :
5555 withval=$with_mpfr_lib;
5556fi
a5144c1d 5557
5ca838b8 5558
5559if test "x$with_mpfr" != x; then
5560 gmplibs="-L$with_mpfr/lib $gmplibs"
16de6a81 5561 gmpinc="-I$with_mpfr/include $gmpinc"
5ca838b8 5562fi
a5144c1d 5563if test "x$with_mpfr_include" != x; then
16de6a81 5564 gmpinc="-I$with_mpfr_include $gmpinc"
a5144c1d 5565fi
5566if test "x$with_mpfr_lib" != x; then
5567 gmplibs="-L$with_mpfr_lib $gmplibs"
5568fi
d45318b3 5569if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
efa1150d 5570 # MPFR v3.1.0 moved the sources into a src sub-directory.
5571 if ! test -d ${srcdir}/mpfr/src; then
f00f02a3 5572 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
efa1150d 5573 fi
4b2246ef 5574 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5575 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5576 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
d45318b3 5577 # Do not test the mpfr version. Assume that it is sufficient, since
5578 # it is in the source tree, and the library has not been built yet
5579 # but it would be included on the link line in the version check below
5580 # hence making the test fail.
5581 have_gmp=yes
5582fi
5ca838b8 5583
4ee9c684 5584# Specify a location for gmp
b30fcfae 5585
cd9a469c 5586# Check whether --with-gmp-dir was given.
5587if test "${with_gmp_dir+set}" = set; then :
f00f02a3 5588 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
cd9a469c 5589Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5590fi
5591
4ee9c684 5592
4ee9c684 5593
cd9a469c 5594# Check whether --with-gmp was given.
5595if test "${with_gmp+set}" = set; then :
5596 withval=$with_gmp;
5597fi
b30fcfae 5598
4ee9c684 5599
73f813e1 5600# Check whether --with-gmp-include was given.
cd9a469c 5601if test "${with_gmp_include+set}" = set; then :
5602 withval=$with_gmp_include;
5603fi
b30fcfae 5604
a5144c1d 5605
73f813e1 5606# Check whether --with-gmp-lib was given.
cd9a469c 5607if test "${with_gmp_lib+set}" = set; then :
5608 withval=$with_gmp_lib;
5609fi
a5144c1d 5610
5611
4ee9c684 5612
5ca838b8 5613if test "x$with_gmp" != x; then
5614 gmplibs="-L$with_gmp/lib $gmplibs"
5615 gmpinc="-I$with_gmp/include $gmpinc"
4ee9c684 5616fi
a5144c1d 5617if test "x$with_gmp_include" != x; then
5618 gmpinc="-I$with_gmp_include $gmpinc"
5619fi
5620if test "x$with_gmp_lib" != x; then
5621 gmplibs="-L$with_gmp_lib $gmplibs"
5622fi
d45318b3 5623if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
c3fc6a63 5624 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
d45318b3 5625 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
b9a8e4c4 5626 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
c3fc6a63 5627 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
e4128452 5628 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
d45318b3 5629 # Do not test the gmp version. Assume that it is sufficient, since
5630 # it is in the source tree, and the library has not been built yet
5631 # but it would be included on the link line in the version check below
5632 # hence making the test fail.
5633 have_gmp=yes
5634fi
4ee9c684 5635
16c9b2e3 5636if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
d45318b3 5637 have_gmp=yes
5638 saved_CFLAGS="$CFLAGS"
5639 CFLAGS="$CFLAGS $gmpinc"
17b6993a 5640 # Check for the recommended and required versions of GMP.
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5642$as_echo_n "checking for the correct version of gmp.h... " >&6; }
4fd35f21 5643
5644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17b6993a 5645/* end confdefs.h. */
5646#include "gmp.h"
5647int
5648main ()
5649{
5650
5651 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5652 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
f819bb73 5653 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
17b6993a 5654 choke me
5655 #endif
5656
5657 ;
5658 return 0;
5659}
5660_ACEOF
5661if ac_fn_c_try_compile "$LINENO"; then :
4fd35f21 5662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 5663/* end confdefs.h. */
17b6993a 5664#include <gmp.h>
b30fcfae 5665int
5666main ()
5667{
4ee9c684 5668
17b6993a 5669 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5670 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5671 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
d45318b3 5672 choke me
5673 #endif
b30fcfae 5674
5675 ;
5676 return 0;
5677}
5678_ACEOF
cd9a469c 5679if ac_fn_c_try_compile "$LINENO"; then :
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5681$as_echo "yes" >&6; }
17b6993a 5682else
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5684$as_echo "buggy but acceptable" >&6; }
5685fi
5686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b30fcfae 5687else
cd9a469c 5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5689$as_echo "no" >&6; }; have_gmp=no
b30fcfae 5690fi
cd9a469c 5691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4ee9c684 5692
7601a55c 5693 # If we have GMP, check the MPFR version.
d45318b3 5694 if test x"$have_gmp" = xyes; then
17b6993a 5695 # Check for the recommended and required versions of MPFR.
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5697$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
cd9a469c 5698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 5699/* end confdefs.h. */
6a086156 5700#include <gmp.h>
d45318b3 5701 #include <mpfr.h>
b30fcfae 5702int
5703main ()
5704{
112f3d57 5705
cb1d9044 5706 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
d45318b3 5707 choke me
5708 #endif
b30fcfae 5709
5710 ;
5711 return 0;
5712}
5713_ACEOF
cd9a469c 5714if ac_fn_c_try_compile "$LINENO"; then :
5715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 5716/* end confdefs.h. */
0157cc75 5717#include <gmp.h>
d45318b3 5718 #include <mpfr.h>
b30fcfae 5719int
5720main ()
5721{
0157cc75 5722
17b6993a 5723 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
d45318b3 5724 choke me
5725 #endif
7601a55c 5726
5727 ;
5728 return 0;
5729}
5730_ACEOF
cd9a469c 5731if ac_fn_c_try_compile "$LINENO"; then :
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5733$as_echo "yes" >&6; }
7601a55c 5734else
cd9a469c 5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5736$as_echo "buggy but acceptable" >&6; }
7601a55c 5737fi
cd9a469c 5738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601a55c 5739else
cd9a469c 5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5741$as_echo "no" >&6; }; have_gmp=no
7601a55c 5742fi
cd9a469c 5743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601a55c 5744 fi
5745
5746 # Check for the MPC header version.
16de6a81 5747 if test x"$have_gmp" = xyes ; then
17b6993a 5748 # Check for the recommended and required versions of MPC.
cd9a469c 5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5750$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601a55c 5752/* end confdefs.h. */
5753#include <mpc.h>
5754int
5755main ()
5756{
5757
17b6993a 5758 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5759 choke me
5760 #endif
5761
5762 ;
5763 return 0;
5764}
5765_ACEOF
5766if ac_fn_c_try_compile "$LINENO"; then :
5767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5768/* end confdefs.h. */
5769#include <mpc.h>
5770int
5771main ()
5772{
5773
5774 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
7601a55c 5775 choke me
5776 #endif
5777
5778 ;
5779 return 0;
5780}
5781_ACEOF
cd9a469c 5782if ac_fn_c_try_compile "$LINENO"; then :
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16de6a81 5784$as_echo "yes" >&6; }
17b6993a 5785else
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5787$as_echo "buggy but acceptable" >&6; }
5788fi
5789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601a55c 5790else
cd9a469c 5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16de6a81 5792$as_echo "no" >&6; }; have_gmp=no
7601a55c 5793fi
cd9a469c 5794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601a55c 5795 fi
5796
5797 # Now check the MPFR library.
5798 if test x"$have_gmp" = xyes; then
5799 saved_LIBS="$LIBS"
5800 LIBS="$LIBS $gmplibs"
16de6a81 5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5802$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
cd9a469c 5803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601a55c 5804/* end confdefs.h. */
16de6a81 5805#include <mpc.h>
7601a55c 5806int
5807main ()
5808{
5809
5810 mpfr_t n;
5811 mpfr_t x;
16de6a81 5812 mpc_t c;
7601a55c 5813 int t;
5814 mpfr_init (n);
5815 mpfr_init (x);
5816 mpfr_atan2 (n, n, x, GMP_RNDN);
5817 mpfr_erfc (n, x, GMP_RNDN);
5818 mpfr_subnormalize (x, t, GMP_RNDN);
16de6a81 5819 mpfr_clear(n);
5820 mpfr_clear(x);
5821 mpc_init2 (c, 53);
5822 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5823 mpc_cosh (c, c, MPC_RNDNN);
5824 mpc_pow (c, c, c, MPC_RNDNN);
5825 mpc_acosh (c, c, MPC_RNDNN);
5826 mpc_clear (c);
b30fcfae 5827
5828 ;
5829 return 0;
5830}
5831_ACEOF
cd9a469c 5832if ac_fn_c_try_link "$LINENO"; then :
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5834$as_echo "yes" >&6; }
b30fcfae 5835else
cd9a469c 5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5837$as_echo "no" >&6; }; have_gmp=no
b30fcfae 5838fi
cd9a469c 5839rm -f core conftest.err conftest.$ac_objext \
5840 conftest$ac_exeext conftest.$ac_ext
7601a55c 5841 LIBS="$saved_LIBS"
5842 fi
5843
d45318b3 5844 CFLAGS="$saved_CFLAGS"
4ee9c684 5845
17b6993a 5846# The library versions listed in the error message below should match
5847# the HARD-minimums enforced above.
d45318b3 5848 if test x$have_gmp != xyes; then
f00f02a3 5849 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
16de6a81 5850Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5851their locations. Source code for these libraries can be found at
5852their respective hosting sites as well as at
5853ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5854http://gcc.gnu.org/install/prerequisites.html for additional info. If
5855you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5856make sure that you have installed both the libraries and the header
5857files. They may be located in separate packages." "$LINENO" 5
d45318b3 5858 fi
6a086156 5859fi
5860
7601a55c 5861# Flags needed for both GMP, MPFR and/or MPC.
5862
5863
4ee9c684 5864
5865
5866
bff7ea4a 5867
e4128452 5868
13687c85 5869# Libraries to use for stage1 or when not bootstrapping.
7ab76cec 5870
13687c85 5871# Check whether --with-stage1-libs was given.
5872if test "${with_stage1_libs+set}" = set; then :
5873 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5874 stage1_libs=
7ab76cec 5875 else
13687c85 5876 stage1_libs=$withval
7ab76cec 5877 fi
5878else
9d71bbdc 5879 stage1_libs=
cd9a469c 5880fi
5881
7ab76cec 5882
5883
2b89c028 5884# Whether or not to use -static-libstdc++ and -static-libgcc. The
5885# default is yes if gcc is being built; no otherwise. The reason for
5886# this default is that gdb is sometimes linked against GNU Source
5887# Highlight, which is a shared library that uses C++ exceptions. In
5888# this case, -static-libstdc++ will cause crashes.
5889
5890# Check whether --with-static-standard-libraries was given.
5891if test "${with_static_standard_libraries+set}" = set; then :
5892 withval=$with_static_standard_libraries;
5893else
5894 with_static_standard_libraries=auto
5895fi
5896
5897if test "$with_static_standard_libraries" = auto; then
5898 with_static_standard_libraries=$have_compiler
5899fi
5900
13687c85 5901# Linker flags to use for stage1 or when not bootstrapping.
7ab76cec 5902
13687c85 5903# Check whether --with-stage1-ldflags was given.
5904if test "${with_stage1_ldflags+set}" = set; then :
5905 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5906 stage1_ldflags=
7ab76cec 5907 else
13687c85 5908 stage1_ldflags=$withval
7ab76cec 5909 fi
5910else
13687c85 5911 stage1_ldflags=
5912 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5913 # if supported. But if the user explicitly specified the libraries to use,
5914 # trust that they are doing what they want.
2b89c028 5915 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
5916 -a "$have_static_libs" = yes; then
13687c85 5917 stage1_ldflags="-static-libstdc++ -static-libgcc"
5918 fi
cd9a469c 5919fi
5920
7ab76cec 5921
5922
9d71bbdc 5923# Libraries to use for stage2 and later builds.
7ab76cec 5924
cd9a469c 5925# Check whether --with-boot-libs was given.
5926if test "${with_boot_libs+set}" = set; then :
5927 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5110389d 5928 poststage1_libs=
5929 else
5930 poststage1_libs=$withval
5931 fi
5932else
9d71bbdc 5933 poststage1_libs=
cd9a469c 5934fi
5935
7ab76cec 5936
5937
d6dfe18a 5938# Linker flags to use for stage2 and later builds.
5939
5940# Check whether --with-boot-ldflags was given.
5941if test "${with_boot_ldflags+set}" = set; then :
5942 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5943 poststage1_ldflags=
5944 else
5945 poststage1_ldflags=$withval
5946 fi
5947else
5948 poststage1_ldflags=
7deb2d70 5949 # In stages 2 and 3, default to linking libstdc++ and libgcc
5950 # statically. But if the user explicitly specified the libraries to
5951 # use, trust that they are doing what they want.
5952 if test "$poststage1_libs" = ""; then
d6dfe18a 5953 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5954 fi
5955fi
5956
5957
5958
71130ef8 5959# GCC GRAPHITE dependency isl.
572cf1f7 5960# Basic setup is inlined here, actual checks are in config/isl.m4
255b6be7 5961
5962
87e20041 5963# Check whether --with-isl was given.
5964if test "${with_isl+set}" = set; then :
5965 withval=$with_isl;
cd9a469c 5966fi
255b6be7 5967
255b6be7 5968
429cca51 5969# Treat --without-isl as a request to disable
83d54ac4 5970# GRAPHITE support and skip all following checks.
429cca51 5971if test "x$with_isl" != "xno"; then
71130ef8 5972 # Check for isl
83d54ac4 5973
5974
87e20041 5975# Check whether --with-isl-include was given.
5976if test "${with_isl_include+set}" = set; then :
5977 withval=$with_isl_include;
cd9a469c 5978fi
5979
255b6be7 5980
87e20041 5981# Check whether --with-isl-lib was given.
5982if test "${with_isl_lib+set}" = set; then :
5983 withval=$with_isl_lib;
cd9a469c 5984fi
255b6be7 5985
255b6be7 5986
87e20041 5987 # Check whether --enable-isl-version-check was given.
5988if test "${enable_isl_version_check+set}" = set; then :
5989 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5990else
5991 ENABLE_ISL_CHECK=yes
062b4a94 5992fi
5993
5994
87e20041 5995 # Initialize isllibs and islinc.
5996 case $with_isl in
5997 no)
5998 isllibs=
5999 islinc=
6000 ;;
6001 "" | yes)
6002 ;;
6003 *)
6004 isllibs="-L$with_isl/lib"
6005 islinc="-I$with_isl/include"
6006 ;;
6007 esac
6008 if test "x${with_isl_include}" != x ; then
6009 islinc="-I$with_isl_include"
6010 fi
6011 if test "x${with_isl_lib}" != x; then
6012 isllibs="-L$with_isl_lib"
6013 fi
6014 if test "x${islinc}" = x && test "x${isllibs}" = x \
6015 && test -d ${srcdir}/isl; then
6016 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
6017 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
6018 ENABLE_ISL_CHECK=no
7458b15a 6019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
6020$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
87e20041 6021 fi
062b4a94 6022
429cca51 6023 isllibs="${isllibs} -lisl"
6024
062b4a94 6025
062b4a94 6026
078393c7 6027 if test "${ENABLE_ISL_CHECK}" = yes ; then
6028 _isl_saved_CFLAGS=$CFLAGS
6029 _isl_saved_LDFLAGS=$LDFLAGS
6030 _isl_saved_LIBS=$LIBS
6031
6032 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
07ae8272 6033 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6034 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
078393c7 6035
8e8a14c2 6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
6037$as_echo_n "checking for isl 0.15 or later... " >&6; }
b6de67fd 6038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6ac3b11e 6039/* end confdefs.h. */
8e8a14c2 6040#include <isl/schedule.h>
6ac3b11e 6041int
6042main ()
6043{
8e8a14c2 6044isl_options_set_schedule_serialize_sccs (NULL, 0);
6ac3b11e 6045 ;
6046 return 0;
6047}
6048_ACEOF
6049if ac_fn_c_try_link "$LINENO"; then :
078393c7 6050 gcc_cv_isl=yes
6ac3b11e 6051else
6052 gcc_cv_isl=no
6053fi
6054rm -f core conftest.err conftest.$ac_objext \
6055 conftest$ac_exeext conftest.$ac_ext
078393c7 6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6057$as_echo "$gcc_cv_isl" >&6; }
6058
7458b15a 6059 if test "${gcc_cv_isl}" = no ; then
8e8a14c2 6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6061$as_echo "required isl version is 0.15 or later" >&6; }
45fc5243 6062 fi
6063
078393c7 6064 CFLAGS=$_isl_saved_CFLAGS
6065 LDFLAGS=$_isl_saved_LDFLAGS
6066 LIBS=$_isl_saved_LIBS
6067 fi
6068
6069
255b6be7 6070
255b6be7 6071
87e20041 6072
6073
87e20041 6074 if test "x${with_isl}" = xno; then
6075 graphite_requested=no
6076 elif test "x${with_isl}" != x \
6077 || test "x${with_isl_include}" != x \
6078 || test "x${with_isl_lib}" != x ; then
6079 graphite_requested=yes
6080 else
6081 graphite_requested=no
062b4a94 6082 fi
5362e323 6083
5362e323 6084
6085
87e20041 6086 if test "${gcc_cv_isl}" = no ; then
6087 isllibs=
6088 islinc=
6089 fi
6090
6091 if test "${graphite_requested}" = yes \
6092 && test "x${isllibs}" = x \
6093 && test "x${islinc}" = x ; then
255b6be7 6094
f00f02a3 6095 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
87e20041 6096 fi
255b6be7 6097
a3c81e03 6098
a3c81e03 6099fi
6100
71130ef8 6101# If the isl check failed, disable builds of in-tree variant of isl
83d54ac4 6102if test "x$with_isl" = xno ||
83d54ac4 6103 test "x$gcc_cv_isl" = xno; then
572cf1f7 6104 noconfigdirs="$noconfigdirs isl"
83d54ac4 6105 islinc=
bacb15cb 6106fi
6107
83d54ac4 6108
6109
6110
7bfefa9d 6111# Check for LTO support.
6112# Check whether --enable-lto was given.
6113if test "${enable_lto+set}" = set; then :
6114 enableval=$enable_lto; enable_lto=$enableval
6115else
6116 enable_lto=yes; default_enable_lto=yes
6117fi
6118
6119
1a4f45ec 6120
9bdbb0bc 6121
6122
6123target_elf=no
6124case $target in
6125 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
4d72c922 6126 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
cb7a0f1d 6127 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
0f769573 6128 nvptx-*-none)
9bdbb0bc 6129 target_elf=no
6130 ;;
6131 *)
6132 target_elf=yes
6133 ;;
6134esac
6135
6136if test $target_elf = yes; then :
25630dc7 6137 # ELF platforms build the lto-plugin always.
6138 build_lto_plugin=yes
9bdbb0bc 6139
9bdbb0bc 6140else
6141 if test x"$default_enable_lto" = x"yes" ; then
4ae8c98f 6142 case $target in
c96ae98b 6143 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
25630dc7 6144 # On other non-ELF platforms, LTO has yet to be validated.
4ae8c98f 6145 *) enable_lto=no ;;
6146 esac
9bdbb0bc 6147 else
62932e4d 6148 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6149 # It would also be nice to check the binutils support, but we don't
9bdbb0bc 6150 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6151 # warn during gcc/ subconfigure; unless you're bootstrapping with
6152 # -flto it won't be needed until after installation anyway.
6153 case $target in
7aa50266 6154 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9bdbb0bc 6155 *) if test x"$enable_lto" = x"yes"; then
f00f02a3 6156 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
9bdbb0bc 6157 fi
6158 ;;
6159 esac
6160 fi
ca42e774 6161 # Among non-ELF, only Windows platforms support the lto-plugin so far.
25630dc7 6162 # Build it unless LTO was explicitly disabled.
ca42e774 6163 case $target in
25630dc7 6164 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
ca42e774 6165 *) ;;
6166 esac
25630dc7 6167
9bdbb0bc 6168fi
6169
7bfefa9d 6170
1015a063 6171# Check whether --enable-linker-plugin-configure-flags was given.
6172if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6173 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6174else
6175 extra_linker_plugin_configure_flags=
6176fi
6177
6178
6179# Check whether --enable-linker-plugin-flags was given.
6180if test "${enable_linker_plugin_flags+set}" = set; then :
6181 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6182else
6183 extra_linker_plugin_flags=
6184fi
6185
6186
6187
01b4453c 6188# Enable --enable-host-shared.
6189# Checked early to determine whether jit is an 'all' language
6190# Check whether --enable-host-shared was given.
6191if test "${enable_host_shared+set}" = set; then :
6192 enableval=$enable_host_shared; host_shared=$enableval
6193else
6194 host_shared=no
6195fi
6196
6197
255b6be7 6198
2b15d2ba 6199# By default, C and C++ are the only stage 1 languages.
9c3a0a29 6200stage1_languages=,c,
2d64c2fd 6201
7ab76cec 6202# Target libraries that we bootstrap.
5c96a839 6203bootstrap_target_libs=,target-libgcc,
7ab76cec 6204
8e1fea1a 6205# Figure out what language subdirectories are present.
6206# Look if the user specified --enable-languages="..."; if not, use
6207# the environment variable $LANGUAGES if defined. $LANGUAGES might
6208# go away some day.
6209# NB: embedded tabs in this IF block -- do not untabify
6210if test -d ${srcdir}/gcc; then
6211 if test x"${enable_languages+set}" != xset; then
6212 if test x"${LANGUAGES+set}" = xset; then
6213 enable_languages="${LANGUAGES}"
e757a6a8 6214 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8e1fea1a 6215 else
01b4453c 6216 enable_languages=default
8e1fea1a 6217 fi
6218 else
6219 if test x"${enable_languages}" = x ||
6220 test x"${enable_languages}" = xyes;
6221 then
e757a6a8 6222 echo configure.ac: --enable-languages needs at least one language argument 1>&2
8e1fea1a 6223 exit 1
6224 fi
6225 fi
6226 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6227
2c718da0 6228 # 'f95' is the old name for the 'fortran' language. We issue a warning
6229 # and make the substitution.
6230 case ,${enable_languages}, in
6231 *,f95,*)
e757a6a8 6232 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
2c718da0 6233 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6234 ;;
6235 esac
6236
2b15d2ba 6237 # If bootstrapping, C++ must be enabled.
6238 case ",$enable_languages,:$enable_bootstrap" in
6239 *,c++,*:*) ;;
6240 *:yes)
6c59dfa4 6241 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6242 enable_languages="${enable_languages},c++"
6243 else
f00f02a3 6244 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
6c59dfa4 6245 fi
6246 ;;
6247 esac
6248
8e1fea1a 6249 # First scan to see if an enabled language requires some other language.
6250 # We assume that a given config-lang.in will list all the language
6251 # front ends it requires, even if some are required indirectly.
6252 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6253 case ${lang_frag} in
6254 ..) ;;
6255 # The odd quoting in the next line works around
6256 # an apparent bug in bash 1.12 on linux.
6257 ${srcdir}/gcc/[*]/config-lang.in) ;;
6258 *)
101ddbe4 6259 # From the config-lang.in, get $language, $lang_requires, and
6260 # $lang_requires_boot_languages.
8e1fea1a 6261 language=
6262 lang_requires=
101ddbe4 6263 lang_requires_boot_languages=
d6400eba 6264 # set srcdir during sourcing lang_frag to the gcc dir.
6265 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6266 # polutes this shell
6267 saved_srcdir=${srcdir}
6268 srcdir=${srcdir}/gcc . ${lang_frag}
6269 srcdir=${saved_srcdir}
101ddbe4 6270 for other in ${lang_requires} ${lang_requires_boot_languages}; do
8e1fea1a 6271 case ,${enable_languages}, in
6272 *,$other,*) ;;
01b4453c 6273 *,default,*) ;;
8e1fea1a 6274 *,all,*) ;;
6275 *,$language,*)
6276 echo " \`$other' language required by \`$language'; enabling" 1>&2
6277 enable_languages="${enable_languages},${other}"
6278 ;;
6279 esac
6280 done
101ddbe4 6281 for other in ${lang_requires_boot_languages} ; do
6282 if test "$other" != "c"; then
6283 case ,${enable_stage1_languages}, in
6284 *,$other,*) ;;
01b4453c 6285 *,default,*) ;;
101ddbe4 6286 *,all,*) ;;
6287 *)
6288 case ,${enable_languages}, in
6289 *,$language,*)
6290 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6291 enable_stage1_languages="$enable_stage1_languages,${other}"
6292 ;;
6293 esac
6294 ;;
6295 esac
6296 fi
6297 done
8e1fea1a 6298 ;;
6299 esac
6300 done
6301
9c3a0a29 6302 new_enable_languages=,c,
7bfefa9d 6303
6304 # If LTO is enabled, add the LTO front end.
7bfefa9d 6305 if test "$enable_lto" = "yes" ; then
d6ef094a 6306 case ,${enable_languages}, in
6307 *,lto,*) ;;
6308 *) enable_languages="${enable_languages},lto" ;;
6309 esac
ca42e774 6310 if test "${build_lto_plugin}" = "yes" ; then
7bfefa9d 6311 configdirs="$configdirs lto-plugin"
7bfefa9d 6312 fi
6313 fi
6314
dd87c525 6315 # If we're building an offloading compiler, add the LTO front end.
6316 if test x"$enable_as_accelerator_for" != x ; then
6317 case ,${enable_languages}, in
6318 *,lto,*) ;;
6319 *) enable_languages="${enable_languages},lto" ;;
6320 esac
6321 fi
6322
01b4453c 6323 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
9c3a0a29 6324 potential_languages=,c,
8e1fea1a 6325
604a285a 6326 enabled_target_libs=
6327 disabled_target_libs=
6328
8e1fea1a 6329 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6330 case ${lang_frag} in
6331 ..) ;;
6332 # The odd quoting in the next line works around
6333 # an apparent bug in bash 1.12 on linux.
6334 ${srcdir}/gcc/[*]/config-lang.in) ;;
6335 *)
b30fcfae 6336 # From the config-lang.in, get $language, $target_libs,
2d64c2fd 6337 # $lang_dirs, $boot_language, and $build_by_default
8e1fea1a 6338 language=
6339 target_libs=
6340 lang_dirs=
5dee13c2 6341 subdir_requires=
9c3a0a29 6342 boot_language=no
6343 build_by_default=yes
d6400eba 6344 # set srcdir during sourcing. See above about save & restore
6345 saved_srcdir=${srcdir}
6346 srcdir=${srcdir}/gcc . ${lang_frag}
6347 srcdir=${saved_srcdir}
9c3a0a29 6348 if test x${language} = x; then
6349 echo "${lang_frag} doesn't set \$language." 1>&2
6350 exit 1
6351 fi
6352
ef3c41c7 6353 if test "$language" = "c++"; then
2b15d2ba 6354 boot_language=yes
7ab76cec 6355 fi
6356
a2ecd49c 6357 add_this_lang=no
01b4453c 6358 # C is always enabled, so no need to add it again
6359 if test "$language" != "c"; then
6360 case ,${enable_languages}, in
6361 *,${language},*)
6362 # Language was explicitly selected; include it
e53d55e7 6363 add_this_lang=yes
01b4453c 6364 ;;
6365 *,all,*)
6366 # All languages are enabled
6367 add_this_lang=all
6368 ;;
6369 *,default,*)
6370 # 'default' was selected, select it if it is a default language
a2ecd49c 6371 add_this_lang=${build_by_default}
01b4453c 6372 ;;
6373 esac
6374 fi
4ee9c684 6375
5dee13c2 6376 # Disable languages that need other directories if these aren't available.
9333ae0b 6377 for i in $subdir_requires; do
3891e7d9 6378 test -f "$srcdir/gcc/$i/config-lang.in" && continue
01b4453c 6379 case ${add_this_lang} in
6380 yes)
5dee13c2 6381 # Specifically requested language; tell them.
f00f02a3 6382 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
5dee13c2 6383 ;;
01b4453c 6384 all)
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6386$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6387 add_this_lang=unsupported
6388 ;;
5dee13c2 6389 *)
6390 # Silently disable.
9c3a0a29 6391 add_this_lang=unsupported
5dee13c2 6392 ;;
6393 esac
6394 done
6395
9c3a0a29 6396 # Disable Ada if no preexisting GNAT is available.
01b4453c 6397 case ${add_this_lang}:${language}:${have_gnat} in
6398 yes:ada:no)
9c3a0a29 6399 # Specifically requested language; tell them.
f00f02a3 6400 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
9c3a0a29 6401 ;;
01b4453c 6402 all:ada:no)
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6404$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6405 add_this_lang=unsupported
6406 ;;
9c3a0a29 6407 *:ada:no)
6408 # Silently disable.
6409 add_this_lang=unsupported
6410 ;;
6411 esac
6412
01b4453c 6413 # Disable jit if -enable-host-shared not specified
6414 case ${add_this_lang}:${language}:${host_shared} in
6415 yes:jit:no)
6416 # PR jit/64780: explicitly specify --enable-host-shared
f00f02a3 6417 as_fn_error $? "
01b4453c 6418Enabling language \"jit\" requires --enable-host-shared.
6419
6420--enable-host-shared typically slows the rest of the compiler down by
6421a few %, so you must explicitly enable it.
6422
6423If you want to build both the jit and the regular compiler, it is often
6424best to do this via two separate configure/builds, in separate
6425directories, to avoid imposing the performance cost of
6426--enable-host-shared on the regular compiler." "$LINENO" 5
6427 ;;
6428 all:jit:no)
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6430$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6431 add_this_lang=unsupported
6432 ;;
6433 *:jit:no)
6434 # Silently disable.
6435 add_this_lang=unsupported
6436 ;;
6437 esac
6438
6439 # Disable a language that is unsupported by the target.
6440 case "${add_this_lang}: $unsupported_languages " in
6441 no:*) ;;
6442 unsupported:*) ;;
6443 *:*" $language "*)
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6445$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9c3a0a29 6446 add_this_lang=unsupported
ff7dcf6a 6447 ;;
6448 esac
6449
4ee9c684 6450 case $add_this_lang in
9c3a0a29 6451 unsupported)
8e1fea1a 6452 # Remove language-dependent dirs.
604a285a 6453 disabled_target_libs="$disabled_target_libs $target_libs"
6454 noconfigdirs="$noconfigdirs $lang_dirs"
2d64c2fd 6455 ;;
9c3a0a29 6456 no)
6457 # Remove language-dependent dirs; still show language as supported.
604a285a 6458 disabled_target_libs="$disabled_target_libs $target_libs"
6459 noconfigdirs="$noconfigdirs $lang_dirs"
9c3a0a29 6460 potential_languages="${potential_languages}${language},"
6461 ;;
01b4453c 6462 all|yes)
9c3a0a29 6463 new_enable_languages="${new_enable_languages}${language},"
6464 potential_languages="${potential_languages}${language},"
2d64c2fd 6465 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
604a285a 6466 enabled_target_libs="$enabled_target_libs $target_libs"
32027446 6467 case "${boot_language}:,$enable_stage1_languages," in
6468 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
aff6cf7b 6469 # Add to (comma-separated) list of stage 1 languages.
32027446 6470 case ",$stage1_languages," in
6471 *,$language,* | ,yes, | ,all,) ;;
6472 *) stage1_languages="${stage1_languages}${language}," ;;
6473 esac
7ab76cec 6474 # We need to bootstrap any supporting libraries.
6475 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2d64c2fd 6476 ;;
6477 esac
6478 ;;
8e1fea1a 6479 esac
6480 ;;
6481 esac
6482 done
6483
604a285a 6484 # Add target libraries which are only needed for disabled languages
6485 # to noconfigdirs.
6486 if test -n "$disabled_target_libs"; then
6487 for dir in $disabled_target_libs; do
6488 case " $enabled_target_libs " in
6489 *" ${dir} "*) ;;
6490 *) noconfigdirs="$noconfigdirs $dir" ;;
6491 esac
6492 done
6493 fi
6494
cd9a469c 6495 # Check whether --enable-stage1-languages was given.
6496if test "${enable_stage1_languages+set}" = set; then :
6497 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9c3a0a29 6498 ,no,|,,)
6499 # Set it to something that will have no effect in the loop below
6500 enable_stage1_languages=c ;;
6501 ,yes,)
6502 enable_stage1_languages=`echo $new_enable_languages | \
6503 sed -e "s/^,//" -e "s/,$//" ` ;;
6504 *,all,*)
6505 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6506 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6507 esac
6508
6509 # Add "good" languages from enable_stage1_languages to stage1_languages,
6510 # while "bad" languages go in missing_languages. Leave no duplicates.
6511 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6512 case $potential_languages in
6513 *,$i,*)
6514 case $stage1_languages in
6515 *,$i,*) ;;
6516 *) stage1_languages="$stage1_languages$i," ;;
6517 esac ;;
6518 *)
6519 case $missing_languages in
6520 *,$i,*) ;;
6521 *) missing_languages="$missing_languages$i," ;;
6522 esac ;;
6523 esac
6524 done
cd9a469c 6525fi
6526
9c3a0a29 6527
6528 # Remove leading/trailing commas that were added for simplicity
6529 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
989edd2f 6530 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9c3a0a29 6531 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6532 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6533
8e1fea1a 6534 if test "x$missing_languages" != x; then
f00f02a3 6535 as_fn_error $? "
e8bfe1fa 6536The following requested languages could not be built: ${missing_languages}
cd9a469c 6537Supported languages are: ${potential_languages}" "$LINENO" 5
8e1fea1a 6538 fi
8e1fea1a 6539 if test "x$new_enable_languages" != "x$enable_languages"; then
6540 echo The following languages will be built: ${new_enable_languages}
9c3a0a29 6541 enable_languages="$new_enable_languages"
8e1fea1a 6542 fi
9c3a0a29 6543
b30fcfae 6544
b0e9b581 6545 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
8e1fea1a 6546fi
6547
50996fe5 6548# Handle --disable-<component> generically.
6549for dir in $configdirs $build_configdirs $target_configdirs ; do
6550 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
d2d2630b 6551 varname=`echo $dirname | sed -e s/+/_/g`
6552 if eval test x\${enable_${varname}} "=" xno ; then
50996fe5 6553 noconfigdirs="$noconfigdirs $dir"
6554 fi
6555done
6556
03869f98 6557# Check for Boehm's garbage collector
6558# Check whether --enable-objc-gc was given.
6559if test "${enable_objc_gc+set}" = set; then :
baf71228 6560 enableval=$enable_objc_gc;
6561fi
6562
6563
6564# Check whether --with-target-bdw-gc was given.
6565if test "${with_target_bdw_gc+set}" = set; then :
6566 withval=$with_target_bdw_gc;
6567fi
6568
6569
6570# Check whether --with-target-bdw-gc-include was given.
6571if test "${with_target_bdw_gc_include+set}" = set; then :
6572 withval=$with_target_bdw_gc_include;
6573fi
6574
6575
6576# Check whether --with-target-bdw-gc-lib was given.
6577if test "${with_target_bdw_gc_lib+set}" = set; then :
6578 withval=$with_target_bdw_gc_lib;
6579fi
6580
6581
6582case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6584$as_echo_n "checking for bdw garbage collector... " >&6; }
6585 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
74dfdbe3 6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6587$as_echo "using bdw-gc in default locations" >&6; }
baf71228 6588 else
6589 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
f00f02a3 6590 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
baf71228 6591 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
f00f02a3 6592 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
baf71228 6593 else
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6595$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6596 fi
6597 fi
03869f98 6598esac
6599
efa02472 6600# Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
b33ca042 6601case ,${enable_languages}, in
df148e44 6602 *,c++,*)
efa02472 6603 # Disable libitm, libsanitizer if we're not building libstdc++
df148e44 6604 case "${noconfigdirs}" in
6605 *target-libstdc++-v3*)
efa02472 6606 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
df148e44 6607 ;;
6608 *) ;;
6609 esac
6610 ;;
b33ca042 6611 *)
efa02472 6612 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
b33ca042 6613 ;;
6614esac
6615
e8eddfdd 6616# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6617# $build_configdirs and $target_configdirs.
8e1fea1a 6618# If we have the source for $noconfigdirs entries, add them to $notsupp.
6619
6620notsupp=""
6621for dir in . $skipdirs $noconfigdirs ; do
e8eddfdd 6622 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
8e1fea1a 6623 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6624 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6625 if test -r $srcdir/$dirname/configure ; then
6626 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6627 true
6628 else
6629 notsupp="$notsupp $dir"
6630 fi
6631 fi
6632 fi
e8eddfdd 6633 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6634 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6635 if test -r $srcdir/$dirname/configure ; then
6636 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6637 true
6638 else
6639 notsupp="$notsupp $dir"
6640 fi
6641 fi
6642 fi
8e1fea1a 6643 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6644 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6645 if test -r $srcdir/$dirname/configure ; then
6646 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6647 true
6648 else
6649 notsupp="$notsupp $dir"
6650 fi
6651 fi
6652 fi
6653done
6654
8e1fea1a 6655# Quietly strip out all directories which aren't configurable in this tree.
6656# This relies on all configurable subdirectories being autoconfiscated, which
6657# is now the case.
2f8725b0 6658build_configdirs_all="$build_configdirs"
6659build_configdirs=
6660for i in ${build_configdirs_all} ; do
b30fcfae 6661 j=`echo $i | sed -e s/build-//g`
2f8725b0 6662 if test -f ${srcdir}/$j/configure ; then
6663 build_configdirs="${build_configdirs} $i"
6664 fi
6665done
6666
8e1fea1a 6667configdirs_all="$configdirs"
6668configdirs=
6669for i in ${configdirs_all} ; do
6670 if test -f ${srcdir}/$i/configure ; then
6671 configdirs="${configdirs} $i"
6672 fi
6673done
2f8725b0 6674
8e1fea1a 6675target_configdirs_all="$target_configdirs"
6676target_configdirs=
6677for i in ${target_configdirs_all} ; do
b30fcfae 6678 j=`echo $i | sed -e s/target-//g`
8e1fea1a 6679 if test -f ${srcdir}/$j/configure ; then
6680 target_configdirs="${target_configdirs} $i"
6681 fi
6682done
6683
1015a063 6684# libiberty-linker-plugin is special: it doesn't have its own source directory,
6685# so we have to add it after the preceding checks.
6686if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6687then
6688 case " $configdirs " in
6689 *" libiberty "*)
6690 # If we can build libiberty, we can also build libiberty-linker-plugin.
6691 configdirs="$configdirs libiberty-linker-plugin"
6692 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6693 --with-libiberty=../libiberty-linker-plugin";;
6694 *)
f00f02a3 6695 as_fn_error $? "libiberty missing" "$LINENO" 5;;
1015a063 6696 esac
6697fi
6698
944792ef 6699# Sometimes we have special requirements for the host libiberty.
6700extra_host_libiberty_configure_flags=
c850ece7 6701extra_host_zlib_configure_flags=
944792ef 6702case " $configdirs " in
6703 *" lto-plugin "* | *" libcc1 "*)
6704 # When these are to be built as shared libraries, the same applies to
6705 # libiberty.
6706 extra_host_libiberty_configure_flags=--enable-shared
6707 ;;
c850ece7 6708 *" bfd "*)
6709 # When bfd is to be built as a shared library, the same applies to
6710 # zlib.
6711 if test "$enable_shared" = "yes"; then
6712 extra_host_zlib_configure_flags=--enable-host-shared
6713 fi
6714 ;;
944792ef 6715esac
6716
6717
c850ece7 6718
8e1fea1a 6719# Produce a warning message for the subdirs we can't configure.
6720# This isn't especially interesting in the Cygnus tree, but in the individual
6721# FSF releases, it's important to let people know when their machine isn't
6722# supported by the one or two programs in a package.
6723
6724if test -n "${notsupp}" && test -z "${norecursion}" ; then
6725 # If $appdirs is non-empty, at least one of those directories must still
6726 # be configured, or we error out. (E.g., if the gas release supports a
6727 # specified target in some subdirs but not the gas subdir, we shouldn't
6728 # pretend that all is well.)
6729 if test -n "$appdirs" ; then
6730 for dir in $appdirs ; do
6731 if test -r $dir/Makefile.in ; then
6732 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6733 appdirs=""
6734 break
6735 fi
2f8725b0 6736 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
8e1fea1a 6737 appdirs=""
6738 break
6739 fi
6740 fi
6741 done
6742 if test -n "$appdirs" ; then
6743 echo "*** This configuration is not supported by this package." 1>&2
6744 exit 1
6745 fi
6746 fi
6747 # Okay, some application will build, or we don't care to check. Still
6748 # notify of subdirs not getting built.
6749 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6750 echo " ${notsupp}" 1>&2
6751 echo " (Any other directories should still work fine.)" 1>&2
6752fi
6753
6754case "$host" in
6755 *msdosdjgpp*)
6756 enable_gdbtk=no ;;
6757esac
6758
eae5b2bc 6759# To find our prefix, in gcc_cv_tool_prefix.
6760
6761# The user is always right.
6762if test "${PATH_SEPARATOR+set}" != set; then
6763 echo "#! /bin/sh" >conf$$.sh
6764 echo "exit 0" >>conf$$.sh
6765 chmod +x conf$$.sh
6766 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6767 PATH_SEPARATOR=';'
6768 else
6769 PATH_SEPARATOR=:
6770 fi
6771 rm -f conf$$.sh
6772fi
6773
6774
0812bb06 6775 get_gcc_base_ver="cat"
6776
6777# Check whether --with-gcc-major-version-only was given.
6778if test "${with_gcc_major_version_only+set}" = set; then :
6779 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
1e42d5c6 6780 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
0812bb06 6781 fi
6782
6783fi
6784
6785
6786
6787
6788
eae5b2bc 6789
6790if test "x$exec_prefix" = xNONE; then
6791 if test "x$prefix" = xNONE; then
6792 gcc_cv_tool_prefix=$ac_default_prefix
6793 else
6794 gcc_cv_tool_prefix=$prefix
6795 fi
6796else
6797 gcc_cv_tool_prefix=$exec_prefix
6798fi
6799
6800# If there is no compiler in the tree, use the PATH only. In any
6801# case, if there is no compiler in the tree nobody should use
6802# AS_FOR_TARGET and LD_FOR_TARGET.
6803if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
0812bb06 6804 if test x$with_gcc_major_version_only = xyes ; then
6805 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6806 else
6807 gcc_version=`cat $srcdir/gcc/BASE-VER`
6808 fi
eae5b2bc 6809 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6810 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6811 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6812 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6813 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6814 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6815else
6816 gcc_cv_tool_dirs=
6817fi
6818
6819if test x$build = x$target && test -n "$md_exec_prefix"; then
6820 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6821fi
6822
6823
6824
8e1fea1a 6825copy_dirs=
6826
b30fcfae 6827
cd9a469c 6828# Check whether --with-build-sysroot was given.
6829if test "${with_build_sysroot+set}" = set; then :
6830 withval=$with_build_sysroot; if test x"$withval" != x ; then
ffa8502d 6831 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6832 fi
6833else
6834 SYSROOT_CFLAGS_FOR_TARGET=
cd9a469c 6835fi
ffa8502d 6836
6837
5f1f2de5 6838
cd9a469c 6839
6840# Check whether --with-debug-prefix-map was given.
6841if test "${with_debug_prefix_map+set}" = set; then :
6842 withval=$with_debug_prefix_map; if test x"$withval" != x; then
5f1f2de5 6843 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6844 for debug_map in $withval; do
6845 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6846 done
6847 fi
6848else
6849 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
cd9a469c 6850fi
6851
5f1f2de5 6852
6853
c898f165 6854# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6855# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6856# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6857# We want to ensure that TARGET libraries (which we know are built with
6858# gcc) are built with "-O2 -g", so include those options when setting
6859# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6860if test "x$CFLAGS_FOR_TARGET" = x; then
f5fad380 6861 if test "x${is_cross_compiler}" = xyes; then
6862 CFLAGS_FOR_TARGET="-g -O2"
6863 else
6864 CFLAGS_FOR_TARGET=$CFLAGS
6865 case " $CFLAGS " in
6866 *" -O2 "*) ;;
6867 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6868 esac
6869 case " $CFLAGS " in
6870 *" -g "* | *" -g3 "*) ;;
6871 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6872 esac
6873 fi
c898f165 6874fi
6875
6876
6877if test "x$CXXFLAGS_FOR_TARGET" = x; then
f5fad380 6878 if test "x${is_cross_compiler}" = xyes; then
6879 CXXFLAGS_FOR_TARGET="-g -O2"
6880 else
6881 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6882 case " $CXXFLAGS " in
6883 *" -O2 "*) ;;
6884 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6885 esac
6886 case " $CXXFLAGS " in
6887 *" -g "* | *" -g3 "*) ;;
6888 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6889 esac
6890 fi
c898f165 6891fi
6892
6893
ed9516f5 6894
6895
8e1fea1a 6896# Handle --with-headers=XXX. If the value is not "yes", the contents of
6897# the named directory are copied to $(tooldir)/sys-include.
6898if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6899 if test x${is_cross_compiler} = xno ; then
6900 echo 1>&2 '***' --with-headers is only supported when cross compiling
6901 exit 1
6902 fi
6903 if test x"${with_headers}" != xyes ; then
eae5b2bc 6904 x=${gcc_cv_tool_prefix}
b30fcfae 6905 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
8e1fea1a 6906 fi
6907fi
6908
6909# Handle --with-libs=XXX. If the value is not "yes", the contents of
6910# the name directories are copied to $(tooldir)/lib. Multiple directories
6911# are permitted.
6912if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6913 if test x${is_cross_compiler} = xno ; then
6914 echo 1>&2 '***' --with-libs is only supported when cross compiling
6915 exit 1
6916 fi
6917 if test x"${with_libs}" != xyes ; then
6918 # Copy the libraries in reverse order, so that files in the first named
6919 # library override files in subsequent libraries.
eae5b2bc 6920 x=${gcc_cv_tool_prefix}
8e1fea1a 6921 for l in ${with_libs}; do
b30fcfae 6922 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
8e1fea1a 6923 done
6924 fi
6925fi
6926
7bfefa9d 6927# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
c47832b1 6928#
6929# This is done by determining whether or not the appropriate directory
6930# is available, and by checking whether or not specific configurations
6931# have requested that this magic not happen.
b30fcfae 6932#
6933# The command line options always override the explicit settings in
e757a6a8 6934# configure.ac, and the settings in configure.ac override this magic.
c47832b1 6935#
b30fcfae 6936# If the default for a toolchain is to use GNU as and ld, and you don't
c47832b1 6937# want to do that, then you should use the --without-gnu-as and
7bfefa9d 6938# --without-gnu-ld options for the configure script. Similarly, if
6939# the default is to use the included zlib and you don't want to do that,
6940# you should use the --with-system-zlib option for the configure script.
c47832b1 6941
6942if test x${use_gnu_as} = x &&
6943 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6944 with_gnu_as=yes
6945 extra_host_args="$extra_host_args --with-gnu-as"
6946fi
6947
6948if test x${use_gnu_ld} = x &&
3d47fcf5 6949 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
c47832b1 6950 with_gnu_ld=yes
6951 extra_host_args="$extra_host_args --with-gnu-ld"
6952fi
6953
7bfefa9d 6954if test x${use_included_zlib} = x &&
6955 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6956 :
6957else
6958 with_system_zlib=yes
6959 extra_host_args="$extra_host_args --with-system-zlib"
6960fi
6961
c47832b1 6962# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6963# can detect this case.
6964
6965if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6966 with_newlib=yes
6967 extra_host_args="$extra_host_args --with-newlib"
6968fi
6969
8e1fea1a 6970# Handle ${copy_dirs}
6971set fnord ${copy_dirs}
6972shift
6973while test $# != 0 ; do
6974 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6975 :
6976 else
6977 echo Copying $1 to $2
6978
6979 # Use the install script to create the directory and all required
6980 # parent directories.
6981 if test -d $2 ; then
6982 :
6983 else
6984 echo >config.temp
6985 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6986 fi
6987
6988 # Copy the directory, assuming we have tar.
6989 # FIXME: Should we use B in the second tar? Not all systems support it.
6990 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6991
6992 # It is the responsibility of the user to correctly adjust all
6993 # symlinks. If somebody can figure out how to handle them correctly
6994 # here, feel free to add the code.
6995
6996 echo $1 > $2/COPIED
6997 fi
6998 shift; shift
6999done
7000
c47832b1 7001# Determine a target-dependent exec_prefix that the installed
7002# gcc will search in. Keep this list sorted by triplet, with
7003# the *-*-osname triplets last.
7004md_exec_prefix=
7005case "${target}" in
09c2d953 7006 i[34567]86-pc-msdosdjgpp*)
c47832b1 7007 md_exec_prefix=/dev/env/DJDIR/bin
7008 ;;
c47832b1 7009 *-*-hpux* | \
c47832b1 7010 *-*-nto-qnx* | \
93faf308 7011 *-*-solaris2*)
c47832b1 7012 md_exec_prefix=/usr/ccs/bin
7013 ;;
7014esac
7015
71ab34df 7016extra_arflags_for_target=
7017extra_nmflags_for_target=
7018extra_ranlibflags_for_target=
7019target_makefile_frag=/dev/null
7020case "${target}" in
57c7de11 7021 spu-*-*)
7022 target_makefile_frag="config/mt-spu"
7023 ;;
d781ea5c 7024 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
f8520ad7 7025 target_makefile_frag="config/mt-sde"
7026 ;;
3013c2c7 7027 mipsisa*-*-elfoabi*)
7028 target_makefile_frag="config/mt-mips-elfoabi"
7029 ;;
559b0712 7030 mips*-*-*linux* | mips*-*-gnu*)
7031 target_makefile_frag="config/mt-mips-gnu"
7032 ;;
2481a2c1 7033 nios2-*-elf*)
7034 target_makefile_frag="config/mt-nios2-elf"
7035 ;;
a703ac2b 7036 *-*-linux-android*)
7037 target_makefile_frag="config/mt-android"
7038 ;;
3bef4012 7039 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
cb8a7007 7040 target_makefile_frag="config/mt-gnu"
71ab34df 7041 ;;
7042 *-*-aix4.[3456789]* | *-*-aix[56789].*)
b30fcfae 7043 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
71ab34df 7044 # commands to handle both 32-bit and 64-bit objects. These flags are
7045 # harmless if we're using GNU nm or ar.
7046 extra_arflags_for_target=" -X32_64"
7047 extra_nmflags_for_target=" -B -X32_64"
7048 ;;
71ab34df 7049esac
7050
7051alphaieee_frag=/dev/null
7052case $target in
7053 alpha*-*-*)
7054 # This just makes sure to use the -mieee option to build target libs.
7055 # This should probably be set individually by each library.
7056 alphaieee_frag="config/mt-alphaieee"
7057 ;;
7058esac
7059
7060# If --enable-target-optspace always use -Os instead of -O2 to build
7061# the target libraries, similarly if it is not specified, use -Os
7062# on selected platforms.
7063ospace_frag=/dev/null
7064case "${enable_target_optspace}:${target}" in
7065 yes:*)
7066 ospace_frag="config/mt-ospace"
7067 ;;
7068 :d30v-*)
7069 ospace_frag="config/mt-d30v"
7070 ;;
1c26a2ee 7071 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
71ab34df 7072 ospace_frag="config/mt-ospace"
7073 ;;
7074 no:* | :*)
7075 ;;
7076 *)
7077 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7078 ;;
7079esac
7080
71ab34df 7081# Some systems (e.g., one of the i386-aix systems the gas testers are
7082# using) don't handle "\$" correctly, so don't use it here.
b30fcfae 7083tooldir='${exec_prefix}'/${target_noncanonical}
71ab34df 7084build_tooldir=${tooldir}
7085
71ab34df 7086# Create a .gdbinit file which runs the one in srcdir
7087# and tells GDB to look there for source files.
7088
7089if test -r ${srcdir}/.gdbinit ; then
7090 case ${srcdir} in
7091 .) ;;
7092 *) cat > ./.gdbinit <<EOF
7093# ${NO_EDIT}
7094dir ${srcdir}
7095dir .
7096source ${srcdir}/.gdbinit
7097EOF
7098 ;;
7099 esac
7100fi
7101
71ab34df 7102# Make sure that the compiler is able to generate an executable. If it
7103# can't, we are probably in trouble. We don't care whether we can run the
7104# executable--we might be using a cross compiler--we only care whether it
7105# can be created. At this point the main configure script has set CC.
7106we_are_ok=no
7107echo "int main () { return 0; }" > conftest.c
7108${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7109if test $? = 0 ; then
7110 if test -s conftest || test -s conftest.exe ; then
7111 we_are_ok=yes
7112 fi
b30fcfae 7113fi
71ab34df 7114case $we_are_ok in
7115 no)
7116 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7117 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7118 rm -f conftest*
7119 exit 1
7120 ;;
7121esac
7122rm -f conftest*
7123
7d804f04 7124# Decide which environment variable is used to find dynamic libraries.
71ab34df 7125case "${host}" in
7126 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
b2240ff6 7127 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7d804f04 7128 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
71ab34df 7129 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7130esac
7131
7d804f04 7132# On systems where the dynamic library environment variable is PATH,
7133# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7134# built executables to PATH.
7135if test "$RPATH_ENVVAR" = PATH; then
7136 GCC_SHLIB_SUBDIR=/shlib
7137else
7138 GCC_SHLIB_SUBDIR=
7139fi
7140
ee055341 7141# Adjust the toplevel makefile according to whether bootstrap was selected.
7142case $enable_bootstrap in
7143 yes)
7144 bootstrap_suffix=bootstrap
7145 BUILD_CONFIG=bootstrap-debug
7146 ;;
7147 no)
7148 bootstrap_suffix=no-bootstrap
7149 BUILD_CONFIG=
7150 ;;
7151esac
7152
7153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7154$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7155
7156
7157# Check whether --with-build-config was given.
7158if test "${with_build_config+set}" = set; then :
7159 withval=$with_build_config; case $with_build_config in
7160 yes) with_build_config= ;;
7161 no) with_build_config= BUILD_CONFIG= ;;
7162 esac
7163fi
7164
7165
7166if test "x${with_build_config}" != x; then
7167 BUILD_CONFIG=$with_build_config
7168else
7169 case $BUILD_CONFIG in
7170 bootstrap-debug)
7171 if echo "int f (void) { return 0; }" > conftest.c &&
7172 ${CC} -c conftest.c &&
7173 mv conftest.o conftest.o.g0 &&
7174 ${CC} -c -g conftest.c &&
7175 mv conftest.o conftest.o.g &&
7176 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7177 :
7178 else
7179 BUILD_CONFIG=
7180 fi
7181 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7182 ;;
7183 esac
7184fi
7185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7186$as_echo "$BUILD_CONFIG" >&6; }
7187
7188
7189# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7191$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7192# Check whether --enable-vtable-verify was given.
7193if test "${enable_vtable_verify+set}" = set; then :
7194 enableval=$enable_vtable_verify; case "$enableval" in
7195 yes) enable_vtable_verify=yes ;;
7196 no) enable_vtable_verify=no ;;
7197 *) enable_vtable_verify=no;;
7198 esac
7199else
7200 enable_vtable_verify=no
7201fi
7202
7203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7204$as_echo "$enable_vtable_verify" >&6; }
7205
71ab34df 7206# Record target_configdirs and the configure arguments for target and
7207# build configuration in Makefile.
7208target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
2f8725b0 7209build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
f4ae1a00 7210bootstrap_fixincludes=no
71ab34df 7211
5c96a839 7212# If we are building libgomp, bootstrap it.
7213if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7214 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7215fi
7216
ee055341 7217# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7218# or bootstrap-ubsan, bootstrap it.
7219if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7220 case "$BUILD_CONFIG" in
7221 *bootstrap-asan* | *bootstrap-ubsan* )
7222 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
f4ae1a00 7223 bootstrap_fixincludes=yes
ee055341 7224 ;;
7225 esac
579abfee 7226fi
7227
ee055341 7228# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7229if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7230 test "$enable_vtable_verify" != no; then
b710ec85 7231 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7232fi
7233
71ab34df 7234# Determine whether gdb needs tk/tcl or not.
7235# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7236# and in that case we want gdb to be built without tk. Ugh!
7237# In fact I believe gdb is the *only* package directly dependent on tk,
7238# so we should be able to put the 'maybe's in unconditionally and
7239# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7240# 100% sure that that's safe though.
8fdaf281 7241
f843f075 7242gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
71ab34df 7243case "$enable_gdbtk" in
7244 no)
7245 GDB_TK="" ;;
8fdaf281 7246 yes)
7247 GDB_TK="${gdb_tk}" ;;
71ab34df 7248 *)
8fdaf281 7249 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7250 # distro. Eventually someone will fix this and move Insight, nee
7251 # gdbtk to a separate directory.
7252 if test -d ${srcdir}/gdb/gdbtk ; then
7253 GDB_TK="${gdb_tk}"
7254 else
7255 GDB_TK=""
7256 fi
7257 ;;
71ab34df 7258esac
415470be 7259CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7260INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
71ab34df 7261
4b002610 7262# gdb depends on gnulib, but as nothing else does, only include it if
7263# gdb is built.
7264if echo " ${configdirs} " | grep " gdb " > /dev/null 2>&1 ; then
7265 # The Makefile provides the ordering, so it's enough here to add
7266 # gnulib to the list.
7267 configdirs="${configdirs} gnulib"
7268fi
7269
01b41571 7270# Strip out unwanted targets.
6f4f34a7 7271
7272# While at that, we remove Makefiles if we were started for recursive
7273# configuration, so that the top-level Makefile reconfigures them,
7274# like we used to do when configure itself was recursive.
6f4f34a7 7275
8bb79148 7276# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7277# but now we're fixing up the Makefile ourselves with the additional
7278# commands passed to AC_CONFIG_FILES. Use separate variables
7279# extrasub-{build,host,target} not because there is any reason to split
7280# the substitutions up that way, but only to remain below the limit of
7281# 99 commands in a script, for HP-UX sed.
9488d90e 7282
7283# Do not nest @if/@endif or @unless/@endunless pairs, because
7284# configure will not warn you at all.
6f4f34a7 7285
7b5fee3e 7286case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7287 yes:yes:*\ gold\ *:*,c++,*) ;;
7288 yes:yes:*\ gold\ *:*)
f00f02a3 7289 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7b5fee3e 7290 ;;
7291esac
7292
8bb79148 7293extrasub_build=
2f8725b0 7294for module in ${build_configdirs} ; do
93f93279 7295 if test -z "${no_recursion}" \
7296 && test -f ${build_subdir}/${module}/Makefile; then
7297 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7298 rm -f ${build_subdir}/${module}/Makefile
7299 fi
8bb79148 7300 extrasub_build="$extrasub_build
93f93279 7301/^@if build-$module\$/d
7302/^@endif build-$module\$/d
9488d90e 7303/^@unless build-$module\$/,/^@endunless build-$module\$/d
93f93279 7304/^@if build-$module-$bootstrap_suffix\$/d
9488d90e 7305/^@endif build-$module-$bootstrap_suffix\$/d
7306/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
93f93279 7307done
8bb79148 7308extrasub_host=
93f93279 7309for module in ${configdirs} ; do
9c19a746 7310 if test -z "${no_recursion}"; then
35d84d10 7311 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9c19a746 7312 if test -f ${file}; then
7313 echo 1>&2 "*** removing ${file} to force reconfigure"
7314 rm -f ${file}
7315 fi
7316 done
93f93279 7317 fi
f4ae1a00 7318 case ${module},${bootstrap_fixincludes} in
7319 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7320 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7321 esac
8bb79148 7322 extrasub_host="$extrasub_host
93f93279 7323/^@if $module\$/d
7324/^@endif $module\$/d
9488d90e 7325/^@unless $module\$/,/^@endunless $module\$/d
f4ae1a00 7326/^@if $module-$host_bootstrap_suffix\$/d
9488d90e 7327/^@endif $module-$host_bootstrap_suffix\$/d
7328/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
93f93279 7329done
8bb79148 7330extrasub_target=
93f93279 7331for module in ${target_configdirs} ; do
7332 if test -z "${no_recursion}" \
7333 && test -f ${target_subdir}/${module}/Makefile; then
7334 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7335 rm -f ${target_subdir}/${module}/Makefile
7336 fi
7ab76cec 7337
7338 # We only bootstrap target libraries listed in bootstrap_target_libs.
7339 case $bootstrap_target_libs in
7340 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7341 *) target_bootstrap_suffix=no-bootstrap ;;
7342 esac
7343
8bb79148 7344 extrasub_target="$extrasub_target
93f93279 7345/^@if target-$module\$/d
7346/^@endif target-$module\$/d
9488d90e 7347/^@unless target-$module\$/,/^@endunless target-$module\$/d
7ab76cec 7348/^@if target-$module-$target_bootstrap_suffix\$/d
9488d90e 7349/^@endif target-$module-$target_bootstrap_suffix\$/d
7350/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
93f93279 7351done
7352
8bb79148 7353# Do the final fixup along with target modules.
7354extrasub_target="$extrasub_target
9488d90e 7355/^@if /,/^@endif /d
7356/^@unless /d
7357/^@endunless /d"
71ab34df 7358
7359# Create the serialization dependencies. This uses a temporary file.
7360
cd9a469c 7361# Check whether --enable-serial-configure was given.
7362if test "${enable_serial_configure+set}" = set; then :
7363 enableval=$enable_serial_configure;
7364fi
11d8013a 7365
7366
622c1fa9 7367case ${enable_serial_configure} in
7368 yes)
7369 enable_serial_build_configure=yes
7370 enable_serial_host_configure=yes
7371 enable_serial_target_configure=yes
7372 ;;
7373esac
7374
71ab34df 7375# These force 'configure's to be done one at a time, to avoid problems
7376# with contention over a shared config.cache.
7377rm -f serdep.tmp
11d8013a 7378echo '# serdep.tmp' > serdep.tmp
71ab34df 7379olditem=
622c1fa9 7380test "x${enable_serial_build_configure}" = xyes &&
71ab34df 7381for item in ${build_configdirs} ; do
7382 case ${olditem} in
7383 "") ;;
11d8013a 7384 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
71ab34df 7385 esac
7386 olditem=${item}
7387done
7388olditem=
622c1fa9 7389test "x${enable_serial_host_configure}" = xyes &&
71ab34df 7390for item in ${configdirs} ; do
7391 case ${olditem} in
7392 "") ;;
11d8013a 7393 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
71ab34df 7394 esac
7395 olditem=${item}
7396done
7397olditem=
622c1fa9 7398test "x${enable_serial_target_configure}" = xyes &&
71ab34df 7399for item in ${target_configdirs} ; do
7400 case ${olditem} in
7401 "") ;;
11d8013a 7402 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
71ab34df 7403 esac
7404 olditem=${item}
7405done
7406serialization_dependencies=serdep.tmp
7407
7408
11d8013a 7409# Base args. Strip norecursion, cache-file, srcdir, host, build,
b30fcfae 7410# target, nonopt, and variable assignments. These are the ones we
412c2e81 7411# might not want to pass down to subconfigures. The exception being
7412# --cache-file=/dev/null, which is used to turn off the use of cache
7413# files altogether, and which should be passed on to subconfigures.
7414# Also strip program-prefix, program-suffix, and program-transform-name,
7415# so that we can pass down a consistent program-transform-name.
b30fcfae 7416baseargs=
0e4d1862 7417tbaseargs=
b30fcfae 7418keep_next=no
7419skip_next=no
7420eval "set -- $ac_configure_args"
4ff792a4 7421for ac_arg
7422do
b30fcfae 7423 if test X"$skip_next" = X"yes"; then
7424 skip_next=no
7425 continue
7426 fi
7427 if test X"$keep_next" = X"yes"; then
7428 case $ac_arg in
7429 *\'*)
7430 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7431 esac
7432 baseargs="$baseargs '$ac_arg'"
0e4d1862 7433 tbaseargs="$tbaseargs '$ac_arg'"
b30fcfae 7434 keep_next=no
7435 continue
7436 fi
7437
7438 # Handle separated arguments. Based on the logic generated by
7439 # autoconf 2.59.
7440 case $ac_arg in
7441 *=* | --config-cache | -C | -disable-* | --disable-* \
7442 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7443 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7444 | -with-* | --with-* | -without-* | --without-* | --x)
7445 separate_arg=no
7446 ;;
7447 -*)
7448 separate_arg=yes
7449 ;;
7450 *)
7451 separate_arg=no
7452 ;;
7453 esac
7454
0e4d1862 7455 skip_targ=no
7456 case $ac_arg in
7457
7458 --with-* | --without-*)
7459 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7460
7461 case $libopt in
7462 *[-_]include)
7463 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7464 ;;
7465 *[-_]lib)
7466 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7467 ;;
7468 *)
7469 lib=$libopt
7470 ;;
7471 esac
7472
7473
7474 case $lib in
572cf1f7 7475 mpc | mpfr | gmp | isl)
0e4d1862 7476 # If we're processing --with-$lib, --with-$lib-include or
7477 # --with-$lib-lib, for one of the libs above, and target is
7478 # different from host, don't pass the current argument to any
7479 # target library's configure.
7480 if test x$is_cross_compiler = xyes; then
7481 skip_targ=yes
7482 fi
7483 ;;
7484 esac
7485 ;;
7486 esac
7487
b30fcfae 7488 case "$ac_arg" in
412c2e81 7489 --cache-file=/dev/null | \
7490 -cache-file=/dev/null )
7491 # Handled here to avoid the test to skip args below.
7492 baseargs="$baseargs '$ac_arg'"
0e4d1862 7493 tbaseargs="$tbaseargs '$ac_arg'"
412c2e81 7494 # Assert: $separate_arg should always be no.
7495 keep_next=$separate_arg
7496 ;;
b30fcfae 7497 --no*)
7498 continue
7499 ;;
7500 --c* | \
7501 --sr* | \
7502 --ho* | \
7503 --bu* | \
7504 --t* | \
7505 --program-* | \
7506 -cache_file* | \
7507 -srcdir* | \
7508 -host* | \
7509 -build* | \
7510 -target* | \
7511 -program-prefix* | \
7512 -program-suffix* | \
7513 -program-transform-name* )
7514 skip_next=$separate_arg
7515 continue
7516 ;;
7517 -*)
7518 # An option. Add it.
7519 case $ac_arg in
7520 *\'*)
7521 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7522 esac
7523 baseargs="$baseargs '$ac_arg'"
0e4d1862 7524 if test X"$skip_targ" = Xno; then
7525 tbaseargs="$tbaseargs '$ac_arg'"
7526 fi
b30fcfae 7527 keep_next=$separate_arg
7528 ;;
7529 *)
7530 # Either a variable assignment, or a nonopt (triplet). Don't
7531 # pass it down; let the Makefile handle this.
7532 continue
7533 ;;
7534 esac
7535done
7536# Remove the initial space we just introduced and, as these will be
7537# expanded by make, quote '$'.
7538baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
71ab34df 7539
fbfea1fa 7540# Add in --program-transform-name, after --program-prefix and
7541# --program-suffix have been applied to it. Autoconf has already
7542# doubled dollar signs and backslashes in program_transform_name; we want
7543# the backslashes un-doubled, and then the entire thing wrapped in single
b30fcfae 7544# quotes, because this will be expanded first by make and then by the shell.
fbfea1fa 7545# Also, because we want to override the logic in subdir configure scripts to
7546# choose program_transform_name, replace any s,x,x, with s,y,y,.
7547sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7548${program_transform_name}
7549EOF_SED
7550gcc_transform_name=`cat conftestsed.out`
7551rm -f conftestsed.out
7552baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
0e4d1862 7553tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
af7bb0c0 7554if test "$silent" = yes; then
7555 baseargs="$baseargs --silent"
0e4d1862 7556 tbaseargs="$tbaseargs --silent"
af7bb0c0 7557fi
cd2f3773 7558baseargs="$baseargs --disable-option-checking"
0e4d1862 7559tbaseargs="$tbaseargs --disable-option-checking"
fbfea1fa 7560
372a3f1e 7561# Record and document user additions to sub configure arguments.
7562
7563
7564
7565
71ab34df 7566# For the build-side libraries, we just need to pretend we're native,
7567# and not use the same cache file. Multilibs are neither needed nor
b85b703b 7568# desired. We can't even use the same cache file for all build-side
7569# libraries, as they're compiled differently; some with C, some with
7570# C++ or with different feature-enabling options.
7571build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
71ab34df 7572
7573# For host modules, accept cache file option, or specification as blank.
7574case "${cache_file}" in
7575"") # empty
7576 cache_file_option="" ;;
7577/* | [A-Za-z]:[\\/]* ) # absolute path
7578 cache_file_option="--cache-file=${cache_file}" ;;
7579*) # relative path
7580 cache_file_option="--cache-file=../${cache_file}" ;;
7581esac
7582
ba1081ef 7583# Host dirs don't like to share a cache file either, horribly enough.
7584# This seems to be due to autoconf 2.5x stupidity.
372a3f1e 7585host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
71ab34df 7586
0e4d1862 7587target_configargs="$target_configargs ${tbaseargs}"
71ab34df 7588
7589# Passing a --with-cross-host argument lets the target libraries know
7590# whether they are being built with a cross-compiler or being built
7591# native. However, it would be better to use other mechanisms to make the
7592# sorts of decisions they want to make on this basis. Please consider
7593# this option to be deprecated. FIXME.
7594if test x${is_cross_compiler} = xyes ; then
b30fcfae 7595 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
71ab34df 7596fi
7597
87ebeb4c 7598# Special user-friendly check for native x86_64-linux build, if
7599# multilib is not explicitly enabled.
7600case "$target:$have_compiler:$host:$target:$enable_multilib" in
7601 x86_64-*linux*:yes:$build:$build:)
6efd9d79 7602 # Make sure we have a development environment that handles 32-bit
87ebeb4c 7603 dev64=no
7604 echo "int main () { return 0; }" > conftest.c
7605 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7606 if test $? = 0 ; then
7607 if test -s conftest || test -s conftest.exe ; then
7608 dev64=yes
7609 fi
7610 fi
7611 rm -f conftest*
7612 if test x${dev64} != xyes ; then
f00f02a3 7613 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
87ebeb4c 7614 fi
7615 ;;
7616esac
7617
59a40389 7618# Default to --enable-multilib.
7619if test x${enable_multilib} = x ; then
71ab34df 7620 target_configargs="--enable-multilib ${target_configargs}"
59a40389 7621fi
71ab34df 7622
7623# Pass --with-newlib if appropriate. Note that target_configdirs has
7624# changed from the earlier setting of with_newlib.
7625if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7626 target_configargs="--with-newlib ${target_configargs}"
7627fi
7628
74fef112 7629# Different target subdirs use different values of certain variables
7630# (notably CXX). Worse, multilibs use *lots* of different values.
7631# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7632# it doesn't automatically accept command-line overrides of them.
7633# This means it's not safe for target subdirs to share a cache file,
7634# which is disgusting, but there you have it. Hopefully this can be
7635# fixed in future. It's still worthwhile to use a cache file for each
7636# directory. I think.
7637
a8abbd9d 7638# Pass the appropriate --build, --host, --target and --cache-file arguments.
7639# We need to pass --target, as newer autoconf's requires consistency
7640# for target_alias and gcc doesn't manage it consistently.
d45318b3 7641target_configargs="--cache-file=./config.cache ${target_configargs}"
71ab34df 7642
71ab34df 7643FLAGS_FOR_TARGET=
7644case " $target_configdirs " in
7645 *" newlib "*)
7646 case " $target_configargs " in
7647 *" --with-newlib "*)
7648 case "$target" in
fe284774 7649 *-cygwin*)
db54564d 7650 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
fe284774 7651 ;;
71ab34df 7652 esac
7653
7654 # If we're not building GCC, don't discard standard headers.
7655 if test -d ${srcdir}/gcc; then
7656 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7657
7658 if test "${build}" != "${host}"; then
7659 # On Canadian crosses, CC_FOR_TARGET will have already been set
7660 # by `configure', so we won't have an opportunity to add -Bgcc/
7661 # to it. This is right: we don't want to search that directory
7662 # for binaries, but we want the header files in there, so add
7663 # them explicitly.
e619f0a6 7664 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
71ab34df 7665
7666 # Someone might think of using the pre-installed headers on
7667 # Canadian crosses, in case the installed compiler is not fully
7668 # compatible with the compiler being built. In this case, it
7669 # would be better to flag an error than risking having
7670 # incompatible object files being constructed. We can't
7671 # guarantee that an error will be flagged, but let's hope the
7672 # compiler will do it, when presented with incompatible header
7673 # files.
7674 fi
7675 fi
7676
7677 case "${target}-${is_cross_compiler}" in
f74ea578 7678 i[3456789]86-*-linux*-no)
71ab34df 7679 # Here host == target, so we don't need to build gcc,
7680 # so we don't want to discard standard headers.
7681 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7682 ;;
7683 *)
7684 # If we're building newlib, use its generic headers last, but search
7685 # for any libc-related directories first (so make it the last -B
7686 # switch).
7687 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
1c5767f1 7688
7689 # If we're building libgloss, find the startup file, simulator library
7690 # and linker script.
7691 case " $target_configdirs " in
7692 *" libgloss "*)
7693 # Look for startup file, simulator library and maybe linker script.
7694 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7695 # Look for libnosys.a in case the target needs it.
7696 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7697 # Most targets have the linker script in the source directory.
7698 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7699 ;;
7700 esac
71ab34df 7701 ;;
7702 esac
7703 ;;
7704 esac
7705 ;;
7706esac
fe284774 7707
d6d689df 7708case "$target" in
fe284774 7709 x86_64-*mingw* | *-w64-mingw*)
7710 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7711 # however, use a symlink named 'mingw' in ${prefix} .
7712 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7713 ;;
7714 *-mingw*)
7715 # MinGW can't be handled as Cygwin above since it does not use newlib.
7716 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'
7717 ;;
d6d689df 7718esac
71ab34df 7719
d8e9ea04 7720# Allow the user to override the flags for
7721# our build compiler if desired.
823e8b8d 7722if test x"${build}" = x"${host}" ; then
7723 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7724 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7725 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7726fi
d8e9ea04 7727
71ab34df 7728# On Canadian crosses, we'll be searching the right directories for
7729# the previously-installed cross compiler, so don't bother to add
7730# flags for directories within the install tree of the compiler
7731# being built; programs in there won't even run.
7732if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7733 # Search for pre-installed headers if nothing else fits.
5750c7d4 7734 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
71ab34df 7735fi
7736
7737if test "x${use_gnu_ld}" = x &&
7738 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7739 # Arrange for us to find uninstalled linker scripts.
c1eb9e31 7740 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
71ab34df 7741fi
7742
24714a39 7743# Search for other target-specific linker scripts and such.
7744case "${target}" in
38d7211b 7745 mep*)
7746 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7747 ;;
24714a39 7748esac
7749
71ab34df 7750# Makefile fragments.
03c65091 7751for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7752do
7753 eval fragval=\$$frag
7754 if test $fragval != /dev/null; then
7755 eval $frag=${srcdir}/$fragval
7756 fi
7757done
71ab34df 7758
7759
7760
7761
7762
7763# Miscellanea: directories, flags, etc.
7764
7765
7766
7767
7768
7769
7770
7d804f04 7771
2f8725b0 7772# Build module lists & subconfigure args.
71ab34df 7773
7774
7775
f5aebe3e 7776# Host module lists & subconfigure args.
7777
7778
7779
1fda3360 7780
f5aebe3e 7781# Target module lists & subconfigure args.
7782
7783
7784
7785# Build tools.
7786
7787
7788
93c5e793 7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
03385ed3 7802
f5aebe3e 7803# Generate default definitions for YACC, M4, LEX and other programs that run
7804# on the build machine. These are used if the Makefile can't locate these
7805# programs in objdir.
7806MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7807
7808for ac_prog in 'bison -y' byacc yacc
7809do
b30fcfae 7810 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7811set dummy $ac_prog; ac_word=$2
cd9a469c 7812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7813$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7814if ${ac_cv_prog_YACC+:} false; then :
cd9a469c 7815 $as_echo_n "(cached) " >&6
f5aebe3e 7816else
7817 if test -n "$YACC"; then
7818 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7819else
b30fcfae 7820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821for as_dir in $PATH
7822do
7823 IFS=$as_save_IFS
7824 test -z "$as_dir" && as_dir=.
cd9a469c 7825 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7827 ac_cv_prog_YACC="$ac_prog"
cd9a469c 7828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7829 break 2
7830 fi
7831done
cd9a469c 7832 done
7833IFS=$as_save_IFS
b30fcfae 7834
f5aebe3e 7835fi
7836fi
b30fcfae 7837YACC=$ac_cv_prog_YACC
f5aebe3e 7838if test -n "$YACC"; then
cd9a469c 7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7840$as_echo "$YACC" >&6; }
f5aebe3e 7841else
cd9a469c 7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7843$as_echo "no" >&6; }
f5aebe3e 7844fi
7845
cd9a469c 7846
b30fcfae 7847 test -n "$YACC" && break
f5aebe3e 7848done
7849test -n "$YACC" || YACC="$MISSING bison -y"
7850
7851case " $build_configdirs " in
7852 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
f5aebe3e 7853esac
7854
7855for ac_prog in bison
7856do
b30fcfae 7857 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7858set dummy $ac_prog; ac_word=$2
cd9a469c 7859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7860$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7861if ${ac_cv_prog_BISON+:} false; then :
cd9a469c 7862 $as_echo_n "(cached) " >&6
f5aebe3e 7863else
7864 if test -n "$BISON"; then
7865 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7866else
b30fcfae 7867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868for as_dir in $PATH
7869do
7870 IFS=$as_save_IFS
7871 test -z "$as_dir" && as_dir=.
cd9a469c 7872 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7874 ac_cv_prog_BISON="$ac_prog"
cd9a469c 7875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7876 break 2
7877 fi
7878done
cd9a469c 7879 done
7880IFS=$as_save_IFS
b30fcfae 7881
f5aebe3e 7882fi
7883fi
b30fcfae 7884BISON=$ac_cv_prog_BISON
f5aebe3e 7885if test -n "$BISON"; then
cd9a469c 7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7887$as_echo "$BISON" >&6; }
f5aebe3e 7888else
cd9a469c 7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7890$as_echo "no" >&6; }
f5aebe3e 7891fi
7892
cd9a469c 7893
b30fcfae 7894 test -n "$BISON" && break
f5aebe3e 7895done
7896test -n "$BISON" || BISON="$MISSING bison"
7897
7898case " $build_configdirs " in
7899 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7900esac
7901
7902for ac_prog in gm4 gnum4 m4
7903do
b30fcfae 7904 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7905set dummy $ac_prog; ac_word=$2
cd9a469c 7906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7907$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7908if ${ac_cv_prog_M4+:} false; then :
cd9a469c 7909 $as_echo_n "(cached) " >&6
f5aebe3e 7910else
7911 if test -n "$M4"; then
7912 ac_cv_prog_M4="$M4" # Let the user override the test.
7913else
b30fcfae 7914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7915for as_dir in $PATH
7916do
7917 IFS=$as_save_IFS
7918 test -z "$as_dir" && as_dir=.
cd9a469c 7919 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7921 ac_cv_prog_M4="$ac_prog"
cd9a469c 7922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7923 break 2
7924 fi
7925done
cd9a469c 7926 done
7927IFS=$as_save_IFS
b30fcfae 7928
f5aebe3e 7929fi
7930fi
b30fcfae 7931M4=$ac_cv_prog_M4
f5aebe3e 7932if test -n "$M4"; then
cd9a469c 7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7934$as_echo "$M4" >&6; }
f5aebe3e 7935else
cd9a469c 7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7937$as_echo "no" >&6; }
f5aebe3e 7938fi
7939
cd9a469c 7940
b30fcfae 7941 test -n "$M4" && break
f5aebe3e 7942done
7943test -n "$M4" || M4="$MISSING m4"
7944
7945case " $build_configdirs " in
7946 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7947esac
7948
7949for ac_prog in flex lex
7950do
b30fcfae 7951 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7952set dummy $ac_prog; ac_word=$2
cd9a469c 7953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7954$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7955if ${ac_cv_prog_LEX+:} false; then :
cd9a469c 7956 $as_echo_n "(cached) " >&6
f5aebe3e 7957else
7958 if test -n "$LEX"; then
7959 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7960else
b30fcfae 7961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962for as_dir in $PATH
7963do
7964 IFS=$as_save_IFS
7965 test -z "$as_dir" && as_dir=.
cd9a469c 7966 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7968 ac_cv_prog_LEX="$ac_prog"
cd9a469c 7969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7970 break 2
7971 fi
7972done
cd9a469c 7973 done
7974IFS=$as_save_IFS
b30fcfae 7975
f5aebe3e 7976fi
7977fi
b30fcfae 7978LEX=$ac_cv_prog_LEX
f5aebe3e 7979if test -n "$LEX"; then
cd9a469c 7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7981$as_echo "$LEX" >&6; }
f5aebe3e 7982else
cd9a469c 7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7984$as_echo "no" >&6; }
f5aebe3e 7985fi
7986
cd9a469c 7987
b30fcfae 7988 test -n "$LEX" && break
f5aebe3e 7989done
7990test -n "$LEX" || LEX="$MISSING flex"
7991
7992case " $build_configdirs " in
7993 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7994 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7995esac
7996
7997for ac_prog in flex
7998do
b30fcfae 7999 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 8000set dummy $ac_prog; ac_word=$2
cd9a469c 8001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8002$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8003if ${ac_cv_prog_FLEX+:} false; then :
cd9a469c 8004 $as_echo_n "(cached) " >&6
f5aebe3e 8005else
8006 if test -n "$FLEX"; then
8007 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8008else
b30fcfae 8009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8010for as_dir in $PATH
8011do
8012 IFS=$as_save_IFS
8013 test -z "$as_dir" && as_dir=.
cd9a469c 8014 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8016 ac_cv_prog_FLEX="$ac_prog"
cd9a469c 8017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8018 break 2
8019 fi
8020done
cd9a469c 8021 done
8022IFS=$as_save_IFS
b30fcfae 8023
f5aebe3e 8024fi
8025fi
b30fcfae 8026FLEX=$ac_cv_prog_FLEX
f5aebe3e 8027if test -n "$FLEX"; then
cd9a469c 8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8029$as_echo "$FLEX" >&6; }
f5aebe3e 8030else
cd9a469c 8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8032$as_echo "no" >&6; }
f5aebe3e 8033fi
8034
cd9a469c 8035
b30fcfae 8036 test -n "$FLEX" && break
f5aebe3e 8037done
8038test -n "$FLEX" || FLEX="$MISSING flex"
8039
8040case " $build_configdirs " in
8041 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8042esac
8043
8044for ac_prog in makeinfo
8045do
b30fcfae 8046 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 8047set dummy $ac_prog; ac_word=$2
cd9a469c 8048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8049$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8050if ${ac_cv_prog_MAKEINFO+:} false; then :
cd9a469c 8051 $as_echo_n "(cached) " >&6
f5aebe3e 8052else
8053 if test -n "$MAKEINFO"; then
8054 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8055else
b30fcfae 8056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8057for as_dir in $PATH
8058do
8059 IFS=$as_save_IFS
8060 test -z "$as_dir" && as_dir=.
cd9a469c 8061 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8063 ac_cv_prog_MAKEINFO="$ac_prog"
cd9a469c 8064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8065 break 2
8066 fi
8067done
cd9a469c 8068 done
8069IFS=$as_save_IFS
b30fcfae 8070
f5aebe3e 8071fi
8072fi
b30fcfae 8073MAKEINFO=$ac_cv_prog_MAKEINFO
f5aebe3e 8074if test -n "$MAKEINFO"; then
cd9a469c 8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8076$as_echo "$MAKEINFO" >&6; }
f5aebe3e 8077else
cd9a469c 8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8079$as_echo "no" >&6; }
f5aebe3e 8080fi
8081
cd9a469c 8082
b30fcfae 8083 test -n "$MAKEINFO" && break
f5aebe3e 8084done
8085test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8086
8087case " $build_configdirs " in
8088 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8089 *)
8090
03caadda 8091 # For an installed makeinfo, we require it to be from texinfo 4.7 or
f5aebe3e 8092 # higher, else we use the "missing" dummy.
8093 if ${MAKEINFO} --version \
03caadda 8094 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
f5aebe3e 8095 :
8096 else
8097 MAKEINFO="$MISSING makeinfo"
8098 fi
8099 ;;
8100
8101esac
71ab34df 8102
f5aebe3e 8103# FIXME: expect and dejagnu may become build tools?
71ab34df 8104
f5aebe3e 8105for ac_prog in expect
8106do
b30fcfae 8107 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 8108set dummy $ac_prog; ac_word=$2
cd9a469c 8109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8111if ${ac_cv_prog_EXPECT+:} false; then :
cd9a469c 8112 $as_echo_n "(cached) " >&6
f5aebe3e 8113else
8114 if test -n "$EXPECT"; then
8115 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8116else
b30fcfae 8117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118for as_dir in $PATH
8119do
8120 IFS=$as_save_IFS
8121 test -z "$as_dir" && as_dir=.
cd9a469c 8122 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8124 ac_cv_prog_EXPECT="$ac_prog"
cd9a469c 8125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8126 break 2
8127 fi
8128done
cd9a469c 8129 done
8130IFS=$as_save_IFS
b30fcfae 8131
f5aebe3e 8132fi
8133fi
b30fcfae 8134EXPECT=$ac_cv_prog_EXPECT
f5aebe3e 8135if test -n "$EXPECT"; then
cd9a469c 8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8137$as_echo "$EXPECT" >&6; }
f5aebe3e 8138else
cd9a469c 8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140$as_echo "no" >&6; }
f5aebe3e 8141fi
71ab34df 8142
cd9a469c 8143
b30fcfae 8144 test -n "$EXPECT" && break
f5aebe3e 8145done
8146test -n "$EXPECT" || EXPECT="expect"
71ab34df 8147
f5aebe3e 8148case " $configdirs " in
8149 *" expect "*)
8150 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8151 ;;
8152esac
71ab34df 8153
f5aebe3e 8154for ac_prog in runtest
8155do
b30fcfae 8156 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 8157set dummy $ac_prog; ac_word=$2
cd9a469c 8158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8159$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8160if ${ac_cv_prog_RUNTEST+:} false; then :
cd9a469c 8161 $as_echo_n "(cached) " >&6
f5aebe3e 8162else
8163 if test -n "$RUNTEST"; then
8164 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
a4af6a58 8165else
b30fcfae 8166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8167for as_dir in $PATH
8168do
8169 IFS=$as_save_IFS
8170 test -z "$as_dir" && as_dir=.
cd9a469c 8171 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8173 ac_cv_prog_RUNTEST="$ac_prog"
cd9a469c 8174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8175 break 2
8176 fi
8177done
cd9a469c 8178 done
8179IFS=$as_save_IFS
b30fcfae 8180
f5aebe3e 8181fi
8182fi
b30fcfae 8183RUNTEST=$ac_cv_prog_RUNTEST
f5aebe3e 8184if test -n "$RUNTEST"; then
cd9a469c 8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8186$as_echo "$RUNTEST" >&6; }
f5aebe3e 8187else
cd9a469c 8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8189$as_echo "no" >&6; }
f5aebe3e 8190fi
71ab34df 8191
cd9a469c 8192
b30fcfae 8193 test -n "$RUNTEST" && break
f5aebe3e 8194done
8195test -n "$RUNTEST" || RUNTEST="runtest"
71ab34df 8196
f5aebe3e 8197case " $configdirs " in
8198 *" dejagnu "*)
8d365775 8199 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
f5aebe3e 8200 ;;
8201esac
71ab34df 8202
8203
71ab34df 8204# Host tools.
bb612911 8205ncn_tool_prefix=
8206test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8207ncn_target_tool_prefix=
8208test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8209
95a05732 8210
8211
8212if test -n "$AR"; then
8213 ac_cv_prog_AR=$AR
8214elif test -n "$ac_cv_prog_AR"; then
8215 AR=$ac_cv_prog_AR
8216fi
8217
8218if test -n "$ac_cv_prog_AR"; then
8219 for ncn_progname in ar; do
8220 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8221set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8223$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8224if ${ac_cv_prog_AR+:} false; then :
cd9a469c 8225 $as_echo_n "(cached) " >&6
95a05732 8226else
8227 if test -n "$AR"; then
8228 ac_cv_prog_AR="$AR" # Let the user override the test.
8229else
8230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8231for as_dir in $PATH
8232do
8233 IFS=$as_save_IFS
8234 test -z "$as_dir" && as_dir=.
cd9a469c 8235 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8237 ac_cv_prog_AR="${ncn_progname}"
cd9a469c 8238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8239 break 2
8240 fi
8241done
cd9a469c 8242 done
8243IFS=$as_save_IFS
95a05732 8244
8245fi
8246fi
8247AR=$ac_cv_prog_AR
8248if test -n "$AR"; then
cd9a469c 8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8250$as_echo "$AR" >&6; }
95a05732 8251else
cd9a469c 8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8253$as_echo "no" >&6; }
95a05732 8254fi
8255
cd9a469c 8256
95a05732 8257 done
8258fi
8259
8260for ncn_progname in ar; do
768691b5 8261 if test -n "$ncn_tool_prefix"; then
8262 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8263set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8265$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8266if ${ac_cv_prog_AR+:} false; then :
cd9a469c 8267 $as_echo_n "(cached) " >&6
bb612911 8268else
8269 if test -n "$AR"; then
8270 ac_cv_prog_AR="$AR" # Let the user override the test.
8271else
b30fcfae 8272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8273for as_dir in $PATH
8274do
8275 IFS=$as_save_IFS
8276 test -z "$as_dir" && as_dir=.
cd9a469c 8277 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8279 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8281 break 2
8282 fi
8283done
cd9a469c 8284 done
8285IFS=$as_save_IFS
b30fcfae 8286
bb612911 8287fi
8288fi
b30fcfae 8289AR=$ac_cv_prog_AR
bb612911 8290if test -n "$AR"; then
cd9a469c 8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8292$as_echo "$AR" >&6; }
bb612911 8293else
cd9a469c 8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8295$as_echo "no" >&6; }
bb612911 8296fi
8297
cd9a469c 8298
768691b5 8299 fi
8300 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8301 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8302set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8304$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8305if ${ac_cv_prog_AR+:} false; then :
cd9a469c 8306 $as_echo_n "(cached) " >&6
bb612911 8307else
768691b5 8308 if test -n "$AR"; then
ae48753c 8309 ac_cv_prog_AR="$AR" # Let the user override the test.
8310else
b30fcfae 8311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8312for as_dir in $PATH
8313do
8314 IFS=$as_save_IFS
8315 test -z "$as_dir" && as_dir=.
cd9a469c 8316 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8318 ac_cv_prog_AR="${ncn_progname}"
cd9a469c 8319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8320 break 2
8321 fi
8322done
cd9a469c 8323 done
8324IFS=$as_save_IFS
b30fcfae 8325
bb612911 8326fi
8327fi
b30fcfae 8328AR=$ac_cv_prog_AR
768691b5 8329if test -n "$AR"; then
cd9a469c 8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8331$as_echo "$AR" >&6; }
bb612911 8332else
cd9a469c 8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8334$as_echo "no" >&6; }
bb612911 8335fi
b30fcfae 8336
cd9a469c 8337
768691b5 8338 fi
8339 test -n "$ac_cv_prog_AR" && break
8340done
8341
8342if test -z "$ac_cv_prog_AR" ; then
8343 set dummy ar
8344 if test $build = $host ; then
8345 AR="$2"
bb612911 8346 else
768691b5 8347 AR="${ncn_tool_prefix}$2"
bb612911 8348 fi
bb612911 8349fi
8350
95a05732 8351
8352
8353if test -n "$AS"; then
8354 ac_cv_prog_AS=$AS
8355elif test -n "$ac_cv_prog_AS"; then
8356 AS=$ac_cv_prog_AS
8357fi
8358
8359if test -n "$ac_cv_prog_AS"; then
8360 for ncn_progname in as; do
8361 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8362set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8364$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8365if ${ac_cv_prog_AS+:} false; then :
cd9a469c 8366 $as_echo_n "(cached) " >&6
95a05732 8367else
8368 if test -n "$AS"; then
8369 ac_cv_prog_AS="$AS" # Let the user override the test.
8370else
8371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8372for as_dir in $PATH
8373do
8374 IFS=$as_save_IFS
8375 test -z "$as_dir" && as_dir=.
cd9a469c 8376 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8378 ac_cv_prog_AS="${ncn_progname}"
cd9a469c 8379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8380 break 2
8381 fi
8382done
cd9a469c 8383 done
8384IFS=$as_save_IFS
95a05732 8385
8386fi
8387fi
8388AS=$ac_cv_prog_AS
8389if test -n "$AS"; then
cd9a469c 8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8391$as_echo "$AS" >&6; }
95a05732 8392else
cd9a469c 8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394$as_echo "no" >&6; }
95a05732 8395fi
8396
cd9a469c 8397
95a05732 8398 done
8399fi
8400
8401for ncn_progname in as; do
768691b5 8402 if test -n "$ncn_tool_prefix"; then
8403 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8404set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8406$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8407if ${ac_cv_prog_AS+:} false; then :
cd9a469c 8408 $as_echo_n "(cached) " >&6
bb612911 8409else
8410 if test -n "$AS"; then
8411 ac_cv_prog_AS="$AS" # Let the user override the test.
a83ffacf 8412else
b30fcfae 8413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8414for as_dir in $PATH
8415do
8416 IFS=$as_save_IFS
8417 test -z "$as_dir" && as_dir=.
cd9a469c 8418 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8420 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8422 break 2
8423 fi
8424done
cd9a469c 8425 done
8426IFS=$as_save_IFS
b30fcfae 8427
bb612911 8428fi
8429fi
b30fcfae 8430AS=$ac_cv_prog_AS
bb612911 8431if test -n "$AS"; then
cd9a469c 8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8433$as_echo "$AS" >&6; }
bb612911 8434else
cd9a469c 8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8436$as_echo "no" >&6; }
bb612911 8437fi
8438
cd9a469c 8439
768691b5 8440 fi
8441 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8442 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8443set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8445$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8446if ${ac_cv_prog_AS+:} false; then :
cd9a469c 8447 $as_echo_n "(cached) " >&6
bb612911 8448else
768691b5 8449 if test -n "$AS"; then
8450 ac_cv_prog_AS="$AS" # Let the user override the test.
bb612911 8451else
b30fcfae 8452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8453for as_dir in $PATH
8454do
8455 IFS=$as_save_IFS
8456 test -z "$as_dir" && as_dir=.
cd9a469c 8457 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8459 ac_cv_prog_AS="${ncn_progname}"
cd9a469c 8460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8461 break 2
8462 fi
8463done
cd9a469c 8464 done
8465IFS=$as_save_IFS
b30fcfae 8466
bb612911 8467fi
8468fi
b30fcfae 8469AS=$ac_cv_prog_AS
768691b5 8470if test -n "$AS"; then
cd9a469c 8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8472$as_echo "$AS" >&6; }
bb612911 8473else
cd9a469c 8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8475$as_echo "no" >&6; }
bb612911 8476fi
b30fcfae 8477
cd9a469c 8478
768691b5 8479 fi
8480 test -n "$ac_cv_prog_AS" && break
8481done
8482
8483if test -z "$ac_cv_prog_AS" ; then
8484 set dummy as
8485 if test $build = $host ; then
8486 AS="$2"
bb612911 8487 else
768691b5 8488 AS="${ncn_tool_prefix}$2"
bb612911 8489 fi
bb612911 8490fi
8491
95a05732 8492
8493
8494if test -n "$DLLTOOL"; then
8495 ac_cv_prog_DLLTOOL=$DLLTOOL
8496elif test -n "$ac_cv_prog_DLLTOOL"; then
8497 DLLTOOL=$ac_cv_prog_DLLTOOL
8498fi
8499
8500if test -n "$ac_cv_prog_DLLTOOL"; then
8501 for ncn_progname in dlltool; do
8502 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8503set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8505$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8506if ${ac_cv_prog_DLLTOOL+:} false; then :
cd9a469c 8507 $as_echo_n "(cached) " >&6
95a05732 8508else
8509 if test -n "$DLLTOOL"; then
8510 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8511else
8512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8513for as_dir in $PATH
8514do
8515 IFS=$as_save_IFS
8516 test -z "$as_dir" && as_dir=.
cd9a469c 8517 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8519 ac_cv_prog_DLLTOOL="${ncn_progname}"
cd9a469c 8520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8521 break 2
8522 fi
8523done
cd9a469c 8524 done
8525IFS=$as_save_IFS
95a05732 8526
8527fi
8528fi
8529DLLTOOL=$ac_cv_prog_DLLTOOL
8530if test -n "$DLLTOOL"; then
cd9a469c 8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8532$as_echo "$DLLTOOL" >&6; }
95a05732 8533else
cd9a469c 8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8535$as_echo "no" >&6; }
95a05732 8536fi
8537
cd9a469c 8538
95a05732 8539 done
8540fi
8541
8542for ncn_progname in dlltool; do
768691b5 8543 if test -n "$ncn_tool_prefix"; then
8544 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8545set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8547$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8548if ${ac_cv_prog_DLLTOOL+:} false; then :
cd9a469c 8549 $as_echo_n "(cached) " >&6
bb612911 8550else
8551 if test -n "$DLLTOOL"; then
8552 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8553else
b30fcfae 8554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8555for as_dir in $PATH
8556do
8557 IFS=$as_save_IFS
8558 test -z "$as_dir" && as_dir=.
cd9a469c 8559 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8561 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8563 break 2
8564 fi
8565done
cd9a469c 8566 done
8567IFS=$as_save_IFS
b30fcfae 8568
bb612911 8569fi
8570fi
b30fcfae 8571DLLTOOL=$ac_cv_prog_DLLTOOL
bb612911 8572if test -n "$DLLTOOL"; then
cd9a469c 8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8574$as_echo "$DLLTOOL" >&6; }
bb612911 8575else
cd9a469c 8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8577$as_echo "no" >&6; }
bb612911 8578fi
8579
cd9a469c 8580
768691b5 8581 fi
8582 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8583 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8584set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8586$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8587if ${ac_cv_prog_DLLTOOL+:} false; then :
cd9a469c 8588 $as_echo_n "(cached) " >&6
bb612911 8589else
768691b5 8590 if test -n "$DLLTOOL"; then
8591 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
bb612911 8592else
b30fcfae 8593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8594for as_dir in $PATH
8595do
8596 IFS=$as_save_IFS
8597 test -z "$as_dir" && as_dir=.
cd9a469c 8598 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8600 ac_cv_prog_DLLTOOL="${ncn_progname}"
cd9a469c 8601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8602 break 2
8603 fi
8604done
cd9a469c 8605 done
8606IFS=$as_save_IFS
b30fcfae 8607
bb612911 8608fi
8609fi
b30fcfae 8610DLLTOOL=$ac_cv_prog_DLLTOOL
768691b5 8611if test -n "$DLLTOOL"; then
cd9a469c 8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8613$as_echo "$DLLTOOL" >&6; }
bb612911 8614else
cd9a469c 8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8616$as_echo "no" >&6; }
bb612911 8617fi
b30fcfae 8618
cd9a469c 8619
768691b5 8620 fi
8621 test -n "$ac_cv_prog_DLLTOOL" && break
8622done
8623
8624if test -z "$ac_cv_prog_DLLTOOL" ; then
8625 set dummy dlltool
8626 if test $build = $host ; then
8627 DLLTOOL="$2"
bb612911 8628 else
768691b5 8629 DLLTOOL="${ncn_tool_prefix}$2"
bb612911 8630 fi
bb612911 8631fi
8632
95a05732 8633
8634
8635if test -n "$LD"; then
8636 ac_cv_prog_LD=$LD
8637elif test -n "$ac_cv_prog_LD"; then
8638 LD=$ac_cv_prog_LD
8639fi
8640
8641if test -n "$ac_cv_prog_LD"; then
8642 for ncn_progname in ld; do
8643 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8644set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8646$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8647if ${ac_cv_prog_LD+:} false; then :
cd9a469c 8648 $as_echo_n "(cached) " >&6
95a05732 8649else
8650 if test -n "$LD"; then
8651 ac_cv_prog_LD="$LD" # Let the user override the test.
8652else
8653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8654for as_dir in $PATH
8655do
8656 IFS=$as_save_IFS
8657 test -z "$as_dir" && as_dir=.
cd9a469c 8658 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8660 ac_cv_prog_LD="${ncn_progname}"
cd9a469c 8661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8662 break 2
8663 fi
8664done
cd9a469c 8665 done
8666IFS=$as_save_IFS
95a05732 8667
8668fi
8669fi
8670LD=$ac_cv_prog_LD
8671if test -n "$LD"; then
cd9a469c 8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8673$as_echo "$LD" >&6; }
95a05732 8674else
cd9a469c 8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8676$as_echo "no" >&6; }
95a05732 8677fi
8678
cd9a469c 8679
95a05732 8680 done
8681fi
8682
8683for ncn_progname in ld; do
768691b5 8684 if test -n "$ncn_tool_prefix"; then
8685 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8686set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8688$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8689if ${ac_cv_prog_LD+:} false; then :
cd9a469c 8690 $as_echo_n "(cached) " >&6
bb612911 8691else
8692 if test -n "$LD"; then
8693 ac_cv_prog_LD="$LD" # Let the user override the test.
8694else
b30fcfae 8695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8696for as_dir in $PATH
8697do
8698 IFS=$as_save_IFS
8699 test -z "$as_dir" && as_dir=.
cd9a469c 8700 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8702 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8704 break 2
8705 fi
8706done
cd9a469c 8707 done
8708IFS=$as_save_IFS
b30fcfae 8709
bb612911 8710fi
8711fi
b30fcfae 8712LD=$ac_cv_prog_LD
bb612911 8713if test -n "$LD"; then
cd9a469c 8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8715$as_echo "$LD" >&6; }
bb612911 8716else
cd9a469c 8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8718$as_echo "no" >&6; }
bb612911 8719fi
8720
cd9a469c 8721
768691b5 8722 fi
8723 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8724 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8725set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8727$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8728if ${ac_cv_prog_LD+:} false; then :
cd9a469c 8729 $as_echo_n "(cached) " >&6
bb612911 8730else
768691b5 8731 if test -n "$LD"; then
8732 ac_cv_prog_LD="$LD" # Let the user override the test.
7172be51 8733else
b30fcfae 8734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8735for as_dir in $PATH
8736do
8737 IFS=$as_save_IFS
8738 test -z "$as_dir" && as_dir=.
cd9a469c 8739 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8741 ac_cv_prog_LD="${ncn_progname}"
cd9a469c 8742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8743 break 2
8744 fi
8745done
cd9a469c 8746 done
8747IFS=$as_save_IFS
b30fcfae 8748
bb612911 8749fi
8750fi
b30fcfae 8751LD=$ac_cv_prog_LD
768691b5 8752if test -n "$LD"; then
cd9a469c 8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8754$as_echo "$LD" >&6; }
bb612911 8755else
cd9a469c 8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8757$as_echo "no" >&6; }
bb612911 8758fi
b30fcfae 8759
cd9a469c 8760
768691b5 8761 fi
8762 test -n "$ac_cv_prog_LD" && break
8763done
8764
8765if test -z "$ac_cv_prog_LD" ; then
8766 set dummy ld
8767 if test $build = $host ; then
8768 LD="$2"
bb612911 8769 else
768691b5 8770 LD="${ncn_tool_prefix}$2"
bb612911 8771 fi
bb612911 8772fi
8773
95a05732 8774
8775
8776if test -n "$LIPO"; then
8777 ac_cv_prog_LIPO=$LIPO
8778elif test -n "$ac_cv_prog_LIPO"; then
8779 LIPO=$ac_cv_prog_LIPO
8780fi
8781
8782if test -n "$ac_cv_prog_LIPO"; then
8783 for ncn_progname in lipo; do
8784 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8785set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8787$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8788if ${ac_cv_prog_LIPO+:} false; then :
cd9a469c 8789 $as_echo_n "(cached) " >&6
95a05732 8790else
8791 if test -n "$LIPO"; then
8792 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8793else
8794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8795for as_dir in $PATH
8796do
8797 IFS=$as_save_IFS
8798 test -z "$as_dir" && as_dir=.
cd9a469c 8799 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8801 ac_cv_prog_LIPO="${ncn_progname}"
cd9a469c 8802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8803 break 2
8804 fi
8805done
cd9a469c 8806 done
8807IFS=$as_save_IFS
95a05732 8808
8809fi
8810fi
8811LIPO=$ac_cv_prog_LIPO
8812if test -n "$LIPO"; then
cd9a469c 8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8814$as_echo "$LIPO" >&6; }
95a05732 8815else
cd9a469c 8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8817$as_echo "no" >&6; }
95a05732 8818fi
8819
cd9a469c 8820
95a05732 8821 done
8822fi
8823
8824for ncn_progname in lipo; do
f5aebe3e 8825 if test -n "$ncn_tool_prefix"; then
8826 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8827set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8829$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8830if ${ac_cv_prog_LIPO+:} false; then :
cd9a469c 8831 $as_echo_n "(cached) " >&6
f5aebe3e 8832else
8833 if test -n "$LIPO"; then
8834 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8835else
b30fcfae 8836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8837for as_dir in $PATH
8838do
8839 IFS=$as_save_IFS
8840 test -z "$as_dir" && as_dir=.
cd9a469c 8841 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8843 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8845 break 2
8846 fi
8847done
cd9a469c 8848 done
8849IFS=$as_save_IFS
b30fcfae 8850
f5aebe3e 8851fi
8852fi
b30fcfae 8853LIPO=$ac_cv_prog_LIPO
f5aebe3e 8854if test -n "$LIPO"; then
cd9a469c 8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8856$as_echo "$LIPO" >&6; }
f5aebe3e 8857else
cd9a469c 8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8859$as_echo "no" >&6; }
f5aebe3e 8860fi
8861
cd9a469c 8862
f5aebe3e 8863 fi
8864 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8865 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8866set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8868$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8869if ${ac_cv_prog_LIPO+:} false; then :
cd9a469c 8870 $as_echo_n "(cached) " >&6
f5aebe3e 8871else
8872 if test -n "$LIPO"; then
8873 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8874else
b30fcfae 8875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8876for as_dir in $PATH
8877do
8878 IFS=$as_save_IFS
8879 test -z "$as_dir" && as_dir=.
cd9a469c 8880 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8882 ac_cv_prog_LIPO="${ncn_progname}"
cd9a469c 8883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8884 break 2
8885 fi
8886done
cd9a469c 8887 done
8888IFS=$as_save_IFS
b30fcfae 8889
f5aebe3e 8890fi
8891fi
b30fcfae 8892LIPO=$ac_cv_prog_LIPO
f5aebe3e 8893if test -n "$LIPO"; then
cd9a469c 8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8895$as_echo "$LIPO" >&6; }
f5aebe3e 8896else
cd9a469c 8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8898$as_echo "no" >&6; }
f5aebe3e 8899fi
b30fcfae 8900
cd9a469c 8901
f5aebe3e 8902 fi
8903 test -n "$ac_cv_prog_LIPO" && break
8904done
8905
8906if test -z "$ac_cv_prog_LIPO" ; then
8907 set dummy lipo
8908 if test $build = $host ; then
8909 LIPO="$2"
8910 else
8911 LIPO="${ncn_tool_prefix}$2"
8912 fi
8913fi
8914
95a05732 8915
8916
8917if test -n "$NM"; then
8918 ac_cv_prog_NM=$NM
8919elif test -n "$ac_cv_prog_NM"; then
8920 NM=$ac_cv_prog_NM
8921fi
8922
8923if test -n "$ac_cv_prog_NM"; then
8924 for ncn_progname in nm; do
8925 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8926set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8928$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8929if ${ac_cv_prog_NM+:} false; then :
cd9a469c 8930 $as_echo_n "(cached) " >&6
bb612911 8931else
8932 if test -n "$NM"; then
8933 ac_cv_prog_NM="$NM" # Let the user override the test.
8934else
b30fcfae 8935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8936for as_dir in $PATH
8937do
8938 IFS=$as_save_IFS
8939 test -z "$as_dir" && as_dir=.
cd9a469c 8940 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8942 ac_cv_prog_NM="${ncn_progname}"
cd9a469c 8943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8944 break 2
8945 fi
8946done
cd9a469c 8947 done
8948IFS=$as_save_IFS
b30fcfae 8949
bb612911 8950fi
8951fi
b30fcfae 8952NM=$ac_cv_prog_NM
bb612911 8953if test -n "$NM"; then
cd9a469c 8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8955$as_echo "$NM" >&6; }
bb612911 8956else
cd9a469c 8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8958$as_echo "no" >&6; }
bb612911 8959fi
8960
cd9a469c 8961
95a05732 8962 done
8963fi
8964
8965for ncn_progname in nm; do
8966 if test -n "$ncn_tool_prefix"; then
8967 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8968set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8970$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8971if ${ac_cv_prog_NM+:} false; then :
cd9a469c 8972 $as_echo_n "(cached) " >&6
bb612911 8973else
768691b5 8974 if test -n "$NM"; then
8975 ac_cv_prog_NM="$NM" # Let the user override the test.
bb612911 8976else
b30fcfae 8977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8978for as_dir in $PATH
8979do
8980 IFS=$as_save_IFS
8981 test -z "$as_dir" && as_dir=.
cd9a469c 8982 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8984 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8986 break 2
8987 fi
8988done
cd9a469c 8989 done
8990IFS=$as_save_IFS
b30fcfae 8991
bb612911 8992fi
8993fi
b30fcfae 8994NM=$ac_cv_prog_NM
768691b5 8995if test -n "$NM"; then
cd9a469c 8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8997$as_echo "$NM" >&6; }
bb612911 8998else
cd9a469c 8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9000$as_echo "no" >&6; }
bb612911 9001fi
b30fcfae 9002
cd9a469c 9003
768691b5 9004 fi
95a05732 9005 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9006 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9007set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9009$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9010if ${ac_cv_prog_NM+:} false; then :
cd9a469c 9011 $as_echo_n "(cached) " >&6
95a05732 9012else
9013 if test -n "$NM"; then
9014 ac_cv_prog_NM="$NM" # Let the user override the test.
9015else
9016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9017for as_dir in $PATH
9018do
9019 IFS=$as_save_IFS
9020 test -z "$as_dir" && as_dir=.
cd9a469c 9021 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 9023 ac_cv_prog_NM="${ncn_progname}"
cd9a469c 9024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 9025 break 2
9026 fi
9027done
cd9a469c 9028 done
9029IFS=$as_save_IFS
95a05732 9030
9031fi
9032fi
9033NM=$ac_cv_prog_NM
9034if test -n "$NM"; then
cd9a469c 9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9036$as_echo "$NM" >&6; }
95a05732 9037else
cd9a469c 9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9039$as_echo "no" >&6; }
95a05732 9040fi
9041
cd9a469c 9042
95a05732 9043 fi
9044 test -n "$ac_cv_prog_NM" && break
9045done
9046
9047if test -z "$ac_cv_prog_NM" ; then
9048 set dummy nm
9049 if test $build = $host ; then
9050 NM="$2"
9051 else
9052 NM="${ncn_tool_prefix}$2"
9053 fi
9054fi
9055
9056
9057
9058if test -n "$RANLIB"; then
9059 ac_cv_prog_RANLIB=$RANLIB
9060elif test -n "$ac_cv_prog_RANLIB"; then
9061 RANLIB=$ac_cv_prog_RANLIB
9062fi
9063
9064if test -n "$ac_cv_prog_RANLIB"; then
9065 for ncn_progname in ranlib; do
9066 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9067set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9069$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9070if ${ac_cv_prog_RANLIB+:} false; then :
cd9a469c 9071 $as_echo_n "(cached) " >&6
95a05732 9072else
9073 if test -n "$RANLIB"; then
9074 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9075else
9076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9077for as_dir in $PATH
9078do
9079 IFS=$as_save_IFS
9080 test -z "$as_dir" && as_dir=.
cd9a469c 9081 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 9083 ac_cv_prog_RANLIB="${ncn_progname}"
cd9a469c 9084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 9085 break 2
9086 fi
9087done
cd9a469c 9088 done
9089IFS=$as_save_IFS
95a05732 9090
9091fi
9092fi
9093RANLIB=$ac_cv_prog_RANLIB
9094if test -n "$RANLIB"; then
cd9a469c 9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9096$as_echo "$RANLIB" >&6; }
95a05732 9097else
cd9a469c 9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9099$as_echo "no" >&6; }
95a05732 9100fi
9101
cd9a469c 9102
95a05732 9103 done
9104fi
bb612911 9105
95a05732 9106for ncn_progname in ranlib; do
768691b5 9107 if test -n "$ncn_tool_prefix"; then
9108 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9109set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9111$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9112if ${ac_cv_prog_RANLIB+:} false; then :
cd9a469c 9113 $as_echo_n "(cached) " >&6
bb612911 9114else
9115 if test -n "$RANLIB"; then
9116 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9117else
b30fcfae 9118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9119for as_dir in $PATH
9120do
9121 IFS=$as_save_IFS
9122 test -z "$as_dir" && as_dir=.
cd9a469c 9123 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9125 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 9126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9127 break 2
9128 fi
9129done
cd9a469c 9130 done
9131IFS=$as_save_IFS
b30fcfae 9132
bb612911 9133fi
9134fi
b30fcfae 9135RANLIB=$ac_cv_prog_RANLIB
bb612911 9136if test -n "$RANLIB"; then
cd9a469c 9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9138$as_echo "$RANLIB" >&6; }
bb612911 9139else
cd9a469c 9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9141$as_echo "no" >&6; }
bb612911 9142fi
9143
cd9a469c 9144
768691b5 9145 fi
9146 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9147 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9148set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9150$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9151if ${ac_cv_prog_RANLIB+:} false; then :
cd9a469c 9152 $as_echo_n "(cached) " >&6
bb612911 9153else
768691b5 9154 if test -n "$RANLIB"; then
9155 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
bb612911 9156else
b30fcfae 9157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9158for as_dir in $PATH
9159do
9160 IFS=$as_save_IFS
9161 test -z "$as_dir" && as_dir=.
cd9a469c 9162 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9164 ac_cv_prog_RANLIB="${ncn_progname}"
cd9a469c 9165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9166 break 2
9167 fi
9168done
cd9a469c 9169 done
9170IFS=$as_save_IFS
b30fcfae 9171
bb612911 9172fi
9173fi
b30fcfae 9174RANLIB=$ac_cv_prog_RANLIB
768691b5 9175if test -n "$RANLIB"; then
cd9a469c 9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9177$as_echo "$RANLIB" >&6; }
bb612911 9178else
cd9a469c 9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9180$as_echo "no" >&6; }
bb612911 9181fi
b30fcfae 9182
cd9a469c 9183
bb612911 9184 fi
768691b5 9185 test -n "$ac_cv_prog_RANLIB" && break
9186done
9187
9188if test -z "$ac_cv_prog_RANLIB" ; then
68645a6b 9189 RANLIB="true"
bb612911 9190fi
9191
95a05732 9192
9193
9194if test -n "$STRIP"; then
9195 ac_cv_prog_STRIP=$STRIP
9196elif test -n "$ac_cv_prog_STRIP"; then
9197 STRIP=$ac_cv_prog_STRIP
9198fi
9199
9200if test -n "$ac_cv_prog_STRIP"; then
9201 for ncn_progname in strip; do
9202 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9203set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9205$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9206if ${ac_cv_prog_STRIP+:} false; then :
cd9a469c 9207 $as_echo_n "(cached) " >&6
95a05732 9208else
9209 if test -n "$STRIP"; then
9210 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9211else
9212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9213for as_dir in $PATH
9214do
9215 IFS=$as_save_IFS
9216 test -z "$as_dir" && as_dir=.
cd9a469c 9217 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 9219 ac_cv_prog_STRIP="${ncn_progname}"
cd9a469c 9220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 9221 break 2
9222 fi
9223done
cd9a469c 9224 done
9225IFS=$as_save_IFS
95a05732 9226
9227fi
9228fi
9229STRIP=$ac_cv_prog_STRIP
9230if test -n "$STRIP"; then
cd9a469c 9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9232$as_echo "$STRIP" >&6; }
95a05732 9233else
cd9a469c 9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9235$as_echo "no" >&6; }
95a05732 9236fi
9237
cd9a469c 9238
95a05732 9239 done
9240fi
9241
9242for ncn_progname in strip; do
f5aebe3e 9243 if test -n "$ncn_tool_prefix"; then
9244 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9245set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9247$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9248if ${ac_cv_prog_STRIP+:} false; then :
cd9a469c 9249 $as_echo_n "(cached) " >&6
f5aebe3e 9250else
9251 if test -n "$STRIP"; then
9252 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9253else
b30fcfae 9254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9255for as_dir in $PATH
9256do
9257 IFS=$as_save_IFS
9258 test -z "$as_dir" && as_dir=.
cd9a469c 9259 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9261 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 9262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9263 break 2
9264 fi
9265done
cd9a469c 9266 done
9267IFS=$as_save_IFS
b30fcfae 9268
f5aebe3e 9269fi
9270fi
b30fcfae 9271STRIP=$ac_cv_prog_STRIP
f5aebe3e 9272if test -n "$STRIP"; then
cd9a469c 9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9274$as_echo "$STRIP" >&6; }
f5aebe3e 9275else
cd9a469c 9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9277$as_echo "no" >&6; }
f5aebe3e 9278fi
9279
cd9a469c 9280
f5aebe3e 9281 fi
9282 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9283 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9284set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9286$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9287if ${ac_cv_prog_STRIP+:} false; then :
cd9a469c 9288 $as_echo_n "(cached) " >&6
f5aebe3e 9289else
9290 if test -n "$STRIP"; then
9291 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9292else
b30fcfae 9293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9294for as_dir in $PATH
9295do
9296 IFS=$as_save_IFS
9297 test -z "$as_dir" && as_dir=.
cd9a469c 9298 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9300 ac_cv_prog_STRIP="${ncn_progname}"
cd9a469c 9301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9302 break 2
9303 fi
9304done
cd9a469c 9305 done
9306IFS=$as_save_IFS
b30fcfae 9307
f5aebe3e 9308fi
9309fi
b30fcfae 9310STRIP=$ac_cv_prog_STRIP
f5aebe3e 9311if test -n "$STRIP"; then
cd9a469c 9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9313$as_echo "$STRIP" >&6; }
f5aebe3e 9314else
cd9a469c 9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9316$as_echo "no" >&6; }
f5aebe3e 9317fi
b30fcfae 9318
cd9a469c 9319
f5aebe3e 9320 fi
9321 test -n "$ac_cv_prog_STRIP" && break
9322done
9323
9324if test -z "$ac_cv_prog_STRIP" ; then
68645a6b 9325 STRIP="true"
f5aebe3e 9326fi
9327
95a05732 9328
9329
9330if test -n "$WINDRES"; then
9331 ac_cv_prog_WINDRES=$WINDRES
9332elif test -n "$ac_cv_prog_WINDRES"; then
9333 WINDRES=$ac_cv_prog_WINDRES
9334fi
9335
9336if test -n "$ac_cv_prog_WINDRES"; then
9337 for ncn_progname in windres; do
9338 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9339set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9341$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9342if ${ac_cv_prog_WINDRES+:} false; then :
cd9a469c 9343 $as_echo_n "(cached) " >&6
95a05732 9344else
9345 if test -n "$WINDRES"; then
9346 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9347else
9348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9349for as_dir in $PATH
9350do
9351 IFS=$as_save_IFS
9352 test -z "$as_dir" && as_dir=.
cd9a469c 9353 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 9355 ac_cv_prog_WINDRES="${ncn_progname}"
cd9a469c 9356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 9357 break 2
9358 fi
9359done
cd9a469c 9360 done
9361IFS=$as_save_IFS
95a05732 9362
9363fi
9364fi
9365WINDRES=$ac_cv_prog_WINDRES
9366if test -n "$WINDRES"; then
cd9a469c 9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9368$as_echo "$WINDRES" >&6; }
95a05732 9369else
cd9a469c 9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9371$as_echo "no" >&6; }
95a05732 9372fi
9373
cd9a469c 9374
95a05732 9375 done
9376fi
9377
9378for ncn_progname in windres; do
768691b5 9379 if test -n "$ncn_tool_prefix"; then
9380 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9381set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9383$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9384if ${ac_cv_prog_WINDRES+:} false; then :
cd9a469c 9385 $as_echo_n "(cached) " >&6
bb612911 9386else
9387 if test -n "$WINDRES"; then
9388 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9389else
b30fcfae 9390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9391for as_dir in $PATH
9392do
9393 IFS=$as_save_IFS
9394 test -z "$as_dir" && as_dir=.
cd9a469c 9395 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9397 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 9398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9399 break 2
9400 fi
9401done
cd9a469c 9402 done
9403IFS=$as_save_IFS
b30fcfae 9404
bb612911 9405fi
9406fi
b30fcfae 9407WINDRES=$ac_cv_prog_WINDRES
bb612911 9408if test -n "$WINDRES"; then
cd9a469c 9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9410$as_echo "$WINDRES" >&6; }
bb612911 9411else
cd9a469c 9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9413$as_echo "no" >&6; }
bb612911 9414fi
9415
cd9a469c 9416
768691b5 9417 fi
9418 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9419 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9420set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9422$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9423if ${ac_cv_prog_WINDRES+:} false; then :
cd9a469c 9424 $as_echo_n "(cached) " >&6
bb612911 9425else
768691b5 9426 if test -n "$WINDRES"; then
9427 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
bb612911 9428else
b30fcfae 9429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9430for as_dir in $PATH
9431do
9432 IFS=$as_save_IFS
9433 test -z "$as_dir" && as_dir=.
cd9a469c 9434 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9436 ac_cv_prog_WINDRES="${ncn_progname}"
cd9a469c 9437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9438 break 2
9439 fi
9440done
cd9a469c 9441 done
9442IFS=$as_save_IFS
b30fcfae 9443
bb612911 9444fi
9445fi
b30fcfae 9446WINDRES=$ac_cv_prog_WINDRES
768691b5 9447if test -n "$WINDRES"; then
cd9a469c 9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9449$as_echo "$WINDRES" >&6; }
bb612911 9450else
cd9a469c 9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9452$as_echo "no" >&6; }
bb612911 9453fi
b30fcfae 9454
cd9a469c 9455
768691b5 9456 fi
9457 test -n "$ac_cv_prog_WINDRES" && break
9458done
9459
9460if test -z "$ac_cv_prog_WINDRES" ; then
9461 set dummy windres
9462 if test $build = $host ; then
9463 WINDRES="$2"
bb612911 9464 else
768691b5 9465 WINDRES="${ncn_tool_prefix}$2"
bb612911 9466 fi
bb612911 9467fi
9468
95a05732 9469
9470
75d6a0a9 9471if test -n "$WINDMC"; then
9472 ac_cv_prog_WINDMC=$WINDMC
9473elif test -n "$ac_cv_prog_WINDMC"; then
9474 WINDMC=$ac_cv_prog_WINDMC
9475fi
9476
9477if test -n "$ac_cv_prog_WINDMC"; then
9478 for ncn_progname in windmc; do
9479 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9480set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9482$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9483if ${ac_cv_prog_WINDMC+:} false; then :
cd9a469c 9484 $as_echo_n "(cached) " >&6
75d6a0a9 9485else
9486 if test -n "$WINDMC"; then
9487 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9488else
9489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9490for as_dir in $PATH
9491do
9492 IFS=$as_save_IFS
9493 test -z "$as_dir" && as_dir=.
cd9a469c 9494 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
75d6a0a9 9496 ac_cv_prog_WINDMC="${ncn_progname}"
cd9a469c 9497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 9498 break 2
9499 fi
9500done
cd9a469c 9501 done
9502IFS=$as_save_IFS
75d6a0a9 9503
9504fi
9505fi
9506WINDMC=$ac_cv_prog_WINDMC
9507if test -n "$WINDMC"; then
cd9a469c 9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9509$as_echo "$WINDMC" >&6; }
75d6a0a9 9510else
cd9a469c 9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9512$as_echo "no" >&6; }
75d6a0a9 9513fi
9514
cd9a469c 9515
75d6a0a9 9516 done
9517fi
9518
9519for ncn_progname in windmc; do
9520 if test -n "$ncn_tool_prefix"; then
9521 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9522set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9524$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9525if ${ac_cv_prog_WINDMC+:} false; then :
cd9a469c 9526 $as_echo_n "(cached) " >&6
75d6a0a9 9527else
9528 if test -n "$WINDMC"; then
9529 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9530else
9531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9532for as_dir in $PATH
9533do
9534 IFS=$as_save_IFS
9535 test -z "$as_dir" && as_dir=.
cd9a469c 9536 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
75d6a0a9 9538 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 9539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 9540 break 2
9541 fi
9542done
cd9a469c 9543 done
9544IFS=$as_save_IFS
75d6a0a9 9545
9546fi
9547fi
9548WINDMC=$ac_cv_prog_WINDMC
9549if test -n "$WINDMC"; then
cd9a469c 9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9551$as_echo "$WINDMC" >&6; }
75d6a0a9 9552else
cd9a469c 9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9554$as_echo "no" >&6; }
75d6a0a9 9555fi
9556
cd9a469c 9557
75d6a0a9 9558 fi
9559 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9560 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9561set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9563$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9564if ${ac_cv_prog_WINDMC+:} false; then :
cd9a469c 9565 $as_echo_n "(cached) " >&6
75d6a0a9 9566else
9567 if test -n "$WINDMC"; then
9568 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9569else
9570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9571for as_dir in $PATH
9572do
9573 IFS=$as_save_IFS
9574 test -z "$as_dir" && as_dir=.
cd9a469c 9575 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
75d6a0a9 9577 ac_cv_prog_WINDMC="${ncn_progname}"
cd9a469c 9578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 9579 break 2
9580 fi
9581done
cd9a469c 9582 done
9583IFS=$as_save_IFS
75d6a0a9 9584
9585fi
9586fi
9587WINDMC=$ac_cv_prog_WINDMC
9588if test -n "$WINDMC"; then
cd9a469c 9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9590$as_echo "$WINDMC" >&6; }
75d6a0a9 9591else
cd9a469c 9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9593$as_echo "no" >&6; }
75d6a0a9 9594fi
9595
cd9a469c 9596
75d6a0a9 9597 fi
9598 test -n "$ac_cv_prog_WINDMC" && break
9599done
9600
9601if test -z "$ac_cv_prog_WINDMC" ; then
9602 set dummy windmc
9603 if test $build = $host ; then
9604 WINDMC="$2"
9605 else
9606 WINDMC="${ncn_tool_prefix}$2"
9607 fi
9608fi
9609
9610
9611
95a05732 9612if test -n "$OBJCOPY"; then
9613 ac_cv_prog_OBJCOPY=$OBJCOPY
9614elif test -n "$ac_cv_prog_OBJCOPY"; then
9615 OBJCOPY=$ac_cv_prog_OBJCOPY
9616fi
9617
9618if test -n "$ac_cv_prog_OBJCOPY"; then
9619 for ncn_progname in objcopy; do
9620 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9621set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9623$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9624if ${ac_cv_prog_OBJCOPY+:} false; then :
cd9a469c 9625 $as_echo_n "(cached) " >&6
95a05732 9626else
9627 if test -n "$OBJCOPY"; then
9628 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9629else
9630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9631for as_dir in $PATH
9632do
9633 IFS=$as_save_IFS
9634 test -z "$as_dir" && as_dir=.
cd9a469c 9635 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 9637 ac_cv_prog_OBJCOPY="${ncn_progname}"
cd9a469c 9638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 9639 break 2
9640 fi
9641done
cd9a469c 9642 done
9643IFS=$as_save_IFS
95a05732 9644
9645fi
9646fi
9647OBJCOPY=$ac_cv_prog_OBJCOPY
9648if test -n "$OBJCOPY"; then
cd9a469c 9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9650$as_echo "$OBJCOPY" >&6; }
95a05732 9651else
cd9a469c 9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9653$as_echo "no" >&6; }
95a05732 9654fi
9655
cd9a469c 9656
95a05732 9657 done
9658fi
9659
9660for ncn_progname in objcopy; do
768691b5 9661 if test -n "$ncn_tool_prefix"; then
9662 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9663set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9665$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9666if ${ac_cv_prog_OBJCOPY+:} false; then :
cd9a469c 9667 $as_echo_n "(cached) " >&6
bb612911 9668else
9669 if test -n "$OBJCOPY"; then
9670 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9671else
b30fcfae 9672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9673for as_dir in $PATH
9674do
9675 IFS=$as_save_IFS
9676 test -z "$as_dir" && as_dir=.
cd9a469c 9677 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9679 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 9680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9681 break 2
9682 fi
9683done
cd9a469c 9684 done
9685IFS=$as_save_IFS
b30fcfae 9686
bb612911 9687fi
9688fi
b30fcfae 9689OBJCOPY=$ac_cv_prog_OBJCOPY
bb612911 9690if test -n "$OBJCOPY"; then
cd9a469c 9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9692$as_echo "$OBJCOPY" >&6; }
bb612911 9693else
cd9a469c 9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9695$as_echo "no" >&6; }
bb612911 9696fi
9697
cd9a469c 9698
768691b5 9699 fi
9700 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9701 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9702set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9704$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9705if ${ac_cv_prog_OBJCOPY+:} false; then :
cd9a469c 9706 $as_echo_n "(cached) " >&6
bb612911 9707else
768691b5 9708 if test -n "$OBJCOPY"; then
9709 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
bb612911 9710else
b30fcfae 9711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9712for as_dir in $PATH
9713do
9714 IFS=$as_save_IFS
9715 test -z "$as_dir" && as_dir=.
cd9a469c 9716 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9718 ac_cv_prog_OBJCOPY="${ncn_progname}"
cd9a469c 9719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9720 break 2
9721 fi
9722done
cd9a469c 9723 done
9724IFS=$as_save_IFS
b30fcfae 9725
bb612911 9726fi
9727fi
b30fcfae 9728OBJCOPY=$ac_cv_prog_OBJCOPY
768691b5 9729if test -n "$OBJCOPY"; then
cd9a469c 9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9731$as_echo "$OBJCOPY" >&6; }
bb612911 9732else
cd9a469c 9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9734$as_echo "no" >&6; }
bb612911 9735fi
b30fcfae 9736
cd9a469c 9737
768691b5 9738 fi
9739 test -n "$ac_cv_prog_OBJCOPY" && break
9740done
9741
9742if test -z "$ac_cv_prog_OBJCOPY" ; then
9743 set dummy objcopy
9744 if test $build = $host ; then
9745 OBJCOPY="$2"
bb612911 9746 else
768691b5 9747 OBJCOPY="${ncn_tool_prefix}$2"
bb612911 9748 fi
bb612911 9749fi
9750
95a05732 9751
9752
9753if test -n "$OBJDUMP"; then
9754 ac_cv_prog_OBJDUMP=$OBJDUMP
9755elif test -n "$ac_cv_prog_OBJDUMP"; then
9756 OBJDUMP=$ac_cv_prog_OBJDUMP
9757fi
9758
9759if test -n "$ac_cv_prog_OBJDUMP"; then
9760 for ncn_progname in objdump; do
9761 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9762set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9764$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9765if ${ac_cv_prog_OBJDUMP+:} false; then :
cd9a469c 9766 $as_echo_n "(cached) " >&6
95a05732 9767else
9768 if test -n "$OBJDUMP"; then
9769 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9770else
9771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9772for as_dir in $PATH
9773do
9774 IFS=$as_save_IFS
9775 test -z "$as_dir" && as_dir=.
cd9a469c 9776 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 9778 ac_cv_prog_OBJDUMP="${ncn_progname}"
cd9a469c 9779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 9780 break 2
9781 fi
9782done
cd9a469c 9783 done
9784IFS=$as_save_IFS
95a05732 9785
9786fi
9787fi
9788OBJDUMP=$ac_cv_prog_OBJDUMP
9789if test -n "$OBJDUMP"; then
cd9a469c 9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9791$as_echo "$OBJDUMP" >&6; }
95a05732 9792else
cd9a469c 9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9794$as_echo "no" >&6; }
95a05732 9795fi
9796
cd9a469c 9797
95a05732 9798 done
9799fi
9800
9801for ncn_progname in objdump; do
768691b5 9802 if test -n "$ncn_tool_prefix"; then
9803 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9804set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9806$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9807if ${ac_cv_prog_OBJDUMP+:} false; then :
cd9a469c 9808 $as_echo_n "(cached) " >&6
bb612911 9809else
9810 if test -n "$OBJDUMP"; then
9811 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9812else
b30fcfae 9813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9814for as_dir in $PATH
9815do
9816 IFS=$as_save_IFS
9817 test -z "$as_dir" && as_dir=.
cd9a469c 9818 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9820 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 9821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9822 break 2
9823 fi
9824done
cd9a469c 9825 done
9826IFS=$as_save_IFS
b30fcfae 9827
bb612911 9828fi
9829fi
b30fcfae 9830OBJDUMP=$ac_cv_prog_OBJDUMP
bb612911 9831if test -n "$OBJDUMP"; then
cd9a469c 9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9833$as_echo "$OBJDUMP" >&6; }
bb612911 9834else
cd9a469c 9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9836$as_echo "no" >&6; }
bb612911 9837fi
9838
cd9a469c 9839
768691b5 9840 fi
9841 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9842 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9843set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9845$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9846if ${ac_cv_prog_OBJDUMP+:} false; then :
cd9a469c 9847 $as_echo_n "(cached) " >&6
bb612911 9848else
768691b5 9849 if test -n "$OBJDUMP"; then
9850 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
bb612911 9851else
b30fcfae 9852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9853for as_dir in $PATH
9854do
9855 IFS=$as_save_IFS
9856 test -z "$as_dir" && as_dir=.
cd9a469c 9857 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9859 ac_cv_prog_OBJDUMP="${ncn_progname}"
cd9a469c 9860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9861 break 2
9862 fi
9863done
cd9a469c 9864 done
9865IFS=$as_save_IFS
b30fcfae 9866
bb612911 9867fi
9868fi
b30fcfae 9869OBJDUMP=$ac_cv_prog_OBJDUMP
768691b5 9870if test -n "$OBJDUMP"; then
cd9a469c 9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9872$as_echo "$OBJDUMP" >&6; }
bb612911 9873else
cd9a469c 9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9875$as_echo "no" >&6; }
bb612911 9876fi
b30fcfae 9877
cd9a469c 9878
768691b5 9879 fi
9880 test -n "$ac_cv_prog_OBJDUMP" && break
9881done
9882
9883if test -z "$ac_cv_prog_OBJDUMP" ; then
9884 set dummy objdump
9885 if test $build = $host ; then
9886 OBJDUMP="$2"
bb612911 9887 else
768691b5 9888 OBJDUMP="${ncn_tool_prefix}$2"
bb612911 9889 fi
bb612911 9890fi
9891
71ab34df 9892
9893
16706a2e 9894if test -n "$OTOOL"; then
9895 ac_cv_prog_OTOOL=$OTOOL
9896elif test -n "$ac_cv_prog_OTOOL"; then
9897 OTOOL=$ac_cv_prog_OTOOL
9898fi
9899
9900if test -n "$ac_cv_prog_OTOOL"; then
9901 for ncn_progname in otool; do
9902 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9903set dummy ${ncn_progname}; ac_word=$2
9904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9905$as_echo_n "checking for $ac_word... " >&6; }
9906if ${ac_cv_prog_OTOOL+:} false; then :
9907 $as_echo_n "(cached) " >&6
9908else
9909 if test -n "$OTOOL"; then
9910 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9911else
9912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9913for as_dir in $PATH
9914do
9915 IFS=$as_save_IFS
9916 test -z "$as_dir" && as_dir=.
9917 for ac_exec_ext in '' $ac_executable_extensions; do
9918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9919 ac_cv_prog_OTOOL="${ncn_progname}"
9920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9921 break 2
9922 fi
9923done
9924 done
9925IFS=$as_save_IFS
9926
9927fi
9928fi
9929OTOOL=$ac_cv_prog_OTOOL
9930if test -n "$OTOOL"; then
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9932$as_echo "$OTOOL" >&6; }
9933else
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9935$as_echo "no" >&6; }
9936fi
9937
9938
9939 done
9940fi
9941
9942for ncn_progname in otool; do
9943 if test -n "$ncn_tool_prefix"; then
9944 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9945set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9947$as_echo_n "checking for $ac_word... " >&6; }
9948if ${ac_cv_prog_OTOOL+:} false; then :
9949 $as_echo_n "(cached) " >&6
9950else
9951 if test -n "$OTOOL"; then
9952 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9953else
9954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9955for as_dir in $PATH
9956do
9957 IFS=$as_save_IFS
9958 test -z "$as_dir" && as_dir=.
9959 for ac_exec_ext in '' $ac_executable_extensions; do
9960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9961 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
9962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9963 break 2
9964 fi
9965done
9966 done
9967IFS=$as_save_IFS
9968
9969fi
9970fi
9971OTOOL=$ac_cv_prog_OTOOL
9972if test -n "$OTOOL"; then
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9974$as_echo "$OTOOL" >&6; }
9975else
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9977$as_echo "no" >&6; }
9978fi
9979
9980
9981 fi
9982 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
9983 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9984set dummy ${ncn_progname}; ac_word=$2
9985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9986$as_echo_n "checking for $ac_word... " >&6; }
9987if ${ac_cv_prog_OTOOL+:} false; then :
9988 $as_echo_n "(cached) " >&6
9989else
9990 if test -n "$OTOOL"; then
9991 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9992else
9993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9994for as_dir in $PATH
9995do
9996 IFS=$as_save_IFS
9997 test -z "$as_dir" && as_dir=.
9998 for ac_exec_ext in '' $ac_executable_extensions; do
9999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10000 ac_cv_prog_OTOOL="${ncn_progname}"
10001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10002 break 2
10003 fi
10004done
10005 done
10006IFS=$as_save_IFS
10007
10008fi
10009fi
10010OTOOL=$ac_cv_prog_OTOOL
10011if test -n "$OTOOL"; then
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10013$as_echo "$OTOOL" >&6; }
10014else
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10016$as_echo "no" >&6; }
10017fi
10018
10019
10020 fi
10021 test -n "$ac_cv_prog_OTOOL" && break
10022done
10023
10024if test -z "$ac_cv_prog_OTOOL" ; then
10025 set dummy otool
10026 if test $build = $host ; then
10027 OTOOL="$2"
10028 else
10029 OTOOL="${ncn_tool_prefix}$2"
10030 fi
10031fi
10032
10033
10034
3f71364d 10035if test -n "$READELF"; then
10036 ac_cv_prog_READELF=$READELF
10037elif test -n "$ac_cv_prog_READELF"; then
10038 READELF=$ac_cv_prog_READELF
10039fi
10040
10041if test -n "$ac_cv_prog_READELF"; then
10042 for ncn_progname in readelf; do
10043 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10044set dummy ${ncn_progname}; ac_word=$2
10045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10046$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10047if ${ac_cv_prog_READELF+:} false; then :
3f71364d 10048 $as_echo_n "(cached) " >&6
10049else
10050 if test -n "$READELF"; then
10051 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10052else
10053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10054for as_dir in $PATH
10055do
10056 IFS=$as_save_IFS
10057 test -z "$as_dir" && as_dir=.
10058 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3f71364d 10060 ac_cv_prog_READELF="${ncn_progname}"
10061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10062 break 2
10063 fi
10064done
10065 done
10066IFS=$as_save_IFS
10067
10068fi
10069fi
10070READELF=$ac_cv_prog_READELF
10071if test -n "$READELF"; then
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10073$as_echo "$READELF" >&6; }
10074else
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10076$as_echo "no" >&6; }
10077fi
10078
10079
10080 done
10081fi
10082
10083for ncn_progname in readelf; do
10084 if test -n "$ncn_tool_prefix"; then
10085 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10086set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10088$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10089if ${ac_cv_prog_READELF+:} false; then :
3f71364d 10090 $as_echo_n "(cached) " >&6
10091else
10092 if test -n "$READELF"; then
10093 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10094else
10095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10096for as_dir in $PATH
10097do
10098 IFS=$as_save_IFS
10099 test -z "$as_dir" && as_dir=.
10100 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3f71364d 10102 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
10103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10104 break 2
10105 fi
10106done
10107 done
10108IFS=$as_save_IFS
10109
10110fi
10111fi
10112READELF=$ac_cv_prog_READELF
10113if test -n "$READELF"; then
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10115$as_echo "$READELF" >&6; }
10116else
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10118$as_echo "no" >&6; }
10119fi
10120
10121
10122 fi
10123 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
10124 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10125set dummy ${ncn_progname}; ac_word=$2
10126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10127$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10128if ${ac_cv_prog_READELF+:} false; then :
3f71364d 10129 $as_echo_n "(cached) " >&6
10130else
10131 if test -n "$READELF"; then
10132 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10133else
10134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10135for as_dir in $PATH
10136do
10137 IFS=$as_save_IFS
10138 test -z "$as_dir" && as_dir=.
10139 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3f71364d 10141 ac_cv_prog_READELF="${ncn_progname}"
10142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10143 break 2
10144 fi
10145done
10146 done
10147IFS=$as_save_IFS
10148
10149fi
10150fi
10151READELF=$ac_cv_prog_READELF
10152if test -n "$READELF"; then
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10154$as_echo "$READELF" >&6; }
10155else
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10157$as_echo "no" >&6; }
10158fi
10159
10160
10161 fi
10162 test -n "$ac_cv_prog_READELF" && break
10163done
10164
10165if test -z "$ac_cv_prog_READELF" ; then
10166 set dummy readelf
10167 if test $build = $host ; then
10168 READELF="$2"
10169 else
10170 READELF="${ncn_tool_prefix}$2"
10171 fi
10172fi
10173
10174
10175
71ab34df 10176
10177
10178
f5aebe3e 10179# Target tools.
b30fcfae 10180
cd9a469c 10181# Check whether --with-build-time-tools was given.
10182if test "${with_build_time_tools+set}" = set; then :
10183 withval=$with_build_time_tools; case x"$withval" in
c47832b1 10184 x/*) ;;
10185 *)
10186 with_build_time_tools=
cd9a469c 10187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10188$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
c47832b1 10189 ;;
10190 esac
bb612911 10191else
c47832b1 10192 with_build_time_tools=
cd9a469c 10193fi
10194
bb612911 10195
95a05732 10196
10197
10198if test -n "$CC_FOR_TARGET"; then
10199 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10200elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10201 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10202fi
10203
10204if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10205 for ncn_progname in cc gcc; do
10206 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10207set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10209$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10210if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
cd9a469c 10211 $as_echo_n "(cached) " >&6
95a05732 10212else
10213 if test -n "$CC_FOR_TARGET"; then
10214 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10215else
10216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10217for as_dir in $PATH
10218do
10219 IFS=$as_save_IFS
10220 test -z "$as_dir" && as_dir=.
cd9a469c 10221 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 10223 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
cd9a469c 10224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 10225 break 2
10226 fi
10227done
cd9a469c 10228 done
10229IFS=$as_save_IFS
95a05732 10230
10231fi
10232fi
10233CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10234if test -n "$CC_FOR_TARGET"; then
cd9a469c 10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10236$as_echo "$CC_FOR_TARGET" >&6; }
95a05732 10237else
cd9a469c 10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10239$as_echo "no" >&6; }
95a05732 10240fi
10241
cd9a469c 10242
95a05732 10243 done
10244fi
10245
10246if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10247 for ncn_progname in cc gcc; do
cd9a469c 10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10249$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 10250 if test -x $with_build_time_tools/${ncn_progname}; then
10251 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10253$as_echo "yes" >&6; }
9886f3d1 10254 break
c47832b1 10255 else
cd9a469c 10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10257$as_echo "no" >&6; }
9886f3d1 10258 fi
10259 done
ef8184c7 10260fi
10261
c47832b1 10262if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10263 for ncn_progname in cc gcc; do
10264 if test -n "$ncn_target_tool_prefix"; then
10265 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 10266set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 10267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10268$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10269if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
cd9a469c 10270 $as_echo_n "(cached) " >&6
ef8184c7 10271else
10272 if test -n "$CC_FOR_TARGET"; then
10273 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10274else
b30fcfae 10275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10276for as_dir in $PATH
10277do
10278 IFS=$as_save_IFS
10279 test -z "$as_dir" && as_dir=.
cd9a469c 10280 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10282 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 10283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10284 break 2
10285 fi
10286done
cd9a469c 10287 done
10288IFS=$as_save_IFS
b30fcfae 10289
ef8184c7 10290fi
10291fi
b30fcfae 10292CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
ef8184c7 10293if test -n "$CC_FOR_TARGET"; then
cd9a469c 10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10295$as_echo "$CC_FOR_TARGET" >&6; }
ef8184c7 10296else
cd9a469c 10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10298$as_echo "no" >&6; }
ef8184c7 10299fi
10300
cd9a469c 10301
c47832b1 10302 fi
10303 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10304 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 10305set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10307$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10308if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
cd9a469c 10309 $as_echo_n "(cached) " >&6
ef8184c7 10310else
768691b5 10311 if test -n "$CC_FOR_TARGET"; then
10312 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
ef8184c7 10313else
b30fcfae 10314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10315for as_dir in $PATH
10316do
10317 IFS=$as_save_IFS
10318 test -z "$as_dir" && as_dir=.
cd9a469c 10319 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10321 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
cd9a469c 10322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10323 break 2
10324 fi
10325done
cd9a469c 10326 done
10327IFS=$as_save_IFS
b30fcfae 10328
ef8184c7 10329fi
10330fi
b30fcfae 10331CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
768691b5 10332if test -n "$CC_FOR_TARGET"; then
cd9a469c 10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10334$as_echo "$CC_FOR_TARGET" >&6; }
ef8184c7 10335else
cd9a469c 10336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10337$as_echo "no" >&6; }
ef8184c7 10338fi
b30fcfae 10339
cd9a469c 10340
c47832b1 10341 fi
10342 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10343 done
10344fi
b30fcfae 10345
768691b5 10346if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10347 set dummy cc gcc
10348 if test $build = $target ; then
10349 CC_FOR_TARGET="$2"
ef8184c7 10350 else
768691b5 10351 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
ef8184c7 10352 fi
b7ef8464 10353else
10354 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
ef8184c7 10355fi
10356
95a05732 10357
10358
10359if test -n "$CXX_FOR_TARGET"; then
10360 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10361elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10362 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10363fi
10364
10365if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10366 for ncn_progname in c++ g++ cxx gxx; do
10367 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10368set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10370$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10371if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
cd9a469c 10372 $as_echo_n "(cached) " >&6
95a05732 10373else
10374 if test -n "$CXX_FOR_TARGET"; then
10375 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10376else
10377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10378for as_dir in $PATH
10379do
10380 IFS=$as_save_IFS
10381 test -z "$as_dir" && as_dir=.
cd9a469c 10382 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 10384 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
cd9a469c 10385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 10386 break 2
10387 fi
10388done
cd9a469c 10389 done
10390IFS=$as_save_IFS
95a05732 10391
10392fi
10393fi
10394CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10395if test -n "$CXX_FOR_TARGET"; then
cd9a469c 10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10397$as_echo "$CXX_FOR_TARGET" >&6; }
95a05732 10398else
cd9a469c 10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10400$as_echo "no" >&6; }
95a05732 10401fi
10402
cd9a469c 10403
95a05732 10404 done
10405fi
10406
10407if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10408 for ncn_progname in c++ g++ cxx gxx; do
cd9a469c 10409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10410$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 10411 if test -x $with_build_time_tools/${ncn_progname}; then
10412 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10414$as_echo "yes" >&6; }
c47832b1 10415 break
10416 else
cd9a469c 10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10418$as_echo "no" >&6; }
c47832b1 10419 fi
10420 done
10421fi
10422
10423if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10424 for ncn_progname in c++ g++ cxx gxx; do
10425 if test -n "$ncn_target_tool_prefix"; then
10426 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 10427set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 10428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10429$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10430if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
cd9a469c 10431 $as_echo_n "(cached) " >&6
ef8184c7 10432else
10433 if test -n "$CXX_FOR_TARGET"; then
10434 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10435else
b30fcfae 10436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10437for as_dir in $PATH
10438do
10439 IFS=$as_save_IFS
10440 test -z "$as_dir" && as_dir=.
cd9a469c 10441 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10443 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 10444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10445 break 2
10446 fi
10447done
cd9a469c 10448 done
10449IFS=$as_save_IFS
b30fcfae 10450
ef8184c7 10451fi
10452fi
b30fcfae 10453CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
ef8184c7 10454if test -n "$CXX_FOR_TARGET"; then
cd9a469c 10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10456$as_echo "$CXX_FOR_TARGET" >&6; }
ef8184c7 10457else
cd9a469c 10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10459$as_echo "no" >&6; }
ef8184c7 10460fi
10461
cd9a469c 10462
c47832b1 10463 fi
10464 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10465 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 10466set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10468$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10469if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
cd9a469c 10470 $as_echo_n "(cached) " >&6
ef8184c7 10471else
768691b5 10472 if test -n "$CXX_FOR_TARGET"; then
10473 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
ef8184c7 10474else
b30fcfae 10475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10476for as_dir in $PATH
10477do
10478 IFS=$as_save_IFS
10479 test -z "$as_dir" && as_dir=.
cd9a469c 10480 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10482 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
cd9a469c 10483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10484 break 2
10485 fi
10486done
cd9a469c 10487 done
10488IFS=$as_save_IFS
b30fcfae 10489
ef8184c7 10490fi
10491fi
b30fcfae 10492CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
768691b5 10493if test -n "$CXX_FOR_TARGET"; then
cd9a469c 10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10495$as_echo "$CXX_FOR_TARGET" >&6; }
ef8184c7 10496else
cd9a469c 10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10498$as_echo "no" >&6; }
ef8184c7 10499fi
b30fcfae 10500
cd9a469c 10501
c47832b1 10502 fi
10503 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10504 done
10505fi
b30fcfae 10506
768691b5 10507if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10508 set dummy c++ g++ cxx gxx
10509 if test $build = $target ; then
10510 CXX_FOR_TARGET="$2"
ef8184c7 10511 else
768691b5 10512 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
ef8184c7 10513 fi
b7ef8464 10514else
10515 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
bb612911 10516fi
10517
95a05732 10518
10519
10520if test -n "$GCC_FOR_TARGET"; then
10521 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10522elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10523 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10524fi
10525
10526if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10527 for ncn_progname in gcc; do
10528 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10529set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10531$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10532if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
cd9a469c 10533 $as_echo_n "(cached) " >&6
95a05732 10534else
10535 if test -n "$GCC_FOR_TARGET"; then
10536 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10537else
10538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10539for as_dir in $PATH
10540do
10541 IFS=$as_save_IFS
10542 test -z "$as_dir" && as_dir=.
cd9a469c 10543 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 10545 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
cd9a469c 10546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 10547 break 2
10548 fi
10549done
cd9a469c 10550 done
10551IFS=$as_save_IFS
95a05732 10552
10553fi
10554fi
10555GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10556if test -n "$GCC_FOR_TARGET"; then
cd9a469c 10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10558$as_echo "$GCC_FOR_TARGET" >&6; }
95a05732 10559else
cd9a469c 10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10561$as_echo "no" >&6; }
95a05732 10562fi
10563
cd9a469c 10564
95a05732 10565 done
10566fi
10567
10568if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10569 for ncn_progname in gcc; do
cd9a469c 10570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10571$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 10572 if test -x $with_build_time_tools/${ncn_progname}; then
10573 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10575$as_echo "yes" >&6; }
c47832b1 10576 break
10577 else
cd9a469c 10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10579$as_echo "no" >&6; }
c47832b1 10580 fi
10581 done
10582fi
10583
10584if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10585 for ncn_progname in gcc; do
10586 if test -n "$ncn_target_tool_prefix"; then
10587 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 10588set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 10589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10590$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10591if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
cd9a469c 10592 $as_echo_n "(cached) " >&6
bb612911 10593else
c47832b1 10594 if test -n "$GCC_FOR_TARGET"; then
10595 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
bb612911 10596else
b30fcfae 10597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10598for as_dir in $PATH
10599do
10600 IFS=$as_save_IFS
10601 test -z "$as_dir" && as_dir=.
cd9a469c 10602 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10604 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 10605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10606 break 2
10607 fi
10608done
cd9a469c 10609 done
10610IFS=$as_save_IFS
b30fcfae 10611
bb612911 10612fi
10613fi
b30fcfae 10614GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
c47832b1 10615if test -n "$GCC_FOR_TARGET"; then
cd9a469c 10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10617$as_echo "$GCC_FOR_TARGET" >&6; }
bb612911 10618else
cd9a469c 10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10620$as_echo "no" >&6; }
bb612911 10621fi
10622
cd9a469c 10623
c47832b1 10624 fi
10625 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10626 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 10627set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10629$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10630if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
cd9a469c 10631 $as_echo_n "(cached) " >&6
bb612911 10632else
c47832b1 10633 if test -n "$GCC_FOR_TARGET"; then
10634 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
bb612911 10635else
b30fcfae 10636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10637for as_dir in $PATH
10638do
10639 IFS=$as_save_IFS
10640 test -z "$as_dir" && as_dir=.
cd9a469c 10641 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10643 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
cd9a469c 10644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10645 break 2
10646 fi
10647done
cd9a469c 10648 done
10649IFS=$as_save_IFS
b30fcfae 10650
bb612911 10651fi
10652fi
b30fcfae 10653GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
c47832b1 10654if test -n "$GCC_FOR_TARGET"; then
cd9a469c 10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10656$as_echo "$GCC_FOR_TARGET" >&6; }
bb612911 10657else
cd9a469c 10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10659$as_echo "no" >&6; }
bb612911 10660fi
b30fcfae 10661
cd9a469c 10662
c47832b1 10663 fi
10664 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10665 done
10666fi
b30fcfae 10667
c47832b1 10668if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10669 GCC_FOR_TARGET="${CC_FOR_TARGET}"
b7ef8464 10670else
10671 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
c47832b1 10672fi
10673
95a05732 10674
10675
95a05732 10676if test -n "$GFORTRAN_FOR_TARGET"; then
10677 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10678elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10679 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
c47832b1 10680fi
10681
95a05732 10682if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10683 for ncn_progname in gfortran; do
10684 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
c47832b1 10685set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10687$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10688if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
cd9a469c 10689 $as_echo_n "(cached) " >&6
c47832b1 10690else
95a05732 10691 if test -n "$GFORTRAN_FOR_TARGET"; then
10692 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
c47832b1 10693else
b30fcfae 10694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10695for as_dir in $PATH
10696do
10697 IFS=$as_save_IFS
10698 test -z "$as_dir" && as_dir=.
cd9a469c 10699 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 10701 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
cd9a469c 10702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10703 break 2
10704 fi
10705done
cd9a469c 10706 done
10707IFS=$as_save_IFS
b30fcfae 10708
c47832b1 10709fi
10710fi
95a05732 10711GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10712if test -n "$GFORTRAN_FOR_TARGET"; then
cd9a469c 10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10714$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
c47832b1 10715else
cd9a469c 10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10717$as_echo "no" >&6; }
c47832b1 10718fi
b30fcfae 10719
cd9a469c 10720
c47832b1 10721 done
10722fi
b30fcfae 10723
95a05732 10724if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10725 for ncn_progname in gfortran; do
cd9a469c 10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10727$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 10728 if test -x $with_build_time_tools/${ncn_progname}; then
10729 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10731$as_echo "yes" >&6; }
c47832b1 10732 break
10733 else
cd9a469c 10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10735$as_echo "no" >&6; }
c47832b1 10736 fi
10737 done
10738fi
10739
10740if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10741 for ncn_progname in gfortran; do
10742 if test -n "$ncn_target_tool_prefix"; then
10743 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10744set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 10745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10746$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10747if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
cd9a469c 10748 $as_echo_n "(cached) " >&6
c47832b1 10749else
10750 if test -n "$GFORTRAN_FOR_TARGET"; then
b30fcfae 10751 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10752else
10753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10754for as_dir in $PATH
10755do
10756 IFS=$as_save_IFS
10757 test -z "$as_dir" && as_dir=.
cd9a469c 10758 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10760 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 10761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10762 break 2
10763 fi
10764done
cd9a469c 10765 done
10766IFS=$as_save_IFS
b30fcfae 10767
c47832b1 10768fi
10769fi
b30fcfae 10770GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
c47832b1 10771if test -n "$GFORTRAN_FOR_TARGET"; then
cd9a469c 10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10773$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
c47832b1 10774else
cd9a469c 10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10776$as_echo "no" >&6; }
c47832b1 10777fi
10778
cd9a469c 10779
c47832b1 10780 fi
10781 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10782 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10783set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10785$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10786if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
cd9a469c 10787 $as_echo_n "(cached) " >&6
c47832b1 10788else
10789 if test -n "$GFORTRAN_FOR_TARGET"; then
10790 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10791else
b30fcfae 10792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10793for as_dir in $PATH
10794do
10795 IFS=$as_save_IFS
10796 test -z "$as_dir" && as_dir=.
cd9a469c 10797 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10799 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
cd9a469c 10800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10801 break 2
10802 fi
10803done
cd9a469c 10804 done
10805IFS=$as_save_IFS
b30fcfae 10806
c47832b1 10807fi
10808fi
b30fcfae 10809GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
c47832b1 10810if test -n "$GFORTRAN_FOR_TARGET"; then
cd9a469c 10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10812$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
c47832b1 10813else
cd9a469c 10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10815$as_echo "no" >&6; }
c47832b1 10816fi
b30fcfae 10817
cd9a469c 10818
c47832b1 10819 fi
10820 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10821 done
10822fi
b30fcfae 10823
c47832b1 10824if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10825 set dummy gfortran
768691b5 10826 if test $build = $target ; then
c47832b1 10827 GFORTRAN_FOR_TARGET="$2"
bb612911 10828 else
c47832b1 10829 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10830 fi
b7ef8464 10831else
10832 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
c47832b1 10833fi
10834
10835
10836
5ff5b630 10837if test -n "$GOC_FOR_TARGET"; then
10838 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10839elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10840 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10841fi
10842
10843if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10844 for ncn_progname in gccgo; do
10845 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10846set dummy ${ncn_progname}; ac_word=$2
10847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10848$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10849if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
5ff5b630 10850 $as_echo_n "(cached) " >&6
10851else
10852 if test -n "$GOC_FOR_TARGET"; then
10853 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10854else
10855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10856for as_dir in $PATH
10857do
10858 IFS=$as_save_IFS
10859 test -z "$as_dir" && as_dir=.
10860 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5ff5b630 10862 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10864 break 2
10865 fi
10866done
10867 done
10868IFS=$as_save_IFS
10869
10870fi
10871fi
10872GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10873if test -n "$GOC_FOR_TARGET"; then
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10875$as_echo "$GOC_FOR_TARGET" >&6; }
10876else
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10878$as_echo "no" >&6; }
10879fi
10880
10881
10882 done
10883fi
10884
10885if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10886 for ncn_progname in gccgo; do
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10888$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10889 if test -x $with_build_time_tools/${ncn_progname}; then
10890 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10892$as_echo "yes" >&6; }
10893 break
10894 else
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10896$as_echo "no" >&6; }
10897 fi
10898 done
10899fi
10900
10901if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10902 for ncn_progname in gccgo; do
10903 if test -n "$ncn_target_tool_prefix"; then
10904 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10905set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10907$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10908if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
5ff5b630 10909 $as_echo_n "(cached) " >&6
10910else
10911 if test -n "$GOC_FOR_TARGET"; then
10912 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10913else
10914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10915for as_dir in $PATH
10916do
10917 IFS=$as_save_IFS
10918 test -z "$as_dir" && as_dir=.
10919 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5ff5b630 10921 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10923 break 2
10924 fi
10925done
10926 done
10927IFS=$as_save_IFS
10928
10929fi
10930fi
10931GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10932if test -n "$GOC_FOR_TARGET"; then
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10934$as_echo "$GOC_FOR_TARGET" >&6; }
10935else
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10937$as_echo "no" >&6; }
10938fi
10939
10940
10941 fi
10942 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10943 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10944set dummy ${ncn_progname}; ac_word=$2
10945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10946$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10947if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
5ff5b630 10948 $as_echo_n "(cached) " >&6
10949else
10950 if test -n "$GOC_FOR_TARGET"; then
10951 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10952else
10953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10954for as_dir in $PATH
10955do
10956 IFS=$as_save_IFS
10957 test -z "$as_dir" && as_dir=.
10958 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5ff5b630 10960 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10962 break 2
10963 fi
10964done
10965 done
10966IFS=$as_save_IFS
10967
10968fi
10969fi
10970GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10971if test -n "$GOC_FOR_TARGET"; then
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10973$as_echo "$GOC_FOR_TARGET" >&6; }
10974else
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10976$as_echo "no" >&6; }
10977fi
10978
10979
10980 fi
10981 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10982 done
10983fi
10984
10985if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10986 set dummy gccgo
10987 if test $build = $target ; then
10988 GOC_FOR_TARGET="$2"
10989 else
10990 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10991 fi
10992else
10993 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10994fi
10995
10996
10997
03385ed3 10998if test -n "$GDC_FOR_TARGET"; then
10999 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
11000elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
11001 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11002fi
11003
11004if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
11005 for ncn_progname in gdc; do
11006 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11007set dummy ${ncn_progname}; ac_word=$2
11008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11009$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11010if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
03385ed3 11011 $as_echo_n "(cached) " >&6
11012else
11013 if test -n "$GDC_FOR_TARGET"; then
11014 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
11015else
11016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11017for as_dir in $PATH
11018do
11019 IFS=$as_save_IFS
11020 test -z "$as_dir" && as_dir=.
11021 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 11023 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
11024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11025 break 2
11026 fi
11027done
11028 done
11029IFS=$as_save_IFS
11030
11031fi
11032fi
11033GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11034if test -n "$GDC_FOR_TARGET"; then
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
11036$as_echo "$GDC_FOR_TARGET" >&6; }
11037else
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11039$as_echo "no" >&6; }
11040fi
11041
11042
11043 done
11044fi
11045
11046if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11047 for ncn_progname in gdc; do
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11049$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11050 if test -x $with_build_time_tools/${ncn_progname}; then
11051 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11053$as_echo "yes" >&6; }
11054 break
11055 else
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11057$as_echo "no" >&6; }
11058 fi
11059 done
11060fi
11061
11062if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
11063 for ncn_progname in gdc; do
11064 if test -n "$ncn_target_tool_prefix"; then
11065 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11066set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11068$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11069if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
03385ed3 11070 $as_echo_n "(cached) " >&6
11071else
11072 if test -n "$GDC_FOR_TARGET"; then
11073 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
11074else
11075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11076for as_dir in $PATH
11077do
11078 IFS=$as_save_IFS
11079 test -z "$as_dir" && as_dir=.
11080 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 11082 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11084 break 2
11085 fi
11086done
11087 done
11088IFS=$as_save_IFS
11089
11090fi
11091fi
11092GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11093if test -n "$GDC_FOR_TARGET"; then
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
11095$as_echo "$GDC_FOR_TARGET" >&6; }
11096else
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11098$as_echo "no" >&6; }
11099fi
11100
11101
11102 fi
11103 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
11104 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11105set dummy ${ncn_progname}; ac_word=$2
11106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11107$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11108if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
03385ed3 11109 $as_echo_n "(cached) " >&6
11110else
11111 if test -n "$GDC_FOR_TARGET"; then
11112 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
11113else
11114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11115for as_dir in $PATH
11116do
11117 IFS=$as_save_IFS
11118 test -z "$as_dir" && as_dir=.
11119 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 11121 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
11122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11123 break 2
11124 fi
11125done
11126 done
11127IFS=$as_save_IFS
11128
11129fi
11130fi
11131GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11132if test -n "$GDC_FOR_TARGET"; then
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
11134$as_echo "$GDC_FOR_TARGET" >&6; }
11135else
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11137$as_echo "no" >&6; }
11138fi
11139
11140
11141 fi
11142 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
11143 done
11144fi
11145
11146if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
11147 set dummy gdc
11148 if test $build = $target ; then
11149 GDC_FOR_TARGET="$2"
11150 else
11151 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11152 fi
11153else
11154 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
11155fi
11156
11157
11158
c47832b1 11159cat > conftest.c << \EOF
11160#ifdef __GNUC__
11161 gcc_yay;
11162#endif
11163EOF
11164if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11165 have_gcc_for_target=yes
11166else
11167 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11168 have_gcc_for_target=no
11169fi
11170rm conftest.c
11171
11172
11173
11174
11175if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11176 if test -n "$with_build_time_tools"; then
cd9a469c 11177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11178$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
ab0da556 11179 if test -x $with_build_time_tools/ar; then
11180 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11181 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
cd9a469c 11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11183$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
ab0da556 11184 else
cd9a469c 11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11186$as_echo "no" >&6; }
ab0da556 11187 fi
c47832b1 11188 elif test $build != $host && test $have_gcc_for_target = yes; then
11189 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
b7ef8464 11190 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11191 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c47832b1 11192 fi
11193fi
38d7211b 11194if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 11195 # Extract the first word of "ar", so it can be a program name with args.
11196set dummy ar; ac_word=$2
cd9a469c 11197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11198$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11199if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
cd9a469c 11200 $as_echo_n "(cached) " >&6
c47832b1 11201else
b30fcfae 11202 case $AR_FOR_TARGET in
11203 [\\/]* | ?:[\\/]*)
c47832b1 11204 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11205 ;;
c47832b1 11206 *)
b30fcfae 11207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11208for as_dir in $gcc_cv_tool_dirs
11209do
11210 IFS=$as_save_IFS
11211 test -z "$as_dir" && as_dir=.
cd9a469c 11212 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11214 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 11215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11216 break 2
11217 fi
11218done
cd9a469c 11219 done
11220IFS=$as_save_IFS
b30fcfae 11221
c47832b1 11222 ;;
11223esac
11224fi
b30fcfae 11225AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
c47832b1 11226if test -n "$AR_FOR_TARGET"; then
cd9a469c 11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11228$as_echo "$AR_FOR_TARGET" >&6; }
c47832b1 11229else
cd9a469c 11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11231$as_echo "no" >&6; }
ef8184c7 11232fi
11233
cd9a469c 11234
c47832b1 11235fi
11236if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
95a05732 11237
11238
11239if test -n "$AR_FOR_TARGET"; then
11240 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11241elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11242 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11243fi
11244
11245if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11246 for ncn_progname in ar; do
11247 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11248set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11250$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11251if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
cd9a469c 11252 $as_echo_n "(cached) " >&6
95a05732 11253else
11254 if test -n "$AR_FOR_TARGET"; then
11255 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11256else
11257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11258for as_dir in $PATH
11259do
11260 IFS=$as_save_IFS
11261 test -z "$as_dir" && as_dir=.
cd9a469c 11262 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 11264 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
cd9a469c 11265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 11266 break 2
11267 fi
11268done
cd9a469c 11269 done
11270IFS=$as_save_IFS
95a05732 11271
11272fi
11273fi
11274AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11275if test -n "$AR_FOR_TARGET"; then
cd9a469c 11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11277$as_echo "$AR_FOR_TARGET" >&6; }
95a05732 11278else
cd9a469c 11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11280$as_echo "no" >&6; }
95a05732 11281fi
11282
cd9a469c 11283
95a05732 11284 done
11285fi
11286
11287if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 11288 for ncn_progname in ar; do
cd9a469c 11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11290$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 11291 if test -x $with_build_time_tools/${ncn_progname}; then
11292 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11294$as_echo "yes" >&6; }
c47832b1 11295 break
11296 else
cd9a469c 11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11298$as_echo "no" >&6; }
c47832b1 11299 fi
11300 done
11301fi
11302
11303if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11304 for ncn_progname in ar; do
11305 if test -n "$ncn_target_tool_prefix"; then
11306 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 11307set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 11308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11309$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11310if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
cd9a469c 11311 $as_echo_n "(cached) " >&6
ef8184c7 11312else
c47832b1 11313 if test -n "$AR_FOR_TARGET"; then
11314 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
ef8184c7 11315else
b30fcfae 11316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11317for as_dir in $PATH
11318do
11319 IFS=$as_save_IFS
11320 test -z "$as_dir" && as_dir=.
cd9a469c 11321 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11323 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 11324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11325 break 2
11326 fi
11327done
cd9a469c 11328 done
11329IFS=$as_save_IFS
b30fcfae 11330
ef8184c7 11331fi
11332fi
b30fcfae 11333AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
c47832b1 11334if test -n "$AR_FOR_TARGET"; then
cd9a469c 11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11336$as_echo "$AR_FOR_TARGET" >&6; }
ef8184c7 11337else
cd9a469c 11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11339$as_echo "no" >&6; }
ef8184c7 11340fi
11341
cd9a469c 11342
c47832b1 11343 fi
11344 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11345 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11346set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11348$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11349if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
cd9a469c 11350 $as_echo_n "(cached) " >&6
c47832b1 11351else
11352 if test -n "$AR_FOR_TARGET"; then
11353 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11354else
b30fcfae 11355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11356for as_dir in $PATH
11357do
11358 IFS=$as_save_IFS
11359 test -z "$as_dir" && as_dir=.
cd9a469c 11360 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11362 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
cd9a469c 11363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11364 break 2
11365 fi
11366done
cd9a469c 11367 done
11368IFS=$as_save_IFS
b30fcfae 11369
c47832b1 11370fi
11371fi
b30fcfae 11372AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
c47832b1 11373if test -n "$AR_FOR_TARGET"; then
cd9a469c 11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11375$as_echo "$AR_FOR_TARGET" >&6; }
c47832b1 11376else
cd9a469c 11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11378$as_echo "no" >&6; }
c47832b1 11379fi
b30fcfae 11380
cd9a469c 11381
c47832b1 11382 fi
11383 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11384 done
11385fi
b30fcfae 11386
c47832b1 11387if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11388 set dummy ar
11389 if test $build = $target ; then
11390 AR_FOR_TARGET="$2"
11391 else
11392 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
768691b5 11393 fi
b7ef8464 11394else
11395 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
c47832b1 11396fi
11397
ab0da556 11398else
11399 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
c47832b1 11400fi
11401
11402
11403
11404
11405if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11406 if test -n "$with_build_time_tools"; then
cd9a469c 11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11408$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
ab0da556 11409 if test -x $with_build_time_tools/as; then
11410 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11411 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
cd9a469c 11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11413$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
ab0da556 11414 else
cd9a469c 11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11416$as_echo "no" >&6; }
ab0da556 11417 fi
c47832b1 11418 elif test $build != $host && test $have_gcc_for_target = yes; then
11419 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
b7ef8464 11420 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11421 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c47832b1 11422 fi
11423fi
38d7211b 11424if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 11425 # Extract the first word of "as", so it can be a program name with args.
11426set dummy as; ac_word=$2
cd9a469c 11427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11428$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11429if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
cd9a469c 11430 $as_echo_n "(cached) " >&6
c47832b1 11431else
b30fcfae 11432 case $AS_FOR_TARGET in
11433 [\\/]* | ?:[\\/]*)
c47832b1 11434 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11435 ;;
c47832b1 11436 *)
b30fcfae 11437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11438for as_dir in $gcc_cv_tool_dirs
11439do
11440 IFS=$as_save_IFS
11441 test -z "$as_dir" && as_dir=.
cd9a469c 11442 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11444 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 11445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11446 break 2
11447 fi
11448done
cd9a469c 11449 done
11450IFS=$as_save_IFS
b30fcfae 11451
c47832b1 11452 ;;
11453esac
11454fi
b30fcfae 11455AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
c47832b1 11456if test -n "$AS_FOR_TARGET"; then
cd9a469c 11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11458$as_echo "$AS_FOR_TARGET" >&6; }
c47832b1 11459else
cd9a469c 11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11461$as_echo "no" >&6; }
c47832b1 11462fi
11463
cd9a469c 11464
c47832b1 11465fi
11466if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
95a05732 11467
11468
11469if test -n "$AS_FOR_TARGET"; then
11470 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11471elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11472 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11473fi
11474
11475if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11476 for ncn_progname in as; do
11477 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11478set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11480$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11481if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
cd9a469c 11482 $as_echo_n "(cached) " >&6
95a05732 11483else
11484 if test -n "$AS_FOR_TARGET"; then
11485 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11486else
11487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11488for as_dir in $PATH
11489do
11490 IFS=$as_save_IFS
11491 test -z "$as_dir" && as_dir=.
cd9a469c 11492 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 11494 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
cd9a469c 11495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 11496 break 2
11497 fi
11498done
cd9a469c 11499 done
11500IFS=$as_save_IFS
95a05732 11501
11502fi
11503fi
11504AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11505if test -n "$AS_FOR_TARGET"; then
cd9a469c 11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11507$as_echo "$AS_FOR_TARGET" >&6; }
95a05732 11508else
cd9a469c 11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11510$as_echo "no" >&6; }
95a05732 11511fi
11512
cd9a469c 11513
95a05732 11514 done
11515fi
11516
11517if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 11518 for ncn_progname in as; do
cd9a469c 11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11520$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 11521 if test -x $with_build_time_tools/${ncn_progname}; then
11522 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11524$as_echo "yes" >&6; }
c47832b1 11525 break
11526 else
cd9a469c 11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11528$as_echo "no" >&6; }
c47832b1 11529 fi
11530 done
11531fi
11532
11533if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11534 for ncn_progname in as; do
11535 if test -n "$ncn_target_tool_prefix"; then
11536 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11537set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 11538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11539$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11540if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
cd9a469c 11541 $as_echo_n "(cached) " >&6
c47832b1 11542else
11543 if test -n "$AS_FOR_TARGET"; then
11544 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11545else
b30fcfae 11546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11547for as_dir in $PATH
11548do
11549 IFS=$as_save_IFS
11550 test -z "$as_dir" && as_dir=.
cd9a469c 11551 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11553 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 11554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11555 break 2
11556 fi
11557done
cd9a469c 11558 done
11559IFS=$as_save_IFS
b30fcfae 11560
c47832b1 11561fi
11562fi
b30fcfae 11563AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
c47832b1 11564if test -n "$AS_FOR_TARGET"; then
cd9a469c 11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11566$as_echo "$AS_FOR_TARGET" >&6; }
c47832b1 11567else
cd9a469c 11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11569$as_echo "no" >&6; }
c47832b1 11570fi
11571
cd9a469c 11572
c47832b1 11573 fi
11574 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11575 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 11576set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11578$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11579if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
cd9a469c 11580 $as_echo_n "(cached) " >&6
ef8184c7 11581else
c47832b1 11582 if test -n "$AS_FOR_TARGET"; then
11583 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
ef8184c7 11584else
b30fcfae 11585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11586for as_dir in $PATH
11587do
11588 IFS=$as_save_IFS
11589 test -z "$as_dir" && as_dir=.
cd9a469c 11590 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11592 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
cd9a469c 11593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11594 break 2
11595 fi
11596done
cd9a469c 11597 done
11598IFS=$as_save_IFS
b30fcfae 11599
ef8184c7 11600fi
11601fi
b30fcfae 11602AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
c47832b1 11603if test -n "$AS_FOR_TARGET"; then
cd9a469c 11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11605$as_echo "$AS_FOR_TARGET" >&6; }
ef8184c7 11606else
cd9a469c 11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11608$as_echo "no" >&6; }
ef8184c7 11609fi
b30fcfae 11610
cd9a469c 11611
c47832b1 11612 fi
11613 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11614 done
11615fi
b30fcfae 11616
c47832b1 11617if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11618 set dummy as
11619 if test $build = $target ; then
11620 AS_FOR_TARGET="$2"
11621 else
11622 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
ef8184c7 11623 fi
b7ef8464 11624else
11625 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
c47832b1 11626fi
768691b5 11627
ab0da556 11628else
11629 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
ef8184c7 11630fi
11631
c47832b1 11632
11633
11634
11635if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11636 if test -n "$with_build_time_tools"; then
cd9a469c 11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11638$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
ab0da556 11639 if test -x $with_build_time_tools/dlltool; then
11640 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11641 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
cd9a469c 11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11643$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
ab0da556 11644 else
cd9a469c 11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11646$as_echo "no" >&6; }
ab0da556 11647 fi
c47832b1 11648 elif test $build != $host && test $have_gcc_for_target = yes; then
11649 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
b7ef8464 11650 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11651 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c47832b1 11652 fi
11653fi
38d7211b 11654if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 11655 # Extract the first word of "dlltool", so it can be a program name with args.
11656set dummy dlltool; ac_word=$2
cd9a469c 11657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11658$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11659if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
cd9a469c 11660 $as_echo_n "(cached) " >&6
ef8184c7 11661else
b30fcfae 11662 case $DLLTOOL_FOR_TARGET in
11663 [\\/]* | ?:[\\/]*)
c47832b1 11664 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11665 ;;
c47832b1 11666 *)
b30fcfae 11667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11668for as_dir in $gcc_cv_tool_dirs
11669do
11670 IFS=$as_save_IFS
11671 test -z "$as_dir" && as_dir=.
cd9a469c 11672 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11674 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 11675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11676 break 2
11677 fi
11678done
cd9a469c 11679 done
11680IFS=$as_save_IFS
b30fcfae 11681
c47832b1 11682 ;;
11683esac
ef8184c7 11684fi
b30fcfae 11685DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
c47832b1 11686if test -n "$DLLTOOL_FOR_TARGET"; then
cd9a469c 11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11688$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
ef8184c7 11689else
cd9a469c 11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11691$as_echo "no" >&6; }
ef8184c7 11692fi
11693
cd9a469c 11694
c47832b1 11695fi
11696if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
95a05732 11697
11698
11699if test -n "$DLLTOOL_FOR_TARGET"; then
11700 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11701elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11702 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11703fi
11704
11705if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11706 for ncn_progname in dlltool; do
11707 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11708set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11710$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11711if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
cd9a469c 11712 $as_echo_n "(cached) " >&6
95a05732 11713else
11714 if test -n "$DLLTOOL_FOR_TARGET"; then
11715 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11716else
11717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11718for as_dir in $PATH
11719do
11720 IFS=$as_save_IFS
11721 test -z "$as_dir" && as_dir=.
cd9a469c 11722 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 11724 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
cd9a469c 11725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 11726 break 2
11727 fi
11728done
cd9a469c 11729 done
11730IFS=$as_save_IFS
95a05732 11731
11732fi
11733fi
11734DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11735if test -n "$DLLTOOL_FOR_TARGET"; then
cd9a469c 11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11737$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
95a05732 11738else
cd9a469c 11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11740$as_echo "no" >&6; }
95a05732 11741fi
11742
cd9a469c 11743
95a05732 11744 done
11745fi
11746
11747if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 11748 for ncn_progname in dlltool; do
cd9a469c 11749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11750$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 11751 if test -x $with_build_time_tools/${ncn_progname}; then
11752 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11754$as_echo "yes" >&6; }
c47832b1 11755 break
11756 else
cd9a469c 11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11758$as_echo "no" >&6; }
c47832b1 11759 fi
11760 done
11761fi
11762
11763if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11764 for ncn_progname in dlltool; do
11765 if test -n "$ncn_target_tool_prefix"; then
11766 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11767set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 11768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11769$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11770if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
cd9a469c 11771 $as_echo_n "(cached) " >&6
ef8184c7 11772else
c47832b1 11773 if test -n "$DLLTOOL_FOR_TARGET"; then
11774 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
ef8184c7 11775else
b30fcfae 11776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11777for as_dir in $PATH
11778do
11779 IFS=$as_save_IFS
11780 test -z "$as_dir" && as_dir=.
cd9a469c 11781 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11783 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 11784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11785 break 2
11786 fi
11787done
cd9a469c 11788 done
11789IFS=$as_save_IFS
b30fcfae 11790
ef8184c7 11791fi
11792fi
b30fcfae 11793DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
c47832b1 11794if test -n "$DLLTOOL_FOR_TARGET"; then
cd9a469c 11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11796$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
ef8184c7 11797else
cd9a469c 11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799$as_echo "no" >&6; }
ef8184c7 11800fi
ef8184c7 11801
cd9a469c 11802
c47832b1 11803 fi
11804 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11805 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11806set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11808$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11809if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
cd9a469c 11810 $as_echo_n "(cached) " >&6
ef8184c7 11811else
c47832b1 11812 if test -n "$DLLTOOL_FOR_TARGET"; then
11813 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
ef8184c7 11814else
b30fcfae 11815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11816for as_dir in $PATH
11817do
11818 IFS=$as_save_IFS
11819 test -z "$as_dir" && as_dir=.
cd9a469c 11820 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11822 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
cd9a469c 11823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11824 break 2
11825 fi
11826done
cd9a469c 11827 done
11828IFS=$as_save_IFS
b30fcfae 11829
ef8184c7 11830fi
11831fi
b30fcfae 11832DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
c47832b1 11833if test -n "$DLLTOOL_FOR_TARGET"; then
cd9a469c 11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11835$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
ef8184c7 11836else
cd9a469c 11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11838$as_echo "no" >&6; }
ef8184c7 11839fi
b30fcfae 11840
cd9a469c 11841
c47832b1 11842 fi
11843 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11844 done
11845fi
b30fcfae 11846
c47832b1 11847if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11848 set dummy dlltool
11849 if test $build = $target ; then
11850 DLLTOOL_FOR_TARGET="$2"
11851 else
11852 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11853 fi
b7ef8464 11854else
11855 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
c47832b1 11856fi
11857
ab0da556 11858else
11859 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
c47832b1 11860fi
11861
ef8184c7 11862
c47832b1 11863
11864
11865if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11866 if test -n "$with_build_time_tools"; then
cd9a469c 11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11868$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
ab0da556 11869 if test -x $with_build_time_tools/ld; then
11870 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11871 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
cd9a469c 11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11873$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
ab0da556 11874 else
cd9a469c 11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11876$as_echo "no" >&6; }
ab0da556 11877 fi
c47832b1 11878 elif test $build != $host && test $have_gcc_for_target = yes; then
11879 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
b7ef8464 11880 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11881 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
768691b5 11882 fi
c47832b1 11883fi
38d7211b 11884if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 11885 # Extract the first word of "ld", so it can be a program name with args.
11886set dummy ld; ac_word=$2
cd9a469c 11887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11888$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11889if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
cd9a469c 11890 $as_echo_n "(cached) " >&6
ef8184c7 11891else
b30fcfae 11892 case $LD_FOR_TARGET in
11893 [\\/]* | ?:[\\/]*)
c47832b1 11894 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11895 ;;
c47832b1 11896 *)
b30fcfae 11897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11898for as_dir in $gcc_cv_tool_dirs
11899do
11900 IFS=$as_save_IFS
11901 test -z "$as_dir" && as_dir=.
cd9a469c 11902 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11904 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 11905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11906 break 2
11907 fi
11908done
cd9a469c 11909 done
11910IFS=$as_save_IFS
b30fcfae 11911
c47832b1 11912 ;;
11913esac
ef8184c7 11914fi
b30fcfae 11915LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
c47832b1 11916if test -n "$LD_FOR_TARGET"; then
cd9a469c 11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11918$as_echo "$LD_FOR_TARGET" >&6; }
ef8184c7 11919else
cd9a469c 11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11921$as_echo "no" >&6; }
ef8184c7 11922fi
768691b5 11923
cd9a469c 11924
c47832b1 11925fi
11926if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
95a05732 11927
11928
11929if test -n "$LD_FOR_TARGET"; then
11930 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11931elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11932 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11933fi
11934
11935if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11936 for ncn_progname in ld; do
11937 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11938set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11940$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11941if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
cd9a469c 11942 $as_echo_n "(cached) " >&6
95a05732 11943else
11944 if test -n "$LD_FOR_TARGET"; then
11945 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11946else
11947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11948for as_dir in $PATH
11949do
11950 IFS=$as_save_IFS
11951 test -z "$as_dir" && as_dir=.
cd9a469c 11952 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 11954 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
cd9a469c 11955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 11956 break 2
11957 fi
11958done
cd9a469c 11959 done
11960IFS=$as_save_IFS
95a05732 11961
11962fi
11963fi
11964LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11965if test -n "$LD_FOR_TARGET"; then
cd9a469c 11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11967$as_echo "$LD_FOR_TARGET" >&6; }
95a05732 11968else
cd9a469c 11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11970$as_echo "no" >&6; }
95a05732 11971fi
11972
cd9a469c 11973
95a05732 11974 done
11975fi
11976
11977if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 11978 for ncn_progname in ld; do
cd9a469c 11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11980$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 11981 if test -x $with_build_time_tools/${ncn_progname}; then
11982 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11984$as_echo "yes" >&6; }
c47832b1 11985 break
11986 else
cd9a469c 11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11988$as_echo "no" >&6; }
c47832b1 11989 fi
11990 done
bb612911 11991fi
11992
c47832b1 11993if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11994 for ncn_progname in ld; do
11995 if test -n "$ncn_target_tool_prefix"; then
11996 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 11997set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 11998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11999$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12000if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
cd9a469c 12001 $as_echo_n "(cached) " >&6
bb612911 12002else
ef8184c7 12003 if test -n "$LD_FOR_TARGET"; then
12004 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
bb612911 12005else
b30fcfae 12006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12007for as_dir in $PATH
12008do
12009 IFS=$as_save_IFS
12010 test -z "$as_dir" && as_dir=.
cd9a469c 12011 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 12013 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 12014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12015 break 2
12016 fi
12017done
cd9a469c 12018 done
12019IFS=$as_save_IFS
b30fcfae 12020
bb612911 12021fi
12022fi
b30fcfae 12023LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
ef8184c7 12024if test -n "$LD_FOR_TARGET"; then
cd9a469c 12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12026$as_echo "$LD_FOR_TARGET" >&6; }
bb612911 12027else
cd9a469c 12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12029$as_echo "no" >&6; }
bb612911 12030fi
12031
cd9a469c 12032
c47832b1 12033 fi
12034 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
12035 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 12036set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12038$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12039if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
cd9a469c 12040 $as_echo_n "(cached) " >&6
bb612911 12041else
768691b5 12042 if test -n "$LD_FOR_TARGET"; then
12043 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
bb612911 12044else
b30fcfae 12045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12046for as_dir in $PATH
12047do
12048 IFS=$as_save_IFS
12049 test -z "$as_dir" && as_dir=.
cd9a469c 12050 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 12052 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
cd9a469c 12053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12054 break 2
12055 fi
12056done
cd9a469c 12057 done
12058IFS=$as_save_IFS
b30fcfae 12059
bb612911 12060fi
12061fi
b30fcfae 12062LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
768691b5 12063if test -n "$LD_FOR_TARGET"; then
cd9a469c 12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12065$as_echo "$LD_FOR_TARGET" >&6; }
bb612911 12066else
cd9a469c 12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12068$as_echo "no" >&6; }
bb612911 12069fi
b30fcfae 12070
cd9a469c 12071
c47832b1 12072 fi
12073 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
12074 done
12075fi
b30fcfae 12076
768691b5 12077if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
12078 set dummy ld
12079 if test $build = $target ; then
12080 LD_FOR_TARGET="$2"
bb612911 12081 else
768691b5 12082 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 12083 fi
b7ef8464 12084else
12085 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
bb612911 12086fi
12087
ab0da556 12088else
12089 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
c47832b1 12090fi
12091
12092
12093
12094
12095if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12096 if test -n "$with_build_time_tools"; then
cd9a469c 12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
12098$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
ab0da556 12099 if test -x $with_build_time_tools/lipo; then
12100 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12101 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
cd9a469c 12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12103$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
ab0da556 12104 else
cd9a469c 12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12106$as_echo "no" >&6; }
ab0da556 12107 fi
c47832b1 12108 elif test $build != $host && test $have_gcc_for_target = yes; then
12109 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
b7ef8464 12110 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12111 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c47832b1 12112 fi
12113fi
95a05732 12114if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12115 # Extract the first word of "lipo", so it can be a program name with args.
12116set dummy lipo; ac_word=$2
cd9a469c 12117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12118$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12119if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
cd9a469c 12120 $as_echo_n "(cached) " >&6
95a05732 12121else
12122 case $LIPO_FOR_TARGET in
12123 [\\/]* | ?:[\\/]*)
12124 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12125 ;;
12126 *)
12127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12128for as_dir in $gcc_cv_tool_dirs
12129do
12130 IFS=$as_save_IFS
12131 test -z "$as_dir" && as_dir=.
cd9a469c 12132 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 12134 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 12135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 12136 break 2
12137 fi
12138done
cd9a469c 12139 done
12140IFS=$as_save_IFS
95a05732 12141
12142 ;;
12143esac
12144fi
12145LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
95a05732 12146if test -n "$LIPO_FOR_TARGET"; then
cd9a469c 12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12148$as_echo "$LIPO_FOR_TARGET" >&6; }
95a05732 12149else
cd9a469c 12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12151$as_echo "no" >&6; }
95a05732 12152fi
12153
cd9a469c 12154
95a05732 12155fi
12156if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12157
12158
12159if test -n "$LIPO_FOR_TARGET"; then
12160 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12161elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12162 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12163fi
12164
12165if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12166 for ncn_progname in lipo; do
12167 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12168set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12170$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12171if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
cd9a469c 12172 $as_echo_n "(cached) " >&6
c47832b1 12173else
95a05732 12174 if test -n "$LIPO_FOR_TARGET"; then
12175 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12176else
12177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12178for as_dir in $PATH
b30fcfae 12179do
12180 IFS=$as_save_IFS
12181 test -z "$as_dir" && as_dir=.
cd9a469c 12182 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 12184 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
cd9a469c 12185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12186 break 2
12187 fi
12188done
cd9a469c 12189 done
12190IFS=$as_save_IFS
b30fcfae 12191
c47832b1 12192fi
95a05732 12193fi
12194LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
c47832b1 12195if test -n "$LIPO_FOR_TARGET"; then
cd9a469c 12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12197$as_echo "$LIPO_FOR_TARGET" >&6; }
c47832b1 12198else
cd9a469c 12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12200$as_echo "no" >&6; }
c47832b1 12201fi
12202
cd9a469c 12203
95a05732 12204 done
c47832b1 12205fi
95a05732 12206
12207if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 12208 for ncn_progname in lipo; do
cd9a469c 12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12210$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 12211 if test -x $with_build_time_tools/${ncn_progname}; then
12212 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12214$as_echo "yes" >&6; }
c47832b1 12215 break
12216 else
cd9a469c 12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12218$as_echo "no" >&6; }
c47832b1 12219 fi
12220 done
12221fi
12222
12223if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12224 for ncn_progname in lipo; do
12225 if test -n "$ncn_target_tool_prefix"; then
12226 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 12227set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 12228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12229$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12230if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
cd9a469c 12231 $as_echo_n "(cached) " >&6
9fec3fa8 12232else
12233 if test -n "$LIPO_FOR_TARGET"; then
12234 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12235else
b30fcfae 12236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12237for as_dir in $PATH
12238do
12239 IFS=$as_save_IFS
12240 test -z "$as_dir" && as_dir=.
cd9a469c 12241 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 12243 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 12244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12245 break 2
12246 fi
12247done
cd9a469c 12248 done
12249IFS=$as_save_IFS
b30fcfae 12250
9fec3fa8 12251fi
12252fi
b30fcfae 12253LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9fec3fa8 12254if test -n "$LIPO_FOR_TARGET"; then
cd9a469c 12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12256$as_echo "$LIPO_FOR_TARGET" >&6; }
9fec3fa8 12257else
cd9a469c 12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12259$as_echo "no" >&6; }
9fec3fa8 12260fi
12261
cd9a469c 12262
c47832b1 12263 fi
12264 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12265 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9fec3fa8 12266set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12268$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12269if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
cd9a469c 12270 $as_echo_n "(cached) " >&6
9fec3fa8 12271else
12272 if test -n "$LIPO_FOR_TARGET"; then
9886f3d1 12273 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12274else
b30fcfae 12275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12276for as_dir in $PATH
12277do
12278 IFS=$as_save_IFS
12279 test -z "$as_dir" && as_dir=.
cd9a469c 12280 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 12282 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
cd9a469c 12283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12284 break 2
12285 fi
12286done
cd9a469c 12287 done
12288IFS=$as_save_IFS
b30fcfae 12289
9fec3fa8 12290fi
12291fi
b30fcfae 12292LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9fec3fa8 12293if test -n "$LIPO_FOR_TARGET"; then
cd9a469c 12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12295$as_echo "$LIPO_FOR_TARGET" >&6; }
9fec3fa8 12296else
cd9a469c 12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12298$as_echo "no" >&6; }
9fec3fa8 12299fi
b30fcfae 12300
cd9a469c 12301
c47832b1 12302 fi
12303 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12304 done
12305fi
b30fcfae 12306
9fec3fa8 12307if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12308 set dummy lipo
12309 if test $build = $target ; then
12310 LIPO_FOR_TARGET="$2"
12311 else
12312 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12313 fi
b7ef8464 12314else
12315 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
9fec3fa8 12316fi
12317
ab0da556 12318else
12319 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
c47832b1 12320fi
12321
12322
12323
12324
12325if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12326 if test -n "$with_build_time_tools"; then
cd9a469c 12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12328$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
ab0da556 12329 if test -x $with_build_time_tools/nm; then
12330 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12331 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
cd9a469c 12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12333$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
ab0da556 12334 else
cd9a469c 12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12336$as_echo "no" >&6; }
ab0da556 12337 fi
c47832b1 12338 elif test $build != $host && test $have_gcc_for_target = yes; then
12339 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
b7ef8464 12340 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12341 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c47832b1 12342 fi
12343fi
38d7211b 12344if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 12345 # Extract the first word of "nm", so it can be a program name with args.
12346set dummy nm; ac_word=$2
cd9a469c 12347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12348$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12349if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
cd9a469c 12350 $as_echo_n "(cached) " >&6
c47832b1 12351else
b30fcfae 12352 case $NM_FOR_TARGET in
12353 [\\/]* | ?:[\\/]*)
c47832b1 12354 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12355 ;;
c47832b1 12356 *)
b30fcfae 12357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12358for as_dir in $gcc_cv_tool_dirs
12359do
12360 IFS=$as_save_IFS
12361 test -z "$as_dir" && as_dir=.
cd9a469c 12362 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 12364 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 12365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12366 break 2
12367 fi
12368done
cd9a469c 12369 done
12370IFS=$as_save_IFS
b30fcfae 12371
c47832b1 12372 ;;
12373esac
12374fi
b30fcfae 12375NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
c47832b1 12376if test -n "$NM_FOR_TARGET"; then
cd9a469c 12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12378$as_echo "$NM_FOR_TARGET" >&6; }
c47832b1 12379else
cd9a469c 12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12381$as_echo "no" >&6; }
c47832b1 12382fi
12383
cd9a469c 12384
c47832b1 12385fi
12386if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
95a05732 12387
12388
12389if test -n "$NM_FOR_TARGET"; then
12390 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12391elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12392 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12393fi
12394
12395if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12396 for ncn_progname in nm; do
12397 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12398set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12400$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12401if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
cd9a469c 12402 $as_echo_n "(cached) " >&6
95a05732 12403else
12404 if test -n "$NM_FOR_TARGET"; then
12405 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12406else
12407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12408for as_dir in $PATH
12409do
12410 IFS=$as_save_IFS
12411 test -z "$as_dir" && as_dir=.
cd9a469c 12412 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 12414 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
cd9a469c 12415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 12416 break 2
12417 fi
12418done
cd9a469c 12419 done
12420IFS=$as_save_IFS
95a05732 12421
12422fi
12423fi
12424NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12425if test -n "$NM_FOR_TARGET"; then
cd9a469c 12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12427$as_echo "$NM_FOR_TARGET" >&6; }
95a05732 12428else
cd9a469c 12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12430$as_echo "no" >&6; }
95a05732 12431fi
12432
cd9a469c 12433
95a05732 12434 done
12435fi
12436
12437if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 12438 for ncn_progname in nm; do
cd9a469c 12439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12440$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 12441 if test -x $with_build_time_tools/${ncn_progname}; then
12442 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12444$as_echo "yes" >&6; }
c47832b1 12445 break
12446 else
cd9a469c 12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12448$as_echo "no" >&6; }
c47832b1 12449 fi
12450 done
12451fi
12452
12453if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12454 for ncn_progname in nm; do
12455 if test -n "$ncn_target_tool_prefix"; then
12456 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9fec3fa8 12457set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 12458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12459$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12460if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
cd9a469c 12461 $as_echo_n "(cached) " >&6
bb612911 12462else
ef8184c7 12463 if test -n "$NM_FOR_TARGET"; then
12464 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
bb612911 12465else
b30fcfae 12466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12467for as_dir in $PATH
12468do
12469 IFS=$as_save_IFS
12470 test -z "$as_dir" && as_dir=.
cd9a469c 12471 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 12473 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 12474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12475 break 2
12476 fi
12477done
cd9a469c 12478 done
12479IFS=$as_save_IFS
b30fcfae 12480
bb612911 12481fi
12482fi
b30fcfae 12483NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
ef8184c7 12484if test -n "$NM_FOR_TARGET"; then
cd9a469c 12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12486$as_echo "$NM_FOR_TARGET" >&6; }
bb612911 12487else
cd9a469c 12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12489$as_echo "no" >&6; }
bb612911 12490fi
12491
cd9a469c 12492
c47832b1 12493 fi
12494 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12495 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 12496set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12498$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12499if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
cd9a469c 12500 $as_echo_n "(cached) " >&6
bb612911 12501else
768691b5 12502 if test -n "$NM_FOR_TARGET"; then
12503 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
bb612911 12504else
b30fcfae 12505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12506for as_dir in $PATH
12507do
12508 IFS=$as_save_IFS
12509 test -z "$as_dir" && as_dir=.
cd9a469c 12510 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 12512 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
cd9a469c 12513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12514 break 2
12515 fi
12516done
cd9a469c 12517 done
12518IFS=$as_save_IFS
b30fcfae 12519
bb612911 12520fi
12521fi
b30fcfae 12522NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
768691b5 12523if test -n "$NM_FOR_TARGET"; then
cd9a469c 12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12525$as_echo "$NM_FOR_TARGET" >&6; }
bb612911 12526else
cd9a469c 12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12528$as_echo "no" >&6; }
bb612911 12529fi
b30fcfae 12530
cd9a469c 12531
c47832b1 12532 fi
12533 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12534 done
12535fi
b30fcfae 12536
768691b5 12537if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12538 set dummy nm
12539 if test $build = $target ; then
12540 NM_FOR_TARGET="$2"
bb612911 12541 else
768691b5 12542 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 12543 fi
b7ef8464 12544else
12545 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
bb612911 12546fi
12547
ab0da556 12548else
12549 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
c47832b1 12550fi
12551
12552
12553
12554
fc740d70 12555if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12556 if test -n "$with_build_time_tools"; then
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12558$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12559 if test -x $with_build_time_tools/objcopy; then
12560 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12561 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12563$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12564 else
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12566$as_echo "no" >&6; }
12567 fi
12568 elif test $build != $host && test $have_gcc_for_target = yes; then
12569 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12570 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12571 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12572 fi
12573fi
12574if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12575 # Extract the first word of "objcopy", so it can be a program name with args.
12576set dummy objcopy; ac_word=$2
12577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12578$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12579if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
fc740d70 12580 $as_echo_n "(cached) " >&6
12581else
12582 case $OBJCOPY_FOR_TARGET in
12583 [\\/]* | ?:[\\/]*)
12584 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12585 ;;
12586 *)
12587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12588for as_dir in $gcc_cv_tool_dirs
12589do
12590 IFS=$as_save_IFS
12591 test -z "$as_dir" && as_dir=.
12592 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fc740d70 12594 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12596 break 2
12597 fi
12598done
12599 done
12600IFS=$as_save_IFS
12601
12602 ;;
12603esac
12604fi
12605OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12606if test -n "$OBJCOPY_FOR_TARGET"; then
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12608$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12609else
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12611$as_echo "no" >&6; }
12612fi
12613
12614
12615fi
12616if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12617
12618
12619if test -n "$OBJCOPY_FOR_TARGET"; then
12620 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12621elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12622 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12623fi
12624
12625if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12626 for ncn_progname in objcopy; do
12627 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12628set dummy ${ncn_progname}; ac_word=$2
12629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12630$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12631if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
fc740d70 12632 $as_echo_n "(cached) " >&6
12633else
12634 if test -n "$OBJCOPY_FOR_TARGET"; then
12635 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12636else
12637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12638for as_dir in $PATH
12639do
12640 IFS=$as_save_IFS
12641 test -z "$as_dir" && as_dir=.
12642 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fc740d70 12644 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12646 break 2
12647 fi
12648done
12649 done
12650IFS=$as_save_IFS
12651
12652fi
12653fi
12654OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12655if test -n "$OBJCOPY_FOR_TARGET"; then
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12657$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12658else
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12660$as_echo "no" >&6; }
12661fi
12662
12663
12664 done
12665fi
12666
12667if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12668 for ncn_progname in objcopy; do
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12670$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12671 if test -x $with_build_time_tools/${ncn_progname}; then
12672 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12674$as_echo "yes" >&6; }
12675 break
12676 else
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12678$as_echo "no" >&6; }
12679 fi
12680 done
12681fi
12682
12683if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12684 for ncn_progname in objcopy; do
12685 if test -n "$ncn_target_tool_prefix"; then
12686 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12687set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12689$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12690if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
fc740d70 12691 $as_echo_n "(cached) " >&6
12692else
12693 if test -n "$OBJCOPY_FOR_TARGET"; then
12694 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12695else
12696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12697for as_dir in $PATH
12698do
12699 IFS=$as_save_IFS
12700 test -z "$as_dir" && as_dir=.
12701 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fc740d70 12703 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12705 break 2
12706 fi
12707done
12708 done
12709IFS=$as_save_IFS
12710
12711fi
12712fi
12713OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12714if test -n "$OBJCOPY_FOR_TARGET"; then
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12716$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12717else
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12719$as_echo "no" >&6; }
12720fi
12721
12722
12723 fi
12724 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12725 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12726set dummy ${ncn_progname}; ac_word=$2
12727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12728$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12729if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
fc740d70 12730 $as_echo_n "(cached) " >&6
12731else
12732 if test -n "$OBJCOPY_FOR_TARGET"; then
12733 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12734else
12735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12736for as_dir in $PATH
12737do
12738 IFS=$as_save_IFS
12739 test -z "$as_dir" && as_dir=.
12740 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fc740d70 12742 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12744 break 2
12745 fi
12746done
12747 done
12748IFS=$as_save_IFS
12749
12750fi
12751fi
12752OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12753if test -n "$OBJCOPY_FOR_TARGET"; then
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12755$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12756else
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12758$as_echo "no" >&6; }
12759fi
12760
12761
12762 fi
12763 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12764 done
12765fi
12766
12767if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12768 set dummy objcopy
12769 if test $build = $target ; then
12770 OBJCOPY_FOR_TARGET="$2"
12771 else
12772 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12773 fi
12774else
12775 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12776fi
12777
12778else
12779 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12780fi
12781
12782
12783
12784
c47832b1 12785if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12786 if test -n "$with_build_time_tools"; then
cd9a469c 12787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12788$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
ab0da556 12789 if test -x $with_build_time_tools/objdump; then
12790 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12791 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
cd9a469c 12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12793$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
ab0da556 12794 else
cd9a469c 12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12796$as_echo "no" >&6; }
ab0da556 12797 fi
c47832b1 12798 elif test $build != $host && test $have_gcc_for_target = yes; then
12799 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
b7ef8464 12800 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12801 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c47832b1 12802 fi
12803fi
38d7211b 12804if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 12805 # Extract the first word of "objdump", so it can be a program name with args.
12806set dummy objdump; ac_word=$2
cd9a469c 12807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12808$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12809if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
cd9a469c 12810 $as_echo_n "(cached) " >&6
c47832b1 12811else
b30fcfae 12812 case $OBJDUMP_FOR_TARGET in
12813 [\\/]* | ?:[\\/]*)
c47832b1 12814 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12815 ;;
c47832b1 12816 *)
b30fcfae 12817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12818for as_dir in $gcc_cv_tool_dirs
12819do
12820 IFS=$as_save_IFS
12821 test -z "$as_dir" && as_dir=.
cd9a469c 12822 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 12824 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 12825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12826 break 2
12827 fi
12828done
cd9a469c 12829 done
12830IFS=$as_save_IFS
b30fcfae 12831
c47832b1 12832 ;;
12833esac
12834fi
b30fcfae 12835OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
c47832b1 12836if test -n "$OBJDUMP_FOR_TARGET"; then
cd9a469c 12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12838$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
c47832b1 12839else
cd9a469c 12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12841$as_echo "no" >&6; }
c47832b1 12842fi
12843
cd9a469c 12844
c47832b1 12845fi
12846if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
95a05732 12847
12848
12849if test -n "$OBJDUMP_FOR_TARGET"; then
12850 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12851elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12852 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12853fi
12854
12855if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12856 for ncn_progname in objdump; do
12857 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12858set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12860$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12861if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
cd9a469c 12862 $as_echo_n "(cached) " >&6
95a05732 12863else
12864 if test -n "$OBJDUMP_FOR_TARGET"; then
12865 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12866else
12867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12868for as_dir in $PATH
12869do
12870 IFS=$as_save_IFS
12871 test -z "$as_dir" && as_dir=.
cd9a469c 12872 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 12874 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
cd9a469c 12875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 12876 break 2
12877 fi
12878done
cd9a469c 12879 done
12880IFS=$as_save_IFS
95a05732 12881
12882fi
12883fi
12884OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12885if test -n "$OBJDUMP_FOR_TARGET"; then
cd9a469c 12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12887$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
95a05732 12888else
cd9a469c 12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12890$as_echo "no" >&6; }
95a05732 12891fi
12892
cd9a469c 12893
95a05732 12894 done
12895fi
12896
12897if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 12898 for ncn_progname in objdump; do
cd9a469c 12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12900$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 12901 if test -x $with_build_time_tools/${ncn_progname}; then
12902 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12904$as_echo "yes" >&6; }
c47832b1 12905 break
12906 else
cd9a469c 12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12908$as_echo "no" >&6; }
c47832b1 12909 fi
12910 done
12911fi
12912
12913if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12914 for ncn_progname in objdump; do
12915 if test -n "$ncn_target_tool_prefix"; then
12916 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 12917set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 12918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12919$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12920if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
cd9a469c 12921 $as_echo_n "(cached) " >&6
ae74ffb7 12922else
12923 if test -n "$OBJDUMP_FOR_TARGET"; then
12924 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12925else
b30fcfae 12926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12927for as_dir in $PATH
12928do
12929 IFS=$as_save_IFS
12930 test -z "$as_dir" && as_dir=.
cd9a469c 12931 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 12933 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 12934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12935 break 2
12936 fi
12937done
cd9a469c 12938 done
12939IFS=$as_save_IFS
b30fcfae 12940
ae74ffb7 12941fi
12942fi
b30fcfae 12943OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
ae74ffb7 12944if test -n "$OBJDUMP_FOR_TARGET"; then
cd9a469c 12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12946$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
ae74ffb7 12947else
cd9a469c 12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12949$as_echo "no" >&6; }
ae74ffb7 12950fi
12951
cd9a469c 12952
c47832b1 12953 fi
12954 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12955 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
ae74ffb7 12956set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12958$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12959if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
cd9a469c 12960 $as_echo_n "(cached) " >&6
ae74ffb7 12961else
12962 if test -n "$OBJDUMP_FOR_TARGET"; then
12963 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12964else
b30fcfae 12965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12966for as_dir in $PATH
12967do
12968 IFS=$as_save_IFS
12969 test -z "$as_dir" && as_dir=.
cd9a469c 12970 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 12972 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
cd9a469c 12973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12974 break 2
12975 fi
12976done
cd9a469c 12977 done
12978IFS=$as_save_IFS
b30fcfae 12979
ae74ffb7 12980fi
12981fi
b30fcfae 12982OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
ae74ffb7 12983if test -n "$OBJDUMP_FOR_TARGET"; then
cd9a469c 12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12985$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
ae74ffb7 12986else
cd9a469c 12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12988$as_echo "no" >&6; }
ae74ffb7 12989fi
b30fcfae 12990
cd9a469c 12991
c47832b1 12992 fi
12993 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12994 done
12995fi
b30fcfae 12996
ae74ffb7 12997if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12998 set dummy objdump
12999 if test $build = $target ; then
13000 OBJDUMP_FOR_TARGET="$2"
13001 else
13002 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13003 fi
b7ef8464 13004else
13005 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
ae74ffb7 13006fi
13007
ab0da556 13008else
13009 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
c47832b1 13010fi
13011
13012
13013
13014
16706a2e 13015if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
13016 if test -n "$with_build_time_tools"; then
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
13018$as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
13019 if test -x $with_build_time_tools/otool; then
13020 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
13021 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
13023$as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
13024 else
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13026$as_echo "no" >&6; }
13027 fi
13028 elif test $build != $host && test $have_gcc_for_target = yes; then
13029 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
13030 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
13031 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
13032 fi
13033fi
13034if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13035 # Extract the first word of "otool", so it can be a program name with args.
13036set dummy otool; ac_word=$2
13037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13038$as_echo_n "checking for $ac_word... " >&6; }
13039if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
13040 $as_echo_n "(cached) " >&6
13041else
13042 case $OTOOL_FOR_TARGET in
13043 [\\/]* | ?:[\\/]*)
13044 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
13045 ;;
13046 *)
13047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13048for as_dir in $gcc_cv_tool_dirs
13049do
13050 IFS=$as_save_IFS
13051 test -z "$as_dir" && as_dir=.
13052 for ac_exec_ext in '' $ac_executable_extensions; do
13053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13054 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13056 break 2
13057 fi
13058done
13059 done
13060IFS=$as_save_IFS
13061
13062 ;;
13063esac
13064fi
13065OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
13066if test -n "$OTOOL_FOR_TARGET"; then
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13068$as_echo "$OTOOL_FOR_TARGET" >&6; }
13069else
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13071$as_echo "no" >&6; }
13072fi
13073
13074
13075fi
13076if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
13077
13078
13079if test -n "$OTOOL_FOR_TARGET"; then
13080 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
13081elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13082 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13083fi
13084
13085if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13086 for ncn_progname in otool; do
13087 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13088set dummy ${ncn_progname}; ac_word=$2
13089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13090$as_echo_n "checking for $ac_word... " >&6; }
13091if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13092 $as_echo_n "(cached) " >&6
13093else
13094 if test -n "$OTOOL_FOR_TARGET"; then
13095 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13096else
13097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13098for as_dir in $PATH
13099do
13100 IFS=$as_save_IFS
13101 test -z "$as_dir" && as_dir=.
13102 for ac_exec_ext in '' $ac_executable_extensions; do
13103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13104 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
13105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13106 break 2
13107 fi
13108done
13109 done
13110IFS=$as_save_IFS
13111
13112fi
13113fi
13114OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13115if test -n "$OTOOL_FOR_TARGET"; then
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13117$as_echo "$OTOOL_FOR_TARGET" >&6; }
13118else
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13120$as_echo "no" >&6; }
13121fi
13122
13123
13124 done
13125fi
13126
13127if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
13128 for ncn_progname in otool; do
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13130$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13131 if test -x $with_build_time_tools/${ncn_progname}; then
13132 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13134$as_echo "yes" >&6; }
13135 break
13136 else
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13138$as_echo "no" >&6; }
13139 fi
13140 done
13141fi
13142
13143if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13144 for ncn_progname in otool; do
13145 if test -n "$ncn_target_tool_prefix"; then
13146 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13147set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13149$as_echo_n "checking for $ac_word... " >&6; }
13150if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13151 $as_echo_n "(cached) " >&6
13152else
13153 if test -n "$OTOOL_FOR_TARGET"; then
13154 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13155else
13156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13157for as_dir in $PATH
13158do
13159 IFS=$as_save_IFS
13160 test -z "$as_dir" && as_dir=.
13161 for ac_exec_ext in '' $ac_executable_extensions; do
13162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13163 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13165 break 2
13166 fi
13167done
13168 done
13169IFS=$as_save_IFS
13170
13171fi
13172fi
13173OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13174if test -n "$OTOOL_FOR_TARGET"; then
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13176$as_echo "$OTOOL_FOR_TARGET" >&6; }
13177else
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13179$as_echo "no" >&6; }
13180fi
13181
13182
13183 fi
13184 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
13185 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13186set dummy ${ncn_progname}; ac_word=$2
13187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13188$as_echo_n "checking for $ac_word... " >&6; }
13189if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13190 $as_echo_n "(cached) " >&6
13191else
13192 if test -n "$OTOOL_FOR_TARGET"; then
13193 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13194else
13195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13196for as_dir in $PATH
13197do
13198 IFS=$as_save_IFS
13199 test -z "$as_dir" && as_dir=.
13200 for ac_exec_ext in '' $ac_executable_extensions; do
13201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13202 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
13203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13204 break 2
13205 fi
13206done
13207 done
13208IFS=$as_save_IFS
13209
13210fi
13211fi
13212OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13213if test -n "$OTOOL_FOR_TARGET"; then
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13215$as_echo "$OTOOL_FOR_TARGET" >&6; }
13216else
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13218$as_echo "no" >&6; }
13219fi
13220
13221
13222 fi
13223 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
13224 done
13225fi
13226
13227if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
13228 set dummy otool
13229 if test $build = $target ; then
13230 OTOOL_FOR_TARGET="$2"
13231 else
13232 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
13233 fi
13234else
13235 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
13236fi
13237
13238else
13239 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
13240fi
13241
13242
13243
13244
c47832b1 13245if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13246 if test -n "$with_build_time_tools"; then
cd9a469c 13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
13248$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
ab0da556 13249 if test -x $with_build_time_tools/ranlib; then
13250 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
13251 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
cd9a469c 13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
13253$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
ab0da556 13254 else
cd9a469c 13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13256$as_echo "no" >&6; }
ab0da556 13257 fi
c47832b1 13258 elif test $build != $host && test $have_gcc_for_target = yes; then
13259 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
b7ef8464 13260 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
13261 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c47832b1 13262 fi
13263fi
38d7211b 13264if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 13265 # Extract the first word of "ranlib", so it can be a program name with args.
13266set dummy ranlib; ac_word=$2
cd9a469c 13267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13268$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13269if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
cd9a469c 13270 $as_echo_n "(cached) " >&6
c47832b1 13271else
b30fcfae 13272 case $RANLIB_FOR_TARGET in
13273 [\\/]* | ?:[\\/]*)
c47832b1 13274 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
13275 ;;
c47832b1 13276 *)
b30fcfae 13277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13278for as_dir in $gcc_cv_tool_dirs
13279do
13280 IFS=$as_save_IFS
13281 test -z "$as_dir" && as_dir=.
cd9a469c 13282 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 13284 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 13285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 13286 break 2
13287 fi
13288done
cd9a469c 13289 done
13290IFS=$as_save_IFS
b30fcfae 13291
c47832b1 13292 ;;
13293esac
13294fi
b30fcfae 13295RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
c47832b1 13296if test -n "$RANLIB_FOR_TARGET"; then
cd9a469c 13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13298$as_echo "$RANLIB_FOR_TARGET" >&6; }
c47832b1 13299else
cd9a469c 13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13301$as_echo "no" >&6; }
c47832b1 13302fi
13303
cd9a469c 13304
c47832b1 13305fi
13306if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
95a05732 13307
13308
13309if test -n "$RANLIB_FOR_TARGET"; then
13310 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13311elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13312 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13313fi
13314
13315if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13316 for ncn_progname in ranlib; do
13317 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13318set dummy ${ncn_progname}; ac_word=$2
cd9a469c 13319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13320$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13321if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
cd9a469c 13322 $as_echo_n "(cached) " >&6
95a05732 13323else
13324 if test -n "$RANLIB_FOR_TARGET"; then
13325 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13326else
13327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13328for as_dir in $PATH
13329do
13330 IFS=$as_save_IFS
13331 test -z "$as_dir" && as_dir=.
cd9a469c 13332 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 13334 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
cd9a469c 13335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 13336 break 2
13337 fi
13338done
cd9a469c 13339 done
13340IFS=$as_save_IFS
95a05732 13341
13342fi
13343fi
13344RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13345if test -n "$RANLIB_FOR_TARGET"; then
cd9a469c 13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13347$as_echo "$RANLIB_FOR_TARGET" >&6; }
95a05732 13348else
cd9a469c 13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13350$as_echo "no" >&6; }
95a05732 13351fi
13352
cd9a469c 13353
95a05732 13354 done
13355fi
13356
13357if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 13358 for ncn_progname in ranlib; do
cd9a469c 13359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13360$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 13361 if test -x $with_build_time_tools/${ncn_progname}; then
13362 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13364$as_echo "yes" >&6; }
c47832b1 13365 break
13366 else
cd9a469c 13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13368$as_echo "no" >&6; }
c47832b1 13369 fi
13370 done
13371fi
13372
13373if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13374 for ncn_progname in ranlib; do
13375 if test -n "$ncn_target_tool_prefix"; then
13376 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
ae74ffb7 13377set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 13378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13379$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13380if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
cd9a469c 13381 $as_echo_n "(cached) " >&6
bb612911 13382else
ef8184c7 13383 if test -n "$RANLIB_FOR_TARGET"; then
13384 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
bb612911 13385else
b30fcfae 13386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13387for as_dir in $PATH
13388do
13389 IFS=$as_save_IFS
13390 test -z "$as_dir" && as_dir=.
cd9a469c 13391 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 13393 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 13394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 13395 break 2
13396 fi
13397done
cd9a469c 13398 done
13399IFS=$as_save_IFS
b30fcfae 13400
bb612911 13401fi
13402fi
b30fcfae 13403RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
ef8184c7 13404if test -n "$RANLIB_FOR_TARGET"; then
cd9a469c 13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13406$as_echo "$RANLIB_FOR_TARGET" >&6; }
bb612911 13407else
cd9a469c 13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13409$as_echo "no" >&6; }
bb612911 13410fi
13411
cd9a469c 13412
c47832b1 13413 fi
13414 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
13415 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 13416set dummy ${ncn_progname}; ac_word=$2
cd9a469c 13417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13418$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13419if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
cd9a469c 13420 $as_echo_n "(cached) " >&6
bb612911 13421else
768691b5 13422 if test -n "$RANLIB_FOR_TARGET"; then
13423 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
bb612911 13424else
b30fcfae 13425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13426for as_dir in $PATH
13427do
13428 IFS=$as_save_IFS
13429 test -z "$as_dir" && as_dir=.
cd9a469c 13430 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 13432 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
cd9a469c 13433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 13434 break 2
13435 fi
13436done
cd9a469c 13437 done
13438IFS=$as_save_IFS
b30fcfae 13439
bb612911 13440fi
13441fi
b30fcfae 13442RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
768691b5 13443if test -n "$RANLIB_FOR_TARGET"; then
cd9a469c 13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13445$as_echo "$RANLIB_FOR_TARGET" >&6; }
bb612911 13446else
cd9a469c 13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13448$as_echo "no" >&6; }
bb612911 13449fi
b30fcfae 13450
cd9a469c 13451
c47832b1 13452 fi
13453 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13454 done
13455fi
b30fcfae 13456
c47832b1 13457if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13458 set dummy ranlib
13459 if test $build = $target ; then
13460 RANLIB_FOR_TARGET="$2"
13461 else
13462 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 13463 fi
b7ef8464 13464else
13465 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
c47832b1 13466fi
768691b5 13467
ab0da556 13468else
13469 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
bb612911 13470fi
13471
c47832b1 13472
13473
13474
3f71364d 13475if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13476 if test -n "$with_build_time_tools"; then
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13478$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13479 if test -x $with_build_time_tools/readelf; then
13480 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13481 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13483$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13484 else
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13486$as_echo "no" >&6; }
13487 fi
13488 elif test $build != $host && test $have_gcc_for_target = yes; then
13489 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13490 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13491 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13492 fi
13493fi
13494if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13495 # Extract the first word of "readelf", so it can be a program name with args.
13496set dummy readelf; ac_word=$2
13497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13498$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13499if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
3f71364d 13500 $as_echo_n "(cached) " >&6
13501else
13502 case $READELF_FOR_TARGET in
13503 [\\/]* | ?:[\\/]*)
13504 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13505 ;;
13506 *)
13507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13508for as_dir in $gcc_cv_tool_dirs
13509do
13510 IFS=$as_save_IFS
13511 test -z "$as_dir" && as_dir=.
13512 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3f71364d 13514 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13516 break 2
13517 fi
13518done
13519 done
13520IFS=$as_save_IFS
13521
13522 ;;
13523esac
13524fi
13525READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13526if test -n "$READELF_FOR_TARGET"; then
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13528$as_echo "$READELF_FOR_TARGET" >&6; }
13529else
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13531$as_echo "no" >&6; }
13532fi
13533
13534
13535fi
13536if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13537
13538
13539if test -n "$READELF_FOR_TARGET"; then
13540 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13541elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13542 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13543fi
13544
13545if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13546 for ncn_progname in readelf; do
13547 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13548set dummy ${ncn_progname}; ac_word=$2
13549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13550$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13551if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
3f71364d 13552 $as_echo_n "(cached) " >&6
13553else
13554 if test -n "$READELF_FOR_TARGET"; then
13555 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13556else
13557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13558for as_dir in $PATH
13559do
13560 IFS=$as_save_IFS
13561 test -z "$as_dir" && as_dir=.
13562 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3f71364d 13564 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13566 break 2
13567 fi
13568done
13569 done
13570IFS=$as_save_IFS
13571
13572fi
13573fi
13574READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13575if test -n "$READELF_FOR_TARGET"; then
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13577$as_echo "$READELF_FOR_TARGET" >&6; }
13578else
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13580$as_echo "no" >&6; }
13581fi
13582
13583
13584 done
13585fi
13586
13587if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13588 for ncn_progname in readelf; do
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13590$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13591 if test -x $with_build_time_tools/${ncn_progname}; then
13592 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13594$as_echo "yes" >&6; }
13595 break
13596 else
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13598$as_echo "no" >&6; }
13599 fi
13600 done
13601fi
13602
13603if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13604 for ncn_progname in readelf; do
13605 if test -n "$ncn_target_tool_prefix"; then
13606 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13607set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13609$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13610if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
3f71364d 13611 $as_echo_n "(cached) " >&6
13612else
13613 if test -n "$READELF_FOR_TARGET"; then
13614 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13615else
13616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13617for as_dir in $PATH
13618do
13619 IFS=$as_save_IFS
13620 test -z "$as_dir" && as_dir=.
13621 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3f71364d 13623 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13625 break 2
13626 fi
13627done
13628 done
13629IFS=$as_save_IFS
13630
13631fi
13632fi
13633READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13634if test -n "$READELF_FOR_TARGET"; then
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13636$as_echo "$READELF_FOR_TARGET" >&6; }
13637else
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13639$as_echo "no" >&6; }
13640fi
13641
13642
13643 fi
13644 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13645 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13646set dummy ${ncn_progname}; ac_word=$2
13647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13648$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13649if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
3f71364d 13650 $as_echo_n "(cached) " >&6
13651else
13652 if test -n "$READELF_FOR_TARGET"; then
13653 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13654else
13655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13656for as_dir in $PATH
13657do
13658 IFS=$as_save_IFS
13659 test -z "$as_dir" && as_dir=.
13660 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3f71364d 13662 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13664 break 2
13665 fi
13666done
13667 done
13668IFS=$as_save_IFS
13669
13670fi
13671fi
13672READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13673if test -n "$READELF_FOR_TARGET"; then
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13675$as_echo "$READELF_FOR_TARGET" >&6; }
13676else
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13678$as_echo "no" >&6; }
13679fi
13680
13681
13682 fi
13683 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13684 done
13685fi
13686
13687if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13688 set dummy readelf
13689 if test $build = $target ; then
13690 READELF_FOR_TARGET="$2"
13691 else
13692 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13693 fi
13694else
13695 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13696fi
13697
13698else
13699 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13700fi
13701
13702
13703
13704
c47832b1 13705if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13706 if test -n "$with_build_time_tools"; then
cd9a469c 13707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13708$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
ab0da556 13709 if test -x $with_build_time_tools/strip; then
13710 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13711 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
cd9a469c 13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13713$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
ab0da556 13714 else
cd9a469c 13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13716$as_echo "no" >&6; }
ab0da556 13717 fi
c47832b1 13718 elif test $build != $host && test $have_gcc_for_target = yes; then
13719 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
b7ef8464 13720 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13721 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c47832b1 13722 fi
13723fi
38d7211b 13724if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 13725 # Extract the first word of "strip", so it can be a program name with args.
13726set dummy strip; ac_word=$2
cd9a469c 13727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13728$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13729if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
cd9a469c 13730 $as_echo_n "(cached) " >&6
c47832b1 13731else
b30fcfae 13732 case $STRIP_FOR_TARGET in
13733 [\\/]* | ?:[\\/]*)
c47832b1 13734 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13735 ;;
c47832b1 13736 *)
b30fcfae 13737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13738for as_dir in $gcc_cv_tool_dirs
13739do
13740 IFS=$as_save_IFS
13741 test -z "$as_dir" && as_dir=.
cd9a469c 13742 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 13744 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 13745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 13746 break 2
13747 fi
13748done
cd9a469c 13749 done
13750IFS=$as_save_IFS
b30fcfae 13751
c47832b1 13752 ;;
13753esac
13754fi
b30fcfae 13755STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
c47832b1 13756if test -n "$STRIP_FOR_TARGET"; then
cd9a469c 13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13758$as_echo "$STRIP_FOR_TARGET" >&6; }
c47832b1 13759else
cd9a469c 13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13761$as_echo "no" >&6; }
c47832b1 13762fi
13763
cd9a469c 13764
c47832b1 13765fi
13766if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
95a05732 13767
13768
13769if test -n "$STRIP_FOR_TARGET"; then
13770 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13771elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13772 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13773fi
13774
13775if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13776 for ncn_progname in strip; do
13777 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13778set dummy ${ncn_progname}; ac_word=$2
cd9a469c 13779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13780$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13781if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
cd9a469c 13782 $as_echo_n "(cached) " >&6
95a05732 13783else
13784 if test -n "$STRIP_FOR_TARGET"; then
13785 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13786else
13787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13788for as_dir in $PATH
13789do
13790 IFS=$as_save_IFS
13791 test -z "$as_dir" && as_dir=.
cd9a469c 13792 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 13794 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
cd9a469c 13795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 13796 break 2
13797 fi
13798done
cd9a469c 13799 done
13800IFS=$as_save_IFS
95a05732 13801
13802fi
13803fi
13804STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13805if test -n "$STRIP_FOR_TARGET"; then
cd9a469c 13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13807$as_echo "$STRIP_FOR_TARGET" >&6; }
95a05732 13808else
cd9a469c 13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13810$as_echo "no" >&6; }
95a05732 13811fi
13812
cd9a469c 13813
95a05732 13814 done
13815fi
13816
13817if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 13818 for ncn_progname in strip; do
cd9a469c 13819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13820$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 13821 if test -x $with_build_time_tools/${ncn_progname}; then
13822 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13824$as_echo "yes" >&6; }
c47832b1 13825 break
13826 else
cd9a469c 13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13828$as_echo "no" >&6; }
c47832b1 13829 fi
13830 done
13831fi
13832
13833if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13834 for ncn_progname in strip; do
13835 if test -n "$ncn_target_tool_prefix"; then
13836 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9fec3fa8 13837set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 13838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13839$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13840if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
cd9a469c 13841 $as_echo_n "(cached) " >&6
ae48753c 13842else
13843 if test -n "$STRIP_FOR_TARGET"; then
b30fcfae 13844 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13845else
13846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13847for as_dir in $PATH
13848do
13849 IFS=$as_save_IFS
13850 test -z "$as_dir" && as_dir=.
cd9a469c 13851 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 13853 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 13854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 13855 break 2
13856 fi
13857done
cd9a469c 13858 done
13859IFS=$as_save_IFS
b30fcfae 13860
9fec3fa8 13861fi
13862fi
b30fcfae 13863STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
9fec3fa8 13864if test -n "$STRIP_FOR_TARGET"; then
cd9a469c 13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13866$as_echo "$STRIP_FOR_TARGET" >&6; }
9fec3fa8 13867else
cd9a469c 13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13869$as_echo "no" >&6; }
9fec3fa8 13870fi
13871
cd9a469c 13872
c47832b1 13873 fi
13874 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13875 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9fec3fa8 13876set dummy ${ncn_progname}; ac_word=$2
cd9a469c 13877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13878$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13879if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
cd9a469c 13880 $as_echo_n "(cached) " >&6
9fec3fa8 13881else
13882 if test -n "$STRIP_FOR_TARGET"; then
13883 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13884else
b30fcfae 13885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13886for as_dir in $PATH
13887do
13888 IFS=$as_save_IFS
13889 test -z "$as_dir" && as_dir=.
cd9a469c 13890 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 13892 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
cd9a469c 13893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 13894 break 2
13895 fi
13896done
cd9a469c 13897 done
13898IFS=$as_save_IFS
b30fcfae 13899
9fec3fa8 13900fi
13901fi
b30fcfae 13902STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
9fec3fa8 13903if test -n "$STRIP_FOR_TARGET"; then
cd9a469c 13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13905$as_echo "$STRIP_FOR_TARGET" >&6; }
9fec3fa8 13906else
cd9a469c 13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13908$as_echo "no" >&6; }
9fec3fa8 13909fi
b30fcfae 13910
cd9a469c 13911
c47832b1 13912 fi
13913 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13914 done
13915fi
b30fcfae 13916
9fec3fa8 13917if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13918 set dummy strip
13919 if test $build = $target ; then
13920 STRIP_FOR_TARGET="$2"
13921 else
13922 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13923 fi
b7ef8464 13924else
13925 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
9fec3fa8 13926fi
13927
ab0da556 13928else
13929 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
c47832b1 13930fi
13931
13932
13933
13934
13935if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13936 if test -n "$with_build_time_tools"; then
cd9a469c 13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13938$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
ab0da556 13939 if test -x $with_build_time_tools/windres; then
13940 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13941 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
cd9a469c 13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13943$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
ab0da556 13944 else
cd9a469c 13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13946$as_echo "no" >&6; }
ab0da556 13947 fi
c47832b1 13948 elif test $build != $host && test $have_gcc_for_target = yes; then
13949 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
b7ef8464 13950 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13951 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c47832b1 13952 fi
13953fi
38d7211b 13954if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 13955 # Extract the first word of "windres", so it can be a program name with args.
13956set dummy windres; ac_word=$2
cd9a469c 13957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13958$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13959if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
cd9a469c 13960 $as_echo_n "(cached) " >&6
c47832b1 13961else
b30fcfae 13962 case $WINDRES_FOR_TARGET in
13963 [\\/]* | ?:[\\/]*)
c47832b1 13964 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13965 ;;
c47832b1 13966 *)
b30fcfae 13967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13968for as_dir in $gcc_cv_tool_dirs
13969do
13970 IFS=$as_save_IFS
13971 test -z "$as_dir" && as_dir=.
cd9a469c 13972 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 13974 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 13975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 13976 break 2
13977 fi
13978done
cd9a469c 13979 done
13980IFS=$as_save_IFS
b30fcfae 13981
c47832b1 13982 ;;
13983esac
13984fi
b30fcfae 13985WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
c47832b1 13986if test -n "$WINDRES_FOR_TARGET"; then
cd9a469c 13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13988$as_echo "$WINDRES_FOR_TARGET" >&6; }
c47832b1 13989else
cd9a469c 13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13991$as_echo "no" >&6; }
c47832b1 13992fi
13993
cd9a469c 13994
c47832b1 13995fi
13996if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
95a05732 13997
13998
13999if test -n "$WINDRES_FOR_TARGET"; then
14000 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
14001elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
14002 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
14003fi
14004
14005if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
14006 for ncn_progname in windres; do
14007 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14008set dummy ${ncn_progname}; ac_word=$2
cd9a469c 14009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14010$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 14011if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
cd9a469c 14012 $as_echo_n "(cached) " >&6
95a05732 14013else
14014 if test -n "$WINDRES_FOR_TARGET"; then
14015 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
14016else
14017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14018for as_dir in $PATH
14019do
14020 IFS=$as_save_IFS
14021 test -z "$as_dir" && as_dir=.
cd9a469c 14022 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 14023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 14024 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
cd9a469c 14025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 14026 break 2
14027 fi
14028done
cd9a469c 14029 done
14030IFS=$as_save_IFS
95a05732 14031
14032fi
14033fi
14034WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
14035if test -n "$WINDRES_FOR_TARGET"; then
cd9a469c 14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14037$as_echo "$WINDRES_FOR_TARGET" >&6; }
95a05732 14038else
cd9a469c 14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14040$as_echo "no" >&6; }
95a05732 14041fi
14042
cd9a469c 14043
95a05732 14044 done
14045fi
14046
14047if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 14048 for ncn_progname in windres; do
cd9a469c 14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14050$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 14051 if test -x $with_build_time_tools/${ncn_progname}; then
14052 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14054$as_echo "yes" >&6; }
c47832b1 14055 break
14056 else
cd9a469c 14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14058$as_echo "no" >&6; }
c47832b1 14059 fi
14060 done
14061fi
14062
14063if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
14064 for ncn_progname in windres; do
14065 if test -n "$ncn_target_tool_prefix"; then
14066 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 14067set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 14068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14069$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 14070if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
cd9a469c 14071 $as_echo_n "(cached) " >&6
bb612911 14072else
ef8184c7 14073 if test -n "$WINDRES_FOR_TARGET"; then
14074 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
bb612911 14075else
b30fcfae 14076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14077for as_dir in $PATH
14078do
14079 IFS=$as_save_IFS
14080 test -z "$as_dir" && as_dir=.
cd9a469c 14081 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 14082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 14083 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 14084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 14085 break 2
14086 fi
14087done
cd9a469c 14088 done
14089IFS=$as_save_IFS
b30fcfae 14090
bb612911 14091fi
14092fi
b30fcfae 14093WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
ef8184c7 14094if test -n "$WINDRES_FOR_TARGET"; then
cd9a469c 14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14096$as_echo "$WINDRES_FOR_TARGET" >&6; }
bb612911 14097else
cd9a469c 14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14099$as_echo "no" >&6; }
bb612911 14100fi
14101
cd9a469c 14102
c47832b1 14103 fi
14104 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
14105 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 14106set dummy ${ncn_progname}; ac_word=$2
cd9a469c 14107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14108$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 14109if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
cd9a469c 14110 $as_echo_n "(cached) " >&6
bb612911 14111else
768691b5 14112 if test -n "$WINDRES_FOR_TARGET"; then
14113 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
bb612911 14114else
b30fcfae 14115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14116for as_dir in $PATH
14117do
14118 IFS=$as_save_IFS
14119 test -z "$as_dir" && as_dir=.
cd9a469c 14120 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 14121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 14122 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
cd9a469c 14123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 14124 break 2
14125 fi
14126done
cd9a469c 14127 done
14128IFS=$as_save_IFS
b30fcfae 14129
bb612911 14130fi
14131fi
b30fcfae 14132WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
768691b5 14133if test -n "$WINDRES_FOR_TARGET"; then
cd9a469c 14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14135$as_echo "$WINDRES_FOR_TARGET" >&6; }
bb612911 14136else
cd9a469c 14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14138$as_echo "no" >&6; }
bb612911 14139fi
b30fcfae 14140
cd9a469c 14141
c47832b1 14142 fi
14143 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
14144 done
14145fi
b30fcfae 14146
768691b5 14147if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
14148 set dummy windres
14149 if test $build = $target ; then
14150 WINDRES_FOR_TARGET="$2"
bb612911 14151 else
768691b5 14152 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 14153 fi
b7ef8464 14154else
14155 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
bb612911 14156fi
14157
ab0da556 14158else
14159 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
c47832b1 14160fi
14161
805e22b2 14162
75d6a0a9 14163
14164
14165if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14166 if test -n "$with_build_time_tools"; then
cd9a469c 14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
14168$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
75d6a0a9 14169 if test -x $with_build_time_tools/windmc; then
14170 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
14171 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
cd9a469c 14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
14173$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
75d6a0a9 14174 else
cd9a469c 14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14176$as_echo "no" >&6; }
75d6a0a9 14177 fi
14178 elif test $build != $host && test $have_gcc_for_target = yes; then
14179 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
b7ef8464 14180 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
14181 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
75d6a0a9 14182 fi
14183fi
14184if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14185 # Extract the first word of "windmc", so it can be a program name with args.
14186set dummy windmc; ac_word=$2
cd9a469c 14187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14188$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 14189if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
cd9a469c 14190 $as_echo_n "(cached) " >&6
75d6a0a9 14191else
14192 case $WINDMC_FOR_TARGET in
14193 [\\/]* | ?:[\\/]*)
14194 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
14195 ;;
14196 *)
14197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14198for as_dir in $gcc_cv_tool_dirs
14199do
14200 IFS=$as_save_IFS
14201 test -z "$as_dir" && as_dir=.
cd9a469c 14202 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 14203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
75d6a0a9 14204 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 14205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 14206 break 2
14207 fi
14208done
cd9a469c 14209 done
14210IFS=$as_save_IFS
75d6a0a9 14211
14212 ;;
14213esac
14214fi
14215WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
75d6a0a9 14216if test -n "$WINDMC_FOR_TARGET"; then
cd9a469c 14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14218$as_echo "$WINDMC_FOR_TARGET" >&6; }
75d6a0a9 14219else
cd9a469c 14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14221$as_echo "no" >&6; }
75d6a0a9 14222fi
14223
cd9a469c 14224
75d6a0a9 14225fi
14226if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14227
14228
14229if test -n "$WINDMC_FOR_TARGET"; then
14230 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14231elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14232 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14233fi
14234
14235if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14236 for ncn_progname in windmc; do
14237 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14238set dummy ${ncn_progname}; ac_word=$2
cd9a469c 14239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14240$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 14241if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
cd9a469c 14242 $as_echo_n "(cached) " >&6
75d6a0a9 14243else
14244 if test -n "$WINDMC_FOR_TARGET"; then
14245 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14246else
14247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14248for as_dir in $PATH
14249do
14250 IFS=$as_save_IFS
14251 test -z "$as_dir" && as_dir=.
cd9a469c 14252 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 14253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
75d6a0a9 14254 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
cd9a469c 14255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 14256 break 2
14257 fi
14258done
cd9a469c 14259 done
14260IFS=$as_save_IFS
75d6a0a9 14261
14262fi
14263fi
14264WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14265if test -n "$WINDMC_FOR_TARGET"; then
cd9a469c 14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14267$as_echo "$WINDMC_FOR_TARGET" >&6; }
75d6a0a9 14268else
cd9a469c 14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14270$as_echo "no" >&6; }
75d6a0a9 14271fi
14272
cd9a469c 14273
75d6a0a9 14274 done
14275fi
14276
14277if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14278 for ncn_progname in windmc; do
cd9a469c 14279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14280$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
75d6a0a9 14281 if test -x $with_build_time_tools/${ncn_progname}; then
14282 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14284$as_echo "yes" >&6; }
75d6a0a9 14285 break
14286 else
cd9a469c 14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14288$as_echo "no" >&6; }
75d6a0a9 14289 fi
14290 done
14291fi
14292
14293if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14294 for ncn_progname in windmc; do
14295 if test -n "$ncn_target_tool_prefix"; then
14296 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14297set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 14298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14299$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 14300if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
cd9a469c 14301 $as_echo_n "(cached) " >&6
75d6a0a9 14302else
14303 if test -n "$WINDMC_FOR_TARGET"; then
14304 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14305else
14306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14307for as_dir in $PATH
14308do
14309 IFS=$as_save_IFS
14310 test -z "$as_dir" && as_dir=.
cd9a469c 14311 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 14312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
75d6a0a9 14313 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 14314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 14315 break 2
14316 fi
14317done
cd9a469c 14318 done
14319IFS=$as_save_IFS
75d6a0a9 14320
14321fi
14322fi
14323WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14324if test -n "$WINDMC_FOR_TARGET"; then
cd9a469c 14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14326$as_echo "$WINDMC_FOR_TARGET" >&6; }
75d6a0a9 14327else
cd9a469c 14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14329$as_echo "no" >&6; }
75d6a0a9 14330fi
14331
cd9a469c 14332
75d6a0a9 14333 fi
14334 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
14335 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14336set dummy ${ncn_progname}; ac_word=$2
cd9a469c 14337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14338$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 14339if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
cd9a469c 14340 $as_echo_n "(cached) " >&6
75d6a0a9 14341else
14342 if test -n "$WINDMC_FOR_TARGET"; then
14343 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14344else
14345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14346for as_dir in $PATH
14347do
14348 IFS=$as_save_IFS
14349 test -z "$as_dir" && as_dir=.
cd9a469c 14350 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 14351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
75d6a0a9 14352 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
cd9a469c 14353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 14354 break 2
14355 fi
14356done
cd9a469c 14357 done
14358IFS=$as_save_IFS
75d6a0a9 14359
14360fi
14361fi
14362WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14363if test -n "$WINDMC_FOR_TARGET"; then
cd9a469c 14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14365$as_echo "$WINDMC_FOR_TARGET" >&6; }
75d6a0a9 14366else
cd9a469c 14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14368$as_echo "no" >&6; }
75d6a0a9 14369fi
14370
cd9a469c 14371
75d6a0a9 14372 fi
14373 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
14374 done
14375fi
14376
14377if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
14378 set dummy windmc
14379 if test $build = $target ; then
14380 WINDMC_FOR_TARGET="$2"
14381 else
14382 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14383 fi
b7ef8464 14384else
14385 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
75d6a0a9 14386fi
14387
14388else
14389 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14390fi
14391
14392
f5aebe3e 14393RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
14394
cd9a469c 14395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
14396$as_echo_n "checking where to find the target ar... " >&6; }
f5aebe3e 14397if test "x${build}" != "x${host}" ; then
c47832b1 14398 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14399 # We already found the complete path
a6c599b5 14400 ac_dir=`dirname $AR_FOR_TARGET`
cd9a469c 14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14402$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14403 else
14404 # Canadian cross, just use what we found
cd9a469c 14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14406$as_echo "pre-installed" >&6; }
c47832b1 14407 fi
f5aebe3e 14408else
14409 ok=yes
14410 case " ${configdirs} " in
14411 *" binutils "*) ;;
14412 *) ok=no ;;
14413 esac
b30fcfae 14414
f5aebe3e 14415 if test $ok = yes; then
14416 # An in-tree tool is available and we can use it
14417 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
cd9a469c 14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14419$as_echo "just compiled" >&6; }
c47832b1 14420 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14421 # We already found the complete path
a6c599b5 14422 ac_dir=`dirname $AR_FOR_TARGET`
cd9a469c 14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14424$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14425 elif test "x$target" = "x$host"; then
14426 # We can use an host tool
14427 AR_FOR_TARGET='$(AR)'
cd9a469c 14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14429$as_echo "host tool" >&6; }
f5aebe3e 14430 else
14431 # We need a cross tool
cd9a469c 14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14433$as_echo "pre-installed" >&6; }
f5aebe3e 14434 fi
14435fi
a83ffacf 14436
cd9a469c 14437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14438$as_echo_n "checking where to find the target as... " >&6; }
f5aebe3e 14439if test "x${build}" != "x${host}" ; then
c47832b1 14440 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14441 # We already found the complete path
a6c599b5 14442 ac_dir=`dirname $AS_FOR_TARGET`
cd9a469c 14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14444$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14445 else
14446 # Canadian cross, just use what we found
cd9a469c 14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14448$as_echo "pre-installed" >&6; }
c47832b1 14449 fi
f5aebe3e 14450else
14451 ok=yes
14452 case " ${configdirs} " in
14453 *" gas "*) ;;
14454 *) ok=no ;;
14455 esac
b30fcfae 14456
f5aebe3e 14457 if test $ok = yes; then
14458 # An in-tree tool is available and we can use it
14459 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
cd9a469c 14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14461$as_echo "just compiled" >&6; }
c47832b1 14462 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14463 # We already found the complete path
a6c599b5 14464 ac_dir=`dirname $AS_FOR_TARGET`
cd9a469c 14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14466$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14467 elif test "x$target" = "x$host"; then
14468 # We can use an host tool
14469 AS_FOR_TARGET='$(AS)'
cd9a469c 14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14471$as_echo "host tool" >&6; }
f5aebe3e 14472 else
14473 # We need a cross tool
cd9a469c 14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14475$as_echo "pre-installed" >&6; }
f5aebe3e 14476 fi
14477fi
a83ffacf 14478
cd9a469c 14479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14480$as_echo_n "checking where to find the target cc... " >&6; }
f5aebe3e 14481if test "x${build}" != "x${host}" ; then
c47832b1 14482 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14483 # We already found the complete path
a6c599b5 14484 ac_dir=`dirname $CC_FOR_TARGET`
cd9a469c 14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14486$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14487 else
14488 # Canadian cross, just use what we found
cd9a469c 14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14490$as_echo "pre-installed" >&6; }
c47832b1 14491 fi
f5aebe3e 14492else
14493 ok=yes
14494 case " ${configdirs} " in
14495 *" gcc "*) ;;
14496 *) ok=no ;;
14497 esac
b30fcfae 14498
f5aebe3e 14499 if test $ok = yes; then
14500 # An in-tree tool is available and we can use it
14501 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
cd9a469c 14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14503$as_echo "just compiled" >&6; }
c47832b1 14504 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14505 # We already found the complete path
a6c599b5 14506 ac_dir=`dirname $CC_FOR_TARGET`
cd9a469c 14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14508$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14509 elif test "x$target" = "x$host"; then
14510 # We can use an host tool
14511 CC_FOR_TARGET='$(CC)'
cd9a469c 14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14513$as_echo "host tool" >&6; }
f5aebe3e 14514 else
14515 # We need a cross tool
cd9a469c 14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14517$as_echo "pre-installed" >&6; }
f5aebe3e 14518 fi
14519fi
a83ffacf 14520
cd9a469c 14521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14522$as_echo_n "checking where to find the target c++... " >&6; }
f5aebe3e 14523if test "x${build}" != "x${host}" ; then
c47832b1 14524 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14525 # We already found the complete path
a6c599b5 14526 ac_dir=`dirname $CXX_FOR_TARGET`
cd9a469c 14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14528$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14529 else
14530 # Canadian cross, just use what we found
cd9a469c 14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14532$as_echo "pre-installed" >&6; }
c47832b1 14533 fi
f5aebe3e 14534else
14535 ok=yes
14536 case " ${configdirs} " in
14537 *" gcc "*) ;;
14538 *) ok=no ;;
14539 esac
14540 case ,${enable_languages}, in
14541 *,c++,*) ;;
14542 *) ok=no ;;
14543 esac
14544 if test $ok = yes; then
14545 # An in-tree tool is available and we can use it
b710ec85 14546 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'
cd9a469c 14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14548$as_echo "just compiled" >&6; }
c47832b1 14549 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14550 # We already found the complete path
a6c599b5 14551 ac_dir=`dirname $CXX_FOR_TARGET`
cd9a469c 14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14553$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14554 elif test "x$target" = "x$host"; then
14555 # We can use an host tool
14556 CXX_FOR_TARGET='$(CXX)'
cd9a469c 14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14558$as_echo "host tool" >&6; }
f5aebe3e 14559 else
14560 # We need a cross tool
cd9a469c 14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14562$as_echo "pre-installed" >&6; }
f5aebe3e 14563 fi
14564fi
a83ffacf 14565
cd9a469c 14566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14567$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
f5aebe3e 14568if test "x${build}" != "x${host}" ; then
c47832b1 14569 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14570 # We already found the complete path
a6c599b5 14571 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
cd9a469c 14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14573$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14574 else
14575 # Canadian cross, just use what we found
cd9a469c 14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14577$as_echo "pre-installed" >&6; }
c47832b1 14578 fi
f5aebe3e 14579else
14580 ok=yes
14581 case " ${configdirs} " in
14582 *" gcc "*) ;;
14583 *) ok=no ;;
14584 esac
14585 case ,${enable_languages}, in
14586 *,c++,*) ;;
14587 *) ok=no ;;
14588 esac
14589 if test $ok = yes; then
14590 # An in-tree tool is available and we can use it
b710ec85 14591 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'
cd9a469c 14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14593$as_echo "just compiled" >&6; }
c47832b1 14594 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14595 # We already found the complete path
a6c599b5 14596 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
cd9a469c 14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14598$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14599 elif test "x$target" = "x$host"; then
14600 # We can use an host tool
14601 RAW_CXX_FOR_TARGET='$(CXX)'
cd9a469c 14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14603$as_echo "host tool" >&6; }
f5aebe3e 14604 else
14605 # We need a cross tool
cd9a469c 14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14607$as_echo "pre-installed" >&6; }
f5aebe3e 14608 fi
14609fi
a83ffacf 14610
cd9a469c 14611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14612$as_echo_n "checking where to find the target dlltool... " >&6; }
f5aebe3e 14613if test "x${build}" != "x${host}" ; then
c47832b1 14614 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14615 # We already found the complete path
a6c599b5 14616 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
cd9a469c 14617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14618$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14619 else
14620 # Canadian cross, just use what we found
cd9a469c 14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14622$as_echo "pre-installed" >&6; }
c47832b1 14623 fi
f5aebe3e 14624else
14625 ok=yes
14626 case " ${configdirs} " in
14627 *" binutils "*) ;;
14628 *) ok=no ;;
14629 esac
b30fcfae 14630
f5aebe3e 14631 if test $ok = yes; then
14632 # An in-tree tool is available and we can use it
14633 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
cd9a469c 14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14635$as_echo "just compiled" >&6; }
c47832b1 14636 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14637 # We already found the complete path
a6c599b5 14638 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
cd9a469c 14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14640$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14641 elif test "x$target" = "x$host"; then
14642 # We can use an host tool
14643 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
cd9a469c 14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14645$as_echo "host tool" >&6; }
f5aebe3e 14646 else
14647 # We need a cross tool
cd9a469c 14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14649$as_echo "pre-installed" >&6; }
f5aebe3e 14650 fi
14651fi
a83ffacf 14652
cd9a469c 14653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14654$as_echo_n "checking where to find the target gcc... " >&6; }
f5aebe3e 14655if test "x${build}" != "x${host}" ; then
c47832b1 14656 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14657 # We already found the complete path
a6c599b5 14658 ac_dir=`dirname $GCC_FOR_TARGET`
cd9a469c 14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14660$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14661 else
14662 # Canadian cross, just use what we found
cd9a469c 14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14664$as_echo "pre-installed" >&6; }
c47832b1 14665 fi
f5aebe3e 14666else
14667 ok=yes
14668 case " ${configdirs} " in
14669 *" gcc "*) ;;
14670 *) ok=no ;;
14671 esac
b30fcfae 14672
f5aebe3e 14673 if test $ok = yes; then
14674 # An in-tree tool is available and we can use it
14675 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
cd9a469c 14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14677$as_echo "just compiled" >&6; }
c47832b1 14678 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14679 # We already found the complete path
a6c599b5 14680 ac_dir=`dirname $GCC_FOR_TARGET`
cd9a469c 14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14682$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14683 elif test "x$target" = "x$host"; then
14684 # We can use an host tool
14685 GCC_FOR_TARGET='$()'
cd9a469c 14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14687$as_echo "host tool" >&6; }
f5aebe3e 14688 else
14689 # We need a cross tool
cd9a469c 14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14691$as_echo "pre-installed" >&6; }
f5aebe3e 14692 fi
14693fi
a83ffacf 14694
cd9a469c 14695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14696$as_echo_n "checking where to find the target gfortran... " >&6; }
f5aebe3e 14697if test "x${build}" != "x${host}" ; then
c47832b1 14698 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14699 # We already found the complete path
a6c599b5 14700 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
cd9a469c 14701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14702$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14703 else
14704 # Canadian cross, just use what we found
cd9a469c 14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14706$as_echo "pre-installed" >&6; }
c47832b1 14707 fi
f5aebe3e 14708else
14709 ok=yes
14710 case " ${configdirs} " in
14711 *" gcc "*) ;;
14712 *) ok=no ;;
14713 esac
14714 case ,${enable_languages}, in
14715 *,fortran,*) ;;
14716 *) ok=no ;;
14717 esac
14718 if test $ok = yes; then
14719 # An in-tree tool is available and we can use it
14720 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
cd9a469c 14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14722$as_echo "just compiled" >&6; }
c47832b1 14723 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14724 # We already found the complete path
a6c599b5 14725 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
cd9a469c 14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14727$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14728 elif test "x$target" = "x$host"; then
14729 # We can use an host tool
14730 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
cd9a469c 14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14732$as_echo "host tool" >&6; }
f5aebe3e 14733 else
14734 # We need a cross tool
cd9a469c 14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14736$as_echo "pre-installed" >&6; }
f5aebe3e 14737 fi
14738fi
a83ffacf 14739
5ff5b630 14740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14741$as_echo_n "checking where to find the target gccgo... " >&6; }
14742if test "x${build}" != "x${host}" ; then
14743 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14744 # We already found the complete path
14745 ac_dir=`dirname $GOC_FOR_TARGET`
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14747$as_echo "pre-installed in $ac_dir" >&6; }
14748 else
14749 # Canadian cross, just use what we found
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14751$as_echo "pre-installed" >&6; }
14752 fi
14753else
14754 ok=yes
14755 case " ${configdirs} " in
14756 *" gcc "*) ;;
14757 *) ok=no ;;
14758 esac
14759 case ,${enable_languages}, in
14760 *,go,*) ;;
14761 *) ok=no ;;
14762 esac
14763 if test $ok = yes; then
14764 # An in-tree tool is available and we can use it
14765 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14767$as_echo "just compiled" >&6; }
14768 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14769 # We already found the complete path
14770 ac_dir=`dirname $GOC_FOR_TARGET`
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14772$as_echo "pre-installed in $ac_dir" >&6; }
14773 elif test "x$target" = "x$host"; then
14774 # We can use an host tool
14775 GOC_FOR_TARGET='$(GOC)'
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14777$as_echo "host tool" >&6; }
14778 else
14779 # We need a cross tool
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14781$as_echo "pre-installed" >&6; }
14782 fi
14783fi
14784
03385ed3 14785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
14786$as_echo_n "checking where to find the target gdc... " >&6; }
14787if test "x${build}" != "x${host}" ; then
14788 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
14789 # We already found the complete path
14790 ac_dir=`dirname $GDC_FOR_TARGET`
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14792$as_echo "pre-installed in $ac_dir" >&6; }
14793 else
14794 # Canadian cross, just use what we found
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14796$as_echo "pre-installed" >&6; }
14797 fi
14798else
14799 ok=yes
14800 case " ${configdirs} " in
14801 *" gcc "*) ;;
14802 *) ok=no ;;
14803 esac
14804 case ,${enable_languages}, in
14805 *,d,*) ;;
14806 *) ok=no ;;
14807 esac
14808 if test $ok = yes; then
14809 # An in-tree tool is available and we can use it
14810 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14812$as_echo "just compiled" >&6; }
14813 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
14814 # We already found the complete path
14815 ac_dir=`dirname $GDC_FOR_TARGET`
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14817$as_echo "pre-installed in $ac_dir" >&6; }
14818 elif test "x$target" = "x$host"; then
14819 # We can use an host tool
14820 GDC_FOR_TARGET='$(GDC)'
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14822$as_echo "host tool" >&6; }
14823 else
14824 # We need a cross tool
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14826$as_echo "pre-installed" >&6; }
14827 fi
14828fi
14829
cd9a469c 14830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14831$as_echo_n "checking where to find the target ld... " >&6; }
f5aebe3e 14832if test "x${build}" != "x${host}" ; then
c47832b1 14833 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14834 # We already found the complete path
a6c599b5 14835 ac_dir=`dirname $LD_FOR_TARGET`
cd9a469c 14836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14837$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14838 else
14839 # Canadian cross, just use what we found
cd9a469c 14840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14841$as_echo "pre-installed" >&6; }
c47832b1 14842 fi
f5aebe3e 14843else
14844 ok=yes
14845 case " ${configdirs} " in
14846 *" ld "*) ;;
14847 *) ok=no ;;
14848 esac
b30fcfae 14849
f5aebe3e 14850 if test $ok = yes; then
14851 # An in-tree tool is available and we can use it
14852 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
cd9a469c 14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14854$as_echo "just compiled" >&6; }
c47832b1 14855 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14856 # We already found the complete path
a6c599b5 14857 ac_dir=`dirname $LD_FOR_TARGET`
cd9a469c 14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14859$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14860 elif test "x$target" = "x$host"; then
14861 # We can use an host tool
14862 LD_FOR_TARGET='$(LD)'
cd9a469c 14863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14864$as_echo "host tool" >&6; }
f5aebe3e 14865 else
14866 # We need a cross tool
cd9a469c 14867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14868$as_echo "pre-installed" >&6; }
f5aebe3e 14869 fi
14870fi
a83ffacf 14871
cd9a469c 14872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14873$as_echo_n "checking where to find the target lipo... " >&6; }
f5aebe3e 14874if test "x${build}" != "x${host}" ; then
c47832b1 14875 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14876 # We already found the complete path
a6c599b5 14877 ac_dir=`dirname $LIPO_FOR_TARGET`
cd9a469c 14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14879$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14880 else
14881 # Canadian cross, just use what we found
cd9a469c 14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14883$as_echo "pre-installed" >&6; }
c47832b1 14884 fi
f5aebe3e 14885else
c47832b1 14886 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14887 # We already found the complete path
a6c599b5 14888 ac_dir=`dirname $LIPO_FOR_TARGET`
cd9a469c 14889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14890$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14891 elif test "x$target" = "x$host"; then
f5aebe3e 14892 # We can use an host tool
14893 LIPO_FOR_TARGET='$(LIPO)'
cd9a469c 14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14895$as_echo "host tool" >&6; }
f5aebe3e 14896 else
14897 # We need a cross tool
cd9a469c 14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14899$as_echo "pre-installed" >&6; }
f5aebe3e 14900 fi
14901fi
a83ffacf 14902
cd9a469c 14903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14904$as_echo_n "checking where to find the target nm... " >&6; }
f5aebe3e 14905if test "x${build}" != "x${host}" ; then
c47832b1 14906 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14907 # We already found the complete path
a6c599b5 14908 ac_dir=`dirname $NM_FOR_TARGET`
cd9a469c 14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14910$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14911 else
14912 # Canadian cross, just use what we found
cd9a469c 14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14914$as_echo "pre-installed" >&6; }
c47832b1 14915 fi
f5aebe3e 14916else
14917 ok=yes
14918 case " ${configdirs} " in
14919 *" binutils "*) ;;
14920 *) ok=no ;;
14921 esac
b30fcfae 14922
f5aebe3e 14923 if test $ok = yes; then
14924 # An in-tree tool is available and we can use it
14925 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
cd9a469c 14926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14927$as_echo "just compiled" >&6; }
c47832b1 14928 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14929 # We already found the complete path
a6c599b5 14930 ac_dir=`dirname $NM_FOR_TARGET`
cd9a469c 14931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14932$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14933 elif test "x$target" = "x$host"; then
14934 # We can use an host tool
14935 NM_FOR_TARGET='$(NM)'
cd9a469c 14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14937$as_echo "host tool" >&6; }
f5aebe3e 14938 else
14939 # We need a cross tool
cd9a469c 14940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14941$as_echo "pre-installed" >&6; }
f5aebe3e 14942 fi
14943fi
a83ffacf 14944
fc740d70 14945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14946$as_echo_n "checking where to find the target objcopy... " >&6; }
14947if test "x${build}" != "x${host}" ; then
14948 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14949 # We already found the complete path
14950 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14952$as_echo "pre-installed in $ac_dir" >&6; }
14953 else
14954 # Canadian cross, just use what we found
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14956$as_echo "pre-installed" >&6; }
14957 fi
14958else
14959 ok=yes
14960 case " ${configdirs} " in
14961 *" binutils "*) ;;
14962 *) ok=no ;;
14963 esac
14964
14965 if test $ok = yes; then
14966 # An in-tree tool is available and we can use it
14967 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14969$as_echo "just compiled" >&6; }
14970 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14971 # We already found the complete path
14972 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14974$as_echo "pre-installed in $ac_dir" >&6; }
14975 elif test "x$target" = "x$host"; then
14976 # We can use an host tool
9b31ae9c 14977 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
fc740d70 14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14979$as_echo "host tool" >&6; }
14980 else
14981 # We need a cross tool
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14983$as_echo "pre-installed" >&6; }
14984 fi
14985fi
14986
cd9a469c 14987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14988$as_echo_n "checking where to find the target objdump... " >&6; }
f5aebe3e 14989if test "x${build}" != "x${host}" ; then
c47832b1 14990 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14991 # We already found the complete path
a6c599b5 14992 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
cd9a469c 14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14994$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14995 else
14996 # Canadian cross, just use what we found
cd9a469c 14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14998$as_echo "pre-installed" >&6; }
c47832b1 14999 fi
f5aebe3e 15000else
15001 ok=yes
15002 case " ${configdirs} " in
15003 *" binutils "*) ;;
15004 *) ok=no ;;
15005 esac
b30fcfae 15006
f5aebe3e 15007 if test $ok = yes; then
15008 # An in-tree tool is available and we can use it
15009 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
cd9a469c 15010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15011$as_echo "just compiled" >&6; }
c47832b1 15012 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
15013 # We already found the complete path
a6c599b5 15014 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
cd9a469c 15015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15016$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 15017 elif test "x$target" = "x$host"; then
15018 # We can use an host tool
15019 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
cd9a469c 15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15021$as_echo "host tool" >&6; }
f5aebe3e 15022 else
15023 # We need a cross tool
cd9a469c 15024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15025$as_echo "pre-installed" >&6; }
f5aebe3e 15026 fi
15027fi
a83ffacf 15028
16706a2e 15029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
15030$as_echo_n "checking where to find the target otool... " >&6; }
15031if test "x${build}" != "x${host}" ; then
15032 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
15033 # We already found the complete path
15034 ac_dir=`dirname $OTOOL_FOR_TARGET`
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15036$as_echo "pre-installed in $ac_dir" >&6; }
15037 else
15038 # Canadian cross, just use what we found
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15040$as_echo "pre-installed" >&6; }
15041 fi
15042else
15043 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
15044 # We already found the complete path
15045 ac_dir=`dirname $OTOOL_FOR_TARGET`
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15047$as_echo "pre-installed in $ac_dir" >&6; }
15048 elif test "x$target" = "x$host"; then
15049 # We can use an host tool
15050 OTOOL_FOR_TARGET='$(OTOOL)'
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15052$as_echo "host tool" >&6; }
15053 else
15054 # We need a cross tool
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15056$as_echo "pre-installed" >&6; }
15057 fi
15058fi
15059
cd9a469c 15060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
15061$as_echo_n "checking where to find the target ranlib... " >&6; }
f5aebe3e 15062if test "x${build}" != "x${host}" ; then
c47832b1 15063 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
15064 # We already found the complete path
a6c599b5 15065 ac_dir=`dirname $RANLIB_FOR_TARGET`
cd9a469c 15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15067$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 15068 else
15069 # Canadian cross, just use what we found
cd9a469c 15070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15071$as_echo "pre-installed" >&6; }
c47832b1 15072 fi
f5aebe3e 15073else
15074 ok=yes
15075 case " ${configdirs} " in
15076 *" binutils "*) ;;
15077 *) ok=no ;;
15078 esac
b30fcfae 15079
f5aebe3e 15080 if test $ok = yes; then
15081 # An in-tree tool is available and we can use it
15082 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
cd9a469c 15083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15084$as_echo "just compiled" >&6; }
c47832b1 15085 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
15086 # We already found the complete path
a6c599b5 15087 ac_dir=`dirname $RANLIB_FOR_TARGET`
cd9a469c 15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15089$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 15090 elif test "x$target" = "x$host"; then
15091 # We can use an host tool
15092 RANLIB_FOR_TARGET='$(RANLIB)'
cd9a469c 15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15094$as_echo "host tool" >&6; }
f5aebe3e 15095 else
15096 # We need a cross tool
cd9a469c 15097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15098$as_echo "pre-installed" >&6; }
f5aebe3e 15099 fi
15100fi
a83ffacf 15101
3f71364d 15102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
15103$as_echo_n "checking where to find the target readelf... " >&6; }
15104if test "x${build}" != "x${host}" ; then
15105 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
15106 # We already found the complete path
15107 ac_dir=`dirname $READELF_FOR_TARGET`
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15109$as_echo "pre-installed in $ac_dir" >&6; }
15110 else
15111 # Canadian cross, just use what we found
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15113$as_echo "pre-installed" >&6; }
15114 fi
15115else
15116 ok=yes
15117 case " ${configdirs} " in
15118 *" binutils "*) ;;
15119 *) ok=no ;;
15120 esac
15121
15122 if test $ok = yes; then
15123 # An in-tree tool is available and we can use it
15124 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15126$as_echo "just compiled" >&6; }
15127 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
15128 # We already found the complete path
15129 ac_dir=`dirname $READELF_FOR_TARGET`
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15131$as_echo "pre-installed in $ac_dir" >&6; }
15132 elif test "x$target" = "x$host"; then
15133 # We can use an host tool
15134 READELF_FOR_TARGET='$(READELF)'
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15136$as_echo "host tool" >&6; }
15137 else
15138 # We need a cross tool
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15140$as_echo "pre-installed" >&6; }
15141 fi
15142fi
15143
cd9a469c 15144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
15145$as_echo_n "checking where to find the target strip... " >&6; }
f5aebe3e 15146if test "x${build}" != "x${host}" ; then
c47832b1 15147 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
15148 # We already found the complete path
a6c599b5 15149 ac_dir=`dirname $STRIP_FOR_TARGET`
cd9a469c 15150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15151$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 15152 else
15153 # Canadian cross, just use what we found
cd9a469c 15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15155$as_echo "pre-installed" >&6; }
c47832b1 15156 fi
f5aebe3e 15157else
15158 ok=yes
15159 case " ${configdirs} " in
15160 *" binutils "*) ;;
15161 *) ok=no ;;
15162 esac
b30fcfae 15163
f5aebe3e 15164 if test $ok = yes; then
15165 # An in-tree tool is available and we can use it
2b7a4d59 15166 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
cd9a469c 15167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15168$as_echo "just compiled" >&6; }
c47832b1 15169 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
15170 # We already found the complete path
a6c599b5 15171 ac_dir=`dirname $STRIP_FOR_TARGET`
cd9a469c 15172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15173$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 15174 elif test "x$target" = "x$host"; then
15175 # We can use an host tool
15176 STRIP_FOR_TARGET='$(STRIP)'
cd9a469c 15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15178$as_echo "host tool" >&6; }
f5aebe3e 15179 else
15180 # We need a cross tool
cd9a469c 15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15182$as_echo "pre-installed" >&6; }
f5aebe3e 15183 fi
15184fi
a83ffacf 15185
cd9a469c 15186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
15187$as_echo_n "checking where to find the target windres... " >&6; }
f5aebe3e 15188if test "x${build}" != "x${host}" ; then
c47832b1 15189 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15190 # We already found the complete path
a6c599b5 15191 ac_dir=`dirname $WINDRES_FOR_TARGET`
cd9a469c 15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15193$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 15194 else
15195 # Canadian cross, just use what we found
cd9a469c 15196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15197$as_echo "pre-installed" >&6; }
c47832b1 15198 fi
f5aebe3e 15199else
15200 ok=yes
15201 case " ${configdirs} " in
15202 *" binutils "*) ;;
15203 *) ok=no ;;
15204 esac
b30fcfae 15205
f5aebe3e 15206 if test $ok = yes; then
15207 # An in-tree tool is available and we can use it
15208 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
cd9a469c 15209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15210$as_echo "just compiled" >&6; }
c47832b1 15211 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15212 # We already found the complete path
a6c599b5 15213 ac_dir=`dirname $WINDRES_FOR_TARGET`
cd9a469c 15214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15215$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 15216 elif test "x$target" = "x$host"; then
15217 # We can use an host tool
15218 WINDRES_FOR_TARGET='$(WINDRES)'
cd9a469c 15219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15220$as_echo "host tool" >&6; }
f5aebe3e 15221 else
15222 # We need a cross tool
cd9a469c 15223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15224$as_echo "pre-installed" >&6; }
f5aebe3e 15225 fi
71ab34df 15226fi
49aae208 15227
cd9a469c 15228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
15229$as_echo_n "checking where to find the target windmc... " >&6; }
75d6a0a9 15230if test "x${build}" != "x${host}" ; then
15231 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15232 # We already found the complete path
15233 ac_dir=`dirname $WINDMC_FOR_TARGET`
cd9a469c 15234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15235$as_echo "pre-installed in $ac_dir" >&6; }
75d6a0a9 15236 else
15237 # Canadian cross, just use what we found
cd9a469c 15238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15239$as_echo "pre-installed" >&6; }
75d6a0a9 15240 fi
15241else
15242 ok=yes
15243 case " ${configdirs} " in
15244 *" binutils "*) ;;
15245 *) ok=no ;;
15246 esac
15247
15248 if test $ok = yes; then
15249 # An in-tree tool is available and we can use it
15250 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
cd9a469c 15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15252$as_echo "just compiled" >&6; }
75d6a0a9 15253 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15254 # We already found the complete path
15255 ac_dir=`dirname $WINDMC_FOR_TARGET`
cd9a469c 15256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15257$as_echo "pre-installed in $ac_dir" >&6; }
75d6a0a9 15258 elif test "x$target" = "x$host"; then
15259 # We can use an host tool
15260 WINDMC_FOR_TARGET='$(WINDMC)'
cd9a469c 15261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15262$as_echo "host tool" >&6; }
75d6a0a9 15263 else
15264 # We need a cross tool
cd9a469c 15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15266$as_echo "pre-installed" >&6; }
75d6a0a9 15267 fi
15268fi
15269
49aae208 15270
15271
f5aebe3e 15272
a83ffacf 15273
71ab34df 15274# Certain tools may need extra flags.
15275AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
15276RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
15277NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
15278
f5aebe3e 15279# When building target libraries, except in a Canadian cross, we use
15280# the same toolchain as the compiler we just built.
15281COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
15282COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
15283COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
15284if test $host = $build; then
15285 case " $configdirs " in
15286 *" gcc "*)
15287 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
15288 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
15289 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
15290 ;;
15291 esac
15292fi
15293
15294
15295
15296
15297
cd9a469c 15298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15299$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15300# Check whether --enable-maintainer-mode was given.
15301if test "${enable_maintainer_mode+set}" = set; then :
15302 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3290c0cf 15303else
15304 USE_MAINTAINER_MODE=no
cd9a469c 15305fi
15306
15307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15308$as_echo "$USE_MAINTAINER_MODE" >&6; }
3290c0cf 15309
15310
15311if test "$USE_MAINTAINER_MODE" = yes; then
15312 MAINTAINER_MODE_TRUE=
15313 MAINTAINER_MODE_FALSE='#'
15314else
15315 MAINTAINER_MODE_TRUE='#'
15316 MAINTAINER_MODE_FALSE=
b30fcfae 15317fi
3290c0cf 15318MAINT=$MAINTAINER_MODE_TRUE
15319
2d64c2fd 15320# ---------------------
15321# GCC bootstrap support
15322# ---------------------
15323
15324# Stage specific cflags for build.
15325stage1_cflags="-g"
15326case $build in
15327 vax-*-*)
15328 case ${GCC} in
15329 yes) stage1_cflags="-g -Wa,-J" ;;
15330 *) stage1_cflags="-g -J" ;;
15331 esac ;;
2d64c2fd 15332esac
15333
f508ba97 15334
2d64c2fd 15335
39f34cfc 15336# Enable --enable-checking in stage1 of the compiler.
cd9a469c 15337# Check whether --enable-stage1-checking was given.
15338if test "${enable_stage1_checking+set}" = set; then :
15339 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
39f34cfc 15340else
f6be6a96 15341 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
868af6b6 15342 # For --disable-checking or implicit --enable-checking=release, avoid
15343 # setting --enable-checking=gc in the default stage1 checking for LTO
15344 # bootstraps. See PR62077.
868af6b6 15345 case $BUILD_CONFIG in
15346 *lto*)
c05979a1 15347 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
15348 *)
15349 stage1_checking=--enable-checking=yes,types;;
868af6b6 15350 esac
c05979a1 15351 if test "x$enable_checking" = x && \
15352 test -d ${srcdir}/gcc && \
15353 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
bee4f5e5 15354 stage1_checking=--enable-checking=yes,types,extra
c05979a1 15355 fi
39f34cfc 15356else
f6be6a96 15357 stage1_checking=--enable-checking=$enable_checking,types
39f34cfc 15358fi
cd9a469c 15359fi
39f34cfc 15360
15361
5084f823 15362
cd9a469c 15363# Enable -Werror in bootstrap stage2 and later.
15364# Check whether --enable-werror was given.
15365if test "${enable_werror+set}" = set; then :
15366 enableval=$enable_werror;
c0c5068d 15367case ${enable_werror} in
15368 yes) stage2_werror_flag="--enable-werror-always" ;;
15369 *) stage2_werror_flag="" ;;
2d64c2fd 15370esac
15371
5362e31e 15372else
15373
14b6abc7 15374if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
15375 case $BUILD_CONFIG in
15376 bootstrap-debug)
15377 stage2_werror_flag="--enable-werror-always" ;;
15378 "")
15379 stage2_werror_flag="--enable-werror-always" ;;
15380 esac
15381fi
15382
5362e31e 15383fi
15384
15385
14b6abc7 15386
2d64c2fd 15387
6fe86052 15388# Specify what files to not compare during bootstrap.
15389
15390compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
15391case "$target" in
15392 hppa*64*-*-hpux*) ;;
43bbe3ea 15393 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
62f0972f 15394 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
6fe86052 15395esac
15396
15397
cd9a469c 15398ac_config_files="$ac_config_files Makefile"
15399
b30fcfae 15400cat >confcache <<\_ACEOF
71ab34df 15401# This file is a shell script that caches the results of configure
15402# tests run on this system so they can be shared between configure
b30fcfae 15403# scripts and configure runs, see configure's option --config-cache.
15404# It is not useful on other systems. If it contains results you don't
15405# want to keep, you may remove or edit it.
71ab34df 15406#
b30fcfae 15407# config.status only pays attention to the cache file if you give it
15408# the --recheck option to rerun configure.
71ab34df 15409#
b30fcfae 15410# `ac_cv_env_foo' variables (set or unset) will be overridden when
15411# loading this file, other *unset* `ac_cv_foo' will be assigned the
15412# following values.
15413
15414_ACEOF
15415
71ab34df 15416# The following way of writing the cache mishandles newlines in values,
15417# but we know of no workaround that is simple, portable, and efficient.
cd9a469c 15418# So, we kill variables containing newlines.
71ab34df 15419# Ultrix sh set writes to stderr and can't be redirected directly,
15420# and sets the high bit in the cache file unless we assign to the vars.
cd9a469c 15421(
15422 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15423 eval ac_val=\$$ac_var
15424 case $ac_val in #(
15425 *${as_nl}*)
15426 case $ac_var in #(
15427 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15428$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15429 esac
15430 case $ac_var in #(
15431 _ | IFS | as_nl) ;; #(
15432 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15433 *) { eval $ac_var=; unset $ac_var;} ;;
15434 esac ;;
15435 esac
15436 done
15437
b30fcfae 15438 (set) 2>&1 |
cd9a469c 15439 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15440 *${as_nl}ac_space=\ *)
15441 # `set' does not quote correctly, so add quotes: double-quote
15442 # substitution turns \\\\ into \\, and sed turns \\ into \.
b30fcfae 15443 sed -n \
15444 "s/'/'\\\\''/g;
15445 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
cd9a469c 15446 ;; #(
b30fcfae 15447 *)
15448 # `set' quotes correctly as required by POSIX, so do not add quotes.
cd9a469c 15449 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b30fcfae 15450 ;;
cd9a469c 15451 esac |
15452 sort
15453) |
b30fcfae 15454 sed '
cd9a469c 15455 /^ac_cv_env_/b end
b30fcfae 15456 t clear
cd9a469c 15457 :clear
b30fcfae 15458 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15459 t end
cd9a469c 15460 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15461 :end' >>confcache
15462if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15463 if test -w "$cache_file"; then
f00f02a3 15464 if test "x$cache_file" != "x/dev/null"; then
cd9a469c 15465 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15466$as_echo "$as_me: updating cache $cache_file" >&6;}
f00f02a3 15467 if test ! -f "$cache_file" || test -h "$cache_file"; then
15468 cat confcache >"$cache_file"
15469 else
15470 case $cache_file in #(
15471 */* | ?:*)
15472 mv -f confcache "$cache_file"$$ &&
15473 mv -f "$cache_file"$$ "$cache_file" ;; #(
15474 *)
15475 mv -f confcache "$cache_file" ;;
15476 esac
15477 fi
15478 fi
71ab34df 15479 else
cd9a469c 15480 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15481$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
71ab34df 15482 fi
805e22b2 15483fi
71ab34df 15484rm -f confcache
a8298541 15485
71ab34df 15486test "x$prefix" = xNONE && prefix=$ac_default_prefix
15487# Let make expand exec_prefix.
15488test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
92424a17 15489
71ab34df 15490# Transform confdefs.h into DEFS.
15491# Protect against shell expansion while executing Makefile rules.
15492# Protect against Makefile macro expansion.
b30fcfae 15493#
15494# If the first sed substitution is executed (which looks for macros that
cd9a469c 15495# take arguments), then branch to the quote section. Otherwise,
b30fcfae 15496# look for a macro that doesn't take arguments.
cd9a469c 15497ac_script='
15498:mline
15499/\\$/{
15500 N
15501 s,\\\n,,
15502 b mline
15503}
b30fcfae 15504t clear
cd9a469c 15505:clear
15506s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
b30fcfae 15507t quote
cd9a469c 15508s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
b30fcfae 15509t quote
cd9a469c 15510b any
15511:quote
15512s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15513s/\[/\\&/g
15514s/\]/\\&/g
15515s/\$/$$/g
15516H
15517:any
15518${
15519 g
15520 s/^\n//
15521 s/\n/ /g
15522 p
15523}
15524'
15525DEFS=`sed -n "$ac_script" confdefs.h`
b30fcfae 15526
15527
15528ac_libobjs=
15529ac_ltlibobjs=
f00f02a3 15530U=
b30fcfae 15531for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15532 # 1. Remove the extension, and $U if already installed.
cd9a469c 15533 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15534 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15535 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15536 # will be set to the directory where LIBOBJS objects are built.
15537 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15538 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b30fcfae 15539done
15540LIBOBJS=$ac_libobjs
a4af6a58 15541
b30fcfae 15542LTLIBOBJS=$ac_ltlibobjs
a83ffacf 15543
ae48753c 15544
b30fcfae 15545
f00f02a3 15546: "${CONFIG_STATUS=./config.status}"
cd9a469c 15547ac_write_fail=0
b30fcfae 15548ac_clean_files_save=$ac_clean_files
15549ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cd9a469c 15550{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15551$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15552as_write_fail=0
15553cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b30fcfae 15554#! $SHELL
15555# Generated by $as_me.
71ab34df 15556# Run this file to recreate the current configuration.
71ab34df 15557# Compiler output produced by configure, useful for debugging
b30fcfae 15558# configure, is in config.log if it exists.
a83ffacf 15559
b30fcfae 15560debug=false
15561ac_cs_recheck=false
15562ac_cs_silent=false
b30fcfae 15563
cd9a469c 15564SHELL=\${CONFIG_SHELL-$SHELL}
15565export SHELL
15566_ASEOF
15567cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15568## -------------------- ##
15569## M4sh Initialization. ##
15570## -------------------- ##
15571
15572# Be more Bourne compatible
15573DUALCASE=1; export DUALCASE # for MKS sh
15574if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b30fcfae 15575 emulate sh
15576 NULLCMD=:
cd9a469c 15577 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b30fcfae 15578 # is contrary to our usage. Disable this feature.
15579 alias -g '${1+"$@"}'='"$@"'
cd9a469c 15580 setopt NO_GLOB_SUBST
15581else
15582 case `(set -o) 2>/dev/null` in #(
15583 *posix*) :
15584 set -o posix ;; #(
15585 *) :
15586 ;;
15587esac
b30fcfae 15588fi
b30fcfae 15589
cd9a469c 15590
15591as_nl='
15592'
15593export as_nl
15594# Printing a long string crashes Solaris 7 /usr/bin/printf.
15595as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15596as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15597as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15598# Prefer a ksh shell builtin over an external printf program on Solaris,
15599# but without wasting forks for bash or zsh.
15600if test -z "$BASH_VERSION$ZSH_VERSION" \
15601 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15602 as_echo='print -r --'
15603 as_echo_n='print -rn --'
15604elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15605 as_echo='printf %s\n'
15606 as_echo_n='printf %s'
15607else
15608 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15609 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15610 as_echo_n='/usr/ucb/echo -n'
15611 else
15612 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15613 as_echo_n_body='eval
15614 arg=$1;
15615 case $arg in #(
15616 *"$as_nl"*)
15617 expr "X$arg" : "X\\(.*\\)$as_nl";
15618 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15619 esac;
15620 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15621 '
15622 export as_echo_n_body
15623 as_echo_n='sh -c $as_echo_n_body as_echo'
15624 fi
15625 export as_echo_body
15626 as_echo='sh -c $as_echo_body as_echo'
b30fcfae 15627fi
15628
cd9a469c 15629# The user is always right.
15630if test "${PATH_SEPARATOR+set}" != set; then
15631 PATH_SEPARATOR=:
15632 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15633 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15634 PATH_SEPARATOR=';'
15635 }
15636fi
15637
15638
15639# IFS
15640# We need space, tab and new line, in precisely that order. Quoting is
15641# there to prevent editors from complaining about space-tab.
15642# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15643# splitting by setting IFS to empty value.)
15644IFS=" "" $as_nl"
15645
15646# Find who we are. Look in the path if we contain no directory separator.
f00f02a3 15647as_myself=
cd9a469c 15648case $0 in #((
15649 *[\\/]* ) as_myself=$0 ;;
15650 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15651for as_dir in $PATH
15652do
15653 IFS=$as_save_IFS
15654 test -z "$as_dir" && as_dir=.
15655 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15656 done
15657IFS=$as_save_IFS
15658
15659 ;;
15660esac
15661# We did not find ourselves, most probably we were run as `sh COMMAND'
15662# in which case we are not to be found in the path.
15663if test "x$as_myself" = x; then
15664 as_myself=$0
15665fi
15666if test ! -f "$as_myself"; then
15667 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15668 exit 1
15669fi
b30fcfae 15670
cd9a469c 15671# Unset variables that we do not need and which cause bugs (e.g. in
15672# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15673# suppresses any "Segmentation fault" message there. '((' could
15674# trigger a bug in pdksh 5.2.14.
15675for as_var in BASH_ENV ENV MAIL MAILPATH
15676do eval test x\${$as_var+set} = xset \
15677 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15678done
b30fcfae 15679PS1='$ '
15680PS2='> '
15681PS4='+ '
15682
15683# NLS nuisances.
cd9a469c 15684LC_ALL=C
15685export LC_ALL
15686LANGUAGE=C
15687export LANGUAGE
15688
15689# CDPATH.
15690(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15691
15692
f00f02a3 15693# as_fn_error STATUS ERROR [LINENO LOG_FD]
15694# ----------------------------------------
cd9a469c 15695# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15696# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
f00f02a3 15697# script with STATUS, using 1 if that was 0.
cd9a469c 15698as_fn_error ()
15699{
f00f02a3 15700 as_status=$1; test $as_status -eq 0 && as_status=1
15701 if test "$4"; then
15702 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15703 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b30fcfae 15704 fi
f00f02a3 15705 $as_echo "$as_me: error: $2" >&2
cd9a469c 15706 as_fn_exit $as_status
15707} # as_fn_error
15708
15709
15710# as_fn_set_status STATUS
15711# -----------------------
15712# Set $? to STATUS, without forking.
15713as_fn_set_status ()
15714{
15715 return $1
15716} # as_fn_set_status
15717
15718# as_fn_exit STATUS
15719# -----------------
15720# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15721as_fn_exit ()
15722{
15723 set +e
15724 as_fn_set_status $1
15725 exit $1
15726} # as_fn_exit
15727
15728# as_fn_unset VAR
15729# ---------------
15730# Portably unset VAR.
15731as_fn_unset ()
15732{
15733 { eval $1=; unset $1;}
15734}
15735as_unset=as_fn_unset
15736# as_fn_append VAR VALUE
15737# ----------------------
15738# Append the text in VALUE to the end of the definition contained in VAR. Take
15739# advantage of any shell optimizations that allow amortized linear growth over
15740# repeated appends, instead of the typical quadratic growth present in naive
15741# implementations.
15742if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15743 eval 'as_fn_append ()
15744 {
15745 eval $1+=\$2
15746 }'
15747else
15748 as_fn_append ()
15749 {
15750 eval $1=\$$1\$2
15751 }
15752fi # as_fn_append
15753
15754# as_fn_arith ARG...
15755# ------------------
15756# Perform arithmetic evaluation on the ARGs, and store the result in the
15757# global $as_val. Take advantage of shells that can avoid forks. The arguments
15758# must be portable across $(()) and expr.
15759if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15760 eval 'as_fn_arith ()
15761 {
15762 as_val=$(( $* ))
15763 }'
15764else
15765 as_fn_arith ()
15766 {
15767 as_val=`expr "$@" || test $? -eq 1`
15768 }
15769fi # as_fn_arith
15770
b30fcfae 15771
cd9a469c 15772if expr a : '\(a\)' >/dev/null 2>&1 &&
15773 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b30fcfae 15774 as_expr=expr
15775else
15776 as_expr=false
15777fi
15778
cd9a469c 15779if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b30fcfae 15780 as_basename=basename
15781else
15782 as_basename=false
15783fi
15784
cd9a469c 15785if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15786 as_dirname=dirname
15787else
15788 as_dirname=false
15789fi
b30fcfae 15790
cd9a469c 15791as_me=`$as_basename -- "$0" ||
b30fcfae 15792$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15793 X"$0" : 'X\(//\)$' \| \
cd9a469c 15794 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15795$as_echo X/"$0" |
15796 sed '/^.*\/\([^/][^/]*\)\/*$/{
15797 s//\1/
15798 q
15799 }
15800 /^X\/\(\/\/\)$/{
15801 s//\1/
15802 q
15803 }
15804 /^X\/\(\/\).*/{
15805 s//\1/
15806 q
15807 }
15808 s/.*/./; q'`
5084f823 15809
5084f823 15810# Avoid depending upon Character Ranges.
15811as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15812as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15813as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15814as_cr_digits='0123456789'
15815as_cr_alnum=$as_cr_Letters$as_cr_digits
15816
cd9a469c 15817ECHO_C= ECHO_N= ECHO_T=
15818case `echo -n x` in #(((((
15819-n*)
15820 case `echo 'xy\c'` in
15821 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15822 xy) ECHO_C='\c';;
15823 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15824 ECHO_T=' ';;
15825 esac;;
15826*)
15827 ECHO_N='-n';;
b30fcfae 15828esac
15829
cd9a469c 15830rm -f conf$$ conf$$.exe conf$$.file
15831if test -d conf$$.dir; then
15832 rm -f conf$$.dir/conf$$.file
b30fcfae 15833else
cd9a469c 15834 rm -f conf$$.dir
15835 mkdir conf$$.dir 2>/dev/null
b30fcfae 15836fi
cd9a469c 15837if (echo >conf$$.file) 2>/dev/null; then
15838 if ln -s conf$$.file conf$$ 2>/dev/null; then
5084f823 15839 as_ln_s='ln -s'
cd9a469c 15840 # ... but there are two gotchas:
15841 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15842 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
f00f02a3 15843 # In both cases, we have to default to `cp -pR'.
cd9a469c 15844 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
f00f02a3 15845 as_ln_s='cp -pR'
cd9a469c 15846 elif ln conf$$.file conf$$ 2>/dev/null; then
15847 as_ln_s=ln
15848 else
f00f02a3 15849 as_ln_s='cp -pR'
5084f823 15850 fi
b30fcfae 15851else
f00f02a3 15852 as_ln_s='cp -pR'
b30fcfae 15853fi
cd9a469c 15854rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15855rmdir conf$$.dir 2>/dev/null
15856
15857
15858# as_fn_mkdir_p
15859# -------------
15860# Create "$as_dir" as a directory, including parents if necessary.
15861as_fn_mkdir_p ()
15862{
15863
15864 case $as_dir in #(
15865 -*) as_dir=./$as_dir;;
15866 esac
15867 test -d "$as_dir" || eval $as_mkdir_p || {
15868 as_dirs=
15869 while :; do
15870 case $as_dir in #(
15871 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15872 *) as_qdir=$as_dir;;
15873 esac
15874 as_dirs="'$as_qdir' $as_dirs"
15875 as_dir=`$as_dirname -- "$as_dir" ||
15876$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15877 X"$as_dir" : 'X\(//\)[^/]' \| \
15878 X"$as_dir" : 'X\(//\)$' \| \
15879 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15880$as_echo X"$as_dir" |
15881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15882 s//\1/
15883 q
15884 }
15885 /^X\(\/\/\)[^/].*/{
15886 s//\1/
15887 q
15888 }
15889 /^X\(\/\/\)$/{
15890 s//\1/
15891 q
15892 }
15893 /^X\(\/\).*/{
15894 s//\1/
15895 q
15896 }
15897 s/.*/./; q'`
15898 test -d "$as_dir" && break
15899 done
15900 test -z "$as_dirs" || eval "mkdir $as_dirs"
f00f02a3 15901 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cd9a469c 15902
b30fcfae 15903
cd9a469c 15904} # as_fn_mkdir_p
b30fcfae 15905if mkdir -p . 2>/dev/null; then
cd9a469c 15906 as_mkdir_p='mkdir -p "$as_dir"'
b30fcfae 15907else
15908 test -d ./-p && rmdir ./-p
15909 as_mkdir_p=false
15910fi
15911
f00f02a3 15912
15913# as_fn_executable_p FILE
15914# -----------------------
15915# Test if FILE is an executable regular file.
15916as_fn_executable_p ()
15917{
15918 test -f "$1" && test -x "$1"
15919} # as_fn_executable_p
15920as_test_x='test -x'
15921as_executable_p=as_fn_executable_p
b30fcfae 15922
15923# Sed expression to map a string onto a valid CPP name.
15924as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15925
15926# Sed expression to map a string onto a valid variable name.
15927as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15928
15929
b30fcfae 15930exec 6>&1
cd9a469c 15931## ----------------------------------- ##
15932## Main body of $CONFIG_STATUS script. ##
15933## ----------------------------------- ##
15934_ASEOF
15935test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15936
15937cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15938# Save the log message, to keep $0 and so on meaningful, and to
b30fcfae 15939# report actual input values of CONFIG_FILES etc. instead of their
cd9a469c 15940# values after options handling.
15941ac_log="
b30fcfae 15942This file was extended by $as_me, which was
f00f02a3 15943generated by GNU Autoconf 2.69. Invocation command line was
b30fcfae 15944
15945 CONFIG_FILES = $CONFIG_FILES
15946 CONFIG_HEADERS = $CONFIG_HEADERS
15947 CONFIG_LINKS = $CONFIG_LINKS
15948 CONFIG_COMMANDS = $CONFIG_COMMANDS
15949 $ $0 $@
15950
cd9a469c 15951on `(hostname || uname -n) 2>/dev/null | sed 1q`
15952"
15953
b30fcfae 15954_ACEOF
15955
cd9a469c 15956case $ac_config_files in *"
15957"*) set x $ac_config_files; shift; ac_config_files=$*;;
15958esac
b30fcfae 15959
5084f823 15960
5084f823 15961
cd9a469c 15962cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15963# Files that config.status was made for.
15964config_files="$ac_config_files"
b30fcfae 15965
cd9a469c 15966_ACEOF
5084f823 15967
cd9a469c 15968cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b30fcfae 15969ac_cs_usage="\
cd9a469c 15970\`$as_me' instantiates files and other configuration actions
15971from templates according to the current configuration. Unless the files
15972and actions are specified as TAGs, all are instantiated by default.
b30fcfae 15973
cd9a469c 15974Usage: $0 [OPTION]... [TAG]...
b30fcfae 15975
15976 -h, --help print this help, then exit
cd9a469c 15977 -V, --version print version number and configuration settings, then exit
f00f02a3 15978 --config print configuration, then exit
cd9a469c 15979 -q, --quiet, --silent
15980 do not print progress messages
b30fcfae 15981 -d, --debug don't remove temporary files
15982 --recheck update $as_me by reconfiguring in the same conditions
cd9a469c 15983 --file=FILE[:TEMPLATE]
15984 instantiate the configuration file FILE
b30fcfae 15985
15986Configuration files:
15987$config_files
15988
cd9a469c 15989Report bugs to the package provider."
5084f823 15990
cd9a469c 15991_ACEOF
15992cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f00f02a3 15993ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b30fcfae 15994ac_cs_version="\\
15995config.status
f00f02a3 15996configured by $0, generated by GNU Autoconf 2.69,
15997 with options \\"\$ac_cs_config\\"
b30fcfae 15998
f00f02a3 15999Copyright (C) 2012 Free Software Foundation, Inc.
b30fcfae 16000This config.status script is free software; the Free Software Foundation
16001gives unlimited permission to copy, distribute and modify it."
cd9a469c 16002
16003ac_pwd='$ac_pwd'
16004srcdir='$srcdir'
16005INSTALL='$INSTALL'
b181f265 16006AWK='$AWK'
cd9a469c 16007test -n "\$AWK" || AWK=awk
b30fcfae 16008_ACEOF
16009
cd9a469c 16010cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16011# The default lists apply if the user does not specify any file.
b30fcfae 16012ac_need_defaults=:
16013while test $# != 0
b1660f25 16014do
b30fcfae 16015 case $1 in
f00f02a3 16016 --*=?*)
cd9a469c 16017 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16018 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b30fcfae 16019 ac_shift=:
16020 ;;
f00f02a3 16021 --*=)
16022 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16023 ac_optarg=
16024 ac_shift=:
16025 ;;
cd9a469c 16026 *)
b30fcfae 16027 ac_option=$1
16028 ac_optarg=$2
16029 ac_shift=shift
16030 ;;
b30fcfae 16031 esac
16032
16033 case $ac_option in
16034 # Handling of the options.
71ab34df 16035 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
b30fcfae 16036 ac_cs_recheck=: ;;
cd9a469c 16037 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16038 $as_echo "$ac_cs_version"; exit ;;
f00f02a3 16039 --config | --confi | --conf | --con | --co | --c )
16040 $as_echo "$ac_cs_config"; exit ;;
cd9a469c 16041 --debug | --debu | --deb | --de | --d | -d )
b30fcfae 16042 debug=: ;;
16043 --file | --fil | --fi | --f )
16044 $ac_shift
cd9a469c 16045 case $ac_optarg in
16046 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
f00f02a3 16047 '') as_fn_error $? "missing file argument" ;;
cd9a469c 16048 esac
16049 as_fn_append CONFIG_FILES " '$ac_optarg'"
5084f823 16050 ac_need_defaults=false;;
cd9a469c 16051 --he | --h | --help | --hel | -h )
16052 $as_echo "$ac_cs_usage"; exit ;;
b30fcfae 16053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16054 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16055 ac_cs_silent=: ;;
16056
16057 # This is an error.
f00f02a3 16058 -*) as_fn_error $? "unrecognized option: \`$1'
cd9a469c 16059Try \`$0 --help' for more information." ;;
b30fcfae 16060
cd9a469c 16061 *) as_fn_append ac_config_targets " $1"
16062 ac_need_defaults=false ;;
b30fcfae 16063
a83ffacf 16064 esac
b30fcfae 16065 shift
a83ffacf 16066done
16067
b30fcfae 16068ac_configure_extra_args=
a83ffacf 16069
b30fcfae 16070if $ac_cs_silent; then
16071 exec 6>/dev/null
16072 ac_configure_extra_args="$ac_configure_extra_args --silent"
16073fi
a83ffacf 16074
b30fcfae 16075_ACEOF
cd9a469c 16076cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b30fcfae 16077if \$ac_cs_recheck; then
f00f02a3 16078 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cd9a469c 16079 shift
16080 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16081 CONFIG_SHELL='$SHELL'
16082 export CONFIG_SHELL
16083 exec "\$@"
b30fcfae 16084fi
16085
16086_ACEOF
cd9a469c 16087cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16088exec 5>>config.log
16089{
16090 echo
16091 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16092## Running $as_me. ##
16093_ASBOX
16094 $as_echo "$ac_log"
16095} >&5
b30fcfae 16096
cd9a469c 16097_ACEOF
16098cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8bb79148 16099#
16100# INIT-COMMANDS
16101#
16102extrasub_build="$extrasub_build"
16103 extrasub_host="$extrasub_host"
16104 extrasub_target="$extrasub_target"
16105
cd9a469c 16106_ACEOF
b30fcfae 16107
cd9a469c 16108cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
570af75a 16109
cd9a469c 16110# Handling of arguments.
b30fcfae 16111for ac_config_target in $ac_config_targets
16112do
cd9a469c 16113 case $ac_config_target in
16114 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16115
f00f02a3 16116 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
b30fcfae 16117 esac
16118done
16119
cd9a469c 16120
b30fcfae 16121# If the user did not use the arguments to specify the items to instantiate,
16122# then the envvar interface is used. Set only those that are not.
16123# We use the long form for the default assignment because of an extremely
16124# bizarre bug on SunOS 4.1.3.
16125if $ac_need_defaults; then
16126 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16127fi
16128
16129# Have a temporary directory for convenience. Make it in the build tree
cd9a469c 16130# simply because there is no reason against having it here, and in addition,
b30fcfae 16131# creating and moving files from /tmp can sometimes cause problems.
cd9a469c 16132# Hook for its removal unless debugging.
16133# Note that there is a small window in which the directory will not be cleaned:
16134# after its creation but before its name has been assigned to `$tmp'.
b30fcfae 16135$debug ||
16136{
f00f02a3 16137 tmp= ac_tmp=
cd9a469c 16138 trap 'exit_status=$?
f00f02a3 16139 : "${ac_tmp:=$tmp}"
16140 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cd9a469c 16141' 0
16142 trap 'as_fn_exit 1' 1 2 13 15
b30fcfae 16143}
b30fcfae 16144# Create a (secure) tmp directory for tmp files.
16145
16146{
cd9a469c 16147 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
f00f02a3 16148 test -d "$tmp"
b30fcfae 16149} ||
16150{
cd9a469c 16151 tmp=./conf$$-$RANDOM
16152 (umask 077 && mkdir "$tmp")
f00f02a3 16153} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16154ac_tmp=$tmp
cd9a469c 16155
16156# Set up the scripts for CONFIG_FILES section.
16157# No need to generate them if there are no CONFIG_FILES.
16158# This happens for instance with `./config.status config.h'.
16159if test -n "$CONFIG_FILES"; then
16160
16161if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16162 ac_cs_awk_getline=:
16163 ac_cs_awk_pipe_init=
16164 ac_cs_awk_read_file='
16165 while ((getline aline < (F[key])) > 0)
16166 print(aline)
16167 close(F[key])'
16168 ac_cs_awk_pipe_fini=
16169else
16170 ac_cs_awk_getline=false
16171 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16172 ac_cs_awk_read_file='
16173 print "|#_!!_#|"
16174 print "cat " F[key] " &&"
16175 '$ac_cs_awk_pipe_init
16176 # The final `:' finishes the AND list.
16177 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16178fi
16179ac_cr=`echo X | tr X '\015'`
16180# On cygwin, bash can eat \r inside `` if the user requested igncr.
16181# But we know of no other shell where ac_cr would be empty at this
16182# point, so we can use a bashism as a fallback.
16183if test "x$ac_cr" = x; then
16184 eval ac_cr=\$\'\\r\'
16185fi
16186ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16187if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
f00f02a3 16188 ac_cs_awk_cr='\\r'
cd9a469c 16189else
16190 ac_cs_awk_cr=$ac_cr
16191fi
16192
f00f02a3 16193echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cd9a469c 16194_ACEOF
16195
16196# Create commands to substitute file output variables.
b30fcfae 16197{
cd9a469c 16198 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
f00f02a3 16199 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
cd9a469c 16200 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16201 echo "_ACAWK" &&
16202 echo "_ACEOF"
16203} >conf$$files.sh &&
16204. ./conf$$files.sh ||
f00f02a3 16205 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cd9a469c 16206rm -f conf$$files.sh
b30fcfae 16207
cd9a469c 16208{
16209 echo "cat >conf$$subs.awk <<_ACEOF" &&
16210 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16211 echo "_ACEOF"
16212} >conf$$subs.sh ||
f00f02a3 16213 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16214ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cd9a469c 16215ac_delim='%!_!# '
16216for ac_last_try in false false false false false :; do
16217 . ./conf$$subs.sh ||
f00f02a3 16218 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cd9a469c 16219
16220 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16221 if test $ac_delim_n = $ac_delim_num; then
16222 break
16223 elif $ac_last_try; then
f00f02a3 16224 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cd9a469c 16225 else
16226 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16227 fi
16228done
16229rm -f conf$$subs.sh
16230
16231cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f00f02a3 16232cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5084f823 16233_ACEOF
cd9a469c 16234sed -n '
16235h
16236s/^/S["/; s/!.*/"]=/
16237p
16238g
16239s/^[^!]*!//
16240:repl
16241t repl
16242s/'"$ac_delim"'$//
16243t delim
16244:nl
16245h
f00f02a3 16246s/\(.\{148\}\)..*/\1/
cd9a469c 16247t more1
16248s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16249p
16250n
16251b repl
16252:more1
16253s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16254p
16255g
16256s/.\{148\}//
16257t nl
16258:delim
16259h
f00f02a3 16260s/\(.\{148\}\)..*/\1/
cd9a469c 16261t more2
16262s/["\\]/\\&/g; s/^/"/; s/$/"/
16263p
16264b
16265:more2
16266s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16267p
16268g
16269s/.\{148\}//
16270t delim
16271' <conf$$subs.awk | sed '
16272/^[^""]/{
16273 N
16274 s/\n//
16275}
16276' >>$CONFIG_STATUS || ac_write_fail=1
16277rm -f conf$$subs.awk
16278cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16279_ACAWK
f00f02a3 16280cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cd9a469c 16281 for (key in S) S_is_set[key] = 1
16282 FS = "\a"
16283 \$ac_cs_awk_pipe_init
16284}
16285{
16286 line = $ 0
16287 nfields = split(line, field, "@")
16288 substed = 0
16289 len = length(field[1])
16290 for (i = 2; i < nfields; i++) {
16291 key = field[i]
16292 keylen = length(key)
16293 if (S_is_set[key]) {
16294 value = S[key]
16295 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16296 len += length(value) + length(field[++i])
16297 substed = 1
16298 } else
16299 len += 1 + keylen
16300 }
16301 if (nfields == 3 && !substed) {
16302 key = field[2]
16303 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16304 \$ac_cs_awk_read_file
16305 next
16306 }
16307 }
16308 print line
16309}
16310\$ac_cs_awk_pipe_fini
16311_ACAWK
16312_ACEOF
16313cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16314if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16315 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16316else
16317 cat
f00f02a3 16318fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16319 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cd9a469c 16320_ACEOF
16321
f00f02a3 16322# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16323# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cd9a469c 16324# trailing colons and then remove the whole line if VPATH becomes empty
16325# (actually we leave an empty line to preserve line numbers).
16326if test "x$srcdir" = x.; then
f00f02a3 16327 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16328h
16329s///
16330s/^/:/
16331s/[ ]*$/:/
16332s/:\$(srcdir):/:/g
16333s/:\${srcdir}:/:/g
16334s/:@srcdir@:/:/g
16335s/^:*//
cd9a469c 16336s/:*$//
f00f02a3 16337x
16338s/\(=[ ]*\).*/\1/
16339G
16340s/\n//
cd9a469c 16341s/^[^=]*=[ ]*$//
16342}'
16343fi
5084f823 16344
cd9a469c 16345cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16346fi # test -n "$CONFIG_FILES"
5084f823 16347
b30fcfae 16348
cd9a469c 16349eval set X " :F $CONFIG_FILES "
16350shift
16351for ac_tag
16352do
16353 case $ac_tag in
16354 :[FHLC]) ac_mode=$ac_tag; continue;;
16355 esac
16356 case $ac_mode$ac_tag in
16357 :[FHL]*:*);;
f00f02a3 16358 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cd9a469c 16359 :[FH]-) ac_tag=-:-;;
16360 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16361 esac
16362 ac_save_IFS=$IFS
16363 IFS=:
16364 set x $ac_tag
16365 IFS=$ac_save_IFS
16366 shift
16367 ac_file=$1
16368 shift
a8298541 16369
cd9a469c 16370 case $ac_mode in
16371 :L) ac_source=$1;;
16372 :[FH])
16373 ac_file_inputs=
16374 for ac_f
16375 do
16376 case $ac_f in
f00f02a3 16377 -) ac_f="$ac_tmp/stdin";;
cd9a469c 16378 *) # Look for the file first in the build tree, then in the source tree
16379 # (if the path is not absolute). The absolute path cannot be DOS-style,
16380 # because $ac_f cannot contain `:'.
16381 test -f "$ac_f" ||
16382 case $ac_f in
16383 [\\/$]*) false;;
16384 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16385 esac ||
f00f02a3 16386 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cd9a469c 16387 esac
16388 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16389 as_fn_append ac_file_inputs " '$ac_f'"
16390 done
b30fcfae 16391
cd9a469c 16392 # Let's still pretend it is `configure' which instantiates (i.e., don't
16393 # use $as_me), people would be surprised to read:
16394 # /* config.h. Generated by config.status. */
16395 configure_input='Generated from '`
16396 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16397 `' by configure.'
16398 if test x"$ac_file" != x-; then
16399 configure_input="$ac_file. $configure_input"
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16401$as_echo "$as_me: creating $ac_file" >&6;}
5084f823 16402 fi
cd9a469c 16403 # Neutralize special characters interpreted by sed in replacement strings.
16404 case $configure_input in #(
16405 *\&* | *\|* | *\\* )
16406 ac_sed_conf_input=`$as_echo "$configure_input" |
16407 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16408 *) ac_sed_conf_input=$configure_input;;
16409 esac
570af75a 16410
cd9a469c 16411 case $ac_tag in
f00f02a3 16412 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16413 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cd9a469c 16414 esac
16415 ;;
570af75a 16416 esac
16417
cd9a469c 16418 ac_dir=`$as_dirname -- "$ac_file" ||
b30fcfae 16419$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16420 X"$ac_file" : 'X\(//\)[^/]' \| \
16421 X"$ac_file" : 'X\(//\)$' \| \
cd9a469c 16422 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16423$as_echo X"$ac_file" |
16424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16425 s//\1/
16426 q
16427 }
16428 /^X\(\/\/\)[^/].*/{
16429 s//\1/
16430 q
16431 }
16432 /^X\(\/\/\)$/{
16433 s//\1/
16434 q
16435 }
16436 /^X\(\/\).*/{
16437 s//\1/
16438 q
16439 }
16440 s/.*/./; q'`
16441 as_dir="$ac_dir"; as_fn_mkdir_p
b30fcfae 16442 ac_builddir=.
a83ffacf 16443
cd9a469c 16444case "$ac_dir" in
16445.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16446*)
16447 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16448 # A ".." for each directory in $ac_dir_suffix.
16449 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16450 case $ac_top_builddir_sub in
16451 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16452 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16453 esac ;;
16454esac
16455ac_abs_top_builddir=$ac_pwd
16456ac_abs_builddir=$ac_pwd$ac_dir_suffix
16457# for backward compatibility:
16458ac_top_builddir=$ac_top_build_prefix
b30fcfae 16459
16460case $srcdir in
cd9a469c 16461 .) # We are building in place.
b30fcfae 16462 ac_srcdir=.
cd9a469c 16463 ac_top_srcdir=$ac_top_builddir_sub
16464 ac_abs_top_srcdir=$ac_pwd ;;
16465 [\\/]* | ?:[\\/]* ) # Absolute name.
b30fcfae 16466 ac_srcdir=$srcdir$ac_dir_suffix;
cd9a469c 16467 ac_top_srcdir=$srcdir
16468 ac_abs_top_srcdir=$srcdir ;;
16469 *) # Relative name.
16470 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16471 ac_top_srcdir=$ac_top_build_prefix$srcdir
16472 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b30fcfae 16473esac
cd9a469c 16474ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b1660f25 16475
a83ffacf 16476
cd9a469c 16477 case $ac_mode in
16478 :F)
16479 #
16480 # CONFIG_FILE
16481 #
b30fcfae 16482
16483 case $INSTALL in
16484 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
cd9a469c 16485 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
71ab34df 16486 esac
cd9a469c 16487_ACEOF
570af75a 16488
cd9a469c 16489cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16490# If the template does not know about datarootdir, expand it.
16491# FIXME: This hack should be removed a few years after 2.60.
16492ac_datarootdir_hack=; ac_datarootdir_seen=
16493ac_sed_dataroot='
16494/datarootdir/ {
16495 p
16496 q
16497}
16498/@datadir@/p
16499/@docdir@/p
16500/@infodir@/p
16501/@localedir@/p
16502/@mandir@/p'
16503case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16504*datarootdir*) ac_datarootdir_seen=yes;;
16505*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16507$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
570af75a 16508_ACEOF
cd9a469c 16509cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16510 ac_datarootdir_hack='
16511 s&@datadir@&$datadir&g
16512 s&@docdir@&$docdir&g
16513 s&@infodir@&$infodir&g
16514 s&@localedir@&$localedir&g
16515 s&@mandir@&$mandir&g
16516 s&\\\${datarootdir}&$datarootdir&g' ;;
16517esac
16518_ACEOF
16519
16520# Neutralize VPATH when `$srcdir' = `.'.
16521# Shell code in configure.ac might set extrasub.
16522# FIXME: do we really want to maintain this feature?
16523cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16524ac_sed_extra="$ac_vpsub
b30fcfae 16525$extrasub
16526_ACEOF
cd9a469c 16527cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b30fcfae 16528:t
16529/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
cd9a469c 16530s|@configure_input@|$ac_sed_conf_input|;t t
16531s&@top_builddir@&$ac_top_builddir_sub&;t t
16532s&@top_build_prefix@&$ac_top_build_prefix&;t t
16533s&@srcdir@&$ac_srcdir&;t t
16534s&@abs_srcdir@&$ac_abs_srcdir&;t t
16535s&@top_srcdir@&$ac_top_srcdir&;t t
16536s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16537s&@builddir@&$ac_builddir&;t t
16538s&@abs_builddir@&$ac_abs_builddir&;t t
16539s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16540s&@INSTALL@&$ac_INSTALL&;t t
16541$ac_datarootdir_hack
16542"
16543eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16544if $ac_cs_awk_getline; then
f00f02a3 16545 $AWK -f "$ac_tmp/subs.awk"
cd9a469c 16546else
f00f02a3 16547 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16548fi \
16549 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cd9a469c 16550
16551test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
f00f02a3 16552 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16553 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16554 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cd9a469c 16555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
f00f02a3 16556which seems to be undefined. Please make sure it is defined" >&5
cd9a469c 16557$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
f00f02a3 16558which seems to be undefined. Please make sure it is defined" >&2;}
cd9a469c 16559
f00f02a3 16560 rm -f "$ac_tmp/stdin"
cd9a469c 16561 case $ac_file in
f00f02a3 16562 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16563 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cd9a469c 16564 esac \
f00f02a3 16565 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cd9a469c 16566 ;;
570af75a 16567
570af75a 16568
a8298541 16569
cd9a469c 16570 esac
16571
8bb79148 16572
16573 case $ac_file$ac_mode in
16574 "Makefile":F) sed "$extrasub_build" Makefile |
16575 sed "$extrasub_host" |
16576 sed "$extrasub_target" > mf$$
16577 mv -f mf$$ Makefile ;;
16578
16579 esac
cd9a469c 16580done # for ac_tag
16581
16582
16583as_fn_exit 0
b30fcfae 16584_ACEOF
b30fcfae 16585ac_clean_files=$ac_clean_files_save
16586
cd9a469c 16587test $ac_write_fail = 0 ||
f00f02a3 16588 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cd9a469c 16589
b30fcfae 16590
16591# configure is writing to config.log, and then calls config.status.
16592# config.status does its own redirection, appending to config.log.
16593# Unfortunately, on DOS this fails, as config.log is still kept open
16594# by configure, so config.status won't be able to write to it; its
16595# output is simply discarded. So we exec the FD to /dev/null,
16596# effectively closing config.log, so it can be properly (re)opened and
16597# appended to by config.status. When coming back to configure, we
16598# need to make the FD available again.
16599if test "$no_create" != yes; then
16600 ac_cs_success=:
16601 ac_config_status_args=
16602 test "$silent" = yes &&
16603 ac_config_status_args="$ac_config_status_args --quiet"
16604 exec 5>/dev/null
16605 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16606 exec 5>>config.log
16607 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16608 # would make configure fail if this is the last instruction.
f00f02a3 16609 $ac_cs_success || as_fn_exit 1
cd9a469c 16610fi
16611if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16613$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
b30fcfae 16614fi
a8298541 16615