]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
2018-12-24 Steven G. Kargl <kargl@gcc.gnu.org>
[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
13687c85 809with_stage1_ldflags
cd9a469c 810with_boot_libs
d6dfe18a 811with_boot_ldflags
87e20041 812with_isl
813with_isl_include
814with_isl_lib
815enable_isl_version_check
7bfefa9d 816enable_lto
1015a063 817enable_linker_plugin_configure_flags
818enable_linker_plugin_flags
01b4453c 819enable_host_shared
cd9a469c 820enable_stage1_languages
03869f98 821enable_objc_gc
baf71228 822with_target_bdw_gc
823with_target_bdw_gc_include
824with_target_bdw_gc_lib
0812bb06 825with_gcc_major_version_only
cd9a469c 826with_build_sysroot
827with_debug_prefix_map
a2059f7a 828with_build_config
ee055341 829enable_vtable_verify
cd9a469c 830enable_serial_configure
831with_build_time_tools
832enable_maintainer_mode
833enable_stage1_checking
834enable_werror
cd9a469c 835'
836 ac_precious_vars='build_alias
837host_alias
838target_alias
839CC
840CFLAGS
841LDFLAGS
842LIBS
843CPPFLAGS
844CXX
845CXXFLAGS
846CCC
372a3f1e 847build_configargs
848host_configargs
849target_configargs
cd9a469c 850AR
851AS
852DLLTOOL
853LD
854LIPO
855NM
856RANLIB
857STRIP
858WINDRES
859WINDMC
860OBJCOPY
861OBJDUMP
16706a2e 862OTOOL
3f71364d 863READELF
cd9a469c 864CC_FOR_TARGET
865CXX_FOR_TARGET
866GCC_FOR_TARGET
cd9a469c 867GFORTRAN_FOR_TARGET
5ff5b630 868GOC_FOR_TARGET
03385ed3 869GDC_FOR_TARGET
cd9a469c 870AR_FOR_TARGET
871AS_FOR_TARGET
872DLLTOOL_FOR_TARGET
873LD_FOR_TARGET
874LIPO_FOR_TARGET
875NM_FOR_TARGET
fc740d70 876OBJCOPY_FOR_TARGET
cd9a469c 877OBJDUMP_FOR_TARGET
16706a2e 878OTOOL_FOR_TARGET
cd9a469c 879RANLIB_FOR_TARGET
3f71364d 880READELF_FOR_TARGET
cd9a469c 881STRIP_FOR_TARGET
882WINDRES_FOR_TARGET
883WINDMC_FOR_TARGET'
884
71ab34df 885
886# Initialize some variables set by options.
b30fcfae 887ac_init_help=
888ac_init_version=false
cd9a469c 889ac_unrecognized_opts=
890ac_unrecognized_sep=
71ab34df 891# The variables have the same names as the options, with
892# dashes changed to underlines.
b30fcfae 893cache_file=/dev/null
71ab34df 894exec_prefix=NONE
71ab34df 895no_create=
71ab34df 896no_recursion=
897prefix=NONE
898program_prefix=NONE
899program_suffix=NONE
900program_transform_name=s,x,x,
901silent=
902site=
903srcdir=
71ab34df 904verbose=
905x_includes=NONE
906x_libraries=NONE
b30fcfae 907
908# Installation directory options.
909# These are left unexpanded so users can "make install exec_prefix=/foo"
910# and all the variables that are supposed to be based on exec_prefix
911# by default will actually change.
912# Use braces instead of parens because sh, perl, etc. also accept them.
cd9a469c 913# (The list follows the same order as the GNU Coding Standards.)
71ab34df 914bindir='${exec_prefix}/bin'
915sbindir='${exec_prefix}/sbin'
916libexecdir='${exec_prefix}/libexec'
cd9a469c 917datarootdir='${prefix}/share'
918datadir='${datarootdir}'
71ab34df 919sysconfdir='${prefix}/etc'
920sharedstatedir='${prefix}/com'
921localstatedir='${prefix}/var'
71ab34df 922includedir='${prefix}/include'
923oldincludedir='/usr/include'
cd9a469c 924docdir='${datarootdir}/doc/${PACKAGE}'
925infodir='${datarootdir}/info'
926htmldir='${docdir}'
927dvidir='${docdir}'
928pdfdir='${docdir}'
929psdir='${docdir}'
930libdir='${exec_prefix}/lib'
931localedir='${datarootdir}/locale'
932mandir='${datarootdir}/man'
a8298541 933
71ab34df 934ac_prev=
cd9a469c 935ac_dashdash=
71ab34df 936for ac_option
937do
71ab34df 938 # If the previous option needs an argument, assign it.
939 if test -n "$ac_prev"; then
cd9a469c 940 eval $ac_prev=\$ac_option
71ab34df 941 ac_prev=
942 continue
943 fi
a8298541 944
cd9a469c 945 case $ac_option in
f00f02a3 946 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
947 *=) ac_optarg= ;;
948 *) ac_optarg=yes ;;
cd9a469c 949 esac
71ab34df 950
951 # Accept the important Cygnus configure options, so we can diagnose typos.
952
cd9a469c 953 case $ac_dashdash$ac_option in
954 --)
955 ac_dashdash=yes ;;
71ab34df 956
957 -bindir | --bindir | --bindi | --bind | --bin | --bi)
958 ac_prev=bindir ;;
959 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b30fcfae 960 bindir=$ac_optarg ;;
71ab34df 961
962 -build | --build | --buil | --bui | --bu)
b30fcfae 963 ac_prev=build_alias ;;
71ab34df 964 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b30fcfae 965 build_alias=$ac_optarg ;;
71ab34df 966
967 -cache-file | --cache-file | --cache-fil | --cache-fi \
968 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
969 ac_prev=cache_file ;;
970 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
971 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b30fcfae 972 cache_file=$ac_optarg ;;
973
974 --config-cache | -C)
975 cache_file=config.cache ;;
71ab34df 976
cd9a469c 977 -datadir | --datadir | --datadi | --datad)
71ab34df 978 ac_prev=datadir ;;
cd9a469c 979 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b30fcfae 980 datadir=$ac_optarg ;;
71ab34df 981
cd9a469c 982 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
983 | --dataroo | --dataro | --datar)
984 ac_prev=datarootdir ;;
985 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
986 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
987 datarootdir=$ac_optarg ;;
988
71ab34df 989 -disable-* | --disable-*)
cd9a469c 990 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
71ab34df 991 # Reject names that are not valid shell variable names.
cd9a469c 992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f00f02a3 993 as_fn_error $? "invalid feature name: $ac_useropt"
cd9a469c 994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
997 *"
998"enable_$ac_useropt"
999"*) ;;
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1002 esac
1003 eval enable_$ac_useropt=no ;;
1004
1005 -docdir | --docdir | --docdi | --doc | --do)
1006 ac_prev=docdir ;;
1007 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1008 docdir=$ac_optarg ;;
1009
1010 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011 ac_prev=dvidir ;;
1012 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1013 dvidir=$ac_optarg ;;
71ab34df 1014
1015 -enable-* | --enable-*)
cd9a469c 1016 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
71ab34df 1017 # Reject names that are not valid shell variable names.
cd9a469c 1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f00f02a3 1019 as_fn_error $? "invalid feature name: $ac_useropt"
cd9a469c 1020 ac_useropt_orig=$ac_useropt
1021 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022 case $ac_user_opts in
1023 *"
1024"enable_$ac_useropt"
1025"*) ;;
1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1027 ac_unrecognized_sep=', ';;
5084f823 1028 esac
cd9a469c 1029 eval enable_$ac_useropt=\$ac_optarg ;;
71ab34df 1030
1031 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1032 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1033 | --exec | --exe | --ex)
1034 ac_prev=exec_prefix ;;
1035 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1036 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1037 | --exec=* | --exe=* | --ex=*)
b30fcfae 1038 exec_prefix=$ac_optarg ;;
71ab34df 1039
1040 -gas | --gas | --ga | --g)
1041 # Obsolete; use --with-gas.
1042 with_gas=yes ;;
1043
b30fcfae 1044 -help | --help | --hel | --he | -h)
1045 ac_init_help=long ;;
1046 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1047 ac_init_help=recursive ;;
1048 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1049 ac_init_help=short ;;
71ab34df 1050
1051 -host | --host | --hos | --ho)
b30fcfae 1052 ac_prev=host_alias ;;
71ab34df 1053 -host=* | --host=* | --hos=* | --ho=*)
b30fcfae 1054 host_alias=$ac_optarg ;;
71ab34df 1055
cd9a469c 1056 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1057 ac_prev=htmldir ;;
1058 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1059 | --ht=*)
1060 htmldir=$ac_optarg ;;
1061
71ab34df 1062 -includedir | --includedir | --includedi | --included | --include \
1063 | --includ | --inclu | --incl | --inc)
1064 ac_prev=includedir ;;
1065 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1066 | --includ=* | --inclu=* | --incl=* | --inc=*)
b30fcfae 1067 includedir=$ac_optarg ;;
71ab34df 1068
1069 -infodir | --infodir | --infodi | --infod | --info | --inf)
1070 ac_prev=infodir ;;
1071 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b30fcfae 1072 infodir=$ac_optarg ;;
71ab34df 1073
1074 -libdir | --libdir | --libdi | --libd)
1075 ac_prev=libdir ;;
1076 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b30fcfae 1077 libdir=$ac_optarg ;;
71ab34df 1078
1079 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1080 | --libexe | --libex | --libe)
1081 ac_prev=libexecdir ;;
1082 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1083 | --libexe=* | --libex=* | --libe=*)
b30fcfae 1084 libexecdir=$ac_optarg ;;
71ab34df 1085
cd9a469c 1086 -localedir | --localedir | --localedi | --localed | --locale)
1087 ac_prev=localedir ;;
1088 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1089 localedir=$ac_optarg ;;
1090
71ab34df 1091 -localstatedir | --localstatedir | --localstatedi | --localstated \
cd9a469c 1092 | --localstate | --localstat | --localsta | --localst | --locals)
71ab34df 1093 ac_prev=localstatedir ;;
1094 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
cd9a469c 1095 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b30fcfae 1096 localstatedir=$ac_optarg ;;
71ab34df 1097
1098 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1099 ac_prev=mandir ;;
1100 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b30fcfae 1101 mandir=$ac_optarg ;;
71ab34df 1102
1103 -nfp | --nfp | --nf)
1104 # Obsolete; use --without-fp.
1105 with_fp=no ;;
1106
1107 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b30fcfae 1108 | --no-cr | --no-c | -n)
71ab34df 1109 no_create=yes ;;
1110
1111 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1112 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1113 no_recursion=yes ;;
1114
1115 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1116 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1117 | --oldin | --oldi | --old | --ol | --o)
1118 ac_prev=oldincludedir ;;
1119 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1120 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1121 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b30fcfae 1122 oldincludedir=$ac_optarg ;;
71ab34df 1123
1124 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1125 ac_prev=prefix ;;
1126 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b30fcfae 1127 prefix=$ac_optarg ;;
71ab34df 1128
1129 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1130 | --program-pre | --program-pr | --program-p)
1131 ac_prev=program_prefix ;;
1132 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1133 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b30fcfae 1134 program_prefix=$ac_optarg ;;
71ab34df 1135
1136 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1137 | --program-suf | --program-su | --program-s)
1138 ac_prev=program_suffix ;;
1139 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1140 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b30fcfae 1141 program_suffix=$ac_optarg ;;
71ab34df 1142
1143 -program-transform-name | --program-transform-name \
1144 | --program-transform-nam | --program-transform-na \
1145 | --program-transform-n | --program-transform- \
1146 | --program-transform | --program-transfor \
1147 | --program-transfo | --program-transf \
1148 | --program-trans | --program-tran \
1149 | --progr-tra | --program-tr | --program-t)
1150 ac_prev=program_transform_name ;;
1151 -program-transform-name=* | --program-transform-name=* \
1152 | --program-transform-nam=* | --program-transform-na=* \
1153 | --program-transform-n=* | --program-transform-=* \
1154 | --program-transform=* | --program-transfor=* \
1155 | --program-transfo=* | --program-transf=* \
1156 | --program-trans=* | --program-tran=* \
1157 | --progr-tra=* | --program-tr=* | --program-t=*)
b30fcfae 1158 program_transform_name=$ac_optarg ;;
71ab34df 1159
cd9a469c 1160 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1161 ac_prev=pdfdir ;;
1162 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1163 pdfdir=$ac_optarg ;;
1164
1165 -psdir | --psdir | --psdi | --psd | --ps)
1166 ac_prev=psdir ;;
1167 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1168 psdir=$ac_optarg ;;
1169
71ab34df 1170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1171 | -silent | --silent | --silen | --sile | --sil)
1172 silent=yes ;;
1173
1174 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1175 ac_prev=sbindir ;;
1176 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1177 | --sbi=* | --sb=*)
b30fcfae 1178 sbindir=$ac_optarg ;;
71ab34df 1179
1180 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1181 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1182 | --sharedst | --shareds | --shared | --share | --shar \
1183 | --sha | --sh)
1184 ac_prev=sharedstatedir ;;
1185 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1186 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1187 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1188 | --sha=* | --sh=*)
b30fcfae 1189 sharedstatedir=$ac_optarg ;;
71ab34df 1190
1191 -site | --site | --sit)
1192 ac_prev=site ;;
1193 -site=* | --site=* | --sit=*)
b30fcfae 1194 site=$ac_optarg ;;
71ab34df 1195
1196 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1197 ac_prev=srcdir ;;
1198 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b30fcfae 1199 srcdir=$ac_optarg ;;
71ab34df 1200
1201 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1202 | --syscon | --sysco | --sysc | --sys | --sy)
1203 ac_prev=sysconfdir ;;
1204 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1205 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b30fcfae 1206 sysconfdir=$ac_optarg ;;
71ab34df 1207
1208 -target | --target | --targe | --targ | --tar | --ta | --t)
b30fcfae 1209 ac_prev=target_alias ;;
71ab34df 1210 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b30fcfae 1211 target_alias=$ac_optarg ;;
71ab34df 1212
1213 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1214 verbose=yes ;;
1215
b30fcfae 1216 -version | --version | --versio | --versi | --vers | -V)
1217 ac_init_version=: ;;
71ab34df 1218
1219 -with-* | --with-*)
cd9a469c 1220 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
71ab34df 1221 # Reject names that are not valid shell variable names.
cd9a469c 1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f00f02a3 1223 as_fn_error $? "invalid package name: $ac_useropt"
cd9a469c 1224 ac_useropt_orig=$ac_useropt
1225 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226 case $ac_user_opts in
1227 *"
1228"with_$ac_useropt"
1229"*) ;;
1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1231 ac_unrecognized_sep=', ';;
5084f823 1232 esac
cd9a469c 1233 eval with_$ac_useropt=\$ac_optarg ;;
71ab34df 1234
1235 -without-* | --without-*)
cd9a469c 1236 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
71ab34df 1237 # Reject names that are not valid shell variable names.
cd9a469c 1238 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f00f02a3 1239 as_fn_error $? "invalid package name: $ac_useropt"
cd9a469c 1240 ac_useropt_orig=$ac_useropt
1241 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1242 case $ac_user_opts in
1243 *"
1244"with_$ac_useropt"
1245"*) ;;
1246 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1247 ac_unrecognized_sep=', ';;
1248 esac
1249 eval with_$ac_useropt=no ;;
71ab34df 1250
1251 --x)
1252 # Obsolete; use --with-x.
1253 with_x=yes ;;
1254
1255 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1256 | --x-incl | --x-inc | --x-in | --x-i)
1257 ac_prev=x_includes ;;
1258 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1259 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b30fcfae 1260 x_includes=$ac_optarg ;;
71ab34df 1261
1262 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1263 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1264 ac_prev=x_libraries ;;
1265 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1266 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b30fcfae 1267 x_libraries=$ac_optarg ;;
71ab34df 1268
f00f02a3 1269 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1270Try \`$0 --help' for more information"
71ab34df 1271 ;;
1272
b30fcfae 1273 *=*)
1274 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1275 # Reject names that are not valid shell variable names.
cd9a469c 1276 case $ac_envvar in #(
1277 '' | [0-9]* | *[!_$as_cr_alnum]* )
f00f02a3 1278 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cd9a469c 1279 esac
1280 eval $ac_envvar=\$ac_optarg
b30fcfae 1281 export $ac_envvar ;;
1282
71ab34df 1283 *)
b30fcfae 1284 # FIXME: should be removed in autoconf 3.0.
cd9a469c 1285 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b30fcfae 1286 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
cd9a469c 1287 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
f00f02a3 1288 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
71ab34df 1289 ;;
1290
1291 esac
1292done
1293
1294if test -n "$ac_prev"; then
b30fcfae 1295 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
f00f02a3 1296 as_fn_error $? "missing argument to $ac_option"
ae48753c 1297fi
ae48753c 1298
cd9a469c 1299if test -n "$ac_unrecognized_opts"; then
1300 case $enable_option_checking in
1301 no) ;;
f00f02a3 1302 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cd9a469c 1303 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
5084f823 1304 esac
cd9a469c 1305fi
5084f823 1306
cd9a469c 1307# Check all directory arguments for consistency.
1308for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1309 datadir sysconfdir sharedstatedir localstatedir includedir \
1310 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1311 libdir localedir mandir
5084f823 1312do
cd9a469c 1313 eval ac_val=\$$ac_var
1314 # Remove trailing slashes.
1315 case $ac_val in
1316 */ )
1317 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1318 eval $ac_var=\$ac_val;;
1319 esac
1320 # Be sure to have absolute directory names.
5084f823 1321 case $ac_val in
cd9a469c 1322 [\\/$]* | ?:[\\/]* ) continue;;
1323 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
71ab34df 1324 esac
f00f02a3 1325 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
71ab34df 1326done
1327
b30fcfae 1328# There might be people who depend on the old broken behavior: `$host'
1329# used to hold the argument of --host etc.
1330# FIXME: To remove some day.
1331build=$build_alias
1332host=$host_alias
1333target=$target_alias
a83ffacf 1334
b30fcfae 1335# FIXME: To remove some day.
1336if test "x$host_alias" != x; then
1337 if test "x$build_alias" = x; then
1338 cross_compiling=maybe
b30fcfae 1339 elif test "x$build_alias" != "x$host_alias"; then
1340 cross_compiling=yes
1341 fi
1342fi
1343
1344ac_tool_prefix=
1345test -n "$host_alias" && ac_tool_prefix=$host_alias-
1346
1347test "$silent" = yes && exec 6>/dev/null
71ab34df 1348
71ab34df 1349
cd9a469c 1350ac_pwd=`pwd` && test -n "$ac_pwd" &&
1351ac_ls_di=`ls -di .` &&
1352ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
f00f02a3 1353 as_fn_error $? "working directory cannot be determined"
cd9a469c 1354test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
f00f02a3 1355 as_fn_error $? "pwd does not report name of working directory"
cd9a469c 1356
1357
71ab34df 1358# Find the source files, if location was not specified.
1359if test -z "$srcdir"; then
1360 ac_srcdir_defaulted=yes
cd9a469c 1361 # Try the directory containing this script, then the parent directory.
1362 ac_confdir=`$as_dirname -- "$as_myself" ||
1363$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1364 X"$as_myself" : 'X\(//\)[^/]' \| \
1365 X"$as_myself" : 'X\(//\)$' \| \
1366 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1367$as_echo X"$as_myself" |
1368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1369 s//\1/
1370 q
1371 }
1372 /^X\(\/\/\)[^/].*/{
1373 s//\1/
1374 q
1375 }
1376 /^X\(\/\/\)$/{
1377 s//\1/
1378 q
1379 }
1380 /^X\(\/\).*/{
1381 s//\1/
1382 q
1383 }
1384 s/.*/./; q'`
71ab34df 1385 srcdir=$ac_confdir
cd9a469c 1386 if test ! -r "$srcdir/$ac_unique_file"; then
71ab34df 1387 srcdir=..
1388 fi
1389else
1390 ac_srcdir_defaulted=no
1391fi
cd9a469c 1392if test ! -r "$srcdir/$ac_unique_file"; then
1393 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
f00f02a3 1394 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cd9a469c 1395fi
1396ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1397ac_abs_confdir=`(
f00f02a3 1398 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cd9a469c 1399 pwd)`
1400# When building in place, set srcdir=.
1401if test "$ac_abs_confdir" = "$ac_pwd"; then
1402 srcdir=.
1403fi
1404# Remove unnecessary trailing slashes from srcdir.
1405# Double slashes in file names in object file debugging info
1406# mess up M-x gdb in Emacs.
1407case $srcdir in
1408*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1409esac
13d2f2b2 1410case $srcdir in
1411 *" "*)
f00f02a3 1412 as_fn_error $? "path to source, $srcdir, contains spaces"
13d2f2b2 1413 ;;
1414esac
d2d2630b 1415ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1416
cd9a469c 1417for ac_var in $ac_precious_vars; do
1418 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1419 eval ac_env_${ac_var}_value=\$${ac_var}
1420 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1421 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1422done
b30fcfae 1423
1424#
1425# Report the --help message.
1426#
1427if test "$ac_init_help" = "long"; then
1428 # Omit some internal or obsolete options to make the list less imposing.
1429 # This message is too long to be a string in the A/UX 3.1 sh.
1430 cat <<_ACEOF
1431\`configure' configures this package to adapt to many kinds of systems.
1432
1433Usage: $0 [OPTION]... [VAR=VALUE]...
1434
1435To assign environment variables (e.g., CC, CFLAGS...), specify them as
1436VAR=VALUE. See below for descriptions of some of the useful variables.
1437
1438Defaults for the options are specified in brackets.
1439
1440Configuration:
1441 -h, --help display this help and exit
1442 --help=short display options specific to this package
1443 --help=recursive display the short help of all the included packages
1444 -V, --version display version information and exit
f00f02a3 1445 -q, --quiet, --silent do not print \`checking ...' messages
b30fcfae 1446 --cache-file=FILE cache test results in FILE [disabled]
1447 -C, --config-cache alias for \`--cache-file=config.cache'
1448 -n, --no-create do not create output files
1449 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1450
b30fcfae 1451Installation directories:
1452 --prefix=PREFIX install architecture-independent files in PREFIX
cd9a469c 1453 [$ac_default_prefix]
b30fcfae 1454 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
cd9a469c 1455 [PREFIX]
b30fcfae 1456
1457By default, \`make install' will install all the files in
1458\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1459an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1460for instance \`--prefix=\$HOME'.
1461
1462For better control, use the options below.
1463
1464Fine tuning of the installation directories:
cd9a469c 1465 --bindir=DIR user executables [EPREFIX/bin]
1466 --sbindir=DIR system admin executables [EPREFIX/sbin]
1467 --libexecdir=DIR program executables [EPREFIX/libexec]
1468 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1469 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1470 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1471 --libdir=DIR object code libraries [EPREFIX/lib]
1472 --includedir=DIR C header files [PREFIX/include]
1473 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1474 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1475 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1476 --infodir=DIR info documentation [DATAROOTDIR/info]
1477 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1478 --mandir=DIR man documentation [DATAROOTDIR/man]
1479 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1480 --htmldir=DIR html documentation [DOCDIR]
1481 --dvidir=DIR dvi documentation [DOCDIR]
1482 --pdfdir=DIR pdf documentation [DOCDIR]
1483 --psdir=DIR ps documentation [DOCDIR]
b30fcfae 1484_ACEOF
1485
1486 cat <<\_ACEOF
1487
1488Program names:
1489 --program-prefix=PREFIX prepend PREFIX to installed program names
1490 --program-suffix=SUFFIX append SUFFIX to installed program names
1491 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1492
1493System types:
1494 --build=BUILD configure for building on BUILD [guessed]
1495 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1496 --target=TARGET configure for building compilers for TARGET [HOST]
1497_ACEOF
1498fi
1499
1500if test -n "$ac_init_help"; then
1501
1502 cat <<\_ACEOF
1503
1504Optional Features:
cd9a469c 1505 --disable-option-checking ignore unrecognized --enable/--with options
b30fcfae 1506 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1507 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
a3d93be3 1508 --enable-as-accelerator-for=ARG
1509 build as offload target compiler. Specify offload
1510 host triple by ARG
1511 --enable-offload-targets=LIST
1512 enable offloading to devices from comma-separated
1513 LIST of TARGET[=DIR]. Use optional path to find
1514 offload target compiler during the build
1e369e5f 1515 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
8747a938 1516 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
325f661b 1517 --enable-compressed-debug-sections={all,gas,gold,ld,none}
afb6adb9 1518 Enable compressed debug sections for gas, gold or ld
1519 by default
d9d975ae 1520 --disable-libquadmath do not build libquadmath directory
1521 --disable-libquadmath-support
1522 disable libquadmath support for Fortran
09c2d953 1523 --enable-libada build libada directory
1524 --enable-libssp build libssp directory
a3ba808f 1525 --disable-libstdcxx do not build libstdc++-v3 directory
d3a7dd32 1526 --enable-liboffloadmic=ARG
1527 build liboffloadmic [ARG={no,host,target}]
6c59dfa4 1528 --enable-bootstrap enable bootstrapping [yes if native build]
87e20041 1529 --disable-isl-version-check
7458b15a 1530 disable check for isl version
7bfefa9d 1531 --enable-lto enable link time optimization support
1015a063 1532 --enable-linker-plugin-configure-flags=FLAGS
1533 additional flags for configuring linker plugins
1534 [none]
1535 --enable-linker-plugin-flags=FLAGS
1536 additional flags for configuring and building linker
1537 plugins [none]
01b4453c 1538 --enable-host-shared build host code as shared libraries
8747a938 1539 --enable-stage1-languages[=all]
1540 choose additional languages to build during stage1.
1541 Mostly useful for compiler development
03869f98 1542 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1543 Objective-C runtime
d5f3a33f 1544 --enable-vtable-verify Enable vtable verification feature
09c2d953 1545 --enable-serial-[{host,target,build}-]configure
8747a938 1546 force sequential configuration of sub-packages for
1547 the host, target or build machine, or all
1548 sub-packages
1549 --enable-maintainer-mode
1550 enable make rules and dependencies not useful (and
1551 sometimes confusing) to the casual installer
1552 --enable-stage1-checking[=all]
1553 choose additional checking for stage1 of the
1554 compiler
b30fcfae 1555 --enable-werror enable -Werror in bootstrap stage2 and later
1556
1557Optional Packages:
1558 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1559 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1560 --with-build-libsubdir=DIR Directory where to find libraries for build system
6406d366 1561 --with-system-zlib use installed libz
8747a938 1562 --with-mpc=PATH specify prefix directory for installed MPC package.
1563 Equivalent to --with-mpc-include=PATH/include plus
1564 --with-mpc-lib=PATH/lib
1565 --with-mpc-include=PATH specify directory for installed MPC include files
1566 --with-mpc-lib=PATH specify directory for the installed MPC library
09c2d953 1567 --with-mpfr-dir=PATH this option has been REMOVED
1568 --with-mpfr=PATH specify prefix directory for installed MPFR package.
8747a938 1569 Equivalent to --with-mpfr-include=PATH/include plus
1570 --with-mpfr-lib=PATH/lib
b30fcfae 1571 --with-mpfr-include=PATH
09c2d953 1572 specify directory for installed MPFR include files
1573 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1574 --with-gmp-dir=PATH this option has been REMOVED
8747a938 1575 --with-gmp=PATH specify prefix directory for the installed GMP
1576 package. Equivalent to
1577 --with-gmp-include=PATH/include plus
1578 --with-gmp-lib=PATH/lib
09c2d953 1579 --with-gmp-include=PATH specify directory for installed GMP include files
1580 --with-gmp-lib=PATH specify directory for the installed GMP library
13687c85 1581 --with-stage1-libs=LIBS libraries for stage1
8747a938 1582 --with-stage1-ldflags=FLAGS
1583 linker flags for stage1
8747a938 1584 --with-boot-libs=LIBS libraries for stage2 and later
1585 --with-boot-ldflags=FLAGS
1586 linker flags for stage2 and later
71130ef8 1587 --with-isl=PATH Specify prefix directory for the installed isl
8747a938 1588 package. Equivalent to
87e20041 1589 --with-isl-include=PATH/include plus
1590 --with-isl-lib=PATH/lib
7458b15a 1591 --with-isl-include=PATH Specify directory for installed isl include files
1592 --with-isl-lib=PATH Specify the directory for the installed isl library
baf71228 1593 --with-target-bdw-gc=PATHLIST
1594 specify prefix directory for installed bdw-gc
1595 package. Equivalent to
1596 --with-target-bdw-gc-include=PATH/include plus
1597 --with-target-bdw-gc-lib=PATH/lib
1598 --with-target-bdw-gc-include=PATHLIST
1599 specify directories for installed bdw-gc include
1600 files
1601 --with-target-bdw-gc-lib=PATHLIST
1602 specify directories for installed bdw-gc library
0812bb06 1603 --with-gcc-major-version-only
1604 use only GCC major number in filesystem paths
09c2d953 1605 --with-build-sysroot=SYSROOT
b30fcfae 1606 use sysroot as the system root during the build
5f1f2de5 1607 --with-debug-prefix-map='A=B C=D ...'
8747a938 1608 map A to B, C to D ... in debug information
1609 --with-build-config='NAME NAME2...'
1610 use config/NAME.mk build configuration
09c2d953 1611 --with-build-time-tools=PATH
b30fcfae 1612 use given path to find target tools during the build
b30fcfae 1613
1614Some influential environment variables:
1615 CC C compiler command
1616 CFLAGS C compiler flags
1617 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1618 nonstandard directory <lib dir>
cd9a469c 1619 LIBS libraries to pass to the linker, e.g. -l<library>
f00f02a3 1620 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cd9a469c 1621 you have headers in a nonstandard directory <include dir>
eae5b2bc 1622 CXX C++ compiler command
1623 CXXFLAGS C++ compiler flags
372a3f1e 1624 build_configargs
1625 additional configure arguments for build directories
1626 host_configargs
1627 additional configure arguments for host directories
1628 target_configargs
1629 additional configure arguments for target directories
95a05732 1630 AR AR for the host
1631 AS AS for the host
1632 DLLTOOL DLLTOOL for the host
1633 LD LD for the host
1634 LIPO LIPO for the host
1635 NM NM for the host
1636 RANLIB RANLIB for the host
1637 STRIP STRIP for the host
1638 WINDRES WINDRES for the host
75d6a0a9 1639 WINDMC WINDMC for the host
95a05732 1640 OBJCOPY OBJCOPY for the host
1641 OBJDUMP OBJDUMP for the host
16706a2e 1642 OTOOL OTOOL for the host
3f71364d 1643 READELF READELF for the host
95a05732 1644 CC_FOR_TARGET
1645 CC for the target
1646 CXX_FOR_TARGET
1647 CXX for the target
1648 GCC_FOR_TARGET
1649 GCC for the target
95a05732 1650 GFORTRAN_FOR_TARGET
1651 GFORTRAN for the target
5ff5b630 1652 GOC_FOR_TARGET
1653 GOC for the target
03385ed3 1654 GDC_FOR_TARGET
1655 GDC for the target
95a05732 1656 AR_FOR_TARGET
1657 AR for the target
1658 AS_FOR_TARGET
1659 AS for the target
1660 DLLTOOL_FOR_TARGET
1661 DLLTOOL for the target
1662 LD_FOR_TARGET
1663 LD for the target
1664 LIPO_FOR_TARGET
1665 LIPO for the target
1666 NM_FOR_TARGET
1667 NM for the target
fc740d70 1668 OBJCOPY_FOR_TARGET
1669 OBJCOPY for the target
95a05732 1670 OBJDUMP_FOR_TARGET
1671 OBJDUMP for the target
16706a2e 1672 OTOOL_FOR_TARGET
1673 OTOOL for the target
95a05732 1674 RANLIB_FOR_TARGET
1675 RANLIB for the target
3f71364d 1676 READELF_FOR_TARGET
1677 READELF for the target
95a05732 1678 STRIP_FOR_TARGET
1679 STRIP for the target
1680 WINDRES_FOR_TARGET
1681 WINDRES for the target
75d6a0a9 1682 WINDMC_FOR_TARGET
1683 WINDMC for the target
b30fcfae 1684
1685Use these variables to override the choices made by `configure' or to help
1686it to find libraries and programs with nonstandard names/locations.
1687
cd9a469c 1688Report bugs to the package provider.
b30fcfae 1689_ACEOF
cd9a469c 1690ac_status=$?
b30fcfae 1691fi
1692
1693if test "$ac_init_help" = "recursive"; then
1694 # If there are subdirs, report their specific --help.
b30fcfae 1695 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
cd9a469c 1696 test -d "$ac_dir" ||
1697 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1698 continue
b30fcfae 1699 ac_builddir=.
1700
cd9a469c 1701case "$ac_dir" in
1702.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1703*)
1704 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1705 # A ".." for each directory in $ac_dir_suffix.
1706 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1707 case $ac_top_builddir_sub in
1708 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1709 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1710 esac ;;
1711esac
1712ac_abs_top_builddir=$ac_pwd
1713ac_abs_builddir=$ac_pwd$ac_dir_suffix
1714# for backward compatibility:
1715ac_top_builddir=$ac_top_build_prefix
b30fcfae 1716
1717case $srcdir in
cd9a469c 1718 .) # We are building in place.
b30fcfae 1719 ac_srcdir=.
cd9a469c 1720 ac_top_srcdir=$ac_top_builddir_sub
1721 ac_abs_top_srcdir=$ac_pwd ;;
1722 [\\/]* | ?:[\\/]* ) # Absolute name.
b30fcfae 1723 ac_srcdir=$srcdir$ac_dir_suffix;
cd9a469c 1724 ac_top_srcdir=$srcdir
1725 ac_abs_top_srcdir=$srcdir ;;
1726 *) # Relative name.
1727 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1728 ac_top_srcdir=$ac_top_build_prefix$srcdir
1729 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5084f823 1730esac
cd9a469c 1731ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1732
1733 cd "$ac_dir" || { ac_status=$?; continue; }
1734 # Check for guested configure.
1735 if test -f "$ac_srcdir/configure.gnu"; then
1736 echo &&
1737 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1738 elif test -f "$ac_srcdir/configure"; then
1739 echo &&
1740 $SHELL "$ac_srcdir/configure" --help=recursive
b30fcfae 1741 else
cd9a469c 1742 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1743 fi || ac_status=$?
1744 cd "$ac_pwd" || { ac_status=$?; break; }
b30fcfae 1745 done
1746fi
1747
cd9a469c 1748test -n "$ac_init_help" && exit $ac_status
b30fcfae 1749if $ac_init_version; then
1750 cat <<\_ACEOF
cd9a469c 1751configure
f00f02a3 1752generated by GNU Autoconf 2.69
b30fcfae 1753
f00f02a3 1754Copyright (C) 2012 Free Software Foundation, Inc.
b30fcfae 1755This configure script is free software; the Free Software Foundation
1756gives unlimited permission to copy, distribute and modify it.
1757_ACEOF
cd9a469c 1758 exit
a83ffacf 1759fi
cd9a469c 1760
1761## ------------------------ ##
1762## Autoconf initialization. ##
1763## ------------------------ ##
1764
1765# ac_fn_c_try_compile LINENO
1766# --------------------------
1767# Try to compile conftest.$ac_ext, and return whether this succeeded.
1768ac_fn_c_try_compile ()
1769{
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 rm -f conftest.$ac_objext
1772 if { { ac_try="$ac_compile"
1773case "(($ac_try" in
1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775 *) ac_try_echo=$ac_try;;
1776esac
1777eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778$as_echo "$ac_try_echo"; } >&5
1779 (eval "$ac_compile") 2>conftest.err
1780 ac_status=$?
1781 if test -s conftest.err; then
1782 grep -v '^ *+' conftest.err >conftest.er1
1783 cat conftest.er1 >&5
1784 mv -f conftest.er1 conftest.err
1785 fi
1786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1787 test $ac_status = 0; } && {
1788 test -z "$ac_c_werror_flag" ||
1789 test ! -s conftest.err
1790 } && test -s conftest.$ac_objext; then :
1791 ac_retval=0
1792else
1793 $as_echo "$as_me: failed program was:" >&5
1794sed 's/^/| /' conftest.$ac_ext >&5
1795
1796 ac_retval=1
1797fi
f00f02a3 1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799 as_fn_set_status $ac_retval
cd9a469c 1800
1801} # ac_fn_c_try_compile
1802
1803# ac_fn_cxx_try_compile LINENO
1804# ----------------------------
1805# Try to compile conftest.$ac_ext, and return whether this succeeded.
1806ac_fn_cxx_try_compile ()
1807{
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 rm -f conftest.$ac_objext
1810 if { { ac_try="$ac_compile"
1811case "(($ac_try" in
1812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813 *) ac_try_echo=$ac_try;;
1814esac
1815eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816$as_echo "$ac_try_echo"; } >&5
1817 (eval "$ac_compile") 2>conftest.err
1818 ac_status=$?
1819 if test -s conftest.err; then
1820 grep -v '^ *+' conftest.err >conftest.er1
1821 cat conftest.er1 >&5
1822 mv -f conftest.er1 conftest.err
1823 fi
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; } && {
1826 test -z "$ac_cxx_werror_flag" ||
1827 test ! -s conftest.err
1828 } && test -s conftest.$ac_objext; then :
1829 ac_retval=0
1830else
1831 $as_echo "$as_me: failed program was:" >&5
1832sed 's/^/| /' conftest.$ac_ext >&5
1833
1834 ac_retval=1
1835fi
f00f02a3 1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837 as_fn_set_status $ac_retval
cd9a469c 1838
1839} # ac_fn_cxx_try_compile
1840
13687c85 1841# ac_fn_cxx_try_link LINENO
1842# -------------------------
1843# Try to link conftest.$ac_ext, and return whether this succeeded.
1844ac_fn_cxx_try_link ()
1845{
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 rm -f conftest.$ac_objext conftest$ac_exeext
1848 if { { ac_try="$ac_link"
1849case "(($ac_try" in
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1852esac
1853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854$as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_link") 2>conftest.err
1856 ac_status=$?
1857 if test -s conftest.err; then
1858 grep -v '^ *+' conftest.err >conftest.er1
1859 cat conftest.er1 >&5
1860 mv -f conftest.er1 conftest.err
1861 fi
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } && {
1864 test -z "$ac_cxx_werror_flag" ||
1865 test ! -s conftest.err
1866 } && test -s conftest$ac_exeext && {
1867 test "$cross_compiling" = yes ||
f00f02a3 1868 test -x conftest$ac_exeext
13687c85 1869 }; then :
1870 ac_retval=0
1871else
1872 $as_echo "$as_me: failed program was:" >&5
1873sed 's/^/| /' conftest.$ac_ext >&5
1874
1875 ac_retval=1
1876fi
1877 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1878 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1879 # interfere with the next link command; also delete a directory that is
1880 # left behind by Apple's compiler. We do this before executing the actions.
1881 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
f00f02a3 1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883 as_fn_set_status $ac_retval
13687c85 1884
1885} # ac_fn_cxx_try_link
1886
cd9a469c 1887# ac_fn_c_try_link LINENO
1888# -----------------------
1889# Try to link conftest.$ac_ext, and return whether this succeeded.
1890ac_fn_c_try_link ()
1891{
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 rm -f conftest.$ac_objext conftest$ac_exeext
1894 if { { ac_try="$ac_link"
1895case "(($ac_try" in
1896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1898esac
1899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900$as_echo "$ac_try_echo"; } >&5
1901 (eval "$ac_link") 2>conftest.err
1902 ac_status=$?
1903 if test -s conftest.err; then
1904 grep -v '^ *+' conftest.err >conftest.er1
1905 cat conftest.er1 >&5
1906 mv -f conftest.er1 conftest.err
1907 fi
1908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909 test $ac_status = 0; } && {
1910 test -z "$ac_c_werror_flag" ||
1911 test ! -s conftest.err
1912 } && test -s conftest$ac_exeext && {
1913 test "$cross_compiling" = yes ||
f00f02a3 1914 test -x conftest$ac_exeext
cd9a469c 1915 }; then :
1916 ac_retval=0
1917else
1918 $as_echo "$as_me: failed program was:" >&5
1919sed 's/^/| /' conftest.$ac_ext >&5
1920
1921 ac_retval=1
1922fi
1923 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1924 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1925 # interfere with the next link command; also delete a directory that is
1926 # left behind by Apple's compiler. We do this before executing the actions.
1927 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
f00f02a3 1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929 as_fn_set_status $ac_retval
cd9a469c 1930
1931} # ac_fn_c_try_link
1932cat >config.log <<_ACEOF
b30fcfae 1933This file contains any messages produced by compilers while
1934running configure, to aid debugging if configure makes a mistake.
1935
1936It was created by $as_me, which was
f00f02a3 1937generated by GNU Autoconf 2.69. Invocation command line was
b30fcfae 1938
1939 $ $0 $@
1940
1941_ACEOF
cd9a469c 1942exec 5>>config.log
b30fcfae 1943{
1944cat <<_ASUNAME
1945## --------- ##
1946## Platform. ##
1947## --------- ##
1948
1949hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1950uname -m = `(uname -m) 2>/dev/null || echo unknown`
1951uname -r = `(uname -r) 2>/dev/null || echo unknown`
1952uname -s = `(uname -s) 2>/dev/null || echo unknown`
1953uname -v = `(uname -v) 2>/dev/null || echo unknown`
1954
1955/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1956/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1957
1958/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1959/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1960/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
cd9a469c 1961/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
b30fcfae 1962/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1963/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1964/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1965
1966_ASUNAME
1967
1968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1969for as_dir in $PATH
1970do
1971 IFS=$as_save_IFS
1972 test -z "$as_dir" && as_dir=.
cd9a469c 1973 $as_echo "PATH: $as_dir"
1974 done
1975IFS=$as_save_IFS
b30fcfae 1976
1977} >&5
1978
1979cat >&5 <<_ACEOF
1980
1981
1982## ----------- ##
1983## Core tests. ##
1984## ----------- ##
1985
1986_ACEOF
1987
1988
1989# Keep a trace of the command line.
1990# Strip out --no-create and --no-recursion so they do not pile up.
1991# Strip out --silent because we don't want to record it for future runs.
1992# Also quote any args containing shell meta-characters.
1993# Make two passes to allow for proper duplicate-argument suppression.
1994ac_configure_args=
1995ac_configure_args0=
1996ac_configure_args1=
b30fcfae 1997ac_must_keep_next=false
1998for ac_pass in 1 2
1999do
2000 for ac_arg
2001 do
2002 case $ac_arg in
2003 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2004 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2005 | -silent | --silent | --silen | --sile | --sil)
2006 continue ;;
cd9a469c 2007 *\'*)
2008 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b30fcfae 2009 esac
2010 case $ac_pass in
cd9a469c 2011 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b30fcfae 2012 2)
cd9a469c 2013 as_fn_append ac_configure_args1 " '$ac_arg'"
b30fcfae 2014 if test $ac_must_keep_next = true; then
2015 ac_must_keep_next=false # Got value, back to normal.
2016 else
2017 case $ac_arg in
2018 *=* | --config-cache | -C | -disable-* | --disable-* \
2019 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2020 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2021 | -with-* | --with-* | -without-* | --without-* | --x)
2022 case "$ac_configure_args0 " in
2023 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2024 esac
2025 ;;
2026 -* ) ac_must_keep_next=true ;;
2027 esac
2028 fi
cd9a469c 2029 as_fn_append ac_configure_args " '$ac_arg'"
b30fcfae 2030 ;;
2031 esac
2032 done
2033done
cd9a469c 2034{ ac_configure_args0=; unset ac_configure_args0;}
2035{ ac_configure_args1=; unset ac_configure_args1;}
b30fcfae 2036
2037# When interrupted or exit'd, cleanup temporary files, and complete
2038# config.log. We remove comments because anyway the quotes in there
2039# would cause problems or look ugly.
cd9a469c 2040# WARNING: Use '\'' to represent an apostrophe within the trap.
2041# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b30fcfae 2042trap 'exit_status=$?
2043 # Save into config.log some information that might help in debugging.
2044 {
2045 echo
2046
f00f02a3 2047 $as_echo "## ---------------- ##
b30fcfae 2048## Cache variables. ##
f00f02a3 2049## ---------------- ##"
b30fcfae 2050 echo
2051 # The following way of writing the cache mishandles newlines in values,
cd9a469c 2052(
2053 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2054 eval ac_val=\$$ac_var
2055 case $ac_val in #(
2056 *${as_nl}*)
2057 case $ac_var in #(
2058 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2059$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2060 esac
2061 case $ac_var in #(
2062 _ | IFS | as_nl) ;; #(
2063 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2064 *) { eval $ac_var=; unset $ac_var;} ;;
2065 esac ;;
2066 esac
2067 done
b30fcfae 2068 (set) 2>&1 |
cd9a469c 2069 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2070 *${as_nl}ac_space=\ *)
b30fcfae 2071 sed -n \
cd9a469c 2072 "s/'\''/'\''\\\\'\'''\''/g;
2073 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2074 ;; #(
b30fcfae 2075 *)
cd9a469c 2076 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b30fcfae 2077 ;;
cd9a469c 2078 esac |
2079 sort
2080)
b30fcfae 2081 echo
2082
f00f02a3 2083 $as_echo "## ----------------- ##
b30fcfae 2084## Output variables. ##
f00f02a3 2085## ----------------- ##"
b30fcfae 2086 echo
2087 for ac_var in $ac_subst_vars
2088 do
cd9a469c 2089 eval ac_val=\$$ac_var
2090 case $ac_val in
2091 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2092 esac
2093 $as_echo "$ac_var='\''$ac_val'\''"
b30fcfae 2094 done | sort
2095 echo
2096
2097 if test -n "$ac_subst_files"; then
f00f02a3 2098 $as_echo "## ------------------- ##
cd9a469c 2099## File substitutions. ##
f00f02a3 2100## ------------------- ##"
b30fcfae 2101 echo
2102 for ac_var in $ac_subst_files
2103 do
cd9a469c 2104 eval ac_val=\$$ac_var
2105 case $ac_val in
2106 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2107 esac
2108 $as_echo "$ac_var='\''$ac_val'\''"
b30fcfae 2109 done | sort
2110 echo
2111 fi
2112
2113 if test -s confdefs.h; then
f00f02a3 2114 $as_echo "## ----------- ##
b30fcfae 2115## confdefs.h. ##
f00f02a3 2116## ----------- ##"
b30fcfae 2117 echo
cd9a469c 2118 cat confdefs.h
b30fcfae 2119 echo
2120 fi
2121 test "$ac_signal" != 0 &&
cd9a469c 2122 $as_echo "$as_me: caught signal $ac_signal"
2123 $as_echo "$as_me: exit $exit_status"
b30fcfae 2124 } >&5
cd9a469c 2125 rm -f core *.core core.conftest.* &&
2126 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b30fcfae 2127 exit $exit_status
cd9a469c 2128' 0
b30fcfae 2129for ac_signal in 1 2 13 15; do
cd9a469c 2130 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b30fcfae 2131done
2132ac_signal=0
2133
2134# confdefs.h avoids OS command line length limits that DEFS can exceed.
cd9a469c 2135rm -f -r conftest* confdefs.h
2136
2137$as_echo "/* confdefs.h */" > confdefs.h
b30fcfae 2138
2139# Predefined preprocessor variables.
2140
2141cat >>confdefs.h <<_ACEOF
2142#define PACKAGE_NAME "$PACKAGE_NAME"
2143_ACEOF
2144
b30fcfae 2145cat >>confdefs.h <<_ACEOF
2146#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2147_ACEOF
2148
b30fcfae 2149cat >>confdefs.h <<_ACEOF
2150#define PACKAGE_VERSION "$PACKAGE_VERSION"
2151_ACEOF
a83ffacf 2152
b30fcfae 2153cat >>confdefs.h <<_ACEOF
2154#define PACKAGE_STRING "$PACKAGE_STRING"
2155_ACEOF
2156
b30fcfae 2157cat >>confdefs.h <<_ACEOF
2158#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2159_ACEOF
2160
cd9a469c 2161cat >>confdefs.h <<_ACEOF
2162#define PACKAGE_URL "$PACKAGE_URL"
2163_ACEOF
2164
b30fcfae 2165
2166# Let the site file select an alternate cache file if it wants to.
cd9a469c 2167# Prefer an explicitly selected file to automatically selected ones.
2168ac_site_file1=NONE
2169ac_site_file2=NONE
2170if test -n "$CONFIG_SITE"; then
f00f02a3 2171 # We do not want a PATH search for config.site.
2172 case $CONFIG_SITE in #((
2173 -*) ac_site_file1=./$CONFIG_SITE;;
2174 */*) ac_site_file1=$CONFIG_SITE;;
2175 *) ac_site_file1=./$CONFIG_SITE;;
2176 esac
cd9a469c 2177elif test "x$prefix" != xNONE; then
2178 ac_site_file1=$prefix/share/config.site
2179 ac_site_file2=$prefix/etc/config.site
2180else
2181 ac_site_file1=$ac_default_prefix/share/config.site
2182 ac_site_file2=$ac_default_prefix/etc/config.site
71ab34df 2183fi
cd9a469c 2184for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2185do
2186 test "x$ac_site_file" = xNONE && continue
f00f02a3 2187 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cd9a469c 2188 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2189$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b30fcfae 2190 sed 's/^/| /' "$ac_site_file" >&5
f00f02a3 2191 . "$ac_site_file" \
2192 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2193$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2194as_fn_error $? "failed to load site script $ac_site_file
2195See \`config.log' for more details" "$LINENO" 5; }
71ab34df 2196 fi
2197done
2198
2199if test -r "$cache_file"; then
f00f02a3 2200 # Some versions of bash will fail to source /dev/null (special files
2201 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2202 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cd9a469c 2203 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2204$as_echo "$as_me: loading cache $cache_file" >&6;}
b30fcfae 2205 case $cache_file in
cd9a469c 2206 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2207 *) . "./$cache_file";;
b30fcfae 2208 esac
2209 fi
71ab34df 2210else
cd9a469c 2211 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2212$as_echo "$as_me: creating cache $cache_file" >&6;}
b30fcfae 2213 >$cache_file
2214fi
2215
2216# Check that the precious variables saved in the cache have kept the same
2217# value.
2218ac_cache_corrupted=false
cd9a469c 2219for ac_var in $ac_precious_vars; do
b30fcfae 2220 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2221 eval ac_new_set=\$ac_env_${ac_var}_set
cd9a469c 2222 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2223 eval ac_new_val=\$ac_env_${ac_var}_value
b30fcfae 2224 case $ac_old_set,$ac_new_set in
2225 set,)
cd9a469c 2226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2227$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b30fcfae 2228 ac_cache_corrupted=: ;;
2229 ,set)
cd9a469c 2230 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2231$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b30fcfae 2232 ac_cache_corrupted=: ;;
2233 ,);;
2234 *)
2235 if test "x$ac_old_val" != "x$ac_new_val"; then
cd9a469c 2236 # differences in whitespace do not lead to failure.
2237 ac_old_val_w=`echo x $ac_old_val`
2238 ac_new_val_w=`echo x $ac_new_val`
2239 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2241$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2242 ac_cache_corrupted=:
2243 else
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2245$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2246 eval $ac_var=\$ac_old_val
2247 fi
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2249$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2251$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b30fcfae 2252 fi;;
2253 esac
2254 # Pass precious variables to config.status.
2255 if test "$ac_new_set" = set; then
2256 case $ac_new_val in
cd9a469c 2257 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b30fcfae 2258 *) ac_arg=$ac_var=$ac_new_val ;;
2259 esac
2260 case " $ac_configure_args " in
2261 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cd9a469c 2262 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b30fcfae 2263 esac
2264 fi
2265done
2266if $ac_cache_corrupted; then
cd9a469c 2267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2268$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2270$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
f00f02a3 2271 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
71ab34df 2272fi
cd9a469c 2273## -------------------- ##
2274## Main body of script. ##
2275## -------------------- ##
71ab34df 2276
5084f823 2277ac_ext=c
2278ac_cpp='$CPP $CPPFLAGS'
2279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2281ac_compiler_gnu=$ac_cv_c_compiler_gnu
2282
b30fcfae 2283
2284
2285
b30fcfae 2286
2287
cd2f3773 2288
b30fcfae 2289
4e8a889d 2290progname=$0
2291# if PWD already has a value, it is probably wrong.
2292if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2293
2294# Export original configure arguments for use by sub-configures.
2295# Quote arguments with shell meta charatcers.
2296TOPLEVEL_CONFIGURE_ARGUMENTS=
2297set -- "$progname" "$@"
2298for ac_arg
2299do
2300 case "$ac_arg" in
2301 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2302 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2303 # if the argument is of the form -foo=baz, quote the baz part only
2304 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2305 *) ;;
2306 esac
2307 # Add the quoted argument to the list.
2308 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2309done
2310if test "$silent" = yes; then
2311 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2312fi
2313# Remove the initial space we just introduced and, as these will be
2314# expanded by make, quote '$'.
2315TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2316
b30fcfae 2317
2318# Find the build, host, and target systems.
71ab34df 2319ac_aux_dir=
cd9a469c 2320for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
f00f02a3 2321 if test -f "$ac_dir/install-sh"; then
2322 ac_aux_dir=$ac_dir
2323 ac_install_sh="$ac_aux_dir/install-sh -c"
2324 break
2325 elif 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/shtool"; then
2330 ac_aux_dir=$ac_dir
2331 ac_install_sh="$ac_aux_dir/shtool install -c"
2332 break
2333 fi
71ab34df 2334done
2335if test -z "$ac_aux_dir"; then
f00f02a3 2336 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
71ab34df 2337fi
cd9a469c 2338
2339# These three variables are undocumented and unsupported,
2340# and are intended to be withdrawn in a future Autoconf release.
2341# They can cause serious problems if a builder's source tree is in a directory
2342# whose full name contains unusual characters.
2343ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2344ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2345ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2346
71ab34df 2347
b30fcfae 2348# Make sure we can run config.sub.
cd9a469c 2349$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
f00f02a3 2350 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cd9a469c 2351
2352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2353$as_echo_n "checking build system type... " >&6; }
f00f02a3 2354if ${ac_cv_build+:} false; then :
cd9a469c 2355 $as_echo_n "(cached) " >&6
2356else
2357 ac_build_alias=$build_alias
2358test "x$ac_build_alias" = x &&
2359 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2360test "x$ac_build_alias" = x &&
f00f02a3 2361 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cd9a469c 2362ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
f00f02a3 2363 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cd9a469c 2364
2365fi
2366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2367$as_echo "$ac_cv_build" >&6; }
2368case $ac_cv_build in
2369*-*-*) ;;
f00f02a3 2370*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cd9a469c 2371esac
b30fcfae 2372build=$ac_cv_build
cd9a469c 2373ac_save_IFS=$IFS; IFS='-'
2374set x $ac_cv_build
2375shift
2376build_cpu=$1
2377build_vendor=$2
2378shift; shift
2379# Remember, the first character of IFS is used to create $*,
2380# except with old shells:
2381build_os=$*
2382IFS=$ac_save_IFS
2383case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
71ab34df 2384
71ab34df 2385
b30fcfae 2386 case ${build_alias} in
2387 "") build_noncanonical=${build} ;;
2388 *) build_noncanonical=${build_alias} ;;
ae48753c 2389esac
2390
2391
ae48753c 2392
b30fcfae 2393 case ${host_alias} in
2394 "") host_noncanonical=${build_noncanonical} ;;
2395 *) host_noncanonical=${host_alias} ;;
ae48753c 2396esac
2397
ae48753c 2398
b30fcfae 2399
2400 case ${target_alias} in
2401 "") target_noncanonical=${host_noncanonical} ;;
2402 *) target_noncanonical=${target_alias} ;;
ae48753c 2403esac
2404
ae48753c 2405
b30fcfae 2406
2407
2408test "$host_noncanonical" = "$target_noncanonical" &&
71ab34df 2409 test "$program_prefix$program_suffix$program_transform_name" = \
2410 NONENONEs,x,x, &&
b30fcfae 2411 program_transform_name=s,y,y,
ae48753c 2412
cd9a469c 2413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2414$as_echo_n "checking host system type... " >&6; }
f00f02a3 2415if ${ac_cv_host+:} false; then :
cd9a469c 2416 $as_echo_n "(cached) " >&6
ae48753c 2417else
cd9a469c 2418 if test "x$host_alias" = x; then
2419 ac_cv_host=$ac_cv_build
2420else
2421 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
f00f02a3 2422 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cd9a469c 2423fi
b30fcfae 2424
ae48753c 2425fi
cd9a469c 2426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2427$as_echo "$ac_cv_host" >&6; }
2428case $ac_cv_host in
2429*-*-*) ;;
f00f02a3 2430*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cd9a469c 2431esac
b30fcfae 2432host=$ac_cv_host
cd9a469c 2433ac_save_IFS=$IFS; IFS='-'
2434set x $ac_cv_host
2435shift
2436host_cpu=$1
2437host_vendor=$2
2438shift; shift
2439# Remember, the first character of IFS is used to create $*,
2440# except with old shells:
2441host_os=$*
2442IFS=$ac_save_IFS
2443case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5084f823 2444
2445
cd9a469c 2446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2447$as_echo_n "checking target system type... " >&6; }
f00f02a3 2448if ${ac_cv_target+:} false; then :
cd9a469c 2449 $as_echo_n "(cached) " >&6
b30fcfae 2450else
cd9a469c 2451 if test "x$target_alias" = x; then
2452 ac_cv_target=$ac_cv_host
2453else
2454 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
f00f02a3 2455 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cd9a469c 2456fi
b30fcfae 2457
2458fi
cd9a469c 2459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2460$as_echo "$ac_cv_target" >&6; }
2461case $ac_cv_target in
2462*-*-*) ;;
f00f02a3 2463*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cd9a469c 2464esac
b30fcfae 2465target=$ac_cv_target
cd9a469c 2466ac_save_IFS=$IFS; IFS='-'
2467set x $ac_cv_target
2468shift
2469target_cpu=$1
2470target_vendor=$2
2471shift; shift
2472# Remember, the first character of IFS is used to create $*,
2473# except with old shells:
2474target_os=$*
2475IFS=$ac_save_IFS
2476case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
b30fcfae 2477
2478
2479# The aliases save the names the user supplied, while $host etc.
2480# will get canonicalized.
2481test -n "$target_alias" &&
2482 test "$program_prefix$program_suffix$program_transform_name" = \
2483 NONENONEs,x,x, &&
2484 program_prefix=${target_alias}-
cd9a469c 2485
71ab34df 2486test "$program_prefix" != NONE &&
cd9a469c 2487 program_transform_name="s&^&$program_prefix&;$program_transform_name"
71ab34df 2488# Use a double $ so make ignores it.
2489test "$program_suffix" != NONE &&
cd9a469c 2490 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2491# Double any \ or $.
b30fcfae 2492# By default was `s,x,x', remove it if useless.
cd9a469c 2493ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2494program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
ae48753c 2495
71ab34df 2496
2497
450e6c84 2498# Get 'install' or 'install-sh' and its variants.
2499# Find a good install program. We prefer a C program (faster),
2500# so one script is as good as another. But avoid the broken or
2501# incompatible versions:
2502# SysV /etc/install, /usr/sbin/install
2503# SunOS /usr/etc/install
2504# IRIX /sbin/install
2505# AIX /bin/install
b30fcfae 2506# AmigaOS /C/install, which installs bootblocks on floppy discs
450e6c84 2507# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2508# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2509# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
b30fcfae 2510# OS/2's system install, which has a completely different semantic
450e6c84 2511# ./install, which can be erroneously created by make from ./install.sh.
82eaf560 2512# Reject install programs that cannot install multiple files.
cd9a469c 2513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2514$as_echo_n "checking for a BSD-compatible install... " >&6; }
450e6c84 2515if test -z "$INSTALL"; then
f00f02a3 2516if ${ac_cv_path_install+:} false; then :
cd9a469c 2517 $as_echo_n "(cached) " >&6
b30fcfae 2518else
2519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520for as_dir in $PATH
2521do
2522 IFS=$as_save_IFS
2523 test -z "$as_dir" && as_dir=.
cd9a469c 2524 # Account for people who put trailing slashes in PATH elements.
2525case $as_dir/ in #((
2526 ./ | .// | /[cC]/* | \
b30fcfae 2527 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cd9a469c 2528 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
b30fcfae 2529 /usr/ucb/* ) ;;
2530 *)
2531 # OSF1 and SCO ODT 3.0 have their own names for install.
2532 # Don't use installbsd from OSF since it installs stuff as root
2533 # by default.
2534 for ac_prog in ginstall scoinst install; do
2535 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 2536 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
450e6c84 2537 if test $ac_prog = install &&
b30fcfae 2538 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
450e6c84 2539 # AIX install. It has an incompatible calling convention.
2540 :
b30fcfae 2541 elif test $ac_prog = install &&
2542 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2543 # program-specific install script used by HP pwplus--don't use.
2544 :
450e6c84 2545 else
82eaf560 2546 rm -rf conftest.one conftest.two conftest.dir
2547 echo one > conftest.one
2548 echo two > conftest.two
2549 mkdir conftest.dir
2550 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2551 test -s conftest.one && test -s conftest.two &&
2552 test -s conftest.dir/conftest.one &&
2553 test -s conftest.dir/conftest.two
2554 then
2555 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2556 break 3
2557 fi
450e6c84 2558 fi
2559 fi
2560 done
b30fcfae 2561 done
2562 ;;
2563esac
cd9a469c 2564
2565 done
2566IFS=$as_save_IFS
b30fcfae 2567
82eaf560 2568rm -rf conftest.one conftest.two conftest.dir
450e6c84 2569
2570fi
2571 if test "${ac_cv_path_install+set}" = set; then
b30fcfae 2572 INSTALL=$ac_cv_path_install
450e6c84 2573 else
82eaf560 2574 # As a last resort, use the slow shell script. Don't cache a
2575 # value for INSTALL within a source directory, because that will
450e6c84 2576 # break other packages using the cache if that directory is
82eaf560 2577 # removed, or if the value is a relative name.
b30fcfae 2578 INSTALL=$ac_install_sh
450e6c84 2579 fi
2580fi
cd9a469c 2581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2582$as_echo "$INSTALL" >&6; }
450e6c84 2583
2584# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2585# It thinks the first close brace ends the variable substitution.
2586test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2587
b30fcfae 2588test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
450e6c84 2589
2590test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2591
cd9a469c 2592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2593$as_echo_n "checking whether ln works... " >&6; }
f00f02a3 2594if ${acx_cv_prog_LN+:} false; then :
cd9a469c 2595 $as_echo_n "(cached) " >&6
599a3eac 2596else
2597 rm -f conftestdata_t
2598echo >conftestdata_f
2599if ln conftestdata_f conftestdata_t 2>/dev/null
2600then
2601 acx_cv_prog_LN=ln
2602else
2603 acx_cv_prog_LN=no
2604fi
2605rm -f conftestdata_f conftestdata_t
2606
2607fi
2608if test $acx_cv_prog_LN = no; then
2609 LN="cp"
cd9a469c 2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2611$as_echo "no, using $LN" >&6; }
599a3eac 2612else
2613 LN="$acx_cv_prog_LN"
cd9a469c 2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2615$as_echo "yes" >&6; }
599a3eac 2616fi
2617
cd9a469c 2618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2619$as_echo_n "checking whether ln -s works... " >&6; }
b30fcfae 2620LN_S=$as_ln_s
2621if test "$LN_S" = "ln -s"; then
cd9a469c 2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2623$as_echo "yes" >&6; }
a4af6a58 2624else
cd9a469c 2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2626$as_echo "no, using $LN_S" >&6; }
5965d276 2627fi
2628
b181f265 2629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2630$as_echo_n "checking for a sed that does not truncate output... " >&6; }
f00f02a3 2631if ${ac_cv_path_SED+:} false; then :
b181f265 2632 $as_echo_n "(cached) " >&6
2633else
2634 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2635 for ac_i in 1 2 3 4 5 6 7; do
2636 ac_script="$ac_script$as_nl$ac_script"
2637 done
2638 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2639 { ac_script=; unset ac_script;}
2640 if test -z "$SED"; then
2641 ac_path_SED_found=false
2642 # Loop through the user's path and test for each of PROGNAME-LIST
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644for as_dir in $PATH
2645do
2646 IFS=$as_save_IFS
2647 test -z "$as_dir" && as_dir=.
2648 for ac_prog in sed gsed; do
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
f00f02a3 2651 as_fn_executable_p "$ac_path_SED" || continue
b181f265 2652# Check for GNU ac_path_SED and select it if it is found.
2653 # Check for GNU $ac_path_SED
2654case `"$ac_path_SED" --version 2>&1` in
2655*GNU*)
2656 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2657*)
2658 ac_count=0
2659 $as_echo_n 0123456789 >"conftest.in"
2660 while :
2661 do
2662 cat "conftest.in" "conftest.in" >"conftest.tmp"
2663 mv "conftest.tmp" "conftest.in"
2664 cp "conftest.in" "conftest.nl"
2665 $as_echo '' >> "conftest.nl"
2666 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2667 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2668 as_fn_arith $ac_count + 1 && ac_count=$as_val
2669 if test $ac_count -gt ${ac_path_SED_max-0}; then
2670 # Best one so far, save it but keep looking for a better one
2671 ac_cv_path_SED="$ac_path_SED"
2672 ac_path_SED_max=$ac_count
2673 fi
2674 # 10*(2^10) chars as input seems more than enough
2675 test $ac_count -gt 10 && break
2676 done
2677 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2678esac
2679
2680 $ac_path_SED_found && break 3
2681 done
2682 done
2683 done
2684IFS=$as_save_IFS
2685 if test -z "$ac_cv_path_SED"; then
f00f02a3 2686 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
b181f265 2687 fi
2688else
2689 ac_cv_path_SED=$SED
2690fi
2691
2692fi
2693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2694$as_echo "$ac_cv_path_SED" >&6; }
2695 SED="$ac_cv_path_SED"
2696 rm -f conftest.sed
2697
2698for ac_prog in gawk mawk nawk awk
2699do
2700 # Extract the first word of "$ac_prog", so it can be a program name with args.
2701set dummy $ac_prog; ac_word=$2
2702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2703$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 2704if ${ac_cv_prog_AWK+:} false; then :
b181f265 2705 $as_echo_n "(cached) " >&6
2706else
2707 if test -n "$AWK"; then
2708 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2709else
2710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711for as_dir in $PATH
2712do
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 2716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b181f265 2717 ac_cv_prog_AWK="$ac_prog"
2718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 break 2
2720 fi
2721done
2722 done
2723IFS=$as_save_IFS
2724
2725fi
2726fi
2727AWK=$ac_cv_prog_AWK
2728if test -n "$AWK"; then
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2730$as_echo "$AWK" >&6; }
2731else
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2733$as_echo "no" >&6; }
2734fi
2735
2736
2737 test -n "$AWK" && break
2738done
2739
450e6c84 2740
e8eddfdd 2741srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2742
2743# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2744# a relative path.
2745if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2746 INSTALL="${srcpwd}/install-sh -c"
2747fi
2748
71ab34df 2749# Set srcdir to "." if that's what it is.
2750# This is important for multilib support.
2751pwd=`${PWDCMD-pwd}`
71ab34df 2752if test "${pwd}" = "${srcpwd}" ; then
2753 srcdir=.
a8298541 2754fi
2755
71ab34df 2756topsrcdir=$srcpwd
ed37269d 2757
71ab34df 2758extra_host_args=
14ac9144 2759
71ab34df 2760### To add a new directory to the tree, first choose whether it is a target
2761### or a host dependent tool. Then put it into the appropriate list
2762### (library or tools, host or target), doing a dependency sort.
a8298541 2763
b30fcfae 2764# Subdirs will be configured in the order listed in build_configdirs,
71ab34df 2765# configdirs, or target_configdirs; see the serialization section below.
a8298541 2766
b30fcfae 2767# Dependency sorting is only needed when *configuration* must be done in
2768# a particular order. In all cases a dependency should be specified in
71ab34df 2769# the Makefile, whether or not it's implicitly specified here.
a8298541 2770
71ab34df 2771# Double entries in build_configdirs, configdirs, or target_configdirs may
2772# cause circular dependencies and break everything horribly.
a8298541 2773
2f8725b0 2774# these library is used by various programs built for the build
2775# environment
2776#
9245d2c5 2777build_libs="build-libiberty build-libcpp"
2f8725b0 2778
2779# these tools are built for the build environment
4fc99708 2780build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2f8725b0 2781
71ab34df 2782# these libraries are used by various programs built for the host environment
429cca51 2783#f
572cf1f7 2784host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
71ab34df 2785
71ab34df 2786# these tools are built for the host environment
2787# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2788# know that we are building the simulator.
2789# binutils, gas and ld appear in that order because it makes sense to run
2790# "make check" in that particular order.
af7c5662 2791# If --enable-gold is used, "gold" may replace "ld".
dcfe52b6 2792host_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 2793
71ab34df 2794# these libraries are built for the target environment, and are built after
2795# the host libraries and the host tools (which may be a cross compiler)
5ab7e123 2796# Note that libiberty is not a target library.
27bfe7b7 2797target_libraries="target-libgcc \
ecd3459e 2798 target-libbacktrace \
71ab34df 2799 target-libgloss \
2800 target-newlib \
a0191bfe 2801 target-libgomp \
d3a7dd32 2802 target-liboffloadmic \
55a56509 2803 target-libhsail-rt \
6db1d2ca 2804 target-libatomic \
4c0315d0 2805 target-libitm \
54d7d5f2 2806 target-libstdc++-v3 \
549e2197 2807 target-libsanitizer \
b710ec85 2808 target-libvtv \
0d55f4d0 2809 target-libssp \
87969c8c 2810 target-libquadmath \
4ee9c684 2811 target-libgfortran \
38cf534f 2812 target-libffi \
93341878 2813 target-libobjc \
5ff5b630 2814 target-libada \
03385ed3 2815 target-libgo \
2816 target-libphobos"
71ab34df 2817
328637e8 2818# these tools are built using the target libraries, and are intended to
2819# run only in the target environment
71ab34df 2820#
328637e8 2821# note: any program that *uses* libraries that are in the "target_libraries"
6c9785b4 2822# list belongs in this list.
71ab34df 2823#
4fc99708 2824target_tools="target-rda"
a8298541 2825
71ab34df 2826################################################################################
a8298541 2827
71ab34df 2828## All tools belong in one of the four categories, and are assigned above
2829## We assign ${configdirs} this way to remove all embedded newlines. This
2830## is important because configure will choke if they ever get through.
2831## ${configdirs} is directories we build using the host tools.
2832## ${target_configdirs} is directories we build using the target tools.
71ab34df 2833configdirs=`echo ${host_libs} ${host_tools}`
328637e8 2834target_configdirs=`echo ${target_libraries} ${target_tools}`
2b59cb05 2835build_configdirs=`echo ${build_libs} ${build_tools}`
6f4f34a7 2836
d2d2630b 2837
2838
71ab34df 2839################################################################################
a8298541 2840
71ab34df 2841srcname="gnu development package"
a8298541 2842
71ab34df 2843# This gets set non-empty for some net releases of packages.
2844appdirs=""
a8298541 2845
71ab34df 2846# Define is_cross_compiler to save on calls to 'test'.
2847is_cross_compiler=
2848if test x"${host}" = x"${target}" ; then
2849 is_cross_compiler=no
a8298541 2850else
71ab34df 2851 is_cross_compiler=yes
b30fcfae 2852fi
a8298541 2853
2f61b8ca 2854# Find the build and target subdir names.
6f4f34a7 2855
d3e7b04c 2856# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2857# have matching libraries, they should use host libraries: Makefile.tpl
2858# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2859# However, they still use the build modules, because the corresponding
2860# host modules (e.g. bison) are only built for the host when bootstrap
2861# finishes. So:
2862# - build_subdir is where we find build modules, and never changes.
2863# - build_libsubdir is where we find build libraries, and can be overridden.
2864
2865# Prefix 'build-' so this never conflicts with target_subdir.
6f4f34a7 2866build_subdir="build-${build_noncanonical}"
b30fcfae 2867
cd9a469c 2868# Check whether --with-build-libsubdir was given.
2869if test "${with_build_libsubdir+set}" = set; then :
2870 withval=$with_build_libsubdir; build_libsubdir="$withval"
d3e7b04c 2871else
2872 build_libsubdir="$build_subdir"
cd9a469c 2873fi
2874
c1eb9e31 2875# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2876if ( test $srcdir = . && test -d gcc ) \
2877 || test -d $srcdir/../host-${host_noncanonical}; then
2878 host_subdir="host-${host_noncanonical}"
2879else
2880 host_subdir=.
2881fi
6f4f34a7 2882# No prefix.
2883target_subdir=${target_noncanonical}
b30fcfae 2884
04a2e841 2885# Be sure to cover against remnants of an in-tree build.
2886if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
f00f02a3 2887 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
04a2e841 2888Use a pristine source tree when building in a separate tree" "$LINENO" 5
2889fi
a8298541 2890
71ab34df 2891# Skipdirs are removed silently.
2892skipdirs=
2893# Noconfigdirs are removed loudly.
2894noconfigdirs=""
a8298541 2895
71ab34df 2896use_gnu_ld=
2897# Make sure we don't let GNU ld be added if we didn't want it.
2898if test x$with_gnu_ld = xno ; then
2899 use_gnu_ld=no
3d47fcf5 2900 noconfigdirs="$noconfigdirs ld gold"
a8298541 2901fi
2902
71ab34df 2903use_gnu_as=
2904# Make sure we don't let GNU as be added if we didn't want it.
2905if test x$with_gnu_as = xno ; then
2906 use_gnu_as=no
2907 noconfigdirs="$noconfigdirs gas"
a8298541 2908fi
2909
7bfefa9d 2910use_included_zlib=
6406d366 2911
2912# Check whether --with-system-zlib was given.
2913if test "${with_system_zlib+set}" = set; then :
2914 withval=$with_system_zlib;
2915fi
2916
7bfefa9d 2917# Make sure we don't let ZLIB be added if we didn't want it.
2918if test x$with_system_zlib = xyes ; then
2919 use_included_zlib=no
2920 noconfigdirs="$noconfigdirs zlib"
2921fi
2922
b30fcfae 2923# some tools are so dependent upon X11 that if we're not building with X,
71ab34df 2924# it's not even worth trying to configure, much less build, that tool.
a8298541 2925
71ab34df 2926case ${with_x} in
2927 yes | "") ;; # the default value for this tree is that X11 is available
2928 no)
f843f075 2929 skipdirs="${skipdirs} tk itcl libgui"
71ab34df 2930 # We won't be able to build gdbtk without X.
b30fcfae 2931 enable_gdbtk=no
71ab34df 2932 ;;
2933 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2934esac
a8298541 2935
6c9785b4 2936# Some are only suitable for cross toolchains.
71ab34df 2937# Remove these if host=target.
2938cross_only="target-libgloss target-newlib target-opcodes"
2939
2940case $is_cross_compiler in
2941 no) skipdirs="${skipdirs} ${cross_only}" ;;
71ab34df 2942esac
a8298541 2943
71ab34df 2944# If both --with-headers and --with-libs are specified, default to
2945# --without-newlib.
e8eddfdd 2946if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2947 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
71ab34df 2948 if test x"${with_newlib}" = x ; then
2949 with_newlib=no
2950 fi
a8298541 2951fi
2952
71ab34df 2953# Recognize --with-newlib/--without-newlib.
2954case ${with_newlib} in
2955 no) skipdirs="${skipdirs} target-newlib" ;;
2956 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2957esac
a8298541 2958
a3d93be3 2959# Check whether --enable-as-accelerator-for was given.
2960if test "${enable_as_accelerator_for+set}" = set; then :
67cedda8 2961 enableval=$enable_as_accelerator_for;
a3d93be3 2962fi
2963
2964
2965# Check whether --enable-offload-targets was given.
2966if test "${enable_offload_targets+set}" = set; then :
2967 enableval=$enable_offload_targets;
2968 if test x"$enable_offload_targets" = x; then
f00f02a3 2969 as_fn_error $? "no offload targets specified" "$LINENO" 5
a3d93be3 2970 fi
2971
2972else
2973 enable_offload_targets=
2974fi
2975
2976
1e369e5f 2977# Handle --enable-gold, --enable-ld.
2978# --disable-gold [--enable-ld]
2979# Build only ld. Default option.
85516948 2980# --enable-gold [--enable-ld]
2981# Build both gold and ld. Install gold as "ld.gold", install ld
2982# as "ld.bfd" and "ld".
2983# --enable-gold=default [--enable-ld]
1e369e5f 2984# Build both gold and ld. Install gold as "ld.gold" and "ld",
2985# install ld as "ld.bfd".
2986# --enable-gold[=default] --disable-ld
2987# Build only gold, which is then installed as both "ld.gold" and "ld".
2988# --enable-gold --enable-ld=default
85516948 2989# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2990# and ld.bfd).
1e369e5f 2991# In other words, ld is default
2992# --enable-gold=default --enable-ld=default
2993# Error.
2994
2995default_ld=
cd9a469c 2996# Check whether --enable-gold was given.
2997if test "${enable_gold+set}" = set; then :
2998 enableval=$enable_gold; ENABLE_GOLD=$enableval
3d47fcf5 2999else
3000 ENABLE_GOLD=no
cd9a469c 3001fi
3002
1e369e5f 3003case "${ENABLE_GOLD}" in
3004 yes|default)
af7c5662 3005 # Check for ELF target.
3006 is_elf=no
3007 case "${target}" in
3008 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
e4c33dd2 3009 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
e3a1fe08 3010 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
9d36d513 3011 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
af7c5662 3012 case "${target}" in
3013 *-*-linux*aout* | *-*-linux*oldld*)
3014 ;;
3015 *)
3016 is_elf=yes
3017 ;;
3018 esac
3019 esac
3020
3021 if test "$is_elf" = "yes"; then
3022 # Check for target supported by gold.
3d47fcf5 3023 case "${target}" in
58f62c51 3024 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
ca7ff757 3025 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
1e369e5f 3026 configdirs="$configdirs gold"
3027 if test x${ENABLE_GOLD} = xdefault; then
3028 default_ld=gold
3029 fi
af7c5662 3030 ENABLE_GOLD=yes
3d47fcf5 3031 ;;
3032 esac
af7c5662 3033 fi
3034 ;;
3035 no)
3036 ;;
3037 *)
f00f02a3 3038 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
af7c5662 3039 ;;
1e369e5f 3040esac
3041
3042# Check whether --enable-ld was given.
3043if test "${enable_ld+set}" = set; then :
3044 enableval=$enable_ld; ENABLE_LD=$enableval
3045else
3046 ENABLE_LD=yes
3047fi
3048
3049
3050case "${ENABLE_LD}" in
3051 default)
85516948 3052 if test x${default_ld} != x; then
f00f02a3 3053 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
1e369e5f 3054 fi
3055 ;;
3056 yes)
3057 ;;
3058 no)
3059 if test x${ENABLE_GOLD} != xyes; then
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3061$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3062 fi
3063 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3064 ;;
3065 *)
f00f02a3 3066 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
1e369e5f 3067 ;;
3068esac
3d47fcf5 3069
afb6adb9 3070# PR gas/19109
3071# Decide the default method for compressing debug sections.
3072# Provide a configure time option to override our default.
3073# Check whether --enable-compressed_debug_sections was given.
3074if test "${enable_compressed_debug_sections+set}" = set; then :
3075 enableval=$enable_compressed_debug_sections;
3076 if test x"$enable_compressed_debug_sections" = xyes; then
f00f02a3 3077 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
afb6adb9 3078 fi
3079
3080else
3081 enable_compressed_debug_sections=
3082fi
3083
3084
71ab34df 3085# Configure extra directories which are host specific
a8298541 3086
71ab34df 3087case "${host}" in
3088 *-cygwin*)
3089 configdirs="$configdirs libtermcap" ;;
3090esac
a8298541 3091
ff7dcf6a 3092# A target can indicate whether a language isn't supported for some reason.
3093# Only spaces may be used in this macro; not newlines or tabs.
3094unsupported_languages=
3095
b30fcfae 3096# Remove more programs from consideration, based on the host or
71ab34df 3097# target this usually means that a port of the program doesn't
3098# exist yet.
c7879c37 3099
71ab34df 3100case "${host}" in
b2240ff6 3101 i[3456789]86-*-msdosdjgpp*)
e3a5e6ff 3102 noconfigdirs="$noconfigdirs tcl tk itcl"
71ab34df 3103 ;;
71ab34df 3104esac
c7879c37 3105
4ee9c684 3106
d9d975ae 3107# Check whether --enable-libquadmath was given.
3108if test "${enable_libquadmath+set}" = set; then :
3109 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3110else
3111 ENABLE_LIBQUADMATH=yes
3112fi
3113
3114if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3115 noconfigdirs="$noconfigdirs target-libquadmath"
3116fi
3117
3118
3119# Check whether --enable-libquadmath-support was given.
3120if test "${enable_libquadmath_support+set}" = set; then :
3121 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3122else
3123 ENABLE_LIBQUADMATH_SUPPORT=yes
3124fi
3125
3126enable_libquadmath_support=
3127if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3128 enable_libquadmath_support=no
3129fi
3130
3131
cd9a469c 3132# Check whether --enable-libada was given.
3133if test "${enable_libada+set}" = set; then :
3134 enableval=$enable_libada; ENABLE_LIBADA=$enableval
93341878 3135else
3136 ENABLE_LIBADA=yes
cd9a469c 3137fi
3138
93341878 3139if test "${ENABLE_LIBADA}" != "yes" ; then
a136b23d 3140 noconfigdirs="$noconfigdirs gnattools"
93341878 3141fi
3142
cd9a469c 3143# Check whether --enable-libssp was given.
3144if test "${enable_libssp+set}" = set; then :
3145 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
07da5214 3146else
3147 ENABLE_LIBSSP=yes
cd9a469c 3148fi
3149
07da5214 3150
a3ba808f 3151# Check whether --enable-libstdcxx was given.
3152if test "${enable_libstdcxx+set}" = set; then :
3153 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3154else
3155 ENABLE_LIBSTDCXX=default
3156fi
3157
3158if test "${ENABLE_LIBSTDCXX}" = "no" ; then
df148e44 3159 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a3ba808f 3160fi
3161
d3a7dd32 3162# If this is accelerator compiler and its target is intelmic we enable
3163# target liboffloadmic by default. If this is compiler with offloading
3164# for intelmic we enable host liboffloadmic by default. Otherwise
3165# liboffloadmic is disabled by default.
3166# Check whether --enable-liboffloadmic was given.
3167if test "${enable_liboffloadmic+set}" = set; then :
3168 enableval=$enable_liboffloadmic; case "$enableval" in
3169 no | host | target)
3170 enable_liboffloadmic=$enableval ;;
3171 *)
f00f02a3 3172 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
d3a7dd32 3173esac
3174else
67cedda8 3175 if test x"$enable_as_accelerator_for" != x; then
d3a7dd32 3176 case "${target}" in
3177 *-intelmic-* | *-intelmicemul-*)
3178 enable_liboffloadmic=target
3179 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3180 ;;
3181 *)
3182 enable_liboffloadmic=no
3183 ;;
3184 esac
3185else
3186 case "${enable_offload_targets}" in
3187 *-intelmic-* | *-intelmicemul-*)
3188 enable_liboffloadmic=host
3189 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3190 ;;
3191 *)
3192 enable_liboffloadmic=no
3193 ;;
3194 esac
3195fi
3196fi
3197
3198
3199
fdcd05c8 3200# Enable libgomp by default on hosted POSIX systems, and a few others.
50996fe5 3201if test x$enable_libgomp = x ; then
1e8e9920 3202 case "${target}" in
3bef4012 3203 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
1e8e9920 3204 ;;
e3a1fe08 3205 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
1e8e9920 3206 ;;
5641963c 3207 *-*-solaris2* | *-*-hpux11*)
1e8e9920 3208 ;;
634efbee 3209 *-*-darwin* | *-*-aix*)
1e8e9920 3210 ;;
fdcd05c8 3211 nvptx*-*-*)
3212 ;;
1e8e9920 3213 *)
3214 noconfigdirs="$noconfigdirs target-libgomp"
3215 ;;
3216 esac
50996fe5 3217fi
1e8e9920 3218
6db1d2ca 3219# Disable libatomic on unsupported systems.
3220if test -d ${srcdir}/libatomic; then
3221 if test x$enable_libatomic = x; then
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3223$as_echo_n "checking for libatomic support... " >&6; }
3224 if (srcdir=${srcdir}/libatomic; \
3225 . ${srcdir}/configure.tgt; \
3226 test -n "$UNSUPPORTED")
3227 then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229$as_echo "no" >&6; }
3230 noconfigdirs="$noconfigdirs target-libatomic"
3231 else
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3233$as_echo "yes" >&6; }
3234 fi
3235 fi
3236fi
3237
d3a7dd32 3238# Disable liboffloadmic on unsupported systems.
3239if test -d ${srcdir}/liboffloadmic; then
3240 if test x$enable_liboffloadmic != xno; then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3242$as_echo_n "checking for liboffloadmic support... " >&6; }
3243 if (srcdir=${srcdir}/liboffloadmic; \
3244 . ${srcdir}/configure.tgt; \
3245 test -n "$UNSUPPORTED")
3246 then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248$as_echo "no" >&6; }
3249 noconfigdirs="$noconfigdirs target-liboffloadmic"
3250 else
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3252$as_echo "yes" >&6; }
3253 fi
3254 fi
3255fi
3256
42b15c81 3257# Disable libitm on unsupported systems.
3258if test -d ${srcdir}/libitm; then
3259 if test x$enable_libitm = x; then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
298c66d9 3261$as_echo_n "checking for libitm support... " >&6; }
42b15c81 3262 if (srcdir=${srcdir}/libitm; \
3263 . ${srcdir}/configure.tgt; \
3264 test -n "$UNSUPPORTED")
3265 then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
298c66d9 3267$as_echo "no" >&6; }
42b15c81 3268 noconfigdirs="$noconfigdirs target-libitm"
3269 else
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
298c66d9 3271$as_echo "yes" >&6; }
42b15c81 3272 fi
3273 fi
4c0315d0 3274fi
3275
492e75a7 3276# Disable libsanitizer on unsupported systems.
3277if test -d ${srcdir}/libsanitizer; then
3278 if test x$enable_libsanitizer = x; then
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3280$as_echo_n "checking for libsanitizer support... " >&6; }
3281 if (srcdir=${srcdir}/libsanitizer; \
3282 . ${srcdir}/configure.tgt; \
3283 test -n "$UNSUPPORTED")
3284 then
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286$as_echo "no" >&6; }
3287 noconfigdirs="$noconfigdirs target-libsanitizer"
3288 else
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3290$as_echo "yes" >&6; }
3291 fi
3292 fi
3293fi
3294
b710ec85 3295# Disable libvtv on unsupported systems.
3296if test -d ${srcdir}/libvtv; then
3297 if test x$enable_libvtv = x; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3299$as_echo_n "checking for libvtv support... " >&6; }
3300 if (srcdir=${srcdir}/libvtv; \
3301 . ${srcdir}/configure.tgt; \
6d0992e1 3302 test "$VTV_SUPPORTED" != "yes")
b710ec85 3303 then
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305$as_echo "no" >&6; }
3306 noconfigdirs="$noconfigdirs target-libvtv"
3307 else
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3309$as_echo "yes" >&6; }
3310 fi
3311 fi
3312fi
3313
202baac8 3314
645a0bd9 3315# Disable libhsail-rt on unsupported systems.
3316if test -d ${srcdir}/libhsail-rt; then
3317 if test x$enable_libhsail_rt = x; then
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3319$as_echo_n "checking for libhsail-rt support... " >&6; }
3320 if (srcdir=${srcdir}/libhsail-rt; \
3321 . ${srcdir}/configure.tgt; \
3322 test -n "$UNSUPPORTED")
3323 then
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325$as_echo "no" >&6; }
3326 unsupported_languages="$unsupported_languages brig"
3327 # This implicitly disables also target-libhsail-rt as it won't
3328 # get added to the build without BRIG FE.
3329 else
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3331$as_echo "yes" >&6; }
3332 fi
3333 fi
3334fi
202baac8 3335
3336
62f0972f 3337# Disable libquadmath for some systems.
3338case "${target}" in
c36ee471 3339 avr-*-*)
3340 noconfigdirs="$noconfigdirs target-libquadmath"
3341 ;;
62f0972f 3342 # libquadmath is unused on AIX and libquadmath build process use of
3343 # LD_LIBRARY_PATH can break AIX bootstrap.
3344 powerpc-*-aix* | rs6000-*-aix*)
3345 noconfigdirs="$noconfigdirs target-libquadmath"
3346 ;;
3347esac
3348
d5831552 3349# Disable libssp for some systems.
3350case "${target}" in
3351 avr-*-*)
76c19016 3352 # No hosted I/O support.
d5831552 3353 noconfigdirs="$noconfigdirs target-libssp"
3354 ;;
3355 powerpc-*-aix* | rs6000-*-aix*)
3356 noconfigdirs="$noconfigdirs target-libssp"
78e515f7 3357 ;;
3358 rl78-*-*)
9d5fd7d0 3359 # libssp uses a misaligned load to trigger a fault, but the RL78
3360 # doesn't fault for those - instead, it gives a build-time error
3361 # for explicit misaligned loads.
78e515f7 3362 noconfigdirs="$noconfigdirs target-libssp"
d5831552 3363 ;;
8992df51 3364 visium-*-*)
3365 # No hosted I/O support.
3366 noconfigdirs="$noconfigdirs target-libssp"
3367 ;;
d5831552 3368esac
3369
d5831552 3370# Disable libstdc++-v3 for some systems.
a3ba808f 3371# Allow user to override this if they pass --enable-libstdc++-v3
3372if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3373 case "${target}" in
3374 *-*-vxworks*)
3375 # VxWorks uses the Dinkumware C++ library.
3376 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3377 ;;
3378 arm*-wince-pe*)
3379 # the C++ libraries don't build on top of CE's C libraries
3380 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3381 ;;
3382 avr-*-*)
3383 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3384 ;;
b6616c9c 3385 ft32-*-*)
3386 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3387 ;;
a3ba808f 3388 esac
3389fi
d5831552 3390
72a2ce3d 3391# Disable D on systems where it is known to not work.
3392# For testing, you can override this with --enable-languages=d.
3393case ,${enable_languages}, in
3394 *,d,*)
3395 ;;
3396 *)
3397 case "${target}" in
3398 *-*-darwin* | *-*-cygwin* | *-*-mingw*)
3399 unsupported_languages="$unsupported_languages d"
3400 ;;
3401 esac
3402 ;;
3403esac
3404
3405# Disable libphobos on unsupported systems.
3406# For testing, you can override this with --enable-libphobos.
3407if test -d ${srcdir}/libphobos; then
3408 if test x$enable_libphobos = x; then
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3410$as_echo_n "checking for libphobos support... " >&6; }
3411 if (srcdir=${srcdir}/libphobos; \
3412 . ${srcdir}/configure.tgt; \
3413 test -n "$UNSUPPORTED")
3414 then
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416$as_echo "no" >&6; }
3417 noconfigdirs="$noconfigdirs target-libphobos"
3418 else
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3420$as_echo "yes" >&6; }
3421 fi
3422 fi
3423fi
3424
d5831552 3425# Disable Fortran for some systems.
3426case "${target}" in
3427 mmix-*-*)
3428 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3429 unsupported_languages="$unsupported_languages fortran"
3430 ;;
3431esac
3432
38cf534f 3433# Disable libffi for some systems.
3434case "${target}" in
3435 powerpc-*-darwin*)
3436 ;;
3437 i[3456789]86-*-darwin*)
3438 ;;
3439 x86_64-*-darwin[912]*)
3440 ;;
3441 *-*-darwin*)
3442 noconfigdirs="$noconfigdirs target-libffi"
3443 ;;
3444 *-*-netware*)
3445 noconfigdirs="$noconfigdirs target-libffi"
3446 ;;
3447 *-*-phoenix*)
3448 noconfigdirs="$noconfigdirs target-libffi"
3449 ;;
3450 *-*-rtems*)
3451 noconfigdirs="$noconfigdirs target-libffi"
3452 ;;
3453 *-*-tpf*)
3454 noconfigdirs="$noconfigdirs target-libffi"
3455 ;;
3456 *-*-uclinux*)
3457 noconfigdirs="$noconfigdirs target-libffi"
3458 ;;
3459 *-*-vxworks*)
3460 noconfigdirs="$noconfigdirs target-libffi"
3461 ;;
88afddbc 3462 aarch64*-*-freebsd*)
3463 noconfigdirs="$noconfigdirs target-libffi"
3464 ;;
38cf534f 3465 alpha*-*-*vms*)
3466 noconfigdirs="$noconfigdirs target-libffi"
3467 ;;
3468 arm*-*-freebsd*)
3469 noconfigdirs="$noconfigdirs target-libffi"
3470 ;;
3471 arm-wince-pe)
3472 noconfigdirs="$noconfigdirs target-libffi"
3473 ;;
3474 arm*-*-symbianelf*)
3475 noconfigdirs="$noconfigdirs target-libffi"
3476 ;;
3477 cris-*-* | crisv32-*-*)
3478 case "${target}" in
3479 *-*-linux*)
3480 ;;
3481 *) # See PR46792 regarding target-libffi.
3482 noconfigdirs="$noconfigdirs target-libffi";;
3483 esac
3484 ;;
3485 hppa*64*-*-hpux*)
3486 noconfigdirs="$noconfigdirs target-libffi"
3487 ;;
3488 hppa*-hp-hpux11*)
3489 ;;
3490 hppa*-*-hpux*)
3491 noconfigdirs="$noconfigdirs target-libffi"
3492 ;;
3493 ia64*-*-*vms*)
3494 noconfigdirs="$noconfigdirs target-libffi"
3495 ;;
3496 i[3456789]86-w64-mingw*)
3497 noconfigdirs="$noconfigdirs target-libffi"
3498 ;;
3499 i[3456789]86-*-mingw*)
3500 noconfigdirs="$noconfigdirs target-libffi"
3501 ;;
3502 x86_64-*-mingw*)
3503 noconfigdirs="$noconfigdirs target-libffi"
3504 ;;
3505 mmix-*-*)
3506 noconfigdirs="$noconfigdirs target-libffi"
3507 ;;
3508 powerpc-*-aix*)
38cf534f 3509 ;;
3510 rs6000-*-aix*)
38cf534f 3511 ;;
3512 ft32-*-*)
3513 noconfigdirs="$noconfigdirs target-libffi"
3514 ;;
3515 *-*-lynxos*)
3516 noconfigdirs="$noconfigdirs target-libffi"
3517 ;;
3518esac
3519
3520# Disable the go frontend on systems where it is known to not work. Please keep
3521# this in sync with contrib/config-list.mk.
3522case "${target}" in
475738b0 3523*-*-darwin* | *-*-cygwin* | *-*-mingw*)
38cf534f 3524 unsupported_languages="$unsupported_languages go"
3525 ;;
3526esac
3527
a6999726 3528# Disable libgo for some systems where it is known to not work.
3529# For testing, you can easily override this with --enable-libgo.
3530if test x$enable_libgo = x; then
3531 case "${target}" in
3532 *-*-darwin*)
3533 # PR 46986
3534 noconfigdirs="$noconfigdirs target-libgo"
3535 ;;
3536 *-*-cygwin* | *-*-mingw*)
3537 noconfigdirs="$noconfigdirs target-libgo"
3538 ;;
a6999726 3539 esac
3540fi
3541
1c5767f1 3542# Default libgloss CPU subdirectory.
3543libgloss_dir="$target_cpu"
4ee9c684 3544
e0942c78 3545case "${target}" in
3546 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3547 libgloss_dir=wince
3548 ;;
e26fddfa 3549 aarch64*-*-* )
3550 libgloss_dir=aarch64
3551 ;;
e0942c78 3552 arm*-*-*)
3553 libgloss_dir=arm
3554 ;;
3555 cris-*-* | crisv32-*-*)
3556 libgloss_dir=cris
3557 ;;
3558 hppa*-*-*)
3559 libgloss_dir=pa
3560 ;;
3561 i[3456789]86-*-*)
3562 libgloss_dir=i386
3563 ;;
3564 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3565 libgloss_dir=m68hc11
3566 ;;
3567 m68*-*-* | fido-*-*)
3568 libgloss_dir=m68k
3569 ;;
3570 mips*-*-*)
3571 libgloss_dir=mips
3572 ;;
3573 powerpc*-*-*)
3574 libgloss_dir=rs6000
3575 ;;
3576 sparc*-*-*)
3577 libgloss_dir=sparc
3578 ;;
3579esac
3580
d556f192 3581# Disable newlib and libgloss for various target OSes.
71ab34df 3582case "${target}" in
d556f192 3583 alpha*-dec-osf*)
3584 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3585 ;;
3586 i[3456789]86-*-linux*)
3587 # This section makes it possible to build newlib natively on linux.
3588 # If we are using a cross compiler then don't configure newlib.
3589 if test x${is_cross_compiler} != xno ; then
3590 noconfigdirs="$noconfigdirs target-newlib"
3591 fi
3592 noconfigdirs="$noconfigdirs target-libgloss"
3593 # If we are not using a cross compiler, do configure newlib.
3594 # Note however, that newlib will only be configured in this situation
3595 # if the --with-newlib option has been given, because otherwise
3596 # 'target-newlib' will appear in skipdirs.
3597 ;;
3598 i[3456789]86-*-rdos*)
3599 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3600 ;;
3601 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3602 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3603 ;;
3604 sparc-*-sunos4*)
3605 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3606 ;;
3607 *-*-aix*)
3608 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3609 ;;
3610 *-*-beos*)
3611 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3612 ;;
71ab34df 3613 *-*-chorusos)
71559dce 3614 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
71ab34df 3615 ;;
d556f192 3616 *-*-dragonfly*)
3617 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3618 ;;
3619 *-*-freebsd*)
3620 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3621 ;;
3622 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3623 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3624 ;;
3625 *-*-lynxos*)
3626 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3627 ;;
3628 *-*-mingw*)
3629 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3630 ;;
3631 *-*-netbsd*)
3632 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3633 ;;
3634 *-*-netware*)
3635 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3636 ;;
3637 *-*-tpf*)
3638 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3639 ;;
3640 *-*-uclinux*)
3641 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3642 ;;
3643 *-*-vxworks*)
3644 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3645 ;;
3646esac
3647
3648case "${target}" in
3649 *-*-chorusos)
3650 ;;
38f4c967 3651 aarch64-*-darwin*)
3652 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3653 noconfigdirs="$noconfigdirs sim target-rda"
3654 ;;
3655 arm-*-darwin*)
3656 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3657 noconfigdirs="$noconfigdirs sim target-rda"
3658 ;;
40c500e1 3659 powerpc-*-darwin*)
dba2c8ea 3660 noconfigdirs="$noconfigdirs ld gas gdb gprof"
d28caca4 3661 noconfigdirs="$noconfigdirs sim target-rda"
0894307c 3662 ;;
ea864ded 3663 i[3456789]86-*-darwin*)
3664 noconfigdirs="$noconfigdirs ld gprof"
3665 noconfigdirs="$noconfigdirs sim target-rda"
3666 ;;
3667 x86_64-*-darwin[912]*)
d9f9f3af 3668 noconfigdirs="$noconfigdirs ld gas gprof"
3669 noconfigdirs="$noconfigdirs sim target-rda"
3670 ;;
fce068fd 3671 *-*-darwin*)
3672 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3673 noconfigdirs="$noconfigdirs sim target-rda"
fce068fd 3674 ;;
e3a1fe08 3675 *-*-dragonfly*)
e3a1fe08 3676 ;;
c01dd063 3677 *-*-freebsd*)
4ee9c684 3678 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3679 && test -f /usr/local/include/gmp.h; then
3680 with_gmp=/usr/local
3681 fi
4ee9c684 3682 ;;
336577be 3683 *-*-kaos*)
3684 # Remove unsupported stuff on all kaOS configurations.
336577be 3685 noconfigdirs="$noconfigdirs target-libgloss"
3686 ;;
71ab34df 3687 *-*-netbsd*)
71ab34df 3688 ;;
634f7a13 3689 *-*-netware*)
71ab34df 3690 ;;
1d6aa005 3691 *-*-phoenix*)
3692 noconfigdirs="$noconfigdirs target-libgloss"
3693 ;;
71ab34df 3694 *-*-rtems*)
f24be480 3695 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3696 ;;
9f88bc9d 3697 # The tpf target doesn't support gdb yet.
3698 *-*-tpf*)
d556f192 3699 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
9f88bc9d 3700 ;;
688429c4 3701 *-*-uclinux*)
d556f192 3702 noconfigdirs="$noconfigdirs target-rda"
688429c4 3703 ;;
71ab34df 3704 *-*-vxworks*)
71ab34df 3705 ;;
3706 alpha*-dec-osf*)
3707 # ld works, but does not support shared libraries.
71ab34df 3708 # gas doesn't generate exception information.
d556f192 3709 noconfigdirs="$noconfigdirs gas ld"
71ab34df 3710 ;;
3711 alpha*-*-*vms*)
f24be480 3712 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
71ab34df 3713 ;;
71ab34df 3714 alpha*-*-*)
3715 # newlib is not 64 bit ready
f24be480 3716 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
71ab34df 3717 ;;
71ab34df 3718 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
f843f075 3719 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
71ab34df 3720 ;;
194b906d 3721 arc*-*-*)
3722 noconfigdirs="$noconfigdirs sim"
3723 ;;
71ab34df 3724 arm-*-pe*)
f24be480 3725 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3726 ;;
71ab34df 3727 arm-*-riscix*)
71559dce 3728 noconfigdirs="$noconfigdirs ld target-libgloss"
71ab34df 3729 ;;
fd28e216 3730 avr-*-*)
3731 if test x${with_avrlibc} != xno; then
3732 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3733 fi
3734 ;;
71ab34df 3735 c4x-*-* | tic4x-*-*)
71559dce 3736 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3737 ;;
71559dce 3738 tic54x-*-*)
3739 noconfigdirs="$noconfigdirs target-libgloss gdb"
71ab34df 3740 ;;
71ab34df 3741 d10v-*-*)
71559dce 3742 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3743 ;;
3744 d30v-*-*)
71559dce 3745 noconfigdirs="$noconfigdirs gdb"
71ab34df 3746 ;;
3747 fr30-*-elf*)
f24be480 3748 noconfigdirs="$noconfigdirs gdb"
71ab34df 3749 ;;
6406d366 3750 ft32-*-*)
3751 noconfigdirs="$noconfigdirs target-rda gprof"
3752 ;;
ca2751b6 3753 moxie-*-*)
6406d366 3754 noconfigdirs="$noconfigdirs"
ca2751b6 3755 ;;
71ab34df 3756 h8300*-*-*)
f24be480 3757 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3758 ;;
3759 h8500-*-*)
71559dce 3760 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3761 ;;
e8eddfdd 3762 hppa1.1-*-osf* | hppa1.1-*-bsd* )
e8eddfdd 3763 ;;
6406d366 3764 hppa*64*-*-hpux*)
3765 noconfigdirs="$noconfigdirs gdb"
3766 ;;
3767 hppa*-*-hpux11*)
3768 noconfigdirs="$noconfigdirs gdb ld"
3769 ;;
6bd59761 3770 hppa*64*-*-linux*)
71ab34df 3771 ;;
99684e84 3772 hppa*-*-linux*)
08261f02 3773 ;;
71ab34df 3774 hppa*-*-*elf* | \
71ab34df 3775 hppa*-*-lites* | \
3776 hppa*-*-openbsd* | \
3777 hppa*64*-*-*)
71ab34df 3778 ;;
1c5767f1 3779 hppa*-*-pro*)
1c5767f1 3780 ;;
71ab34df 3781 hppa*-*-*)
f24be480 3782 noconfigdirs="$noconfigdirs ld"
71ab34df 3783 ;;
4a9237fb 3784 i960-*-*)
71559dce 3785 noconfigdirs="$noconfigdirs gdb"
4a9237fb 3786 ;;
71ab34df 3787 ia64*-*-elf*)
3788 # No gdb support yet.
6c9785b4 3789 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
71ab34df 3790 ;;
3791 ia64*-**-hpux*)
1aca86a6 3792 # No ld support yet.
6406d366 3793 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
71ab34df 3794 ;;
8408ca00 3795 ia64*-*-*vms*)
3211401d 3796 # No ld support yet.
3797 noconfigdirs="$noconfigdirs libgui itcl ld"
8408ca00 3798 ;;
ec2eb8fb 3799 i[3456789]86-w64-mingw*)
ec2eb8fb 3800 ;;
3801 i[3456789]86-*-mingw*)
d6d689df 3802 target_configdirs="$target_configdirs target-winsup"
b30fcfae 3803 ;;
71ab34df 3804 *-*-cygwin*)
3805 target_configdirs="$target_configdirs target-libtermcap target-winsup"
6c9785b4 3806 noconfigdirs="$noconfigdirs target-libgloss"
2c10944d 3807 # always build newlib if winsup directory is present.
d6d689df 3808 if test -d "$srcdir/winsup/cygwin"; then
2c10944d 3809 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
e8eddfdd 3810 elif test -d "$srcdir/newlib"; then
d6d689df 3811 echo "Warning: winsup/cygwin is missing so newlib can't be built."
2c10944d 3812 fi
b30fcfae 3813 ;;
f74ea578 3814 i[3456789]86-*-pe)
17b3d2a8 3815 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3816 ;;
f74ea578 3817 i[3456789]86-*-sco3.2v5*)
71ab34df 3818 # The linker does not yet know about weak symbols in COFF,
3819 # and is not configured to handle mixed ELF and COFF.
71559dce 3820 noconfigdirs="$noconfigdirs ld target-libgloss"
71ab34df 3821 ;;
f74ea578 3822 i[3456789]86-*-sco*)
71559dce 3823 noconfigdirs="$noconfigdirs gprof target-libgloss"
71ab34df 3824 ;;
14f27bc6 3825 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
71ab34df 3826 noconfigdirs="$noconfigdirs target-libgloss"
3827 ;;
f74ea578 3828 i[3456789]86-*-sysv4*)
71559dce 3829 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3830 ;;
f74ea578 3831 i[3456789]86-*-beos*)
d556f192 3832 noconfigdirs="$noconfigdirs gdb"
602d002b 3833 ;;
ab0da556 3834 i[3456789]86-*-rdos*)
d556f192 3835 noconfigdirs="$noconfigdirs gdb"
1c5767f1 3836 ;;
71ab34df 3837 mmix-*-*)
f24be480 3838 noconfigdirs="$noconfigdirs gdb"
71ab34df 3839 ;;
957985d9 3840 mt-*-*)
f6fa11cb 3841 noconfigdirs="$noconfigdirs sim"
3842 ;;
b9bdd103 3843 nfp-*-*)
3844 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3845 noconfigdirs="$noconfigdirs $target_libraries"
3846 ;;
71ab34df 3847 powerpc-*-aix*)
3848 # copied from rs6000-*-* entry
d556f192 3849 noconfigdirs="$noconfigdirs gprof"
71ab34df 3850 ;;
6bd59761 3851 powerpc*-*-winnt* | powerpc*-*-pe*)
71ab34df 3852 target_configdirs="$target_configdirs target-winsup"
71559dce 3853 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
71ab34df 3854 # always build newlib.
3855 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3856 ;;
3857 # This is temporary until we can link against shared libraries
3858 powerpcle-*-solaris*)
71559dce 3859 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
71ab34df 3860 ;;
3861 powerpc-*-beos*)
d556f192 3862 noconfigdirs="$noconfigdirs gdb"
71ab34df 3863 ;;
71ab34df 3864 rs6000-*-lynxos*)
d556f192 3865 noconfigdirs="$noconfigdirs gprof"
71ab34df 3866 ;;
3867 rs6000-*-aix*)
d556f192 3868 noconfigdirs="$noconfigdirs gprof"
71ab34df 3869 ;;
3870 rs6000-*-*)
f24be480 3871 noconfigdirs="$noconfigdirs gprof"
71ab34df 3872 ;;
3873 m68k-apollo-*)
71559dce 3874 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
71ab34df 3875 ;;
ba2b484f 3876 microblaze*)
f24be480 3877 noconfigdirs="$noconfigdirs gprof"
ba2b484f 3878 ;;
d781ea5c 3879 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
68c9bc25 3880 if test x$with_newlib = xyes; then
3881 noconfigdirs="$noconfigdirs gprof"
3882 fi
68c9bc25 3883 ;;
71ab34df 3884 mips*-*-irix5*)
71559dce 3885 noconfigdirs="$noconfigdirs gprof target-libgloss"
71ab34df 3886 ;;
3887 mips*-*-irix6*)
f24be480 3888 noconfigdirs="$noconfigdirs gprof target-libgloss"
71ab34df 3889 ;;
71ab34df 3890 mips*-*-bsd*)
d6449910 3891 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
71ab34df 3892 ;;
71ab34df 3893 mips*-*-linux*)
71ab34df 3894 ;;
d6449910 3895 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3896 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3897 noconfigdirs="$noconfigdirs ld gas gprof"
3898 ;;
71ab34df 3899 mips*-*-*)
f24be480 3900 noconfigdirs="$noconfigdirs gprof"
71ab34df 3901 ;;
8ce80784 3902 nvptx*-*-*)
8ce80784 3903 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3904 ;;
9a9b5abf 3905 sh-*-*)
39f6b116 3906 case "${target}" in
3907 sh*-*-elf)
f24be480 3908 ;;
39f6b116 3909 *)
f24be480 3910 noconfigdirs="$noconfigdirs target-libgloss" ;;
39f6b116 3911 esac
71ab34df 3912 ;;
71ab34df 3913 sparc-*-sunos4*)
d556f192 3914 if test x${is_cross_compiler} = xno ; then
71ab34df 3915 use_gnu_ld=no
3916 fi
3917 ;;
fa0a53e3 3918 tic6x-*-*)
ccdfa490 3919 noconfigdirs="$noconfigdirs sim"
fa0a53e3 3920 ;;
2da35515 3921 tilepro*-*-* | tilegx*-*-*)
e5fa74b2 3922 noconfigdirs="$noconfigdirs sim"
3923 ;;
71ab34df 3924 v810-*-*)
71559dce 3925 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
71ab34df 3926 ;;
3927 vax-*-*)
f24be480 3928 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
71ab34df 3929 ;;
c2762a30 3930 wasm32-*-*)
3931 noconfigdirs="$noconfigdirs ld"
3932 ;;
71ab34df 3933esac
a8298541 3934
71ab34df 3935# If we aren't building newlib, then don't build libgloss, since libgloss
3936# depends upon some newlib header files.
3937case "${noconfigdirs}" in
3938 *target-libgloss*) ;;
3939 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3940esac
3941
71ab34df 3942# Work in distributions that contain no compiler tools, like Autoconf.
71ab34df 3943host_makefile_frag=/dev/null
3944if test -d ${srcdir}/config ; then
3945case "${host}" in
f74ea578 3946 i[3456789]86-*-msdosdjgpp*)
71ab34df 3947 host_makefile_frag="config/mh-djgpp"
3948 ;;
3949 *-cygwin*)
45043b2b 3950
cd9a469c 3951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3952$as_echo_n "checking to see if cat works as expected... " >&6; }
45043b2b 3953echo a >cygwin-cat-check
82d97a59 3954if test `cat cygwin-cat-check` = a ; then
45043b2b 3955 rm cygwin-cat-check
cd9a469c 3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3957$as_echo "yes" >&6; }
45043b2b 3958else
3959 rm cygwin-cat-check
cd9a469c 3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3961$as_echo "no" >&6; }
f00f02a3 3962 as_fn_error $? "The cat command does not ignore carriage return characters.
45043b2b 3963 Please either mount the build directory in binary mode or run the following
3964 commands before running any configure script:
3965set -o igncr
3966export SHELLOPTS
cd9a469c 3967 " "$LINENO" 5
45043b2b 3968fi
3969
71ab34df 3970 host_makefile_frag="config/mh-cygwin"
3971 ;;
5a92bcc2 3972 *-mingw*)
70d8e49e 3973 host_makefile_frag="config/mh-mingw"
a378fc89 3974 ;;
bed3355c 3975 alpha*-linux*)
539ded76 3976 host_makefile_frag="config/mh-alpha-linux"
3977 ;;
d2b94e36 3978 hppa*-hp-hpux10*)
d2b94e36 3979 host_makefile_frag="config/mh-pa-hpux10"
71ab34df 3980 ;;
b2240ff6 3981 hppa*-hp-hpux*)
d2b94e36 3982 host_makefile_frag="config/mh-pa"
3983 ;;
3984 hppa*-*)
3985 host_makefile_frag="config/mh-pa"
3986 ;;
16463c8d 3987 *-*-darwin*)
3988 host_makefile_frag="config/mh-darwin"
0222d984 3989 ;;
9d44a802 3990 powerpc-*-aix*)
3991 host_makefile_frag="config/mh-ppc-aix"
3992 ;;
3993 rs6000-*-aix*)
3994 host_makefile_frag="config/mh-ppc-aix"
3995 ;;
71ab34df 3996esac
3997fi
3998
8e1fea1a 3999if test "${build}" != "${host}" ; then
93c5e793 4000 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4001 AS_FOR_BUILD=${AS_FOR_BUILD-as}
8e1fea1a 4002 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
93c5e793 4003 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
93c5e793 4004 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
5ff5b630 4005 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
03385ed3 4006 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
93c5e793 4007 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4008 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4009 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4010 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4011 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4012 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4013else
4014 AR_FOR_BUILD="\$(AR)"
4015 AS_FOR_BUILD="\$(AS)"
a4af6a58 4016 CC_FOR_BUILD="\$(CC)"
93c5e793 4017 CXX_FOR_BUILD="\$(CXX)"
93c5e793 4018 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
5ff5b630 4019 GOC_FOR_BUILD="\$(GOC)"
03385ed3 4020 GDC_FOR_BUILD="\$(GDC)"
93c5e793 4021 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4022 LD_FOR_BUILD="\$(LD)"
4023 NM_FOR_BUILD="\$(NM)"
4024 RANLIB_FOR_BUILD="\$(RANLIB)"
4025 WINDRES_FOR_BUILD="\$(WINDRES)"
4026 WINDMC_FOR_BUILD="\$(WINDMC)"
eae5b2bc 4027fi
4028
4029ac_ext=c
b30fcfae 4030ac_cpp='$CPP $CPPFLAGS'
4031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4033ac_compiler_gnu=$ac_cv_c_compiler_gnu
4034if test -n "$ac_tool_prefix"; then
4035 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4036set dummy ${ac_tool_prefix}gcc; ac_word=$2
cd9a469c 4037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4038$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4039if ${ac_cv_prog_CC+:} false; then :
cd9a469c 4040 $as_echo_n "(cached) " >&6
b30fcfae 4041else
4042 if test -n "$CC"; then
4043 ac_cv_prog_CC="$CC" # Let the user override the test.
4044else
4045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046for as_dir in $PATH
4047do
4048 IFS=$as_save_IFS
4049 test -z "$as_dir" && as_dir=.
cd9a469c 4050 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 4052 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cd9a469c 4053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 4054 break 2
4055 fi
4056done
cd9a469c 4057 done
4058IFS=$as_save_IFS
b30fcfae 4059
4060fi
4061fi
4062CC=$ac_cv_prog_CC
4063if test -n "$CC"; then
cd9a469c 4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4065$as_echo "$CC" >&6; }
b30fcfae 4066else
cd9a469c 4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4068$as_echo "no" >&6; }
b30fcfae 4069fi
4070
cd9a469c 4071
b30fcfae 4072fi
4073if test -z "$ac_cv_prog_CC"; then
4074 ac_ct_CC=$CC
a4af6a58 4075 # Extract the first word of "gcc", so it can be a program name with args.
4076set dummy gcc; ac_word=$2
cd9a469c 4077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4078$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4079if ${ac_cv_prog_ac_ct_CC+:} false; then :
cd9a469c 4080 $as_echo_n "(cached) " >&6
b30fcfae 4081else
4082 if test -n "$ac_ct_CC"; then
4083 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4084else
4085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086for as_dir in $PATH
4087do
4088 IFS=$as_save_IFS
4089 test -z "$as_dir" && as_dir=.
cd9a469c 4090 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 4092 ac_cv_prog_ac_ct_CC="gcc"
cd9a469c 4093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 4094 break 2
4095 fi
4096done
cd9a469c 4097 done
4098IFS=$as_save_IFS
b30fcfae 4099
4100fi
4101fi
4102ac_ct_CC=$ac_cv_prog_ac_ct_CC
4103if test -n "$ac_ct_CC"; then
cd9a469c 4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4105$as_echo "$ac_ct_CC" >&6; }
b30fcfae 4106else
cd9a469c 4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4108$as_echo "no" >&6; }
b30fcfae 4109fi
4110
cd9a469c 4111 if test "x$ac_ct_CC" = x; then
4112 CC=""
4113 else
4114 case $cross_compiling:$ac_tool_warned in
4115yes:)
4116{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4117$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4118ac_tool_warned=yes ;;
4119esac
4120 CC=$ac_ct_CC
4121 fi
b30fcfae 4122else
4123 CC="$ac_cv_prog_CC"
4124fi
4125
4126if test -z "$CC"; then
cd9a469c 4127 if test -n "$ac_tool_prefix"; then
4128 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b30fcfae 4129set dummy ${ac_tool_prefix}cc; ac_word=$2
cd9a469c 4130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4131$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4132if ${ac_cv_prog_CC+:} false; then :
cd9a469c 4133 $as_echo_n "(cached) " >&6
8e1fea1a 4134else
4135 if test -n "$CC"; then
4136 ac_cv_prog_CC="$CC" # Let the user override the test.
4137else
b30fcfae 4138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139for as_dir in $PATH
4140do
4141 IFS=$as_save_IFS
4142 test -z "$as_dir" && as_dir=.
cd9a469c 4143 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 4145 ac_cv_prog_CC="${ac_tool_prefix}cc"
cd9a469c 4146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 4147 break 2
4148 fi
4149done
cd9a469c 4150 done
4151IFS=$as_save_IFS
b30fcfae 4152
a83ffacf 4153fi
a83ffacf 4154fi
b30fcfae 4155CC=$ac_cv_prog_CC
ae48753c 4156if test -n "$CC"; then
cd9a469c 4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4158$as_echo "$CC" >&6; }
5084f823 4159else
cd9a469c 4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4161$as_echo "no" >&6; }
5084f823 4162fi
4163
5084f823 4164
cd9a469c 4165 fi
b30fcfae 4166fi
8e1fea1a 4167if test -z "$CC"; then
4168 # Extract the first word of "cc", so it can be a program name with args.
4169set dummy cc; ac_word=$2
cd9a469c 4170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4171$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4172if ${ac_cv_prog_CC+:} false; then :
cd9a469c 4173 $as_echo_n "(cached) " >&6
8e1fea1a 4174else
4175 if test -n "$CC"; then
4176 ac_cv_prog_CC="$CC" # Let the user override the test.
4177else
a83ffacf 4178 ac_prog_rejected=no
b30fcfae 4179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180for as_dir in $PATH
4181do
4182 IFS=$as_save_IFS
4183 test -z "$as_dir" && as_dir=.
cd9a469c 4184 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 4186 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4187 ac_prog_rejected=yes
4188 continue
4189 fi
4190 ac_cv_prog_CC="cc"
cd9a469c 4191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 4192 break 2
4193 fi
4194done
cd9a469c 4195 done
4196IFS=$as_save_IFS
b30fcfae 4197
8e1fea1a 4198if test $ac_prog_rejected = yes; then
4199 # We found a bogon in the path, so make sure we never use it.
4200 set dummy $ac_cv_prog_CC
4201 shift
b30fcfae 4202 if test $# != 0; then
8e1fea1a 4203 # We chose a different compiler from the bogus one.
4204 # However, it has the same basename, so the bogon will be chosen
4205 # first if we set CC to just the basename; use the full file name.
4206 shift
b30fcfae 4207 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
8e1fea1a 4208 fi
4209fi
4210fi
4211fi
b30fcfae 4212CC=$ac_cv_prog_CC
8e1fea1a 4213if test -n "$CC"; then
cd9a469c 4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4215$as_echo "$CC" >&6; }
8e1fea1a 4216else
cd9a469c 4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4218$as_echo "no" >&6; }
8e1fea1a 4219fi
4220
cd9a469c 4221
b30fcfae 4222fi
4223if test -z "$CC"; then
4224 if test -n "$ac_tool_prefix"; then
cd9a469c 4225 for ac_prog in cl.exe
b30fcfae 4226 do
4227 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4228set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cd9a469c 4229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4230$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4231if ${ac_cv_prog_CC+:} false; then :
cd9a469c 4232 $as_echo_n "(cached) " >&6
8e1fea1a 4233else
4234 if test -n "$CC"; then
4235 ac_cv_prog_CC="$CC" # Let the user override the test.
4236else
b30fcfae 4237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238for as_dir in $PATH
4239do
4240 IFS=$as_save_IFS
4241 test -z "$as_dir" && as_dir=.
cd9a469c 4242 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 4244 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cd9a469c 4245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 4246 break 2
4247 fi
4248done
cd9a469c 4249 done
4250IFS=$as_save_IFS
b30fcfae 4251
8e1fea1a 4252fi
4253fi
b30fcfae 4254CC=$ac_cv_prog_CC
8e1fea1a 4255if test -n "$CC"; then
cd9a469c 4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4257$as_echo "$CC" >&6; }
b1660f25 4258else
cd9a469c 4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4260$as_echo "no" >&6; }
a4af6a58 4261fi
ae48753c 4262
cd9a469c 4263
b30fcfae 4264 test -n "$CC" && break
4265 done
ae48753c 4266fi
b30fcfae 4267if test -z "$CC"; then
4268 ac_ct_CC=$CC
cd9a469c 4269 for ac_prog in cl.exe
b30fcfae 4270do
4271 # Extract the first word of "$ac_prog", so it can be a program name with args.
4272set dummy $ac_prog; ac_word=$2
cd9a469c 4273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4274$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4275if ${ac_cv_prog_ac_ct_CC+:} false; then :
cd9a469c 4276 $as_echo_n "(cached) " >&6
a83ffacf 4277else
b30fcfae 4278 if test -n "$ac_ct_CC"; then
4279 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
a83ffacf 4280else
b30fcfae 4281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282for as_dir in $PATH
4283do
4284 IFS=$as_save_IFS
4285 test -z "$as_dir" && as_dir=.
cd9a469c 4286 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 4288 ac_cv_prog_ac_ct_CC="$ac_prog"
cd9a469c 4289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 4290 break 2
4291 fi
4292done
cd9a469c 4293 done
4294IFS=$as_save_IFS
b30fcfae 4295
ae48753c 4296fi
4297fi
b30fcfae 4298ac_ct_CC=$ac_cv_prog_ac_ct_CC
4299if test -n "$ac_ct_CC"; then
cd9a469c 4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4301$as_echo "$ac_ct_CC" >&6; }
a4af6a58 4302else
cd9a469c 4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4304$as_echo "no" >&6; }
ae48753c 4305fi
a83ffacf 4306
cd9a469c 4307
b30fcfae 4308 test -n "$ac_ct_CC" && break
4309done
4310
cd9a469c 4311 if test "x$ac_ct_CC" = x; then
4312 CC=""
4313 else
4314 case $cross_compiling:$ac_tool_warned in
4315yes:)
4316{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4317$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4318ac_tool_warned=yes ;;
4319esac
4320 CC=$ac_ct_CC
4321 fi
b30fcfae 4322fi
4323
4324fi
4325
4326
cd9a469c 4327test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4328$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 4329as_fn_error $? "no acceptable C compiler found in \$PATH
4330See \`config.log' for more details" "$LINENO" 5; }
b30fcfae 4331
4332# Provide some information about the compiler.
cd9a469c 4333$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4334set X $ac_compile
4335ac_compiler=$2
4336for ac_option in --version -v -V -qversion; do
4337 { { ac_try="$ac_compiler $ac_option >&5"
4338case "(($ac_try" in
4339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340 *) ac_try_echo=$ac_try;;
4341esac
4342eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4343$as_echo "$ac_try_echo"; } >&5
4344 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b30fcfae 4345 ac_status=$?
cd9a469c 4346 if test -s conftest.err; then
4347 sed '10a\
4348... rest of stderr output deleted ...
4349 10q' conftest.err >conftest.er1
4350 cat conftest.er1 >&5
cd9a469c 4351 fi
f00f02a3 4352 rm -f conftest.er1 conftest.err
cd9a469c 4353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4354 test $ac_status = 0; }
4355done
b30fcfae 4356
cd9a469c 4357cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 4358/* end confdefs.h. */
4359
4360int
4361main ()
4362{
4363
4364 ;
4365 return 0;
4366}
4367_ACEOF
4368ac_clean_files_save=$ac_clean_files
f00f02a3 4369ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
b30fcfae 4370# Try to create an executable without -o first, disregard a.out.
4371# It will help us diagnose broken compilers, and finding out an intuition
4372# of exeext.
f00f02a3 4373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4374$as_echo_n "checking whether the C compiler works... " >&6; }
cd9a469c 4375ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4376
4377# The possible output files:
4378ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4379
4380ac_rmfiles=
4381for ac_file in $ac_files
4382do
4383 case $ac_file in
4384 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4385 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4386 esac
4387done
4388rm -f $ac_rmfiles
4389
4390if { { ac_try="$ac_link_default"
4391case "(($ac_try" in
4392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393 *) ac_try_echo=$ac_try;;
4394esac
4395eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4396$as_echo "$ac_try_echo"; } >&5
4397 (eval "$ac_link_default") 2>&5
b30fcfae 4398 ac_status=$?
cd9a469c 4399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4400 test $ac_status = 0; }; then :
4401 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4402# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4403# in a Makefile. We should not override ac_cv_exeext if it was cached,
4404# so that the user can short-circuit this test for compilers unknown to
4405# Autoconf.
4406for ac_file in $ac_files ''
b30fcfae 4407do
4408 test -f "$ac_file" || continue
4409 case $ac_file in
cd9a469c 4410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b30fcfae 4411 ;;
4412 [ab].out )
4413 # We found the default executable, but exeext='' is most
4414 # certainly right.
4415 break;;
4416 *.* )
cd9a469c 4417 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4418 then :; else
4419 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4420 fi
4421 # We set ac_cv_exeext here because the later test for it is not
4422 # safe: cross compilers may not add the suffix if given an `-o'
4423 # argument, so we may need to know it at that point already.
4424 # Even if this section looks crufty: it has the advantage of
4425 # actually working.
b30fcfae 4426 break;;
4427 * )
4428 break;;
4429 esac
4430done
cd9a469c 4431test "$ac_cv_exeext" = no && ac_cv_exeext=
4432
b30fcfae 4433else
cd9a469c 4434 ac_file=''
4435fi
cd9a469c 4436if test -z "$ac_file"; then :
f00f02a3 4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4438$as_echo "no" >&6; }
4439$as_echo "$as_me: failed program was:" >&5
b30fcfae 4440sed 's/^/| /' conftest.$ac_ext >&5
4441
cd9a469c 4442{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4443$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 4444as_fn_error 77 "C compiler cannot create executables
4445See \`config.log' for more details" "$LINENO" 5; }
4446else
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4448$as_echo "yes" >&6; }
b30fcfae 4449fi
f00f02a3 4450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4451$as_echo_n "checking for C compiler default output file name... " >&6; }
4452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4453$as_echo "$ac_file" >&6; }
b30fcfae 4454ac_exeext=$ac_cv_exeext
b30fcfae 4455
f00f02a3 4456rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
b30fcfae 4457ac_clean_files=$ac_clean_files_save
cd9a469c 4458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4459$as_echo_n "checking for suffix of executables... " >&6; }
4460if { { ac_try="$ac_link"
4461case "(($ac_try" in
4462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463 *) ac_try_echo=$ac_try;;
4464esac
4465eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4466$as_echo "$ac_try_echo"; } >&5
4467 (eval "$ac_link") 2>&5
b30fcfae 4468 ac_status=$?
cd9a469c 4469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4470 test $ac_status = 0; }; then :
b30fcfae 4471 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4472# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4473# work properly (i.e., refer to `conftest.exe'), while it won't with
4474# `rm'.
4475for ac_file in conftest.exe conftest conftest.*; do
4476 test -f "$ac_file" || continue
4477 case $ac_file in
cd9a469c 4478 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b30fcfae 4479 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b30fcfae 4480 break;;
4481 * ) break;;
4482 esac
4483done
ae48753c 4484else
cd9a469c 4485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4486$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 4487as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4488See \`config.log' for more details" "$LINENO" 5; }
b30fcfae 4489fi
f00f02a3 4490rm -f conftest conftest$ac_cv_exeext
cd9a469c 4491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4492$as_echo "$ac_cv_exeext" >&6; }
b30fcfae 4493
4494rm -f conftest.$ac_ext
4495EXEEXT=$ac_cv_exeext
4496ac_exeext=$EXEEXT
f00f02a3 4497cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498/* end confdefs.h. */
4499#include <stdio.h>
4500int
4501main ()
4502{
4503FILE *f = fopen ("conftest.out", "w");
4504 return ferror (f) || fclose (f) != 0;
4505
4506 ;
4507 return 0;
4508}
4509_ACEOF
4510ac_clean_files="$ac_clean_files conftest.out"
4511# Check that the compiler produces executables we can run. If not, either
4512# the compiler is broken, or we cross compile.
4513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4514$as_echo_n "checking whether we are cross compiling... " >&6; }
4515if test "$cross_compiling" != yes; then
4516 { { ac_try="$ac_link"
4517case "(($ac_try" in
4518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4519 *) ac_try_echo=$ac_try;;
4520esac
4521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4522$as_echo "$ac_try_echo"; } >&5
4523 (eval "$ac_link") 2>&5
4524 ac_status=$?
4525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4526 test $ac_status = 0; }
4527 if { ac_try='./conftest$ac_cv_exeext'
4528 { { case "(($ac_try" in
4529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530 *) ac_try_echo=$ac_try;;
4531esac
4532eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4533$as_echo "$ac_try_echo"; } >&5
4534 (eval "$ac_try") 2>&5
4535 ac_status=$?
4536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4537 test $ac_status = 0; }; }; then
4538 cross_compiling=no
4539 else
4540 if test "$cross_compiling" = maybe; then
4541 cross_compiling=yes
4542 else
4543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4544$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4545as_fn_error $? "cannot run C compiled programs.
4546If you meant to cross compile, use \`--host'.
4547See \`config.log' for more details" "$LINENO" 5; }
4548 fi
4549 fi
4550fi
4551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4552$as_echo "$cross_compiling" >&6; }
4553
4554rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4555ac_clean_files=$ac_clean_files_save
cd9a469c 4556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4557$as_echo_n "checking for suffix of object files... " >&6; }
f00f02a3 4558if ${ac_cv_objext+:} false; then :
cd9a469c 4559 $as_echo_n "(cached) " >&6
b30fcfae 4560else
cd9a469c 4561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 4562/* end confdefs.h. */
4563
4564int
4565main ()
4566{
4567
4568 ;
4569 return 0;
4570}
4571_ACEOF
4572rm -f conftest.o conftest.obj
cd9a469c 4573if { { ac_try="$ac_compile"
4574case "(($ac_try" in
4575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4576 *) ac_try_echo=$ac_try;;
4577esac
4578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4579$as_echo "$ac_try_echo"; } >&5
4580 (eval "$ac_compile") 2>&5
b30fcfae 4581 ac_status=$?
cd9a469c 4582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4583 test $ac_status = 0; }; then :
4584 for ac_file in conftest.o conftest.obj conftest.*; do
4585 test -f "$ac_file" || continue;
b30fcfae 4586 case $ac_file in
cd9a469c 4587 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b30fcfae 4588 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4589 break;;
4590 esac
4591done
4592else
cd9a469c 4593 $as_echo "$as_me: failed program was:" >&5
b30fcfae 4594sed 's/^/| /' conftest.$ac_ext >&5
4595
cd9a469c 4596{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4597$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 4598as_fn_error $? "cannot compute suffix of object files: cannot compile
4599See \`config.log' for more details" "$LINENO" 5; }
b30fcfae 4600fi
b30fcfae 4601rm -f conftest.$ac_cv_objext conftest.$ac_ext
4602fi
cd9a469c 4603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4604$as_echo "$ac_cv_objext" >&6; }
b30fcfae 4605OBJEXT=$ac_cv_objext
4606ac_objext=$OBJEXT
cd9a469c 4607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4608$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
f00f02a3 4609if ${ac_cv_c_compiler_gnu+:} false; then :
cd9a469c 4610 $as_echo_n "(cached) " >&6
b30fcfae 4611else
cd9a469c 4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 4613/* end confdefs.h. */
4614
4615int
4616main ()
4617{
4618#ifndef __GNUC__
4619 choke me
4620#endif
4621
4622 ;
4623 return 0;
4624}
4625_ACEOF
cd9a469c 4626if ac_fn_c_try_compile "$LINENO"; then :
b30fcfae 4627 ac_compiler_gnu=yes
4628else
cd9a469c 4629 ac_compiler_gnu=no
b30fcfae 4630fi
cd9a469c 4631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b30fcfae 4632ac_cv_c_compiler_gnu=$ac_compiler_gnu
4633
4634fi
cd9a469c 4635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4636$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4637if test $ac_compiler_gnu = yes; then
4638 GCC=yes
4639else
4640 GCC=
4641fi
b30fcfae 4642ac_test_CFLAGS=${CFLAGS+set}
4643ac_save_CFLAGS=$CFLAGS
cd9a469c 4644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4645$as_echo_n "checking whether $CC accepts -g... " >&6; }
f00f02a3 4646if ${ac_cv_prog_cc_g+:} false; then :
cd9a469c 4647 $as_echo_n "(cached) " >&6
4648else
4649 ac_save_c_werror_flag=$ac_c_werror_flag
4650 ac_c_werror_flag=yes
4651 ac_cv_prog_cc_g=no
4652 CFLAGS="-g"
4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 4654/* end confdefs.h. */
4655
4656int
4657main ()
4658{
4659
4660 ;
4661 return 0;
4662}
4663_ACEOF
cd9a469c 4664if ac_fn_c_try_compile "$LINENO"; then :
8e1fea1a 4665 ac_cv_prog_cc_g=yes
4666else
cd9a469c 4667 CFLAGS=""
4668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4669/* end confdefs.h. */
4670
4671int
4672main ()
4673{
4674
4675 ;
4676 return 0;
4677}
4678_ACEOF
4679if ac_fn_c_try_compile "$LINENO"; then :
4680
4681else
4682 ac_c_werror_flag=$ac_save_c_werror_flag
4683 CFLAGS="-g"
4684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685/* end confdefs.h. */
ae48753c 4686
cd9a469c 4687int
4688main ()
4689{
4690
4691 ;
4692 return 0;
4693}
4694_ACEOF
4695if ac_fn_c_try_compile "$LINENO"; then :
4696 ac_cv_prog_cc_g=yes
4697fi
4698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a83ffacf 4699fi
cd9a469c 4700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b30fcfae 4701fi
cd9a469c 4702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4703 ac_c_werror_flag=$ac_save_c_werror_flag
4704fi
4705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4706$as_echo "$ac_cv_prog_cc_g" >&6; }
8e1fea1a 4707if test "$ac_test_CFLAGS" = set; then
b30fcfae 4708 CFLAGS=$ac_save_CFLAGS
8e1fea1a 4709elif test $ac_cv_prog_cc_g = yes; then
4710 if test "$GCC" = yes; then
4711 CFLAGS="-g -O2"
4712 else
4713 CFLAGS="-g"
4714 fi
4715else
4716 if test "$GCC" = yes; then
4717 CFLAGS="-O2"
4718 else
4719 CFLAGS=
4720 fi
4721fi
cd9a469c 4722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4723$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
f00f02a3 4724if ${ac_cv_prog_cc_c89+:} false; then :
cd9a469c 4725 $as_echo_n "(cached) " >&6
b30fcfae 4726else
cd9a469c 4727 ac_cv_prog_cc_c89=no
b30fcfae 4728ac_save_CC=$CC
cd9a469c 4729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 4730/* end confdefs.h. */
4731#include <stdarg.h>
4732#include <stdio.h>
f00f02a3 4733struct stat;
b30fcfae 4734/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4735struct buf { int x; };
4736FILE * (*rcsopen) (struct buf *, struct stat *, int);
4737static char *e (p, i)
4738 char **p;
4739 int i;
4740{
4741 return p[i];
4742}
4743static char *f (char * (*g) (char **, int), char **p, ...)
4744{
4745 char *s;
4746 va_list v;
4747 va_start (v,p);
4748 s = g (p, va_arg (v,int));
4749 va_end (v);
4750 return s;
4751}
4752
4753/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4754 function prototypes and stuff, but not '\xHH' hex character constants.
4755 These don't provoke an error unfortunately, instead are silently treated
cd9a469c 4756 as 'x'. The following induces an error, until -std is added to get
b30fcfae 4757 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4758 array size at least. It's necessary to write '\x00'==0 to get something
cd9a469c 4759 that's true only with -std. */
b30fcfae 4760int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4761
cd9a469c 4762/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4763 inside strings and character constants. */
4764#define FOO(x) 'x'
4765int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4766
b30fcfae 4767int test (int i, double x);
4768struct s1 {int (*f) (int a);};
4769struct s2 {int (*f) (double a);};
4770int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4771int argc;
4772char **argv;
4773int
4774main ()
4775{
4776return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4777 ;
4778 return 0;
4779}
4780_ACEOF
cd9a469c 4781for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4782 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b30fcfae 4783do
4784 CC="$ac_save_CC $ac_arg"
cd9a469c 4785 if ac_fn_c_try_compile "$LINENO"; then :
4786 ac_cv_prog_cc_c89=$ac_arg
b30fcfae 4787fi
cd9a469c 4788rm -f core conftest.err conftest.$ac_objext
4789 test "x$ac_cv_prog_cc_c89" != "xno" && break
b30fcfae 4790done
cd9a469c 4791rm -f conftest.$ac_ext
b30fcfae 4792CC=$ac_save_CC
4793
4794fi
cd9a469c 4795# AC_CACHE_VAL
4796case "x$ac_cv_prog_cc_c89" in
4797 x)
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4799$as_echo "none needed" >&6; } ;;
4800 xno)
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4802$as_echo "unsupported" >&6; } ;;
b30fcfae 4803 *)
cd9a469c 4804 CC="$CC $ac_cv_prog_cc_c89"
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4806$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b30fcfae 4807esac
cd9a469c 4808if test "x$ac_cv_prog_cc_c89" != xno; then :
b30fcfae 4809
5084f823 4810fi
4811
5084f823 4812ac_ext=c
4813ac_cpp='$CPP $CPPFLAGS'
4814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4816ac_compiler_gnu=$ac_cv_c_compiler_gnu
4817
cd9a469c 4818ac_ext=cpp
5084f823 4819ac_cpp='$CXXCPP $CPPFLAGS'
4820ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4821ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4822ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
cd9a469c 4823if test -z "$CXX"; then
4824 if test -n "$CCC"; then
4825 CXX=$CCC
4826 else
4827 if test -n "$ac_tool_prefix"; then
4828 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5084f823 4829 do
4830 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4831set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cd9a469c 4832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4833$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4834if ${ac_cv_prog_CXX+:} false; then :
cd9a469c 4835 $as_echo_n "(cached) " >&6
5084f823 4836else
4837 if test -n "$CXX"; then
4838 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4839else
4840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841for as_dir in $PATH
4842do
4843 IFS=$as_save_IFS
4844 test -z "$as_dir" && as_dir=.
cd9a469c 4845 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5084f823 4847 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cd9a469c 4848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5084f823 4849 break 2
4850 fi
4851done
cd9a469c 4852 done
4853IFS=$as_save_IFS
8e1fea1a 4854
eae5b2bc 4855fi
4856fi
4857CXX=$ac_cv_prog_CXX
4858if test -n "$CXX"; then
cd9a469c 4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4860$as_echo "$CXX" >&6; }
eae5b2bc 4861else
cd9a469c 4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4863$as_echo "no" >&6; }
eae5b2bc 4864fi
4865
cd9a469c 4866
eae5b2bc 4867 test -n "$CXX" && break
4868 done
4869fi
4870if test -z "$CXX"; then
4871 ac_ct_CXX=$CXX
cd9a469c 4872 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
eae5b2bc 4873do
4874 # Extract the first word of "$ac_prog", so it can be a program name with args.
4875set dummy $ac_prog; ac_word=$2
cd9a469c 4876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4877$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4878if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cd9a469c 4879 $as_echo_n "(cached) " >&6
eae5b2bc 4880else
4881 if test -n "$ac_ct_CXX"; then
4882 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4883else
4884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885for as_dir in $PATH
4886do
4887 IFS=$as_save_IFS
4888 test -z "$as_dir" && as_dir=.
cd9a469c 4889 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eae5b2bc 4891 ac_cv_prog_ac_ct_CXX="$ac_prog"
cd9a469c 4892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
eae5b2bc 4893 break 2
4894 fi
4895done
cd9a469c 4896 done
4897IFS=$as_save_IFS
eae5b2bc 4898
4899fi
4900fi
4901ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4902if test -n "$ac_ct_CXX"; then
cd9a469c 4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4904$as_echo "$ac_ct_CXX" >&6; }
eae5b2bc 4905else
cd9a469c 4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907$as_echo "no" >&6; }
eae5b2bc 4908fi
4909
cd9a469c 4910
eae5b2bc 4911 test -n "$ac_ct_CXX" && break
4912done
eae5b2bc 4913
cd9a469c 4914 if test "x$ac_ct_CXX" = x; then
4915 CXX="g++"
4916 else
4917 case $cross_compiling:$ac_tool_warned in
4918yes:)
4919{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4920$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4921ac_tool_warned=yes ;;
4922esac
4923 CXX=$ac_ct_CXX
4924 fi
eae5b2bc 4925fi
4926
cd9a469c 4927 fi
4928fi
eae5b2bc 4929# Provide some information about the compiler.
cd9a469c 4930$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4931set X $ac_compile
4932ac_compiler=$2
4933for ac_option in --version -v -V -qversion; do
4934 { { ac_try="$ac_compiler $ac_option >&5"
4935case "(($ac_try" in
4936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937 *) ac_try_echo=$ac_try;;
4938esac
4939eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4940$as_echo "$ac_try_echo"; } >&5
4941 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
eae5b2bc 4942 ac_status=$?
cd9a469c 4943 if test -s conftest.err; then
4944 sed '10a\
4945... rest of stderr output deleted ...
4946 10q' conftest.err >conftest.er1
4947 cat conftest.er1 >&5
cd9a469c 4948 fi
f00f02a3 4949 rm -f conftest.er1 conftest.err
cd9a469c 4950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4951 test $ac_status = 0; }
4952done
eae5b2bc 4953
cd9a469c 4954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4955$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
f00f02a3 4956if ${ac_cv_cxx_compiler_gnu+:} false; then :
cd9a469c 4957 $as_echo_n "(cached) " >&6
eae5b2bc 4958else
cd9a469c 4959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eae5b2bc 4960/* end confdefs.h. */
4961
4962int
4963main ()
4964{
4965#ifndef __GNUC__
4966 choke me
4967#endif
4968
4969 ;
4970 return 0;
4971}
4972_ACEOF
cd9a469c 4973if ac_fn_cxx_try_compile "$LINENO"; then :
eae5b2bc 4974 ac_compiler_gnu=yes
4975else
cd9a469c 4976 ac_compiler_gnu=no
eae5b2bc 4977fi
cd9a469c 4978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
eae5b2bc 4979ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4980
4981fi
cd9a469c 4982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4983$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4984if test $ac_compiler_gnu = yes; then
4985 GXX=yes
4986else
4987 GXX=
4988fi
eae5b2bc 4989ac_test_CXXFLAGS=${CXXFLAGS+set}
4990ac_save_CXXFLAGS=$CXXFLAGS
cd9a469c 4991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4992$as_echo_n "checking whether $CXX accepts -g... " >&6; }
f00f02a3 4993if ${ac_cv_prog_cxx_g+:} false; then :
cd9a469c 4994 $as_echo_n "(cached) " >&6
4995else
4996 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4997 ac_cxx_werror_flag=yes
4998 ac_cv_prog_cxx_g=no
4999 CXXFLAGS="-g"
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eae5b2bc 5001/* end confdefs.h. */
5002
5003int
5004main ()
5005{
5006
5007 ;
5008 return 0;
5009}
5010_ACEOF
cd9a469c 5011if ac_fn_cxx_try_compile "$LINENO"; then :
eae5b2bc 5012 ac_cv_prog_cxx_g=yes
5013else
cd9a469c 5014 CXXFLAGS=""
5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eae5b2bc 5016/* end confdefs.h. */
cd9a469c 5017
eae5b2bc 5018int
5019main ()
5020{
cd9a469c 5021
eae5b2bc 5022 ;
5023 return 0;
5024}
5025_ACEOF
cd9a469c 5026if ac_fn_cxx_try_compile "$LINENO"; then :
2f8725b0 5027
cd9a469c 5028else
5029 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5030 CXXFLAGS="-g"
5031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eae5b2bc 5032/* end confdefs.h. */
cd9a469c 5033
eae5b2bc 5034int
5035main ()
5036{
cd9a469c 5037
eae5b2bc 5038 ;
5039 return 0;
5040}
5041_ACEOF
cd9a469c 5042if ac_fn_cxx_try_compile "$LINENO"; then :
5043 ac_cv_prog_cxx_g=yes
570af75a 5044fi
cd9a469c 5045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5046fi
5047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5048fi
5049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5050 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5051fi
5052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5053$as_echo "$ac_cv_prog_cxx_g" >&6; }
5054if test "$ac_test_CXXFLAGS" = set; then
5055 CXXFLAGS=$ac_save_CXXFLAGS
5056elif test $ac_cv_prog_cxx_g = yes; then
5057 if test "$GXX" = yes; then
5058 CXXFLAGS="-g -O2"
5059 else
5060 CXXFLAGS="-g"
5061 fi
5062else
5063 if test "$GXX" = yes; then
5064 CXXFLAGS="-O2"
5065 else
5066 CXXFLAGS=
5067 fi
eae5b2bc 5068fi
eae5b2bc 5069ac_ext=c
5070ac_cpp='$CPP $CPPFLAGS'
5071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5073ac_compiler_gnu=$ac_cv_c_compiler_gnu
5074
5075
5076# We must set the default linker to the linker used by gcc for the correct
5077# operation of libtool. If LD is not defined and we are using gcc, try to
5078# set the LD default to the ld used by gcc.
5079if test -z "$LD"; then
5080 if test "$GCC" = yes; then
5081 case $build in
5082 *-*-mingw*)
5083 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5084 *)
5085 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5086 esac
5087 case $gcc_prog_ld in
5088 # Accept absolute paths.
5089 [\\/]* | [A-Za-z]:[\\/]*)
5090 LD="$gcc_prog_ld" ;;
5091 esac
5092 fi
2f8725b0 5093fi
5094
13687c85 5095# Check whether -static-libstdc++ -static-libgcc is supported.
5096have_static_libs=no
5097if test "$GCC" = yes; then
5098 saved_LDFLAGS="$LDFLAGS"
5099
5100 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5102$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5103 ac_ext=cpp
5104ac_cpp='$CXXCPP $CPPFLAGS'
5105ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5106ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5107ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5108
5109
5110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5111/* end confdefs.h. */
74f1ea54 5112
5113#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5114#error -static-libstdc++ not implemented
5115#endif
13687c85 5116int main() {}
5117_ACEOF
5118if ac_fn_cxx_try_link "$LINENO"; then :
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5120$as_echo "yes" >&6; }; have_static_libs=yes
5121else
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5123$as_echo "no" >&6; }
5124fi
5125rm -f core conftest.err conftest.$ac_objext \
5126 conftest$ac_exeext conftest.$ac_ext
5127 ac_ext=c
5128ac_cpp='$CPP $CPPFLAGS'
5129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5131ac_compiler_gnu=$ac_cv_c_compiler_gnu
5132
5133
5134 LDFLAGS="$saved_LDFLAGS"
5135fi
5136
2f8725b0 5137
5138
8e1fea1a 5139
b30fcfae 5140if test -n "$ac_tool_prefix"; then
5141 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
8e1fea1a 5142set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
cd9a469c 5143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5144$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 5145if ${ac_cv_prog_GNATBIND+:} false; then :
cd9a469c 5146 $as_echo_n "(cached) " >&6
8e1fea1a 5147else
5148 if test -n "$GNATBIND"; then
5149 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5150else
b30fcfae 5151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152for as_dir in $PATH
5153do
5154 IFS=$as_save_IFS
5155 test -z "$as_dir" && as_dir=.
cd9a469c 5156 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 5157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 5158 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
cd9a469c 5159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 5160 break 2
5161 fi
5162done
cd9a469c 5163 done
5164IFS=$as_save_IFS
b30fcfae 5165
8e1fea1a 5166fi
5167fi
b30fcfae 5168GNATBIND=$ac_cv_prog_GNATBIND
8e1fea1a 5169if test -n "$GNATBIND"; then
cd9a469c 5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5171$as_echo "$GNATBIND" >&6; }
8e1fea1a 5172else
cd9a469c 5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174$as_echo "no" >&6; }
8e1fea1a 5175fi
5176
cd9a469c 5177
b30fcfae 5178fi
8e1fea1a 5179if test -z "$ac_cv_prog_GNATBIND"; then
b30fcfae 5180 ac_ct_GNATBIND=$GNATBIND
8e1fea1a 5181 # Extract the first word of "gnatbind", so it can be a program name with args.
5182set dummy gnatbind; ac_word=$2
cd9a469c 5183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5184$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 5185if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
cd9a469c 5186 $as_echo_n "(cached) " >&6
8e1fea1a 5187else
b30fcfae 5188 if test -n "$ac_ct_GNATBIND"; then
5189 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
8e1fea1a 5190else
b30fcfae 5191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192for as_dir in $PATH
5193do
5194 IFS=$as_save_IFS
5195 test -z "$as_dir" && as_dir=.
cd9a469c 5196 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 5197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 5198 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
cd9a469c 5199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 5200 break 2
5201 fi
5202done
cd9a469c 5203 done
5204IFS=$as_save_IFS
b30fcfae 5205
8e1fea1a 5206fi
5207fi
b30fcfae 5208ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5209if test -n "$ac_ct_GNATBIND"; then
cd9a469c 5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5211$as_echo "$ac_ct_GNATBIND" >&6; }
8e1fea1a 5212else
cd9a469c 5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5214$as_echo "no" >&6; }
8e1fea1a 5215fi
5216
cd9a469c 5217 if test "x$ac_ct_GNATBIND" = x; then
5218 GNATBIND="no"
5219 else
5220 case $cross_compiling:$ac_tool_warned in
5221yes:)
5222{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5223$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5224ac_tool_warned=yes ;;
5225esac
5226 GNATBIND=$ac_ct_GNATBIND
5227 fi
8e1fea1a 5228else
b30fcfae 5229 GNATBIND="$ac_cv_prog_GNATBIND"
8e1fea1a 5230fi
5231
b30fcfae 5232if test -n "$ac_tool_prefix"; then
5233 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
a18b2c54 5234set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
cd9a469c 5235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5236$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 5237if ${ac_cv_prog_GNATMAKE+:} false; then :
cd9a469c 5238 $as_echo_n "(cached) " >&6
a18b2c54 5239else
5240 if test -n "$GNATMAKE"; then
5241 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5242else
b30fcfae 5243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244for as_dir in $PATH
5245do
5246 IFS=$as_save_IFS
5247 test -z "$as_dir" && as_dir=.
cd9a469c 5248 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 5249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 5250 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
cd9a469c 5251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 5252 break 2
5253 fi
5254done
cd9a469c 5255 done
5256IFS=$as_save_IFS
b30fcfae 5257
a18b2c54 5258fi
5259fi
b30fcfae 5260GNATMAKE=$ac_cv_prog_GNATMAKE
a18b2c54 5261if test -n "$GNATMAKE"; then
cd9a469c 5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5263$as_echo "$GNATMAKE" >&6; }
a18b2c54 5264else
cd9a469c 5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5266$as_echo "no" >&6; }
a18b2c54 5267fi
5268
cd9a469c 5269
b30fcfae 5270fi
a18b2c54 5271if test -z "$ac_cv_prog_GNATMAKE"; then
b30fcfae 5272 ac_ct_GNATMAKE=$GNATMAKE
a18b2c54 5273 # Extract the first word of "gnatmake", so it can be a program name with args.
5274set dummy gnatmake; ac_word=$2
cd9a469c 5275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5276$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 5277if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
cd9a469c 5278 $as_echo_n "(cached) " >&6
a18b2c54 5279else
b30fcfae 5280 if test -n "$ac_ct_GNATMAKE"; then
5281 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
a18b2c54 5282else
b30fcfae 5283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284for as_dir in $PATH
5285do
5286 IFS=$as_save_IFS
5287 test -z "$as_dir" && as_dir=.
cd9a469c 5288 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 5289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 5290 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
cd9a469c 5291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 5292 break 2
5293 fi
5294done
cd9a469c 5295 done
5296IFS=$as_save_IFS
b30fcfae 5297
a18b2c54 5298fi
5299fi
b30fcfae 5300ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5301if test -n "$ac_ct_GNATMAKE"; then
cd9a469c 5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5303$as_echo "$ac_ct_GNATMAKE" >&6; }
a18b2c54 5304else
cd9a469c 5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5306$as_echo "no" >&6; }
a18b2c54 5307fi
5308
cd9a469c 5309 if test "x$ac_ct_GNATMAKE" = x; then
5310 GNATMAKE="no"
5311 else
5312 case $cross_compiling:$ac_tool_warned in
5313yes:)
5314{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5315$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5316ac_tool_warned=yes ;;
5317esac
5318 GNATMAKE=$ac_ct_GNATMAKE
5319 fi
a18b2c54 5320else
b30fcfae 5321 GNATMAKE="$ac_cv_prog_GNATMAKE"
a18b2c54 5322fi
5323
cd9a469c 5324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5325$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
f00f02a3 5326if ${acx_cv_cc_gcc_supports_ada+:} false; then :
cd9a469c 5327 $as_echo_n "(cached) " >&6
8e1fea1a 5328else
5329 cat >conftest.adb <<EOF
5330procedure conftest is begin null; end conftest;
5331EOF
5332acx_cv_cc_gcc_supports_ada=no
5333# There is a bug in old released versions of GCC which causes the
5334# driver to exit successfully when the appropriate language module
5335# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5336# Therefore we must check for the error message as well as an
5337# unsuccessful exit.
216de822 5338# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5339# given a .adb file, but produce no object file. So we must check
5340# if an object file was really produced to guard against this.
8e1fea1a 5341errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
216de822 5342if test x"$errors" = x && test -f conftest.$ac_objext; then
8e1fea1a 5343 acx_cv_cc_gcc_supports_ada=yes
8e1fea1a 5344fi
5345rm -f conftest.*
5346fi
cd9a469c 5347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5348$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
8e1fea1a 5349
9d5fd7d0 5350if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
8e1fea1a 5351 have_gnat=yes
5352else
5353 have_gnat=no
5354fi
5355
cd9a469c 5356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5357$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
f00f02a3 5358if ${gcc_cv_prog_cmp_skip+:} false; then :
cd9a469c 5359 $as_echo_n "(cached) " >&6
7bcc3b4a 5360else
5361 echo abfoo >t1
5362 echo cdfoo >t2
efbca99c 5363 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
697dfd2c 5364 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5365 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5366 :
5367 else
5368 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5369 fi
5370 fi
7bcc3b4a 5371 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5372 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
697dfd2c 5373 :
7bcc3b4a 5374 else
5375 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5376 fi
5377 fi
5378 rm t1 t2
5379
5380fi
cd9a469c 5381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5382$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7bcc3b4a 5383do_compare="$gcc_cv_prog_cmp_skip"
5384
5385
8e1fea1a 5386
6c59dfa4 5387# Check whether --enable-bootstrap was given.
5388if test "${enable_bootstrap+set}" = set; then :
5389 enableval=$enable_bootstrap;
5390else
5391 enable_bootstrap=default
5392fi
5393
5394
5395# Issue errors and warnings for invalid/strange bootstrap combinations.
d7c9b4c1 5396if test -r $srcdir/gcc/configure; then
5397 have_compiler=yes
5398else
5399 have_compiler=no
5400fi
6c59dfa4 5401
5402case "$have_compiler:$host:$target:$enable_bootstrap" in
5403 *:*:*:no) ;;
5404
5405 # Default behavior. Enable bootstrap if we have a compiler
5406 # and we are in a native configuration.
5407 yes:$build:$build:default)
5408 enable_bootstrap=yes ;;
5409
5410 *:*:*:default)
5411 enable_bootstrap=no ;;
5412
5413 # We have a compiler and we are in a native configuration, bootstrap is ok
5414 yes:$build:$build:yes)
5415 ;;
5416
5417 # Other configurations, but we have a compiler. Assume the user knows
5418 # what he's doing.
5419 yes:*:*:yes)
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5421$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5422 ;;
5423
5424 # No compiler: if they passed --enable-bootstrap explicitly, fail
5425 no:*:*:yes)
f00f02a3 5426 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
6c59dfa4 5427
5428 # Fail if wrong command line
5429 *)
f00f02a3 5430 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
6c59dfa4 5431 ;;
5432esac
5433
27590679 5434# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5435# C++98 compiler can still start the bootstrap.
5436if test "$enable_bootstrap:$GXX" = "yes:yes"; then
dce53dbc 5437 CXX="$CXX -std=gnu++98"
27590679 5438fi
5439
c3fc6a63 5440# Used for setting $lt_cv_objdir
5441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5442$as_echo_n "checking for objdir... " >&6; }
f00f02a3 5443if ${lt_cv_objdir+:} false; then :
c3fc6a63 5444 $as_echo_n "(cached) " >&6
5445else
5446 rm -f .libs 2>/dev/null
5447mkdir .libs 2>/dev/null
5448if test -d .libs; then
5449 lt_cv_objdir=.libs
5450else
5451 # MS-DOS does not allow filenames that begin with a dot.
5452 lt_cv_objdir=_libs
5453fi
5454rmdir .libs 2>/dev/null
5455fi
5456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5457$as_echo "$lt_cv_objdir" >&6; }
5458objdir=$lt_cv_objdir
5459
5460
5461
5462
5463
5464cat >>confdefs.h <<_ACEOF
5465#define LT_OBJDIR "$lt_cv_objdir/"
5466_ACEOF
5467
5468
5469
7601a55c 5470# Check for GMP, MPFR and MPC
16de6a81 5471gmplibs="-lmpc -lmpfr -lgmp"
4ee9c684 5472gmpinc=
d45318b3 5473have_gmp=no
7601a55c 5474
5475# Specify a location for mpc
5476# check for this first so it ends up on the link line before mpfr.
5477
cd9a469c 5478# Check whether --with-mpc was given.
5479if test "${with_mpc+set}" = set; then :
5480 withval=$with_mpc;
5481fi
7601a55c 5482
7601a55c 5483
73f813e1 5484# Check whether --with-mpc-include was given.
cd9a469c 5485if test "${with_mpc_include+set}" = set; then :
5486 withval=$with_mpc_include;
5487fi
7601a55c 5488
7601a55c 5489
73f813e1 5490# Check whether --with-mpc-lib was given.
cd9a469c 5491if test "${with_mpc_lib+set}" = set; then :
5492 withval=$with_mpc_lib;
5493fi
7601a55c 5494
7601a55c 5495
5496if test "x$with_mpc" != x; then
16de6a81 5497 gmplibs="-L$with_mpc/lib $gmplibs"
5498 gmpinc="-I$with_mpc/include $gmpinc"
7601a55c 5499fi
5500if test "x$with_mpc_include" != x; then
16de6a81 5501 gmpinc="-I$with_mpc_include $gmpinc"
7601a55c 5502fi
5503if test "x$with_mpc_lib" != x; then
16de6a81 5504 gmplibs="-L$with_mpc_lib $gmplibs"
7601a55c 5505fi
5506if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
c3fc6a63 5507 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
16de6a81 5508 gmpinc='-I$$s/mpc/src '"$gmpinc"
7601a55c 5509 # Do not test the mpc version. Assume that it is sufficient, since
5510 # it is in the source tree, and the library has not been built yet
5511 # but it would be included on the link line in the version check below
5512 # hence making the test fail.
16de6a81 5513 have_gmp=yes
7601a55c 5514fi
d45318b3 5515
5ca838b8 5516# Specify a location for mpfr
5517# check for this first so it ends up on the link line before gmp.
b30fcfae 5518
cd9a469c 5519# Check whether --with-mpfr-dir was given.
5520if test "${with_mpfr_dir+set}" = set; then :
f00f02a3 5521 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
cd9a469c 5522Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5523fi
5524
5ca838b8 5525
5526
cd9a469c 5527# Check whether --with-mpfr was given.
5528if test "${with_mpfr+set}" = set; then :
5529 withval=$with_mpfr;
5530fi
b30fcfae 5531
5ca838b8 5532
73f813e1 5533# Check whether --with-mpfr-include was given.
cd9a469c 5534if test "${with_mpfr_include+set}" = set; then :
5535 withval=$with_mpfr_include;
5536fi
b30fcfae 5537
a5144c1d 5538
73f813e1 5539# Check whether --with-mpfr-lib was given.
cd9a469c 5540if test "${with_mpfr_lib+set}" = set; then :
5541 withval=$with_mpfr_lib;
5542fi
a5144c1d 5543
5ca838b8 5544
5545if test "x$with_mpfr" != x; then
5546 gmplibs="-L$with_mpfr/lib $gmplibs"
16de6a81 5547 gmpinc="-I$with_mpfr/include $gmpinc"
5ca838b8 5548fi
a5144c1d 5549if test "x$with_mpfr_include" != x; then
16de6a81 5550 gmpinc="-I$with_mpfr_include $gmpinc"
a5144c1d 5551fi
5552if test "x$with_mpfr_lib" != x; then
5553 gmplibs="-L$with_mpfr_lib $gmplibs"
5554fi
d45318b3 5555if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
efa1150d 5556 # MPFR v3.1.0 moved the sources into a src sub-directory.
5557 if ! test -d ${srcdir}/mpfr/src; then
f00f02a3 5558 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
efa1150d 5559 fi
4b2246ef 5560 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5561 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5562 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
d45318b3 5563 # Do not test the mpfr version. Assume that it is sufficient, since
5564 # it is in the source tree, and the library has not been built yet
5565 # but it would be included on the link line in the version check below
5566 # hence making the test fail.
5567 have_gmp=yes
5568fi
5ca838b8 5569
4ee9c684 5570# Specify a location for gmp
b30fcfae 5571
cd9a469c 5572# Check whether --with-gmp-dir was given.
5573if test "${with_gmp_dir+set}" = set; then :
f00f02a3 5574 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
cd9a469c 5575Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5576fi
5577
4ee9c684 5578
4ee9c684 5579
cd9a469c 5580# Check whether --with-gmp was given.
5581if test "${with_gmp+set}" = set; then :
5582 withval=$with_gmp;
5583fi
b30fcfae 5584
4ee9c684 5585
73f813e1 5586# Check whether --with-gmp-include was given.
cd9a469c 5587if test "${with_gmp_include+set}" = set; then :
5588 withval=$with_gmp_include;
5589fi
b30fcfae 5590
a5144c1d 5591
73f813e1 5592# Check whether --with-gmp-lib was given.
cd9a469c 5593if test "${with_gmp_lib+set}" = set; then :
5594 withval=$with_gmp_lib;
5595fi
a5144c1d 5596
5597
4ee9c684 5598
5ca838b8 5599if test "x$with_gmp" != x; then
5600 gmplibs="-L$with_gmp/lib $gmplibs"
5601 gmpinc="-I$with_gmp/include $gmpinc"
4ee9c684 5602fi
a5144c1d 5603if test "x$with_gmp_include" != x; then
5604 gmpinc="-I$with_gmp_include $gmpinc"
5605fi
5606if test "x$with_gmp_lib" != x; then
5607 gmplibs="-L$with_gmp_lib $gmplibs"
5608fi
d45318b3 5609if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
c3fc6a63 5610 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
d45318b3 5611 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
b9a8e4c4 5612 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
c3fc6a63 5613 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
e4128452 5614 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
d45318b3 5615 # Do not test the gmp version. Assume that it is sufficient, since
5616 # it is in the source tree, and the library has not been built yet
5617 # but it would be included on the link line in the version check below
5618 # hence making the test fail.
5619 have_gmp=yes
5620fi
4ee9c684 5621
16c9b2e3 5622if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
d45318b3 5623 have_gmp=yes
5624 saved_CFLAGS="$CFLAGS"
5625 CFLAGS="$CFLAGS $gmpinc"
17b6993a 5626 # Check for the recommended and required versions of GMP.
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5628$as_echo_n "checking for the correct version of gmp.h... " >&6; }
4fd35f21 5629
5630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17b6993a 5631/* end confdefs.h. */
5632#include "gmp.h"
5633int
5634main ()
5635{
5636
5637 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5638 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
f819bb73 5639 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
17b6993a 5640 choke me
5641 #endif
5642
5643 ;
5644 return 0;
5645}
5646_ACEOF
5647if ac_fn_c_try_compile "$LINENO"; then :
4fd35f21 5648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 5649/* end confdefs.h. */
17b6993a 5650#include <gmp.h>
b30fcfae 5651int
5652main ()
5653{
4ee9c684 5654
17b6993a 5655 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5656 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5657 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
d45318b3 5658 choke me
5659 #endif
b30fcfae 5660
5661 ;
5662 return 0;
5663}
5664_ACEOF
cd9a469c 5665if ac_fn_c_try_compile "$LINENO"; then :
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5667$as_echo "yes" >&6; }
17b6993a 5668else
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5670$as_echo "buggy but acceptable" >&6; }
5671fi
5672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b30fcfae 5673else
cd9a469c 5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5675$as_echo "no" >&6; }; have_gmp=no
b30fcfae 5676fi
cd9a469c 5677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4ee9c684 5678
7601a55c 5679 # If we have GMP, check the MPFR version.
d45318b3 5680 if test x"$have_gmp" = xyes; then
17b6993a 5681 # Check for the recommended and required versions of MPFR.
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5683$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
cd9a469c 5684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 5685/* end confdefs.h. */
6a086156 5686#include <gmp.h>
d45318b3 5687 #include <mpfr.h>
b30fcfae 5688int
5689main ()
5690{
112f3d57 5691
cb1d9044 5692 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
d45318b3 5693 choke me
5694 #endif
b30fcfae 5695
5696 ;
5697 return 0;
5698}
5699_ACEOF
cd9a469c 5700if ac_fn_c_try_compile "$LINENO"; then :
5701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 5702/* end confdefs.h. */
0157cc75 5703#include <gmp.h>
d45318b3 5704 #include <mpfr.h>
b30fcfae 5705int
5706main ()
5707{
0157cc75 5708
17b6993a 5709 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
d45318b3 5710 choke me
5711 #endif
7601a55c 5712
5713 ;
5714 return 0;
5715}
5716_ACEOF
cd9a469c 5717if ac_fn_c_try_compile "$LINENO"; then :
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5719$as_echo "yes" >&6; }
7601a55c 5720else
cd9a469c 5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5722$as_echo "buggy but acceptable" >&6; }
7601a55c 5723fi
cd9a469c 5724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601a55c 5725else
cd9a469c 5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5727$as_echo "no" >&6; }; have_gmp=no
7601a55c 5728fi
cd9a469c 5729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601a55c 5730 fi
5731
5732 # Check for the MPC header version.
16de6a81 5733 if test x"$have_gmp" = xyes ; then
17b6993a 5734 # Check for the recommended and required versions of MPC.
cd9a469c 5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5736$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601a55c 5738/* end confdefs.h. */
5739#include <mpc.h>
5740int
5741main ()
5742{
5743
17b6993a 5744 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5745 choke me
5746 #endif
5747
5748 ;
5749 return 0;
5750}
5751_ACEOF
5752if ac_fn_c_try_compile "$LINENO"; then :
5753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5754/* end confdefs.h. */
5755#include <mpc.h>
5756int
5757main ()
5758{
5759
5760 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
7601a55c 5761 choke me
5762 #endif
5763
5764 ;
5765 return 0;
5766}
5767_ACEOF
cd9a469c 5768if ac_fn_c_try_compile "$LINENO"; then :
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16de6a81 5770$as_echo "yes" >&6; }
17b6993a 5771else
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5773$as_echo "buggy but acceptable" >&6; }
5774fi
5775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601a55c 5776else
cd9a469c 5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16de6a81 5778$as_echo "no" >&6; }; have_gmp=no
7601a55c 5779fi
cd9a469c 5780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601a55c 5781 fi
5782
5783 # Now check the MPFR library.
5784 if test x"$have_gmp" = xyes; then
5785 saved_LIBS="$LIBS"
5786 LIBS="$LIBS $gmplibs"
16de6a81 5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5788$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
cd9a469c 5789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601a55c 5790/* end confdefs.h. */
16de6a81 5791#include <mpc.h>
7601a55c 5792int
5793main ()
5794{
5795
5796 mpfr_t n;
5797 mpfr_t x;
16de6a81 5798 mpc_t c;
7601a55c 5799 int t;
5800 mpfr_init (n);
5801 mpfr_init (x);
5802 mpfr_atan2 (n, n, x, GMP_RNDN);
5803 mpfr_erfc (n, x, GMP_RNDN);
5804 mpfr_subnormalize (x, t, GMP_RNDN);
16de6a81 5805 mpfr_clear(n);
5806 mpfr_clear(x);
5807 mpc_init2 (c, 53);
5808 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5809 mpc_cosh (c, c, MPC_RNDNN);
5810 mpc_pow (c, c, c, MPC_RNDNN);
5811 mpc_acosh (c, c, MPC_RNDNN);
5812 mpc_clear (c);
b30fcfae 5813
5814 ;
5815 return 0;
5816}
5817_ACEOF
cd9a469c 5818if ac_fn_c_try_link "$LINENO"; then :
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5820$as_echo "yes" >&6; }
b30fcfae 5821else
cd9a469c 5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823$as_echo "no" >&6; }; have_gmp=no
b30fcfae 5824fi
cd9a469c 5825rm -f core conftest.err conftest.$ac_objext \
5826 conftest$ac_exeext conftest.$ac_ext
7601a55c 5827 LIBS="$saved_LIBS"
5828 fi
5829
d45318b3 5830 CFLAGS="$saved_CFLAGS"
4ee9c684 5831
17b6993a 5832# The library versions listed in the error message below should match
5833# the HARD-minimums enforced above.
d45318b3 5834 if test x$have_gmp != xyes; then
f00f02a3 5835 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
16de6a81 5836Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5837their locations. Source code for these libraries can be found at
5838their respective hosting sites as well as at
5839ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5840http://gcc.gnu.org/install/prerequisites.html for additional info. If
5841you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5842make sure that you have installed both the libraries and the header
5843files. They may be located in separate packages." "$LINENO" 5
d45318b3 5844 fi
6a086156 5845fi
5846
7601a55c 5847# Flags needed for both GMP, MPFR and/or MPC.
5848
5849
4ee9c684 5850
5851
5852
bff7ea4a 5853
e4128452 5854
13687c85 5855# Libraries to use for stage1 or when not bootstrapping.
7ab76cec 5856
13687c85 5857# Check whether --with-stage1-libs was given.
5858if test "${with_stage1_libs+set}" = set; then :
5859 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5860 stage1_libs=
7ab76cec 5861 else
13687c85 5862 stage1_libs=$withval
7ab76cec 5863 fi
5864else
9d71bbdc 5865 stage1_libs=
cd9a469c 5866fi
5867
7ab76cec 5868
5869
13687c85 5870# Linker flags to use for stage1 or when not bootstrapping.
7ab76cec 5871
13687c85 5872# Check whether --with-stage1-ldflags was given.
5873if test "${with_stage1_ldflags+set}" = set; then :
5874 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5875 stage1_ldflags=
7ab76cec 5876 else
13687c85 5877 stage1_ldflags=$withval
7ab76cec 5878 fi
5879else
13687c85 5880 stage1_ldflags=
5881 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5882 # if supported. But if the user explicitly specified the libraries to use,
5883 # trust that they are doing what they want.
5884 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5885 stage1_ldflags="-static-libstdc++ -static-libgcc"
5886 fi
cd9a469c 5887fi
5888
7ab76cec 5889
5890
9d71bbdc 5891# Libraries to use for stage2 and later builds.
7ab76cec 5892
cd9a469c 5893# Check whether --with-boot-libs was given.
5894if test "${with_boot_libs+set}" = set; then :
5895 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5110389d 5896 poststage1_libs=
5897 else
5898 poststage1_libs=$withval
5899 fi
5900else
9d71bbdc 5901 poststage1_libs=
cd9a469c 5902fi
5903
7ab76cec 5904
5905
d6dfe18a 5906# Linker flags to use for stage2 and later builds.
5907
5908# Check whether --with-boot-ldflags was given.
5909if test "${with_boot_ldflags+set}" = set; then :
5910 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5911 poststage1_ldflags=
5912 else
5913 poststage1_ldflags=$withval
5914 fi
5915else
5916 poststage1_ldflags=
7deb2d70 5917 # In stages 2 and 3, default to linking libstdc++ and libgcc
5918 # statically. But if the user explicitly specified the libraries to
5919 # use, trust that they are doing what they want.
5920 if test "$poststage1_libs" = ""; then
d6dfe18a 5921 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5922 fi
5923fi
5924
5925
5926
71130ef8 5927# GCC GRAPHITE dependency isl.
572cf1f7 5928# Basic setup is inlined here, actual checks are in config/isl.m4
255b6be7 5929
5930
87e20041 5931# Check whether --with-isl was given.
5932if test "${with_isl+set}" = set; then :
5933 withval=$with_isl;
cd9a469c 5934fi
255b6be7 5935
255b6be7 5936
429cca51 5937# Treat --without-isl as a request to disable
83d54ac4 5938# GRAPHITE support and skip all following checks.
429cca51 5939if test "x$with_isl" != "xno"; then
71130ef8 5940 # Check for isl
83d54ac4 5941
5942
87e20041 5943# Check whether --with-isl-include was given.
5944if test "${with_isl_include+set}" = set; then :
5945 withval=$with_isl_include;
cd9a469c 5946fi
5947
255b6be7 5948
87e20041 5949# Check whether --with-isl-lib was given.
5950if test "${with_isl_lib+set}" = set; then :
5951 withval=$with_isl_lib;
cd9a469c 5952fi
255b6be7 5953
255b6be7 5954
87e20041 5955 # Check whether --enable-isl-version-check was given.
5956if test "${enable_isl_version_check+set}" = set; then :
5957 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5958else
5959 ENABLE_ISL_CHECK=yes
062b4a94 5960fi
5961
5962
87e20041 5963 # Initialize isllibs and islinc.
5964 case $with_isl in
5965 no)
5966 isllibs=
5967 islinc=
5968 ;;
5969 "" | yes)
5970 ;;
5971 *)
5972 isllibs="-L$with_isl/lib"
5973 islinc="-I$with_isl/include"
5974 ;;
5975 esac
5976 if test "x${with_isl_include}" != x ; then
5977 islinc="-I$with_isl_include"
5978 fi
5979 if test "x${with_isl_lib}" != x; then
5980 isllibs="-L$with_isl_lib"
5981 fi
5982 if test "x${islinc}" = x && test "x${isllibs}" = x \
5983 && test -d ${srcdir}/isl; then
5984 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5985 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5986 ENABLE_ISL_CHECK=no
7458b15a 5987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5988$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
87e20041 5989 fi
062b4a94 5990
429cca51 5991 isllibs="${isllibs} -lisl"
5992
062b4a94 5993
062b4a94 5994
078393c7 5995 if test "${ENABLE_ISL_CHECK}" = yes ; then
5996 _isl_saved_CFLAGS=$CFLAGS
5997 _isl_saved_LDFLAGS=$LDFLAGS
5998 _isl_saved_LIBS=$LIBS
5999
6000 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
07ae8272 6001 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6002 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
078393c7 6003
8e8a14c2 6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
6005$as_echo_n "checking for isl 0.15 or later... " >&6; }
b6de67fd 6006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6ac3b11e 6007/* end confdefs.h. */
8e8a14c2 6008#include <isl/schedule.h>
6ac3b11e 6009int
6010main ()
6011{
8e8a14c2 6012isl_options_set_schedule_serialize_sccs (NULL, 0);
6ac3b11e 6013 ;
6014 return 0;
6015}
6016_ACEOF
6017if ac_fn_c_try_link "$LINENO"; then :
078393c7 6018 gcc_cv_isl=yes
6ac3b11e 6019else
6020 gcc_cv_isl=no
6021fi
6022rm -f core conftest.err conftest.$ac_objext \
6023 conftest$ac_exeext conftest.$ac_ext
078393c7 6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6025$as_echo "$gcc_cv_isl" >&6; }
6026
7458b15a 6027 if test "${gcc_cv_isl}" = no ; then
8e8a14c2 6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6029$as_echo "required isl version is 0.15 or later" >&6; }
45fc5243 6030 fi
6031
078393c7 6032 CFLAGS=$_isl_saved_CFLAGS
6033 LDFLAGS=$_isl_saved_LDFLAGS
6034 LIBS=$_isl_saved_LIBS
6035 fi
6036
6037
255b6be7 6038
255b6be7 6039
87e20041 6040
6041
87e20041 6042 if test "x${with_isl}" = xno; then
6043 graphite_requested=no
6044 elif test "x${with_isl}" != x \
6045 || test "x${with_isl_include}" != x \
6046 || test "x${with_isl_lib}" != x ; then
6047 graphite_requested=yes
6048 else
6049 graphite_requested=no
062b4a94 6050 fi
5362e323 6051
5362e323 6052
6053
87e20041 6054 if test "${gcc_cv_isl}" = no ; then
6055 isllibs=
6056 islinc=
6057 fi
6058
6059 if test "${graphite_requested}" = yes \
6060 && test "x${isllibs}" = x \
6061 && test "x${islinc}" = x ; then
255b6be7 6062
f00f02a3 6063 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
87e20041 6064 fi
255b6be7 6065
a3c81e03 6066
a3c81e03 6067fi
6068
71130ef8 6069# If the isl check failed, disable builds of in-tree variant of isl
83d54ac4 6070if test "x$with_isl" = xno ||
83d54ac4 6071 test "x$gcc_cv_isl" = xno; then
572cf1f7 6072 noconfigdirs="$noconfigdirs isl"
83d54ac4 6073 islinc=
bacb15cb 6074fi
6075
83d54ac4 6076
6077
6078
7bfefa9d 6079# Check for LTO support.
6080# Check whether --enable-lto was given.
6081if test "${enable_lto+set}" = set; then :
6082 enableval=$enable_lto; enable_lto=$enableval
6083else
6084 enable_lto=yes; default_enable_lto=yes
6085fi
6086
6087
1a4f45ec 6088
9bdbb0bc 6089
6090
6091target_elf=no
6092case $target in
6093 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
4d72c922 6094 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
cb7a0f1d 6095 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
0f769573 6096 nvptx-*-none)
9bdbb0bc 6097 target_elf=no
6098 ;;
6099 *)
6100 target_elf=yes
6101 ;;
6102esac
6103
6104if test $target_elf = yes; then :
25630dc7 6105 # ELF platforms build the lto-plugin always.
6106 build_lto_plugin=yes
9bdbb0bc 6107
9bdbb0bc 6108else
6109 if test x"$default_enable_lto" = x"yes" ; then
4ae8c98f 6110 case $target in
c96ae98b 6111 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
25630dc7 6112 # On other non-ELF platforms, LTO has yet to be validated.
4ae8c98f 6113 *) enable_lto=no ;;
6114 esac
9bdbb0bc 6115 else
62932e4d 6116 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6117 # It would also be nice to check the binutils support, but we don't
9bdbb0bc 6118 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6119 # warn during gcc/ subconfigure; unless you're bootstrapping with
6120 # -flto it won't be needed until after installation anyway.
6121 case $target in
7aa50266 6122 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9bdbb0bc 6123 *) if test x"$enable_lto" = x"yes"; then
f00f02a3 6124 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
9bdbb0bc 6125 fi
6126 ;;
6127 esac
6128 fi
ca42e774 6129 # Among non-ELF, only Windows platforms support the lto-plugin so far.
25630dc7 6130 # Build it unless LTO was explicitly disabled.
ca42e774 6131 case $target in
25630dc7 6132 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
ca42e774 6133 *) ;;
6134 esac
25630dc7 6135
9bdbb0bc 6136fi
6137
7bfefa9d 6138
1015a063 6139# Check whether --enable-linker-plugin-configure-flags was given.
6140if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6141 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6142else
6143 extra_linker_plugin_configure_flags=
6144fi
6145
6146
6147# Check whether --enable-linker-plugin-flags was given.
6148if test "${enable_linker_plugin_flags+set}" = set; then :
6149 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6150else
6151 extra_linker_plugin_flags=
6152fi
6153
6154
6155
01b4453c 6156# Enable --enable-host-shared.
6157# Checked early to determine whether jit is an 'all' language
6158# Check whether --enable-host-shared was given.
6159if test "${enable_host_shared+set}" = set; then :
6160 enableval=$enable_host_shared; host_shared=$enableval
6161else
6162 host_shared=no
6163fi
6164
6165
255b6be7 6166
2b15d2ba 6167# By default, C and C++ are the only stage 1 languages.
9c3a0a29 6168stage1_languages=,c,
2d64c2fd 6169
7ab76cec 6170# Target libraries that we bootstrap.
5c96a839 6171bootstrap_target_libs=,target-libgcc,
7ab76cec 6172
8e1fea1a 6173# Figure out what language subdirectories are present.
6174# Look if the user specified --enable-languages="..."; if not, use
6175# the environment variable $LANGUAGES if defined. $LANGUAGES might
6176# go away some day.
6177# NB: embedded tabs in this IF block -- do not untabify
6178if test -d ${srcdir}/gcc; then
6179 if test x"${enable_languages+set}" != xset; then
6180 if test x"${LANGUAGES+set}" = xset; then
6181 enable_languages="${LANGUAGES}"
e757a6a8 6182 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8e1fea1a 6183 else
01b4453c 6184 enable_languages=default
8e1fea1a 6185 fi
6186 else
6187 if test x"${enable_languages}" = x ||
6188 test x"${enable_languages}" = xyes;
6189 then
e757a6a8 6190 echo configure.ac: --enable-languages needs at least one language argument 1>&2
8e1fea1a 6191 exit 1
6192 fi
6193 fi
6194 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6195
2c718da0 6196 # 'f95' is the old name for the 'fortran' language. We issue a warning
6197 # and make the substitution.
6198 case ,${enable_languages}, in
6199 *,f95,*)
e757a6a8 6200 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
2c718da0 6201 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6202 ;;
6203 esac
6204
2b15d2ba 6205 # If bootstrapping, C++ must be enabled.
6206 case ",$enable_languages,:$enable_bootstrap" in
6207 *,c++,*:*) ;;
6208 *:yes)
6c59dfa4 6209 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6210 enable_languages="${enable_languages},c++"
6211 else
f00f02a3 6212 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
6c59dfa4 6213 fi
6214 ;;
6215 esac
6216
8e1fea1a 6217 # First scan to see if an enabled language requires some other language.
6218 # We assume that a given config-lang.in will list all the language
6219 # front ends it requires, even if some are required indirectly.
6220 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6221 case ${lang_frag} in
6222 ..) ;;
6223 # The odd quoting in the next line works around
6224 # an apparent bug in bash 1.12 on linux.
6225 ${srcdir}/gcc/[*]/config-lang.in) ;;
6226 *)
101ddbe4 6227 # From the config-lang.in, get $language, $lang_requires, and
6228 # $lang_requires_boot_languages.
8e1fea1a 6229 language=
6230 lang_requires=
101ddbe4 6231 lang_requires_boot_languages=
d6400eba 6232 # set srcdir during sourcing lang_frag to the gcc dir.
6233 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6234 # polutes this shell
6235 saved_srcdir=${srcdir}
6236 srcdir=${srcdir}/gcc . ${lang_frag}
6237 srcdir=${saved_srcdir}
101ddbe4 6238 for other in ${lang_requires} ${lang_requires_boot_languages}; do
8e1fea1a 6239 case ,${enable_languages}, in
6240 *,$other,*) ;;
01b4453c 6241 *,default,*) ;;
8e1fea1a 6242 *,all,*) ;;
6243 *,$language,*)
6244 echo " \`$other' language required by \`$language'; enabling" 1>&2
6245 enable_languages="${enable_languages},${other}"
6246 ;;
6247 esac
6248 done
101ddbe4 6249 for other in ${lang_requires_boot_languages} ; do
6250 if test "$other" != "c"; then
6251 case ,${enable_stage1_languages}, in
6252 *,$other,*) ;;
01b4453c 6253 *,default,*) ;;
101ddbe4 6254 *,all,*) ;;
6255 *)
6256 case ,${enable_languages}, in
6257 *,$language,*)
6258 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6259 enable_stage1_languages="$enable_stage1_languages,${other}"
6260 ;;
6261 esac
6262 ;;
6263 esac
6264 fi
6265 done
8e1fea1a 6266 ;;
6267 esac
6268 done
6269
9c3a0a29 6270 new_enable_languages=,c,
7bfefa9d 6271
6272 # If LTO is enabled, add the LTO front end.
7bfefa9d 6273 if test "$enable_lto" = "yes" ; then
d6ef094a 6274 case ,${enable_languages}, in
6275 *,lto,*) ;;
6276 *) enable_languages="${enable_languages},lto" ;;
6277 esac
ca42e774 6278 if test "${build_lto_plugin}" = "yes" ; then
7bfefa9d 6279 configdirs="$configdirs lto-plugin"
7bfefa9d 6280 fi
6281 fi
6282
dd87c525 6283 # If we're building an offloading compiler, add the LTO front end.
6284 if test x"$enable_as_accelerator_for" != x ; then
6285 case ,${enable_languages}, in
6286 *,lto,*) ;;
6287 *) enable_languages="${enable_languages},lto" ;;
6288 esac
6289 fi
6290
01b4453c 6291 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
9c3a0a29 6292 potential_languages=,c,
8e1fea1a 6293
604a285a 6294 enabled_target_libs=
6295 disabled_target_libs=
6296
8e1fea1a 6297 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6298 case ${lang_frag} in
6299 ..) ;;
6300 # The odd quoting in the next line works around
6301 # an apparent bug in bash 1.12 on linux.
6302 ${srcdir}/gcc/[*]/config-lang.in) ;;
6303 *)
b30fcfae 6304 # From the config-lang.in, get $language, $target_libs,
2d64c2fd 6305 # $lang_dirs, $boot_language, and $build_by_default
8e1fea1a 6306 language=
6307 target_libs=
6308 lang_dirs=
5dee13c2 6309 subdir_requires=
9c3a0a29 6310 boot_language=no
6311 build_by_default=yes
d6400eba 6312 # set srcdir during sourcing. See above about save & restore
6313 saved_srcdir=${srcdir}
6314 srcdir=${srcdir}/gcc . ${lang_frag}
6315 srcdir=${saved_srcdir}
9c3a0a29 6316 if test x${language} = x; then
6317 echo "${lang_frag} doesn't set \$language." 1>&2
6318 exit 1
6319 fi
6320
ef3c41c7 6321 if test "$language" = "c++"; then
2b15d2ba 6322 boot_language=yes
7ab76cec 6323 fi
6324
a2ecd49c 6325 add_this_lang=no
01b4453c 6326 # C is always enabled, so no need to add it again
6327 if test "$language" != "c"; then
6328 case ,${enable_languages}, in
6329 *,${language},*)
6330 # Language was explicitly selected; include it
e53d55e7 6331 add_this_lang=yes
01b4453c 6332 ;;
6333 *,all,*)
6334 # All languages are enabled
6335 add_this_lang=all
6336 ;;
6337 *,default,*)
6338 # 'default' was selected, select it if it is a default language
a2ecd49c 6339 add_this_lang=${build_by_default}
01b4453c 6340 ;;
6341 esac
6342 fi
4ee9c684 6343
5dee13c2 6344 # Disable languages that need other directories if these aren't available.
9333ae0b 6345 for i in $subdir_requires; do
3891e7d9 6346 test -f "$srcdir/gcc/$i/config-lang.in" && continue
01b4453c 6347 case ${add_this_lang} in
6348 yes)
5dee13c2 6349 # Specifically requested language; tell them.
f00f02a3 6350 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
5dee13c2 6351 ;;
01b4453c 6352 all)
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6354$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6355 add_this_lang=unsupported
6356 ;;
5dee13c2 6357 *)
6358 # Silently disable.
9c3a0a29 6359 add_this_lang=unsupported
5dee13c2 6360 ;;
6361 esac
6362 done
6363
9c3a0a29 6364 # Disable Ada if no preexisting GNAT is available.
01b4453c 6365 case ${add_this_lang}:${language}:${have_gnat} in
6366 yes:ada:no)
9c3a0a29 6367 # Specifically requested language; tell them.
f00f02a3 6368 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
9c3a0a29 6369 ;;
01b4453c 6370 all:ada:no)
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6372$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6373 add_this_lang=unsupported
6374 ;;
9c3a0a29 6375 *:ada:no)
6376 # Silently disable.
6377 add_this_lang=unsupported
6378 ;;
6379 esac
6380
01b4453c 6381 # Disable jit if -enable-host-shared not specified
6382 case ${add_this_lang}:${language}:${host_shared} in
6383 yes:jit:no)
6384 # PR jit/64780: explicitly specify --enable-host-shared
f00f02a3 6385 as_fn_error $? "
01b4453c 6386Enabling language \"jit\" requires --enable-host-shared.
6387
6388--enable-host-shared typically slows the rest of the compiler down by
6389a few %, so you must explicitly enable it.
6390
6391If you want to build both the jit and the regular compiler, it is often
6392best to do this via two separate configure/builds, in separate
6393directories, to avoid imposing the performance cost of
6394--enable-host-shared on the regular compiler." "$LINENO" 5
6395 ;;
6396 all:jit:no)
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6398$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6399 add_this_lang=unsupported
6400 ;;
6401 *:jit:no)
6402 # Silently disable.
6403 add_this_lang=unsupported
6404 ;;
6405 esac
6406
6407 # Disable a language that is unsupported by the target.
6408 case "${add_this_lang}: $unsupported_languages " in
6409 no:*) ;;
6410 unsupported:*) ;;
6411 *:*" $language "*)
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6413$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9c3a0a29 6414 add_this_lang=unsupported
ff7dcf6a 6415 ;;
6416 esac
6417
4ee9c684 6418 case $add_this_lang in
9c3a0a29 6419 unsupported)
8e1fea1a 6420 # Remove language-dependent dirs.
604a285a 6421 disabled_target_libs="$disabled_target_libs $target_libs"
6422 noconfigdirs="$noconfigdirs $lang_dirs"
2d64c2fd 6423 ;;
9c3a0a29 6424 no)
6425 # Remove language-dependent dirs; still show language as supported.
604a285a 6426 disabled_target_libs="$disabled_target_libs $target_libs"
6427 noconfigdirs="$noconfigdirs $lang_dirs"
9c3a0a29 6428 potential_languages="${potential_languages}${language},"
6429 ;;
01b4453c 6430 all|yes)
9c3a0a29 6431 new_enable_languages="${new_enable_languages}${language},"
6432 potential_languages="${potential_languages}${language},"
2d64c2fd 6433 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
604a285a 6434 enabled_target_libs="$enabled_target_libs $target_libs"
32027446 6435 case "${boot_language}:,$enable_stage1_languages," in
6436 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
aff6cf7b 6437 # Add to (comma-separated) list of stage 1 languages.
32027446 6438 case ",$stage1_languages," in
6439 *,$language,* | ,yes, | ,all,) ;;
6440 *) stage1_languages="${stage1_languages}${language}," ;;
6441 esac
7ab76cec 6442 # We need to bootstrap any supporting libraries.
6443 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2d64c2fd 6444 ;;
6445 esac
6446 ;;
8e1fea1a 6447 esac
6448 ;;
6449 esac
6450 done
6451
604a285a 6452 # Add target libraries which are only needed for disabled languages
6453 # to noconfigdirs.
6454 if test -n "$disabled_target_libs"; then
6455 for dir in $disabled_target_libs; do
6456 case " $enabled_target_libs " in
6457 *" ${dir} "*) ;;
6458 *) noconfigdirs="$noconfigdirs $dir" ;;
6459 esac
6460 done
6461 fi
6462
cd9a469c 6463 # Check whether --enable-stage1-languages was given.
6464if test "${enable_stage1_languages+set}" = set; then :
6465 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9c3a0a29 6466 ,no,|,,)
6467 # Set it to something that will have no effect in the loop below
6468 enable_stage1_languages=c ;;
6469 ,yes,)
6470 enable_stage1_languages=`echo $new_enable_languages | \
6471 sed -e "s/^,//" -e "s/,$//" ` ;;
6472 *,all,*)
6473 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6474 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6475 esac
6476
6477 # Add "good" languages from enable_stage1_languages to stage1_languages,
6478 # while "bad" languages go in missing_languages. Leave no duplicates.
6479 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6480 case $potential_languages in
6481 *,$i,*)
6482 case $stage1_languages in
6483 *,$i,*) ;;
6484 *) stage1_languages="$stage1_languages$i," ;;
6485 esac ;;
6486 *)
6487 case $missing_languages in
6488 *,$i,*) ;;
6489 *) missing_languages="$missing_languages$i," ;;
6490 esac ;;
6491 esac
6492 done
cd9a469c 6493fi
6494
9c3a0a29 6495
6496 # Remove leading/trailing commas that were added for simplicity
6497 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
989edd2f 6498 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9c3a0a29 6499 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6500 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6501
8e1fea1a 6502 if test "x$missing_languages" != x; then
f00f02a3 6503 as_fn_error $? "
e8bfe1fa 6504The following requested languages could not be built: ${missing_languages}
cd9a469c 6505Supported languages are: ${potential_languages}" "$LINENO" 5
8e1fea1a 6506 fi
8e1fea1a 6507 if test "x$new_enable_languages" != "x$enable_languages"; then
6508 echo The following languages will be built: ${new_enable_languages}
9c3a0a29 6509 enable_languages="$new_enable_languages"
8e1fea1a 6510 fi
9c3a0a29 6511
b30fcfae 6512
b0e9b581 6513 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
8e1fea1a 6514fi
6515
50996fe5 6516# Handle --disable-<component> generically.
6517for dir in $configdirs $build_configdirs $target_configdirs ; do
6518 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
d2d2630b 6519 varname=`echo $dirname | sed -e s/+/_/g`
6520 if eval test x\${enable_${varname}} "=" xno ; then
50996fe5 6521 noconfigdirs="$noconfigdirs $dir"
6522 fi
6523done
6524
03869f98 6525# Check for Boehm's garbage collector
6526# Check whether --enable-objc-gc was given.
6527if test "${enable_objc_gc+set}" = set; then :
baf71228 6528 enableval=$enable_objc_gc;
6529fi
6530
6531
6532# Check whether --with-target-bdw-gc was given.
6533if test "${with_target_bdw_gc+set}" = set; then :
6534 withval=$with_target_bdw_gc;
6535fi
6536
6537
6538# Check whether --with-target-bdw-gc-include was given.
6539if test "${with_target_bdw_gc_include+set}" = set; then :
6540 withval=$with_target_bdw_gc_include;
6541fi
6542
6543
6544# Check whether --with-target-bdw-gc-lib was given.
6545if test "${with_target_bdw_gc_lib+set}" = set; then :
6546 withval=$with_target_bdw_gc_lib;
6547fi
6548
6549
6550case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6552$as_echo_n "checking for bdw garbage collector... " >&6; }
6553 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
74dfdbe3 6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6555$as_echo "using bdw-gc in default locations" >&6; }
baf71228 6556 else
6557 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
f00f02a3 6558 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
baf71228 6559 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
f00f02a3 6560 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
baf71228 6561 else
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6563$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6564 fi
6565 fi
03869f98 6566esac
6567
efa02472 6568# Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
b33ca042 6569case ,${enable_languages}, in
df148e44 6570 *,c++,*)
efa02472 6571 # Disable libitm, libsanitizer if we're not building libstdc++
df148e44 6572 case "${noconfigdirs}" in
6573 *target-libstdc++-v3*)
efa02472 6574 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
df148e44 6575 ;;
6576 *) ;;
6577 esac
6578 ;;
b33ca042 6579 *)
efa02472 6580 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
b33ca042 6581 ;;
6582esac
6583
e8eddfdd 6584# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6585# $build_configdirs and $target_configdirs.
8e1fea1a 6586# If we have the source for $noconfigdirs entries, add them to $notsupp.
6587
6588notsupp=""
6589for dir in . $skipdirs $noconfigdirs ; do
e8eddfdd 6590 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
8e1fea1a 6591 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6592 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6593 if test -r $srcdir/$dirname/configure ; then
6594 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6595 true
6596 else
6597 notsupp="$notsupp $dir"
6598 fi
6599 fi
6600 fi
e8eddfdd 6601 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6602 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6603 if test -r $srcdir/$dirname/configure ; then
6604 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6605 true
6606 else
6607 notsupp="$notsupp $dir"
6608 fi
6609 fi
6610 fi
8e1fea1a 6611 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6612 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6613 if test -r $srcdir/$dirname/configure ; then
6614 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6615 true
6616 else
6617 notsupp="$notsupp $dir"
6618 fi
6619 fi
6620 fi
6621done
6622
8e1fea1a 6623# Quietly strip out all directories which aren't configurable in this tree.
6624# This relies on all configurable subdirectories being autoconfiscated, which
6625# is now the case.
2f8725b0 6626build_configdirs_all="$build_configdirs"
6627build_configdirs=
6628for i in ${build_configdirs_all} ; do
b30fcfae 6629 j=`echo $i | sed -e s/build-//g`
2f8725b0 6630 if test -f ${srcdir}/$j/configure ; then
6631 build_configdirs="${build_configdirs} $i"
6632 fi
6633done
6634
8e1fea1a 6635configdirs_all="$configdirs"
6636configdirs=
6637for i in ${configdirs_all} ; do
6638 if test -f ${srcdir}/$i/configure ; then
6639 configdirs="${configdirs} $i"
6640 fi
6641done
2f8725b0 6642
8e1fea1a 6643target_configdirs_all="$target_configdirs"
6644target_configdirs=
6645for i in ${target_configdirs_all} ; do
b30fcfae 6646 j=`echo $i | sed -e s/target-//g`
8e1fea1a 6647 if test -f ${srcdir}/$j/configure ; then
6648 target_configdirs="${target_configdirs} $i"
6649 fi
6650done
6651
1015a063 6652# libiberty-linker-plugin is special: it doesn't have its own source directory,
6653# so we have to add it after the preceding checks.
6654if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6655then
6656 case " $configdirs " in
6657 *" libiberty "*)
6658 # If we can build libiberty, we can also build libiberty-linker-plugin.
6659 configdirs="$configdirs libiberty-linker-plugin"
6660 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6661 --with-libiberty=../libiberty-linker-plugin";;
6662 *)
f00f02a3 6663 as_fn_error $? "libiberty missing" "$LINENO" 5;;
1015a063 6664 esac
6665fi
6666
944792ef 6667# Sometimes we have special requirements for the host libiberty.
6668extra_host_libiberty_configure_flags=
c850ece7 6669extra_host_zlib_configure_flags=
944792ef 6670case " $configdirs " in
6671 *" lto-plugin "* | *" libcc1 "*)
6672 # When these are to be built as shared libraries, the same applies to
6673 # libiberty.
6674 extra_host_libiberty_configure_flags=--enable-shared
6675 ;;
c850ece7 6676 *" bfd "*)
6677 # When bfd is to be built as a shared library, the same applies to
6678 # zlib.
6679 if test "$enable_shared" = "yes"; then
6680 extra_host_zlib_configure_flags=--enable-host-shared
6681 fi
6682 ;;
944792ef 6683esac
6684
6685
c850ece7 6686
8e1fea1a 6687# Produce a warning message for the subdirs we can't configure.
6688# This isn't especially interesting in the Cygnus tree, but in the individual
6689# FSF releases, it's important to let people know when their machine isn't
6690# supported by the one or two programs in a package.
6691
6692if test -n "${notsupp}" && test -z "${norecursion}" ; then
6693 # If $appdirs is non-empty, at least one of those directories must still
6694 # be configured, or we error out. (E.g., if the gas release supports a
6695 # specified target in some subdirs but not the gas subdir, we shouldn't
6696 # pretend that all is well.)
6697 if test -n "$appdirs" ; then
6698 for dir in $appdirs ; do
6699 if test -r $dir/Makefile.in ; then
6700 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6701 appdirs=""
6702 break
6703 fi
2f8725b0 6704 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
8e1fea1a 6705 appdirs=""
6706 break
6707 fi
6708 fi
6709 done
6710 if test -n "$appdirs" ; then
6711 echo "*** This configuration is not supported by this package." 1>&2
6712 exit 1
6713 fi
6714 fi
6715 # Okay, some application will build, or we don't care to check. Still
6716 # notify of subdirs not getting built.
6717 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6718 echo " ${notsupp}" 1>&2
6719 echo " (Any other directories should still work fine.)" 1>&2
6720fi
6721
6722case "$host" in
6723 *msdosdjgpp*)
6724 enable_gdbtk=no ;;
6725esac
6726
eae5b2bc 6727# To find our prefix, in gcc_cv_tool_prefix.
6728
6729# The user is always right.
6730if test "${PATH_SEPARATOR+set}" != set; then
6731 echo "#! /bin/sh" >conf$$.sh
6732 echo "exit 0" >>conf$$.sh
6733 chmod +x conf$$.sh
6734 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6735 PATH_SEPARATOR=';'
6736 else
6737 PATH_SEPARATOR=:
6738 fi
6739 rm -f conf$$.sh
6740fi
6741
6742
0812bb06 6743 get_gcc_base_ver="cat"
6744
6745# Check whether --with-gcc-major-version-only was given.
6746if test "${with_gcc_major_version_only+set}" = set; then :
6747 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
1e42d5c6 6748 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
0812bb06 6749 fi
6750
6751fi
6752
6753
6754
6755
6756
eae5b2bc 6757
6758if test "x$exec_prefix" = xNONE; then
6759 if test "x$prefix" = xNONE; then
6760 gcc_cv_tool_prefix=$ac_default_prefix
6761 else
6762 gcc_cv_tool_prefix=$prefix
6763 fi
6764else
6765 gcc_cv_tool_prefix=$exec_prefix
6766fi
6767
6768# If there is no compiler in the tree, use the PATH only. In any
6769# case, if there is no compiler in the tree nobody should use
6770# AS_FOR_TARGET and LD_FOR_TARGET.
6771if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
0812bb06 6772 if test x$with_gcc_major_version_only = xyes ; then
6773 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6774 else
6775 gcc_version=`cat $srcdir/gcc/BASE-VER`
6776 fi
eae5b2bc 6777 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6778 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6779 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6780 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6781 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6782 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6783else
6784 gcc_cv_tool_dirs=
6785fi
6786
6787if test x$build = x$target && test -n "$md_exec_prefix"; then
6788 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6789fi
6790
6791
6792
8e1fea1a 6793copy_dirs=
6794
b30fcfae 6795
cd9a469c 6796# Check whether --with-build-sysroot was given.
6797if test "${with_build_sysroot+set}" = set; then :
6798 withval=$with_build_sysroot; if test x"$withval" != x ; then
ffa8502d 6799 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6800 fi
6801else
6802 SYSROOT_CFLAGS_FOR_TARGET=
cd9a469c 6803fi
ffa8502d 6804
6805
5f1f2de5 6806
cd9a469c 6807
6808# Check whether --with-debug-prefix-map was given.
6809if test "${with_debug_prefix_map+set}" = set; then :
6810 withval=$with_debug_prefix_map; if test x"$withval" != x; then
5f1f2de5 6811 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6812 for debug_map in $withval; do
6813 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6814 done
6815 fi
6816else
6817 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
cd9a469c 6818fi
6819
5f1f2de5 6820
6821
c898f165 6822# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6823# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6824# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6825# We want to ensure that TARGET libraries (which we know are built with
6826# gcc) are built with "-O2 -g", so include those options when setting
6827# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6828if test "x$CFLAGS_FOR_TARGET" = x; then
f5fad380 6829 if test "x${is_cross_compiler}" = xyes; then
6830 CFLAGS_FOR_TARGET="-g -O2"
6831 else
6832 CFLAGS_FOR_TARGET=$CFLAGS
6833 case " $CFLAGS " in
6834 *" -O2 "*) ;;
6835 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6836 esac
6837 case " $CFLAGS " in
6838 *" -g "* | *" -g3 "*) ;;
6839 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6840 esac
6841 fi
c898f165 6842fi
6843
6844
6845if test "x$CXXFLAGS_FOR_TARGET" = x; then
f5fad380 6846 if test "x${is_cross_compiler}" = xyes; then
6847 CXXFLAGS_FOR_TARGET="-g -O2"
6848 else
6849 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6850 case " $CXXFLAGS " in
6851 *" -O2 "*) ;;
6852 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6853 esac
6854 case " $CXXFLAGS " in
6855 *" -g "* | *" -g3 "*) ;;
6856 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6857 esac
6858 fi
c898f165 6859fi
6860
6861
ed9516f5 6862
6863
8e1fea1a 6864# Handle --with-headers=XXX. If the value is not "yes", the contents of
6865# the named directory are copied to $(tooldir)/sys-include.
6866if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6867 if test x${is_cross_compiler} = xno ; then
6868 echo 1>&2 '***' --with-headers is only supported when cross compiling
6869 exit 1
6870 fi
6871 if test x"${with_headers}" != xyes ; then
eae5b2bc 6872 x=${gcc_cv_tool_prefix}
b30fcfae 6873 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
8e1fea1a 6874 fi
6875fi
6876
6877# Handle --with-libs=XXX. If the value is not "yes", the contents of
6878# the name directories are copied to $(tooldir)/lib. Multiple directories
6879# are permitted.
6880if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6881 if test x${is_cross_compiler} = xno ; then
6882 echo 1>&2 '***' --with-libs is only supported when cross compiling
6883 exit 1
6884 fi
6885 if test x"${with_libs}" != xyes ; then
6886 # Copy the libraries in reverse order, so that files in the first named
6887 # library override files in subsequent libraries.
eae5b2bc 6888 x=${gcc_cv_tool_prefix}
8e1fea1a 6889 for l in ${with_libs}; do
b30fcfae 6890 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
8e1fea1a 6891 done
6892 fi
6893fi
6894
7bfefa9d 6895# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
c47832b1 6896#
6897# This is done by determining whether or not the appropriate directory
6898# is available, and by checking whether or not specific configurations
6899# have requested that this magic not happen.
b30fcfae 6900#
6901# The command line options always override the explicit settings in
e757a6a8 6902# configure.ac, and the settings in configure.ac override this magic.
c47832b1 6903#
b30fcfae 6904# If the default for a toolchain is to use GNU as and ld, and you don't
c47832b1 6905# want to do that, then you should use the --without-gnu-as and
7bfefa9d 6906# --without-gnu-ld options for the configure script. Similarly, if
6907# the default is to use the included zlib and you don't want to do that,
6908# you should use the --with-system-zlib option for the configure script.
c47832b1 6909
6910if test x${use_gnu_as} = x &&
6911 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6912 with_gnu_as=yes
6913 extra_host_args="$extra_host_args --with-gnu-as"
6914fi
6915
6916if test x${use_gnu_ld} = x &&
3d47fcf5 6917 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
c47832b1 6918 with_gnu_ld=yes
6919 extra_host_args="$extra_host_args --with-gnu-ld"
6920fi
6921
7bfefa9d 6922if test x${use_included_zlib} = x &&
6923 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6924 :
6925else
6926 with_system_zlib=yes
6927 extra_host_args="$extra_host_args --with-system-zlib"
6928fi
6929
c47832b1 6930# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6931# can detect this case.
6932
6933if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6934 with_newlib=yes
6935 extra_host_args="$extra_host_args --with-newlib"
6936fi
6937
8e1fea1a 6938# Handle ${copy_dirs}
6939set fnord ${copy_dirs}
6940shift
6941while test $# != 0 ; do
6942 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6943 :
6944 else
6945 echo Copying $1 to $2
6946
6947 # Use the install script to create the directory and all required
6948 # parent directories.
6949 if test -d $2 ; then
6950 :
6951 else
6952 echo >config.temp
6953 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6954 fi
6955
6956 # Copy the directory, assuming we have tar.
6957 # FIXME: Should we use B in the second tar? Not all systems support it.
6958 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6959
6960 # It is the responsibility of the user to correctly adjust all
6961 # symlinks. If somebody can figure out how to handle them correctly
6962 # here, feel free to add the code.
6963
6964 echo $1 > $2/COPIED
6965 fi
6966 shift; shift
6967done
6968
c47832b1 6969# Determine a target-dependent exec_prefix that the installed
6970# gcc will search in. Keep this list sorted by triplet, with
6971# the *-*-osname triplets last.
6972md_exec_prefix=
6973case "${target}" in
09c2d953 6974 i[34567]86-pc-msdosdjgpp*)
c47832b1 6975 md_exec_prefix=/dev/env/DJDIR/bin
6976 ;;
c47832b1 6977 *-*-hpux* | \
c47832b1 6978 *-*-nto-qnx* | \
93faf308 6979 *-*-solaris2*)
c47832b1 6980 md_exec_prefix=/usr/ccs/bin
6981 ;;
6982esac
6983
71ab34df 6984extra_arflags_for_target=
6985extra_nmflags_for_target=
6986extra_ranlibflags_for_target=
6987target_makefile_frag=/dev/null
6988case "${target}" in
57c7de11 6989 spu-*-*)
6990 target_makefile_frag="config/mt-spu"
6991 ;;
d781ea5c 6992 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
f8520ad7 6993 target_makefile_frag="config/mt-sde"
6994 ;;
3013c2c7 6995 mipsisa*-*-elfoabi*)
6996 target_makefile_frag="config/mt-mips-elfoabi"
6997 ;;
559b0712 6998 mips*-*-*linux* | mips*-*-gnu*)
6999 target_makefile_frag="config/mt-mips-gnu"
7000 ;;
2481a2c1 7001 nios2-*-elf*)
7002 target_makefile_frag="config/mt-nios2-elf"
7003 ;;
a703ac2b 7004 *-*-linux-android*)
7005 target_makefile_frag="config/mt-android"
7006 ;;
3bef4012 7007 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
cb8a7007 7008 target_makefile_frag="config/mt-gnu"
71ab34df 7009 ;;
7010 *-*-aix4.[3456789]* | *-*-aix[56789].*)
b30fcfae 7011 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
71ab34df 7012 # commands to handle both 32-bit and 64-bit objects. These flags are
7013 # harmless if we're using GNU nm or ar.
7014 extra_arflags_for_target=" -X32_64"
7015 extra_nmflags_for_target=" -B -X32_64"
7016 ;;
71ab34df 7017esac
7018
7019alphaieee_frag=/dev/null
7020case $target in
7021 alpha*-*-*)
7022 # This just makes sure to use the -mieee option to build target libs.
7023 # This should probably be set individually by each library.
7024 alphaieee_frag="config/mt-alphaieee"
7025 ;;
7026esac
7027
7028# If --enable-target-optspace always use -Os instead of -O2 to build
7029# the target libraries, similarly if it is not specified, use -Os
7030# on selected platforms.
7031ospace_frag=/dev/null
7032case "${enable_target_optspace}:${target}" in
7033 yes:*)
7034 ospace_frag="config/mt-ospace"
7035 ;;
7036 :d30v-*)
7037 ospace_frag="config/mt-d30v"
7038 ;;
1c26a2ee 7039 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
71ab34df 7040 ospace_frag="config/mt-ospace"
7041 ;;
7042 no:* | :*)
7043 ;;
7044 *)
7045 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7046 ;;
7047esac
7048
71ab34df 7049# Some systems (e.g., one of the i386-aix systems the gas testers are
7050# using) don't handle "\$" correctly, so don't use it here.
b30fcfae 7051tooldir='${exec_prefix}'/${target_noncanonical}
71ab34df 7052build_tooldir=${tooldir}
7053
71ab34df 7054# Create a .gdbinit file which runs the one in srcdir
7055# and tells GDB to look there for source files.
7056
7057if test -r ${srcdir}/.gdbinit ; then
7058 case ${srcdir} in
7059 .) ;;
7060 *) cat > ./.gdbinit <<EOF
7061# ${NO_EDIT}
7062dir ${srcdir}
7063dir .
7064source ${srcdir}/.gdbinit
7065EOF
7066 ;;
7067 esac
7068fi
7069
71ab34df 7070# Make sure that the compiler is able to generate an executable. If it
7071# can't, we are probably in trouble. We don't care whether we can run the
7072# executable--we might be using a cross compiler--we only care whether it
7073# can be created. At this point the main configure script has set CC.
7074we_are_ok=no
7075echo "int main () { return 0; }" > conftest.c
7076${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7077if test $? = 0 ; then
7078 if test -s conftest || test -s conftest.exe ; then
7079 we_are_ok=yes
7080 fi
b30fcfae 7081fi
71ab34df 7082case $we_are_ok in
7083 no)
7084 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7085 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7086 rm -f conftest*
7087 exit 1
7088 ;;
7089esac
7090rm -f conftest*
7091
7d804f04 7092# Decide which environment variable is used to find dynamic libraries.
71ab34df 7093case "${host}" in
7094 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
b2240ff6 7095 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7d804f04 7096 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
71ab34df 7097 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7098esac
7099
7d804f04 7100# On systems where the dynamic library environment variable is PATH,
7101# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7102# built executables to PATH.
7103if test "$RPATH_ENVVAR" = PATH; then
7104 GCC_SHLIB_SUBDIR=/shlib
7105else
7106 GCC_SHLIB_SUBDIR=
7107fi
7108
ee055341 7109# Adjust the toplevel makefile according to whether bootstrap was selected.
7110case $enable_bootstrap in
7111 yes)
7112 bootstrap_suffix=bootstrap
7113 BUILD_CONFIG=bootstrap-debug
7114 ;;
7115 no)
7116 bootstrap_suffix=no-bootstrap
7117 BUILD_CONFIG=
7118 ;;
7119esac
7120
7121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7122$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7123
7124
7125# Check whether --with-build-config was given.
7126if test "${with_build_config+set}" = set; then :
7127 withval=$with_build_config; case $with_build_config in
7128 yes) with_build_config= ;;
7129 no) with_build_config= BUILD_CONFIG= ;;
7130 esac
7131fi
7132
7133
7134if test "x${with_build_config}" != x; then
7135 BUILD_CONFIG=$with_build_config
7136else
7137 case $BUILD_CONFIG in
7138 bootstrap-debug)
7139 if echo "int f (void) { return 0; }" > conftest.c &&
7140 ${CC} -c conftest.c &&
7141 mv conftest.o conftest.o.g0 &&
7142 ${CC} -c -g conftest.c &&
7143 mv conftest.o conftest.o.g &&
7144 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7145 :
7146 else
7147 BUILD_CONFIG=
7148 fi
7149 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7150 ;;
7151 esac
7152fi
7153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7154$as_echo "$BUILD_CONFIG" >&6; }
7155
7156
7157# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7159$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7160# Check whether --enable-vtable-verify was given.
7161if test "${enable_vtable_verify+set}" = set; then :
7162 enableval=$enable_vtable_verify; case "$enableval" in
7163 yes) enable_vtable_verify=yes ;;
7164 no) enable_vtable_verify=no ;;
7165 *) enable_vtable_verify=no;;
7166 esac
7167else
7168 enable_vtable_verify=no
7169fi
7170
7171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7172$as_echo "$enable_vtable_verify" >&6; }
7173
71ab34df 7174# Record target_configdirs and the configure arguments for target and
7175# build configuration in Makefile.
7176target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
2f8725b0 7177build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
f4ae1a00 7178bootstrap_fixincludes=no
71ab34df 7179
5c96a839 7180# If we are building libgomp, bootstrap it.
7181if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7182 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7183fi
7184
ee055341 7185# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7186# or bootstrap-ubsan, bootstrap it.
7187if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7188 case "$BUILD_CONFIG" in
7189 *bootstrap-asan* | *bootstrap-ubsan* )
7190 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
f4ae1a00 7191 bootstrap_fixincludes=yes
ee055341 7192 ;;
7193 esac
579abfee 7194fi
7195
ee055341 7196# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7197if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7198 test "$enable_vtable_verify" != no; then
b710ec85 7199 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7200fi
7201
71ab34df 7202# Determine whether gdb needs tk/tcl or not.
7203# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7204# and in that case we want gdb to be built without tk. Ugh!
7205# In fact I believe gdb is the *only* package directly dependent on tk,
7206# so we should be able to put the 'maybe's in unconditionally and
7207# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7208# 100% sure that that's safe though.
8fdaf281 7209
f843f075 7210gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
71ab34df 7211case "$enable_gdbtk" in
7212 no)
7213 GDB_TK="" ;;
8fdaf281 7214 yes)
7215 GDB_TK="${gdb_tk}" ;;
71ab34df 7216 *)
8fdaf281 7217 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7218 # distro. Eventually someone will fix this and move Insight, nee
7219 # gdbtk to a separate directory.
7220 if test -d ${srcdir}/gdb/gdbtk ; then
7221 GDB_TK="${gdb_tk}"
7222 else
7223 GDB_TK=""
7224 fi
7225 ;;
71ab34df 7226esac
415470be 7227CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7228INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
71ab34df 7229
01b41571 7230# Strip out unwanted targets.
6f4f34a7 7231
7232# While at that, we remove Makefiles if we were started for recursive
7233# configuration, so that the top-level Makefile reconfigures them,
7234# like we used to do when configure itself was recursive.
6f4f34a7 7235
8bb79148 7236# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7237# but now we're fixing up the Makefile ourselves with the additional
7238# commands passed to AC_CONFIG_FILES. Use separate variables
7239# extrasub-{build,host,target} not because there is any reason to split
7240# the substitutions up that way, but only to remain below the limit of
7241# 99 commands in a script, for HP-UX sed.
9488d90e 7242
7243# Do not nest @if/@endif or @unless/@endunless pairs, because
7244# configure will not warn you at all.
6f4f34a7 7245
7b5fee3e 7246case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7247 yes:yes:*\ gold\ *:*,c++,*) ;;
7248 yes:yes:*\ gold\ *:*)
f00f02a3 7249 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7b5fee3e 7250 ;;
7251esac
7252
8bb79148 7253extrasub_build=
2f8725b0 7254for module in ${build_configdirs} ; do
93f93279 7255 if test -z "${no_recursion}" \
7256 && test -f ${build_subdir}/${module}/Makefile; then
7257 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7258 rm -f ${build_subdir}/${module}/Makefile
7259 fi
8bb79148 7260 extrasub_build="$extrasub_build
93f93279 7261/^@if build-$module\$/d
7262/^@endif build-$module\$/d
9488d90e 7263/^@unless build-$module\$/,/^@endunless build-$module\$/d
93f93279 7264/^@if build-$module-$bootstrap_suffix\$/d
9488d90e 7265/^@endif build-$module-$bootstrap_suffix\$/d
7266/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
93f93279 7267done
8bb79148 7268extrasub_host=
93f93279 7269for module in ${configdirs} ; do
9c19a746 7270 if test -z "${no_recursion}"; then
35d84d10 7271 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9c19a746 7272 if test -f ${file}; then
7273 echo 1>&2 "*** removing ${file} to force reconfigure"
7274 rm -f ${file}
7275 fi
7276 done
93f93279 7277 fi
f4ae1a00 7278 case ${module},${bootstrap_fixincludes} in
7279 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7280 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7281 esac
8bb79148 7282 extrasub_host="$extrasub_host
93f93279 7283/^@if $module\$/d
7284/^@endif $module\$/d
9488d90e 7285/^@unless $module\$/,/^@endunless $module\$/d
f4ae1a00 7286/^@if $module-$host_bootstrap_suffix\$/d
9488d90e 7287/^@endif $module-$host_bootstrap_suffix\$/d
7288/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
93f93279 7289done
8bb79148 7290extrasub_target=
93f93279 7291for module in ${target_configdirs} ; do
7292 if test -z "${no_recursion}" \
7293 && test -f ${target_subdir}/${module}/Makefile; then
7294 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7295 rm -f ${target_subdir}/${module}/Makefile
7296 fi
7ab76cec 7297
7298 # We only bootstrap target libraries listed in bootstrap_target_libs.
7299 case $bootstrap_target_libs in
7300 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7301 *) target_bootstrap_suffix=no-bootstrap ;;
7302 esac
7303
8bb79148 7304 extrasub_target="$extrasub_target
93f93279 7305/^@if target-$module\$/d
7306/^@endif target-$module\$/d
9488d90e 7307/^@unless target-$module\$/,/^@endunless target-$module\$/d
7ab76cec 7308/^@if target-$module-$target_bootstrap_suffix\$/d
9488d90e 7309/^@endif target-$module-$target_bootstrap_suffix\$/d
7310/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
93f93279 7311done
7312
8bb79148 7313# Do the final fixup along with target modules.
7314extrasub_target="$extrasub_target
9488d90e 7315/^@if /,/^@endif /d
7316/^@unless /d
7317/^@endunless /d"
71ab34df 7318
7319# Create the serialization dependencies. This uses a temporary file.
7320
cd9a469c 7321# Check whether --enable-serial-configure was given.
7322if test "${enable_serial_configure+set}" = set; then :
7323 enableval=$enable_serial_configure;
7324fi
11d8013a 7325
7326
622c1fa9 7327case ${enable_serial_configure} in
7328 yes)
7329 enable_serial_build_configure=yes
7330 enable_serial_host_configure=yes
7331 enable_serial_target_configure=yes
7332 ;;
7333esac
7334
71ab34df 7335# These force 'configure's to be done one at a time, to avoid problems
7336# with contention over a shared config.cache.
7337rm -f serdep.tmp
11d8013a 7338echo '# serdep.tmp' > serdep.tmp
71ab34df 7339olditem=
622c1fa9 7340test "x${enable_serial_build_configure}" = xyes &&
71ab34df 7341for item in ${build_configdirs} ; do
7342 case ${olditem} in
7343 "") ;;
11d8013a 7344 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
71ab34df 7345 esac
7346 olditem=${item}
7347done
7348olditem=
622c1fa9 7349test "x${enable_serial_host_configure}" = xyes &&
71ab34df 7350for item in ${configdirs} ; do
7351 case ${olditem} in
7352 "") ;;
11d8013a 7353 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
71ab34df 7354 esac
7355 olditem=${item}
7356done
7357olditem=
622c1fa9 7358test "x${enable_serial_target_configure}" = xyes &&
71ab34df 7359for item in ${target_configdirs} ; do
7360 case ${olditem} in
7361 "") ;;
11d8013a 7362 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
71ab34df 7363 esac
7364 olditem=${item}
7365done
7366serialization_dependencies=serdep.tmp
7367
7368
11d8013a 7369# Base args. Strip norecursion, cache-file, srcdir, host, build,
b30fcfae 7370# target, nonopt, and variable assignments. These are the ones we
412c2e81 7371# might not want to pass down to subconfigures. The exception being
7372# --cache-file=/dev/null, which is used to turn off the use of cache
7373# files altogether, and which should be passed on to subconfigures.
7374# Also strip program-prefix, program-suffix, and program-transform-name,
7375# so that we can pass down a consistent program-transform-name.
b30fcfae 7376baseargs=
0e4d1862 7377tbaseargs=
b30fcfae 7378keep_next=no
7379skip_next=no
7380eval "set -- $ac_configure_args"
4ff792a4 7381for ac_arg
7382do
b30fcfae 7383 if test X"$skip_next" = X"yes"; then
7384 skip_next=no
7385 continue
7386 fi
7387 if test X"$keep_next" = X"yes"; then
7388 case $ac_arg in
7389 *\'*)
7390 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7391 esac
7392 baseargs="$baseargs '$ac_arg'"
0e4d1862 7393 tbaseargs="$tbaseargs '$ac_arg'"
b30fcfae 7394 keep_next=no
7395 continue
7396 fi
7397
7398 # Handle separated arguments. Based on the logic generated by
7399 # autoconf 2.59.
7400 case $ac_arg in
7401 *=* | --config-cache | -C | -disable-* | --disable-* \
7402 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7403 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7404 | -with-* | --with-* | -without-* | --without-* | --x)
7405 separate_arg=no
7406 ;;
7407 -*)
7408 separate_arg=yes
7409 ;;
7410 *)
7411 separate_arg=no
7412 ;;
7413 esac
7414
0e4d1862 7415 skip_targ=no
7416 case $ac_arg in
7417
7418 --with-* | --without-*)
7419 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7420
7421 case $libopt in
7422 *[-_]include)
7423 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7424 ;;
7425 *[-_]lib)
7426 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7427 ;;
7428 *)
7429 lib=$libopt
7430 ;;
7431 esac
7432
7433
7434 case $lib in
572cf1f7 7435 mpc | mpfr | gmp | isl)
0e4d1862 7436 # If we're processing --with-$lib, --with-$lib-include or
7437 # --with-$lib-lib, for one of the libs above, and target is
7438 # different from host, don't pass the current argument to any
7439 # target library's configure.
7440 if test x$is_cross_compiler = xyes; then
7441 skip_targ=yes
7442 fi
7443 ;;
7444 esac
7445 ;;
7446 esac
7447
b30fcfae 7448 case "$ac_arg" in
412c2e81 7449 --cache-file=/dev/null | \
7450 -cache-file=/dev/null )
7451 # Handled here to avoid the test to skip args below.
7452 baseargs="$baseargs '$ac_arg'"
0e4d1862 7453 tbaseargs="$tbaseargs '$ac_arg'"
412c2e81 7454 # Assert: $separate_arg should always be no.
7455 keep_next=$separate_arg
7456 ;;
b30fcfae 7457 --no*)
7458 continue
7459 ;;
7460 --c* | \
7461 --sr* | \
7462 --ho* | \
7463 --bu* | \
7464 --t* | \
7465 --program-* | \
7466 -cache_file* | \
7467 -srcdir* | \
7468 -host* | \
7469 -build* | \
7470 -target* | \
7471 -program-prefix* | \
7472 -program-suffix* | \
7473 -program-transform-name* )
7474 skip_next=$separate_arg
7475 continue
7476 ;;
7477 -*)
7478 # An option. Add it.
7479 case $ac_arg in
7480 *\'*)
7481 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7482 esac
7483 baseargs="$baseargs '$ac_arg'"
0e4d1862 7484 if test X"$skip_targ" = Xno; then
7485 tbaseargs="$tbaseargs '$ac_arg'"
7486 fi
b30fcfae 7487 keep_next=$separate_arg
7488 ;;
7489 *)
7490 # Either a variable assignment, or a nonopt (triplet). Don't
7491 # pass it down; let the Makefile handle this.
7492 continue
7493 ;;
7494 esac
7495done
7496# Remove the initial space we just introduced and, as these will be
7497# expanded by make, quote '$'.
7498baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
71ab34df 7499
fbfea1fa 7500# Add in --program-transform-name, after --program-prefix and
7501# --program-suffix have been applied to it. Autoconf has already
7502# doubled dollar signs and backslashes in program_transform_name; we want
7503# the backslashes un-doubled, and then the entire thing wrapped in single
b30fcfae 7504# quotes, because this will be expanded first by make and then by the shell.
fbfea1fa 7505# Also, because we want to override the logic in subdir configure scripts to
7506# choose program_transform_name, replace any s,x,x, with s,y,y,.
7507sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7508${program_transform_name}
7509EOF_SED
7510gcc_transform_name=`cat conftestsed.out`
7511rm -f conftestsed.out
7512baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
0e4d1862 7513tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
af7bb0c0 7514if test "$silent" = yes; then
7515 baseargs="$baseargs --silent"
0e4d1862 7516 tbaseargs="$tbaseargs --silent"
af7bb0c0 7517fi
cd2f3773 7518baseargs="$baseargs --disable-option-checking"
0e4d1862 7519tbaseargs="$tbaseargs --disable-option-checking"
fbfea1fa 7520
372a3f1e 7521# Record and document user additions to sub configure arguments.
7522
7523
7524
7525
71ab34df 7526# For the build-side libraries, we just need to pretend we're native,
7527# and not use the same cache file. Multilibs are neither needed nor
b85b703b 7528# desired. We can't even use the same cache file for all build-side
7529# libraries, as they're compiled differently; some with C, some with
7530# C++ or with different feature-enabling options.
7531build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
71ab34df 7532
7533# For host modules, accept cache file option, or specification as blank.
7534case "${cache_file}" in
7535"") # empty
7536 cache_file_option="" ;;
7537/* | [A-Za-z]:[\\/]* ) # absolute path
7538 cache_file_option="--cache-file=${cache_file}" ;;
7539*) # relative path
7540 cache_file_option="--cache-file=../${cache_file}" ;;
7541esac
7542
ba1081ef 7543# Host dirs don't like to share a cache file either, horribly enough.
7544# This seems to be due to autoconf 2.5x stupidity.
372a3f1e 7545host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
71ab34df 7546
0e4d1862 7547target_configargs="$target_configargs ${tbaseargs}"
71ab34df 7548
7549# Passing a --with-cross-host argument lets the target libraries know
7550# whether they are being built with a cross-compiler or being built
7551# native. However, it would be better to use other mechanisms to make the
7552# sorts of decisions they want to make on this basis. Please consider
7553# this option to be deprecated. FIXME.
7554if test x${is_cross_compiler} = xyes ; then
b30fcfae 7555 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
71ab34df 7556fi
7557
87ebeb4c 7558# Special user-friendly check for native x86_64-linux build, if
7559# multilib is not explicitly enabled.
7560case "$target:$have_compiler:$host:$target:$enable_multilib" in
7561 x86_64-*linux*:yes:$build:$build:)
6efd9d79 7562 # Make sure we have a development environment that handles 32-bit
87ebeb4c 7563 dev64=no
7564 echo "int main () { return 0; }" > conftest.c
7565 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7566 if test $? = 0 ; then
7567 if test -s conftest || test -s conftest.exe ; then
7568 dev64=yes
7569 fi
7570 fi
7571 rm -f conftest*
7572 if test x${dev64} != xyes ; then
f00f02a3 7573 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 7574 fi
7575 ;;
7576esac
7577
59a40389 7578# Default to --enable-multilib.
7579if test x${enable_multilib} = x ; then
71ab34df 7580 target_configargs="--enable-multilib ${target_configargs}"
59a40389 7581fi
71ab34df 7582
7583# Pass --with-newlib if appropriate. Note that target_configdirs has
7584# changed from the earlier setting of with_newlib.
7585if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7586 target_configargs="--with-newlib ${target_configargs}"
7587fi
7588
74fef112 7589# Different target subdirs use different values of certain variables
7590# (notably CXX). Worse, multilibs use *lots* of different values.
7591# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7592# it doesn't automatically accept command-line overrides of them.
7593# This means it's not safe for target subdirs to share a cache file,
7594# which is disgusting, but there you have it. Hopefully this can be
7595# fixed in future. It's still worthwhile to use a cache file for each
7596# directory. I think.
7597
a8abbd9d 7598# Pass the appropriate --build, --host, --target and --cache-file arguments.
7599# We need to pass --target, as newer autoconf's requires consistency
7600# for target_alias and gcc doesn't manage it consistently.
d45318b3 7601target_configargs="--cache-file=./config.cache ${target_configargs}"
71ab34df 7602
71ab34df 7603FLAGS_FOR_TARGET=
7604case " $target_configdirs " in
7605 *" newlib "*)
7606 case " $target_configargs " in
7607 *" --with-newlib "*)
7608 case "$target" in
fe284774 7609 *-cygwin*)
db54564d 7610 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
fe284774 7611 ;;
71ab34df 7612 esac
7613
7614 # If we're not building GCC, don't discard standard headers.
7615 if test -d ${srcdir}/gcc; then
7616 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7617
7618 if test "${build}" != "${host}"; then
7619 # On Canadian crosses, CC_FOR_TARGET will have already been set
7620 # by `configure', so we won't have an opportunity to add -Bgcc/
7621 # to it. This is right: we don't want to search that directory
7622 # for binaries, but we want the header files in there, so add
7623 # them explicitly.
e619f0a6 7624 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
71ab34df 7625
7626 # Someone might think of using the pre-installed headers on
7627 # Canadian crosses, in case the installed compiler is not fully
7628 # compatible with the compiler being built. In this case, it
7629 # would be better to flag an error than risking having
7630 # incompatible object files being constructed. We can't
7631 # guarantee that an error will be flagged, but let's hope the
7632 # compiler will do it, when presented with incompatible header
7633 # files.
7634 fi
7635 fi
7636
7637 case "${target}-${is_cross_compiler}" in
f74ea578 7638 i[3456789]86-*-linux*-no)
71ab34df 7639 # Here host == target, so we don't need to build gcc,
7640 # so we don't want to discard standard headers.
7641 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7642 ;;
7643 *)
7644 # If we're building newlib, use its generic headers last, but search
7645 # for any libc-related directories first (so make it the last -B
7646 # switch).
7647 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
1c5767f1 7648
7649 # If we're building libgloss, find the startup file, simulator library
7650 # and linker script.
7651 case " $target_configdirs " in
7652 *" libgloss "*)
7653 # Look for startup file, simulator library and maybe linker script.
7654 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7655 # Look for libnosys.a in case the target needs it.
7656 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7657 # Most targets have the linker script in the source directory.
7658 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7659 ;;
7660 esac
71ab34df 7661 ;;
7662 esac
7663 ;;
7664 esac
7665 ;;
7666esac
fe284774 7667
d6d689df 7668case "$target" in
fe284774 7669 x86_64-*mingw* | *-w64-mingw*)
7670 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7671 # however, use a symlink named 'mingw' in ${prefix} .
7672 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7673 ;;
7674 *-mingw*)
7675 # MinGW can't be handled as Cygwin above since it does not use newlib.
7676 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'
7677 ;;
d6d689df 7678esac
71ab34df 7679
d8e9ea04 7680# Allow the user to override the flags for
7681# our build compiler if desired.
823e8b8d 7682if test x"${build}" = x"${host}" ; then
7683 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7684 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7685 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7686fi
d8e9ea04 7687
71ab34df 7688# On Canadian crosses, we'll be searching the right directories for
7689# the previously-installed cross compiler, so don't bother to add
7690# flags for directories within the install tree of the compiler
7691# being built; programs in there won't even run.
7692if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7693 # Search for pre-installed headers if nothing else fits.
5750c7d4 7694 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
71ab34df 7695fi
7696
7697if test "x${use_gnu_ld}" = x &&
7698 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7699 # Arrange for us to find uninstalled linker scripts.
c1eb9e31 7700 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
71ab34df 7701fi
7702
24714a39 7703# Search for other target-specific linker scripts and such.
7704case "${target}" in
38d7211b 7705 mep*)
7706 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7707 ;;
24714a39 7708esac
7709
71ab34df 7710# Makefile fragments.
03c65091 7711for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7712do
7713 eval fragval=\$$frag
7714 if test $fragval != /dev/null; then
7715 eval $frag=${srcdir}/$fragval
7716 fi
7717done
71ab34df 7718
7719
7720
7721
7722
7723# Miscellanea: directories, flags, etc.
7724
7725
7726
7727
7728
7729
7730
7d804f04 7731
2f8725b0 7732# Build module lists & subconfigure args.
71ab34df 7733
7734
7735
f5aebe3e 7736# Host module lists & subconfigure args.
7737
7738
7739
1fda3360 7740
f5aebe3e 7741# Target module lists & subconfigure args.
7742
7743
7744
7745# Build tools.
7746
7747
7748
93c5e793 7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
03385ed3 7762
f5aebe3e 7763# Generate default definitions for YACC, M4, LEX and other programs that run
7764# on the build machine. These are used if the Makefile can't locate these
7765# programs in objdir.
7766MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7767
7768for ac_prog in 'bison -y' byacc yacc
7769do
b30fcfae 7770 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7771set dummy $ac_prog; ac_word=$2
cd9a469c 7772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7773$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7774if ${ac_cv_prog_YACC+:} false; then :
cd9a469c 7775 $as_echo_n "(cached) " >&6
f5aebe3e 7776else
7777 if test -n "$YACC"; then
7778 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7779else
b30fcfae 7780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781for as_dir in $PATH
7782do
7783 IFS=$as_save_IFS
7784 test -z "$as_dir" && as_dir=.
cd9a469c 7785 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7787 ac_cv_prog_YACC="$ac_prog"
cd9a469c 7788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7789 break 2
7790 fi
7791done
cd9a469c 7792 done
7793IFS=$as_save_IFS
b30fcfae 7794
f5aebe3e 7795fi
7796fi
b30fcfae 7797YACC=$ac_cv_prog_YACC
f5aebe3e 7798if test -n "$YACC"; then
cd9a469c 7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7800$as_echo "$YACC" >&6; }
f5aebe3e 7801else
cd9a469c 7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803$as_echo "no" >&6; }
f5aebe3e 7804fi
7805
cd9a469c 7806
b30fcfae 7807 test -n "$YACC" && break
f5aebe3e 7808done
7809test -n "$YACC" || YACC="$MISSING bison -y"
7810
7811case " $build_configdirs " in
7812 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
f5aebe3e 7813esac
7814
7815for ac_prog in bison
7816do
b30fcfae 7817 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7818set dummy $ac_prog; ac_word=$2
cd9a469c 7819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7820$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7821if ${ac_cv_prog_BISON+:} false; then :
cd9a469c 7822 $as_echo_n "(cached) " >&6
f5aebe3e 7823else
7824 if test -n "$BISON"; then
7825 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7826else
b30fcfae 7827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828for as_dir in $PATH
7829do
7830 IFS=$as_save_IFS
7831 test -z "$as_dir" && as_dir=.
cd9a469c 7832 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7834 ac_cv_prog_BISON="$ac_prog"
cd9a469c 7835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7836 break 2
7837 fi
7838done
cd9a469c 7839 done
7840IFS=$as_save_IFS
b30fcfae 7841
f5aebe3e 7842fi
7843fi
b30fcfae 7844BISON=$ac_cv_prog_BISON
f5aebe3e 7845if test -n "$BISON"; then
cd9a469c 7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7847$as_echo "$BISON" >&6; }
f5aebe3e 7848else
cd9a469c 7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850$as_echo "no" >&6; }
f5aebe3e 7851fi
7852
cd9a469c 7853
b30fcfae 7854 test -n "$BISON" && break
f5aebe3e 7855done
7856test -n "$BISON" || BISON="$MISSING bison"
7857
7858case " $build_configdirs " in
7859 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7860esac
7861
7862for ac_prog in gm4 gnum4 m4
7863do
b30fcfae 7864 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7865set dummy $ac_prog; ac_word=$2
cd9a469c 7866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7867$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7868if ${ac_cv_prog_M4+:} false; then :
cd9a469c 7869 $as_echo_n "(cached) " >&6
f5aebe3e 7870else
7871 if test -n "$M4"; then
7872 ac_cv_prog_M4="$M4" # Let the user override the test.
7873else
b30fcfae 7874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7875for as_dir in $PATH
7876do
7877 IFS=$as_save_IFS
7878 test -z "$as_dir" && as_dir=.
cd9a469c 7879 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7881 ac_cv_prog_M4="$ac_prog"
cd9a469c 7882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7883 break 2
7884 fi
7885done
cd9a469c 7886 done
7887IFS=$as_save_IFS
b30fcfae 7888
f5aebe3e 7889fi
7890fi
b30fcfae 7891M4=$ac_cv_prog_M4
f5aebe3e 7892if test -n "$M4"; then
cd9a469c 7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7894$as_echo "$M4" >&6; }
f5aebe3e 7895else
cd9a469c 7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7897$as_echo "no" >&6; }
f5aebe3e 7898fi
7899
cd9a469c 7900
b30fcfae 7901 test -n "$M4" && break
f5aebe3e 7902done
7903test -n "$M4" || M4="$MISSING m4"
7904
7905case " $build_configdirs " in
7906 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7907esac
7908
7909for ac_prog in flex lex
7910do
b30fcfae 7911 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7912set dummy $ac_prog; ac_word=$2
cd9a469c 7913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7914$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7915if ${ac_cv_prog_LEX+:} false; then :
cd9a469c 7916 $as_echo_n "(cached) " >&6
f5aebe3e 7917else
7918 if test -n "$LEX"; then
7919 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7920else
b30fcfae 7921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7922for as_dir in $PATH
7923do
7924 IFS=$as_save_IFS
7925 test -z "$as_dir" && as_dir=.
cd9a469c 7926 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7928 ac_cv_prog_LEX="$ac_prog"
cd9a469c 7929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7930 break 2
7931 fi
7932done
cd9a469c 7933 done
7934IFS=$as_save_IFS
b30fcfae 7935
f5aebe3e 7936fi
7937fi
b30fcfae 7938LEX=$ac_cv_prog_LEX
f5aebe3e 7939if test -n "$LEX"; then
cd9a469c 7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7941$as_echo "$LEX" >&6; }
f5aebe3e 7942else
cd9a469c 7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944$as_echo "no" >&6; }
f5aebe3e 7945fi
7946
cd9a469c 7947
b30fcfae 7948 test -n "$LEX" && break
f5aebe3e 7949done
7950test -n "$LEX" || LEX="$MISSING flex"
7951
7952case " $build_configdirs " in
7953 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7954 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7955esac
7956
7957for ac_prog in flex
7958do
b30fcfae 7959 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7960set dummy $ac_prog; ac_word=$2
cd9a469c 7961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7962$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7963if ${ac_cv_prog_FLEX+:} false; then :
cd9a469c 7964 $as_echo_n "(cached) " >&6
f5aebe3e 7965else
7966 if test -n "$FLEX"; then
7967 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7968else
b30fcfae 7969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7970for as_dir in $PATH
7971do
7972 IFS=$as_save_IFS
7973 test -z "$as_dir" && as_dir=.
cd9a469c 7974 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7976 ac_cv_prog_FLEX="$ac_prog"
cd9a469c 7977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7978 break 2
7979 fi
7980done
cd9a469c 7981 done
7982IFS=$as_save_IFS
b30fcfae 7983
f5aebe3e 7984fi
7985fi
b30fcfae 7986FLEX=$ac_cv_prog_FLEX
f5aebe3e 7987if test -n "$FLEX"; then
cd9a469c 7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7989$as_echo "$FLEX" >&6; }
f5aebe3e 7990else
cd9a469c 7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7992$as_echo "no" >&6; }
f5aebe3e 7993fi
7994
cd9a469c 7995
b30fcfae 7996 test -n "$FLEX" && break
f5aebe3e 7997done
7998test -n "$FLEX" || FLEX="$MISSING flex"
7999
8000case " $build_configdirs " in
8001 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8002esac
8003
8004for ac_prog in makeinfo
8005do
b30fcfae 8006 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 8007set dummy $ac_prog; ac_word=$2
cd9a469c 8008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8009$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8010if ${ac_cv_prog_MAKEINFO+:} false; then :
cd9a469c 8011 $as_echo_n "(cached) " >&6
f5aebe3e 8012else
8013 if test -n "$MAKEINFO"; then
8014 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8015else
b30fcfae 8016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8017for as_dir in $PATH
8018do
8019 IFS=$as_save_IFS
8020 test -z "$as_dir" && as_dir=.
cd9a469c 8021 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8023 ac_cv_prog_MAKEINFO="$ac_prog"
cd9a469c 8024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8025 break 2
8026 fi
8027done
cd9a469c 8028 done
8029IFS=$as_save_IFS
b30fcfae 8030
f5aebe3e 8031fi
8032fi
b30fcfae 8033MAKEINFO=$ac_cv_prog_MAKEINFO
f5aebe3e 8034if test -n "$MAKEINFO"; then
cd9a469c 8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8036$as_echo "$MAKEINFO" >&6; }
f5aebe3e 8037else
cd9a469c 8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8039$as_echo "no" >&6; }
f5aebe3e 8040fi
8041
cd9a469c 8042
b30fcfae 8043 test -n "$MAKEINFO" && break
f5aebe3e 8044done
8045test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8046
8047case " $build_configdirs " in
8048 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8049 *)
8050
03caadda 8051 # For an installed makeinfo, we require it to be from texinfo 4.7 or
f5aebe3e 8052 # higher, else we use the "missing" dummy.
8053 if ${MAKEINFO} --version \
03caadda 8054 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
f5aebe3e 8055 :
8056 else
8057 MAKEINFO="$MISSING makeinfo"
8058 fi
8059 ;;
8060
8061esac
71ab34df 8062
f5aebe3e 8063# FIXME: expect and dejagnu may become build tools?
71ab34df 8064
f5aebe3e 8065for ac_prog in expect
8066do
b30fcfae 8067 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 8068set dummy $ac_prog; ac_word=$2
cd9a469c 8069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8070$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8071if ${ac_cv_prog_EXPECT+:} false; then :
cd9a469c 8072 $as_echo_n "(cached) " >&6
f5aebe3e 8073else
8074 if test -n "$EXPECT"; then
8075 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8076else
b30fcfae 8077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078for as_dir in $PATH
8079do
8080 IFS=$as_save_IFS
8081 test -z "$as_dir" && as_dir=.
cd9a469c 8082 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8084 ac_cv_prog_EXPECT="$ac_prog"
cd9a469c 8085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8086 break 2
8087 fi
8088done
cd9a469c 8089 done
8090IFS=$as_save_IFS
b30fcfae 8091
f5aebe3e 8092fi
8093fi
b30fcfae 8094EXPECT=$ac_cv_prog_EXPECT
f5aebe3e 8095if test -n "$EXPECT"; then
cd9a469c 8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8097$as_echo "$EXPECT" >&6; }
f5aebe3e 8098else
cd9a469c 8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100$as_echo "no" >&6; }
f5aebe3e 8101fi
71ab34df 8102
cd9a469c 8103
b30fcfae 8104 test -n "$EXPECT" && break
f5aebe3e 8105done
8106test -n "$EXPECT" || EXPECT="expect"
71ab34df 8107
f5aebe3e 8108case " $configdirs " in
8109 *" expect "*)
8110 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8111 ;;
8112esac
71ab34df 8113
f5aebe3e 8114for ac_prog in runtest
8115do
b30fcfae 8116 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 8117set dummy $ac_prog; ac_word=$2
cd9a469c 8118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8119$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8120if ${ac_cv_prog_RUNTEST+:} false; then :
cd9a469c 8121 $as_echo_n "(cached) " >&6
f5aebe3e 8122else
8123 if test -n "$RUNTEST"; then
8124 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
a4af6a58 8125else
b30fcfae 8126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8127for as_dir in $PATH
8128do
8129 IFS=$as_save_IFS
8130 test -z "$as_dir" && as_dir=.
cd9a469c 8131 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8133 ac_cv_prog_RUNTEST="$ac_prog"
cd9a469c 8134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8135 break 2
8136 fi
8137done
cd9a469c 8138 done
8139IFS=$as_save_IFS
b30fcfae 8140
f5aebe3e 8141fi
8142fi
b30fcfae 8143RUNTEST=$ac_cv_prog_RUNTEST
f5aebe3e 8144if test -n "$RUNTEST"; then
cd9a469c 8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8146$as_echo "$RUNTEST" >&6; }
f5aebe3e 8147else
cd9a469c 8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149$as_echo "no" >&6; }
f5aebe3e 8150fi
71ab34df 8151
cd9a469c 8152
b30fcfae 8153 test -n "$RUNTEST" && break
f5aebe3e 8154done
8155test -n "$RUNTEST" || RUNTEST="runtest"
71ab34df 8156
f5aebe3e 8157case " $configdirs " in
8158 *" dejagnu "*)
8d365775 8159 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
f5aebe3e 8160 ;;
8161esac
71ab34df 8162
8163
71ab34df 8164# Host tools.
bb612911 8165ncn_tool_prefix=
8166test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8167ncn_target_tool_prefix=
8168test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8169
95a05732 8170
8171
8172if test -n "$AR"; then
8173 ac_cv_prog_AR=$AR
8174elif test -n "$ac_cv_prog_AR"; then
8175 AR=$ac_cv_prog_AR
8176fi
8177
8178if test -n "$ac_cv_prog_AR"; then
8179 for ncn_progname in ar; do
8180 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8181set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8183$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8184if ${ac_cv_prog_AR+:} false; then :
cd9a469c 8185 $as_echo_n "(cached) " >&6
95a05732 8186else
8187 if test -n "$AR"; then
8188 ac_cv_prog_AR="$AR" # Let the user override the test.
8189else
8190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8191for as_dir in $PATH
8192do
8193 IFS=$as_save_IFS
8194 test -z "$as_dir" && as_dir=.
cd9a469c 8195 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8197 ac_cv_prog_AR="${ncn_progname}"
cd9a469c 8198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8199 break 2
8200 fi
8201done
cd9a469c 8202 done
8203IFS=$as_save_IFS
95a05732 8204
8205fi
8206fi
8207AR=$ac_cv_prog_AR
8208if test -n "$AR"; then
cd9a469c 8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8210$as_echo "$AR" >&6; }
95a05732 8211else
cd9a469c 8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8213$as_echo "no" >&6; }
95a05732 8214fi
8215
cd9a469c 8216
95a05732 8217 done
8218fi
8219
8220for ncn_progname in ar; do
768691b5 8221 if test -n "$ncn_tool_prefix"; then
8222 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8223set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8225$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8226if ${ac_cv_prog_AR+:} false; then :
cd9a469c 8227 $as_echo_n "(cached) " >&6
bb612911 8228else
8229 if test -n "$AR"; then
8230 ac_cv_prog_AR="$AR" # Let the user override the test.
8231else
b30fcfae 8232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233for as_dir in $PATH
8234do
8235 IFS=$as_save_IFS
8236 test -z "$as_dir" && as_dir=.
cd9a469c 8237 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8239 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8241 break 2
8242 fi
8243done
cd9a469c 8244 done
8245IFS=$as_save_IFS
b30fcfae 8246
bb612911 8247fi
8248fi
b30fcfae 8249AR=$ac_cv_prog_AR
bb612911 8250if test -n "$AR"; then
cd9a469c 8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8252$as_echo "$AR" >&6; }
bb612911 8253else
cd9a469c 8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8255$as_echo "no" >&6; }
bb612911 8256fi
8257
cd9a469c 8258
768691b5 8259 fi
8260 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8261 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8262set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8264$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8265if ${ac_cv_prog_AR+:} false; then :
cd9a469c 8266 $as_echo_n "(cached) " >&6
bb612911 8267else
768691b5 8268 if test -n "$AR"; then
ae48753c 8269 ac_cv_prog_AR="$AR" # Let the user override the test.
8270else
b30fcfae 8271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272for as_dir in $PATH
8273do
8274 IFS=$as_save_IFS
8275 test -z "$as_dir" && as_dir=.
cd9a469c 8276 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8278 ac_cv_prog_AR="${ncn_progname}"
cd9a469c 8279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8280 break 2
8281 fi
8282done
cd9a469c 8283 done
8284IFS=$as_save_IFS
b30fcfae 8285
bb612911 8286fi
8287fi
b30fcfae 8288AR=$ac_cv_prog_AR
768691b5 8289if test -n "$AR"; then
cd9a469c 8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8291$as_echo "$AR" >&6; }
bb612911 8292else
cd9a469c 8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294$as_echo "no" >&6; }
bb612911 8295fi
b30fcfae 8296
cd9a469c 8297
768691b5 8298 fi
8299 test -n "$ac_cv_prog_AR" && break
8300done
8301
8302if test -z "$ac_cv_prog_AR" ; then
8303 set dummy ar
8304 if test $build = $host ; then
8305 AR="$2"
bb612911 8306 else
768691b5 8307 AR="${ncn_tool_prefix}$2"
bb612911 8308 fi
bb612911 8309fi
8310
95a05732 8311
8312
8313if test -n "$AS"; then
8314 ac_cv_prog_AS=$AS
8315elif test -n "$ac_cv_prog_AS"; then
8316 AS=$ac_cv_prog_AS
8317fi
8318
8319if test -n "$ac_cv_prog_AS"; then
8320 for ncn_progname in as; do
8321 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8322set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8324$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8325if ${ac_cv_prog_AS+:} false; then :
cd9a469c 8326 $as_echo_n "(cached) " >&6
95a05732 8327else
8328 if test -n "$AS"; then
8329 ac_cv_prog_AS="$AS" # Let the user override the test.
8330else
8331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8332for as_dir in $PATH
8333do
8334 IFS=$as_save_IFS
8335 test -z "$as_dir" && as_dir=.
cd9a469c 8336 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8338 ac_cv_prog_AS="${ncn_progname}"
cd9a469c 8339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8340 break 2
8341 fi
8342done
cd9a469c 8343 done
8344IFS=$as_save_IFS
95a05732 8345
8346fi
8347fi
8348AS=$ac_cv_prog_AS
8349if test -n "$AS"; then
cd9a469c 8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8351$as_echo "$AS" >&6; }
95a05732 8352else
cd9a469c 8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8354$as_echo "no" >&6; }
95a05732 8355fi
8356
cd9a469c 8357
95a05732 8358 done
8359fi
8360
8361for ncn_progname in as; do
768691b5 8362 if test -n "$ncn_tool_prefix"; then
8363 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8364set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8366$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8367if ${ac_cv_prog_AS+:} false; then :
cd9a469c 8368 $as_echo_n "(cached) " >&6
bb612911 8369else
8370 if test -n "$AS"; then
8371 ac_cv_prog_AS="$AS" # Let the user override the test.
a83ffacf 8372else
b30fcfae 8373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8374for as_dir in $PATH
8375do
8376 IFS=$as_save_IFS
8377 test -z "$as_dir" && as_dir=.
cd9a469c 8378 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8380 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8382 break 2
8383 fi
8384done
cd9a469c 8385 done
8386IFS=$as_save_IFS
b30fcfae 8387
bb612911 8388fi
8389fi
b30fcfae 8390AS=$ac_cv_prog_AS
bb612911 8391if test -n "$AS"; then
cd9a469c 8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8393$as_echo "$AS" >&6; }
bb612911 8394else
cd9a469c 8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8396$as_echo "no" >&6; }
bb612911 8397fi
8398
cd9a469c 8399
768691b5 8400 fi
8401 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8402 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8403set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8405$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8406if ${ac_cv_prog_AS+:} false; then :
cd9a469c 8407 $as_echo_n "(cached) " >&6
bb612911 8408else
768691b5 8409 if test -n "$AS"; then
8410 ac_cv_prog_AS="$AS" # Let the user override the test.
bb612911 8411else
b30fcfae 8412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8413for as_dir in $PATH
8414do
8415 IFS=$as_save_IFS
8416 test -z "$as_dir" && as_dir=.
cd9a469c 8417 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8419 ac_cv_prog_AS="${ncn_progname}"
cd9a469c 8420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8421 break 2
8422 fi
8423done
cd9a469c 8424 done
8425IFS=$as_save_IFS
b30fcfae 8426
bb612911 8427fi
8428fi
b30fcfae 8429AS=$ac_cv_prog_AS
768691b5 8430if test -n "$AS"; then
cd9a469c 8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8432$as_echo "$AS" >&6; }
bb612911 8433else
cd9a469c 8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435$as_echo "no" >&6; }
bb612911 8436fi
b30fcfae 8437
cd9a469c 8438
768691b5 8439 fi
8440 test -n "$ac_cv_prog_AS" && break
8441done
8442
8443if test -z "$ac_cv_prog_AS" ; then
8444 set dummy as
8445 if test $build = $host ; then
8446 AS="$2"
bb612911 8447 else
768691b5 8448 AS="${ncn_tool_prefix}$2"
bb612911 8449 fi
bb612911 8450fi
8451
95a05732 8452
8453
8454if test -n "$DLLTOOL"; then
8455 ac_cv_prog_DLLTOOL=$DLLTOOL
8456elif test -n "$ac_cv_prog_DLLTOOL"; then
8457 DLLTOOL=$ac_cv_prog_DLLTOOL
8458fi
8459
8460if test -n "$ac_cv_prog_DLLTOOL"; then
8461 for ncn_progname in dlltool; do
8462 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8463set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8465$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8466if ${ac_cv_prog_DLLTOOL+:} false; then :
cd9a469c 8467 $as_echo_n "(cached) " >&6
95a05732 8468else
8469 if test -n "$DLLTOOL"; then
8470 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8471else
8472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8473for as_dir in $PATH
8474do
8475 IFS=$as_save_IFS
8476 test -z "$as_dir" && as_dir=.
cd9a469c 8477 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8479 ac_cv_prog_DLLTOOL="${ncn_progname}"
cd9a469c 8480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8481 break 2
8482 fi
8483done
cd9a469c 8484 done
8485IFS=$as_save_IFS
95a05732 8486
8487fi
8488fi
8489DLLTOOL=$ac_cv_prog_DLLTOOL
8490if test -n "$DLLTOOL"; then
cd9a469c 8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8492$as_echo "$DLLTOOL" >&6; }
95a05732 8493else
cd9a469c 8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8495$as_echo "no" >&6; }
95a05732 8496fi
8497
cd9a469c 8498
95a05732 8499 done
8500fi
8501
8502for ncn_progname in dlltool; do
768691b5 8503 if test -n "$ncn_tool_prefix"; then
8504 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8505set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8507$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8508if ${ac_cv_prog_DLLTOOL+:} false; then :
cd9a469c 8509 $as_echo_n "(cached) " >&6
bb612911 8510else
8511 if test -n "$DLLTOOL"; then
8512 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8513else
b30fcfae 8514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8515for as_dir in $PATH
8516do
8517 IFS=$as_save_IFS
8518 test -z "$as_dir" && as_dir=.
cd9a469c 8519 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8521 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8523 break 2
8524 fi
8525done
cd9a469c 8526 done
8527IFS=$as_save_IFS
b30fcfae 8528
bb612911 8529fi
8530fi
b30fcfae 8531DLLTOOL=$ac_cv_prog_DLLTOOL
bb612911 8532if test -n "$DLLTOOL"; then
cd9a469c 8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8534$as_echo "$DLLTOOL" >&6; }
bb612911 8535else
cd9a469c 8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8537$as_echo "no" >&6; }
bb612911 8538fi
8539
cd9a469c 8540
768691b5 8541 fi
8542 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8543 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8544set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8546$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8547if ${ac_cv_prog_DLLTOOL+:} false; then :
cd9a469c 8548 $as_echo_n "(cached) " >&6
bb612911 8549else
768691b5 8550 if test -n "$DLLTOOL"; then
8551 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
bb612911 8552else
b30fcfae 8553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8554for as_dir in $PATH
8555do
8556 IFS=$as_save_IFS
8557 test -z "$as_dir" && as_dir=.
cd9a469c 8558 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8560 ac_cv_prog_DLLTOOL="${ncn_progname}"
cd9a469c 8561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8562 break 2
8563 fi
8564done
cd9a469c 8565 done
8566IFS=$as_save_IFS
b30fcfae 8567
bb612911 8568fi
8569fi
b30fcfae 8570DLLTOOL=$ac_cv_prog_DLLTOOL
768691b5 8571if test -n "$DLLTOOL"; then
cd9a469c 8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8573$as_echo "$DLLTOOL" >&6; }
bb612911 8574else
cd9a469c 8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8576$as_echo "no" >&6; }
bb612911 8577fi
b30fcfae 8578
cd9a469c 8579
768691b5 8580 fi
8581 test -n "$ac_cv_prog_DLLTOOL" && break
8582done
8583
8584if test -z "$ac_cv_prog_DLLTOOL" ; then
8585 set dummy dlltool
8586 if test $build = $host ; then
8587 DLLTOOL="$2"
bb612911 8588 else
768691b5 8589 DLLTOOL="${ncn_tool_prefix}$2"
bb612911 8590 fi
bb612911 8591fi
8592
95a05732 8593
8594
8595if test -n "$LD"; then
8596 ac_cv_prog_LD=$LD
8597elif test -n "$ac_cv_prog_LD"; then
8598 LD=$ac_cv_prog_LD
8599fi
8600
8601if test -n "$ac_cv_prog_LD"; then
8602 for ncn_progname in ld; do
8603 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8604set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8606$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8607if ${ac_cv_prog_LD+:} false; then :
cd9a469c 8608 $as_echo_n "(cached) " >&6
95a05732 8609else
8610 if test -n "$LD"; then
8611 ac_cv_prog_LD="$LD" # Let the user override the test.
8612else
8613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8614for as_dir in $PATH
8615do
8616 IFS=$as_save_IFS
8617 test -z "$as_dir" && as_dir=.
cd9a469c 8618 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8620 ac_cv_prog_LD="${ncn_progname}"
cd9a469c 8621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8622 break 2
8623 fi
8624done
cd9a469c 8625 done
8626IFS=$as_save_IFS
95a05732 8627
8628fi
8629fi
8630LD=$ac_cv_prog_LD
8631if test -n "$LD"; then
cd9a469c 8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8633$as_echo "$LD" >&6; }
95a05732 8634else
cd9a469c 8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8636$as_echo "no" >&6; }
95a05732 8637fi
8638
cd9a469c 8639
95a05732 8640 done
8641fi
8642
8643for ncn_progname in ld; do
768691b5 8644 if test -n "$ncn_tool_prefix"; then
8645 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8646set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8648$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8649if ${ac_cv_prog_LD+:} false; then :
cd9a469c 8650 $as_echo_n "(cached) " >&6
bb612911 8651else
8652 if test -n "$LD"; then
8653 ac_cv_prog_LD="$LD" # Let the user override the test.
8654else
b30fcfae 8655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8656for as_dir in $PATH
8657do
8658 IFS=$as_save_IFS
8659 test -z "$as_dir" && as_dir=.
cd9a469c 8660 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8662 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8664 break 2
8665 fi
8666done
cd9a469c 8667 done
8668IFS=$as_save_IFS
b30fcfae 8669
bb612911 8670fi
8671fi
b30fcfae 8672LD=$ac_cv_prog_LD
bb612911 8673if test -n "$LD"; then
cd9a469c 8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8675$as_echo "$LD" >&6; }
bb612911 8676else
cd9a469c 8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8678$as_echo "no" >&6; }
bb612911 8679fi
8680
cd9a469c 8681
768691b5 8682 fi
8683 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8684 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8685set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8687$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8688if ${ac_cv_prog_LD+:} false; then :
cd9a469c 8689 $as_echo_n "(cached) " >&6
bb612911 8690else
768691b5 8691 if test -n "$LD"; then
8692 ac_cv_prog_LD="$LD" # Let the user override the test.
7172be51 8693else
b30fcfae 8694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8695for as_dir in $PATH
8696do
8697 IFS=$as_save_IFS
8698 test -z "$as_dir" && as_dir=.
cd9a469c 8699 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8701 ac_cv_prog_LD="${ncn_progname}"
cd9a469c 8702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8703 break 2
8704 fi
8705done
cd9a469c 8706 done
8707IFS=$as_save_IFS
b30fcfae 8708
bb612911 8709fi
8710fi
b30fcfae 8711LD=$ac_cv_prog_LD
768691b5 8712if test -n "$LD"; then
cd9a469c 8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8714$as_echo "$LD" >&6; }
bb612911 8715else
cd9a469c 8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8717$as_echo "no" >&6; }
bb612911 8718fi
b30fcfae 8719
cd9a469c 8720
768691b5 8721 fi
8722 test -n "$ac_cv_prog_LD" && break
8723done
8724
8725if test -z "$ac_cv_prog_LD" ; then
8726 set dummy ld
8727 if test $build = $host ; then
8728 LD="$2"
bb612911 8729 else
768691b5 8730 LD="${ncn_tool_prefix}$2"
bb612911 8731 fi
bb612911 8732fi
8733
95a05732 8734
8735
8736if test -n "$LIPO"; then
8737 ac_cv_prog_LIPO=$LIPO
8738elif test -n "$ac_cv_prog_LIPO"; then
8739 LIPO=$ac_cv_prog_LIPO
8740fi
8741
8742if test -n "$ac_cv_prog_LIPO"; then
8743 for ncn_progname in lipo; do
8744 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8745set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8747$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8748if ${ac_cv_prog_LIPO+:} false; then :
cd9a469c 8749 $as_echo_n "(cached) " >&6
95a05732 8750else
8751 if test -n "$LIPO"; then
8752 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8753else
8754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8755for as_dir in $PATH
8756do
8757 IFS=$as_save_IFS
8758 test -z "$as_dir" && as_dir=.
cd9a469c 8759 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8761 ac_cv_prog_LIPO="${ncn_progname}"
cd9a469c 8762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8763 break 2
8764 fi
8765done
cd9a469c 8766 done
8767IFS=$as_save_IFS
95a05732 8768
8769fi
8770fi
8771LIPO=$ac_cv_prog_LIPO
8772if test -n "$LIPO"; then
cd9a469c 8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8774$as_echo "$LIPO" >&6; }
95a05732 8775else
cd9a469c 8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8777$as_echo "no" >&6; }
95a05732 8778fi
8779
cd9a469c 8780
95a05732 8781 done
8782fi
8783
8784for ncn_progname in lipo; do
f5aebe3e 8785 if test -n "$ncn_tool_prefix"; then
8786 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8787set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8789$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8790if ${ac_cv_prog_LIPO+:} false; then :
cd9a469c 8791 $as_echo_n "(cached) " >&6
f5aebe3e 8792else
8793 if test -n "$LIPO"; then
8794 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8795else
b30fcfae 8796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8797for as_dir in $PATH
8798do
8799 IFS=$as_save_IFS
8800 test -z "$as_dir" && as_dir=.
cd9a469c 8801 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8803 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8805 break 2
8806 fi
8807done
cd9a469c 8808 done
8809IFS=$as_save_IFS
b30fcfae 8810
f5aebe3e 8811fi
8812fi
b30fcfae 8813LIPO=$ac_cv_prog_LIPO
f5aebe3e 8814if test -n "$LIPO"; then
cd9a469c 8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8816$as_echo "$LIPO" >&6; }
f5aebe3e 8817else
cd9a469c 8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8819$as_echo "no" >&6; }
f5aebe3e 8820fi
8821
cd9a469c 8822
f5aebe3e 8823 fi
8824 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8825 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8826set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8828$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8829if ${ac_cv_prog_LIPO+:} false; then :
cd9a469c 8830 $as_echo_n "(cached) " >&6
f5aebe3e 8831else
8832 if test -n "$LIPO"; then
8833 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8834else
b30fcfae 8835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8836for as_dir in $PATH
8837do
8838 IFS=$as_save_IFS
8839 test -z "$as_dir" && as_dir=.
cd9a469c 8840 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8842 ac_cv_prog_LIPO="${ncn_progname}"
cd9a469c 8843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8844 break 2
8845 fi
8846done
cd9a469c 8847 done
8848IFS=$as_save_IFS
b30fcfae 8849
f5aebe3e 8850fi
8851fi
b30fcfae 8852LIPO=$ac_cv_prog_LIPO
f5aebe3e 8853if test -n "$LIPO"; then
cd9a469c 8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8855$as_echo "$LIPO" >&6; }
f5aebe3e 8856else
cd9a469c 8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8858$as_echo "no" >&6; }
f5aebe3e 8859fi
b30fcfae 8860
cd9a469c 8861
f5aebe3e 8862 fi
8863 test -n "$ac_cv_prog_LIPO" && break
8864done
8865
8866if test -z "$ac_cv_prog_LIPO" ; then
8867 set dummy lipo
8868 if test $build = $host ; then
8869 LIPO="$2"
8870 else
8871 LIPO="${ncn_tool_prefix}$2"
8872 fi
8873fi
8874
95a05732 8875
8876
8877if test -n "$NM"; then
8878 ac_cv_prog_NM=$NM
8879elif test -n "$ac_cv_prog_NM"; then
8880 NM=$ac_cv_prog_NM
8881fi
8882
8883if test -n "$ac_cv_prog_NM"; then
8884 for ncn_progname in nm; do
8885 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8886set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8888$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8889if ${ac_cv_prog_NM+:} false; then :
cd9a469c 8890 $as_echo_n "(cached) " >&6
bb612911 8891else
8892 if test -n "$NM"; then
8893 ac_cv_prog_NM="$NM" # Let the user override the test.
8894else
b30fcfae 8895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8896for as_dir in $PATH
8897do
8898 IFS=$as_save_IFS
8899 test -z "$as_dir" && as_dir=.
cd9a469c 8900 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8902 ac_cv_prog_NM="${ncn_progname}"
cd9a469c 8903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8904 break 2
8905 fi
8906done
cd9a469c 8907 done
8908IFS=$as_save_IFS
b30fcfae 8909
bb612911 8910fi
8911fi
b30fcfae 8912NM=$ac_cv_prog_NM
bb612911 8913if test -n "$NM"; then
cd9a469c 8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8915$as_echo "$NM" >&6; }
bb612911 8916else
cd9a469c 8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8918$as_echo "no" >&6; }
bb612911 8919fi
8920
cd9a469c 8921
95a05732 8922 done
8923fi
8924
8925for ncn_progname in nm; do
8926 if test -n "$ncn_tool_prefix"; then
8927 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8928set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8930$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8931if ${ac_cv_prog_NM+:} false; then :
cd9a469c 8932 $as_echo_n "(cached) " >&6
bb612911 8933else
768691b5 8934 if test -n "$NM"; then
8935 ac_cv_prog_NM="$NM" # Let the user override the test.
bb612911 8936else
b30fcfae 8937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8938for as_dir in $PATH
8939do
8940 IFS=$as_save_IFS
8941 test -z "$as_dir" && as_dir=.
cd9a469c 8942 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8944 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8946 break 2
8947 fi
8948done
cd9a469c 8949 done
8950IFS=$as_save_IFS
b30fcfae 8951
bb612911 8952fi
8953fi
b30fcfae 8954NM=$ac_cv_prog_NM
768691b5 8955if test -n "$NM"; then
cd9a469c 8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8957$as_echo "$NM" >&6; }
bb612911 8958else
cd9a469c 8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8960$as_echo "no" >&6; }
bb612911 8961fi
b30fcfae 8962
cd9a469c 8963
768691b5 8964 fi
95a05732 8965 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8966 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8967set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8969$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8970if ${ac_cv_prog_NM+:} false; then :
cd9a469c 8971 $as_echo_n "(cached) " >&6
95a05732 8972else
8973 if test -n "$NM"; then
8974 ac_cv_prog_NM="$NM" # Let the user override the test.
8975else
8976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8977for as_dir in $PATH
8978do
8979 IFS=$as_save_IFS
8980 test -z "$as_dir" && as_dir=.
cd9a469c 8981 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8983 ac_cv_prog_NM="${ncn_progname}"
cd9a469c 8984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8985 break 2
8986 fi
8987done
cd9a469c 8988 done
8989IFS=$as_save_IFS
95a05732 8990
8991fi
8992fi
8993NM=$ac_cv_prog_NM
8994if test -n "$NM"; then
cd9a469c 8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8996$as_echo "$NM" >&6; }
95a05732 8997else
cd9a469c 8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8999$as_echo "no" >&6; }
95a05732 9000fi
9001
cd9a469c 9002
95a05732 9003 fi
9004 test -n "$ac_cv_prog_NM" && break
9005done
9006
9007if test -z "$ac_cv_prog_NM" ; then
9008 set dummy nm
9009 if test $build = $host ; then
9010 NM="$2"
9011 else
9012 NM="${ncn_tool_prefix}$2"
9013 fi
9014fi
9015
9016
9017
9018if test -n "$RANLIB"; then
9019 ac_cv_prog_RANLIB=$RANLIB
9020elif test -n "$ac_cv_prog_RANLIB"; then
9021 RANLIB=$ac_cv_prog_RANLIB
9022fi
9023
9024if test -n "$ac_cv_prog_RANLIB"; then
9025 for ncn_progname in ranlib; do
9026 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9027set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9029$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9030if ${ac_cv_prog_RANLIB+:} false; then :
cd9a469c 9031 $as_echo_n "(cached) " >&6
95a05732 9032else
9033 if test -n "$RANLIB"; then
9034 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9035else
9036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9037for as_dir in $PATH
9038do
9039 IFS=$as_save_IFS
9040 test -z "$as_dir" && as_dir=.
cd9a469c 9041 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 9043 ac_cv_prog_RANLIB="${ncn_progname}"
cd9a469c 9044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 9045 break 2
9046 fi
9047done
cd9a469c 9048 done
9049IFS=$as_save_IFS
95a05732 9050
9051fi
9052fi
9053RANLIB=$ac_cv_prog_RANLIB
9054if test -n "$RANLIB"; then
cd9a469c 9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9056$as_echo "$RANLIB" >&6; }
95a05732 9057else
cd9a469c 9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9059$as_echo "no" >&6; }
95a05732 9060fi
9061
cd9a469c 9062
95a05732 9063 done
9064fi
bb612911 9065
95a05732 9066for ncn_progname in ranlib; do
768691b5 9067 if test -n "$ncn_tool_prefix"; then
9068 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9069set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9071$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9072if ${ac_cv_prog_RANLIB+:} false; then :
cd9a469c 9073 $as_echo_n "(cached) " >&6
bb612911 9074else
9075 if test -n "$RANLIB"; then
9076 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9077else
b30fcfae 9078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9079for as_dir in $PATH
9080do
9081 IFS=$as_save_IFS
9082 test -z "$as_dir" && as_dir=.
cd9a469c 9083 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9085 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 9086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9087 break 2
9088 fi
9089done
cd9a469c 9090 done
9091IFS=$as_save_IFS
b30fcfae 9092
bb612911 9093fi
9094fi
b30fcfae 9095RANLIB=$ac_cv_prog_RANLIB
bb612911 9096if test -n "$RANLIB"; then
cd9a469c 9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9098$as_echo "$RANLIB" >&6; }
bb612911 9099else
cd9a469c 9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9101$as_echo "no" >&6; }
bb612911 9102fi
9103
cd9a469c 9104
768691b5 9105 fi
9106 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9107 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9108set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9110$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9111if ${ac_cv_prog_RANLIB+:} false; then :
cd9a469c 9112 $as_echo_n "(cached) " >&6
bb612911 9113else
768691b5 9114 if test -n "$RANLIB"; then
9115 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
bb612911 9116else
b30fcfae 9117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9118for as_dir in $PATH
9119do
9120 IFS=$as_save_IFS
9121 test -z "$as_dir" && as_dir=.
cd9a469c 9122 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9124 ac_cv_prog_RANLIB="${ncn_progname}"
cd9a469c 9125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9126 break 2
9127 fi
9128done
cd9a469c 9129 done
9130IFS=$as_save_IFS
b30fcfae 9131
bb612911 9132fi
9133fi
b30fcfae 9134RANLIB=$ac_cv_prog_RANLIB
768691b5 9135if test -n "$RANLIB"; then
cd9a469c 9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9137$as_echo "$RANLIB" >&6; }
bb612911 9138else
cd9a469c 9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9140$as_echo "no" >&6; }
bb612911 9141fi
b30fcfae 9142
cd9a469c 9143
bb612911 9144 fi
768691b5 9145 test -n "$ac_cv_prog_RANLIB" && break
9146done
9147
9148if test -z "$ac_cv_prog_RANLIB" ; then
68645a6b 9149 RANLIB="true"
bb612911 9150fi
9151
95a05732 9152
9153
9154if test -n "$STRIP"; then
9155 ac_cv_prog_STRIP=$STRIP
9156elif test -n "$ac_cv_prog_STRIP"; then
9157 STRIP=$ac_cv_prog_STRIP
9158fi
9159
9160if test -n "$ac_cv_prog_STRIP"; then
9161 for ncn_progname in strip; do
9162 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9163set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9165$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9166if ${ac_cv_prog_STRIP+:} false; then :
cd9a469c 9167 $as_echo_n "(cached) " >&6
95a05732 9168else
9169 if test -n "$STRIP"; then
9170 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9171else
9172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9173for as_dir in $PATH
9174do
9175 IFS=$as_save_IFS
9176 test -z "$as_dir" && as_dir=.
cd9a469c 9177 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 9179 ac_cv_prog_STRIP="${ncn_progname}"
cd9a469c 9180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 9181 break 2
9182 fi
9183done
cd9a469c 9184 done
9185IFS=$as_save_IFS
95a05732 9186
9187fi
9188fi
9189STRIP=$ac_cv_prog_STRIP
9190if test -n "$STRIP"; then
cd9a469c 9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9192$as_echo "$STRIP" >&6; }
95a05732 9193else
cd9a469c 9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9195$as_echo "no" >&6; }
95a05732 9196fi
9197
cd9a469c 9198
95a05732 9199 done
9200fi
9201
9202for ncn_progname in strip; do
f5aebe3e 9203 if test -n "$ncn_tool_prefix"; then
9204 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9205set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9207$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9208if ${ac_cv_prog_STRIP+:} false; then :
cd9a469c 9209 $as_echo_n "(cached) " >&6
f5aebe3e 9210else
9211 if test -n "$STRIP"; then
9212 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9213else
b30fcfae 9214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9215for as_dir in $PATH
9216do
9217 IFS=$as_save_IFS
9218 test -z "$as_dir" && as_dir=.
cd9a469c 9219 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9221 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 9222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9223 break 2
9224 fi
9225done
cd9a469c 9226 done
9227IFS=$as_save_IFS
b30fcfae 9228
f5aebe3e 9229fi
9230fi
b30fcfae 9231STRIP=$ac_cv_prog_STRIP
f5aebe3e 9232if test -n "$STRIP"; then
cd9a469c 9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9234$as_echo "$STRIP" >&6; }
f5aebe3e 9235else
cd9a469c 9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9237$as_echo "no" >&6; }
f5aebe3e 9238fi
9239
cd9a469c 9240
f5aebe3e 9241 fi
9242 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9243 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9244set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9246$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9247if ${ac_cv_prog_STRIP+:} false; then :
cd9a469c 9248 $as_echo_n "(cached) " >&6
f5aebe3e 9249else
9250 if test -n "$STRIP"; then
9251 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9252else
b30fcfae 9253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9254for as_dir in $PATH
9255do
9256 IFS=$as_save_IFS
9257 test -z "$as_dir" && as_dir=.
cd9a469c 9258 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9260 ac_cv_prog_STRIP="${ncn_progname}"
cd9a469c 9261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9262 break 2
9263 fi
9264done
cd9a469c 9265 done
9266IFS=$as_save_IFS
b30fcfae 9267
f5aebe3e 9268fi
9269fi
b30fcfae 9270STRIP=$ac_cv_prog_STRIP
f5aebe3e 9271if test -n "$STRIP"; then
cd9a469c 9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9273$as_echo "$STRIP" >&6; }
f5aebe3e 9274else
cd9a469c 9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9276$as_echo "no" >&6; }
f5aebe3e 9277fi
b30fcfae 9278
cd9a469c 9279
f5aebe3e 9280 fi
9281 test -n "$ac_cv_prog_STRIP" && break
9282done
9283
9284if test -z "$ac_cv_prog_STRIP" ; then
68645a6b 9285 STRIP="true"
f5aebe3e 9286fi
9287
95a05732 9288
9289
9290if test -n "$WINDRES"; then
9291 ac_cv_prog_WINDRES=$WINDRES
9292elif test -n "$ac_cv_prog_WINDRES"; then
9293 WINDRES=$ac_cv_prog_WINDRES
9294fi
9295
9296if test -n "$ac_cv_prog_WINDRES"; then
9297 for ncn_progname in windres; do
9298 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9299set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9301$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9302if ${ac_cv_prog_WINDRES+:} false; then :
cd9a469c 9303 $as_echo_n "(cached) " >&6
95a05732 9304else
9305 if test -n "$WINDRES"; then
9306 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9307else
9308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9309for as_dir in $PATH
9310do
9311 IFS=$as_save_IFS
9312 test -z "$as_dir" && as_dir=.
cd9a469c 9313 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 9315 ac_cv_prog_WINDRES="${ncn_progname}"
cd9a469c 9316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 9317 break 2
9318 fi
9319done
cd9a469c 9320 done
9321IFS=$as_save_IFS
95a05732 9322
9323fi
9324fi
9325WINDRES=$ac_cv_prog_WINDRES
9326if test -n "$WINDRES"; then
cd9a469c 9327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9328$as_echo "$WINDRES" >&6; }
95a05732 9329else
cd9a469c 9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9331$as_echo "no" >&6; }
95a05732 9332fi
9333
cd9a469c 9334
95a05732 9335 done
9336fi
9337
9338for ncn_progname in windres; do
768691b5 9339 if test -n "$ncn_tool_prefix"; then
9340 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9341set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9343$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9344if ${ac_cv_prog_WINDRES+:} false; then :
cd9a469c 9345 $as_echo_n "(cached) " >&6
bb612911 9346else
9347 if test -n "$WINDRES"; then
9348 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9349else
b30fcfae 9350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9351for as_dir in $PATH
9352do
9353 IFS=$as_save_IFS
9354 test -z "$as_dir" && as_dir=.
cd9a469c 9355 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9357 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 9358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9359 break 2
9360 fi
9361done
cd9a469c 9362 done
9363IFS=$as_save_IFS
b30fcfae 9364
bb612911 9365fi
9366fi
b30fcfae 9367WINDRES=$ac_cv_prog_WINDRES
bb612911 9368if test -n "$WINDRES"; then
cd9a469c 9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9370$as_echo "$WINDRES" >&6; }
bb612911 9371else
cd9a469c 9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9373$as_echo "no" >&6; }
bb612911 9374fi
9375
cd9a469c 9376
768691b5 9377 fi
9378 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9379 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9380set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9382$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9383if ${ac_cv_prog_WINDRES+:} false; then :
cd9a469c 9384 $as_echo_n "(cached) " >&6
bb612911 9385else
768691b5 9386 if test -n "$WINDRES"; then
9387 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
bb612911 9388else
b30fcfae 9389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9390for as_dir in $PATH
9391do
9392 IFS=$as_save_IFS
9393 test -z "$as_dir" && as_dir=.
cd9a469c 9394 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9396 ac_cv_prog_WINDRES="${ncn_progname}"
cd9a469c 9397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9398 break 2
9399 fi
9400done
cd9a469c 9401 done
9402IFS=$as_save_IFS
b30fcfae 9403
bb612911 9404fi
9405fi
b30fcfae 9406WINDRES=$ac_cv_prog_WINDRES
768691b5 9407if test -n "$WINDRES"; then
cd9a469c 9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9409$as_echo "$WINDRES" >&6; }
bb612911 9410else
cd9a469c 9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9412$as_echo "no" >&6; }
bb612911 9413fi
b30fcfae 9414
cd9a469c 9415
768691b5 9416 fi
9417 test -n "$ac_cv_prog_WINDRES" && break
9418done
9419
9420if test -z "$ac_cv_prog_WINDRES" ; then
9421 set dummy windres
9422 if test $build = $host ; then
9423 WINDRES="$2"
bb612911 9424 else
768691b5 9425 WINDRES="${ncn_tool_prefix}$2"
bb612911 9426 fi
bb612911 9427fi
9428
95a05732 9429
9430
75d6a0a9 9431if test -n "$WINDMC"; then
9432 ac_cv_prog_WINDMC=$WINDMC
9433elif test -n "$ac_cv_prog_WINDMC"; then
9434 WINDMC=$ac_cv_prog_WINDMC
9435fi
9436
9437if test -n "$ac_cv_prog_WINDMC"; then
9438 for ncn_progname in windmc; do
9439 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9440set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9442$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9443if ${ac_cv_prog_WINDMC+:} false; then :
cd9a469c 9444 $as_echo_n "(cached) " >&6
75d6a0a9 9445else
9446 if test -n "$WINDMC"; then
9447 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9448else
9449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9450for as_dir in $PATH
9451do
9452 IFS=$as_save_IFS
9453 test -z "$as_dir" && as_dir=.
cd9a469c 9454 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
75d6a0a9 9456 ac_cv_prog_WINDMC="${ncn_progname}"
cd9a469c 9457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 9458 break 2
9459 fi
9460done
cd9a469c 9461 done
9462IFS=$as_save_IFS
75d6a0a9 9463
9464fi
9465fi
9466WINDMC=$ac_cv_prog_WINDMC
9467if test -n "$WINDMC"; then
cd9a469c 9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9469$as_echo "$WINDMC" >&6; }
75d6a0a9 9470else
cd9a469c 9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9472$as_echo "no" >&6; }
75d6a0a9 9473fi
9474
cd9a469c 9475
75d6a0a9 9476 done
9477fi
9478
9479for ncn_progname in windmc; do
9480 if test -n "$ncn_tool_prefix"; then
9481 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9482set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9484$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9485if ${ac_cv_prog_WINDMC+:} false; then :
cd9a469c 9486 $as_echo_n "(cached) " >&6
75d6a0a9 9487else
9488 if test -n "$WINDMC"; then
9489 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9490else
9491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9492for as_dir in $PATH
9493do
9494 IFS=$as_save_IFS
9495 test -z "$as_dir" && as_dir=.
cd9a469c 9496 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
75d6a0a9 9498 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 9499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 9500 break 2
9501 fi
9502done
cd9a469c 9503 done
9504IFS=$as_save_IFS
75d6a0a9 9505
9506fi
9507fi
9508WINDMC=$ac_cv_prog_WINDMC
9509if test -n "$WINDMC"; then
cd9a469c 9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9511$as_echo "$WINDMC" >&6; }
75d6a0a9 9512else
cd9a469c 9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9514$as_echo "no" >&6; }
75d6a0a9 9515fi
9516
cd9a469c 9517
75d6a0a9 9518 fi
9519 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9520 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9521set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9523$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9524if ${ac_cv_prog_WINDMC+:} false; then :
cd9a469c 9525 $as_echo_n "(cached) " >&6
75d6a0a9 9526else
9527 if test -n "$WINDMC"; then
9528 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9529else
9530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9531for as_dir in $PATH
9532do
9533 IFS=$as_save_IFS
9534 test -z "$as_dir" && as_dir=.
cd9a469c 9535 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
75d6a0a9 9537 ac_cv_prog_WINDMC="${ncn_progname}"
cd9a469c 9538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 9539 break 2
9540 fi
9541done
cd9a469c 9542 done
9543IFS=$as_save_IFS
75d6a0a9 9544
9545fi
9546fi
9547WINDMC=$ac_cv_prog_WINDMC
9548if test -n "$WINDMC"; then
cd9a469c 9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9550$as_echo "$WINDMC" >&6; }
75d6a0a9 9551else
cd9a469c 9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9553$as_echo "no" >&6; }
75d6a0a9 9554fi
9555
cd9a469c 9556
75d6a0a9 9557 fi
9558 test -n "$ac_cv_prog_WINDMC" && break
9559done
9560
9561if test -z "$ac_cv_prog_WINDMC" ; then
9562 set dummy windmc
9563 if test $build = $host ; then
9564 WINDMC="$2"
9565 else
9566 WINDMC="${ncn_tool_prefix}$2"
9567 fi
9568fi
9569
9570
9571
95a05732 9572if test -n "$OBJCOPY"; then
9573 ac_cv_prog_OBJCOPY=$OBJCOPY
9574elif test -n "$ac_cv_prog_OBJCOPY"; then
9575 OBJCOPY=$ac_cv_prog_OBJCOPY
9576fi
9577
9578if test -n "$ac_cv_prog_OBJCOPY"; then
9579 for ncn_progname in objcopy; do
9580 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9581set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9583$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9584if ${ac_cv_prog_OBJCOPY+:} false; then :
cd9a469c 9585 $as_echo_n "(cached) " >&6
95a05732 9586else
9587 if test -n "$OBJCOPY"; then
9588 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9589else
9590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9591for as_dir in $PATH
9592do
9593 IFS=$as_save_IFS
9594 test -z "$as_dir" && as_dir=.
cd9a469c 9595 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 9597 ac_cv_prog_OBJCOPY="${ncn_progname}"
cd9a469c 9598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 9599 break 2
9600 fi
9601done
cd9a469c 9602 done
9603IFS=$as_save_IFS
95a05732 9604
9605fi
9606fi
9607OBJCOPY=$ac_cv_prog_OBJCOPY
9608if test -n "$OBJCOPY"; then
cd9a469c 9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9610$as_echo "$OBJCOPY" >&6; }
95a05732 9611else
cd9a469c 9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9613$as_echo "no" >&6; }
95a05732 9614fi
9615
cd9a469c 9616
95a05732 9617 done
9618fi
9619
9620for ncn_progname in objcopy; do
768691b5 9621 if test -n "$ncn_tool_prefix"; then
9622 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9623set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9625$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9626if ${ac_cv_prog_OBJCOPY+:} false; then :
cd9a469c 9627 $as_echo_n "(cached) " >&6
bb612911 9628else
9629 if test -n "$OBJCOPY"; then
9630 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9631else
b30fcfae 9632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9633for as_dir in $PATH
9634do
9635 IFS=$as_save_IFS
9636 test -z "$as_dir" && as_dir=.
cd9a469c 9637 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9639 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 9640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9641 break 2
9642 fi
9643done
cd9a469c 9644 done
9645IFS=$as_save_IFS
b30fcfae 9646
bb612911 9647fi
9648fi
b30fcfae 9649OBJCOPY=$ac_cv_prog_OBJCOPY
bb612911 9650if test -n "$OBJCOPY"; then
cd9a469c 9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9652$as_echo "$OBJCOPY" >&6; }
bb612911 9653else
cd9a469c 9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9655$as_echo "no" >&6; }
bb612911 9656fi
9657
cd9a469c 9658
768691b5 9659 fi
9660 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9661 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9662set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9664$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9665if ${ac_cv_prog_OBJCOPY+:} false; then :
cd9a469c 9666 $as_echo_n "(cached) " >&6
bb612911 9667else
768691b5 9668 if test -n "$OBJCOPY"; then
9669 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
bb612911 9670else
b30fcfae 9671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9672for as_dir in $PATH
9673do
9674 IFS=$as_save_IFS
9675 test -z "$as_dir" && as_dir=.
cd9a469c 9676 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9678 ac_cv_prog_OBJCOPY="${ncn_progname}"
cd9a469c 9679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9680 break 2
9681 fi
9682done
cd9a469c 9683 done
9684IFS=$as_save_IFS
b30fcfae 9685
bb612911 9686fi
9687fi
b30fcfae 9688OBJCOPY=$ac_cv_prog_OBJCOPY
768691b5 9689if test -n "$OBJCOPY"; then
cd9a469c 9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9691$as_echo "$OBJCOPY" >&6; }
bb612911 9692else
cd9a469c 9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9694$as_echo "no" >&6; }
bb612911 9695fi
b30fcfae 9696
cd9a469c 9697
768691b5 9698 fi
9699 test -n "$ac_cv_prog_OBJCOPY" && break
9700done
9701
9702if test -z "$ac_cv_prog_OBJCOPY" ; then
9703 set dummy objcopy
9704 if test $build = $host ; then
9705 OBJCOPY="$2"
bb612911 9706 else
768691b5 9707 OBJCOPY="${ncn_tool_prefix}$2"
bb612911 9708 fi
bb612911 9709fi
9710
95a05732 9711
9712
9713if test -n "$OBJDUMP"; then
9714 ac_cv_prog_OBJDUMP=$OBJDUMP
9715elif test -n "$ac_cv_prog_OBJDUMP"; then
9716 OBJDUMP=$ac_cv_prog_OBJDUMP
9717fi
9718
9719if test -n "$ac_cv_prog_OBJDUMP"; then
9720 for ncn_progname in objdump; do
9721 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9722set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9724$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9725if ${ac_cv_prog_OBJDUMP+:} false; then :
cd9a469c 9726 $as_echo_n "(cached) " >&6
95a05732 9727else
9728 if test -n "$OBJDUMP"; then
9729 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9730else
9731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9732for as_dir in $PATH
9733do
9734 IFS=$as_save_IFS
9735 test -z "$as_dir" && as_dir=.
cd9a469c 9736 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 9738 ac_cv_prog_OBJDUMP="${ncn_progname}"
cd9a469c 9739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 9740 break 2
9741 fi
9742done
cd9a469c 9743 done
9744IFS=$as_save_IFS
95a05732 9745
9746fi
9747fi
9748OBJDUMP=$ac_cv_prog_OBJDUMP
9749if test -n "$OBJDUMP"; then
cd9a469c 9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9751$as_echo "$OBJDUMP" >&6; }
95a05732 9752else
cd9a469c 9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9754$as_echo "no" >&6; }
95a05732 9755fi
9756
cd9a469c 9757
95a05732 9758 done
9759fi
9760
9761for ncn_progname in objdump; do
768691b5 9762 if test -n "$ncn_tool_prefix"; then
9763 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9764set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9766$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9767if ${ac_cv_prog_OBJDUMP+:} false; then :
cd9a469c 9768 $as_echo_n "(cached) " >&6
bb612911 9769else
9770 if test -n "$OBJDUMP"; then
9771 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9772else
b30fcfae 9773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9774for as_dir in $PATH
9775do
9776 IFS=$as_save_IFS
9777 test -z "$as_dir" && as_dir=.
cd9a469c 9778 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9780 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 9781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9782 break 2
9783 fi
9784done
cd9a469c 9785 done
9786IFS=$as_save_IFS
b30fcfae 9787
bb612911 9788fi
9789fi
b30fcfae 9790OBJDUMP=$ac_cv_prog_OBJDUMP
bb612911 9791if test -n "$OBJDUMP"; then
cd9a469c 9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9793$as_echo "$OBJDUMP" >&6; }
bb612911 9794else
cd9a469c 9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9796$as_echo "no" >&6; }
bb612911 9797fi
9798
cd9a469c 9799
768691b5 9800 fi
9801 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9803set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9805$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9806if ${ac_cv_prog_OBJDUMP+:} false; then :
cd9a469c 9807 $as_echo_n "(cached) " >&6
bb612911 9808else
768691b5 9809 if test -n "$OBJDUMP"; then
9810 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
bb612911 9811else
b30fcfae 9812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9813for as_dir in $PATH
9814do
9815 IFS=$as_save_IFS
9816 test -z "$as_dir" && as_dir=.
cd9a469c 9817 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9819 ac_cv_prog_OBJDUMP="${ncn_progname}"
cd9a469c 9820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9821 break 2
9822 fi
9823done
cd9a469c 9824 done
9825IFS=$as_save_IFS
b30fcfae 9826
bb612911 9827fi
9828fi
b30fcfae 9829OBJDUMP=$ac_cv_prog_OBJDUMP
768691b5 9830if test -n "$OBJDUMP"; then
cd9a469c 9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9832$as_echo "$OBJDUMP" >&6; }
bb612911 9833else
cd9a469c 9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9835$as_echo "no" >&6; }
bb612911 9836fi
b30fcfae 9837
cd9a469c 9838
768691b5 9839 fi
9840 test -n "$ac_cv_prog_OBJDUMP" && break
9841done
9842
9843if test -z "$ac_cv_prog_OBJDUMP" ; then
9844 set dummy objdump
9845 if test $build = $host ; then
9846 OBJDUMP="$2"
bb612911 9847 else
768691b5 9848 OBJDUMP="${ncn_tool_prefix}$2"
bb612911 9849 fi
bb612911 9850fi
9851
71ab34df 9852
9853
16706a2e 9854if test -n "$OTOOL"; then
9855 ac_cv_prog_OTOOL=$OTOOL
9856elif test -n "$ac_cv_prog_OTOOL"; then
9857 OTOOL=$ac_cv_prog_OTOOL
9858fi
9859
9860if test -n "$ac_cv_prog_OTOOL"; then
9861 for ncn_progname in otool; do
9862 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9863set dummy ${ncn_progname}; ac_word=$2
9864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9865$as_echo_n "checking for $ac_word... " >&6; }
9866if ${ac_cv_prog_OTOOL+:} false; then :
9867 $as_echo_n "(cached) " >&6
9868else
9869 if test -n "$OTOOL"; then
9870 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9871else
9872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9873for as_dir in $PATH
9874do
9875 IFS=$as_save_IFS
9876 test -z "$as_dir" && as_dir=.
9877 for ac_exec_ext in '' $ac_executable_extensions; do
9878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9879 ac_cv_prog_OTOOL="${ncn_progname}"
9880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9881 break 2
9882 fi
9883done
9884 done
9885IFS=$as_save_IFS
9886
9887fi
9888fi
9889OTOOL=$ac_cv_prog_OTOOL
9890if test -n "$OTOOL"; then
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9892$as_echo "$OTOOL" >&6; }
9893else
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9895$as_echo "no" >&6; }
9896fi
9897
9898
9899 done
9900fi
9901
9902for ncn_progname in otool; do
9903 if test -n "$ncn_tool_prefix"; then
9904 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9905set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9907$as_echo_n "checking for $ac_word... " >&6; }
9908if ${ac_cv_prog_OTOOL+:} false; then :
9909 $as_echo_n "(cached) " >&6
9910else
9911 if test -n "$OTOOL"; then
9912 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9913else
9914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9915for as_dir in $PATH
9916do
9917 IFS=$as_save_IFS
9918 test -z "$as_dir" && as_dir=.
9919 for ac_exec_ext in '' $ac_executable_extensions; do
9920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9921 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
9922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9923 break 2
9924 fi
9925done
9926 done
9927IFS=$as_save_IFS
9928
9929fi
9930fi
9931OTOOL=$ac_cv_prog_OTOOL
9932if test -n "$OTOOL"; then
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9934$as_echo "$OTOOL" >&6; }
9935else
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9937$as_echo "no" >&6; }
9938fi
9939
9940
9941 fi
9942 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
9943 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9944set dummy ${ncn_progname}; ac_word=$2
9945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9946$as_echo_n "checking for $ac_word... " >&6; }
9947if ${ac_cv_prog_OTOOL+:} false; then :
9948 $as_echo_n "(cached) " >&6
9949else
9950 if test -n "$OTOOL"; then
9951 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9952else
9953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9954for as_dir in $PATH
9955do
9956 IFS=$as_save_IFS
9957 test -z "$as_dir" && as_dir=.
9958 for ac_exec_ext in '' $ac_executable_extensions; do
9959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9960 ac_cv_prog_OTOOL="${ncn_progname}"
9961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9962 break 2
9963 fi
9964done
9965 done
9966IFS=$as_save_IFS
9967
9968fi
9969fi
9970OTOOL=$ac_cv_prog_OTOOL
9971if test -n "$OTOOL"; then
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9973$as_echo "$OTOOL" >&6; }
9974else
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9976$as_echo "no" >&6; }
9977fi
9978
9979
9980 fi
9981 test -n "$ac_cv_prog_OTOOL" && break
9982done
9983
9984if test -z "$ac_cv_prog_OTOOL" ; then
9985 set dummy otool
9986 if test $build = $host ; then
9987 OTOOL="$2"
9988 else
9989 OTOOL="${ncn_tool_prefix}$2"
9990 fi
9991fi
9992
9993
9994
3f71364d 9995if test -n "$READELF"; then
9996 ac_cv_prog_READELF=$READELF
9997elif test -n "$ac_cv_prog_READELF"; then
9998 READELF=$ac_cv_prog_READELF
9999fi
10000
10001if test -n "$ac_cv_prog_READELF"; then
10002 for ncn_progname in readelf; do
10003 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10004set dummy ${ncn_progname}; ac_word=$2
10005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10006$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10007if ${ac_cv_prog_READELF+:} false; then :
3f71364d 10008 $as_echo_n "(cached) " >&6
10009else
10010 if test -n "$READELF"; then
10011 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10012else
10013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10014for as_dir in $PATH
10015do
10016 IFS=$as_save_IFS
10017 test -z "$as_dir" && as_dir=.
10018 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3f71364d 10020 ac_cv_prog_READELF="${ncn_progname}"
10021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10022 break 2
10023 fi
10024done
10025 done
10026IFS=$as_save_IFS
10027
10028fi
10029fi
10030READELF=$ac_cv_prog_READELF
10031if test -n "$READELF"; then
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10033$as_echo "$READELF" >&6; }
10034else
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10036$as_echo "no" >&6; }
10037fi
10038
10039
10040 done
10041fi
10042
10043for ncn_progname in readelf; do
10044 if test -n "$ncn_tool_prefix"; then
10045 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10046set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10048$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10049if ${ac_cv_prog_READELF+:} false; then :
3f71364d 10050 $as_echo_n "(cached) " >&6
10051else
10052 if test -n "$READELF"; then
10053 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10054else
10055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10056for as_dir in $PATH
10057do
10058 IFS=$as_save_IFS
10059 test -z "$as_dir" && as_dir=.
10060 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3f71364d 10062 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
10063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10064 break 2
10065 fi
10066done
10067 done
10068IFS=$as_save_IFS
10069
10070fi
10071fi
10072READELF=$ac_cv_prog_READELF
10073if test -n "$READELF"; then
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10075$as_echo "$READELF" >&6; }
10076else
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10078$as_echo "no" >&6; }
10079fi
10080
10081
10082 fi
10083 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
10084 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10085set dummy ${ncn_progname}; ac_word=$2
10086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10087$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10088if ${ac_cv_prog_READELF+:} false; then :
3f71364d 10089 $as_echo_n "(cached) " >&6
10090else
10091 if test -n "$READELF"; then
10092 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10093else
10094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10095for as_dir in $PATH
10096do
10097 IFS=$as_save_IFS
10098 test -z "$as_dir" && as_dir=.
10099 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3f71364d 10101 ac_cv_prog_READELF="${ncn_progname}"
10102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10103 break 2
10104 fi
10105done
10106 done
10107IFS=$as_save_IFS
10108
10109fi
10110fi
10111READELF=$ac_cv_prog_READELF
10112if test -n "$READELF"; then
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10114$as_echo "$READELF" >&6; }
10115else
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10117$as_echo "no" >&6; }
10118fi
10119
10120
10121 fi
10122 test -n "$ac_cv_prog_READELF" && break
10123done
10124
10125if test -z "$ac_cv_prog_READELF" ; then
10126 set dummy readelf
10127 if test $build = $host ; then
10128 READELF="$2"
10129 else
10130 READELF="${ncn_tool_prefix}$2"
10131 fi
10132fi
10133
10134
10135
71ab34df 10136
10137
10138
f5aebe3e 10139# Target tools.
b30fcfae 10140
cd9a469c 10141# Check whether --with-build-time-tools was given.
10142if test "${with_build_time_tools+set}" = set; then :
10143 withval=$with_build_time_tools; case x"$withval" in
c47832b1 10144 x/*) ;;
10145 *)
10146 with_build_time_tools=
cd9a469c 10147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10148$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
c47832b1 10149 ;;
10150 esac
bb612911 10151else
c47832b1 10152 with_build_time_tools=
cd9a469c 10153fi
10154
bb612911 10155
95a05732 10156
10157
10158if test -n "$CC_FOR_TARGET"; then
10159 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10160elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10161 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10162fi
10163
10164if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10165 for ncn_progname in cc gcc; do
10166 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10167set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10169$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10170if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
cd9a469c 10171 $as_echo_n "(cached) " >&6
95a05732 10172else
10173 if test -n "$CC_FOR_TARGET"; then
10174 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10175else
10176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10177for as_dir in $PATH
10178do
10179 IFS=$as_save_IFS
10180 test -z "$as_dir" && as_dir=.
cd9a469c 10181 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 10183 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
cd9a469c 10184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 10185 break 2
10186 fi
10187done
cd9a469c 10188 done
10189IFS=$as_save_IFS
95a05732 10190
10191fi
10192fi
10193CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10194if test -n "$CC_FOR_TARGET"; then
cd9a469c 10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10196$as_echo "$CC_FOR_TARGET" >&6; }
95a05732 10197else
cd9a469c 10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10199$as_echo "no" >&6; }
95a05732 10200fi
10201
cd9a469c 10202
95a05732 10203 done
10204fi
10205
10206if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10207 for ncn_progname in cc gcc; do
cd9a469c 10208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10209$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 10210 if test -x $with_build_time_tools/${ncn_progname}; then
10211 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10213$as_echo "yes" >&6; }
9886f3d1 10214 break
c47832b1 10215 else
cd9a469c 10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10217$as_echo "no" >&6; }
9886f3d1 10218 fi
10219 done
ef8184c7 10220fi
10221
c47832b1 10222if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10223 for ncn_progname in cc gcc; do
10224 if test -n "$ncn_target_tool_prefix"; then
10225 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 10226set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 10227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10228$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10229if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
cd9a469c 10230 $as_echo_n "(cached) " >&6
ef8184c7 10231else
10232 if test -n "$CC_FOR_TARGET"; then
10233 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10234else
b30fcfae 10235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10236for as_dir in $PATH
10237do
10238 IFS=$as_save_IFS
10239 test -z "$as_dir" && as_dir=.
cd9a469c 10240 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10242 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 10243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10244 break 2
10245 fi
10246done
cd9a469c 10247 done
10248IFS=$as_save_IFS
b30fcfae 10249
ef8184c7 10250fi
10251fi
b30fcfae 10252CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
ef8184c7 10253if test -n "$CC_FOR_TARGET"; then
cd9a469c 10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10255$as_echo "$CC_FOR_TARGET" >&6; }
ef8184c7 10256else
cd9a469c 10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10258$as_echo "no" >&6; }
ef8184c7 10259fi
10260
cd9a469c 10261
c47832b1 10262 fi
10263 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10264 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 10265set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10267$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10268if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
cd9a469c 10269 $as_echo_n "(cached) " >&6
ef8184c7 10270else
768691b5 10271 if test -n "$CC_FOR_TARGET"; then
10272 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
ef8184c7 10273else
b30fcfae 10274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10275for as_dir in $PATH
10276do
10277 IFS=$as_save_IFS
10278 test -z "$as_dir" && as_dir=.
cd9a469c 10279 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10281 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
cd9a469c 10282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10283 break 2
10284 fi
10285done
cd9a469c 10286 done
10287IFS=$as_save_IFS
b30fcfae 10288
ef8184c7 10289fi
10290fi
b30fcfae 10291CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
768691b5 10292if test -n "$CC_FOR_TARGET"; then
cd9a469c 10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10294$as_echo "$CC_FOR_TARGET" >&6; }
ef8184c7 10295else
cd9a469c 10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10297$as_echo "no" >&6; }
ef8184c7 10298fi
b30fcfae 10299
cd9a469c 10300
c47832b1 10301 fi
10302 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10303 done
10304fi
b30fcfae 10305
768691b5 10306if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10307 set dummy cc gcc
10308 if test $build = $target ; then
10309 CC_FOR_TARGET="$2"
ef8184c7 10310 else
768691b5 10311 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
ef8184c7 10312 fi
b7ef8464 10313else
10314 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
ef8184c7 10315fi
10316
95a05732 10317
10318
10319if test -n "$CXX_FOR_TARGET"; then
10320 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10321elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10322 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10323fi
10324
10325if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10326 for ncn_progname in c++ g++ cxx gxx; do
10327 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10328set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10330$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10331if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
cd9a469c 10332 $as_echo_n "(cached) " >&6
95a05732 10333else
10334 if test -n "$CXX_FOR_TARGET"; then
10335 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10336else
10337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10338for as_dir in $PATH
10339do
10340 IFS=$as_save_IFS
10341 test -z "$as_dir" && as_dir=.
cd9a469c 10342 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 10344 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
cd9a469c 10345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 10346 break 2
10347 fi
10348done
cd9a469c 10349 done
10350IFS=$as_save_IFS
95a05732 10351
10352fi
10353fi
10354CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10355if test -n "$CXX_FOR_TARGET"; then
cd9a469c 10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10357$as_echo "$CXX_FOR_TARGET" >&6; }
95a05732 10358else
cd9a469c 10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10360$as_echo "no" >&6; }
95a05732 10361fi
10362
cd9a469c 10363
95a05732 10364 done
10365fi
10366
10367if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10368 for ncn_progname in c++ g++ cxx gxx; do
cd9a469c 10369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10370$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 10371 if test -x $with_build_time_tools/${ncn_progname}; then
10372 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10374$as_echo "yes" >&6; }
c47832b1 10375 break
10376 else
cd9a469c 10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10378$as_echo "no" >&6; }
c47832b1 10379 fi
10380 done
10381fi
10382
10383if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10384 for ncn_progname in c++ g++ cxx gxx; do
10385 if test -n "$ncn_target_tool_prefix"; then
10386 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 10387set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 10388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10389$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10390if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
cd9a469c 10391 $as_echo_n "(cached) " >&6
ef8184c7 10392else
10393 if test -n "$CXX_FOR_TARGET"; then
10394 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10395else
b30fcfae 10396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10397for as_dir in $PATH
10398do
10399 IFS=$as_save_IFS
10400 test -z "$as_dir" && as_dir=.
cd9a469c 10401 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10403 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 10404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10405 break 2
10406 fi
10407done
cd9a469c 10408 done
10409IFS=$as_save_IFS
b30fcfae 10410
ef8184c7 10411fi
10412fi
b30fcfae 10413CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
ef8184c7 10414if test -n "$CXX_FOR_TARGET"; then
cd9a469c 10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10416$as_echo "$CXX_FOR_TARGET" >&6; }
ef8184c7 10417else
cd9a469c 10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10419$as_echo "no" >&6; }
ef8184c7 10420fi
10421
cd9a469c 10422
c47832b1 10423 fi
10424 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10425 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 10426set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10428$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10429if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
cd9a469c 10430 $as_echo_n "(cached) " >&6
ef8184c7 10431else
768691b5 10432 if test -n "$CXX_FOR_TARGET"; then
10433 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
ef8184c7 10434else
b30fcfae 10435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10436for as_dir in $PATH
10437do
10438 IFS=$as_save_IFS
10439 test -z "$as_dir" && as_dir=.
cd9a469c 10440 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10442 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
cd9a469c 10443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10444 break 2
10445 fi
10446done
cd9a469c 10447 done
10448IFS=$as_save_IFS
b30fcfae 10449
ef8184c7 10450fi
10451fi
b30fcfae 10452CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
768691b5 10453if test -n "$CXX_FOR_TARGET"; then
cd9a469c 10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10455$as_echo "$CXX_FOR_TARGET" >&6; }
ef8184c7 10456else
cd9a469c 10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10458$as_echo "no" >&6; }
ef8184c7 10459fi
b30fcfae 10460
cd9a469c 10461
c47832b1 10462 fi
10463 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10464 done
10465fi
b30fcfae 10466
768691b5 10467if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10468 set dummy c++ g++ cxx gxx
10469 if test $build = $target ; then
10470 CXX_FOR_TARGET="$2"
ef8184c7 10471 else
768691b5 10472 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
ef8184c7 10473 fi
b7ef8464 10474else
10475 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
bb612911 10476fi
10477
95a05732 10478
10479
10480if test -n "$GCC_FOR_TARGET"; then
10481 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10482elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10483 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10484fi
10485
10486if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10487 for ncn_progname in gcc; do
10488 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10489set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10491$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10492if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
cd9a469c 10493 $as_echo_n "(cached) " >&6
95a05732 10494else
10495 if test -n "$GCC_FOR_TARGET"; then
10496 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10497else
10498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10499for as_dir in $PATH
10500do
10501 IFS=$as_save_IFS
10502 test -z "$as_dir" && as_dir=.
cd9a469c 10503 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 10505 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
cd9a469c 10506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 10507 break 2
10508 fi
10509done
cd9a469c 10510 done
10511IFS=$as_save_IFS
95a05732 10512
10513fi
10514fi
10515GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10516if test -n "$GCC_FOR_TARGET"; then
cd9a469c 10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10518$as_echo "$GCC_FOR_TARGET" >&6; }
95a05732 10519else
cd9a469c 10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10521$as_echo "no" >&6; }
95a05732 10522fi
10523
cd9a469c 10524
95a05732 10525 done
10526fi
10527
10528if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10529 for ncn_progname in gcc; do
cd9a469c 10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10531$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 10532 if test -x $with_build_time_tools/${ncn_progname}; then
10533 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10535$as_echo "yes" >&6; }
c47832b1 10536 break
10537 else
cd9a469c 10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10539$as_echo "no" >&6; }
c47832b1 10540 fi
10541 done
10542fi
10543
10544if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10545 for ncn_progname in gcc; do
10546 if test -n "$ncn_target_tool_prefix"; then
10547 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 10548set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 10549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10550$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10551if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
cd9a469c 10552 $as_echo_n "(cached) " >&6
bb612911 10553else
c47832b1 10554 if test -n "$GCC_FOR_TARGET"; then
10555 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
bb612911 10556else
b30fcfae 10557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10558for as_dir in $PATH
10559do
10560 IFS=$as_save_IFS
10561 test -z "$as_dir" && as_dir=.
cd9a469c 10562 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10564 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 10565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10566 break 2
10567 fi
10568done
cd9a469c 10569 done
10570IFS=$as_save_IFS
b30fcfae 10571
bb612911 10572fi
10573fi
b30fcfae 10574GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
c47832b1 10575if test -n "$GCC_FOR_TARGET"; then
cd9a469c 10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10577$as_echo "$GCC_FOR_TARGET" >&6; }
bb612911 10578else
cd9a469c 10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10580$as_echo "no" >&6; }
bb612911 10581fi
10582
cd9a469c 10583
c47832b1 10584 fi
10585 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10586 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 10587set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10589$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10590if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
cd9a469c 10591 $as_echo_n "(cached) " >&6
bb612911 10592else
c47832b1 10593 if test -n "$GCC_FOR_TARGET"; then
10594 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
bb612911 10595else
b30fcfae 10596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10597for as_dir in $PATH
10598do
10599 IFS=$as_save_IFS
10600 test -z "$as_dir" && as_dir=.
cd9a469c 10601 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10603 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
cd9a469c 10604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10605 break 2
10606 fi
10607done
cd9a469c 10608 done
10609IFS=$as_save_IFS
b30fcfae 10610
bb612911 10611fi
10612fi
b30fcfae 10613GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
c47832b1 10614if test -n "$GCC_FOR_TARGET"; then
cd9a469c 10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10616$as_echo "$GCC_FOR_TARGET" >&6; }
bb612911 10617else
cd9a469c 10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10619$as_echo "no" >&6; }
bb612911 10620fi
b30fcfae 10621
cd9a469c 10622
c47832b1 10623 fi
10624 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10625 done
10626fi
b30fcfae 10627
c47832b1 10628if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10629 GCC_FOR_TARGET="${CC_FOR_TARGET}"
b7ef8464 10630else
10631 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
c47832b1 10632fi
10633
95a05732 10634
10635
95a05732 10636if test -n "$GFORTRAN_FOR_TARGET"; then
10637 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10638elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10639 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
c47832b1 10640fi
10641
95a05732 10642if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10643 for ncn_progname in gfortran; do
10644 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
c47832b1 10645set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10647$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10648if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
cd9a469c 10649 $as_echo_n "(cached) " >&6
c47832b1 10650else
95a05732 10651 if test -n "$GFORTRAN_FOR_TARGET"; then
10652 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
c47832b1 10653else
b30fcfae 10654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10655for as_dir in $PATH
10656do
10657 IFS=$as_save_IFS
10658 test -z "$as_dir" && as_dir=.
cd9a469c 10659 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 10661 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
cd9a469c 10662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10663 break 2
10664 fi
10665done
cd9a469c 10666 done
10667IFS=$as_save_IFS
b30fcfae 10668
c47832b1 10669fi
10670fi
95a05732 10671GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10672if test -n "$GFORTRAN_FOR_TARGET"; then
cd9a469c 10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10674$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
c47832b1 10675else
cd9a469c 10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10677$as_echo "no" >&6; }
c47832b1 10678fi
b30fcfae 10679
cd9a469c 10680
c47832b1 10681 done
10682fi
b30fcfae 10683
95a05732 10684if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10685 for ncn_progname in gfortran; do
cd9a469c 10686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10687$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 10688 if test -x $with_build_time_tools/${ncn_progname}; then
10689 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10691$as_echo "yes" >&6; }
c47832b1 10692 break
10693 else
cd9a469c 10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10695$as_echo "no" >&6; }
c47832b1 10696 fi
10697 done
10698fi
10699
10700if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10701 for ncn_progname in gfortran; do
10702 if test -n "$ncn_target_tool_prefix"; then
10703 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10704set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 10705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10706$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10707if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
cd9a469c 10708 $as_echo_n "(cached) " >&6
c47832b1 10709else
10710 if test -n "$GFORTRAN_FOR_TARGET"; then
b30fcfae 10711 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10712else
10713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10714for as_dir in $PATH
10715do
10716 IFS=$as_save_IFS
10717 test -z "$as_dir" && as_dir=.
cd9a469c 10718 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10720 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 10721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10722 break 2
10723 fi
10724done
cd9a469c 10725 done
10726IFS=$as_save_IFS
b30fcfae 10727
c47832b1 10728fi
10729fi
b30fcfae 10730GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
c47832b1 10731if test -n "$GFORTRAN_FOR_TARGET"; then
cd9a469c 10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10733$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
c47832b1 10734else
cd9a469c 10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10736$as_echo "no" >&6; }
c47832b1 10737fi
10738
cd9a469c 10739
c47832b1 10740 fi
10741 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10742 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10743set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10745$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10746if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
cd9a469c 10747 $as_echo_n "(cached) " >&6
c47832b1 10748else
10749 if test -n "$GFORTRAN_FOR_TARGET"; then
10750 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10751else
b30fcfae 10752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10753for as_dir in $PATH
10754do
10755 IFS=$as_save_IFS
10756 test -z "$as_dir" && as_dir=.
cd9a469c 10757 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10759 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
cd9a469c 10760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10761 break 2
10762 fi
10763done
cd9a469c 10764 done
10765IFS=$as_save_IFS
b30fcfae 10766
c47832b1 10767fi
10768fi
b30fcfae 10769GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
c47832b1 10770if test -n "$GFORTRAN_FOR_TARGET"; then
cd9a469c 10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10772$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
c47832b1 10773else
cd9a469c 10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10775$as_echo "no" >&6; }
c47832b1 10776fi
b30fcfae 10777
cd9a469c 10778
c47832b1 10779 fi
10780 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10781 done
10782fi
b30fcfae 10783
c47832b1 10784if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10785 set dummy gfortran
768691b5 10786 if test $build = $target ; then
c47832b1 10787 GFORTRAN_FOR_TARGET="$2"
bb612911 10788 else
c47832b1 10789 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10790 fi
b7ef8464 10791else
10792 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
c47832b1 10793fi
10794
10795
10796
5ff5b630 10797if test -n "$GOC_FOR_TARGET"; then
10798 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10799elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10800 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10801fi
10802
10803if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10804 for ncn_progname in gccgo; do
10805 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10806set dummy ${ncn_progname}; ac_word=$2
10807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10808$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10809if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
5ff5b630 10810 $as_echo_n "(cached) " >&6
10811else
10812 if test -n "$GOC_FOR_TARGET"; then
10813 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10814else
10815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10816for as_dir in $PATH
10817do
10818 IFS=$as_save_IFS
10819 test -z "$as_dir" && as_dir=.
10820 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5ff5b630 10822 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10824 break 2
10825 fi
10826done
10827 done
10828IFS=$as_save_IFS
10829
10830fi
10831fi
10832GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10833if test -n "$GOC_FOR_TARGET"; then
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10835$as_echo "$GOC_FOR_TARGET" >&6; }
10836else
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10838$as_echo "no" >&6; }
10839fi
10840
10841
10842 done
10843fi
10844
10845if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10846 for ncn_progname in gccgo; do
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10848$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10849 if test -x $with_build_time_tools/${ncn_progname}; then
10850 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10852$as_echo "yes" >&6; }
10853 break
10854 else
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10856$as_echo "no" >&6; }
10857 fi
10858 done
10859fi
10860
10861if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10862 for ncn_progname in gccgo; do
10863 if test -n "$ncn_target_tool_prefix"; then
10864 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10865set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10867$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10868if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
5ff5b630 10869 $as_echo_n "(cached) " >&6
10870else
10871 if test -n "$GOC_FOR_TARGET"; then
10872 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10873else
10874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10875for as_dir in $PATH
10876do
10877 IFS=$as_save_IFS
10878 test -z "$as_dir" && as_dir=.
10879 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5ff5b630 10881 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10883 break 2
10884 fi
10885done
10886 done
10887IFS=$as_save_IFS
10888
10889fi
10890fi
10891GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10892if test -n "$GOC_FOR_TARGET"; then
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10894$as_echo "$GOC_FOR_TARGET" >&6; }
10895else
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10897$as_echo "no" >&6; }
10898fi
10899
10900
10901 fi
10902 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10903 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10904set dummy ${ncn_progname}; ac_word=$2
10905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10906$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10907if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
5ff5b630 10908 $as_echo_n "(cached) " >&6
10909else
10910 if test -n "$GOC_FOR_TARGET"; then
10911 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10912else
10913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10914for as_dir in $PATH
10915do
10916 IFS=$as_save_IFS
10917 test -z "$as_dir" && as_dir=.
10918 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5ff5b630 10920 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10922 break 2
10923 fi
10924done
10925 done
10926IFS=$as_save_IFS
10927
10928fi
10929fi
10930GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10931if test -n "$GOC_FOR_TARGET"; then
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10933$as_echo "$GOC_FOR_TARGET" >&6; }
10934else
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10936$as_echo "no" >&6; }
10937fi
10938
10939
10940 fi
10941 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10942 done
10943fi
10944
10945if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10946 set dummy gccgo
10947 if test $build = $target ; then
10948 GOC_FOR_TARGET="$2"
10949 else
10950 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10951 fi
10952else
10953 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10954fi
10955
10956
10957
03385ed3 10958if test -n "$GDC_FOR_TARGET"; then
10959 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
10960elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
10961 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
10962fi
10963
10964if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
10965 for ncn_progname in gdc; do
10966 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10967set dummy ${ncn_progname}; ac_word=$2
10968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10969$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10970if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
03385ed3 10971 $as_echo_n "(cached) " >&6
10972else
10973 if test -n "$GDC_FOR_TARGET"; then
10974 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
10975else
10976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10977for as_dir in $PATH
10978do
10979 IFS=$as_save_IFS
10980 test -z "$as_dir" && as_dir=.
10981 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 10983 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
10984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10985 break 2
10986 fi
10987done
10988 done
10989IFS=$as_save_IFS
10990
10991fi
10992fi
10993GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
10994if test -n "$GDC_FOR_TARGET"; then
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
10996$as_echo "$GDC_FOR_TARGET" >&6; }
10997else
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10999$as_echo "no" >&6; }
11000fi
11001
11002
11003 done
11004fi
11005
11006if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11007 for ncn_progname in gdc; do
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11009$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11010 if test -x $with_build_time_tools/${ncn_progname}; then
11011 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11013$as_echo "yes" >&6; }
11014 break
11015 else
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11017$as_echo "no" >&6; }
11018 fi
11019 done
11020fi
11021
11022if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
11023 for ncn_progname in gdc; do
11024 if test -n "$ncn_target_tool_prefix"; then
11025 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11026set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11028$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11029if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
03385ed3 11030 $as_echo_n "(cached) " >&6
11031else
11032 if test -n "$GDC_FOR_TARGET"; then
11033 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
11034else
11035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11036for as_dir in $PATH
11037do
11038 IFS=$as_save_IFS
11039 test -z "$as_dir" && as_dir=.
11040 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 11042 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11044 break 2
11045 fi
11046done
11047 done
11048IFS=$as_save_IFS
11049
11050fi
11051fi
11052GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11053if test -n "$GDC_FOR_TARGET"; then
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
11055$as_echo "$GDC_FOR_TARGET" >&6; }
11056else
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11058$as_echo "no" >&6; }
11059fi
11060
11061
11062 fi
11063 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
11064 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11065set dummy ${ncn_progname}; ac_word=$2
11066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11067$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11068if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
03385ed3 11069 $as_echo_n "(cached) " >&6
11070else
11071 if test -n "$GDC_FOR_TARGET"; then
11072 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
11073else
11074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11075for as_dir in $PATH
11076do
11077 IFS=$as_save_IFS
11078 test -z "$as_dir" && as_dir=.
11079 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 11081 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
11082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11083 break 2
11084 fi
11085done
11086 done
11087IFS=$as_save_IFS
11088
11089fi
11090fi
11091GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11092if test -n "$GDC_FOR_TARGET"; then
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
11094$as_echo "$GDC_FOR_TARGET" >&6; }
11095else
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11097$as_echo "no" >&6; }
11098fi
11099
11100
11101 fi
11102 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
11103 done
11104fi
11105
11106if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
11107 set dummy gdc
11108 if test $build = $target ; then
11109 GDC_FOR_TARGET="$2"
11110 else
11111 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11112 fi
11113else
11114 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
11115fi
11116
11117
11118
c47832b1 11119cat > conftest.c << \EOF
11120#ifdef __GNUC__
11121 gcc_yay;
11122#endif
11123EOF
11124if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11125 have_gcc_for_target=yes
11126else
11127 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11128 have_gcc_for_target=no
11129fi
11130rm conftest.c
11131
11132
11133
11134
11135if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11136 if test -n "$with_build_time_tools"; then
cd9a469c 11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11138$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
ab0da556 11139 if test -x $with_build_time_tools/ar; then
11140 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11141 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
cd9a469c 11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11143$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
ab0da556 11144 else
cd9a469c 11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11146$as_echo "no" >&6; }
ab0da556 11147 fi
c47832b1 11148 elif test $build != $host && test $have_gcc_for_target = yes; then
11149 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
b7ef8464 11150 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11151 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c47832b1 11152 fi
11153fi
38d7211b 11154if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 11155 # Extract the first word of "ar", so it can be a program name with args.
11156set dummy ar; ac_word=$2
cd9a469c 11157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11158$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11159if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
cd9a469c 11160 $as_echo_n "(cached) " >&6
c47832b1 11161else
b30fcfae 11162 case $AR_FOR_TARGET in
11163 [\\/]* | ?:[\\/]*)
c47832b1 11164 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11165 ;;
c47832b1 11166 *)
b30fcfae 11167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11168for as_dir in $gcc_cv_tool_dirs
11169do
11170 IFS=$as_save_IFS
11171 test -z "$as_dir" && as_dir=.
cd9a469c 11172 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11174 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 11175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11176 break 2
11177 fi
11178done
cd9a469c 11179 done
11180IFS=$as_save_IFS
b30fcfae 11181
c47832b1 11182 ;;
11183esac
11184fi
b30fcfae 11185AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
c47832b1 11186if test -n "$AR_FOR_TARGET"; then
cd9a469c 11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11188$as_echo "$AR_FOR_TARGET" >&6; }
c47832b1 11189else
cd9a469c 11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11191$as_echo "no" >&6; }
ef8184c7 11192fi
11193
cd9a469c 11194
c47832b1 11195fi
11196if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
95a05732 11197
11198
11199if test -n "$AR_FOR_TARGET"; then
11200 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11201elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11202 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11203fi
11204
11205if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11206 for ncn_progname in ar; do
11207 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11208set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11210$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11211if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
cd9a469c 11212 $as_echo_n "(cached) " >&6
95a05732 11213else
11214 if test -n "$AR_FOR_TARGET"; then
11215 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11216else
11217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11218for as_dir in $PATH
11219do
11220 IFS=$as_save_IFS
11221 test -z "$as_dir" && as_dir=.
cd9a469c 11222 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 11224 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
cd9a469c 11225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 11226 break 2
11227 fi
11228done
cd9a469c 11229 done
11230IFS=$as_save_IFS
95a05732 11231
11232fi
11233fi
11234AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11235if test -n "$AR_FOR_TARGET"; then
cd9a469c 11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11237$as_echo "$AR_FOR_TARGET" >&6; }
95a05732 11238else
cd9a469c 11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11240$as_echo "no" >&6; }
95a05732 11241fi
11242
cd9a469c 11243
95a05732 11244 done
11245fi
11246
11247if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 11248 for ncn_progname in ar; do
cd9a469c 11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11250$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 11251 if test -x $with_build_time_tools/${ncn_progname}; then
11252 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11254$as_echo "yes" >&6; }
c47832b1 11255 break
11256 else
cd9a469c 11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11258$as_echo "no" >&6; }
c47832b1 11259 fi
11260 done
11261fi
11262
11263if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11264 for ncn_progname in ar; do
11265 if test -n "$ncn_target_tool_prefix"; then
11266 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 11267set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 11268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11269$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11270if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
cd9a469c 11271 $as_echo_n "(cached) " >&6
ef8184c7 11272else
c47832b1 11273 if test -n "$AR_FOR_TARGET"; then
11274 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
ef8184c7 11275else
b30fcfae 11276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11277for as_dir in $PATH
11278do
11279 IFS=$as_save_IFS
11280 test -z "$as_dir" && as_dir=.
cd9a469c 11281 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11283 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 11284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11285 break 2
11286 fi
11287done
cd9a469c 11288 done
11289IFS=$as_save_IFS
b30fcfae 11290
ef8184c7 11291fi
11292fi
b30fcfae 11293AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
c47832b1 11294if test -n "$AR_FOR_TARGET"; then
cd9a469c 11295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11296$as_echo "$AR_FOR_TARGET" >&6; }
ef8184c7 11297else
cd9a469c 11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11299$as_echo "no" >&6; }
ef8184c7 11300fi
11301
cd9a469c 11302
c47832b1 11303 fi
11304 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11305 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11306set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11308$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11309if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
cd9a469c 11310 $as_echo_n "(cached) " >&6
c47832b1 11311else
11312 if test -n "$AR_FOR_TARGET"; then
11313 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11314else
b30fcfae 11315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11316for as_dir in $PATH
11317do
11318 IFS=$as_save_IFS
11319 test -z "$as_dir" && as_dir=.
cd9a469c 11320 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11322 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
cd9a469c 11323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11324 break 2
11325 fi
11326done
cd9a469c 11327 done
11328IFS=$as_save_IFS
b30fcfae 11329
c47832b1 11330fi
11331fi
b30fcfae 11332AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
c47832b1 11333if test -n "$AR_FOR_TARGET"; then
cd9a469c 11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11335$as_echo "$AR_FOR_TARGET" >&6; }
c47832b1 11336else
cd9a469c 11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11338$as_echo "no" >&6; }
c47832b1 11339fi
b30fcfae 11340
cd9a469c 11341
c47832b1 11342 fi
11343 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11344 done
11345fi
b30fcfae 11346
c47832b1 11347if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11348 set dummy ar
11349 if test $build = $target ; then
11350 AR_FOR_TARGET="$2"
11351 else
11352 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
768691b5 11353 fi
b7ef8464 11354else
11355 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
c47832b1 11356fi
11357
ab0da556 11358else
11359 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
c47832b1 11360fi
11361
11362
11363
11364
11365if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11366 if test -n "$with_build_time_tools"; then
cd9a469c 11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11368$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
ab0da556 11369 if test -x $with_build_time_tools/as; then
11370 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11371 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
cd9a469c 11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11373$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
ab0da556 11374 else
cd9a469c 11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11376$as_echo "no" >&6; }
ab0da556 11377 fi
c47832b1 11378 elif test $build != $host && test $have_gcc_for_target = yes; then
11379 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
b7ef8464 11380 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11381 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c47832b1 11382 fi
11383fi
38d7211b 11384if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 11385 # Extract the first word of "as", so it can be a program name with args.
11386set dummy as; ac_word=$2
cd9a469c 11387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11388$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11389if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
cd9a469c 11390 $as_echo_n "(cached) " >&6
c47832b1 11391else
b30fcfae 11392 case $AS_FOR_TARGET in
11393 [\\/]* | ?:[\\/]*)
c47832b1 11394 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11395 ;;
c47832b1 11396 *)
b30fcfae 11397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11398for as_dir in $gcc_cv_tool_dirs
11399do
11400 IFS=$as_save_IFS
11401 test -z "$as_dir" && as_dir=.
cd9a469c 11402 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11404 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 11405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11406 break 2
11407 fi
11408done
cd9a469c 11409 done
11410IFS=$as_save_IFS
b30fcfae 11411
c47832b1 11412 ;;
11413esac
11414fi
b30fcfae 11415AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
c47832b1 11416if test -n "$AS_FOR_TARGET"; then
cd9a469c 11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11418$as_echo "$AS_FOR_TARGET" >&6; }
c47832b1 11419else
cd9a469c 11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11421$as_echo "no" >&6; }
c47832b1 11422fi
11423
cd9a469c 11424
c47832b1 11425fi
11426if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
95a05732 11427
11428
11429if test -n "$AS_FOR_TARGET"; then
11430 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11431elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11432 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11433fi
11434
11435if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11436 for ncn_progname in as; do
11437 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11438set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11440$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11441if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
cd9a469c 11442 $as_echo_n "(cached) " >&6
95a05732 11443else
11444 if test -n "$AS_FOR_TARGET"; then
11445 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11446else
11447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11448for as_dir in $PATH
11449do
11450 IFS=$as_save_IFS
11451 test -z "$as_dir" && as_dir=.
cd9a469c 11452 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 11454 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
cd9a469c 11455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 11456 break 2
11457 fi
11458done
cd9a469c 11459 done
11460IFS=$as_save_IFS
95a05732 11461
11462fi
11463fi
11464AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11465if test -n "$AS_FOR_TARGET"; then
cd9a469c 11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11467$as_echo "$AS_FOR_TARGET" >&6; }
95a05732 11468else
cd9a469c 11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11470$as_echo "no" >&6; }
95a05732 11471fi
11472
cd9a469c 11473
95a05732 11474 done
11475fi
11476
11477if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 11478 for ncn_progname in as; do
cd9a469c 11479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11480$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 11481 if test -x $with_build_time_tools/${ncn_progname}; then
11482 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11484$as_echo "yes" >&6; }
c47832b1 11485 break
11486 else
cd9a469c 11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11488$as_echo "no" >&6; }
c47832b1 11489 fi
11490 done
11491fi
11492
11493if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11494 for ncn_progname in as; do
11495 if test -n "$ncn_target_tool_prefix"; then
11496 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11497set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 11498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11499$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11500if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
cd9a469c 11501 $as_echo_n "(cached) " >&6
c47832b1 11502else
11503 if test -n "$AS_FOR_TARGET"; then
11504 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11505else
b30fcfae 11506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11507for as_dir in $PATH
11508do
11509 IFS=$as_save_IFS
11510 test -z "$as_dir" && as_dir=.
cd9a469c 11511 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11513 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 11514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11515 break 2
11516 fi
11517done
cd9a469c 11518 done
11519IFS=$as_save_IFS
b30fcfae 11520
c47832b1 11521fi
11522fi
b30fcfae 11523AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
c47832b1 11524if test -n "$AS_FOR_TARGET"; then
cd9a469c 11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11526$as_echo "$AS_FOR_TARGET" >&6; }
c47832b1 11527else
cd9a469c 11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11529$as_echo "no" >&6; }
c47832b1 11530fi
11531
cd9a469c 11532
c47832b1 11533 fi
11534 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11535 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 11536set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11538$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11539if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
cd9a469c 11540 $as_echo_n "(cached) " >&6
ef8184c7 11541else
c47832b1 11542 if test -n "$AS_FOR_TARGET"; then
11543 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
ef8184c7 11544else
b30fcfae 11545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11546for as_dir in $PATH
11547do
11548 IFS=$as_save_IFS
11549 test -z "$as_dir" && as_dir=.
cd9a469c 11550 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11552 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
cd9a469c 11553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11554 break 2
11555 fi
11556done
cd9a469c 11557 done
11558IFS=$as_save_IFS
b30fcfae 11559
ef8184c7 11560fi
11561fi
b30fcfae 11562AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
c47832b1 11563if test -n "$AS_FOR_TARGET"; then
cd9a469c 11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11565$as_echo "$AS_FOR_TARGET" >&6; }
ef8184c7 11566else
cd9a469c 11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11568$as_echo "no" >&6; }
ef8184c7 11569fi
b30fcfae 11570
cd9a469c 11571
c47832b1 11572 fi
11573 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11574 done
11575fi
b30fcfae 11576
c47832b1 11577if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11578 set dummy as
11579 if test $build = $target ; then
11580 AS_FOR_TARGET="$2"
11581 else
11582 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
ef8184c7 11583 fi
b7ef8464 11584else
11585 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
c47832b1 11586fi
768691b5 11587
ab0da556 11588else
11589 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
ef8184c7 11590fi
11591
c47832b1 11592
11593
11594
11595if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11596 if test -n "$with_build_time_tools"; then
cd9a469c 11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11598$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
ab0da556 11599 if test -x $with_build_time_tools/dlltool; then
11600 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11601 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
cd9a469c 11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11603$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
ab0da556 11604 else
cd9a469c 11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11606$as_echo "no" >&6; }
ab0da556 11607 fi
c47832b1 11608 elif test $build != $host && test $have_gcc_for_target = yes; then
11609 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
b7ef8464 11610 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11611 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c47832b1 11612 fi
11613fi
38d7211b 11614if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 11615 # Extract the first word of "dlltool", so it can be a program name with args.
11616set dummy dlltool; ac_word=$2
cd9a469c 11617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11618$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11619if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
cd9a469c 11620 $as_echo_n "(cached) " >&6
ef8184c7 11621else
b30fcfae 11622 case $DLLTOOL_FOR_TARGET in
11623 [\\/]* | ?:[\\/]*)
c47832b1 11624 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11625 ;;
c47832b1 11626 *)
b30fcfae 11627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11628for as_dir in $gcc_cv_tool_dirs
11629do
11630 IFS=$as_save_IFS
11631 test -z "$as_dir" && as_dir=.
cd9a469c 11632 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11634 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 11635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11636 break 2
11637 fi
11638done
cd9a469c 11639 done
11640IFS=$as_save_IFS
b30fcfae 11641
c47832b1 11642 ;;
11643esac
ef8184c7 11644fi
b30fcfae 11645DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
c47832b1 11646if test -n "$DLLTOOL_FOR_TARGET"; then
cd9a469c 11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11648$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
ef8184c7 11649else
cd9a469c 11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11651$as_echo "no" >&6; }
ef8184c7 11652fi
11653
cd9a469c 11654
c47832b1 11655fi
11656if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
95a05732 11657
11658
11659if test -n "$DLLTOOL_FOR_TARGET"; then
11660 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11661elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11662 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11663fi
11664
11665if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11666 for ncn_progname in dlltool; do
11667 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11668set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11670$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11671if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
cd9a469c 11672 $as_echo_n "(cached) " >&6
95a05732 11673else
11674 if test -n "$DLLTOOL_FOR_TARGET"; then
11675 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11676else
11677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11678for as_dir in $PATH
11679do
11680 IFS=$as_save_IFS
11681 test -z "$as_dir" && as_dir=.
cd9a469c 11682 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 11684 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
cd9a469c 11685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 11686 break 2
11687 fi
11688done
cd9a469c 11689 done
11690IFS=$as_save_IFS
95a05732 11691
11692fi
11693fi
11694DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11695if test -n "$DLLTOOL_FOR_TARGET"; then
cd9a469c 11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11697$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
95a05732 11698else
cd9a469c 11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11700$as_echo "no" >&6; }
95a05732 11701fi
11702
cd9a469c 11703
95a05732 11704 done
11705fi
11706
11707if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 11708 for ncn_progname in dlltool; do
cd9a469c 11709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11710$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 11711 if test -x $with_build_time_tools/${ncn_progname}; then
11712 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11714$as_echo "yes" >&6; }
c47832b1 11715 break
11716 else
cd9a469c 11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11718$as_echo "no" >&6; }
c47832b1 11719 fi
11720 done
11721fi
11722
11723if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11724 for ncn_progname in dlltool; do
11725 if test -n "$ncn_target_tool_prefix"; then
11726 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11727set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 11728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11729$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11730if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
cd9a469c 11731 $as_echo_n "(cached) " >&6
ef8184c7 11732else
c47832b1 11733 if test -n "$DLLTOOL_FOR_TARGET"; then
11734 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
ef8184c7 11735else
b30fcfae 11736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11737for as_dir in $PATH
11738do
11739 IFS=$as_save_IFS
11740 test -z "$as_dir" && as_dir=.
cd9a469c 11741 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11743 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 11744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11745 break 2
11746 fi
11747done
cd9a469c 11748 done
11749IFS=$as_save_IFS
b30fcfae 11750
ef8184c7 11751fi
11752fi
b30fcfae 11753DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
c47832b1 11754if test -n "$DLLTOOL_FOR_TARGET"; then
cd9a469c 11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11756$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
ef8184c7 11757else
cd9a469c 11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11759$as_echo "no" >&6; }
ef8184c7 11760fi
ef8184c7 11761
cd9a469c 11762
c47832b1 11763 fi
11764 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11765 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11766set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11768$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11769if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
cd9a469c 11770 $as_echo_n "(cached) " >&6
ef8184c7 11771else
c47832b1 11772 if test -n "$DLLTOOL_FOR_TARGET"; then
11773 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
ef8184c7 11774else
b30fcfae 11775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11776for as_dir in $PATH
11777do
11778 IFS=$as_save_IFS
11779 test -z "$as_dir" && as_dir=.
cd9a469c 11780 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11782 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
cd9a469c 11783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11784 break 2
11785 fi
11786done
cd9a469c 11787 done
11788IFS=$as_save_IFS
b30fcfae 11789
ef8184c7 11790fi
11791fi
b30fcfae 11792DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
c47832b1 11793if test -n "$DLLTOOL_FOR_TARGET"; then
cd9a469c 11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11795$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
ef8184c7 11796else
cd9a469c 11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11798$as_echo "no" >&6; }
ef8184c7 11799fi
b30fcfae 11800
cd9a469c 11801
c47832b1 11802 fi
11803 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11804 done
11805fi
b30fcfae 11806
c47832b1 11807if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11808 set dummy dlltool
11809 if test $build = $target ; then
11810 DLLTOOL_FOR_TARGET="$2"
11811 else
11812 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11813 fi
b7ef8464 11814else
11815 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
c47832b1 11816fi
11817
ab0da556 11818else
11819 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
c47832b1 11820fi
11821
ef8184c7 11822
c47832b1 11823
11824
11825if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11826 if test -n "$with_build_time_tools"; then
cd9a469c 11827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11828$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
ab0da556 11829 if test -x $with_build_time_tools/ld; then
11830 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11831 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
cd9a469c 11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11833$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
ab0da556 11834 else
cd9a469c 11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11836$as_echo "no" >&6; }
ab0da556 11837 fi
c47832b1 11838 elif test $build != $host && test $have_gcc_for_target = yes; then
11839 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
b7ef8464 11840 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11841 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
768691b5 11842 fi
c47832b1 11843fi
38d7211b 11844if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 11845 # Extract the first word of "ld", so it can be a program name with args.
11846set dummy ld; ac_word=$2
cd9a469c 11847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11848$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11849if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
cd9a469c 11850 $as_echo_n "(cached) " >&6
ef8184c7 11851else
b30fcfae 11852 case $LD_FOR_TARGET in
11853 [\\/]* | ?:[\\/]*)
c47832b1 11854 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11855 ;;
c47832b1 11856 *)
b30fcfae 11857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11858for as_dir in $gcc_cv_tool_dirs
11859do
11860 IFS=$as_save_IFS
11861 test -z "$as_dir" && as_dir=.
cd9a469c 11862 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11864 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 11865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11866 break 2
11867 fi
11868done
cd9a469c 11869 done
11870IFS=$as_save_IFS
b30fcfae 11871
c47832b1 11872 ;;
11873esac
ef8184c7 11874fi
b30fcfae 11875LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
c47832b1 11876if test -n "$LD_FOR_TARGET"; then
cd9a469c 11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11878$as_echo "$LD_FOR_TARGET" >&6; }
ef8184c7 11879else
cd9a469c 11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11881$as_echo "no" >&6; }
ef8184c7 11882fi
768691b5 11883
cd9a469c 11884
c47832b1 11885fi
11886if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
95a05732 11887
11888
11889if test -n "$LD_FOR_TARGET"; then
11890 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11891elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11892 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11893fi
11894
11895if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11896 for ncn_progname in ld; do
11897 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11898set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11900$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11901if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
cd9a469c 11902 $as_echo_n "(cached) " >&6
95a05732 11903else
11904 if test -n "$LD_FOR_TARGET"; then
11905 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11906else
11907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11908for as_dir in $PATH
11909do
11910 IFS=$as_save_IFS
11911 test -z "$as_dir" && as_dir=.
cd9a469c 11912 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 11914 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
cd9a469c 11915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 11916 break 2
11917 fi
11918done
cd9a469c 11919 done
11920IFS=$as_save_IFS
95a05732 11921
11922fi
11923fi
11924LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11925if test -n "$LD_FOR_TARGET"; then
cd9a469c 11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11927$as_echo "$LD_FOR_TARGET" >&6; }
95a05732 11928else
cd9a469c 11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11930$as_echo "no" >&6; }
95a05732 11931fi
11932
cd9a469c 11933
95a05732 11934 done
11935fi
11936
11937if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 11938 for ncn_progname in ld; do
cd9a469c 11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11940$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 11941 if test -x $with_build_time_tools/${ncn_progname}; then
11942 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11944$as_echo "yes" >&6; }
c47832b1 11945 break
11946 else
cd9a469c 11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11948$as_echo "no" >&6; }
c47832b1 11949 fi
11950 done
bb612911 11951fi
11952
c47832b1 11953if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11954 for ncn_progname in ld; do
11955 if test -n "$ncn_target_tool_prefix"; then
11956 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 11957set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 11958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11959$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11960if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
cd9a469c 11961 $as_echo_n "(cached) " >&6
bb612911 11962else
ef8184c7 11963 if test -n "$LD_FOR_TARGET"; then
11964 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
bb612911 11965else
b30fcfae 11966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11967for as_dir in $PATH
11968do
11969 IFS=$as_save_IFS
11970 test -z "$as_dir" && as_dir=.
cd9a469c 11971 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11973 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 11974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11975 break 2
11976 fi
11977done
cd9a469c 11978 done
11979IFS=$as_save_IFS
b30fcfae 11980
bb612911 11981fi
11982fi
b30fcfae 11983LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
ef8184c7 11984if test -n "$LD_FOR_TARGET"; then
cd9a469c 11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11986$as_echo "$LD_FOR_TARGET" >&6; }
bb612911 11987else
cd9a469c 11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11989$as_echo "no" >&6; }
bb612911 11990fi
11991
cd9a469c 11992
c47832b1 11993 fi
11994 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11995 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 11996set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11998$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11999if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
cd9a469c 12000 $as_echo_n "(cached) " >&6
bb612911 12001else
768691b5 12002 if test -n "$LD_FOR_TARGET"; then
12003 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
bb612911 12004else
b30fcfae 12005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12006for as_dir in $PATH
12007do
12008 IFS=$as_save_IFS
12009 test -z "$as_dir" && as_dir=.
cd9a469c 12010 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 12012 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
cd9a469c 12013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12014 break 2
12015 fi
12016done
cd9a469c 12017 done
12018IFS=$as_save_IFS
b30fcfae 12019
bb612911 12020fi
12021fi
b30fcfae 12022LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
768691b5 12023if test -n "$LD_FOR_TARGET"; then
cd9a469c 12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12025$as_echo "$LD_FOR_TARGET" >&6; }
bb612911 12026else
cd9a469c 12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12028$as_echo "no" >&6; }
bb612911 12029fi
b30fcfae 12030
cd9a469c 12031
c47832b1 12032 fi
12033 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
12034 done
12035fi
b30fcfae 12036
768691b5 12037if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
12038 set dummy ld
12039 if test $build = $target ; then
12040 LD_FOR_TARGET="$2"
bb612911 12041 else
768691b5 12042 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 12043 fi
b7ef8464 12044else
12045 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
bb612911 12046fi
12047
ab0da556 12048else
12049 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
c47832b1 12050fi
12051
12052
12053
12054
12055if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12056 if test -n "$with_build_time_tools"; then
cd9a469c 12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
12058$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
ab0da556 12059 if test -x $with_build_time_tools/lipo; then
12060 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12061 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
cd9a469c 12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12063$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
ab0da556 12064 else
cd9a469c 12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12066$as_echo "no" >&6; }
ab0da556 12067 fi
c47832b1 12068 elif test $build != $host && test $have_gcc_for_target = yes; then
12069 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
b7ef8464 12070 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12071 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c47832b1 12072 fi
12073fi
95a05732 12074if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12075 # Extract the first word of "lipo", so it can be a program name with args.
12076set dummy lipo; ac_word=$2
cd9a469c 12077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12078$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12079if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
cd9a469c 12080 $as_echo_n "(cached) " >&6
95a05732 12081else
12082 case $LIPO_FOR_TARGET in
12083 [\\/]* | ?:[\\/]*)
12084 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12085 ;;
12086 *)
12087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12088for as_dir in $gcc_cv_tool_dirs
12089do
12090 IFS=$as_save_IFS
12091 test -z "$as_dir" && as_dir=.
cd9a469c 12092 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 12094 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 12095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 12096 break 2
12097 fi
12098done
cd9a469c 12099 done
12100IFS=$as_save_IFS
95a05732 12101
12102 ;;
12103esac
12104fi
12105LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
95a05732 12106if test -n "$LIPO_FOR_TARGET"; then
cd9a469c 12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12108$as_echo "$LIPO_FOR_TARGET" >&6; }
95a05732 12109else
cd9a469c 12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12111$as_echo "no" >&6; }
95a05732 12112fi
12113
cd9a469c 12114
95a05732 12115fi
12116if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12117
12118
12119if test -n "$LIPO_FOR_TARGET"; then
12120 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12121elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12122 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12123fi
12124
12125if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12126 for ncn_progname in lipo; do
12127 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12128set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12130$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12131if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
cd9a469c 12132 $as_echo_n "(cached) " >&6
c47832b1 12133else
95a05732 12134 if test -n "$LIPO_FOR_TARGET"; then
12135 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12136else
12137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12138for as_dir in $PATH
b30fcfae 12139do
12140 IFS=$as_save_IFS
12141 test -z "$as_dir" && as_dir=.
cd9a469c 12142 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 12144 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
cd9a469c 12145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12146 break 2
12147 fi
12148done
cd9a469c 12149 done
12150IFS=$as_save_IFS
b30fcfae 12151
c47832b1 12152fi
95a05732 12153fi
12154LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
c47832b1 12155if test -n "$LIPO_FOR_TARGET"; then
cd9a469c 12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12157$as_echo "$LIPO_FOR_TARGET" >&6; }
c47832b1 12158else
cd9a469c 12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12160$as_echo "no" >&6; }
c47832b1 12161fi
12162
cd9a469c 12163
95a05732 12164 done
c47832b1 12165fi
95a05732 12166
12167if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 12168 for ncn_progname in lipo; do
cd9a469c 12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12170$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 12171 if test -x $with_build_time_tools/${ncn_progname}; then
12172 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12174$as_echo "yes" >&6; }
c47832b1 12175 break
12176 else
cd9a469c 12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12178$as_echo "no" >&6; }
c47832b1 12179 fi
12180 done
12181fi
12182
12183if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12184 for ncn_progname in lipo; do
12185 if test -n "$ncn_target_tool_prefix"; then
12186 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 12187set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 12188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12189$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12190if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
cd9a469c 12191 $as_echo_n "(cached) " >&6
9fec3fa8 12192else
12193 if test -n "$LIPO_FOR_TARGET"; then
12194 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12195else
b30fcfae 12196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12197for as_dir in $PATH
12198do
12199 IFS=$as_save_IFS
12200 test -z "$as_dir" && as_dir=.
cd9a469c 12201 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 12203 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 12204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12205 break 2
12206 fi
12207done
cd9a469c 12208 done
12209IFS=$as_save_IFS
b30fcfae 12210
9fec3fa8 12211fi
12212fi
b30fcfae 12213LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9fec3fa8 12214if test -n "$LIPO_FOR_TARGET"; then
cd9a469c 12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12216$as_echo "$LIPO_FOR_TARGET" >&6; }
9fec3fa8 12217else
cd9a469c 12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12219$as_echo "no" >&6; }
9fec3fa8 12220fi
12221
cd9a469c 12222
c47832b1 12223 fi
12224 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12225 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9fec3fa8 12226set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12228$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12229if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
cd9a469c 12230 $as_echo_n "(cached) " >&6
9fec3fa8 12231else
12232 if test -n "$LIPO_FOR_TARGET"; then
9886f3d1 12233 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12234else
b30fcfae 12235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12236for as_dir in $PATH
12237do
12238 IFS=$as_save_IFS
12239 test -z "$as_dir" && as_dir=.
cd9a469c 12240 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 12242 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
cd9a469c 12243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12244 break 2
12245 fi
12246done
cd9a469c 12247 done
12248IFS=$as_save_IFS
b30fcfae 12249
9fec3fa8 12250fi
12251fi
b30fcfae 12252LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9fec3fa8 12253if test -n "$LIPO_FOR_TARGET"; then
cd9a469c 12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12255$as_echo "$LIPO_FOR_TARGET" >&6; }
9fec3fa8 12256else
cd9a469c 12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12258$as_echo "no" >&6; }
9fec3fa8 12259fi
b30fcfae 12260
cd9a469c 12261
c47832b1 12262 fi
12263 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12264 done
12265fi
b30fcfae 12266
9fec3fa8 12267if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12268 set dummy lipo
12269 if test $build = $target ; then
12270 LIPO_FOR_TARGET="$2"
12271 else
12272 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12273 fi
b7ef8464 12274else
12275 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
9fec3fa8 12276fi
12277
ab0da556 12278else
12279 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
c47832b1 12280fi
12281
12282
12283
12284
12285if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12286 if test -n "$with_build_time_tools"; then
cd9a469c 12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12288$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
ab0da556 12289 if test -x $with_build_time_tools/nm; then
12290 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12291 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
cd9a469c 12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12293$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
ab0da556 12294 else
cd9a469c 12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12296$as_echo "no" >&6; }
ab0da556 12297 fi
c47832b1 12298 elif test $build != $host && test $have_gcc_for_target = yes; then
12299 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
b7ef8464 12300 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12301 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c47832b1 12302 fi
12303fi
38d7211b 12304if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 12305 # Extract the first word of "nm", so it can be a program name with args.
12306set dummy nm; ac_word=$2
cd9a469c 12307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12308$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12309if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
cd9a469c 12310 $as_echo_n "(cached) " >&6
c47832b1 12311else
b30fcfae 12312 case $NM_FOR_TARGET in
12313 [\\/]* | ?:[\\/]*)
c47832b1 12314 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12315 ;;
c47832b1 12316 *)
b30fcfae 12317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12318for as_dir in $gcc_cv_tool_dirs
12319do
12320 IFS=$as_save_IFS
12321 test -z "$as_dir" && as_dir=.
cd9a469c 12322 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 12324 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 12325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12326 break 2
12327 fi
12328done
cd9a469c 12329 done
12330IFS=$as_save_IFS
b30fcfae 12331
c47832b1 12332 ;;
12333esac
12334fi
b30fcfae 12335NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
c47832b1 12336if test -n "$NM_FOR_TARGET"; then
cd9a469c 12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12338$as_echo "$NM_FOR_TARGET" >&6; }
c47832b1 12339else
cd9a469c 12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12341$as_echo "no" >&6; }
c47832b1 12342fi
12343
cd9a469c 12344
c47832b1 12345fi
12346if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
95a05732 12347
12348
12349if test -n "$NM_FOR_TARGET"; then
12350 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12351elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12352 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12353fi
12354
12355if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12356 for ncn_progname in nm; do
12357 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12358set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12360$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12361if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
cd9a469c 12362 $as_echo_n "(cached) " >&6
95a05732 12363else
12364 if test -n "$NM_FOR_TARGET"; then
12365 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12366else
12367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12368for as_dir in $PATH
12369do
12370 IFS=$as_save_IFS
12371 test -z "$as_dir" && as_dir=.
cd9a469c 12372 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 12374 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
cd9a469c 12375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 12376 break 2
12377 fi
12378done
cd9a469c 12379 done
12380IFS=$as_save_IFS
95a05732 12381
12382fi
12383fi
12384NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12385if test -n "$NM_FOR_TARGET"; then
cd9a469c 12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12387$as_echo "$NM_FOR_TARGET" >&6; }
95a05732 12388else
cd9a469c 12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12390$as_echo "no" >&6; }
95a05732 12391fi
12392
cd9a469c 12393
95a05732 12394 done
12395fi
12396
12397if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 12398 for ncn_progname in nm; do
cd9a469c 12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12400$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 12401 if test -x $with_build_time_tools/${ncn_progname}; then
12402 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12404$as_echo "yes" >&6; }
c47832b1 12405 break
12406 else
cd9a469c 12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12408$as_echo "no" >&6; }
c47832b1 12409 fi
12410 done
12411fi
12412
12413if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12414 for ncn_progname in nm; do
12415 if test -n "$ncn_target_tool_prefix"; then
12416 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9fec3fa8 12417set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 12418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12419$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12420if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
cd9a469c 12421 $as_echo_n "(cached) " >&6
bb612911 12422else
ef8184c7 12423 if test -n "$NM_FOR_TARGET"; then
12424 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
bb612911 12425else
b30fcfae 12426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12427for as_dir in $PATH
12428do
12429 IFS=$as_save_IFS
12430 test -z "$as_dir" && as_dir=.
cd9a469c 12431 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 12433 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 12434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12435 break 2
12436 fi
12437done
cd9a469c 12438 done
12439IFS=$as_save_IFS
b30fcfae 12440
bb612911 12441fi
12442fi
b30fcfae 12443NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
ef8184c7 12444if test -n "$NM_FOR_TARGET"; then
cd9a469c 12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12446$as_echo "$NM_FOR_TARGET" >&6; }
bb612911 12447else
cd9a469c 12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12449$as_echo "no" >&6; }
bb612911 12450fi
12451
cd9a469c 12452
c47832b1 12453 fi
12454 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12455 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 12456set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12458$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12459if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
cd9a469c 12460 $as_echo_n "(cached) " >&6
bb612911 12461else
768691b5 12462 if test -n "$NM_FOR_TARGET"; then
12463 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
bb612911 12464else
b30fcfae 12465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12466for as_dir in $PATH
12467do
12468 IFS=$as_save_IFS
12469 test -z "$as_dir" && as_dir=.
cd9a469c 12470 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 12472 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
cd9a469c 12473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12474 break 2
12475 fi
12476done
cd9a469c 12477 done
12478IFS=$as_save_IFS
b30fcfae 12479
bb612911 12480fi
12481fi
b30fcfae 12482NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
768691b5 12483if test -n "$NM_FOR_TARGET"; then
cd9a469c 12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12485$as_echo "$NM_FOR_TARGET" >&6; }
bb612911 12486else
cd9a469c 12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12488$as_echo "no" >&6; }
bb612911 12489fi
b30fcfae 12490
cd9a469c 12491
c47832b1 12492 fi
12493 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12494 done
12495fi
b30fcfae 12496
768691b5 12497if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12498 set dummy nm
12499 if test $build = $target ; then
12500 NM_FOR_TARGET="$2"
bb612911 12501 else
768691b5 12502 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 12503 fi
b7ef8464 12504else
12505 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
bb612911 12506fi
12507
ab0da556 12508else
12509 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
c47832b1 12510fi
12511
12512
12513
12514
fc740d70 12515if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12516 if test -n "$with_build_time_tools"; then
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12518$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12519 if test -x $with_build_time_tools/objcopy; then
12520 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12521 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12523$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12524 else
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12526$as_echo "no" >&6; }
12527 fi
12528 elif test $build != $host && test $have_gcc_for_target = yes; then
12529 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12530 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12531 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12532 fi
12533fi
12534if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12535 # Extract the first word of "objcopy", so it can be a program name with args.
12536set dummy objcopy; ac_word=$2
12537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12538$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12539if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
fc740d70 12540 $as_echo_n "(cached) " >&6
12541else
12542 case $OBJCOPY_FOR_TARGET in
12543 [\\/]* | ?:[\\/]*)
12544 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12545 ;;
12546 *)
12547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12548for as_dir in $gcc_cv_tool_dirs
12549do
12550 IFS=$as_save_IFS
12551 test -z "$as_dir" && as_dir=.
12552 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fc740d70 12554 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12556 break 2
12557 fi
12558done
12559 done
12560IFS=$as_save_IFS
12561
12562 ;;
12563esac
12564fi
12565OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12566if test -n "$OBJCOPY_FOR_TARGET"; then
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12568$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12569else
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12571$as_echo "no" >&6; }
12572fi
12573
12574
12575fi
12576if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12577
12578
12579if test -n "$OBJCOPY_FOR_TARGET"; then
12580 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12581elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12582 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12583fi
12584
12585if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12586 for ncn_progname in objcopy; do
12587 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12588set dummy ${ncn_progname}; ac_word=$2
12589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12590$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12591if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
fc740d70 12592 $as_echo_n "(cached) " >&6
12593else
12594 if test -n "$OBJCOPY_FOR_TARGET"; then
12595 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12596else
12597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12598for as_dir in $PATH
12599do
12600 IFS=$as_save_IFS
12601 test -z "$as_dir" && as_dir=.
12602 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fc740d70 12604 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12606 break 2
12607 fi
12608done
12609 done
12610IFS=$as_save_IFS
12611
12612fi
12613fi
12614OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12615if test -n "$OBJCOPY_FOR_TARGET"; then
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12617$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12618else
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12620$as_echo "no" >&6; }
12621fi
12622
12623
12624 done
12625fi
12626
12627if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12628 for ncn_progname in objcopy; do
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12630$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12631 if test -x $with_build_time_tools/${ncn_progname}; then
12632 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12634$as_echo "yes" >&6; }
12635 break
12636 else
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12638$as_echo "no" >&6; }
12639 fi
12640 done
12641fi
12642
12643if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12644 for ncn_progname in objcopy; do
12645 if test -n "$ncn_target_tool_prefix"; then
12646 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12647set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12649$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12650if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
fc740d70 12651 $as_echo_n "(cached) " >&6
12652else
12653 if test -n "$OBJCOPY_FOR_TARGET"; then
12654 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12655else
12656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12657for as_dir in $PATH
12658do
12659 IFS=$as_save_IFS
12660 test -z "$as_dir" && as_dir=.
12661 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fc740d70 12663 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12665 break 2
12666 fi
12667done
12668 done
12669IFS=$as_save_IFS
12670
12671fi
12672fi
12673OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12674if test -n "$OBJCOPY_FOR_TARGET"; then
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12676$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12677else
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12679$as_echo "no" >&6; }
12680fi
12681
12682
12683 fi
12684 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12685 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12686set dummy ${ncn_progname}; ac_word=$2
12687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12688$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12689if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
fc740d70 12690 $as_echo_n "(cached) " >&6
12691else
12692 if test -n "$OBJCOPY_FOR_TARGET"; then
12693 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12694else
12695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12696for as_dir in $PATH
12697do
12698 IFS=$as_save_IFS
12699 test -z "$as_dir" && as_dir=.
12700 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fc740d70 12702 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12704 break 2
12705 fi
12706done
12707 done
12708IFS=$as_save_IFS
12709
12710fi
12711fi
12712OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12713if test -n "$OBJCOPY_FOR_TARGET"; then
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12715$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12716else
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12718$as_echo "no" >&6; }
12719fi
12720
12721
12722 fi
12723 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12724 done
12725fi
12726
12727if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12728 set dummy objcopy
12729 if test $build = $target ; then
12730 OBJCOPY_FOR_TARGET="$2"
12731 else
12732 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12733 fi
12734else
12735 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12736fi
12737
12738else
12739 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12740fi
12741
12742
12743
12744
c47832b1 12745if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12746 if test -n "$with_build_time_tools"; then
cd9a469c 12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12748$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
ab0da556 12749 if test -x $with_build_time_tools/objdump; then
12750 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12751 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
cd9a469c 12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12753$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
ab0da556 12754 else
cd9a469c 12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12756$as_echo "no" >&6; }
ab0da556 12757 fi
c47832b1 12758 elif test $build != $host && test $have_gcc_for_target = yes; then
12759 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
b7ef8464 12760 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12761 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c47832b1 12762 fi
12763fi
38d7211b 12764if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 12765 # Extract the first word of "objdump", so it can be a program name with args.
12766set dummy objdump; ac_word=$2
cd9a469c 12767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12768$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12769if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
cd9a469c 12770 $as_echo_n "(cached) " >&6
c47832b1 12771else
b30fcfae 12772 case $OBJDUMP_FOR_TARGET in
12773 [\\/]* | ?:[\\/]*)
c47832b1 12774 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12775 ;;
c47832b1 12776 *)
b30fcfae 12777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12778for as_dir in $gcc_cv_tool_dirs
12779do
12780 IFS=$as_save_IFS
12781 test -z "$as_dir" && as_dir=.
cd9a469c 12782 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 12784 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 12785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12786 break 2
12787 fi
12788done
cd9a469c 12789 done
12790IFS=$as_save_IFS
b30fcfae 12791
c47832b1 12792 ;;
12793esac
12794fi
b30fcfae 12795OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
c47832b1 12796if test -n "$OBJDUMP_FOR_TARGET"; then
cd9a469c 12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12798$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
c47832b1 12799else
cd9a469c 12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12801$as_echo "no" >&6; }
c47832b1 12802fi
12803
cd9a469c 12804
c47832b1 12805fi
12806if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
95a05732 12807
12808
12809if test -n "$OBJDUMP_FOR_TARGET"; then
12810 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12811elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12812 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12813fi
12814
12815if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12816 for ncn_progname in objdump; do
12817 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12818set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12820$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12821if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
cd9a469c 12822 $as_echo_n "(cached) " >&6
95a05732 12823else
12824 if test -n "$OBJDUMP_FOR_TARGET"; then
12825 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12826else
12827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12828for as_dir in $PATH
12829do
12830 IFS=$as_save_IFS
12831 test -z "$as_dir" && as_dir=.
cd9a469c 12832 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 12834 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
cd9a469c 12835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 12836 break 2
12837 fi
12838done
cd9a469c 12839 done
12840IFS=$as_save_IFS
95a05732 12841
12842fi
12843fi
12844OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12845if test -n "$OBJDUMP_FOR_TARGET"; then
cd9a469c 12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12847$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
95a05732 12848else
cd9a469c 12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12850$as_echo "no" >&6; }
95a05732 12851fi
12852
cd9a469c 12853
95a05732 12854 done
12855fi
12856
12857if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 12858 for ncn_progname in objdump; do
cd9a469c 12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12860$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 12861 if test -x $with_build_time_tools/${ncn_progname}; then
12862 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12864$as_echo "yes" >&6; }
c47832b1 12865 break
12866 else
cd9a469c 12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12868$as_echo "no" >&6; }
c47832b1 12869 fi
12870 done
12871fi
12872
12873if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12874 for ncn_progname in objdump; do
12875 if test -n "$ncn_target_tool_prefix"; then
12876 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 12877set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 12878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12879$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12880if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
cd9a469c 12881 $as_echo_n "(cached) " >&6
ae74ffb7 12882else
12883 if test -n "$OBJDUMP_FOR_TARGET"; then
12884 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12885else
b30fcfae 12886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12887for as_dir in $PATH
12888do
12889 IFS=$as_save_IFS
12890 test -z "$as_dir" && as_dir=.
cd9a469c 12891 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 12893 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 12894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12895 break 2
12896 fi
12897done
cd9a469c 12898 done
12899IFS=$as_save_IFS
b30fcfae 12900
ae74ffb7 12901fi
12902fi
b30fcfae 12903OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
ae74ffb7 12904if test -n "$OBJDUMP_FOR_TARGET"; then
cd9a469c 12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12906$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
ae74ffb7 12907else
cd9a469c 12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12909$as_echo "no" >&6; }
ae74ffb7 12910fi
12911
cd9a469c 12912
c47832b1 12913 fi
12914 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12915 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
ae74ffb7 12916set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12918$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12919if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
cd9a469c 12920 $as_echo_n "(cached) " >&6
ae74ffb7 12921else
12922 if test -n "$OBJDUMP_FOR_TARGET"; then
12923 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12924else
b30fcfae 12925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12926for as_dir in $PATH
12927do
12928 IFS=$as_save_IFS
12929 test -z "$as_dir" && as_dir=.
cd9a469c 12930 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 12932 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
cd9a469c 12933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12934 break 2
12935 fi
12936done
cd9a469c 12937 done
12938IFS=$as_save_IFS
b30fcfae 12939
ae74ffb7 12940fi
12941fi
b30fcfae 12942OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
ae74ffb7 12943if test -n "$OBJDUMP_FOR_TARGET"; then
cd9a469c 12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12945$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
ae74ffb7 12946else
cd9a469c 12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12948$as_echo "no" >&6; }
ae74ffb7 12949fi
b30fcfae 12950
cd9a469c 12951
c47832b1 12952 fi
12953 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12954 done
12955fi
b30fcfae 12956
ae74ffb7 12957if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12958 set dummy objdump
12959 if test $build = $target ; then
12960 OBJDUMP_FOR_TARGET="$2"
12961 else
12962 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12963 fi
b7ef8464 12964else
12965 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
ae74ffb7 12966fi
12967
ab0da556 12968else
12969 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
c47832b1 12970fi
12971
12972
12973
12974
16706a2e 12975if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
12976 if test -n "$with_build_time_tools"; then
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
12978$as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
12979 if test -x $with_build_time_tools/otool; then
12980 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
12981 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
12983$as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
12984 else
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12986$as_echo "no" >&6; }
12987 fi
12988 elif test $build != $host && test $have_gcc_for_target = yes; then
12989 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
12990 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
12991 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
12992 fi
12993fi
12994if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12995 # Extract the first word of "otool", so it can be a program name with args.
12996set dummy otool; ac_word=$2
12997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12998$as_echo_n "checking for $ac_word... " >&6; }
12999if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
13000 $as_echo_n "(cached) " >&6
13001else
13002 case $OTOOL_FOR_TARGET in
13003 [\\/]* | ?:[\\/]*)
13004 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
13005 ;;
13006 *)
13007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13008for as_dir in $gcc_cv_tool_dirs
13009do
13010 IFS=$as_save_IFS
13011 test -z "$as_dir" && as_dir=.
13012 for ac_exec_ext in '' $ac_executable_extensions; do
13013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13014 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13016 break 2
13017 fi
13018done
13019 done
13020IFS=$as_save_IFS
13021
13022 ;;
13023esac
13024fi
13025OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
13026if test -n "$OTOOL_FOR_TARGET"; then
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13028$as_echo "$OTOOL_FOR_TARGET" >&6; }
13029else
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13031$as_echo "no" >&6; }
13032fi
13033
13034
13035fi
13036if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
13037
13038
13039if test -n "$OTOOL_FOR_TARGET"; then
13040 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
13041elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13042 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13043fi
13044
13045if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13046 for ncn_progname in otool; do
13047 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13048set dummy ${ncn_progname}; ac_word=$2
13049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13050$as_echo_n "checking for $ac_word... " >&6; }
13051if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13052 $as_echo_n "(cached) " >&6
13053else
13054 if test -n "$OTOOL_FOR_TARGET"; then
13055 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13056else
13057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13058for as_dir in $PATH
13059do
13060 IFS=$as_save_IFS
13061 test -z "$as_dir" && as_dir=.
13062 for ac_exec_ext in '' $ac_executable_extensions; do
13063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13064 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
13065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13066 break 2
13067 fi
13068done
13069 done
13070IFS=$as_save_IFS
13071
13072fi
13073fi
13074OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13075if test -n "$OTOOL_FOR_TARGET"; then
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13077$as_echo "$OTOOL_FOR_TARGET" >&6; }
13078else
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13080$as_echo "no" >&6; }
13081fi
13082
13083
13084 done
13085fi
13086
13087if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
13088 for ncn_progname in otool; do
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13090$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13091 if test -x $with_build_time_tools/${ncn_progname}; then
13092 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13094$as_echo "yes" >&6; }
13095 break
13096 else
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13098$as_echo "no" >&6; }
13099 fi
13100 done
13101fi
13102
13103if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13104 for ncn_progname in otool; do
13105 if test -n "$ncn_target_tool_prefix"; then
13106 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13107set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13109$as_echo_n "checking for $ac_word... " >&6; }
13110if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13111 $as_echo_n "(cached) " >&6
13112else
13113 if test -n "$OTOOL_FOR_TARGET"; then
13114 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13115else
13116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13117for as_dir in $PATH
13118do
13119 IFS=$as_save_IFS
13120 test -z "$as_dir" && as_dir=.
13121 for ac_exec_ext in '' $ac_executable_extensions; do
13122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13123 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13125 break 2
13126 fi
13127done
13128 done
13129IFS=$as_save_IFS
13130
13131fi
13132fi
13133OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13134if test -n "$OTOOL_FOR_TARGET"; then
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13136$as_echo "$OTOOL_FOR_TARGET" >&6; }
13137else
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13139$as_echo "no" >&6; }
13140fi
13141
13142
13143 fi
13144 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
13145 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13146set dummy ${ncn_progname}; ac_word=$2
13147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13148$as_echo_n "checking for $ac_word... " >&6; }
13149if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13150 $as_echo_n "(cached) " >&6
13151else
13152 if test -n "$OTOOL_FOR_TARGET"; then
13153 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13154else
13155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13156for as_dir in $PATH
13157do
13158 IFS=$as_save_IFS
13159 test -z "$as_dir" && as_dir=.
13160 for ac_exec_ext in '' $ac_executable_extensions; do
13161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13162 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
13163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13164 break 2
13165 fi
13166done
13167 done
13168IFS=$as_save_IFS
13169
13170fi
13171fi
13172OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13173if test -n "$OTOOL_FOR_TARGET"; then
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13175$as_echo "$OTOOL_FOR_TARGET" >&6; }
13176else
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13178$as_echo "no" >&6; }
13179fi
13180
13181
13182 fi
13183 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
13184 done
13185fi
13186
13187if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
13188 set dummy otool
13189 if test $build = $target ; then
13190 OTOOL_FOR_TARGET="$2"
13191 else
13192 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
13193 fi
13194else
13195 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
13196fi
13197
13198else
13199 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
13200fi
13201
13202
13203
13204
c47832b1 13205if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13206 if test -n "$with_build_time_tools"; then
cd9a469c 13207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
13208$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
ab0da556 13209 if test -x $with_build_time_tools/ranlib; then
13210 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
13211 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
cd9a469c 13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
13213$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
ab0da556 13214 else
cd9a469c 13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13216$as_echo "no" >&6; }
ab0da556 13217 fi
c47832b1 13218 elif test $build != $host && test $have_gcc_for_target = yes; then
13219 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
b7ef8464 13220 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
13221 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c47832b1 13222 fi
13223fi
38d7211b 13224if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 13225 # Extract the first word of "ranlib", so it can be a program name with args.
13226set dummy ranlib; ac_word=$2
cd9a469c 13227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13228$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13229if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
cd9a469c 13230 $as_echo_n "(cached) " >&6
c47832b1 13231else
b30fcfae 13232 case $RANLIB_FOR_TARGET in
13233 [\\/]* | ?:[\\/]*)
c47832b1 13234 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
13235 ;;
c47832b1 13236 *)
b30fcfae 13237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13238for as_dir in $gcc_cv_tool_dirs
13239do
13240 IFS=$as_save_IFS
13241 test -z "$as_dir" && as_dir=.
cd9a469c 13242 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 13244 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 13245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 13246 break 2
13247 fi
13248done
cd9a469c 13249 done
13250IFS=$as_save_IFS
b30fcfae 13251
c47832b1 13252 ;;
13253esac
13254fi
b30fcfae 13255RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
c47832b1 13256if test -n "$RANLIB_FOR_TARGET"; then
cd9a469c 13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13258$as_echo "$RANLIB_FOR_TARGET" >&6; }
c47832b1 13259else
cd9a469c 13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13261$as_echo "no" >&6; }
c47832b1 13262fi
13263
cd9a469c 13264
c47832b1 13265fi
13266if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
95a05732 13267
13268
13269if test -n "$RANLIB_FOR_TARGET"; then
13270 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13271elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13272 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13273fi
13274
13275if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13276 for ncn_progname in ranlib; do
13277 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13278set dummy ${ncn_progname}; ac_word=$2
cd9a469c 13279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13280$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13281if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
cd9a469c 13282 $as_echo_n "(cached) " >&6
95a05732 13283else
13284 if test -n "$RANLIB_FOR_TARGET"; then
13285 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13286else
13287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13288for as_dir in $PATH
13289do
13290 IFS=$as_save_IFS
13291 test -z "$as_dir" && as_dir=.
cd9a469c 13292 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 13294 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
cd9a469c 13295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 13296 break 2
13297 fi
13298done
cd9a469c 13299 done
13300IFS=$as_save_IFS
95a05732 13301
13302fi
13303fi
13304RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13305if test -n "$RANLIB_FOR_TARGET"; then
cd9a469c 13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13307$as_echo "$RANLIB_FOR_TARGET" >&6; }
95a05732 13308else
cd9a469c 13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13310$as_echo "no" >&6; }
95a05732 13311fi
13312
cd9a469c 13313
95a05732 13314 done
13315fi
13316
13317if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 13318 for ncn_progname in ranlib; do
cd9a469c 13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13320$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 13321 if test -x $with_build_time_tools/${ncn_progname}; then
13322 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13324$as_echo "yes" >&6; }
c47832b1 13325 break
13326 else
cd9a469c 13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13328$as_echo "no" >&6; }
c47832b1 13329 fi
13330 done
13331fi
13332
13333if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13334 for ncn_progname in ranlib; do
13335 if test -n "$ncn_target_tool_prefix"; then
13336 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
ae74ffb7 13337set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 13338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13339$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13340if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
cd9a469c 13341 $as_echo_n "(cached) " >&6
bb612911 13342else
ef8184c7 13343 if test -n "$RANLIB_FOR_TARGET"; then
13344 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
bb612911 13345else
b30fcfae 13346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13347for as_dir in $PATH
13348do
13349 IFS=$as_save_IFS
13350 test -z "$as_dir" && as_dir=.
cd9a469c 13351 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 13353 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 13354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 13355 break 2
13356 fi
13357done
cd9a469c 13358 done
13359IFS=$as_save_IFS
b30fcfae 13360
bb612911 13361fi
13362fi
b30fcfae 13363RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
ef8184c7 13364if test -n "$RANLIB_FOR_TARGET"; then
cd9a469c 13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13366$as_echo "$RANLIB_FOR_TARGET" >&6; }
bb612911 13367else
cd9a469c 13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13369$as_echo "no" >&6; }
bb612911 13370fi
13371
cd9a469c 13372
c47832b1 13373 fi
13374 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
13375 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 13376set dummy ${ncn_progname}; ac_word=$2
cd9a469c 13377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13378$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13379if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
cd9a469c 13380 $as_echo_n "(cached) " >&6
bb612911 13381else
768691b5 13382 if test -n "$RANLIB_FOR_TARGET"; then
13383 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
bb612911 13384else
b30fcfae 13385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13386for as_dir in $PATH
13387do
13388 IFS=$as_save_IFS
13389 test -z "$as_dir" && as_dir=.
cd9a469c 13390 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 13392 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
cd9a469c 13393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 13394 break 2
13395 fi
13396done
cd9a469c 13397 done
13398IFS=$as_save_IFS
b30fcfae 13399
bb612911 13400fi
13401fi
b30fcfae 13402RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
768691b5 13403if test -n "$RANLIB_FOR_TARGET"; then
cd9a469c 13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13405$as_echo "$RANLIB_FOR_TARGET" >&6; }
bb612911 13406else
cd9a469c 13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13408$as_echo "no" >&6; }
bb612911 13409fi
b30fcfae 13410
cd9a469c 13411
c47832b1 13412 fi
13413 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13414 done
13415fi
b30fcfae 13416
c47832b1 13417if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13418 set dummy ranlib
13419 if test $build = $target ; then
13420 RANLIB_FOR_TARGET="$2"
13421 else
13422 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 13423 fi
b7ef8464 13424else
13425 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
c47832b1 13426fi
768691b5 13427
ab0da556 13428else
13429 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
bb612911 13430fi
13431
c47832b1 13432
13433
13434
3f71364d 13435if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13436 if test -n "$with_build_time_tools"; then
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13438$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13439 if test -x $with_build_time_tools/readelf; then
13440 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13441 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13443$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13444 else
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13446$as_echo "no" >&6; }
13447 fi
13448 elif test $build != $host && test $have_gcc_for_target = yes; then
13449 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13450 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13451 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13452 fi
13453fi
13454if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13455 # Extract the first word of "readelf", so it can be a program name with args.
13456set dummy readelf; ac_word=$2
13457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13458$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13459if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
3f71364d 13460 $as_echo_n "(cached) " >&6
13461else
13462 case $READELF_FOR_TARGET in
13463 [\\/]* | ?:[\\/]*)
13464 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13465 ;;
13466 *)
13467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13468for as_dir in $gcc_cv_tool_dirs
13469do
13470 IFS=$as_save_IFS
13471 test -z "$as_dir" && as_dir=.
13472 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3f71364d 13474 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13476 break 2
13477 fi
13478done
13479 done
13480IFS=$as_save_IFS
13481
13482 ;;
13483esac
13484fi
13485READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13486if test -n "$READELF_FOR_TARGET"; then
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13488$as_echo "$READELF_FOR_TARGET" >&6; }
13489else
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13491$as_echo "no" >&6; }
13492fi
13493
13494
13495fi
13496if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13497
13498
13499if test -n "$READELF_FOR_TARGET"; then
13500 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13501elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13502 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13503fi
13504
13505if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13506 for ncn_progname in readelf; do
13507 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13508set dummy ${ncn_progname}; ac_word=$2
13509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13510$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13511if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
3f71364d 13512 $as_echo_n "(cached) " >&6
13513else
13514 if test -n "$READELF_FOR_TARGET"; then
13515 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13516else
13517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13518for as_dir in $PATH
13519do
13520 IFS=$as_save_IFS
13521 test -z "$as_dir" && as_dir=.
13522 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3f71364d 13524 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13526 break 2
13527 fi
13528done
13529 done
13530IFS=$as_save_IFS
13531
13532fi
13533fi
13534READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13535if test -n "$READELF_FOR_TARGET"; then
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13537$as_echo "$READELF_FOR_TARGET" >&6; }
13538else
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13540$as_echo "no" >&6; }
13541fi
13542
13543
13544 done
13545fi
13546
13547if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13548 for ncn_progname in readelf; do
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13550$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13551 if test -x $with_build_time_tools/${ncn_progname}; then
13552 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13554$as_echo "yes" >&6; }
13555 break
13556 else
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13558$as_echo "no" >&6; }
13559 fi
13560 done
13561fi
13562
13563if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13564 for ncn_progname in readelf; do
13565 if test -n "$ncn_target_tool_prefix"; then
13566 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13567set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13569$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13570if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
3f71364d 13571 $as_echo_n "(cached) " >&6
13572else
13573 if test -n "$READELF_FOR_TARGET"; then
13574 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13575else
13576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13577for as_dir in $PATH
13578do
13579 IFS=$as_save_IFS
13580 test -z "$as_dir" && as_dir=.
13581 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3f71364d 13583 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13585 break 2
13586 fi
13587done
13588 done
13589IFS=$as_save_IFS
13590
13591fi
13592fi
13593READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13594if test -n "$READELF_FOR_TARGET"; then
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13596$as_echo "$READELF_FOR_TARGET" >&6; }
13597else
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13599$as_echo "no" >&6; }
13600fi
13601
13602
13603 fi
13604 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13605 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13606set dummy ${ncn_progname}; ac_word=$2
13607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13608$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13609if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
3f71364d 13610 $as_echo_n "(cached) " >&6
13611else
13612 if test -n "$READELF_FOR_TARGET"; then
13613 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13614else
13615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13616for as_dir in $PATH
13617do
13618 IFS=$as_save_IFS
13619 test -z "$as_dir" && as_dir=.
13620 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3f71364d 13622 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13624 break 2
13625 fi
13626done
13627 done
13628IFS=$as_save_IFS
13629
13630fi
13631fi
13632READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13633if test -n "$READELF_FOR_TARGET"; then
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13635$as_echo "$READELF_FOR_TARGET" >&6; }
13636else
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13638$as_echo "no" >&6; }
13639fi
13640
13641
13642 fi
13643 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13644 done
13645fi
13646
13647if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13648 set dummy readelf
13649 if test $build = $target ; then
13650 READELF_FOR_TARGET="$2"
13651 else
13652 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13653 fi
13654else
13655 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13656fi
13657
13658else
13659 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13660fi
13661
13662
13663
13664
c47832b1 13665if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13666 if test -n "$with_build_time_tools"; then
cd9a469c 13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13668$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
ab0da556 13669 if test -x $with_build_time_tools/strip; then
13670 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13671 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
cd9a469c 13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13673$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
ab0da556 13674 else
cd9a469c 13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13676$as_echo "no" >&6; }
ab0da556 13677 fi
c47832b1 13678 elif test $build != $host && test $have_gcc_for_target = yes; then
13679 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
b7ef8464 13680 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13681 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c47832b1 13682 fi
13683fi
38d7211b 13684if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 13685 # Extract the first word of "strip", so it can be a program name with args.
13686set dummy strip; ac_word=$2
cd9a469c 13687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13688$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13689if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
cd9a469c 13690 $as_echo_n "(cached) " >&6
c47832b1 13691else
b30fcfae 13692 case $STRIP_FOR_TARGET in
13693 [\\/]* | ?:[\\/]*)
c47832b1 13694 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13695 ;;
c47832b1 13696 *)
b30fcfae 13697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13698for as_dir in $gcc_cv_tool_dirs
13699do
13700 IFS=$as_save_IFS
13701 test -z "$as_dir" && as_dir=.
cd9a469c 13702 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 13704 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 13705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 13706 break 2
13707 fi
13708done
cd9a469c 13709 done
13710IFS=$as_save_IFS
b30fcfae 13711
c47832b1 13712 ;;
13713esac
13714fi
b30fcfae 13715STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
c47832b1 13716if test -n "$STRIP_FOR_TARGET"; then
cd9a469c 13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13718$as_echo "$STRIP_FOR_TARGET" >&6; }
c47832b1 13719else
cd9a469c 13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13721$as_echo "no" >&6; }
c47832b1 13722fi
13723
cd9a469c 13724
c47832b1 13725fi
13726if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
95a05732 13727
13728
13729if test -n "$STRIP_FOR_TARGET"; then
13730 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13731elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13732 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13733fi
13734
13735if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13736 for ncn_progname in strip; do
13737 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13738set dummy ${ncn_progname}; ac_word=$2
cd9a469c 13739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13740$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13741if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
cd9a469c 13742 $as_echo_n "(cached) " >&6
95a05732 13743else
13744 if test -n "$STRIP_FOR_TARGET"; then
13745 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13746else
13747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13748for as_dir in $PATH
13749do
13750 IFS=$as_save_IFS
13751 test -z "$as_dir" && as_dir=.
cd9a469c 13752 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 13754 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
cd9a469c 13755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 13756 break 2
13757 fi
13758done
cd9a469c 13759 done
13760IFS=$as_save_IFS
95a05732 13761
13762fi
13763fi
13764STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13765if test -n "$STRIP_FOR_TARGET"; then
cd9a469c 13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13767$as_echo "$STRIP_FOR_TARGET" >&6; }
95a05732 13768else
cd9a469c 13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13770$as_echo "no" >&6; }
95a05732 13771fi
13772
cd9a469c 13773
95a05732 13774 done
13775fi
13776
13777if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 13778 for ncn_progname in strip; do
cd9a469c 13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13780$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 13781 if test -x $with_build_time_tools/${ncn_progname}; then
13782 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13784$as_echo "yes" >&6; }
c47832b1 13785 break
13786 else
cd9a469c 13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13788$as_echo "no" >&6; }
c47832b1 13789 fi
13790 done
13791fi
13792
13793if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13794 for ncn_progname in strip; do
13795 if test -n "$ncn_target_tool_prefix"; then
13796 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9fec3fa8 13797set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 13798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13799$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13800if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
cd9a469c 13801 $as_echo_n "(cached) " >&6
ae48753c 13802else
13803 if test -n "$STRIP_FOR_TARGET"; then
b30fcfae 13804 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13805else
13806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13807for as_dir in $PATH
13808do
13809 IFS=$as_save_IFS
13810 test -z "$as_dir" && as_dir=.
cd9a469c 13811 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 13813 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 13814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 13815 break 2
13816 fi
13817done
cd9a469c 13818 done
13819IFS=$as_save_IFS
b30fcfae 13820
9fec3fa8 13821fi
13822fi
b30fcfae 13823STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
9fec3fa8 13824if test -n "$STRIP_FOR_TARGET"; then
cd9a469c 13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13826$as_echo "$STRIP_FOR_TARGET" >&6; }
9fec3fa8 13827else
cd9a469c 13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13829$as_echo "no" >&6; }
9fec3fa8 13830fi
13831
cd9a469c 13832
c47832b1 13833 fi
13834 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13835 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9fec3fa8 13836set dummy ${ncn_progname}; ac_word=$2
cd9a469c 13837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13838$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13839if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
cd9a469c 13840 $as_echo_n "(cached) " >&6
9fec3fa8 13841else
13842 if test -n "$STRIP_FOR_TARGET"; then
13843 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13844else
b30fcfae 13845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13846for as_dir in $PATH
13847do
13848 IFS=$as_save_IFS
13849 test -z "$as_dir" && as_dir=.
cd9a469c 13850 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 13852 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
cd9a469c 13853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 13854 break 2
13855 fi
13856done
cd9a469c 13857 done
13858IFS=$as_save_IFS
b30fcfae 13859
9fec3fa8 13860fi
13861fi
b30fcfae 13862STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
9fec3fa8 13863if test -n "$STRIP_FOR_TARGET"; then
cd9a469c 13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13865$as_echo "$STRIP_FOR_TARGET" >&6; }
9fec3fa8 13866else
cd9a469c 13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13868$as_echo "no" >&6; }
9fec3fa8 13869fi
b30fcfae 13870
cd9a469c 13871
c47832b1 13872 fi
13873 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13874 done
13875fi
b30fcfae 13876
9fec3fa8 13877if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13878 set dummy strip
13879 if test $build = $target ; then
13880 STRIP_FOR_TARGET="$2"
13881 else
13882 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13883 fi
b7ef8464 13884else
13885 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
9fec3fa8 13886fi
13887
ab0da556 13888else
13889 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
c47832b1 13890fi
13891
13892
13893
13894
13895if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13896 if test -n "$with_build_time_tools"; then
cd9a469c 13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13898$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
ab0da556 13899 if test -x $with_build_time_tools/windres; then
13900 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13901 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
cd9a469c 13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13903$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
ab0da556 13904 else
cd9a469c 13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13906$as_echo "no" >&6; }
ab0da556 13907 fi
c47832b1 13908 elif test $build != $host && test $have_gcc_for_target = yes; then
13909 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
b7ef8464 13910 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13911 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c47832b1 13912 fi
13913fi
38d7211b 13914if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 13915 # Extract the first word of "windres", so it can be a program name with args.
13916set dummy windres; ac_word=$2
cd9a469c 13917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13918$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13919if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
cd9a469c 13920 $as_echo_n "(cached) " >&6
c47832b1 13921else
b30fcfae 13922 case $WINDRES_FOR_TARGET in
13923 [\\/]* | ?:[\\/]*)
c47832b1 13924 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13925 ;;
c47832b1 13926 *)
b30fcfae 13927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13928for as_dir in $gcc_cv_tool_dirs
13929do
13930 IFS=$as_save_IFS
13931 test -z "$as_dir" && as_dir=.
cd9a469c 13932 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 13934 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 13935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 13936 break 2
13937 fi
13938done
cd9a469c 13939 done
13940IFS=$as_save_IFS
b30fcfae 13941
c47832b1 13942 ;;
13943esac
13944fi
b30fcfae 13945WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
c47832b1 13946if test -n "$WINDRES_FOR_TARGET"; then
cd9a469c 13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13948$as_echo "$WINDRES_FOR_TARGET" >&6; }
c47832b1 13949else
cd9a469c 13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13951$as_echo "no" >&6; }
c47832b1 13952fi
13953
cd9a469c 13954
c47832b1 13955fi
13956if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
95a05732 13957
13958
13959if test -n "$WINDRES_FOR_TARGET"; then
13960 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13961elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13962 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13963fi
13964
13965if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13966 for ncn_progname in windres; do
13967 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13968set dummy ${ncn_progname}; ac_word=$2
cd9a469c 13969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13970$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13971if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
cd9a469c 13972 $as_echo_n "(cached) " >&6
95a05732 13973else
13974 if test -n "$WINDRES_FOR_TARGET"; then
13975 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13976else
13977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13978for as_dir in $PATH
13979do
13980 IFS=$as_save_IFS
13981 test -z "$as_dir" && as_dir=.
cd9a469c 13982 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 13984 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
cd9a469c 13985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 13986 break 2
13987 fi
13988done
cd9a469c 13989 done
13990IFS=$as_save_IFS
95a05732 13991
13992fi
13993fi
13994WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13995if test -n "$WINDRES_FOR_TARGET"; then
cd9a469c 13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13997$as_echo "$WINDRES_FOR_TARGET" >&6; }
95a05732 13998else
cd9a469c 13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14000$as_echo "no" >&6; }
95a05732 14001fi
14002
cd9a469c 14003
95a05732 14004 done
14005fi
14006
14007if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 14008 for ncn_progname in windres; do
cd9a469c 14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14010$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 14011 if test -x $with_build_time_tools/${ncn_progname}; then
14012 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14014$as_echo "yes" >&6; }
c47832b1 14015 break
14016 else
cd9a469c 14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14018$as_echo "no" >&6; }
c47832b1 14019 fi
14020 done
14021fi
14022
14023if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
14024 for ncn_progname in windres; do
14025 if test -n "$ncn_target_tool_prefix"; then
14026 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 14027set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 14028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14029$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 14030if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
cd9a469c 14031 $as_echo_n "(cached) " >&6
bb612911 14032else
ef8184c7 14033 if test -n "$WINDRES_FOR_TARGET"; then
14034 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
bb612911 14035else
b30fcfae 14036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14037for as_dir in $PATH
14038do
14039 IFS=$as_save_IFS
14040 test -z "$as_dir" && as_dir=.
cd9a469c 14041 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 14042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 14043 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 14044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 14045 break 2
14046 fi
14047done
cd9a469c 14048 done
14049IFS=$as_save_IFS
b30fcfae 14050
bb612911 14051fi
14052fi
b30fcfae 14053WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
ef8184c7 14054if test -n "$WINDRES_FOR_TARGET"; then
cd9a469c 14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14056$as_echo "$WINDRES_FOR_TARGET" >&6; }
bb612911 14057else
cd9a469c 14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14059$as_echo "no" >&6; }
bb612911 14060fi
14061
cd9a469c 14062
c47832b1 14063 fi
14064 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
14065 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 14066set dummy ${ncn_progname}; ac_word=$2
cd9a469c 14067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14068$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 14069if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
cd9a469c 14070 $as_echo_n "(cached) " >&6
bb612911 14071else
768691b5 14072 if test -n "$WINDRES_FOR_TARGET"; then
14073 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
bb612911 14074else
b30fcfae 14075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14076for as_dir in $PATH
14077do
14078 IFS=$as_save_IFS
14079 test -z "$as_dir" && as_dir=.
cd9a469c 14080 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 14081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 14082 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
cd9a469c 14083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 14084 break 2
14085 fi
14086done
cd9a469c 14087 done
14088IFS=$as_save_IFS
b30fcfae 14089
bb612911 14090fi
14091fi
b30fcfae 14092WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
768691b5 14093if test -n "$WINDRES_FOR_TARGET"; then
cd9a469c 14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14095$as_echo "$WINDRES_FOR_TARGET" >&6; }
bb612911 14096else
cd9a469c 14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14098$as_echo "no" >&6; }
bb612911 14099fi
b30fcfae 14100
cd9a469c 14101
c47832b1 14102 fi
14103 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
14104 done
14105fi
b30fcfae 14106
768691b5 14107if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
14108 set dummy windres
14109 if test $build = $target ; then
14110 WINDRES_FOR_TARGET="$2"
bb612911 14111 else
768691b5 14112 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 14113 fi
b7ef8464 14114else
14115 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
bb612911 14116fi
14117
ab0da556 14118else
14119 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
c47832b1 14120fi
14121
805e22b2 14122
75d6a0a9 14123
14124
14125if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14126 if test -n "$with_build_time_tools"; then
cd9a469c 14127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
14128$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
75d6a0a9 14129 if test -x $with_build_time_tools/windmc; then
14130 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
14131 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
cd9a469c 14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
14133$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
75d6a0a9 14134 else
cd9a469c 14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14136$as_echo "no" >&6; }
75d6a0a9 14137 fi
14138 elif test $build != $host && test $have_gcc_for_target = yes; then
14139 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
b7ef8464 14140 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
14141 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
75d6a0a9 14142 fi
14143fi
14144if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14145 # Extract the first word of "windmc", so it can be a program name with args.
14146set dummy windmc; ac_word=$2
cd9a469c 14147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14148$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 14149if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
cd9a469c 14150 $as_echo_n "(cached) " >&6
75d6a0a9 14151else
14152 case $WINDMC_FOR_TARGET in
14153 [\\/]* | ?:[\\/]*)
14154 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
14155 ;;
14156 *)
14157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14158for as_dir in $gcc_cv_tool_dirs
14159do
14160 IFS=$as_save_IFS
14161 test -z "$as_dir" && as_dir=.
cd9a469c 14162 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 14163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
75d6a0a9 14164 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 14165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 14166 break 2
14167 fi
14168done
cd9a469c 14169 done
14170IFS=$as_save_IFS
75d6a0a9 14171
14172 ;;
14173esac
14174fi
14175WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
75d6a0a9 14176if test -n "$WINDMC_FOR_TARGET"; then
cd9a469c 14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14178$as_echo "$WINDMC_FOR_TARGET" >&6; }
75d6a0a9 14179else
cd9a469c 14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14181$as_echo "no" >&6; }
75d6a0a9 14182fi
14183
cd9a469c 14184
75d6a0a9 14185fi
14186if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14187
14188
14189if test -n "$WINDMC_FOR_TARGET"; then
14190 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14191elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14192 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14193fi
14194
14195if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14196 for ncn_progname in windmc; do
14197 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14198set dummy ${ncn_progname}; ac_word=$2
cd9a469c 14199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14200$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 14201if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
cd9a469c 14202 $as_echo_n "(cached) " >&6
75d6a0a9 14203else
14204 if test -n "$WINDMC_FOR_TARGET"; then
14205 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14206else
14207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14208for as_dir in $PATH
14209do
14210 IFS=$as_save_IFS
14211 test -z "$as_dir" && as_dir=.
cd9a469c 14212 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 14213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
75d6a0a9 14214 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
cd9a469c 14215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 14216 break 2
14217 fi
14218done
cd9a469c 14219 done
14220IFS=$as_save_IFS
75d6a0a9 14221
14222fi
14223fi
14224WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14225if test -n "$WINDMC_FOR_TARGET"; then
cd9a469c 14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14227$as_echo "$WINDMC_FOR_TARGET" >&6; }
75d6a0a9 14228else
cd9a469c 14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14230$as_echo "no" >&6; }
75d6a0a9 14231fi
14232
cd9a469c 14233
75d6a0a9 14234 done
14235fi
14236
14237if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14238 for ncn_progname in windmc; do
cd9a469c 14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14240$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
75d6a0a9 14241 if test -x $with_build_time_tools/${ncn_progname}; then
14242 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14244$as_echo "yes" >&6; }
75d6a0a9 14245 break
14246 else
cd9a469c 14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14248$as_echo "no" >&6; }
75d6a0a9 14249 fi
14250 done
14251fi
14252
14253if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14254 for ncn_progname in windmc; do
14255 if test -n "$ncn_target_tool_prefix"; then
14256 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14257set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 14258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14259$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 14260if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
cd9a469c 14261 $as_echo_n "(cached) " >&6
75d6a0a9 14262else
14263 if test -n "$WINDMC_FOR_TARGET"; then
14264 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14265else
14266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14267for as_dir in $PATH
14268do
14269 IFS=$as_save_IFS
14270 test -z "$as_dir" && as_dir=.
cd9a469c 14271 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 14272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
75d6a0a9 14273 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 14274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 14275 break 2
14276 fi
14277done
cd9a469c 14278 done
14279IFS=$as_save_IFS
75d6a0a9 14280
14281fi
14282fi
14283WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14284if test -n "$WINDMC_FOR_TARGET"; then
cd9a469c 14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14286$as_echo "$WINDMC_FOR_TARGET" >&6; }
75d6a0a9 14287else
cd9a469c 14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14289$as_echo "no" >&6; }
75d6a0a9 14290fi
14291
cd9a469c 14292
75d6a0a9 14293 fi
14294 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
14295 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14296set dummy ${ncn_progname}; ac_word=$2
cd9a469c 14297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14298$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 14299if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
cd9a469c 14300 $as_echo_n "(cached) " >&6
75d6a0a9 14301else
14302 if test -n "$WINDMC_FOR_TARGET"; then
14303 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14304else
14305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14306for as_dir in $PATH
14307do
14308 IFS=$as_save_IFS
14309 test -z "$as_dir" && as_dir=.
cd9a469c 14310 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 14311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
75d6a0a9 14312 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
cd9a469c 14313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 14314 break 2
14315 fi
14316done
cd9a469c 14317 done
14318IFS=$as_save_IFS
75d6a0a9 14319
14320fi
14321fi
14322WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14323if test -n "$WINDMC_FOR_TARGET"; then
cd9a469c 14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14325$as_echo "$WINDMC_FOR_TARGET" >&6; }
75d6a0a9 14326else
cd9a469c 14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14328$as_echo "no" >&6; }
75d6a0a9 14329fi
14330
cd9a469c 14331
75d6a0a9 14332 fi
14333 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
14334 done
14335fi
14336
14337if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
14338 set dummy windmc
14339 if test $build = $target ; then
14340 WINDMC_FOR_TARGET="$2"
14341 else
14342 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14343 fi
b7ef8464 14344else
14345 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
75d6a0a9 14346fi
14347
14348else
14349 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14350fi
14351
14352
f5aebe3e 14353RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
14354
cd9a469c 14355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
14356$as_echo_n "checking where to find the target ar... " >&6; }
f5aebe3e 14357if test "x${build}" != "x${host}" ; then
c47832b1 14358 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14359 # We already found the complete path
a6c599b5 14360 ac_dir=`dirname $AR_FOR_TARGET`
cd9a469c 14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14362$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14363 else
14364 # Canadian cross, just use what we found
cd9a469c 14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14366$as_echo "pre-installed" >&6; }
c47832b1 14367 fi
f5aebe3e 14368else
14369 ok=yes
14370 case " ${configdirs} " in
14371 *" binutils "*) ;;
14372 *) ok=no ;;
14373 esac
b30fcfae 14374
f5aebe3e 14375 if test $ok = yes; then
14376 # An in-tree tool is available and we can use it
14377 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
cd9a469c 14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14379$as_echo "just compiled" >&6; }
c47832b1 14380 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14381 # We already found the complete path
a6c599b5 14382 ac_dir=`dirname $AR_FOR_TARGET`
cd9a469c 14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14384$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14385 elif test "x$target" = "x$host"; then
14386 # We can use an host tool
14387 AR_FOR_TARGET='$(AR)'
cd9a469c 14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14389$as_echo "host tool" >&6; }
f5aebe3e 14390 else
14391 # We need a cross tool
cd9a469c 14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14393$as_echo "pre-installed" >&6; }
f5aebe3e 14394 fi
14395fi
a83ffacf 14396
cd9a469c 14397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14398$as_echo_n "checking where to find the target as... " >&6; }
f5aebe3e 14399if test "x${build}" != "x${host}" ; then
c47832b1 14400 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14401 # We already found the complete path
a6c599b5 14402 ac_dir=`dirname $AS_FOR_TARGET`
cd9a469c 14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14404$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14405 else
14406 # Canadian cross, just use what we found
cd9a469c 14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14408$as_echo "pre-installed" >&6; }
c47832b1 14409 fi
f5aebe3e 14410else
14411 ok=yes
14412 case " ${configdirs} " in
14413 *" gas "*) ;;
14414 *) ok=no ;;
14415 esac
b30fcfae 14416
f5aebe3e 14417 if test $ok = yes; then
14418 # An in-tree tool is available and we can use it
14419 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
cd9a469c 14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14421$as_echo "just compiled" >&6; }
c47832b1 14422 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14423 # We already found the complete path
a6c599b5 14424 ac_dir=`dirname $AS_FOR_TARGET`
cd9a469c 14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14426$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14427 elif test "x$target" = "x$host"; then
14428 # We can use an host tool
14429 AS_FOR_TARGET='$(AS)'
cd9a469c 14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14431$as_echo "host tool" >&6; }
f5aebe3e 14432 else
14433 # We need a cross tool
cd9a469c 14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14435$as_echo "pre-installed" >&6; }
f5aebe3e 14436 fi
14437fi
a83ffacf 14438
cd9a469c 14439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14440$as_echo_n "checking where to find the target cc... " >&6; }
f5aebe3e 14441if test "x${build}" != "x${host}" ; then
c47832b1 14442 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14443 # We already found the complete path
a6c599b5 14444 ac_dir=`dirname $CC_FOR_TARGET`
cd9a469c 14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14446$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14447 else
14448 # Canadian cross, just use what we found
cd9a469c 14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14450$as_echo "pre-installed" >&6; }
c47832b1 14451 fi
f5aebe3e 14452else
14453 ok=yes
14454 case " ${configdirs} " in
14455 *" gcc "*) ;;
14456 *) ok=no ;;
14457 esac
b30fcfae 14458
f5aebe3e 14459 if test $ok = yes; then
14460 # An in-tree tool is available and we can use it
14461 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
cd9a469c 14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14463$as_echo "just compiled" >&6; }
c47832b1 14464 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14465 # We already found the complete path
a6c599b5 14466 ac_dir=`dirname $CC_FOR_TARGET`
cd9a469c 14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14468$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14469 elif test "x$target" = "x$host"; then
14470 # We can use an host tool
14471 CC_FOR_TARGET='$(CC)'
cd9a469c 14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14473$as_echo "host tool" >&6; }
f5aebe3e 14474 else
14475 # We need a cross tool
cd9a469c 14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14477$as_echo "pre-installed" >&6; }
f5aebe3e 14478 fi
14479fi
a83ffacf 14480
cd9a469c 14481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14482$as_echo_n "checking where to find the target c++... " >&6; }
f5aebe3e 14483if test "x${build}" != "x${host}" ; then
c47832b1 14484 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14485 # We already found the complete path
a6c599b5 14486 ac_dir=`dirname $CXX_FOR_TARGET`
cd9a469c 14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14488$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14489 else
14490 # Canadian cross, just use what we found
cd9a469c 14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14492$as_echo "pre-installed" >&6; }
c47832b1 14493 fi
f5aebe3e 14494else
14495 ok=yes
14496 case " ${configdirs} " in
14497 *" gcc "*) ;;
14498 *) ok=no ;;
14499 esac
14500 case ,${enable_languages}, in
14501 *,c++,*) ;;
14502 *) ok=no ;;
14503 esac
14504 if test $ok = yes; then
14505 # An in-tree tool is available and we can use it
b710ec85 14506 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 14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14508$as_echo "just compiled" >&6; }
c47832b1 14509 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14510 # We already found the complete path
a6c599b5 14511 ac_dir=`dirname $CXX_FOR_TARGET`
cd9a469c 14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14513$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14514 elif test "x$target" = "x$host"; then
14515 # We can use an host tool
14516 CXX_FOR_TARGET='$(CXX)'
cd9a469c 14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14518$as_echo "host tool" >&6; }
f5aebe3e 14519 else
14520 # We need a cross tool
cd9a469c 14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14522$as_echo "pre-installed" >&6; }
f5aebe3e 14523 fi
14524fi
a83ffacf 14525
cd9a469c 14526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14527$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
f5aebe3e 14528if test "x${build}" != "x${host}" ; then
c47832b1 14529 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14530 # We already found the complete path
a6c599b5 14531 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
cd9a469c 14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14533$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14534 else
14535 # Canadian cross, just use what we found
cd9a469c 14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14537$as_echo "pre-installed" >&6; }
c47832b1 14538 fi
f5aebe3e 14539else
14540 ok=yes
14541 case " ${configdirs} " in
14542 *" gcc "*) ;;
14543 *) ok=no ;;
14544 esac
14545 case ,${enable_languages}, in
14546 *,c++,*) ;;
14547 *) ok=no ;;
14548 esac
14549 if test $ok = yes; then
14550 # An in-tree tool is available and we can use it
b710ec85 14551 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 14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14553$as_echo "just compiled" >&6; }
c47832b1 14554 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14555 # We already found the complete path
a6c599b5 14556 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
cd9a469c 14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14558$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14559 elif test "x$target" = "x$host"; then
14560 # We can use an host tool
14561 RAW_CXX_FOR_TARGET='$(CXX)'
cd9a469c 14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14563$as_echo "host tool" >&6; }
f5aebe3e 14564 else
14565 # We need a cross tool
cd9a469c 14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14567$as_echo "pre-installed" >&6; }
f5aebe3e 14568 fi
14569fi
a83ffacf 14570
cd9a469c 14571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14572$as_echo_n "checking where to find the target dlltool... " >&6; }
f5aebe3e 14573if test "x${build}" != "x${host}" ; then
c47832b1 14574 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14575 # We already found the complete path
a6c599b5 14576 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
cd9a469c 14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14578$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14579 else
14580 # Canadian cross, just use what we found
cd9a469c 14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14582$as_echo "pre-installed" >&6; }
c47832b1 14583 fi
f5aebe3e 14584else
14585 ok=yes
14586 case " ${configdirs} " in
14587 *" binutils "*) ;;
14588 *) ok=no ;;
14589 esac
b30fcfae 14590
f5aebe3e 14591 if test $ok = yes; then
14592 # An in-tree tool is available and we can use it
14593 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
cd9a469c 14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14595$as_echo "just compiled" >&6; }
c47832b1 14596 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14597 # We already found the complete path
a6c599b5 14598 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
cd9a469c 14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14600$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14601 elif test "x$target" = "x$host"; then
14602 # We can use an host tool
14603 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
cd9a469c 14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14605$as_echo "host tool" >&6; }
f5aebe3e 14606 else
14607 # We need a cross tool
cd9a469c 14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14609$as_echo "pre-installed" >&6; }
f5aebe3e 14610 fi
14611fi
a83ffacf 14612
cd9a469c 14613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14614$as_echo_n "checking where to find the target gcc... " >&6; }
f5aebe3e 14615if test "x${build}" != "x${host}" ; then
c47832b1 14616 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14617 # We already found the complete path
a6c599b5 14618 ac_dir=`dirname $GCC_FOR_TARGET`
cd9a469c 14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14620$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14621 else
14622 # Canadian cross, just use what we found
cd9a469c 14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14624$as_echo "pre-installed" >&6; }
c47832b1 14625 fi
f5aebe3e 14626else
14627 ok=yes
14628 case " ${configdirs} " in
14629 *" gcc "*) ;;
14630 *) ok=no ;;
14631 esac
b30fcfae 14632
f5aebe3e 14633 if test $ok = yes; then
14634 # An in-tree tool is available and we can use it
14635 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
cd9a469c 14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14637$as_echo "just compiled" >&6; }
c47832b1 14638 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14639 # We already found the complete path
a6c599b5 14640 ac_dir=`dirname $GCC_FOR_TARGET`
cd9a469c 14641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14642$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14643 elif test "x$target" = "x$host"; then
14644 # We can use an host tool
14645 GCC_FOR_TARGET='$()'
cd9a469c 14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14647$as_echo "host tool" >&6; }
f5aebe3e 14648 else
14649 # We need a cross tool
cd9a469c 14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14651$as_echo "pre-installed" >&6; }
f5aebe3e 14652 fi
14653fi
a83ffacf 14654
cd9a469c 14655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14656$as_echo_n "checking where to find the target gfortran... " >&6; }
f5aebe3e 14657if test "x${build}" != "x${host}" ; then
c47832b1 14658 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14659 # We already found the complete path
a6c599b5 14660 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
cd9a469c 14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14662$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14663 else
14664 # Canadian cross, just use what we found
cd9a469c 14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14666$as_echo "pre-installed" >&6; }
c47832b1 14667 fi
f5aebe3e 14668else
14669 ok=yes
14670 case " ${configdirs} " in
14671 *" gcc "*) ;;
14672 *) ok=no ;;
14673 esac
14674 case ,${enable_languages}, in
14675 *,fortran,*) ;;
14676 *) ok=no ;;
14677 esac
14678 if test $ok = yes; then
14679 # An in-tree tool is available and we can use it
14680 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
cd9a469c 14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14682$as_echo "just compiled" >&6; }
c47832b1 14683 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14684 # We already found the complete path
a6c599b5 14685 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
cd9a469c 14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14687$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14688 elif test "x$target" = "x$host"; then
14689 # We can use an host tool
14690 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
cd9a469c 14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14692$as_echo "host tool" >&6; }
f5aebe3e 14693 else
14694 # We need a cross tool
cd9a469c 14695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14696$as_echo "pre-installed" >&6; }
f5aebe3e 14697 fi
14698fi
a83ffacf 14699
5ff5b630 14700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14701$as_echo_n "checking where to find the target gccgo... " >&6; }
14702if test "x${build}" != "x${host}" ; then
14703 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14704 # We already found the complete path
14705 ac_dir=`dirname $GOC_FOR_TARGET`
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14707$as_echo "pre-installed in $ac_dir" >&6; }
14708 else
14709 # Canadian cross, just use what we found
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14711$as_echo "pre-installed" >&6; }
14712 fi
14713else
14714 ok=yes
14715 case " ${configdirs} " in
14716 *" gcc "*) ;;
14717 *) ok=no ;;
14718 esac
14719 case ,${enable_languages}, in
14720 *,go,*) ;;
14721 *) ok=no ;;
14722 esac
14723 if test $ok = yes; then
14724 # An in-tree tool is available and we can use it
14725 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14727$as_echo "just compiled" >&6; }
14728 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14729 # We already found the complete path
14730 ac_dir=`dirname $GOC_FOR_TARGET`
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14732$as_echo "pre-installed in $ac_dir" >&6; }
14733 elif test "x$target" = "x$host"; then
14734 # We can use an host tool
14735 GOC_FOR_TARGET='$(GOC)'
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14737$as_echo "host tool" >&6; }
14738 else
14739 # We need a cross tool
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14741$as_echo "pre-installed" >&6; }
14742 fi
14743fi
14744
03385ed3 14745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
14746$as_echo_n "checking where to find the target gdc... " >&6; }
14747if test "x${build}" != "x${host}" ; then
14748 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
14749 # We already found the complete path
14750 ac_dir=`dirname $GDC_FOR_TARGET`
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14752$as_echo "pre-installed in $ac_dir" >&6; }
14753 else
14754 # Canadian cross, just use what we found
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14756$as_echo "pre-installed" >&6; }
14757 fi
14758else
14759 ok=yes
14760 case " ${configdirs} " in
14761 *" gcc "*) ;;
14762 *) ok=no ;;
14763 esac
14764 case ,${enable_languages}, in
14765 *,d,*) ;;
14766 *) ok=no ;;
14767 esac
14768 if test $ok = yes; then
14769 # An in-tree tool is available and we can use it
14770 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14772$as_echo "just compiled" >&6; }
14773 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
14774 # We already found the complete path
14775 ac_dir=`dirname $GDC_FOR_TARGET`
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14777$as_echo "pre-installed in $ac_dir" >&6; }
14778 elif test "x$target" = "x$host"; then
14779 # We can use an host tool
14780 GDC_FOR_TARGET='$(GDC)'
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14782$as_echo "host tool" >&6; }
14783 else
14784 # We need a cross tool
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14786$as_echo "pre-installed" >&6; }
14787 fi
14788fi
14789
cd9a469c 14790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14791$as_echo_n "checking where to find the target ld... " >&6; }
f5aebe3e 14792if test "x${build}" != "x${host}" ; then
c47832b1 14793 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14794 # We already found the complete path
a6c599b5 14795 ac_dir=`dirname $LD_FOR_TARGET`
cd9a469c 14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14797$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14798 else
14799 # Canadian cross, just use what we found
cd9a469c 14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14801$as_echo "pre-installed" >&6; }
c47832b1 14802 fi
f5aebe3e 14803else
14804 ok=yes
14805 case " ${configdirs} " in
14806 *" ld "*) ;;
14807 *) ok=no ;;
14808 esac
b30fcfae 14809
f5aebe3e 14810 if test $ok = yes; then
14811 # An in-tree tool is available and we can use it
14812 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
cd9a469c 14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14814$as_echo "just compiled" >&6; }
c47832b1 14815 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14816 # We already found the complete path
a6c599b5 14817 ac_dir=`dirname $LD_FOR_TARGET`
cd9a469c 14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14819$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14820 elif test "x$target" = "x$host"; then
14821 # We can use an host tool
14822 LD_FOR_TARGET='$(LD)'
cd9a469c 14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14824$as_echo "host tool" >&6; }
f5aebe3e 14825 else
14826 # We need a cross tool
cd9a469c 14827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14828$as_echo "pre-installed" >&6; }
f5aebe3e 14829 fi
14830fi
a83ffacf 14831
cd9a469c 14832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14833$as_echo_n "checking where to find the target lipo... " >&6; }
f5aebe3e 14834if test "x${build}" != "x${host}" ; then
c47832b1 14835 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14836 # We already found the complete path
a6c599b5 14837 ac_dir=`dirname $LIPO_FOR_TARGET`
cd9a469c 14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14839$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14840 else
14841 # Canadian cross, just use what we found
cd9a469c 14842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14843$as_echo "pre-installed" >&6; }
c47832b1 14844 fi
f5aebe3e 14845else
c47832b1 14846 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14847 # We already found the complete path
a6c599b5 14848 ac_dir=`dirname $LIPO_FOR_TARGET`
cd9a469c 14849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14850$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14851 elif test "x$target" = "x$host"; then
f5aebe3e 14852 # We can use an host tool
14853 LIPO_FOR_TARGET='$(LIPO)'
cd9a469c 14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14855$as_echo "host tool" >&6; }
f5aebe3e 14856 else
14857 # We need a cross tool
cd9a469c 14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14859$as_echo "pre-installed" >&6; }
f5aebe3e 14860 fi
14861fi
a83ffacf 14862
cd9a469c 14863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14864$as_echo_n "checking where to find the target nm... " >&6; }
f5aebe3e 14865if test "x${build}" != "x${host}" ; then
c47832b1 14866 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14867 # We already found the complete path
a6c599b5 14868 ac_dir=`dirname $NM_FOR_TARGET`
cd9a469c 14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14870$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14871 else
14872 # Canadian cross, just use what we found
cd9a469c 14873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14874$as_echo "pre-installed" >&6; }
c47832b1 14875 fi
f5aebe3e 14876else
14877 ok=yes
14878 case " ${configdirs} " in
14879 *" binutils "*) ;;
14880 *) ok=no ;;
14881 esac
b30fcfae 14882
f5aebe3e 14883 if test $ok = yes; then
14884 # An in-tree tool is available and we can use it
14885 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
cd9a469c 14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14887$as_echo "just compiled" >&6; }
c47832b1 14888 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14889 # We already found the complete path
a6c599b5 14890 ac_dir=`dirname $NM_FOR_TARGET`
cd9a469c 14891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14892$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14893 elif test "x$target" = "x$host"; then
14894 # We can use an host tool
14895 NM_FOR_TARGET='$(NM)'
cd9a469c 14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14897$as_echo "host tool" >&6; }
f5aebe3e 14898 else
14899 # We need a cross tool
cd9a469c 14900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14901$as_echo "pre-installed" >&6; }
f5aebe3e 14902 fi
14903fi
a83ffacf 14904
fc740d70 14905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14906$as_echo_n "checking where to find the target objcopy... " >&6; }
14907if test "x${build}" != "x${host}" ; then
14908 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14909 # We already found the complete path
14910 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14912$as_echo "pre-installed in $ac_dir" >&6; }
14913 else
14914 # Canadian cross, just use what we found
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14916$as_echo "pre-installed" >&6; }
14917 fi
14918else
14919 ok=yes
14920 case " ${configdirs} " in
14921 *" binutils "*) ;;
14922 *) ok=no ;;
14923 esac
14924
14925 if test $ok = yes; then
14926 # An in-tree tool is available and we can use it
14927 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14929$as_echo "just compiled" >&6; }
14930 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14931 # We already found the complete path
14932 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14934$as_echo "pre-installed in $ac_dir" >&6; }
14935 elif test "x$target" = "x$host"; then
14936 # We can use an host tool
9b31ae9c 14937 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
fc740d70 14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14939$as_echo "host tool" >&6; }
14940 else
14941 # We need a cross tool
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14943$as_echo "pre-installed" >&6; }
14944 fi
14945fi
14946
cd9a469c 14947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14948$as_echo_n "checking where to find the target objdump... " >&6; }
f5aebe3e 14949if test "x${build}" != "x${host}" ; then
c47832b1 14950 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14951 # We already found the complete path
a6c599b5 14952 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
cd9a469c 14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14954$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14955 else
14956 # Canadian cross, just use what we found
cd9a469c 14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14958$as_echo "pre-installed" >&6; }
c47832b1 14959 fi
f5aebe3e 14960else
14961 ok=yes
14962 case " ${configdirs} " in
14963 *" binutils "*) ;;
14964 *) ok=no ;;
14965 esac
b30fcfae 14966
f5aebe3e 14967 if test $ok = yes; then
14968 # An in-tree tool is available and we can use it
14969 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
cd9a469c 14970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14971$as_echo "just compiled" >&6; }
c47832b1 14972 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14973 # We already found the complete path
a6c599b5 14974 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
cd9a469c 14975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14976$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14977 elif test "x$target" = "x$host"; then
14978 # We can use an host tool
14979 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
cd9a469c 14980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14981$as_echo "host tool" >&6; }
f5aebe3e 14982 else
14983 # We need a cross tool
cd9a469c 14984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14985$as_echo "pre-installed" >&6; }
f5aebe3e 14986 fi
14987fi
a83ffacf 14988
16706a2e 14989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
14990$as_echo_n "checking where to find the target otool... " >&6; }
14991if test "x${build}" != "x${host}" ; then
14992 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
14993 # We already found the complete path
14994 ac_dir=`dirname $OTOOL_FOR_TARGET`
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14996$as_echo "pre-installed in $ac_dir" >&6; }
14997 else
14998 # Canadian cross, just use what we found
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15000$as_echo "pre-installed" >&6; }
15001 fi
15002else
15003 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
15004 # We already found the complete path
15005 ac_dir=`dirname $OTOOL_FOR_TARGET`
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15007$as_echo "pre-installed in $ac_dir" >&6; }
15008 elif test "x$target" = "x$host"; then
15009 # We can use an host tool
15010 OTOOL_FOR_TARGET='$(OTOOL)'
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15012$as_echo "host tool" >&6; }
15013 else
15014 # We need a cross tool
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15016$as_echo "pre-installed" >&6; }
15017 fi
15018fi
15019
cd9a469c 15020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
15021$as_echo_n "checking where to find the target ranlib... " >&6; }
f5aebe3e 15022if test "x${build}" != "x${host}" ; then
c47832b1 15023 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
15024 # We already found the complete path
a6c599b5 15025 ac_dir=`dirname $RANLIB_FOR_TARGET`
cd9a469c 15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15027$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 15028 else
15029 # Canadian cross, just use what we found
cd9a469c 15030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15031$as_echo "pre-installed" >&6; }
c47832b1 15032 fi
f5aebe3e 15033else
15034 ok=yes
15035 case " ${configdirs} " in
15036 *" binutils "*) ;;
15037 *) ok=no ;;
15038 esac
b30fcfae 15039
f5aebe3e 15040 if test $ok = yes; then
15041 # An in-tree tool is available and we can use it
15042 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
cd9a469c 15043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15044$as_echo "just compiled" >&6; }
c47832b1 15045 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
15046 # We already found the complete path
a6c599b5 15047 ac_dir=`dirname $RANLIB_FOR_TARGET`
cd9a469c 15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15049$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 15050 elif test "x$target" = "x$host"; then
15051 # We can use an host tool
15052 RANLIB_FOR_TARGET='$(RANLIB)'
cd9a469c 15053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15054$as_echo "host tool" >&6; }
f5aebe3e 15055 else
15056 # We need a cross tool
cd9a469c 15057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15058$as_echo "pre-installed" >&6; }
f5aebe3e 15059 fi
15060fi
a83ffacf 15061
3f71364d 15062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
15063$as_echo_n "checking where to find the target readelf... " >&6; }
15064if test "x${build}" != "x${host}" ; then
15065 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
15066 # We already found the complete path
15067 ac_dir=`dirname $READELF_FOR_TARGET`
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15069$as_echo "pre-installed in $ac_dir" >&6; }
15070 else
15071 # Canadian cross, just use what we found
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15073$as_echo "pre-installed" >&6; }
15074 fi
15075else
15076 ok=yes
15077 case " ${configdirs} " in
15078 *" binutils "*) ;;
15079 *) ok=no ;;
15080 esac
15081
15082 if test $ok = yes; then
15083 # An in-tree tool is available and we can use it
15084 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15086$as_echo "just compiled" >&6; }
15087 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
15088 # We already found the complete path
15089 ac_dir=`dirname $READELF_FOR_TARGET`
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15091$as_echo "pre-installed in $ac_dir" >&6; }
15092 elif test "x$target" = "x$host"; then
15093 # We can use an host tool
15094 READELF_FOR_TARGET='$(READELF)'
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15096$as_echo "host tool" >&6; }
15097 else
15098 # We need a cross tool
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15100$as_echo "pre-installed" >&6; }
15101 fi
15102fi
15103
cd9a469c 15104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
15105$as_echo_n "checking where to find the target strip... " >&6; }
f5aebe3e 15106if test "x${build}" != "x${host}" ; then
c47832b1 15107 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
15108 # We already found the complete path
a6c599b5 15109 ac_dir=`dirname $STRIP_FOR_TARGET`
cd9a469c 15110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15111$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 15112 else
15113 # Canadian cross, just use what we found
cd9a469c 15114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15115$as_echo "pre-installed" >&6; }
c47832b1 15116 fi
f5aebe3e 15117else
15118 ok=yes
15119 case " ${configdirs} " in
15120 *" binutils "*) ;;
15121 *) ok=no ;;
15122 esac
b30fcfae 15123
f5aebe3e 15124 if test $ok = yes; then
15125 # An in-tree tool is available and we can use it
2b7a4d59 15126 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
cd9a469c 15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15128$as_echo "just compiled" >&6; }
c47832b1 15129 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
15130 # We already found the complete path
a6c599b5 15131 ac_dir=`dirname $STRIP_FOR_TARGET`
cd9a469c 15132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15133$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 15134 elif test "x$target" = "x$host"; then
15135 # We can use an host tool
15136 STRIP_FOR_TARGET='$(STRIP)'
cd9a469c 15137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15138$as_echo "host tool" >&6; }
f5aebe3e 15139 else
15140 # We need a cross tool
cd9a469c 15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15142$as_echo "pre-installed" >&6; }
f5aebe3e 15143 fi
15144fi
a83ffacf 15145
cd9a469c 15146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
15147$as_echo_n "checking where to find the target windres... " >&6; }
f5aebe3e 15148if test "x${build}" != "x${host}" ; then
c47832b1 15149 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15150 # We already found the complete path
a6c599b5 15151 ac_dir=`dirname $WINDRES_FOR_TARGET`
cd9a469c 15152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15153$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 15154 else
15155 # Canadian cross, just use what we found
cd9a469c 15156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15157$as_echo "pre-installed" >&6; }
c47832b1 15158 fi
f5aebe3e 15159else
15160 ok=yes
15161 case " ${configdirs} " in
15162 *" binutils "*) ;;
15163 *) ok=no ;;
15164 esac
b30fcfae 15165
f5aebe3e 15166 if test $ok = yes; then
15167 # An in-tree tool is available and we can use it
15168 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
cd9a469c 15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15170$as_echo "just compiled" >&6; }
c47832b1 15171 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15172 # We already found the complete path
a6c599b5 15173 ac_dir=`dirname $WINDRES_FOR_TARGET`
cd9a469c 15174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15175$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 15176 elif test "x$target" = "x$host"; then
15177 # We can use an host tool
15178 WINDRES_FOR_TARGET='$(WINDRES)'
cd9a469c 15179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15180$as_echo "host tool" >&6; }
f5aebe3e 15181 else
15182 # We need a cross tool
cd9a469c 15183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15184$as_echo "pre-installed" >&6; }
f5aebe3e 15185 fi
71ab34df 15186fi
49aae208 15187
cd9a469c 15188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
15189$as_echo_n "checking where to find the target windmc... " >&6; }
75d6a0a9 15190if test "x${build}" != "x${host}" ; then
15191 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15192 # We already found the complete path
15193 ac_dir=`dirname $WINDMC_FOR_TARGET`
cd9a469c 15194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15195$as_echo "pre-installed in $ac_dir" >&6; }
75d6a0a9 15196 else
15197 # Canadian cross, just use what we found
cd9a469c 15198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15199$as_echo "pre-installed" >&6; }
75d6a0a9 15200 fi
15201else
15202 ok=yes
15203 case " ${configdirs} " in
15204 *" binutils "*) ;;
15205 *) ok=no ;;
15206 esac
15207
15208 if test $ok = yes; then
15209 # An in-tree tool is available and we can use it
15210 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
cd9a469c 15211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15212$as_echo "just compiled" >&6; }
75d6a0a9 15213 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15214 # We already found the complete path
15215 ac_dir=`dirname $WINDMC_FOR_TARGET`
cd9a469c 15216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15217$as_echo "pre-installed in $ac_dir" >&6; }
75d6a0a9 15218 elif test "x$target" = "x$host"; then
15219 # We can use an host tool
15220 WINDMC_FOR_TARGET='$(WINDMC)'
cd9a469c 15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15222$as_echo "host tool" >&6; }
75d6a0a9 15223 else
15224 # We need a cross tool
cd9a469c 15225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15226$as_echo "pre-installed" >&6; }
75d6a0a9 15227 fi
15228fi
15229
49aae208 15230
15231
f5aebe3e 15232
a83ffacf 15233
71ab34df 15234# Certain tools may need extra flags.
15235AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
15236RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
15237NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
15238
f5aebe3e 15239# When building target libraries, except in a Canadian cross, we use
15240# the same toolchain as the compiler we just built.
15241COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
15242COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
15243COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
15244if test $host = $build; then
15245 case " $configdirs " in
15246 *" gcc "*)
15247 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
15248 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
15249 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
15250 ;;
15251 esac
15252fi
15253
15254
15255
15256
15257
cd9a469c 15258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15259$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15260# Check whether --enable-maintainer-mode was given.
15261if test "${enable_maintainer_mode+set}" = set; then :
15262 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3290c0cf 15263else
15264 USE_MAINTAINER_MODE=no
cd9a469c 15265fi
15266
15267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15268$as_echo "$USE_MAINTAINER_MODE" >&6; }
3290c0cf 15269
15270
15271if test "$USE_MAINTAINER_MODE" = yes; then
15272 MAINTAINER_MODE_TRUE=
15273 MAINTAINER_MODE_FALSE='#'
15274else
15275 MAINTAINER_MODE_TRUE='#'
15276 MAINTAINER_MODE_FALSE=
b30fcfae 15277fi
3290c0cf 15278MAINT=$MAINTAINER_MODE_TRUE
15279
2d64c2fd 15280# ---------------------
15281# GCC bootstrap support
15282# ---------------------
15283
15284# Stage specific cflags for build.
15285stage1_cflags="-g"
15286case $build in
15287 vax-*-*)
15288 case ${GCC} in
15289 yes) stage1_cflags="-g -Wa,-J" ;;
15290 *) stage1_cflags="-g -J" ;;
15291 esac ;;
2d64c2fd 15292esac
15293
f508ba97 15294
2d64c2fd 15295
39f34cfc 15296# Enable --enable-checking in stage1 of the compiler.
cd9a469c 15297# Check whether --enable-stage1-checking was given.
15298if test "${enable_stage1_checking+set}" = set; then :
15299 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
39f34cfc 15300else
f6be6a96 15301 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
868af6b6 15302 # For --disable-checking or implicit --enable-checking=release, avoid
15303 # setting --enable-checking=gc in the default stage1 checking for LTO
15304 # bootstraps. See PR62077.
868af6b6 15305 case $BUILD_CONFIG in
15306 *lto*)
c05979a1 15307 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
15308 *)
15309 stage1_checking=--enable-checking=yes,types;;
868af6b6 15310 esac
c05979a1 15311 if test "x$enable_checking" = x && \
15312 test -d ${srcdir}/gcc && \
15313 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
bee4f5e5 15314 stage1_checking=--enable-checking=yes,types,extra
c05979a1 15315 fi
39f34cfc 15316else
f6be6a96 15317 stage1_checking=--enable-checking=$enable_checking,types
39f34cfc 15318fi
cd9a469c 15319fi
39f34cfc 15320
15321
5084f823 15322
cd9a469c 15323# Enable -Werror in bootstrap stage2 and later.
15324# Check whether --enable-werror was given.
15325if test "${enable_werror+set}" = set; then :
15326 enableval=$enable_werror;
c0c5068d 15327case ${enable_werror} in
15328 yes) stage2_werror_flag="--enable-werror-always" ;;
15329 *) stage2_werror_flag="" ;;
2d64c2fd 15330esac
15331
5362e31e 15332else
15333
14b6abc7 15334if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
15335 case $BUILD_CONFIG in
15336 bootstrap-debug)
15337 stage2_werror_flag="--enable-werror-always" ;;
15338 "")
15339 stage2_werror_flag="--enable-werror-always" ;;
15340 esac
15341fi
15342
5362e31e 15343fi
15344
15345
14b6abc7 15346
2d64c2fd 15347
6fe86052 15348# Specify what files to not compare during bootstrap.
15349
15350compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
15351case "$target" in
15352 hppa*64*-*-hpux*) ;;
43bbe3ea 15353 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
62f0972f 15354 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
6fe86052 15355esac
15356
15357
cd9a469c 15358ac_config_files="$ac_config_files Makefile"
15359
b30fcfae 15360cat >confcache <<\_ACEOF
71ab34df 15361# This file is a shell script that caches the results of configure
15362# tests run on this system so they can be shared between configure
b30fcfae 15363# scripts and configure runs, see configure's option --config-cache.
15364# It is not useful on other systems. If it contains results you don't
15365# want to keep, you may remove or edit it.
71ab34df 15366#
b30fcfae 15367# config.status only pays attention to the cache file if you give it
15368# the --recheck option to rerun configure.
71ab34df 15369#
b30fcfae 15370# `ac_cv_env_foo' variables (set or unset) will be overridden when
15371# loading this file, other *unset* `ac_cv_foo' will be assigned the
15372# following values.
15373
15374_ACEOF
15375
71ab34df 15376# The following way of writing the cache mishandles newlines in values,
15377# but we know of no workaround that is simple, portable, and efficient.
cd9a469c 15378# So, we kill variables containing newlines.
71ab34df 15379# Ultrix sh set writes to stderr and can't be redirected directly,
15380# and sets the high bit in the cache file unless we assign to the vars.
cd9a469c 15381(
15382 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15383 eval ac_val=\$$ac_var
15384 case $ac_val in #(
15385 *${as_nl}*)
15386 case $ac_var in #(
15387 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15388$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15389 esac
15390 case $ac_var in #(
15391 _ | IFS | as_nl) ;; #(
15392 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15393 *) { eval $ac_var=; unset $ac_var;} ;;
15394 esac ;;
15395 esac
15396 done
15397
b30fcfae 15398 (set) 2>&1 |
cd9a469c 15399 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15400 *${as_nl}ac_space=\ *)
15401 # `set' does not quote correctly, so add quotes: double-quote
15402 # substitution turns \\\\ into \\, and sed turns \\ into \.
b30fcfae 15403 sed -n \
15404 "s/'/'\\\\''/g;
15405 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
cd9a469c 15406 ;; #(
b30fcfae 15407 *)
15408 # `set' quotes correctly as required by POSIX, so do not add quotes.
cd9a469c 15409 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b30fcfae 15410 ;;
cd9a469c 15411 esac |
15412 sort
15413) |
b30fcfae 15414 sed '
cd9a469c 15415 /^ac_cv_env_/b end
b30fcfae 15416 t clear
cd9a469c 15417 :clear
b30fcfae 15418 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15419 t end
cd9a469c 15420 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15421 :end' >>confcache
15422if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15423 if test -w "$cache_file"; then
f00f02a3 15424 if test "x$cache_file" != "x/dev/null"; then
cd9a469c 15425 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15426$as_echo "$as_me: updating cache $cache_file" >&6;}
f00f02a3 15427 if test ! -f "$cache_file" || test -h "$cache_file"; then
15428 cat confcache >"$cache_file"
15429 else
15430 case $cache_file in #(
15431 */* | ?:*)
15432 mv -f confcache "$cache_file"$$ &&
15433 mv -f "$cache_file"$$ "$cache_file" ;; #(
15434 *)
15435 mv -f confcache "$cache_file" ;;
15436 esac
15437 fi
15438 fi
71ab34df 15439 else
cd9a469c 15440 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15441$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
71ab34df 15442 fi
805e22b2 15443fi
71ab34df 15444rm -f confcache
a8298541 15445
71ab34df 15446test "x$prefix" = xNONE && prefix=$ac_default_prefix
15447# Let make expand exec_prefix.
15448test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
92424a17 15449
71ab34df 15450# Transform confdefs.h into DEFS.
15451# Protect against shell expansion while executing Makefile rules.
15452# Protect against Makefile macro expansion.
b30fcfae 15453#
15454# If the first sed substitution is executed (which looks for macros that
cd9a469c 15455# take arguments), then branch to the quote section. Otherwise,
b30fcfae 15456# look for a macro that doesn't take arguments.
cd9a469c 15457ac_script='
15458:mline
15459/\\$/{
15460 N
15461 s,\\\n,,
15462 b mline
15463}
b30fcfae 15464t clear
cd9a469c 15465:clear
15466s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
b30fcfae 15467t quote
cd9a469c 15468s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
b30fcfae 15469t quote
cd9a469c 15470b any
15471:quote
15472s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15473s/\[/\\&/g
15474s/\]/\\&/g
15475s/\$/$$/g
15476H
15477:any
15478${
15479 g
15480 s/^\n//
15481 s/\n/ /g
15482 p
15483}
15484'
15485DEFS=`sed -n "$ac_script" confdefs.h`
b30fcfae 15486
15487
15488ac_libobjs=
15489ac_ltlibobjs=
f00f02a3 15490U=
b30fcfae 15491for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15492 # 1. Remove the extension, and $U if already installed.
cd9a469c 15493 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15494 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15495 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15496 # will be set to the directory where LIBOBJS objects are built.
15497 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15498 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b30fcfae 15499done
15500LIBOBJS=$ac_libobjs
a4af6a58 15501
b30fcfae 15502LTLIBOBJS=$ac_ltlibobjs
a83ffacf 15503
ae48753c 15504
b30fcfae 15505
f00f02a3 15506: "${CONFIG_STATUS=./config.status}"
cd9a469c 15507ac_write_fail=0
b30fcfae 15508ac_clean_files_save=$ac_clean_files
15509ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cd9a469c 15510{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15511$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15512as_write_fail=0
15513cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b30fcfae 15514#! $SHELL
15515# Generated by $as_me.
71ab34df 15516# Run this file to recreate the current configuration.
71ab34df 15517# Compiler output produced by configure, useful for debugging
b30fcfae 15518# configure, is in config.log if it exists.
a83ffacf 15519
b30fcfae 15520debug=false
15521ac_cs_recheck=false
15522ac_cs_silent=false
b30fcfae 15523
cd9a469c 15524SHELL=\${CONFIG_SHELL-$SHELL}
15525export SHELL
15526_ASEOF
15527cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15528## -------------------- ##
15529## M4sh Initialization. ##
15530## -------------------- ##
15531
15532# Be more Bourne compatible
15533DUALCASE=1; export DUALCASE # for MKS sh
15534if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b30fcfae 15535 emulate sh
15536 NULLCMD=:
cd9a469c 15537 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b30fcfae 15538 # is contrary to our usage. Disable this feature.
15539 alias -g '${1+"$@"}'='"$@"'
cd9a469c 15540 setopt NO_GLOB_SUBST
15541else
15542 case `(set -o) 2>/dev/null` in #(
15543 *posix*) :
15544 set -o posix ;; #(
15545 *) :
15546 ;;
15547esac
b30fcfae 15548fi
b30fcfae 15549
cd9a469c 15550
15551as_nl='
15552'
15553export as_nl
15554# Printing a long string crashes Solaris 7 /usr/bin/printf.
15555as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15556as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15557as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15558# Prefer a ksh shell builtin over an external printf program on Solaris,
15559# but without wasting forks for bash or zsh.
15560if test -z "$BASH_VERSION$ZSH_VERSION" \
15561 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15562 as_echo='print -r --'
15563 as_echo_n='print -rn --'
15564elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15565 as_echo='printf %s\n'
15566 as_echo_n='printf %s'
15567else
15568 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15569 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15570 as_echo_n='/usr/ucb/echo -n'
15571 else
15572 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15573 as_echo_n_body='eval
15574 arg=$1;
15575 case $arg in #(
15576 *"$as_nl"*)
15577 expr "X$arg" : "X\\(.*\\)$as_nl";
15578 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15579 esac;
15580 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15581 '
15582 export as_echo_n_body
15583 as_echo_n='sh -c $as_echo_n_body as_echo'
15584 fi
15585 export as_echo_body
15586 as_echo='sh -c $as_echo_body as_echo'
b30fcfae 15587fi
15588
cd9a469c 15589# The user is always right.
15590if test "${PATH_SEPARATOR+set}" != set; then
15591 PATH_SEPARATOR=:
15592 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15593 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15594 PATH_SEPARATOR=';'
15595 }
15596fi
15597
15598
15599# IFS
15600# We need space, tab and new line, in precisely that order. Quoting is
15601# there to prevent editors from complaining about space-tab.
15602# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15603# splitting by setting IFS to empty value.)
15604IFS=" "" $as_nl"
15605
15606# Find who we are. Look in the path if we contain no directory separator.
f00f02a3 15607as_myself=
cd9a469c 15608case $0 in #((
15609 *[\\/]* ) as_myself=$0 ;;
15610 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15611for as_dir in $PATH
15612do
15613 IFS=$as_save_IFS
15614 test -z "$as_dir" && as_dir=.
15615 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15616 done
15617IFS=$as_save_IFS
15618
15619 ;;
15620esac
15621# We did not find ourselves, most probably we were run as `sh COMMAND'
15622# in which case we are not to be found in the path.
15623if test "x$as_myself" = x; then
15624 as_myself=$0
15625fi
15626if test ! -f "$as_myself"; then
15627 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15628 exit 1
15629fi
b30fcfae 15630
cd9a469c 15631# Unset variables that we do not need and which cause bugs (e.g. in
15632# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15633# suppresses any "Segmentation fault" message there. '((' could
15634# trigger a bug in pdksh 5.2.14.
15635for as_var in BASH_ENV ENV MAIL MAILPATH
15636do eval test x\${$as_var+set} = xset \
15637 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15638done
b30fcfae 15639PS1='$ '
15640PS2='> '
15641PS4='+ '
15642
15643# NLS nuisances.
cd9a469c 15644LC_ALL=C
15645export LC_ALL
15646LANGUAGE=C
15647export LANGUAGE
15648
15649# CDPATH.
15650(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15651
15652
f00f02a3 15653# as_fn_error STATUS ERROR [LINENO LOG_FD]
15654# ----------------------------------------
cd9a469c 15655# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15656# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
f00f02a3 15657# script with STATUS, using 1 if that was 0.
cd9a469c 15658as_fn_error ()
15659{
f00f02a3 15660 as_status=$1; test $as_status -eq 0 && as_status=1
15661 if test "$4"; then
15662 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15663 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b30fcfae 15664 fi
f00f02a3 15665 $as_echo "$as_me: error: $2" >&2
cd9a469c 15666 as_fn_exit $as_status
15667} # as_fn_error
15668
15669
15670# as_fn_set_status STATUS
15671# -----------------------
15672# Set $? to STATUS, without forking.
15673as_fn_set_status ()
15674{
15675 return $1
15676} # as_fn_set_status
15677
15678# as_fn_exit STATUS
15679# -----------------
15680# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15681as_fn_exit ()
15682{
15683 set +e
15684 as_fn_set_status $1
15685 exit $1
15686} # as_fn_exit
15687
15688# as_fn_unset VAR
15689# ---------------
15690# Portably unset VAR.
15691as_fn_unset ()
15692{
15693 { eval $1=; unset $1;}
15694}
15695as_unset=as_fn_unset
15696# as_fn_append VAR VALUE
15697# ----------------------
15698# Append the text in VALUE to the end of the definition contained in VAR. Take
15699# advantage of any shell optimizations that allow amortized linear growth over
15700# repeated appends, instead of the typical quadratic growth present in naive
15701# implementations.
15702if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15703 eval 'as_fn_append ()
15704 {
15705 eval $1+=\$2
15706 }'
15707else
15708 as_fn_append ()
15709 {
15710 eval $1=\$$1\$2
15711 }
15712fi # as_fn_append
15713
15714# as_fn_arith ARG...
15715# ------------------
15716# Perform arithmetic evaluation on the ARGs, and store the result in the
15717# global $as_val. Take advantage of shells that can avoid forks. The arguments
15718# must be portable across $(()) and expr.
15719if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15720 eval 'as_fn_arith ()
15721 {
15722 as_val=$(( $* ))
15723 }'
15724else
15725 as_fn_arith ()
15726 {
15727 as_val=`expr "$@" || test $? -eq 1`
15728 }
15729fi # as_fn_arith
15730
b30fcfae 15731
cd9a469c 15732if expr a : '\(a\)' >/dev/null 2>&1 &&
15733 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b30fcfae 15734 as_expr=expr
15735else
15736 as_expr=false
15737fi
15738
cd9a469c 15739if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b30fcfae 15740 as_basename=basename
15741else
15742 as_basename=false
15743fi
15744
cd9a469c 15745if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15746 as_dirname=dirname
15747else
15748 as_dirname=false
15749fi
b30fcfae 15750
cd9a469c 15751as_me=`$as_basename -- "$0" ||
b30fcfae 15752$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15753 X"$0" : 'X\(//\)$' \| \
cd9a469c 15754 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15755$as_echo X/"$0" |
15756 sed '/^.*\/\([^/][^/]*\)\/*$/{
15757 s//\1/
15758 q
15759 }
15760 /^X\/\(\/\/\)$/{
15761 s//\1/
15762 q
15763 }
15764 /^X\/\(\/\).*/{
15765 s//\1/
15766 q
15767 }
15768 s/.*/./; q'`
5084f823 15769
5084f823 15770# Avoid depending upon Character Ranges.
15771as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15772as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15773as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15774as_cr_digits='0123456789'
15775as_cr_alnum=$as_cr_Letters$as_cr_digits
15776
cd9a469c 15777ECHO_C= ECHO_N= ECHO_T=
15778case `echo -n x` in #(((((
15779-n*)
15780 case `echo 'xy\c'` in
15781 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15782 xy) ECHO_C='\c';;
15783 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15784 ECHO_T=' ';;
15785 esac;;
15786*)
15787 ECHO_N='-n';;
b30fcfae 15788esac
15789
cd9a469c 15790rm -f conf$$ conf$$.exe conf$$.file
15791if test -d conf$$.dir; then
15792 rm -f conf$$.dir/conf$$.file
b30fcfae 15793else
cd9a469c 15794 rm -f conf$$.dir
15795 mkdir conf$$.dir 2>/dev/null
b30fcfae 15796fi
cd9a469c 15797if (echo >conf$$.file) 2>/dev/null; then
15798 if ln -s conf$$.file conf$$ 2>/dev/null; then
5084f823 15799 as_ln_s='ln -s'
cd9a469c 15800 # ... but there are two gotchas:
15801 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15802 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
f00f02a3 15803 # In both cases, we have to default to `cp -pR'.
cd9a469c 15804 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
f00f02a3 15805 as_ln_s='cp -pR'
cd9a469c 15806 elif ln conf$$.file conf$$ 2>/dev/null; then
15807 as_ln_s=ln
15808 else
f00f02a3 15809 as_ln_s='cp -pR'
5084f823 15810 fi
b30fcfae 15811else
f00f02a3 15812 as_ln_s='cp -pR'
b30fcfae 15813fi
cd9a469c 15814rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15815rmdir conf$$.dir 2>/dev/null
15816
15817
15818# as_fn_mkdir_p
15819# -------------
15820# Create "$as_dir" as a directory, including parents if necessary.
15821as_fn_mkdir_p ()
15822{
15823
15824 case $as_dir in #(
15825 -*) as_dir=./$as_dir;;
15826 esac
15827 test -d "$as_dir" || eval $as_mkdir_p || {
15828 as_dirs=
15829 while :; do
15830 case $as_dir in #(
15831 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15832 *) as_qdir=$as_dir;;
15833 esac
15834 as_dirs="'$as_qdir' $as_dirs"
15835 as_dir=`$as_dirname -- "$as_dir" ||
15836$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15837 X"$as_dir" : 'X\(//\)[^/]' \| \
15838 X"$as_dir" : 'X\(//\)$' \| \
15839 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15840$as_echo X"$as_dir" |
15841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15842 s//\1/
15843 q
15844 }
15845 /^X\(\/\/\)[^/].*/{
15846 s//\1/
15847 q
15848 }
15849 /^X\(\/\/\)$/{
15850 s//\1/
15851 q
15852 }
15853 /^X\(\/\).*/{
15854 s//\1/
15855 q
15856 }
15857 s/.*/./; q'`
15858 test -d "$as_dir" && break
15859 done
15860 test -z "$as_dirs" || eval "mkdir $as_dirs"
f00f02a3 15861 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cd9a469c 15862
b30fcfae 15863
cd9a469c 15864} # as_fn_mkdir_p
b30fcfae 15865if mkdir -p . 2>/dev/null; then
cd9a469c 15866 as_mkdir_p='mkdir -p "$as_dir"'
b30fcfae 15867else
15868 test -d ./-p && rmdir ./-p
15869 as_mkdir_p=false
15870fi
15871
f00f02a3 15872
15873# as_fn_executable_p FILE
15874# -----------------------
15875# Test if FILE is an executable regular file.
15876as_fn_executable_p ()
15877{
15878 test -f "$1" && test -x "$1"
15879} # as_fn_executable_p
15880as_test_x='test -x'
15881as_executable_p=as_fn_executable_p
b30fcfae 15882
15883# Sed expression to map a string onto a valid CPP name.
15884as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15885
15886# Sed expression to map a string onto a valid variable name.
15887as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15888
15889
b30fcfae 15890exec 6>&1
cd9a469c 15891## ----------------------------------- ##
15892## Main body of $CONFIG_STATUS script. ##
15893## ----------------------------------- ##
15894_ASEOF
15895test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15896
15897cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15898# Save the log message, to keep $0 and so on meaningful, and to
b30fcfae 15899# report actual input values of CONFIG_FILES etc. instead of their
cd9a469c 15900# values after options handling.
15901ac_log="
b30fcfae 15902This file was extended by $as_me, which was
f00f02a3 15903generated by GNU Autoconf 2.69. Invocation command line was
b30fcfae 15904
15905 CONFIG_FILES = $CONFIG_FILES
15906 CONFIG_HEADERS = $CONFIG_HEADERS
15907 CONFIG_LINKS = $CONFIG_LINKS
15908 CONFIG_COMMANDS = $CONFIG_COMMANDS
15909 $ $0 $@
15910
cd9a469c 15911on `(hostname || uname -n) 2>/dev/null | sed 1q`
15912"
15913
b30fcfae 15914_ACEOF
15915
cd9a469c 15916case $ac_config_files in *"
15917"*) set x $ac_config_files; shift; ac_config_files=$*;;
15918esac
b30fcfae 15919
5084f823 15920
5084f823 15921
cd9a469c 15922cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15923# Files that config.status was made for.
15924config_files="$ac_config_files"
b30fcfae 15925
cd9a469c 15926_ACEOF
5084f823 15927
cd9a469c 15928cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b30fcfae 15929ac_cs_usage="\
cd9a469c 15930\`$as_me' instantiates files and other configuration actions
15931from templates according to the current configuration. Unless the files
15932and actions are specified as TAGs, all are instantiated by default.
b30fcfae 15933
cd9a469c 15934Usage: $0 [OPTION]... [TAG]...
b30fcfae 15935
15936 -h, --help print this help, then exit
cd9a469c 15937 -V, --version print version number and configuration settings, then exit
f00f02a3 15938 --config print configuration, then exit
cd9a469c 15939 -q, --quiet, --silent
15940 do not print progress messages
b30fcfae 15941 -d, --debug don't remove temporary files
15942 --recheck update $as_me by reconfiguring in the same conditions
cd9a469c 15943 --file=FILE[:TEMPLATE]
15944 instantiate the configuration file FILE
b30fcfae 15945
15946Configuration files:
15947$config_files
15948
cd9a469c 15949Report bugs to the package provider."
5084f823 15950
cd9a469c 15951_ACEOF
15952cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f00f02a3 15953ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b30fcfae 15954ac_cs_version="\\
15955config.status
f00f02a3 15956configured by $0, generated by GNU Autoconf 2.69,
15957 with options \\"\$ac_cs_config\\"
b30fcfae 15958
f00f02a3 15959Copyright (C) 2012 Free Software Foundation, Inc.
b30fcfae 15960This config.status script is free software; the Free Software Foundation
15961gives unlimited permission to copy, distribute and modify it."
cd9a469c 15962
15963ac_pwd='$ac_pwd'
15964srcdir='$srcdir'
15965INSTALL='$INSTALL'
b181f265 15966AWK='$AWK'
cd9a469c 15967test -n "\$AWK" || AWK=awk
b30fcfae 15968_ACEOF
15969
cd9a469c 15970cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15971# The default lists apply if the user does not specify any file.
b30fcfae 15972ac_need_defaults=:
15973while test $# != 0
b1660f25 15974do
b30fcfae 15975 case $1 in
f00f02a3 15976 --*=?*)
cd9a469c 15977 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15978 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b30fcfae 15979 ac_shift=:
15980 ;;
f00f02a3 15981 --*=)
15982 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15983 ac_optarg=
15984 ac_shift=:
15985 ;;
cd9a469c 15986 *)
b30fcfae 15987 ac_option=$1
15988 ac_optarg=$2
15989 ac_shift=shift
15990 ;;
b30fcfae 15991 esac
15992
15993 case $ac_option in
15994 # Handling of the options.
71ab34df 15995 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
b30fcfae 15996 ac_cs_recheck=: ;;
cd9a469c 15997 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15998 $as_echo "$ac_cs_version"; exit ;;
f00f02a3 15999 --config | --confi | --conf | --con | --co | --c )
16000 $as_echo "$ac_cs_config"; exit ;;
cd9a469c 16001 --debug | --debu | --deb | --de | --d | -d )
b30fcfae 16002 debug=: ;;
16003 --file | --fil | --fi | --f )
16004 $ac_shift
cd9a469c 16005 case $ac_optarg in
16006 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
f00f02a3 16007 '') as_fn_error $? "missing file argument" ;;
cd9a469c 16008 esac
16009 as_fn_append CONFIG_FILES " '$ac_optarg'"
5084f823 16010 ac_need_defaults=false;;
cd9a469c 16011 --he | --h | --help | --hel | -h )
16012 $as_echo "$ac_cs_usage"; exit ;;
b30fcfae 16013 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16014 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16015 ac_cs_silent=: ;;
16016
16017 # This is an error.
f00f02a3 16018 -*) as_fn_error $? "unrecognized option: \`$1'
cd9a469c 16019Try \`$0 --help' for more information." ;;
b30fcfae 16020
cd9a469c 16021 *) as_fn_append ac_config_targets " $1"
16022 ac_need_defaults=false ;;
b30fcfae 16023
a83ffacf 16024 esac
b30fcfae 16025 shift
a83ffacf 16026done
16027
b30fcfae 16028ac_configure_extra_args=
a83ffacf 16029
b30fcfae 16030if $ac_cs_silent; then
16031 exec 6>/dev/null
16032 ac_configure_extra_args="$ac_configure_extra_args --silent"
16033fi
a83ffacf 16034
b30fcfae 16035_ACEOF
cd9a469c 16036cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b30fcfae 16037if \$ac_cs_recheck; then
f00f02a3 16038 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cd9a469c 16039 shift
16040 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16041 CONFIG_SHELL='$SHELL'
16042 export CONFIG_SHELL
16043 exec "\$@"
b30fcfae 16044fi
16045
16046_ACEOF
cd9a469c 16047cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16048exec 5>>config.log
16049{
16050 echo
16051 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16052## Running $as_me. ##
16053_ASBOX
16054 $as_echo "$ac_log"
16055} >&5
b30fcfae 16056
cd9a469c 16057_ACEOF
16058cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8bb79148 16059#
16060# INIT-COMMANDS
16061#
16062extrasub_build="$extrasub_build"
16063 extrasub_host="$extrasub_host"
16064 extrasub_target="$extrasub_target"
16065
cd9a469c 16066_ACEOF
b30fcfae 16067
cd9a469c 16068cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
570af75a 16069
cd9a469c 16070# Handling of arguments.
b30fcfae 16071for ac_config_target in $ac_config_targets
16072do
cd9a469c 16073 case $ac_config_target in
16074 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16075
f00f02a3 16076 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
b30fcfae 16077 esac
16078done
16079
cd9a469c 16080
b30fcfae 16081# If the user did not use the arguments to specify the items to instantiate,
16082# then the envvar interface is used. Set only those that are not.
16083# We use the long form for the default assignment because of an extremely
16084# bizarre bug on SunOS 4.1.3.
16085if $ac_need_defaults; then
16086 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16087fi
16088
16089# Have a temporary directory for convenience. Make it in the build tree
cd9a469c 16090# simply because there is no reason against having it here, and in addition,
b30fcfae 16091# creating and moving files from /tmp can sometimes cause problems.
cd9a469c 16092# Hook for its removal unless debugging.
16093# Note that there is a small window in which the directory will not be cleaned:
16094# after its creation but before its name has been assigned to `$tmp'.
b30fcfae 16095$debug ||
16096{
f00f02a3 16097 tmp= ac_tmp=
cd9a469c 16098 trap 'exit_status=$?
f00f02a3 16099 : "${ac_tmp:=$tmp}"
16100 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cd9a469c 16101' 0
16102 trap 'as_fn_exit 1' 1 2 13 15
b30fcfae 16103}
b30fcfae 16104# Create a (secure) tmp directory for tmp files.
16105
16106{
cd9a469c 16107 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
f00f02a3 16108 test -d "$tmp"
b30fcfae 16109} ||
16110{
cd9a469c 16111 tmp=./conf$$-$RANDOM
16112 (umask 077 && mkdir "$tmp")
f00f02a3 16113} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16114ac_tmp=$tmp
cd9a469c 16115
16116# Set up the scripts for CONFIG_FILES section.
16117# No need to generate them if there are no CONFIG_FILES.
16118# This happens for instance with `./config.status config.h'.
16119if test -n "$CONFIG_FILES"; then
16120
16121if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16122 ac_cs_awk_getline=:
16123 ac_cs_awk_pipe_init=
16124 ac_cs_awk_read_file='
16125 while ((getline aline < (F[key])) > 0)
16126 print(aline)
16127 close(F[key])'
16128 ac_cs_awk_pipe_fini=
16129else
16130 ac_cs_awk_getline=false
16131 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16132 ac_cs_awk_read_file='
16133 print "|#_!!_#|"
16134 print "cat " F[key] " &&"
16135 '$ac_cs_awk_pipe_init
16136 # The final `:' finishes the AND list.
16137 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16138fi
16139ac_cr=`echo X | tr X '\015'`
16140# On cygwin, bash can eat \r inside `` if the user requested igncr.
16141# But we know of no other shell where ac_cr would be empty at this
16142# point, so we can use a bashism as a fallback.
16143if test "x$ac_cr" = x; then
16144 eval ac_cr=\$\'\\r\'
16145fi
16146ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16147if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
f00f02a3 16148 ac_cs_awk_cr='\\r'
cd9a469c 16149else
16150 ac_cs_awk_cr=$ac_cr
16151fi
16152
f00f02a3 16153echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cd9a469c 16154_ACEOF
16155
16156# Create commands to substitute file output variables.
b30fcfae 16157{
cd9a469c 16158 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
f00f02a3 16159 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
cd9a469c 16160 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16161 echo "_ACAWK" &&
16162 echo "_ACEOF"
16163} >conf$$files.sh &&
16164. ./conf$$files.sh ||
f00f02a3 16165 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cd9a469c 16166rm -f conf$$files.sh
b30fcfae 16167
cd9a469c 16168{
16169 echo "cat >conf$$subs.awk <<_ACEOF" &&
16170 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16171 echo "_ACEOF"
16172} >conf$$subs.sh ||
f00f02a3 16173 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16174ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cd9a469c 16175ac_delim='%!_!# '
16176for ac_last_try in false false false false false :; do
16177 . ./conf$$subs.sh ||
f00f02a3 16178 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cd9a469c 16179
16180 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16181 if test $ac_delim_n = $ac_delim_num; then
16182 break
16183 elif $ac_last_try; then
f00f02a3 16184 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cd9a469c 16185 else
16186 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16187 fi
16188done
16189rm -f conf$$subs.sh
16190
16191cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f00f02a3 16192cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5084f823 16193_ACEOF
cd9a469c 16194sed -n '
16195h
16196s/^/S["/; s/!.*/"]=/
16197p
16198g
16199s/^[^!]*!//
16200:repl
16201t repl
16202s/'"$ac_delim"'$//
16203t delim
16204:nl
16205h
f00f02a3 16206s/\(.\{148\}\)..*/\1/
cd9a469c 16207t more1
16208s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16209p
16210n
16211b repl
16212:more1
16213s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16214p
16215g
16216s/.\{148\}//
16217t nl
16218:delim
16219h
f00f02a3 16220s/\(.\{148\}\)..*/\1/
cd9a469c 16221t more2
16222s/["\\]/\\&/g; s/^/"/; s/$/"/
16223p
16224b
16225:more2
16226s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16227p
16228g
16229s/.\{148\}//
16230t delim
16231' <conf$$subs.awk | sed '
16232/^[^""]/{
16233 N
16234 s/\n//
16235}
16236' >>$CONFIG_STATUS || ac_write_fail=1
16237rm -f conf$$subs.awk
16238cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16239_ACAWK
f00f02a3 16240cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cd9a469c 16241 for (key in S) S_is_set[key] = 1
16242 FS = "\a"
16243 \$ac_cs_awk_pipe_init
16244}
16245{
16246 line = $ 0
16247 nfields = split(line, field, "@")
16248 substed = 0
16249 len = length(field[1])
16250 for (i = 2; i < nfields; i++) {
16251 key = field[i]
16252 keylen = length(key)
16253 if (S_is_set[key]) {
16254 value = S[key]
16255 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16256 len += length(value) + length(field[++i])
16257 substed = 1
16258 } else
16259 len += 1 + keylen
16260 }
16261 if (nfields == 3 && !substed) {
16262 key = field[2]
16263 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16264 \$ac_cs_awk_read_file
16265 next
16266 }
16267 }
16268 print line
16269}
16270\$ac_cs_awk_pipe_fini
16271_ACAWK
16272_ACEOF
16273cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16274if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16275 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16276else
16277 cat
f00f02a3 16278fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16279 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cd9a469c 16280_ACEOF
16281
f00f02a3 16282# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16283# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cd9a469c 16284# trailing colons and then remove the whole line if VPATH becomes empty
16285# (actually we leave an empty line to preserve line numbers).
16286if test "x$srcdir" = x.; then
f00f02a3 16287 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16288h
16289s///
16290s/^/:/
16291s/[ ]*$/:/
16292s/:\$(srcdir):/:/g
16293s/:\${srcdir}:/:/g
16294s/:@srcdir@:/:/g
16295s/^:*//
cd9a469c 16296s/:*$//
f00f02a3 16297x
16298s/\(=[ ]*\).*/\1/
16299G
16300s/\n//
cd9a469c 16301s/^[^=]*=[ ]*$//
16302}'
16303fi
5084f823 16304
cd9a469c 16305cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16306fi # test -n "$CONFIG_FILES"
5084f823 16307
b30fcfae 16308
cd9a469c 16309eval set X " :F $CONFIG_FILES "
16310shift
16311for ac_tag
16312do
16313 case $ac_tag in
16314 :[FHLC]) ac_mode=$ac_tag; continue;;
16315 esac
16316 case $ac_mode$ac_tag in
16317 :[FHL]*:*);;
f00f02a3 16318 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cd9a469c 16319 :[FH]-) ac_tag=-:-;;
16320 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16321 esac
16322 ac_save_IFS=$IFS
16323 IFS=:
16324 set x $ac_tag
16325 IFS=$ac_save_IFS
16326 shift
16327 ac_file=$1
16328 shift
a8298541 16329
cd9a469c 16330 case $ac_mode in
16331 :L) ac_source=$1;;
16332 :[FH])
16333 ac_file_inputs=
16334 for ac_f
16335 do
16336 case $ac_f in
f00f02a3 16337 -) ac_f="$ac_tmp/stdin";;
cd9a469c 16338 *) # Look for the file first in the build tree, then in the source tree
16339 # (if the path is not absolute). The absolute path cannot be DOS-style,
16340 # because $ac_f cannot contain `:'.
16341 test -f "$ac_f" ||
16342 case $ac_f in
16343 [\\/$]*) false;;
16344 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16345 esac ||
f00f02a3 16346 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cd9a469c 16347 esac
16348 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16349 as_fn_append ac_file_inputs " '$ac_f'"
16350 done
b30fcfae 16351
cd9a469c 16352 # Let's still pretend it is `configure' which instantiates (i.e., don't
16353 # use $as_me), people would be surprised to read:
16354 # /* config.h. Generated by config.status. */
16355 configure_input='Generated from '`
16356 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16357 `' by configure.'
16358 if test x"$ac_file" != x-; then
16359 configure_input="$ac_file. $configure_input"
16360 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16361$as_echo "$as_me: creating $ac_file" >&6;}
5084f823 16362 fi
cd9a469c 16363 # Neutralize special characters interpreted by sed in replacement strings.
16364 case $configure_input in #(
16365 *\&* | *\|* | *\\* )
16366 ac_sed_conf_input=`$as_echo "$configure_input" |
16367 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16368 *) ac_sed_conf_input=$configure_input;;
16369 esac
570af75a 16370
cd9a469c 16371 case $ac_tag in
f00f02a3 16372 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16373 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cd9a469c 16374 esac
16375 ;;
570af75a 16376 esac
16377
cd9a469c 16378 ac_dir=`$as_dirname -- "$ac_file" ||
b30fcfae 16379$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16380 X"$ac_file" : 'X\(//\)[^/]' \| \
16381 X"$ac_file" : 'X\(//\)$' \| \
cd9a469c 16382 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16383$as_echo X"$ac_file" |
16384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16385 s//\1/
16386 q
16387 }
16388 /^X\(\/\/\)[^/].*/{
16389 s//\1/
16390 q
16391 }
16392 /^X\(\/\/\)$/{
16393 s//\1/
16394 q
16395 }
16396 /^X\(\/\).*/{
16397 s//\1/
16398 q
16399 }
16400 s/.*/./; q'`
16401 as_dir="$ac_dir"; as_fn_mkdir_p
b30fcfae 16402 ac_builddir=.
a83ffacf 16403
cd9a469c 16404case "$ac_dir" in
16405.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16406*)
16407 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16408 # A ".." for each directory in $ac_dir_suffix.
16409 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16410 case $ac_top_builddir_sub in
16411 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16412 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16413 esac ;;
16414esac
16415ac_abs_top_builddir=$ac_pwd
16416ac_abs_builddir=$ac_pwd$ac_dir_suffix
16417# for backward compatibility:
16418ac_top_builddir=$ac_top_build_prefix
b30fcfae 16419
16420case $srcdir in
cd9a469c 16421 .) # We are building in place.
b30fcfae 16422 ac_srcdir=.
cd9a469c 16423 ac_top_srcdir=$ac_top_builddir_sub
16424 ac_abs_top_srcdir=$ac_pwd ;;
16425 [\\/]* | ?:[\\/]* ) # Absolute name.
b30fcfae 16426 ac_srcdir=$srcdir$ac_dir_suffix;
cd9a469c 16427 ac_top_srcdir=$srcdir
16428 ac_abs_top_srcdir=$srcdir ;;
16429 *) # Relative name.
16430 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16431 ac_top_srcdir=$ac_top_build_prefix$srcdir
16432 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b30fcfae 16433esac
cd9a469c 16434ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b1660f25 16435
a83ffacf 16436
cd9a469c 16437 case $ac_mode in
16438 :F)
16439 #
16440 # CONFIG_FILE
16441 #
b30fcfae 16442
16443 case $INSTALL in
16444 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
cd9a469c 16445 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
71ab34df 16446 esac
cd9a469c 16447_ACEOF
570af75a 16448
cd9a469c 16449cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16450# If the template does not know about datarootdir, expand it.
16451# FIXME: This hack should be removed a few years after 2.60.
16452ac_datarootdir_hack=; ac_datarootdir_seen=
16453ac_sed_dataroot='
16454/datarootdir/ {
16455 p
16456 q
16457}
16458/@datadir@/p
16459/@docdir@/p
16460/@infodir@/p
16461/@localedir@/p
16462/@mandir@/p'
16463case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16464*datarootdir*) ac_datarootdir_seen=yes;;
16465*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16467$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
570af75a 16468_ACEOF
cd9a469c 16469cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16470 ac_datarootdir_hack='
16471 s&@datadir@&$datadir&g
16472 s&@docdir@&$docdir&g
16473 s&@infodir@&$infodir&g
16474 s&@localedir@&$localedir&g
16475 s&@mandir@&$mandir&g
16476 s&\\\${datarootdir}&$datarootdir&g' ;;
16477esac
16478_ACEOF
16479
16480# Neutralize VPATH when `$srcdir' = `.'.
16481# Shell code in configure.ac might set extrasub.
16482# FIXME: do we really want to maintain this feature?
16483cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16484ac_sed_extra="$ac_vpsub
b30fcfae 16485$extrasub
16486_ACEOF
cd9a469c 16487cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b30fcfae 16488:t
16489/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
cd9a469c 16490s|@configure_input@|$ac_sed_conf_input|;t t
16491s&@top_builddir@&$ac_top_builddir_sub&;t t
16492s&@top_build_prefix@&$ac_top_build_prefix&;t t
16493s&@srcdir@&$ac_srcdir&;t t
16494s&@abs_srcdir@&$ac_abs_srcdir&;t t
16495s&@top_srcdir@&$ac_top_srcdir&;t t
16496s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16497s&@builddir@&$ac_builddir&;t t
16498s&@abs_builddir@&$ac_abs_builddir&;t t
16499s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16500s&@INSTALL@&$ac_INSTALL&;t t
16501$ac_datarootdir_hack
16502"
16503eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16504if $ac_cs_awk_getline; then
f00f02a3 16505 $AWK -f "$ac_tmp/subs.awk"
cd9a469c 16506else
f00f02a3 16507 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16508fi \
16509 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cd9a469c 16510
16511test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
f00f02a3 16512 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16513 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16514 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cd9a469c 16515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
f00f02a3 16516which seems to be undefined. Please make sure it is defined" >&5
cd9a469c 16517$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
f00f02a3 16518which seems to be undefined. Please make sure it is defined" >&2;}
cd9a469c 16519
f00f02a3 16520 rm -f "$ac_tmp/stdin"
cd9a469c 16521 case $ac_file in
f00f02a3 16522 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16523 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cd9a469c 16524 esac \
f00f02a3 16525 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cd9a469c 16526 ;;
570af75a 16527
570af75a 16528
a8298541 16529
cd9a469c 16530 esac
16531
8bb79148 16532
16533 case $ac_file$ac_mode in
16534 "Makefile":F) sed "$extrasub_build" Makefile |
16535 sed "$extrasub_host" |
16536 sed "$extrasub_target" > mf$$
16537 mv -f mf$$ Makefile ;;
16538
16539 esac
cd9a469c 16540done # for ac_tag
16541
16542
16543as_fn_exit 0
b30fcfae 16544_ACEOF
b30fcfae 16545ac_clean_files=$ac_clean_files_save
16546
cd9a469c 16547test $ac_write_fail = 0 ||
f00f02a3 16548 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cd9a469c 16549
b30fcfae 16550
16551# configure is writing to config.log, and then calls config.status.
16552# config.status does its own redirection, appending to config.log.
16553# Unfortunately, on DOS this fails, as config.log is still kept open
16554# by configure, so config.status won't be able to write to it; its
16555# output is simply discarded. So we exec the FD to /dev/null,
16556# effectively closing config.log, so it can be properly (re)opened and
16557# appended to by config.status. When coming back to configure, we
16558# need to make the FD available again.
16559if test "$no_create" != yes; then
16560 ac_cs_success=:
16561 ac_config_status_args=
16562 test "$silent" = yes &&
16563 ac_config_status_args="$ac_config_status_args --quiet"
16564 exec 5>/dev/null
16565 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16566 exec 5>>config.log
16567 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16568 # would make configure fail if this is the last instruction.
f00f02a3 16569 $ac_cs_success || as_fn_exit 1
cd9a469c 16570fi
16571if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16573$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
b30fcfae 16574fi
a8298541 16575