]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
rs6000: New iterator CCEITHER
[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
7f6a0bbc 2784host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
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 \
e60a24bd 2816 target-libphobos \
2817 target-zlib"
71ab34df 2818
328637e8 2819# these tools are built using the target libraries, and are intended to
2820# run only in the target environment
71ab34df 2821#
328637e8 2822# note: any program that *uses* libraries that are in the "target_libraries"
6c9785b4 2823# list belongs in this list.
71ab34df 2824#
4fc99708 2825target_tools="target-rda"
a8298541 2826
71ab34df 2827################################################################################
a8298541 2828
71ab34df 2829## All tools belong in one of the four categories, and are assigned above
2830## We assign ${configdirs} this way to remove all embedded newlines. This
2831## is important because configure will choke if they ever get through.
2832## ${configdirs} is directories we build using the host tools.
2833## ${target_configdirs} is directories we build using the target tools.
71ab34df 2834configdirs=`echo ${host_libs} ${host_tools}`
328637e8 2835target_configdirs=`echo ${target_libraries} ${target_tools}`
2b59cb05 2836build_configdirs=`echo ${build_libs} ${build_tools}`
6f4f34a7 2837
d2d2630b 2838
2839
71ab34df 2840################################################################################
a8298541 2841
71ab34df 2842srcname="gnu development package"
a8298541 2843
71ab34df 2844# This gets set non-empty for some net releases of packages.
2845appdirs=""
a8298541 2846
71ab34df 2847# Define is_cross_compiler to save on calls to 'test'.
2848is_cross_compiler=
2849if test x"${host}" = x"${target}" ; then
2850 is_cross_compiler=no
a8298541 2851else
71ab34df 2852 is_cross_compiler=yes
b30fcfae 2853fi
a8298541 2854
2f61b8ca 2855# Find the build and target subdir names.
6f4f34a7 2856
d3e7b04c 2857# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2858# have matching libraries, they should use host libraries: Makefile.tpl
2859# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2860# However, they still use the build modules, because the corresponding
2861# host modules (e.g. bison) are only built for the host when bootstrap
2862# finishes. So:
2863# - build_subdir is where we find build modules, and never changes.
2864# - build_libsubdir is where we find build libraries, and can be overridden.
2865
2866# Prefix 'build-' so this never conflicts with target_subdir.
6f4f34a7 2867build_subdir="build-${build_noncanonical}"
b30fcfae 2868
cd9a469c 2869# Check whether --with-build-libsubdir was given.
2870if test "${with_build_libsubdir+set}" = set; then :
2871 withval=$with_build_libsubdir; build_libsubdir="$withval"
d3e7b04c 2872else
2873 build_libsubdir="$build_subdir"
cd9a469c 2874fi
2875
c1eb9e31 2876# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2877if ( test $srcdir = . && test -d gcc ) \
2878 || test -d $srcdir/../host-${host_noncanonical}; then
2879 host_subdir="host-${host_noncanonical}"
2880else
2881 host_subdir=.
2882fi
6f4f34a7 2883# No prefix.
2884target_subdir=${target_noncanonical}
b30fcfae 2885
04a2e841 2886# Be sure to cover against remnants of an in-tree build.
2887if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
f00f02a3 2888 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
04a2e841 2889Use a pristine source tree when building in a separate tree" "$LINENO" 5
2890fi
a8298541 2891
71ab34df 2892# Skipdirs are removed silently.
2893skipdirs=
2894# Noconfigdirs are removed loudly.
2895noconfigdirs=""
a8298541 2896
71ab34df 2897use_gnu_ld=
2898# Make sure we don't let GNU ld be added if we didn't want it.
2899if test x$with_gnu_ld = xno ; then
2900 use_gnu_ld=no
3d47fcf5 2901 noconfigdirs="$noconfigdirs ld gold"
a8298541 2902fi
2903
71ab34df 2904use_gnu_as=
2905# Make sure we don't let GNU as be added if we didn't want it.
2906if test x$with_gnu_as = xno ; then
2907 use_gnu_as=no
2908 noconfigdirs="$noconfigdirs gas"
a8298541 2909fi
2910
7bfefa9d 2911use_included_zlib=
6406d366 2912
2913# Check whether --with-system-zlib was given.
2914if test "${with_system_zlib+set}" = set; then :
2915 withval=$with_system_zlib;
2916fi
2917
7bfefa9d 2918# Make sure we don't let ZLIB be added if we didn't want it.
2919if test x$with_system_zlib = xyes ; then
2920 use_included_zlib=no
2921 noconfigdirs="$noconfigdirs zlib"
2922fi
2923
b30fcfae 2924# some tools are so dependent upon X11 that if we're not building with X,
71ab34df 2925# it's not even worth trying to configure, much less build, that tool.
a8298541 2926
71ab34df 2927case ${with_x} in
2928 yes | "") ;; # the default value for this tree is that X11 is available
2929 no)
f843f075 2930 skipdirs="${skipdirs} tk itcl libgui"
71ab34df 2931 # We won't be able to build gdbtk without X.
b30fcfae 2932 enable_gdbtk=no
71ab34df 2933 ;;
2934 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2935esac
a8298541 2936
6c9785b4 2937# Some are only suitable for cross toolchains.
71ab34df 2938# Remove these if host=target.
2939cross_only="target-libgloss target-newlib target-opcodes"
2940
2941case $is_cross_compiler in
2942 no) skipdirs="${skipdirs} ${cross_only}" ;;
71ab34df 2943esac
a8298541 2944
71ab34df 2945# If both --with-headers and --with-libs are specified, default to
2946# --without-newlib.
e8eddfdd 2947if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2948 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
71ab34df 2949 if test x"${with_newlib}" = x ; then
2950 with_newlib=no
2951 fi
a8298541 2952fi
2953
71ab34df 2954# Recognize --with-newlib/--without-newlib.
2955case ${with_newlib} in
2956 no) skipdirs="${skipdirs} target-newlib" ;;
2957 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2958esac
a8298541 2959
a3d93be3 2960# Check whether --enable-as-accelerator-for was given.
2961if test "${enable_as_accelerator_for+set}" = set; then :
67cedda8 2962 enableval=$enable_as_accelerator_for;
a3d93be3 2963fi
2964
2965
2966# Check whether --enable-offload-targets was given.
2967if test "${enable_offload_targets+set}" = set; then :
2968 enableval=$enable_offload_targets;
2969 if test x"$enable_offload_targets" = x; then
f00f02a3 2970 as_fn_error $? "no offload targets specified" "$LINENO" 5
a3d93be3 2971 fi
2972
2973else
2974 enable_offload_targets=
2975fi
2976
2977
1e369e5f 2978# Handle --enable-gold, --enable-ld.
2979# --disable-gold [--enable-ld]
2980# Build only ld. Default option.
85516948 2981# --enable-gold [--enable-ld]
2982# Build both gold and ld. Install gold as "ld.gold", install ld
2983# as "ld.bfd" and "ld".
2984# --enable-gold=default [--enable-ld]
1e369e5f 2985# Build both gold and ld. Install gold as "ld.gold" and "ld",
2986# install ld as "ld.bfd".
2987# --enable-gold[=default] --disable-ld
2988# Build only gold, which is then installed as both "ld.gold" and "ld".
2989# --enable-gold --enable-ld=default
85516948 2990# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2991# and ld.bfd).
1e369e5f 2992# In other words, ld is default
2993# --enable-gold=default --enable-ld=default
2994# Error.
2995
2996default_ld=
cd9a469c 2997# Check whether --enable-gold was given.
2998if test "${enable_gold+set}" = set; then :
2999 enableval=$enable_gold; ENABLE_GOLD=$enableval
3d47fcf5 3000else
3001 ENABLE_GOLD=no
cd9a469c 3002fi
3003
1e369e5f 3004case "${ENABLE_GOLD}" in
3005 yes|default)
af7c5662 3006 # Check for ELF target.
3007 is_elf=no
3008 case "${target}" in
3009 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
e4c33dd2 3010 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
e3a1fe08 3011 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
9d36d513 3012 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
af7c5662 3013 case "${target}" in
3014 *-*-linux*aout* | *-*-linux*oldld*)
3015 ;;
3016 *)
3017 is_elf=yes
3018 ;;
3019 esac
3020 esac
3021
3022 if test "$is_elf" = "yes"; then
3023 # Check for target supported by gold.
3d47fcf5 3024 case "${target}" in
58f62c51 3025 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
ca7ff757 3026 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
1e369e5f 3027 configdirs="$configdirs gold"
3028 if test x${ENABLE_GOLD} = xdefault; then
3029 default_ld=gold
3030 fi
af7c5662 3031 ENABLE_GOLD=yes
3d47fcf5 3032 ;;
3033 esac
af7c5662 3034 fi
3035 ;;
3036 no)
3037 ;;
3038 *)
f00f02a3 3039 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
af7c5662 3040 ;;
1e369e5f 3041esac
3042
3043# Check whether --enable-ld was given.
3044if test "${enable_ld+set}" = set; then :
3045 enableval=$enable_ld; ENABLE_LD=$enableval
3046else
3047 ENABLE_LD=yes
3048fi
3049
3050
3051case "${ENABLE_LD}" in
3052 default)
85516948 3053 if test x${default_ld} != x; then
f00f02a3 3054 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
1e369e5f 3055 fi
3056 ;;
3057 yes)
3058 ;;
3059 no)
3060 if test x${ENABLE_GOLD} != xyes; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3062$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3063 fi
3064 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3065 ;;
3066 *)
f00f02a3 3067 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
1e369e5f 3068 ;;
3069esac
3d47fcf5 3070
afb6adb9 3071# PR gas/19109
3072# Decide the default method for compressing debug sections.
3073# Provide a configure time option to override our default.
3074# Check whether --enable-compressed_debug_sections was given.
3075if test "${enable_compressed_debug_sections+set}" = set; then :
3076 enableval=$enable_compressed_debug_sections;
3077 if test x"$enable_compressed_debug_sections" = xyes; then
f00f02a3 3078 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
afb6adb9 3079 fi
3080
3081else
3082 enable_compressed_debug_sections=
3083fi
3084
3085
71ab34df 3086# Configure extra directories which are host specific
a8298541 3087
71ab34df 3088case "${host}" in
3089 *-cygwin*)
3090 configdirs="$configdirs libtermcap" ;;
3091esac
a8298541 3092
ff7dcf6a 3093# A target can indicate whether a language isn't supported for some reason.
3094# Only spaces may be used in this macro; not newlines or tabs.
3095unsupported_languages=
3096
b30fcfae 3097# Remove more programs from consideration, based on the host or
71ab34df 3098# target this usually means that a port of the program doesn't
3099# exist yet.
c7879c37 3100
71ab34df 3101case "${host}" in
b2240ff6 3102 i[3456789]86-*-msdosdjgpp*)
e3a5e6ff 3103 noconfigdirs="$noconfigdirs tcl tk itcl"
71ab34df 3104 ;;
71ab34df 3105esac
c7879c37 3106
4ee9c684 3107
d9d975ae 3108# Check whether --enable-libquadmath was given.
3109if test "${enable_libquadmath+set}" = set; then :
3110 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3111else
3112 ENABLE_LIBQUADMATH=yes
3113fi
3114
3115if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3116 noconfigdirs="$noconfigdirs target-libquadmath"
3117fi
3118
3119
3120# Check whether --enable-libquadmath-support was given.
3121if test "${enable_libquadmath_support+set}" = set; then :
3122 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3123else
3124 ENABLE_LIBQUADMATH_SUPPORT=yes
3125fi
3126
3127enable_libquadmath_support=
3128if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3129 enable_libquadmath_support=no
3130fi
3131
3132
cd9a469c 3133# Check whether --enable-libada was given.
3134if test "${enable_libada+set}" = set; then :
3135 enableval=$enable_libada; ENABLE_LIBADA=$enableval
93341878 3136else
3137 ENABLE_LIBADA=yes
cd9a469c 3138fi
3139
93341878 3140if test "${ENABLE_LIBADA}" != "yes" ; then
a136b23d 3141 noconfigdirs="$noconfigdirs gnattools"
93341878 3142fi
3143
cd9a469c 3144# Check whether --enable-libssp was given.
3145if test "${enable_libssp+set}" = set; then :
3146 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
07da5214 3147else
3148 ENABLE_LIBSSP=yes
cd9a469c 3149fi
3150
07da5214 3151
a3ba808f 3152# Check whether --enable-libstdcxx was given.
3153if test "${enable_libstdcxx+set}" = set; then :
3154 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3155else
3156 ENABLE_LIBSTDCXX=default
3157fi
3158
3159if test "${ENABLE_LIBSTDCXX}" = "no" ; then
df148e44 3160 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a3ba808f 3161fi
3162
d3a7dd32 3163# If this is accelerator compiler and its target is intelmic we enable
3164# target liboffloadmic by default. If this is compiler with offloading
3165# for intelmic we enable host liboffloadmic by default. Otherwise
3166# liboffloadmic is disabled by default.
3167# Check whether --enable-liboffloadmic was given.
3168if test "${enable_liboffloadmic+set}" = set; then :
3169 enableval=$enable_liboffloadmic; case "$enableval" in
3170 no | host | target)
3171 enable_liboffloadmic=$enableval ;;
3172 *)
f00f02a3 3173 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
d3a7dd32 3174esac
3175else
67cedda8 3176 if test x"$enable_as_accelerator_for" != x; then
d3a7dd32 3177 case "${target}" in
3178 *-intelmic-* | *-intelmicemul-*)
3179 enable_liboffloadmic=target
3180 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3181 ;;
3182 *)
3183 enable_liboffloadmic=no
3184 ;;
3185 esac
3186else
3187 case "${enable_offload_targets}" in
3188 *-intelmic-* | *-intelmicemul-*)
3189 enable_liboffloadmic=host
3190 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3191 ;;
3192 *)
3193 enable_liboffloadmic=no
3194 ;;
3195 esac
3196fi
3197fi
3198
3199
3200
fdcd05c8 3201# Enable libgomp by default on hosted POSIX systems, and a few others.
50996fe5 3202if test x$enable_libgomp = x ; then
1e8e9920 3203 case "${target}" in
3bef4012 3204 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
1e8e9920 3205 ;;
e3a1fe08 3206 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
1e8e9920 3207 ;;
5641963c 3208 *-*-solaris2* | *-*-hpux11*)
1e8e9920 3209 ;;
634efbee 3210 *-*-darwin* | *-*-aix*)
1e8e9920 3211 ;;
fdcd05c8 3212 nvptx*-*-*)
3213 ;;
1e8e9920 3214 *)
3215 noconfigdirs="$noconfigdirs target-libgomp"
3216 ;;
3217 esac
50996fe5 3218fi
1e8e9920 3219
6db1d2ca 3220# Disable libatomic on unsupported systems.
3221if test -d ${srcdir}/libatomic; then
3222 if test x$enable_libatomic = x; then
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3224$as_echo_n "checking for libatomic support... " >&6; }
3225 if (srcdir=${srcdir}/libatomic; \
3226 . ${srcdir}/configure.tgt; \
3227 test -n "$UNSUPPORTED")
3228 then
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230$as_echo "no" >&6; }
3231 noconfigdirs="$noconfigdirs target-libatomic"
3232 else
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3234$as_echo "yes" >&6; }
3235 fi
3236 fi
3237fi
3238
d3a7dd32 3239# Disable liboffloadmic on unsupported systems.
3240if test -d ${srcdir}/liboffloadmic; then
3241 if test x$enable_liboffloadmic != xno; then
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3243$as_echo_n "checking for liboffloadmic support... " >&6; }
3244 if (srcdir=${srcdir}/liboffloadmic; \
3245 . ${srcdir}/configure.tgt; \
3246 test -n "$UNSUPPORTED")
3247 then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249$as_echo "no" >&6; }
3250 noconfigdirs="$noconfigdirs target-liboffloadmic"
3251 else
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3253$as_echo "yes" >&6; }
3254 fi
3255 fi
3256fi
3257
42b15c81 3258# Disable libitm on unsupported systems.
3259if test -d ${srcdir}/libitm; then
3260 if test x$enable_libitm = x; then
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
298c66d9 3262$as_echo_n "checking for libitm support... " >&6; }
42b15c81 3263 if (srcdir=${srcdir}/libitm; \
3264 . ${srcdir}/configure.tgt; \
3265 test -n "$UNSUPPORTED")
3266 then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
298c66d9 3268$as_echo "no" >&6; }
42b15c81 3269 noconfigdirs="$noconfigdirs target-libitm"
3270 else
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
298c66d9 3272$as_echo "yes" >&6; }
42b15c81 3273 fi
3274 fi
4c0315d0 3275fi
3276
492e75a7 3277# Disable libsanitizer on unsupported systems.
3278if test -d ${srcdir}/libsanitizer; then
3279 if test x$enable_libsanitizer = x; then
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3281$as_echo_n "checking for libsanitizer support... " >&6; }
3282 if (srcdir=${srcdir}/libsanitizer; \
3283 . ${srcdir}/configure.tgt; \
3284 test -n "$UNSUPPORTED")
3285 then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287$as_echo "no" >&6; }
3288 noconfigdirs="$noconfigdirs target-libsanitizer"
3289 else
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3291$as_echo "yes" >&6; }
3292 fi
3293 fi
3294fi
3295
b710ec85 3296# Disable libvtv on unsupported systems.
3297if test -d ${srcdir}/libvtv; then
3298 if test x$enable_libvtv = x; then
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3300$as_echo_n "checking for libvtv support... " >&6; }
3301 if (srcdir=${srcdir}/libvtv; \
3302 . ${srcdir}/configure.tgt; \
6d0992e1 3303 test "$VTV_SUPPORTED" != "yes")
b710ec85 3304 then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306$as_echo "no" >&6; }
3307 noconfigdirs="$noconfigdirs target-libvtv"
3308 else
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3310$as_echo "yes" >&6; }
3311 fi
3312 fi
3313fi
3314
202baac8 3315
645a0bd9 3316# Disable libhsail-rt on unsupported systems.
3317if test -d ${srcdir}/libhsail-rt; then
3318 if test x$enable_libhsail_rt = x; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3320$as_echo_n "checking for libhsail-rt support... " >&6; }
3321 if (srcdir=${srcdir}/libhsail-rt; \
3322 . ${srcdir}/configure.tgt; \
3323 test -n "$UNSUPPORTED")
3324 then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326$as_echo "no" >&6; }
3327 unsupported_languages="$unsupported_languages brig"
3328 # This implicitly disables also target-libhsail-rt as it won't
3329 # get added to the build without BRIG FE.
3330 else
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3332$as_echo "yes" >&6; }
3333 fi
3334 fi
3335fi
202baac8 3336
3337
62f0972f 3338# Disable libquadmath for some systems.
3339case "${target}" in
c36ee471 3340 avr-*-*)
3341 noconfigdirs="$noconfigdirs target-libquadmath"
3342 ;;
62f0972f 3343 # libquadmath is unused on AIX and libquadmath build process use of
3344 # LD_LIBRARY_PATH can break AIX bootstrap.
3345 powerpc-*-aix* | rs6000-*-aix*)
3346 noconfigdirs="$noconfigdirs target-libquadmath"
3347 ;;
3348esac
3349
d5831552 3350# Disable libssp for some systems.
3351case "${target}" in
3352 avr-*-*)
76c19016 3353 # No hosted I/O support.
d5831552 3354 noconfigdirs="$noconfigdirs target-libssp"
3355 ;;
3356 powerpc-*-aix* | rs6000-*-aix*)
3357 noconfigdirs="$noconfigdirs target-libssp"
78e515f7 3358 ;;
48aa9227 3359 pru-*-*)
3360 # No hosted I/O support.
3361 noconfigdirs="$noconfigdirs target-libssp"
3362 ;;
78e515f7 3363 rl78-*-*)
9d5fd7d0 3364 # libssp uses a misaligned load to trigger a fault, but the RL78
3365 # doesn't fault for those - instead, it gives a build-time error
3366 # for explicit misaligned loads.
78e515f7 3367 noconfigdirs="$noconfigdirs target-libssp"
d5831552 3368 ;;
8992df51 3369 visium-*-*)
3370 # No hosted I/O support.
3371 noconfigdirs="$noconfigdirs target-libssp"
3372 ;;
d5831552 3373esac
3374
d5831552 3375# Disable libstdc++-v3 for some systems.
a3ba808f 3376# Allow user to override this if they pass --enable-libstdc++-v3
3377if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3378 case "${target}" in
3379 *-*-vxworks*)
3380 # VxWorks uses the Dinkumware C++ library.
3381 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3382 ;;
3383 arm*-wince-pe*)
3384 # the C++ libraries don't build on top of CE's C libraries
3385 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3386 ;;
3387 avr-*-*)
3388 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3389 ;;
b6616c9c 3390 ft32-*-*)
3391 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3392 ;;
a3ba808f 3393 esac
3394fi
d5831552 3395
72a2ce3d 3396# Disable D on systems where it is known to not work.
3397# For testing, you can override this with --enable-languages=d.
3398case ,${enable_languages}, in
3399 *,d,*)
3400 ;;
3401 *)
3402 case "${target}" in
77999887 3403 *-*-darwin*)
72a2ce3d 3404 unsupported_languages="$unsupported_languages d"
3405 ;;
3406 esac
3407 ;;
3408esac
3409
3410# Disable libphobos on unsupported systems.
3411# For testing, you can override this with --enable-libphobos.
3412if test -d ${srcdir}/libphobos; then
3413 if test x$enable_libphobos = x; then
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3415$as_echo_n "checking for libphobos support... " >&6; }
3416 if (srcdir=${srcdir}/libphobos; \
3417 . ${srcdir}/configure.tgt; \
20abc61c 3418 test "$LIBPHOBOS_SUPPORTED" != "yes")
72a2ce3d 3419 then
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421$as_echo "no" >&6; }
3422 noconfigdirs="$noconfigdirs target-libphobos"
3423 else
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3425$as_echo "yes" >&6; }
3426 fi
3427 fi
3428fi
3429
d5831552 3430# Disable Fortran for some systems.
3431case "${target}" in
3432 mmix-*-*)
3433 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3434 unsupported_languages="$unsupported_languages fortran"
3435 ;;
3436esac
3437
38cf534f 3438# Disable libffi for some systems.
3439case "${target}" in
3440 powerpc-*-darwin*)
3441 ;;
3442 i[3456789]86-*-darwin*)
3443 ;;
3444 x86_64-*-darwin[912]*)
3445 ;;
3446 *-*-darwin*)
3447 noconfigdirs="$noconfigdirs target-libffi"
3448 ;;
3449 *-*-netware*)
3450 noconfigdirs="$noconfigdirs target-libffi"
3451 ;;
3452 *-*-phoenix*)
3453 noconfigdirs="$noconfigdirs target-libffi"
3454 ;;
3455 *-*-rtems*)
3456 noconfigdirs="$noconfigdirs target-libffi"
3457 ;;
3458 *-*-tpf*)
3459 noconfigdirs="$noconfigdirs target-libffi"
3460 ;;
3461 *-*-uclinux*)
3462 noconfigdirs="$noconfigdirs target-libffi"
3463 ;;
3464 *-*-vxworks*)
3465 noconfigdirs="$noconfigdirs target-libffi"
3466 ;;
88afddbc 3467 aarch64*-*-freebsd*)
3468 noconfigdirs="$noconfigdirs target-libffi"
3469 ;;
38cf534f 3470 alpha*-*-*vms*)
3471 noconfigdirs="$noconfigdirs target-libffi"
3472 ;;
3473 arm*-*-freebsd*)
3474 noconfigdirs="$noconfigdirs target-libffi"
3475 ;;
3476 arm-wince-pe)
3477 noconfigdirs="$noconfigdirs target-libffi"
3478 ;;
3479 arm*-*-symbianelf*)
3480 noconfigdirs="$noconfigdirs target-libffi"
3481 ;;
3482 cris-*-* | crisv32-*-*)
3483 case "${target}" in
3484 *-*-linux*)
3485 ;;
3486 *) # See PR46792 regarding target-libffi.
3487 noconfigdirs="$noconfigdirs target-libffi";;
3488 esac
3489 ;;
3490 hppa*64*-*-hpux*)
3491 noconfigdirs="$noconfigdirs target-libffi"
3492 ;;
3493 hppa*-hp-hpux11*)
3494 ;;
3495 hppa*-*-hpux*)
3496 noconfigdirs="$noconfigdirs target-libffi"
3497 ;;
3498 ia64*-*-*vms*)
3499 noconfigdirs="$noconfigdirs target-libffi"
3500 ;;
3501 i[3456789]86-w64-mingw*)
3502 noconfigdirs="$noconfigdirs target-libffi"
3503 ;;
3504 i[3456789]86-*-mingw*)
3505 noconfigdirs="$noconfigdirs target-libffi"
3506 ;;
3507 x86_64-*-mingw*)
3508 noconfigdirs="$noconfigdirs target-libffi"
3509 ;;
3510 mmix-*-*)
3511 noconfigdirs="$noconfigdirs target-libffi"
3512 ;;
3513 powerpc-*-aix*)
38cf534f 3514 ;;
3515 rs6000-*-aix*)
38cf534f 3516 ;;
3517 ft32-*-*)
3518 noconfigdirs="$noconfigdirs target-libffi"
3519 ;;
3520 *-*-lynxos*)
3521 noconfigdirs="$noconfigdirs target-libffi"
3522 ;;
3523esac
3524
3525# Disable the go frontend on systems where it is known to not work. Please keep
3526# this in sync with contrib/config-list.mk.
3527case "${target}" in
475738b0 3528*-*-darwin* | *-*-cygwin* | *-*-mingw*)
38cf534f 3529 unsupported_languages="$unsupported_languages go"
3530 ;;
3531esac
3532
a6999726 3533# Disable libgo for some systems where it is known to not work.
3534# For testing, you can easily override this with --enable-libgo.
3535if test x$enable_libgo = x; then
3536 case "${target}" in
3537 *-*-darwin*)
3538 # PR 46986
3539 noconfigdirs="$noconfigdirs target-libgo"
3540 ;;
3541 *-*-cygwin* | *-*-mingw*)
3542 noconfigdirs="$noconfigdirs target-libgo"
3543 ;;
a6999726 3544 esac
3545fi
3546
1c5767f1 3547# Default libgloss CPU subdirectory.
3548libgloss_dir="$target_cpu"
4ee9c684 3549
e0942c78 3550case "${target}" in
3551 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3552 libgloss_dir=wince
3553 ;;
e26fddfa 3554 aarch64*-*-* )
3555 libgloss_dir=aarch64
3556 ;;
e0942c78 3557 arm*-*-*)
3558 libgloss_dir=arm
3559 ;;
3560 cris-*-* | crisv32-*-*)
3561 libgloss_dir=cris
3562 ;;
3563 hppa*-*-*)
3564 libgloss_dir=pa
3565 ;;
3566 i[3456789]86-*-*)
3567 libgloss_dir=i386
3568 ;;
3569 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3570 libgloss_dir=m68hc11
3571 ;;
3572 m68*-*-* | fido-*-*)
3573 libgloss_dir=m68k
3574 ;;
3575 mips*-*-*)
3576 libgloss_dir=mips
3577 ;;
3578 powerpc*-*-*)
3579 libgloss_dir=rs6000
3580 ;;
48aa9227 3581 pru-*-*)
3582 libgloss_dir=pru
3583 ;;
e0942c78 3584 sparc*-*-*)
3585 libgloss_dir=sparc
3586 ;;
3587esac
3588
d556f192 3589# Disable newlib and libgloss for various target OSes.
71ab34df 3590case "${target}" in
d556f192 3591 alpha*-dec-osf*)
3592 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3593 ;;
3594 i[3456789]86-*-linux*)
3595 # This section makes it possible to build newlib natively on linux.
3596 # If we are using a cross compiler then don't configure newlib.
3597 if test x${is_cross_compiler} != xno ; then
3598 noconfigdirs="$noconfigdirs target-newlib"
3599 fi
3600 noconfigdirs="$noconfigdirs target-libgloss"
3601 # If we are not using a cross compiler, do configure newlib.
3602 # Note however, that newlib will only be configured in this situation
3603 # if the --with-newlib option has been given, because otherwise
3604 # 'target-newlib' will appear in skipdirs.
3605 ;;
3606 i[3456789]86-*-rdos*)
3607 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3608 ;;
3609 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3610 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3611 ;;
3612 sparc-*-sunos4*)
3613 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3614 ;;
3615 *-*-aix*)
3616 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3617 ;;
3618 *-*-beos*)
3619 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3620 ;;
71ab34df 3621 *-*-chorusos)
71559dce 3622 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
71ab34df 3623 ;;
d556f192 3624 *-*-dragonfly*)
3625 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3626 ;;
3627 *-*-freebsd*)
3628 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3629 ;;
3630 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3631 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3632 ;;
3633 *-*-lynxos*)
3634 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3635 ;;
3636 *-*-mingw*)
3637 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3638 ;;
3639 *-*-netbsd*)
3640 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3641 ;;
3642 *-*-netware*)
3643 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3644 ;;
3645 *-*-tpf*)
3646 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3647 ;;
3648 *-*-uclinux*)
3649 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3650 ;;
3651 *-*-vxworks*)
3652 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3653 ;;
3654esac
3655
3656case "${target}" in
3657 *-*-chorusos)
3658 ;;
38f4c967 3659 aarch64-*-darwin*)
3660 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3661 noconfigdirs="$noconfigdirs sim target-rda"
3662 ;;
d62c0949 3663 amdgcn*-*-*)
3664 ;;
38f4c967 3665 arm-*-darwin*)
3666 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3667 noconfigdirs="$noconfigdirs sim target-rda"
3668 ;;
40c500e1 3669 powerpc-*-darwin*)
dba2c8ea 3670 noconfigdirs="$noconfigdirs ld gas gdb gprof"
d28caca4 3671 noconfigdirs="$noconfigdirs sim target-rda"
0894307c 3672 ;;
ea864ded 3673 i[3456789]86-*-darwin*)
3674 noconfigdirs="$noconfigdirs ld gprof"
3675 noconfigdirs="$noconfigdirs sim target-rda"
3676 ;;
3677 x86_64-*-darwin[912]*)
d9f9f3af 3678 noconfigdirs="$noconfigdirs ld gas gprof"
3679 noconfigdirs="$noconfigdirs sim target-rda"
3680 ;;
fce068fd 3681 *-*-darwin*)
3682 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3683 noconfigdirs="$noconfigdirs sim target-rda"
fce068fd 3684 ;;
e3a1fe08 3685 *-*-dragonfly*)
e3a1fe08 3686 ;;
c01dd063 3687 *-*-freebsd*)
4ee9c684 3688 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3689 && test -f /usr/local/include/gmp.h; then
3690 with_gmp=/usr/local
3691 fi
4ee9c684 3692 ;;
336577be 3693 *-*-kaos*)
3694 # Remove unsupported stuff on all kaOS configurations.
336577be 3695 noconfigdirs="$noconfigdirs target-libgloss"
3696 ;;
71ab34df 3697 *-*-netbsd*)
71ab34df 3698 ;;
634f7a13 3699 *-*-netware*)
71ab34df 3700 ;;
1d6aa005 3701 *-*-phoenix*)
3702 noconfigdirs="$noconfigdirs target-libgloss"
3703 ;;
71ab34df 3704 *-*-rtems*)
f24be480 3705 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3706 ;;
9f88bc9d 3707 # The tpf target doesn't support gdb yet.
3708 *-*-tpf*)
d556f192 3709 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
9f88bc9d 3710 ;;
688429c4 3711 *-*-uclinux*)
d556f192 3712 noconfigdirs="$noconfigdirs target-rda"
688429c4 3713 ;;
71ab34df 3714 *-*-vxworks*)
71ab34df 3715 ;;
3716 alpha*-dec-osf*)
3717 # ld works, but does not support shared libraries.
71ab34df 3718 # gas doesn't generate exception information.
d556f192 3719 noconfigdirs="$noconfigdirs gas ld"
71ab34df 3720 ;;
3721 alpha*-*-*vms*)
f24be480 3722 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
71ab34df 3723 ;;
71ab34df 3724 alpha*-*-*)
3725 # newlib is not 64 bit ready
f24be480 3726 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
71ab34df 3727 ;;
71ab34df 3728 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
f843f075 3729 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
71ab34df 3730 ;;
194b906d 3731 arc*-*-*)
3732 noconfigdirs="$noconfigdirs sim"
3733 ;;
71ab34df 3734 arm-*-pe*)
f24be480 3735 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3736 ;;
71ab34df 3737 arm-*-riscix*)
71559dce 3738 noconfigdirs="$noconfigdirs ld target-libgloss"
71ab34df 3739 ;;
fd28e216 3740 avr-*-*)
3741 if test x${with_avrlibc} != xno; then
3742 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3743 fi
3744 ;;
71ab34df 3745 c4x-*-* | tic4x-*-*)
71559dce 3746 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3747 ;;
71559dce 3748 tic54x-*-*)
3749 noconfigdirs="$noconfigdirs target-libgloss gdb"
71ab34df 3750 ;;
71ab34df 3751 d10v-*-*)
71559dce 3752 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3753 ;;
3754 d30v-*-*)
71559dce 3755 noconfigdirs="$noconfigdirs gdb"
71ab34df 3756 ;;
3757 fr30-*-elf*)
f24be480 3758 noconfigdirs="$noconfigdirs gdb"
71ab34df 3759 ;;
6406d366 3760 ft32-*-*)
3761 noconfigdirs="$noconfigdirs target-rda gprof"
3762 ;;
ca2751b6 3763 moxie-*-*)
6406d366 3764 noconfigdirs="$noconfigdirs"
ca2751b6 3765 ;;
71ab34df 3766 h8300*-*-*)
f24be480 3767 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3768 ;;
3769 h8500-*-*)
71559dce 3770 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3771 ;;
e8eddfdd 3772 hppa1.1-*-osf* | hppa1.1-*-bsd* )
e8eddfdd 3773 ;;
6406d366 3774 hppa*64*-*-hpux*)
3775 noconfigdirs="$noconfigdirs gdb"
3776 ;;
3777 hppa*-*-hpux11*)
3778 noconfigdirs="$noconfigdirs gdb ld"
3779 ;;
6bd59761 3780 hppa*64*-*-linux*)
71ab34df 3781 ;;
99684e84 3782 hppa*-*-linux*)
08261f02 3783 ;;
71ab34df 3784 hppa*-*-*elf* | \
71ab34df 3785 hppa*-*-lites* | \
3786 hppa*-*-openbsd* | \
3787 hppa*64*-*-*)
71ab34df 3788 ;;
1c5767f1 3789 hppa*-*-pro*)
1c5767f1 3790 ;;
71ab34df 3791 hppa*-*-*)
f24be480 3792 noconfigdirs="$noconfigdirs ld"
71ab34df 3793 ;;
4a9237fb 3794 i960-*-*)
71559dce 3795 noconfigdirs="$noconfigdirs gdb"
4a9237fb 3796 ;;
71ab34df 3797 ia64*-*-elf*)
3798 # No gdb support yet.
6c9785b4 3799 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
71ab34df 3800 ;;
3801 ia64*-**-hpux*)
1aca86a6 3802 # No ld support yet.
6406d366 3803 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
71ab34df 3804 ;;
8408ca00 3805 ia64*-*-*vms*)
3211401d 3806 # No ld support yet.
3807 noconfigdirs="$noconfigdirs libgui itcl ld"
8408ca00 3808 ;;
ec2eb8fb 3809 i[3456789]86-w64-mingw*)
ec2eb8fb 3810 ;;
3811 i[3456789]86-*-mingw*)
d6d689df 3812 target_configdirs="$target_configdirs target-winsup"
b30fcfae 3813 ;;
71ab34df 3814 *-*-cygwin*)
3815 target_configdirs="$target_configdirs target-libtermcap target-winsup"
6c9785b4 3816 noconfigdirs="$noconfigdirs target-libgloss"
2c10944d 3817 # always build newlib if winsup directory is present.
d6d689df 3818 if test -d "$srcdir/winsup/cygwin"; then
2c10944d 3819 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
e8eddfdd 3820 elif test -d "$srcdir/newlib"; then
d6d689df 3821 echo "Warning: winsup/cygwin is missing so newlib can't be built."
2c10944d 3822 fi
b30fcfae 3823 ;;
f74ea578 3824 i[3456789]86-*-pe)
17b3d2a8 3825 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3826 ;;
f74ea578 3827 i[3456789]86-*-sco3.2v5*)
71ab34df 3828 # The linker does not yet know about weak symbols in COFF,
3829 # and is not configured to handle mixed ELF and COFF.
71559dce 3830 noconfigdirs="$noconfigdirs ld target-libgloss"
71ab34df 3831 ;;
f74ea578 3832 i[3456789]86-*-sco*)
71559dce 3833 noconfigdirs="$noconfigdirs gprof target-libgloss"
71ab34df 3834 ;;
14f27bc6 3835 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
71ab34df 3836 noconfigdirs="$noconfigdirs target-libgloss"
3837 ;;
f74ea578 3838 i[3456789]86-*-sysv4*)
71559dce 3839 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3840 ;;
f74ea578 3841 i[3456789]86-*-beos*)
d556f192 3842 noconfigdirs="$noconfigdirs gdb"
602d002b 3843 ;;
ab0da556 3844 i[3456789]86-*-rdos*)
d556f192 3845 noconfigdirs="$noconfigdirs gdb"
1c5767f1 3846 ;;
71ab34df 3847 mmix-*-*)
f24be480 3848 noconfigdirs="$noconfigdirs gdb"
71ab34df 3849 ;;
957985d9 3850 mt-*-*)
f6fa11cb 3851 noconfigdirs="$noconfigdirs sim"
3852 ;;
b9bdd103 3853 nfp-*-*)
3854 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3855 noconfigdirs="$noconfigdirs $target_libraries"
3856 ;;
71ab34df 3857 powerpc-*-aix*)
3858 # copied from rs6000-*-* entry
d556f192 3859 noconfigdirs="$noconfigdirs gprof"
71ab34df 3860 ;;
6bd59761 3861 powerpc*-*-winnt* | powerpc*-*-pe*)
71ab34df 3862 target_configdirs="$target_configdirs target-winsup"
71559dce 3863 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
71ab34df 3864 # always build newlib.
3865 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3866 ;;
3867 # This is temporary until we can link against shared libraries
3868 powerpcle-*-solaris*)
71559dce 3869 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
71ab34df 3870 ;;
3871 powerpc-*-beos*)
d556f192 3872 noconfigdirs="$noconfigdirs gdb"
71ab34df 3873 ;;
71ab34df 3874 rs6000-*-lynxos*)
d556f192 3875 noconfigdirs="$noconfigdirs gprof"
71ab34df 3876 ;;
3877 rs6000-*-aix*)
d556f192 3878 noconfigdirs="$noconfigdirs gprof"
71ab34df 3879 ;;
3880 rs6000-*-*)
f24be480 3881 noconfigdirs="$noconfigdirs gprof"
71ab34df 3882 ;;
3883 m68k-apollo-*)
71559dce 3884 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
71ab34df 3885 ;;
ba2b484f 3886 microblaze*)
f24be480 3887 noconfigdirs="$noconfigdirs gprof"
ba2b484f 3888 ;;
d781ea5c 3889 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
68c9bc25 3890 if test x$with_newlib = xyes; then
3891 noconfigdirs="$noconfigdirs gprof"
3892 fi
68c9bc25 3893 ;;
71ab34df 3894 mips*-*-irix5*)
71559dce 3895 noconfigdirs="$noconfigdirs gprof target-libgloss"
71ab34df 3896 ;;
3897 mips*-*-irix6*)
f24be480 3898 noconfigdirs="$noconfigdirs gprof target-libgloss"
71ab34df 3899 ;;
71ab34df 3900 mips*-*-bsd*)
d6449910 3901 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
71ab34df 3902 ;;
71ab34df 3903 mips*-*-linux*)
71ab34df 3904 ;;
d6449910 3905 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3906 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3907 noconfigdirs="$noconfigdirs ld gas gprof"
3908 ;;
71ab34df 3909 mips*-*-*)
f24be480 3910 noconfigdirs="$noconfigdirs gprof"
71ab34df 3911 ;;
8ce80784 3912 nvptx*-*-*)
8ce80784 3913 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3914 ;;
9a9b5abf 3915 sh-*-*)
39f6b116 3916 case "${target}" in
3917 sh*-*-elf)
f24be480 3918 ;;
39f6b116 3919 *)
f24be480 3920 noconfigdirs="$noconfigdirs target-libgloss" ;;
39f6b116 3921 esac
71ab34df 3922 ;;
71ab34df 3923 sparc-*-sunos4*)
d556f192 3924 if test x${is_cross_compiler} = xno ; then
71ab34df 3925 use_gnu_ld=no
3926 fi
3927 ;;
fa0a53e3 3928 tic6x-*-*)
ccdfa490 3929 noconfigdirs="$noconfigdirs sim"
fa0a53e3 3930 ;;
2da35515 3931 tilepro*-*-* | tilegx*-*-*)
e5fa74b2 3932 noconfigdirs="$noconfigdirs sim"
3933 ;;
71ab34df 3934 v810-*-*)
71559dce 3935 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
71ab34df 3936 ;;
3937 vax-*-*)
f24be480 3938 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
71ab34df 3939 ;;
c2762a30 3940 wasm32-*-*)
3941 noconfigdirs="$noconfigdirs ld"
3942 ;;
71ab34df 3943esac
a8298541 3944
71ab34df 3945# If we aren't building newlib, then don't build libgloss, since libgloss
3946# depends upon some newlib header files.
3947case "${noconfigdirs}" in
3948 *target-libgloss*) ;;
3949 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3950esac
3951
71ab34df 3952# Work in distributions that contain no compiler tools, like Autoconf.
71ab34df 3953host_makefile_frag=/dev/null
3954if test -d ${srcdir}/config ; then
3955case "${host}" in
f74ea578 3956 i[3456789]86-*-msdosdjgpp*)
71ab34df 3957 host_makefile_frag="config/mh-djgpp"
3958 ;;
3959 *-cygwin*)
45043b2b 3960
cd9a469c 3961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3962$as_echo_n "checking to see if cat works as expected... " >&6; }
45043b2b 3963echo a >cygwin-cat-check
82d97a59 3964if test `cat cygwin-cat-check` = a ; then
45043b2b 3965 rm cygwin-cat-check
cd9a469c 3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3967$as_echo "yes" >&6; }
45043b2b 3968else
3969 rm cygwin-cat-check
cd9a469c 3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3971$as_echo "no" >&6; }
f00f02a3 3972 as_fn_error $? "The cat command does not ignore carriage return characters.
45043b2b 3973 Please either mount the build directory in binary mode or run the following
3974 commands before running any configure script:
3975set -o igncr
3976export SHELLOPTS
cd9a469c 3977 " "$LINENO" 5
45043b2b 3978fi
3979
71ab34df 3980 host_makefile_frag="config/mh-cygwin"
3981 ;;
5a92bcc2 3982 *-mingw*)
70d8e49e 3983 host_makefile_frag="config/mh-mingw"
a378fc89 3984 ;;
bed3355c 3985 alpha*-linux*)
539ded76 3986 host_makefile_frag="config/mh-alpha-linux"
3987 ;;
d2b94e36 3988 hppa*-hp-hpux10*)
d2b94e36 3989 host_makefile_frag="config/mh-pa-hpux10"
71ab34df 3990 ;;
b2240ff6 3991 hppa*-hp-hpux*)
d2b94e36 3992 host_makefile_frag="config/mh-pa"
3993 ;;
3994 hppa*-*)
3995 host_makefile_frag="config/mh-pa"
3996 ;;
16463c8d 3997 *-*-darwin*)
3998 host_makefile_frag="config/mh-darwin"
0222d984 3999 ;;
9d44a802 4000 powerpc-*-aix*)
4001 host_makefile_frag="config/mh-ppc-aix"
4002 ;;
4003 rs6000-*-aix*)
4004 host_makefile_frag="config/mh-ppc-aix"
4005 ;;
71ab34df 4006esac
4007fi
4008
8e1fea1a 4009if test "${build}" != "${host}" ; then
93c5e793 4010 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4011 AS_FOR_BUILD=${AS_FOR_BUILD-as}
8e1fea1a 4012 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
93c5e793 4013 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
93c5e793 4014 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
5ff5b630 4015 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
03385ed3 4016 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
93c5e793 4017 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4018 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4019 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4020 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4021 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4022 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4023else
4024 AR_FOR_BUILD="\$(AR)"
4025 AS_FOR_BUILD="\$(AS)"
a4af6a58 4026 CC_FOR_BUILD="\$(CC)"
93c5e793 4027 CXX_FOR_BUILD="\$(CXX)"
93c5e793 4028 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
5ff5b630 4029 GOC_FOR_BUILD="\$(GOC)"
03385ed3 4030 GDC_FOR_BUILD="\$(GDC)"
93c5e793 4031 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4032 LD_FOR_BUILD="\$(LD)"
4033 NM_FOR_BUILD="\$(NM)"
4034 RANLIB_FOR_BUILD="\$(RANLIB)"
4035 WINDRES_FOR_BUILD="\$(WINDRES)"
4036 WINDMC_FOR_BUILD="\$(WINDMC)"
eae5b2bc 4037fi
4038
4039ac_ext=c
b30fcfae 4040ac_cpp='$CPP $CPPFLAGS'
4041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4043ac_compiler_gnu=$ac_cv_c_compiler_gnu
4044if test -n "$ac_tool_prefix"; then
4045 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4046set dummy ${ac_tool_prefix}gcc; ac_word=$2
cd9a469c 4047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4048$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4049if ${ac_cv_prog_CC+:} false; then :
cd9a469c 4050 $as_echo_n "(cached) " >&6
b30fcfae 4051else
4052 if test -n "$CC"; then
4053 ac_cv_prog_CC="$CC" # Let the user override the test.
4054else
4055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056for as_dir in $PATH
4057do
4058 IFS=$as_save_IFS
4059 test -z "$as_dir" && as_dir=.
cd9a469c 4060 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 4062 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cd9a469c 4063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 4064 break 2
4065 fi
4066done
cd9a469c 4067 done
4068IFS=$as_save_IFS
b30fcfae 4069
4070fi
4071fi
4072CC=$ac_cv_prog_CC
4073if test -n "$CC"; then
cd9a469c 4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4075$as_echo "$CC" >&6; }
b30fcfae 4076else
cd9a469c 4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4078$as_echo "no" >&6; }
b30fcfae 4079fi
4080
cd9a469c 4081
b30fcfae 4082fi
4083if test -z "$ac_cv_prog_CC"; then
4084 ac_ct_CC=$CC
a4af6a58 4085 # Extract the first word of "gcc", so it can be a program name with args.
4086set dummy gcc; ac_word=$2
cd9a469c 4087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4088$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4089if ${ac_cv_prog_ac_ct_CC+:} false; then :
cd9a469c 4090 $as_echo_n "(cached) " >&6
b30fcfae 4091else
4092 if test -n "$ac_ct_CC"; then
4093 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4094else
4095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096for as_dir in $PATH
4097do
4098 IFS=$as_save_IFS
4099 test -z "$as_dir" && as_dir=.
cd9a469c 4100 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 4102 ac_cv_prog_ac_ct_CC="gcc"
cd9a469c 4103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 4104 break 2
4105 fi
4106done
cd9a469c 4107 done
4108IFS=$as_save_IFS
b30fcfae 4109
4110fi
4111fi
4112ac_ct_CC=$ac_cv_prog_ac_ct_CC
4113if test -n "$ac_ct_CC"; then
cd9a469c 4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4115$as_echo "$ac_ct_CC" >&6; }
b30fcfae 4116else
cd9a469c 4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4118$as_echo "no" >&6; }
b30fcfae 4119fi
4120
cd9a469c 4121 if test "x$ac_ct_CC" = x; then
4122 CC=""
4123 else
4124 case $cross_compiling:$ac_tool_warned in
4125yes:)
4126{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4127$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4128ac_tool_warned=yes ;;
4129esac
4130 CC=$ac_ct_CC
4131 fi
b30fcfae 4132else
4133 CC="$ac_cv_prog_CC"
4134fi
4135
4136if test -z "$CC"; then
cd9a469c 4137 if test -n "$ac_tool_prefix"; then
4138 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b30fcfae 4139set dummy ${ac_tool_prefix}cc; ac_word=$2
cd9a469c 4140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4141$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4142if ${ac_cv_prog_CC+:} false; then :
cd9a469c 4143 $as_echo_n "(cached) " >&6
8e1fea1a 4144else
4145 if test -n "$CC"; then
4146 ac_cv_prog_CC="$CC" # Let the user override the test.
4147else
b30fcfae 4148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149for as_dir in $PATH
4150do
4151 IFS=$as_save_IFS
4152 test -z "$as_dir" && as_dir=.
cd9a469c 4153 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 4155 ac_cv_prog_CC="${ac_tool_prefix}cc"
cd9a469c 4156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 4157 break 2
4158 fi
4159done
cd9a469c 4160 done
4161IFS=$as_save_IFS
b30fcfae 4162
a83ffacf 4163fi
a83ffacf 4164fi
b30fcfae 4165CC=$ac_cv_prog_CC
ae48753c 4166if test -n "$CC"; then
cd9a469c 4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4168$as_echo "$CC" >&6; }
5084f823 4169else
cd9a469c 4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4171$as_echo "no" >&6; }
5084f823 4172fi
4173
5084f823 4174
cd9a469c 4175 fi
b30fcfae 4176fi
8e1fea1a 4177if test -z "$CC"; then
4178 # Extract the first word of "cc", so it can be a program name with args.
4179set dummy cc; ac_word=$2
cd9a469c 4180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4181$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4182if ${ac_cv_prog_CC+:} false; then :
cd9a469c 4183 $as_echo_n "(cached) " >&6
8e1fea1a 4184else
4185 if test -n "$CC"; then
4186 ac_cv_prog_CC="$CC" # Let the user override the test.
4187else
a83ffacf 4188 ac_prog_rejected=no
b30fcfae 4189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190for as_dir in $PATH
4191do
4192 IFS=$as_save_IFS
4193 test -z "$as_dir" && as_dir=.
cd9a469c 4194 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 4196 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4197 ac_prog_rejected=yes
4198 continue
4199 fi
4200 ac_cv_prog_CC="cc"
cd9a469c 4201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 4202 break 2
4203 fi
4204done
cd9a469c 4205 done
4206IFS=$as_save_IFS
b30fcfae 4207
8e1fea1a 4208if test $ac_prog_rejected = yes; then
4209 # We found a bogon in the path, so make sure we never use it.
4210 set dummy $ac_cv_prog_CC
4211 shift
b30fcfae 4212 if test $# != 0; then
8e1fea1a 4213 # We chose a different compiler from the bogus one.
4214 # However, it has the same basename, so the bogon will be chosen
4215 # first if we set CC to just the basename; use the full file name.
4216 shift
b30fcfae 4217 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
8e1fea1a 4218 fi
4219fi
4220fi
4221fi
b30fcfae 4222CC=$ac_cv_prog_CC
8e1fea1a 4223if test -n "$CC"; then
cd9a469c 4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4225$as_echo "$CC" >&6; }
8e1fea1a 4226else
cd9a469c 4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4228$as_echo "no" >&6; }
8e1fea1a 4229fi
4230
cd9a469c 4231
b30fcfae 4232fi
4233if test -z "$CC"; then
4234 if test -n "$ac_tool_prefix"; then
cd9a469c 4235 for ac_prog in cl.exe
b30fcfae 4236 do
4237 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4238set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cd9a469c 4239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4240$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4241if ${ac_cv_prog_CC+:} false; then :
cd9a469c 4242 $as_echo_n "(cached) " >&6
8e1fea1a 4243else
4244 if test -n "$CC"; then
4245 ac_cv_prog_CC="$CC" # Let the user override the test.
4246else
b30fcfae 4247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248for as_dir in $PATH
4249do
4250 IFS=$as_save_IFS
4251 test -z "$as_dir" && as_dir=.
cd9a469c 4252 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 4254 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cd9a469c 4255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 4256 break 2
4257 fi
4258done
cd9a469c 4259 done
4260IFS=$as_save_IFS
b30fcfae 4261
8e1fea1a 4262fi
4263fi
b30fcfae 4264CC=$ac_cv_prog_CC
8e1fea1a 4265if test -n "$CC"; then
cd9a469c 4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4267$as_echo "$CC" >&6; }
b1660f25 4268else
cd9a469c 4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4270$as_echo "no" >&6; }
a4af6a58 4271fi
ae48753c 4272
cd9a469c 4273
b30fcfae 4274 test -n "$CC" && break
4275 done
ae48753c 4276fi
b30fcfae 4277if test -z "$CC"; then
4278 ac_ct_CC=$CC
cd9a469c 4279 for ac_prog in cl.exe
b30fcfae 4280do
4281 # Extract the first word of "$ac_prog", so it can be a program name with args.
4282set dummy $ac_prog; ac_word=$2
cd9a469c 4283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4284$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4285if ${ac_cv_prog_ac_ct_CC+:} false; then :
cd9a469c 4286 $as_echo_n "(cached) " >&6
a83ffacf 4287else
b30fcfae 4288 if test -n "$ac_ct_CC"; then
4289 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
a83ffacf 4290else
b30fcfae 4291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292for as_dir in $PATH
4293do
4294 IFS=$as_save_IFS
4295 test -z "$as_dir" && as_dir=.
cd9a469c 4296 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 4298 ac_cv_prog_ac_ct_CC="$ac_prog"
cd9a469c 4299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 4300 break 2
4301 fi
4302done
cd9a469c 4303 done
4304IFS=$as_save_IFS
b30fcfae 4305
ae48753c 4306fi
4307fi
b30fcfae 4308ac_ct_CC=$ac_cv_prog_ac_ct_CC
4309if test -n "$ac_ct_CC"; then
cd9a469c 4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4311$as_echo "$ac_ct_CC" >&6; }
a4af6a58 4312else
cd9a469c 4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4314$as_echo "no" >&6; }
ae48753c 4315fi
a83ffacf 4316
cd9a469c 4317
b30fcfae 4318 test -n "$ac_ct_CC" && break
4319done
4320
cd9a469c 4321 if test "x$ac_ct_CC" = x; then
4322 CC=""
4323 else
4324 case $cross_compiling:$ac_tool_warned in
4325yes:)
4326{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4327$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4328ac_tool_warned=yes ;;
4329esac
4330 CC=$ac_ct_CC
4331 fi
b30fcfae 4332fi
4333
4334fi
4335
4336
cd9a469c 4337test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4338$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 4339as_fn_error $? "no acceptable C compiler found in \$PATH
4340See \`config.log' for more details" "$LINENO" 5; }
b30fcfae 4341
4342# Provide some information about the compiler.
cd9a469c 4343$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4344set X $ac_compile
4345ac_compiler=$2
4346for ac_option in --version -v -V -qversion; do
4347 { { ac_try="$ac_compiler $ac_option >&5"
4348case "(($ac_try" in
4349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350 *) ac_try_echo=$ac_try;;
4351esac
4352eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4353$as_echo "$ac_try_echo"; } >&5
4354 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b30fcfae 4355 ac_status=$?
cd9a469c 4356 if test -s conftest.err; then
4357 sed '10a\
4358... rest of stderr output deleted ...
4359 10q' conftest.err >conftest.er1
4360 cat conftest.er1 >&5
cd9a469c 4361 fi
f00f02a3 4362 rm -f conftest.er1 conftest.err
cd9a469c 4363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4364 test $ac_status = 0; }
4365done
b30fcfae 4366
cd9a469c 4367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 4368/* end confdefs.h. */
4369
4370int
4371main ()
4372{
4373
4374 ;
4375 return 0;
4376}
4377_ACEOF
4378ac_clean_files_save=$ac_clean_files
f00f02a3 4379ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
b30fcfae 4380# Try to create an executable without -o first, disregard a.out.
4381# It will help us diagnose broken compilers, and finding out an intuition
4382# of exeext.
f00f02a3 4383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4384$as_echo_n "checking whether the C compiler works... " >&6; }
cd9a469c 4385ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4386
4387# The possible output files:
4388ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4389
4390ac_rmfiles=
4391for ac_file in $ac_files
4392do
4393 case $ac_file in
4394 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4395 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4396 esac
4397done
4398rm -f $ac_rmfiles
4399
4400if { { ac_try="$ac_link_default"
4401case "(($ac_try" in
4402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403 *) ac_try_echo=$ac_try;;
4404esac
4405eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4406$as_echo "$ac_try_echo"; } >&5
4407 (eval "$ac_link_default") 2>&5
b30fcfae 4408 ac_status=$?
cd9a469c 4409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4410 test $ac_status = 0; }; then :
4411 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4412# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4413# in a Makefile. We should not override ac_cv_exeext if it was cached,
4414# so that the user can short-circuit this test for compilers unknown to
4415# Autoconf.
4416for ac_file in $ac_files ''
b30fcfae 4417do
4418 test -f "$ac_file" || continue
4419 case $ac_file in
cd9a469c 4420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b30fcfae 4421 ;;
4422 [ab].out )
4423 # We found the default executable, but exeext='' is most
4424 # certainly right.
4425 break;;
4426 *.* )
cd9a469c 4427 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4428 then :; else
4429 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4430 fi
4431 # We set ac_cv_exeext here because the later test for it is not
4432 # safe: cross compilers may not add the suffix if given an `-o'
4433 # argument, so we may need to know it at that point already.
4434 # Even if this section looks crufty: it has the advantage of
4435 # actually working.
b30fcfae 4436 break;;
4437 * )
4438 break;;
4439 esac
4440done
cd9a469c 4441test "$ac_cv_exeext" = no && ac_cv_exeext=
4442
b30fcfae 4443else
cd9a469c 4444 ac_file=''
4445fi
cd9a469c 4446if test -z "$ac_file"; then :
f00f02a3 4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4448$as_echo "no" >&6; }
4449$as_echo "$as_me: failed program was:" >&5
b30fcfae 4450sed 's/^/| /' conftest.$ac_ext >&5
4451
cd9a469c 4452{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4453$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 4454as_fn_error 77 "C compiler cannot create executables
4455See \`config.log' for more details" "$LINENO" 5; }
4456else
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4458$as_echo "yes" >&6; }
b30fcfae 4459fi
f00f02a3 4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4461$as_echo_n "checking for C compiler default output file name... " >&6; }
4462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4463$as_echo "$ac_file" >&6; }
b30fcfae 4464ac_exeext=$ac_cv_exeext
b30fcfae 4465
f00f02a3 4466rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
b30fcfae 4467ac_clean_files=$ac_clean_files_save
cd9a469c 4468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4469$as_echo_n "checking for suffix of executables... " >&6; }
4470if { { ac_try="$ac_link"
4471case "(($ac_try" in
4472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473 *) ac_try_echo=$ac_try;;
4474esac
4475eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4476$as_echo "$ac_try_echo"; } >&5
4477 (eval "$ac_link") 2>&5
b30fcfae 4478 ac_status=$?
cd9a469c 4479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4480 test $ac_status = 0; }; then :
b30fcfae 4481 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4482# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4483# work properly (i.e., refer to `conftest.exe'), while it won't with
4484# `rm'.
4485for ac_file in conftest.exe conftest conftest.*; do
4486 test -f "$ac_file" || continue
4487 case $ac_file in
cd9a469c 4488 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b30fcfae 4489 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b30fcfae 4490 break;;
4491 * ) break;;
4492 esac
4493done
ae48753c 4494else
cd9a469c 4495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4496$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 4497as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4498See \`config.log' for more details" "$LINENO" 5; }
b30fcfae 4499fi
f00f02a3 4500rm -f conftest conftest$ac_cv_exeext
cd9a469c 4501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4502$as_echo "$ac_cv_exeext" >&6; }
b30fcfae 4503
4504rm -f conftest.$ac_ext
4505EXEEXT=$ac_cv_exeext
4506ac_exeext=$EXEEXT
f00f02a3 4507cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508/* end confdefs.h. */
4509#include <stdio.h>
4510int
4511main ()
4512{
4513FILE *f = fopen ("conftest.out", "w");
4514 return ferror (f) || fclose (f) != 0;
4515
4516 ;
4517 return 0;
4518}
4519_ACEOF
4520ac_clean_files="$ac_clean_files conftest.out"
4521# Check that the compiler produces executables we can run. If not, either
4522# the compiler is broken, or we cross compile.
4523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4524$as_echo_n "checking whether we are cross compiling... " >&6; }
4525if test "$cross_compiling" != yes; then
4526 { { ac_try="$ac_link"
4527case "(($ac_try" in
4528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4529 *) ac_try_echo=$ac_try;;
4530esac
4531eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4532$as_echo "$ac_try_echo"; } >&5
4533 (eval "$ac_link") 2>&5
4534 ac_status=$?
4535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4536 test $ac_status = 0; }
4537 if { ac_try='./conftest$ac_cv_exeext'
4538 { { case "(($ac_try" in
4539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4540 *) ac_try_echo=$ac_try;;
4541esac
4542eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4543$as_echo "$ac_try_echo"; } >&5
4544 (eval "$ac_try") 2>&5
4545 ac_status=$?
4546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4547 test $ac_status = 0; }; }; then
4548 cross_compiling=no
4549 else
4550 if test "$cross_compiling" = maybe; then
4551 cross_compiling=yes
4552 else
4553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4554$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4555as_fn_error $? "cannot run C compiled programs.
4556If you meant to cross compile, use \`--host'.
4557See \`config.log' for more details" "$LINENO" 5; }
4558 fi
4559 fi
4560fi
4561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4562$as_echo "$cross_compiling" >&6; }
4563
4564rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4565ac_clean_files=$ac_clean_files_save
cd9a469c 4566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4567$as_echo_n "checking for suffix of object files... " >&6; }
f00f02a3 4568if ${ac_cv_objext+:} false; then :
cd9a469c 4569 $as_echo_n "(cached) " >&6
b30fcfae 4570else
cd9a469c 4571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 4572/* end confdefs.h. */
4573
4574int
4575main ()
4576{
4577
4578 ;
4579 return 0;
4580}
4581_ACEOF
4582rm -f conftest.o conftest.obj
cd9a469c 4583if { { ac_try="$ac_compile"
4584case "(($ac_try" in
4585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586 *) ac_try_echo=$ac_try;;
4587esac
4588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4589$as_echo "$ac_try_echo"; } >&5
4590 (eval "$ac_compile") 2>&5
b30fcfae 4591 ac_status=$?
cd9a469c 4592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4593 test $ac_status = 0; }; then :
4594 for ac_file in conftest.o conftest.obj conftest.*; do
4595 test -f "$ac_file" || continue;
b30fcfae 4596 case $ac_file in
cd9a469c 4597 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b30fcfae 4598 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4599 break;;
4600 esac
4601done
4602else
cd9a469c 4603 $as_echo "$as_me: failed program was:" >&5
b30fcfae 4604sed 's/^/| /' conftest.$ac_ext >&5
4605
cd9a469c 4606{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4607$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 4608as_fn_error $? "cannot compute suffix of object files: cannot compile
4609See \`config.log' for more details" "$LINENO" 5; }
b30fcfae 4610fi
b30fcfae 4611rm -f conftest.$ac_cv_objext conftest.$ac_ext
4612fi
cd9a469c 4613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4614$as_echo "$ac_cv_objext" >&6; }
b30fcfae 4615OBJEXT=$ac_cv_objext
4616ac_objext=$OBJEXT
cd9a469c 4617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4618$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
f00f02a3 4619if ${ac_cv_c_compiler_gnu+:} false; then :
cd9a469c 4620 $as_echo_n "(cached) " >&6
b30fcfae 4621else
cd9a469c 4622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 4623/* end confdefs.h. */
4624
4625int
4626main ()
4627{
4628#ifndef __GNUC__
4629 choke me
4630#endif
4631
4632 ;
4633 return 0;
4634}
4635_ACEOF
cd9a469c 4636if ac_fn_c_try_compile "$LINENO"; then :
b30fcfae 4637 ac_compiler_gnu=yes
4638else
cd9a469c 4639 ac_compiler_gnu=no
b30fcfae 4640fi
cd9a469c 4641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b30fcfae 4642ac_cv_c_compiler_gnu=$ac_compiler_gnu
4643
4644fi
cd9a469c 4645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4646$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4647if test $ac_compiler_gnu = yes; then
4648 GCC=yes
4649else
4650 GCC=
4651fi
b30fcfae 4652ac_test_CFLAGS=${CFLAGS+set}
4653ac_save_CFLAGS=$CFLAGS
cd9a469c 4654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4655$as_echo_n "checking whether $CC accepts -g... " >&6; }
f00f02a3 4656if ${ac_cv_prog_cc_g+:} false; then :
cd9a469c 4657 $as_echo_n "(cached) " >&6
4658else
4659 ac_save_c_werror_flag=$ac_c_werror_flag
4660 ac_c_werror_flag=yes
4661 ac_cv_prog_cc_g=no
4662 CFLAGS="-g"
4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 4664/* end confdefs.h. */
4665
4666int
4667main ()
4668{
4669
4670 ;
4671 return 0;
4672}
4673_ACEOF
cd9a469c 4674if ac_fn_c_try_compile "$LINENO"; then :
8e1fea1a 4675 ac_cv_prog_cc_g=yes
4676else
cd9a469c 4677 CFLAGS=""
4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679/* end confdefs.h. */
4680
4681int
4682main ()
4683{
4684
4685 ;
4686 return 0;
4687}
4688_ACEOF
4689if ac_fn_c_try_compile "$LINENO"; then :
4690
4691else
4692 ac_c_werror_flag=$ac_save_c_werror_flag
4693 CFLAGS="-g"
4694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4695/* end confdefs.h. */
ae48753c 4696
cd9a469c 4697int
4698main ()
4699{
4700
4701 ;
4702 return 0;
4703}
4704_ACEOF
4705if ac_fn_c_try_compile "$LINENO"; then :
4706 ac_cv_prog_cc_g=yes
4707fi
4708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a83ffacf 4709fi
cd9a469c 4710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b30fcfae 4711fi
cd9a469c 4712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4713 ac_c_werror_flag=$ac_save_c_werror_flag
4714fi
4715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4716$as_echo "$ac_cv_prog_cc_g" >&6; }
8e1fea1a 4717if test "$ac_test_CFLAGS" = set; then
b30fcfae 4718 CFLAGS=$ac_save_CFLAGS
8e1fea1a 4719elif test $ac_cv_prog_cc_g = yes; then
4720 if test "$GCC" = yes; then
4721 CFLAGS="-g -O2"
4722 else
4723 CFLAGS="-g"
4724 fi
4725else
4726 if test "$GCC" = yes; then
4727 CFLAGS="-O2"
4728 else
4729 CFLAGS=
4730 fi
4731fi
cd9a469c 4732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4733$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
f00f02a3 4734if ${ac_cv_prog_cc_c89+:} false; then :
cd9a469c 4735 $as_echo_n "(cached) " >&6
b30fcfae 4736else
cd9a469c 4737 ac_cv_prog_cc_c89=no
b30fcfae 4738ac_save_CC=$CC
cd9a469c 4739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 4740/* end confdefs.h. */
4741#include <stdarg.h>
4742#include <stdio.h>
f00f02a3 4743struct stat;
b30fcfae 4744/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4745struct buf { int x; };
4746FILE * (*rcsopen) (struct buf *, struct stat *, int);
4747static char *e (p, i)
4748 char **p;
4749 int i;
4750{
4751 return p[i];
4752}
4753static char *f (char * (*g) (char **, int), char **p, ...)
4754{
4755 char *s;
4756 va_list v;
4757 va_start (v,p);
4758 s = g (p, va_arg (v,int));
4759 va_end (v);
4760 return s;
4761}
4762
4763/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4764 function prototypes and stuff, but not '\xHH' hex character constants.
4765 These don't provoke an error unfortunately, instead are silently treated
cd9a469c 4766 as 'x'. The following induces an error, until -std is added to get
b30fcfae 4767 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4768 array size at least. It's necessary to write '\x00'==0 to get something
cd9a469c 4769 that's true only with -std. */
b30fcfae 4770int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4771
cd9a469c 4772/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4773 inside strings and character constants. */
4774#define FOO(x) 'x'
4775int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4776
b30fcfae 4777int test (int i, double x);
4778struct s1 {int (*f) (int a);};
4779struct s2 {int (*f) (double a);};
4780int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4781int argc;
4782char **argv;
4783int
4784main ()
4785{
4786return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4787 ;
4788 return 0;
4789}
4790_ACEOF
cd9a469c 4791for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4792 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b30fcfae 4793do
4794 CC="$ac_save_CC $ac_arg"
cd9a469c 4795 if ac_fn_c_try_compile "$LINENO"; then :
4796 ac_cv_prog_cc_c89=$ac_arg
b30fcfae 4797fi
cd9a469c 4798rm -f core conftest.err conftest.$ac_objext
4799 test "x$ac_cv_prog_cc_c89" != "xno" && break
b30fcfae 4800done
cd9a469c 4801rm -f conftest.$ac_ext
b30fcfae 4802CC=$ac_save_CC
4803
4804fi
cd9a469c 4805# AC_CACHE_VAL
4806case "x$ac_cv_prog_cc_c89" in
4807 x)
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4809$as_echo "none needed" >&6; } ;;
4810 xno)
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4812$as_echo "unsupported" >&6; } ;;
b30fcfae 4813 *)
cd9a469c 4814 CC="$CC $ac_cv_prog_cc_c89"
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4816$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b30fcfae 4817esac
cd9a469c 4818if test "x$ac_cv_prog_cc_c89" != xno; then :
b30fcfae 4819
5084f823 4820fi
4821
5084f823 4822ac_ext=c
4823ac_cpp='$CPP $CPPFLAGS'
4824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4826ac_compiler_gnu=$ac_cv_c_compiler_gnu
4827
cd9a469c 4828ac_ext=cpp
5084f823 4829ac_cpp='$CXXCPP $CPPFLAGS'
4830ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4831ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4832ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
cd9a469c 4833if test -z "$CXX"; then
4834 if test -n "$CCC"; then
4835 CXX=$CCC
4836 else
4837 if test -n "$ac_tool_prefix"; then
4838 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5084f823 4839 do
4840 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4841set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cd9a469c 4842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4843$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4844if ${ac_cv_prog_CXX+:} false; then :
cd9a469c 4845 $as_echo_n "(cached) " >&6
5084f823 4846else
4847 if test -n "$CXX"; then
4848 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4849else
4850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851for as_dir in $PATH
4852do
4853 IFS=$as_save_IFS
4854 test -z "$as_dir" && as_dir=.
cd9a469c 4855 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5084f823 4857 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cd9a469c 4858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5084f823 4859 break 2
4860 fi
4861done
cd9a469c 4862 done
4863IFS=$as_save_IFS
8e1fea1a 4864
eae5b2bc 4865fi
4866fi
4867CXX=$ac_cv_prog_CXX
4868if test -n "$CXX"; then
cd9a469c 4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4870$as_echo "$CXX" >&6; }
eae5b2bc 4871else
cd9a469c 4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4873$as_echo "no" >&6; }
eae5b2bc 4874fi
4875
cd9a469c 4876
eae5b2bc 4877 test -n "$CXX" && break
4878 done
4879fi
4880if test -z "$CXX"; then
4881 ac_ct_CXX=$CXX
cd9a469c 4882 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
eae5b2bc 4883do
4884 # Extract the first word of "$ac_prog", so it can be a program name with args.
4885set dummy $ac_prog; ac_word=$2
cd9a469c 4886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4887$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4888if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cd9a469c 4889 $as_echo_n "(cached) " >&6
eae5b2bc 4890else
4891 if test -n "$ac_ct_CXX"; then
4892 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4893else
4894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895for as_dir in $PATH
4896do
4897 IFS=$as_save_IFS
4898 test -z "$as_dir" && as_dir=.
cd9a469c 4899 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eae5b2bc 4901 ac_cv_prog_ac_ct_CXX="$ac_prog"
cd9a469c 4902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
eae5b2bc 4903 break 2
4904 fi
4905done
cd9a469c 4906 done
4907IFS=$as_save_IFS
eae5b2bc 4908
4909fi
4910fi
4911ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4912if test -n "$ac_ct_CXX"; then
cd9a469c 4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4914$as_echo "$ac_ct_CXX" >&6; }
eae5b2bc 4915else
cd9a469c 4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917$as_echo "no" >&6; }
eae5b2bc 4918fi
4919
cd9a469c 4920
eae5b2bc 4921 test -n "$ac_ct_CXX" && break
4922done
eae5b2bc 4923
cd9a469c 4924 if test "x$ac_ct_CXX" = x; then
4925 CXX="g++"
4926 else
4927 case $cross_compiling:$ac_tool_warned in
4928yes:)
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4930$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4931ac_tool_warned=yes ;;
4932esac
4933 CXX=$ac_ct_CXX
4934 fi
eae5b2bc 4935fi
4936
cd9a469c 4937 fi
4938fi
eae5b2bc 4939# Provide some information about the compiler.
cd9a469c 4940$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4941set X $ac_compile
4942ac_compiler=$2
4943for ac_option in --version -v -V -qversion; do
4944 { { ac_try="$ac_compiler $ac_option >&5"
4945case "(($ac_try" in
4946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4947 *) ac_try_echo=$ac_try;;
4948esac
4949eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4950$as_echo "$ac_try_echo"; } >&5
4951 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
eae5b2bc 4952 ac_status=$?
cd9a469c 4953 if test -s conftest.err; then
4954 sed '10a\
4955... rest of stderr output deleted ...
4956 10q' conftest.err >conftest.er1
4957 cat conftest.er1 >&5
cd9a469c 4958 fi
f00f02a3 4959 rm -f conftest.er1 conftest.err
cd9a469c 4960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4961 test $ac_status = 0; }
4962done
eae5b2bc 4963
cd9a469c 4964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4965$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
f00f02a3 4966if ${ac_cv_cxx_compiler_gnu+:} false; then :
cd9a469c 4967 $as_echo_n "(cached) " >&6
eae5b2bc 4968else
cd9a469c 4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eae5b2bc 4970/* end confdefs.h. */
4971
4972int
4973main ()
4974{
4975#ifndef __GNUC__
4976 choke me
4977#endif
4978
4979 ;
4980 return 0;
4981}
4982_ACEOF
cd9a469c 4983if ac_fn_cxx_try_compile "$LINENO"; then :
eae5b2bc 4984 ac_compiler_gnu=yes
4985else
cd9a469c 4986 ac_compiler_gnu=no
eae5b2bc 4987fi
cd9a469c 4988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
eae5b2bc 4989ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4990
4991fi
cd9a469c 4992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4993$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4994if test $ac_compiler_gnu = yes; then
4995 GXX=yes
4996else
4997 GXX=
4998fi
eae5b2bc 4999ac_test_CXXFLAGS=${CXXFLAGS+set}
5000ac_save_CXXFLAGS=$CXXFLAGS
cd9a469c 5001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5002$as_echo_n "checking whether $CXX accepts -g... " >&6; }
f00f02a3 5003if ${ac_cv_prog_cxx_g+:} false; then :
cd9a469c 5004 $as_echo_n "(cached) " >&6
5005else
5006 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5007 ac_cxx_werror_flag=yes
5008 ac_cv_prog_cxx_g=no
5009 CXXFLAGS="-g"
5010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eae5b2bc 5011/* end confdefs.h. */
5012
5013int
5014main ()
5015{
5016
5017 ;
5018 return 0;
5019}
5020_ACEOF
cd9a469c 5021if ac_fn_cxx_try_compile "$LINENO"; then :
eae5b2bc 5022 ac_cv_prog_cxx_g=yes
5023else
cd9a469c 5024 CXXFLAGS=""
5025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eae5b2bc 5026/* end confdefs.h. */
cd9a469c 5027
eae5b2bc 5028int
5029main ()
5030{
cd9a469c 5031
eae5b2bc 5032 ;
5033 return 0;
5034}
5035_ACEOF
cd9a469c 5036if ac_fn_cxx_try_compile "$LINENO"; then :
2f8725b0 5037
cd9a469c 5038else
5039 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5040 CXXFLAGS="-g"
5041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eae5b2bc 5042/* end confdefs.h. */
cd9a469c 5043
eae5b2bc 5044int
5045main ()
5046{
cd9a469c 5047
eae5b2bc 5048 ;
5049 return 0;
5050}
5051_ACEOF
cd9a469c 5052if ac_fn_cxx_try_compile "$LINENO"; then :
5053 ac_cv_prog_cxx_g=yes
570af75a 5054fi
cd9a469c 5055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5056fi
5057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5058fi
5059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5060 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5061fi
5062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5063$as_echo "$ac_cv_prog_cxx_g" >&6; }
5064if test "$ac_test_CXXFLAGS" = set; then
5065 CXXFLAGS=$ac_save_CXXFLAGS
5066elif test $ac_cv_prog_cxx_g = yes; then
5067 if test "$GXX" = yes; then
5068 CXXFLAGS="-g -O2"
5069 else
5070 CXXFLAGS="-g"
5071 fi
5072else
5073 if test "$GXX" = yes; then
5074 CXXFLAGS="-O2"
5075 else
5076 CXXFLAGS=
5077 fi
eae5b2bc 5078fi
eae5b2bc 5079ac_ext=c
5080ac_cpp='$CPP $CPPFLAGS'
5081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5083ac_compiler_gnu=$ac_cv_c_compiler_gnu
5084
5085
5086# We must set the default linker to the linker used by gcc for the correct
5087# operation of libtool. If LD is not defined and we are using gcc, try to
5088# set the LD default to the ld used by gcc.
5089if test -z "$LD"; then
5090 if test "$GCC" = yes; then
5091 case $build in
5092 *-*-mingw*)
5093 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5094 *)
5095 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5096 esac
5097 case $gcc_prog_ld in
5098 # Accept absolute paths.
5099 [\\/]* | [A-Za-z]:[\\/]*)
5100 LD="$gcc_prog_ld" ;;
5101 esac
5102 fi
2f8725b0 5103fi
5104
13687c85 5105# Check whether -static-libstdc++ -static-libgcc is supported.
5106have_static_libs=no
5107if test "$GCC" = yes; then
5108 saved_LDFLAGS="$LDFLAGS"
5109
5110 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5112$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5113 ac_ext=cpp
5114ac_cpp='$CXXCPP $CPPFLAGS'
5115ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5118
5119
5120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121/* end confdefs.h. */
74f1ea54 5122
5123#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5124#error -static-libstdc++ not implemented
5125#endif
13687c85 5126int main() {}
5127_ACEOF
5128if ac_fn_cxx_try_link "$LINENO"; then :
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5130$as_echo "yes" >&6; }; have_static_libs=yes
5131else
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5133$as_echo "no" >&6; }
5134fi
5135rm -f core conftest.err conftest.$ac_objext \
5136 conftest$ac_exeext conftest.$ac_ext
5137 ac_ext=c
5138ac_cpp='$CPP $CPPFLAGS'
5139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5141ac_compiler_gnu=$ac_cv_c_compiler_gnu
5142
5143
5144 LDFLAGS="$saved_LDFLAGS"
5145fi
5146
2f8725b0 5147
5148
8e1fea1a 5149
b30fcfae 5150if test -n "$ac_tool_prefix"; then
5151 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
8e1fea1a 5152set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
cd9a469c 5153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 5155if ${ac_cv_prog_GNATBIND+:} false; then :
cd9a469c 5156 $as_echo_n "(cached) " >&6
8e1fea1a 5157else
5158 if test -n "$GNATBIND"; then
5159 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5160else
b30fcfae 5161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162for as_dir in $PATH
5163do
5164 IFS=$as_save_IFS
5165 test -z "$as_dir" && as_dir=.
cd9a469c 5166 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 5167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 5168 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
cd9a469c 5169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 5170 break 2
5171 fi
5172done
cd9a469c 5173 done
5174IFS=$as_save_IFS
b30fcfae 5175
8e1fea1a 5176fi
5177fi
b30fcfae 5178GNATBIND=$ac_cv_prog_GNATBIND
8e1fea1a 5179if test -n "$GNATBIND"; then
cd9a469c 5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5181$as_echo "$GNATBIND" >&6; }
8e1fea1a 5182else
cd9a469c 5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184$as_echo "no" >&6; }
8e1fea1a 5185fi
5186
cd9a469c 5187
b30fcfae 5188fi
8e1fea1a 5189if test -z "$ac_cv_prog_GNATBIND"; then
b30fcfae 5190 ac_ct_GNATBIND=$GNATBIND
8e1fea1a 5191 # Extract the first word of "gnatbind", so it can be a program name with args.
5192set dummy gnatbind; ac_word=$2
cd9a469c 5193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5194$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 5195if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
cd9a469c 5196 $as_echo_n "(cached) " >&6
8e1fea1a 5197else
b30fcfae 5198 if test -n "$ac_ct_GNATBIND"; then
5199 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
8e1fea1a 5200else
b30fcfae 5201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202for as_dir in $PATH
5203do
5204 IFS=$as_save_IFS
5205 test -z "$as_dir" && as_dir=.
cd9a469c 5206 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 5207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 5208 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
cd9a469c 5209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 5210 break 2
5211 fi
5212done
cd9a469c 5213 done
5214IFS=$as_save_IFS
b30fcfae 5215
8e1fea1a 5216fi
5217fi
b30fcfae 5218ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5219if test -n "$ac_ct_GNATBIND"; then
cd9a469c 5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5221$as_echo "$ac_ct_GNATBIND" >&6; }
8e1fea1a 5222else
cd9a469c 5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5224$as_echo "no" >&6; }
8e1fea1a 5225fi
5226
cd9a469c 5227 if test "x$ac_ct_GNATBIND" = x; then
5228 GNATBIND="no"
5229 else
5230 case $cross_compiling:$ac_tool_warned in
5231yes:)
5232{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5233$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5234ac_tool_warned=yes ;;
5235esac
5236 GNATBIND=$ac_ct_GNATBIND
5237 fi
8e1fea1a 5238else
b30fcfae 5239 GNATBIND="$ac_cv_prog_GNATBIND"
8e1fea1a 5240fi
5241
b30fcfae 5242if test -n "$ac_tool_prefix"; then
5243 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
a18b2c54 5244set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
cd9a469c 5245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5246$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 5247if ${ac_cv_prog_GNATMAKE+:} false; then :
cd9a469c 5248 $as_echo_n "(cached) " >&6
a18b2c54 5249else
5250 if test -n "$GNATMAKE"; then
5251 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5252else
b30fcfae 5253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254for as_dir in $PATH
5255do
5256 IFS=$as_save_IFS
5257 test -z "$as_dir" && as_dir=.
cd9a469c 5258 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 5259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 5260 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
cd9a469c 5261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 5262 break 2
5263 fi
5264done
cd9a469c 5265 done
5266IFS=$as_save_IFS
b30fcfae 5267
a18b2c54 5268fi
5269fi
b30fcfae 5270GNATMAKE=$ac_cv_prog_GNATMAKE
a18b2c54 5271if test -n "$GNATMAKE"; then
cd9a469c 5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5273$as_echo "$GNATMAKE" >&6; }
a18b2c54 5274else
cd9a469c 5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5276$as_echo "no" >&6; }
a18b2c54 5277fi
5278
cd9a469c 5279
b30fcfae 5280fi
a18b2c54 5281if test -z "$ac_cv_prog_GNATMAKE"; then
b30fcfae 5282 ac_ct_GNATMAKE=$GNATMAKE
a18b2c54 5283 # Extract the first word of "gnatmake", so it can be a program name with args.
5284set dummy gnatmake; ac_word=$2
cd9a469c 5285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5286$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 5287if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
cd9a469c 5288 $as_echo_n "(cached) " >&6
a18b2c54 5289else
b30fcfae 5290 if test -n "$ac_ct_GNATMAKE"; then
5291 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
a18b2c54 5292else
b30fcfae 5293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294for as_dir in $PATH
5295do
5296 IFS=$as_save_IFS
5297 test -z "$as_dir" && as_dir=.
cd9a469c 5298 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 5299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 5300 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
cd9a469c 5301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 5302 break 2
5303 fi
5304done
cd9a469c 5305 done
5306IFS=$as_save_IFS
b30fcfae 5307
a18b2c54 5308fi
5309fi
b30fcfae 5310ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5311if test -n "$ac_ct_GNATMAKE"; then
cd9a469c 5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5313$as_echo "$ac_ct_GNATMAKE" >&6; }
a18b2c54 5314else
cd9a469c 5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316$as_echo "no" >&6; }
a18b2c54 5317fi
5318
cd9a469c 5319 if test "x$ac_ct_GNATMAKE" = x; then
5320 GNATMAKE="no"
5321 else
5322 case $cross_compiling:$ac_tool_warned in
5323yes:)
5324{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5325$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5326ac_tool_warned=yes ;;
5327esac
5328 GNATMAKE=$ac_ct_GNATMAKE
5329 fi
a18b2c54 5330else
b30fcfae 5331 GNATMAKE="$ac_cv_prog_GNATMAKE"
a18b2c54 5332fi
5333
cd9a469c 5334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5335$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
f00f02a3 5336if ${acx_cv_cc_gcc_supports_ada+:} false; then :
cd9a469c 5337 $as_echo_n "(cached) " >&6
8e1fea1a 5338else
5339 cat >conftest.adb <<EOF
5340procedure conftest is begin null; end conftest;
5341EOF
5342acx_cv_cc_gcc_supports_ada=no
5343# There is a bug in old released versions of GCC which causes the
5344# driver to exit successfully when the appropriate language module
5345# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5346# Therefore we must check for the error message as well as an
5347# unsuccessful exit.
216de822 5348# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5349# given a .adb file, but produce no object file. So we must check
5350# if an object file was really produced to guard against this.
8e1fea1a 5351errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
216de822 5352if test x"$errors" = x && test -f conftest.$ac_objext; then
8e1fea1a 5353 acx_cv_cc_gcc_supports_ada=yes
8e1fea1a 5354fi
5355rm -f conftest.*
5356fi
cd9a469c 5357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5358$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
8e1fea1a 5359
9d5fd7d0 5360if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
8e1fea1a 5361 have_gnat=yes
5362else
5363 have_gnat=no
5364fi
5365
cd9a469c 5366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5367$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
f00f02a3 5368if ${gcc_cv_prog_cmp_skip+:} false; then :
cd9a469c 5369 $as_echo_n "(cached) " >&6
7bcc3b4a 5370else
5371 echo abfoo >t1
5372 echo cdfoo >t2
efbca99c 5373 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
697dfd2c 5374 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5375 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5376 :
5377 else
5378 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5379 fi
5380 fi
7bcc3b4a 5381 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5382 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
697dfd2c 5383 :
7bcc3b4a 5384 else
5385 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5386 fi
5387 fi
5388 rm t1 t2
5389
5390fi
cd9a469c 5391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5392$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7bcc3b4a 5393do_compare="$gcc_cv_prog_cmp_skip"
5394
5395
8e1fea1a 5396
6c59dfa4 5397# Check whether --enable-bootstrap was given.
5398if test "${enable_bootstrap+set}" = set; then :
5399 enableval=$enable_bootstrap;
5400else
5401 enable_bootstrap=default
5402fi
5403
5404
5405# Issue errors and warnings for invalid/strange bootstrap combinations.
d7c9b4c1 5406if test -r $srcdir/gcc/configure; then
5407 have_compiler=yes
5408else
5409 have_compiler=no
5410fi
6c59dfa4 5411
5412case "$have_compiler:$host:$target:$enable_bootstrap" in
5413 *:*:*:no) ;;
5414
5415 # Default behavior. Enable bootstrap if we have a compiler
5416 # and we are in a native configuration.
5417 yes:$build:$build:default)
5418 enable_bootstrap=yes ;;
5419
5420 *:*:*:default)
5421 enable_bootstrap=no ;;
5422
5423 # We have a compiler and we are in a native configuration, bootstrap is ok
5424 yes:$build:$build:yes)
5425 ;;
5426
5427 # Other configurations, but we have a compiler. Assume the user knows
5428 # what he's doing.
5429 yes:*:*:yes)
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5431$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5432 ;;
5433
5434 # No compiler: if they passed --enable-bootstrap explicitly, fail
5435 no:*:*:yes)
f00f02a3 5436 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
6c59dfa4 5437
5438 # Fail if wrong command line
5439 *)
f00f02a3 5440 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
6c59dfa4 5441 ;;
5442esac
5443
27590679 5444# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5445# C++98 compiler can still start the bootstrap.
5446if test "$enable_bootstrap:$GXX" = "yes:yes"; then
dce53dbc 5447 CXX="$CXX -std=gnu++98"
27590679 5448fi
5449
c3fc6a63 5450# Used for setting $lt_cv_objdir
5451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5452$as_echo_n "checking for objdir... " >&6; }
f00f02a3 5453if ${lt_cv_objdir+:} false; then :
c3fc6a63 5454 $as_echo_n "(cached) " >&6
5455else
5456 rm -f .libs 2>/dev/null
5457mkdir .libs 2>/dev/null
5458if test -d .libs; then
5459 lt_cv_objdir=.libs
5460else
5461 # MS-DOS does not allow filenames that begin with a dot.
5462 lt_cv_objdir=_libs
5463fi
5464rmdir .libs 2>/dev/null
5465fi
5466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5467$as_echo "$lt_cv_objdir" >&6; }
5468objdir=$lt_cv_objdir
5469
5470
5471
5472
5473
5474cat >>confdefs.h <<_ACEOF
5475#define LT_OBJDIR "$lt_cv_objdir/"
5476_ACEOF
5477
5478
5479
7601a55c 5480# Check for GMP, MPFR and MPC
16de6a81 5481gmplibs="-lmpc -lmpfr -lgmp"
4ee9c684 5482gmpinc=
d45318b3 5483have_gmp=no
7601a55c 5484
5485# Specify a location for mpc
5486# check for this first so it ends up on the link line before mpfr.
5487
cd9a469c 5488# Check whether --with-mpc was given.
5489if test "${with_mpc+set}" = set; then :
5490 withval=$with_mpc;
5491fi
7601a55c 5492
7601a55c 5493
73f813e1 5494# Check whether --with-mpc-include was given.
cd9a469c 5495if test "${with_mpc_include+set}" = set; then :
5496 withval=$with_mpc_include;
5497fi
7601a55c 5498
7601a55c 5499
73f813e1 5500# Check whether --with-mpc-lib was given.
cd9a469c 5501if test "${with_mpc_lib+set}" = set; then :
5502 withval=$with_mpc_lib;
5503fi
7601a55c 5504
7601a55c 5505
5506if test "x$with_mpc" != x; then
16de6a81 5507 gmplibs="-L$with_mpc/lib $gmplibs"
5508 gmpinc="-I$with_mpc/include $gmpinc"
7601a55c 5509fi
5510if test "x$with_mpc_include" != x; then
16de6a81 5511 gmpinc="-I$with_mpc_include $gmpinc"
7601a55c 5512fi
5513if test "x$with_mpc_lib" != x; then
16de6a81 5514 gmplibs="-L$with_mpc_lib $gmplibs"
7601a55c 5515fi
5516if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
c3fc6a63 5517 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
16de6a81 5518 gmpinc='-I$$s/mpc/src '"$gmpinc"
7601a55c 5519 # Do not test the mpc version. Assume that it is sufficient, since
5520 # it is in the source tree, and the library has not been built yet
5521 # but it would be included on the link line in the version check below
5522 # hence making the test fail.
16de6a81 5523 have_gmp=yes
7601a55c 5524fi
d45318b3 5525
5ca838b8 5526# Specify a location for mpfr
5527# check for this first so it ends up on the link line before gmp.
b30fcfae 5528
cd9a469c 5529# Check whether --with-mpfr-dir was given.
5530if test "${with_mpfr_dir+set}" = set; then :
f00f02a3 5531 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
cd9a469c 5532Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5533fi
5534
5ca838b8 5535
5536
cd9a469c 5537# Check whether --with-mpfr was given.
5538if test "${with_mpfr+set}" = set; then :
5539 withval=$with_mpfr;
5540fi
b30fcfae 5541
5ca838b8 5542
73f813e1 5543# Check whether --with-mpfr-include was given.
cd9a469c 5544if test "${with_mpfr_include+set}" = set; then :
5545 withval=$with_mpfr_include;
5546fi
b30fcfae 5547
a5144c1d 5548
73f813e1 5549# Check whether --with-mpfr-lib was given.
cd9a469c 5550if test "${with_mpfr_lib+set}" = set; then :
5551 withval=$with_mpfr_lib;
5552fi
a5144c1d 5553
5ca838b8 5554
5555if test "x$with_mpfr" != x; then
5556 gmplibs="-L$with_mpfr/lib $gmplibs"
16de6a81 5557 gmpinc="-I$with_mpfr/include $gmpinc"
5ca838b8 5558fi
a5144c1d 5559if test "x$with_mpfr_include" != x; then
16de6a81 5560 gmpinc="-I$with_mpfr_include $gmpinc"
a5144c1d 5561fi
5562if test "x$with_mpfr_lib" != x; then
5563 gmplibs="-L$with_mpfr_lib $gmplibs"
5564fi
d45318b3 5565if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
efa1150d 5566 # MPFR v3.1.0 moved the sources into a src sub-directory.
5567 if ! test -d ${srcdir}/mpfr/src; then
f00f02a3 5568 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
efa1150d 5569 fi
4b2246ef 5570 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5571 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5572 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
d45318b3 5573 # Do not test the mpfr version. Assume that it is sufficient, since
5574 # it is in the source tree, and the library has not been built yet
5575 # but it would be included on the link line in the version check below
5576 # hence making the test fail.
5577 have_gmp=yes
5578fi
5ca838b8 5579
4ee9c684 5580# Specify a location for gmp
b30fcfae 5581
cd9a469c 5582# Check whether --with-gmp-dir was given.
5583if test "${with_gmp_dir+set}" = set; then :
f00f02a3 5584 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
cd9a469c 5585Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5586fi
5587
4ee9c684 5588
4ee9c684 5589
cd9a469c 5590# Check whether --with-gmp was given.
5591if test "${with_gmp+set}" = set; then :
5592 withval=$with_gmp;
5593fi
b30fcfae 5594
4ee9c684 5595
73f813e1 5596# Check whether --with-gmp-include was given.
cd9a469c 5597if test "${with_gmp_include+set}" = set; then :
5598 withval=$with_gmp_include;
5599fi
b30fcfae 5600
a5144c1d 5601
73f813e1 5602# Check whether --with-gmp-lib was given.
cd9a469c 5603if test "${with_gmp_lib+set}" = set; then :
5604 withval=$with_gmp_lib;
5605fi
a5144c1d 5606
5607
4ee9c684 5608
5ca838b8 5609if test "x$with_gmp" != x; then
5610 gmplibs="-L$with_gmp/lib $gmplibs"
5611 gmpinc="-I$with_gmp/include $gmpinc"
4ee9c684 5612fi
a5144c1d 5613if test "x$with_gmp_include" != x; then
5614 gmpinc="-I$with_gmp_include $gmpinc"
5615fi
5616if test "x$with_gmp_lib" != x; then
5617 gmplibs="-L$with_gmp_lib $gmplibs"
5618fi
d45318b3 5619if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
c3fc6a63 5620 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
d45318b3 5621 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
b9a8e4c4 5622 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
c3fc6a63 5623 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
e4128452 5624 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
d45318b3 5625 # Do not test the gmp version. Assume that it is sufficient, since
5626 # it is in the source tree, and the library has not been built yet
5627 # but it would be included on the link line in the version check below
5628 # hence making the test fail.
5629 have_gmp=yes
5630fi
4ee9c684 5631
16c9b2e3 5632if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
d45318b3 5633 have_gmp=yes
5634 saved_CFLAGS="$CFLAGS"
5635 CFLAGS="$CFLAGS $gmpinc"
17b6993a 5636 # Check for the recommended and required versions of GMP.
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5638$as_echo_n "checking for the correct version of gmp.h... " >&6; }
4fd35f21 5639
5640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17b6993a 5641/* end confdefs.h. */
5642#include "gmp.h"
5643int
5644main ()
5645{
5646
5647 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5648 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
f819bb73 5649 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
17b6993a 5650 choke me
5651 #endif
5652
5653 ;
5654 return 0;
5655}
5656_ACEOF
5657if ac_fn_c_try_compile "$LINENO"; then :
4fd35f21 5658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 5659/* end confdefs.h. */
17b6993a 5660#include <gmp.h>
b30fcfae 5661int
5662main ()
5663{
4ee9c684 5664
17b6993a 5665 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5666 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5667 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
d45318b3 5668 choke me
5669 #endif
b30fcfae 5670
5671 ;
5672 return 0;
5673}
5674_ACEOF
cd9a469c 5675if ac_fn_c_try_compile "$LINENO"; then :
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5677$as_echo "yes" >&6; }
17b6993a 5678else
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5680$as_echo "buggy but acceptable" >&6; }
5681fi
5682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b30fcfae 5683else
cd9a469c 5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5685$as_echo "no" >&6; }; have_gmp=no
b30fcfae 5686fi
cd9a469c 5687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4ee9c684 5688
7601a55c 5689 # If we have GMP, check the MPFR version.
d45318b3 5690 if test x"$have_gmp" = xyes; then
17b6993a 5691 # Check for the recommended and required versions of MPFR.
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5693$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
cd9a469c 5694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 5695/* end confdefs.h. */
6a086156 5696#include <gmp.h>
d45318b3 5697 #include <mpfr.h>
b30fcfae 5698int
5699main ()
5700{
112f3d57 5701
cb1d9044 5702 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
d45318b3 5703 choke me
5704 #endif
b30fcfae 5705
5706 ;
5707 return 0;
5708}
5709_ACEOF
cd9a469c 5710if ac_fn_c_try_compile "$LINENO"; then :
5711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 5712/* end confdefs.h. */
0157cc75 5713#include <gmp.h>
d45318b3 5714 #include <mpfr.h>
b30fcfae 5715int
5716main ()
5717{
0157cc75 5718
17b6993a 5719 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
d45318b3 5720 choke me
5721 #endif
7601a55c 5722
5723 ;
5724 return 0;
5725}
5726_ACEOF
cd9a469c 5727if ac_fn_c_try_compile "$LINENO"; then :
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5729$as_echo "yes" >&6; }
7601a55c 5730else
cd9a469c 5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5732$as_echo "buggy but acceptable" >&6; }
7601a55c 5733fi
cd9a469c 5734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601a55c 5735else
cd9a469c 5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5737$as_echo "no" >&6; }; have_gmp=no
7601a55c 5738fi
cd9a469c 5739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601a55c 5740 fi
5741
5742 # Check for the MPC header version.
16de6a81 5743 if test x"$have_gmp" = xyes ; then
17b6993a 5744 # Check for the recommended and required versions of MPC.
cd9a469c 5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5746$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601a55c 5748/* end confdefs.h. */
5749#include <mpc.h>
5750int
5751main ()
5752{
5753
17b6993a 5754 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5755 choke me
5756 #endif
5757
5758 ;
5759 return 0;
5760}
5761_ACEOF
5762if ac_fn_c_try_compile "$LINENO"; then :
5763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5764/* end confdefs.h. */
5765#include <mpc.h>
5766int
5767main ()
5768{
5769
5770 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
7601a55c 5771 choke me
5772 #endif
5773
5774 ;
5775 return 0;
5776}
5777_ACEOF
cd9a469c 5778if ac_fn_c_try_compile "$LINENO"; then :
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16de6a81 5780$as_echo "yes" >&6; }
17b6993a 5781else
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5783$as_echo "buggy but acceptable" >&6; }
5784fi
5785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601a55c 5786else
cd9a469c 5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16de6a81 5788$as_echo "no" >&6; }; have_gmp=no
7601a55c 5789fi
cd9a469c 5790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601a55c 5791 fi
5792
5793 # Now check the MPFR library.
5794 if test x"$have_gmp" = xyes; then
5795 saved_LIBS="$LIBS"
5796 LIBS="$LIBS $gmplibs"
16de6a81 5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5798$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
cd9a469c 5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601a55c 5800/* end confdefs.h. */
16de6a81 5801#include <mpc.h>
7601a55c 5802int
5803main ()
5804{
5805
5806 mpfr_t n;
5807 mpfr_t x;
16de6a81 5808 mpc_t c;
7601a55c 5809 int t;
5810 mpfr_init (n);
5811 mpfr_init (x);
5812 mpfr_atan2 (n, n, x, GMP_RNDN);
5813 mpfr_erfc (n, x, GMP_RNDN);
5814 mpfr_subnormalize (x, t, GMP_RNDN);
16de6a81 5815 mpfr_clear(n);
5816 mpfr_clear(x);
5817 mpc_init2 (c, 53);
5818 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5819 mpc_cosh (c, c, MPC_RNDNN);
5820 mpc_pow (c, c, c, MPC_RNDNN);
5821 mpc_acosh (c, c, MPC_RNDNN);
5822 mpc_clear (c);
b30fcfae 5823
5824 ;
5825 return 0;
5826}
5827_ACEOF
cd9a469c 5828if ac_fn_c_try_link "$LINENO"; then :
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5830$as_echo "yes" >&6; }
b30fcfae 5831else
cd9a469c 5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5833$as_echo "no" >&6; }; have_gmp=no
b30fcfae 5834fi
cd9a469c 5835rm -f core conftest.err conftest.$ac_objext \
5836 conftest$ac_exeext conftest.$ac_ext
7601a55c 5837 LIBS="$saved_LIBS"
5838 fi
5839
d45318b3 5840 CFLAGS="$saved_CFLAGS"
4ee9c684 5841
17b6993a 5842# The library versions listed in the error message below should match
5843# the HARD-minimums enforced above.
d45318b3 5844 if test x$have_gmp != xyes; then
f00f02a3 5845 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
16de6a81 5846Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5847their locations. Source code for these libraries can be found at
5848their respective hosting sites as well as at
5849ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5850http://gcc.gnu.org/install/prerequisites.html for additional info. If
5851you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5852make sure that you have installed both the libraries and the header
5853files. They may be located in separate packages." "$LINENO" 5
d45318b3 5854 fi
6a086156 5855fi
5856
7601a55c 5857# Flags needed for both GMP, MPFR and/or MPC.
5858
5859
4ee9c684 5860
5861
5862
bff7ea4a 5863
e4128452 5864
13687c85 5865# Libraries to use for stage1 or when not bootstrapping.
7ab76cec 5866
13687c85 5867# Check whether --with-stage1-libs was given.
5868if test "${with_stage1_libs+set}" = set; then :
5869 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5870 stage1_libs=
7ab76cec 5871 else
13687c85 5872 stage1_libs=$withval
7ab76cec 5873 fi
5874else
9d71bbdc 5875 stage1_libs=
cd9a469c 5876fi
5877
7ab76cec 5878
5879
13687c85 5880# Linker flags to use for stage1 or when not bootstrapping.
7ab76cec 5881
13687c85 5882# Check whether --with-stage1-ldflags was given.
5883if test "${with_stage1_ldflags+set}" = set; then :
5884 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5885 stage1_ldflags=
7ab76cec 5886 else
13687c85 5887 stage1_ldflags=$withval
7ab76cec 5888 fi
5889else
13687c85 5890 stage1_ldflags=
5891 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5892 # if supported. But if the user explicitly specified the libraries to use,
5893 # trust that they are doing what they want.
5894 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5895 stage1_ldflags="-static-libstdc++ -static-libgcc"
5896 fi
cd9a469c 5897fi
5898
7ab76cec 5899
5900
9d71bbdc 5901# Libraries to use for stage2 and later builds.
7ab76cec 5902
cd9a469c 5903# Check whether --with-boot-libs was given.
5904if test "${with_boot_libs+set}" = set; then :
5905 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5110389d 5906 poststage1_libs=
5907 else
5908 poststage1_libs=$withval
5909 fi
5910else
9d71bbdc 5911 poststage1_libs=
cd9a469c 5912fi
5913
7ab76cec 5914
5915
d6dfe18a 5916# Linker flags to use for stage2 and later builds.
5917
5918# Check whether --with-boot-ldflags was given.
5919if test "${with_boot_ldflags+set}" = set; then :
5920 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5921 poststage1_ldflags=
5922 else
5923 poststage1_ldflags=$withval
5924 fi
5925else
5926 poststage1_ldflags=
7deb2d70 5927 # In stages 2 and 3, default to linking libstdc++ and libgcc
5928 # statically. But if the user explicitly specified the libraries to
5929 # use, trust that they are doing what they want.
5930 if test "$poststage1_libs" = ""; then
d6dfe18a 5931 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5932 fi
5933fi
5934
5935
5936
71130ef8 5937# GCC GRAPHITE dependency isl.
572cf1f7 5938# Basic setup is inlined here, actual checks are in config/isl.m4
255b6be7 5939
5940
87e20041 5941# Check whether --with-isl was given.
5942if test "${with_isl+set}" = set; then :
5943 withval=$with_isl;
cd9a469c 5944fi
255b6be7 5945
255b6be7 5946
429cca51 5947# Treat --without-isl as a request to disable
83d54ac4 5948# GRAPHITE support and skip all following checks.
429cca51 5949if test "x$with_isl" != "xno"; then
71130ef8 5950 # Check for isl
83d54ac4 5951
5952
87e20041 5953# Check whether --with-isl-include was given.
5954if test "${with_isl_include+set}" = set; then :
5955 withval=$with_isl_include;
cd9a469c 5956fi
5957
255b6be7 5958
87e20041 5959# Check whether --with-isl-lib was given.
5960if test "${with_isl_lib+set}" = set; then :
5961 withval=$with_isl_lib;
cd9a469c 5962fi
255b6be7 5963
255b6be7 5964
87e20041 5965 # Check whether --enable-isl-version-check was given.
5966if test "${enable_isl_version_check+set}" = set; then :
5967 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5968else
5969 ENABLE_ISL_CHECK=yes
062b4a94 5970fi
5971
5972
87e20041 5973 # Initialize isllibs and islinc.
5974 case $with_isl in
5975 no)
5976 isllibs=
5977 islinc=
5978 ;;
5979 "" | yes)
5980 ;;
5981 *)
5982 isllibs="-L$with_isl/lib"
5983 islinc="-I$with_isl/include"
5984 ;;
5985 esac
5986 if test "x${with_isl_include}" != x ; then
5987 islinc="-I$with_isl_include"
5988 fi
5989 if test "x${with_isl_lib}" != x; then
5990 isllibs="-L$with_isl_lib"
5991 fi
5992 if test "x${islinc}" = x && test "x${isllibs}" = x \
5993 && test -d ${srcdir}/isl; then
5994 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5995 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5996 ENABLE_ISL_CHECK=no
7458b15a 5997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5998$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
87e20041 5999 fi
062b4a94 6000
429cca51 6001 isllibs="${isllibs} -lisl"
6002
062b4a94 6003
062b4a94 6004
078393c7 6005 if test "${ENABLE_ISL_CHECK}" = yes ; then
6006 _isl_saved_CFLAGS=$CFLAGS
6007 _isl_saved_LDFLAGS=$LDFLAGS
6008 _isl_saved_LIBS=$LIBS
6009
6010 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
07ae8272 6011 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6012 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
078393c7 6013
8e8a14c2 6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
6015$as_echo_n "checking for isl 0.15 or later... " >&6; }
b6de67fd 6016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6ac3b11e 6017/* end confdefs.h. */
8e8a14c2 6018#include <isl/schedule.h>
6ac3b11e 6019int
6020main ()
6021{
8e8a14c2 6022isl_options_set_schedule_serialize_sccs (NULL, 0);
6ac3b11e 6023 ;
6024 return 0;
6025}
6026_ACEOF
6027if ac_fn_c_try_link "$LINENO"; then :
078393c7 6028 gcc_cv_isl=yes
6ac3b11e 6029else
6030 gcc_cv_isl=no
6031fi
6032rm -f core conftest.err conftest.$ac_objext \
6033 conftest$ac_exeext conftest.$ac_ext
078393c7 6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6035$as_echo "$gcc_cv_isl" >&6; }
6036
7458b15a 6037 if test "${gcc_cv_isl}" = no ; then
8e8a14c2 6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6039$as_echo "required isl version is 0.15 or later" >&6; }
45fc5243 6040 fi
6041
078393c7 6042 CFLAGS=$_isl_saved_CFLAGS
6043 LDFLAGS=$_isl_saved_LDFLAGS
6044 LIBS=$_isl_saved_LIBS
6045 fi
6046
6047
255b6be7 6048
255b6be7 6049
87e20041 6050
6051
87e20041 6052 if test "x${with_isl}" = xno; then
6053 graphite_requested=no
6054 elif test "x${with_isl}" != x \
6055 || test "x${with_isl_include}" != x \
6056 || test "x${with_isl_lib}" != x ; then
6057 graphite_requested=yes
6058 else
6059 graphite_requested=no
062b4a94 6060 fi
5362e323 6061
5362e323 6062
6063
87e20041 6064 if test "${gcc_cv_isl}" = no ; then
6065 isllibs=
6066 islinc=
6067 fi
6068
6069 if test "${graphite_requested}" = yes \
6070 && test "x${isllibs}" = x \
6071 && test "x${islinc}" = x ; then
255b6be7 6072
f00f02a3 6073 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
87e20041 6074 fi
255b6be7 6075
a3c81e03 6076
a3c81e03 6077fi
6078
71130ef8 6079# If the isl check failed, disable builds of in-tree variant of isl
83d54ac4 6080if test "x$with_isl" = xno ||
83d54ac4 6081 test "x$gcc_cv_isl" = xno; then
572cf1f7 6082 noconfigdirs="$noconfigdirs isl"
83d54ac4 6083 islinc=
bacb15cb 6084fi
6085
83d54ac4 6086
6087
6088
7bfefa9d 6089# Check for LTO support.
6090# Check whether --enable-lto was given.
6091if test "${enable_lto+set}" = set; then :
6092 enableval=$enable_lto; enable_lto=$enableval
6093else
6094 enable_lto=yes; default_enable_lto=yes
6095fi
6096
6097
1a4f45ec 6098
9bdbb0bc 6099
6100
6101target_elf=no
6102case $target in
6103 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
4d72c922 6104 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
cb7a0f1d 6105 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
0f769573 6106 nvptx-*-none)
9bdbb0bc 6107 target_elf=no
6108 ;;
6109 *)
6110 target_elf=yes
6111 ;;
6112esac
6113
6114if test $target_elf = yes; then :
25630dc7 6115 # ELF platforms build the lto-plugin always.
6116 build_lto_plugin=yes
9bdbb0bc 6117
9bdbb0bc 6118else
6119 if test x"$default_enable_lto" = x"yes" ; then
4ae8c98f 6120 case $target in
c96ae98b 6121 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
25630dc7 6122 # On other non-ELF platforms, LTO has yet to be validated.
4ae8c98f 6123 *) enable_lto=no ;;
6124 esac
9bdbb0bc 6125 else
62932e4d 6126 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6127 # It would also be nice to check the binutils support, but we don't
9bdbb0bc 6128 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6129 # warn during gcc/ subconfigure; unless you're bootstrapping with
6130 # -flto it won't be needed until after installation anyway.
6131 case $target in
7aa50266 6132 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9bdbb0bc 6133 *) if test x"$enable_lto" = x"yes"; then
f00f02a3 6134 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
9bdbb0bc 6135 fi
6136 ;;
6137 esac
6138 fi
ca42e774 6139 # Among non-ELF, only Windows platforms support the lto-plugin so far.
25630dc7 6140 # Build it unless LTO was explicitly disabled.
ca42e774 6141 case $target in
25630dc7 6142 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
ca42e774 6143 *) ;;
6144 esac
25630dc7 6145
9bdbb0bc 6146fi
6147
7bfefa9d 6148
1015a063 6149# Check whether --enable-linker-plugin-configure-flags was given.
6150if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6151 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6152else
6153 extra_linker_plugin_configure_flags=
6154fi
6155
6156
6157# Check whether --enable-linker-plugin-flags was given.
6158if test "${enable_linker_plugin_flags+set}" = set; then :
6159 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6160else
6161 extra_linker_plugin_flags=
6162fi
6163
6164
6165
01b4453c 6166# Enable --enable-host-shared.
6167# Checked early to determine whether jit is an 'all' language
6168# Check whether --enable-host-shared was given.
6169if test "${enable_host_shared+set}" = set; then :
6170 enableval=$enable_host_shared; host_shared=$enableval
6171else
6172 host_shared=no
6173fi
6174
6175
255b6be7 6176
2b15d2ba 6177# By default, C and C++ are the only stage 1 languages.
9c3a0a29 6178stage1_languages=,c,
2d64c2fd 6179
7ab76cec 6180# Target libraries that we bootstrap.
5c96a839 6181bootstrap_target_libs=,target-libgcc,
7ab76cec 6182
8e1fea1a 6183# Figure out what language subdirectories are present.
6184# Look if the user specified --enable-languages="..."; if not, use
6185# the environment variable $LANGUAGES if defined. $LANGUAGES might
6186# go away some day.
6187# NB: embedded tabs in this IF block -- do not untabify
6188if test -d ${srcdir}/gcc; then
6189 if test x"${enable_languages+set}" != xset; then
6190 if test x"${LANGUAGES+set}" = xset; then
6191 enable_languages="${LANGUAGES}"
e757a6a8 6192 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8e1fea1a 6193 else
01b4453c 6194 enable_languages=default
8e1fea1a 6195 fi
6196 else
6197 if test x"${enable_languages}" = x ||
6198 test x"${enable_languages}" = xyes;
6199 then
e757a6a8 6200 echo configure.ac: --enable-languages needs at least one language argument 1>&2
8e1fea1a 6201 exit 1
6202 fi
6203 fi
6204 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6205
2c718da0 6206 # 'f95' is the old name for the 'fortran' language. We issue a warning
6207 # and make the substitution.
6208 case ,${enable_languages}, in
6209 *,f95,*)
e757a6a8 6210 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
2c718da0 6211 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6212 ;;
6213 esac
6214
2b15d2ba 6215 # If bootstrapping, C++ must be enabled.
6216 case ",$enable_languages,:$enable_bootstrap" in
6217 *,c++,*:*) ;;
6218 *:yes)
6c59dfa4 6219 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6220 enable_languages="${enable_languages},c++"
6221 else
f00f02a3 6222 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
6c59dfa4 6223 fi
6224 ;;
6225 esac
6226
8e1fea1a 6227 # First scan to see if an enabled language requires some other language.
6228 # We assume that a given config-lang.in will list all the language
6229 # front ends it requires, even if some are required indirectly.
6230 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6231 case ${lang_frag} in
6232 ..) ;;
6233 # The odd quoting in the next line works around
6234 # an apparent bug in bash 1.12 on linux.
6235 ${srcdir}/gcc/[*]/config-lang.in) ;;
6236 *)
101ddbe4 6237 # From the config-lang.in, get $language, $lang_requires, and
6238 # $lang_requires_boot_languages.
8e1fea1a 6239 language=
6240 lang_requires=
101ddbe4 6241 lang_requires_boot_languages=
d6400eba 6242 # set srcdir during sourcing lang_frag to the gcc dir.
6243 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6244 # polutes this shell
6245 saved_srcdir=${srcdir}
6246 srcdir=${srcdir}/gcc . ${lang_frag}
6247 srcdir=${saved_srcdir}
101ddbe4 6248 for other in ${lang_requires} ${lang_requires_boot_languages}; do
8e1fea1a 6249 case ,${enable_languages}, in
6250 *,$other,*) ;;
01b4453c 6251 *,default,*) ;;
8e1fea1a 6252 *,all,*) ;;
6253 *,$language,*)
6254 echo " \`$other' language required by \`$language'; enabling" 1>&2
6255 enable_languages="${enable_languages},${other}"
6256 ;;
6257 esac
6258 done
101ddbe4 6259 for other in ${lang_requires_boot_languages} ; do
6260 if test "$other" != "c"; then
6261 case ,${enable_stage1_languages}, in
6262 *,$other,*) ;;
01b4453c 6263 *,default,*) ;;
101ddbe4 6264 *,all,*) ;;
6265 *)
6266 case ,${enable_languages}, in
6267 *,$language,*)
6268 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6269 enable_stage1_languages="$enable_stage1_languages,${other}"
6270 ;;
6271 esac
6272 ;;
6273 esac
6274 fi
6275 done
8e1fea1a 6276 ;;
6277 esac
6278 done
6279
9c3a0a29 6280 new_enable_languages=,c,
7bfefa9d 6281
6282 # If LTO is enabled, add the LTO front end.
7bfefa9d 6283 if test "$enable_lto" = "yes" ; then
d6ef094a 6284 case ,${enable_languages}, in
6285 *,lto,*) ;;
6286 *) enable_languages="${enable_languages},lto" ;;
6287 esac
ca42e774 6288 if test "${build_lto_plugin}" = "yes" ; then
7bfefa9d 6289 configdirs="$configdirs lto-plugin"
7bfefa9d 6290 fi
6291 fi
6292
dd87c525 6293 # If we're building an offloading compiler, add the LTO front end.
6294 if test x"$enable_as_accelerator_for" != x ; then
6295 case ,${enable_languages}, in
6296 *,lto,*) ;;
6297 *) enable_languages="${enable_languages},lto" ;;
6298 esac
6299 fi
6300
01b4453c 6301 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
9c3a0a29 6302 potential_languages=,c,
8e1fea1a 6303
604a285a 6304 enabled_target_libs=
6305 disabled_target_libs=
6306
8e1fea1a 6307 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6308 case ${lang_frag} in
6309 ..) ;;
6310 # The odd quoting in the next line works around
6311 # an apparent bug in bash 1.12 on linux.
6312 ${srcdir}/gcc/[*]/config-lang.in) ;;
6313 *)
b30fcfae 6314 # From the config-lang.in, get $language, $target_libs,
2d64c2fd 6315 # $lang_dirs, $boot_language, and $build_by_default
8e1fea1a 6316 language=
6317 target_libs=
6318 lang_dirs=
5dee13c2 6319 subdir_requires=
9c3a0a29 6320 boot_language=no
6321 build_by_default=yes
d6400eba 6322 # set srcdir during sourcing. See above about save & restore
6323 saved_srcdir=${srcdir}
6324 srcdir=${srcdir}/gcc . ${lang_frag}
6325 srcdir=${saved_srcdir}
9c3a0a29 6326 if test x${language} = x; then
6327 echo "${lang_frag} doesn't set \$language." 1>&2
6328 exit 1
6329 fi
6330
ef3c41c7 6331 if test "$language" = "c++"; then
2b15d2ba 6332 boot_language=yes
7ab76cec 6333 fi
6334
a2ecd49c 6335 add_this_lang=no
01b4453c 6336 # C is always enabled, so no need to add it again
6337 if test "$language" != "c"; then
6338 case ,${enable_languages}, in
6339 *,${language},*)
6340 # Language was explicitly selected; include it
e53d55e7 6341 add_this_lang=yes
01b4453c 6342 ;;
6343 *,all,*)
6344 # All languages are enabled
6345 add_this_lang=all
6346 ;;
6347 *,default,*)
6348 # 'default' was selected, select it if it is a default language
a2ecd49c 6349 add_this_lang=${build_by_default}
01b4453c 6350 ;;
6351 esac
6352 fi
4ee9c684 6353
5dee13c2 6354 # Disable languages that need other directories if these aren't available.
9333ae0b 6355 for i in $subdir_requires; do
3891e7d9 6356 test -f "$srcdir/gcc/$i/config-lang.in" && continue
01b4453c 6357 case ${add_this_lang} in
6358 yes)
5dee13c2 6359 # Specifically requested language; tell them.
f00f02a3 6360 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
5dee13c2 6361 ;;
01b4453c 6362 all)
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6364$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6365 add_this_lang=unsupported
6366 ;;
5dee13c2 6367 *)
6368 # Silently disable.
9c3a0a29 6369 add_this_lang=unsupported
5dee13c2 6370 ;;
6371 esac
6372 done
6373
9c3a0a29 6374 # Disable Ada if no preexisting GNAT is available.
01b4453c 6375 case ${add_this_lang}:${language}:${have_gnat} in
6376 yes:ada:no)
9c3a0a29 6377 # Specifically requested language; tell them.
f00f02a3 6378 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
9c3a0a29 6379 ;;
01b4453c 6380 all:ada:no)
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6382$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6383 add_this_lang=unsupported
6384 ;;
9c3a0a29 6385 *:ada:no)
6386 # Silently disable.
6387 add_this_lang=unsupported
6388 ;;
6389 esac
6390
01b4453c 6391 # Disable jit if -enable-host-shared not specified
6392 case ${add_this_lang}:${language}:${host_shared} in
6393 yes:jit:no)
6394 # PR jit/64780: explicitly specify --enable-host-shared
f00f02a3 6395 as_fn_error $? "
01b4453c 6396Enabling language \"jit\" requires --enable-host-shared.
6397
6398--enable-host-shared typically slows the rest of the compiler down by
6399a few %, so you must explicitly enable it.
6400
6401If you want to build both the jit and the regular compiler, it is often
6402best to do this via two separate configure/builds, in separate
6403directories, to avoid imposing the performance cost of
6404--enable-host-shared on the regular compiler." "$LINENO" 5
6405 ;;
6406 all:jit:no)
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6408$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6409 add_this_lang=unsupported
6410 ;;
6411 *:jit:no)
6412 # Silently disable.
6413 add_this_lang=unsupported
6414 ;;
6415 esac
6416
6417 # Disable a language that is unsupported by the target.
6418 case "${add_this_lang}: $unsupported_languages " in
6419 no:*) ;;
6420 unsupported:*) ;;
6421 *:*" $language "*)
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6423$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9c3a0a29 6424 add_this_lang=unsupported
ff7dcf6a 6425 ;;
6426 esac
6427
4ee9c684 6428 case $add_this_lang in
9c3a0a29 6429 unsupported)
8e1fea1a 6430 # Remove language-dependent dirs.
604a285a 6431 disabled_target_libs="$disabled_target_libs $target_libs"
6432 noconfigdirs="$noconfigdirs $lang_dirs"
2d64c2fd 6433 ;;
9c3a0a29 6434 no)
6435 # Remove language-dependent dirs; still show language as supported.
604a285a 6436 disabled_target_libs="$disabled_target_libs $target_libs"
6437 noconfigdirs="$noconfigdirs $lang_dirs"
9c3a0a29 6438 potential_languages="${potential_languages}${language},"
6439 ;;
01b4453c 6440 all|yes)
9c3a0a29 6441 new_enable_languages="${new_enable_languages}${language},"
6442 potential_languages="${potential_languages}${language},"
2d64c2fd 6443 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
604a285a 6444 enabled_target_libs="$enabled_target_libs $target_libs"
32027446 6445 case "${boot_language}:,$enable_stage1_languages," in
6446 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
aff6cf7b 6447 # Add to (comma-separated) list of stage 1 languages.
32027446 6448 case ",$stage1_languages," in
6449 *,$language,* | ,yes, | ,all,) ;;
6450 *) stage1_languages="${stage1_languages}${language}," ;;
6451 esac
7ab76cec 6452 # We need to bootstrap any supporting libraries.
6453 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2d64c2fd 6454 ;;
6455 esac
6456 ;;
8e1fea1a 6457 esac
6458 ;;
6459 esac
6460 done
6461
604a285a 6462 # Add target libraries which are only needed for disabled languages
6463 # to noconfigdirs.
6464 if test -n "$disabled_target_libs"; then
6465 for dir in $disabled_target_libs; do
6466 case " $enabled_target_libs " in
6467 *" ${dir} "*) ;;
6468 *) noconfigdirs="$noconfigdirs $dir" ;;
6469 esac
6470 done
6471 fi
6472
cd9a469c 6473 # Check whether --enable-stage1-languages was given.
6474if test "${enable_stage1_languages+set}" = set; then :
6475 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9c3a0a29 6476 ,no,|,,)
6477 # Set it to something that will have no effect in the loop below
6478 enable_stage1_languages=c ;;
6479 ,yes,)
6480 enable_stage1_languages=`echo $new_enable_languages | \
6481 sed -e "s/^,//" -e "s/,$//" ` ;;
6482 *,all,*)
6483 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6484 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6485 esac
6486
6487 # Add "good" languages from enable_stage1_languages to stage1_languages,
6488 # while "bad" languages go in missing_languages. Leave no duplicates.
6489 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6490 case $potential_languages in
6491 *,$i,*)
6492 case $stage1_languages in
6493 *,$i,*) ;;
6494 *) stage1_languages="$stage1_languages$i," ;;
6495 esac ;;
6496 *)
6497 case $missing_languages in
6498 *,$i,*) ;;
6499 *) missing_languages="$missing_languages$i," ;;
6500 esac ;;
6501 esac
6502 done
cd9a469c 6503fi
6504
9c3a0a29 6505
6506 # Remove leading/trailing commas that were added for simplicity
6507 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
989edd2f 6508 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9c3a0a29 6509 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6510 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6511
8e1fea1a 6512 if test "x$missing_languages" != x; then
f00f02a3 6513 as_fn_error $? "
e8bfe1fa 6514The following requested languages could not be built: ${missing_languages}
cd9a469c 6515Supported languages are: ${potential_languages}" "$LINENO" 5
8e1fea1a 6516 fi
8e1fea1a 6517 if test "x$new_enable_languages" != "x$enable_languages"; then
6518 echo The following languages will be built: ${new_enable_languages}
9c3a0a29 6519 enable_languages="$new_enable_languages"
8e1fea1a 6520 fi
9c3a0a29 6521
b30fcfae 6522
b0e9b581 6523 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
8e1fea1a 6524fi
6525
50996fe5 6526# Handle --disable-<component> generically.
6527for dir in $configdirs $build_configdirs $target_configdirs ; do
6528 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
d2d2630b 6529 varname=`echo $dirname | sed -e s/+/_/g`
6530 if eval test x\${enable_${varname}} "=" xno ; then
50996fe5 6531 noconfigdirs="$noconfigdirs $dir"
6532 fi
6533done
6534
03869f98 6535# Check for Boehm's garbage collector
6536# Check whether --enable-objc-gc was given.
6537if test "${enable_objc_gc+set}" = set; then :
baf71228 6538 enableval=$enable_objc_gc;
6539fi
6540
6541
6542# Check whether --with-target-bdw-gc was given.
6543if test "${with_target_bdw_gc+set}" = set; then :
6544 withval=$with_target_bdw_gc;
6545fi
6546
6547
6548# Check whether --with-target-bdw-gc-include was given.
6549if test "${with_target_bdw_gc_include+set}" = set; then :
6550 withval=$with_target_bdw_gc_include;
6551fi
6552
6553
6554# Check whether --with-target-bdw-gc-lib was given.
6555if test "${with_target_bdw_gc_lib+set}" = set; then :
6556 withval=$with_target_bdw_gc_lib;
6557fi
6558
6559
6560case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6562$as_echo_n "checking for bdw garbage collector... " >&6; }
6563 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
74dfdbe3 6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6565$as_echo "using bdw-gc in default locations" >&6; }
baf71228 6566 else
6567 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
f00f02a3 6568 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
baf71228 6569 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
f00f02a3 6570 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
baf71228 6571 else
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6573$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6574 fi
6575 fi
03869f98 6576esac
6577
efa02472 6578# Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
b33ca042 6579case ,${enable_languages}, in
df148e44 6580 *,c++,*)
efa02472 6581 # Disable libitm, libsanitizer if we're not building libstdc++
df148e44 6582 case "${noconfigdirs}" in
6583 *target-libstdc++-v3*)
efa02472 6584 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
df148e44 6585 ;;
6586 *) ;;
6587 esac
6588 ;;
b33ca042 6589 *)
efa02472 6590 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
b33ca042 6591 ;;
6592esac
6593
e8eddfdd 6594# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6595# $build_configdirs and $target_configdirs.
8e1fea1a 6596# If we have the source for $noconfigdirs entries, add them to $notsupp.
6597
6598notsupp=""
6599for dir in . $skipdirs $noconfigdirs ; do
e8eddfdd 6600 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
8e1fea1a 6601 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6602 configdirs=`echo " ${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
e8eddfdd 6611 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6612 build_configdirs=`echo " ${build_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
8e1fea1a 6621 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6622 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6623 if test -r $srcdir/$dirname/configure ; then
6624 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6625 true
6626 else
6627 notsupp="$notsupp $dir"
6628 fi
6629 fi
6630 fi
6631done
6632
8e1fea1a 6633# Quietly strip out all directories which aren't configurable in this tree.
6634# This relies on all configurable subdirectories being autoconfiscated, which
6635# is now the case.
2f8725b0 6636build_configdirs_all="$build_configdirs"
6637build_configdirs=
6638for i in ${build_configdirs_all} ; do
b30fcfae 6639 j=`echo $i | sed -e s/build-//g`
2f8725b0 6640 if test -f ${srcdir}/$j/configure ; then
6641 build_configdirs="${build_configdirs} $i"
6642 fi
6643done
6644
8e1fea1a 6645configdirs_all="$configdirs"
6646configdirs=
6647for i in ${configdirs_all} ; do
6648 if test -f ${srcdir}/$i/configure ; then
6649 configdirs="${configdirs} $i"
6650 fi
6651done
2f8725b0 6652
8e1fea1a 6653target_configdirs_all="$target_configdirs"
6654target_configdirs=
6655for i in ${target_configdirs_all} ; do
b30fcfae 6656 j=`echo $i | sed -e s/target-//g`
8e1fea1a 6657 if test -f ${srcdir}/$j/configure ; then
6658 target_configdirs="${target_configdirs} $i"
6659 fi
6660done
6661
1015a063 6662# libiberty-linker-plugin is special: it doesn't have its own source directory,
6663# so we have to add it after the preceding checks.
6664if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6665then
6666 case " $configdirs " in
6667 *" libiberty "*)
6668 # If we can build libiberty, we can also build libiberty-linker-plugin.
6669 configdirs="$configdirs libiberty-linker-plugin"
6670 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6671 --with-libiberty=../libiberty-linker-plugin";;
6672 *)
f00f02a3 6673 as_fn_error $? "libiberty missing" "$LINENO" 5;;
1015a063 6674 esac
6675fi
6676
944792ef 6677# Sometimes we have special requirements for the host libiberty.
6678extra_host_libiberty_configure_flags=
c850ece7 6679extra_host_zlib_configure_flags=
944792ef 6680case " $configdirs " in
6681 *" lto-plugin "* | *" libcc1 "*)
6682 # When these are to be built as shared libraries, the same applies to
6683 # libiberty.
6684 extra_host_libiberty_configure_flags=--enable-shared
6685 ;;
c850ece7 6686 *" bfd "*)
6687 # When bfd is to be built as a shared library, the same applies to
6688 # zlib.
6689 if test "$enable_shared" = "yes"; then
6690 extra_host_zlib_configure_flags=--enable-host-shared
6691 fi
6692 ;;
944792ef 6693esac
6694
6695
c850ece7 6696
8e1fea1a 6697# Produce a warning message for the subdirs we can't configure.
6698# This isn't especially interesting in the Cygnus tree, but in the individual
6699# FSF releases, it's important to let people know when their machine isn't
6700# supported by the one or two programs in a package.
6701
6702if test -n "${notsupp}" && test -z "${norecursion}" ; then
6703 # If $appdirs is non-empty, at least one of those directories must still
6704 # be configured, or we error out. (E.g., if the gas release supports a
6705 # specified target in some subdirs but not the gas subdir, we shouldn't
6706 # pretend that all is well.)
6707 if test -n "$appdirs" ; then
6708 for dir in $appdirs ; do
6709 if test -r $dir/Makefile.in ; then
6710 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6711 appdirs=""
6712 break
6713 fi
2f8725b0 6714 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
8e1fea1a 6715 appdirs=""
6716 break
6717 fi
6718 fi
6719 done
6720 if test -n "$appdirs" ; then
6721 echo "*** This configuration is not supported by this package." 1>&2
6722 exit 1
6723 fi
6724 fi
6725 # Okay, some application will build, or we don't care to check. Still
6726 # notify of subdirs not getting built.
6727 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6728 echo " ${notsupp}" 1>&2
6729 echo " (Any other directories should still work fine.)" 1>&2
6730fi
6731
6732case "$host" in
6733 *msdosdjgpp*)
6734 enable_gdbtk=no ;;
6735esac
6736
eae5b2bc 6737# To find our prefix, in gcc_cv_tool_prefix.
6738
6739# The user is always right.
6740if test "${PATH_SEPARATOR+set}" != set; then
6741 echo "#! /bin/sh" >conf$$.sh
6742 echo "exit 0" >>conf$$.sh
6743 chmod +x conf$$.sh
6744 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6745 PATH_SEPARATOR=';'
6746 else
6747 PATH_SEPARATOR=:
6748 fi
6749 rm -f conf$$.sh
6750fi
6751
6752
0812bb06 6753 get_gcc_base_ver="cat"
6754
6755# Check whether --with-gcc-major-version-only was given.
6756if test "${with_gcc_major_version_only+set}" = set; then :
6757 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
1e42d5c6 6758 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
0812bb06 6759 fi
6760
6761fi
6762
6763
6764
6765
6766
eae5b2bc 6767
6768if test "x$exec_prefix" = xNONE; then
6769 if test "x$prefix" = xNONE; then
6770 gcc_cv_tool_prefix=$ac_default_prefix
6771 else
6772 gcc_cv_tool_prefix=$prefix
6773 fi
6774else
6775 gcc_cv_tool_prefix=$exec_prefix
6776fi
6777
6778# If there is no compiler in the tree, use the PATH only. In any
6779# case, if there is no compiler in the tree nobody should use
6780# AS_FOR_TARGET and LD_FOR_TARGET.
6781if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
0812bb06 6782 if test x$with_gcc_major_version_only = xyes ; then
6783 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6784 else
6785 gcc_version=`cat $srcdir/gcc/BASE-VER`
6786 fi
eae5b2bc 6787 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6788 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6789 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6790 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6791 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6792 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6793else
6794 gcc_cv_tool_dirs=
6795fi
6796
6797if test x$build = x$target && test -n "$md_exec_prefix"; then
6798 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6799fi
6800
6801
6802
8e1fea1a 6803copy_dirs=
6804
b30fcfae 6805
cd9a469c 6806# Check whether --with-build-sysroot was given.
6807if test "${with_build_sysroot+set}" = set; then :
6808 withval=$with_build_sysroot; if test x"$withval" != x ; then
ffa8502d 6809 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6810 fi
6811else
6812 SYSROOT_CFLAGS_FOR_TARGET=
cd9a469c 6813fi
ffa8502d 6814
6815
5f1f2de5 6816
cd9a469c 6817
6818# Check whether --with-debug-prefix-map was given.
6819if test "${with_debug_prefix_map+set}" = set; then :
6820 withval=$with_debug_prefix_map; if test x"$withval" != x; then
5f1f2de5 6821 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6822 for debug_map in $withval; do
6823 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6824 done
6825 fi
6826else
6827 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
cd9a469c 6828fi
6829
5f1f2de5 6830
6831
c898f165 6832# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6833# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6834# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6835# We want to ensure that TARGET libraries (which we know are built with
6836# gcc) are built with "-O2 -g", so include those options when setting
6837# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6838if test "x$CFLAGS_FOR_TARGET" = x; then
f5fad380 6839 if test "x${is_cross_compiler}" = xyes; then
6840 CFLAGS_FOR_TARGET="-g -O2"
6841 else
6842 CFLAGS_FOR_TARGET=$CFLAGS
6843 case " $CFLAGS " in
6844 *" -O2 "*) ;;
6845 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6846 esac
6847 case " $CFLAGS " in
6848 *" -g "* | *" -g3 "*) ;;
6849 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6850 esac
6851 fi
c898f165 6852fi
6853
6854
6855if test "x$CXXFLAGS_FOR_TARGET" = x; then
f5fad380 6856 if test "x${is_cross_compiler}" = xyes; then
6857 CXXFLAGS_FOR_TARGET="-g -O2"
6858 else
6859 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6860 case " $CXXFLAGS " in
6861 *" -O2 "*) ;;
6862 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6863 esac
6864 case " $CXXFLAGS " in
6865 *" -g "* | *" -g3 "*) ;;
6866 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6867 esac
6868 fi
c898f165 6869fi
6870
6871
ed9516f5 6872
6873
8e1fea1a 6874# Handle --with-headers=XXX. If the value is not "yes", the contents of
6875# the named directory are copied to $(tooldir)/sys-include.
6876if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6877 if test x${is_cross_compiler} = xno ; then
6878 echo 1>&2 '***' --with-headers is only supported when cross compiling
6879 exit 1
6880 fi
6881 if test x"${with_headers}" != xyes ; then
eae5b2bc 6882 x=${gcc_cv_tool_prefix}
b30fcfae 6883 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
8e1fea1a 6884 fi
6885fi
6886
6887# Handle --with-libs=XXX. If the value is not "yes", the contents of
6888# the name directories are copied to $(tooldir)/lib. Multiple directories
6889# are permitted.
6890if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6891 if test x${is_cross_compiler} = xno ; then
6892 echo 1>&2 '***' --with-libs is only supported when cross compiling
6893 exit 1
6894 fi
6895 if test x"${with_libs}" != xyes ; then
6896 # Copy the libraries in reverse order, so that files in the first named
6897 # library override files in subsequent libraries.
eae5b2bc 6898 x=${gcc_cv_tool_prefix}
8e1fea1a 6899 for l in ${with_libs}; do
b30fcfae 6900 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
8e1fea1a 6901 done
6902 fi
6903fi
6904
7bfefa9d 6905# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
c47832b1 6906#
6907# This is done by determining whether or not the appropriate directory
6908# is available, and by checking whether or not specific configurations
6909# have requested that this magic not happen.
b30fcfae 6910#
6911# The command line options always override the explicit settings in
e757a6a8 6912# configure.ac, and the settings in configure.ac override this magic.
c47832b1 6913#
b30fcfae 6914# If the default for a toolchain is to use GNU as and ld, and you don't
c47832b1 6915# want to do that, then you should use the --without-gnu-as and
7bfefa9d 6916# --without-gnu-ld options for the configure script. Similarly, if
6917# the default is to use the included zlib and you don't want to do that,
6918# you should use the --with-system-zlib option for the configure script.
c47832b1 6919
6920if test x${use_gnu_as} = x &&
6921 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6922 with_gnu_as=yes
6923 extra_host_args="$extra_host_args --with-gnu-as"
6924fi
6925
6926if test x${use_gnu_ld} = x &&
3d47fcf5 6927 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
c47832b1 6928 with_gnu_ld=yes
6929 extra_host_args="$extra_host_args --with-gnu-ld"
6930fi
6931
7bfefa9d 6932if test x${use_included_zlib} = x &&
6933 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6934 :
6935else
6936 with_system_zlib=yes
6937 extra_host_args="$extra_host_args --with-system-zlib"
6938fi
6939
c47832b1 6940# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6941# can detect this case.
6942
6943if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6944 with_newlib=yes
6945 extra_host_args="$extra_host_args --with-newlib"
6946fi
6947
8e1fea1a 6948# Handle ${copy_dirs}
6949set fnord ${copy_dirs}
6950shift
6951while test $# != 0 ; do
6952 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6953 :
6954 else
6955 echo Copying $1 to $2
6956
6957 # Use the install script to create the directory and all required
6958 # parent directories.
6959 if test -d $2 ; then
6960 :
6961 else
6962 echo >config.temp
6963 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6964 fi
6965
6966 # Copy the directory, assuming we have tar.
6967 # FIXME: Should we use B in the second tar? Not all systems support it.
6968 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6969
6970 # It is the responsibility of the user to correctly adjust all
6971 # symlinks. If somebody can figure out how to handle them correctly
6972 # here, feel free to add the code.
6973
6974 echo $1 > $2/COPIED
6975 fi
6976 shift; shift
6977done
6978
c47832b1 6979# Determine a target-dependent exec_prefix that the installed
6980# gcc will search in. Keep this list sorted by triplet, with
6981# the *-*-osname triplets last.
6982md_exec_prefix=
6983case "${target}" in
09c2d953 6984 i[34567]86-pc-msdosdjgpp*)
c47832b1 6985 md_exec_prefix=/dev/env/DJDIR/bin
6986 ;;
c47832b1 6987 *-*-hpux* | \
c47832b1 6988 *-*-nto-qnx* | \
93faf308 6989 *-*-solaris2*)
c47832b1 6990 md_exec_prefix=/usr/ccs/bin
6991 ;;
6992esac
6993
71ab34df 6994extra_arflags_for_target=
6995extra_nmflags_for_target=
6996extra_ranlibflags_for_target=
6997target_makefile_frag=/dev/null
6998case "${target}" in
57c7de11 6999 spu-*-*)
7000 target_makefile_frag="config/mt-spu"
7001 ;;
d781ea5c 7002 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
f8520ad7 7003 target_makefile_frag="config/mt-sde"
7004 ;;
3013c2c7 7005 mipsisa*-*-elfoabi*)
7006 target_makefile_frag="config/mt-mips-elfoabi"
7007 ;;
559b0712 7008 mips*-*-*linux* | mips*-*-gnu*)
7009 target_makefile_frag="config/mt-mips-gnu"
7010 ;;
2481a2c1 7011 nios2-*-elf*)
7012 target_makefile_frag="config/mt-nios2-elf"
7013 ;;
a703ac2b 7014 *-*-linux-android*)
7015 target_makefile_frag="config/mt-android"
7016 ;;
3bef4012 7017 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
cb8a7007 7018 target_makefile_frag="config/mt-gnu"
71ab34df 7019 ;;
7020 *-*-aix4.[3456789]* | *-*-aix[56789].*)
b30fcfae 7021 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
71ab34df 7022 # commands to handle both 32-bit and 64-bit objects. These flags are
7023 # harmless if we're using GNU nm or ar.
7024 extra_arflags_for_target=" -X32_64"
7025 extra_nmflags_for_target=" -B -X32_64"
7026 ;;
71ab34df 7027esac
7028
7029alphaieee_frag=/dev/null
7030case $target in
7031 alpha*-*-*)
7032 # This just makes sure to use the -mieee option to build target libs.
7033 # This should probably be set individually by each library.
7034 alphaieee_frag="config/mt-alphaieee"
7035 ;;
7036esac
7037
7038# If --enable-target-optspace always use -Os instead of -O2 to build
7039# the target libraries, similarly if it is not specified, use -Os
7040# on selected platforms.
7041ospace_frag=/dev/null
7042case "${enable_target_optspace}:${target}" in
7043 yes:*)
7044 ospace_frag="config/mt-ospace"
7045 ;;
7046 :d30v-*)
7047 ospace_frag="config/mt-d30v"
7048 ;;
1c26a2ee 7049 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
71ab34df 7050 ospace_frag="config/mt-ospace"
7051 ;;
7052 no:* | :*)
7053 ;;
7054 *)
7055 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7056 ;;
7057esac
7058
71ab34df 7059# Some systems (e.g., one of the i386-aix systems the gas testers are
7060# using) don't handle "\$" correctly, so don't use it here.
b30fcfae 7061tooldir='${exec_prefix}'/${target_noncanonical}
71ab34df 7062build_tooldir=${tooldir}
7063
71ab34df 7064# Create a .gdbinit file which runs the one in srcdir
7065# and tells GDB to look there for source files.
7066
7067if test -r ${srcdir}/.gdbinit ; then
7068 case ${srcdir} in
7069 .) ;;
7070 *) cat > ./.gdbinit <<EOF
7071# ${NO_EDIT}
7072dir ${srcdir}
7073dir .
7074source ${srcdir}/.gdbinit
7075EOF
7076 ;;
7077 esac
7078fi
7079
71ab34df 7080# Make sure that the compiler is able to generate an executable. If it
7081# can't, we are probably in trouble. We don't care whether we can run the
7082# executable--we might be using a cross compiler--we only care whether it
7083# can be created. At this point the main configure script has set CC.
7084we_are_ok=no
7085echo "int main () { return 0; }" > conftest.c
7086${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7087if test $? = 0 ; then
7088 if test -s conftest || test -s conftest.exe ; then
7089 we_are_ok=yes
7090 fi
b30fcfae 7091fi
71ab34df 7092case $we_are_ok in
7093 no)
7094 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7095 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7096 rm -f conftest*
7097 exit 1
7098 ;;
7099esac
7100rm -f conftest*
7101
7d804f04 7102# Decide which environment variable is used to find dynamic libraries.
71ab34df 7103case "${host}" in
7104 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
b2240ff6 7105 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7d804f04 7106 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
71ab34df 7107 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7108esac
7109
7d804f04 7110# On systems where the dynamic library environment variable is PATH,
7111# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7112# built executables to PATH.
7113if test "$RPATH_ENVVAR" = PATH; then
7114 GCC_SHLIB_SUBDIR=/shlib
7115else
7116 GCC_SHLIB_SUBDIR=
7117fi
7118
ee055341 7119# Adjust the toplevel makefile according to whether bootstrap was selected.
7120case $enable_bootstrap in
7121 yes)
7122 bootstrap_suffix=bootstrap
7123 BUILD_CONFIG=bootstrap-debug
7124 ;;
7125 no)
7126 bootstrap_suffix=no-bootstrap
7127 BUILD_CONFIG=
7128 ;;
7129esac
7130
7131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7132$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7133
7134
7135# Check whether --with-build-config was given.
7136if test "${with_build_config+set}" = set; then :
7137 withval=$with_build_config; case $with_build_config in
7138 yes) with_build_config= ;;
7139 no) with_build_config= BUILD_CONFIG= ;;
7140 esac
7141fi
7142
7143
7144if test "x${with_build_config}" != x; then
7145 BUILD_CONFIG=$with_build_config
7146else
7147 case $BUILD_CONFIG in
7148 bootstrap-debug)
7149 if echo "int f (void) { return 0; }" > conftest.c &&
7150 ${CC} -c conftest.c &&
7151 mv conftest.o conftest.o.g0 &&
7152 ${CC} -c -g conftest.c &&
7153 mv conftest.o conftest.o.g &&
7154 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7155 :
7156 else
7157 BUILD_CONFIG=
7158 fi
7159 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7160 ;;
7161 esac
7162fi
7163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7164$as_echo "$BUILD_CONFIG" >&6; }
7165
7166
7167# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7169$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7170# Check whether --enable-vtable-verify was given.
7171if test "${enable_vtable_verify+set}" = set; then :
7172 enableval=$enable_vtable_verify; case "$enableval" in
7173 yes) enable_vtable_verify=yes ;;
7174 no) enable_vtable_verify=no ;;
7175 *) enable_vtable_verify=no;;
7176 esac
7177else
7178 enable_vtable_verify=no
7179fi
7180
7181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7182$as_echo "$enable_vtable_verify" >&6; }
7183
71ab34df 7184# Record target_configdirs and the configure arguments for target and
7185# build configuration in Makefile.
7186target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
2f8725b0 7187build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
f4ae1a00 7188bootstrap_fixincludes=no
71ab34df 7189
5c96a839 7190# If we are building libgomp, bootstrap it.
7191if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7192 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7193fi
7194
ee055341 7195# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7196# or bootstrap-ubsan, bootstrap it.
7197if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7198 case "$BUILD_CONFIG" in
7199 *bootstrap-asan* | *bootstrap-ubsan* )
7200 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
f4ae1a00 7201 bootstrap_fixincludes=yes
ee055341 7202 ;;
7203 esac
579abfee 7204fi
7205
ee055341 7206# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7207if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7208 test "$enable_vtable_verify" != no; then
b710ec85 7209 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7210fi
7211
71ab34df 7212# Determine whether gdb needs tk/tcl or not.
7213# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7214# and in that case we want gdb to be built without tk. Ugh!
7215# In fact I believe gdb is the *only* package directly dependent on tk,
7216# so we should be able to put the 'maybe's in unconditionally and
7217# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7218# 100% sure that that's safe though.
8fdaf281 7219
f843f075 7220gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
71ab34df 7221case "$enable_gdbtk" in
7222 no)
7223 GDB_TK="" ;;
8fdaf281 7224 yes)
7225 GDB_TK="${gdb_tk}" ;;
71ab34df 7226 *)
8fdaf281 7227 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7228 # distro. Eventually someone will fix this and move Insight, nee
7229 # gdbtk to a separate directory.
7230 if test -d ${srcdir}/gdb/gdbtk ; then
7231 GDB_TK="${gdb_tk}"
7232 else
7233 GDB_TK=""
7234 fi
7235 ;;
71ab34df 7236esac
415470be 7237CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7238INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
71ab34df 7239
01b41571 7240# Strip out unwanted targets.
6f4f34a7 7241
7242# While at that, we remove Makefiles if we were started for recursive
7243# configuration, so that the top-level Makefile reconfigures them,
7244# like we used to do when configure itself was recursive.
6f4f34a7 7245
8bb79148 7246# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7247# but now we're fixing up the Makefile ourselves with the additional
7248# commands passed to AC_CONFIG_FILES. Use separate variables
7249# extrasub-{build,host,target} not because there is any reason to split
7250# the substitutions up that way, but only to remain below the limit of
7251# 99 commands in a script, for HP-UX sed.
9488d90e 7252
7253# Do not nest @if/@endif or @unless/@endunless pairs, because
7254# configure will not warn you at all.
6f4f34a7 7255
7b5fee3e 7256case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7257 yes:yes:*\ gold\ *:*,c++,*) ;;
7258 yes:yes:*\ gold\ *:*)
f00f02a3 7259 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7b5fee3e 7260 ;;
7261esac
7262
8bb79148 7263extrasub_build=
2f8725b0 7264for module in ${build_configdirs} ; do
93f93279 7265 if test -z "${no_recursion}" \
7266 && test -f ${build_subdir}/${module}/Makefile; then
7267 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7268 rm -f ${build_subdir}/${module}/Makefile
7269 fi
8bb79148 7270 extrasub_build="$extrasub_build
93f93279 7271/^@if build-$module\$/d
7272/^@endif build-$module\$/d
9488d90e 7273/^@unless build-$module\$/,/^@endunless build-$module\$/d
93f93279 7274/^@if build-$module-$bootstrap_suffix\$/d
9488d90e 7275/^@endif build-$module-$bootstrap_suffix\$/d
7276/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
93f93279 7277done
8bb79148 7278extrasub_host=
93f93279 7279for module in ${configdirs} ; do
9c19a746 7280 if test -z "${no_recursion}"; then
35d84d10 7281 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9c19a746 7282 if test -f ${file}; then
7283 echo 1>&2 "*** removing ${file} to force reconfigure"
7284 rm -f ${file}
7285 fi
7286 done
93f93279 7287 fi
f4ae1a00 7288 case ${module},${bootstrap_fixincludes} in
7289 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7290 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7291 esac
8bb79148 7292 extrasub_host="$extrasub_host
93f93279 7293/^@if $module\$/d
7294/^@endif $module\$/d
9488d90e 7295/^@unless $module\$/,/^@endunless $module\$/d
f4ae1a00 7296/^@if $module-$host_bootstrap_suffix\$/d
9488d90e 7297/^@endif $module-$host_bootstrap_suffix\$/d
7298/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
93f93279 7299done
8bb79148 7300extrasub_target=
93f93279 7301for module in ${target_configdirs} ; do
7302 if test -z "${no_recursion}" \
7303 && test -f ${target_subdir}/${module}/Makefile; then
7304 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7305 rm -f ${target_subdir}/${module}/Makefile
7306 fi
7ab76cec 7307
7308 # We only bootstrap target libraries listed in bootstrap_target_libs.
7309 case $bootstrap_target_libs in
7310 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7311 *) target_bootstrap_suffix=no-bootstrap ;;
7312 esac
7313
8bb79148 7314 extrasub_target="$extrasub_target
93f93279 7315/^@if target-$module\$/d
7316/^@endif target-$module\$/d
9488d90e 7317/^@unless target-$module\$/,/^@endunless target-$module\$/d
7ab76cec 7318/^@if target-$module-$target_bootstrap_suffix\$/d
9488d90e 7319/^@endif target-$module-$target_bootstrap_suffix\$/d
7320/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
93f93279 7321done
7322
8bb79148 7323# Do the final fixup along with target modules.
7324extrasub_target="$extrasub_target
9488d90e 7325/^@if /,/^@endif /d
7326/^@unless /d
7327/^@endunless /d"
71ab34df 7328
7329# Create the serialization dependencies. This uses a temporary file.
7330
cd9a469c 7331# Check whether --enable-serial-configure was given.
7332if test "${enable_serial_configure+set}" = set; then :
7333 enableval=$enable_serial_configure;
7334fi
11d8013a 7335
7336
622c1fa9 7337case ${enable_serial_configure} in
7338 yes)
7339 enable_serial_build_configure=yes
7340 enable_serial_host_configure=yes
7341 enable_serial_target_configure=yes
7342 ;;
7343esac
7344
71ab34df 7345# These force 'configure's to be done one at a time, to avoid problems
7346# with contention over a shared config.cache.
7347rm -f serdep.tmp
11d8013a 7348echo '# serdep.tmp' > serdep.tmp
71ab34df 7349olditem=
622c1fa9 7350test "x${enable_serial_build_configure}" = xyes &&
71ab34df 7351for item in ${build_configdirs} ; do
7352 case ${olditem} in
7353 "") ;;
11d8013a 7354 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
71ab34df 7355 esac
7356 olditem=${item}
7357done
7358olditem=
622c1fa9 7359test "x${enable_serial_host_configure}" = xyes &&
71ab34df 7360for item in ${configdirs} ; do
7361 case ${olditem} in
7362 "") ;;
11d8013a 7363 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
71ab34df 7364 esac
7365 olditem=${item}
7366done
7367olditem=
622c1fa9 7368test "x${enable_serial_target_configure}" = xyes &&
71ab34df 7369for item in ${target_configdirs} ; do
7370 case ${olditem} in
7371 "") ;;
11d8013a 7372 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
71ab34df 7373 esac
7374 olditem=${item}
7375done
7376serialization_dependencies=serdep.tmp
7377
7378
11d8013a 7379# Base args. Strip norecursion, cache-file, srcdir, host, build,
b30fcfae 7380# target, nonopt, and variable assignments. These are the ones we
412c2e81 7381# might not want to pass down to subconfigures. The exception being
7382# --cache-file=/dev/null, which is used to turn off the use of cache
7383# files altogether, and which should be passed on to subconfigures.
7384# Also strip program-prefix, program-suffix, and program-transform-name,
7385# so that we can pass down a consistent program-transform-name.
b30fcfae 7386baseargs=
0e4d1862 7387tbaseargs=
b30fcfae 7388keep_next=no
7389skip_next=no
7390eval "set -- $ac_configure_args"
4ff792a4 7391for ac_arg
7392do
b30fcfae 7393 if test X"$skip_next" = X"yes"; then
7394 skip_next=no
7395 continue
7396 fi
7397 if test X"$keep_next" = X"yes"; then
7398 case $ac_arg in
7399 *\'*)
7400 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7401 esac
7402 baseargs="$baseargs '$ac_arg'"
0e4d1862 7403 tbaseargs="$tbaseargs '$ac_arg'"
b30fcfae 7404 keep_next=no
7405 continue
7406 fi
7407
7408 # Handle separated arguments. Based on the logic generated by
7409 # autoconf 2.59.
7410 case $ac_arg in
7411 *=* | --config-cache | -C | -disable-* | --disable-* \
7412 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7413 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7414 | -with-* | --with-* | -without-* | --without-* | --x)
7415 separate_arg=no
7416 ;;
7417 -*)
7418 separate_arg=yes
7419 ;;
7420 *)
7421 separate_arg=no
7422 ;;
7423 esac
7424
0e4d1862 7425 skip_targ=no
7426 case $ac_arg in
7427
7428 --with-* | --without-*)
7429 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7430
7431 case $libopt in
7432 *[-_]include)
7433 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7434 ;;
7435 *[-_]lib)
7436 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7437 ;;
7438 *)
7439 lib=$libopt
7440 ;;
7441 esac
7442
7443
7444 case $lib in
572cf1f7 7445 mpc | mpfr | gmp | isl)
0e4d1862 7446 # If we're processing --with-$lib, --with-$lib-include or
7447 # --with-$lib-lib, for one of the libs above, and target is
7448 # different from host, don't pass the current argument to any
7449 # target library's configure.
7450 if test x$is_cross_compiler = xyes; then
7451 skip_targ=yes
7452 fi
7453 ;;
7454 esac
7455 ;;
7456 esac
7457
b30fcfae 7458 case "$ac_arg" in
412c2e81 7459 --cache-file=/dev/null | \
7460 -cache-file=/dev/null )
7461 # Handled here to avoid the test to skip args below.
7462 baseargs="$baseargs '$ac_arg'"
0e4d1862 7463 tbaseargs="$tbaseargs '$ac_arg'"
412c2e81 7464 # Assert: $separate_arg should always be no.
7465 keep_next=$separate_arg
7466 ;;
b30fcfae 7467 --no*)
7468 continue
7469 ;;
7470 --c* | \
7471 --sr* | \
7472 --ho* | \
7473 --bu* | \
7474 --t* | \
7475 --program-* | \
7476 -cache_file* | \
7477 -srcdir* | \
7478 -host* | \
7479 -build* | \
7480 -target* | \
7481 -program-prefix* | \
7482 -program-suffix* | \
7483 -program-transform-name* )
7484 skip_next=$separate_arg
7485 continue
7486 ;;
7487 -*)
7488 # An option. Add it.
7489 case $ac_arg in
7490 *\'*)
7491 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7492 esac
7493 baseargs="$baseargs '$ac_arg'"
0e4d1862 7494 if test X"$skip_targ" = Xno; then
7495 tbaseargs="$tbaseargs '$ac_arg'"
7496 fi
b30fcfae 7497 keep_next=$separate_arg
7498 ;;
7499 *)
7500 # Either a variable assignment, or a nonopt (triplet). Don't
7501 # pass it down; let the Makefile handle this.
7502 continue
7503 ;;
7504 esac
7505done
7506# Remove the initial space we just introduced and, as these will be
7507# expanded by make, quote '$'.
7508baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
71ab34df 7509
fbfea1fa 7510# Add in --program-transform-name, after --program-prefix and
7511# --program-suffix have been applied to it. Autoconf has already
7512# doubled dollar signs and backslashes in program_transform_name; we want
7513# the backslashes un-doubled, and then the entire thing wrapped in single
b30fcfae 7514# quotes, because this will be expanded first by make and then by the shell.
fbfea1fa 7515# Also, because we want to override the logic in subdir configure scripts to
7516# choose program_transform_name, replace any s,x,x, with s,y,y,.
7517sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7518${program_transform_name}
7519EOF_SED
7520gcc_transform_name=`cat conftestsed.out`
7521rm -f conftestsed.out
7522baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
0e4d1862 7523tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
af7bb0c0 7524if test "$silent" = yes; then
7525 baseargs="$baseargs --silent"
0e4d1862 7526 tbaseargs="$tbaseargs --silent"
af7bb0c0 7527fi
cd2f3773 7528baseargs="$baseargs --disable-option-checking"
0e4d1862 7529tbaseargs="$tbaseargs --disable-option-checking"
fbfea1fa 7530
372a3f1e 7531# Record and document user additions to sub configure arguments.
7532
7533
7534
7535
71ab34df 7536# For the build-side libraries, we just need to pretend we're native,
7537# and not use the same cache file. Multilibs are neither needed nor
b85b703b 7538# desired. We can't even use the same cache file for all build-side
7539# libraries, as they're compiled differently; some with C, some with
7540# C++ or with different feature-enabling options.
7541build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
71ab34df 7542
7543# For host modules, accept cache file option, or specification as blank.
7544case "${cache_file}" in
7545"") # empty
7546 cache_file_option="" ;;
7547/* | [A-Za-z]:[\\/]* ) # absolute path
7548 cache_file_option="--cache-file=${cache_file}" ;;
7549*) # relative path
7550 cache_file_option="--cache-file=../${cache_file}" ;;
7551esac
7552
ba1081ef 7553# Host dirs don't like to share a cache file either, horribly enough.
7554# This seems to be due to autoconf 2.5x stupidity.
372a3f1e 7555host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
71ab34df 7556
0e4d1862 7557target_configargs="$target_configargs ${tbaseargs}"
71ab34df 7558
7559# Passing a --with-cross-host argument lets the target libraries know
7560# whether they are being built with a cross-compiler or being built
7561# native. However, it would be better to use other mechanisms to make the
7562# sorts of decisions they want to make on this basis. Please consider
7563# this option to be deprecated. FIXME.
7564if test x${is_cross_compiler} = xyes ; then
b30fcfae 7565 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
71ab34df 7566fi
7567
87ebeb4c 7568# Special user-friendly check for native x86_64-linux build, if
7569# multilib is not explicitly enabled.
7570case "$target:$have_compiler:$host:$target:$enable_multilib" in
7571 x86_64-*linux*:yes:$build:$build:)
6efd9d79 7572 # Make sure we have a development environment that handles 32-bit
87ebeb4c 7573 dev64=no
7574 echo "int main () { return 0; }" > conftest.c
7575 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7576 if test $? = 0 ; then
7577 if test -s conftest || test -s conftest.exe ; then
7578 dev64=yes
7579 fi
7580 fi
7581 rm -f conftest*
7582 if test x${dev64} != xyes ; then
f00f02a3 7583 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 7584 fi
7585 ;;
7586esac
7587
59a40389 7588# Default to --enable-multilib.
7589if test x${enable_multilib} = x ; then
71ab34df 7590 target_configargs="--enable-multilib ${target_configargs}"
59a40389 7591fi
71ab34df 7592
7593# Pass --with-newlib if appropriate. Note that target_configdirs has
7594# changed from the earlier setting of with_newlib.
7595if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7596 target_configargs="--with-newlib ${target_configargs}"
7597fi
7598
74fef112 7599# Different target subdirs use different values of certain variables
7600# (notably CXX). Worse, multilibs use *lots* of different values.
7601# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7602# it doesn't automatically accept command-line overrides of them.
7603# This means it's not safe for target subdirs to share a cache file,
7604# which is disgusting, but there you have it. Hopefully this can be
7605# fixed in future. It's still worthwhile to use a cache file for each
7606# directory. I think.
7607
a8abbd9d 7608# Pass the appropriate --build, --host, --target and --cache-file arguments.
7609# We need to pass --target, as newer autoconf's requires consistency
7610# for target_alias and gcc doesn't manage it consistently.
d45318b3 7611target_configargs="--cache-file=./config.cache ${target_configargs}"
71ab34df 7612
71ab34df 7613FLAGS_FOR_TARGET=
7614case " $target_configdirs " in
7615 *" newlib "*)
7616 case " $target_configargs " in
7617 *" --with-newlib "*)
7618 case "$target" in
fe284774 7619 *-cygwin*)
db54564d 7620 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
fe284774 7621 ;;
71ab34df 7622 esac
7623
7624 # If we're not building GCC, don't discard standard headers.
7625 if test -d ${srcdir}/gcc; then
7626 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7627
7628 if test "${build}" != "${host}"; then
7629 # On Canadian crosses, CC_FOR_TARGET will have already been set
7630 # by `configure', so we won't have an opportunity to add -Bgcc/
7631 # to it. This is right: we don't want to search that directory
7632 # for binaries, but we want the header files in there, so add
7633 # them explicitly.
e619f0a6 7634 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
71ab34df 7635
7636 # Someone might think of using the pre-installed headers on
7637 # Canadian crosses, in case the installed compiler is not fully
7638 # compatible with the compiler being built. In this case, it
7639 # would be better to flag an error than risking having
7640 # incompatible object files being constructed. We can't
7641 # guarantee that an error will be flagged, but let's hope the
7642 # compiler will do it, when presented with incompatible header
7643 # files.
7644 fi
7645 fi
7646
7647 case "${target}-${is_cross_compiler}" in
f74ea578 7648 i[3456789]86-*-linux*-no)
71ab34df 7649 # Here host == target, so we don't need to build gcc,
7650 # so we don't want to discard standard headers.
7651 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7652 ;;
7653 *)
7654 # If we're building newlib, use its generic headers last, but search
7655 # for any libc-related directories first (so make it the last -B
7656 # switch).
7657 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
1c5767f1 7658
7659 # If we're building libgloss, find the startup file, simulator library
7660 # and linker script.
7661 case " $target_configdirs " in
7662 *" libgloss "*)
7663 # Look for startup file, simulator library and maybe linker script.
7664 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7665 # Look for libnosys.a in case the target needs it.
7666 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7667 # Most targets have the linker script in the source directory.
7668 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7669 ;;
7670 esac
71ab34df 7671 ;;
7672 esac
7673 ;;
7674 esac
7675 ;;
7676esac
fe284774 7677
d6d689df 7678case "$target" in
fe284774 7679 x86_64-*mingw* | *-w64-mingw*)
7680 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7681 # however, use a symlink named 'mingw' in ${prefix} .
7682 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7683 ;;
7684 *-mingw*)
7685 # MinGW can't be handled as Cygwin above since it does not use newlib.
7686 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'
7687 ;;
d6d689df 7688esac
71ab34df 7689
d8e9ea04 7690# Allow the user to override the flags for
7691# our build compiler if desired.
823e8b8d 7692if test x"${build}" = x"${host}" ; then
7693 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7694 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7695 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7696fi
d8e9ea04 7697
71ab34df 7698# On Canadian crosses, we'll be searching the right directories for
7699# the previously-installed cross compiler, so don't bother to add
7700# flags for directories within the install tree of the compiler
7701# being built; programs in there won't even run.
7702if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7703 # Search for pre-installed headers if nothing else fits.
5750c7d4 7704 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
71ab34df 7705fi
7706
7707if test "x${use_gnu_ld}" = x &&
7708 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7709 # Arrange for us to find uninstalled linker scripts.
c1eb9e31 7710 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
71ab34df 7711fi
7712
24714a39 7713# Search for other target-specific linker scripts and such.
7714case "${target}" in
38d7211b 7715 mep*)
7716 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7717 ;;
24714a39 7718esac
7719
71ab34df 7720# Makefile fragments.
03c65091 7721for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7722do
7723 eval fragval=\$$frag
7724 if test $fragval != /dev/null; then
7725 eval $frag=${srcdir}/$fragval
7726 fi
7727done
71ab34df 7728
7729
7730
7731
7732
7733# Miscellanea: directories, flags, etc.
7734
7735
7736
7737
7738
7739
7740
7d804f04 7741
2f8725b0 7742# Build module lists & subconfigure args.
71ab34df 7743
7744
7745
f5aebe3e 7746# Host module lists & subconfigure args.
7747
7748
7749
1fda3360 7750
f5aebe3e 7751# Target module lists & subconfigure args.
7752
7753
7754
7755# Build tools.
7756
7757
7758
93c5e793 7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
03385ed3 7772
f5aebe3e 7773# Generate default definitions for YACC, M4, LEX and other programs that run
7774# on the build machine. These are used if the Makefile can't locate these
7775# programs in objdir.
7776MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7777
7778for ac_prog in 'bison -y' byacc yacc
7779do
b30fcfae 7780 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7781set dummy $ac_prog; ac_word=$2
cd9a469c 7782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7783$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7784if ${ac_cv_prog_YACC+:} false; then :
cd9a469c 7785 $as_echo_n "(cached) " >&6
f5aebe3e 7786else
7787 if test -n "$YACC"; then
7788 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7789else
b30fcfae 7790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7791for as_dir in $PATH
7792do
7793 IFS=$as_save_IFS
7794 test -z "$as_dir" && as_dir=.
cd9a469c 7795 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7797 ac_cv_prog_YACC="$ac_prog"
cd9a469c 7798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7799 break 2
7800 fi
7801done
cd9a469c 7802 done
7803IFS=$as_save_IFS
b30fcfae 7804
f5aebe3e 7805fi
7806fi
b30fcfae 7807YACC=$ac_cv_prog_YACC
f5aebe3e 7808if test -n "$YACC"; then
cd9a469c 7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7810$as_echo "$YACC" >&6; }
f5aebe3e 7811else
cd9a469c 7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7813$as_echo "no" >&6; }
f5aebe3e 7814fi
7815
cd9a469c 7816
b30fcfae 7817 test -n "$YACC" && break
f5aebe3e 7818done
7819test -n "$YACC" || YACC="$MISSING bison -y"
7820
7821case " $build_configdirs " in
7822 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
f5aebe3e 7823esac
7824
7825for ac_prog in bison
7826do
b30fcfae 7827 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7828set dummy $ac_prog; ac_word=$2
cd9a469c 7829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7830$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7831if ${ac_cv_prog_BISON+:} false; then :
cd9a469c 7832 $as_echo_n "(cached) " >&6
f5aebe3e 7833else
7834 if test -n "$BISON"; then
7835 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7836else
b30fcfae 7837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838for as_dir in $PATH
7839do
7840 IFS=$as_save_IFS
7841 test -z "$as_dir" && as_dir=.
cd9a469c 7842 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7844 ac_cv_prog_BISON="$ac_prog"
cd9a469c 7845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7846 break 2
7847 fi
7848done
cd9a469c 7849 done
7850IFS=$as_save_IFS
b30fcfae 7851
f5aebe3e 7852fi
7853fi
b30fcfae 7854BISON=$ac_cv_prog_BISON
f5aebe3e 7855if test -n "$BISON"; then
cd9a469c 7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7857$as_echo "$BISON" >&6; }
f5aebe3e 7858else
cd9a469c 7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7860$as_echo "no" >&6; }
f5aebe3e 7861fi
7862
cd9a469c 7863
b30fcfae 7864 test -n "$BISON" && break
f5aebe3e 7865done
7866test -n "$BISON" || BISON="$MISSING bison"
7867
7868case " $build_configdirs " in
7869 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7870esac
7871
7872for ac_prog in gm4 gnum4 m4
7873do
b30fcfae 7874 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7875set dummy $ac_prog; ac_word=$2
cd9a469c 7876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7877$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7878if ${ac_cv_prog_M4+:} false; then :
cd9a469c 7879 $as_echo_n "(cached) " >&6
f5aebe3e 7880else
7881 if test -n "$M4"; then
7882 ac_cv_prog_M4="$M4" # Let the user override the test.
7883else
b30fcfae 7884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7885for as_dir in $PATH
7886do
7887 IFS=$as_save_IFS
7888 test -z "$as_dir" && as_dir=.
cd9a469c 7889 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7891 ac_cv_prog_M4="$ac_prog"
cd9a469c 7892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7893 break 2
7894 fi
7895done
cd9a469c 7896 done
7897IFS=$as_save_IFS
b30fcfae 7898
f5aebe3e 7899fi
7900fi
b30fcfae 7901M4=$ac_cv_prog_M4
f5aebe3e 7902if test -n "$M4"; then
cd9a469c 7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7904$as_echo "$M4" >&6; }
f5aebe3e 7905else
cd9a469c 7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907$as_echo "no" >&6; }
f5aebe3e 7908fi
7909
cd9a469c 7910
b30fcfae 7911 test -n "$M4" && break
f5aebe3e 7912done
7913test -n "$M4" || M4="$MISSING m4"
7914
7915case " $build_configdirs " in
7916 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7917esac
7918
7919for ac_prog in flex lex
7920do
b30fcfae 7921 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7922set dummy $ac_prog; ac_word=$2
cd9a469c 7923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7924$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7925if ${ac_cv_prog_LEX+:} false; then :
cd9a469c 7926 $as_echo_n "(cached) " >&6
f5aebe3e 7927else
7928 if test -n "$LEX"; then
7929 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7930else
b30fcfae 7931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7932for as_dir in $PATH
7933do
7934 IFS=$as_save_IFS
7935 test -z "$as_dir" && as_dir=.
cd9a469c 7936 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7938 ac_cv_prog_LEX="$ac_prog"
cd9a469c 7939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7940 break 2
7941 fi
7942done
cd9a469c 7943 done
7944IFS=$as_save_IFS
b30fcfae 7945
f5aebe3e 7946fi
7947fi
b30fcfae 7948LEX=$ac_cv_prog_LEX
f5aebe3e 7949if test -n "$LEX"; then
cd9a469c 7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7951$as_echo "$LEX" >&6; }
f5aebe3e 7952else
cd9a469c 7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7954$as_echo "no" >&6; }
f5aebe3e 7955fi
7956
cd9a469c 7957
b30fcfae 7958 test -n "$LEX" && break
f5aebe3e 7959done
7960test -n "$LEX" || LEX="$MISSING flex"
7961
7962case " $build_configdirs " in
7963 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7964 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7965esac
7966
7967for ac_prog in flex
7968do
b30fcfae 7969 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7970set dummy $ac_prog; ac_word=$2
cd9a469c 7971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7972$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7973if ${ac_cv_prog_FLEX+:} false; then :
cd9a469c 7974 $as_echo_n "(cached) " >&6
f5aebe3e 7975else
7976 if test -n "$FLEX"; then
7977 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7978else
b30fcfae 7979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7980for as_dir in $PATH
7981do
7982 IFS=$as_save_IFS
7983 test -z "$as_dir" && as_dir=.
cd9a469c 7984 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7986 ac_cv_prog_FLEX="$ac_prog"
cd9a469c 7987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7988 break 2
7989 fi
7990done
cd9a469c 7991 done
7992IFS=$as_save_IFS
b30fcfae 7993
f5aebe3e 7994fi
7995fi
b30fcfae 7996FLEX=$ac_cv_prog_FLEX
f5aebe3e 7997if test -n "$FLEX"; then
cd9a469c 7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7999$as_echo "$FLEX" >&6; }
f5aebe3e 8000else
cd9a469c 8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8002$as_echo "no" >&6; }
f5aebe3e 8003fi
8004
cd9a469c 8005
b30fcfae 8006 test -n "$FLEX" && break
f5aebe3e 8007done
8008test -n "$FLEX" || FLEX="$MISSING flex"
8009
8010case " $build_configdirs " in
8011 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8012esac
8013
8014for ac_prog in makeinfo
8015do
b30fcfae 8016 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 8017set dummy $ac_prog; ac_word=$2
cd9a469c 8018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8019$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8020if ${ac_cv_prog_MAKEINFO+:} false; then :
cd9a469c 8021 $as_echo_n "(cached) " >&6
f5aebe3e 8022else
8023 if test -n "$MAKEINFO"; then
8024 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8025else
b30fcfae 8026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027for as_dir in $PATH
8028do
8029 IFS=$as_save_IFS
8030 test -z "$as_dir" && as_dir=.
cd9a469c 8031 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8033 ac_cv_prog_MAKEINFO="$ac_prog"
cd9a469c 8034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8035 break 2
8036 fi
8037done
cd9a469c 8038 done
8039IFS=$as_save_IFS
b30fcfae 8040
f5aebe3e 8041fi
8042fi
b30fcfae 8043MAKEINFO=$ac_cv_prog_MAKEINFO
f5aebe3e 8044if test -n "$MAKEINFO"; then
cd9a469c 8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8046$as_echo "$MAKEINFO" >&6; }
f5aebe3e 8047else
cd9a469c 8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049$as_echo "no" >&6; }
f5aebe3e 8050fi
8051
cd9a469c 8052
b30fcfae 8053 test -n "$MAKEINFO" && break
f5aebe3e 8054done
8055test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8056
8057case " $build_configdirs " in
8058 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8059 *)
8060
03caadda 8061 # For an installed makeinfo, we require it to be from texinfo 4.7 or
f5aebe3e 8062 # higher, else we use the "missing" dummy.
8063 if ${MAKEINFO} --version \
03caadda 8064 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
f5aebe3e 8065 :
8066 else
8067 MAKEINFO="$MISSING makeinfo"
8068 fi
8069 ;;
8070
8071esac
71ab34df 8072
f5aebe3e 8073# FIXME: expect and dejagnu may become build tools?
71ab34df 8074
f5aebe3e 8075for ac_prog in expect
8076do
b30fcfae 8077 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 8078set dummy $ac_prog; ac_word=$2
cd9a469c 8079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8080$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8081if ${ac_cv_prog_EXPECT+:} false; then :
cd9a469c 8082 $as_echo_n "(cached) " >&6
f5aebe3e 8083else
8084 if test -n "$EXPECT"; then
8085 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8086else
b30fcfae 8087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8088for as_dir in $PATH
8089do
8090 IFS=$as_save_IFS
8091 test -z "$as_dir" && as_dir=.
cd9a469c 8092 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8094 ac_cv_prog_EXPECT="$ac_prog"
cd9a469c 8095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8096 break 2
8097 fi
8098done
cd9a469c 8099 done
8100IFS=$as_save_IFS
b30fcfae 8101
f5aebe3e 8102fi
8103fi
b30fcfae 8104EXPECT=$ac_cv_prog_EXPECT
f5aebe3e 8105if test -n "$EXPECT"; then
cd9a469c 8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8107$as_echo "$EXPECT" >&6; }
f5aebe3e 8108else
cd9a469c 8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8110$as_echo "no" >&6; }
f5aebe3e 8111fi
71ab34df 8112
cd9a469c 8113
b30fcfae 8114 test -n "$EXPECT" && break
f5aebe3e 8115done
8116test -n "$EXPECT" || EXPECT="expect"
71ab34df 8117
f5aebe3e 8118case " $configdirs " in
8119 *" expect "*)
8120 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8121 ;;
8122esac
71ab34df 8123
f5aebe3e 8124for ac_prog in runtest
8125do
b30fcfae 8126 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 8127set dummy $ac_prog; ac_word=$2
cd9a469c 8128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8129$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8130if ${ac_cv_prog_RUNTEST+:} false; then :
cd9a469c 8131 $as_echo_n "(cached) " >&6
f5aebe3e 8132else
8133 if test -n "$RUNTEST"; then
8134 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
a4af6a58 8135else
b30fcfae 8136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8137for as_dir in $PATH
8138do
8139 IFS=$as_save_IFS
8140 test -z "$as_dir" && as_dir=.
cd9a469c 8141 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8143 ac_cv_prog_RUNTEST="$ac_prog"
cd9a469c 8144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8145 break 2
8146 fi
8147done
cd9a469c 8148 done
8149IFS=$as_save_IFS
b30fcfae 8150
f5aebe3e 8151fi
8152fi
b30fcfae 8153RUNTEST=$ac_cv_prog_RUNTEST
f5aebe3e 8154if test -n "$RUNTEST"; then
cd9a469c 8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8156$as_echo "$RUNTEST" >&6; }
f5aebe3e 8157else
cd9a469c 8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159$as_echo "no" >&6; }
f5aebe3e 8160fi
71ab34df 8161
cd9a469c 8162
b30fcfae 8163 test -n "$RUNTEST" && break
f5aebe3e 8164done
8165test -n "$RUNTEST" || RUNTEST="runtest"
71ab34df 8166
f5aebe3e 8167case " $configdirs " in
8168 *" dejagnu "*)
8d365775 8169 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
f5aebe3e 8170 ;;
8171esac
71ab34df 8172
8173
71ab34df 8174# Host tools.
bb612911 8175ncn_tool_prefix=
8176test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8177ncn_target_tool_prefix=
8178test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8179
95a05732 8180
8181
8182if test -n "$AR"; then
8183 ac_cv_prog_AR=$AR
8184elif test -n "$ac_cv_prog_AR"; then
8185 AR=$ac_cv_prog_AR
8186fi
8187
8188if test -n "$ac_cv_prog_AR"; then
8189 for ncn_progname in ar; do
8190 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8191set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8193$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8194if ${ac_cv_prog_AR+:} false; then :
cd9a469c 8195 $as_echo_n "(cached) " >&6
95a05732 8196else
8197 if test -n "$AR"; then
8198 ac_cv_prog_AR="$AR" # Let the user override the test.
8199else
8200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8201for as_dir in $PATH
8202do
8203 IFS=$as_save_IFS
8204 test -z "$as_dir" && as_dir=.
cd9a469c 8205 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8207 ac_cv_prog_AR="${ncn_progname}"
cd9a469c 8208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8209 break 2
8210 fi
8211done
cd9a469c 8212 done
8213IFS=$as_save_IFS
95a05732 8214
8215fi
8216fi
8217AR=$ac_cv_prog_AR
8218if test -n "$AR"; then
cd9a469c 8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8220$as_echo "$AR" >&6; }
95a05732 8221else
cd9a469c 8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8223$as_echo "no" >&6; }
95a05732 8224fi
8225
cd9a469c 8226
95a05732 8227 done
8228fi
8229
8230for ncn_progname in ar; do
768691b5 8231 if test -n "$ncn_tool_prefix"; then
8232 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8233set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8235$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8236if ${ac_cv_prog_AR+:} false; then :
cd9a469c 8237 $as_echo_n "(cached) " >&6
bb612911 8238else
8239 if test -n "$AR"; then
8240 ac_cv_prog_AR="$AR" # Let the user override the test.
8241else
b30fcfae 8242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8243for as_dir in $PATH
8244do
8245 IFS=$as_save_IFS
8246 test -z "$as_dir" && as_dir=.
cd9a469c 8247 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8249 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8251 break 2
8252 fi
8253done
cd9a469c 8254 done
8255IFS=$as_save_IFS
b30fcfae 8256
bb612911 8257fi
8258fi
b30fcfae 8259AR=$ac_cv_prog_AR
bb612911 8260if test -n "$AR"; then
cd9a469c 8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8262$as_echo "$AR" >&6; }
bb612911 8263else
cd9a469c 8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8265$as_echo "no" >&6; }
bb612911 8266fi
8267
cd9a469c 8268
768691b5 8269 fi
8270 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8272set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8274$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8275if ${ac_cv_prog_AR+:} false; then :
cd9a469c 8276 $as_echo_n "(cached) " >&6
bb612911 8277else
768691b5 8278 if test -n "$AR"; then
ae48753c 8279 ac_cv_prog_AR="$AR" # Let the user override the test.
8280else
b30fcfae 8281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282for as_dir in $PATH
8283do
8284 IFS=$as_save_IFS
8285 test -z "$as_dir" && as_dir=.
cd9a469c 8286 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8288 ac_cv_prog_AR="${ncn_progname}"
cd9a469c 8289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8290 break 2
8291 fi
8292done
cd9a469c 8293 done
8294IFS=$as_save_IFS
b30fcfae 8295
bb612911 8296fi
8297fi
b30fcfae 8298AR=$ac_cv_prog_AR
768691b5 8299if test -n "$AR"; then
cd9a469c 8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8301$as_echo "$AR" >&6; }
bb612911 8302else
cd9a469c 8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8304$as_echo "no" >&6; }
bb612911 8305fi
b30fcfae 8306
cd9a469c 8307
768691b5 8308 fi
8309 test -n "$ac_cv_prog_AR" && break
8310done
8311
8312if test -z "$ac_cv_prog_AR" ; then
8313 set dummy ar
8314 if test $build = $host ; then
8315 AR="$2"
bb612911 8316 else
768691b5 8317 AR="${ncn_tool_prefix}$2"
bb612911 8318 fi
bb612911 8319fi
8320
95a05732 8321
8322
8323if test -n "$AS"; then
8324 ac_cv_prog_AS=$AS
8325elif test -n "$ac_cv_prog_AS"; then
8326 AS=$ac_cv_prog_AS
8327fi
8328
8329if test -n "$ac_cv_prog_AS"; then
8330 for ncn_progname in as; do
8331 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8332set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8334$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8335if ${ac_cv_prog_AS+:} false; then :
cd9a469c 8336 $as_echo_n "(cached) " >&6
95a05732 8337else
8338 if test -n "$AS"; then
8339 ac_cv_prog_AS="$AS" # Let the user override the test.
8340else
8341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8342for as_dir in $PATH
8343do
8344 IFS=$as_save_IFS
8345 test -z "$as_dir" && as_dir=.
cd9a469c 8346 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8348 ac_cv_prog_AS="${ncn_progname}"
cd9a469c 8349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8350 break 2
8351 fi
8352done
cd9a469c 8353 done
8354IFS=$as_save_IFS
95a05732 8355
8356fi
8357fi
8358AS=$ac_cv_prog_AS
8359if test -n "$AS"; then
cd9a469c 8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8361$as_echo "$AS" >&6; }
95a05732 8362else
cd9a469c 8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364$as_echo "no" >&6; }
95a05732 8365fi
8366
cd9a469c 8367
95a05732 8368 done
8369fi
8370
8371for ncn_progname in as; do
768691b5 8372 if test -n "$ncn_tool_prefix"; then
8373 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8374set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8376$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8377if ${ac_cv_prog_AS+:} false; then :
cd9a469c 8378 $as_echo_n "(cached) " >&6
bb612911 8379else
8380 if test -n "$AS"; then
8381 ac_cv_prog_AS="$AS" # Let the user override the test.
a83ffacf 8382else
b30fcfae 8383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8384for as_dir in $PATH
8385do
8386 IFS=$as_save_IFS
8387 test -z "$as_dir" && as_dir=.
cd9a469c 8388 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8390 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8392 break 2
8393 fi
8394done
cd9a469c 8395 done
8396IFS=$as_save_IFS
b30fcfae 8397
bb612911 8398fi
8399fi
b30fcfae 8400AS=$ac_cv_prog_AS
bb612911 8401if test -n "$AS"; then
cd9a469c 8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8403$as_echo "$AS" >&6; }
bb612911 8404else
cd9a469c 8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8406$as_echo "no" >&6; }
bb612911 8407fi
8408
cd9a469c 8409
768691b5 8410 fi
8411 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8412 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8413set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8415$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8416if ${ac_cv_prog_AS+:} false; then :
cd9a469c 8417 $as_echo_n "(cached) " >&6
bb612911 8418else
768691b5 8419 if test -n "$AS"; then
8420 ac_cv_prog_AS="$AS" # Let the user override the test.
bb612911 8421else
b30fcfae 8422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8423for as_dir in $PATH
8424do
8425 IFS=$as_save_IFS
8426 test -z "$as_dir" && as_dir=.
cd9a469c 8427 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8429 ac_cv_prog_AS="${ncn_progname}"
cd9a469c 8430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8431 break 2
8432 fi
8433done
cd9a469c 8434 done
8435IFS=$as_save_IFS
b30fcfae 8436
bb612911 8437fi
8438fi
b30fcfae 8439AS=$ac_cv_prog_AS
768691b5 8440if test -n "$AS"; then
cd9a469c 8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8442$as_echo "$AS" >&6; }
bb612911 8443else
cd9a469c 8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445$as_echo "no" >&6; }
bb612911 8446fi
b30fcfae 8447
cd9a469c 8448
768691b5 8449 fi
8450 test -n "$ac_cv_prog_AS" && break
8451done
8452
8453if test -z "$ac_cv_prog_AS" ; then
8454 set dummy as
8455 if test $build = $host ; then
8456 AS="$2"
bb612911 8457 else
768691b5 8458 AS="${ncn_tool_prefix}$2"
bb612911 8459 fi
bb612911 8460fi
8461
95a05732 8462
8463
8464if test -n "$DLLTOOL"; then
8465 ac_cv_prog_DLLTOOL=$DLLTOOL
8466elif test -n "$ac_cv_prog_DLLTOOL"; then
8467 DLLTOOL=$ac_cv_prog_DLLTOOL
8468fi
8469
8470if test -n "$ac_cv_prog_DLLTOOL"; then
8471 for ncn_progname in dlltool; do
8472 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8473set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8475$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8476if ${ac_cv_prog_DLLTOOL+:} false; then :
cd9a469c 8477 $as_echo_n "(cached) " >&6
95a05732 8478else
8479 if test -n "$DLLTOOL"; then
8480 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8481else
8482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8483for as_dir in $PATH
8484do
8485 IFS=$as_save_IFS
8486 test -z "$as_dir" && as_dir=.
cd9a469c 8487 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8489 ac_cv_prog_DLLTOOL="${ncn_progname}"
cd9a469c 8490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8491 break 2
8492 fi
8493done
cd9a469c 8494 done
8495IFS=$as_save_IFS
95a05732 8496
8497fi
8498fi
8499DLLTOOL=$ac_cv_prog_DLLTOOL
8500if test -n "$DLLTOOL"; then
cd9a469c 8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8502$as_echo "$DLLTOOL" >&6; }
95a05732 8503else
cd9a469c 8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8505$as_echo "no" >&6; }
95a05732 8506fi
8507
cd9a469c 8508
95a05732 8509 done
8510fi
8511
8512for ncn_progname in dlltool; do
768691b5 8513 if test -n "$ncn_tool_prefix"; then
8514 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8515set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8517$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8518if ${ac_cv_prog_DLLTOOL+:} false; then :
cd9a469c 8519 $as_echo_n "(cached) " >&6
bb612911 8520else
8521 if test -n "$DLLTOOL"; then
8522 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8523else
b30fcfae 8524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8525for as_dir in $PATH
8526do
8527 IFS=$as_save_IFS
8528 test -z "$as_dir" && as_dir=.
cd9a469c 8529 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8531 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8533 break 2
8534 fi
8535done
cd9a469c 8536 done
8537IFS=$as_save_IFS
b30fcfae 8538
bb612911 8539fi
8540fi
b30fcfae 8541DLLTOOL=$ac_cv_prog_DLLTOOL
bb612911 8542if test -n "$DLLTOOL"; then
cd9a469c 8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8544$as_echo "$DLLTOOL" >&6; }
bb612911 8545else
cd9a469c 8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8547$as_echo "no" >&6; }
bb612911 8548fi
8549
cd9a469c 8550
768691b5 8551 fi
8552 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8553 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8554set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8556$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8557if ${ac_cv_prog_DLLTOOL+:} false; then :
cd9a469c 8558 $as_echo_n "(cached) " >&6
bb612911 8559else
768691b5 8560 if test -n "$DLLTOOL"; then
8561 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
bb612911 8562else
b30fcfae 8563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8564for as_dir in $PATH
8565do
8566 IFS=$as_save_IFS
8567 test -z "$as_dir" && as_dir=.
cd9a469c 8568 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8570 ac_cv_prog_DLLTOOL="${ncn_progname}"
cd9a469c 8571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8572 break 2
8573 fi
8574done
cd9a469c 8575 done
8576IFS=$as_save_IFS
b30fcfae 8577
bb612911 8578fi
8579fi
b30fcfae 8580DLLTOOL=$ac_cv_prog_DLLTOOL
768691b5 8581if test -n "$DLLTOOL"; then
cd9a469c 8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8583$as_echo "$DLLTOOL" >&6; }
bb612911 8584else
cd9a469c 8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8586$as_echo "no" >&6; }
bb612911 8587fi
b30fcfae 8588
cd9a469c 8589
768691b5 8590 fi
8591 test -n "$ac_cv_prog_DLLTOOL" && break
8592done
8593
8594if test -z "$ac_cv_prog_DLLTOOL" ; then
8595 set dummy dlltool
8596 if test $build = $host ; then
8597 DLLTOOL="$2"
bb612911 8598 else
768691b5 8599 DLLTOOL="${ncn_tool_prefix}$2"
bb612911 8600 fi
bb612911 8601fi
8602
95a05732 8603
8604
8605if test -n "$LD"; then
8606 ac_cv_prog_LD=$LD
8607elif test -n "$ac_cv_prog_LD"; then
8608 LD=$ac_cv_prog_LD
8609fi
8610
8611if test -n "$ac_cv_prog_LD"; then
8612 for ncn_progname in ld; do
8613 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8614set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8616$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8617if ${ac_cv_prog_LD+:} false; then :
cd9a469c 8618 $as_echo_n "(cached) " >&6
95a05732 8619else
8620 if test -n "$LD"; then
8621 ac_cv_prog_LD="$LD" # Let the user override the test.
8622else
8623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8624for as_dir in $PATH
8625do
8626 IFS=$as_save_IFS
8627 test -z "$as_dir" && as_dir=.
cd9a469c 8628 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8630 ac_cv_prog_LD="${ncn_progname}"
cd9a469c 8631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8632 break 2
8633 fi
8634done
cd9a469c 8635 done
8636IFS=$as_save_IFS
95a05732 8637
8638fi
8639fi
8640LD=$ac_cv_prog_LD
8641if test -n "$LD"; then
cd9a469c 8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8643$as_echo "$LD" >&6; }
95a05732 8644else
cd9a469c 8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8646$as_echo "no" >&6; }
95a05732 8647fi
8648
cd9a469c 8649
95a05732 8650 done
8651fi
8652
8653for ncn_progname in ld; do
768691b5 8654 if test -n "$ncn_tool_prefix"; then
8655 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8656set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8658$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8659if ${ac_cv_prog_LD+:} false; then :
cd9a469c 8660 $as_echo_n "(cached) " >&6
bb612911 8661else
8662 if test -n "$LD"; then
8663 ac_cv_prog_LD="$LD" # Let the user override the test.
8664else
b30fcfae 8665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8666for as_dir in $PATH
8667do
8668 IFS=$as_save_IFS
8669 test -z "$as_dir" && as_dir=.
cd9a469c 8670 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8672 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8674 break 2
8675 fi
8676done
cd9a469c 8677 done
8678IFS=$as_save_IFS
b30fcfae 8679
bb612911 8680fi
8681fi
b30fcfae 8682LD=$ac_cv_prog_LD
bb612911 8683if test -n "$LD"; then
cd9a469c 8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8685$as_echo "$LD" >&6; }
bb612911 8686else
cd9a469c 8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8688$as_echo "no" >&6; }
bb612911 8689fi
8690
cd9a469c 8691
768691b5 8692 fi
8693 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8694 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8695set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8697$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8698if ${ac_cv_prog_LD+:} false; then :
cd9a469c 8699 $as_echo_n "(cached) " >&6
bb612911 8700else
768691b5 8701 if test -n "$LD"; then
8702 ac_cv_prog_LD="$LD" # Let the user override the test.
7172be51 8703else
b30fcfae 8704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8705for as_dir in $PATH
8706do
8707 IFS=$as_save_IFS
8708 test -z "$as_dir" && as_dir=.
cd9a469c 8709 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8711 ac_cv_prog_LD="${ncn_progname}"
cd9a469c 8712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8713 break 2
8714 fi
8715done
cd9a469c 8716 done
8717IFS=$as_save_IFS
b30fcfae 8718
bb612911 8719fi
8720fi
b30fcfae 8721LD=$ac_cv_prog_LD
768691b5 8722if test -n "$LD"; then
cd9a469c 8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8724$as_echo "$LD" >&6; }
bb612911 8725else
cd9a469c 8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8727$as_echo "no" >&6; }
bb612911 8728fi
b30fcfae 8729
cd9a469c 8730
768691b5 8731 fi
8732 test -n "$ac_cv_prog_LD" && break
8733done
8734
8735if test -z "$ac_cv_prog_LD" ; then
8736 set dummy ld
8737 if test $build = $host ; then
8738 LD="$2"
bb612911 8739 else
768691b5 8740 LD="${ncn_tool_prefix}$2"
bb612911 8741 fi
bb612911 8742fi
8743
95a05732 8744
8745
8746if test -n "$LIPO"; then
8747 ac_cv_prog_LIPO=$LIPO
8748elif test -n "$ac_cv_prog_LIPO"; then
8749 LIPO=$ac_cv_prog_LIPO
8750fi
8751
8752if test -n "$ac_cv_prog_LIPO"; then
8753 for ncn_progname in lipo; do
8754 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8755set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8757$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8758if ${ac_cv_prog_LIPO+:} false; then :
cd9a469c 8759 $as_echo_n "(cached) " >&6
95a05732 8760else
8761 if test -n "$LIPO"; then
8762 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8763else
8764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8765for as_dir in $PATH
8766do
8767 IFS=$as_save_IFS
8768 test -z "$as_dir" && as_dir=.
cd9a469c 8769 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8771 ac_cv_prog_LIPO="${ncn_progname}"
cd9a469c 8772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8773 break 2
8774 fi
8775done
cd9a469c 8776 done
8777IFS=$as_save_IFS
95a05732 8778
8779fi
8780fi
8781LIPO=$ac_cv_prog_LIPO
8782if test -n "$LIPO"; then
cd9a469c 8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8784$as_echo "$LIPO" >&6; }
95a05732 8785else
cd9a469c 8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8787$as_echo "no" >&6; }
95a05732 8788fi
8789
cd9a469c 8790
95a05732 8791 done
8792fi
8793
8794for ncn_progname in lipo; do
f5aebe3e 8795 if test -n "$ncn_tool_prefix"; then
8796 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8797set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8799$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8800if ${ac_cv_prog_LIPO+:} false; then :
cd9a469c 8801 $as_echo_n "(cached) " >&6
f5aebe3e 8802else
8803 if test -n "$LIPO"; then
8804 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8805else
b30fcfae 8806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8807for as_dir in $PATH
8808do
8809 IFS=$as_save_IFS
8810 test -z "$as_dir" && as_dir=.
cd9a469c 8811 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8813 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8815 break 2
8816 fi
8817done
cd9a469c 8818 done
8819IFS=$as_save_IFS
b30fcfae 8820
f5aebe3e 8821fi
8822fi
b30fcfae 8823LIPO=$ac_cv_prog_LIPO
f5aebe3e 8824if test -n "$LIPO"; then
cd9a469c 8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8826$as_echo "$LIPO" >&6; }
f5aebe3e 8827else
cd9a469c 8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8829$as_echo "no" >&6; }
f5aebe3e 8830fi
8831
cd9a469c 8832
f5aebe3e 8833 fi
8834 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8835 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8836set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8838$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8839if ${ac_cv_prog_LIPO+:} false; then :
cd9a469c 8840 $as_echo_n "(cached) " >&6
f5aebe3e 8841else
8842 if test -n "$LIPO"; then
8843 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8844else
b30fcfae 8845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8846for as_dir in $PATH
8847do
8848 IFS=$as_save_IFS
8849 test -z "$as_dir" && as_dir=.
cd9a469c 8850 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8852 ac_cv_prog_LIPO="${ncn_progname}"
cd9a469c 8853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8854 break 2
8855 fi
8856done
cd9a469c 8857 done
8858IFS=$as_save_IFS
b30fcfae 8859
f5aebe3e 8860fi
8861fi
b30fcfae 8862LIPO=$ac_cv_prog_LIPO
f5aebe3e 8863if test -n "$LIPO"; then
cd9a469c 8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8865$as_echo "$LIPO" >&6; }
f5aebe3e 8866else
cd9a469c 8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8868$as_echo "no" >&6; }
f5aebe3e 8869fi
b30fcfae 8870
cd9a469c 8871
f5aebe3e 8872 fi
8873 test -n "$ac_cv_prog_LIPO" && break
8874done
8875
8876if test -z "$ac_cv_prog_LIPO" ; then
8877 set dummy lipo
8878 if test $build = $host ; then
8879 LIPO="$2"
8880 else
8881 LIPO="${ncn_tool_prefix}$2"
8882 fi
8883fi
8884
95a05732 8885
8886
8887if test -n "$NM"; then
8888 ac_cv_prog_NM=$NM
8889elif test -n "$ac_cv_prog_NM"; then
8890 NM=$ac_cv_prog_NM
8891fi
8892
8893if test -n "$ac_cv_prog_NM"; then
8894 for ncn_progname in nm; do
8895 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8896set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8898$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8899if ${ac_cv_prog_NM+:} false; then :
cd9a469c 8900 $as_echo_n "(cached) " >&6
bb612911 8901else
8902 if test -n "$NM"; then
8903 ac_cv_prog_NM="$NM" # Let the user override the test.
8904else
b30fcfae 8905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8906for as_dir in $PATH
8907do
8908 IFS=$as_save_IFS
8909 test -z "$as_dir" && as_dir=.
cd9a469c 8910 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8912 ac_cv_prog_NM="${ncn_progname}"
cd9a469c 8913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8914 break 2
8915 fi
8916done
cd9a469c 8917 done
8918IFS=$as_save_IFS
b30fcfae 8919
bb612911 8920fi
8921fi
b30fcfae 8922NM=$ac_cv_prog_NM
bb612911 8923if test -n "$NM"; then
cd9a469c 8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8925$as_echo "$NM" >&6; }
bb612911 8926else
cd9a469c 8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8928$as_echo "no" >&6; }
bb612911 8929fi
8930
cd9a469c 8931
95a05732 8932 done
8933fi
8934
8935for ncn_progname in nm; do
8936 if test -n "$ncn_tool_prefix"; then
8937 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8938set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8940$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8941if ${ac_cv_prog_NM+:} false; then :
cd9a469c 8942 $as_echo_n "(cached) " >&6
bb612911 8943else
768691b5 8944 if test -n "$NM"; then
8945 ac_cv_prog_NM="$NM" # Let the user override the test.
bb612911 8946else
b30fcfae 8947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8948for as_dir in $PATH
8949do
8950 IFS=$as_save_IFS
8951 test -z "$as_dir" && as_dir=.
cd9a469c 8952 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8954 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8956 break 2
8957 fi
8958done
cd9a469c 8959 done
8960IFS=$as_save_IFS
b30fcfae 8961
bb612911 8962fi
8963fi
b30fcfae 8964NM=$ac_cv_prog_NM
768691b5 8965if test -n "$NM"; then
cd9a469c 8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8967$as_echo "$NM" >&6; }
bb612911 8968else
cd9a469c 8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8970$as_echo "no" >&6; }
bb612911 8971fi
b30fcfae 8972
cd9a469c 8973
768691b5 8974 fi
95a05732 8975 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8976 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8977set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8979$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8980if ${ac_cv_prog_NM+:} false; then :
cd9a469c 8981 $as_echo_n "(cached) " >&6
95a05732 8982else
8983 if test -n "$NM"; then
8984 ac_cv_prog_NM="$NM" # Let the user override the test.
8985else
8986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8987for as_dir in $PATH
8988do
8989 IFS=$as_save_IFS
8990 test -z "$as_dir" && as_dir=.
cd9a469c 8991 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8993 ac_cv_prog_NM="${ncn_progname}"
cd9a469c 8994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8995 break 2
8996 fi
8997done
cd9a469c 8998 done
8999IFS=$as_save_IFS
95a05732 9000
9001fi
9002fi
9003NM=$ac_cv_prog_NM
9004if test -n "$NM"; then
cd9a469c 9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9006$as_echo "$NM" >&6; }
95a05732 9007else
cd9a469c 9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9009$as_echo "no" >&6; }
95a05732 9010fi
9011
cd9a469c 9012
95a05732 9013 fi
9014 test -n "$ac_cv_prog_NM" && break
9015done
9016
9017if test -z "$ac_cv_prog_NM" ; then
9018 set dummy nm
9019 if test $build = $host ; then
9020 NM="$2"
9021 else
9022 NM="${ncn_tool_prefix}$2"
9023 fi
9024fi
9025
9026
9027
9028if test -n "$RANLIB"; then
9029 ac_cv_prog_RANLIB=$RANLIB
9030elif test -n "$ac_cv_prog_RANLIB"; then
9031 RANLIB=$ac_cv_prog_RANLIB
9032fi
9033
9034if test -n "$ac_cv_prog_RANLIB"; then
9035 for ncn_progname in ranlib; do
9036 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9037set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9039$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9040if ${ac_cv_prog_RANLIB+:} false; then :
cd9a469c 9041 $as_echo_n "(cached) " >&6
95a05732 9042else
9043 if test -n "$RANLIB"; then
9044 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9045else
9046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9047for as_dir in $PATH
9048do
9049 IFS=$as_save_IFS
9050 test -z "$as_dir" && as_dir=.
cd9a469c 9051 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 9053 ac_cv_prog_RANLIB="${ncn_progname}"
cd9a469c 9054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 9055 break 2
9056 fi
9057done
cd9a469c 9058 done
9059IFS=$as_save_IFS
95a05732 9060
9061fi
9062fi
9063RANLIB=$ac_cv_prog_RANLIB
9064if test -n "$RANLIB"; then
cd9a469c 9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9066$as_echo "$RANLIB" >&6; }
95a05732 9067else
cd9a469c 9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9069$as_echo "no" >&6; }
95a05732 9070fi
9071
cd9a469c 9072
95a05732 9073 done
9074fi
bb612911 9075
95a05732 9076for ncn_progname in ranlib; do
768691b5 9077 if test -n "$ncn_tool_prefix"; then
9078 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9079set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9081$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9082if ${ac_cv_prog_RANLIB+:} false; then :
cd9a469c 9083 $as_echo_n "(cached) " >&6
bb612911 9084else
9085 if test -n "$RANLIB"; then
9086 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9087else
b30fcfae 9088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9089for as_dir in $PATH
9090do
9091 IFS=$as_save_IFS
9092 test -z "$as_dir" && as_dir=.
cd9a469c 9093 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9095 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 9096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9097 break 2
9098 fi
9099done
cd9a469c 9100 done
9101IFS=$as_save_IFS
b30fcfae 9102
bb612911 9103fi
9104fi
b30fcfae 9105RANLIB=$ac_cv_prog_RANLIB
bb612911 9106if test -n "$RANLIB"; then
cd9a469c 9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9108$as_echo "$RANLIB" >&6; }
bb612911 9109else
cd9a469c 9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9111$as_echo "no" >&6; }
bb612911 9112fi
9113
cd9a469c 9114
768691b5 9115 fi
9116 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9117 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9118set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9120$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9121if ${ac_cv_prog_RANLIB+:} false; then :
cd9a469c 9122 $as_echo_n "(cached) " >&6
bb612911 9123else
768691b5 9124 if test -n "$RANLIB"; then
9125 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
bb612911 9126else
b30fcfae 9127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9128for as_dir in $PATH
9129do
9130 IFS=$as_save_IFS
9131 test -z "$as_dir" && as_dir=.
cd9a469c 9132 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9134 ac_cv_prog_RANLIB="${ncn_progname}"
cd9a469c 9135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9136 break 2
9137 fi
9138done
cd9a469c 9139 done
9140IFS=$as_save_IFS
b30fcfae 9141
bb612911 9142fi
9143fi
b30fcfae 9144RANLIB=$ac_cv_prog_RANLIB
768691b5 9145if test -n "$RANLIB"; then
cd9a469c 9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9147$as_echo "$RANLIB" >&6; }
bb612911 9148else
cd9a469c 9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9150$as_echo "no" >&6; }
bb612911 9151fi
b30fcfae 9152
cd9a469c 9153
bb612911 9154 fi
768691b5 9155 test -n "$ac_cv_prog_RANLIB" && break
9156done
9157
9158if test -z "$ac_cv_prog_RANLIB" ; then
68645a6b 9159 RANLIB="true"
bb612911 9160fi
9161
95a05732 9162
9163
9164if test -n "$STRIP"; then
9165 ac_cv_prog_STRIP=$STRIP
9166elif test -n "$ac_cv_prog_STRIP"; then
9167 STRIP=$ac_cv_prog_STRIP
9168fi
9169
9170if test -n "$ac_cv_prog_STRIP"; then
9171 for ncn_progname in strip; do
9172 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9173set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9175$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9176if ${ac_cv_prog_STRIP+:} false; then :
cd9a469c 9177 $as_echo_n "(cached) " >&6
95a05732 9178else
9179 if test -n "$STRIP"; then
9180 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9181else
9182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9183for as_dir in $PATH
9184do
9185 IFS=$as_save_IFS
9186 test -z "$as_dir" && as_dir=.
cd9a469c 9187 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 9189 ac_cv_prog_STRIP="${ncn_progname}"
cd9a469c 9190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 9191 break 2
9192 fi
9193done
cd9a469c 9194 done
9195IFS=$as_save_IFS
95a05732 9196
9197fi
9198fi
9199STRIP=$ac_cv_prog_STRIP
9200if test -n "$STRIP"; then
cd9a469c 9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9202$as_echo "$STRIP" >&6; }
95a05732 9203else
cd9a469c 9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9205$as_echo "no" >&6; }
95a05732 9206fi
9207
cd9a469c 9208
95a05732 9209 done
9210fi
9211
9212for ncn_progname in strip; do
f5aebe3e 9213 if test -n "$ncn_tool_prefix"; then
9214 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9215set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9217$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9218if ${ac_cv_prog_STRIP+:} false; then :
cd9a469c 9219 $as_echo_n "(cached) " >&6
f5aebe3e 9220else
9221 if test -n "$STRIP"; then
9222 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9223else
b30fcfae 9224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9225for as_dir in $PATH
9226do
9227 IFS=$as_save_IFS
9228 test -z "$as_dir" && as_dir=.
cd9a469c 9229 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9231 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 9232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9233 break 2
9234 fi
9235done
cd9a469c 9236 done
9237IFS=$as_save_IFS
b30fcfae 9238
f5aebe3e 9239fi
9240fi
b30fcfae 9241STRIP=$ac_cv_prog_STRIP
f5aebe3e 9242if test -n "$STRIP"; then
cd9a469c 9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9244$as_echo "$STRIP" >&6; }
f5aebe3e 9245else
cd9a469c 9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9247$as_echo "no" >&6; }
f5aebe3e 9248fi
9249
cd9a469c 9250
f5aebe3e 9251 fi
9252 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9253 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9254set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9256$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9257if ${ac_cv_prog_STRIP+:} false; then :
cd9a469c 9258 $as_echo_n "(cached) " >&6
f5aebe3e 9259else
9260 if test -n "$STRIP"; then
9261 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9262else
b30fcfae 9263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9264for as_dir in $PATH
9265do
9266 IFS=$as_save_IFS
9267 test -z "$as_dir" && as_dir=.
cd9a469c 9268 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9270 ac_cv_prog_STRIP="${ncn_progname}"
cd9a469c 9271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9272 break 2
9273 fi
9274done
cd9a469c 9275 done
9276IFS=$as_save_IFS
b30fcfae 9277
f5aebe3e 9278fi
9279fi
b30fcfae 9280STRIP=$ac_cv_prog_STRIP
f5aebe3e 9281if test -n "$STRIP"; then
cd9a469c 9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9283$as_echo "$STRIP" >&6; }
f5aebe3e 9284else
cd9a469c 9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9286$as_echo "no" >&6; }
f5aebe3e 9287fi
b30fcfae 9288
cd9a469c 9289
f5aebe3e 9290 fi
9291 test -n "$ac_cv_prog_STRIP" && break
9292done
9293
9294if test -z "$ac_cv_prog_STRIP" ; then
68645a6b 9295 STRIP="true"
f5aebe3e 9296fi
9297
95a05732 9298
9299
9300if test -n "$WINDRES"; then
9301 ac_cv_prog_WINDRES=$WINDRES
9302elif test -n "$ac_cv_prog_WINDRES"; then
9303 WINDRES=$ac_cv_prog_WINDRES
9304fi
9305
9306if test -n "$ac_cv_prog_WINDRES"; then
9307 for ncn_progname in windres; do
9308 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9309set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9311$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9312if ${ac_cv_prog_WINDRES+:} false; then :
cd9a469c 9313 $as_echo_n "(cached) " >&6
95a05732 9314else
9315 if test -n "$WINDRES"; then
9316 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9317else
9318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9319for as_dir in $PATH
9320do
9321 IFS=$as_save_IFS
9322 test -z "$as_dir" && as_dir=.
cd9a469c 9323 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 9325 ac_cv_prog_WINDRES="${ncn_progname}"
cd9a469c 9326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 9327 break 2
9328 fi
9329done
cd9a469c 9330 done
9331IFS=$as_save_IFS
95a05732 9332
9333fi
9334fi
9335WINDRES=$ac_cv_prog_WINDRES
9336if test -n "$WINDRES"; then
cd9a469c 9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9338$as_echo "$WINDRES" >&6; }
95a05732 9339else
cd9a469c 9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9341$as_echo "no" >&6; }
95a05732 9342fi
9343
cd9a469c 9344
95a05732 9345 done
9346fi
9347
9348for ncn_progname in windres; do
768691b5 9349 if test -n "$ncn_tool_prefix"; then
9350 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9351set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9353$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9354if ${ac_cv_prog_WINDRES+:} false; then :
cd9a469c 9355 $as_echo_n "(cached) " >&6
bb612911 9356else
9357 if test -n "$WINDRES"; then
9358 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9359else
b30fcfae 9360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9361for as_dir in $PATH
9362do
9363 IFS=$as_save_IFS
9364 test -z "$as_dir" && as_dir=.
cd9a469c 9365 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9367 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 9368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9369 break 2
9370 fi
9371done
cd9a469c 9372 done
9373IFS=$as_save_IFS
b30fcfae 9374
bb612911 9375fi
9376fi
b30fcfae 9377WINDRES=$ac_cv_prog_WINDRES
bb612911 9378if test -n "$WINDRES"; then
cd9a469c 9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9380$as_echo "$WINDRES" >&6; }
bb612911 9381else
cd9a469c 9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9383$as_echo "no" >&6; }
bb612911 9384fi
9385
cd9a469c 9386
768691b5 9387 fi
9388 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9389 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9390set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9392$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9393if ${ac_cv_prog_WINDRES+:} false; then :
cd9a469c 9394 $as_echo_n "(cached) " >&6
bb612911 9395else
768691b5 9396 if test -n "$WINDRES"; then
9397 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
bb612911 9398else
b30fcfae 9399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9400for as_dir in $PATH
9401do
9402 IFS=$as_save_IFS
9403 test -z "$as_dir" && as_dir=.
cd9a469c 9404 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9406 ac_cv_prog_WINDRES="${ncn_progname}"
cd9a469c 9407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9408 break 2
9409 fi
9410done
cd9a469c 9411 done
9412IFS=$as_save_IFS
b30fcfae 9413
bb612911 9414fi
9415fi
b30fcfae 9416WINDRES=$ac_cv_prog_WINDRES
768691b5 9417if test -n "$WINDRES"; then
cd9a469c 9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9419$as_echo "$WINDRES" >&6; }
bb612911 9420else
cd9a469c 9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9422$as_echo "no" >&6; }
bb612911 9423fi
b30fcfae 9424
cd9a469c 9425
768691b5 9426 fi
9427 test -n "$ac_cv_prog_WINDRES" && break
9428done
9429
9430if test -z "$ac_cv_prog_WINDRES" ; then
9431 set dummy windres
9432 if test $build = $host ; then
9433 WINDRES="$2"
bb612911 9434 else
768691b5 9435 WINDRES="${ncn_tool_prefix}$2"
bb612911 9436 fi
bb612911 9437fi
9438
95a05732 9439
9440
75d6a0a9 9441if test -n "$WINDMC"; then
9442 ac_cv_prog_WINDMC=$WINDMC
9443elif test -n "$ac_cv_prog_WINDMC"; then
9444 WINDMC=$ac_cv_prog_WINDMC
9445fi
9446
9447if test -n "$ac_cv_prog_WINDMC"; then
9448 for ncn_progname in windmc; do
9449 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9450set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9452$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9453if ${ac_cv_prog_WINDMC+:} false; then :
cd9a469c 9454 $as_echo_n "(cached) " >&6
75d6a0a9 9455else
9456 if test -n "$WINDMC"; then
9457 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9458else
9459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9460for as_dir in $PATH
9461do
9462 IFS=$as_save_IFS
9463 test -z "$as_dir" && as_dir=.
cd9a469c 9464 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
75d6a0a9 9466 ac_cv_prog_WINDMC="${ncn_progname}"
cd9a469c 9467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 9468 break 2
9469 fi
9470done
cd9a469c 9471 done
9472IFS=$as_save_IFS
75d6a0a9 9473
9474fi
9475fi
9476WINDMC=$ac_cv_prog_WINDMC
9477if test -n "$WINDMC"; then
cd9a469c 9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9479$as_echo "$WINDMC" >&6; }
75d6a0a9 9480else
cd9a469c 9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9482$as_echo "no" >&6; }
75d6a0a9 9483fi
9484
cd9a469c 9485
75d6a0a9 9486 done
9487fi
9488
9489for ncn_progname in windmc; do
9490 if test -n "$ncn_tool_prefix"; then
9491 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9492set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9494$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9495if ${ac_cv_prog_WINDMC+:} false; then :
cd9a469c 9496 $as_echo_n "(cached) " >&6
75d6a0a9 9497else
9498 if test -n "$WINDMC"; then
9499 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9500else
9501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9502for as_dir in $PATH
9503do
9504 IFS=$as_save_IFS
9505 test -z "$as_dir" && as_dir=.
cd9a469c 9506 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
75d6a0a9 9508 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 9509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 9510 break 2
9511 fi
9512done
cd9a469c 9513 done
9514IFS=$as_save_IFS
75d6a0a9 9515
9516fi
9517fi
9518WINDMC=$ac_cv_prog_WINDMC
9519if test -n "$WINDMC"; then
cd9a469c 9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9521$as_echo "$WINDMC" >&6; }
75d6a0a9 9522else
cd9a469c 9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9524$as_echo "no" >&6; }
75d6a0a9 9525fi
9526
cd9a469c 9527
75d6a0a9 9528 fi
9529 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9530 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9531set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9533$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9534if ${ac_cv_prog_WINDMC+:} false; then :
cd9a469c 9535 $as_echo_n "(cached) " >&6
75d6a0a9 9536else
9537 if test -n "$WINDMC"; then
9538 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9539else
9540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9541for as_dir in $PATH
9542do
9543 IFS=$as_save_IFS
9544 test -z "$as_dir" && as_dir=.
cd9a469c 9545 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
75d6a0a9 9547 ac_cv_prog_WINDMC="${ncn_progname}"
cd9a469c 9548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 9549 break 2
9550 fi
9551done
cd9a469c 9552 done
9553IFS=$as_save_IFS
75d6a0a9 9554
9555fi
9556fi
9557WINDMC=$ac_cv_prog_WINDMC
9558if test -n "$WINDMC"; then
cd9a469c 9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9560$as_echo "$WINDMC" >&6; }
75d6a0a9 9561else
cd9a469c 9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9563$as_echo "no" >&6; }
75d6a0a9 9564fi
9565
cd9a469c 9566
75d6a0a9 9567 fi
9568 test -n "$ac_cv_prog_WINDMC" && break
9569done
9570
9571if test -z "$ac_cv_prog_WINDMC" ; then
9572 set dummy windmc
9573 if test $build = $host ; then
9574 WINDMC="$2"
9575 else
9576 WINDMC="${ncn_tool_prefix}$2"
9577 fi
9578fi
9579
9580
9581
95a05732 9582if test -n "$OBJCOPY"; then
9583 ac_cv_prog_OBJCOPY=$OBJCOPY
9584elif test -n "$ac_cv_prog_OBJCOPY"; then
9585 OBJCOPY=$ac_cv_prog_OBJCOPY
9586fi
9587
9588if test -n "$ac_cv_prog_OBJCOPY"; then
9589 for ncn_progname in objcopy; do
9590 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9591set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9593$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9594if ${ac_cv_prog_OBJCOPY+:} false; then :
cd9a469c 9595 $as_echo_n "(cached) " >&6
95a05732 9596else
9597 if test -n "$OBJCOPY"; then
9598 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9599else
9600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9601for as_dir in $PATH
9602do
9603 IFS=$as_save_IFS
9604 test -z "$as_dir" && as_dir=.
cd9a469c 9605 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 9607 ac_cv_prog_OBJCOPY="${ncn_progname}"
cd9a469c 9608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 9609 break 2
9610 fi
9611done
cd9a469c 9612 done
9613IFS=$as_save_IFS
95a05732 9614
9615fi
9616fi
9617OBJCOPY=$ac_cv_prog_OBJCOPY
9618if test -n "$OBJCOPY"; then
cd9a469c 9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9620$as_echo "$OBJCOPY" >&6; }
95a05732 9621else
cd9a469c 9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9623$as_echo "no" >&6; }
95a05732 9624fi
9625
cd9a469c 9626
95a05732 9627 done
9628fi
9629
9630for ncn_progname in objcopy; do
768691b5 9631 if test -n "$ncn_tool_prefix"; then
9632 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9633set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9635$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9636if ${ac_cv_prog_OBJCOPY+:} false; then :
cd9a469c 9637 $as_echo_n "(cached) " >&6
bb612911 9638else
9639 if test -n "$OBJCOPY"; then
9640 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9641else
b30fcfae 9642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9643for as_dir in $PATH
9644do
9645 IFS=$as_save_IFS
9646 test -z "$as_dir" && as_dir=.
cd9a469c 9647 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9649 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 9650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9651 break 2
9652 fi
9653done
cd9a469c 9654 done
9655IFS=$as_save_IFS
b30fcfae 9656
bb612911 9657fi
9658fi
b30fcfae 9659OBJCOPY=$ac_cv_prog_OBJCOPY
bb612911 9660if test -n "$OBJCOPY"; then
cd9a469c 9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9662$as_echo "$OBJCOPY" >&6; }
bb612911 9663else
cd9a469c 9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9665$as_echo "no" >&6; }
bb612911 9666fi
9667
cd9a469c 9668
768691b5 9669 fi
9670 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9671 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9672set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9674$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9675if ${ac_cv_prog_OBJCOPY+:} false; then :
cd9a469c 9676 $as_echo_n "(cached) " >&6
bb612911 9677else
768691b5 9678 if test -n "$OBJCOPY"; then
9679 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
bb612911 9680else
b30fcfae 9681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9682for as_dir in $PATH
9683do
9684 IFS=$as_save_IFS
9685 test -z "$as_dir" && as_dir=.
cd9a469c 9686 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9688 ac_cv_prog_OBJCOPY="${ncn_progname}"
cd9a469c 9689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9690 break 2
9691 fi
9692done
cd9a469c 9693 done
9694IFS=$as_save_IFS
b30fcfae 9695
bb612911 9696fi
9697fi
b30fcfae 9698OBJCOPY=$ac_cv_prog_OBJCOPY
768691b5 9699if test -n "$OBJCOPY"; then
cd9a469c 9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9701$as_echo "$OBJCOPY" >&6; }
bb612911 9702else
cd9a469c 9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9704$as_echo "no" >&6; }
bb612911 9705fi
b30fcfae 9706
cd9a469c 9707
768691b5 9708 fi
9709 test -n "$ac_cv_prog_OBJCOPY" && break
9710done
9711
9712if test -z "$ac_cv_prog_OBJCOPY" ; then
9713 set dummy objcopy
9714 if test $build = $host ; then
9715 OBJCOPY="$2"
bb612911 9716 else
768691b5 9717 OBJCOPY="${ncn_tool_prefix}$2"
bb612911 9718 fi
bb612911 9719fi
9720
95a05732 9721
9722
9723if test -n "$OBJDUMP"; then
9724 ac_cv_prog_OBJDUMP=$OBJDUMP
9725elif test -n "$ac_cv_prog_OBJDUMP"; then
9726 OBJDUMP=$ac_cv_prog_OBJDUMP
9727fi
9728
9729if test -n "$ac_cv_prog_OBJDUMP"; then
9730 for ncn_progname in objdump; do
9731 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9732set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9734$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9735if ${ac_cv_prog_OBJDUMP+:} false; then :
cd9a469c 9736 $as_echo_n "(cached) " >&6
95a05732 9737else
9738 if test -n "$OBJDUMP"; then
9739 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9740else
9741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9742for as_dir in $PATH
9743do
9744 IFS=$as_save_IFS
9745 test -z "$as_dir" && as_dir=.
cd9a469c 9746 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 9748 ac_cv_prog_OBJDUMP="${ncn_progname}"
cd9a469c 9749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 9750 break 2
9751 fi
9752done
cd9a469c 9753 done
9754IFS=$as_save_IFS
95a05732 9755
9756fi
9757fi
9758OBJDUMP=$ac_cv_prog_OBJDUMP
9759if test -n "$OBJDUMP"; then
cd9a469c 9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9761$as_echo "$OBJDUMP" >&6; }
95a05732 9762else
cd9a469c 9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9764$as_echo "no" >&6; }
95a05732 9765fi
9766
cd9a469c 9767
95a05732 9768 done
9769fi
9770
9771for ncn_progname in objdump; do
768691b5 9772 if test -n "$ncn_tool_prefix"; then
9773 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9774set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9776$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9777if ${ac_cv_prog_OBJDUMP+:} false; then :
cd9a469c 9778 $as_echo_n "(cached) " >&6
bb612911 9779else
9780 if test -n "$OBJDUMP"; then
9781 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9782else
b30fcfae 9783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9784for as_dir in $PATH
9785do
9786 IFS=$as_save_IFS
9787 test -z "$as_dir" && as_dir=.
cd9a469c 9788 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9790 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 9791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9792 break 2
9793 fi
9794done
cd9a469c 9795 done
9796IFS=$as_save_IFS
b30fcfae 9797
bb612911 9798fi
9799fi
b30fcfae 9800OBJDUMP=$ac_cv_prog_OBJDUMP
bb612911 9801if test -n "$OBJDUMP"; then
cd9a469c 9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9803$as_echo "$OBJDUMP" >&6; }
bb612911 9804else
cd9a469c 9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9806$as_echo "no" >&6; }
bb612911 9807fi
9808
cd9a469c 9809
768691b5 9810 fi
9811 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9812 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9813set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9815$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 9816if ${ac_cv_prog_OBJDUMP+:} false; then :
cd9a469c 9817 $as_echo_n "(cached) " >&6
bb612911 9818else
768691b5 9819 if test -n "$OBJDUMP"; then
9820 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
bb612911 9821else
b30fcfae 9822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9823for as_dir in $PATH
9824do
9825 IFS=$as_save_IFS
9826 test -z "$as_dir" && as_dir=.
cd9a469c 9827 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 9828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9829 ac_cv_prog_OBJDUMP="${ncn_progname}"
cd9a469c 9830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9831 break 2
9832 fi
9833done
cd9a469c 9834 done
9835IFS=$as_save_IFS
b30fcfae 9836
bb612911 9837fi
9838fi
b30fcfae 9839OBJDUMP=$ac_cv_prog_OBJDUMP
768691b5 9840if test -n "$OBJDUMP"; then
cd9a469c 9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9842$as_echo "$OBJDUMP" >&6; }
bb612911 9843else
cd9a469c 9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9845$as_echo "no" >&6; }
bb612911 9846fi
b30fcfae 9847
cd9a469c 9848
768691b5 9849 fi
9850 test -n "$ac_cv_prog_OBJDUMP" && break
9851done
9852
9853if test -z "$ac_cv_prog_OBJDUMP" ; then
9854 set dummy objdump
9855 if test $build = $host ; then
9856 OBJDUMP="$2"
bb612911 9857 else
768691b5 9858 OBJDUMP="${ncn_tool_prefix}$2"
bb612911 9859 fi
bb612911 9860fi
9861
71ab34df 9862
9863
16706a2e 9864if test -n "$OTOOL"; then
9865 ac_cv_prog_OTOOL=$OTOOL
9866elif test -n "$ac_cv_prog_OTOOL"; then
9867 OTOOL=$ac_cv_prog_OTOOL
9868fi
9869
9870if test -n "$ac_cv_prog_OTOOL"; then
9871 for ncn_progname in otool; do
9872 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9873set dummy ${ncn_progname}; ac_word=$2
9874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9875$as_echo_n "checking for $ac_word... " >&6; }
9876if ${ac_cv_prog_OTOOL+:} false; then :
9877 $as_echo_n "(cached) " >&6
9878else
9879 if test -n "$OTOOL"; then
9880 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9881else
9882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9883for as_dir in $PATH
9884do
9885 IFS=$as_save_IFS
9886 test -z "$as_dir" && as_dir=.
9887 for ac_exec_ext in '' $ac_executable_extensions; do
9888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9889 ac_cv_prog_OTOOL="${ncn_progname}"
9890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9891 break 2
9892 fi
9893done
9894 done
9895IFS=$as_save_IFS
9896
9897fi
9898fi
9899OTOOL=$ac_cv_prog_OTOOL
9900if test -n "$OTOOL"; then
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9902$as_echo "$OTOOL" >&6; }
9903else
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9905$as_echo "no" >&6; }
9906fi
9907
9908
9909 done
9910fi
9911
9912for ncn_progname in otool; do
9913 if test -n "$ncn_tool_prefix"; then
9914 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9915set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9917$as_echo_n "checking for $ac_word... " >&6; }
9918if ${ac_cv_prog_OTOOL+:} false; then :
9919 $as_echo_n "(cached) " >&6
9920else
9921 if test -n "$OTOOL"; then
9922 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9923else
9924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9925for as_dir in $PATH
9926do
9927 IFS=$as_save_IFS
9928 test -z "$as_dir" && as_dir=.
9929 for ac_exec_ext in '' $ac_executable_extensions; do
9930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9931 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
9932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9933 break 2
9934 fi
9935done
9936 done
9937IFS=$as_save_IFS
9938
9939fi
9940fi
9941OTOOL=$ac_cv_prog_OTOOL
9942if test -n "$OTOOL"; then
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9944$as_echo "$OTOOL" >&6; }
9945else
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9947$as_echo "no" >&6; }
9948fi
9949
9950
9951 fi
9952 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
9953 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9954set dummy ${ncn_progname}; ac_word=$2
9955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9956$as_echo_n "checking for $ac_word... " >&6; }
9957if ${ac_cv_prog_OTOOL+:} false; then :
9958 $as_echo_n "(cached) " >&6
9959else
9960 if test -n "$OTOOL"; then
9961 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9962else
9963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9964for as_dir in $PATH
9965do
9966 IFS=$as_save_IFS
9967 test -z "$as_dir" && as_dir=.
9968 for ac_exec_ext in '' $ac_executable_extensions; do
9969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9970 ac_cv_prog_OTOOL="${ncn_progname}"
9971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9972 break 2
9973 fi
9974done
9975 done
9976IFS=$as_save_IFS
9977
9978fi
9979fi
9980OTOOL=$ac_cv_prog_OTOOL
9981if test -n "$OTOOL"; then
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9983$as_echo "$OTOOL" >&6; }
9984else
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9986$as_echo "no" >&6; }
9987fi
9988
9989
9990 fi
9991 test -n "$ac_cv_prog_OTOOL" && break
9992done
9993
9994if test -z "$ac_cv_prog_OTOOL" ; then
9995 set dummy otool
9996 if test $build = $host ; then
9997 OTOOL="$2"
9998 else
9999 OTOOL="${ncn_tool_prefix}$2"
10000 fi
10001fi
10002
10003
10004
3f71364d 10005if test -n "$READELF"; then
10006 ac_cv_prog_READELF=$READELF
10007elif test -n "$ac_cv_prog_READELF"; then
10008 READELF=$ac_cv_prog_READELF
10009fi
10010
10011if test -n "$ac_cv_prog_READELF"; then
10012 for ncn_progname in readelf; do
10013 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10014set dummy ${ncn_progname}; ac_word=$2
10015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10016$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10017if ${ac_cv_prog_READELF+:} false; then :
3f71364d 10018 $as_echo_n "(cached) " >&6
10019else
10020 if test -n "$READELF"; then
10021 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10022else
10023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10024for as_dir in $PATH
10025do
10026 IFS=$as_save_IFS
10027 test -z "$as_dir" && as_dir=.
10028 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3f71364d 10030 ac_cv_prog_READELF="${ncn_progname}"
10031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10032 break 2
10033 fi
10034done
10035 done
10036IFS=$as_save_IFS
10037
10038fi
10039fi
10040READELF=$ac_cv_prog_READELF
10041if test -n "$READELF"; then
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10043$as_echo "$READELF" >&6; }
10044else
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10046$as_echo "no" >&6; }
10047fi
10048
10049
10050 done
10051fi
10052
10053for ncn_progname in readelf; do
10054 if test -n "$ncn_tool_prefix"; then
10055 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10056set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10058$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10059if ${ac_cv_prog_READELF+:} false; then :
3f71364d 10060 $as_echo_n "(cached) " >&6
10061else
10062 if test -n "$READELF"; then
10063 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10064else
10065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10066for as_dir in $PATH
10067do
10068 IFS=$as_save_IFS
10069 test -z "$as_dir" && as_dir=.
10070 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3f71364d 10072 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
10073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10074 break 2
10075 fi
10076done
10077 done
10078IFS=$as_save_IFS
10079
10080fi
10081fi
10082READELF=$ac_cv_prog_READELF
10083if test -n "$READELF"; then
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10085$as_echo "$READELF" >&6; }
10086else
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10088$as_echo "no" >&6; }
10089fi
10090
10091
10092 fi
10093 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
10094 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10095set dummy ${ncn_progname}; ac_word=$2
10096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10097$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10098if ${ac_cv_prog_READELF+:} false; then :
3f71364d 10099 $as_echo_n "(cached) " >&6
10100else
10101 if test -n "$READELF"; then
10102 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10103else
10104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10105for as_dir in $PATH
10106do
10107 IFS=$as_save_IFS
10108 test -z "$as_dir" && as_dir=.
10109 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3f71364d 10111 ac_cv_prog_READELF="${ncn_progname}"
10112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10113 break 2
10114 fi
10115done
10116 done
10117IFS=$as_save_IFS
10118
10119fi
10120fi
10121READELF=$ac_cv_prog_READELF
10122if test -n "$READELF"; then
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10124$as_echo "$READELF" >&6; }
10125else
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10127$as_echo "no" >&6; }
10128fi
10129
10130
10131 fi
10132 test -n "$ac_cv_prog_READELF" && break
10133done
10134
10135if test -z "$ac_cv_prog_READELF" ; then
10136 set dummy readelf
10137 if test $build = $host ; then
10138 READELF="$2"
10139 else
10140 READELF="${ncn_tool_prefix}$2"
10141 fi
10142fi
10143
10144
10145
71ab34df 10146
10147
10148
f5aebe3e 10149# Target tools.
b30fcfae 10150
cd9a469c 10151# Check whether --with-build-time-tools was given.
10152if test "${with_build_time_tools+set}" = set; then :
10153 withval=$with_build_time_tools; case x"$withval" in
c47832b1 10154 x/*) ;;
10155 *)
10156 with_build_time_tools=
cd9a469c 10157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10158$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
c47832b1 10159 ;;
10160 esac
bb612911 10161else
c47832b1 10162 with_build_time_tools=
cd9a469c 10163fi
10164
bb612911 10165
95a05732 10166
10167
10168if test -n "$CC_FOR_TARGET"; then
10169 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10170elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10171 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10172fi
10173
10174if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10175 for ncn_progname in cc gcc; do
10176 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10177set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10179$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10180if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
cd9a469c 10181 $as_echo_n "(cached) " >&6
95a05732 10182else
10183 if test -n "$CC_FOR_TARGET"; then
10184 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10185else
10186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10187for as_dir in $PATH
10188do
10189 IFS=$as_save_IFS
10190 test -z "$as_dir" && as_dir=.
cd9a469c 10191 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 10193 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
cd9a469c 10194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 10195 break 2
10196 fi
10197done
cd9a469c 10198 done
10199IFS=$as_save_IFS
95a05732 10200
10201fi
10202fi
10203CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10204if test -n "$CC_FOR_TARGET"; then
cd9a469c 10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10206$as_echo "$CC_FOR_TARGET" >&6; }
95a05732 10207else
cd9a469c 10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10209$as_echo "no" >&6; }
95a05732 10210fi
10211
cd9a469c 10212
95a05732 10213 done
10214fi
10215
10216if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10217 for ncn_progname in cc gcc; do
cd9a469c 10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10219$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 10220 if test -x $with_build_time_tools/${ncn_progname}; then
10221 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10223$as_echo "yes" >&6; }
9886f3d1 10224 break
c47832b1 10225 else
cd9a469c 10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10227$as_echo "no" >&6; }
9886f3d1 10228 fi
10229 done
ef8184c7 10230fi
10231
c47832b1 10232if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10233 for ncn_progname in cc gcc; do
10234 if test -n "$ncn_target_tool_prefix"; then
10235 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 10236set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 10237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10238$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10239if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
cd9a469c 10240 $as_echo_n "(cached) " >&6
ef8184c7 10241else
10242 if test -n "$CC_FOR_TARGET"; then
10243 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10244else
b30fcfae 10245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10246for as_dir in $PATH
10247do
10248 IFS=$as_save_IFS
10249 test -z "$as_dir" && as_dir=.
cd9a469c 10250 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10252 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 10253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10254 break 2
10255 fi
10256done
cd9a469c 10257 done
10258IFS=$as_save_IFS
b30fcfae 10259
ef8184c7 10260fi
10261fi
b30fcfae 10262CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
ef8184c7 10263if test -n "$CC_FOR_TARGET"; then
cd9a469c 10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10265$as_echo "$CC_FOR_TARGET" >&6; }
ef8184c7 10266else
cd9a469c 10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10268$as_echo "no" >&6; }
ef8184c7 10269fi
10270
cd9a469c 10271
c47832b1 10272 fi
10273 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10274 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 10275set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10277$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10278if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
cd9a469c 10279 $as_echo_n "(cached) " >&6
ef8184c7 10280else
768691b5 10281 if test -n "$CC_FOR_TARGET"; then
10282 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
ef8184c7 10283else
b30fcfae 10284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10285for as_dir in $PATH
10286do
10287 IFS=$as_save_IFS
10288 test -z "$as_dir" && as_dir=.
cd9a469c 10289 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10291 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
cd9a469c 10292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10293 break 2
10294 fi
10295done
cd9a469c 10296 done
10297IFS=$as_save_IFS
b30fcfae 10298
ef8184c7 10299fi
10300fi
b30fcfae 10301CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
768691b5 10302if test -n "$CC_FOR_TARGET"; then
cd9a469c 10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10304$as_echo "$CC_FOR_TARGET" >&6; }
ef8184c7 10305else
cd9a469c 10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10307$as_echo "no" >&6; }
ef8184c7 10308fi
b30fcfae 10309
cd9a469c 10310
c47832b1 10311 fi
10312 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10313 done
10314fi
b30fcfae 10315
768691b5 10316if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10317 set dummy cc gcc
10318 if test $build = $target ; then
10319 CC_FOR_TARGET="$2"
ef8184c7 10320 else
768691b5 10321 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
ef8184c7 10322 fi
b7ef8464 10323else
10324 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
ef8184c7 10325fi
10326
95a05732 10327
10328
10329if test -n "$CXX_FOR_TARGET"; then
10330 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10331elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10332 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10333fi
10334
10335if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10336 for ncn_progname in c++ g++ cxx gxx; do
10337 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10338set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10340$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10341if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
cd9a469c 10342 $as_echo_n "(cached) " >&6
95a05732 10343else
10344 if test -n "$CXX_FOR_TARGET"; then
10345 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10346else
10347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10348for as_dir in $PATH
10349do
10350 IFS=$as_save_IFS
10351 test -z "$as_dir" && as_dir=.
cd9a469c 10352 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 10354 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
cd9a469c 10355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 10356 break 2
10357 fi
10358done
cd9a469c 10359 done
10360IFS=$as_save_IFS
95a05732 10361
10362fi
10363fi
10364CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10365if test -n "$CXX_FOR_TARGET"; then
cd9a469c 10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10367$as_echo "$CXX_FOR_TARGET" >&6; }
95a05732 10368else
cd9a469c 10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10370$as_echo "no" >&6; }
95a05732 10371fi
10372
cd9a469c 10373
95a05732 10374 done
10375fi
10376
10377if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10378 for ncn_progname in c++ g++ cxx gxx; do
cd9a469c 10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10380$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 10381 if test -x $with_build_time_tools/${ncn_progname}; then
10382 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10384$as_echo "yes" >&6; }
c47832b1 10385 break
10386 else
cd9a469c 10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10388$as_echo "no" >&6; }
c47832b1 10389 fi
10390 done
10391fi
10392
10393if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10394 for ncn_progname in c++ g++ cxx gxx; do
10395 if test -n "$ncn_target_tool_prefix"; then
10396 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 10397set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 10398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10399$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10400if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
cd9a469c 10401 $as_echo_n "(cached) " >&6
ef8184c7 10402else
10403 if test -n "$CXX_FOR_TARGET"; then
10404 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10405else
b30fcfae 10406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10407for as_dir in $PATH
10408do
10409 IFS=$as_save_IFS
10410 test -z "$as_dir" && as_dir=.
cd9a469c 10411 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10413 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 10414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10415 break 2
10416 fi
10417done
cd9a469c 10418 done
10419IFS=$as_save_IFS
b30fcfae 10420
ef8184c7 10421fi
10422fi
b30fcfae 10423CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
ef8184c7 10424if test -n "$CXX_FOR_TARGET"; then
cd9a469c 10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10426$as_echo "$CXX_FOR_TARGET" >&6; }
ef8184c7 10427else
cd9a469c 10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10429$as_echo "no" >&6; }
ef8184c7 10430fi
10431
cd9a469c 10432
c47832b1 10433 fi
10434 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10435 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 10436set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10438$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10439if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
cd9a469c 10440 $as_echo_n "(cached) " >&6
ef8184c7 10441else
768691b5 10442 if test -n "$CXX_FOR_TARGET"; then
10443 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
ef8184c7 10444else
b30fcfae 10445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10446for as_dir in $PATH
10447do
10448 IFS=$as_save_IFS
10449 test -z "$as_dir" && as_dir=.
cd9a469c 10450 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10452 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
cd9a469c 10453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10454 break 2
10455 fi
10456done
cd9a469c 10457 done
10458IFS=$as_save_IFS
b30fcfae 10459
ef8184c7 10460fi
10461fi
b30fcfae 10462CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
768691b5 10463if test -n "$CXX_FOR_TARGET"; then
cd9a469c 10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10465$as_echo "$CXX_FOR_TARGET" >&6; }
ef8184c7 10466else
cd9a469c 10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10468$as_echo "no" >&6; }
ef8184c7 10469fi
b30fcfae 10470
cd9a469c 10471
c47832b1 10472 fi
10473 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10474 done
10475fi
b30fcfae 10476
768691b5 10477if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10478 set dummy c++ g++ cxx gxx
10479 if test $build = $target ; then
10480 CXX_FOR_TARGET="$2"
ef8184c7 10481 else
768691b5 10482 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
ef8184c7 10483 fi
b7ef8464 10484else
10485 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
bb612911 10486fi
10487
95a05732 10488
10489
10490if test -n "$GCC_FOR_TARGET"; then
10491 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10492elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10493 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10494fi
10495
10496if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10497 for ncn_progname in gcc; do
10498 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10499set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10501$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10502if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
cd9a469c 10503 $as_echo_n "(cached) " >&6
95a05732 10504else
10505 if test -n "$GCC_FOR_TARGET"; then
10506 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10507else
10508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10509for as_dir in $PATH
10510do
10511 IFS=$as_save_IFS
10512 test -z "$as_dir" && as_dir=.
cd9a469c 10513 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 10515 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
cd9a469c 10516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 10517 break 2
10518 fi
10519done
cd9a469c 10520 done
10521IFS=$as_save_IFS
95a05732 10522
10523fi
10524fi
10525GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10526if test -n "$GCC_FOR_TARGET"; then
cd9a469c 10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10528$as_echo "$GCC_FOR_TARGET" >&6; }
95a05732 10529else
cd9a469c 10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10531$as_echo "no" >&6; }
95a05732 10532fi
10533
cd9a469c 10534
95a05732 10535 done
10536fi
10537
10538if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10539 for ncn_progname in gcc; do
cd9a469c 10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10541$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 10542 if test -x $with_build_time_tools/${ncn_progname}; then
10543 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10545$as_echo "yes" >&6; }
c47832b1 10546 break
10547 else
cd9a469c 10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10549$as_echo "no" >&6; }
c47832b1 10550 fi
10551 done
10552fi
10553
10554if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10555 for ncn_progname in gcc; do
10556 if test -n "$ncn_target_tool_prefix"; then
10557 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 10558set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 10559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10560$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10561if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
cd9a469c 10562 $as_echo_n "(cached) " >&6
bb612911 10563else
c47832b1 10564 if test -n "$GCC_FOR_TARGET"; then
10565 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
bb612911 10566else
b30fcfae 10567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10568for as_dir in $PATH
10569do
10570 IFS=$as_save_IFS
10571 test -z "$as_dir" && as_dir=.
cd9a469c 10572 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10574 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 10575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10576 break 2
10577 fi
10578done
cd9a469c 10579 done
10580IFS=$as_save_IFS
b30fcfae 10581
bb612911 10582fi
10583fi
b30fcfae 10584GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
c47832b1 10585if test -n "$GCC_FOR_TARGET"; then
cd9a469c 10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10587$as_echo "$GCC_FOR_TARGET" >&6; }
bb612911 10588else
cd9a469c 10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10590$as_echo "no" >&6; }
bb612911 10591fi
10592
cd9a469c 10593
c47832b1 10594 fi
10595 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10596 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 10597set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10599$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10600if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
cd9a469c 10601 $as_echo_n "(cached) " >&6
bb612911 10602else
c47832b1 10603 if test -n "$GCC_FOR_TARGET"; then
10604 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
bb612911 10605else
b30fcfae 10606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10607for as_dir in $PATH
10608do
10609 IFS=$as_save_IFS
10610 test -z "$as_dir" && as_dir=.
cd9a469c 10611 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10613 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
cd9a469c 10614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10615 break 2
10616 fi
10617done
cd9a469c 10618 done
10619IFS=$as_save_IFS
b30fcfae 10620
bb612911 10621fi
10622fi
b30fcfae 10623GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
c47832b1 10624if test -n "$GCC_FOR_TARGET"; then
cd9a469c 10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10626$as_echo "$GCC_FOR_TARGET" >&6; }
bb612911 10627else
cd9a469c 10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10629$as_echo "no" >&6; }
bb612911 10630fi
b30fcfae 10631
cd9a469c 10632
c47832b1 10633 fi
10634 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10635 done
10636fi
b30fcfae 10637
c47832b1 10638if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10639 GCC_FOR_TARGET="${CC_FOR_TARGET}"
b7ef8464 10640else
10641 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
c47832b1 10642fi
10643
95a05732 10644
10645
95a05732 10646if test -n "$GFORTRAN_FOR_TARGET"; then
10647 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10648elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10649 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
c47832b1 10650fi
10651
95a05732 10652if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10653 for ncn_progname in gfortran; do
10654 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
c47832b1 10655set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10657$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10658if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
cd9a469c 10659 $as_echo_n "(cached) " >&6
c47832b1 10660else
95a05732 10661 if test -n "$GFORTRAN_FOR_TARGET"; then
10662 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
c47832b1 10663else
b30fcfae 10664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10665for as_dir in $PATH
10666do
10667 IFS=$as_save_IFS
10668 test -z "$as_dir" && as_dir=.
cd9a469c 10669 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 10671 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
cd9a469c 10672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10673 break 2
10674 fi
10675done
cd9a469c 10676 done
10677IFS=$as_save_IFS
b30fcfae 10678
c47832b1 10679fi
10680fi
95a05732 10681GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10682if test -n "$GFORTRAN_FOR_TARGET"; then
cd9a469c 10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10684$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
c47832b1 10685else
cd9a469c 10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10687$as_echo "no" >&6; }
c47832b1 10688fi
b30fcfae 10689
cd9a469c 10690
c47832b1 10691 done
10692fi
b30fcfae 10693
95a05732 10694if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10695 for ncn_progname in gfortran; do
cd9a469c 10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10697$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 10698 if test -x $with_build_time_tools/${ncn_progname}; then
10699 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10701$as_echo "yes" >&6; }
c47832b1 10702 break
10703 else
cd9a469c 10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10705$as_echo "no" >&6; }
c47832b1 10706 fi
10707 done
10708fi
10709
10710if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10711 for ncn_progname in gfortran; do
10712 if test -n "$ncn_target_tool_prefix"; then
10713 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10714set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 10715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10716$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10717if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
cd9a469c 10718 $as_echo_n "(cached) " >&6
c47832b1 10719else
10720 if test -n "$GFORTRAN_FOR_TARGET"; then
b30fcfae 10721 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10722else
10723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10724for as_dir in $PATH
10725do
10726 IFS=$as_save_IFS
10727 test -z "$as_dir" && as_dir=.
cd9a469c 10728 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10730 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 10731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10732 break 2
10733 fi
10734done
cd9a469c 10735 done
10736IFS=$as_save_IFS
b30fcfae 10737
c47832b1 10738fi
10739fi
b30fcfae 10740GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
c47832b1 10741if test -n "$GFORTRAN_FOR_TARGET"; then
cd9a469c 10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10743$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
c47832b1 10744else
cd9a469c 10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10746$as_echo "no" >&6; }
c47832b1 10747fi
10748
cd9a469c 10749
c47832b1 10750 fi
10751 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10752 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10753set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10755$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10756if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
cd9a469c 10757 $as_echo_n "(cached) " >&6
c47832b1 10758else
10759 if test -n "$GFORTRAN_FOR_TARGET"; then
10760 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10761else
b30fcfae 10762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10763for as_dir in $PATH
10764do
10765 IFS=$as_save_IFS
10766 test -z "$as_dir" && as_dir=.
cd9a469c 10767 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10769 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
cd9a469c 10770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10771 break 2
10772 fi
10773done
cd9a469c 10774 done
10775IFS=$as_save_IFS
b30fcfae 10776
c47832b1 10777fi
10778fi
b30fcfae 10779GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
c47832b1 10780if test -n "$GFORTRAN_FOR_TARGET"; then
cd9a469c 10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10782$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
c47832b1 10783else
cd9a469c 10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10785$as_echo "no" >&6; }
c47832b1 10786fi
b30fcfae 10787
cd9a469c 10788
c47832b1 10789 fi
10790 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10791 done
10792fi
b30fcfae 10793
c47832b1 10794if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10795 set dummy gfortran
768691b5 10796 if test $build = $target ; then
c47832b1 10797 GFORTRAN_FOR_TARGET="$2"
bb612911 10798 else
c47832b1 10799 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10800 fi
b7ef8464 10801else
10802 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
c47832b1 10803fi
10804
10805
10806
5ff5b630 10807if test -n "$GOC_FOR_TARGET"; then
10808 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10809elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10810 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10811fi
10812
10813if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10814 for ncn_progname in gccgo; do
10815 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10816set dummy ${ncn_progname}; ac_word=$2
10817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10818$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10819if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
5ff5b630 10820 $as_echo_n "(cached) " >&6
10821else
10822 if test -n "$GOC_FOR_TARGET"; then
10823 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10824else
10825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10826for as_dir in $PATH
10827do
10828 IFS=$as_save_IFS
10829 test -z "$as_dir" && as_dir=.
10830 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5ff5b630 10832 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10834 break 2
10835 fi
10836done
10837 done
10838IFS=$as_save_IFS
10839
10840fi
10841fi
10842GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10843if test -n "$GOC_FOR_TARGET"; then
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10845$as_echo "$GOC_FOR_TARGET" >&6; }
10846else
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10848$as_echo "no" >&6; }
10849fi
10850
10851
10852 done
10853fi
10854
10855if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10856 for ncn_progname in gccgo; do
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10858$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10859 if test -x $with_build_time_tools/${ncn_progname}; then
10860 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10862$as_echo "yes" >&6; }
10863 break
10864 else
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10866$as_echo "no" >&6; }
10867 fi
10868 done
10869fi
10870
10871if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10872 for ncn_progname in gccgo; do
10873 if test -n "$ncn_target_tool_prefix"; then
10874 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10875set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10877$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10878if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
5ff5b630 10879 $as_echo_n "(cached) " >&6
10880else
10881 if test -n "$GOC_FOR_TARGET"; then
10882 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10883else
10884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10885for as_dir in $PATH
10886do
10887 IFS=$as_save_IFS
10888 test -z "$as_dir" && as_dir=.
10889 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5ff5b630 10891 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10893 break 2
10894 fi
10895done
10896 done
10897IFS=$as_save_IFS
10898
10899fi
10900fi
10901GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10902if test -n "$GOC_FOR_TARGET"; then
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10904$as_echo "$GOC_FOR_TARGET" >&6; }
10905else
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10907$as_echo "no" >&6; }
10908fi
10909
10910
10911 fi
10912 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10913 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10914set dummy ${ncn_progname}; ac_word=$2
10915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10916$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10917if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
5ff5b630 10918 $as_echo_n "(cached) " >&6
10919else
10920 if test -n "$GOC_FOR_TARGET"; then
10921 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10922else
10923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10924for as_dir in $PATH
10925do
10926 IFS=$as_save_IFS
10927 test -z "$as_dir" && as_dir=.
10928 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5ff5b630 10930 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10932 break 2
10933 fi
10934done
10935 done
10936IFS=$as_save_IFS
10937
10938fi
10939fi
10940GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10941if test -n "$GOC_FOR_TARGET"; then
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10943$as_echo "$GOC_FOR_TARGET" >&6; }
10944else
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10946$as_echo "no" >&6; }
10947fi
10948
10949
10950 fi
10951 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10952 done
10953fi
10954
10955if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10956 set dummy gccgo
10957 if test $build = $target ; then
10958 GOC_FOR_TARGET="$2"
10959 else
10960 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10961 fi
10962else
10963 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10964fi
10965
10966
10967
03385ed3 10968if test -n "$GDC_FOR_TARGET"; then
10969 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
10970elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
10971 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
10972fi
10973
10974if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
10975 for ncn_progname in gdc; do
10976 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10977set dummy ${ncn_progname}; ac_word=$2
10978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10979$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 10980if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
03385ed3 10981 $as_echo_n "(cached) " >&6
10982else
10983 if test -n "$GDC_FOR_TARGET"; then
10984 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
10985else
10986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10987for as_dir in $PATH
10988do
10989 IFS=$as_save_IFS
10990 test -z "$as_dir" && as_dir=.
10991 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 10992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 10993 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
10994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10995 break 2
10996 fi
10997done
10998 done
10999IFS=$as_save_IFS
11000
11001fi
11002fi
11003GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11004if test -n "$GDC_FOR_TARGET"; then
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
11006$as_echo "$GDC_FOR_TARGET" >&6; }
11007else
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11009$as_echo "no" >&6; }
11010fi
11011
11012
11013 done
11014fi
11015
11016if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11017 for ncn_progname in gdc; do
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11019$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11020 if test -x $with_build_time_tools/${ncn_progname}; then
11021 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11023$as_echo "yes" >&6; }
11024 break
11025 else
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11027$as_echo "no" >&6; }
11028 fi
11029 done
11030fi
11031
11032if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
11033 for ncn_progname in gdc; do
11034 if test -n "$ncn_target_tool_prefix"; then
11035 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11036set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11038$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11039if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
03385ed3 11040 $as_echo_n "(cached) " >&6
11041else
11042 if test -n "$GDC_FOR_TARGET"; then
11043 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
11044else
11045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11046for as_dir in $PATH
11047do
11048 IFS=$as_save_IFS
11049 test -z "$as_dir" && as_dir=.
11050 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 11052 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11054 break 2
11055 fi
11056done
11057 done
11058IFS=$as_save_IFS
11059
11060fi
11061fi
11062GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11063if test -n "$GDC_FOR_TARGET"; then
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
11065$as_echo "$GDC_FOR_TARGET" >&6; }
11066else
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11068$as_echo "no" >&6; }
11069fi
11070
11071
11072 fi
11073 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
11074 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11075set dummy ${ncn_progname}; ac_word=$2
11076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11077$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11078if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
03385ed3 11079 $as_echo_n "(cached) " >&6
11080else
11081 if test -n "$GDC_FOR_TARGET"; then
11082 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
11083else
11084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11085for as_dir in $PATH
11086do
11087 IFS=$as_save_IFS
11088 test -z "$as_dir" && as_dir=.
11089 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
03385ed3 11091 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
11092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11093 break 2
11094 fi
11095done
11096 done
11097IFS=$as_save_IFS
11098
11099fi
11100fi
11101GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11102if test -n "$GDC_FOR_TARGET"; then
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
11104$as_echo "$GDC_FOR_TARGET" >&6; }
11105else
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11107$as_echo "no" >&6; }
11108fi
11109
11110
11111 fi
11112 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
11113 done
11114fi
11115
11116if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
11117 set dummy gdc
11118 if test $build = $target ; then
11119 GDC_FOR_TARGET="$2"
11120 else
11121 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11122 fi
11123else
11124 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
11125fi
11126
11127
11128
c47832b1 11129cat > conftest.c << \EOF
11130#ifdef __GNUC__
11131 gcc_yay;
11132#endif
11133EOF
11134if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11135 have_gcc_for_target=yes
11136else
11137 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11138 have_gcc_for_target=no
11139fi
11140rm conftest.c
11141
11142
11143
11144
11145if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11146 if test -n "$with_build_time_tools"; then
cd9a469c 11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11148$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
ab0da556 11149 if test -x $with_build_time_tools/ar; then
11150 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11151 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
cd9a469c 11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11153$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
ab0da556 11154 else
cd9a469c 11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11156$as_echo "no" >&6; }
ab0da556 11157 fi
c47832b1 11158 elif test $build != $host && test $have_gcc_for_target = yes; then
11159 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
b7ef8464 11160 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11161 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c47832b1 11162 fi
11163fi
38d7211b 11164if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 11165 # Extract the first word of "ar", so it can be a program name with args.
11166set dummy ar; ac_word=$2
cd9a469c 11167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11168$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11169if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
cd9a469c 11170 $as_echo_n "(cached) " >&6
c47832b1 11171else
b30fcfae 11172 case $AR_FOR_TARGET in
11173 [\\/]* | ?:[\\/]*)
c47832b1 11174 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11175 ;;
c47832b1 11176 *)
b30fcfae 11177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11178for as_dir in $gcc_cv_tool_dirs
11179do
11180 IFS=$as_save_IFS
11181 test -z "$as_dir" && as_dir=.
cd9a469c 11182 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11184 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 11185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11186 break 2
11187 fi
11188done
cd9a469c 11189 done
11190IFS=$as_save_IFS
b30fcfae 11191
c47832b1 11192 ;;
11193esac
11194fi
b30fcfae 11195AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
c47832b1 11196if test -n "$AR_FOR_TARGET"; then
cd9a469c 11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11198$as_echo "$AR_FOR_TARGET" >&6; }
c47832b1 11199else
cd9a469c 11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11201$as_echo "no" >&6; }
ef8184c7 11202fi
11203
cd9a469c 11204
c47832b1 11205fi
11206if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
95a05732 11207
11208
11209if test -n "$AR_FOR_TARGET"; then
11210 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11211elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11212 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11213fi
11214
11215if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11216 for ncn_progname in ar; do
11217 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11218set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11220$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11221if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
cd9a469c 11222 $as_echo_n "(cached) " >&6
95a05732 11223else
11224 if test -n "$AR_FOR_TARGET"; then
11225 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11226else
11227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11228for as_dir in $PATH
11229do
11230 IFS=$as_save_IFS
11231 test -z "$as_dir" && as_dir=.
cd9a469c 11232 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 11234 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
cd9a469c 11235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 11236 break 2
11237 fi
11238done
cd9a469c 11239 done
11240IFS=$as_save_IFS
95a05732 11241
11242fi
11243fi
11244AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11245if test -n "$AR_FOR_TARGET"; then
cd9a469c 11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11247$as_echo "$AR_FOR_TARGET" >&6; }
95a05732 11248else
cd9a469c 11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11250$as_echo "no" >&6; }
95a05732 11251fi
11252
cd9a469c 11253
95a05732 11254 done
11255fi
11256
11257if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 11258 for ncn_progname in ar; do
cd9a469c 11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11260$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 11261 if test -x $with_build_time_tools/${ncn_progname}; then
11262 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11264$as_echo "yes" >&6; }
c47832b1 11265 break
11266 else
cd9a469c 11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11268$as_echo "no" >&6; }
c47832b1 11269 fi
11270 done
11271fi
11272
11273if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11274 for ncn_progname in ar; do
11275 if test -n "$ncn_target_tool_prefix"; then
11276 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 11277set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 11278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11279$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11280if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
cd9a469c 11281 $as_echo_n "(cached) " >&6
ef8184c7 11282else
c47832b1 11283 if test -n "$AR_FOR_TARGET"; then
11284 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
ef8184c7 11285else
b30fcfae 11286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11287for as_dir in $PATH
11288do
11289 IFS=$as_save_IFS
11290 test -z "$as_dir" && as_dir=.
cd9a469c 11291 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11293 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 11294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11295 break 2
11296 fi
11297done
cd9a469c 11298 done
11299IFS=$as_save_IFS
b30fcfae 11300
ef8184c7 11301fi
11302fi
b30fcfae 11303AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
c47832b1 11304if test -n "$AR_FOR_TARGET"; then
cd9a469c 11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11306$as_echo "$AR_FOR_TARGET" >&6; }
ef8184c7 11307else
cd9a469c 11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11309$as_echo "no" >&6; }
ef8184c7 11310fi
11311
cd9a469c 11312
c47832b1 11313 fi
11314 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11315 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11316set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11318$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11319if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
cd9a469c 11320 $as_echo_n "(cached) " >&6
c47832b1 11321else
11322 if test -n "$AR_FOR_TARGET"; then
11323 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11324else
b30fcfae 11325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11326for as_dir in $PATH
11327do
11328 IFS=$as_save_IFS
11329 test -z "$as_dir" && as_dir=.
cd9a469c 11330 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11332 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
cd9a469c 11333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11334 break 2
11335 fi
11336done
cd9a469c 11337 done
11338IFS=$as_save_IFS
b30fcfae 11339
c47832b1 11340fi
11341fi
b30fcfae 11342AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
c47832b1 11343if test -n "$AR_FOR_TARGET"; then
cd9a469c 11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11345$as_echo "$AR_FOR_TARGET" >&6; }
c47832b1 11346else
cd9a469c 11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11348$as_echo "no" >&6; }
c47832b1 11349fi
b30fcfae 11350
cd9a469c 11351
c47832b1 11352 fi
11353 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11354 done
11355fi
b30fcfae 11356
c47832b1 11357if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11358 set dummy ar
11359 if test $build = $target ; then
11360 AR_FOR_TARGET="$2"
11361 else
11362 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
768691b5 11363 fi
b7ef8464 11364else
11365 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
c47832b1 11366fi
11367
ab0da556 11368else
11369 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
c47832b1 11370fi
11371
11372
11373
11374
11375if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11376 if test -n "$with_build_time_tools"; then
cd9a469c 11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11378$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
ab0da556 11379 if test -x $with_build_time_tools/as; then
11380 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11381 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
cd9a469c 11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11383$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
ab0da556 11384 else
cd9a469c 11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11386$as_echo "no" >&6; }
ab0da556 11387 fi
c47832b1 11388 elif test $build != $host && test $have_gcc_for_target = yes; then
11389 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
b7ef8464 11390 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11391 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c47832b1 11392 fi
11393fi
38d7211b 11394if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 11395 # Extract the first word of "as", so it can be a program name with args.
11396set dummy as; ac_word=$2
cd9a469c 11397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11398$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11399if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
cd9a469c 11400 $as_echo_n "(cached) " >&6
c47832b1 11401else
b30fcfae 11402 case $AS_FOR_TARGET in
11403 [\\/]* | ?:[\\/]*)
c47832b1 11404 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11405 ;;
c47832b1 11406 *)
b30fcfae 11407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11408for as_dir in $gcc_cv_tool_dirs
11409do
11410 IFS=$as_save_IFS
11411 test -z "$as_dir" && as_dir=.
cd9a469c 11412 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11414 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 11415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11416 break 2
11417 fi
11418done
cd9a469c 11419 done
11420IFS=$as_save_IFS
b30fcfae 11421
c47832b1 11422 ;;
11423esac
11424fi
b30fcfae 11425AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
c47832b1 11426if test -n "$AS_FOR_TARGET"; then
cd9a469c 11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11428$as_echo "$AS_FOR_TARGET" >&6; }
c47832b1 11429else
cd9a469c 11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11431$as_echo "no" >&6; }
c47832b1 11432fi
11433
cd9a469c 11434
c47832b1 11435fi
11436if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
95a05732 11437
11438
11439if test -n "$AS_FOR_TARGET"; then
11440 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11441elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11442 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11443fi
11444
11445if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11446 for ncn_progname in as; do
11447 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11448set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11450$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11451if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
cd9a469c 11452 $as_echo_n "(cached) " >&6
95a05732 11453else
11454 if test -n "$AS_FOR_TARGET"; then
11455 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11456else
11457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11458for as_dir in $PATH
11459do
11460 IFS=$as_save_IFS
11461 test -z "$as_dir" && as_dir=.
cd9a469c 11462 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 11464 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
cd9a469c 11465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 11466 break 2
11467 fi
11468done
cd9a469c 11469 done
11470IFS=$as_save_IFS
95a05732 11471
11472fi
11473fi
11474AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11475if test -n "$AS_FOR_TARGET"; then
cd9a469c 11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11477$as_echo "$AS_FOR_TARGET" >&6; }
95a05732 11478else
cd9a469c 11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11480$as_echo "no" >&6; }
95a05732 11481fi
11482
cd9a469c 11483
95a05732 11484 done
11485fi
11486
11487if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 11488 for ncn_progname in as; do
cd9a469c 11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11490$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 11491 if test -x $with_build_time_tools/${ncn_progname}; then
11492 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11494$as_echo "yes" >&6; }
c47832b1 11495 break
11496 else
cd9a469c 11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11498$as_echo "no" >&6; }
c47832b1 11499 fi
11500 done
11501fi
11502
11503if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11504 for ncn_progname in as; do
11505 if test -n "$ncn_target_tool_prefix"; then
11506 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11507set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 11508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11509$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11510if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
cd9a469c 11511 $as_echo_n "(cached) " >&6
c47832b1 11512else
11513 if test -n "$AS_FOR_TARGET"; then
11514 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11515else
b30fcfae 11516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11517for as_dir in $PATH
11518do
11519 IFS=$as_save_IFS
11520 test -z "$as_dir" && as_dir=.
cd9a469c 11521 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11523 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 11524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11525 break 2
11526 fi
11527done
cd9a469c 11528 done
11529IFS=$as_save_IFS
b30fcfae 11530
c47832b1 11531fi
11532fi
b30fcfae 11533AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
c47832b1 11534if test -n "$AS_FOR_TARGET"; then
cd9a469c 11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11536$as_echo "$AS_FOR_TARGET" >&6; }
c47832b1 11537else
cd9a469c 11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11539$as_echo "no" >&6; }
c47832b1 11540fi
11541
cd9a469c 11542
c47832b1 11543 fi
11544 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11545 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 11546set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11548$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11549if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
cd9a469c 11550 $as_echo_n "(cached) " >&6
ef8184c7 11551else
c47832b1 11552 if test -n "$AS_FOR_TARGET"; then
11553 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
ef8184c7 11554else
b30fcfae 11555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11556for as_dir in $PATH
11557do
11558 IFS=$as_save_IFS
11559 test -z "$as_dir" && as_dir=.
cd9a469c 11560 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11562 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
cd9a469c 11563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11564 break 2
11565 fi
11566done
cd9a469c 11567 done
11568IFS=$as_save_IFS
b30fcfae 11569
ef8184c7 11570fi
11571fi
b30fcfae 11572AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
c47832b1 11573if test -n "$AS_FOR_TARGET"; then
cd9a469c 11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11575$as_echo "$AS_FOR_TARGET" >&6; }
ef8184c7 11576else
cd9a469c 11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11578$as_echo "no" >&6; }
ef8184c7 11579fi
b30fcfae 11580
cd9a469c 11581
c47832b1 11582 fi
11583 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11584 done
11585fi
b30fcfae 11586
c47832b1 11587if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11588 set dummy as
11589 if test $build = $target ; then
11590 AS_FOR_TARGET="$2"
11591 else
11592 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
ef8184c7 11593 fi
b7ef8464 11594else
11595 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
c47832b1 11596fi
768691b5 11597
ab0da556 11598else
11599 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
ef8184c7 11600fi
11601
c47832b1 11602
11603
11604
11605if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11606 if test -n "$with_build_time_tools"; then
cd9a469c 11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11608$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
ab0da556 11609 if test -x $with_build_time_tools/dlltool; then
11610 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11611 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
cd9a469c 11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11613$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
ab0da556 11614 else
cd9a469c 11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11616$as_echo "no" >&6; }
ab0da556 11617 fi
c47832b1 11618 elif test $build != $host && test $have_gcc_for_target = yes; then
11619 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
b7ef8464 11620 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11621 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c47832b1 11622 fi
11623fi
38d7211b 11624if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 11625 # Extract the first word of "dlltool", so it can be a program name with args.
11626set dummy dlltool; ac_word=$2
cd9a469c 11627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11628$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11629if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
cd9a469c 11630 $as_echo_n "(cached) " >&6
ef8184c7 11631else
b30fcfae 11632 case $DLLTOOL_FOR_TARGET in
11633 [\\/]* | ?:[\\/]*)
c47832b1 11634 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11635 ;;
c47832b1 11636 *)
b30fcfae 11637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11638for as_dir in $gcc_cv_tool_dirs
11639do
11640 IFS=$as_save_IFS
11641 test -z "$as_dir" && as_dir=.
cd9a469c 11642 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11644 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 11645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11646 break 2
11647 fi
11648done
cd9a469c 11649 done
11650IFS=$as_save_IFS
b30fcfae 11651
c47832b1 11652 ;;
11653esac
ef8184c7 11654fi
b30fcfae 11655DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
c47832b1 11656if test -n "$DLLTOOL_FOR_TARGET"; then
cd9a469c 11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11658$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
ef8184c7 11659else
cd9a469c 11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11661$as_echo "no" >&6; }
ef8184c7 11662fi
11663
cd9a469c 11664
c47832b1 11665fi
11666if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
95a05732 11667
11668
11669if test -n "$DLLTOOL_FOR_TARGET"; then
11670 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11671elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11672 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11673fi
11674
11675if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11676 for ncn_progname in dlltool; do
11677 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11678set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11680$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11681if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
cd9a469c 11682 $as_echo_n "(cached) " >&6
95a05732 11683else
11684 if test -n "$DLLTOOL_FOR_TARGET"; then
11685 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11686else
11687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11688for as_dir in $PATH
11689do
11690 IFS=$as_save_IFS
11691 test -z "$as_dir" && as_dir=.
cd9a469c 11692 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 11694 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
cd9a469c 11695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 11696 break 2
11697 fi
11698done
cd9a469c 11699 done
11700IFS=$as_save_IFS
95a05732 11701
11702fi
11703fi
11704DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11705if test -n "$DLLTOOL_FOR_TARGET"; then
cd9a469c 11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11707$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
95a05732 11708else
cd9a469c 11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11710$as_echo "no" >&6; }
95a05732 11711fi
11712
cd9a469c 11713
95a05732 11714 done
11715fi
11716
11717if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 11718 for ncn_progname in dlltool; do
cd9a469c 11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11720$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 11721 if test -x $with_build_time_tools/${ncn_progname}; then
11722 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11724$as_echo "yes" >&6; }
c47832b1 11725 break
11726 else
cd9a469c 11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11728$as_echo "no" >&6; }
c47832b1 11729 fi
11730 done
11731fi
11732
11733if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11734 for ncn_progname in dlltool; do
11735 if test -n "$ncn_target_tool_prefix"; then
11736 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11737set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 11738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11739$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11740if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
cd9a469c 11741 $as_echo_n "(cached) " >&6
ef8184c7 11742else
c47832b1 11743 if test -n "$DLLTOOL_FOR_TARGET"; then
11744 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
ef8184c7 11745else
b30fcfae 11746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11747for as_dir in $PATH
11748do
11749 IFS=$as_save_IFS
11750 test -z "$as_dir" && as_dir=.
cd9a469c 11751 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11753 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 11754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11755 break 2
11756 fi
11757done
cd9a469c 11758 done
11759IFS=$as_save_IFS
b30fcfae 11760
ef8184c7 11761fi
11762fi
b30fcfae 11763DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
c47832b1 11764if test -n "$DLLTOOL_FOR_TARGET"; then
cd9a469c 11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11766$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
ef8184c7 11767else
cd9a469c 11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769$as_echo "no" >&6; }
ef8184c7 11770fi
ef8184c7 11771
cd9a469c 11772
c47832b1 11773 fi
11774 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11775 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11776set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11778$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11779if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
cd9a469c 11780 $as_echo_n "(cached) " >&6
ef8184c7 11781else
c47832b1 11782 if test -n "$DLLTOOL_FOR_TARGET"; then
11783 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
ef8184c7 11784else
b30fcfae 11785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11786for as_dir in $PATH
11787do
11788 IFS=$as_save_IFS
11789 test -z "$as_dir" && as_dir=.
cd9a469c 11790 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11792 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
cd9a469c 11793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11794 break 2
11795 fi
11796done
cd9a469c 11797 done
11798IFS=$as_save_IFS
b30fcfae 11799
ef8184c7 11800fi
11801fi
b30fcfae 11802DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
c47832b1 11803if test -n "$DLLTOOL_FOR_TARGET"; then
cd9a469c 11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11805$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
ef8184c7 11806else
cd9a469c 11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808$as_echo "no" >&6; }
ef8184c7 11809fi
b30fcfae 11810
cd9a469c 11811
c47832b1 11812 fi
11813 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11814 done
11815fi
b30fcfae 11816
c47832b1 11817if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11818 set dummy dlltool
11819 if test $build = $target ; then
11820 DLLTOOL_FOR_TARGET="$2"
11821 else
11822 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11823 fi
b7ef8464 11824else
11825 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
c47832b1 11826fi
11827
ab0da556 11828else
11829 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
c47832b1 11830fi
11831
ef8184c7 11832
c47832b1 11833
11834
11835if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11836 if test -n "$with_build_time_tools"; then
cd9a469c 11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11838$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
ab0da556 11839 if test -x $with_build_time_tools/ld; then
11840 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11841 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
cd9a469c 11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11843$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
ab0da556 11844 else
cd9a469c 11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11846$as_echo "no" >&6; }
ab0da556 11847 fi
c47832b1 11848 elif test $build != $host && test $have_gcc_for_target = yes; then
11849 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
b7ef8464 11850 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11851 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
768691b5 11852 fi
c47832b1 11853fi
38d7211b 11854if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 11855 # Extract the first word of "ld", so it can be a program name with args.
11856set dummy ld; ac_word=$2
cd9a469c 11857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11858$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11859if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
cd9a469c 11860 $as_echo_n "(cached) " >&6
ef8184c7 11861else
b30fcfae 11862 case $LD_FOR_TARGET in
11863 [\\/]* | ?:[\\/]*)
c47832b1 11864 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11865 ;;
c47832b1 11866 *)
b30fcfae 11867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11868for as_dir in $gcc_cv_tool_dirs
11869do
11870 IFS=$as_save_IFS
11871 test -z "$as_dir" && as_dir=.
cd9a469c 11872 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11874 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 11875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11876 break 2
11877 fi
11878done
cd9a469c 11879 done
11880IFS=$as_save_IFS
b30fcfae 11881
c47832b1 11882 ;;
11883esac
ef8184c7 11884fi
b30fcfae 11885LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
c47832b1 11886if test -n "$LD_FOR_TARGET"; then
cd9a469c 11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11888$as_echo "$LD_FOR_TARGET" >&6; }
ef8184c7 11889else
cd9a469c 11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891$as_echo "no" >&6; }
ef8184c7 11892fi
768691b5 11893
cd9a469c 11894
c47832b1 11895fi
11896if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
95a05732 11897
11898
11899if test -n "$LD_FOR_TARGET"; then
11900 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11901elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11902 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11903fi
11904
11905if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11906 for ncn_progname in ld; do
11907 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11908set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11910$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11911if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
cd9a469c 11912 $as_echo_n "(cached) " >&6
95a05732 11913else
11914 if test -n "$LD_FOR_TARGET"; then
11915 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11916else
11917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11918for as_dir in $PATH
11919do
11920 IFS=$as_save_IFS
11921 test -z "$as_dir" && as_dir=.
cd9a469c 11922 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 11924 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
cd9a469c 11925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 11926 break 2
11927 fi
11928done
cd9a469c 11929 done
11930IFS=$as_save_IFS
95a05732 11931
11932fi
11933fi
11934LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11935if test -n "$LD_FOR_TARGET"; then
cd9a469c 11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11937$as_echo "$LD_FOR_TARGET" >&6; }
95a05732 11938else
cd9a469c 11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11940$as_echo "no" >&6; }
95a05732 11941fi
11942
cd9a469c 11943
95a05732 11944 done
11945fi
11946
11947if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 11948 for ncn_progname in ld; do
cd9a469c 11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11950$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 11951 if test -x $with_build_time_tools/${ncn_progname}; then
11952 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11954$as_echo "yes" >&6; }
c47832b1 11955 break
11956 else
cd9a469c 11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11958$as_echo "no" >&6; }
c47832b1 11959 fi
11960 done
bb612911 11961fi
11962
c47832b1 11963if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11964 for ncn_progname in ld; do
11965 if test -n "$ncn_target_tool_prefix"; then
11966 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 11967set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 11968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11969$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 11970if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
cd9a469c 11971 $as_echo_n "(cached) " >&6
bb612911 11972else
ef8184c7 11973 if test -n "$LD_FOR_TARGET"; then
11974 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
bb612911 11975else
b30fcfae 11976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11977for as_dir in $PATH
11978do
11979 IFS=$as_save_IFS
11980 test -z "$as_dir" && as_dir=.
cd9a469c 11981 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 11982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 11983 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 11984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11985 break 2
11986 fi
11987done
cd9a469c 11988 done
11989IFS=$as_save_IFS
b30fcfae 11990
bb612911 11991fi
11992fi
b30fcfae 11993LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
ef8184c7 11994if test -n "$LD_FOR_TARGET"; then
cd9a469c 11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11996$as_echo "$LD_FOR_TARGET" >&6; }
bb612911 11997else
cd9a469c 11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11999$as_echo "no" >&6; }
bb612911 12000fi
12001
cd9a469c 12002
c47832b1 12003 fi
12004 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
12005 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 12006set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12008$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12009if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
cd9a469c 12010 $as_echo_n "(cached) " >&6
bb612911 12011else
768691b5 12012 if test -n "$LD_FOR_TARGET"; then
12013 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
bb612911 12014else
b30fcfae 12015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12016for as_dir in $PATH
12017do
12018 IFS=$as_save_IFS
12019 test -z "$as_dir" && as_dir=.
cd9a469c 12020 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 12022 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
cd9a469c 12023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12024 break 2
12025 fi
12026done
cd9a469c 12027 done
12028IFS=$as_save_IFS
b30fcfae 12029
bb612911 12030fi
12031fi
b30fcfae 12032LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
768691b5 12033if test -n "$LD_FOR_TARGET"; then
cd9a469c 12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12035$as_echo "$LD_FOR_TARGET" >&6; }
bb612911 12036else
cd9a469c 12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12038$as_echo "no" >&6; }
bb612911 12039fi
b30fcfae 12040
cd9a469c 12041
c47832b1 12042 fi
12043 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
12044 done
12045fi
b30fcfae 12046
768691b5 12047if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
12048 set dummy ld
12049 if test $build = $target ; then
12050 LD_FOR_TARGET="$2"
bb612911 12051 else
768691b5 12052 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 12053 fi
b7ef8464 12054else
12055 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
bb612911 12056fi
12057
ab0da556 12058else
12059 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
c47832b1 12060fi
12061
12062
12063
12064
12065if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12066 if test -n "$with_build_time_tools"; then
cd9a469c 12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
12068$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
ab0da556 12069 if test -x $with_build_time_tools/lipo; then
12070 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12071 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
cd9a469c 12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12073$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
ab0da556 12074 else
cd9a469c 12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12076$as_echo "no" >&6; }
ab0da556 12077 fi
c47832b1 12078 elif test $build != $host && test $have_gcc_for_target = yes; then
12079 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
b7ef8464 12080 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12081 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c47832b1 12082 fi
12083fi
95a05732 12084if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12085 # Extract the first word of "lipo", so it can be a program name with args.
12086set dummy lipo; ac_word=$2
cd9a469c 12087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12088$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12089if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
cd9a469c 12090 $as_echo_n "(cached) " >&6
95a05732 12091else
12092 case $LIPO_FOR_TARGET in
12093 [\\/]* | ?:[\\/]*)
12094 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12095 ;;
12096 *)
12097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12098for as_dir in $gcc_cv_tool_dirs
12099do
12100 IFS=$as_save_IFS
12101 test -z "$as_dir" && as_dir=.
cd9a469c 12102 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 12104 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 12105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 12106 break 2
12107 fi
12108done
cd9a469c 12109 done
12110IFS=$as_save_IFS
95a05732 12111
12112 ;;
12113esac
12114fi
12115LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
95a05732 12116if test -n "$LIPO_FOR_TARGET"; then
cd9a469c 12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12118$as_echo "$LIPO_FOR_TARGET" >&6; }
95a05732 12119else
cd9a469c 12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12121$as_echo "no" >&6; }
95a05732 12122fi
12123
cd9a469c 12124
95a05732 12125fi
12126if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12127
12128
12129if test -n "$LIPO_FOR_TARGET"; then
12130 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12131elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12132 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12133fi
12134
12135if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12136 for ncn_progname in lipo; do
12137 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12138set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12140$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12141if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
cd9a469c 12142 $as_echo_n "(cached) " >&6
c47832b1 12143else
95a05732 12144 if test -n "$LIPO_FOR_TARGET"; then
12145 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12146else
12147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12148for as_dir in $PATH
b30fcfae 12149do
12150 IFS=$as_save_IFS
12151 test -z "$as_dir" && as_dir=.
cd9a469c 12152 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 12154 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
cd9a469c 12155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12156 break 2
12157 fi
12158done
cd9a469c 12159 done
12160IFS=$as_save_IFS
b30fcfae 12161
c47832b1 12162fi
95a05732 12163fi
12164LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
c47832b1 12165if test -n "$LIPO_FOR_TARGET"; then
cd9a469c 12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12167$as_echo "$LIPO_FOR_TARGET" >&6; }
c47832b1 12168else
cd9a469c 12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12170$as_echo "no" >&6; }
c47832b1 12171fi
12172
cd9a469c 12173
95a05732 12174 done
c47832b1 12175fi
95a05732 12176
12177if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 12178 for ncn_progname in lipo; do
cd9a469c 12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12180$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 12181 if test -x $with_build_time_tools/${ncn_progname}; then
12182 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12184$as_echo "yes" >&6; }
c47832b1 12185 break
12186 else
cd9a469c 12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12188$as_echo "no" >&6; }
c47832b1 12189 fi
12190 done
12191fi
12192
12193if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12194 for ncn_progname in lipo; do
12195 if test -n "$ncn_target_tool_prefix"; then
12196 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 12197set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 12198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12199$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12200if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
cd9a469c 12201 $as_echo_n "(cached) " >&6
9fec3fa8 12202else
12203 if test -n "$LIPO_FOR_TARGET"; then
12204 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12205else
b30fcfae 12206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12207for as_dir in $PATH
12208do
12209 IFS=$as_save_IFS
12210 test -z "$as_dir" && as_dir=.
cd9a469c 12211 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 12213 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 12214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12215 break 2
12216 fi
12217done
cd9a469c 12218 done
12219IFS=$as_save_IFS
b30fcfae 12220
9fec3fa8 12221fi
12222fi
b30fcfae 12223LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9fec3fa8 12224if test -n "$LIPO_FOR_TARGET"; then
cd9a469c 12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12226$as_echo "$LIPO_FOR_TARGET" >&6; }
9fec3fa8 12227else
cd9a469c 12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12229$as_echo "no" >&6; }
9fec3fa8 12230fi
12231
cd9a469c 12232
c47832b1 12233 fi
12234 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12235 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9fec3fa8 12236set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12238$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12239if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
cd9a469c 12240 $as_echo_n "(cached) " >&6
9fec3fa8 12241else
12242 if test -n "$LIPO_FOR_TARGET"; then
9886f3d1 12243 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12244else
b30fcfae 12245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12246for as_dir in $PATH
12247do
12248 IFS=$as_save_IFS
12249 test -z "$as_dir" && as_dir=.
cd9a469c 12250 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 12252 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
cd9a469c 12253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12254 break 2
12255 fi
12256done
cd9a469c 12257 done
12258IFS=$as_save_IFS
b30fcfae 12259
9fec3fa8 12260fi
12261fi
b30fcfae 12262LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9fec3fa8 12263if test -n "$LIPO_FOR_TARGET"; then
cd9a469c 12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12265$as_echo "$LIPO_FOR_TARGET" >&6; }
9fec3fa8 12266else
cd9a469c 12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12268$as_echo "no" >&6; }
9fec3fa8 12269fi
b30fcfae 12270
cd9a469c 12271
c47832b1 12272 fi
12273 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12274 done
12275fi
b30fcfae 12276
9fec3fa8 12277if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12278 set dummy lipo
12279 if test $build = $target ; then
12280 LIPO_FOR_TARGET="$2"
12281 else
12282 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12283 fi
b7ef8464 12284else
12285 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
9fec3fa8 12286fi
12287
ab0da556 12288else
12289 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
c47832b1 12290fi
12291
12292
12293
12294
12295if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12296 if test -n "$with_build_time_tools"; then
cd9a469c 12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12298$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
ab0da556 12299 if test -x $with_build_time_tools/nm; then
12300 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12301 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
cd9a469c 12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12303$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
ab0da556 12304 else
cd9a469c 12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12306$as_echo "no" >&6; }
ab0da556 12307 fi
c47832b1 12308 elif test $build != $host && test $have_gcc_for_target = yes; then
12309 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
b7ef8464 12310 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12311 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c47832b1 12312 fi
12313fi
38d7211b 12314if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 12315 # Extract the first word of "nm", so it can be a program name with args.
12316set dummy nm; ac_word=$2
cd9a469c 12317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12318$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12319if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
cd9a469c 12320 $as_echo_n "(cached) " >&6
c47832b1 12321else
b30fcfae 12322 case $NM_FOR_TARGET in
12323 [\\/]* | ?:[\\/]*)
c47832b1 12324 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12325 ;;
c47832b1 12326 *)
b30fcfae 12327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12328for as_dir in $gcc_cv_tool_dirs
12329do
12330 IFS=$as_save_IFS
12331 test -z "$as_dir" && as_dir=.
cd9a469c 12332 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 12334 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 12335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12336 break 2
12337 fi
12338done
cd9a469c 12339 done
12340IFS=$as_save_IFS
b30fcfae 12341
c47832b1 12342 ;;
12343esac
12344fi
b30fcfae 12345NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
c47832b1 12346if test -n "$NM_FOR_TARGET"; then
cd9a469c 12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12348$as_echo "$NM_FOR_TARGET" >&6; }
c47832b1 12349else
cd9a469c 12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12351$as_echo "no" >&6; }
c47832b1 12352fi
12353
cd9a469c 12354
c47832b1 12355fi
12356if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
95a05732 12357
12358
12359if test -n "$NM_FOR_TARGET"; then
12360 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12361elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12362 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12363fi
12364
12365if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12366 for ncn_progname in nm; do
12367 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12368set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12370$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12371if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
cd9a469c 12372 $as_echo_n "(cached) " >&6
95a05732 12373else
12374 if test -n "$NM_FOR_TARGET"; then
12375 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12376else
12377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12378for as_dir in $PATH
12379do
12380 IFS=$as_save_IFS
12381 test -z "$as_dir" && as_dir=.
cd9a469c 12382 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 12384 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
cd9a469c 12385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 12386 break 2
12387 fi
12388done
cd9a469c 12389 done
12390IFS=$as_save_IFS
95a05732 12391
12392fi
12393fi
12394NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12395if test -n "$NM_FOR_TARGET"; then
cd9a469c 12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12397$as_echo "$NM_FOR_TARGET" >&6; }
95a05732 12398else
cd9a469c 12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12400$as_echo "no" >&6; }
95a05732 12401fi
12402
cd9a469c 12403
95a05732 12404 done
12405fi
12406
12407if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 12408 for ncn_progname in nm; do
cd9a469c 12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12410$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 12411 if test -x $with_build_time_tools/${ncn_progname}; then
12412 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12414$as_echo "yes" >&6; }
c47832b1 12415 break
12416 else
cd9a469c 12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12418$as_echo "no" >&6; }
c47832b1 12419 fi
12420 done
12421fi
12422
12423if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12424 for ncn_progname in nm; do
12425 if test -n "$ncn_target_tool_prefix"; then
12426 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9fec3fa8 12427set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 12428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12429$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12430if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
cd9a469c 12431 $as_echo_n "(cached) " >&6
bb612911 12432else
ef8184c7 12433 if test -n "$NM_FOR_TARGET"; then
12434 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
bb612911 12435else
b30fcfae 12436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12437for as_dir in $PATH
12438do
12439 IFS=$as_save_IFS
12440 test -z "$as_dir" && as_dir=.
cd9a469c 12441 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 12443 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 12444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12445 break 2
12446 fi
12447done
cd9a469c 12448 done
12449IFS=$as_save_IFS
b30fcfae 12450
bb612911 12451fi
12452fi
b30fcfae 12453NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
ef8184c7 12454if test -n "$NM_FOR_TARGET"; then
cd9a469c 12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12456$as_echo "$NM_FOR_TARGET" >&6; }
bb612911 12457else
cd9a469c 12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12459$as_echo "no" >&6; }
bb612911 12460fi
12461
cd9a469c 12462
c47832b1 12463 fi
12464 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12465 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 12466set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12468$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12469if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
cd9a469c 12470 $as_echo_n "(cached) " >&6
bb612911 12471else
768691b5 12472 if test -n "$NM_FOR_TARGET"; then
12473 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
bb612911 12474else
b30fcfae 12475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12476for as_dir in $PATH
12477do
12478 IFS=$as_save_IFS
12479 test -z "$as_dir" && as_dir=.
cd9a469c 12480 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 12482 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
cd9a469c 12483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12484 break 2
12485 fi
12486done
cd9a469c 12487 done
12488IFS=$as_save_IFS
b30fcfae 12489
bb612911 12490fi
12491fi
b30fcfae 12492NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
768691b5 12493if test -n "$NM_FOR_TARGET"; then
cd9a469c 12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12495$as_echo "$NM_FOR_TARGET" >&6; }
bb612911 12496else
cd9a469c 12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12498$as_echo "no" >&6; }
bb612911 12499fi
b30fcfae 12500
cd9a469c 12501
c47832b1 12502 fi
12503 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12504 done
12505fi
b30fcfae 12506
768691b5 12507if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12508 set dummy nm
12509 if test $build = $target ; then
12510 NM_FOR_TARGET="$2"
bb612911 12511 else
768691b5 12512 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 12513 fi
b7ef8464 12514else
12515 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
bb612911 12516fi
12517
ab0da556 12518else
12519 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
c47832b1 12520fi
12521
12522
12523
12524
fc740d70 12525if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12526 if test -n "$with_build_time_tools"; then
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12528$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12529 if test -x $with_build_time_tools/objcopy; then
12530 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12531 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12533$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12534 else
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12536$as_echo "no" >&6; }
12537 fi
12538 elif test $build != $host && test $have_gcc_for_target = yes; then
12539 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12540 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12541 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12542 fi
12543fi
12544if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12545 # Extract the first word of "objcopy", so it can be a program name with args.
12546set dummy objcopy; ac_word=$2
12547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12548$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12549if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
fc740d70 12550 $as_echo_n "(cached) " >&6
12551else
12552 case $OBJCOPY_FOR_TARGET in
12553 [\\/]* | ?:[\\/]*)
12554 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12555 ;;
12556 *)
12557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12558for as_dir in $gcc_cv_tool_dirs
12559do
12560 IFS=$as_save_IFS
12561 test -z "$as_dir" && as_dir=.
12562 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fc740d70 12564 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12566 break 2
12567 fi
12568done
12569 done
12570IFS=$as_save_IFS
12571
12572 ;;
12573esac
12574fi
12575OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12576if test -n "$OBJCOPY_FOR_TARGET"; then
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12578$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12579else
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12581$as_echo "no" >&6; }
12582fi
12583
12584
12585fi
12586if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12587
12588
12589if test -n "$OBJCOPY_FOR_TARGET"; then
12590 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12591elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12592 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12593fi
12594
12595if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12596 for ncn_progname in objcopy; do
12597 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12598set dummy ${ncn_progname}; ac_word=$2
12599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12600$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12601if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
fc740d70 12602 $as_echo_n "(cached) " >&6
12603else
12604 if test -n "$OBJCOPY_FOR_TARGET"; then
12605 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12606else
12607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12608for as_dir in $PATH
12609do
12610 IFS=$as_save_IFS
12611 test -z "$as_dir" && as_dir=.
12612 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fc740d70 12614 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12616 break 2
12617 fi
12618done
12619 done
12620IFS=$as_save_IFS
12621
12622fi
12623fi
12624OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12625if test -n "$OBJCOPY_FOR_TARGET"; then
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12627$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12628else
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12630$as_echo "no" >&6; }
12631fi
12632
12633
12634 done
12635fi
12636
12637if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12638 for ncn_progname in objcopy; do
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12640$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12641 if test -x $with_build_time_tools/${ncn_progname}; then
12642 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12644$as_echo "yes" >&6; }
12645 break
12646 else
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12648$as_echo "no" >&6; }
12649 fi
12650 done
12651fi
12652
12653if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12654 for ncn_progname in objcopy; do
12655 if test -n "$ncn_target_tool_prefix"; then
12656 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12657set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12659$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12660if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
fc740d70 12661 $as_echo_n "(cached) " >&6
12662else
12663 if test -n "$OBJCOPY_FOR_TARGET"; then
12664 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12665else
12666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12667for as_dir in $PATH
12668do
12669 IFS=$as_save_IFS
12670 test -z "$as_dir" && as_dir=.
12671 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fc740d70 12673 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12675 break 2
12676 fi
12677done
12678 done
12679IFS=$as_save_IFS
12680
12681fi
12682fi
12683OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12684if test -n "$OBJCOPY_FOR_TARGET"; then
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12686$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12687else
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12689$as_echo "no" >&6; }
12690fi
12691
12692
12693 fi
12694 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12695 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12696set dummy ${ncn_progname}; ac_word=$2
12697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12698$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12699if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
fc740d70 12700 $as_echo_n "(cached) " >&6
12701else
12702 if test -n "$OBJCOPY_FOR_TARGET"; then
12703 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12704else
12705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12706for as_dir in $PATH
12707do
12708 IFS=$as_save_IFS
12709 test -z "$as_dir" && as_dir=.
12710 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fc740d70 12712 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12714 break 2
12715 fi
12716done
12717 done
12718IFS=$as_save_IFS
12719
12720fi
12721fi
12722OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12723if test -n "$OBJCOPY_FOR_TARGET"; then
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12725$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12726else
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12728$as_echo "no" >&6; }
12729fi
12730
12731
12732 fi
12733 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12734 done
12735fi
12736
12737if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12738 set dummy objcopy
12739 if test $build = $target ; then
12740 OBJCOPY_FOR_TARGET="$2"
12741 else
12742 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12743 fi
12744else
12745 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12746fi
12747
12748else
12749 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12750fi
12751
12752
12753
12754
c47832b1 12755if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12756 if test -n "$with_build_time_tools"; then
cd9a469c 12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12758$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
ab0da556 12759 if test -x $with_build_time_tools/objdump; then
12760 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12761 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
cd9a469c 12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12763$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
ab0da556 12764 else
cd9a469c 12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12766$as_echo "no" >&6; }
ab0da556 12767 fi
c47832b1 12768 elif test $build != $host && test $have_gcc_for_target = yes; then
12769 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
b7ef8464 12770 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12771 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c47832b1 12772 fi
12773fi
38d7211b 12774if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 12775 # Extract the first word of "objdump", so it can be a program name with args.
12776set dummy objdump; ac_word=$2
cd9a469c 12777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12778$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12779if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
cd9a469c 12780 $as_echo_n "(cached) " >&6
c47832b1 12781else
b30fcfae 12782 case $OBJDUMP_FOR_TARGET in
12783 [\\/]* | ?:[\\/]*)
c47832b1 12784 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12785 ;;
c47832b1 12786 *)
b30fcfae 12787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12788for as_dir in $gcc_cv_tool_dirs
12789do
12790 IFS=$as_save_IFS
12791 test -z "$as_dir" && as_dir=.
cd9a469c 12792 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 12794 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 12795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12796 break 2
12797 fi
12798done
cd9a469c 12799 done
12800IFS=$as_save_IFS
b30fcfae 12801
c47832b1 12802 ;;
12803esac
12804fi
b30fcfae 12805OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
c47832b1 12806if test -n "$OBJDUMP_FOR_TARGET"; then
cd9a469c 12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12808$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
c47832b1 12809else
cd9a469c 12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12811$as_echo "no" >&6; }
c47832b1 12812fi
12813
cd9a469c 12814
c47832b1 12815fi
12816if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
95a05732 12817
12818
12819if test -n "$OBJDUMP_FOR_TARGET"; then
12820 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12821elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12822 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12823fi
12824
12825if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12826 for ncn_progname in objdump; do
12827 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12828set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12830$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12831if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
cd9a469c 12832 $as_echo_n "(cached) " >&6
95a05732 12833else
12834 if test -n "$OBJDUMP_FOR_TARGET"; then
12835 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12836else
12837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12838for as_dir in $PATH
12839do
12840 IFS=$as_save_IFS
12841 test -z "$as_dir" && as_dir=.
cd9a469c 12842 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 12844 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
cd9a469c 12845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 12846 break 2
12847 fi
12848done
cd9a469c 12849 done
12850IFS=$as_save_IFS
95a05732 12851
12852fi
12853fi
12854OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12855if test -n "$OBJDUMP_FOR_TARGET"; then
cd9a469c 12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12857$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
95a05732 12858else
cd9a469c 12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12860$as_echo "no" >&6; }
95a05732 12861fi
12862
cd9a469c 12863
95a05732 12864 done
12865fi
12866
12867if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 12868 for ncn_progname in objdump; do
cd9a469c 12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12870$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 12871 if test -x $with_build_time_tools/${ncn_progname}; then
12872 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12874$as_echo "yes" >&6; }
c47832b1 12875 break
12876 else
cd9a469c 12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12878$as_echo "no" >&6; }
c47832b1 12879 fi
12880 done
12881fi
12882
12883if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12884 for ncn_progname in objdump; do
12885 if test -n "$ncn_target_tool_prefix"; then
12886 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 12887set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 12888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12889$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12890if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
cd9a469c 12891 $as_echo_n "(cached) " >&6
ae74ffb7 12892else
12893 if test -n "$OBJDUMP_FOR_TARGET"; then
12894 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12895else
b30fcfae 12896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12897for as_dir in $PATH
12898do
12899 IFS=$as_save_IFS
12900 test -z "$as_dir" && as_dir=.
cd9a469c 12901 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 12903 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 12904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12905 break 2
12906 fi
12907done
cd9a469c 12908 done
12909IFS=$as_save_IFS
b30fcfae 12910
ae74ffb7 12911fi
12912fi
b30fcfae 12913OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
ae74ffb7 12914if test -n "$OBJDUMP_FOR_TARGET"; then
cd9a469c 12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12916$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
ae74ffb7 12917else
cd9a469c 12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12919$as_echo "no" >&6; }
ae74ffb7 12920fi
12921
cd9a469c 12922
c47832b1 12923 fi
12924 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12925 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
ae74ffb7 12926set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12928$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 12929if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
cd9a469c 12930 $as_echo_n "(cached) " >&6
ae74ffb7 12931else
12932 if test -n "$OBJDUMP_FOR_TARGET"; then
12933 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12934else
b30fcfae 12935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12936for as_dir in $PATH
12937do
12938 IFS=$as_save_IFS
12939 test -z "$as_dir" && as_dir=.
cd9a469c 12940 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 12941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 12942 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
cd9a469c 12943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12944 break 2
12945 fi
12946done
cd9a469c 12947 done
12948IFS=$as_save_IFS
b30fcfae 12949
ae74ffb7 12950fi
12951fi
b30fcfae 12952OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
ae74ffb7 12953if test -n "$OBJDUMP_FOR_TARGET"; then
cd9a469c 12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12955$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
ae74ffb7 12956else
cd9a469c 12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12958$as_echo "no" >&6; }
ae74ffb7 12959fi
b30fcfae 12960
cd9a469c 12961
c47832b1 12962 fi
12963 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12964 done
12965fi
b30fcfae 12966
ae74ffb7 12967if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12968 set dummy objdump
12969 if test $build = $target ; then
12970 OBJDUMP_FOR_TARGET="$2"
12971 else
12972 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12973 fi
b7ef8464 12974else
12975 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
ae74ffb7 12976fi
12977
ab0da556 12978else
12979 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
c47832b1 12980fi
12981
12982
12983
12984
16706a2e 12985if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
12986 if test -n "$with_build_time_tools"; then
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
12988$as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
12989 if test -x $with_build_time_tools/otool; then
12990 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
12991 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
12993$as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
12994 else
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12996$as_echo "no" >&6; }
12997 fi
12998 elif test $build != $host && test $have_gcc_for_target = yes; then
12999 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
13000 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
13001 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
13002 fi
13003fi
13004if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13005 # Extract the first word of "otool", so it can be a program name with args.
13006set dummy otool; ac_word=$2
13007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13008$as_echo_n "checking for $ac_word... " >&6; }
13009if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
13010 $as_echo_n "(cached) " >&6
13011else
13012 case $OTOOL_FOR_TARGET in
13013 [\\/]* | ?:[\\/]*)
13014 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
13015 ;;
13016 *)
13017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13018for as_dir in $gcc_cv_tool_dirs
13019do
13020 IFS=$as_save_IFS
13021 test -z "$as_dir" && as_dir=.
13022 for ac_exec_ext in '' $ac_executable_extensions; do
13023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13024 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13026 break 2
13027 fi
13028done
13029 done
13030IFS=$as_save_IFS
13031
13032 ;;
13033esac
13034fi
13035OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
13036if test -n "$OTOOL_FOR_TARGET"; then
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13038$as_echo "$OTOOL_FOR_TARGET" >&6; }
13039else
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13041$as_echo "no" >&6; }
13042fi
13043
13044
13045fi
13046if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
13047
13048
13049if test -n "$OTOOL_FOR_TARGET"; then
13050 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
13051elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13052 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13053fi
13054
13055if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13056 for ncn_progname in otool; do
13057 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13058set dummy ${ncn_progname}; ac_word=$2
13059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13060$as_echo_n "checking for $ac_word... " >&6; }
13061if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13062 $as_echo_n "(cached) " >&6
13063else
13064 if test -n "$OTOOL_FOR_TARGET"; then
13065 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13066else
13067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13068for as_dir in $PATH
13069do
13070 IFS=$as_save_IFS
13071 test -z "$as_dir" && as_dir=.
13072 for ac_exec_ext in '' $ac_executable_extensions; do
13073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13074 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
13075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13076 break 2
13077 fi
13078done
13079 done
13080IFS=$as_save_IFS
13081
13082fi
13083fi
13084OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13085if test -n "$OTOOL_FOR_TARGET"; then
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13087$as_echo "$OTOOL_FOR_TARGET" >&6; }
13088else
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13090$as_echo "no" >&6; }
13091fi
13092
13093
13094 done
13095fi
13096
13097if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
13098 for ncn_progname in otool; do
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13100$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13101 if test -x $with_build_time_tools/${ncn_progname}; then
13102 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13104$as_echo "yes" >&6; }
13105 break
13106 else
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13108$as_echo "no" >&6; }
13109 fi
13110 done
13111fi
13112
13113if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13114 for ncn_progname in otool; do
13115 if test -n "$ncn_target_tool_prefix"; then
13116 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13117set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13119$as_echo_n "checking for $ac_word... " >&6; }
13120if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13121 $as_echo_n "(cached) " >&6
13122else
13123 if test -n "$OTOOL_FOR_TARGET"; then
13124 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13125else
13126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13127for as_dir in $PATH
13128do
13129 IFS=$as_save_IFS
13130 test -z "$as_dir" && as_dir=.
13131 for ac_exec_ext in '' $ac_executable_extensions; do
13132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13133 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13135 break 2
13136 fi
13137done
13138 done
13139IFS=$as_save_IFS
13140
13141fi
13142fi
13143OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13144if test -n "$OTOOL_FOR_TARGET"; then
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13146$as_echo "$OTOOL_FOR_TARGET" >&6; }
13147else
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13149$as_echo "no" >&6; }
13150fi
13151
13152
13153 fi
13154 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
13155 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13156set dummy ${ncn_progname}; ac_word=$2
13157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13158$as_echo_n "checking for $ac_word... " >&6; }
13159if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13160 $as_echo_n "(cached) " >&6
13161else
13162 if test -n "$OTOOL_FOR_TARGET"; then
13163 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13164else
13165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13166for as_dir in $PATH
13167do
13168 IFS=$as_save_IFS
13169 test -z "$as_dir" && as_dir=.
13170 for ac_exec_ext in '' $ac_executable_extensions; do
13171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13172 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
13173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13174 break 2
13175 fi
13176done
13177 done
13178IFS=$as_save_IFS
13179
13180fi
13181fi
13182OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13183if test -n "$OTOOL_FOR_TARGET"; then
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13185$as_echo "$OTOOL_FOR_TARGET" >&6; }
13186else
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13188$as_echo "no" >&6; }
13189fi
13190
13191
13192 fi
13193 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
13194 done
13195fi
13196
13197if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
13198 set dummy otool
13199 if test $build = $target ; then
13200 OTOOL_FOR_TARGET="$2"
13201 else
13202 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
13203 fi
13204else
13205 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
13206fi
13207
13208else
13209 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
13210fi
13211
13212
13213
13214
c47832b1 13215if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13216 if test -n "$with_build_time_tools"; then
cd9a469c 13217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
13218$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
ab0da556 13219 if test -x $with_build_time_tools/ranlib; then
13220 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
13221 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
cd9a469c 13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
13223$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
ab0da556 13224 else
cd9a469c 13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13226$as_echo "no" >&6; }
ab0da556 13227 fi
c47832b1 13228 elif test $build != $host && test $have_gcc_for_target = yes; then
13229 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
b7ef8464 13230 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
13231 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c47832b1 13232 fi
13233fi
38d7211b 13234if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 13235 # Extract the first word of "ranlib", so it can be a program name with args.
13236set dummy ranlib; ac_word=$2
cd9a469c 13237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13238$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13239if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
cd9a469c 13240 $as_echo_n "(cached) " >&6
c47832b1 13241else
b30fcfae 13242 case $RANLIB_FOR_TARGET in
13243 [\\/]* | ?:[\\/]*)
c47832b1 13244 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
13245 ;;
c47832b1 13246 *)
b30fcfae 13247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13248for as_dir in $gcc_cv_tool_dirs
13249do
13250 IFS=$as_save_IFS
13251 test -z "$as_dir" && as_dir=.
cd9a469c 13252 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 13254 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 13255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 13256 break 2
13257 fi
13258done
cd9a469c 13259 done
13260IFS=$as_save_IFS
b30fcfae 13261
c47832b1 13262 ;;
13263esac
13264fi
b30fcfae 13265RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
c47832b1 13266if test -n "$RANLIB_FOR_TARGET"; then
cd9a469c 13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13268$as_echo "$RANLIB_FOR_TARGET" >&6; }
c47832b1 13269else
cd9a469c 13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13271$as_echo "no" >&6; }
c47832b1 13272fi
13273
cd9a469c 13274
c47832b1 13275fi
13276if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
95a05732 13277
13278
13279if test -n "$RANLIB_FOR_TARGET"; then
13280 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13281elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13282 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13283fi
13284
13285if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13286 for ncn_progname in ranlib; do
13287 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13288set dummy ${ncn_progname}; ac_word=$2
cd9a469c 13289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13290$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13291if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
cd9a469c 13292 $as_echo_n "(cached) " >&6
95a05732 13293else
13294 if test -n "$RANLIB_FOR_TARGET"; then
13295 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13296else
13297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13298for as_dir in $PATH
13299do
13300 IFS=$as_save_IFS
13301 test -z "$as_dir" && as_dir=.
cd9a469c 13302 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 13304 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
cd9a469c 13305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 13306 break 2
13307 fi
13308done
cd9a469c 13309 done
13310IFS=$as_save_IFS
95a05732 13311
13312fi
13313fi
13314RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13315if test -n "$RANLIB_FOR_TARGET"; then
cd9a469c 13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13317$as_echo "$RANLIB_FOR_TARGET" >&6; }
95a05732 13318else
cd9a469c 13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13320$as_echo "no" >&6; }
95a05732 13321fi
13322
cd9a469c 13323
95a05732 13324 done
13325fi
13326
13327if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 13328 for ncn_progname in ranlib; do
cd9a469c 13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13330$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 13331 if test -x $with_build_time_tools/${ncn_progname}; then
13332 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13334$as_echo "yes" >&6; }
c47832b1 13335 break
13336 else
cd9a469c 13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13338$as_echo "no" >&6; }
c47832b1 13339 fi
13340 done
13341fi
13342
13343if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13344 for ncn_progname in ranlib; do
13345 if test -n "$ncn_target_tool_prefix"; then
13346 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
ae74ffb7 13347set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 13348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13349$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13350if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
cd9a469c 13351 $as_echo_n "(cached) " >&6
bb612911 13352else
ef8184c7 13353 if test -n "$RANLIB_FOR_TARGET"; then
13354 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
bb612911 13355else
b30fcfae 13356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13357for as_dir in $PATH
13358do
13359 IFS=$as_save_IFS
13360 test -z "$as_dir" && as_dir=.
cd9a469c 13361 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 13363 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 13364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 13365 break 2
13366 fi
13367done
cd9a469c 13368 done
13369IFS=$as_save_IFS
b30fcfae 13370
bb612911 13371fi
13372fi
b30fcfae 13373RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
ef8184c7 13374if test -n "$RANLIB_FOR_TARGET"; then
cd9a469c 13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13376$as_echo "$RANLIB_FOR_TARGET" >&6; }
bb612911 13377else
cd9a469c 13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13379$as_echo "no" >&6; }
bb612911 13380fi
13381
cd9a469c 13382
c47832b1 13383 fi
13384 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
13385 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 13386set dummy ${ncn_progname}; ac_word=$2
cd9a469c 13387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13388$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13389if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
cd9a469c 13390 $as_echo_n "(cached) " >&6
bb612911 13391else
768691b5 13392 if test -n "$RANLIB_FOR_TARGET"; then
13393 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
bb612911 13394else
b30fcfae 13395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13396for as_dir in $PATH
13397do
13398 IFS=$as_save_IFS
13399 test -z "$as_dir" && as_dir=.
cd9a469c 13400 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 13402 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
cd9a469c 13403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 13404 break 2
13405 fi
13406done
cd9a469c 13407 done
13408IFS=$as_save_IFS
b30fcfae 13409
bb612911 13410fi
13411fi
b30fcfae 13412RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
768691b5 13413if test -n "$RANLIB_FOR_TARGET"; then
cd9a469c 13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13415$as_echo "$RANLIB_FOR_TARGET" >&6; }
bb612911 13416else
cd9a469c 13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13418$as_echo "no" >&6; }
bb612911 13419fi
b30fcfae 13420
cd9a469c 13421
c47832b1 13422 fi
13423 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13424 done
13425fi
b30fcfae 13426
c47832b1 13427if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13428 set dummy ranlib
13429 if test $build = $target ; then
13430 RANLIB_FOR_TARGET="$2"
13431 else
13432 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 13433 fi
b7ef8464 13434else
13435 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
c47832b1 13436fi
768691b5 13437
ab0da556 13438else
13439 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
bb612911 13440fi
13441
c47832b1 13442
13443
13444
3f71364d 13445if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13446 if test -n "$with_build_time_tools"; then
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13448$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13449 if test -x $with_build_time_tools/readelf; then
13450 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13451 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13453$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13454 else
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13456$as_echo "no" >&6; }
13457 fi
13458 elif test $build != $host && test $have_gcc_for_target = yes; then
13459 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13460 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13461 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13462 fi
13463fi
13464if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13465 # Extract the first word of "readelf", so it can be a program name with args.
13466set dummy readelf; ac_word=$2
13467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13468$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13469if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
3f71364d 13470 $as_echo_n "(cached) " >&6
13471else
13472 case $READELF_FOR_TARGET in
13473 [\\/]* | ?:[\\/]*)
13474 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13475 ;;
13476 *)
13477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13478for as_dir in $gcc_cv_tool_dirs
13479do
13480 IFS=$as_save_IFS
13481 test -z "$as_dir" && as_dir=.
13482 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3f71364d 13484 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13486 break 2
13487 fi
13488done
13489 done
13490IFS=$as_save_IFS
13491
13492 ;;
13493esac
13494fi
13495READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13496if test -n "$READELF_FOR_TARGET"; then
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13498$as_echo "$READELF_FOR_TARGET" >&6; }
13499else
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13501$as_echo "no" >&6; }
13502fi
13503
13504
13505fi
13506if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13507
13508
13509if test -n "$READELF_FOR_TARGET"; then
13510 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13511elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13512 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13513fi
13514
13515if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13516 for ncn_progname in readelf; do
13517 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13518set dummy ${ncn_progname}; ac_word=$2
13519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13520$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13521if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
3f71364d 13522 $as_echo_n "(cached) " >&6
13523else
13524 if test -n "$READELF_FOR_TARGET"; then
13525 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13526else
13527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13528for as_dir in $PATH
13529do
13530 IFS=$as_save_IFS
13531 test -z "$as_dir" && as_dir=.
13532 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3f71364d 13534 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13536 break 2
13537 fi
13538done
13539 done
13540IFS=$as_save_IFS
13541
13542fi
13543fi
13544READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13545if test -n "$READELF_FOR_TARGET"; then
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13547$as_echo "$READELF_FOR_TARGET" >&6; }
13548else
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13550$as_echo "no" >&6; }
13551fi
13552
13553
13554 done
13555fi
13556
13557if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13558 for ncn_progname in readelf; do
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13560$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13561 if test -x $with_build_time_tools/${ncn_progname}; then
13562 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13564$as_echo "yes" >&6; }
13565 break
13566 else
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13568$as_echo "no" >&6; }
13569 fi
13570 done
13571fi
13572
13573if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13574 for ncn_progname in readelf; do
13575 if test -n "$ncn_target_tool_prefix"; then
13576 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13577set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13579$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13580if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
3f71364d 13581 $as_echo_n "(cached) " >&6
13582else
13583 if test -n "$READELF_FOR_TARGET"; then
13584 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13585else
13586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13587for as_dir in $PATH
13588do
13589 IFS=$as_save_IFS
13590 test -z "$as_dir" && as_dir=.
13591 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3f71364d 13593 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13595 break 2
13596 fi
13597done
13598 done
13599IFS=$as_save_IFS
13600
13601fi
13602fi
13603READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13604if test -n "$READELF_FOR_TARGET"; then
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13606$as_echo "$READELF_FOR_TARGET" >&6; }
13607else
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13609$as_echo "no" >&6; }
13610fi
13611
13612
13613 fi
13614 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13615 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13616set dummy ${ncn_progname}; ac_word=$2
13617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13618$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13619if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
3f71364d 13620 $as_echo_n "(cached) " >&6
13621else
13622 if test -n "$READELF_FOR_TARGET"; then
13623 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13624else
13625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13626for as_dir in $PATH
13627do
13628 IFS=$as_save_IFS
13629 test -z "$as_dir" && as_dir=.
13630 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3f71364d 13632 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13634 break 2
13635 fi
13636done
13637 done
13638IFS=$as_save_IFS
13639
13640fi
13641fi
13642READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13643if test -n "$READELF_FOR_TARGET"; then
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13645$as_echo "$READELF_FOR_TARGET" >&6; }
13646else
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13648$as_echo "no" >&6; }
13649fi
13650
13651
13652 fi
13653 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13654 done
13655fi
13656
13657if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13658 set dummy readelf
13659 if test $build = $target ; then
13660 READELF_FOR_TARGET="$2"
13661 else
13662 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13663 fi
13664else
13665 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13666fi
13667
13668else
13669 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13670fi
13671
13672
13673
13674
c47832b1 13675if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13676 if test -n "$with_build_time_tools"; then
cd9a469c 13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13678$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
ab0da556 13679 if test -x $with_build_time_tools/strip; then
13680 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13681 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
cd9a469c 13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13683$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
ab0da556 13684 else
cd9a469c 13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13686$as_echo "no" >&6; }
ab0da556 13687 fi
c47832b1 13688 elif test $build != $host && test $have_gcc_for_target = yes; then
13689 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
b7ef8464 13690 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13691 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c47832b1 13692 fi
13693fi
38d7211b 13694if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 13695 # Extract the first word of "strip", so it can be a program name with args.
13696set dummy strip; ac_word=$2
cd9a469c 13697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13698$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13699if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
cd9a469c 13700 $as_echo_n "(cached) " >&6
c47832b1 13701else
b30fcfae 13702 case $STRIP_FOR_TARGET in
13703 [\\/]* | ?:[\\/]*)
c47832b1 13704 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13705 ;;
c47832b1 13706 *)
b30fcfae 13707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13708for as_dir in $gcc_cv_tool_dirs
13709do
13710 IFS=$as_save_IFS
13711 test -z "$as_dir" && as_dir=.
cd9a469c 13712 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 13714 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 13715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 13716 break 2
13717 fi
13718done
cd9a469c 13719 done
13720IFS=$as_save_IFS
b30fcfae 13721
c47832b1 13722 ;;
13723esac
13724fi
b30fcfae 13725STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
c47832b1 13726if test -n "$STRIP_FOR_TARGET"; then
cd9a469c 13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13728$as_echo "$STRIP_FOR_TARGET" >&6; }
c47832b1 13729else
cd9a469c 13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13731$as_echo "no" >&6; }
c47832b1 13732fi
13733
cd9a469c 13734
c47832b1 13735fi
13736if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
95a05732 13737
13738
13739if test -n "$STRIP_FOR_TARGET"; then
13740 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13741elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13742 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13743fi
13744
13745if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13746 for ncn_progname in strip; do
13747 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13748set dummy ${ncn_progname}; ac_word=$2
cd9a469c 13749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13750$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13751if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
cd9a469c 13752 $as_echo_n "(cached) " >&6
95a05732 13753else
13754 if test -n "$STRIP_FOR_TARGET"; then
13755 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13756else
13757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13758for as_dir in $PATH
13759do
13760 IFS=$as_save_IFS
13761 test -z "$as_dir" && as_dir=.
cd9a469c 13762 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 13764 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
cd9a469c 13765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 13766 break 2
13767 fi
13768done
cd9a469c 13769 done
13770IFS=$as_save_IFS
95a05732 13771
13772fi
13773fi
13774STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13775if test -n "$STRIP_FOR_TARGET"; then
cd9a469c 13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13777$as_echo "$STRIP_FOR_TARGET" >&6; }
95a05732 13778else
cd9a469c 13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13780$as_echo "no" >&6; }
95a05732 13781fi
13782
cd9a469c 13783
95a05732 13784 done
13785fi
13786
13787if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 13788 for ncn_progname in strip; do
cd9a469c 13789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13790$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 13791 if test -x $with_build_time_tools/${ncn_progname}; then
13792 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13794$as_echo "yes" >&6; }
c47832b1 13795 break
13796 else
cd9a469c 13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13798$as_echo "no" >&6; }
c47832b1 13799 fi
13800 done
13801fi
13802
13803if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13804 for ncn_progname in strip; do
13805 if test -n "$ncn_target_tool_prefix"; then
13806 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9fec3fa8 13807set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 13808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13809$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13810if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
cd9a469c 13811 $as_echo_n "(cached) " >&6
ae48753c 13812else
13813 if test -n "$STRIP_FOR_TARGET"; then
b30fcfae 13814 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13815else
13816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13817for as_dir in $PATH
13818do
13819 IFS=$as_save_IFS
13820 test -z "$as_dir" && as_dir=.
cd9a469c 13821 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 13823 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 13824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 13825 break 2
13826 fi
13827done
cd9a469c 13828 done
13829IFS=$as_save_IFS
b30fcfae 13830
9fec3fa8 13831fi
13832fi
b30fcfae 13833STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
9fec3fa8 13834if test -n "$STRIP_FOR_TARGET"; then
cd9a469c 13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13836$as_echo "$STRIP_FOR_TARGET" >&6; }
9fec3fa8 13837else
cd9a469c 13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13839$as_echo "no" >&6; }
9fec3fa8 13840fi
13841
cd9a469c 13842
c47832b1 13843 fi
13844 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13845 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9fec3fa8 13846set dummy ${ncn_progname}; ac_word=$2
cd9a469c 13847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13848$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13849if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
cd9a469c 13850 $as_echo_n "(cached) " >&6
9fec3fa8 13851else
13852 if test -n "$STRIP_FOR_TARGET"; then
13853 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13854else
b30fcfae 13855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13856for as_dir in $PATH
13857do
13858 IFS=$as_save_IFS
13859 test -z "$as_dir" && as_dir=.
cd9a469c 13860 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 13862 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
cd9a469c 13863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 13864 break 2
13865 fi
13866done
cd9a469c 13867 done
13868IFS=$as_save_IFS
b30fcfae 13869
9fec3fa8 13870fi
13871fi
b30fcfae 13872STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
9fec3fa8 13873if test -n "$STRIP_FOR_TARGET"; then
cd9a469c 13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13875$as_echo "$STRIP_FOR_TARGET" >&6; }
9fec3fa8 13876else
cd9a469c 13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13878$as_echo "no" >&6; }
9fec3fa8 13879fi
b30fcfae 13880
cd9a469c 13881
c47832b1 13882 fi
13883 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13884 done
13885fi
b30fcfae 13886
9fec3fa8 13887if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13888 set dummy strip
13889 if test $build = $target ; then
13890 STRIP_FOR_TARGET="$2"
13891 else
13892 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13893 fi
b7ef8464 13894else
13895 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
9fec3fa8 13896fi
13897
ab0da556 13898else
13899 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
c47832b1 13900fi
13901
13902
13903
13904
13905if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13906 if test -n "$with_build_time_tools"; then
cd9a469c 13907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13908$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
ab0da556 13909 if test -x $with_build_time_tools/windres; then
13910 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13911 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
cd9a469c 13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13913$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
ab0da556 13914 else
cd9a469c 13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13916$as_echo "no" >&6; }
ab0da556 13917 fi
c47832b1 13918 elif test $build != $host && test $have_gcc_for_target = yes; then
13919 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
b7ef8464 13920 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13921 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c47832b1 13922 fi
13923fi
38d7211b 13924if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 13925 # Extract the first word of "windres", so it can be a program name with args.
13926set dummy windres; ac_word=$2
cd9a469c 13927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13928$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13929if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
cd9a469c 13930 $as_echo_n "(cached) " >&6
c47832b1 13931else
b30fcfae 13932 case $WINDRES_FOR_TARGET in
13933 [\\/]* | ?:[\\/]*)
c47832b1 13934 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13935 ;;
c47832b1 13936 *)
b30fcfae 13937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13938for as_dir in $gcc_cv_tool_dirs
13939do
13940 IFS=$as_save_IFS
13941 test -z "$as_dir" && as_dir=.
cd9a469c 13942 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 13944 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 13945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 13946 break 2
13947 fi
13948done
cd9a469c 13949 done
13950IFS=$as_save_IFS
b30fcfae 13951
c47832b1 13952 ;;
13953esac
13954fi
b30fcfae 13955WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
c47832b1 13956if test -n "$WINDRES_FOR_TARGET"; then
cd9a469c 13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13958$as_echo "$WINDRES_FOR_TARGET" >&6; }
c47832b1 13959else
cd9a469c 13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13961$as_echo "no" >&6; }
c47832b1 13962fi
13963
cd9a469c 13964
c47832b1 13965fi
13966if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
95a05732 13967
13968
13969if test -n "$WINDRES_FOR_TARGET"; then
13970 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13971elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13972 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13973fi
13974
13975if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13976 for ncn_progname in windres; do
13977 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13978set dummy ${ncn_progname}; ac_word=$2
cd9a469c 13979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13980$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13981if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
cd9a469c 13982 $as_echo_n "(cached) " >&6
95a05732 13983else
13984 if test -n "$WINDRES_FOR_TARGET"; then
13985 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13986else
13987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13988for as_dir in $PATH
13989do
13990 IFS=$as_save_IFS
13991 test -z "$as_dir" && as_dir=.
cd9a469c 13992 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 13994 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
cd9a469c 13995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 13996 break 2
13997 fi
13998done
cd9a469c 13999 done
14000IFS=$as_save_IFS
95a05732 14001
14002fi
14003fi
14004WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
14005if test -n "$WINDRES_FOR_TARGET"; then
cd9a469c 14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14007$as_echo "$WINDRES_FOR_TARGET" >&6; }
95a05732 14008else
cd9a469c 14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14010$as_echo "no" >&6; }
95a05732 14011fi
14012
cd9a469c 14013
95a05732 14014 done
14015fi
14016
14017if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 14018 for ncn_progname in windres; do
cd9a469c 14019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14020$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 14021 if test -x $with_build_time_tools/${ncn_progname}; then
14022 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14024$as_echo "yes" >&6; }
c47832b1 14025 break
14026 else
cd9a469c 14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14028$as_echo "no" >&6; }
c47832b1 14029 fi
14030 done
14031fi
14032
14033if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
14034 for ncn_progname in windres; do
14035 if test -n "$ncn_target_tool_prefix"; then
14036 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 14037set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 14038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14039$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 14040if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
cd9a469c 14041 $as_echo_n "(cached) " >&6
bb612911 14042else
ef8184c7 14043 if test -n "$WINDRES_FOR_TARGET"; then
14044 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
bb612911 14045else
b30fcfae 14046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14047for as_dir in $PATH
14048do
14049 IFS=$as_save_IFS
14050 test -z "$as_dir" && as_dir=.
cd9a469c 14051 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 14052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 14053 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 14054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 14055 break 2
14056 fi
14057done
cd9a469c 14058 done
14059IFS=$as_save_IFS
b30fcfae 14060
bb612911 14061fi
14062fi
b30fcfae 14063WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
ef8184c7 14064if test -n "$WINDRES_FOR_TARGET"; then
cd9a469c 14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14066$as_echo "$WINDRES_FOR_TARGET" >&6; }
bb612911 14067else
cd9a469c 14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14069$as_echo "no" >&6; }
bb612911 14070fi
14071
cd9a469c 14072
c47832b1 14073 fi
14074 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
14075 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 14076set dummy ${ncn_progname}; ac_word=$2
cd9a469c 14077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14078$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 14079if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
cd9a469c 14080 $as_echo_n "(cached) " >&6
bb612911 14081else
768691b5 14082 if test -n "$WINDRES_FOR_TARGET"; then
14083 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
bb612911 14084else
b30fcfae 14085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14086for as_dir in $PATH
14087do
14088 IFS=$as_save_IFS
14089 test -z "$as_dir" && as_dir=.
cd9a469c 14090 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 14091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 14092 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
cd9a469c 14093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 14094 break 2
14095 fi
14096done
cd9a469c 14097 done
14098IFS=$as_save_IFS
b30fcfae 14099
bb612911 14100fi
14101fi
b30fcfae 14102WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
768691b5 14103if test -n "$WINDRES_FOR_TARGET"; then
cd9a469c 14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14105$as_echo "$WINDRES_FOR_TARGET" >&6; }
bb612911 14106else
cd9a469c 14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14108$as_echo "no" >&6; }
bb612911 14109fi
b30fcfae 14110
cd9a469c 14111
c47832b1 14112 fi
14113 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
14114 done
14115fi
b30fcfae 14116
768691b5 14117if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
14118 set dummy windres
14119 if test $build = $target ; then
14120 WINDRES_FOR_TARGET="$2"
bb612911 14121 else
768691b5 14122 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 14123 fi
b7ef8464 14124else
14125 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
bb612911 14126fi
14127
ab0da556 14128else
14129 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
c47832b1 14130fi
14131
805e22b2 14132
75d6a0a9 14133
14134
14135if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14136 if test -n "$with_build_time_tools"; then
cd9a469c 14137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
14138$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
75d6a0a9 14139 if test -x $with_build_time_tools/windmc; then
14140 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
14141 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
cd9a469c 14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
14143$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
75d6a0a9 14144 else
cd9a469c 14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14146$as_echo "no" >&6; }
75d6a0a9 14147 fi
14148 elif test $build != $host && test $have_gcc_for_target = yes; then
14149 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
b7ef8464 14150 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
14151 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
75d6a0a9 14152 fi
14153fi
14154if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14155 # Extract the first word of "windmc", so it can be a program name with args.
14156set dummy windmc; ac_word=$2
cd9a469c 14157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14158$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 14159if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
cd9a469c 14160 $as_echo_n "(cached) " >&6
75d6a0a9 14161else
14162 case $WINDMC_FOR_TARGET in
14163 [\\/]* | ?:[\\/]*)
14164 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
14165 ;;
14166 *)
14167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14168for as_dir in $gcc_cv_tool_dirs
14169do
14170 IFS=$as_save_IFS
14171 test -z "$as_dir" && as_dir=.
cd9a469c 14172 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 14173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
75d6a0a9 14174 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 14175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 14176 break 2
14177 fi
14178done
cd9a469c 14179 done
14180IFS=$as_save_IFS
75d6a0a9 14181
14182 ;;
14183esac
14184fi
14185WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
75d6a0a9 14186if test -n "$WINDMC_FOR_TARGET"; then
cd9a469c 14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14188$as_echo "$WINDMC_FOR_TARGET" >&6; }
75d6a0a9 14189else
cd9a469c 14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14191$as_echo "no" >&6; }
75d6a0a9 14192fi
14193
cd9a469c 14194
75d6a0a9 14195fi
14196if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14197
14198
14199if test -n "$WINDMC_FOR_TARGET"; then
14200 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14201elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14202 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14203fi
14204
14205if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14206 for ncn_progname in windmc; do
14207 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14208set dummy ${ncn_progname}; ac_word=$2
cd9a469c 14209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14210$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 14211if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
cd9a469c 14212 $as_echo_n "(cached) " >&6
75d6a0a9 14213else
14214 if test -n "$WINDMC_FOR_TARGET"; then
14215 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14216else
14217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14218for as_dir in $PATH
14219do
14220 IFS=$as_save_IFS
14221 test -z "$as_dir" && as_dir=.
cd9a469c 14222 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 14223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
75d6a0a9 14224 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
cd9a469c 14225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 14226 break 2
14227 fi
14228done
cd9a469c 14229 done
14230IFS=$as_save_IFS
75d6a0a9 14231
14232fi
14233fi
14234WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14235if test -n "$WINDMC_FOR_TARGET"; then
cd9a469c 14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14237$as_echo "$WINDMC_FOR_TARGET" >&6; }
75d6a0a9 14238else
cd9a469c 14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14240$as_echo "no" >&6; }
75d6a0a9 14241fi
14242
cd9a469c 14243
75d6a0a9 14244 done
14245fi
14246
14247if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14248 for ncn_progname in windmc; do
cd9a469c 14249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14250$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
75d6a0a9 14251 if test -x $with_build_time_tools/${ncn_progname}; then
14252 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14254$as_echo "yes" >&6; }
75d6a0a9 14255 break
14256 else
cd9a469c 14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14258$as_echo "no" >&6; }
75d6a0a9 14259 fi
14260 done
14261fi
14262
14263if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14264 for ncn_progname in windmc; do
14265 if test -n "$ncn_target_tool_prefix"; then
14266 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14267set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 14268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14269$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 14270if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
cd9a469c 14271 $as_echo_n "(cached) " >&6
75d6a0a9 14272else
14273 if test -n "$WINDMC_FOR_TARGET"; then
14274 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14275else
14276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14277for as_dir in $PATH
14278do
14279 IFS=$as_save_IFS
14280 test -z "$as_dir" && as_dir=.
cd9a469c 14281 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 14282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
75d6a0a9 14283 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 14284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 14285 break 2
14286 fi
14287done
cd9a469c 14288 done
14289IFS=$as_save_IFS
75d6a0a9 14290
14291fi
14292fi
14293WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14294if test -n "$WINDMC_FOR_TARGET"; then
cd9a469c 14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14296$as_echo "$WINDMC_FOR_TARGET" >&6; }
75d6a0a9 14297else
cd9a469c 14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14299$as_echo "no" >&6; }
75d6a0a9 14300fi
14301
cd9a469c 14302
75d6a0a9 14303 fi
14304 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
14305 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14306set dummy ${ncn_progname}; ac_word=$2
cd9a469c 14307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14308$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 14309if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
cd9a469c 14310 $as_echo_n "(cached) " >&6
75d6a0a9 14311else
14312 if test -n "$WINDMC_FOR_TARGET"; then
14313 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14314else
14315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14316for as_dir in $PATH
14317do
14318 IFS=$as_save_IFS
14319 test -z "$as_dir" && as_dir=.
cd9a469c 14320 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 14321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
75d6a0a9 14322 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
cd9a469c 14323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 14324 break 2
14325 fi
14326done
cd9a469c 14327 done
14328IFS=$as_save_IFS
75d6a0a9 14329
14330fi
14331fi
14332WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14333if test -n "$WINDMC_FOR_TARGET"; then
cd9a469c 14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14335$as_echo "$WINDMC_FOR_TARGET" >&6; }
75d6a0a9 14336else
cd9a469c 14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14338$as_echo "no" >&6; }
75d6a0a9 14339fi
14340
cd9a469c 14341
75d6a0a9 14342 fi
14343 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
14344 done
14345fi
14346
14347if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
14348 set dummy windmc
14349 if test $build = $target ; then
14350 WINDMC_FOR_TARGET="$2"
14351 else
14352 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14353 fi
b7ef8464 14354else
14355 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
75d6a0a9 14356fi
14357
14358else
14359 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14360fi
14361
14362
f5aebe3e 14363RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
14364
cd9a469c 14365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
14366$as_echo_n "checking where to find the target ar... " >&6; }
f5aebe3e 14367if test "x${build}" != "x${host}" ; then
c47832b1 14368 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14369 # We already found the complete path
a6c599b5 14370 ac_dir=`dirname $AR_FOR_TARGET`
cd9a469c 14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14372$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14373 else
14374 # Canadian cross, just use what we found
cd9a469c 14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14376$as_echo "pre-installed" >&6; }
c47832b1 14377 fi
f5aebe3e 14378else
14379 ok=yes
14380 case " ${configdirs} " in
14381 *" binutils "*) ;;
14382 *) ok=no ;;
14383 esac
b30fcfae 14384
f5aebe3e 14385 if test $ok = yes; then
14386 # An in-tree tool is available and we can use it
14387 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
cd9a469c 14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14389$as_echo "just compiled" >&6; }
c47832b1 14390 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14391 # We already found the complete path
a6c599b5 14392 ac_dir=`dirname $AR_FOR_TARGET`
cd9a469c 14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14394$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14395 elif test "x$target" = "x$host"; then
14396 # We can use an host tool
14397 AR_FOR_TARGET='$(AR)'
cd9a469c 14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14399$as_echo "host tool" >&6; }
f5aebe3e 14400 else
14401 # We need a cross tool
cd9a469c 14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14403$as_echo "pre-installed" >&6; }
f5aebe3e 14404 fi
14405fi
a83ffacf 14406
cd9a469c 14407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14408$as_echo_n "checking where to find the target as... " >&6; }
f5aebe3e 14409if test "x${build}" != "x${host}" ; then
c47832b1 14410 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14411 # We already found the complete path
a6c599b5 14412 ac_dir=`dirname $AS_FOR_TARGET`
cd9a469c 14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14414$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14415 else
14416 # Canadian cross, just use what we found
cd9a469c 14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14418$as_echo "pre-installed" >&6; }
c47832b1 14419 fi
f5aebe3e 14420else
14421 ok=yes
14422 case " ${configdirs} " in
14423 *" gas "*) ;;
14424 *) ok=no ;;
14425 esac
b30fcfae 14426
f5aebe3e 14427 if test $ok = yes; then
14428 # An in-tree tool is available and we can use it
14429 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
cd9a469c 14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14431$as_echo "just compiled" >&6; }
c47832b1 14432 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14433 # We already found the complete path
a6c599b5 14434 ac_dir=`dirname $AS_FOR_TARGET`
cd9a469c 14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14436$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14437 elif test "x$target" = "x$host"; then
14438 # We can use an host tool
14439 AS_FOR_TARGET='$(AS)'
cd9a469c 14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14441$as_echo "host tool" >&6; }
f5aebe3e 14442 else
14443 # We need a cross tool
cd9a469c 14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14445$as_echo "pre-installed" >&6; }
f5aebe3e 14446 fi
14447fi
a83ffacf 14448
cd9a469c 14449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14450$as_echo_n "checking where to find the target cc... " >&6; }
f5aebe3e 14451if test "x${build}" != "x${host}" ; then
c47832b1 14452 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14453 # We already found the complete path
a6c599b5 14454 ac_dir=`dirname $CC_FOR_TARGET`
cd9a469c 14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14456$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14457 else
14458 # Canadian cross, just use what we found
cd9a469c 14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14460$as_echo "pre-installed" >&6; }
c47832b1 14461 fi
f5aebe3e 14462else
14463 ok=yes
14464 case " ${configdirs} " in
14465 *" gcc "*) ;;
14466 *) ok=no ;;
14467 esac
b30fcfae 14468
f5aebe3e 14469 if test $ok = yes; then
14470 # An in-tree tool is available and we can use it
14471 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
cd9a469c 14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14473$as_echo "just compiled" >&6; }
c47832b1 14474 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14475 # We already found the complete path
a6c599b5 14476 ac_dir=`dirname $CC_FOR_TARGET`
cd9a469c 14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14478$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14479 elif test "x$target" = "x$host"; then
14480 # We can use an host tool
14481 CC_FOR_TARGET='$(CC)'
cd9a469c 14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14483$as_echo "host tool" >&6; }
f5aebe3e 14484 else
14485 # We need a cross tool
cd9a469c 14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14487$as_echo "pre-installed" >&6; }
f5aebe3e 14488 fi
14489fi
a83ffacf 14490
cd9a469c 14491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14492$as_echo_n "checking where to find the target c++... " >&6; }
f5aebe3e 14493if test "x${build}" != "x${host}" ; then
c47832b1 14494 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14495 # We already found the complete path
a6c599b5 14496 ac_dir=`dirname $CXX_FOR_TARGET`
cd9a469c 14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14498$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14499 else
14500 # Canadian cross, just use what we found
cd9a469c 14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14502$as_echo "pre-installed" >&6; }
c47832b1 14503 fi
f5aebe3e 14504else
14505 ok=yes
14506 case " ${configdirs} " in
14507 *" gcc "*) ;;
14508 *) ok=no ;;
14509 esac
14510 case ,${enable_languages}, in
14511 *,c++,*) ;;
14512 *) ok=no ;;
14513 esac
14514 if test $ok = yes; then
14515 # An in-tree tool is available and we can use it
b710ec85 14516 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 14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14518$as_echo "just compiled" >&6; }
c47832b1 14519 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14520 # We already found the complete path
a6c599b5 14521 ac_dir=`dirname $CXX_FOR_TARGET`
cd9a469c 14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14523$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14524 elif test "x$target" = "x$host"; then
14525 # We can use an host tool
14526 CXX_FOR_TARGET='$(CXX)'
cd9a469c 14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14528$as_echo "host tool" >&6; }
f5aebe3e 14529 else
14530 # We need a cross tool
cd9a469c 14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14532$as_echo "pre-installed" >&6; }
f5aebe3e 14533 fi
14534fi
a83ffacf 14535
cd9a469c 14536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14537$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
f5aebe3e 14538if test "x${build}" != "x${host}" ; then
c47832b1 14539 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14540 # We already found the complete path
a6c599b5 14541 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
cd9a469c 14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14543$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14544 else
14545 # Canadian cross, just use what we found
cd9a469c 14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14547$as_echo "pre-installed" >&6; }
c47832b1 14548 fi
f5aebe3e 14549else
14550 ok=yes
14551 case " ${configdirs} " in
14552 *" gcc "*) ;;
14553 *) ok=no ;;
14554 esac
14555 case ,${enable_languages}, in
14556 *,c++,*) ;;
14557 *) ok=no ;;
14558 esac
14559 if test $ok = yes; then
14560 # An in-tree tool is available and we can use it
b710ec85 14561 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 14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14563$as_echo "just compiled" >&6; }
c47832b1 14564 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14565 # We already found the complete path
a6c599b5 14566 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
cd9a469c 14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14568$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14569 elif test "x$target" = "x$host"; then
14570 # We can use an host tool
14571 RAW_CXX_FOR_TARGET='$(CXX)'
cd9a469c 14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14573$as_echo "host tool" >&6; }
f5aebe3e 14574 else
14575 # We need a cross tool
cd9a469c 14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14577$as_echo "pre-installed" >&6; }
f5aebe3e 14578 fi
14579fi
a83ffacf 14580
cd9a469c 14581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14582$as_echo_n "checking where to find the target dlltool... " >&6; }
f5aebe3e 14583if test "x${build}" != "x${host}" ; then
c47832b1 14584 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14585 # We already found the complete path
a6c599b5 14586 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
cd9a469c 14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14588$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14589 else
14590 # Canadian cross, just use what we found
cd9a469c 14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14592$as_echo "pre-installed" >&6; }
c47832b1 14593 fi
f5aebe3e 14594else
14595 ok=yes
14596 case " ${configdirs} " in
14597 *" binutils "*) ;;
14598 *) ok=no ;;
14599 esac
b30fcfae 14600
f5aebe3e 14601 if test $ok = yes; then
14602 # An in-tree tool is available and we can use it
14603 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
cd9a469c 14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14605$as_echo "just compiled" >&6; }
c47832b1 14606 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14607 # We already found the complete path
a6c599b5 14608 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
cd9a469c 14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14610$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14611 elif test "x$target" = "x$host"; then
14612 # We can use an host tool
14613 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
cd9a469c 14614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14615$as_echo "host tool" >&6; }
f5aebe3e 14616 else
14617 # We need a cross tool
cd9a469c 14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14619$as_echo "pre-installed" >&6; }
f5aebe3e 14620 fi
14621fi
a83ffacf 14622
cd9a469c 14623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14624$as_echo_n "checking where to find the target gcc... " >&6; }
f5aebe3e 14625if test "x${build}" != "x${host}" ; then
c47832b1 14626 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14627 # We already found the complete path
a6c599b5 14628 ac_dir=`dirname $GCC_FOR_TARGET`
cd9a469c 14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14630$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14631 else
14632 # Canadian cross, just use what we found
cd9a469c 14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14634$as_echo "pre-installed" >&6; }
c47832b1 14635 fi
f5aebe3e 14636else
14637 ok=yes
14638 case " ${configdirs} " in
14639 *" gcc "*) ;;
14640 *) ok=no ;;
14641 esac
b30fcfae 14642
f5aebe3e 14643 if test $ok = yes; then
14644 # An in-tree tool is available and we can use it
14645 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
cd9a469c 14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14647$as_echo "just compiled" >&6; }
c47832b1 14648 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14649 # We already found the complete path
a6c599b5 14650 ac_dir=`dirname $GCC_FOR_TARGET`
cd9a469c 14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14652$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14653 elif test "x$target" = "x$host"; then
14654 # We can use an host tool
14655 GCC_FOR_TARGET='$()'
cd9a469c 14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14657$as_echo "host tool" >&6; }
f5aebe3e 14658 else
14659 # We need a cross tool
cd9a469c 14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14661$as_echo "pre-installed" >&6; }
f5aebe3e 14662 fi
14663fi
a83ffacf 14664
cd9a469c 14665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14666$as_echo_n "checking where to find the target gfortran... " >&6; }
f5aebe3e 14667if test "x${build}" != "x${host}" ; then
c47832b1 14668 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14669 # We already found the complete path
a6c599b5 14670 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
cd9a469c 14671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14672$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14673 else
14674 # Canadian cross, just use what we found
cd9a469c 14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14676$as_echo "pre-installed" >&6; }
c47832b1 14677 fi
f5aebe3e 14678else
14679 ok=yes
14680 case " ${configdirs} " in
14681 *" gcc "*) ;;
14682 *) ok=no ;;
14683 esac
14684 case ,${enable_languages}, in
14685 *,fortran,*) ;;
14686 *) ok=no ;;
14687 esac
14688 if test $ok = yes; then
14689 # An in-tree tool is available and we can use it
14690 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
cd9a469c 14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14692$as_echo "just compiled" >&6; }
c47832b1 14693 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14694 # We already found the complete path
a6c599b5 14695 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
cd9a469c 14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14697$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14698 elif test "x$target" = "x$host"; then
14699 # We can use an host tool
14700 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
cd9a469c 14701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14702$as_echo "host tool" >&6; }
f5aebe3e 14703 else
14704 # We need a cross tool
cd9a469c 14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14706$as_echo "pre-installed" >&6; }
f5aebe3e 14707 fi
14708fi
a83ffacf 14709
5ff5b630 14710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14711$as_echo_n "checking where to find the target gccgo... " >&6; }
14712if test "x${build}" != "x${host}" ; then
14713 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14714 # We already found the complete path
14715 ac_dir=`dirname $GOC_FOR_TARGET`
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14717$as_echo "pre-installed in $ac_dir" >&6; }
14718 else
14719 # Canadian cross, just use what we found
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14721$as_echo "pre-installed" >&6; }
14722 fi
14723else
14724 ok=yes
14725 case " ${configdirs} " in
14726 *" gcc "*) ;;
14727 *) ok=no ;;
14728 esac
14729 case ,${enable_languages}, in
14730 *,go,*) ;;
14731 *) ok=no ;;
14732 esac
14733 if test $ok = yes; then
14734 # An in-tree tool is available and we can use it
14735 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14737$as_echo "just compiled" >&6; }
14738 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14739 # We already found the complete path
14740 ac_dir=`dirname $GOC_FOR_TARGET`
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14742$as_echo "pre-installed in $ac_dir" >&6; }
14743 elif test "x$target" = "x$host"; then
14744 # We can use an host tool
14745 GOC_FOR_TARGET='$(GOC)'
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14747$as_echo "host tool" >&6; }
14748 else
14749 # We need a cross tool
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14751$as_echo "pre-installed" >&6; }
14752 fi
14753fi
14754
03385ed3 14755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
14756$as_echo_n "checking where to find the target gdc... " >&6; }
14757if test "x${build}" != "x${host}" ; then
14758 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
14759 # We already found the complete path
14760 ac_dir=`dirname $GDC_FOR_TARGET`
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14762$as_echo "pre-installed in $ac_dir" >&6; }
14763 else
14764 # Canadian cross, just use what we found
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14766$as_echo "pre-installed" >&6; }
14767 fi
14768else
14769 ok=yes
14770 case " ${configdirs} " in
14771 *" gcc "*) ;;
14772 *) ok=no ;;
14773 esac
14774 case ,${enable_languages}, in
14775 *,d,*) ;;
14776 *) ok=no ;;
14777 esac
14778 if test $ok = yes; then
14779 # An in-tree tool is available and we can use it
14780 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14782$as_echo "just compiled" >&6; }
14783 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
14784 # We already found the complete path
14785 ac_dir=`dirname $GDC_FOR_TARGET`
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14787$as_echo "pre-installed in $ac_dir" >&6; }
14788 elif test "x$target" = "x$host"; then
14789 # We can use an host tool
14790 GDC_FOR_TARGET='$(GDC)'
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14792$as_echo "host tool" >&6; }
14793 else
14794 # We need a cross tool
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14796$as_echo "pre-installed" >&6; }
14797 fi
14798fi
14799
cd9a469c 14800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14801$as_echo_n "checking where to find the target ld... " >&6; }
f5aebe3e 14802if test "x${build}" != "x${host}" ; then
c47832b1 14803 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14804 # We already found the complete path
a6c599b5 14805 ac_dir=`dirname $LD_FOR_TARGET`
cd9a469c 14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14807$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14808 else
14809 # Canadian cross, just use what we found
cd9a469c 14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14811$as_echo "pre-installed" >&6; }
c47832b1 14812 fi
f5aebe3e 14813else
14814 ok=yes
14815 case " ${configdirs} " in
14816 *" ld "*) ;;
14817 *) ok=no ;;
14818 esac
b30fcfae 14819
f5aebe3e 14820 if test $ok = yes; then
14821 # An in-tree tool is available and we can use it
14822 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
cd9a469c 14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14824$as_echo "just compiled" >&6; }
c47832b1 14825 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14826 # We already found the complete path
a6c599b5 14827 ac_dir=`dirname $LD_FOR_TARGET`
cd9a469c 14828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14829$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14830 elif test "x$target" = "x$host"; then
14831 # We can use an host tool
14832 LD_FOR_TARGET='$(LD)'
cd9a469c 14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14834$as_echo "host tool" >&6; }
f5aebe3e 14835 else
14836 # We need a cross tool
cd9a469c 14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14838$as_echo "pre-installed" >&6; }
f5aebe3e 14839 fi
14840fi
a83ffacf 14841
cd9a469c 14842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14843$as_echo_n "checking where to find the target lipo... " >&6; }
f5aebe3e 14844if test "x${build}" != "x${host}" ; then
c47832b1 14845 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14846 # We already found the complete path
a6c599b5 14847 ac_dir=`dirname $LIPO_FOR_TARGET`
cd9a469c 14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14849$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14850 else
14851 # Canadian cross, just use what we found
cd9a469c 14852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14853$as_echo "pre-installed" >&6; }
c47832b1 14854 fi
f5aebe3e 14855else
c47832b1 14856 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14857 # We already found the complete path
a6c599b5 14858 ac_dir=`dirname $LIPO_FOR_TARGET`
cd9a469c 14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14860$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14861 elif test "x$target" = "x$host"; then
f5aebe3e 14862 # We can use an host tool
14863 LIPO_FOR_TARGET='$(LIPO)'
cd9a469c 14864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14865$as_echo "host tool" >&6; }
f5aebe3e 14866 else
14867 # We need a cross tool
cd9a469c 14868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14869$as_echo "pre-installed" >&6; }
f5aebe3e 14870 fi
14871fi
a83ffacf 14872
cd9a469c 14873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14874$as_echo_n "checking where to find the target nm... " >&6; }
f5aebe3e 14875if test "x${build}" != "x${host}" ; then
c47832b1 14876 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14877 # We already found the complete path
a6c599b5 14878 ac_dir=`dirname $NM_FOR_TARGET`
cd9a469c 14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14880$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14881 else
14882 # Canadian cross, just use what we found
cd9a469c 14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14884$as_echo "pre-installed" >&6; }
c47832b1 14885 fi
f5aebe3e 14886else
14887 ok=yes
14888 case " ${configdirs} " in
14889 *" binutils "*) ;;
14890 *) ok=no ;;
14891 esac
b30fcfae 14892
f5aebe3e 14893 if test $ok = yes; then
14894 # An in-tree tool is available and we can use it
14895 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
cd9a469c 14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14897$as_echo "just compiled" >&6; }
c47832b1 14898 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14899 # We already found the complete path
a6c599b5 14900 ac_dir=`dirname $NM_FOR_TARGET`
cd9a469c 14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14902$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14903 elif test "x$target" = "x$host"; then
14904 # We can use an host tool
14905 NM_FOR_TARGET='$(NM)'
cd9a469c 14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14907$as_echo "host tool" >&6; }
f5aebe3e 14908 else
14909 # We need a cross tool
cd9a469c 14910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14911$as_echo "pre-installed" >&6; }
f5aebe3e 14912 fi
14913fi
a83ffacf 14914
fc740d70 14915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14916$as_echo_n "checking where to find the target objcopy... " >&6; }
14917if test "x${build}" != "x${host}" ; then
14918 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14919 # We already found the complete path
14920 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14922$as_echo "pre-installed in $ac_dir" >&6; }
14923 else
14924 # Canadian cross, just use what we found
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14926$as_echo "pre-installed" >&6; }
14927 fi
14928else
14929 ok=yes
14930 case " ${configdirs} " in
14931 *" binutils "*) ;;
14932 *) ok=no ;;
14933 esac
14934
14935 if test $ok = yes; then
14936 # An in-tree tool is available and we can use it
14937 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14939$as_echo "just compiled" >&6; }
14940 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14941 # We already found the complete path
14942 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14944$as_echo "pre-installed in $ac_dir" >&6; }
14945 elif test "x$target" = "x$host"; then
14946 # We can use an host tool
9b31ae9c 14947 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
fc740d70 14948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14949$as_echo "host tool" >&6; }
14950 else
14951 # We need a cross tool
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14953$as_echo "pre-installed" >&6; }
14954 fi
14955fi
14956
cd9a469c 14957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14958$as_echo_n "checking where to find the target objdump... " >&6; }
f5aebe3e 14959if test "x${build}" != "x${host}" ; then
c47832b1 14960 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14961 # We already found the complete path
a6c599b5 14962 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
cd9a469c 14963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14964$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14965 else
14966 # Canadian cross, just use what we found
cd9a469c 14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14968$as_echo "pre-installed" >&6; }
c47832b1 14969 fi
f5aebe3e 14970else
14971 ok=yes
14972 case " ${configdirs} " in
14973 *" binutils "*) ;;
14974 *) ok=no ;;
14975 esac
b30fcfae 14976
f5aebe3e 14977 if test $ok = yes; then
14978 # An in-tree tool is available and we can use it
14979 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
cd9a469c 14980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14981$as_echo "just compiled" >&6; }
c47832b1 14982 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14983 # We already found the complete path
a6c599b5 14984 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
cd9a469c 14985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14986$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14987 elif test "x$target" = "x$host"; then
14988 # We can use an host tool
14989 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
cd9a469c 14990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14991$as_echo "host tool" >&6; }
f5aebe3e 14992 else
14993 # We need a cross tool
cd9a469c 14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14995$as_echo "pre-installed" >&6; }
f5aebe3e 14996 fi
14997fi
a83ffacf 14998
16706a2e 14999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
15000$as_echo_n "checking where to find the target otool... " >&6; }
15001if test "x${build}" != "x${host}" ; then
15002 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
15003 # We already found the complete path
15004 ac_dir=`dirname $OTOOL_FOR_TARGET`
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15006$as_echo "pre-installed in $ac_dir" >&6; }
15007 else
15008 # Canadian cross, just use what we found
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15010$as_echo "pre-installed" >&6; }
15011 fi
15012else
15013 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
15014 # We already found the complete path
15015 ac_dir=`dirname $OTOOL_FOR_TARGET`
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15017$as_echo "pre-installed in $ac_dir" >&6; }
15018 elif test "x$target" = "x$host"; then
15019 # We can use an host tool
15020 OTOOL_FOR_TARGET='$(OTOOL)'
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15022$as_echo "host tool" >&6; }
15023 else
15024 # We need a cross tool
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15026$as_echo "pre-installed" >&6; }
15027 fi
15028fi
15029
cd9a469c 15030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
15031$as_echo_n "checking where to find the target ranlib... " >&6; }
f5aebe3e 15032if test "x${build}" != "x${host}" ; then
c47832b1 15033 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
15034 # We already found the complete path
a6c599b5 15035 ac_dir=`dirname $RANLIB_FOR_TARGET`
cd9a469c 15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15037$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 15038 else
15039 # Canadian cross, just use what we found
cd9a469c 15040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15041$as_echo "pre-installed" >&6; }
c47832b1 15042 fi
f5aebe3e 15043else
15044 ok=yes
15045 case " ${configdirs} " in
15046 *" binutils "*) ;;
15047 *) ok=no ;;
15048 esac
b30fcfae 15049
f5aebe3e 15050 if test $ok = yes; then
15051 # An in-tree tool is available and we can use it
15052 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
cd9a469c 15053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15054$as_echo "just compiled" >&6; }
c47832b1 15055 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
15056 # We already found the complete path
a6c599b5 15057 ac_dir=`dirname $RANLIB_FOR_TARGET`
cd9a469c 15058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15059$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 15060 elif test "x$target" = "x$host"; then
15061 # We can use an host tool
15062 RANLIB_FOR_TARGET='$(RANLIB)'
cd9a469c 15063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15064$as_echo "host tool" >&6; }
f5aebe3e 15065 else
15066 # We need a cross tool
cd9a469c 15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15068$as_echo "pre-installed" >&6; }
f5aebe3e 15069 fi
15070fi
a83ffacf 15071
3f71364d 15072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
15073$as_echo_n "checking where to find the target readelf... " >&6; }
15074if test "x${build}" != "x${host}" ; then
15075 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
15076 # We already found the complete path
15077 ac_dir=`dirname $READELF_FOR_TARGET`
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15079$as_echo "pre-installed in $ac_dir" >&6; }
15080 else
15081 # Canadian cross, just use what we found
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15083$as_echo "pre-installed" >&6; }
15084 fi
15085else
15086 ok=yes
15087 case " ${configdirs} " in
15088 *" binutils "*) ;;
15089 *) ok=no ;;
15090 esac
15091
15092 if test $ok = yes; then
15093 # An in-tree tool is available and we can use it
15094 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15096$as_echo "just compiled" >&6; }
15097 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
15098 # We already found the complete path
15099 ac_dir=`dirname $READELF_FOR_TARGET`
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15101$as_echo "pre-installed in $ac_dir" >&6; }
15102 elif test "x$target" = "x$host"; then
15103 # We can use an host tool
15104 READELF_FOR_TARGET='$(READELF)'
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15106$as_echo "host tool" >&6; }
15107 else
15108 # We need a cross tool
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15110$as_echo "pre-installed" >&6; }
15111 fi
15112fi
15113
cd9a469c 15114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
15115$as_echo_n "checking where to find the target strip... " >&6; }
f5aebe3e 15116if test "x${build}" != "x${host}" ; then
c47832b1 15117 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
15118 # We already found the complete path
a6c599b5 15119 ac_dir=`dirname $STRIP_FOR_TARGET`
cd9a469c 15120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15121$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 15122 else
15123 # Canadian cross, just use what we found
cd9a469c 15124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15125$as_echo "pre-installed" >&6; }
c47832b1 15126 fi
f5aebe3e 15127else
15128 ok=yes
15129 case " ${configdirs} " in
15130 *" binutils "*) ;;
15131 *) ok=no ;;
15132 esac
b30fcfae 15133
f5aebe3e 15134 if test $ok = yes; then
15135 # An in-tree tool is available and we can use it
2b7a4d59 15136 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
cd9a469c 15137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15138$as_echo "just compiled" >&6; }
c47832b1 15139 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
15140 # We already found the complete path
a6c599b5 15141 ac_dir=`dirname $STRIP_FOR_TARGET`
cd9a469c 15142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15143$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 15144 elif test "x$target" = "x$host"; then
15145 # We can use an host tool
15146 STRIP_FOR_TARGET='$(STRIP)'
cd9a469c 15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15148$as_echo "host tool" >&6; }
f5aebe3e 15149 else
15150 # We need a cross tool
cd9a469c 15151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15152$as_echo "pre-installed" >&6; }
f5aebe3e 15153 fi
15154fi
a83ffacf 15155
cd9a469c 15156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
15157$as_echo_n "checking where to find the target windres... " >&6; }
f5aebe3e 15158if test "x${build}" != "x${host}" ; then
c47832b1 15159 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15160 # We already found the complete path
a6c599b5 15161 ac_dir=`dirname $WINDRES_FOR_TARGET`
cd9a469c 15162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15163$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 15164 else
15165 # Canadian cross, just use what we found
cd9a469c 15166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15167$as_echo "pre-installed" >&6; }
c47832b1 15168 fi
f5aebe3e 15169else
15170 ok=yes
15171 case " ${configdirs} " in
15172 *" binutils "*) ;;
15173 *) ok=no ;;
15174 esac
b30fcfae 15175
f5aebe3e 15176 if test $ok = yes; then
15177 # An in-tree tool is available and we can use it
15178 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
cd9a469c 15179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15180$as_echo "just compiled" >&6; }
c47832b1 15181 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15182 # We already found the complete path
a6c599b5 15183 ac_dir=`dirname $WINDRES_FOR_TARGET`
cd9a469c 15184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15185$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 15186 elif test "x$target" = "x$host"; then
15187 # We can use an host tool
15188 WINDRES_FOR_TARGET='$(WINDRES)'
cd9a469c 15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15190$as_echo "host tool" >&6; }
f5aebe3e 15191 else
15192 # We need a cross tool
cd9a469c 15193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15194$as_echo "pre-installed" >&6; }
f5aebe3e 15195 fi
71ab34df 15196fi
49aae208 15197
cd9a469c 15198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
15199$as_echo_n "checking where to find the target windmc... " >&6; }
75d6a0a9 15200if test "x${build}" != "x${host}" ; then
15201 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15202 # We already found the complete path
15203 ac_dir=`dirname $WINDMC_FOR_TARGET`
cd9a469c 15204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15205$as_echo "pre-installed in $ac_dir" >&6; }
75d6a0a9 15206 else
15207 # Canadian cross, just use what we found
cd9a469c 15208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15209$as_echo "pre-installed" >&6; }
75d6a0a9 15210 fi
15211else
15212 ok=yes
15213 case " ${configdirs} " in
15214 *" binutils "*) ;;
15215 *) ok=no ;;
15216 esac
15217
15218 if test $ok = yes; then
15219 # An in-tree tool is available and we can use it
15220 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
cd9a469c 15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15222$as_echo "just compiled" >&6; }
75d6a0a9 15223 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15224 # We already found the complete path
15225 ac_dir=`dirname $WINDMC_FOR_TARGET`
cd9a469c 15226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15227$as_echo "pre-installed in $ac_dir" >&6; }
75d6a0a9 15228 elif test "x$target" = "x$host"; then
15229 # We can use an host tool
15230 WINDMC_FOR_TARGET='$(WINDMC)'
cd9a469c 15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15232$as_echo "host tool" >&6; }
75d6a0a9 15233 else
15234 # We need a cross tool
cd9a469c 15235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15236$as_echo "pre-installed" >&6; }
75d6a0a9 15237 fi
15238fi
15239
49aae208 15240
15241
f5aebe3e 15242
a83ffacf 15243
71ab34df 15244# Certain tools may need extra flags.
15245AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
15246RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
15247NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
15248
f5aebe3e 15249# When building target libraries, except in a Canadian cross, we use
15250# the same toolchain as the compiler we just built.
15251COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
15252COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
15253COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
15254if test $host = $build; then
15255 case " $configdirs " in
15256 *" gcc "*)
15257 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
15258 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
15259 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
15260 ;;
15261 esac
15262fi
15263
15264
15265
15266
15267
cd9a469c 15268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15269$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15270# Check whether --enable-maintainer-mode was given.
15271if test "${enable_maintainer_mode+set}" = set; then :
15272 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3290c0cf 15273else
15274 USE_MAINTAINER_MODE=no
cd9a469c 15275fi
15276
15277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15278$as_echo "$USE_MAINTAINER_MODE" >&6; }
3290c0cf 15279
15280
15281if test "$USE_MAINTAINER_MODE" = yes; then
15282 MAINTAINER_MODE_TRUE=
15283 MAINTAINER_MODE_FALSE='#'
15284else
15285 MAINTAINER_MODE_TRUE='#'
15286 MAINTAINER_MODE_FALSE=
b30fcfae 15287fi
3290c0cf 15288MAINT=$MAINTAINER_MODE_TRUE
15289
2d64c2fd 15290# ---------------------
15291# GCC bootstrap support
15292# ---------------------
15293
15294# Stage specific cflags for build.
15295stage1_cflags="-g"
15296case $build in
15297 vax-*-*)
15298 case ${GCC} in
15299 yes) stage1_cflags="-g -Wa,-J" ;;
15300 *) stage1_cflags="-g -J" ;;
15301 esac ;;
2d64c2fd 15302esac
15303
f508ba97 15304
2d64c2fd 15305
39f34cfc 15306# Enable --enable-checking in stage1 of the compiler.
cd9a469c 15307# Check whether --enable-stage1-checking was given.
15308if test "${enable_stage1_checking+set}" = set; then :
15309 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
39f34cfc 15310else
f6be6a96 15311 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
868af6b6 15312 # For --disable-checking or implicit --enable-checking=release, avoid
15313 # setting --enable-checking=gc in the default stage1 checking for LTO
15314 # bootstraps. See PR62077.
868af6b6 15315 case $BUILD_CONFIG in
15316 *lto*)
c05979a1 15317 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
15318 *)
15319 stage1_checking=--enable-checking=yes,types;;
868af6b6 15320 esac
c05979a1 15321 if test "x$enable_checking" = x && \
15322 test -d ${srcdir}/gcc && \
15323 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
bee4f5e5 15324 stage1_checking=--enable-checking=yes,types,extra
c05979a1 15325 fi
39f34cfc 15326else
f6be6a96 15327 stage1_checking=--enable-checking=$enable_checking,types
39f34cfc 15328fi
cd9a469c 15329fi
39f34cfc 15330
15331
5084f823 15332
cd9a469c 15333# Enable -Werror in bootstrap stage2 and later.
15334# Check whether --enable-werror was given.
15335if test "${enable_werror+set}" = set; then :
15336 enableval=$enable_werror;
c0c5068d 15337case ${enable_werror} in
15338 yes) stage2_werror_flag="--enable-werror-always" ;;
15339 *) stage2_werror_flag="" ;;
2d64c2fd 15340esac
15341
5362e31e 15342else
15343
14b6abc7 15344if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
15345 case $BUILD_CONFIG in
15346 bootstrap-debug)
15347 stage2_werror_flag="--enable-werror-always" ;;
15348 "")
15349 stage2_werror_flag="--enable-werror-always" ;;
15350 esac
15351fi
15352
5362e31e 15353fi
15354
15355
14b6abc7 15356
2d64c2fd 15357
6fe86052 15358# Specify what files to not compare during bootstrap.
15359
15360compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
15361case "$target" in
15362 hppa*64*-*-hpux*) ;;
43bbe3ea 15363 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
62f0972f 15364 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
6fe86052 15365esac
15366
15367
cd9a469c 15368ac_config_files="$ac_config_files Makefile"
15369
b30fcfae 15370cat >confcache <<\_ACEOF
71ab34df 15371# This file is a shell script that caches the results of configure
15372# tests run on this system so they can be shared between configure
b30fcfae 15373# scripts and configure runs, see configure's option --config-cache.
15374# It is not useful on other systems. If it contains results you don't
15375# want to keep, you may remove or edit it.
71ab34df 15376#
b30fcfae 15377# config.status only pays attention to the cache file if you give it
15378# the --recheck option to rerun configure.
71ab34df 15379#
b30fcfae 15380# `ac_cv_env_foo' variables (set or unset) will be overridden when
15381# loading this file, other *unset* `ac_cv_foo' will be assigned the
15382# following values.
15383
15384_ACEOF
15385
71ab34df 15386# The following way of writing the cache mishandles newlines in values,
15387# but we know of no workaround that is simple, portable, and efficient.
cd9a469c 15388# So, we kill variables containing newlines.
71ab34df 15389# Ultrix sh set writes to stderr and can't be redirected directly,
15390# and sets the high bit in the cache file unless we assign to the vars.
cd9a469c 15391(
15392 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15393 eval ac_val=\$$ac_var
15394 case $ac_val in #(
15395 *${as_nl}*)
15396 case $ac_var in #(
15397 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15398$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15399 esac
15400 case $ac_var in #(
15401 _ | IFS | as_nl) ;; #(
15402 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15403 *) { eval $ac_var=; unset $ac_var;} ;;
15404 esac ;;
15405 esac
15406 done
15407
b30fcfae 15408 (set) 2>&1 |
cd9a469c 15409 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15410 *${as_nl}ac_space=\ *)
15411 # `set' does not quote correctly, so add quotes: double-quote
15412 # substitution turns \\\\ into \\, and sed turns \\ into \.
b30fcfae 15413 sed -n \
15414 "s/'/'\\\\''/g;
15415 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
cd9a469c 15416 ;; #(
b30fcfae 15417 *)
15418 # `set' quotes correctly as required by POSIX, so do not add quotes.
cd9a469c 15419 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b30fcfae 15420 ;;
cd9a469c 15421 esac |
15422 sort
15423) |
b30fcfae 15424 sed '
cd9a469c 15425 /^ac_cv_env_/b end
b30fcfae 15426 t clear
cd9a469c 15427 :clear
b30fcfae 15428 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15429 t end
cd9a469c 15430 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15431 :end' >>confcache
15432if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15433 if test -w "$cache_file"; then
f00f02a3 15434 if test "x$cache_file" != "x/dev/null"; then
cd9a469c 15435 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15436$as_echo "$as_me: updating cache $cache_file" >&6;}
f00f02a3 15437 if test ! -f "$cache_file" || test -h "$cache_file"; then
15438 cat confcache >"$cache_file"
15439 else
15440 case $cache_file in #(
15441 */* | ?:*)
15442 mv -f confcache "$cache_file"$$ &&
15443 mv -f "$cache_file"$$ "$cache_file" ;; #(
15444 *)
15445 mv -f confcache "$cache_file" ;;
15446 esac
15447 fi
15448 fi
71ab34df 15449 else
cd9a469c 15450 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15451$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
71ab34df 15452 fi
805e22b2 15453fi
71ab34df 15454rm -f confcache
a8298541 15455
71ab34df 15456test "x$prefix" = xNONE && prefix=$ac_default_prefix
15457# Let make expand exec_prefix.
15458test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
92424a17 15459
71ab34df 15460# Transform confdefs.h into DEFS.
15461# Protect against shell expansion while executing Makefile rules.
15462# Protect against Makefile macro expansion.
b30fcfae 15463#
15464# If the first sed substitution is executed (which looks for macros that
cd9a469c 15465# take arguments), then branch to the quote section. Otherwise,
b30fcfae 15466# look for a macro that doesn't take arguments.
cd9a469c 15467ac_script='
15468:mline
15469/\\$/{
15470 N
15471 s,\\\n,,
15472 b mline
15473}
b30fcfae 15474t clear
cd9a469c 15475:clear
15476s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
b30fcfae 15477t quote
cd9a469c 15478s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
b30fcfae 15479t quote
cd9a469c 15480b any
15481:quote
15482s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15483s/\[/\\&/g
15484s/\]/\\&/g
15485s/\$/$$/g
15486H
15487:any
15488${
15489 g
15490 s/^\n//
15491 s/\n/ /g
15492 p
15493}
15494'
15495DEFS=`sed -n "$ac_script" confdefs.h`
b30fcfae 15496
15497
15498ac_libobjs=
15499ac_ltlibobjs=
f00f02a3 15500U=
b30fcfae 15501for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15502 # 1. Remove the extension, and $U if already installed.
cd9a469c 15503 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15504 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15505 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15506 # will be set to the directory where LIBOBJS objects are built.
15507 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15508 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b30fcfae 15509done
15510LIBOBJS=$ac_libobjs
a4af6a58 15511
b30fcfae 15512LTLIBOBJS=$ac_ltlibobjs
a83ffacf 15513
ae48753c 15514
b30fcfae 15515
f00f02a3 15516: "${CONFIG_STATUS=./config.status}"
cd9a469c 15517ac_write_fail=0
b30fcfae 15518ac_clean_files_save=$ac_clean_files
15519ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cd9a469c 15520{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15521$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15522as_write_fail=0
15523cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b30fcfae 15524#! $SHELL
15525# Generated by $as_me.
71ab34df 15526# Run this file to recreate the current configuration.
71ab34df 15527# Compiler output produced by configure, useful for debugging
b30fcfae 15528# configure, is in config.log if it exists.
a83ffacf 15529
b30fcfae 15530debug=false
15531ac_cs_recheck=false
15532ac_cs_silent=false
b30fcfae 15533
cd9a469c 15534SHELL=\${CONFIG_SHELL-$SHELL}
15535export SHELL
15536_ASEOF
15537cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15538## -------------------- ##
15539## M4sh Initialization. ##
15540## -------------------- ##
15541
15542# Be more Bourne compatible
15543DUALCASE=1; export DUALCASE # for MKS sh
15544if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b30fcfae 15545 emulate sh
15546 NULLCMD=:
cd9a469c 15547 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b30fcfae 15548 # is contrary to our usage. Disable this feature.
15549 alias -g '${1+"$@"}'='"$@"'
cd9a469c 15550 setopt NO_GLOB_SUBST
15551else
15552 case `(set -o) 2>/dev/null` in #(
15553 *posix*) :
15554 set -o posix ;; #(
15555 *) :
15556 ;;
15557esac
b30fcfae 15558fi
b30fcfae 15559
cd9a469c 15560
15561as_nl='
15562'
15563export as_nl
15564# Printing a long string crashes Solaris 7 /usr/bin/printf.
15565as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15566as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15567as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15568# Prefer a ksh shell builtin over an external printf program on Solaris,
15569# but without wasting forks for bash or zsh.
15570if test -z "$BASH_VERSION$ZSH_VERSION" \
15571 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15572 as_echo='print -r --'
15573 as_echo_n='print -rn --'
15574elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15575 as_echo='printf %s\n'
15576 as_echo_n='printf %s'
15577else
15578 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15579 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15580 as_echo_n='/usr/ucb/echo -n'
15581 else
15582 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15583 as_echo_n_body='eval
15584 arg=$1;
15585 case $arg in #(
15586 *"$as_nl"*)
15587 expr "X$arg" : "X\\(.*\\)$as_nl";
15588 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15589 esac;
15590 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15591 '
15592 export as_echo_n_body
15593 as_echo_n='sh -c $as_echo_n_body as_echo'
15594 fi
15595 export as_echo_body
15596 as_echo='sh -c $as_echo_body as_echo'
b30fcfae 15597fi
15598
cd9a469c 15599# The user is always right.
15600if test "${PATH_SEPARATOR+set}" != set; then
15601 PATH_SEPARATOR=:
15602 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15603 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15604 PATH_SEPARATOR=';'
15605 }
15606fi
15607
15608
15609# IFS
15610# We need space, tab and new line, in precisely that order. Quoting is
15611# there to prevent editors from complaining about space-tab.
15612# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15613# splitting by setting IFS to empty value.)
15614IFS=" "" $as_nl"
15615
15616# Find who we are. Look in the path if we contain no directory separator.
f00f02a3 15617as_myself=
cd9a469c 15618case $0 in #((
15619 *[\\/]* ) as_myself=$0 ;;
15620 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15621for as_dir in $PATH
15622do
15623 IFS=$as_save_IFS
15624 test -z "$as_dir" && as_dir=.
15625 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15626 done
15627IFS=$as_save_IFS
15628
15629 ;;
15630esac
15631# We did not find ourselves, most probably we were run as `sh COMMAND'
15632# in which case we are not to be found in the path.
15633if test "x$as_myself" = x; then
15634 as_myself=$0
15635fi
15636if test ! -f "$as_myself"; then
15637 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15638 exit 1
15639fi
b30fcfae 15640
cd9a469c 15641# Unset variables that we do not need and which cause bugs (e.g. in
15642# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15643# suppresses any "Segmentation fault" message there. '((' could
15644# trigger a bug in pdksh 5.2.14.
15645for as_var in BASH_ENV ENV MAIL MAILPATH
15646do eval test x\${$as_var+set} = xset \
15647 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15648done
b30fcfae 15649PS1='$ '
15650PS2='> '
15651PS4='+ '
15652
15653# NLS nuisances.
cd9a469c 15654LC_ALL=C
15655export LC_ALL
15656LANGUAGE=C
15657export LANGUAGE
15658
15659# CDPATH.
15660(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15661
15662
f00f02a3 15663# as_fn_error STATUS ERROR [LINENO LOG_FD]
15664# ----------------------------------------
cd9a469c 15665# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15666# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
f00f02a3 15667# script with STATUS, using 1 if that was 0.
cd9a469c 15668as_fn_error ()
15669{
f00f02a3 15670 as_status=$1; test $as_status -eq 0 && as_status=1
15671 if test "$4"; then
15672 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15673 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b30fcfae 15674 fi
f00f02a3 15675 $as_echo "$as_me: error: $2" >&2
cd9a469c 15676 as_fn_exit $as_status
15677} # as_fn_error
15678
15679
15680# as_fn_set_status STATUS
15681# -----------------------
15682# Set $? to STATUS, without forking.
15683as_fn_set_status ()
15684{
15685 return $1
15686} # as_fn_set_status
15687
15688# as_fn_exit STATUS
15689# -----------------
15690# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15691as_fn_exit ()
15692{
15693 set +e
15694 as_fn_set_status $1
15695 exit $1
15696} # as_fn_exit
15697
15698# as_fn_unset VAR
15699# ---------------
15700# Portably unset VAR.
15701as_fn_unset ()
15702{
15703 { eval $1=; unset $1;}
15704}
15705as_unset=as_fn_unset
15706# as_fn_append VAR VALUE
15707# ----------------------
15708# Append the text in VALUE to the end of the definition contained in VAR. Take
15709# advantage of any shell optimizations that allow amortized linear growth over
15710# repeated appends, instead of the typical quadratic growth present in naive
15711# implementations.
15712if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15713 eval 'as_fn_append ()
15714 {
15715 eval $1+=\$2
15716 }'
15717else
15718 as_fn_append ()
15719 {
15720 eval $1=\$$1\$2
15721 }
15722fi # as_fn_append
15723
15724# as_fn_arith ARG...
15725# ------------------
15726# Perform arithmetic evaluation on the ARGs, and store the result in the
15727# global $as_val. Take advantage of shells that can avoid forks. The arguments
15728# must be portable across $(()) and expr.
15729if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15730 eval 'as_fn_arith ()
15731 {
15732 as_val=$(( $* ))
15733 }'
15734else
15735 as_fn_arith ()
15736 {
15737 as_val=`expr "$@" || test $? -eq 1`
15738 }
15739fi # as_fn_arith
15740
b30fcfae 15741
cd9a469c 15742if expr a : '\(a\)' >/dev/null 2>&1 &&
15743 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b30fcfae 15744 as_expr=expr
15745else
15746 as_expr=false
15747fi
15748
cd9a469c 15749if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b30fcfae 15750 as_basename=basename
15751else
15752 as_basename=false
15753fi
15754
cd9a469c 15755if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15756 as_dirname=dirname
15757else
15758 as_dirname=false
15759fi
b30fcfae 15760
cd9a469c 15761as_me=`$as_basename -- "$0" ||
b30fcfae 15762$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15763 X"$0" : 'X\(//\)$' \| \
cd9a469c 15764 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15765$as_echo X/"$0" |
15766 sed '/^.*\/\([^/][^/]*\)\/*$/{
15767 s//\1/
15768 q
15769 }
15770 /^X\/\(\/\/\)$/{
15771 s//\1/
15772 q
15773 }
15774 /^X\/\(\/\).*/{
15775 s//\1/
15776 q
15777 }
15778 s/.*/./; q'`
5084f823 15779
5084f823 15780# Avoid depending upon Character Ranges.
15781as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15782as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15783as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15784as_cr_digits='0123456789'
15785as_cr_alnum=$as_cr_Letters$as_cr_digits
15786
cd9a469c 15787ECHO_C= ECHO_N= ECHO_T=
15788case `echo -n x` in #(((((
15789-n*)
15790 case `echo 'xy\c'` in
15791 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15792 xy) ECHO_C='\c';;
15793 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15794 ECHO_T=' ';;
15795 esac;;
15796*)
15797 ECHO_N='-n';;
b30fcfae 15798esac
15799
cd9a469c 15800rm -f conf$$ conf$$.exe conf$$.file
15801if test -d conf$$.dir; then
15802 rm -f conf$$.dir/conf$$.file
b30fcfae 15803else
cd9a469c 15804 rm -f conf$$.dir
15805 mkdir conf$$.dir 2>/dev/null
b30fcfae 15806fi
cd9a469c 15807if (echo >conf$$.file) 2>/dev/null; then
15808 if ln -s conf$$.file conf$$ 2>/dev/null; then
5084f823 15809 as_ln_s='ln -s'
cd9a469c 15810 # ... but there are two gotchas:
15811 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15812 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
f00f02a3 15813 # In both cases, we have to default to `cp -pR'.
cd9a469c 15814 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
f00f02a3 15815 as_ln_s='cp -pR'
cd9a469c 15816 elif ln conf$$.file conf$$ 2>/dev/null; then
15817 as_ln_s=ln
15818 else
f00f02a3 15819 as_ln_s='cp -pR'
5084f823 15820 fi
b30fcfae 15821else
f00f02a3 15822 as_ln_s='cp -pR'
b30fcfae 15823fi
cd9a469c 15824rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15825rmdir conf$$.dir 2>/dev/null
15826
15827
15828# as_fn_mkdir_p
15829# -------------
15830# Create "$as_dir" as a directory, including parents if necessary.
15831as_fn_mkdir_p ()
15832{
15833
15834 case $as_dir in #(
15835 -*) as_dir=./$as_dir;;
15836 esac
15837 test -d "$as_dir" || eval $as_mkdir_p || {
15838 as_dirs=
15839 while :; do
15840 case $as_dir in #(
15841 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15842 *) as_qdir=$as_dir;;
15843 esac
15844 as_dirs="'$as_qdir' $as_dirs"
15845 as_dir=`$as_dirname -- "$as_dir" ||
15846$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15847 X"$as_dir" : 'X\(//\)[^/]' \| \
15848 X"$as_dir" : 'X\(//\)$' \| \
15849 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15850$as_echo X"$as_dir" |
15851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15852 s//\1/
15853 q
15854 }
15855 /^X\(\/\/\)[^/].*/{
15856 s//\1/
15857 q
15858 }
15859 /^X\(\/\/\)$/{
15860 s//\1/
15861 q
15862 }
15863 /^X\(\/\).*/{
15864 s//\1/
15865 q
15866 }
15867 s/.*/./; q'`
15868 test -d "$as_dir" && break
15869 done
15870 test -z "$as_dirs" || eval "mkdir $as_dirs"
f00f02a3 15871 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cd9a469c 15872
b30fcfae 15873
cd9a469c 15874} # as_fn_mkdir_p
b30fcfae 15875if mkdir -p . 2>/dev/null; then
cd9a469c 15876 as_mkdir_p='mkdir -p "$as_dir"'
b30fcfae 15877else
15878 test -d ./-p && rmdir ./-p
15879 as_mkdir_p=false
15880fi
15881
f00f02a3 15882
15883# as_fn_executable_p FILE
15884# -----------------------
15885# Test if FILE is an executable regular file.
15886as_fn_executable_p ()
15887{
15888 test -f "$1" && test -x "$1"
15889} # as_fn_executable_p
15890as_test_x='test -x'
15891as_executable_p=as_fn_executable_p
b30fcfae 15892
15893# Sed expression to map a string onto a valid CPP name.
15894as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15895
15896# Sed expression to map a string onto a valid variable name.
15897as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15898
15899
b30fcfae 15900exec 6>&1
cd9a469c 15901## ----------------------------------- ##
15902## Main body of $CONFIG_STATUS script. ##
15903## ----------------------------------- ##
15904_ASEOF
15905test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15906
15907cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15908# Save the log message, to keep $0 and so on meaningful, and to
b30fcfae 15909# report actual input values of CONFIG_FILES etc. instead of their
cd9a469c 15910# values after options handling.
15911ac_log="
b30fcfae 15912This file was extended by $as_me, which was
f00f02a3 15913generated by GNU Autoconf 2.69. Invocation command line was
b30fcfae 15914
15915 CONFIG_FILES = $CONFIG_FILES
15916 CONFIG_HEADERS = $CONFIG_HEADERS
15917 CONFIG_LINKS = $CONFIG_LINKS
15918 CONFIG_COMMANDS = $CONFIG_COMMANDS
15919 $ $0 $@
15920
cd9a469c 15921on `(hostname || uname -n) 2>/dev/null | sed 1q`
15922"
15923
b30fcfae 15924_ACEOF
15925
cd9a469c 15926case $ac_config_files in *"
15927"*) set x $ac_config_files; shift; ac_config_files=$*;;
15928esac
b30fcfae 15929
5084f823 15930
5084f823 15931
cd9a469c 15932cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15933# Files that config.status was made for.
15934config_files="$ac_config_files"
b30fcfae 15935
cd9a469c 15936_ACEOF
5084f823 15937
cd9a469c 15938cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b30fcfae 15939ac_cs_usage="\
cd9a469c 15940\`$as_me' instantiates files and other configuration actions
15941from templates according to the current configuration. Unless the files
15942and actions are specified as TAGs, all are instantiated by default.
b30fcfae 15943
cd9a469c 15944Usage: $0 [OPTION]... [TAG]...
b30fcfae 15945
15946 -h, --help print this help, then exit
cd9a469c 15947 -V, --version print version number and configuration settings, then exit
f00f02a3 15948 --config print configuration, then exit
cd9a469c 15949 -q, --quiet, --silent
15950 do not print progress messages
b30fcfae 15951 -d, --debug don't remove temporary files
15952 --recheck update $as_me by reconfiguring in the same conditions
cd9a469c 15953 --file=FILE[:TEMPLATE]
15954 instantiate the configuration file FILE
b30fcfae 15955
15956Configuration files:
15957$config_files
15958
cd9a469c 15959Report bugs to the package provider."
5084f823 15960
cd9a469c 15961_ACEOF
15962cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f00f02a3 15963ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b30fcfae 15964ac_cs_version="\\
15965config.status
f00f02a3 15966configured by $0, generated by GNU Autoconf 2.69,
15967 with options \\"\$ac_cs_config\\"
b30fcfae 15968
f00f02a3 15969Copyright (C) 2012 Free Software Foundation, Inc.
b30fcfae 15970This config.status script is free software; the Free Software Foundation
15971gives unlimited permission to copy, distribute and modify it."
cd9a469c 15972
15973ac_pwd='$ac_pwd'
15974srcdir='$srcdir'
15975INSTALL='$INSTALL'
b181f265 15976AWK='$AWK'
cd9a469c 15977test -n "\$AWK" || AWK=awk
b30fcfae 15978_ACEOF
15979
cd9a469c 15980cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15981# The default lists apply if the user does not specify any file.
b30fcfae 15982ac_need_defaults=:
15983while test $# != 0
b1660f25 15984do
b30fcfae 15985 case $1 in
f00f02a3 15986 --*=?*)
cd9a469c 15987 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15988 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b30fcfae 15989 ac_shift=:
15990 ;;
f00f02a3 15991 --*=)
15992 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15993 ac_optarg=
15994 ac_shift=:
15995 ;;
cd9a469c 15996 *)
b30fcfae 15997 ac_option=$1
15998 ac_optarg=$2
15999 ac_shift=shift
16000 ;;
b30fcfae 16001 esac
16002
16003 case $ac_option in
16004 # Handling of the options.
71ab34df 16005 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
b30fcfae 16006 ac_cs_recheck=: ;;
cd9a469c 16007 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16008 $as_echo "$ac_cs_version"; exit ;;
f00f02a3 16009 --config | --confi | --conf | --con | --co | --c )
16010 $as_echo "$ac_cs_config"; exit ;;
cd9a469c 16011 --debug | --debu | --deb | --de | --d | -d )
b30fcfae 16012 debug=: ;;
16013 --file | --fil | --fi | --f )
16014 $ac_shift
cd9a469c 16015 case $ac_optarg in
16016 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
f00f02a3 16017 '') as_fn_error $? "missing file argument" ;;
cd9a469c 16018 esac
16019 as_fn_append CONFIG_FILES " '$ac_optarg'"
5084f823 16020 ac_need_defaults=false;;
cd9a469c 16021 --he | --h | --help | --hel | -h )
16022 $as_echo "$ac_cs_usage"; exit ;;
b30fcfae 16023 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16024 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16025 ac_cs_silent=: ;;
16026
16027 # This is an error.
f00f02a3 16028 -*) as_fn_error $? "unrecognized option: \`$1'
cd9a469c 16029Try \`$0 --help' for more information." ;;
b30fcfae 16030
cd9a469c 16031 *) as_fn_append ac_config_targets " $1"
16032 ac_need_defaults=false ;;
b30fcfae 16033
a83ffacf 16034 esac
b30fcfae 16035 shift
a83ffacf 16036done
16037
b30fcfae 16038ac_configure_extra_args=
a83ffacf 16039
b30fcfae 16040if $ac_cs_silent; then
16041 exec 6>/dev/null
16042 ac_configure_extra_args="$ac_configure_extra_args --silent"
16043fi
a83ffacf 16044
b30fcfae 16045_ACEOF
cd9a469c 16046cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b30fcfae 16047if \$ac_cs_recheck; then
f00f02a3 16048 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cd9a469c 16049 shift
16050 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16051 CONFIG_SHELL='$SHELL'
16052 export CONFIG_SHELL
16053 exec "\$@"
b30fcfae 16054fi
16055
16056_ACEOF
cd9a469c 16057cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16058exec 5>>config.log
16059{
16060 echo
16061 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16062## Running $as_me. ##
16063_ASBOX
16064 $as_echo "$ac_log"
16065} >&5
b30fcfae 16066
cd9a469c 16067_ACEOF
16068cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8bb79148 16069#
16070# INIT-COMMANDS
16071#
16072extrasub_build="$extrasub_build"
16073 extrasub_host="$extrasub_host"
16074 extrasub_target="$extrasub_target"
16075
cd9a469c 16076_ACEOF
b30fcfae 16077
cd9a469c 16078cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
570af75a 16079
cd9a469c 16080# Handling of arguments.
b30fcfae 16081for ac_config_target in $ac_config_targets
16082do
cd9a469c 16083 case $ac_config_target in
16084 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16085
f00f02a3 16086 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
b30fcfae 16087 esac
16088done
16089
cd9a469c 16090
b30fcfae 16091# If the user did not use the arguments to specify the items to instantiate,
16092# then the envvar interface is used. Set only those that are not.
16093# We use the long form for the default assignment because of an extremely
16094# bizarre bug on SunOS 4.1.3.
16095if $ac_need_defaults; then
16096 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16097fi
16098
16099# Have a temporary directory for convenience. Make it in the build tree
cd9a469c 16100# simply because there is no reason against having it here, and in addition,
b30fcfae 16101# creating and moving files from /tmp can sometimes cause problems.
cd9a469c 16102# Hook for its removal unless debugging.
16103# Note that there is a small window in which the directory will not be cleaned:
16104# after its creation but before its name has been assigned to `$tmp'.
b30fcfae 16105$debug ||
16106{
f00f02a3 16107 tmp= ac_tmp=
cd9a469c 16108 trap 'exit_status=$?
f00f02a3 16109 : "${ac_tmp:=$tmp}"
16110 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cd9a469c 16111' 0
16112 trap 'as_fn_exit 1' 1 2 13 15
b30fcfae 16113}
b30fcfae 16114# Create a (secure) tmp directory for tmp files.
16115
16116{
cd9a469c 16117 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
f00f02a3 16118 test -d "$tmp"
b30fcfae 16119} ||
16120{
cd9a469c 16121 tmp=./conf$$-$RANDOM
16122 (umask 077 && mkdir "$tmp")
f00f02a3 16123} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16124ac_tmp=$tmp
cd9a469c 16125
16126# Set up the scripts for CONFIG_FILES section.
16127# No need to generate them if there are no CONFIG_FILES.
16128# This happens for instance with `./config.status config.h'.
16129if test -n "$CONFIG_FILES"; then
16130
16131if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16132 ac_cs_awk_getline=:
16133 ac_cs_awk_pipe_init=
16134 ac_cs_awk_read_file='
16135 while ((getline aline < (F[key])) > 0)
16136 print(aline)
16137 close(F[key])'
16138 ac_cs_awk_pipe_fini=
16139else
16140 ac_cs_awk_getline=false
16141 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16142 ac_cs_awk_read_file='
16143 print "|#_!!_#|"
16144 print "cat " F[key] " &&"
16145 '$ac_cs_awk_pipe_init
16146 # The final `:' finishes the AND list.
16147 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16148fi
16149ac_cr=`echo X | tr X '\015'`
16150# On cygwin, bash can eat \r inside `` if the user requested igncr.
16151# But we know of no other shell where ac_cr would be empty at this
16152# point, so we can use a bashism as a fallback.
16153if test "x$ac_cr" = x; then
16154 eval ac_cr=\$\'\\r\'
16155fi
16156ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16157if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
f00f02a3 16158 ac_cs_awk_cr='\\r'
cd9a469c 16159else
16160 ac_cs_awk_cr=$ac_cr
16161fi
16162
f00f02a3 16163echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cd9a469c 16164_ACEOF
16165
16166# Create commands to substitute file output variables.
b30fcfae 16167{
cd9a469c 16168 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
f00f02a3 16169 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
cd9a469c 16170 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16171 echo "_ACAWK" &&
16172 echo "_ACEOF"
16173} >conf$$files.sh &&
16174. ./conf$$files.sh ||
f00f02a3 16175 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cd9a469c 16176rm -f conf$$files.sh
b30fcfae 16177
cd9a469c 16178{
16179 echo "cat >conf$$subs.awk <<_ACEOF" &&
16180 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16181 echo "_ACEOF"
16182} >conf$$subs.sh ||
f00f02a3 16183 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16184ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cd9a469c 16185ac_delim='%!_!# '
16186for ac_last_try in false false false false false :; do
16187 . ./conf$$subs.sh ||
f00f02a3 16188 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cd9a469c 16189
16190 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16191 if test $ac_delim_n = $ac_delim_num; then
16192 break
16193 elif $ac_last_try; then
f00f02a3 16194 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cd9a469c 16195 else
16196 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16197 fi
16198done
16199rm -f conf$$subs.sh
16200
16201cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f00f02a3 16202cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5084f823 16203_ACEOF
cd9a469c 16204sed -n '
16205h
16206s/^/S["/; s/!.*/"]=/
16207p
16208g
16209s/^[^!]*!//
16210:repl
16211t repl
16212s/'"$ac_delim"'$//
16213t delim
16214:nl
16215h
f00f02a3 16216s/\(.\{148\}\)..*/\1/
cd9a469c 16217t more1
16218s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16219p
16220n
16221b repl
16222:more1
16223s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16224p
16225g
16226s/.\{148\}//
16227t nl
16228:delim
16229h
f00f02a3 16230s/\(.\{148\}\)..*/\1/
cd9a469c 16231t more2
16232s/["\\]/\\&/g; s/^/"/; s/$/"/
16233p
16234b
16235:more2
16236s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16237p
16238g
16239s/.\{148\}//
16240t delim
16241' <conf$$subs.awk | sed '
16242/^[^""]/{
16243 N
16244 s/\n//
16245}
16246' >>$CONFIG_STATUS || ac_write_fail=1
16247rm -f conf$$subs.awk
16248cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16249_ACAWK
f00f02a3 16250cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cd9a469c 16251 for (key in S) S_is_set[key] = 1
16252 FS = "\a"
16253 \$ac_cs_awk_pipe_init
16254}
16255{
16256 line = $ 0
16257 nfields = split(line, field, "@")
16258 substed = 0
16259 len = length(field[1])
16260 for (i = 2; i < nfields; i++) {
16261 key = field[i]
16262 keylen = length(key)
16263 if (S_is_set[key]) {
16264 value = S[key]
16265 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16266 len += length(value) + length(field[++i])
16267 substed = 1
16268 } else
16269 len += 1 + keylen
16270 }
16271 if (nfields == 3 && !substed) {
16272 key = field[2]
16273 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16274 \$ac_cs_awk_read_file
16275 next
16276 }
16277 }
16278 print line
16279}
16280\$ac_cs_awk_pipe_fini
16281_ACAWK
16282_ACEOF
16283cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16284if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16285 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16286else
16287 cat
f00f02a3 16288fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16289 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cd9a469c 16290_ACEOF
16291
f00f02a3 16292# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16293# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cd9a469c 16294# trailing colons and then remove the whole line if VPATH becomes empty
16295# (actually we leave an empty line to preserve line numbers).
16296if test "x$srcdir" = x.; then
f00f02a3 16297 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16298h
16299s///
16300s/^/:/
16301s/[ ]*$/:/
16302s/:\$(srcdir):/:/g
16303s/:\${srcdir}:/:/g
16304s/:@srcdir@:/:/g
16305s/^:*//
cd9a469c 16306s/:*$//
f00f02a3 16307x
16308s/\(=[ ]*\).*/\1/
16309G
16310s/\n//
cd9a469c 16311s/^[^=]*=[ ]*$//
16312}'
16313fi
5084f823 16314
cd9a469c 16315cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16316fi # test -n "$CONFIG_FILES"
5084f823 16317
b30fcfae 16318
cd9a469c 16319eval set X " :F $CONFIG_FILES "
16320shift
16321for ac_tag
16322do
16323 case $ac_tag in
16324 :[FHLC]) ac_mode=$ac_tag; continue;;
16325 esac
16326 case $ac_mode$ac_tag in
16327 :[FHL]*:*);;
f00f02a3 16328 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cd9a469c 16329 :[FH]-) ac_tag=-:-;;
16330 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16331 esac
16332 ac_save_IFS=$IFS
16333 IFS=:
16334 set x $ac_tag
16335 IFS=$ac_save_IFS
16336 shift
16337 ac_file=$1
16338 shift
a8298541 16339
cd9a469c 16340 case $ac_mode in
16341 :L) ac_source=$1;;
16342 :[FH])
16343 ac_file_inputs=
16344 for ac_f
16345 do
16346 case $ac_f in
f00f02a3 16347 -) ac_f="$ac_tmp/stdin";;
cd9a469c 16348 *) # Look for the file first in the build tree, then in the source tree
16349 # (if the path is not absolute). The absolute path cannot be DOS-style,
16350 # because $ac_f cannot contain `:'.
16351 test -f "$ac_f" ||
16352 case $ac_f in
16353 [\\/$]*) false;;
16354 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16355 esac ||
f00f02a3 16356 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cd9a469c 16357 esac
16358 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16359 as_fn_append ac_file_inputs " '$ac_f'"
16360 done
b30fcfae 16361
cd9a469c 16362 # Let's still pretend it is `configure' which instantiates (i.e., don't
16363 # use $as_me), people would be surprised to read:
16364 # /* config.h. Generated by config.status. */
16365 configure_input='Generated from '`
16366 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16367 `' by configure.'
16368 if test x"$ac_file" != x-; then
16369 configure_input="$ac_file. $configure_input"
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16371$as_echo "$as_me: creating $ac_file" >&6;}
5084f823 16372 fi
cd9a469c 16373 # Neutralize special characters interpreted by sed in replacement strings.
16374 case $configure_input in #(
16375 *\&* | *\|* | *\\* )
16376 ac_sed_conf_input=`$as_echo "$configure_input" |
16377 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16378 *) ac_sed_conf_input=$configure_input;;
16379 esac
570af75a 16380
cd9a469c 16381 case $ac_tag in
f00f02a3 16382 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16383 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cd9a469c 16384 esac
16385 ;;
570af75a 16386 esac
16387
cd9a469c 16388 ac_dir=`$as_dirname -- "$ac_file" ||
b30fcfae 16389$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16390 X"$ac_file" : 'X\(//\)[^/]' \| \
16391 X"$ac_file" : 'X\(//\)$' \| \
cd9a469c 16392 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16393$as_echo X"$ac_file" |
16394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16395 s//\1/
16396 q
16397 }
16398 /^X\(\/\/\)[^/].*/{
16399 s//\1/
16400 q
16401 }
16402 /^X\(\/\/\)$/{
16403 s//\1/
16404 q
16405 }
16406 /^X\(\/\).*/{
16407 s//\1/
16408 q
16409 }
16410 s/.*/./; q'`
16411 as_dir="$ac_dir"; as_fn_mkdir_p
b30fcfae 16412 ac_builddir=.
a83ffacf 16413
cd9a469c 16414case "$ac_dir" in
16415.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16416*)
16417 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16418 # A ".." for each directory in $ac_dir_suffix.
16419 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16420 case $ac_top_builddir_sub in
16421 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16422 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16423 esac ;;
16424esac
16425ac_abs_top_builddir=$ac_pwd
16426ac_abs_builddir=$ac_pwd$ac_dir_suffix
16427# for backward compatibility:
16428ac_top_builddir=$ac_top_build_prefix
b30fcfae 16429
16430case $srcdir in
cd9a469c 16431 .) # We are building in place.
b30fcfae 16432 ac_srcdir=.
cd9a469c 16433 ac_top_srcdir=$ac_top_builddir_sub
16434 ac_abs_top_srcdir=$ac_pwd ;;
16435 [\\/]* | ?:[\\/]* ) # Absolute name.
b30fcfae 16436 ac_srcdir=$srcdir$ac_dir_suffix;
cd9a469c 16437 ac_top_srcdir=$srcdir
16438 ac_abs_top_srcdir=$srcdir ;;
16439 *) # Relative name.
16440 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16441 ac_top_srcdir=$ac_top_build_prefix$srcdir
16442 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b30fcfae 16443esac
cd9a469c 16444ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b1660f25 16445
a83ffacf 16446
cd9a469c 16447 case $ac_mode in
16448 :F)
16449 #
16450 # CONFIG_FILE
16451 #
b30fcfae 16452
16453 case $INSTALL in
16454 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
cd9a469c 16455 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
71ab34df 16456 esac
cd9a469c 16457_ACEOF
570af75a 16458
cd9a469c 16459cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16460# If the template does not know about datarootdir, expand it.
16461# FIXME: This hack should be removed a few years after 2.60.
16462ac_datarootdir_hack=; ac_datarootdir_seen=
16463ac_sed_dataroot='
16464/datarootdir/ {
16465 p
16466 q
16467}
16468/@datadir@/p
16469/@docdir@/p
16470/@infodir@/p
16471/@localedir@/p
16472/@mandir@/p'
16473case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16474*datarootdir*) ac_datarootdir_seen=yes;;
16475*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16477$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
570af75a 16478_ACEOF
cd9a469c 16479cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16480 ac_datarootdir_hack='
16481 s&@datadir@&$datadir&g
16482 s&@docdir@&$docdir&g
16483 s&@infodir@&$infodir&g
16484 s&@localedir@&$localedir&g
16485 s&@mandir@&$mandir&g
16486 s&\\\${datarootdir}&$datarootdir&g' ;;
16487esac
16488_ACEOF
16489
16490# Neutralize VPATH when `$srcdir' = `.'.
16491# Shell code in configure.ac might set extrasub.
16492# FIXME: do we really want to maintain this feature?
16493cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16494ac_sed_extra="$ac_vpsub
b30fcfae 16495$extrasub
16496_ACEOF
cd9a469c 16497cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b30fcfae 16498:t
16499/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
cd9a469c 16500s|@configure_input@|$ac_sed_conf_input|;t t
16501s&@top_builddir@&$ac_top_builddir_sub&;t t
16502s&@top_build_prefix@&$ac_top_build_prefix&;t t
16503s&@srcdir@&$ac_srcdir&;t t
16504s&@abs_srcdir@&$ac_abs_srcdir&;t t
16505s&@top_srcdir@&$ac_top_srcdir&;t t
16506s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16507s&@builddir@&$ac_builddir&;t t
16508s&@abs_builddir@&$ac_abs_builddir&;t t
16509s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16510s&@INSTALL@&$ac_INSTALL&;t t
16511$ac_datarootdir_hack
16512"
16513eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16514if $ac_cs_awk_getline; then
f00f02a3 16515 $AWK -f "$ac_tmp/subs.awk"
cd9a469c 16516else
f00f02a3 16517 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16518fi \
16519 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cd9a469c 16520
16521test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
f00f02a3 16522 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16523 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16524 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cd9a469c 16525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
f00f02a3 16526which seems to be undefined. Please make sure it is defined" >&5
cd9a469c 16527$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
f00f02a3 16528which seems to be undefined. Please make sure it is defined" >&2;}
cd9a469c 16529
f00f02a3 16530 rm -f "$ac_tmp/stdin"
cd9a469c 16531 case $ac_file in
f00f02a3 16532 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16533 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cd9a469c 16534 esac \
f00f02a3 16535 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cd9a469c 16536 ;;
570af75a 16537
570af75a 16538
a8298541 16539
cd9a469c 16540 esac
16541
8bb79148 16542
16543 case $ac_file$ac_mode in
16544 "Makefile":F) sed "$extrasub_build" Makefile |
16545 sed "$extrasub_host" |
16546 sed "$extrasub_target" > mf$$
16547 mv -f mf$$ Makefile ;;
16548
16549 esac
cd9a469c 16550done # for ac_tag
16551
16552
16553as_fn_exit 0
b30fcfae 16554_ACEOF
b30fcfae 16555ac_clean_files=$ac_clean_files_save
16556
cd9a469c 16557test $ac_write_fail = 0 ||
f00f02a3 16558 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cd9a469c 16559
b30fcfae 16560
16561# configure is writing to config.log, and then calls config.status.
16562# config.status does its own redirection, appending to config.log.
16563# Unfortunately, on DOS this fails, as config.log is still kept open
16564# by configure, so config.status won't be able to write to it; its
16565# output is simply discarded. So we exec the FD to /dev/null,
16566# effectively closing config.log, so it can be properly (re)opened and
16567# appended to by config.status. When coming back to configure, we
16568# need to make the FD available again.
16569if test "$no_create" != yes; then
16570 ac_cs_success=:
16571 ac_config_status_args=
16572 test "$silent" = yes &&
16573 ac_config_status_args="$ac_config_status_args --quiet"
16574 exec 5>/dev/null
16575 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16576 exec 5>>config.log
16577 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16578 # would make configure fail if this is the last instruction.
f00f02a3 16579 $ac_cs_success || as_fn_exit 1
cd9a469c 16580fi
16581if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16583$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
b30fcfae 16584fi
a8298541 16585