Sync toplevel configure.ac with GCC
[deliverable/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
a0da8069 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
RW
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
a0da8069
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
c6b750e1 14
81ecdfbb
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
c6b750e1 31fi
c6b750e1 32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
c6b750e1
DJ
79fi
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
c6b750e1
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
8e957354
PB
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
81ecdfbb
RW
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
c6b750e1 184do
81ecdfbb
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
c6b750e1 228 else
81ecdfbb
RW
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
c6b750e1 233 fi
81ecdfbb
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
c6b750e1 263
81ecdfbb
RW
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
375 as_expr=expr
376else
377 as_expr=false
378fi
379
81ecdfbb 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
381 as_basename=basename
382else
383 as_basename=false
384fi
385
81ecdfbb
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
c6b750e1 391
81ecdfbb 392as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
c6b750e1 410
c6b750e1
DJ
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
c6b750e1 418
81ecdfbb
RW
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
c6b750e1 428 sed '
81ecdfbb
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
c6b750e1 433 N
81ecdfbb
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
c6b750e1 436 t loop
81ecdfbb 437 s/-\n.*//
c6b750e1 438 ' >$as_me.lineno &&
81ecdfbb
RW
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
c6b750e1
DJ
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
c6b750e1
DJ
446 # Exit status is that of the last command.
447 exit
448}
449
81ecdfbb
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
c6b750e1
DJ
461esac
462
81ecdfbb
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
c6b750e1 466else
81ecdfbb
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
c6b750e1 469fi
81ecdfbb
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 472 as_ln_s='ln -s'
81ecdfbb
RW
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
c6b750e1 483 fi
c6b750e1
DJ
484else
485 as_ln_s='cp -p'
486fi
81ecdfbb
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
c6b750e1
DJ
489
490if mkdir -p . 2>/dev/null; then
81ecdfbb 491 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
81ecdfbb
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
c6b750e1
DJ
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
81ecdfbb 527exec 7<&0 </dev/null 6>&1
a0da8069 528
c6b750e1
DJ
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
c6b750e1
DJ
534#
535# Initializations.
536#
a0da8069 537ac_default_prefix=/usr/local
81ecdfbb 538ac_clean_files=
c6b750e1 539ac_config_libobj_dir=.
81ecdfbb 540LIBOBJS=
c6b750e1
DJ
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
c6b750e1
DJ
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
81ecdfbb 552PACKAGE_URL=
c6b750e1
DJ
553
554ac_unique_file="move-if-change"
81ecdfbb
RW
555enable_option_checking=no
556ac_subst_vars='LTLIBOBJS
557LIBOBJS
558compare_exclusions
82033c9b 559host_shared
81ecdfbb
RW
560stage2_werror_flag
561stage1_checking
562stage1_cflags
563MAINT
564MAINTAINER_MODE_FALSE
565MAINTAINER_MODE_TRUE
566COMPILER_NM_FOR_TARGET
567COMPILER_LD_FOR_TARGET
568COMPILER_AS_FOR_TARGET
569FLAGS_FOR_TARGET
570RAW_CXX_FOR_TARGET
571WINDMC_FOR_TARGET
572WINDRES_FOR_TARGET
573STRIP_FOR_TARGET
b121d7d4 574READELF_FOR_TARGET
81ecdfbb
RW
575RANLIB_FOR_TARGET
576OBJDUMP_FOR_TARGET
6b91c541 577OBJCOPY_FOR_TARGET
81ecdfbb
RW
578NM_FOR_TARGET
579LIPO_FOR_TARGET
580LD_FOR_TARGET
581DLLTOOL_FOR_TARGET
582AS_FOR_TARGET
583AR_FOR_TARGET
e552509b 584GOC_FOR_TARGET
81ecdfbb
RW
585GFORTRAN_FOR_TARGET
586GCJ_FOR_TARGET
587GCC_FOR_TARGET
588CXX_FOR_TARGET
589CC_FOR_TARGET
b121d7d4 590READELF
81ecdfbb
RW
591OBJDUMP
592OBJCOPY
593WINDMC
594WINDRES
595STRIP
596RANLIB
597NM
598LIPO
599LD
600DLLTOOL
601AS
602AR
603RUNTEST
604EXPECT
605MAKEINFO
606FLEX
607LEX
608M4
609BISON
610YACC
81ecdfbb
RW
611WINDRES_FOR_BUILD
612WINDMC_FOR_BUILD
613RANLIB_FOR_BUILD
614NM_FOR_BUILD
615LD_FOR_BUILD
616LDFLAGS_FOR_BUILD
e552509b 617GOC_FOR_BUILD
81ecdfbb
RW
618GFORTRAN_FOR_BUILD
619GCJ_FOR_BUILD
620DLLTOOL_FOR_BUILD
621CXX_FOR_BUILD
622CXXFLAGS_FOR_BUILD
623CFLAGS_FOR_BUILD
624CC_FOR_BUILD
625AS_FOR_BUILD
626AR_FOR_BUILD
911e63d0 627target_configdirs
81ecdfbb 628configdirs
81ecdfbb 629build_configdirs
81ecdfbb
RW
630INSTALL_GDB_TK
631GDB_TK
632CONFIGURE_GDB_TK
633build_tooldir
634tooldir
635GCC_SHLIB_SUBDIR
636RPATH_ENVVAR
4074d5f2
RW
637target_configargs
638host_configargs
639build_configargs
96655cc4 640BUILD_CONFIG
91c1f14c 641LDFLAGS_FOR_TARGET
81ecdfbb
RW
642CXXFLAGS_FOR_TARGET
643CFLAGS_FOR_TARGET
644DEBUG_PREFIX_CFLAGS_FOR_TARGET
645SYSROOT_CFLAGS_FOR_TARGET
e81d5d05 646extra_host_zlib_configure_flags
700d40ca 647extra_host_libiberty_configure_flags
1b6c0831
L
648stage1_languages
649extra_linker_plugin_flags
650extra_linker_plugin_configure_flags
7ec59b9e 651islinc
1b6c0831 652isllibs
81ecdfbb 653poststage1_ldflags
143754cd 654poststage1_libs
81ecdfbb 655stage1_ldflags
b3676d82 656stage1_libs
7ec59b9e 657extra_isl_gmp_configure_flags
81ecdfbb
RW
658extra_mpc_mpfr_configure_flags
659extra_mpc_gmp_configure_flags
660extra_mpfr_configure_flags
661gmpinc
662gmplibs
663do_compare
664GNATMAKE
665GNATBIND
666ac_ct_CXX
667CXXFLAGS
668CXX
669OBJEXT
670EXEEXT
671ac_ct_CC
672CPPFLAGS
673LDFLAGS
674CFLAGS
675CC
ffdd6afc 676EXTRA_CONFIGARGS_LIBJAVA
1b6c0831 677extra_liboffloadmic_configure_flags
81ecdfbb
RW
678target_subdir
679host_subdir
680build_subdir
681build_libsubdir
8e957354
PB
682AWK
683SED
81ecdfbb
RW
684LN_S
685LN
686INSTALL_DATA
687INSTALL_SCRIPT
688INSTALL_PROGRAM
689target_os
690target_vendor
691target_cpu
692target
693host_os
694host_vendor
695host_cpu
696host
697target_noncanonical
698host_noncanonical
699build_noncanonical
700build_os
701build_vendor
702build_cpu
703build
704TOPLEVEL_CONFIGURE_ARGUMENTS
705target_alias
706host_alias
707build_alias
708LIBS
709ECHO_T
710ECHO_N
711ECHO_C
712DEFS
713mandir
714localedir
715libdir
716psdir
717pdfdir
718dvidir
719htmldir
720infodir
721docdir
722oldincludedir
723includedir
724localstatedir
725sharedstatedir
726sysconfdir
727datadir
728datarootdir
729libexecdir
730sbindir
731bindir
732program_transform_name
733prefix
734exec_prefix
735PACKAGE_URL
736PACKAGE_BUGREPORT
737PACKAGE_STRING
738PACKAGE_VERSION
739PACKAGE_TARNAME
740PACKAGE_NAME
741PATH_SEPARATOR
742SHELL'
743ac_subst_files='serialization_dependencies
744host_makefile_frag
745target_makefile_frag
746alphaieee_frag
747ospace_frag'
748ac_user_opts='
749enable_option_checking
750with_build_libsubdir
cf39cfc5 751with_system_zlib
1b6c0831
L
752enable_as_accelerator_for
753enable_offload_targets
81ecdfbb 754enable_gold
c7791212 755enable_ld
89a1e9c3
PB
756enable_libquadmath
757enable_libquadmath_support
81ecdfbb
RW
758enable_libada
759enable_libssp
f66a9a70 760enable_libstdcxx
1b6c0831 761enable_liboffloadmic
ffdd6afc
ILT
762enable_static_libjava
763enable_bootstrap
81ecdfbb
RW
764with_mpc
765with_mpc_include
766with_mpc_lib
767with_mpfr_dir
768with_mpfr
769with_mpfr_include
770with_mpfr_lib
771with_gmp_dir
772with_gmp
773with_gmp_include
774with_gmp_lib
775with_host_libstdcxx
81ecdfbb 776with_stage1_libs
b3676d82 777with_stage1_ldflags
81ecdfbb 778with_boot_libs
143754cd 779with_boot_ldflags
7ec59b9e
L
780with_isl
781with_isl_include
782with_isl_lib
783enable_isl_version_check
700d40ca 784enable_lto
1b6c0831
L
785enable_linker_plugin_configure_flags
786enable_linker_plugin_flags
81ecdfbb
RW
787enable_stage1_languages
788enable_objc_gc
789with_build_sysroot
790with_debug_prefix_map
96655cc4 791with_build_config
730af8ee 792enable_vtable_verify
81ecdfbb
RW
793enable_serial_configure
794with_build_time_tools
795enable_maintainer_mode
796enable_stage1_checking
797enable_werror
82033c9b 798enable_host_shared
81ecdfbb
RW
799'
800 ac_precious_vars='build_alias
801host_alias
802target_alias
803CC
804CFLAGS
805LDFLAGS
806LIBS
807CPPFLAGS
808CXX
809CXXFLAGS
810CCC
4074d5f2
RW
811build_configargs
812host_configargs
813target_configargs
81ecdfbb
RW
814AR
815AS
816DLLTOOL
817LD
818LIPO
819NM
820RANLIB
821STRIP
822WINDRES
823WINDMC
824OBJCOPY
825OBJDUMP
b121d7d4 826READELF
81ecdfbb
RW
827CC_FOR_TARGET
828CXX_FOR_TARGET
829GCC_FOR_TARGET
830GCJ_FOR_TARGET
831GFORTRAN_FOR_TARGET
e552509b 832GOC_FOR_TARGET
81ecdfbb
RW
833AR_FOR_TARGET
834AS_FOR_TARGET
835DLLTOOL_FOR_TARGET
836LD_FOR_TARGET
837LIPO_FOR_TARGET
838NM_FOR_TARGET
6b91c541 839OBJCOPY_FOR_TARGET
81ecdfbb
RW
840OBJDUMP_FOR_TARGET
841RANLIB_FOR_TARGET
b121d7d4 842READELF_FOR_TARGET
81ecdfbb
RW
843STRIP_FOR_TARGET
844WINDRES_FOR_TARGET
845WINDMC_FOR_TARGET'
846
a0da8069
NN
847
848# Initialize some variables set by options.
c6b750e1
DJ
849ac_init_help=
850ac_init_version=false
81ecdfbb
RW
851ac_unrecognized_opts=
852ac_unrecognized_sep=
a0da8069
NN
853# The variables have the same names as the options, with
854# dashes changed to underlines.
c6b750e1 855cache_file=/dev/null
a0da8069 856exec_prefix=NONE
a0da8069 857no_create=
a0da8069
NN
858no_recursion=
859prefix=NONE
860program_prefix=NONE
861program_suffix=NONE
862program_transform_name=s,x,x,
863silent=
864site=
865srcdir=
a0da8069
NN
866verbose=
867x_includes=NONE
868x_libraries=NONE
c6b750e1
DJ
869
870# Installation directory options.
871# These are left unexpanded so users can "make install exec_prefix=/foo"
872# and all the variables that are supposed to be based on exec_prefix
873# by default will actually change.
874# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 875# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
876bindir='${exec_prefix}/bin'
877sbindir='${exec_prefix}/sbin'
878libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
879datarootdir='${prefix}/share'
880datadir='${datarootdir}'
a0da8069
NN
881sysconfdir='${prefix}/etc'
882sharedstatedir='${prefix}/com'
883localstatedir='${prefix}/var'
a0da8069
NN
884includedir='${prefix}/include'
885oldincludedir='/usr/include'
81ecdfbb
RW
886docdir='${datarootdir}/doc/${PACKAGE}'
887infodir='${datarootdir}/info'
888htmldir='${docdir}'
889dvidir='${docdir}'
890pdfdir='${docdir}'
891psdir='${docdir}'
892libdir='${exec_prefix}/lib'
893localedir='${datarootdir}/locale'
894mandir='${datarootdir}/man'
252b5132 895
a0da8069 896ac_prev=
81ecdfbb 897ac_dashdash=
a0da8069
NN
898for ac_option
899do
a0da8069
NN
900 # If the previous option needs an argument, assign it.
901 if test -n "$ac_prev"; then
81ecdfbb 902 eval $ac_prev=\$ac_option
a0da8069
NN
903 ac_prev=
904 continue
905 fi
252b5132 906
81ecdfbb
RW
907 case $ac_option in
908 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
909 *) ac_optarg=yes ;;
910 esac
a0da8069
NN
911
912 # Accept the important Cygnus configure options, so we can diagnose typos.
913
81ecdfbb
RW
914 case $ac_dashdash$ac_option in
915 --)
916 ac_dashdash=yes ;;
a0da8069
NN
917
918 -bindir | --bindir | --bindi | --bind | --bin | --bi)
919 ac_prev=bindir ;;
920 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 921 bindir=$ac_optarg ;;
a0da8069
NN
922
923 -build | --build | --buil | --bui | --bu)
c6b750e1 924 ac_prev=build_alias ;;
a0da8069 925 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 926 build_alias=$ac_optarg ;;
a0da8069
NN
927
928 -cache-file | --cache-file | --cache-fil | --cache-fi \
929 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
930 ac_prev=cache_file ;;
931 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
932 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
933 cache_file=$ac_optarg ;;
934
935 --config-cache | -C)
936 cache_file=config.cache ;;
a0da8069 937
81ecdfbb 938 -datadir | --datadir | --datadi | --datad)
a0da8069 939 ac_prev=datadir ;;
81ecdfbb 940 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 941 datadir=$ac_optarg ;;
a0da8069 942
81ecdfbb
RW
943 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
944 | --dataroo | --dataro | --datar)
945 ac_prev=datarootdir ;;
946 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
947 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
948 datarootdir=$ac_optarg ;;
949
a0da8069 950 -disable-* | --disable-*)
81ecdfbb 951 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 952 # Reject names that are not valid shell variable names.
81ecdfbb
RW
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 as_fn_error "invalid feature name: $ac_useropt"
955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
958 *"
959"enable_$ac_useropt"
960"*) ;;
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
963 esac
964 eval enable_$ac_useropt=no ;;
965
966 -docdir | --docdir | --docdi | --doc | --do)
967 ac_prev=docdir ;;
968 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
969 docdir=$ac_optarg ;;
970
971 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
972 ac_prev=dvidir ;;
973 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
974 dvidir=$ac_optarg ;;
a0da8069
NN
975
976 -enable-* | --enable-*)
81ecdfbb 977 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 978 # Reject names that are not valid shell variable names.
81ecdfbb
RW
979 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980 as_fn_error "invalid feature name: $ac_useropt"
981 ac_useropt_orig=$ac_useropt
982 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983 case $ac_user_opts in
984 *"
985"enable_$ac_useropt"
986"*) ;;
987 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
988 ac_unrecognized_sep=', ';;
a0da8069 989 esac
81ecdfbb 990 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
991
992 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
993 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
994 | --exec | --exe | --ex)
995 ac_prev=exec_prefix ;;
996 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
997 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
998 | --exec=* | --exe=* | --ex=*)
c6b750e1 999 exec_prefix=$ac_optarg ;;
a0da8069
NN
1000
1001 -gas | --gas | --ga | --g)
1002 # Obsolete; use --with-gas.
1003 with_gas=yes ;;
1004
c6b750e1
DJ
1005 -help | --help | --hel | --he | -h)
1006 ac_init_help=long ;;
1007 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1008 ac_init_help=recursive ;;
1009 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1010 ac_init_help=short ;;
a0da8069
NN
1011
1012 -host | --host | --hos | --ho)
c6b750e1 1013 ac_prev=host_alias ;;
a0da8069 1014 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 1015 host_alias=$ac_optarg ;;
a0da8069 1016
81ecdfbb
RW
1017 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1018 ac_prev=htmldir ;;
1019 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1020 | --ht=*)
1021 htmldir=$ac_optarg ;;
1022
a0da8069
NN
1023 -includedir | --includedir | --includedi | --included | --include \
1024 | --includ | --inclu | --incl | --inc)
1025 ac_prev=includedir ;;
1026 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1027 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 1028 includedir=$ac_optarg ;;
a0da8069
NN
1029
1030 -infodir | --infodir | --infodi | --infod | --info | --inf)
1031 ac_prev=infodir ;;
1032 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1033 infodir=$ac_optarg ;;
a0da8069
NN
1034
1035 -libdir | --libdir | --libdi | --libd)
1036 ac_prev=libdir ;;
1037 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1038 libdir=$ac_optarg ;;
a0da8069
NN
1039
1040 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1041 | --libexe | --libex | --libe)
1042 ac_prev=libexecdir ;;
1043 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1044 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1045 libexecdir=$ac_optarg ;;
a0da8069 1046
81ecdfbb
RW
1047 -localedir | --localedir | --localedi | --localed | --locale)
1048 ac_prev=localedir ;;
1049 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1050 localedir=$ac_optarg ;;
1051
a0da8069 1052 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1053 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1054 ac_prev=localstatedir ;;
1055 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1056 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1057 localstatedir=$ac_optarg ;;
a0da8069
NN
1058
1059 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1060 ac_prev=mandir ;;
1061 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1062 mandir=$ac_optarg ;;
a0da8069
NN
1063
1064 -nfp | --nfp | --nf)
1065 # Obsolete; use --without-fp.
1066 with_fp=no ;;
1067
1068 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1069 | --no-cr | --no-c | -n)
a0da8069
NN
1070 no_create=yes ;;
1071
1072 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1073 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1074 no_recursion=yes ;;
1075
1076 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1077 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1078 | --oldin | --oldi | --old | --ol | --o)
1079 ac_prev=oldincludedir ;;
1080 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1081 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1082 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1083 oldincludedir=$ac_optarg ;;
a0da8069
NN
1084
1085 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1086 ac_prev=prefix ;;
1087 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1088 prefix=$ac_optarg ;;
a0da8069
NN
1089
1090 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1091 | --program-pre | --program-pr | --program-p)
1092 ac_prev=program_prefix ;;
1093 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1094 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1095 program_prefix=$ac_optarg ;;
a0da8069
NN
1096
1097 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1098 | --program-suf | --program-su | --program-s)
1099 ac_prev=program_suffix ;;
1100 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1101 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1102 program_suffix=$ac_optarg ;;
a0da8069
NN
1103
1104 -program-transform-name | --program-transform-name \
1105 | --program-transform-nam | --program-transform-na \
1106 | --program-transform-n | --program-transform- \
1107 | --program-transform | --program-transfor \
1108 | --program-transfo | --program-transf \
1109 | --program-trans | --program-tran \
1110 | --progr-tra | --program-tr | --program-t)
1111 ac_prev=program_transform_name ;;
1112 -program-transform-name=* | --program-transform-name=* \
1113 | --program-transform-nam=* | --program-transform-na=* \
1114 | --program-transform-n=* | --program-transform-=* \
1115 | --program-transform=* | --program-transfor=* \
1116 | --program-transfo=* | --program-transf=* \
1117 | --program-trans=* | --program-tran=* \
1118 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1119 program_transform_name=$ac_optarg ;;
a0da8069 1120
81ecdfbb
RW
1121 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1122 ac_prev=pdfdir ;;
1123 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1124 pdfdir=$ac_optarg ;;
1125
1126 -psdir | --psdir | --psdi | --psd | --ps)
1127 ac_prev=psdir ;;
1128 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1129 psdir=$ac_optarg ;;
1130
a0da8069
NN
1131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1132 | -silent | --silent | --silen | --sile | --sil)
1133 silent=yes ;;
1134
1135 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1136 ac_prev=sbindir ;;
1137 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1138 | --sbi=* | --sb=*)
c6b750e1 1139 sbindir=$ac_optarg ;;
a0da8069
NN
1140
1141 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1142 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1143 | --sharedst | --shareds | --shared | --share | --shar \
1144 | --sha | --sh)
1145 ac_prev=sharedstatedir ;;
1146 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1147 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1148 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1149 | --sha=* | --sh=*)
c6b750e1 1150 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1151
1152 -site | --site | --sit)
1153 ac_prev=site ;;
1154 -site=* | --site=* | --sit=*)
c6b750e1 1155 site=$ac_optarg ;;
a0da8069
NN
1156
1157 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1158 ac_prev=srcdir ;;
1159 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1160 srcdir=$ac_optarg ;;
a0da8069
NN
1161
1162 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1163 | --syscon | --sysco | --sysc | --sys | --sy)
1164 ac_prev=sysconfdir ;;
1165 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1166 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1167 sysconfdir=$ac_optarg ;;
a0da8069
NN
1168
1169 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1170 ac_prev=target_alias ;;
a0da8069 1171 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1172 target_alias=$ac_optarg ;;
a0da8069
NN
1173
1174 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1175 verbose=yes ;;
1176
c6b750e1
DJ
1177 -version | --version | --versio | --versi | --vers | -V)
1178 ac_init_version=: ;;
a0da8069
NN
1179
1180 -with-* | --with-*)
81ecdfbb 1181 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1182 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error "invalid package name: $ac_useropt"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1188 *"
1189"with_$ac_useropt"
1190"*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
a0da8069 1193 esac
81ecdfbb 1194 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1195
1196 -without-* | --without-*)
81ecdfbb 1197 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1198 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200 as_fn_error "invalid package name: $ac_useropt"
1201 ac_useropt_orig=$ac_useropt
1202 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1204 *"
1205"with_$ac_useropt"
1206"*) ;;
1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1208 ac_unrecognized_sep=', ';;
1209 esac
1210 eval with_$ac_useropt=no ;;
a0da8069
NN
1211
1212 --x)
1213 # Obsolete; use --with-x.
1214 with_x=yes ;;
1215
1216 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217 | --x-incl | --x-inc | --x-in | --x-i)
1218 ac_prev=x_includes ;;
1219 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1221 x_includes=$ac_optarg ;;
a0da8069
NN
1222
1223 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225 ac_prev=x_libraries ;;
1226 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1228 x_libraries=$ac_optarg ;;
a0da8069 1229
81ecdfbb
RW
1230 -*) as_fn_error "unrecognized option: \`$ac_option'
1231Try \`$0 --help' for more information."
a0da8069
NN
1232 ;;
1233
c6b750e1
DJ
1234 *=*)
1235 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1236 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1237 case $ac_envvar in #(
1238 '' | [0-9]* | *[!_$as_cr_alnum]* )
1239 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1240 esac
1241 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1242 export $ac_envvar ;;
1243
a0da8069 1244 *)
c6b750e1 1245 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1246 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1247 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1248 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
c6b750e1 1249 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
1250 ;;
1251
1252 esac
1253done
1254
1255if test -n "$ac_prev"; then
c6b750e1 1256 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1257 as_fn_error "missing argument to $ac_option"
a0da8069 1258fi
a0da8069 1259
81ecdfbb
RW
1260if test -n "$ac_unrecognized_opts"; then
1261 case $enable_option_checking in
1262 no) ;;
1263 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1264 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1265 esac
81ecdfbb 1266fi
a0da8069 1267
81ecdfbb
RW
1268# Check all directory arguments for consistency.
1269for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1270 datadir sysconfdir sharedstatedir localstatedir includedir \
1271 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1272 libdir localedir mandir
a0da8069 1273do
81ecdfbb
RW
1274 eval ac_val=\$$ac_var
1275 # Remove trailing slashes.
1276 case $ac_val in
1277 */ )
1278 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1279 eval $ac_var=\$ac_val;;
1280 esac
1281 # Be sure to have absolute directory names.
c6b750e1 1282 case $ac_val in
81ecdfbb
RW
1283 [\\/$]* | ?:[\\/]* ) continue;;
1284 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1285 esac
81ecdfbb 1286 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1287done
1288
c6b750e1
DJ
1289# There might be people who depend on the old broken behavior: `$host'
1290# used to hold the argument of --host etc.
1291# FIXME: To remove some day.
1292build=$build_alias
1293host=$host_alias
1294target=$target_alias
376a0e54 1295
c6b750e1
DJ
1296# FIXME: To remove some day.
1297if test "x$host_alias" != x; then
1298 if test "x$build_alias" = x; then
1299 cross_compiling=maybe
81ecdfbb 1300 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
c6b750e1
DJ
1301 If a cross compiler is detected then cross compile mode will be used." >&2
1302 elif test "x$build_alias" != "x$host_alias"; then
1303 cross_compiling=yes
1304 fi
1305fi
1306
1307ac_tool_prefix=
1308test -n "$host_alias" && ac_tool_prefix=$host_alias-
1309
1310test "$silent" = yes && exec 6>/dev/null
a0da8069 1311
a0da8069 1312
81ecdfbb
RW
1313ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314ac_ls_di=`ls -di .` &&
1315ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316 as_fn_error "working directory cannot be determined"
1317test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1318 as_fn_error "pwd does not report name of working directory"
1319
1320
a0da8069
NN
1321# Find the source files, if location was not specified.
1322if test -z "$srcdir"; then
1323 ac_srcdir_defaulted=yes
81ecdfbb
RW
1324 # Try the directory containing this script, then the parent directory.
1325 ac_confdir=`$as_dirname -- "$as_myself" ||
1326$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327 X"$as_myself" : 'X\(//\)[^/]' \| \
1328 X"$as_myself" : 'X\(//\)$' \| \
1329 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1330$as_echo X"$as_myself" |
1331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\/\)[^/].*/{
1336 s//\1/
1337 q
1338 }
1339 /^X\(\/\/\)$/{
1340 s//\1/
1341 q
1342 }
1343 /^X\(\/\).*/{
1344 s//\1/
1345 q
1346 }
1347 s/.*/./; q'`
a0da8069 1348 srcdir=$ac_confdir
81ecdfbb 1349 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1350 srcdir=..
1351 fi
1352else
1353 ac_srcdir_defaulted=no
1354fi
81ecdfbb
RW
1355if test ! -r "$srcdir/$ac_unique_file"; then
1356 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1357 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1358fi
1359ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1360ac_abs_confdir=`(
1361 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1362 pwd)`
1363# When building in place, set srcdir=.
1364if test "$ac_abs_confdir" = "$ac_pwd"; then
1365 srcdir=.
1366fi
1367# Remove unnecessary trailing slashes from srcdir.
1368# Double slashes in file names in object file debugging info
1369# mess up M-x gdb in Emacs.
1370case $srcdir in
1371*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1372esac
6d0cd39e
AM
1373case $srcdir in
1374 *" "*)
1375 as_fn_error "path to source, $srcdir, contains spaces"
1376 ;;
1377esac
9cc8ae67
PB
1378ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1379
81ecdfbb
RW
1380for ac_var in $ac_precious_vars; do
1381 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_env_${ac_var}_value=\$${ac_var}
1383 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1385done
c6b750e1
DJ
1386
1387#
1388# Report the --help message.
1389#
1390if test "$ac_init_help" = "long"; then
1391 # Omit some internal or obsolete options to make the list less imposing.
1392 # This message is too long to be a string in the A/UX 3.1 sh.
1393 cat <<_ACEOF
1394\`configure' configures this package to adapt to many kinds of systems.
1395
1396Usage: $0 [OPTION]... [VAR=VALUE]...
1397
1398To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399VAR=VALUE. See below for descriptions of some of the useful variables.
1400
1401Defaults for the options are specified in brackets.
1402
1403Configuration:
1404 -h, --help display this help and exit
1405 --help=short display options specific to this package
1406 --help=recursive display the short help of all the included packages
1407 -V, --version display version information and exit
1408 -q, --quiet, --silent do not print \`checking...' messages
1409 --cache-file=FILE cache test results in FILE [disabled]
1410 -C, --config-cache alias for \`--cache-file=config.cache'
1411 -n, --no-create do not create output files
1412 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1413
c6b750e1
DJ
1414Installation directories:
1415 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1416 [$ac_default_prefix]
c6b750e1 1417 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1418 [PREFIX]
c6b750e1
DJ
1419
1420By default, \`make install' will install all the files in
1421\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1422an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423for instance \`--prefix=\$HOME'.
1424
1425For better control, use the options below.
1426
1427Fine tuning of the installation directories:
81ecdfbb
RW
1428 --bindir=DIR user executables [EPREFIX/bin]
1429 --sbindir=DIR system admin executables [EPREFIX/sbin]
1430 --libexecdir=DIR program executables [EPREFIX/libexec]
1431 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1432 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1433 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1434 --libdir=DIR object code libraries [EPREFIX/lib]
1435 --includedir=DIR C header files [PREFIX/include]
1436 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1437 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1438 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1439 --infodir=DIR info documentation [DATAROOTDIR/info]
1440 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1441 --mandir=DIR man documentation [DATAROOTDIR/man]
1442 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1443 --htmldir=DIR html documentation [DOCDIR]
1444 --dvidir=DIR dvi documentation [DOCDIR]
1445 --pdfdir=DIR pdf documentation [DOCDIR]
1446 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1447_ACEOF
1448
1449 cat <<\_ACEOF
1450
1451Program names:
1452 --program-prefix=PREFIX prepend PREFIX to installed program names
1453 --program-suffix=SUFFIX append SUFFIX to installed program names
1454 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1455
1456System types:
1457 --build=BUILD configure for building on BUILD [guessed]
1458 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1459 --target=TARGET configure for building compilers for TARGET [HOST]
1460_ACEOF
a0da8069 1461fi
a0da8069 1462
c6b750e1
DJ
1463if test -n "$ac_init_help"; then
1464
1465 cat <<\_ACEOF
1466
1467Optional Features:
81ecdfbb 1468 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1469 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1470 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1b6c0831
L
1471 --enable-as-accelerator-for=ARG
1472 build as offload target compiler. Specify offload
1473 host triple by ARG
1474 --enable-offload-targets=LIST
1475 enable offloading to devices from comma-separated
1476 LIST of TARGET[=DIR]. Use optional path to find
1477 offload target compiler during the build
c7791212 1478 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7837304f 1479 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
89a1e9c3
PB
1480 --disable-libquadmath do not build libquadmath directory
1481 --disable-libquadmath-support
1482 disable libquadmath support for Fortran
521ec477
DD
1483 --enable-libada build libada directory
1484 --enable-libssp build libssp directory
f66a9a70 1485 --disable-libstdcxx do not build libstdc++-v3 directory
1b6c0831
L
1486 --enable-liboffloadmic=ARG
1487 build liboffloadmic [ARG={no,host,target}]
ffdd6afc
ILT
1488 --enable-static-libjava[=ARG]
1489 build static libjava [default=no]
1490 --enable-bootstrap enable bootstrapping [yes if native build]
7ec59b9e
L
1491 --disable-isl-version-check
1492 disable check for ISL version
700d40ca 1493 --enable-lto enable link time optimization support
1b6c0831
L
1494 --enable-linker-plugin-configure-flags=FLAGS
1495 additional flags for configuring linker plugins
1496 [none]
1497 --enable-linker-plugin-flags=FLAGS
1498 additional flags for configuring and building linker
1499 plugins [none]
7837304f
AS
1500 --enable-stage1-languages[=all]
1501 choose additional languages to build during stage1.
1502 Mostly useful for compiler development
1503 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1504 Objective-C runtime
ce6c656d 1505 --enable-vtable-verify Enable vtable verification feature
521ec477 1506 --enable-serial-[{host,target,build}-]configure
7837304f
AS
1507 force sequential configuration of sub-packages for
1508 the host, target or build machine, or all
1509 sub-packages
1510 --enable-maintainer-mode
1511 enable make rules and dependencies not useful (and
1512 sometimes confusing) to the casual installer
1513 --enable-stage1-checking[=all]
1514 choose additional checking for stage1 of the
1515 compiler
c6b750e1 1516 --enable-werror enable -Werror in bootstrap stage2 and later
82033c9b 1517 --enable-host-shared build host code as shared libraries
c6b750e1
DJ
1518
1519Optional Packages:
1520 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1521 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1522 --with-build-libsubdir=DIR Directory where to find libraries for build system
cf39cfc5 1523 --with-system-zlib use installed libz
7837304f
AS
1524 --with-mpc=PATH specify prefix directory for installed MPC package.
1525 Equivalent to --with-mpc-include=PATH/include plus
1526 --with-mpc-lib=PATH/lib
1527 --with-mpc-include=PATH specify directory for installed MPC include files
1528 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
1529 --with-mpfr-dir=PATH this option has been REMOVED
1530 --with-mpfr=PATH specify prefix directory for installed MPFR package.
7837304f
AS
1531 Equivalent to --with-mpfr-include=PATH/include plus
1532 --with-mpfr-lib=PATH/lib
c6b750e1 1533 --with-mpfr-include=PATH
521ec477
DD
1534 specify directory for installed MPFR include files
1535 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1536 --with-gmp-dir=PATH this option has been REMOVED
7837304f
AS
1537 --with-gmp=PATH specify prefix directory for the installed GMP
1538 package. Equivalent to
1539 --with-gmp-include=PATH/include plus
1540 --with-gmp-lib=PATH/lib
521ec477
DD
1541 --with-gmp-include=PATH specify directory for installed GMP include files
1542 --with-gmp-lib=PATH specify directory for the installed GMP library
7837304f
AS
1543 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1544 linking with PPL
b3676d82 1545 --with-stage1-libs=LIBS libraries for stage1
7837304f
AS
1546 --with-stage1-ldflags=FLAGS
1547 linker flags for stage1
7837304f
AS
1548 --with-boot-libs=LIBS libraries for stage2 and later
1549 --with-boot-ldflags=FLAGS
1550 linker flags for stage2 and later
7ec59b9e 1551 --with-isl=PATH Specify prefix directory for the installed ISL
7837304f 1552 package. Equivalent to
7ec59b9e
L
1553 --with-isl-include=PATH/include plus
1554 --with-isl-lib=PATH/lib
1555 --with-isl-include=PATH Specify directory for installed ISL include files
1556 --with-isl-lib=PATH Specify the directory for the installed ISL library
521ec477 1557 --with-build-sysroot=SYSROOT
c6b750e1 1558 use sysroot as the system root during the build
8a6ee3ab 1559 --with-debug-prefix-map='A=B C=D ...'
7837304f
AS
1560 map A to B, C to D ... in debug information
1561 --with-build-config='NAME NAME2...'
1562 use config/NAME.mk build configuration
521ec477 1563 --with-build-time-tools=PATH
c6b750e1 1564 use given path to find target tools during the build
c6b750e1
DJ
1565
1566Some influential environment variables:
1567 CC C compiler command
1568 CFLAGS C compiler flags
1569 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1570 nonstandard directory <lib dir>
81ecdfbb
RW
1571 LIBS libraries to pass to the linker, e.g. -l<library>
1572 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1573 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1574 CXX C++ compiler command
1575 CXXFLAGS C++ compiler flags
4074d5f2
RW
1576 build_configargs
1577 additional configure arguments for build directories
1578 host_configargs
1579 additional configure arguments for host directories
1580 target_configargs
1581 additional configure arguments for target directories
9a819804
AO
1582 AR AR for the host
1583 AS AS for the host
1584 DLLTOOL DLLTOOL for the host
1585 LD LD for the host
1586 LIPO LIPO for the host
1587 NM NM for the host
1588 RANLIB RANLIB for the host
1589 STRIP STRIP for the host
1590 WINDRES WINDRES for the host
0c24b341 1591 WINDMC WINDMC for the host
9a819804
AO
1592 OBJCOPY OBJCOPY for the host
1593 OBJDUMP OBJDUMP for the host
b121d7d4 1594 READELF READELF for the host
9a819804
AO
1595 CC_FOR_TARGET
1596 CC for the target
1597 CXX_FOR_TARGET
1598 CXX for the target
1599 GCC_FOR_TARGET
1600 GCC for the target
1601 GCJ_FOR_TARGET
1602 GCJ for the target
1603 GFORTRAN_FOR_TARGET
1604 GFORTRAN for the target
e552509b
ILT
1605 GOC_FOR_TARGET
1606 GOC for the target
9a819804
AO
1607 AR_FOR_TARGET
1608 AR for the target
1609 AS_FOR_TARGET
1610 AS for the target
1611 DLLTOOL_FOR_TARGET
1612 DLLTOOL for the target
1613 LD_FOR_TARGET
1614 LD for the target
1615 LIPO_FOR_TARGET
1616 LIPO for the target
1617 NM_FOR_TARGET
1618 NM for the target
6b91c541
AP
1619 OBJCOPY_FOR_TARGET
1620 OBJCOPY for the target
9a819804
AO
1621 OBJDUMP_FOR_TARGET
1622 OBJDUMP for the target
1623 RANLIB_FOR_TARGET
1624 RANLIB for the target
b121d7d4
DD
1625 READELF_FOR_TARGET
1626 READELF for the target
9a819804
AO
1627 STRIP_FOR_TARGET
1628 STRIP for the target
1629 WINDRES_FOR_TARGET
1630 WINDRES for the target
0c24b341
NC
1631 WINDMC_FOR_TARGET
1632 WINDMC for the target
c6b750e1
DJ
1633
1634Use these variables to override the choices made by `configure' or to help
1635it to find libraries and programs with nonstandard names/locations.
1636
81ecdfbb 1637Report bugs to the package provider.
c6b750e1 1638_ACEOF
81ecdfbb 1639ac_status=$?
c6b750e1
DJ
1640fi
1641
1642if test "$ac_init_help" = "recursive"; then
1643 # If there are subdirs, report their specific --help.
c6b750e1 1644 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1645 test -d "$ac_dir" ||
1646 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1647 continue
c6b750e1
DJ
1648 ac_builddir=.
1649
81ecdfbb
RW
1650case "$ac_dir" in
1651.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1652*)
1653 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1654 # A ".." for each directory in $ac_dir_suffix.
1655 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1656 case $ac_top_builddir_sub in
1657 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1658 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1659 esac ;;
1660esac
1661ac_abs_top_builddir=$ac_pwd
1662ac_abs_builddir=$ac_pwd$ac_dir_suffix
1663# for backward compatibility:
1664ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1665
1666case $srcdir in
81ecdfbb 1667 .) # We are building in place.
c6b750e1 1668 ac_srcdir=.
81ecdfbb
RW
1669 ac_top_srcdir=$ac_top_builddir_sub
1670 ac_abs_top_srcdir=$ac_pwd ;;
1671 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1672 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1673 ac_top_srcdir=$srcdir
1674 ac_abs_top_srcdir=$srcdir ;;
1675 *) # Relative name.
1676 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1677 ac_top_srcdir=$ac_top_build_prefix$srcdir
1678 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1679esac
81ecdfbb
RW
1680ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1681
1682 cd "$ac_dir" || { ac_status=$?; continue; }
1683 # Check for guested configure.
1684 if test -f "$ac_srcdir/configure.gnu"; then
1685 echo &&
1686 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1687 elif test -f "$ac_srcdir/configure"; then
1688 echo &&
1689 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1690 else
81ecdfbb
RW
1691 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1692 fi || ac_status=$?
1693 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1694 done
1695fi
1696
81ecdfbb 1697test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1698if $ac_init_version; then
1699 cat <<\_ACEOF
81ecdfbb
RW
1700configure
1701generated by GNU Autoconf 2.64
c6b750e1 1702
81ecdfbb 1703Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
1704This configure script is free software; the Free Software Foundation
1705gives unlimited permission to copy, distribute and modify it.
1706_ACEOF
81ecdfbb 1707 exit
c6b750e1 1708fi
81ecdfbb
RW
1709
1710## ------------------------ ##
1711## Autoconf initialization. ##
1712## ------------------------ ##
1713
1714# ac_fn_c_try_compile LINENO
1715# --------------------------
1716# Try to compile conftest.$ac_ext, and return whether this succeeded.
1717ac_fn_c_try_compile ()
1718{
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 rm -f conftest.$ac_objext
1721 if { { ac_try="$ac_compile"
1722case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725esac
1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727$as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_compile") 2>conftest.err
1729 ac_status=$?
1730 if test -s conftest.err; then
1731 grep -v '^ *+' conftest.err >conftest.er1
1732 cat conftest.er1 >&5
1733 mv -f conftest.er1 conftest.err
1734 fi
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } && {
1737 test -z "$ac_c_werror_flag" ||
1738 test ! -s conftest.err
1739 } && test -s conftest.$ac_objext; then :
1740 ac_retval=0
1741else
1742 $as_echo "$as_me: failed program was:" >&5
1743sed 's/^/| /' conftest.$ac_ext >&5
1744
1745 ac_retval=1
1746fi
1747 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1748 return $ac_retval
1749
1750} # ac_fn_c_try_compile
1751
1752# ac_fn_cxx_try_compile LINENO
1753# ----------------------------
1754# Try to compile conftest.$ac_ext, and return whether this succeeded.
1755ac_fn_cxx_try_compile ()
1756{
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 rm -f conftest.$ac_objext
1759 if { { ac_try="$ac_compile"
1760case "(($ac_try" in
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1763esac
1764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765$as_echo "$ac_try_echo"; } >&5
1766 (eval "$ac_compile") 2>conftest.err
1767 ac_status=$?
1768 if test -s conftest.err; then
1769 grep -v '^ *+' conftest.err >conftest.er1
1770 cat conftest.er1 >&5
1771 mv -f conftest.er1 conftest.err
1772 fi
1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774 test $ac_status = 0; } && {
1775 test -z "$ac_cxx_werror_flag" ||
1776 test ! -s conftest.err
1777 } && test -s conftest.$ac_objext; then :
1778 ac_retval=0
1779else
1780 $as_echo "$as_me: failed program was:" >&5
1781sed 's/^/| /' conftest.$ac_ext >&5
1782
1783 ac_retval=1
1784fi
1785 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1786 return $ac_retval
1787
1788} # ac_fn_cxx_try_compile
1789
b3676d82
EB
1790# ac_fn_cxx_try_link LINENO
1791# -------------------------
1792# Try to link conftest.$ac_ext, and return whether this succeeded.
1793ac_fn_cxx_try_link ()
1794{
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 rm -f conftest.$ac_objext conftest$ac_exeext
1797 if { { ac_try="$ac_link"
1798case "(($ac_try" in
1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1801esac
1802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803$as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_link") 2>conftest.err
1805 ac_status=$?
1806 if test -s conftest.err; then
1807 grep -v '^ *+' conftest.err >conftest.er1
1808 cat conftest.er1 >&5
1809 mv -f conftest.er1 conftest.err
1810 fi
1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812 test $ac_status = 0; } && {
1813 test -z "$ac_cxx_werror_flag" ||
1814 test ! -s conftest.err
1815 } && test -s conftest$ac_exeext && {
1816 test "$cross_compiling" = yes ||
1817 $as_test_x conftest$ac_exeext
1818 }; then :
1819 ac_retval=0
1820else
1821 $as_echo "$as_me: failed program was:" >&5
1822sed 's/^/| /' conftest.$ac_ext >&5
1823
1824 ac_retval=1
1825fi
1826 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1827 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1828 # interfere with the next link command; also delete a directory that is
1829 # left behind by Apple's compiler. We do this before executing the actions.
1830 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1831 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1832 return $ac_retval
1833
1834} # ac_fn_cxx_try_link
1835
81ecdfbb
RW
1836# ac_fn_c_try_link LINENO
1837# -----------------------
1838# Try to link conftest.$ac_ext, and return whether this succeeded.
1839ac_fn_c_try_link ()
1840{
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 rm -f conftest.$ac_objext conftest$ac_exeext
1843 if { { ac_try="$ac_link"
1844case "(($ac_try" in
1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846 *) ac_try_echo=$ac_try;;
1847esac
1848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849$as_echo "$ac_try_echo"; } >&5
1850 (eval "$ac_link") 2>conftest.err
1851 ac_status=$?
1852 if test -s conftest.err; then
1853 grep -v '^ *+' conftest.err >conftest.er1
1854 cat conftest.er1 >&5
1855 mv -f conftest.er1 conftest.err
1856 fi
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } && {
1859 test -z "$ac_c_werror_flag" ||
1860 test ! -s conftest.err
1861 } && test -s conftest$ac_exeext && {
1862 test "$cross_compiling" = yes ||
1863 $as_test_x conftest$ac_exeext
1864 }; then :
1865 ac_retval=0
1866else
1867 $as_echo "$as_me: failed program was:" >&5
1868sed 's/^/| /' conftest.$ac_ext >&5
1869
1870 ac_retval=1
1871fi
1872 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1873 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1874 # interfere with the next link command; also delete a directory that is
1875 # left behind by Apple's compiler. We do this before executing the actions.
1876 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1877 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878 return $ac_retval
1879
1880} # ac_fn_c_try_link
1881cat >config.log <<_ACEOF
c6b750e1
DJ
1882This file contains any messages produced by compilers while
1883running configure, to aid debugging if configure makes a mistake.
1884
1885It was created by $as_me, which was
81ecdfbb 1886generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
1887
1888 $ $0 $@
1889
1890_ACEOF
81ecdfbb 1891exec 5>>config.log
c6b750e1
DJ
1892{
1893cat <<_ASUNAME
1894## --------- ##
1895## Platform. ##
1896## --------- ##
1897
1898hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1899uname -m = `(uname -m) 2>/dev/null || echo unknown`
1900uname -r = `(uname -r) 2>/dev/null || echo unknown`
1901uname -s = `(uname -s) 2>/dev/null || echo unknown`
1902uname -v = `(uname -v) 2>/dev/null || echo unknown`
1903
1904/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1905/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1906
1907/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1908/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1909/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1910/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
1911/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1912/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1913/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1914
1915_ASUNAME
1916
1917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918for as_dir in $PATH
1919do
1920 IFS=$as_save_IFS
1921 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1922 $as_echo "PATH: $as_dir"
1923 done
1924IFS=$as_save_IFS
c6b750e1
DJ
1925
1926} >&5
1927
1928cat >&5 <<_ACEOF
1929
1930
1931## ----------- ##
1932## Core tests. ##
1933## ----------- ##
1934
1935_ACEOF
1936
1937
1938# Keep a trace of the command line.
1939# Strip out --no-create and --no-recursion so they do not pile up.
1940# Strip out --silent because we don't want to record it for future runs.
1941# Also quote any args containing shell meta-characters.
1942# Make two passes to allow for proper duplicate-argument suppression.
1943ac_configure_args=
1944ac_configure_args0=
1945ac_configure_args1=
c6b750e1
DJ
1946ac_must_keep_next=false
1947for ac_pass in 1 2
1948do
1949 for ac_arg
1950 do
1951 case $ac_arg in
1952 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1953 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1954 | -silent | --silent | --silen | --sile | --sil)
1955 continue ;;
81ecdfbb
RW
1956 *\'*)
1957 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
1958 esac
1959 case $ac_pass in
81ecdfbb 1960 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 1961 2)
81ecdfbb 1962 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
1963 if test $ac_must_keep_next = true; then
1964 ac_must_keep_next=false # Got value, back to normal.
1965 else
1966 case $ac_arg in
1967 *=* | --config-cache | -C | -disable-* | --disable-* \
1968 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1969 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1970 | -with-* | --with-* | -without-* | --without-* | --x)
1971 case "$ac_configure_args0 " in
1972 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1973 esac
1974 ;;
1975 -* ) ac_must_keep_next=true ;;
1976 esac
1977 fi
81ecdfbb 1978 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
1979 ;;
1980 esac
1981 done
1982done
81ecdfbb
RW
1983{ ac_configure_args0=; unset ac_configure_args0;}
1984{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
1985
1986# When interrupted or exit'd, cleanup temporary files, and complete
1987# config.log. We remove comments because anyway the quotes in there
1988# would cause problems or look ugly.
81ecdfbb
RW
1989# WARNING: Use '\'' to represent an apostrophe within the trap.
1990# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
1991trap 'exit_status=$?
1992 # Save into config.log some information that might help in debugging.
1993 {
1994 echo
1995
1996 cat <<\_ASBOX
1997## ---------------- ##
1998## Cache variables. ##
1999## ---------------- ##
2000_ASBOX
2001 echo
2002 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2003(
2004 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2005 eval ac_val=\$$ac_var
2006 case $ac_val in #(
2007 *${as_nl}*)
2008 case $ac_var in #(
2009 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2010$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2011 esac
2012 case $ac_var in #(
2013 _ | IFS | as_nl) ;; #(
2014 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2015 *) { eval $ac_var=; unset $ac_var;} ;;
2016 esac ;;
2017 esac
2018 done
c6b750e1 2019 (set) 2>&1 |
81ecdfbb
RW
2020 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2021 *${as_nl}ac_space=\ *)
c6b750e1 2022 sed -n \
81ecdfbb
RW
2023 "s/'\''/'\''\\\\'\'''\''/g;
2024 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2025 ;; #(
c6b750e1 2026 *)
81ecdfbb 2027 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 2028 ;;
81ecdfbb
RW
2029 esac |
2030 sort
2031)
c6b750e1
DJ
2032 echo
2033
2034 cat <<\_ASBOX
2035## ----------------- ##
2036## Output variables. ##
2037## ----------------- ##
2038_ASBOX
2039 echo
2040 for ac_var in $ac_subst_vars
2041 do
81ecdfbb
RW
2042 eval ac_val=\$$ac_var
2043 case $ac_val in
2044 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2045 esac
2046 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2047 done | sort
2048 echo
2049
2050 if test -n "$ac_subst_files"; then
2051 cat <<\_ASBOX
81ecdfbb
RW
2052## ------------------- ##
2053## File substitutions. ##
2054## ------------------- ##
c6b750e1
DJ
2055_ASBOX
2056 echo
2057 for ac_var in $ac_subst_files
2058 do
81ecdfbb
RW
2059 eval ac_val=\$$ac_var
2060 case $ac_val in
2061 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2062 esac
2063 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2064 done | sort
2065 echo
2066 fi
2067
2068 if test -s confdefs.h; then
2069 cat <<\_ASBOX
2070## ----------- ##
2071## confdefs.h. ##
2072## ----------- ##
2073_ASBOX
2074 echo
81ecdfbb 2075 cat confdefs.h
c6b750e1
DJ
2076 echo
2077 fi
2078 test "$ac_signal" != 0 &&
81ecdfbb
RW
2079 $as_echo "$as_me: caught signal $ac_signal"
2080 $as_echo "$as_me: exit $exit_status"
c6b750e1 2081 } >&5
81ecdfbb
RW
2082 rm -f core *.core core.conftest.* &&
2083 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 2084 exit $exit_status
81ecdfbb 2085' 0
c6b750e1 2086for ac_signal in 1 2 13 15; do
81ecdfbb 2087 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
2088done
2089ac_signal=0
2090
2091# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2092rm -f -r conftest* confdefs.h
2093
2094$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
2095
2096# Predefined preprocessor variables.
2097
2098cat >>confdefs.h <<_ACEOF
2099#define PACKAGE_NAME "$PACKAGE_NAME"
2100_ACEOF
2101
c6b750e1
DJ
2102cat >>confdefs.h <<_ACEOF
2103#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2104_ACEOF
2105
c6b750e1
DJ
2106cat >>confdefs.h <<_ACEOF
2107#define PACKAGE_VERSION "$PACKAGE_VERSION"
2108_ACEOF
2109
c6b750e1
DJ
2110cat >>confdefs.h <<_ACEOF
2111#define PACKAGE_STRING "$PACKAGE_STRING"
2112_ACEOF
2113
c6b750e1
DJ
2114cat >>confdefs.h <<_ACEOF
2115#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2116_ACEOF
2117
81ecdfbb
RW
2118cat >>confdefs.h <<_ACEOF
2119#define PACKAGE_URL "$PACKAGE_URL"
2120_ACEOF
2121
c6b750e1
DJ
2122
2123# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2124# Prefer an explicitly selected file to automatically selected ones.
2125ac_site_file1=NONE
2126ac_site_file2=NONE
2127if test -n "$CONFIG_SITE"; then
2128 ac_site_file1=$CONFIG_SITE
2129elif test "x$prefix" != xNONE; then
2130 ac_site_file1=$prefix/share/config.site
2131 ac_site_file2=$prefix/etc/config.site
2132else
2133 ac_site_file1=$ac_default_prefix/share/config.site
2134 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2135fi
81ecdfbb
RW
2136for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2137do
2138 test "x$ac_site_file" = xNONE && continue
a0da8069 2139 if test -r "$ac_site_file"; then
81ecdfbb
RW
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2141$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2142 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
2143 . "$ac_site_file"
2144 fi
2145done
2146
2147if test -r "$cache_file"; then
c6b750e1
DJ
2148 # Some versions of bash will fail to source /dev/null (special
2149 # files actually), so we avoid doing that.
2150 if test -f "$cache_file"; then
81ecdfbb
RW
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2152$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2153 case $cache_file in
81ecdfbb
RW
2154 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2155 *) . "./$cache_file";;
c6b750e1
DJ
2156 esac
2157 fi
a0da8069 2158else
81ecdfbb
RW
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2160$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2161 >$cache_file
2162fi
2163
2164# Check that the precious variables saved in the cache have kept the same
2165# value.
2166ac_cache_corrupted=false
81ecdfbb 2167for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2168 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2169 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2170 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2171 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2172 case $ac_old_set,$ac_new_set in
2173 set,)
81ecdfbb
RW
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2175$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2176 ac_cache_corrupted=: ;;
2177 ,set)
81ecdfbb
RW
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2179$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2180 ac_cache_corrupted=: ;;
2181 ,);;
2182 *)
2183 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2184 # differences in whitespace do not lead to failure.
2185 ac_old_val_w=`echo x $ac_old_val`
2186 ac_new_val_w=`echo x $ac_new_val`
2187 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2189$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2190 ac_cache_corrupted=:
2191 else
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2193$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2194 eval $ac_var=\$ac_old_val
2195 fi
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2197$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2199$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2200 fi;;
2201 esac
2202 # Pass precious variables to config.status.
2203 if test "$ac_new_set" = set; then
2204 case $ac_new_val in
81ecdfbb 2205 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2206 *) ac_arg=$ac_var=$ac_new_val ;;
2207 esac
2208 case " $ac_configure_args " in
2209 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2210 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2211 esac
2212 fi
2213done
2214if $ac_cache_corrupted; then
81ecdfbb
RW
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2216$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2218$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2219 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2220fi
81ecdfbb
RW
2221## -------------------- ##
2222## Main body of script. ##
2223## -------------------- ##
a0da8069
NN
2224
2225ac_ext=c
a0da8069 2226ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2229ac_compiler_gnu=$ac_cv_c_compiler_gnu
2230
2231
2232
2233
c6b750e1
DJ
2234
2235
34a0f3cf 2236
c6b750e1 2237
5b553f7e
RW
2238
2239progname=$0
2240# if PWD already has a value, it is probably wrong.
2241if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2242
2243# Export original configure arguments for use by sub-configures.
2244# Quote arguments with shell meta charatcers.
2245TOPLEVEL_CONFIGURE_ARGUMENTS=
2246set -- "$progname" "$@"
2247for ac_arg
2248do
2249 case "$ac_arg" in
2250 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2251 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2252 # if the argument is of the form -foo=baz, quote the baz part only
2253 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2254 *) ;;
2255 esac
2256 # Add the quoted argument to the list.
2257 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2258done
2259if test "$silent" = yes; then
2260 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2261fi
2262# Remove the initial space we just introduced and, as these will be
2263# expanded by make, quote '$'.
2264TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2265
c6b750e1
DJ
2266
2267# Find the build, host, and target systems.
a0da8069 2268ac_aux_dir=
81ecdfbb
RW
2269for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2270 for ac_t in install-sh install.sh shtool; do
2271 if test -f "$ac_dir/$ac_t"; then
2272 ac_aux_dir=$ac_dir
2273 ac_install_sh="$ac_aux_dir/$ac_t -c"
2274 break 2
2275 fi
2276 done
a0da8069
NN
2277done
2278if test -z "$ac_aux_dir"; then
81ecdfbb 2279 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2280fi
81ecdfbb
RW
2281
2282# These three variables are undocumented and unsupported,
2283# and are intended to be withdrawn in a future Autoconf release.
2284# They can cause serious problems if a builder's source tree is in a directory
2285# whose full name contains unusual characters.
2286ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2287ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2288ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2289
a0da8069 2290
c6b750e1 2291# Make sure we can run config.sub.
81ecdfbb
RW
2292$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2293 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2294
2295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2296$as_echo_n "checking build system type... " >&6; }
2297if test "${ac_cv_build+set}" = set; then :
2298 $as_echo_n "(cached) " >&6
2299else
2300 ac_build_alias=$build_alias
2301test "x$ac_build_alias" = x &&
2302 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2303test "x$ac_build_alias" = x &&
2304 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2305ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2306 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2307
2308fi
2309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2310$as_echo "$ac_cv_build" >&6; }
2311case $ac_cv_build in
2312*-*-*) ;;
2313*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2314esac
c6b750e1 2315build=$ac_cv_build
81ecdfbb
RW
2316ac_save_IFS=$IFS; IFS='-'
2317set x $ac_cv_build
2318shift
2319build_cpu=$1
2320build_vendor=$2
2321shift; shift
2322# Remember, the first character of IFS is used to create $*,
2323# except with old shells:
2324build_os=$*
2325IFS=$ac_save_IFS
2326case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2327
a0da8069 2328
c6b750e1
DJ
2329 case ${build_alias} in
2330 "") build_noncanonical=${build} ;;
2331 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2332esac
2333
2334
cac3d6c4 2335
c6b750e1
DJ
2336 case ${host_alias} in
2337 "") host_noncanonical=${build_noncanonical} ;;
2338 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2339esac
2340
cac3d6c4 2341
c6b750e1
DJ
2342
2343 case ${target_alias} in
2344 "") target_noncanonical=${host_noncanonical} ;;
2345 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2346esac
2347
cac3d6c4 2348
c6b750e1
DJ
2349
2350
2351test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2352 test "$program_prefix$program_suffix$program_transform_name" = \
2353 NONENONEs,x,x, &&
c6b750e1 2354 program_transform_name=s,y,y,
cac3d6c4 2355
81ecdfbb
RW
2356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2357$as_echo_n "checking host system type... " >&6; }
2358if test "${ac_cv_host+set}" = set; then :
2359 $as_echo_n "(cached) " >&6
cac3d6c4 2360else
81ecdfbb
RW
2361 if test "x$host_alias" = x; then
2362 ac_cv_host=$ac_cv_build
2363else
2364 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2365 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2366fi
c6b750e1
DJ
2367
2368fi
81ecdfbb
RW
2369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2370$as_echo "$ac_cv_host" >&6; }
2371case $ac_cv_host in
2372*-*-*) ;;
2373*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2374esac
c6b750e1 2375host=$ac_cv_host
81ecdfbb
RW
2376ac_save_IFS=$IFS; IFS='-'
2377set x $ac_cv_host
2378shift
2379host_cpu=$1
2380host_vendor=$2
2381shift; shift
2382# Remember, the first character of IFS is used to create $*,
2383# except with old shells:
2384host_os=$*
2385IFS=$ac_save_IFS
2386case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2387
2388
81ecdfbb
RW
2389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2390$as_echo_n "checking target system type... " >&6; }
2391if test "${ac_cv_target+set}" = set; then :
2392 $as_echo_n "(cached) " >&6
c6b750e1 2393else
81ecdfbb
RW
2394 if test "x$target_alias" = x; then
2395 ac_cv_target=$ac_cv_host
2396else
2397 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2398 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2399fi
c6b750e1 2400
cac3d6c4 2401fi
81ecdfbb
RW
2402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2403$as_echo "$ac_cv_target" >&6; }
2404case $ac_cv_target in
2405*-*-*) ;;
2406*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2407esac
c6b750e1 2408target=$ac_cv_target
81ecdfbb
RW
2409ac_save_IFS=$IFS; IFS='-'
2410set x $ac_cv_target
2411shift
2412target_cpu=$1
2413target_vendor=$2
2414shift; shift
2415# Remember, the first character of IFS is used to create $*,
2416# except with old shells:
2417target_os=$*
2418IFS=$ac_save_IFS
2419case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2420
2421
2422# The aliases save the names the user supplied, while $host etc.
2423# will get canonicalized.
2424test -n "$target_alias" &&
2425 test "$program_prefix$program_suffix$program_transform_name" = \
2426 NONENONEs,x,x, &&
2427 program_prefix=${target_alias}-
81ecdfbb 2428
a0da8069 2429test "$program_prefix" != NONE &&
81ecdfbb 2430 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2431# Use a double $ so make ignores it.
2432test "$program_suffix" != NONE &&
81ecdfbb
RW
2433 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2434# Double any \ or $.
c6b750e1 2435# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2436ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2437program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2438
a0da8069
NN
2439
2440
e5c3f801
NN
2441# Get 'install' or 'install-sh' and its variants.
2442# Find a good install program. We prefer a C program (faster),
2443# so one script is as good as another. But avoid the broken or
2444# incompatible versions:
2445# SysV /etc/install, /usr/sbin/install
2446# SunOS /usr/etc/install
2447# IRIX /sbin/install
2448# AIX /bin/install
c6b750e1 2449# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2450# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2451# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2452# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2453# OS/2's system install, which has a completely different semantic
e5c3f801 2454# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2455# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2457$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2458if test -z "$INSTALL"; then
81ecdfbb
RW
2459if test "${ac_cv_path_install+set}" = set; then :
2460 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2461else
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463for as_dir in $PATH
2464do
2465 IFS=$as_save_IFS
2466 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2467 # Account for people who put trailing slashes in PATH elements.
2468case $as_dir/ in #((
2469 ./ | .// | /[cC]/* | \
c6b750e1 2470 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2471 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2472 /usr/ucb/* ) ;;
2473 *)
2474 # OSF1 and SCO ODT 3.0 have their own names for install.
2475 # Don't use installbsd from OSF since it installs stuff as root
2476 # by default.
2477 for ac_prog in ginstall scoinst install; do
2478 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 2479 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
e5c3f801 2480 if test $ac_prog = install &&
c6b750e1 2481 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2482 # AIX install. It has an incompatible calling convention.
2483 :
c6b750e1
DJ
2484 elif test $ac_prog = install &&
2485 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2486 # program-specific install script used by HP pwplus--don't use.
2487 :
e5c3f801 2488 else
58c85be7
RW
2489 rm -rf conftest.one conftest.two conftest.dir
2490 echo one > conftest.one
2491 echo two > conftest.two
2492 mkdir conftest.dir
2493 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2494 test -s conftest.one && test -s conftest.two &&
2495 test -s conftest.dir/conftest.one &&
2496 test -s conftest.dir/conftest.two
2497 then
2498 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2499 break 3
2500 fi
e5c3f801
NN
2501 fi
2502 fi
2503 done
c6b750e1
DJ
2504 done
2505 ;;
2506esac
81ecdfbb
RW
2507
2508 done
2509IFS=$as_save_IFS
c6b750e1 2510
58c85be7 2511rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2512
2513fi
2514 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2515 INSTALL=$ac_cv_path_install
e5c3f801 2516 else
58c85be7
RW
2517 # As a last resort, use the slow shell script. Don't cache a
2518 # value for INSTALL within a source directory, because that will
e5c3f801 2519 # break other packages using the cache if that directory is
58c85be7 2520 # removed, or if the value is a relative name.
c6b750e1 2521 INSTALL=$ac_install_sh
e5c3f801
NN
2522 fi
2523fi
81ecdfbb
RW
2524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2525$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2526
2527# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2528# It thinks the first close brace ends the variable substitution.
2529test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2530
c6b750e1 2531test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2532
2533test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2534
81ecdfbb
RW
2535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2536$as_echo_n "checking whether ln works... " >&6; }
2537if test "${acx_cv_prog_LN+set}" = set; then :
2538 $as_echo_n "(cached) " >&6
656fdd47
PB
2539else
2540 rm -f conftestdata_t
2541echo >conftestdata_f
2542if ln conftestdata_f conftestdata_t 2>/dev/null
2543then
2544 acx_cv_prog_LN=ln
2545else
2546 acx_cv_prog_LN=no
2547fi
2548rm -f conftestdata_f conftestdata_t
2549
2550fi
2551if test $acx_cv_prog_LN = no; then
2552 LN="cp"
81ecdfbb
RW
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2554$as_echo "no, using $LN" >&6; }
656fdd47
PB
2555else
2556 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2558$as_echo "yes" >&6; }
656fdd47
PB
2559fi
2560
81ecdfbb
RW
2561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2562$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2563LN_S=$as_ln_s
2564if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2566$as_echo "yes" >&6; }
cac3d6c4 2567else
81ecdfbb
RW
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2569$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2570fi
2571
8e957354
PB
2572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2573$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2574if test "${ac_cv_path_SED+set}" = set; then :
2575 $as_echo_n "(cached) " >&6
2576else
2577 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2578 for ac_i in 1 2 3 4 5 6 7; do
2579 ac_script="$ac_script$as_nl$ac_script"
2580 done
2581 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2582 { ac_script=; unset ac_script;}
2583 if test -z "$SED"; then
2584 ac_path_SED_found=false
2585 # Loop through the user's path and test for each of PROGNAME-LIST
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587for as_dir in $PATH
2588do
2589 IFS=$as_save_IFS
2590 test -z "$as_dir" && as_dir=.
2591 for ac_prog in sed gsed; do
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2594 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2595# Check for GNU ac_path_SED and select it if it is found.
2596 # Check for GNU $ac_path_SED
2597case `"$ac_path_SED" --version 2>&1` in
2598*GNU*)
2599 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2600*)
2601 ac_count=0
2602 $as_echo_n 0123456789 >"conftest.in"
2603 while :
2604 do
2605 cat "conftest.in" "conftest.in" >"conftest.tmp"
2606 mv "conftest.tmp" "conftest.in"
2607 cp "conftest.in" "conftest.nl"
2608 $as_echo '' >> "conftest.nl"
2609 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2610 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2611 as_fn_arith $ac_count + 1 && ac_count=$as_val
2612 if test $ac_count -gt ${ac_path_SED_max-0}; then
2613 # Best one so far, save it but keep looking for a better one
2614 ac_cv_path_SED="$ac_path_SED"
2615 ac_path_SED_max=$ac_count
2616 fi
2617 # 10*(2^10) chars as input seems more than enough
2618 test $ac_count -gt 10 && break
2619 done
2620 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2621esac
2622
2623 $ac_path_SED_found && break 3
2624 done
2625 done
2626 done
2627IFS=$as_save_IFS
2628 if test -z "$ac_cv_path_SED"; then
2629 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2630 fi
2631else
2632 ac_cv_path_SED=$SED
2633fi
2634
2635fi
2636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2637$as_echo "$ac_cv_path_SED" >&6; }
2638 SED="$ac_cv_path_SED"
2639 rm -f conftest.sed
2640
2641for ac_prog in gawk mawk nawk awk
2642do
2643 # Extract the first word of "$ac_prog", so it can be a program name with args.
2644set dummy $ac_prog; ac_word=$2
2645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2646$as_echo_n "checking for $ac_word... " >&6; }
2647if test "${ac_cv_prog_AWK+set}" = set; then :
2648 $as_echo_n "(cached) " >&6
2649else
2650 if test -n "$AWK"; then
2651 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2652else
2653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654for as_dir in $PATH
2655do
2656 IFS=$as_save_IFS
2657 test -z "$as_dir" && as_dir=.
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2660 ac_cv_prog_AWK="$ac_prog"
2661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2662 break 2
2663 fi
2664done
2665 done
2666IFS=$as_save_IFS
2667
2668fi
2669fi
2670AWK=$ac_cv_prog_AWK
2671if test -n "$AWK"; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2673$as_echo "$AWK" >&6; }
2674else
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676$as_echo "no" >&6; }
2677fi
2678
2679
2680 test -n "$AWK" && break
2681done
2682
e5c3f801 2683
0fdbe983
DJ
2684srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2685
2686# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2687# a relative path.
2688if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2689 INSTALL="${srcpwd}/install-sh -c"
2690fi
2691
a0da8069
NN
2692# Set srcdir to "." if that's what it is.
2693# This is important for multilib support.
2694pwd=`${PWDCMD-pwd}`
a0da8069
NN
2695if test "${pwd}" = "${srcpwd}" ; then
2696 srcdir=.
252b5132
RH
2697fi
2698
a0da8069 2699topsrcdir=$srcpwd
252b5132 2700
a0da8069 2701extra_host_args=
afefada0 2702
a0da8069
NN
2703### To add a new directory to the tree, first choose whether it is a target
2704### or a host dependent tool. Then put it into the appropriate list
2705### (library or tools, host or target), doing a dependency sort.
252b5132 2706
c6b750e1 2707# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2708# configdirs, or target_configdirs; see the serialization section below.
252b5132 2709
c6b750e1
DJ
2710# Dependency sorting is only needed when *configuration* must be done in
2711# a particular order. In all cases a dependency should be specified in
a0da8069 2712# the Makefile, whether or not it's implicitly specified here.
252b5132 2713
a0da8069
NN
2714# Double entries in build_configdirs, configdirs, or target_configdirs may
2715# cause circular dependencies and break everything horribly.
252b5132 2716
6a9cf61e
PB
2717# these library is used by various programs built for the build
2718# environment
2719#
1b6c0831 2720build_libs="build-libiberty build-libcpp"
6a9cf61e
PB
2721
2722# these tools are built for the build environment
a90ef4bf 2723build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2724
a0da8069 2725# these libraries are used by various programs built for the host environment
1b6c0831
L
2726#f
2727host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
a0da8069 2728
a0da8069
NN
2729# these tools are built for the host environment
2730# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2731# know that we are building the simulator.
2732# binutils, gas and ld appear in that order because it makes sense to run
2733# "make check" in that particular order.
e6de499b 2734# If --enable-gold is used, "gold" may replace "ld".
1b6c0831 2735host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
a0da8069
NN
2736
2737# libgcj represents the runtime libraries only used by gcj.
2738libgcj="target-libffi \
a0da8069 2739 target-zlib \
a0da8069
NN
2740 target-libjava"
2741
2742# these libraries are built for the target environment, and are built after
2743# the host libraries and the host tools (which may be a cross compiler)
ffdd6afc 2744# Note that libiberty is not a target library.
b1299c4e 2745target_libraries="target-libgcc \
2bf680c4 2746 target-libbacktrace \
a0da8069
NN
2747 target-libgloss \
2748 target-newlib \
cff87f51 2749 target-libgomp \
522e3d71 2750 target-libcilkrts \
1b6c0831 2751 target-liboffloadmic \
7ec59b9e 2752 target-libatomic \
d32e2926 2753 target-libitm \
b9459e83 2754 target-libstdc++-v3 \
5286fdef 2755 target-libsanitizer \
95e43135 2756 target-libvtv \
1b6c0831 2757 target-libmpx \
bb780410 2758 target-libssp \
e552509b 2759 target-libquadmath \
4b1cb4fe 2760 target-libgfortran \
4f0ef2d8 2761 target-boehm-gc \
83326456 2762 ${libgcj} \
a2592b1b 2763 target-libobjc \
e552509b
ILT
2764 target-libada \
2765 target-libgo"
a0da8069 2766
9c14acb8
NN
2767# these tools are built using the target libraries, and are intended to
2768# run only in the target environment
a0da8069 2769#
9c14acb8 2770# note: any program that *uses* libraries that are in the "target_libraries"
0377a422 2771# list belongs in this list.
a0da8069 2772#
a90ef4bf 2773target_tools="target-rda"
252b5132 2774
a0da8069 2775################################################################################
252b5132 2776
a0da8069
NN
2777## All tools belong in one of the four categories, and are assigned above
2778## We assign ${configdirs} this way to remove all embedded newlines. This
2779## is important because configure will choke if they ever get through.
2780## ${configdirs} is directories we build using the host tools.
2781## ${target_configdirs} is directories we build using the target tools.
a0da8069 2782configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2783target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2784build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2785
9cc8ae67
PB
2786
2787
a0da8069 2788################################################################################
252b5132 2789
a0da8069 2790srcname="gnu development package"
252b5132 2791
a0da8069
NN
2792# This gets set non-empty for some net releases of packages.
2793appdirs=""
252b5132 2794
a0da8069
NN
2795# Define is_cross_compiler to save on calls to 'test'.
2796is_cross_compiler=
2797if test x"${host}" = x"${target}" ; then
2798 is_cross_compiler=no
252b5132 2799else
a0da8069 2800 is_cross_compiler=yes
c6b750e1 2801fi
252b5132 2802
9175bfc0 2803# Find the build and target subdir names.
dd12c3a8 2804
66a79c16
DJ
2805# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2806# have matching libraries, they should use host libraries: Makefile.tpl
2807# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2808# However, they still use the build modules, because the corresponding
2809# host modules (e.g. bison) are only built for the host when bootstrap
2810# finishes. So:
2811# - build_subdir is where we find build modules, and never changes.
2812# - build_libsubdir is where we find build libraries, and can be overridden.
2813
2814# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2815build_subdir="build-${build_noncanonical}"
c6b750e1 2816
81ecdfbb
RW
2817# Check whether --with-build-libsubdir was given.
2818if test "${with_build_libsubdir+set}" = set; then :
2819 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2820else
2821 build_libsubdir="$build_subdir"
81ecdfbb
RW
2822fi
2823
b00612cc
PB
2824# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2825if ( test $srcdir = . && test -d gcc ) \
2826 || test -d $srcdir/../host-${host_noncanonical}; then
2827 host_subdir="host-${host_noncanonical}"
2828else
2829 host_subdir=.
2830fi
dd12c3a8
NN
2831# No prefix.
2832target_subdir=${target_noncanonical}
c6b750e1 2833
2fd0b40b
RW
2834# Be sure to cover against remnants of an in-tree build.
2835if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2836 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2837Use a pristine source tree when building in a separate tree" "$LINENO" 5
2838fi
252b5132 2839
a0da8069
NN
2840# Skipdirs are removed silently.
2841skipdirs=
2842# Noconfigdirs are removed loudly.
2843noconfigdirs=""
252b5132 2844
a0da8069
NN
2845use_gnu_ld=
2846# Make sure we don't let GNU ld be added if we didn't want it.
2847if test x$with_gnu_ld = xno ; then
2848 use_gnu_ld=no
93f9b408 2849 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2850fi
2851
a0da8069
NN
2852use_gnu_as=
2853# Make sure we don't let GNU as be added if we didn't want it.
2854if test x$with_gnu_as = xno ; then
2855 use_gnu_as=no
2856 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2857fi
2858
700d40ca 2859use_included_zlib=
cf39cfc5
L
2860
2861# Check whether --with-system-zlib was given.
2862if test "${with_system_zlib+set}" = set; then :
2863 withval=$with_system_zlib;
2864fi
2865
700d40ca
ILT
2866# Make sure we don't let ZLIB be added if we didn't want it.
2867if test x$with_system_zlib = xyes ; then
2868 use_included_zlib=no
2869 noconfigdirs="$noconfigdirs zlib"
2870fi
2871
c6b750e1 2872# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2873# it's not even worth trying to configure, much less build, that tool.
252b5132 2874
a0da8069
NN
2875case ${with_x} in
2876 yes | "") ;; # the default value for this tree is that X11 is available
2877 no)
675c6968 2878 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2879 # We won't be able to build gdbtk without X.
c6b750e1 2880 enable_gdbtk=no
a0da8069
NN
2881 ;;
2882 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2883esac
252b5132 2884
0377a422 2885# Some are only suitable for cross toolchains.
a0da8069
NN
2886# Remove these if host=target.
2887cross_only="target-libgloss target-newlib target-opcodes"
2888
2889case $is_cross_compiler in
2890 no) skipdirs="${skipdirs} ${cross_only}" ;;
a0da8069 2891esac
252b5132 2892
a0da8069
NN
2893# If both --with-headers and --with-libs are specified, default to
2894# --without-newlib.
32be62b5
RS
2895if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2896 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2897 if test x"${with_newlib}" = x ; then
2898 with_newlib=no
2899 fi
252b5132
RH
2900fi
2901
a0da8069
NN
2902# Recognize --with-newlib/--without-newlib.
2903case ${with_newlib} in
2904 no) skipdirs="${skipdirs} target-newlib" ;;
2905 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2906esac
252b5132 2907
1b6c0831
L
2908# Check whether --enable-as-accelerator-for was given.
2909if test "${enable_as_accelerator_for+set}" = set; then :
2910 enableval=$enable_as_accelerator_for;
2911fi
2912
2913
2914# Check whether --enable-offload-targets was given.
2915if test "${enable_offload_targets+set}" = set; then :
2916 enableval=$enable_offload_targets;
2917 if test x"$enable_offload_targets" = x; then
2918 as_fn_error "no offload targets specified" "$LINENO" 5
2919 fi
2920
2921else
2922 enable_offload_targets=
2923fi
2924
2925
c7791212
NC
2926# Handle --enable-gold, --enable-ld.
2927# --disable-gold [--enable-ld]
2928# Build only ld. Default option.
d3b50760
L
2929# --enable-gold [--enable-ld]
2930# Build both gold and ld. Install gold as "ld.gold", install ld
2931# as "ld.bfd" and "ld".
2932# --enable-gold=default [--enable-ld]
c7791212
NC
2933# Build both gold and ld. Install gold as "ld.gold" and "ld",
2934# install ld as "ld.bfd".
2935# --enable-gold[=default] --disable-ld
2936# Build only gold, which is then installed as both "ld.gold" and "ld".
2937# --enable-gold --enable-ld=default
d3b50760
L
2938# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2939# and ld.bfd).
c7791212
NC
2940# In other words, ld is default
2941# --enable-gold=default --enable-ld=default
2942# Error.
2943
2944default_ld=
81ecdfbb
RW
2945# Check whether --enable-gold was given.
2946if test "${enable_gold+set}" = set; then :
2947 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
2948else
2949 ENABLE_GOLD=no
81ecdfbb
RW
2950fi
2951
c7791212
NC
2952case "${ENABLE_GOLD}" in
2953 yes|default)
e6de499b
NC
2954 # Check for ELF target.
2955 is_elf=no
2956 case "${target}" in
2957 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2344b8da 2958 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
5b806d27 2959 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2bda3143 2960 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
e6de499b
NC
2961 case "${target}" in
2962 *-*-linux*aout* | *-*-linux*oldld*)
2963 ;;
2964 *)
2965 is_elf=yes
2966 ;;
2967 esac
2968 esac
2969
2970 if test "$is_elf" = "yes"; then
2971 # Check for target supported by gold.
93f9b408 2972 case "${target}" in
6d26190c
JY
2973 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2974 | aarch64*-*-* | tilegx*-*-*)
c7791212
NC
2975 configdirs="$configdirs gold"
2976 if test x${ENABLE_GOLD} = xdefault; then
2977 default_ld=gold
2978 fi
e6de499b 2979 ENABLE_GOLD=yes
93f9b408
ILT
2980 ;;
2981 esac
e6de499b
NC
2982 fi
2983 ;;
2984 no)
2985 ;;
2986 *)
2987 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2988 ;;
c7791212
NC
2989esac
2990
2991# Check whether --enable-ld was given.
2992if test "${enable_ld+set}" = set; then :
2993 enableval=$enable_ld; ENABLE_LD=$enableval
2994else
2995 ENABLE_LD=yes
2996fi
2997
2998
2999case "${ENABLE_LD}" in
3000 default)
d3b50760 3001 if test x${default_ld} != x; then
c7791212
NC
3002 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3003 fi
3004 ;;
3005 yes)
3006 ;;
3007 no)
3008 if test x${ENABLE_GOLD} != xyes; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3010$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3011 fi
3012 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3013 ;;
3014 *)
3015 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3016 ;;
3017esac
93f9b408 3018
a0da8069 3019# Configure extra directories which are host specific
252b5132 3020
a0da8069
NN
3021case "${host}" in
3022 *-cygwin*)
3023 configdirs="$configdirs libtermcap" ;;
3024esac
252b5132 3025
59f7ec45
HPN
3026# A target can indicate whether a language isn't supported for some reason.
3027# Only spaces may be used in this macro; not newlines or tabs.
3028unsupported_languages=
3029
c6b750e1 3030# Remove more programs from consideration, based on the host or
a0da8069
NN
3031# target this usually means that a port of the program doesn't
3032# exist yet.
252b5132 3033
a0da8069 3034case "${host}" in
3516a403 3035 i[3456789]86-*-msdosdjgpp*)
6a608608 3036 noconfigdirs="$noconfigdirs tcl tk itcl"
a0da8069 3037 ;;
a0da8069 3038esac
252b5132 3039
4b1cb4fe 3040
89a1e9c3
PB
3041# Check whether --enable-libquadmath was given.
3042if test "${enable_libquadmath+set}" = set; then :
3043 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3044else
3045 ENABLE_LIBQUADMATH=yes
3046fi
3047
3048if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3049 noconfigdirs="$noconfigdirs target-libquadmath"
3050fi
3051
3052
3053# Check whether --enable-libquadmath-support was given.
3054if test "${enable_libquadmath_support+set}" = set; then :
3055 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3056else
3057 ENABLE_LIBQUADMATH_SUPPORT=yes
3058fi
3059
3060enable_libquadmath_support=
3061if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3062 enable_libquadmath_support=no
3063fi
3064
3065
81ecdfbb
RW
3066# Check whether --enable-libada was given.
3067if test "${enable_libada+set}" = set; then :
3068 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
3069else
3070 ENABLE_LIBADA=yes
81ecdfbb
RW
3071fi
3072
a2592b1b 3073if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 3074 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
3075fi
3076
81ecdfbb
RW
3077# Check whether --enable-libssp was given.
3078if test "${enable_libssp+set}" = set; then :
3079 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
3080else
3081 ENABLE_LIBSSP=yes
81ecdfbb
RW
3082fi
3083
5f128533 3084
f66a9a70
L
3085# Check whether --enable-libstdcxx was given.
3086if test "${enable_libstdcxx+set}" = set; then :
3087 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3088else
3089 ENABLE_LIBSTDCXX=default
3090fi
3091
3092if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1b6c0831
L
3093 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3094fi
3095
3096# If this is accelerator compiler and its target is intelmic we enable
3097# target liboffloadmic by default. If this is compiler with offloading
3098# for intelmic we enable host liboffloadmic by default. Otherwise
3099# liboffloadmic is disabled by default.
3100# Check whether --enable-liboffloadmic was given.
3101if test "${enable_liboffloadmic+set}" = set; then :
3102 enableval=$enable_liboffloadmic; case "$enableval" in
3103 no | host | target)
3104 enable_liboffloadmic=$enableval ;;
3105 *)
3106 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3107esac
3108else
3109 if test x"$enable_as_accelerator_for" != x; then
3110 case "${target}" in
3111 *-intelmic-* | *-intelmicemul-*)
3112 enable_liboffloadmic=target
3113 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3114 ;;
3115 *)
3116 enable_liboffloadmic=no
3117 ;;
3118 esac
3119else
3120 case "${enable_offload_targets}" in
3121 *-intelmic-* | *-intelmicemul-*)
3122 enable_liboffloadmic=host
3123 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3124 ;;
3125 *)
3126 enable_liboffloadmic=no
3127 ;;
3128 esac
3129fi
f66a9a70
L
3130fi
3131
1b6c0831
L
3132
3133
a0da8069
NN
3134# Save it here so that, even in case of --enable-libgcj, if the Java
3135# front-end isn't enabled, we still get libgcj disabled.
3136libgcj_saved=$libgcj
3137case $enable_libgcj in
3138yes)
3139 # If we reset it here, it won't get added to noconfigdirs in the
3140 # target-specific build rules, so it will be forcibly enabled
3141 # (unless the Java language itself isn't enabled).
3142 libgcj=
3143 ;;
3144no)
3145 # Make sure we get it printed in the list of not supported target libs.
9e1a94f4
ILT
3146 # Don't disable libffi, though, other languages use it.
3147 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
33d23ee8
ILT
3148 # Clear libgcj_saved so that even if java is enabled libffi won't be
3149 # built.
3150 libgcj_saved=
a0da8069
NN
3151 ;;
3152esac
252b5132 3153
ffdd6afc
ILT
3154# Check whether --enable-static-libjava was given.
3155if test "${enable_static_libjava+set}" = set; then :
3156 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3157else
3158 ENABLE_STATIC_LIBJAVA=no
3159fi
3160
3161enable_static_libjava=
3162if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3163 enable_static_libjava=yes
3164fi
3165
3166if test x$enable_static_libjava != xyes ; then
3167 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3168fi
3169
4b1cb4fe 3170
a6df5a19
PB
3171# Disable libgomp on non POSIX hosted systems.
3172if test x$enable_libgomp = x ; then
b3ded179
PB
3173 # Enable libgomp by default on hosted POSIX systems.
3174 case "${target}" in
29383458 3175 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179 3176 ;;
5b806d27 3177 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
b3ded179 3178 ;;
2479f722 3179 *-*-solaris2* | *-*-hpux11*)
b3ded179
PB
3180 ;;
3181 *-*-darwin* | *-*-aix*)
3182 ;;
3183 *)
3184 noconfigdirs="$noconfigdirs target-libgomp"
3185 ;;
3186 esac
a6df5a19 3187fi
b3ded179 3188
7ec59b9e
L
3189# Disable libatomic on unsupported systems.
3190if test -d ${srcdir}/libatomic; then
3191 if test x$enable_libatomic = x; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3193$as_echo_n "checking for libatomic support... " >&6; }
3194 if (srcdir=${srcdir}/libatomic; \
3195 . ${srcdir}/configure.tgt; \
3196 test -n "$UNSUPPORTED")
3197 then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199$as_echo "no" >&6; }
3200 noconfigdirs="$noconfigdirs target-libatomic"
3201 else
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3203$as_echo "yes" >&6; }
3204 fi
3205 fi
3206fi
3207
522e3d71 3208# Disable libcilkrts on unsupported systems.
3209if test -d ${srcdir}/libcilkrts; then
3210 if test x$enable_libcilkrts = x; then
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3212$as_echo_n "checking for libcilkrts support... " >&6; }
3213 if (srcdir=${srcdir}/libcilkrts; \
3214 . ${srcdir}/configure.tgt; \
3215 test -n "$UNSUPPORTED")
3216 then
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218$as_echo "no" >&6; }
3219 noconfigdirs="$noconfigdirs target-libcilkrts"
3220 else
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3222$as_echo "yes" >&6; }
3223 fi
3224 fi
3225fi
3226
1b6c0831
L
3227# Disable liboffloadmic on unsupported systems.
3228if test -d ${srcdir}/liboffloadmic; then
3229 if test x$enable_liboffloadmic != xno; then
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3231$as_echo_n "checking for liboffloadmic support... " >&6; }
3232 if (srcdir=${srcdir}/liboffloadmic; \
3233 . ${srcdir}/configure.tgt; \
3234 test -n "$UNSUPPORTED")
3235 then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237$as_echo "no" >&6; }
3238 noconfigdirs="$noconfigdirs target-liboffloadmic"
3239 else
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3241$as_echo "yes" >&6; }
3242 fi
3243 fi
3244fi
3245
d32e2926
RH
3246# Disable libitm on unsupported systems.
3247if test -d ${srcdir}/libitm; then
3248 if test x$enable_libitm = x; then
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3250$as_echo_n "checking for libitm support... " >&6; }
3251 if (srcdir=${srcdir}/libitm; \
3252 . ${srcdir}/configure.tgt; \
3253 test -n "$UNSUPPORTED")
3254 then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256$as_echo "no" >&6; }
3257 noconfigdirs="$noconfigdirs target-libitm"
3258 else
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3260$as_echo "yes" >&6; }
3261 fi
3262 fi
3263fi
3264
5286fdef
L
3265# Disable libsanitizer on unsupported systems.
3266if test -d ${srcdir}/libsanitizer; then
3267 if test x$enable_libsanitizer = x; then
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3269$as_echo_n "checking for libsanitizer support... " >&6; }
3270 if (srcdir=${srcdir}/libsanitizer; \
3271 . ${srcdir}/configure.tgt; \
3272 test -n "$UNSUPPORTED")
3273 then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3275$as_echo "no" >&6; }
3276 noconfigdirs="$noconfigdirs target-libsanitizer"
3277 else
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3279$as_echo "yes" >&6; }
3280 fi
3281 fi
3282fi
3283
95e43135
JBG
3284# Disable libvtv on unsupported systems.
3285if test -d ${srcdir}/libvtv; then
3286 if test x$enable_libvtv = x; then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3288$as_echo_n "checking for libvtv support... " >&6; }
3289 if (srcdir=${srcdir}/libvtv; \
3290 . ${srcdir}/configure.tgt; \
3291 test "$VTV_SUPPORTED" != "yes")
3292 then
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294$as_echo "no" >&6; }
3295 noconfigdirs="$noconfigdirs target-libvtv"
3296 else
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3298$as_echo "yes" >&6; }
3299 fi
3300 fi
3301fi
3302
1b6c0831
L
3303
3304# Enable libmpx on supported systems by request.
3305if test -d ${srcdir}/libmpx; then
3306 if test x$enable_libmpx = xyes; then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3308$as_echo_n "checking for libmpx support... " >&6; }
3309 if (srcdir=${srcdir}/libmpx; \
3310 . ${srcdir}/configure.tgt; \
3311 test "$LIBMPX_SUPPORTED" != "yes")
3312 then
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314$as_echo "no" >&6; }
3315 noconfigdirs="$noconfigdirs target-libmpx"
3316 else
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3318$as_echo "yes" >&6; }
3319 fi
3320 else
3321 noconfigdirs="$noconfigdirs target-libmpx"
3322 fi
3323fi
3324
3325
3326
1488e230
DE
3327# Disable libquadmath for some systems.
3328case "${target}" in
5286fdef
L
3329 avr-*-*)
3330 noconfigdirs="$noconfigdirs target-libquadmath"
3331 ;;
1488e230
DE
3332 # libquadmath is unused on AIX and libquadmath build process use of
3333 # LD_LIBRARY_PATH can break AIX bootstrap.
3334 powerpc-*-aix* | rs6000-*-aix*)
3335 noconfigdirs="$noconfigdirs target-libquadmath"
3336 ;;
3337esac
3338
065a5627
JM
3339# Disable libssp for some systems.
3340case "${target}" in
3341 avr-*-*)
c5f5c3c2 3342 # No hosted I/O support.
065a5627
JM
3343 noconfigdirs="$noconfigdirs target-libssp"
3344 ;;
3345 powerpc-*-aix* | rs6000-*-aix*)
3346 noconfigdirs="$noconfigdirs target-libssp"
3347 ;;
99c513f6 3348 rl78-*-*)
202e2356
NC
3349 # libssp uses a misaligned load to trigger a fault, but the RL78
3350 # doesn't fault for those - instead, it gives a build-time error
3351 # for explicit misaligned loads.
99c513f6
DD
3352 noconfigdirs="$noconfigdirs target-libssp"
3353 ;;
1b6c0831
L
3354 visium-*-*)
3355 # No hosted I/O support.
3356 noconfigdirs="$noconfigdirs target-libssp"
3357 ;;
065a5627
JM
3358esac
3359
065a5627 3360# Disable libstdc++-v3 for some systems.
f66a9a70
L
3361# Allow user to override this if they pass --enable-libstdc++-v3
3362if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3363 case "${target}" in
3364 *-*-vxworks*)
3365 # VxWorks uses the Dinkumware C++ library.
3366 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3367 ;;
3368 arm*-wince-pe*)
3369 # the C++ libraries don't build on top of CE's C libraries
3370 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3371 ;;
3372 avr-*-*)
3373 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3374 ;;
3375 esac
3376fi
065a5627
JM
3377
3378# Disable Fortran for some systems.
3379case "${target}" in
3380 mmix-*-*)
3381 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3382 unsupported_languages="$unsupported_languages fortran"
3383 ;;
3384esac
3385
0827f9a6 3386# Disable Java if libffi is not supported.
9863d716 3387case "${target}" in
e7d5abf1
JBG
3388 aarch64-*-*)
3389 ;;
0827f9a6
JM
3390 alpha*-*-*)
3391 ;;
3392 arm*-*-*)
3393 ;;
3394 cris-*-*)
3395 ;;
3396 frv-*-*)
3397 ;;
3398 hppa*-*-linux*)
3399 ;;
3400 hppa*-*-hpux*)
3401 ;;
3402 i?86-*-*)
3403 ;;
3404 ia64*-*-*)
3405 ;;
3406 m32r*-*-*)
3407 ;;
3408 m68k-*-*)
3409 ;;
2479f722 3410 mips*-*-rtems*)
0827f9a6
JM
3411 ;;
3412 mips*-*-linux*)
3413 ;;
3414 powerpc*-*-linux*)
3415 ;;
3416 powerpc-*-darwin*)
3417 ;;
3418 powerpc-*-aix* | rs6000-*-aix*)
3419 ;;
3420 powerpc-*-freebsd*)
3421 ;;
3422 powerpc64-*-freebsd*)
3423 ;;
3424 powerpc*-*-rtems*)
9863d716 3425 ;;
0827f9a6
JM
3426 s390-*-* | s390x-*-*)
3427 ;;
3428 sh-*-* | sh[34]*-*-*)
3429 ;;
3430 sh64-*-* | sh5*-*-*)
3431 ;;
3432 sparc*-*-*)
3433 ;;
3434 x86_64-*-*)
3435 ;;
3436 *-*-*)
3437 unsupported_languages="$unsupported_languages java"
3438 ;;
3439esac
3440
3441# Disable Java, libgcj or related libraries for some systems.
3442case "${target}" in
9863d716
JM
3443 powerpc-*-darwin*)
3444 ;;
3445 i[3456789]86-*-darwin*)
3446 ;;
3447 x86_64-*-darwin[912]*)
3448 ;;
3449 *-*-darwin*)
3450 noconfigdirs="$noconfigdirs ${libgcj}"
3451 ;;
9863d716
JM
3452 *-*-netware*)
3453 noconfigdirs="$noconfigdirs ${libgcj}"
3454 ;;
3455 *-*-rtems*)
3456 noconfigdirs="$noconfigdirs ${libgcj}"
3457 ;;
3458 *-*-tpf*)
3459 noconfigdirs="$noconfigdirs ${libgcj}"
3460 ;;
3461 *-*-uclinux*)
3462 noconfigdirs="$noconfigdirs ${libgcj}"
3463 ;;
3464 *-*-vxworks*)
3465 noconfigdirs="$noconfigdirs ${libgcj}"
3466 ;;
9863d716
JM
3467 alpha*-*-*vms*)
3468 noconfigdirs="$noconfigdirs ${libgcj}"
3469 ;;
1b6c0831
L
3470 arm*-*-freebsd*)
3471 noconfigdirs="$noconfigdirs ${libgcj}"
3472 ;;
0827f9a6 3473 arm-wince-pe)
9863d716
JM
3474 noconfigdirs="$noconfigdirs ${libgcj}"
3475 ;;
9863d716
JM
3476 arm*-*-symbianelf*)
3477 noconfigdirs="$noconfigdirs ${libgcj}"
3478 ;;
9863d716 3479 bfin-*-*)
9863d716
JM
3480 noconfigdirs="$noconfigdirs target-boehm-gc"
3481 ;;
9863d716
JM
3482 cris-*-* | crisv32-*-*)
3483 unsupported_languages="$unsupported_languages java"
3484 case "${target}" in
3485 *-*-linux*)
3486 ;;
3487 *) # See PR46792 regarding target-libffi.
3488 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3489 esac
3490 ;;
9863d716
JM
3491 hppa*64*-*-linux*)
3492 # In this case, it's because the hppa64-linux target is for
3493 # the kernel only at this point and has no libc, and thus no
3494 # headers, crt*.o, etc., all of which are needed by these.
82ae827f 3495 unsupported_languages="$unsupported_languages java"
9863d716 3496 ;;
82ae827f 3497 hppa*64*-*-hpux*)
9863d716
JM
3498 noconfigdirs="$noconfigdirs ${libgcj}"
3499 ;;
3500 hppa*-hp-hpux11*)
3501 ;;
82ae827f 3502 hppa*-*-hpux*)
9863d716
JM
3503 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3504 # build on HP-UX 10.20.
3505 noconfigdirs="$noconfigdirs ${libgcj}"
3506 ;;
9863d716
JM
3507 ia64*-*-*vms*)
3508 noconfigdirs="$noconfigdirs ${libgcj}"
3509 ;;
9863d716
JM
3510 i[3456789]86-w64-mingw*)
3511 noconfigdirs="$noconfigdirs ${libgcj}"
3512 ;;
3513 i[3456789]86-*-mingw*)
3514 noconfigdirs="$noconfigdirs ${libgcj}"
3515 ;;
3516 x86_64-*-mingw*)
3517 noconfigdirs="$noconfigdirs ${libgcj}"
3518 ;;
9863d716
JM
3519 mmix-*-*)
3520 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
9863d716
JM
3521 ;;
3522 powerpc-*-aix*)
3523 # copied from rs6000-*-* entry
3524 noconfigdirs="$noconfigdirs ${libgcj}"
3525 ;;
9863d716
JM
3526 rs6000-*-aix*)
3527 noconfigdirs="$noconfigdirs ${libgcj}"
3528 ;;
3f8107ab
AM
3529 ft32-*-*)
3530 noconfigdirs="$noconfigdirs ${libgcj}"
3531 ;;
9863d716
JM
3532 *-*-lynxos*)
3533 noconfigdirs="$noconfigdirs ${libgcj}"
3534 ;;
9863d716
JM
3535esac
3536
1b6c0831
L
3537# Disable the go frontend on systems where it is known to not work. Please keep
3538# this in sync with contrib/config-list.mk.
3539case "${target}" in
3540*-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3541 unsupported_languages="$unsupported_languages go"
3542 ;;
3543esac
3544
a413f71a
ILT
3545# Disable libgo for some systems where it is known to not work.
3546# For testing, you can easily override this with --enable-libgo.
3547if test x$enable_libgo = x; then
3548 case "${target}" in
3549 *-*-darwin*)
3550 # PR 46986
3551 noconfigdirs="$noconfigdirs target-libgo"
3552 ;;
3553 *-*-cygwin* | *-*-mingw*)
3554 noconfigdirs="$noconfigdirs target-libgo"
3555 ;;
3556 *-*-aix*)
3557 noconfigdirs="$noconfigdirs target-libgo"
3558 ;;
3559 esac
3560fi
3561
691bb5a1
DD
3562# Default libgloss CPU subdirectory.
3563libgloss_dir="$target_cpu"
4b1cb4fe 3564
ff46fb8f
JM
3565case "${target}" in
3566 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3567 libgloss_dir=wince
3568 ;;
f1dd87fc
YZ
3569 aarch64*-*-* )
3570 libgloss_dir=aarch64
3571 ;;
ff46fb8f
JM
3572 arm*-*-*)
3573 libgloss_dir=arm
3574 ;;
3575 cris-*-* | crisv32-*-*)
3576 libgloss_dir=cris
3577 ;;
3578 hppa*-*-*)
3579 libgloss_dir=pa
3580 ;;
3581 i[3456789]86-*-*)
3582 libgloss_dir=i386
3583 ;;
3584 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3585 libgloss_dir=m68hc11
3586 ;;
3587 m68*-*-* | fido-*-*)
3588 libgloss_dir=m68k
3589 ;;
3590 mips*-*-*)
3591 libgloss_dir=mips
3592 ;;
3593 powerpc*-*-*)
3594 libgloss_dir=rs6000
3595 ;;
3596 sparc*-*-*)
3597 libgloss_dir=sparc
3598 ;;
3599esac
3600
c7e4b184 3601# Disable newlib and libgloss for various target OSes.
a0da8069 3602case "${target}" in
c7e4b184
JM
3603 alpha*-dec-osf*)
3604 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3605 ;;
3606 i[3456789]86-*-linux*)
3607 # This section makes it possible to build newlib natively on linux.
3608 # If we are using a cross compiler then don't configure newlib.
3609 if test x${is_cross_compiler} != xno ; then
3610 noconfigdirs="$noconfigdirs target-newlib"
3611 fi
3612 noconfigdirs="$noconfigdirs target-libgloss"
3613 # If we are not using a cross compiler, do configure newlib.
3614 # Note however, that newlib will only be configured in this situation
3615 # if the --with-newlib option has been given, because otherwise
3616 # 'target-newlib' will appear in skipdirs.
3617 ;;
3618 i[3456789]86-*-rdos*)
3619 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3620 ;;
3621 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3622 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3623 ;;
3624 sparc-*-sunos4*)
3625 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3626 ;;
3627 *-*-aix*)
3628 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3629 ;;
3630 *-*-beos*)
3631 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3632 ;;
a0da8069 3633 *-*-chorusos)
b2f14e4a 3634 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3635 ;;
c7e4b184
JM
3636 *-*-dragonfly*)
3637 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3638 ;;
3639 *-*-freebsd*)
3640 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3641 ;;
3642 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3643 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3644 ;;
3645 *-*-lynxos*)
3646 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3647 ;;
3648 *-*-mingw*)
3649 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3650 ;;
3651 *-*-netbsd*)
3652 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3653 ;;
3654 *-*-netware*)
3655 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3656 ;;
3657 *-*-tpf*)
3658 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3659 ;;
3660 *-*-uclinux*)
3661 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3662 ;;
3663 *-*-vxworks*)
3664 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3665 ;;
3666esac
3667
3668case "${target}" in
3669 *-*-chorusos)
3670 ;;
24741ab2 3671 powerpc-*-darwin*)
9d39db92 3672 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3673 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3674 ;;
85bd1942
TG
3675 i[3456789]86-*-darwin*)
3676 noconfigdirs="$noconfigdirs ld gprof"
3677 noconfigdirs="$noconfigdirs sim target-rda"
3678 ;;
e8a5fa9c 3679 x86_64-*-darwin[912]*)
652dec25
TG
3680 noconfigdirs="$noconfigdirs ld gas gprof"
3681 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3682 ;;
04d1ab34 3683 *-*-darwin*)
d320aacb 3684 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3685 noconfigdirs="$noconfigdirs sim target-rda"
04d1ab34 3686 ;;
5b806d27 3687 *-*-dragonfly*)
5b806d27 3688 ;;
de0b4a87 3689 *-*-freebsd*)
4b1cb4fe
DD
3690 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3691 && test -f /usr/local/include/gmp.h; then
3692 with_gmp=/usr/local
3693 fi
4b1cb4fe 3694 ;;
f8a495c8
NC
3695 *-*-kaos*)
3696 # Remove unsupported stuff on all kaOS configurations.
f8a495c8
NC
3697 noconfigdirs="$noconfigdirs target-libgloss"
3698 ;;
a0da8069 3699 *-*-netbsd*)
a0da8069 3700 ;;
2a3124ca 3701 *-*-netware*)
a0da8069
NN
3702 ;;
3703 *-*-rtems*)
9863d716 3704 noconfigdirs="$noconfigdirs target-libgloss"
f8797b5a
JB
3705 # this is not caught below because this stanza matches earlier
3706 case $target in
3707 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3708 esac
a0da8069 3709 ;;
1587117a
EC
3710 # The tpf target doesn't support gdb yet.
3711 *-*-tpf*)
c7e4b184 3712 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
1587117a 3713 ;;
c1968181 3714 *-*-uclinux*)
c7e4b184 3715 noconfigdirs="$noconfigdirs target-rda"
c1968181 3716 ;;
a0da8069 3717 *-*-vxworks*)
a0da8069
NN
3718 ;;
3719 alpha*-dec-osf*)
3720 # ld works, but does not support shared libraries.
a0da8069 3721 # gas doesn't generate exception information.
c7e4b184 3722 noconfigdirs="$noconfigdirs gas ld"
a0da8069
NN
3723 ;;
3724 alpha*-*-*vms*)
9863d716 3725 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
a0da8069 3726 ;;
a0da8069
NN
3727 alpha*-*-*)
3728 # newlib is not 64 bit ready
9863d716 3729 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3730 ;;
a0da8069 3731 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
675c6968 3732 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069 3733 ;;
f4cfb980 3734 arc-*-*|arceb-*-*)
782cb41f 3735 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3736 ;;
a0da8069 3737 arm-*-pe*)
9863d716 3738 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3739 ;;
a0da8069 3740 arm-*-riscix*)
b2f14e4a 3741 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3742 ;;
8e71395b
L
3743 avr-*-rtems*)
3744 ;;
3745 avr-*-*)
3746 if test x${with_avrlibc} != xno; then
3747 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3748 fi
3749 ;;
a0da8069 3750 c4x-*-* | tic4x-*-*)
b2f14e4a 3751 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3752 ;;
b2f14e4a
JM
3753 tic54x-*-*)
3754 noconfigdirs="$noconfigdirs target-libgloss gdb"
a0da8069 3755 ;;
a0da8069 3756 d10v-*-*)
b2f14e4a 3757 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3758 ;;
3759 d30v-*-*)
b2f14e4a 3760 noconfigdirs="$noconfigdirs gdb"
a0da8069
NN
3761 ;;
3762 fr30-*-elf*)
9863d716 3763 noconfigdirs="$noconfigdirs gdb"
a0da8069 3764 ;;
3f8107ab
AM
3765 ft32-*-*)
3766 noconfigdirs="$noconfigdirs target-rda gprof"
3767 ;;
20135e4c 3768 moxie-*-*)
10b8fe5e 3769 noconfigdirs="$noconfigdirs"
20135e4c 3770 ;;
a0da8069 3771 h8300*-*-*)
9863d716 3772 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3773 ;;
3774 h8500-*-*)
b2f14e4a 3775 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3776 ;;
caeba88f 3777 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3778 ;;
5569a85f
JDA
3779 hppa*64*-*-hpux*)
3780 noconfigdirs="$noconfigdirs gdb"
3781 ;;
3782 hppa*-*-hpux11*)
3783 noconfigdirs="$noconfigdirs gdb ld"
3784 ;;
93cc359e 3785 hppa*64*-*-linux*)
a0da8069 3786 ;;
f0ff0f90 3787 hppa*-*-linux*)
5dcac624 3788 ;;
a0da8069 3789 hppa*-*-*elf* | \
a0da8069
NN
3790 hppa*-*-lites* | \
3791 hppa*-*-openbsd* | \
3792 hppa*64*-*-*)
4f0ef2d8 3793 ;;
691bb5a1 3794 hppa*-*-pro*)
691bb5a1 3795 ;;
a0da8069 3796 hppa*-*-*)
9863d716 3797 noconfigdirs="$noconfigdirs ld"
a0da8069 3798 ;;
b07c2aad 3799 i960-*-*)
b2f14e4a 3800 noconfigdirs="$noconfigdirs gdb"
b07c2aad 3801 ;;
a0da8069
NN
3802 ia64*-*-elf*)
3803 # No gdb support yet.
0377a422 3804 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
a0da8069
NN
3805 ;;
3806 ia64*-**-hpux*)
92c9a463 3807 # No ld support yet.
5569a85f 3808 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
a0da8069 3809 ;;
19e99079 3810 ia64*-*-*vms*)
7ec59b9e
L
3811 # No ld support yet.
3812 noconfigdirs="$noconfigdirs libgui itcl ld"
19e99079 3813 ;;
1f53ca9a 3814 i[3456789]86-w64-mingw*)
1f53ca9a
AO
3815 ;;
3816 i[3456789]86-*-mingw*)
45055374 3817 target_configdirs="$target_configdirs target-winsup"
c6b750e1 3818 ;;
a0da8069
NN
3819 *-*-cygwin*)
3820 target_configdirs="$target_configdirs target-libtermcap target-winsup"
0377a422 3821 noconfigdirs="$noconfigdirs target-libgloss"
b76d7de0 3822 # always build newlib if winsup directory is present.
45055374 3823 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3824 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3825 elif test -d "$srcdir/newlib"; then
45055374 3826 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3827 fi
c6b750e1 3828 ;;
ec11bdc6 3829 i[3456789]86-*-pe)
782cb41f 3830 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3831 ;;
ec11bdc6 3832 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3833 # The linker does not yet know about weak symbols in COFF,
3834 # and is not configured to handle mixed ELF and COFF.
b2f14e4a 3835 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3836 ;;
ec11bdc6 3837 i[3456789]86-*-sco*)
b2f14e4a 3838 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3839 ;;
cff32a7c 3840 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
a0da8069
NN
3841 noconfigdirs="$noconfigdirs target-libgloss"
3842 ;;
ec11bdc6 3843 i[3456789]86-*-sysv4*)
b2f14e4a 3844 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3845 ;;
ec11bdc6 3846 i[3456789]86-*-beos*)
c7e4b184 3847 noconfigdirs="$noconfigdirs gdb"
bba45b8b 3848 ;;
b59bea8a 3849 i[3456789]86-*-rdos*)
c7e4b184 3850 noconfigdirs="$noconfigdirs gdb"
691bb5a1 3851 ;;
a0da8069 3852 mmix-*-*)
9863d716 3853 noconfigdirs="$noconfigdirs gdb"
a0da8069 3854 ;;
4970f871 3855 mt-*-*)
cdb9b172
AH
3856 noconfigdirs="$noconfigdirs sim"
3857 ;;
a0da8069
NN
3858 powerpc-*-aix*)
3859 # copied from rs6000-*-* entry
c7e4b184 3860 noconfigdirs="$noconfigdirs gprof"
a0da8069 3861 ;;
93cc359e 3862 powerpc*-*-winnt* | powerpc*-*-pe*)
a0da8069 3863 target_configdirs="$target_configdirs target-winsup"
b2f14e4a 3864 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
a0da8069
NN
3865 # always build newlib.
3866 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3867 ;;
3868 # This is temporary until we can link against shared libraries
3869 powerpcle-*-solaris*)
b2f14e4a 3870 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
a0da8069
NN
3871 ;;
3872 powerpc-*-beos*)
c7e4b184 3873 noconfigdirs="$noconfigdirs gdb"
a0da8069 3874 ;;
a0da8069 3875 rs6000-*-lynxos*)
c7e4b184 3876 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3877 ;;
3878 rs6000-*-aix*)
c7e4b184 3879 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3880 ;;
3881 rs6000-*-*)
9863d716 3882 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3883 ;;
3884 m68k-apollo-*)
b2f14e4a 3885 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
a0da8069 3886 ;;
25a07265 3887 microblaze*)
9863d716 3888 noconfigdirs="$noconfigdirs gprof"
25a07265 3889 ;;
a9d58c06 3890 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
5bd8be13
RS
3891 if test x$with_newlib = xyes; then
3892 noconfigdirs="$noconfigdirs gprof"
3893 fi
5bd8be13 3894 ;;
a0da8069 3895 mips*-*-irix5*)
b2f14e4a 3896 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069
NN
3897 ;;
3898 mips*-*-irix6*)
9863d716 3899 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3900 ;;
a0da8069 3901 mips*-*-bsd*)
e8044f35 3902 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
a0da8069 3903 ;;
a0da8069 3904 mips*-*-linux*)
a0da8069 3905 ;;
e8044f35
RS
3906 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3907 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3908 noconfigdirs="$noconfigdirs ld gas gprof"
3909 ;;
a0da8069 3910 mips*-*-*)
9863d716 3911 noconfigdirs="$noconfigdirs gprof"
a0da8069 3912 ;;
b25b5cef
CJW
3913 nds32*-*-*)
3914 noconfigdirs="$noconfigdirs gdb"
3915 ;;
1b6c0831
L
3916 nvptx*-*-*)
3917 # nvptx is just a compiler
3918 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3919 ;;
cfbc1a6c
JS
3920 or1k*-*-*)
3921 noconfigdirs="$noconfigdirs gdb"
3922 ;;
dbf85af7 3923 sh-*-* | sh64-*-*)
e8a5fa9c
RW
3924 case "${target}" in
3925 sh*-*-elf)
9863d716 3926 ;;
e8a5fa9c 3927 *)
9863d716 3928 noconfigdirs="$noconfigdirs target-libgloss" ;;
e8a5fa9c 3929 esac
a0da8069 3930 ;;
a0da8069 3931 sparc-*-sunos4*)
c7e4b184 3932 if test x${is_cross_compiler} = xno ; then
a0da8069
NN
3933 use_gnu_ld=no
3934 fi
3935 ;;
619a3713 3936 tic6x-*-*)
40ae9136 3937 noconfigdirs="$noconfigdirs sim"
619a3713 3938 ;;
68d122bb 3939 tilepro*-*-* | tilegx*-*-*)
eb4b2452
NC
3940 noconfigdirs="$noconfigdirs sim"
3941 ;;
a0da8069 3942 v810-*-*)
b2f14e4a 3943 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
a0da8069
NN
3944 ;;
3945 vax-*-*)
9863d716 3946 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3947 ;;
a0da8069 3948esac
252b5132 3949
a0da8069
NN
3950# If we aren't building newlib, then don't build libgloss, since libgloss
3951# depends upon some newlib header files.
3952case "${noconfigdirs}" in
3953 *target-libgloss*) ;;
3954 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3955esac
3956
a0da8069 3957# Work in distributions that contain no compiler tools, like Autoconf.
a0da8069
NN
3958host_makefile_frag=/dev/null
3959if test -d ${srcdir}/config ; then
3960case "${host}" in
ec11bdc6 3961 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3962 host_makefile_frag="config/mh-djgpp"
3963 ;;
3964 *-cygwin*)
e33b51a6 3965
81ecdfbb
RW
3966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3967$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3968echo a >cygwin-cat-check
1f53ca9a 3969if test `cat cygwin-cat-check` = a ; then
8ade07e9 3970 rm cygwin-cat-check
81ecdfbb
RW
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3972$as_echo "yes" >&6; }
e33b51a6 3973else
8ade07e9 3974 rm cygwin-cat-check
81ecdfbb
RW
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3976$as_echo "no" >&6; }
3977 as_fn_error "The cat command does not ignore carriage return characters.
e33b51a6
NC
3978 Please either mount the build directory in binary mode or run the following
3979 commands before running any configure script:
3980set -o igncr
3981export SHELLOPTS
81ecdfbb 3982 " "$LINENO" 5
e33b51a6 3983fi
e33b51a6 3984
a0da8069
NN
3985 host_makefile_frag="config/mh-cygwin"
3986 ;;
8a1599ab 3987 *-mingw*)
84e7906e 3988 host_makefile_frag="config/mh-mingw"
2d1e8239 3989 ;;
ce6c656d
L
3990 alpha*-linux*)
3991 host_makefile_frag="config/mh-alpha-linux"
3992 ;;
da888c87 3993 hppa*-hp-hpux10*)
da888c87 3994 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3995 ;;
3516a403 3996 hppa*-hp-hpux*)
da888c87
PB
3997 host_makefile_frag="config/mh-pa"
3998 ;;
3999 hppa*-*)
4000 host_makefile_frag="config/mh-pa"
4001 ;;
e552509b
ILT
4002 *-*-darwin*)
4003 host_makefile_frag="config/mh-darwin"
0df3d27f 4004 ;;
f6d183c0
PB
4005 powerpc-*-aix*)
4006 host_makefile_frag="config/mh-ppc-aix"
4007 ;;
4008 rs6000-*-aix*)
4009 host_makefile_frag="config/mh-ppc-aix"
4010 ;;
a0da8069
NN
4011esac
4012fi
4013
9e07f89d 4014if test "${build}" != "${host}" ; then
1576798e
PB
4015 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4016 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 4017 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
4018 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4019 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
4020 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 4021 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
1576798e
PB
4022 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4023 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4024 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4025 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4026 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4027 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4028else
4029 AR_FOR_BUILD="\$(AR)"
4030 AS_FOR_BUILD="\$(AS)"
512b7dfb 4031 CC_FOR_BUILD="\$(CC)"
1576798e
PB
4032 CXX_FOR_BUILD="\$(CXX)"
4033 GCJ_FOR_BUILD="\$(GCJ)"
4034 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 4035 GOC_FOR_BUILD="\$(GOC)"
1576798e
PB
4036 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4037 LD_FOR_BUILD="\$(LD)"
4038 NM_FOR_BUILD="\$(NM)"
4039 RANLIB_FOR_BUILD="\$(RANLIB)"
4040 WINDRES_FOR_BUILD="\$(WINDRES)"
4041 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
4042fi
4043
4044ac_ext=c
c6b750e1
DJ
4045ac_cpp='$CPP $CPPFLAGS'
4046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4048ac_compiler_gnu=$ac_cv_c_compiler_gnu
4049if test -n "$ac_tool_prefix"; then
4050 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4051set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
4052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4053$as_echo_n "checking for $ac_word... " >&6; }
4054if test "${ac_cv_prog_CC+set}" = set; then :
4055 $as_echo_n "(cached) " >&6
c6b750e1
DJ
4056else
4057 if test -n "$CC"; then
4058 ac_cv_prog_CC="$CC" # Let the user override the test.
4059else
4060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061for as_dir in $PATH
4062do
4063 IFS=$as_save_IFS
4064 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4065 for ac_exec_ext in '' $ac_executable_extensions; do
4066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4067 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 4068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4069 break 2
4070 fi
4071done
81ecdfbb
RW
4072 done
4073IFS=$as_save_IFS
c6b750e1
DJ
4074
4075fi
4076fi
4077CC=$ac_cv_prog_CC
4078if test -n "$CC"; then
81ecdfbb
RW
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4080$as_echo "$CC" >&6; }
c6b750e1 4081else
81ecdfbb
RW
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4083$as_echo "no" >&6; }
c6b750e1
DJ
4084fi
4085
81ecdfbb 4086
c6b750e1
DJ
4087fi
4088if test -z "$ac_cv_prog_CC"; then
4089 ac_ct_CC=$CC
6a9cf61e 4090 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 4091set dummy gcc; ac_word=$2
81ecdfbb
RW
4092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4093$as_echo_n "checking for $ac_word... " >&6; }
4094if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4095 $as_echo_n "(cached) " >&6
c6b750e1
DJ
4096else
4097 if test -n "$ac_ct_CC"; then
4098 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4099else
4100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101for as_dir in $PATH
4102do
4103 IFS=$as_save_IFS
4104 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4105 for ac_exec_ext in '' $ac_executable_extensions; do
4106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4107 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4109 break 2
4110 fi
4111done
81ecdfbb
RW
4112 done
4113IFS=$as_save_IFS
c6b750e1
DJ
4114
4115fi
4116fi
4117ac_ct_CC=$ac_cv_prog_ac_ct_CC
4118if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4120$as_echo "$ac_ct_CC" >&6; }
c6b750e1 4121else
81ecdfbb
RW
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4123$as_echo "no" >&6; }
c6b750e1
DJ
4124fi
4125
81ecdfbb
RW
4126 if test "x$ac_ct_CC" = x; then
4127 CC=""
4128 else
4129 case $cross_compiling:$ac_tool_warned in
4130yes:)
4131{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4132$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4133ac_tool_warned=yes ;;
4134esac
4135 CC=$ac_ct_CC
4136 fi
c6b750e1
DJ
4137else
4138 CC="$ac_cv_prog_CC"
4139fi
4140
4141if test -z "$CC"; then
81ecdfbb
RW
4142 if test -n "$ac_tool_prefix"; then
4143 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 4144set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4146$as_echo_n "checking for $ac_word... " >&6; }
4147if test "${ac_cv_prog_CC+set}" = set; then :
4148 $as_echo_n "(cached) " >&6
9e07f89d
NN
4149else
4150 if test -n "$CC"; then
4151 ac_cv_prog_CC="$CC" # Let the user override the test.
4152else
c6b750e1
DJ
4153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154for as_dir in $PATH
4155do
4156 IFS=$as_save_IFS
4157 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4158 for ac_exec_ext in '' $ac_executable_extensions; do
4159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4160 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4162 break 2
4163 fi
4164done
81ecdfbb
RW
4165 done
4166IFS=$as_save_IFS
c6b750e1 4167
9e07f89d
NN
4168fi
4169fi
c6b750e1 4170CC=$ac_cv_prog_CC
9e07f89d 4171if test -n "$CC"; then
81ecdfbb
RW
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4173$as_echo "$CC" >&6; }
c6b750e1 4174else
81ecdfbb
RW
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4176$as_echo "no" >&6; }
c6b750e1
DJ
4177fi
4178
c6b750e1 4179
81ecdfbb 4180 fi
c6b750e1 4181fi
9e07f89d
NN
4182if test -z "$CC"; then
4183 # Extract the first word of "cc", so it can be a program name with args.
4184set dummy cc; ac_word=$2
81ecdfbb
RW
4185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4186$as_echo_n "checking for $ac_word... " >&6; }
4187if test "${ac_cv_prog_CC+set}" = set; then :
4188 $as_echo_n "(cached) " >&6
9e07f89d
NN
4189else
4190 if test -n "$CC"; then
4191 ac_cv_prog_CC="$CC" # Let the user override the test.
4192else
9e07f89d 4193 ac_prog_rejected=no
c6b750e1
DJ
4194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195for as_dir in $PATH
4196do
4197 IFS=$as_save_IFS
4198 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4199 for ac_exec_ext in '' $ac_executable_extensions; do
4200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1
DJ
4201 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4202 ac_prog_rejected=yes
4203 continue
4204 fi
4205 ac_cv_prog_CC="cc"
81ecdfbb 4206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4207 break 2
4208 fi
4209done
81ecdfbb
RW
4210 done
4211IFS=$as_save_IFS
c6b750e1 4212
9e07f89d
NN
4213if test $ac_prog_rejected = yes; then
4214 # We found a bogon in the path, so make sure we never use it.
4215 set dummy $ac_cv_prog_CC
4216 shift
c6b750e1 4217 if test $# != 0; then
9e07f89d
NN
4218 # We chose a different compiler from the bogus one.
4219 # However, it has the same basename, so the bogon will be chosen
4220 # first if we set CC to just the basename; use the full file name.
4221 shift
c6b750e1 4222 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
4223 fi
4224fi
4225fi
4226fi
c6b750e1 4227CC=$ac_cv_prog_CC
9e07f89d 4228if test -n "$CC"; then
81ecdfbb
RW
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4230$as_echo "$CC" >&6; }
9e07f89d 4231else
81ecdfbb
RW
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4233$as_echo "no" >&6; }
9e07f89d
NN
4234fi
4235
81ecdfbb 4236
c6b750e1
DJ
4237fi
4238if test -z "$CC"; then
4239 if test -n "$ac_tool_prefix"; then
81ecdfbb 4240 for ac_prog in cl.exe
c6b750e1
DJ
4241 do
4242 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4243set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245$as_echo_n "checking for $ac_word... " >&6; }
4246if test "${ac_cv_prog_CC+set}" = set; then :
4247 $as_echo_n "(cached) " >&6
9e07f89d
NN
4248else
4249 if test -n "$CC"; then
4250 ac_cv_prog_CC="$CC" # Let the user override the test.
4251else
c6b750e1
DJ
4252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253for as_dir in $PATH
4254do
4255 IFS=$as_save_IFS
4256 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4259 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 4261 break 2
376a0e54 4262 fi
c6b750e1 4263done
81ecdfbb
RW
4264 done
4265IFS=$as_save_IFS
cac3d6c4 4266
c6b750e1
DJ
4267fi
4268fi
4269CC=$ac_cv_prog_CC
4270if test -n "$CC"; then
81ecdfbb
RW
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4272$as_echo "$CC" >&6; }
cac3d6c4 4273else
81ecdfbb
RW
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275$as_echo "no" >&6; }
9e07f89d 4276fi
cac3d6c4 4277
81ecdfbb 4278
c6b750e1
DJ
4279 test -n "$CC" && break
4280 done
cac3d6c4 4281fi
c6b750e1
DJ
4282if test -z "$CC"; then
4283 ac_ct_CC=$CC
81ecdfbb 4284 for ac_prog in cl.exe
c6b750e1
DJ
4285do
4286 # Extract the first word of "$ac_prog", so it can be a program name with args.
4287set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4289$as_echo_n "checking for $ac_word... " >&6; }
4290if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4291 $as_echo_n "(cached) " >&6
cac3d6c4 4292else
c6b750e1
DJ
4293 if test -n "$ac_ct_CC"; then
4294 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 4295else
c6b750e1
DJ
4296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297for as_dir in $PATH
4298do
4299 IFS=$as_save_IFS
4300 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4301 for ac_exec_ext in '' $ac_executable_extensions; do
4302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4303 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4305 break 2
4306 fi
4307done
81ecdfbb
RW
4308 done
4309IFS=$as_save_IFS
c6b750e1 4310
cac3d6c4
CM
4311fi
4312fi
c6b750e1
DJ
4313ac_ct_CC=$ac_cv_prog_ac_ct_CC
4314if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4316$as_echo "$ac_ct_CC" >&6; }
9e07f89d 4317else
81ecdfbb
RW
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4319$as_echo "no" >&6; }
cac3d6c4 4320fi
376a0e54 4321
81ecdfbb 4322
c6b750e1
DJ
4323 test -n "$ac_ct_CC" && break
4324done
4325
81ecdfbb
RW
4326 if test "x$ac_ct_CC" = x; then
4327 CC=""
4328 else
4329 case $cross_compiling:$ac_tool_warned in
4330yes:)
4331{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4332$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4333ac_tool_warned=yes ;;
4334esac
4335 CC=$ac_ct_CC
4336 fi
c6b750e1
DJ
4337fi
4338
4339fi
4340
4341
81ecdfbb
RW
4342test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4343$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4344as_fn_error "no acceptable C compiler found in \$PATH
4345See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4346
4347# Provide some information about the compiler.
81ecdfbb
RW
4348$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4349set X $ac_compile
4350ac_compiler=$2
4351for ac_option in --version -v -V -qversion; do
4352 { { ac_try="$ac_compiler $ac_option >&5"
4353case "(($ac_try" in
4354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4355 *) ac_try_echo=$ac_try;;
4356esac
4357eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4358$as_echo "$ac_try_echo"; } >&5
4359 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4360 ac_status=$?
81ecdfbb
RW
4361 if test -s conftest.err; then
4362 sed '10a\
4363... rest of stderr output deleted ...
4364 10q' conftest.err >conftest.er1
4365 cat conftest.er1 >&5
4366 rm -f conftest.er1 conftest.err
4367 fi
4368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4369 test $ac_status = 0; }
4370done
c6b750e1 4371
81ecdfbb 4372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4373/* end confdefs.h. */
4374
4375int
4376main ()
4377{
4378
4379 ;
4380 return 0;
4381}
4382_ACEOF
4383ac_clean_files_save=$ac_clean_files
81ecdfbb 4384ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
c6b750e1
DJ
4385# Try to create an executable without -o first, disregard a.out.
4386# It will help us diagnose broken compilers, and finding out an intuition
4387# of exeext.
81ecdfbb
RW
4388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4389$as_echo_n "checking for C compiler default output file name... " >&6; }
4390ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4391
4392# The possible output files:
4393ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4394
4395ac_rmfiles=
4396for ac_file in $ac_files
4397do
4398 case $ac_file in
4399 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4400 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4401 esac
4402done
4403rm -f $ac_rmfiles
4404
4405if { { ac_try="$ac_link_default"
4406case "(($ac_try" in
4407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4408 *) ac_try_echo=$ac_try;;
4409esac
4410eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4411$as_echo "$ac_try_echo"; } >&5
4412 (eval "$ac_link_default") 2>&5
c6b750e1 4413 ac_status=$?
81ecdfbb
RW
4414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4415 test $ac_status = 0; }; then :
4416 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4417# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4418# in a Makefile. We should not override ac_cv_exeext if it was cached,
4419# so that the user can short-circuit this test for compilers unknown to
4420# Autoconf.
4421for ac_file in $ac_files ''
c6b750e1
DJ
4422do
4423 test -f "$ac_file" || continue
4424 case $ac_file in
81ecdfbb 4425 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4426 ;;
4427 [ab].out )
4428 # We found the default executable, but exeext='' is most
4429 # certainly right.
4430 break;;
4431 *.* )
81ecdfbb
RW
4432 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4433 then :; else
4434 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4435 fi
4436 # We set ac_cv_exeext here because the later test for it is not
4437 # safe: cross compilers may not add the suffix if given an `-o'
4438 # argument, so we may need to know it at that point already.
4439 # Even if this section looks crufty: it has the advantage of
4440 # actually working.
c6b750e1
DJ
4441 break;;
4442 * )
4443 break;;
4444 esac
4445done
81ecdfbb
RW
4446test "$ac_cv_exeext" = no && ac_cv_exeext=
4447
c6b750e1 4448else
81ecdfbb
RW
4449 ac_file=''
4450fi
4451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4452$as_echo "$ac_file" >&6; }
4453if test -z "$ac_file"; then :
4454 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4455sed 's/^/| /' conftest.$ac_ext >&5
4456
81ecdfbb
RW
4457{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4458$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4459{ as_fn_set_status 77
4460as_fn_error "C compiler cannot create executables
4461See \`config.log' for more details." "$LINENO" 5; }; }
c6b750e1 4462fi
c6b750e1 4463ac_exeext=$ac_cv_exeext
c6b750e1 4464
81ecdfbb 4465# Check that the compiler produces executables we can run. If not, either
c6b750e1 4466# the compiler is broken, or we cross compile.
81ecdfbb
RW
4467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4468$as_echo_n "checking whether the C compiler works... " >&6; }
c6b750e1
DJ
4469# If not cross compiling, check that we can run a simple program.
4470if test "$cross_compiling" != yes; then
4471 if { ac_try='./$ac_file'
81ecdfbb
RW
4472 { { case "(($ac_try" in
4473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474 *) ac_try_echo=$ac_try;;
4475esac
4476eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4477$as_echo "$ac_try_echo"; } >&5
4478 (eval "$ac_try") 2>&5
c6b750e1 4479 ac_status=$?
81ecdfbb
RW
4480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4481 test $ac_status = 0; }; }; then
c6b750e1
DJ
4482 cross_compiling=no
4483 else
4484 if test "$cross_compiling" = maybe; then
4485 cross_compiling=yes
4486 else
81ecdfbb
RW
4487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4489as_fn_error "cannot run C compiled programs.
c6b750e1 4490If you meant to cross compile, use \`--host'.
81ecdfbb 4491See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4492 fi
4493 fi
4494fi
81ecdfbb
RW
4495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4496$as_echo "yes" >&6; }
c6b750e1 4497
81ecdfbb 4498rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
c6b750e1 4499ac_clean_files=$ac_clean_files_save
81ecdfbb 4500# Check that the compiler produces executables we can run. If not, either
c6b750e1 4501# the compiler is broken, or we cross compile.
81ecdfbb
RW
4502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4503$as_echo_n "checking whether we are cross compiling... " >&6; }
4504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4505$as_echo "$cross_compiling" >&6; }
4506
4507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4508$as_echo_n "checking for suffix of executables... " >&6; }
4509if { { ac_try="$ac_link"
4510case "(($ac_try" in
4511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4512 *) ac_try_echo=$ac_try;;
4513esac
4514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4515$as_echo "$ac_try_echo"; } >&5
4516 (eval "$ac_link") 2>&5
c6b750e1 4517 ac_status=$?
81ecdfbb
RW
4518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4519 test $ac_status = 0; }; then :
c6b750e1
DJ
4520 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4521# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4522# work properly (i.e., refer to `conftest.exe'), while it won't with
4523# `rm'.
4524for ac_file in conftest.exe conftest conftest.*; do
4525 test -f "$ac_file" || continue
4526 case $ac_file in
81ecdfbb 4527 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4528 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4529 break;;
4530 * ) break;;
4531 esac
4532done
4533else
81ecdfbb
RW
4534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4535$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4536as_fn_error "cannot compute suffix of executables: cannot compile and link
4537See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4538fi
c6b750e1 4539rm -f conftest$ac_cv_exeext
81ecdfbb
RW
4540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4541$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4542
4543rm -f conftest.$ac_ext
4544EXEEXT=$ac_cv_exeext
4545ac_exeext=$EXEEXT
81ecdfbb
RW
4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4547$as_echo_n "checking for suffix of object files... " >&6; }
4548if test "${ac_cv_objext+set}" = set; then :
4549 $as_echo_n "(cached) " >&6
c6b750e1 4550else
81ecdfbb 4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4552/* end confdefs.h. */
4553
4554int
4555main ()
4556{
4557
4558 ;
4559 return 0;
4560}
4561_ACEOF
4562rm -f conftest.o conftest.obj
81ecdfbb
RW
4563if { { ac_try="$ac_compile"
4564case "(($ac_try" in
4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4567esac
4568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4569$as_echo "$ac_try_echo"; } >&5
4570 (eval "$ac_compile") 2>&5
c6b750e1 4571 ac_status=$?
81ecdfbb
RW
4572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4573 test $ac_status = 0; }; then :
4574 for ac_file in conftest.o conftest.obj conftest.*; do
4575 test -f "$ac_file" || continue;
c6b750e1 4576 case $ac_file in
81ecdfbb 4577 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4578 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4579 break;;
4580 esac
4581done
cac3d6c4 4582else
81ecdfbb 4583 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4584sed 's/^/| /' conftest.$ac_ext >&5
4585
81ecdfbb
RW
4586{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4587$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4588as_fn_error "cannot compute suffix of object files: cannot compile
4589See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4590fi
c6b750e1
DJ
4591rm -f conftest.$ac_cv_objext conftest.$ac_ext
4592fi
81ecdfbb
RW
4593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4594$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4595OBJEXT=$ac_cv_objext
4596ac_objext=$OBJEXT
81ecdfbb
RW
4597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4598$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4599if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4600 $as_echo_n "(cached) " >&6
c6b750e1 4601else
81ecdfbb 4602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4603/* end confdefs.h. */
4604
4605int
4606main ()
4607{
4608#ifndef __GNUC__
4609 choke me
4610#endif
4611
4612 ;
4613 return 0;
4614}
4615_ACEOF
81ecdfbb 4616if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4617 ac_compiler_gnu=yes
4618else
81ecdfbb 4619 ac_compiler_gnu=no
c6b750e1 4620fi
81ecdfbb 4621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4622ac_cv_c_compiler_gnu=$ac_compiler_gnu
4623
4624fi
81ecdfbb
RW
4625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4626$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4627if test $ac_compiler_gnu = yes; then
4628 GCC=yes
4629else
4630 GCC=
4631fi
c6b750e1
DJ
4632ac_test_CFLAGS=${CFLAGS+set}
4633ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4635$as_echo_n "checking whether $CC accepts -g... " >&6; }
4636if test "${ac_cv_prog_cc_g+set}" = set; then :
4637 $as_echo_n "(cached) " >&6
4638else
4639 ac_save_c_werror_flag=$ac_c_werror_flag
4640 ac_c_werror_flag=yes
4641 ac_cv_prog_cc_g=no
4642 CFLAGS="-g"
4643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4644/* end confdefs.h. */
4645
4646int
4647main ()
4648{
4649
4650 ;
4651 return 0;
4652}
4653_ACEOF
81ecdfbb 4654if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4655 ac_cv_prog_cc_g=yes
4656else
81ecdfbb
RW
4657 CFLAGS=""
4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659/* end confdefs.h. */
4660
4661int
4662main ()
4663{
4664
4665 ;
4666 return 0;
4667}
4668_ACEOF
4669if ac_fn_c_try_compile "$LINENO"; then :
4670
4671else
4672 ac_c_werror_flag=$ac_save_c_werror_flag
4673 CFLAGS="-g"
4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675/* end confdefs.h. */
cac3d6c4 4676
81ecdfbb
RW
4677int
4678main ()
4679{
4680
4681 ;
4682 return 0;
4683}
4684_ACEOF
4685if ac_fn_c_try_compile "$LINENO"; then :
4686 ac_cv_prog_cc_g=yes
4687fi
4688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4689fi
81ecdfbb 4690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4691fi
81ecdfbb
RW
4692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4693 ac_c_werror_flag=$ac_save_c_werror_flag
4694fi
4695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4696$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4697if test "$ac_test_CFLAGS" = set; then
c6b750e1 4698 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4699elif test $ac_cv_prog_cc_g = yes; then
4700 if test "$GCC" = yes; then
4701 CFLAGS="-g -O2"
4702 else
4703 CFLAGS="-g"
4704 fi
4705else
4706 if test "$GCC" = yes; then
4707 CFLAGS="-O2"
4708 else
4709 CFLAGS=
4710 fi
4711fi
81ecdfbb
RW
4712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4713$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4714if test "${ac_cv_prog_cc_c89+set}" = set; then :
4715 $as_echo_n "(cached) " >&6
c6b750e1 4716else
81ecdfbb 4717 ac_cv_prog_cc_c89=no
c6b750e1 4718ac_save_CC=$CC
81ecdfbb 4719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4720/* end confdefs.h. */
4721#include <stdarg.h>
4722#include <stdio.h>
4723#include <sys/types.h>
4724#include <sys/stat.h>
4725/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4726struct buf { int x; };
4727FILE * (*rcsopen) (struct buf *, struct stat *, int);
4728static char *e (p, i)
4729 char **p;
4730 int i;
4731{
4732 return p[i];
4733}
4734static char *f (char * (*g) (char **, int), char **p, ...)
4735{
4736 char *s;
4737 va_list v;
4738 va_start (v,p);
4739 s = g (p, va_arg (v,int));
4740 va_end (v);
4741 return s;
4742}
4743
4744/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4745 function prototypes and stuff, but not '\xHH' hex character constants.
4746 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4747 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4748 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4749 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4750 that's true only with -std. */
c6b750e1
DJ
4751int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4752
81ecdfbb
RW
4753/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4754 inside strings and character constants. */
4755#define FOO(x) 'x'
4756int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4757
c6b750e1
DJ
4758int test (int i, double x);
4759struct s1 {int (*f) (int a);};
4760struct s2 {int (*f) (double a);};
4761int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4762int argc;
4763char **argv;
4764int
4765main ()
4766{
4767return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4768 ;
4769 return 0;
4770}
4771_ACEOF
81ecdfbb
RW
4772for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4773 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4774do
4775 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4776 if ac_fn_c_try_compile "$LINENO"; then :
4777 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4778fi
81ecdfbb
RW
4779rm -f core conftest.err conftest.$ac_objext
4780 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4781done
81ecdfbb 4782rm -f conftest.$ac_ext
c6b750e1
DJ
4783CC=$ac_save_CC
4784
4785fi
81ecdfbb
RW
4786# AC_CACHE_VAL
4787case "x$ac_cv_prog_cc_c89" in
4788 x)
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4790$as_echo "none needed" >&6; } ;;
4791 xno)
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4793$as_echo "unsupported" >&6; } ;;
c6b750e1 4794 *)
81ecdfbb
RW
4795 CC="$CC $ac_cv_prog_cc_c89"
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4797$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4798esac
81ecdfbb 4799if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4800
c6b750e1
DJ
4801fi
4802
c6b750e1
DJ
4803ac_ext=c
4804ac_cpp='$CPP $CPPFLAGS'
4805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4808
81ecdfbb 4809ac_ext=cpp
18f6b6ee
PB
4810ac_cpp='$CXXCPP $CPPFLAGS'
4811ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4812ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4813ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4814if test -z "$CXX"; then
4815 if test -n "$CCC"; then
4816 CXX=$CCC
4817 else
4818 if test -n "$ac_tool_prefix"; then
4819 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4820 do
4821 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4822set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4824$as_echo_n "checking for $ac_word... " >&6; }
4825if test "${ac_cv_prog_CXX+set}" = set; then :
4826 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4827else
4828 if test -n "$CXX"; then
4829 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4830else
4831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832for as_dir in $PATH
4833do
4834 IFS=$as_save_IFS
4835 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4836 for ac_exec_ext in '' $ac_executable_extensions; do
4837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4838 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4840 break 2
4841 fi
4842done
81ecdfbb
RW
4843 done
4844IFS=$as_save_IFS
512b7dfb 4845
18f6b6ee
PB
4846fi
4847fi
4848CXX=$ac_cv_prog_CXX
4849if test -n "$CXX"; then
81ecdfbb
RW
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4851$as_echo "$CXX" >&6; }
18f6b6ee 4852else
81ecdfbb
RW
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854$as_echo "no" >&6; }
18f6b6ee
PB
4855fi
4856
81ecdfbb 4857
18f6b6ee
PB
4858 test -n "$CXX" && break
4859 done
4860fi
4861if test -z "$CXX"; then
4862 ac_ct_CXX=$CXX
81ecdfbb 4863 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4864do
4865 # Extract the first word of "$ac_prog", so it can be a program name with args.
4866set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4868$as_echo_n "checking for $ac_word... " >&6; }
4869if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4870 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4871else
4872 if test -n "$ac_ct_CXX"; then
4873 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4874else
4875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876for as_dir in $PATH
4877do
4878 IFS=$as_save_IFS
4879 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4880 for ac_exec_ext in '' $ac_executable_extensions; do
4881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4882 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4884 break 2
512b7dfb 4885 fi
18f6b6ee 4886done
81ecdfbb
RW
4887 done
4888IFS=$as_save_IFS
512b7dfb 4889
18f6b6ee
PB
4890fi
4891fi
4892ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4893if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4895$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4896else
81ecdfbb
RW
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4898$as_echo "no" >&6; }
18f6b6ee
PB
4899fi
4900
81ecdfbb 4901
18f6b6ee
PB
4902 test -n "$ac_ct_CXX" && break
4903done
18f6b6ee 4904
81ecdfbb
RW
4905 if test "x$ac_ct_CXX" = x; then
4906 CXX="g++"
4907 else
4908 case $cross_compiling:$ac_tool_warned in
4909yes:)
4910{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4911$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4912ac_tool_warned=yes ;;
4913esac
4914 CXX=$ac_ct_CXX
4915 fi
18f6b6ee
PB
4916fi
4917
81ecdfbb
RW
4918 fi
4919fi
18f6b6ee 4920# Provide some information about the compiler.
81ecdfbb
RW
4921$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4922set X $ac_compile
4923ac_compiler=$2
4924for ac_option in --version -v -V -qversion; do
4925 { { ac_try="$ac_compiler $ac_option >&5"
4926case "(($ac_try" in
4927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928 *) ac_try_echo=$ac_try;;
4929esac
4930eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4931$as_echo "$ac_try_echo"; } >&5
4932 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4933 ac_status=$?
81ecdfbb
RW
4934 if test -s conftest.err; then
4935 sed '10a\
4936... rest of stderr output deleted ...
4937 10q' conftest.err >conftest.er1
4938 cat conftest.er1 >&5
4939 rm -f conftest.er1 conftest.err
4940 fi
4941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4942 test $ac_status = 0; }
4943done
18f6b6ee 4944
81ecdfbb
RW
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4946$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4947if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4948 $as_echo_n "(cached) " >&6
18f6b6ee 4949else
81ecdfbb 4950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4951/* end confdefs.h. */
4952
4953int
4954main ()
4955{
4956#ifndef __GNUC__
4957 choke me
4958#endif
4959
4960 ;
4961 return 0;
4962}
4963_ACEOF
81ecdfbb 4964if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4965 ac_compiler_gnu=yes
4966else
81ecdfbb 4967 ac_compiler_gnu=no
18f6b6ee 4968fi
81ecdfbb 4969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4970ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4971
4972fi
81ecdfbb
RW
4973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4974$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4975if test $ac_compiler_gnu = yes; then
4976 GXX=yes
4977else
4978 GXX=
4979fi
18f6b6ee
PB
4980ac_test_CXXFLAGS=${CXXFLAGS+set}
4981ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4983$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4984if test "${ac_cv_prog_cxx_g+set}" = set; then :
4985 $as_echo_n "(cached) " >&6
4986else
4987 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4988 ac_cxx_werror_flag=yes
4989 ac_cv_prog_cxx_g=no
4990 CXXFLAGS="-g"
4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4992/* end confdefs.h. */
4993
4994int
4995main ()
4996{
4997
4998 ;
4999 return 0;
5000}
5001_ACEOF
81ecdfbb 5002if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
5003 ac_cv_prog_cxx_g=yes
5004else
81ecdfbb
RW
5005 CXXFLAGS=""
5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 5007/* end confdefs.h. */
81ecdfbb 5008
18f6b6ee
PB
5009int
5010main ()
5011{
81ecdfbb 5012
18f6b6ee
PB
5013 ;
5014 return 0;
5015}
5016_ACEOF
81ecdfbb 5017if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 5018
81ecdfbb
RW
5019else
5020 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5021 CXXFLAGS="-g"
5022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 5023/* end confdefs.h. */
81ecdfbb 5024
18f6b6ee
PB
5025int
5026main ()
5027{
81ecdfbb 5028
18f6b6ee
PB
5029 ;
5030 return 0;
5031}
5032_ACEOF
81ecdfbb
RW
5033if ac_fn_cxx_try_compile "$LINENO"; then :
5034 ac_cv_prog_cxx_g=yes
18f6b6ee 5035fi
81ecdfbb
RW
5036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5037fi
5038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5039fi
5040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5041 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5042fi
5043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5044$as_echo "$ac_cv_prog_cxx_g" >&6; }
5045if test "$ac_test_CXXFLAGS" = set; then
5046 CXXFLAGS=$ac_save_CXXFLAGS
5047elif test $ac_cv_prog_cxx_g = yes; then
5048 if test "$GXX" = yes; then
5049 CXXFLAGS="-g -O2"
5050 else
5051 CXXFLAGS="-g"
5052 fi
5053else
5054 if test "$GXX" = yes; then
5055 CXXFLAGS="-O2"
5056 else
5057 CXXFLAGS=
5058 fi
18f6b6ee 5059fi
18f6b6ee
PB
5060ac_ext=c
5061ac_cpp='$CPP $CPPFLAGS'
5062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5064ac_compiler_gnu=$ac_cv_c_compiler_gnu
5065
5066
5067# We must set the default linker to the linker used by gcc for the correct
5068# operation of libtool. If LD is not defined and we are using gcc, try to
5069# set the LD default to the ld used by gcc.
5070if test -z "$LD"; then
5071 if test "$GCC" = yes; then
5072 case $build in
5073 *-*-mingw*)
5074 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5075 *)
5076 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5077 esac
5078 case $gcc_prog_ld in
5079 # Accept absolute paths.
5080 [\\/]* | [A-Za-z]:[\\/]*)
5081 LD="$gcc_prog_ld" ;;
5082 esac
5083 fi
512b7dfb
PB
5084fi
5085
b3676d82
EB
5086# Check whether -static-libstdc++ -static-libgcc is supported.
5087have_static_libs=no
5088if test "$GCC" = yes; then
5089 saved_LDFLAGS="$LDFLAGS"
5090
5091 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5093$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5094 ac_ext=cpp
5095ac_cpp='$CXXCPP $CPPFLAGS'
5096ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5097ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5098ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5099
5100
5101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102/* end confdefs.h. */
a882be68
EB
5103
5104#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5105#error -static-libstdc++ not implemented
5106#endif
b3676d82
EB
5107int main() {}
5108_ACEOF
5109if ac_fn_cxx_try_link "$LINENO"; then :
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5111$as_echo "yes" >&6; }; have_static_libs=yes
5112else
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5114$as_echo "no" >&6; }
5115fi
5116rm -f core conftest.err conftest.$ac_objext \
5117 conftest$ac_exeext conftest.$ac_ext
5118 ac_ext=c
5119ac_cpp='$CPP $CPPFLAGS'
5120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5122ac_compiler_gnu=$ac_cv_c_compiler_gnu
5123
5124
5125 LDFLAGS="$saved_LDFLAGS"
5126fi
5127
512b7dfb
PB
5128
5129
5130
c6b750e1 5131if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5132 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5133set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
5134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5135$as_echo_n "checking for $ac_word... " >&6; }
5136if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5137 $as_echo_n "(cached) " >&6
9e07f89d 5138else
512b7dfb
PB
5139 if test -n "$GNATBIND"; then
5140 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 5141else
c6b750e1
DJ
5142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143for as_dir in $PATH
5144do
5145 IFS=$as_save_IFS
5146 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5149 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 5150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5151 break 2
5152 fi
5153done
81ecdfbb
RW
5154 done
5155IFS=$as_save_IFS
c6b750e1 5156
9e07f89d
NN
5157fi
5158fi
512b7dfb
PB
5159GNATBIND=$ac_cv_prog_GNATBIND
5160if test -n "$GNATBIND"; then
81ecdfbb
RW
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5162$as_echo "$GNATBIND" >&6; }
9e07f89d 5163else
81ecdfbb
RW
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165$as_echo "no" >&6; }
9e07f89d
NN
5166fi
5167
81ecdfbb 5168
c6b750e1 5169fi
512b7dfb
PB
5170if test -z "$ac_cv_prog_GNATBIND"; then
5171 ac_ct_GNATBIND=$GNATBIND
5172 # Extract the first word of "gnatbind", so it can be a program name with args.
5173set dummy gnatbind; ac_word=$2
81ecdfbb
RW
5174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175$as_echo_n "checking for $ac_word... " >&6; }
5176if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5177 $as_echo_n "(cached) " >&6
9e07f89d 5178else
512b7dfb
PB
5179 if test -n "$ac_ct_GNATBIND"; then
5180 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 5181else
c6b750e1
DJ
5182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183for as_dir in $PATH
5184do
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5189 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 5190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5191 break 2
5192 fi
5193done
81ecdfbb
RW
5194 done
5195IFS=$as_save_IFS
c6b750e1 5196
9e07f89d
NN
5197fi
5198fi
512b7dfb
PB
5199ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5200if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5202$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 5203else
81ecdfbb
RW
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205$as_echo "no" >&6; }
9e07f89d
NN
5206fi
5207
81ecdfbb
RW
5208 if test "x$ac_ct_GNATBIND" = x; then
5209 GNATBIND="no"
5210 else
5211 case $cross_compiling:$ac_tool_warned in
5212yes:)
5213{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5214$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5215ac_tool_warned=yes ;;
5216esac
5217 GNATBIND=$ac_ct_GNATBIND
5218 fi
24ff9987 5219else
512b7dfb 5220 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
5221fi
5222
7df2cd5d 5223if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5224 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5225set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
5226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5227$as_echo_n "checking for $ac_word... " >&6; }
5228if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5229 $as_echo_n "(cached) " >&6
7df2cd5d 5230else
512b7dfb
PB
5231 if test -n "$GNATMAKE"; then
5232 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5233else
5234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235for as_dir in $PATH
5236do
5237 IFS=$as_save_IFS
5238 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5239 for ac_exec_ext in '' $ac_executable_extensions; do
5240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5241 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 5242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5243 break 2
5244 fi
5245done
81ecdfbb
RW
5246 done
5247IFS=$as_save_IFS
7df2cd5d
PB
5248
5249fi
5250fi
512b7dfb
PB
5251GNATMAKE=$ac_cv_prog_GNATMAKE
5252if test -n "$GNATMAKE"; then
81ecdfbb
RW
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5254$as_echo "$GNATMAKE" >&6; }
7df2cd5d 5255else
81ecdfbb
RW
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5257$as_echo "no" >&6; }
7df2cd5d
PB
5258fi
5259
81ecdfbb 5260
7df2cd5d 5261fi
512b7dfb
PB
5262if test -z "$ac_cv_prog_GNATMAKE"; then
5263 ac_ct_GNATMAKE=$GNATMAKE
5264 # Extract the first word of "gnatmake", so it can be a program name with args.
5265set dummy gnatmake; ac_word=$2
81ecdfbb
RW
5266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5267$as_echo_n "checking for $ac_word... " >&6; }
5268if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5269 $as_echo_n "(cached) " >&6
7df2cd5d 5270else
512b7dfb
PB
5271 if test -n "$ac_ct_GNATMAKE"; then
5272 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5273else
5274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275for as_dir in $PATH
5276do
5277 IFS=$as_save_IFS
5278 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5279 for ac_exec_ext in '' $ac_executable_extensions; do
5280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5281 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 5282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5283 break 2
5284 fi
5285done
81ecdfbb
RW
5286 done
5287IFS=$as_save_IFS
7df2cd5d 5288
7df2cd5d
PB
5289fi
5290fi
512b7dfb
PB
5291ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5292if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5294$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 5295else
81ecdfbb
RW
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297$as_echo "no" >&6; }
7df2cd5d
PB
5298fi
5299
81ecdfbb
RW
5300 if test "x$ac_ct_GNATMAKE" = x; then
5301 GNATMAKE="no"
5302 else
5303 case $cross_compiling:$ac_tool_warned in
5304yes:)
5305{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5306$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5307ac_tool_warned=yes ;;
5308esac
5309 GNATMAKE=$ac_ct_GNATMAKE
5310 fi
7df2cd5d 5311else
512b7dfb 5312 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
5313fi
5314
81ecdfbb
RW
5315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5316$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5317if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5318 $as_echo_n "(cached) " >&6
9e07f89d
NN
5319else
5320 cat >conftest.adb <<EOF
5321procedure conftest is begin null; end conftest;
5322EOF
5323acx_cv_cc_gcc_supports_ada=no
5324# There is a bug in old released versions of GCC which causes the
5325# driver to exit successfully when the appropriate language module
5326# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5327# Therefore we must check for the error message as well as an
5328# unsuccessful exit.
b8908782
DD
5329# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5330# given a .adb file, but produce no object file. So we must check
5331# if an object file was really produced to guard against this.
9e07f89d 5332errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 5333if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 5334 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
5335fi
5336rm -f conftest.*
5337fi
81ecdfbb
RW
5338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5339$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 5340
64b986c0 5341if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
5342 have_gnat=yes
5343else
5344 have_gnat=no
5345fi
5346
81ecdfbb
RW
5347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5348$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5349if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5350 $as_echo_n "(cached) " >&6
b8908782
DD
5351else
5352 echo abfoo >t1
5353 echo cdfoo >t2
5354 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5355 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5356 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5357 :
5358 else
5359 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5360 fi
5361 fi
b8908782
DD
5362 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5363 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5364 :
b8908782
DD
5365 else
5366 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5367 fi
5368 fi
5369 rm t1 t2
5370
5371fi
81ecdfbb
RW
5372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5373$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5374do_compare="$gcc_cv_prog_cmp_skip"
5375
5376
9e07f89d 5377
ffdd6afc
ILT
5378# Check whether --enable-bootstrap was given.
5379if test "${enable_bootstrap+set}" = set; then :
5380 enableval=$enable_bootstrap;
5381else
5382 enable_bootstrap=default
5383fi
5384
5385
5386# Issue errors and warnings for invalid/strange bootstrap combinations.
5387if test -r $srcdir/gcc/configure; then
5388 have_compiler=yes
5389else
5390 have_compiler=no
5391fi
5392
5393case "$have_compiler:$host:$target:$enable_bootstrap" in
5394 *:*:*:no) ;;
5395
5396 # Default behavior. Enable bootstrap if we have a compiler
5397 # and we are in a native configuration.
5398 yes:$build:$build:default)
5399 enable_bootstrap=yes ;;
5400
5401 *:*:*:default)
5402 enable_bootstrap=no ;;
5403
5404 # We have a compiler and we are in a native configuration, bootstrap is ok
5405 yes:$build:$build:yes)
5406 ;;
5407
5408 # Other configurations, but we have a compiler. Assume the user knows
5409 # what he's doing.
5410 yes:*:*:yes)
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5412$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5413 ;;
5414
5415 # No compiler: if they passed --enable-bootstrap explicitly, fail
5416 no:*:*:yes)
5417 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5418
5419 # Fail if wrong command line
5420 *)
5421 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5422 ;;
5423esac
5424
ce6c656d
L
5425# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5426# C++98 compiler can still start the bootstrap.
5427if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5428 CXX="$CXX -std=gnu++98"
5429fi
5430
d5f2ee2e
KG
5431# Used for setting $lt_cv_objdir
5432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5433$as_echo_n "checking for objdir... " >&6; }
5434if test "${lt_cv_objdir+set}" = set; then :
5435 $as_echo_n "(cached) " >&6
5436else
5437 rm -f .libs 2>/dev/null
5438mkdir .libs 2>/dev/null
5439if test -d .libs; then
5440 lt_cv_objdir=.libs
5441else
5442 # MS-DOS does not allow filenames that begin with a dot.
5443 lt_cv_objdir=_libs
5444fi
5445rmdir .libs 2>/dev/null
5446fi
5447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5448$as_echo "$lt_cv_objdir" >&6; }
5449objdir=$lt_cv_objdir
5450
5451
5452
5453
5454
5455cat >>confdefs.h <<_ACEOF
5456#define LT_OBJDIR "$lt_cv_objdir/"
5457_ACEOF
5458
5459
5460
e8a5fa9c 5461# Check for GMP, MPFR and MPC
d9b76ff9 5462gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 5463gmpinc=
4b900473 5464have_gmp=no
e8a5fa9c
RW
5465
5466# Specify a location for mpc
5467# check for this first so it ends up on the link line before mpfr.
5468
81ecdfbb
RW
5469# Check whether --with-mpc was given.
5470if test "${with_mpc+set}" = set; then :
5471 withval=$with_mpc;
5472fi
e8a5fa9c 5473
e8a5fa9c 5474
e552509b 5475# Check whether --with-mpc-include was given.
81ecdfbb
RW
5476if test "${with_mpc_include+set}" = set; then :
5477 withval=$with_mpc_include;
5478fi
e8a5fa9c 5479
e8a5fa9c 5480
e552509b 5481# Check whether --with-mpc-lib was given.
81ecdfbb
RW
5482if test "${with_mpc_lib+set}" = set; then :
5483 withval=$with_mpc_lib;
5484fi
e8a5fa9c 5485
e8a5fa9c
RW
5486
5487if test "x$with_mpc" != x; then
d9b76ff9
KG
5488 gmplibs="-L$with_mpc/lib $gmplibs"
5489 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5490fi
5491if test "x$with_mpc_include" != x; then
d9b76ff9 5492 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5493fi
5494if test "x$with_mpc_lib" != x; then
d9b76ff9 5495 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5496fi
5497if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5498 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5499 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5500 # Do not test the mpc version. Assume that it is sufficient, since
5501 # it is in the source tree, and the library has not been built yet
5502 # but it would be included on the link line in the version check below
5503 # hence making the test fail.
d9b76ff9 5504 have_gmp=yes
e8a5fa9c 5505fi
4b900473 5506
11b04d1f
DD
5507# Specify a location for mpfr
5508# check for this first so it ends up on the link line before gmp.
c6b750e1 5509
81ecdfbb
RW
5510# Check whether --with-mpfr-dir was given.
5511if test "${with_mpfr_dir+set}" = set; then :
5512 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5513Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5514fi
5515
11b04d1f
DD
5516
5517
81ecdfbb
RW
5518# Check whether --with-mpfr was given.
5519if test "${with_mpfr+set}" = set; then :
5520 withval=$with_mpfr;
5521fi
c6b750e1 5522
11b04d1f 5523
e552509b 5524# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5525if test "${with_mpfr_include+set}" = set; then :
5526 withval=$with_mpfr_include;
5527fi
c6b750e1 5528
8a0d8a5c 5529
e552509b 5530# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5531if test "${with_mpfr_lib+set}" = set; then :
5532 withval=$with_mpfr_lib;
5533fi
8a0d8a5c 5534
11b04d1f
DD
5535
5536if test "x$with_mpfr" != x; then
5537 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5538 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5539fi
8a0d8a5c 5540if test "x$with_mpfr_include" != x; then
d9b76ff9 5541 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5542fi
5543if test "x$with_mpfr_lib" != x; then
5544 gmplibs="-L$with_mpfr_lib $gmplibs"
5545fi
4b900473 5546if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
58b1dd21
NC
5547 # MPFR v3.1.0 moved the sources into a src sub-directory.
5548 if test -d ${srcdir}/mpfr/src; then
5549 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5550 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5551 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5552 else
5553 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5554 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5555 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5556 fi
4b900473
PB
5557 # Do not test the mpfr version. Assume that it is sufficient, since
5558 # it is in the source tree, and the library has not been built yet
5559 # but it would be included on the link line in the version check below
5560 # hence making the test fail.
5561 have_gmp=yes
5562fi
11b04d1f 5563
4b1cb4fe 5564# Specify a location for gmp
c6b750e1 5565
81ecdfbb
RW
5566# Check whether --with-gmp-dir was given.
5567if test "${with_gmp_dir+set}" = set; then :
5568 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5569Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5570fi
5571
4b1cb4fe
DD
5572
5573
81ecdfbb
RW
5574# Check whether --with-gmp was given.
5575if test "${with_gmp+set}" = set; then :
5576 withval=$with_gmp;
5577fi
c6b750e1 5578
4b1cb4fe 5579
e552509b 5580# Check whether --with-gmp-include was given.
81ecdfbb
RW
5581if test "${with_gmp_include+set}" = set; then :
5582 withval=$with_gmp_include;
5583fi
c6b750e1 5584
8a0d8a5c 5585
e552509b 5586# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5587if test "${with_gmp_lib+set}" = set; then :
5588 withval=$with_gmp_lib;
5589fi
8a0d8a5c
PB
5590
5591
4b1cb4fe 5592
11b04d1f
DD
5593if test "x$with_gmp" != x; then
5594 gmplibs="-L$with_gmp/lib $gmplibs"
5595 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5596fi
8a0d8a5c
PB
5597if test "x$with_gmp_include" != x; then
5598 gmpinc="-I$with_gmp_include $gmpinc"
5599fi
5600if test "x$with_gmp_lib" != x; then
5601 gmplibs="-L$with_gmp_lib $gmplibs"
5602fi
4b900473 5603if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5604 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5605 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5606 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5607 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7ec59b9e 5608 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
4b900473
PB
5609 # Do not test the gmp version. Assume that it is sufficient, since
5610 # it is in the source tree, and the library has not been built yet
5611 # but it would be included on the link line in the version check below
5612 # hence making the test fail.
5613 have_gmp=yes
5614fi
4b1cb4fe 5615
ceb92e78 5616if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5617 have_gmp=yes
5618 saved_CFLAGS="$CFLAGS"
5619 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5620 # Check for the recommended and required versions of GMP.
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5622$as_echo_n "checking for the correct version of gmp.h... " >&6; }
a009f2e7
RW
5623
5624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5625/* end confdefs.h. */
5626#include "gmp.h"
5627int
5628main ()
5629{
5630
5631 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5632 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8e71395b 5633 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
a6b5846e
KG
5634 choke me
5635 #endif
5636
5637 ;
5638 return 0;
5639}
5640_ACEOF
5641if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5643/* end confdefs.h. */
a6b5846e 5644#include <gmp.h>
c6b750e1
DJ
5645int
5646main ()
5647{
4b1cb4fe 5648
a6b5846e
KG
5649 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5650 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5651 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5652 choke me
5653 #endif
c6b750e1
DJ
5654
5655 ;
5656 return 0;
5657}
5658_ACEOF
81ecdfbb
RW
5659if ac_fn_c_try_compile "$LINENO"; then :
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5661$as_echo "yes" >&6; }
a6b5846e
KG
5662else
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5664$as_echo "buggy but acceptable" >&6; }
5665fi
5666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5667else
81ecdfbb
RW
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5670fi
81ecdfbb 5671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5672
e8a5fa9c 5673 # If we have GMP, check the MPFR version.
4b900473 5674 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5675 # Check for the recommended and required versions of MPFR.
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5677$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5679/* end confdefs.h. */
9b134994 5680#include <gmp.h>
4b900473 5681 #include <mpfr.h>
c6b750e1
DJ
5682int
5683main ()
5684{
9b134994 5685
7ec59b9e 5686 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
4b900473
PB
5687 choke me
5688 #endif
c6b750e1
DJ
5689
5690 ;
5691 return 0;
5692}
5693_ACEOF
81ecdfbb
RW
5694if ac_fn_c_try_compile "$LINENO"; then :
5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5696/* end confdefs.h. */
4b1cb4fe 5697#include <gmp.h>
4b900473 5698 #include <mpfr.h>
c6b750e1
DJ
5699int
5700main ()
5701{
9dbaa842 5702
a6b5846e 5703 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5704 choke me
5705 #endif
e8a5fa9c
RW
5706
5707 ;
5708 return 0;
5709}
5710_ACEOF
81ecdfbb
RW
5711if ac_fn_c_try_compile "$LINENO"; then :
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5713$as_echo "yes" >&6; }
e8a5fa9c 5714else
81ecdfbb
RW
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5716$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5717fi
81ecdfbb 5718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5719else
81ecdfbb
RW
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5721$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5722fi
81ecdfbb 5723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5724 fi
5725
5726 # Check for the MPC header version.
d9b76ff9 5727 if test x"$have_gmp" = xyes ; then
a6b5846e 5728 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5730$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5732/* end confdefs.h. */
5733#include <mpc.h>
5734int
5735main ()
5736{
5737
a6b5846e
KG
5738 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5739 choke me
5740 #endif
5741
5742 ;
5743 return 0;
5744}
5745_ACEOF
5746if ac_fn_c_try_compile "$LINENO"; then :
5747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5748/* end confdefs.h. */
5749#include <mpc.h>
5750int
5751main ()
5752{
5753
5754 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
5755 choke me
5756 #endif
5757
5758 ;
5759 return 0;
5760}
5761_ACEOF
81ecdfbb
RW
5762if ac_fn_c_try_compile "$LINENO"; then :
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 5764$as_echo "yes" >&6; }
a6b5846e
KG
5765else
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5767$as_echo "buggy but acceptable" >&6; }
5768fi
5769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5770else
81ecdfbb 5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 5772$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5773fi
81ecdfbb 5774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5775 fi
5776
5777 # Now check the MPFR library.
5778 if test x"$have_gmp" = xyes; then
5779 saved_LIBS="$LIBS"
5780 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5782$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 5783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 5784/* end confdefs.h. */
d9b76ff9 5785#include <mpc.h>
e8a5fa9c
RW
5786int
5787main ()
5788{
5789
5790 mpfr_t n;
5791 mpfr_t x;
d9b76ff9 5792 mpc_t c;
e8a5fa9c
RW
5793 int t;
5794 mpfr_init (n);
5795 mpfr_init (x);
5796 mpfr_atan2 (n, n, x, GMP_RNDN);
5797 mpfr_erfc (n, x, GMP_RNDN);
5798 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
5799 mpfr_clear(n);
5800 mpfr_clear(x);
5801 mpc_init2 (c, 53);
5802 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5803 mpc_cosh (c, c, MPC_RNDNN);
5804 mpc_pow (c, c, c, MPC_RNDNN);
5805 mpc_acosh (c, c, MPC_RNDNN);
5806 mpc_clear (c);
c6b750e1
DJ
5807
5808 ;
5809 return 0;
5810}
5811_ACEOF
81ecdfbb
RW
5812if ac_fn_c_try_link "$LINENO"; then :
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5814$as_echo "yes" >&6; }
c6b750e1 5815else
81ecdfbb
RW
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5817$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5818fi
81ecdfbb
RW
5819rm -f core conftest.err conftest.$ac_objext \
5820 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5821 LIBS="$saved_LIBS"
5822 fi
5823
4b900473 5824 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5825
a6b5846e
KG
5826# The library versions listed in the error message below should match
5827# the HARD-minimums enforced above.
4b900473 5828 if test x$have_gmp != xyes; then
7ec59b9e 5829 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
d9b76ff9
KG
5830Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5831their locations. Source code for these libraries can be found at
5832their respective hosting sites as well as at
5833ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5834http://gcc.gnu.org/install/prerequisites.html for additional info. If
5835you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5836make sure that you have installed both the libraries and the header
5837files. They may be located in separate packages." "$LINENO" 5
4b900473 5838 fi
9dbaa842
DD
5839fi
5840
e8a5fa9c
RW
5841# Flags needed for both GMP, MPFR and/or MPC.
5842
5843
5844
4b1cb4fe
DD
5845
5846
5847
7ec59b9e 5848
29383458
JM
5849# Allow host libstdc++ to be specified for static linking with PPL.
5850
81ecdfbb
RW
5851# Check whether --with-host-libstdcxx was given.
5852if test "${with_host_libstdcxx+set}" = set; then :
5853 withval=$with_host_libstdcxx;
5854fi
29383458 5855
29383458
JM
5856
5857case $with_host_libstdcxx in
5858 no|yes)
81ecdfbb 5859 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
29383458
JM
5860 ;;
5861esac
e28c595f 5862
b3676d82 5863# Libraries to use for stage1 or when not bootstrapping.
e8a5fa9c 5864
b3676d82
EB
5865# Check whether --with-stage1-libs was given.
5866if test "${with_stage1_libs+set}" = set; then :
5867 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5868 stage1_libs=
e8a5fa9c 5869 else
b3676d82 5870 stage1_libs=$withval
e8a5fa9c
RW
5871 fi
5872else
b3676d82 5873 stage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5874fi
5875
e8a5fa9c
RW
5876
5877
b3676d82 5878# Linker flags to use for stage1 or when not bootstrapping.
e8a5fa9c 5879
b3676d82
EB
5880# Check whether --with-stage1-ldflags was given.
5881if test "${with_stage1_ldflags+set}" = set; then :
5882 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5883 stage1_ldflags=
e8a5fa9c 5884 else
b3676d82 5885 stage1_ldflags=$withval
e8a5fa9c
RW
5886 fi
5887else
b3676d82
EB
5888 stage1_ldflags=
5889 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5890 # if supported. But if the user explicitly specified the libraries to use,
5891 # trust that they are doing what they want.
5892 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5893 stage1_ldflags="-static-libstdc++ -static-libgcc"
5894 fi
81ecdfbb
RW
5895fi
5896
e8a5fa9c
RW
5897
5898
e8a5fa9c
RW
5899# Libraries to use for stage2 and later builds. This defaults to the
5900# argument passed to --with-host-libstdcxx.
5901
81ecdfbb
RW
5902# Check whether --with-boot-libs was given.
5903if test "${with_boot_libs+set}" = set; then :
5904 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5905 poststage1_libs=
5906 else
5907 poststage1_libs=$withval
5908 fi
5909else
5910 poststage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5911fi
5912
e8a5fa9c
RW
5913
5914
143754cd
NC
5915# Linker flags to use for stage2 and later builds.
5916
5917# Check whether --with-boot-ldflags was given.
5918if test "${with_boot_ldflags+set}" = set; then :
5919 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5920 poststage1_ldflags=
5921 else
5922 poststage1_ldflags=$withval
5923 fi
5924else
5925 poststage1_ldflags=
4f11b223
ILT
5926 # In stages 2 and 3, default to linking libstdc++ and libgcc
5927 # statically. But if the user explicitly specified the libraries to
5928 # use, trust that they are doing what they want.
5929 if test "$poststage1_libs" = ""; then
143754cd
NC
5930 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5931 fi
5932fi
5933
5934
5935
1b6c0831
L
5936# GCC GRAPHITE dependency ISL.
5937# Basic setup is inlined here, actual checks are in config/isl.m4
e28c595f
JM
5938
5939
7ec59b9e
L
5940# Check whether --with-isl was given.
5941if test "${with_isl+set}" = set; then :
5942 withval=$with_isl;
81ecdfbb 5943fi
e28c595f 5944
e28c595f 5945
1b6c0831 5946# Treat --without-isl as a request to disable
8e71395b 5947# GRAPHITE support and skip all following checks.
1b6c0831 5948if test "x$with_isl" != "xno"; then
8e71395b
L
5949 # Check for ISL
5950
5951
7ec59b9e
L
5952# Check whether --with-isl-include was given.
5953if test "${with_isl_include+set}" = set; then :
5954 withval=$with_isl_include;
81ecdfbb
RW
5955fi
5956
e28c595f 5957
7ec59b9e
L
5958# Check whether --with-isl-lib was given.
5959if test "${with_isl_lib+set}" = set; then :
5960 withval=$with_isl_lib;
81ecdfbb 5961fi
e28c595f 5962
e28c595f 5963
7ec59b9e
L
5964 # Check whether --enable-isl-version-check was given.
5965if test "${enable_isl_version_check+set}" = set; then :
5966 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5967else
5968 ENABLE_ISL_CHECK=yes
b123da99
SP
5969fi
5970
5971
7ec59b9e
L
5972 # Initialize isllibs and islinc.
5973 case $with_isl in
5974 no)
5975 isllibs=
5976 islinc=
5977 ;;
5978 "" | yes)
5979 ;;
5980 *)
5981 isllibs="-L$with_isl/lib"
5982 islinc="-I$with_isl/include"
5983 ;;
5984 esac
5985 if test "x${with_isl_include}" != x ; then
5986 islinc="-I$with_isl_include"
5987 fi
5988 if test "x${with_isl_lib}" != x; then
5989 isllibs="-L$with_isl_lib"
5990 fi
5991 if test "x${islinc}" = x && test "x${isllibs}" = x \
5992 && test -d ${srcdir}/isl; then
5993 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5994 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5995 ENABLE_ISL_CHECK=no
3dae1673
JBG
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5997$as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
7ec59b9e 5998 fi
b123da99 5999
1b6c0831 6000 isllibs="${isllibs} -lisl"
b123da99 6001
e28c595f 6002
b3fc79f8
JBG
6003
6004 if test "${ENABLE_ISL_CHECK}" = yes ; then
6005 _isl_saved_CFLAGS=$CFLAGS
6006 _isl_saved_LDFLAGS=$LDFLAGS
6007 _isl_saved_LIBS=$LIBS
6008
6009 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6010 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
6011 LIBS="${_isl_saved_LIBS} -lisl"
6012
1b6c0831
L
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible ISL" >&5
6014$as_echo_n "checking for compatible ISL... " >&6; }
6015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3fc79f8 6016/* end confdefs.h. */
1b6c0831 6017#include <isl/val.h>
b3fc79f8
JBG
6018int
6019main ()
6020{
1b6c0831 6021;
b3fc79f8
JBG
6022 ;
6023 return 0;
6024}
6025_ACEOF
1b6c0831 6026if ac_fn_c_try_link "$LINENO"; then :
b3fc79f8
JBG
6027 gcc_cv_isl=yes
6028else
6029 gcc_cv_isl=no
6030fi
1b6c0831
L
6031rm -f core conftest.err conftest.$ac_objext \
6032 conftest$ac_exeext conftest.$ac_ext
b3fc79f8
JBG
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6034$as_echo "$gcc_cv_isl" >&6; }
6035
6036 CFLAGS=$_isl_saved_CFLAGS
6037 LDFLAGS=$_isl_saved_LDFLAGS
6038 LIBS=$_isl_saved_LIBS
6039 fi
6040
6041
e28c595f 6042
e28c595f 6043
7ec59b9e
L
6044
6045
7ec59b9e
L
6046 if test "x${with_isl}" = xno; then
6047 graphite_requested=no
6048 elif test "x${with_isl}" != x \
6049 || test "x${with_isl_include}" != x \
6050 || test "x${with_isl_lib}" != x ; then
6051 graphite_requested=yes
6052 else
6053 graphite_requested=no
b123da99 6054 fi
e28c595f 6055
e28c595f
JM
6056
6057
7ec59b9e
L
6058 if test "${gcc_cv_isl}" = no ; then
6059 isllibs=
6060 islinc=
6061 fi
e28c595f 6062
7ec59b9e
L
6063 if test "${graphite_requested}" = yes \
6064 && test "x${isllibs}" = x \
6065 && test "x${islinc}" = x ; then
e28c595f 6066
7ec59b9e
L
6067 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
6068 fi
e552509b 6069
e28c595f 6070
e552509b
ILT
6071fi
6072
1b6c0831 6073# If the ISL check failed, disable builds of in-tree variant of ISL
8e71395b 6074if test "x$with_isl" = xno ||
8e71395b 6075 test "x$gcc_cv_isl" = xno; then
1b6c0831 6076 noconfigdirs="$noconfigdirs isl"
8e71395b 6077 islinc=
7ec59b9e
L
6078fi
6079
8e71395b
L
6080
6081
6082
700d40ca
ILT
6083# Check for LTO support.
6084# Check whether --enable-lto was given.
6085if test "${enable_lto+set}" = set; then :
6086 enableval=$enable_lto; enable_lto=$enableval
6087else
6088 enable_lto=yes; default_enable_lto=yes
6089fi
6090
6091
143754cd 6092
e49e5c92
DK
6093
6094
6095target_elf=no
6096case $target in
6097 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
090bc50f 6098 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
1b6c0831
L
6099 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6100 nvptx-*-none)
e49e5c92
DK
6101 target_elf=no
6102 ;;
6103 *)
6104 target_elf=yes
6105 ;;
6106esac
6107
6108if test $target_elf = yes; then :
74cea91b
DK
6109 # ELF platforms build the lto-plugin always.
6110 build_lto_plugin=yes
e49e5c92 6111
e49e5c92
DK
6112else
6113 if test x"$default_enable_lto" = x"yes" ; then
29821356 6114 case $target in
899b04ef 6115 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
74cea91b 6116 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
6117 *) enable_lto=no ;;
6118 esac
e49e5c92 6119 else
29821356
RW
6120 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6121 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
6122 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6123 # warn during gcc/ subconfigure; unless you're bootstrapping with
6124 # -flto it won't be needed until after installation anyway.
6125 case $target in
a8eb3f0a 6126 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
e49e5c92
DK
6127 *) if test x"$enable_lto" = x"yes"; then
6128 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6129 fi
6130 ;;
6131 esac
6132 fi
a8eb3f0a 6133 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 6134 # Build it unless LTO was explicitly disabled.
a8eb3f0a 6135 case $target in
74cea91b 6136 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
6137 *) ;;
6138 esac
74cea91b 6139
e49e5c92
DK
6140fi
6141
700d40ca 6142
1b6c0831
L
6143# Check whether --enable-linker-plugin-configure-flags was given.
6144if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6145 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6146else
6147 extra_linker_plugin_configure_flags=
6148fi
6149
6150
6151# Check whether --enable-linker-plugin-flags was given.
6152if test "${enable_linker_plugin_flags+set}" = set; then :
6153 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6154else
6155 extra_linker_plugin_flags=
6156fi
6157
6158
6159
e28c595f 6160
7ec59b9e 6161# By default, C and C++ are the only stage 1 languages.
9b134994 6162stage1_languages=,c,
1d39f329 6163
e8a5fa9c 6164# Target libraries that we bootstrap.
2aa2364a 6165bootstrap_target_libs=,target-libgcc,
e8a5fa9c 6166
9e07f89d
NN
6167# Figure out what language subdirectories are present.
6168# Look if the user specified --enable-languages="..."; if not, use
6169# the environment variable $LANGUAGES if defined. $LANGUAGES might
6170# go away some day.
6171# NB: embedded tabs in this IF block -- do not untabify
6172if test -d ${srcdir}/gcc; then
6173 if test x"${enable_languages+set}" != xset; then
6174 if test x"${LANGUAGES+set}" = xset; then
6175 enable_languages="${LANGUAGES}"
6176 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6177 else
6178 enable_languages=all
6179 fi
6180 else
6181 if test x"${enable_languages}" = x ||
6182 test x"${enable_languages}" = xyes;
6183 then
6184 echo configure.in: --enable-languages needs at least one language argument 1>&2
6185 exit 1
6186 fi
6187 fi
6188 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6189
096f7d00
DE
6190 # 'f95' is the old name for the 'fortran' language. We issue a warning
6191 # and make the substitution.
6192 case ,${enable_languages}, in
6193 *,f95,*)
6194 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6195 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6196 ;;
6197 esac
6198
7ec59b9e
L
6199 # If bootstrapping, C++ must be enabled.
6200 case ",$enable_languages,:$enable_bootstrap" in
6201 *,c++,*:*) ;;
6202 *:yes)
ffdd6afc
ILT
6203 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6204 enable_languages="${enable_languages},c++"
6205 else
7ec59b9e 6206 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
ffdd6afc
ILT
6207 fi
6208 ;;
6209 esac
6210
9e07f89d
NN
6211 # First scan to see if an enabled language requires some other language.
6212 # We assume that a given config-lang.in will list all the language
6213 # front ends it requires, even if some are required indirectly.
6214 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6215 case ${lang_frag} in
6216 ..) ;;
6217 # The odd quoting in the next line works around
6218 # an apparent bug in bash 1.12 on linux.
6219 ${srcdir}/gcc/[*]/config-lang.in) ;;
6220 *)
e552509b
ILT
6221 # From the config-lang.in, get $language, $lang_requires, and
6222 # $lang_requires_boot_languages.
9e07f89d
NN
6223 language=
6224 lang_requires=
e552509b 6225 lang_requires_boot_languages=
9e07f89d 6226 . ${lang_frag}
e552509b 6227 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6228 case ,${enable_languages}, in
6229 *,$other,*) ;;
6230 *,all,*) ;;
6231 *,$language,*)
6232 echo " \`$other' language required by \`$language'; enabling" 1>&2
6233 enable_languages="${enable_languages},${other}"
6234 ;;
6235 esac
6236 done
e552509b
ILT
6237 for other in ${lang_requires_boot_languages} ; do
6238 if test "$other" != "c"; then
6239 case ,${enable_stage1_languages}, in
6240 *,$other,*) ;;
6241 *,all,*) ;;
6242 *)
6243 case ,${enable_languages}, in
6244 *,$language,*)
6245 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6246 enable_stage1_languages="$enable_stage1_languages,${other}"
6247 ;;
6248 esac
6249 ;;
6250 esac
6251 fi
6252 done
9e07f89d
NN
6253 ;;
6254 esac
6255 done
6256
9b134994 6257 new_enable_languages=,c,
700d40ca
ILT
6258
6259 # If LTO is enabled, add the LTO front end.
700d40ca 6260 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6261 case ,${enable_languages}, in
6262 *,lto,*) ;;
6263 *) enable_languages="${enable_languages},lto" ;;
6264 esac
a8eb3f0a 6265 if test "${build_lto_plugin}" = "yes" ; then
700d40ca 6266 configdirs="$configdirs lto-plugin"
700d40ca
ILT
6267 fi
6268 fi
6269
1b6c0831
L
6270 # If we're building an offloading compiler, add the LTO front end.
6271 if test x"$enable_as_accelerator_for" != x ; then
6272 case ,${enable_languages}, in
6273 *,lto,*) ;;
6274 *) enable_languages="${enable_languages},lto" ;;
6275 esac
6276 fi
700d40ca 6277
9e07f89d 6278 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6279 potential_languages=,c,
9e07f89d 6280
9e1a94f4
ILT
6281 enabled_target_libs=
6282 disabled_target_libs=
6283
9e07f89d
NN
6284 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6285 case ${lang_frag} in
6286 ..) ;;
6287 # The odd quoting in the next line works around
6288 # an apparent bug in bash 1.12 on linux.
6289 ${srcdir}/gcc/[*]/config-lang.in) ;;
6290 *)
c6b750e1 6291 # From the config-lang.in, get $language, $target_libs,
1d39f329 6292 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6293 language=
6294 target_libs=
6295 lang_dirs=
64ce424c 6296 subdir_requires=
9b134994
PB
6297 boot_language=no
6298 build_by_default=yes
9e07f89d 6299 . ${lang_frag}
9b134994
PB
6300 if test x${language} = x; then
6301 echo "${lang_frag} doesn't set \$language." 1>&2
6302 exit 1
6303 fi
6304
ffdd6afc 6305 if test "$language" = "c++"; then
7ec59b9e 6306 boot_language=yes
e8a5fa9c
RW
6307 fi
6308
8e71395b 6309 add_this_lang=no
9b134994
PB
6310 case ,${enable_languages}, in
6311 *,${language},*)
7ec59b9e
L
6312 # Language was explicitly selected; include it
6313 # unless it is C, which is enabled by default.
6314 if test "$language" != "c"; then
6315 add_this_lang=yes
6316 fi
9e07f89d 6317 ;;
9b134994
PB
6318 *,all,*)
6319 # 'all' was selected, select it if it is a default language
8e71395b
L
6320 if test "$language" != "c"; then
6321 add_this_lang=${build_by_default}
6322 fi
9e07f89d
NN
6323 ;;
6324 esac
4b1cb4fe 6325
64ce424c 6326 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6327 for i in $subdir_requires; do
3d3adb43 6328 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
6329 case ,${enable_languages}, in
6330 *,${language},*)
6331 # Specifically requested language; tell them.
81ecdfbb 6332 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c
PB
6333 ;;
6334 *)
6335 # Silently disable.
9b134994 6336 add_this_lang=unsupported
64ce424c
PB
6337 ;;
6338 esac
6339 done
6340
9b134994
PB
6341 # Disable Ada if no preexisting GNAT is available.
6342 case ,${enable_languages},:${language}:${have_gnat} in
6343 *,${language},*:ada:no)
6344 # Specifically requested language; tell them.
81ecdfbb 6345 as_fn_error "GNAT is required to build $language" "$LINENO" 5
9b134994
PB
6346 ;;
6347 *:ada:no)
6348 # Silently disable.
6349 add_this_lang=unsupported
6350 ;;
6351 esac
6352
59f7ec45
HPN
6353 # Disable a language that is unsupported by the target.
6354 case " $unsupported_languages " in
6355 *" $language "*)
9b134994 6356 add_this_lang=unsupported
59f7ec45
HPN
6357 ;;
6358 esac
6359
4b1cb4fe 6360 case $add_this_lang in
9b134994 6361 unsupported)
9e07f89d 6362 # Remove language-dependent dirs.
9e1a94f4
ILT
6363 disabled_target_libs="$disabled_target_libs $target_libs"
6364 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 6365 ;;
9b134994
PB
6366 no)
6367 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
6368 disabled_target_libs="$disabled_target_libs $target_libs"
6369 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
6370 potential_languages="${potential_languages}${language},"
6371 ;;
6372 yes)
6373 new_enable_languages="${new_enable_languages}${language},"
6374 potential_languages="${potential_languages}${language},"
1d39f329 6375 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 6376 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
6377 case "${boot_language}:,$enable_stage1_languages," in
6378 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6379 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6380 case ",$stage1_languages," in
6381 *,$language,* | ,yes, | ,all,) ;;
6382 *) stage1_languages="${stage1_languages}${language}," ;;
6383 esac
e8a5fa9c
RW
6384 # We need to bootstrap any supporting libraries.
6385 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6386 ;;
6387 esac
6388 ;;
9e07f89d
NN
6389 esac
6390 ;;
6391 esac
6392 done
6393
9e1a94f4
ILT
6394 # Add target libraries which are only needed for disabled languages
6395 # to noconfigdirs.
6396 if test -n "$disabled_target_libs"; then
6397 for dir in $disabled_target_libs; do
6398 case " $enabled_target_libs " in
6399 *" ${dir} "*) ;;
6400 *) noconfigdirs="$noconfigdirs $dir" ;;
6401 esac
6402 done
6403 fi
6404
81ecdfbb
RW
6405 # Check whether --enable-stage1-languages was given.
6406if test "${enable_stage1_languages+set}" = set; then :
6407 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6408 ,no,|,,)
6409 # Set it to something that will have no effect in the loop below
6410 enable_stage1_languages=c ;;
6411 ,yes,)
6412 enable_stage1_languages=`echo $new_enable_languages | \
6413 sed -e "s/^,//" -e "s/,$//" ` ;;
6414 *,all,*)
6415 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6416 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6417 esac
6418
6419 # Add "good" languages from enable_stage1_languages to stage1_languages,
6420 # while "bad" languages go in missing_languages. Leave no duplicates.
6421 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6422 case $potential_languages in
6423 *,$i,*)
6424 case $stage1_languages in
6425 *,$i,*) ;;
6426 *) stage1_languages="$stage1_languages$i," ;;
6427 esac ;;
6428 *)
6429 case $missing_languages in
6430 *,$i,*) ;;
6431 *) missing_languages="$missing_languages$i," ;;
6432 esac ;;
6433 esac
6434 done
81ecdfbb
RW
6435fi
6436
9b134994
PB
6437
6438 # Remove leading/trailing commas that were added for simplicity
6439 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6440 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6441 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6442 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6443
9e07f89d 6444 if test "x$missing_languages" != x; then
81ecdfbb 6445 as_fn_error "
27258dd4 6446The following requested languages could not be built: ${missing_languages}
81ecdfbb 6447Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6448 fi
9e07f89d
NN
6449 if test "x$new_enable_languages" != "x$enable_languages"; then
6450 echo The following languages will be built: ${new_enable_languages}
9b134994 6451 enable_languages="$new_enable_languages"
9e07f89d 6452 fi
9b134994 6453
c6b750e1 6454
81ec575a 6455 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6456fi
6457
a6df5a19
PB
6458# Handle --disable-<component> generically.
6459for dir in $configdirs $build_configdirs $target_configdirs ; do
6460 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6461 varname=`echo $dirname | sed -e s/+/_/g`
6462 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6463 noconfigdirs="$noconfigdirs $dir"
6464 fi
6465done
6466
4f0ef2d8 6467# Check for Boehm's garbage collector
81ecdfbb
RW
6468# Check whether --enable-objc-gc was given.
6469if test "${enable_objc_gc+set}" = set; then :
6470 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4f0ef2d8 6471 *,objc,*:*:yes:*target-boehm-gc*)
81ecdfbb 6472 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
4f0ef2d8
CD
6473 ;;
6474esac
81ecdfbb
RW
6475fi
6476
4f0ef2d8
CD
6477
6478# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
6479case ,${enable_languages},:${enable_objc_gc} in
6480 *,objc,*:yes)
4f0ef2d8
CD
6481 # Keep target-boehm-gc if requested for Objective-C.
6482 ;;
4f0ef2d8 6483 *)
d42c4017
DA
6484 # Otherwise remove target-boehm-gc depending on target-libjava.
6485 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6486 noconfigdirs="$noconfigdirs target-boehm-gc"
6487 fi
4f0ef2d8
CD
6488 ;;
6489esac
6490
1b6c0831 6491# Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
7ec59b9e 6492case ,${enable_languages}, in
1b6c0831
L
6493 *,c++,*)
6494 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6495 case "${noconfigdirs}" in
6496 *target-libstdc++-v3*)
6497 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6498 ;;
6499 *) ;;
6500 esac
6501 ;;
7ec59b9e 6502 *)
1b6c0831 6503 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
7ec59b9e
L
6504 ;;
6505esac
6506
caeba88f
AL
6507# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6508# $build_configdirs and $target_configdirs.
9e07f89d
NN
6509# If we have the source for $noconfigdirs entries, add them to $notsupp.
6510
6511notsupp=""
6512for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6513 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6514 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6515 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6516 if test -r $srcdir/$dirname/configure ; then
6517 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6518 true
6519 else
6520 notsupp="$notsupp $dir"
6521 fi
6522 fi
6523 fi
caeba88f
AL
6524 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6525 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6526 if test -r $srcdir/$dirname/configure ; then
6527 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6528 true
6529 else
6530 notsupp="$notsupp $dir"
6531 fi
6532 fi
6533 fi
9e07f89d
NN
6534 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6535 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6536 if test -r $srcdir/$dirname/configure ; then
6537 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6538 true
6539 else
6540 notsupp="$notsupp $dir"
6541 fi
6542 fi
6543 fi
6544done
6545
9e07f89d
NN
6546# Quietly strip out all directories which aren't configurable in this tree.
6547# This relies on all configurable subdirectories being autoconfiscated, which
6548# is now the case.
6a9cf61e
PB
6549build_configdirs_all="$build_configdirs"
6550build_configdirs=
6551for i in ${build_configdirs_all} ; do
c6b750e1 6552 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6553 if test -f ${srcdir}/$j/configure ; then
6554 build_configdirs="${build_configdirs} $i"
6555 fi
6556done
6557
9e07f89d
NN
6558configdirs_all="$configdirs"
6559configdirs=
6560for i in ${configdirs_all} ; do
6561 if test -f ${srcdir}/$i/configure ; then
6562 configdirs="${configdirs} $i"
6563 fi
6564done
6a9cf61e 6565
9e07f89d
NN
6566target_configdirs_all="$target_configdirs"
6567target_configdirs=
6568for i in ${target_configdirs_all} ; do
c6b750e1 6569 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6570 if test -f ${srcdir}/$j/configure ; then
6571 target_configdirs="${target_configdirs} $i"
6572 fi
6573done
6574
091021fa
L
6575# Exclude target-zlib if target-libjava isn't built.
6576case ${target_configdirs} in
6577*target-libjava*)
6578 ;;
6579*)
6580 target_configdirs="`echo ${target_configdirs} | sed -e 's/target-zlib//'`"
6581 ;;
6582esac
6583
1b6c0831
L
6584# libiberty-linker-plugin is special: it doesn't have its own source directory,
6585# so we have to add it after the preceding checks.
6586if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6587then
6588 case " $configdirs " in
6589 *" libiberty "*)
6590 # If we can build libiberty, we can also build libiberty-linker-plugin.
6591 configdirs="$configdirs libiberty-linker-plugin"
6592 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6593 --with-libiberty=../libiberty-linker-plugin";;
6594 *)
6595 as_fn_error "libiberty missing" "$LINENO" 5;;
6596 esac
6597fi
6598
6599# Sometimes we have special requirements for the host libiberty.
6600extra_host_libiberty_configure_flags=
e81d5d05 6601extra_host_zlib_configure_flags=
1b6c0831
L
6602case " $configdirs " in
6603 *" lto-plugin "* | *" libcc1 "*)
6604 # When these are to be built as shared libraries, the same applies to
6605 # libiberty.
6606 extra_host_libiberty_configure_flags=--enable-shared
6607 ;;
e81d5d05
L
6608 *" bfd "*)
6609 # When bfd is to be built as a shared library, the same applies to
6610 # zlib.
6611 if test "$enable_shared" = "yes"; then
6612 extra_host_zlib_configure_flags=--enable-host-shared
6613 fi
6614 ;;
1b6c0831
L
6615esac
6616
6617
e81d5d05 6618
9e07f89d
NN
6619# Produce a warning message for the subdirs we can't configure.
6620# This isn't especially interesting in the Cygnus tree, but in the individual
6621# FSF releases, it's important to let people know when their machine isn't
6622# supported by the one or two programs in a package.
6623
6624if test -n "${notsupp}" && test -z "${norecursion}" ; then
6625 # If $appdirs is non-empty, at least one of those directories must still
6626 # be configured, or we error out. (E.g., if the gas release supports a
6627 # specified target in some subdirs but not the gas subdir, we shouldn't
6628 # pretend that all is well.)
6629 if test -n "$appdirs" ; then
6630 for dir in $appdirs ; do
6631 if test -r $dir/Makefile.in ; then
6632 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6633 appdirs=""
6634 break
6635 fi
6a9cf61e 6636 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6637 appdirs=""
6638 break
6639 fi
6640 fi
6641 done
6642 if test -n "$appdirs" ; then
6643 echo "*** This configuration is not supported by this package." 1>&2
6644 exit 1
6645 fi
6646 fi
6647 # Okay, some application will build, or we don't care to check. Still
6648 # notify of subdirs not getting built.
6649 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6650 echo " ${notsupp}" 1>&2
6651 echo " (Any other directories should still work fine.)" 1>&2
6652fi
6653
6654case "$host" in
6655 *msdosdjgpp*)
6656 enable_gdbtk=no ;;
6657esac
6658
18f6b6ee
PB
6659# To find our prefix, in gcc_cv_tool_prefix.
6660
6661# The user is always right.
6662if test "${PATH_SEPARATOR+set}" != set; then
6663 echo "#! /bin/sh" >conf$$.sh
6664 echo "exit 0" >>conf$$.sh
6665 chmod +x conf$$.sh
6666 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6667 PATH_SEPARATOR=';'
6668 else
6669 PATH_SEPARATOR=:
6670 fi
6671 rm -f conf$$.sh
6672fi
6673
6674
6675
6676if test "x$exec_prefix" = xNONE; then
6677 if test "x$prefix" = xNONE; then
6678 gcc_cv_tool_prefix=$ac_default_prefix
6679 else
6680 gcc_cv_tool_prefix=$prefix
6681 fi
6682else
6683 gcc_cv_tool_prefix=$exec_prefix
6684fi
6685
6686# If there is no compiler in the tree, use the PATH only. In any
6687# case, if there is no compiler in the tree nobody should use
6688# AS_FOR_TARGET and LD_FOR_TARGET.
6689if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6690 gcc_version=`cat $srcdir/gcc/BASE-VER`
6691 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6692 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6693 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6694 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6695 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6696 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6697else
6698 gcc_cv_tool_dirs=
6699fi
6700
6701if test x$build = x$target && test -n "$md_exec_prefix"; then
6702 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6703fi
6704
6705
6706
9e07f89d
NN
6707copy_dirs=
6708
c6b750e1 6709
81ecdfbb
RW
6710# Check whether --with-build-sysroot was given.
6711if test "${with_build_sysroot+set}" = set; then :
6712 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
6713 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6714 fi
6715else
6716 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 6717fi
a19b6204
MM
6718
6719
8a6ee3ab 6720
81ecdfbb
RW
6721
6722# Check whether --with-debug-prefix-map was given.
6723if test "${with_debug_prefix_map+set}" = set; then :
6724 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6725 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6726 for debug_map in $withval; do
6727 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6728 done
6729 fi
6730else
6731 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6732fi
6733
8a6ee3ab
JM
6734
6735
7f6ef0c0
PB
6736# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6737# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6738# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6739# We want to ensure that TARGET libraries (which we know are built with
6740# gcc) are built with "-O2 -g", so include those options when setting
6741# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6742if test "x$CFLAGS_FOR_TARGET" = x; then
1b6c0831
L
6743 if test "x${is_cross_compiler}" = xyes; then
6744 CFLAGS_FOR_TARGET="-g -O2"
6745 else
6746 CFLAGS_FOR_TARGET=$CFLAGS
6747 case " $CFLAGS " in
6748 *" -O2 "*) ;;
6749 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6750 esac
6751 case " $CFLAGS " in
6752 *" -g "* | *" -g3 "*) ;;
6753 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6754 esac
6755 fi
7f6ef0c0
PB
6756fi
6757
6758
6759if test "x$CXXFLAGS_FOR_TARGET" = x; then
1b6c0831
L
6760 if test "x${is_cross_compiler}" = xyes; then
6761 CXXFLAGS_FOR_TARGET="-g -O2"
6762 else
6763 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6764 case " $CXXFLAGS " in
6765 *" -O2 "*) ;;
6766 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6767 esac
6768 case " $CXXFLAGS " in
6769 *" -g "* | *" -g3 "*) ;;
6770 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6771 esac
6772 fi
7f6ef0c0
PB
6773fi
6774
6775
91c1f14c
DK
6776
6777
9e07f89d
NN
6778# Handle --with-headers=XXX. If the value is not "yes", the contents of
6779# the named directory are copied to $(tooldir)/sys-include.
6780if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6781 if test x${is_cross_compiler} = xno ; then
6782 echo 1>&2 '***' --with-headers is only supported when cross compiling
6783 exit 1
6784 fi
6785 if test x"${with_headers}" != xyes ; then
18f6b6ee 6786 x=${gcc_cv_tool_prefix}
c6b750e1 6787 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6788 fi
6789fi
6790
6791# Handle --with-libs=XXX. If the value is not "yes", the contents of
6792# the name directories are copied to $(tooldir)/lib. Multiple directories
6793# are permitted.
6794if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6795 if test x${is_cross_compiler} = xno ; then
6796 echo 1>&2 '***' --with-libs is only supported when cross compiling
6797 exit 1
6798 fi
6799 if test x"${with_libs}" != xyes ; then
6800 # Copy the libraries in reverse order, so that files in the first named
6801 # library override files in subsequent libraries.
18f6b6ee 6802 x=${gcc_cv_tool_prefix}
9e07f89d 6803 for l in ${with_libs}; do
c6b750e1 6804 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6805 done
6806 fi
6807fi
6808
700d40ca 6809# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
6810#
6811# This is done by determining whether or not the appropriate directory
6812# is available, and by checking whether or not specific configurations
6813# have requested that this magic not happen.
c6b750e1
DJ
6814#
6815# The command line options always override the explicit settings in
2429c060
PB
6816# configure.in, and the settings in configure.in override this magic.
6817#
c6b750e1 6818# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 6819# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
6820# --without-gnu-ld options for the configure script. Similarly, if
6821# the default is to use the included zlib and you don't want to do that,
6822# you should use the --with-system-zlib option for the configure script.
2429c060
PB
6823
6824if test x${use_gnu_as} = x &&
6825 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6826 with_gnu_as=yes
6827 extra_host_args="$extra_host_args --with-gnu-as"
6828fi
6829
6830if test x${use_gnu_ld} = x &&
93f9b408 6831 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
6832 with_gnu_ld=yes
6833 extra_host_args="$extra_host_args --with-gnu-ld"
6834fi
6835
700d40ca
ILT
6836if test x${use_included_zlib} = x &&
6837 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6838 :
6839else
6840 with_system_zlib=yes
6841 extra_host_args="$extra_host_args --with-system-zlib"
6842fi
6843
2429c060
PB
6844# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6845# can detect this case.
6846
6847if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6848 with_newlib=yes
6849 extra_host_args="$extra_host_args --with-newlib"
6850fi
6851
9e07f89d
NN
6852# Handle ${copy_dirs}
6853set fnord ${copy_dirs}
6854shift
6855while test $# != 0 ; do
6856 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6857 :
6858 else
6859 echo Copying $1 to $2
6860
6861 # Use the install script to create the directory and all required
6862 # parent directories.
6863 if test -d $2 ; then
6864 :
6865 else
6866 echo >config.temp
6867 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6868 fi
6869
6870 # Copy the directory, assuming we have tar.
6871 # FIXME: Should we use B in the second tar? Not all systems support it.
6872 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6873
6874 # It is the responsibility of the user to correctly adjust all
6875 # symlinks. If somebody can figure out how to handle them correctly
6876 # here, feel free to add the code.
6877
6878 echo $1 > $2/COPIED
6879 fi
6880 shift; shift
6881done
6882
2429c060
PB
6883# Determine a target-dependent exec_prefix that the installed
6884# gcc will search in. Keep this list sorted by triplet, with
6885# the *-*-osname triplets last.
6886md_exec_prefix=
6887case "${target}" in
521ec477 6888 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6889 md_exec_prefix=/dev/env/DJDIR/bin
6890 ;;
2429c060 6891 *-*-hpux* | \
2429c060 6892 *-*-nto-qnx* | \
1f111696 6893 *-*-solaris2*)
2429c060
PB
6894 md_exec_prefix=/usr/ccs/bin
6895 ;;
6896esac
6897
a0da8069
NN
6898extra_arflags_for_target=
6899extra_nmflags_for_target=
6900extra_ranlibflags_for_target=
6901target_makefile_frag=/dev/null
6902case "${target}" in
77d7106f
AM
6903 spu-*-*)
6904 target_makefile_frag="config/mt-spu"
6905 ;;
a9d58c06 6906 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
429acdec
RS
6907 target_makefile_frag="config/mt-sde"
6908 ;;
f3b1e08e
RS
6909 mipsisa*-*-elfoabi*)
6910 target_makefile_frag="config/mt-mips-elfoabi"
6911 ;;
e7c8859c
RS
6912 mips*-*-*linux* | mips*-*-gnu*)
6913 target_makefile_frag="config/mt-mips-gnu"
6914 ;;
d9e042ac
SL
6915 nios2-*-elf*)
6916 target_makefile_frag="config/mt-nios2-elf"
6917 ;;
29383458 6918 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 6919 target_makefile_frag="config/mt-gnu"
a0da8069
NN
6920 ;;
6921 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 6922 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
6923 # commands to handle both 32-bit and 64-bit objects. These flags are
6924 # harmless if we're using GNU nm or ar.
6925 extra_arflags_for_target=" -X32_64"
6926 extra_nmflags_for_target=" -B -X32_64"
6927 ;;
a0da8069
NN
6928esac
6929
6930alphaieee_frag=/dev/null
6931case $target in
6932 alpha*-*-*)
6933 # This just makes sure to use the -mieee option to build target libs.
6934 # This should probably be set individually by each library.
6935 alphaieee_frag="config/mt-alphaieee"
6936 ;;
6937esac
6938
6939# If --enable-target-optspace always use -Os instead of -O2 to build
6940# the target libraries, similarly if it is not specified, use -Os
6941# on selected platforms.
6942ospace_frag=/dev/null
6943case "${enable_target_optspace}:${target}" in
6944 yes:*)
6945 ospace_frag="config/mt-ospace"
6946 ;;
6947 :d30v-*)
6948 ospace_frag="config/mt-d30v"
6949 ;;
16beab3d 6950 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
a0da8069
NN
6951 ospace_frag="config/mt-ospace"
6952 ;;
6953 no:* | :*)
6954 ;;
6955 *)
6956 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6957 ;;
6958esac
6959
a0da8069
NN
6960# Some systems (e.g., one of the i386-aix systems the gas testers are
6961# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 6962tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
6963build_tooldir=${tooldir}
6964
a0da8069
NN
6965# Create a .gdbinit file which runs the one in srcdir
6966# and tells GDB to look there for source files.
6967
6968if test -r ${srcdir}/.gdbinit ; then
6969 case ${srcdir} in
6970 .) ;;
6971 *) cat > ./.gdbinit <<EOF
6972# ${NO_EDIT}
6973dir ${srcdir}
6974dir .
6975source ${srcdir}/.gdbinit
6976EOF
6977 ;;
6978 esac
6979fi
6980
a0da8069
NN
6981# Make sure that the compiler is able to generate an executable. If it
6982# can't, we are probably in trouble. We don't care whether we can run the
6983# executable--we might be using a cross compiler--we only care whether it
6984# can be created. At this point the main configure script has set CC.
6985we_are_ok=no
6986echo "int main () { return 0; }" > conftest.c
6987${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6988if test $? = 0 ; then
6989 if test -s conftest || test -s conftest.exe ; then
6990 we_are_ok=yes
6991 fi
c6b750e1 6992fi
a0da8069
NN
6993case $we_are_ok in
6994 no)
6995 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6996 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6997 rm -f conftest*
6998 exit 1
6999 ;;
7000esac
7001rm -f conftest*
7002
3bbd2f8f 7003# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
7004case "${host}" in
7005 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3516a403 7006 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 7007 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
7008 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7009esac
7010
3bbd2f8f 7011# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
7012# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7013# built executables to PATH.
3bbd2f8f
AL
7014if test "$RPATH_ENVVAR" = PATH; then
7015 GCC_SHLIB_SUBDIR=/shlib
7016else
7017 GCC_SHLIB_SUBDIR=
7018fi
7019
730af8ee 7020# Adjust the toplevel makefile according to whether bootstrap was selected.
7021case $enable_bootstrap in
7022 yes)
7023 bootstrap_suffix=bootstrap
7024 BUILD_CONFIG=bootstrap-debug
7025 ;;
7026 no)
7027 bootstrap_suffix=no-bootstrap
7028 BUILD_CONFIG=
7029 ;;
7030esac
7031
7032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7033$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7034
7035
7036# Check whether --with-build-config was given.
7037if test "${with_build_config+set}" = set; then :
7038 withval=$with_build_config; case $with_build_config in
7039 yes) with_build_config= ;;
7040 no) with_build_config= BUILD_CONFIG= ;;
7041 esac
7042fi
7043
7044
7045if test "x${with_build_config}" != x; then
7046 BUILD_CONFIG=$with_build_config
7047else
7048 case $BUILD_CONFIG in
7049 bootstrap-debug)
7050 if echo "int f (void) { return 0; }" > conftest.c &&
7051 ${CC} -c conftest.c &&
7052 mv conftest.o conftest.o.g0 &&
7053 ${CC} -c -g conftest.c &&
7054 mv conftest.o conftest.o.g &&
7055 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7056 :
7057 else
7058 BUILD_CONFIG=
7059 fi
7060 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7061 ;;
7062 esac
7063fi
7064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7065$as_echo "$BUILD_CONFIG" >&6; }
7066
7067
7068# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7070$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7071# Check whether --enable-vtable-verify was given.
7072if test "${enable_vtable_verify+set}" = set; then :
7073 enableval=$enable_vtable_verify; case "$enableval" in
7074 yes) enable_vtable_verify=yes ;;
7075 no) enable_vtable_verify=no ;;
7076 *) enable_vtable_verify=no;;
7077 esac
7078else
7079 enable_vtable_verify=no
7080fi
7081
7082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7083$as_echo "$enable_vtable_verify" >&6; }
7084
a0da8069
NN
7085# Record target_configdirs and the configure arguments for target and
7086# build configuration in Makefile.
7087target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 7088build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
201f096f 7089bootstrap_fixincludes=no
a0da8069 7090
2aa2364a
JR
7091# If we are building libgomp, bootstrap it.
7092if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7093 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7094fi
7095
730af8ee 7096# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7097# or bootstrap-ubsan, bootstrap it.
7098if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7099 case "$BUILD_CONFIG" in
7100 *bootstrap-asan* | *bootstrap-ubsan* )
7101 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
201f096f 7102 bootstrap_fixincludes=yes
730af8ee 7103 ;;
7104 esac
5eb08693
L
7105fi
7106
730af8ee 7107# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7108if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7109 test "$enable_vtable_verify" != no; then
95e43135
JBG
7110 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7111fi
7112
1b6c0831
L
7113# If we are building libmpx, bootstrap it.
7114if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7115 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7116fi
7117
a0da8069
NN
7118# Determine whether gdb needs tk/tcl or not.
7119# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7120# and in that case we want gdb to be built without tk. Ugh!
7121# In fact I believe gdb is the *only* package directly dependent on tk,
7122# so we should be able to put the 'maybe's in unconditionally and
7123# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7124# 100% sure that that's safe though.
c180f501 7125
675c6968 7126gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
7127case "$enable_gdbtk" in
7128 no)
7129 GDB_TK="" ;;
c180f501
AC
7130 yes)
7131 GDB_TK="${gdb_tk}" ;;
a0da8069 7132 *)
c180f501
AC
7133 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7134 # distro. Eventually someone will fix this and move Insight, nee
7135 # gdbtk to a separate directory.
7136 if test -d ${srcdir}/gdb/gdbtk ; then
7137 GDB_TK="${gdb_tk}"
7138 else
7139 GDB_TK=""
7140 fi
7141 ;;
a0da8069 7142esac
907be67c
DJ
7143CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7144INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 7145
6bd3dfaa 7146# Strip out unwanted targets.
dd12c3a8
NN
7147
7148# While at that, we remove Makefiles if we were started for recursive
7149# configuration, so that the top-level Makefile reconfigures them,
7150# like we used to do when configure itself was recursive.
dd12c3a8 7151
06a51eac
RW
7152# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7153# but now we're fixing up the Makefile ourselves with the additional
7154# commands passed to AC_CONFIG_FILES. Use separate variables
7155# extrasub-{build,host,target} not because there is any reason to split
7156# the substitutions up that way, but only to remain below the limit of
7157# 99 commands in a script, for HP-UX sed.
7158# Do not nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 7159
16b1ad29
RW
7160case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7161 yes:yes:*\ gold\ *:*,c++,*) ;;
7162 yes:yes:*\ gold\ *:*)
7163 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7164 ;;
7165esac
7166
06a51eac 7167extrasub_build=
6a9cf61e 7168for module in ${build_configdirs} ; do
498d4a71
CF
7169 if test -z "${no_recursion}" \
7170 && test -f ${build_subdir}/${module}/Makefile; then
7171 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7172 rm -f ${build_subdir}/${module}/Makefile
7173 fi
06a51eac 7174 extrasub_build="$extrasub_build
498d4a71
CF
7175/^@if build-$module\$/d
7176/^@endif build-$module\$/d
7177/^@if build-$module-$bootstrap_suffix\$/d
7178/^@endif build-$module-$bootstrap_suffix\$/d"
7179done
06a51eac 7180extrasub_host=
498d4a71 7181for module in ${configdirs} ; do
80911fe1 7182 if test -z "${no_recursion}"; then
8cf39b1b 7183 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
7184 if test -f ${file}; then
7185 echo 1>&2 "*** removing ${file} to force reconfigure"
7186 rm -f ${file}
7187 fi
7188 done
498d4a71 7189 fi
201f096f 7190 case ${module},${bootstrap_fixincludes} in
7191 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7192 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7193 esac
06a51eac 7194 extrasub_host="$extrasub_host
498d4a71
CF
7195/^@if $module\$/d
7196/^@endif $module\$/d
201f096f 7197/^@if $module-$host_bootstrap_suffix\$/d
7198/^@endif $module-$host_bootstrap_suffix\$/d"
498d4a71 7199done
06a51eac 7200extrasub_target=
498d4a71
CF
7201for module in ${target_configdirs} ; do
7202 if test -z "${no_recursion}" \
7203 && test -f ${target_subdir}/${module}/Makefile; then
7204 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7205 rm -f ${target_subdir}/${module}/Makefile
7206 fi
e8a5fa9c
RW
7207
7208 # We only bootstrap target libraries listed in bootstrap_target_libs.
7209 case $bootstrap_target_libs in
7210 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7211 *) target_bootstrap_suffix=no-bootstrap ;;
7212 esac
7213
06a51eac 7214 extrasub_target="$extrasub_target
498d4a71
CF
7215/^@if target-$module\$/d
7216/^@endif target-$module\$/d
e8a5fa9c
RW
7217/^@if target-$module-$target_bootstrap_suffix\$/d
7218/^@endif target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
7219done
7220
06a51eac
RW
7221# Do the final fixup along with target modules.
7222extrasub_target="$extrasub_target
6bd3dfaa 7223/^@if /,/^@endif /d"
a0da8069
NN
7224
7225# Create the serialization dependencies. This uses a temporary file.
7226
81ecdfbb
RW
7227# Check whether --enable-serial-configure was given.
7228if test "${enable_serial_configure+set}" = set; then :
7229 enableval=$enable_serial_configure;
7230fi
e6bfb94a
AO
7231
7232
1047cb91
DD
7233case ${enable_serial_configure} in
7234 yes)
7235 enable_serial_build_configure=yes
7236 enable_serial_host_configure=yes
7237 enable_serial_target_configure=yes
7238 ;;
7239esac
7240
a0da8069
NN
7241# These force 'configure's to be done one at a time, to avoid problems
7242# with contention over a shared config.cache.
7243rm -f serdep.tmp
e6bfb94a 7244echo '# serdep.tmp' > serdep.tmp
a0da8069 7245olditem=
1047cb91 7246test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
7247for item in ${build_configdirs} ; do
7248 case ${olditem} in
7249 "") ;;
e6bfb94a 7250 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7251 esac
7252 olditem=${item}
7253done
7254olditem=
1047cb91 7255test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
7256for item in ${configdirs} ; do
7257 case ${olditem} in
7258 "") ;;
e6bfb94a 7259 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7260 esac
7261 olditem=${item}
7262done
7263olditem=
1047cb91 7264test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
7265for item in ${target_configdirs} ; do
7266 case ${olditem} in
7267 "") ;;
e6bfb94a 7268 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7269 esac
7270 olditem=${item}
7271done
7272serialization_dependencies=serdep.tmp
7273
7274
e6bfb94a 7275# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 7276# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
7277# might not want to pass down to subconfigures. The exception being
7278# --cache-file=/dev/null, which is used to turn off the use of cache
7279# files altogether, and which should be passed on to subconfigures.
7280# Also strip program-prefix, program-suffix, and program-transform-name,
7281# so that we can pass down a consistent program-transform-name.
c6b750e1 7282baseargs=
65b4571a 7283tbaseargs=
c6b750e1
DJ
7284keep_next=no
7285skip_next=no
7286eval "set -- $ac_configure_args"
18f6b6ee
PB
7287for ac_arg
7288do
c6b750e1
DJ
7289 if test X"$skip_next" = X"yes"; then
7290 skip_next=no
7291 continue
7292 fi
7293 if test X"$keep_next" = X"yes"; then
7294 case $ac_arg in
7295 *\'*)
7296 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7297 esac
7298 baseargs="$baseargs '$ac_arg'"
65b4571a 7299 tbaseargs="$tbaseargs '$ac_arg'"
c6b750e1
DJ
7300 keep_next=no
7301 continue
7302 fi
7303
7304 # Handle separated arguments. Based on the logic generated by
7305 # autoconf 2.59.
7306 case $ac_arg in
7307 *=* | --config-cache | -C | -disable-* | --disable-* \
7308 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7309 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7310 | -with-* | --with-* | -without-* | --without-* | --x)
7311 separate_arg=no
7312 ;;
7313 -*)
7314 separate_arg=yes
7315 ;;
7316 *)
7317 separate_arg=no
7318 ;;
7319 esac
7320
65b4571a
AO
7321 skip_targ=no
7322 case $ac_arg in
7323
7324 --with-* | --without-*)
7325 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7326
7327 case $libopt in
7328 *[-_]include)
7329 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7330 ;;
7331 *[-_]lib)
7332 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7333 ;;
7334 *)
7335 lib=$libopt
7336 ;;
7337 esac
7338
7339
7340 case $lib in
1b6c0831 7341 mpc | mpfr | gmp | isl)
65b4571a
AO
7342 # If we're processing --with-$lib, --with-$lib-include or
7343 # --with-$lib-lib, for one of the libs above, and target is
7344 # different from host, don't pass the current argument to any
7345 # target library's configure.
7346 if test x$is_cross_compiler = xyes; then
7347 skip_targ=yes
7348 fi
7349 ;;
7350 esac
7351 ;;
7352 esac
7353
c6b750e1 7354 case "$ac_arg" in
30167e0a
NC
7355 --cache-file=/dev/null | \
7356 -cache-file=/dev/null )
7357 # Handled here to avoid the test to skip args below.
7358 baseargs="$baseargs '$ac_arg'"
65b4571a 7359 tbaseargs="$tbaseargs '$ac_arg'"
30167e0a
NC
7360 # Assert: $separate_arg should always be no.
7361 keep_next=$separate_arg
7362 ;;
c6b750e1
DJ
7363 --no*)
7364 continue
7365 ;;
7366 --c* | \
7367 --sr* | \
7368 --ho* | \
7369 --bu* | \
7370 --t* | \
7371 --program-* | \
7372 -cache_file* | \
7373 -srcdir* | \
7374 -host* | \
7375 -build* | \
7376 -target* | \
7377 -program-prefix* | \
7378 -program-suffix* | \
7379 -program-transform-name* )
7380 skip_next=$separate_arg
7381 continue
7382 ;;
7383 -*)
7384 # An option. Add it.
7385 case $ac_arg in
7386 *\'*)
7387 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7388 esac
7389 baseargs="$baseargs '$ac_arg'"
65b4571a
AO
7390 if test X"$skip_targ" = Xno; then
7391 tbaseargs="$tbaseargs '$ac_arg'"
7392 fi
c6b750e1
DJ
7393 keep_next=$separate_arg
7394 ;;
7395 *)
7396 # Either a variable assignment, or a nonopt (triplet). Don't
7397 # pass it down; let the Makefile handle this.
7398 continue
7399 ;;
7400 esac
7401done
7402# Remove the initial space we just introduced and, as these will be
7403# expanded by make, quote '$'.
7404baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7405
f27d4f92
DJ
7406# Add in --program-transform-name, after --program-prefix and
7407# --program-suffix have been applied to it. Autoconf has already
7408# doubled dollar signs and backslashes in program_transform_name; we want
7409# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7410# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7411# Also, because we want to override the logic in subdir configure scripts to
7412# choose program_transform_name, replace any s,x,x, with s,y,y,.
7413sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7414${program_transform_name}
7415EOF_SED
7416gcc_transform_name=`cat conftestsed.out`
7417rm -f conftestsed.out
7418baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
65b4571a 7419tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7420if test "$silent" = yes; then
7421 baseargs="$baseargs --silent"
65b4571a 7422 tbaseargs="$tbaseargs --silent"
2444379b 7423fi
34a0f3cf 7424baseargs="$baseargs --disable-option-checking"
65b4571a 7425tbaseargs="$tbaseargs --disable-option-checking"
f27d4f92 7426
4074d5f2
RW
7427# Record and document user additions to sub configure arguments.
7428
7429
7430
7431
a0da8069
NN
7432# For the build-side libraries, we just need to pretend we're native,
7433# and not use the same cache file. Multilibs are neither needed nor
1b6c0831
L
7434# desired. We can't even use the same cache file for all build-side
7435# libraries, as they're compiled differently; some with C, some with
7436# C++ or with different feature-enabling options.
7437build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
a0da8069
NN
7438
7439# For host modules, accept cache file option, or specification as blank.
7440case "${cache_file}" in
7441"") # empty
7442 cache_file_option="" ;;
7443/* | [A-Za-z]:[\\/]* ) # absolute path
7444 cache_file_option="--cache-file=${cache_file}" ;;
7445*) # relative path
7446 cache_file_option="--cache-file=../${cache_file}" ;;
7447esac
7448
82252c06
NN
7449# Host dirs don't like to share a cache file either, horribly enough.
7450# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7451host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7452
65b4571a 7453target_configargs="$target_configargs ${tbaseargs}"
a0da8069
NN
7454
7455# Passing a --with-cross-host argument lets the target libraries know
7456# whether they are being built with a cross-compiler or being built
7457# native. However, it would be better to use other mechanisms to make the
7458# sorts of decisions they want to make on this basis. Please consider
7459# this option to be deprecated. FIXME.
7460if test x${is_cross_compiler} = xyes ; then
c6b750e1 7461 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7462fi
7463
afc0578d 7464# Special user-friendly check for native x86_64-linux build, if
7465# multilib is not explicitly enabled.
7466case "$target:$have_compiler:$host:$target:$enable_multilib" in
7467 x86_64-*linux*:yes:$build:$build:)
ce6c656d 7468 # Make sure we have a development environment that handles 32-bit
afc0578d 7469 dev64=no
7470 echo "int main () { return 0; }" > conftest.c
7471 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7472 if test $? = 0 ; then
7473 if test -s conftest || test -s conftest.exe ; then
7474 dev64=yes
7475 fi
7476 fi
7477 rm -f conftest*
7478 if test x${dev64} != xyes ; then
ce6c656d 7479 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
afc0578d 7480 fi
7481 ;;
7482esac
7483
938d2b74
RW
7484# Default to --enable-multilib.
7485if test x${enable_multilib} = x ; then
a0da8069 7486 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7487fi
a0da8069
NN
7488
7489# Pass --with-newlib if appropriate. Note that target_configdirs has
7490# changed from the earlier setting of with_newlib.
7491if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7492 target_configargs="--with-newlib ${target_configargs}"
7493fi
7494
95036d20
NN
7495# Different target subdirs use different values of certain variables
7496# (notably CXX). Worse, multilibs use *lots* of different values.
7497# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7498# it doesn't automatically accept command-line overrides of them.
7499# This means it's not safe for target subdirs to share a cache file,
7500# which is disgusting, but there you have it. Hopefully this can be
7501# fixed in future. It's still worthwhile to use a cache file for each
7502# directory. I think.
7503
ae380b45
MS
7504# Pass the appropriate --build, --host, --target and --cache-file arguments.
7505# We need to pass --target, as newer autoconf's requires consistency
7506# for target_alias and gcc doesn't manage it consistently.
4b900473 7507target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7508
a0da8069
NN
7509FLAGS_FOR_TARGET=
7510case " $target_configdirs " in
7511 *" newlib "*)
7512 case " $target_configargs " in
7513 *" --with-newlib "*)
7514 case "$target" in
1f53ca9a 7515 *-cygwin*)
6d94c122 7516 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
1f53ca9a 7517 ;;
a0da8069
NN
7518 esac
7519
7520 # If we're not building GCC, don't discard standard headers.
7521 if test -d ${srcdir}/gcc; then
7522 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7523
7524 if test "${build}" != "${host}"; then
7525 # On Canadian crosses, CC_FOR_TARGET will have already been set
7526 # by `configure', so we won't have an opportunity to add -Bgcc/
7527 # to it. This is right: we don't want to search that directory
7528 # for binaries, but we want the header files in there, so add
7529 # them explicitly.
e552509b 7530 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7531
7532 # Someone might think of using the pre-installed headers on
7533 # Canadian crosses, in case the installed compiler is not fully
7534 # compatible with the compiler being built. In this case, it
7535 # would be better to flag an error than risking having
7536 # incompatible object files being constructed. We can't
7537 # guarantee that an error will be flagged, but let's hope the
7538 # compiler will do it, when presented with incompatible header
7539 # files.
7540 fi
7541 fi
7542
7543 case "${target}-${is_cross_compiler}" in
ec11bdc6 7544 i[3456789]86-*-linux*-no)
a0da8069
NN
7545 # Here host == target, so we don't need to build gcc,
7546 # so we don't want to discard standard headers.
7547 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7548 ;;
7549 *)
7550 # If we're building newlib, use its generic headers last, but search
7551 # for any libc-related directories first (so make it the last -B
7552 # switch).
7553 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
691bb5a1
DD
7554
7555 # If we're building libgloss, find the startup file, simulator library
7556 # and linker script.
7557 case " $target_configdirs " in
7558 *" libgloss "*)
7559 # Look for startup file, simulator library and maybe linker script.
7560 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7561 # Look for libnosys.a in case the target needs it.
7562 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7563 # Most targets have the linker script in the source directory.
7564 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7565 ;;
7566 esac
a0da8069
NN
7567 ;;
7568 esac
7569 ;;
7570 esac
7571 ;;
7572esac
1f53ca9a 7573
45055374 7574case "$target" in
1f53ca9a
AO
7575 x86_64-*mingw* | *-w64-mingw*)
7576 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7577 # however, use a symlink named 'mingw' in ${prefix} .
7578 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7579 ;;
7580 *-mingw*)
7581 # MinGW can't be handled as Cygwin above since it does not use newlib.
7582 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'
7583 ;;
45055374 7584esac
a0da8069 7585
5fbad20a
DD
7586# Allow the user to override the flags for
7587# our build compiler if desired.
c66487f8
NC
7588if test x"${build}" = x"${host}" ; then
7589 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7590 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7591 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7592fi
5fbad20a 7593
a0da8069
NN
7594# On Canadian crosses, we'll be searching the right directories for
7595# the previously-installed cross compiler, so don't bother to add
7596# flags for directories within the install tree of the compiler
7597# being built; programs in there won't even run.
7598if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7599 # Search for pre-installed headers if nothing else fits.
bba45b8b 7600 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
a0da8069
NN
7601fi
7602
7603if test "x${use_gnu_ld}" = x &&
7604 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7605 # Arrange for us to find uninstalled linker scripts.
b00612cc 7606 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
7607fi
7608
a481dbb7
DD
7609# Search for other target-specific linker scripts and such.
7610case "${target}" in
4e206d7e
DB
7611 mep*)
7612 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7613 ;;
7614esac
7615
a0da8069 7616# Makefile fragments.
3e707e94
PB
7617for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7618do
7619 eval fragval=\$$frag
7620 if test $fragval != /dev/null; then
7621 eval $frag=${srcdir}/$fragval
7622 fi
7623done
a0da8069
NN
7624
7625
7626
7627
7628
7629# Miscellanea: directories, flags, etc.
7630
7631
7632
7633
7634
7635
7636
3bbd2f8f 7637
6a9cf61e 7638# Build module lists & subconfigure args.
a0da8069
NN
7639
7640
7641
be01d343
PB
7642# Host module lists & subconfigure args.
7643
7644
7645
911e63d0 7646
be01d343
PB
7647# Target module lists & subconfigure args.
7648
7649
7650
7651# Build tools.
7652
7653
7654
1576798e
PB
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
be01d343
PB
7669# Generate default definitions for YACC, M4, LEX and other programs that run
7670# on the build machine. These are used if the Makefile can't locate these
7671# programs in objdir.
7672MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7673
7674for ac_prog in 'bison -y' byacc yacc
7675do
c6b750e1 7676 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7677set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7679$as_echo_n "checking for $ac_word... " >&6; }
7680if test "${ac_cv_prog_YACC+set}" = set; then :
7681 $as_echo_n "(cached) " >&6
be01d343
PB
7682else
7683 if test -n "$YACC"; then
7684 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7685else
c6b750e1
DJ
7686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7687for as_dir in $PATH
7688do
7689 IFS=$as_save_IFS
7690 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7691 for ac_exec_ext in '' $ac_executable_extensions; do
7692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7693 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 7694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7695 break 2
7696 fi
7697done
81ecdfbb
RW
7698 done
7699IFS=$as_save_IFS
c6b750e1 7700
be01d343
PB
7701fi
7702fi
c6b750e1 7703YACC=$ac_cv_prog_YACC
be01d343 7704if test -n "$YACC"; then
81ecdfbb
RW
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7706$as_echo "$YACC" >&6; }
be01d343 7707else
81ecdfbb
RW
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7709$as_echo "no" >&6; }
be01d343
PB
7710fi
7711
81ecdfbb 7712
c6b750e1 7713 test -n "$YACC" && break
be01d343
PB
7714done
7715test -n "$YACC" || YACC="$MISSING bison -y"
7716
7717case " $build_configdirs " in
7718 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
be01d343
PB
7719esac
7720
7721for ac_prog in bison
7722do
c6b750e1 7723 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7724set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7726$as_echo_n "checking for $ac_word... " >&6; }
7727if test "${ac_cv_prog_BISON+set}" = set; then :
7728 $as_echo_n "(cached) " >&6
be01d343
PB
7729else
7730 if test -n "$BISON"; then
7731 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7732else
c6b750e1
DJ
7733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734for as_dir in $PATH
7735do
7736 IFS=$as_save_IFS
7737 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7738 for ac_exec_ext in '' $ac_executable_extensions; do
7739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7740 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 7741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7742 break 2
7743 fi
7744done
81ecdfbb
RW
7745 done
7746IFS=$as_save_IFS
c6b750e1 7747
be01d343
PB
7748fi
7749fi
c6b750e1 7750BISON=$ac_cv_prog_BISON
be01d343 7751if test -n "$BISON"; then
81ecdfbb
RW
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7753$as_echo "$BISON" >&6; }
be01d343 7754else
81ecdfbb
RW
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7756$as_echo "no" >&6; }
be01d343
PB
7757fi
7758
81ecdfbb 7759
c6b750e1 7760 test -n "$BISON" && break
be01d343
PB
7761done
7762test -n "$BISON" || BISON="$MISSING bison"
7763
7764case " $build_configdirs " in
7765 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7766esac
7767
7768for ac_prog in gm4 gnum4 m4
7769do
c6b750e1 7770 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7771set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7773$as_echo_n "checking for $ac_word... " >&6; }
7774if test "${ac_cv_prog_M4+set}" = set; then :
7775 $as_echo_n "(cached) " >&6
be01d343
PB
7776else
7777 if test -n "$M4"; then
7778 ac_cv_prog_M4="$M4" # Let the user override the test.
7779else
c6b750e1
DJ
7780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781for as_dir in $PATH
7782do
7783 IFS=$as_save_IFS
7784 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7787 ac_cv_prog_M4="$ac_prog"
81ecdfbb 7788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7789 break 2
7790 fi
7791done
81ecdfbb
RW
7792 done
7793IFS=$as_save_IFS
c6b750e1 7794
be01d343
PB
7795fi
7796fi
c6b750e1 7797M4=$ac_cv_prog_M4
be01d343 7798if test -n "$M4"; then
81ecdfbb
RW
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7800$as_echo "$M4" >&6; }
be01d343 7801else
81ecdfbb
RW
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803$as_echo "no" >&6; }
be01d343
PB
7804fi
7805
81ecdfbb 7806
c6b750e1 7807 test -n "$M4" && break
be01d343
PB
7808done
7809test -n "$M4" || M4="$MISSING m4"
7810
7811case " $build_configdirs " in
7812 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7813esac
7814
7815for ac_prog in flex lex
7816do
c6b750e1 7817 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7818set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7820$as_echo_n "checking for $ac_word... " >&6; }
7821if test "${ac_cv_prog_LEX+set}" = set; then :
7822 $as_echo_n "(cached) " >&6
be01d343
PB
7823else
7824 if test -n "$LEX"; then
7825 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7826else
c6b750e1
DJ
7827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828for as_dir in $PATH
7829do
7830 IFS=$as_save_IFS
7831 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7832 for ac_exec_ext in '' $ac_executable_extensions; do
7833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7834 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 7835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7836 break 2
7837 fi
7838done
81ecdfbb
RW
7839 done
7840IFS=$as_save_IFS
c6b750e1 7841
be01d343
PB
7842fi
7843fi
c6b750e1 7844LEX=$ac_cv_prog_LEX
be01d343 7845if test -n "$LEX"; then
81ecdfbb
RW
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7847$as_echo "$LEX" >&6; }
be01d343 7848else
81ecdfbb
RW
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850$as_echo "no" >&6; }
be01d343
PB
7851fi
7852
81ecdfbb 7853
c6b750e1 7854 test -n "$LEX" && break
be01d343
PB
7855done
7856test -n "$LEX" || LEX="$MISSING flex"
7857
7858case " $build_configdirs " in
7859 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7860 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7861esac
7862
7863for ac_prog in flex
7864do
c6b750e1 7865 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7866set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7868$as_echo_n "checking for $ac_word... " >&6; }
7869if test "${ac_cv_prog_FLEX+set}" = set; then :
7870 $as_echo_n "(cached) " >&6
be01d343
PB
7871else
7872 if test -n "$FLEX"; then
7873 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7874else
c6b750e1
DJ
7875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7876for as_dir in $PATH
7877do
7878 IFS=$as_save_IFS
7879 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7880 for ac_exec_ext in '' $ac_executable_extensions; do
7881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7882 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 7883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7884 break 2
7885 fi
7886done
81ecdfbb
RW
7887 done
7888IFS=$as_save_IFS
c6b750e1 7889
be01d343
PB
7890fi
7891fi
c6b750e1 7892FLEX=$ac_cv_prog_FLEX
be01d343 7893if test -n "$FLEX"; then
81ecdfbb
RW
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7895$as_echo "$FLEX" >&6; }
be01d343 7896else
81ecdfbb
RW
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7898$as_echo "no" >&6; }
be01d343
PB
7899fi
7900
81ecdfbb 7901
c6b750e1 7902 test -n "$FLEX" && break
be01d343
PB
7903done
7904test -n "$FLEX" || FLEX="$MISSING flex"
7905
7906case " $build_configdirs " in
7907 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7908esac
7909
7910for ac_prog in makeinfo
7911do
c6b750e1 7912 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7913set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7915$as_echo_n "checking for $ac_word... " >&6; }
7916if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7917 $as_echo_n "(cached) " >&6
be01d343
PB
7918else
7919 if test -n "$MAKEINFO"; then
7920 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7921else
c6b750e1
DJ
7922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923for as_dir in $PATH
7924do
7925 IFS=$as_save_IFS
7926 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7927 for ac_exec_ext in '' $ac_executable_extensions; do
7928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7929 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 7930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7931 break 2
7932 fi
7933done
81ecdfbb
RW
7934 done
7935IFS=$as_save_IFS
c6b750e1 7936
be01d343
PB
7937fi
7938fi
c6b750e1 7939MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 7940if test -n "$MAKEINFO"; then
81ecdfbb
RW
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7942$as_echo "$MAKEINFO" >&6; }
be01d343 7943else
81ecdfbb
RW
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945$as_echo "no" >&6; }
be01d343
PB
7946fi
7947
81ecdfbb 7948
c6b750e1 7949 test -n "$MAKEINFO" && break
be01d343
PB
7950done
7951test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7952
7953case " $build_configdirs " in
7954 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7955 *)
7956
10ad8ef3 7957 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
7958 # higher, else we use the "missing" dummy.
7959 if ${MAKEINFO} --version \
10ad8ef3 7960 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
7961 :
7962 else
7963 MAKEINFO="$MISSING makeinfo"
7964 fi
7965 ;;
7966
7967esac
a0da8069 7968
be01d343 7969# FIXME: expect and dejagnu may become build tools?
a0da8069 7970
be01d343
PB
7971for ac_prog in expect
7972do
c6b750e1 7973 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7974set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7976$as_echo_n "checking for $ac_word... " >&6; }
7977if test "${ac_cv_prog_EXPECT+set}" = set; then :
7978 $as_echo_n "(cached) " >&6
be01d343
PB
7979else
7980 if test -n "$EXPECT"; then
7981 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7982else
c6b750e1
DJ
7983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984for as_dir in $PATH
7985do
7986 IFS=$as_save_IFS
7987 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7988 for ac_exec_ext in '' $ac_executable_extensions; do
7989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7990 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 7991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7992 break 2
7993 fi
7994done
81ecdfbb
RW
7995 done
7996IFS=$as_save_IFS
c6b750e1 7997
be01d343
PB
7998fi
7999fi
c6b750e1 8000EXPECT=$ac_cv_prog_EXPECT
be01d343 8001if test -n "$EXPECT"; then
81ecdfbb
RW
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8003$as_echo "$EXPECT" >&6; }
be01d343 8004else
81ecdfbb
RW
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006$as_echo "no" >&6; }
be01d343 8007fi
a0da8069 8008
81ecdfbb 8009
c6b750e1 8010 test -n "$EXPECT" && break
be01d343
PB
8011done
8012test -n "$EXPECT" || EXPECT="expect"
a0da8069 8013
be01d343
PB
8014case " $configdirs " in
8015 *" expect "*)
8016 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8017 ;;
8018esac
a0da8069 8019
be01d343
PB
8020for ac_prog in runtest
8021do
c6b750e1 8022 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8023set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8025$as_echo_n "checking for $ac_word... " >&6; }
8026if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8027 $as_echo_n "(cached) " >&6
be01d343
PB
8028else
8029 if test -n "$RUNTEST"; then
8030 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8031else
c6b750e1
DJ
8032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8033for as_dir in $PATH
8034do
8035 IFS=$as_save_IFS
8036 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8037 for ac_exec_ext in '' $ac_executable_extensions; do
8038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8039 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 8040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8041 break 2
8042 fi
8043done
81ecdfbb
RW
8044 done
8045IFS=$as_save_IFS
c6b750e1 8046
be01d343
PB
8047fi
8048fi
c6b750e1 8049RUNTEST=$ac_cv_prog_RUNTEST
be01d343 8050if test -n "$RUNTEST"; then
81ecdfbb
RW
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8052$as_echo "$RUNTEST" >&6; }
be01d343 8053else
81ecdfbb
RW
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8055$as_echo "no" >&6; }
be01d343 8056fi
a0da8069 8057
81ecdfbb 8058
c6b750e1 8059 test -n "$RUNTEST" && break
be01d343
PB
8060done
8061test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 8062
be01d343
PB
8063case " $configdirs " in
8064 *" dejagnu "*)
6b89cc21 8065 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
8066 ;;
8067esac
a0da8069
NN
8068
8069
a0da8069 8070# Host tools.
859789af
AC
8071ncn_tool_prefix=
8072test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8073ncn_target_tool_prefix=
8074test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8075
9a819804
AO
8076
8077
8078if test -n "$AR"; then
8079 ac_cv_prog_AR=$AR
8080elif test -n "$ac_cv_prog_AR"; then
8081 AR=$ac_cv_prog_AR
8082fi
8083
8084if test -n "$ac_cv_prog_AR"; then
8085 for ncn_progname in ar; do
8086 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8087set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8089$as_echo_n "checking for $ac_word... " >&6; }
8090if test "${ac_cv_prog_AR+set}" = set; then :
8091 $as_echo_n "(cached) " >&6
9a819804
AO
8092else
8093 if test -n "$AR"; then
8094 ac_cv_prog_AR="$AR" # Let the user override the test.
8095else
8096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097for as_dir in $PATH
8098do
8099 IFS=$as_save_IFS
8100 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8101 for ac_exec_ext in '' $ac_executable_extensions; do
8102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8103 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8105 break 2
8106 fi
8107done
81ecdfbb
RW
8108 done
8109IFS=$as_save_IFS
9a819804
AO
8110
8111fi
8112fi
8113AR=$ac_cv_prog_AR
8114if test -n "$AR"; then
81ecdfbb
RW
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8116$as_echo "$AR" >&6; }
9a819804 8117else
81ecdfbb
RW
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8119$as_echo "no" >&6; }
9a819804
AO
8120fi
8121
81ecdfbb 8122
9a819804
AO
8123 done
8124fi
8125
8126for ncn_progname in ar; do
05cbd757
PB
8127 if test -n "$ncn_tool_prefix"; then
8128 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8129set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8131$as_echo_n "checking for $ac_word... " >&6; }
8132if test "${ac_cv_prog_AR+set}" = set; then :
8133 $as_echo_n "(cached) " >&6
859789af
AC
8134else
8135 if test -n "$AR"; then
8136 ac_cv_prog_AR="$AR" # Let the user override the test.
8137else
c6b750e1
DJ
8138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8139for as_dir in $PATH
8140do
8141 IFS=$as_save_IFS
8142 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8143 for ac_exec_ext in '' $ac_executable_extensions; do
8144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8145 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8147 break 2
8148 fi
8149done
81ecdfbb
RW
8150 done
8151IFS=$as_save_IFS
c6b750e1 8152
859789af
AC
8153fi
8154fi
c6b750e1 8155AR=$ac_cv_prog_AR
859789af 8156if test -n "$AR"; then
81ecdfbb
RW
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8158$as_echo "$AR" >&6; }
859789af 8159else
81ecdfbb
RW
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8161$as_echo "no" >&6; }
859789af
AC
8162fi
8163
81ecdfbb 8164
05cbd757
PB
8165 fi
8166 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8167 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8168set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8170$as_echo_n "checking for $ac_word... " >&6; }
8171if test "${ac_cv_prog_AR+set}" = set; then :
8172 $as_echo_n "(cached) " >&6
859789af 8173else
05cbd757
PB
8174 if test -n "$AR"; then
8175 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 8176else
c6b750e1
DJ
8177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8178for as_dir in $PATH
8179do
8180 IFS=$as_save_IFS
8181 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8182 for ac_exec_ext in '' $ac_executable_extensions; do
8183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8184 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8186 break 2
8187 fi
8188done
81ecdfbb
RW
8189 done
8190IFS=$as_save_IFS
c6b750e1 8191
859789af
AC
8192fi
8193fi
c6b750e1 8194AR=$ac_cv_prog_AR
05cbd757 8195if test -n "$AR"; then
81ecdfbb
RW
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8197$as_echo "$AR" >&6; }
859789af 8198else
81ecdfbb
RW
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8200$as_echo "no" >&6; }
859789af 8201fi
c6b750e1 8202
81ecdfbb 8203
05cbd757
PB
8204 fi
8205 test -n "$ac_cv_prog_AR" && break
8206done
8207
8208if test -z "$ac_cv_prog_AR" ; then
8209 set dummy ar
8210 if test $build = $host ; then
8211 AR="$2"
859789af 8212 else
05cbd757 8213 AR="${ncn_tool_prefix}$2"
859789af 8214 fi
859789af
AC
8215fi
8216
9a819804
AO
8217
8218
8219if test -n "$AS"; then
8220 ac_cv_prog_AS=$AS
8221elif test -n "$ac_cv_prog_AS"; then
8222 AS=$ac_cv_prog_AS
8223fi
8224
8225if test -n "$ac_cv_prog_AS"; then
8226 for ncn_progname in as; do
8227 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8228set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8230$as_echo_n "checking for $ac_word... " >&6; }
8231if test "${ac_cv_prog_AS+set}" = set; then :
8232 $as_echo_n "(cached) " >&6
9a819804
AO
8233else
8234 if test -n "$AS"; then
8235 ac_cv_prog_AS="$AS" # Let the user override the test.
8236else
8237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8238for as_dir in $PATH
8239do
8240 IFS=$as_save_IFS
8241 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8242 for ac_exec_ext in '' $ac_executable_extensions; do
8243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8244 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8246 break 2
8247 fi
8248done
81ecdfbb
RW
8249 done
8250IFS=$as_save_IFS
9a819804
AO
8251
8252fi
8253fi
8254AS=$ac_cv_prog_AS
8255if test -n "$AS"; then
81ecdfbb
RW
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8257$as_echo "$AS" >&6; }
9a819804 8258else
81ecdfbb
RW
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8260$as_echo "no" >&6; }
9a819804
AO
8261fi
8262
81ecdfbb 8263
9a819804
AO
8264 done
8265fi
8266
8267for ncn_progname in as; do
05cbd757
PB
8268 if test -n "$ncn_tool_prefix"; then
8269 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8270set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8272$as_echo_n "checking for $ac_word... " >&6; }
8273if test "${ac_cv_prog_AS+set}" = set; then :
8274 $as_echo_n "(cached) " >&6
859789af
AC
8275else
8276 if test -n "$AS"; then
8277 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
8278else
8279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8280for as_dir in $PATH
8281do
8282 IFS=$as_save_IFS
8283 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8284 for ac_exec_ext in '' $ac_executable_extensions; do
8285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8286 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8288 break 2
8289 fi
8290done
81ecdfbb
RW
8291 done
8292IFS=$as_save_IFS
c6b750e1 8293
859789af
AC
8294fi
8295fi
c6b750e1 8296AS=$ac_cv_prog_AS
859789af 8297if test -n "$AS"; then
81ecdfbb
RW
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8299$as_echo "$AS" >&6; }
859789af 8300else
81ecdfbb
RW
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8302$as_echo "no" >&6; }
859789af
AC
8303fi
8304
81ecdfbb 8305
05cbd757
PB
8306 fi
8307 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8308 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8309set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8311$as_echo_n "checking for $ac_word... " >&6; }
8312if test "${ac_cv_prog_AS+set}" = set; then :
8313 $as_echo_n "(cached) " >&6
859789af 8314else
05cbd757
PB
8315 if test -n "$AS"; then
8316 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 8317else
c6b750e1
DJ
8318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8319for as_dir in $PATH
8320do
8321 IFS=$as_save_IFS
8322 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8323 for ac_exec_ext in '' $ac_executable_extensions; do
8324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8325 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8327 break 2
8328 fi
8329done
81ecdfbb
RW
8330 done
8331IFS=$as_save_IFS
c6b750e1 8332
859789af
AC
8333fi
8334fi
c6b750e1 8335AS=$ac_cv_prog_AS
05cbd757 8336if test -n "$AS"; then
81ecdfbb
RW
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8338$as_echo "$AS" >&6; }
859789af 8339else
81ecdfbb
RW
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8341$as_echo "no" >&6; }
859789af 8342fi
c6b750e1 8343
81ecdfbb 8344
05cbd757
PB
8345 fi
8346 test -n "$ac_cv_prog_AS" && break
8347done
8348
8349if test -z "$ac_cv_prog_AS" ; then
8350 set dummy as
8351 if test $build = $host ; then
8352 AS="$2"
859789af 8353 else
05cbd757 8354 AS="${ncn_tool_prefix}$2"
859789af 8355 fi
859789af
AC
8356fi
8357
9a819804
AO
8358
8359
8360if test -n "$DLLTOOL"; then
8361 ac_cv_prog_DLLTOOL=$DLLTOOL
8362elif test -n "$ac_cv_prog_DLLTOOL"; then
8363 DLLTOOL=$ac_cv_prog_DLLTOOL
8364fi
8365
8366if test -n "$ac_cv_prog_DLLTOOL"; then
8367 for ncn_progname in dlltool; do
8368 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8369set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8371$as_echo_n "checking for $ac_word... " >&6; }
8372if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8373 $as_echo_n "(cached) " >&6
9a819804
AO
8374else
8375 if test -n "$DLLTOOL"; then
8376 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8377else
8378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8379for as_dir in $PATH
8380do
8381 IFS=$as_save_IFS
8382 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8383 for ac_exec_ext in '' $ac_executable_extensions; do
8384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8385 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8387 break 2
8388 fi
8389done
81ecdfbb
RW
8390 done
8391IFS=$as_save_IFS
9a819804
AO
8392
8393fi
8394fi
8395DLLTOOL=$ac_cv_prog_DLLTOOL
8396if test -n "$DLLTOOL"; then
81ecdfbb
RW
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8398$as_echo "$DLLTOOL" >&6; }
9a819804 8399else
81ecdfbb
RW
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8401$as_echo "no" >&6; }
9a819804
AO
8402fi
8403
81ecdfbb 8404
9a819804
AO
8405 done
8406fi
8407
8408for ncn_progname in dlltool; do
05cbd757
PB
8409 if test -n "$ncn_tool_prefix"; then
8410 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8411set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8413$as_echo_n "checking for $ac_word... " >&6; }
8414if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8415 $as_echo_n "(cached) " >&6
859789af
AC
8416else
8417 if test -n "$DLLTOOL"; then
8418 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8419else
c6b750e1
DJ
8420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8421for as_dir in $PATH
8422do
8423 IFS=$as_save_IFS
8424 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8425 for ac_exec_ext in '' $ac_executable_extensions; do
8426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8427 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8429 break 2
8430 fi
8431done
81ecdfbb
RW
8432 done
8433IFS=$as_save_IFS
c6b750e1 8434
859789af
AC
8435fi
8436fi
c6b750e1 8437DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8438if test -n "$DLLTOOL"; then
81ecdfbb
RW
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8440$as_echo "$DLLTOOL" >&6; }
859789af 8441else
81ecdfbb
RW
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8443$as_echo "no" >&6; }
859789af
AC
8444fi
8445
81ecdfbb 8446
05cbd757
PB
8447 fi
8448 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8449 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8450set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8452$as_echo_n "checking for $ac_word... " >&6; }
8453if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8454 $as_echo_n "(cached) " >&6
859789af 8455else
05cbd757
PB
8456 if test -n "$DLLTOOL"; then
8457 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8458else
c6b750e1
DJ
8459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8460for as_dir in $PATH
8461do
8462 IFS=$as_save_IFS
8463 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8464 for ac_exec_ext in '' $ac_executable_extensions; do
8465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8466 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8468 break 2
8469 fi
8470done
81ecdfbb
RW
8471 done
8472IFS=$as_save_IFS
c6b750e1 8473
859789af
AC
8474fi
8475fi
c6b750e1 8476DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8477if test -n "$DLLTOOL"; then
81ecdfbb
RW
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8479$as_echo "$DLLTOOL" >&6; }
859789af 8480else
81ecdfbb
RW
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8482$as_echo "no" >&6; }
859789af 8483fi
c6b750e1 8484
81ecdfbb 8485
05cbd757
PB
8486 fi
8487 test -n "$ac_cv_prog_DLLTOOL" && break
8488done
8489
8490if test -z "$ac_cv_prog_DLLTOOL" ; then
8491 set dummy dlltool
8492 if test $build = $host ; then
8493 DLLTOOL="$2"
859789af 8494 else
05cbd757 8495 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8496 fi
859789af
AC
8497fi
8498
9a819804
AO
8499
8500
8501if test -n "$LD"; then
8502 ac_cv_prog_LD=$LD
8503elif test -n "$ac_cv_prog_LD"; then
8504 LD=$ac_cv_prog_LD
8505fi
8506
8507if test -n "$ac_cv_prog_LD"; then
8508 for ncn_progname in ld; do
8509 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8510set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8512$as_echo_n "checking for $ac_word... " >&6; }
8513if test "${ac_cv_prog_LD+set}" = set; then :
8514 $as_echo_n "(cached) " >&6
9a819804
AO
8515else
8516 if test -n "$LD"; then
8517 ac_cv_prog_LD="$LD" # Let the user override the test.
8518else
8519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8520for as_dir in $PATH
8521do
8522 IFS=$as_save_IFS
8523 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8524 for ac_exec_ext in '' $ac_executable_extensions; do
8525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8526 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8528 break 2
8529 fi
8530done
81ecdfbb
RW
8531 done
8532IFS=$as_save_IFS
9a819804
AO
8533
8534fi
8535fi
8536LD=$ac_cv_prog_LD
8537if test -n "$LD"; then
81ecdfbb
RW
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8539$as_echo "$LD" >&6; }
9a819804 8540else
81ecdfbb
RW
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8542$as_echo "no" >&6; }
9a819804
AO
8543fi
8544
81ecdfbb 8545
9a819804
AO
8546 done
8547fi
8548
8549for ncn_progname in ld; do
05cbd757
PB
8550 if test -n "$ncn_tool_prefix"; then
8551 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8552set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8554$as_echo_n "checking for $ac_word... " >&6; }
8555if test "${ac_cv_prog_LD+set}" = set; then :
8556 $as_echo_n "(cached) " >&6
859789af
AC
8557else
8558 if test -n "$LD"; then
8559 ac_cv_prog_LD="$LD" # Let the user override the test.
8560else
c6b750e1
DJ
8561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8562for as_dir in $PATH
8563do
8564 IFS=$as_save_IFS
8565 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8566 for ac_exec_ext in '' $ac_executable_extensions; do
8567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8568 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8570 break 2
8571 fi
8572done
81ecdfbb
RW
8573 done
8574IFS=$as_save_IFS
c6b750e1 8575
859789af
AC
8576fi
8577fi
c6b750e1 8578LD=$ac_cv_prog_LD
859789af 8579if test -n "$LD"; then
81ecdfbb
RW
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8581$as_echo "$LD" >&6; }
859789af 8582else
81ecdfbb
RW
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8584$as_echo "no" >&6; }
859789af
AC
8585fi
8586
81ecdfbb 8587
05cbd757
PB
8588 fi
8589 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8590 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8591set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8593$as_echo_n "checking for $ac_word... " >&6; }
8594if test "${ac_cv_prog_LD+set}" = set; then :
8595 $as_echo_n "(cached) " >&6
859789af 8596else
05cbd757
PB
8597 if test -n "$LD"; then
8598 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 8599else
c6b750e1
DJ
8600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8601for as_dir in $PATH
8602do
8603 IFS=$as_save_IFS
8604 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8605 for ac_exec_ext in '' $ac_executable_extensions; do
8606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8607 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8609 break 2
8610 fi
8611done
81ecdfbb
RW
8612 done
8613IFS=$as_save_IFS
c6b750e1 8614
859789af
AC
8615fi
8616fi
c6b750e1 8617LD=$ac_cv_prog_LD
05cbd757 8618if test -n "$LD"; then
81ecdfbb
RW
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8620$as_echo "$LD" >&6; }
859789af 8621else
81ecdfbb
RW
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8623$as_echo "no" >&6; }
859789af 8624fi
c6b750e1 8625
81ecdfbb 8626
05cbd757
PB
8627 fi
8628 test -n "$ac_cv_prog_LD" && break
8629done
8630
8631if test -z "$ac_cv_prog_LD" ; then
8632 set dummy ld
8633 if test $build = $host ; then
8634 LD="$2"
859789af 8635 else
05cbd757 8636 LD="${ncn_tool_prefix}$2"
859789af 8637 fi
859789af
AC
8638fi
8639
9a819804
AO
8640
8641
8642if test -n "$LIPO"; then
8643 ac_cv_prog_LIPO=$LIPO
8644elif test -n "$ac_cv_prog_LIPO"; then
8645 LIPO=$ac_cv_prog_LIPO
8646fi
8647
8648if test -n "$ac_cv_prog_LIPO"; then
8649 for ncn_progname in lipo; do
8650 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8651set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8653$as_echo_n "checking for $ac_word... " >&6; }
8654if test "${ac_cv_prog_LIPO+set}" = set; then :
8655 $as_echo_n "(cached) " >&6
9a819804
AO
8656else
8657 if test -n "$LIPO"; then
8658 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8659else
8660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8661for as_dir in $PATH
8662do
8663 IFS=$as_save_IFS
8664 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8665 for ac_exec_ext in '' $ac_executable_extensions; do
8666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8667 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8669 break 2
8670 fi
8671done
81ecdfbb
RW
8672 done
8673IFS=$as_save_IFS
9a819804
AO
8674
8675fi
8676fi
8677LIPO=$ac_cv_prog_LIPO
8678if test -n "$LIPO"; then
81ecdfbb
RW
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8680$as_echo "$LIPO" >&6; }
9a819804 8681else
81ecdfbb
RW
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8683$as_echo "no" >&6; }
9a819804
AO
8684fi
8685
81ecdfbb 8686
9a819804
AO
8687 done
8688fi
8689
8690for ncn_progname in lipo; do
be01d343
PB
8691 if test -n "$ncn_tool_prefix"; then
8692 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8693set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8695$as_echo_n "checking for $ac_word... " >&6; }
8696if test "${ac_cv_prog_LIPO+set}" = set; then :
8697 $as_echo_n "(cached) " >&6
be01d343
PB
8698else
8699 if test -n "$LIPO"; then
8700 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8701else
c6b750e1
DJ
8702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8703for as_dir in $PATH
8704do
8705 IFS=$as_save_IFS
8706 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8707 for ac_exec_ext in '' $ac_executable_extensions; do
8708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8709 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8711 break 2
8712 fi
8713done
81ecdfbb
RW
8714 done
8715IFS=$as_save_IFS
c6b750e1 8716
be01d343
PB
8717fi
8718fi
c6b750e1 8719LIPO=$ac_cv_prog_LIPO
be01d343 8720if test -n "$LIPO"; then
81ecdfbb
RW
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8722$as_echo "$LIPO" >&6; }
be01d343 8723else
81ecdfbb
RW
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8725$as_echo "no" >&6; }
be01d343
PB
8726fi
8727
81ecdfbb 8728
be01d343
PB
8729 fi
8730 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8731 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8732set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8734$as_echo_n "checking for $ac_word... " >&6; }
8735if test "${ac_cv_prog_LIPO+set}" = set; then :
8736 $as_echo_n "(cached) " >&6
be01d343
PB
8737else
8738 if test -n "$LIPO"; then
8739 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8740else
c6b750e1
DJ
8741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8742for as_dir in $PATH
8743do
8744 IFS=$as_save_IFS
8745 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8746 for ac_exec_ext in '' $ac_executable_extensions; do
8747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8748 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8750 break 2
8751 fi
8752done
81ecdfbb
RW
8753 done
8754IFS=$as_save_IFS
c6b750e1 8755
be01d343
PB
8756fi
8757fi
c6b750e1 8758LIPO=$ac_cv_prog_LIPO
be01d343 8759if test -n "$LIPO"; then
81ecdfbb
RW
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8761$as_echo "$LIPO" >&6; }
be01d343 8762else
81ecdfbb
RW
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8764$as_echo "no" >&6; }
be01d343 8765fi
c6b750e1 8766
81ecdfbb 8767
be01d343
PB
8768 fi
8769 test -n "$ac_cv_prog_LIPO" && break
8770done
8771
8772if test -z "$ac_cv_prog_LIPO" ; then
8773 set dummy lipo
8774 if test $build = $host ; then
8775 LIPO="$2"
8776 else
8777 LIPO="${ncn_tool_prefix}$2"
8778 fi
8779fi
8780
9a819804
AO
8781
8782
8783if test -n "$NM"; then
8784 ac_cv_prog_NM=$NM
8785elif test -n "$ac_cv_prog_NM"; then
8786 NM=$ac_cv_prog_NM
8787fi
8788
8789if test -n "$ac_cv_prog_NM"; then
8790 for ncn_progname in nm; do
8791 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8792set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8794$as_echo_n "checking for $ac_word... " >&6; }
8795if test "${ac_cv_prog_NM+set}" = set; then :
8796 $as_echo_n "(cached) " >&6
859789af
AC
8797else
8798 if test -n "$NM"; then
8799 ac_cv_prog_NM="$NM" # Let the user override the test.
8800else
c6b750e1
DJ
8801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8802for as_dir in $PATH
8803do
8804 IFS=$as_save_IFS
8805 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8806 for ac_exec_ext in '' $ac_executable_extensions; do
8807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8808 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8810 break 2
8811 fi
8812done
81ecdfbb
RW
8813 done
8814IFS=$as_save_IFS
c6b750e1 8815
859789af
AC
8816fi
8817fi
c6b750e1 8818NM=$ac_cv_prog_NM
859789af 8819if test -n "$NM"; then
81ecdfbb
RW
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8821$as_echo "$NM" >&6; }
859789af 8822else
81ecdfbb
RW
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8824$as_echo "no" >&6; }
859789af
AC
8825fi
8826
81ecdfbb 8827
9a819804
AO
8828 done
8829fi
8830
8831for ncn_progname in nm; do
8832 if test -n "$ncn_tool_prefix"; then
8833 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8834set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8836$as_echo_n "checking for $ac_word... " >&6; }
8837if test "${ac_cv_prog_NM+set}" = set; then :
8838 $as_echo_n "(cached) " >&6
859789af 8839else
05cbd757
PB
8840 if test -n "$NM"; then
8841 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 8842else
c6b750e1
DJ
8843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8844for as_dir in $PATH
8845do
8846 IFS=$as_save_IFS
8847 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8848 for ac_exec_ext in '' $ac_executable_extensions; do
8849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8850 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8852 break 2
8853 fi
8854done
81ecdfbb
RW
8855 done
8856IFS=$as_save_IFS
c6b750e1 8857
859789af
AC
8858fi
8859fi
c6b750e1 8860NM=$ac_cv_prog_NM
05cbd757 8861if test -n "$NM"; then
81ecdfbb
RW
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8863$as_echo "$NM" >&6; }
859789af 8864else
81ecdfbb
RW
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8866$as_echo "no" >&6; }
859789af 8867fi
c6b750e1 8868
81ecdfbb 8869
05cbd757 8870 fi
9a819804
AO
8871 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8872 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8873set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8875$as_echo_n "checking for $ac_word... " >&6; }
8876if test "${ac_cv_prog_NM+set}" = set; then :
8877 $as_echo_n "(cached) " >&6
9a819804
AO
8878else
8879 if test -n "$NM"; then
8880 ac_cv_prog_NM="$NM" # Let the user override the test.
8881else
8882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8883for as_dir in $PATH
8884do
8885 IFS=$as_save_IFS
8886 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8887 for ac_exec_ext in '' $ac_executable_extensions; do
8888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8889 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8891 break 2
8892 fi
8893done
81ecdfbb
RW
8894 done
8895IFS=$as_save_IFS
9a819804
AO
8896
8897fi
8898fi
8899NM=$ac_cv_prog_NM
8900if test -n "$NM"; then
81ecdfbb
RW
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8902$as_echo "$NM" >&6; }
9a819804 8903else
81ecdfbb
RW
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8905$as_echo "no" >&6; }
9a819804
AO
8906fi
8907
81ecdfbb 8908
9a819804
AO
8909 fi
8910 test -n "$ac_cv_prog_NM" && break
8911done
8912
8913if test -z "$ac_cv_prog_NM" ; then
8914 set dummy nm
8915 if test $build = $host ; then
8916 NM="$2"
8917 else
8918 NM="${ncn_tool_prefix}$2"
8919 fi
8920fi
8921
8922
8923
8924if test -n "$RANLIB"; then
8925 ac_cv_prog_RANLIB=$RANLIB
8926elif test -n "$ac_cv_prog_RANLIB"; then
8927 RANLIB=$ac_cv_prog_RANLIB
8928fi
8929
8930if test -n "$ac_cv_prog_RANLIB"; then
8931 for ncn_progname in ranlib; do
8932 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8933set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8935$as_echo_n "checking for $ac_word... " >&6; }
8936if test "${ac_cv_prog_RANLIB+set}" = set; then :
8937 $as_echo_n "(cached) " >&6
9a819804
AO
8938else
8939 if test -n "$RANLIB"; then
8940 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8941else
8942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8943for as_dir in $PATH
8944do
8945 IFS=$as_save_IFS
8946 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8947 for ac_exec_ext in '' $ac_executable_extensions; do
8948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8949 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8951 break 2
8952 fi
8953done
81ecdfbb
RW
8954 done
8955IFS=$as_save_IFS
9a819804
AO
8956
8957fi
8958fi
8959RANLIB=$ac_cv_prog_RANLIB
8960if test -n "$RANLIB"; then
81ecdfbb
RW
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8962$as_echo "$RANLIB" >&6; }
9a819804 8963else
81ecdfbb
RW
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8965$as_echo "no" >&6; }
9a819804
AO
8966fi
8967
81ecdfbb 8968
9a819804
AO
8969 done
8970fi
859789af 8971
9a819804 8972for ncn_progname in ranlib; do
05cbd757
PB
8973 if test -n "$ncn_tool_prefix"; then
8974 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8975set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8977$as_echo_n "checking for $ac_word... " >&6; }
8978if test "${ac_cv_prog_RANLIB+set}" = set; then :
8979 $as_echo_n "(cached) " >&6
859789af
AC
8980else
8981 if test -n "$RANLIB"; then
8982 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8983else
c6b750e1
DJ
8984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8985for as_dir in $PATH
8986do
8987 IFS=$as_save_IFS
8988 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8989 for ac_exec_ext in '' $ac_executable_extensions; do
8990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8991 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8993 break 2
8994 fi
8995done
81ecdfbb
RW
8996 done
8997IFS=$as_save_IFS
c6b750e1 8998
859789af
AC
8999fi
9000fi
c6b750e1 9001RANLIB=$ac_cv_prog_RANLIB
859789af 9002if test -n "$RANLIB"; then
81ecdfbb
RW
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9004$as_echo "$RANLIB" >&6; }
859789af 9005else
81ecdfbb
RW
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9007$as_echo "no" >&6; }
859789af
AC
9008fi
9009
81ecdfbb 9010
05cbd757
PB
9011 fi
9012 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9013 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9014set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9016$as_echo_n "checking for $ac_word... " >&6; }
9017if test "${ac_cv_prog_RANLIB+set}" = set; then :
9018 $as_echo_n "(cached) " >&6
859789af 9019else
05cbd757
PB
9020 if test -n "$RANLIB"; then
9021 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 9022else
c6b750e1
DJ
9023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9024for as_dir in $PATH
9025do
9026 IFS=$as_save_IFS
9027 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9028 for ac_exec_ext in '' $ac_executable_extensions; do
9029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9030 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 9031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9032 break 2
9033 fi
9034done
81ecdfbb
RW
9035 done
9036IFS=$as_save_IFS
c6b750e1 9037
859789af
AC
9038fi
9039fi
c6b750e1 9040RANLIB=$ac_cv_prog_RANLIB
05cbd757 9041if test -n "$RANLIB"; then
81ecdfbb
RW
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9043$as_echo "$RANLIB" >&6; }
859789af 9044else
81ecdfbb
RW
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9046$as_echo "no" >&6; }
859789af 9047fi
c6b750e1 9048
81ecdfbb 9049
859789af 9050 fi
05cbd757
PB
9051 test -n "$ac_cv_prog_RANLIB" && break
9052done
9053
9054if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 9055 RANLIB="true"
859789af
AC
9056fi
9057
9a819804
AO
9058
9059
9060if test -n "$STRIP"; then
9061 ac_cv_prog_STRIP=$STRIP
9062elif test -n "$ac_cv_prog_STRIP"; then
9063 STRIP=$ac_cv_prog_STRIP
9064fi
9065
9066if test -n "$ac_cv_prog_STRIP"; then
9067 for ncn_progname in strip; do
9068 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9069set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9071$as_echo_n "checking for $ac_word... " >&6; }
9072if test "${ac_cv_prog_STRIP+set}" = set; then :
9073 $as_echo_n "(cached) " >&6
9a819804
AO
9074else
9075 if test -n "$STRIP"; then
9076 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9077else
9078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9079for as_dir in $PATH
9080do
9081 IFS=$as_save_IFS
9082 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9083 for ac_exec_ext in '' $ac_executable_extensions; do
9084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9085 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9087 break 2
9088 fi
9089done
81ecdfbb
RW
9090 done
9091IFS=$as_save_IFS
9a819804
AO
9092
9093fi
9094fi
9095STRIP=$ac_cv_prog_STRIP
9096if test -n "$STRIP"; then
81ecdfbb
RW
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9098$as_echo "$STRIP" >&6; }
9a819804 9099else
81ecdfbb
RW
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9101$as_echo "no" >&6; }
9a819804
AO
9102fi
9103
81ecdfbb 9104
9a819804
AO
9105 done
9106fi
9107
9108for ncn_progname in strip; do
be01d343
PB
9109 if test -n "$ncn_tool_prefix"; then
9110 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9111set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9113$as_echo_n "checking for $ac_word... " >&6; }
9114if test "${ac_cv_prog_STRIP+set}" = set; then :
9115 $as_echo_n "(cached) " >&6
be01d343
PB
9116else
9117 if test -n "$STRIP"; then
9118 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9119else
c6b750e1
DJ
9120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9121for as_dir in $PATH
9122do
9123 IFS=$as_save_IFS
9124 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9125 for ac_exec_ext in '' $ac_executable_extensions; do
9126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9127 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9129 break 2
9130 fi
9131done
81ecdfbb
RW
9132 done
9133IFS=$as_save_IFS
c6b750e1 9134
be01d343
PB
9135fi
9136fi
c6b750e1 9137STRIP=$ac_cv_prog_STRIP
be01d343 9138if test -n "$STRIP"; then
81ecdfbb
RW
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9140$as_echo "$STRIP" >&6; }
be01d343 9141else
81ecdfbb
RW
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9143$as_echo "no" >&6; }
be01d343
PB
9144fi
9145
81ecdfbb 9146
be01d343
PB
9147 fi
9148 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9149 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9150set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9152$as_echo_n "checking for $ac_word... " >&6; }
9153if test "${ac_cv_prog_STRIP+set}" = set; then :
9154 $as_echo_n "(cached) " >&6
be01d343
PB
9155else
9156 if test -n "$STRIP"; then
9157 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9158else
c6b750e1
DJ
9159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9160for as_dir in $PATH
9161do
9162 IFS=$as_save_IFS
9163 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9164 for ac_exec_ext in '' $ac_executable_extensions; do
9165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9166 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9168 break 2
9169 fi
9170done
81ecdfbb
RW
9171 done
9172IFS=$as_save_IFS
c6b750e1 9173
be01d343
PB
9174fi
9175fi
c6b750e1 9176STRIP=$ac_cv_prog_STRIP
be01d343 9177if test -n "$STRIP"; then
81ecdfbb
RW
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9179$as_echo "$STRIP" >&6; }
be01d343 9180else
81ecdfbb
RW
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9182$as_echo "no" >&6; }
be01d343 9183fi
c6b750e1 9184
81ecdfbb 9185
be01d343
PB
9186 fi
9187 test -n "$ac_cv_prog_STRIP" && break
9188done
9189
9190if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 9191 STRIP="true"
be01d343
PB
9192fi
9193
9a819804
AO
9194
9195
9196if test -n "$WINDRES"; then
9197 ac_cv_prog_WINDRES=$WINDRES
9198elif test -n "$ac_cv_prog_WINDRES"; then
9199 WINDRES=$ac_cv_prog_WINDRES
9200fi
9201
9202if test -n "$ac_cv_prog_WINDRES"; then
9203 for ncn_progname in windres; do
9204 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9205set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9207$as_echo_n "checking for $ac_word... " >&6; }
9208if test "${ac_cv_prog_WINDRES+set}" = set; then :
9209 $as_echo_n "(cached) " >&6
9a819804
AO
9210else
9211 if test -n "$WINDRES"; then
9212 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9213else
9214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9215for as_dir in $PATH
9216do
9217 IFS=$as_save_IFS
9218 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9219 for ac_exec_ext in '' $ac_executable_extensions; do
9220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9221 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9223 break 2
9224 fi
9225done
81ecdfbb
RW
9226 done
9227IFS=$as_save_IFS
9a819804
AO
9228
9229fi
9230fi
9231WINDRES=$ac_cv_prog_WINDRES
9232if test -n "$WINDRES"; then
81ecdfbb
RW
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9234$as_echo "$WINDRES" >&6; }
9a819804 9235else
81ecdfbb
RW
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9237$as_echo "no" >&6; }
9a819804
AO
9238fi
9239
81ecdfbb 9240
9a819804
AO
9241 done
9242fi
9243
9244for ncn_progname in windres; do
05cbd757
PB
9245 if test -n "$ncn_tool_prefix"; then
9246 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9247set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9249$as_echo_n "checking for $ac_word... " >&6; }
9250if test "${ac_cv_prog_WINDRES+set}" = set; then :
9251 $as_echo_n "(cached) " >&6
859789af
AC
9252else
9253 if test -n "$WINDRES"; then
9254 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9255else
c6b750e1
DJ
9256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9257for as_dir in $PATH
9258do
9259 IFS=$as_save_IFS
9260 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9261 for ac_exec_ext in '' $ac_executable_extensions; do
9262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9263 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9265 break 2
9266 fi
9267done
81ecdfbb
RW
9268 done
9269IFS=$as_save_IFS
c6b750e1 9270
859789af
AC
9271fi
9272fi
c6b750e1 9273WINDRES=$ac_cv_prog_WINDRES
859789af 9274if test -n "$WINDRES"; then
81ecdfbb
RW
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9276$as_echo "$WINDRES" >&6; }
859789af 9277else
81ecdfbb
RW
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9279$as_echo "no" >&6; }
859789af
AC
9280fi
9281
81ecdfbb 9282
05cbd757
PB
9283 fi
9284 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9285 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9286set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9288$as_echo_n "checking for $ac_word... " >&6; }
9289if test "${ac_cv_prog_WINDRES+set}" = set; then :
9290 $as_echo_n "(cached) " >&6
859789af 9291else
05cbd757
PB
9292 if test -n "$WINDRES"; then
9293 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 9294else
c6b750e1
DJ
9295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9296for as_dir in $PATH
9297do
9298 IFS=$as_save_IFS
9299 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9300 for ac_exec_ext in '' $ac_executable_extensions; do
9301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9302 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9304 break 2
9305 fi
9306done
81ecdfbb
RW
9307 done
9308IFS=$as_save_IFS
c6b750e1 9309
859789af
AC
9310fi
9311fi
c6b750e1 9312WINDRES=$ac_cv_prog_WINDRES
05cbd757 9313if test -n "$WINDRES"; then
81ecdfbb
RW
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9315$as_echo "$WINDRES" >&6; }
859789af 9316else
81ecdfbb
RW
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9318$as_echo "no" >&6; }
859789af 9319fi
c6b750e1 9320
81ecdfbb 9321
05cbd757
PB
9322 fi
9323 test -n "$ac_cv_prog_WINDRES" && break
9324done
9325
9326if test -z "$ac_cv_prog_WINDRES" ; then
9327 set dummy windres
9328 if test $build = $host ; then
9329 WINDRES="$2"
859789af 9330 else
05cbd757 9331 WINDRES="${ncn_tool_prefix}$2"
859789af 9332 fi
859789af
AC
9333fi
9334
9a819804
AO
9335
9336
0c24b341
NC
9337if test -n "$WINDMC"; then
9338 ac_cv_prog_WINDMC=$WINDMC
9339elif test -n "$ac_cv_prog_WINDMC"; then
9340 WINDMC=$ac_cv_prog_WINDMC
9341fi
9342
9343if test -n "$ac_cv_prog_WINDMC"; then
9344 for ncn_progname in windmc; do
9345 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9346set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9348$as_echo_n "checking for $ac_word... " >&6; }
9349if test "${ac_cv_prog_WINDMC+set}" = set; then :
9350 $as_echo_n "(cached) " >&6
0c24b341
NC
9351else
9352 if test -n "$WINDMC"; then
9353 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9354else
9355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9356for as_dir in $PATH
9357do
9358 IFS=$as_save_IFS
9359 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9360 for ac_exec_ext in '' $ac_executable_extensions; do
9361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9362 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9364 break 2
9365 fi
9366done
81ecdfbb
RW
9367 done
9368IFS=$as_save_IFS
0c24b341
NC
9369
9370fi
9371fi
9372WINDMC=$ac_cv_prog_WINDMC
9373if test -n "$WINDMC"; then
81ecdfbb
RW
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9375$as_echo "$WINDMC" >&6; }
0c24b341 9376else
81ecdfbb
RW
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9378$as_echo "no" >&6; }
0c24b341
NC
9379fi
9380
81ecdfbb 9381
0c24b341
NC
9382 done
9383fi
9384
9385for ncn_progname in windmc; do
9386 if test -n "$ncn_tool_prefix"; then
9387 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9388set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9390$as_echo_n "checking for $ac_word... " >&6; }
9391if test "${ac_cv_prog_WINDMC+set}" = set; then :
9392 $as_echo_n "(cached) " >&6
0c24b341
NC
9393else
9394 if test -n "$WINDMC"; then
9395 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9396else
9397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9398for as_dir in $PATH
9399do
9400 IFS=$as_save_IFS
9401 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9402 for ac_exec_ext in '' $ac_executable_extensions; do
9403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9404 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9406 break 2
9407 fi
9408done
81ecdfbb
RW
9409 done
9410IFS=$as_save_IFS
0c24b341
NC
9411
9412fi
9413fi
9414WINDMC=$ac_cv_prog_WINDMC
9415if test -n "$WINDMC"; then
81ecdfbb
RW
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9417$as_echo "$WINDMC" >&6; }
0c24b341 9418else
81ecdfbb
RW
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9420$as_echo "no" >&6; }
0c24b341
NC
9421fi
9422
81ecdfbb 9423
0c24b341
NC
9424 fi
9425 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9426 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9427set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9429$as_echo_n "checking for $ac_word... " >&6; }
9430if test "${ac_cv_prog_WINDMC+set}" = set; then :
9431 $as_echo_n "(cached) " >&6
0c24b341
NC
9432else
9433 if test -n "$WINDMC"; then
9434 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9435else
9436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9437for as_dir in $PATH
9438do
9439 IFS=$as_save_IFS
9440 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9441 for ac_exec_ext in '' $ac_executable_extensions; do
9442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9443 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9445 break 2
9446 fi
9447done
81ecdfbb
RW
9448 done
9449IFS=$as_save_IFS
0c24b341
NC
9450
9451fi
9452fi
9453WINDMC=$ac_cv_prog_WINDMC
9454if test -n "$WINDMC"; then
81ecdfbb
RW
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9456$as_echo "$WINDMC" >&6; }
0c24b341 9457else
81ecdfbb
RW
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9459$as_echo "no" >&6; }
0c24b341
NC
9460fi
9461
81ecdfbb 9462
0c24b341
NC
9463 fi
9464 test -n "$ac_cv_prog_WINDMC" && break
9465done
9466
9467if test -z "$ac_cv_prog_WINDMC" ; then
9468 set dummy windmc
9469 if test $build = $host ; then
9470 WINDMC="$2"
9471 else
9472 WINDMC="${ncn_tool_prefix}$2"
9473 fi
9474fi
9475
9476
9477
9a819804
AO
9478if test -n "$OBJCOPY"; then
9479 ac_cv_prog_OBJCOPY=$OBJCOPY
9480elif test -n "$ac_cv_prog_OBJCOPY"; then
9481 OBJCOPY=$ac_cv_prog_OBJCOPY
9482fi
9483
9484if test -n "$ac_cv_prog_OBJCOPY"; then
9485 for ncn_progname in objcopy; do
9486 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9487set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9489$as_echo_n "checking for $ac_word... " >&6; }
9490if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9491 $as_echo_n "(cached) " >&6
9a819804
AO
9492else
9493 if test -n "$OBJCOPY"; then
9494 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9495else
9496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9497for as_dir in $PATH
9498do
9499 IFS=$as_save_IFS
9500 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9501 for ac_exec_ext in '' $ac_executable_extensions; do
9502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9503 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9505 break 2
9506 fi
9507done
81ecdfbb
RW
9508 done
9509IFS=$as_save_IFS
9a819804
AO
9510
9511fi
9512fi
9513OBJCOPY=$ac_cv_prog_OBJCOPY
9514if test -n "$OBJCOPY"; then
81ecdfbb
RW
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9516$as_echo "$OBJCOPY" >&6; }
9a819804 9517else
81ecdfbb
RW
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9519$as_echo "no" >&6; }
9a819804
AO
9520fi
9521
81ecdfbb 9522
9a819804
AO
9523 done
9524fi
9525
9526for ncn_progname in objcopy; do
05cbd757
PB
9527 if test -n "$ncn_tool_prefix"; then
9528 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9529set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9531$as_echo_n "checking for $ac_word... " >&6; }
9532if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9533 $as_echo_n "(cached) " >&6
859789af
AC
9534else
9535 if test -n "$OBJCOPY"; then
9536 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9537else
c6b750e1
DJ
9538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9539for as_dir in $PATH
9540do
9541 IFS=$as_save_IFS
9542 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9543 for ac_exec_ext in '' $ac_executable_extensions; do
9544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9545 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9547 break 2
9548 fi
9549done
81ecdfbb
RW
9550 done
9551IFS=$as_save_IFS
c6b750e1 9552
859789af
AC
9553fi
9554fi
c6b750e1 9555OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9556if test -n "$OBJCOPY"; then
81ecdfbb
RW
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9558$as_echo "$OBJCOPY" >&6; }
859789af 9559else
81ecdfbb
RW
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9561$as_echo "no" >&6; }
859789af
AC
9562fi
9563
81ecdfbb 9564
05cbd757
PB
9565 fi
9566 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9567 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9568set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9570$as_echo_n "checking for $ac_word... " >&6; }
9571if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9572 $as_echo_n "(cached) " >&6
859789af 9573else
05cbd757
PB
9574 if test -n "$OBJCOPY"; then
9575 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 9576else
c6b750e1
DJ
9577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9578for as_dir in $PATH
9579do
9580 IFS=$as_save_IFS
9581 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9582 for ac_exec_ext in '' $ac_executable_extensions; do
9583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9584 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9586 break 2
9587 fi
9588done
81ecdfbb
RW
9589 done
9590IFS=$as_save_IFS
c6b750e1 9591
859789af
AC
9592fi
9593fi
c6b750e1 9594OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 9595if test -n "$OBJCOPY"; then
81ecdfbb
RW
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9597$as_echo "$OBJCOPY" >&6; }
859789af 9598else
81ecdfbb
RW
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9600$as_echo "no" >&6; }
859789af 9601fi
c6b750e1 9602
81ecdfbb 9603
05cbd757
PB
9604 fi
9605 test -n "$ac_cv_prog_OBJCOPY" && break
9606done
9607
9608if test -z "$ac_cv_prog_OBJCOPY" ; then
9609 set dummy objcopy
9610 if test $build = $host ; then
9611 OBJCOPY="$2"
859789af 9612 else
05cbd757 9613 OBJCOPY="${ncn_tool_prefix}$2"
859789af 9614 fi
859789af
AC
9615fi
9616
9a819804
AO
9617
9618
9619if test -n "$OBJDUMP"; then
9620 ac_cv_prog_OBJDUMP=$OBJDUMP
9621elif test -n "$ac_cv_prog_OBJDUMP"; then
9622 OBJDUMP=$ac_cv_prog_OBJDUMP
9623fi
9624
9625if test -n "$ac_cv_prog_OBJDUMP"; then
9626 for ncn_progname in objdump; do
9627 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9628set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9630$as_echo_n "checking for $ac_word... " >&6; }
9631if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9632 $as_echo_n "(cached) " >&6
9a819804
AO
9633else
9634 if test -n "$OBJDUMP"; then
9635 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9636else
9637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9638for as_dir in $PATH
9639do
9640 IFS=$as_save_IFS
9641 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9642 for ac_exec_ext in '' $ac_executable_extensions; do
9643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9644 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9646 break 2
9647 fi
9648done
81ecdfbb
RW
9649 done
9650IFS=$as_save_IFS
9a819804
AO
9651
9652fi
9653fi
9654OBJDUMP=$ac_cv_prog_OBJDUMP
9655if test -n "$OBJDUMP"; then
81ecdfbb
RW
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9657$as_echo "$OBJDUMP" >&6; }
9a819804 9658else
81ecdfbb
RW
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9660$as_echo "no" >&6; }
9a819804
AO
9661fi
9662
81ecdfbb 9663
9a819804
AO
9664 done
9665fi
9666
9667for ncn_progname in objdump; do
05cbd757
PB
9668 if test -n "$ncn_tool_prefix"; then
9669 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9670set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9672$as_echo_n "checking for $ac_word... " >&6; }
9673if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9674 $as_echo_n "(cached) " >&6
859789af
AC
9675else
9676 if test -n "$OBJDUMP"; then
9677 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9678else
c6b750e1
DJ
9679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9680for as_dir in $PATH
9681do
9682 IFS=$as_save_IFS
9683 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9684 for ac_exec_ext in '' $ac_executable_extensions; do
9685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9686 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9688 break 2
9689 fi
9690done
81ecdfbb
RW
9691 done
9692IFS=$as_save_IFS
c6b750e1 9693
859789af
AC
9694fi
9695fi
c6b750e1 9696OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 9697if test -n "$OBJDUMP"; then
81ecdfbb
RW
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9699$as_echo "$OBJDUMP" >&6; }
859789af 9700else
81ecdfbb
RW
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9702$as_echo "no" >&6; }
859789af
AC
9703fi
9704
81ecdfbb 9705
05cbd757
PB
9706 fi
9707 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9708 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9709set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9711$as_echo_n "checking for $ac_word... " >&6; }
9712if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9713 $as_echo_n "(cached) " >&6
859789af 9714else
05cbd757
PB
9715 if test -n "$OBJDUMP"; then
9716 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 9717else
c6b750e1
DJ
9718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9719for as_dir in $PATH
9720do
9721 IFS=$as_save_IFS
9722 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9723 for ac_exec_ext in '' $ac_executable_extensions; do
9724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9725 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9727 break 2
9728 fi
9729done
81ecdfbb
RW
9730 done
9731IFS=$as_save_IFS
c6b750e1 9732
859789af
AC
9733fi
9734fi
c6b750e1 9735OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 9736if test -n "$OBJDUMP"; then
81ecdfbb
RW
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9738$as_echo "$OBJDUMP" >&6; }
859789af 9739else
81ecdfbb
RW
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9741$as_echo "no" >&6; }
859789af 9742fi
c6b750e1 9743
81ecdfbb 9744
05cbd757
PB
9745 fi
9746 test -n "$ac_cv_prog_OBJDUMP" && break
9747done
9748
9749if test -z "$ac_cv_prog_OBJDUMP" ; then
9750 set dummy objdump
9751 if test $build = $host ; then
9752 OBJDUMP="$2"
859789af 9753 else
05cbd757 9754 OBJDUMP="${ncn_tool_prefix}$2"
859789af 9755 fi
859789af
AC
9756fi
9757
a0da8069
NN
9758
9759
b121d7d4
DD
9760if test -n "$READELF"; then
9761 ac_cv_prog_READELF=$READELF
9762elif test -n "$ac_cv_prog_READELF"; then
9763 READELF=$ac_cv_prog_READELF
9764fi
9765
9766if test -n "$ac_cv_prog_READELF"; then
9767 for ncn_progname in readelf; do
9768 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9769set dummy ${ncn_progname}; ac_word=$2
9770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9771$as_echo_n "checking for $ac_word... " >&6; }
9772if test "${ac_cv_prog_READELF+set}" = set; then :
9773 $as_echo_n "(cached) " >&6
9774else
9775 if test -n "$READELF"; then
9776 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9777else
9778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9779for as_dir in $PATH
9780do
9781 IFS=$as_save_IFS
9782 test -z "$as_dir" && as_dir=.
9783 for ac_exec_ext in '' $ac_executable_extensions; do
9784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9785 ac_cv_prog_READELF="${ncn_progname}"
9786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9787 break 2
9788 fi
9789done
9790 done
9791IFS=$as_save_IFS
9792
9793fi
9794fi
9795READELF=$ac_cv_prog_READELF
9796if test -n "$READELF"; then
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9798$as_echo "$READELF" >&6; }
9799else
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9801$as_echo "no" >&6; }
9802fi
9803
9804
9805 done
9806fi
9807
9808for ncn_progname in readelf; do
9809 if test -n "$ncn_tool_prefix"; then
9810 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9811set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9813$as_echo_n "checking for $ac_word... " >&6; }
9814if test "${ac_cv_prog_READELF+set}" = set; then :
9815 $as_echo_n "(cached) " >&6
9816else
9817 if test -n "$READELF"; then
9818 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9819else
9820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9821for as_dir in $PATH
9822do
9823 IFS=$as_save_IFS
9824 test -z "$as_dir" && as_dir=.
9825 for ac_exec_ext in '' $ac_executable_extensions; do
9826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9827 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9829 break 2
9830 fi
9831done
9832 done
9833IFS=$as_save_IFS
9834
9835fi
9836fi
9837READELF=$ac_cv_prog_READELF
9838if test -n "$READELF"; then
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9840$as_echo "$READELF" >&6; }
9841else
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9843$as_echo "no" >&6; }
9844fi
9845
9846
9847 fi
9848 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9849 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9850set dummy ${ncn_progname}; ac_word=$2
9851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9852$as_echo_n "checking for $ac_word... " >&6; }
9853if test "${ac_cv_prog_READELF+set}" = set; then :
9854 $as_echo_n "(cached) " >&6
9855else
9856 if test -n "$READELF"; then
9857 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9858else
9859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9860for as_dir in $PATH
9861do
9862 IFS=$as_save_IFS
9863 test -z "$as_dir" && as_dir=.
9864 for ac_exec_ext in '' $ac_executable_extensions; do
9865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9866 ac_cv_prog_READELF="${ncn_progname}"
9867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9868 break 2
9869 fi
9870done
9871 done
9872IFS=$as_save_IFS
9873
9874fi
9875fi
9876READELF=$ac_cv_prog_READELF
9877if test -n "$READELF"; then
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9879$as_echo "$READELF" >&6; }
9880else
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9882$as_echo "no" >&6; }
9883fi
9884
9885
9886 fi
9887 test -n "$ac_cv_prog_READELF" && break
9888done
9889
9890if test -z "$ac_cv_prog_READELF" ; then
9891 set dummy readelf
9892 if test $build = $host ; then
9893 READELF="$2"
9894 else
9895 READELF="${ncn_tool_prefix}$2"
9896 fi
9897fi
9898
9899
9900
a0da8069
NN
9901
9902
9903
be01d343 9904# Target tools.
c6b750e1 9905
81ecdfbb
RW
9906# Check whether --with-build-time-tools was given.
9907if test "${with_build_time_tools+set}" = set; then :
9908 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
9909 x/*) ;;
9910 *)
9911 with_build_time_tools=
81ecdfbb
RW
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9913$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
9914 ;;
9915 esac
859789af 9916else
2429c060 9917 with_build_time_tools=
81ecdfbb
RW
9918fi
9919
859789af 9920
9a819804
AO
9921
9922
9923if test -n "$CC_FOR_TARGET"; then
9924 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9925elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9926 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9927fi
9928
9929if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9930 for ncn_progname in cc gcc; do
9931 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9932set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9934$as_echo_n "checking for $ac_word... " >&6; }
9935if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9936 $as_echo_n "(cached) " >&6
9a819804
AO
9937else
9938 if test -n "$CC_FOR_TARGET"; then
9939 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9940else
9941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9942for as_dir in $PATH
9943do
9944 IFS=$as_save_IFS
9945 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9946 for ac_exec_ext in '' $ac_executable_extensions; do
9947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9948 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9950 break 2
9951 fi
9952done
81ecdfbb
RW
9953 done
9954IFS=$as_save_IFS
9a819804
AO
9955
9956fi
9957fi
9958CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9959if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9961$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 9962else
81ecdfbb
RW
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9964$as_echo "no" >&6; }
9a819804
AO
9965fi
9966
81ecdfbb 9967
9a819804
AO
9968 done
9969fi
9970
9971if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9972 for ncn_progname in cc gcc; do
81ecdfbb
RW
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9974$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9975 if test -x $with_build_time_tools/${ncn_progname}; then
9976 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9978$as_echo "yes" >&6; }
cac3d6c4 9979 break
2429c060 9980 else
81ecdfbb
RW
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9982$as_echo "no" >&6; }
cac3d6c4
CM
9983 fi
9984 done
55db4b87
PB
9985fi
9986
2429c060
PB
9987if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9988 for ncn_progname in cc gcc; do
9989 if test -n "$ncn_target_tool_prefix"; then
9990 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9991set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9993$as_echo_n "checking for $ac_word... " >&6; }
9994if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9995 $as_echo_n "(cached) " >&6
55db4b87
PB
9996else
9997 if test -n "$CC_FOR_TARGET"; then
9998 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9999else
c6b750e1
DJ
10000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10001for as_dir in $PATH
10002do
10003 IFS=$as_save_IFS
10004 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10005 for ac_exec_ext in '' $ac_executable_extensions; do
10006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10007 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10009 break 2
10010 fi
10011done
81ecdfbb
RW
10012 done
10013IFS=$as_save_IFS
c6b750e1 10014
55db4b87
PB
10015fi
10016fi
c6b750e1 10017CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 10018if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10020$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10021else
81ecdfbb
RW
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10023$as_echo "no" >&6; }
55db4b87
PB
10024fi
10025
81ecdfbb 10026
2429c060
PB
10027 fi
10028 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10029 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10030set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10032$as_echo_n "checking for $ac_word... " >&6; }
10033if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10034 $as_echo_n "(cached) " >&6
55db4b87 10035else
05cbd757
PB
10036 if test -n "$CC_FOR_TARGET"; then
10037 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 10038else
c6b750e1
DJ
10039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10040for as_dir in $PATH
10041do
10042 IFS=$as_save_IFS
10043 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10044 for ac_exec_ext in '' $ac_executable_extensions; do
10045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10046 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10048 break 2
10049 fi
10050done
81ecdfbb
RW
10051 done
10052IFS=$as_save_IFS
c6b750e1 10053
55db4b87
PB
10054fi
10055fi
c6b750e1 10056CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 10057if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10059$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10060else
81ecdfbb
RW
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10062$as_echo "no" >&6; }
55db4b87 10063fi
c6b750e1 10064
81ecdfbb 10065
2429c060
PB
10066 fi
10067 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10068 done
10069fi
c6b750e1 10070
05cbd757
PB
10071if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10072 set dummy cc gcc
10073 if test $build = $target ; then
10074 CC_FOR_TARGET="$2"
55db4b87 10075 else
05cbd757 10076 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10077 fi
d3f5afc4
MS
10078else
10079 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
10080fi
10081
9a819804
AO
10082
10083
10084if test -n "$CXX_FOR_TARGET"; then
10085 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10086elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10087 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10088fi
10089
10090if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10091 for ncn_progname in c++ g++ cxx gxx; do
10092 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10093set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10095$as_echo_n "checking for $ac_word... " >&6; }
10096if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10097 $as_echo_n "(cached) " >&6
9a819804
AO
10098else
10099 if test -n "$CXX_FOR_TARGET"; then
10100 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10101else
10102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10103for as_dir in $PATH
10104do
10105 IFS=$as_save_IFS
10106 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10107 for ac_exec_ext in '' $ac_executable_extensions; do
10108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10109 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10111 break 2
10112 fi
10113done
81ecdfbb
RW
10114 done
10115IFS=$as_save_IFS
9a819804
AO
10116
10117fi
10118fi
10119CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10120if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10122$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 10123else
81ecdfbb
RW
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10125$as_echo "no" >&6; }
9a819804
AO
10126fi
10127
81ecdfbb 10128
9a819804
AO
10129 done
10130fi
10131
10132if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10133 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10135$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10136 if test -x $with_build_time_tools/${ncn_progname}; then
10137 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10139$as_echo "yes" >&6; }
2429c060
PB
10140 break
10141 else
81ecdfbb
RW
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10143$as_echo "no" >&6; }
2429c060
PB
10144 fi
10145 done
10146fi
10147
10148if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10149 for ncn_progname in c++ g++ cxx gxx; do
10150 if test -n "$ncn_target_tool_prefix"; then
10151 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10152set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10154$as_echo_n "checking for $ac_word... " >&6; }
10155if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10156 $as_echo_n "(cached) " >&6
55db4b87
PB
10157else
10158 if test -n "$CXX_FOR_TARGET"; then
10159 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10160else
c6b750e1
DJ
10161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10162for as_dir in $PATH
10163do
10164 IFS=$as_save_IFS
10165 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10166 for ac_exec_ext in '' $ac_executable_extensions; do
10167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10168 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10170 break 2
10171 fi
10172done
81ecdfbb
RW
10173 done
10174IFS=$as_save_IFS
c6b750e1 10175
55db4b87
PB
10176fi
10177fi
c6b750e1 10178CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 10179if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10181$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10182else
81ecdfbb
RW
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10184$as_echo "no" >&6; }
55db4b87
PB
10185fi
10186
81ecdfbb 10187
2429c060
PB
10188 fi
10189 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10190 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10191set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10193$as_echo_n "checking for $ac_word... " >&6; }
10194if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10195 $as_echo_n "(cached) " >&6
55db4b87 10196else
05cbd757
PB
10197 if test -n "$CXX_FOR_TARGET"; then
10198 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 10199else
c6b750e1
DJ
10200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10201for as_dir in $PATH
10202do
10203 IFS=$as_save_IFS
10204 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10205 for ac_exec_ext in '' $ac_executable_extensions; do
10206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10207 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10209 break 2
10210 fi
10211done
81ecdfbb
RW
10212 done
10213IFS=$as_save_IFS
c6b750e1 10214
55db4b87
PB
10215fi
10216fi
c6b750e1 10217CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 10218if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10220$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10221else
81ecdfbb
RW
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10223$as_echo "no" >&6; }
55db4b87 10224fi
c6b750e1 10225
81ecdfbb 10226
2429c060
PB
10227 fi
10228 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10229 done
10230fi
c6b750e1 10231
05cbd757
PB
10232if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10233 set dummy c++ g++ cxx gxx
10234 if test $build = $target ; then
10235 CXX_FOR_TARGET="$2"
55db4b87 10236 else
05cbd757 10237 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10238 fi
d3f5afc4
MS
10239else
10240 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
10241fi
10242
9a819804
AO
10243
10244
10245if test -n "$GCC_FOR_TARGET"; then
10246 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10247elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10248 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10249fi
10250
10251if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10252 for ncn_progname in gcc; do
10253 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10254set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10256$as_echo_n "checking for $ac_word... " >&6; }
10257if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10258 $as_echo_n "(cached) " >&6
9a819804
AO
10259else
10260 if test -n "$GCC_FOR_TARGET"; then
10261 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10262else
10263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10264for as_dir in $PATH
10265do
10266 IFS=$as_save_IFS
10267 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10268 for ac_exec_ext in '' $ac_executable_extensions; do
10269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10270 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10272 break 2
10273 fi
10274done
81ecdfbb
RW
10275 done
10276IFS=$as_save_IFS
9a819804
AO
10277
10278fi
10279fi
10280GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10281if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10283$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 10284else
81ecdfbb
RW
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10286$as_echo "no" >&6; }
9a819804
AO
10287fi
10288
81ecdfbb 10289
9a819804
AO
10290 done
10291fi
10292
10293if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10294 for ncn_progname in gcc; do
81ecdfbb
RW
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10296$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10297 if test -x $with_build_time_tools/${ncn_progname}; then
10298 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10300$as_echo "yes" >&6; }
2429c060
PB
10301 break
10302 else
81ecdfbb
RW
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10304$as_echo "no" >&6; }
2429c060
PB
10305 fi
10306 done
10307fi
10308
10309if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10310 for ncn_progname in gcc; do
10311 if test -n "$ncn_target_tool_prefix"; then
10312 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10313set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10315$as_echo_n "checking for $ac_word... " >&6; }
10316if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10317 $as_echo_n "(cached) " >&6
859789af 10318else
2429c060
PB
10319 if test -n "$GCC_FOR_TARGET"; then
10320 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10321else
c6b750e1
DJ
10322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10323for as_dir in $PATH
10324do
10325 IFS=$as_save_IFS
10326 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10327 for ac_exec_ext in '' $ac_executable_extensions; do
10328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10329 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10331 break 2
10332 fi
10333done
81ecdfbb
RW
10334 done
10335IFS=$as_save_IFS
c6b750e1 10336
55db4b87
PB
10337fi
10338fi
c6b750e1 10339GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10340if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10342$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10343else
81ecdfbb
RW
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10345$as_echo "no" >&6; }
55db4b87
PB
10346fi
10347
81ecdfbb 10348
2429c060
PB
10349 fi
10350 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10351 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10352set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10354$as_echo_n "checking for $ac_word... " >&6; }
10355if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10356 $as_echo_n "(cached) " >&6
55db4b87 10357else
05cbd757
PB
10358 if test -n "$GCC_FOR_TARGET"; then
10359 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10360else
c6b750e1
DJ
10361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10362for as_dir in $PATH
10363do
10364 IFS=$as_save_IFS
10365 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10366 for ac_exec_ext in '' $ac_executable_extensions; do
10367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10368 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10370 break 2
10371 fi
10372done
81ecdfbb
RW
10373 done
10374IFS=$as_save_IFS
c6b750e1 10375
55db4b87
PB
10376fi
10377fi
c6b750e1 10378GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10379if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10381$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10382else
81ecdfbb
RW
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10384$as_echo "no" >&6; }
55db4b87 10385fi
c6b750e1 10386
81ecdfbb 10387
2429c060
PB
10388 fi
10389 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10390 done
10391fi
c6b750e1 10392
05cbd757
PB
10393if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10394 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10395else
10396 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10397fi
10398
9a819804
AO
10399
10400
10401if test -n "$GCJ_FOR_TARGET"; then
10402 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10403elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10404 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10405fi
10406
10407if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10408 for ncn_progname in gcj; do
10409 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10410set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10412$as_echo_n "checking for $ac_word... " >&6; }
10413if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10414 $as_echo_n "(cached) " >&6
9a819804
AO
10415else
10416 if test -n "$GCJ_FOR_TARGET"; then
10417 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10418else
10419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10420for as_dir in $PATH
10421do
10422 IFS=$as_save_IFS
10423 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10424 for ac_exec_ext in '' $ac_executable_extensions; do
10425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10426 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10428 break 2
10429 fi
10430done
81ecdfbb
RW
10431 done
10432IFS=$as_save_IFS
9a819804
AO
10433
10434fi
10435fi
10436GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10437if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10439$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10440else
81ecdfbb
RW
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10442$as_echo "no" >&6; }
9a819804
AO
10443fi
10444
81ecdfbb 10445
9a819804
AO
10446 done
10447fi
10448
10449if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10450 for ncn_progname in gcj; do
81ecdfbb
RW
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10452$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10453 if test -x $with_build_time_tools/${ncn_progname}; then
10454 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10456$as_echo "yes" >&6; }
2429c060
PB
10457 break
10458 else
81ecdfbb
RW
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10460$as_echo "no" >&6; }
2429c060
PB
10461 fi
10462 done
10463fi
10464
10465if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10466 for ncn_progname in gcj; do
10467 if test -n "$ncn_target_tool_prefix"; then
10468 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10469set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10471$as_echo_n "checking for $ac_word... " >&6; }
10472if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10473 $as_echo_n "(cached) " >&6
55db4b87
PB
10474else
10475 if test -n "$GCJ_FOR_TARGET"; then
10476 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10477else
c6b750e1
DJ
10478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10479for as_dir in $PATH
10480do
10481 IFS=$as_save_IFS
10482 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10483 for ac_exec_ext in '' $ac_executable_extensions; do
10484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10485 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10487 break 2
10488 fi
10489done
81ecdfbb
RW
10490 done
10491IFS=$as_save_IFS
c6b750e1 10492
55db4b87
PB
10493fi
10494fi
9a819804
AO
10495GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10496if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10498$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10499else
81ecdfbb
RW
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10501$as_echo "no" >&6; }
9a819804
AO
10502fi
10503
81ecdfbb 10504
9a819804
AO
10505 fi
10506 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10507 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10508set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10510$as_echo_n "checking for $ac_word... " >&6; }
10511if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10512 $as_echo_n "(cached) " >&6
9a819804
AO
10513else
10514 if test -n "$GCJ_FOR_TARGET"; then
10515 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10516else
10517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10518for as_dir in $PATH
10519do
10520 IFS=$as_save_IFS
10521 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10522 for ac_exec_ext in '' $ac_executable_extensions; do
10523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10524 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10526 break 2
10527 fi
10528done
81ecdfbb
RW
10529 done
10530IFS=$as_save_IFS
9a819804
AO
10531
10532fi
10533fi
10534GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10535if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10537$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10538else
81ecdfbb
RW
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10540$as_echo "no" >&6; }
9a819804
AO
10541fi
10542
81ecdfbb 10543
9a819804
AO
10544 fi
10545 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10546 done
10547fi
10548
10549if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10550 set dummy gcj
10551 if test $build = $target ; then
10552 GCJ_FOR_TARGET="$2"
10553 else
10554 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10555 fi
d3f5afc4
MS
10556else
10557 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
10558fi
10559
10560
10561
10562if test -n "$GFORTRAN_FOR_TARGET"; then
10563 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10564elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10565 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10566fi
10567
9a819804
AO
10568if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10569 for ncn_progname in gfortran; do
10570 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10571set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10573$as_echo_n "checking for $ac_word... " >&6; }
10574if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10575 $as_echo_n "(cached) " >&6
55db4b87 10576else
9a819804
AO
10577 if test -n "$GFORTRAN_FOR_TARGET"; then
10578 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10579else
c6b750e1
DJ
10580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10581for as_dir in $PATH
10582do
10583 IFS=$as_save_IFS
10584 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10585 for ac_exec_ext in '' $ac_executable_extensions; do
10586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10587 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10589 break 2
10590 fi
10591done
81ecdfbb
RW
10592 done
10593IFS=$as_save_IFS
c6b750e1 10594
55db4b87
PB
10595fi
10596fi
9a819804
AO
10597GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10598if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10600$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10601else
81ecdfbb
RW
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10603$as_echo "no" >&6; }
55db4b87 10604fi
c6b750e1 10605
81ecdfbb 10606
2429c060
PB
10607 done
10608fi
c6b750e1 10609
9a819804 10610if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10611 for ncn_progname in gfortran; do
81ecdfbb
RW
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10613$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10614 if test -x $with_build_time_tools/${ncn_progname}; then
10615 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10617$as_echo "yes" >&6; }
2429c060
PB
10618 break
10619 else
81ecdfbb
RW
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10621$as_echo "no" >&6; }
2429c060
PB
10622 fi
10623 done
10624fi
10625
10626if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10627 for ncn_progname in gfortran; do
10628 if test -n "$ncn_target_tool_prefix"; then
10629 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10630set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10632$as_echo_n "checking for $ac_word... " >&6; }
10633if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10634 $as_echo_n "(cached) " >&6
55db4b87
PB
10635else
10636 if test -n "$GFORTRAN_FOR_TARGET"; then
10637 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10638else
c6b750e1
DJ
10639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10640for as_dir in $PATH
10641do
10642 IFS=$as_save_IFS
10643 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10644 for ac_exec_ext in '' $ac_executable_extensions; do
10645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10646 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10648 break 2
10649 fi
10650done
81ecdfbb
RW
10651 done
10652IFS=$as_save_IFS
c6b750e1 10653
55db4b87
PB
10654fi
10655fi
c6b750e1 10656GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 10657if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10659$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10660else
81ecdfbb
RW
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10662$as_echo "no" >&6; }
55db4b87
PB
10663fi
10664
81ecdfbb 10665
2429c060
PB
10666 fi
10667 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10668 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10669set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10671$as_echo_n "checking for $ac_word... " >&6; }
10672if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10673 $as_echo_n "(cached) " >&6
55db4b87 10674else
05cbd757 10675 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
10676 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10677else
10678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10679for as_dir in $PATH
10680do
10681 IFS=$as_save_IFS
10682 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10683 for ac_exec_ext in '' $ac_executable_extensions; do
10684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10685 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10687 break 2
10688 fi
10689done
81ecdfbb
RW
10690 done
10691IFS=$as_save_IFS
c6b750e1 10692
55db4b87
PB
10693fi
10694fi
c6b750e1 10695GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 10696if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10698$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10699else
81ecdfbb
RW
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10701$as_echo "no" >&6; }
55db4b87 10702fi
c6b750e1 10703
81ecdfbb 10704
2429c060
PB
10705 fi
10706 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10707 done
10708fi
c6b750e1 10709
05cbd757
PB
10710if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10711 set dummy gfortran
10712 if test $build = $target ; then
10713 GFORTRAN_FOR_TARGET="$2"
55db4b87 10714 else
05cbd757 10715 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10716 fi
d3f5afc4
MS
10717else
10718 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
10719fi
10720
2429c060
PB
10721
10722
e552509b
ILT
10723if test -n "$GOC_FOR_TARGET"; then
10724 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10725elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10726 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10727fi
10728
10729if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10730 for ncn_progname in gccgo; do
10731 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10732set dummy ${ncn_progname}; ac_word=$2
10733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10734$as_echo_n "checking for $ac_word... " >&6; }
10735if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10736 $as_echo_n "(cached) " >&6
10737else
10738 if test -n "$GOC_FOR_TARGET"; then
10739 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10740else
10741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10742for as_dir in $PATH
10743do
10744 IFS=$as_save_IFS
10745 test -z "$as_dir" && as_dir=.
10746 for ac_exec_ext in '' $ac_executable_extensions; do
10747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10748 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10750 break 2
10751 fi
10752done
10753 done
10754IFS=$as_save_IFS
10755
10756fi
10757fi
10758GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10759if test -n "$GOC_FOR_TARGET"; then
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10761$as_echo "$GOC_FOR_TARGET" >&6; }
10762else
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10764$as_echo "no" >&6; }
10765fi
10766
10767
10768 done
10769fi
10770
10771if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10772 for ncn_progname in gccgo; do
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10774$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10775 if test -x $with_build_time_tools/${ncn_progname}; then
10776 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10778$as_echo "yes" >&6; }
10779 break
10780 else
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10782$as_echo "no" >&6; }
10783 fi
10784 done
10785fi
10786
10787if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10788 for ncn_progname in gccgo; do
10789 if test -n "$ncn_target_tool_prefix"; then
10790 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10791set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10793$as_echo_n "checking for $ac_word... " >&6; }
10794if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10795 $as_echo_n "(cached) " >&6
10796else
10797 if test -n "$GOC_FOR_TARGET"; then
10798 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10799else
10800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10801for as_dir in $PATH
10802do
10803 IFS=$as_save_IFS
10804 test -z "$as_dir" && as_dir=.
10805 for ac_exec_ext in '' $ac_executable_extensions; do
10806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10807 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10809 break 2
10810 fi
10811done
10812 done
10813IFS=$as_save_IFS
10814
10815fi
10816fi
10817GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10818if test -n "$GOC_FOR_TARGET"; then
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10820$as_echo "$GOC_FOR_TARGET" >&6; }
10821else
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10823$as_echo "no" >&6; }
10824fi
10825
10826
10827 fi
10828 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10829 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10830set dummy ${ncn_progname}; ac_word=$2
10831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10832$as_echo_n "checking for $ac_word... " >&6; }
10833if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10834 $as_echo_n "(cached) " >&6
10835else
10836 if test -n "$GOC_FOR_TARGET"; then
10837 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10838else
10839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10840for as_dir in $PATH
10841do
10842 IFS=$as_save_IFS
10843 test -z "$as_dir" && as_dir=.
10844 for ac_exec_ext in '' $ac_executable_extensions; do
10845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10846 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10848 break 2
10849 fi
10850done
10851 done
10852IFS=$as_save_IFS
10853
10854fi
10855fi
10856GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10857if test -n "$GOC_FOR_TARGET"; then
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10859$as_echo "$GOC_FOR_TARGET" >&6; }
10860else
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10862$as_echo "no" >&6; }
10863fi
10864
10865
10866 fi
10867 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10868 done
10869fi
10870
10871if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10872 set dummy gccgo
10873 if test $build = $target ; then
10874 GOC_FOR_TARGET="$2"
10875 else
10876 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10877 fi
10878else
10879 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10880fi
10881
10882
10883
2429c060
PB
10884cat > conftest.c << \EOF
10885#ifdef __GNUC__
10886 gcc_yay;
10887#endif
10888EOF
10889if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10890 have_gcc_for_target=yes
859789af 10891else
2429c060
PB
10892 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10893 have_gcc_for_target=no
859789af 10894fi
2429c060
PB
10895rm conftest.c
10896
10897
10898
859789af 10899
2429c060
PB
10900if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10901 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10903$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10904 if test -x $with_build_time_tools/ar; then
10905 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10906 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10908$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 10909 else
81ecdfbb
RW
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10911$as_echo "no" >&6; }
3a35eeb3 10912 fi
2429c060
PB
10913 elif test $build != $host && test $have_gcc_for_target = yes; then
10914 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
10915 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10916 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 10917 fi
2429c060 10918fi
c6b750e1 10919if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10920 # Extract the first word of "ar", so it can be a program name with args.
10921set dummy ar; ac_word=$2
81ecdfbb
RW
10922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10923$as_echo_n "checking for $ac_word... " >&6; }
10924if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10925 $as_echo_n "(cached) " >&6
859789af 10926else
c6b750e1
DJ
10927 case $AR_FOR_TARGET in
10928 [\\/]* | ?:[\\/]*)
2429c060
PB
10929 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10930 ;;
2429c060 10931 *)
c6b750e1
DJ
10932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10933for as_dir in $gcc_cv_tool_dirs
10934do
10935 IFS=$as_save_IFS
10936 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10937 for ac_exec_ext in '' $ac_executable_extensions; do
10938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10939 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10941 break 2
10942 fi
10943done
81ecdfbb
RW
10944 done
10945IFS=$as_save_IFS
c6b750e1 10946
2429c060
PB
10947 ;;
10948esac
859789af 10949fi
c6b750e1 10950AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 10951if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10953$as_echo "$AR_FOR_TARGET" >&6; }
859789af 10954else
81ecdfbb
RW
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10956$as_echo "no" >&6; }
859789af 10957fi
05cbd757 10958
81ecdfbb 10959
2429c060
PB
10960fi
10961if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
10962
10963
10964if test -n "$AR_FOR_TARGET"; then
10965 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10966elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10967 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10968fi
10969
10970if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10971 for ncn_progname in ar; do
10972 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10973set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10975$as_echo_n "checking for $ac_word... " >&6; }
10976if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10977 $as_echo_n "(cached) " >&6
9a819804
AO
10978else
10979 if test -n "$AR_FOR_TARGET"; then
10980 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10981else
10982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10983for as_dir in $PATH
10984do
10985 IFS=$as_save_IFS
10986 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10987 for ac_exec_ext in '' $ac_executable_extensions; do
10988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10989 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10991 break 2
10992 fi
10993done
81ecdfbb
RW
10994 done
10995IFS=$as_save_IFS
9a819804
AO
10996
10997fi
10998fi
10999AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11000if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11002$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 11003else
81ecdfbb
RW
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11005$as_echo "no" >&6; }
9a819804
AO
11006fi
11007
81ecdfbb 11008
9a819804
AO
11009 done
11010fi
11011
11012if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11013 for ncn_progname in ar; do
81ecdfbb
RW
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11015$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11016 if test -x $with_build_time_tools/${ncn_progname}; then
11017 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11019$as_echo "yes" >&6; }
2429c060
PB
11020 break
11021 else
81ecdfbb
RW
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11023$as_echo "no" >&6; }
2429c060
PB
11024 fi
11025 done
859789af
AC
11026fi
11027
2429c060
PB
11028if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11029 for ncn_progname in ar; do
11030 if test -n "$ncn_target_tool_prefix"; then
11031 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11032set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11034$as_echo_n "checking for $ac_word... " >&6; }
11035if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11036 $as_echo_n "(cached) " >&6
7e0f7140 11037else
2429c060
PB
11038 if test -n "$AR_FOR_TARGET"; then
11039 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 11040else
c6b750e1
DJ
11041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11042for as_dir in $PATH
11043do
11044 IFS=$as_save_IFS
11045 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11046 for ac_exec_ext in '' $ac_executable_extensions; do
11047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11048 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11050 break 2
11051 fi
11052done
81ecdfbb
RW
11053 done
11054IFS=$as_save_IFS
c6b750e1 11055
7e0f7140
GK
11056fi
11057fi
c6b750e1 11058AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 11059if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11061$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 11062else
81ecdfbb
RW
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11064$as_echo "no" >&6; }
7e0f7140
GK
11065fi
11066
81ecdfbb 11067
2429c060
PB
11068 fi
11069 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11070 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 11071set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11073$as_echo_n "checking for $ac_word... " >&6; }
11074if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11075 $as_echo_n "(cached) " >&6
7e0f7140 11076else
2429c060
PB
11077 if test -n "$AR_FOR_TARGET"; then
11078 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 11079else
c6b750e1
DJ
11080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11081for as_dir in $PATH
11082do
11083 IFS=$as_save_IFS
11084 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11085 for ac_exec_ext in '' $ac_executable_extensions; do
11086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11087 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 11088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11089 break 2
11090 fi
11091done
81ecdfbb
RW
11092 done
11093IFS=$as_save_IFS
c6b750e1 11094
7e0f7140
GK
11095fi
11096fi
c6b750e1 11097AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 11098if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11100$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 11101else
81ecdfbb
RW
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11103$as_echo "no" >&6; }
7e0f7140 11104fi
c6b750e1 11105
81ecdfbb 11106
2429c060
PB
11107 fi
11108 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11109 done
11110fi
c6b750e1 11111
2429c060
PB
11112if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11113 set dummy ar
7e0f7140 11114 if test $build = $target ; then
2429c060 11115 AR_FOR_TARGET="$2"
7e0f7140 11116 else
2429c060 11117 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 11118 fi
d3f5afc4
MS
11119else
11120 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
11121fi
11122
3a35eeb3
PB
11123else
11124 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
11125fi
11126
11127
11128
11129
11130if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11131 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11133$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11134 if test -x $with_build_time_tools/as; then
11135 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11136 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11138$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 11139 else
81ecdfbb
RW
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11141$as_echo "no" >&6; }
3a35eeb3 11142 fi
2429c060
PB
11143 elif test $build != $host && test $have_gcc_for_target = yes; then
11144 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
11145 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11146 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
11147 fi
11148fi
c6b750e1 11149if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11150 # Extract the first word of "as", so it can be a program name with args.
11151set dummy as; ac_word=$2
81ecdfbb
RW
11152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11153$as_echo_n "checking for $ac_word... " >&6; }
11154if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11155 $as_echo_n "(cached) " >&6
2429c060 11156else
c6b750e1
DJ
11157 case $AS_FOR_TARGET in
11158 [\\/]* | ?:[\\/]*)
2429c060
PB
11159 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11160 ;;
2429c060 11161 *)
c6b750e1
DJ
11162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11163for as_dir in $gcc_cv_tool_dirs
11164do
11165 IFS=$as_save_IFS
11166 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11167 for ac_exec_ext in '' $ac_executable_extensions; do
11168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11169 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11171 break 2
11172 fi
11173done
81ecdfbb
RW
11174 done
11175IFS=$as_save_IFS
c6b750e1 11176
2429c060
PB
11177 ;;
11178esac
11179fi
c6b750e1 11180AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 11181if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11183$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11184else
81ecdfbb
RW
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11186$as_echo "no" >&6; }
2429c060
PB
11187fi
11188
81ecdfbb 11189
2429c060
PB
11190fi
11191if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
11192
11193
11194if test -n "$AS_FOR_TARGET"; then
11195 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11196elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11197 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11198fi
11199
11200if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11201 for ncn_progname in as; do
11202 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11203set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11205$as_echo_n "checking for $ac_word... " >&6; }
11206if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11207 $as_echo_n "(cached) " >&6
9a819804
AO
11208else
11209 if test -n "$AS_FOR_TARGET"; then
11210 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11211else
11212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11213for as_dir in $PATH
11214do
11215 IFS=$as_save_IFS
11216 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11217 for ac_exec_ext in '' $ac_executable_extensions; do
11218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11219 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11221 break 2
11222 fi
11223done
81ecdfbb
RW
11224 done
11225IFS=$as_save_IFS
9a819804
AO
11226
11227fi
11228fi
11229AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11230if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11232$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 11233else
81ecdfbb
RW
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11235$as_echo "no" >&6; }
9a819804
AO
11236fi
11237
81ecdfbb 11238
9a819804
AO
11239 done
11240fi
11241
11242if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11243 for ncn_progname in as; do
81ecdfbb
RW
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11245$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11246 if test -x $with_build_time_tools/${ncn_progname}; then
11247 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11249$as_echo "yes" >&6; }
2429c060
PB
11250 break
11251 else
81ecdfbb
RW
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11253$as_echo "no" >&6; }
2429c060
PB
11254 fi
11255 done
11256fi
11257
11258if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11259 for ncn_progname in as; do
11260 if test -n "$ncn_target_tool_prefix"; then
11261 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11262set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11264$as_echo_n "checking for $ac_word... " >&6; }
11265if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11266 $as_echo_n "(cached) " >&6
2429c060
PB
11267else
11268 if test -n "$AS_FOR_TARGET"; then
11269 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11270else
c6b750e1
DJ
11271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11272for as_dir in $PATH
11273do
11274 IFS=$as_save_IFS
11275 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11276 for ac_exec_ext in '' $ac_executable_extensions; do
11277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11278 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11280 break 2
11281 fi
11282done
81ecdfbb
RW
11283 done
11284IFS=$as_save_IFS
c6b750e1 11285
2429c060
PB
11286fi
11287fi
c6b750e1 11288AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11289if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11291$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11292else
81ecdfbb
RW
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11294$as_echo "no" >&6; }
2429c060
PB
11295fi
11296
81ecdfbb 11297
2429c060
PB
11298 fi
11299 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11300 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11301set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11303$as_echo_n "checking for $ac_word... " >&6; }
11304if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11305 $as_echo_n "(cached) " >&6
2429c060
PB
11306else
11307 if test -n "$AS_FOR_TARGET"; then
11308 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11309else
c6b750e1
DJ
11310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11311for as_dir in $PATH
11312do
11313 IFS=$as_save_IFS
11314 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11315 for ac_exec_ext in '' $ac_executable_extensions; do
11316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11317 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11319 break 2
11320 fi
11321done
81ecdfbb
RW
11322 done
11323IFS=$as_save_IFS
c6b750e1 11324
2429c060
PB
11325fi
11326fi
c6b750e1 11327AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11328if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11330$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11331else
81ecdfbb
RW
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11333$as_echo "no" >&6; }
2429c060 11334fi
c6b750e1 11335
81ecdfbb 11336
2429c060
PB
11337 fi
11338 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11339 done
11340fi
c6b750e1 11341
2429c060
PB
11342if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11343 set dummy as
11344 if test $build = $target ; then
11345 AS_FOR_TARGET="$2"
11346 else
11347 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11348 fi
d3f5afc4
MS
11349else
11350 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11351fi
11352
3a35eeb3
PB
11353else
11354 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11355fi
11356
11357
11358
11359
11360if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11361 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11363$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11364 if test -x $with_build_time_tools/dlltool; then
11365 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11366 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11368$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11369 else
81ecdfbb
RW
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11371$as_echo "no" >&6; }
3a35eeb3 11372 fi
2429c060
PB
11373 elif test $build != $host && test $have_gcc_for_target = yes; then
11374 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11375 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11376 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11377 fi
11378fi
c6b750e1 11379if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11380 # Extract the first word of "dlltool", so it can be a program name with args.
11381set dummy dlltool; ac_word=$2
81ecdfbb
RW
11382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11383$as_echo_n "checking for $ac_word... " >&6; }
11384if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11385 $as_echo_n "(cached) " >&6
2429c060 11386else
c6b750e1
DJ
11387 case $DLLTOOL_FOR_TARGET in
11388 [\\/]* | ?:[\\/]*)
2429c060
PB
11389 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11390 ;;
2429c060 11391 *)
c6b750e1
DJ
11392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11393for as_dir in $gcc_cv_tool_dirs
11394do
11395 IFS=$as_save_IFS
11396 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11397 for ac_exec_ext in '' $ac_executable_extensions; do
11398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11399 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11401 break 2
11402 fi
11403done
81ecdfbb
RW
11404 done
11405IFS=$as_save_IFS
c6b750e1 11406
2429c060
PB
11407 ;;
11408esac
11409fi
c6b750e1 11410DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11411if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11413$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11414else
81ecdfbb
RW
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11416$as_echo "no" >&6; }
2429c060
PB
11417fi
11418
81ecdfbb 11419
2429c060
PB
11420fi
11421if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11422
11423
11424if test -n "$DLLTOOL_FOR_TARGET"; then
11425 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11426elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11427 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11428fi
11429
11430if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11431 for ncn_progname in dlltool; do
11432 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11433set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11435$as_echo_n "checking for $ac_word... " >&6; }
11436if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11437 $as_echo_n "(cached) " >&6
9a819804
AO
11438else
11439 if test -n "$DLLTOOL_FOR_TARGET"; then
11440 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11441else
11442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11443for as_dir in $PATH
11444do
11445 IFS=$as_save_IFS
11446 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11447 for ac_exec_ext in '' $ac_executable_extensions; do
11448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11449 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11451 break 2
11452 fi
11453done
81ecdfbb
RW
11454 done
11455IFS=$as_save_IFS
9a819804
AO
11456
11457fi
11458fi
11459DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11460if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11462$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11463else
81ecdfbb
RW
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11465$as_echo "no" >&6; }
9a819804
AO
11466fi
11467
81ecdfbb 11468
9a819804
AO
11469 done
11470fi
11471
11472if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11473 for ncn_progname in dlltool; do
81ecdfbb
RW
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11475$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11476 if test -x $with_build_time_tools/${ncn_progname}; then
11477 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11479$as_echo "yes" >&6; }
2429c060
PB
11480 break
11481 else
81ecdfbb
RW
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11483$as_echo "no" >&6; }
2429c060
PB
11484 fi
11485 done
11486fi
11487
11488if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11489 for ncn_progname in dlltool; do
11490 if test -n "$ncn_target_tool_prefix"; then
11491 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11492set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11494$as_echo_n "checking for $ac_word... " >&6; }
11495if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11496 $as_echo_n "(cached) " >&6
2429c060
PB
11497else
11498 if test -n "$DLLTOOL_FOR_TARGET"; then
11499 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11500else
c6b750e1
DJ
11501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11502for as_dir in $PATH
11503do
11504 IFS=$as_save_IFS
11505 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11506 for ac_exec_ext in '' $ac_executable_extensions; do
11507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11508 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11510 break 2
11511 fi
11512done
81ecdfbb
RW
11513 done
11514IFS=$as_save_IFS
c6b750e1 11515
2429c060
PB
11516fi
11517fi
c6b750e1 11518DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11519if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11521$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11522else
81ecdfbb
RW
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11524$as_echo "no" >&6; }
2429c060
PB
11525fi
11526
81ecdfbb 11527
2429c060
PB
11528 fi
11529 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11530 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11531set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11533$as_echo_n "checking for $ac_word... " >&6; }
11534if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11535 $as_echo_n "(cached) " >&6
2429c060
PB
11536else
11537 if test -n "$DLLTOOL_FOR_TARGET"; then
11538 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11539else
c6b750e1
DJ
11540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11541for as_dir in $PATH
11542do
11543 IFS=$as_save_IFS
11544 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11545 for ac_exec_ext in '' $ac_executable_extensions; do
11546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11547 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11549 break 2
11550 fi
11551done
81ecdfbb
RW
11552 done
11553IFS=$as_save_IFS
c6b750e1 11554
2429c060
PB
11555fi
11556fi
c6b750e1 11557DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11558if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11560$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11561else
81ecdfbb
RW
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11563$as_echo "no" >&6; }
2429c060 11564fi
c6b750e1 11565
81ecdfbb 11566
2429c060
PB
11567 fi
11568 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11569 done
11570fi
c6b750e1 11571
2429c060
PB
11572if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11573 set dummy dlltool
11574 if test $build = $target ; then
11575 DLLTOOL_FOR_TARGET="$2"
11576 else
11577 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11578 fi
d3f5afc4
MS
11579else
11580 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
11581fi
11582
3a35eeb3
PB
11583else
11584 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
11585fi
11586
11587
11588
11589
11590if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11591 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11593$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11594 if test -x $with_build_time_tools/ld; then
11595 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11596 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11598$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 11599 else
81ecdfbb
RW
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11601$as_echo "no" >&6; }
3a35eeb3 11602 fi
2429c060
PB
11603 elif test $build != $host && test $have_gcc_for_target = yes; then
11604 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
11605 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11606 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
11607 fi
11608fi
c6b750e1 11609if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11610 # Extract the first word of "ld", so it can be a program name with args.
11611set dummy ld; ac_word=$2
81ecdfbb
RW
11612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11613$as_echo_n "checking for $ac_word... " >&6; }
11614if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11615 $as_echo_n "(cached) " >&6
2429c060 11616else
c6b750e1
DJ
11617 case $LD_FOR_TARGET in
11618 [\\/]* | ?:[\\/]*)
2429c060
PB
11619 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11620 ;;
2429c060 11621 *)
c6b750e1
DJ
11622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11623for as_dir in $gcc_cv_tool_dirs
11624do
11625 IFS=$as_save_IFS
11626 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11627 for ac_exec_ext in '' $ac_executable_extensions; do
11628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11629 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11631 break 2
11632 fi
11633done
81ecdfbb
RW
11634 done
11635IFS=$as_save_IFS
c6b750e1 11636
2429c060
PB
11637 ;;
11638esac
11639fi
c6b750e1 11640LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 11641if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11643$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11644else
81ecdfbb
RW
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11646$as_echo "no" >&6; }
2429c060
PB
11647fi
11648
81ecdfbb 11649
2429c060
PB
11650fi
11651if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
11652
11653
11654if test -n "$LD_FOR_TARGET"; then
11655 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11656elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11657 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11658fi
11659
11660if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11661 for ncn_progname in ld; do
11662 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11663set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11665$as_echo_n "checking for $ac_word... " >&6; }
11666if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11667 $as_echo_n "(cached) " >&6
9a819804
AO
11668else
11669 if test -n "$LD_FOR_TARGET"; then
11670 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11671else
11672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11673for as_dir in $PATH
11674do
11675 IFS=$as_save_IFS
11676 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11677 for ac_exec_ext in '' $ac_executable_extensions; do
11678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11679 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11681 break 2
11682 fi
11683done
81ecdfbb
RW
11684 done
11685IFS=$as_save_IFS
9a819804
AO
11686
11687fi
11688fi
11689LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11690if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11692$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 11693else
81ecdfbb
RW
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11695$as_echo "no" >&6; }
9a819804
AO
11696fi
11697
81ecdfbb 11698
9a819804
AO
11699 done
11700fi
11701
11702if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11703 for ncn_progname in ld; do
81ecdfbb
RW
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11705$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11706 if test -x $with_build_time_tools/${ncn_progname}; then
11707 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11709$as_echo "yes" >&6; }
2429c060
PB
11710 break
11711 else
81ecdfbb
RW
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11713$as_echo "no" >&6; }
2429c060
PB
11714 fi
11715 done
11716fi
11717
11718if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11719 for ncn_progname in ld; do
11720 if test -n "$ncn_target_tool_prefix"; then
11721 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11722set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11724$as_echo_n "checking for $ac_word... " >&6; }
11725if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11726 $as_echo_n "(cached) " >&6
2429c060
PB
11727else
11728 if test -n "$LD_FOR_TARGET"; then
11729 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11730else
c6b750e1
DJ
11731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11732for as_dir in $PATH
11733do
11734 IFS=$as_save_IFS
11735 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11736 for ac_exec_ext in '' $ac_executable_extensions; do
11737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11738 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11740 break 2
11741 fi
11742done
81ecdfbb
RW
11743 done
11744IFS=$as_save_IFS
c6b750e1 11745
2429c060
PB
11746fi
11747fi
c6b750e1 11748LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11749if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11751$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11752else
81ecdfbb
RW
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11754$as_echo "no" >&6; }
2429c060
PB
11755fi
11756
81ecdfbb 11757
2429c060
PB
11758 fi
11759 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11760 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11761set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11763$as_echo_n "checking for $ac_word... " >&6; }
11764if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11765 $as_echo_n "(cached) " >&6
2429c060
PB
11766else
11767 if test -n "$LD_FOR_TARGET"; then
11768 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11769else
c6b750e1
DJ
11770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11771for as_dir in $PATH
11772do
11773 IFS=$as_save_IFS
11774 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11775 for ac_exec_ext in '' $ac_executable_extensions; do
11776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11777 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11779 break 2
11780 fi
11781done
81ecdfbb
RW
11782 done
11783IFS=$as_save_IFS
c6b750e1 11784
2429c060
PB
11785fi
11786fi
c6b750e1 11787LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11788if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11790$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11791else
81ecdfbb
RW
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11793$as_echo "no" >&6; }
2429c060 11794fi
c6b750e1 11795
81ecdfbb 11796
2429c060
PB
11797 fi
11798 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11799 done
11800fi
c6b750e1 11801
2429c060
PB
11802if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11803 set dummy ld
11804 if test $build = $target ; then
11805 LD_FOR_TARGET="$2"
11806 else
11807 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11808 fi
d3f5afc4
MS
11809else
11810 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
11811fi
11812
3a35eeb3
PB
11813else
11814 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
11815fi
11816
11817
11818
11819
11820if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11821 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11823$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11824 if test -x $with_build_time_tools/lipo; then
11825 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11826 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11828$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 11829 else
81ecdfbb
RW
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11831$as_echo "no" >&6; }
3a35eeb3 11832 fi
2429c060
PB
11833 elif test $build != $host && test $have_gcc_for_target = yes; then
11834 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
11835 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11836 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
11837 fi
11838fi
9a819804
AO
11839if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11840 # Extract the first word of "lipo", so it can be a program name with args.
11841set dummy lipo; ac_word=$2
81ecdfbb
RW
11842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11843$as_echo_n "checking for $ac_word... " >&6; }
11844if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11845 $as_echo_n "(cached) " >&6
9a819804
AO
11846else
11847 case $LIPO_FOR_TARGET in
11848 [\\/]* | ?:[\\/]*)
11849 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11850 ;;
11851 *)
11852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11853for as_dir in $gcc_cv_tool_dirs
11854do
11855 IFS=$as_save_IFS
11856 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11857 for ac_exec_ext in '' $ac_executable_extensions; do
11858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11859 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11861 break 2
11862 fi
11863done
81ecdfbb
RW
11864 done
11865IFS=$as_save_IFS
9a819804
AO
11866
11867 ;;
11868esac
11869fi
11870LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 11871if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11873$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 11874else
81ecdfbb
RW
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11876$as_echo "no" >&6; }
9a819804
AO
11877fi
11878
81ecdfbb 11879
9a819804
AO
11880fi
11881if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11882
11883
11884if test -n "$LIPO_FOR_TARGET"; then
11885 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11886elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11887 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11888fi
11889
11890if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11891 for ncn_progname in lipo; do
11892 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11893set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11895$as_echo_n "checking for $ac_word... " >&6; }
11896if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11897 $as_echo_n "(cached) " >&6
2429c060 11898else
9a819804
AO
11899 if test -n "$LIPO_FOR_TARGET"; then
11900 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11901else
11902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11903for as_dir in $PATH
c6b750e1
DJ
11904do
11905 IFS=$as_save_IFS
11906 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11907 for ac_exec_ext in '' $ac_executable_extensions; do
11908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11909 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11911 break 2
11912 fi
11913done
81ecdfbb
RW
11914 done
11915IFS=$as_save_IFS
c6b750e1 11916
2429c060 11917fi
9a819804
AO
11918fi
11919LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11920if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11922$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11923else
81ecdfbb
RW
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11925$as_echo "no" >&6; }
2429c060
PB
11926fi
11927
81ecdfbb 11928
9a819804 11929 done
2429c060 11930fi
9a819804
AO
11931
11932if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11933 for ncn_progname in lipo; do
81ecdfbb
RW
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11935$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11936 if test -x $with_build_time_tools/${ncn_progname}; then
11937 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11939$as_echo "yes" >&6; }
2429c060
PB
11940 break
11941 else
81ecdfbb
RW
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11943$as_echo "no" >&6; }
2429c060
PB
11944 fi
11945 done
11946fi
11947
11948if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11949 for ncn_progname in lipo; do
11950 if test -n "$ncn_target_tool_prefix"; then
11951 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11952set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11954$as_echo_n "checking for $ac_word... " >&6; }
11955if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11956 $as_echo_n "(cached) " >&6
2429c060
PB
11957else
11958 if test -n "$LIPO_FOR_TARGET"; then
11959 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11960else
c6b750e1
DJ
11961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11962for as_dir in $PATH
11963do
11964 IFS=$as_save_IFS
11965 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11966 for ac_exec_ext in '' $ac_executable_extensions; do
11967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11968 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11970 break 2
11971 fi
11972done
81ecdfbb
RW
11973 done
11974IFS=$as_save_IFS
c6b750e1 11975
2429c060
PB
11976fi
11977fi
c6b750e1 11978LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11979if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11981$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11982else
81ecdfbb
RW
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11984$as_echo "no" >&6; }
2429c060
PB
11985fi
11986
81ecdfbb 11987
2429c060
PB
11988 fi
11989 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11990 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11991set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11993$as_echo_n "checking for $ac_word... " >&6; }
11994if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11995 $as_echo_n "(cached) " >&6
2429c060
PB
11996else
11997 if test -n "$LIPO_FOR_TARGET"; then
11998 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11999else
c6b750e1
DJ
12000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12001for as_dir in $PATH
12002do
12003 IFS=$as_save_IFS
12004 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12005 for ac_exec_ext in '' $ac_executable_extensions; do
12006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12007 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 12008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12009 break 2
12010 fi
12011done
81ecdfbb
RW
12012 done
12013IFS=$as_save_IFS
c6b750e1 12014
2429c060
PB
12015fi
12016fi
c6b750e1 12017LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 12018if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12020$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 12021else
81ecdfbb
RW
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12023$as_echo "no" >&6; }
2429c060 12024fi
c6b750e1 12025
81ecdfbb 12026
2429c060
PB
12027 fi
12028 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12029 done
12030fi
c6b750e1 12031
2429c060
PB
12032if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12033 set dummy lipo
12034 if test $build = $target ; then
12035 LIPO_FOR_TARGET="$2"
12036 else
12037 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12038 fi
d3f5afc4
MS
12039else
12040 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
12041fi
12042
3a35eeb3
PB
12043else
12044 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
12045fi
12046
12047
12048
12049
12050if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12051 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12053$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12054 if test -x $with_build_time_tools/nm; then
12055 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12056 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12058$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 12059 else
81ecdfbb
RW
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12061$as_echo "no" >&6; }
3a35eeb3 12062 fi
2429c060
PB
12063 elif test $build != $host && test $have_gcc_for_target = yes; then
12064 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
12065 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12066 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
12067 fi
12068fi
c6b750e1 12069if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12070 # Extract the first word of "nm", so it can be a program name with args.
12071set dummy nm; ac_word=$2
81ecdfbb
RW
12072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12073$as_echo_n "checking for $ac_word... " >&6; }
12074if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12075 $as_echo_n "(cached) " >&6
2429c060 12076else
c6b750e1
DJ
12077 case $NM_FOR_TARGET in
12078 [\\/]* | ?:[\\/]*)
2429c060
PB
12079 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12080 ;;
2429c060 12081 *)
c6b750e1
DJ
12082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12083for as_dir in $gcc_cv_tool_dirs
12084do
12085 IFS=$as_save_IFS
12086 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12087 for ac_exec_ext in '' $ac_executable_extensions; do
12088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12089 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12091 break 2
12092 fi
12093done
81ecdfbb
RW
12094 done
12095IFS=$as_save_IFS
c6b750e1 12096
2429c060
PB
12097 ;;
12098esac
12099fi
c6b750e1 12100NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 12101if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12103$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 12104else
81ecdfbb
RW
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12106$as_echo "no" >&6; }
2429c060
PB
12107fi
12108
81ecdfbb 12109
2429c060
PB
12110fi
12111if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
12112
12113
12114if test -n "$NM_FOR_TARGET"; then
12115 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12116elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12117 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12118fi
12119
12120if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12121 for ncn_progname in nm; do
12122 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12123set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12125$as_echo_n "checking for $ac_word... " >&6; }
12126if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12127 $as_echo_n "(cached) " >&6
9a819804
AO
12128else
12129 if test -n "$NM_FOR_TARGET"; then
12130 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12131else
12132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12133for as_dir in $PATH
12134do
12135 IFS=$as_save_IFS
12136 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12137 for ac_exec_ext in '' $ac_executable_extensions; do
12138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12139 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12141 break 2
12142 fi
12143done
81ecdfbb
RW
12144 done
12145IFS=$as_save_IFS
9a819804
AO
12146
12147fi
12148fi
12149NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12150if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12152$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 12153else
81ecdfbb
RW
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12155$as_echo "no" >&6; }
9a819804
AO
12156fi
12157
81ecdfbb 12158
9a819804
AO
12159 done
12160fi
12161
12162if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12163 for ncn_progname in nm; do
81ecdfbb
RW
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12165$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12166 if test -x $with_build_time_tools/${ncn_progname}; then
12167 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12169$as_echo "yes" >&6; }
2429c060
PB
12170 break
12171 else
81ecdfbb
RW
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12173$as_echo "no" >&6; }
2429c060
PB
12174 fi
12175 done
12176fi
12177
12178if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12179 for ncn_progname in nm; do
12180 if test -n "$ncn_target_tool_prefix"; then
12181 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12182set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12184$as_echo_n "checking for $ac_word... " >&6; }
12185if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12186 $as_echo_n "(cached) " >&6
859789af 12187else
55db4b87
PB
12188 if test -n "$NM_FOR_TARGET"; then
12189 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12190else
c6b750e1
DJ
12191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12192for as_dir in $PATH
12193do
12194 IFS=$as_save_IFS
12195 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12196 for ac_exec_ext in '' $ac_executable_extensions; do
12197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12198 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12200 break 2
12201 fi
12202done
81ecdfbb
RW
12203 done
12204IFS=$as_save_IFS
c6b750e1 12205
859789af
AC
12206fi
12207fi
c6b750e1 12208NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 12209if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12211$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12212else
81ecdfbb
RW
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12214$as_echo "no" >&6; }
859789af
AC
12215fi
12216
81ecdfbb 12217
2429c060
PB
12218 fi
12219 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12220 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12221set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12223$as_echo_n "checking for $ac_word... " >&6; }
12224if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12225 $as_echo_n "(cached) " >&6
859789af 12226else
05cbd757
PB
12227 if test -n "$NM_FOR_TARGET"; then
12228 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12229else
c6b750e1
DJ
12230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12231for as_dir in $PATH
12232do
12233 IFS=$as_save_IFS
12234 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12235 for ac_exec_ext in '' $ac_executable_extensions; do
12236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12237 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12239 break 2
12240 fi
12241done
81ecdfbb
RW
12242 done
12243IFS=$as_save_IFS
c6b750e1 12244
859789af
AC
12245fi
12246fi
c6b750e1 12247NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 12248if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12250$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12251else
81ecdfbb
RW
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12253$as_echo "no" >&6; }
859789af 12254fi
c6b750e1 12255
81ecdfbb 12256
2429c060
PB
12257 fi
12258 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12259 done
12260fi
c6b750e1 12261
05cbd757
PB
12262if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12263 set dummy nm
12264 if test $build = $target ; then
12265 NM_FOR_TARGET="$2"
859789af 12266 else
05cbd757 12267 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12268 fi
d3f5afc4
MS
12269else
12270 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
12271fi
12272
3a35eeb3
PB
12273else
12274 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
12275fi
12276
12277
12278
12279
6b91c541
AP
12280if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12281 if test -n "$with_build_time_tools"; then
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12283$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12284 if test -x $with_build_time_tools/objcopy; then
12285 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12286 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12288$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12289 else
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12291$as_echo "no" >&6; }
12292 fi
12293 elif test $build != $host && test $have_gcc_for_target = yes; then
12294 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12295 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12296 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12297 fi
12298fi
12299if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12300 # Extract the first word of "objcopy", so it can be a program name with args.
12301set dummy objcopy; ac_word=$2
12302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12303$as_echo_n "checking for $ac_word... " >&6; }
12304if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12305 $as_echo_n "(cached) " >&6
12306else
12307 case $OBJCOPY_FOR_TARGET in
12308 [\\/]* | ?:[\\/]*)
12309 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12310 ;;
12311 *)
12312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12313for as_dir in $gcc_cv_tool_dirs
12314do
12315 IFS=$as_save_IFS
12316 test -z "$as_dir" && as_dir=.
12317 for ac_exec_ext in '' $ac_executable_extensions; do
12318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12319 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12321 break 2
12322 fi
12323done
12324 done
12325IFS=$as_save_IFS
12326
12327 ;;
12328esac
12329fi
12330OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12331if test -n "$OBJCOPY_FOR_TARGET"; then
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12333$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12334else
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12336$as_echo "no" >&6; }
12337fi
12338
12339
12340fi
12341if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12342
12343
12344if test -n "$OBJCOPY_FOR_TARGET"; then
12345 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12346elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12347 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12348fi
12349
12350if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12351 for ncn_progname in objcopy; do
12352 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12353set dummy ${ncn_progname}; ac_word=$2
12354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12355$as_echo_n "checking for $ac_word... " >&6; }
12356if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12357 $as_echo_n "(cached) " >&6
12358else
12359 if test -n "$OBJCOPY_FOR_TARGET"; then
12360 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12361else
12362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12363for as_dir in $PATH
12364do
12365 IFS=$as_save_IFS
12366 test -z "$as_dir" && as_dir=.
12367 for ac_exec_ext in '' $ac_executable_extensions; do
12368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12369 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12371 break 2
12372 fi
12373done
12374 done
12375IFS=$as_save_IFS
12376
12377fi
12378fi
12379OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12380if test -n "$OBJCOPY_FOR_TARGET"; then
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12382$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12383else
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12385$as_echo "no" >&6; }
12386fi
12387
12388
12389 done
12390fi
12391
12392if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12393 for ncn_progname in objcopy; do
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12395$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12396 if test -x $with_build_time_tools/${ncn_progname}; then
12397 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12399$as_echo "yes" >&6; }
12400 break
12401 else
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12403$as_echo "no" >&6; }
12404 fi
12405 done
12406fi
12407
12408if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12409 for ncn_progname in objcopy; do
12410 if test -n "$ncn_target_tool_prefix"; then
12411 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12412set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12414$as_echo_n "checking for $ac_word... " >&6; }
12415if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12416 $as_echo_n "(cached) " >&6
12417else
12418 if test -n "$OBJCOPY_FOR_TARGET"; then
12419 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12420else
12421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12422for as_dir in $PATH
12423do
12424 IFS=$as_save_IFS
12425 test -z "$as_dir" && as_dir=.
12426 for ac_exec_ext in '' $ac_executable_extensions; do
12427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12428 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12430 break 2
12431 fi
12432done
12433 done
12434IFS=$as_save_IFS
12435
12436fi
12437fi
12438OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12439if test -n "$OBJCOPY_FOR_TARGET"; then
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12441$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12442else
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12444$as_echo "no" >&6; }
12445fi
12446
12447
12448 fi
12449 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12450 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12451set dummy ${ncn_progname}; ac_word=$2
12452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12453$as_echo_n "checking for $ac_word... " >&6; }
12454if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12455 $as_echo_n "(cached) " >&6
12456else
12457 if test -n "$OBJCOPY_FOR_TARGET"; then
12458 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12459else
12460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12461for as_dir in $PATH
12462do
12463 IFS=$as_save_IFS
12464 test -z "$as_dir" && as_dir=.
12465 for ac_exec_ext in '' $ac_executable_extensions; do
12466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12467 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12469 break 2
12470 fi
12471done
12472 done
12473IFS=$as_save_IFS
12474
12475fi
12476fi
12477OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12478if test -n "$OBJCOPY_FOR_TARGET"; then
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12480$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12481else
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12483$as_echo "no" >&6; }
12484fi
12485
12486
12487 fi
12488 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12489 done
12490fi
12491
12492if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12493 set dummy objcopy
12494 if test $build = $target ; then
12495 OBJCOPY_FOR_TARGET="$2"
12496 else
12497 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12498 fi
12499else
12500 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12501fi
12502
12503else
12504 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12505fi
12506
12507
12508
12509
2429c060
PB
12510if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12511 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12513$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12514 if test -x $with_build_time_tools/objdump; then
12515 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12516 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12518$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 12519 else
81ecdfbb
RW
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12521$as_echo "no" >&6; }
3a35eeb3 12522 fi
2429c060
PB
12523 elif test $build != $host && test $have_gcc_for_target = yes; then
12524 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
12525 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12526 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
12527 fi
12528fi
c6b750e1 12529if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12530 # Extract the first word of "objdump", so it can be a program name with args.
12531set dummy objdump; ac_word=$2
81ecdfbb
RW
12532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12533$as_echo_n "checking for $ac_word... " >&6; }
12534if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12535 $as_echo_n "(cached) " >&6
2429c060 12536else
c6b750e1
DJ
12537 case $OBJDUMP_FOR_TARGET in
12538 [\\/]* | ?:[\\/]*)
2429c060
PB
12539 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12540 ;;
2429c060 12541 *)
c6b750e1
DJ
12542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12543for as_dir in $gcc_cv_tool_dirs
12544do
12545 IFS=$as_save_IFS
12546 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12547 for ac_exec_ext in '' $ac_executable_extensions; do
12548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12549 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12551 break 2
12552 fi
12553done
81ecdfbb
RW
12554 done
12555IFS=$as_save_IFS
c6b750e1 12556
2429c060
PB
12557 ;;
12558esac
12559fi
c6b750e1 12560OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 12561if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12563$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 12564else
81ecdfbb
RW
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12566$as_echo "no" >&6; }
2429c060
PB
12567fi
12568
81ecdfbb 12569
2429c060
PB
12570fi
12571if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12572
12573
12574if test -n "$OBJDUMP_FOR_TARGET"; then
12575 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12576elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12577 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12578fi
12579
12580if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12581 for ncn_progname in objdump; do
12582 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12583set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12585$as_echo_n "checking for $ac_word... " >&6; }
12586if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12587 $as_echo_n "(cached) " >&6
9a819804
AO
12588else
12589 if test -n "$OBJDUMP_FOR_TARGET"; then
12590 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12591else
12592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12593for as_dir in $PATH
12594do
12595 IFS=$as_save_IFS
12596 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12597 for ac_exec_ext in '' $ac_executable_extensions; do
12598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12599 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12601 break 2
12602 fi
12603done
81ecdfbb
RW
12604 done
12605IFS=$as_save_IFS
9a819804
AO
12606
12607fi
12608fi
12609OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12610if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12612$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 12613else
81ecdfbb
RW
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12615$as_echo "no" >&6; }
9a819804
AO
12616fi
12617
81ecdfbb 12618
9a819804
AO
12619 done
12620fi
12621
12622if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12623 for ncn_progname in objdump; do
81ecdfbb
RW
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12625$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12626 if test -x $with_build_time_tools/${ncn_progname}; then
12627 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12629$as_echo "yes" >&6; }
2429c060
PB
12630 break
12631 else
81ecdfbb
RW
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12633$as_echo "no" >&6; }
2429c060
PB
12634 fi
12635 done
12636fi
12637
12638if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12639 for ncn_progname in objdump; do
12640 if test -n "$ncn_target_tool_prefix"; then
12641 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12642set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12644$as_echo_n "checking for $ac_word... " >&6; }
12645if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12646 $as_echo_n "(cached) " >&6
5ae72758
DJ
12647else
12648 if test -n "$OBJDUMP_FOR_TARGET"; then
12649 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12650else
c6b750e1
DJ
12651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12652for as_dir in $PATH
12653do
12654 IFS=$as_save_IFS
12655 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12656 for ac_exec_ext in '' $ac_executable_extensions; do
12657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12658 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12660 break 2
12661 fi
12662done
81ecdfbb
RW
12663 done
12664IFS=$as_save_IFS
c6b750e1 12665
5ae72758
DJ
12666fi
12667fi
c6b750e1 12668OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12669if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12671$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12672else
81ecdfbb
RW
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12674$as_echo "no" >&6; }
5ae72758
DJ
12675fi
12676
81ecdfbb 12677
2429c060
PB
12678 fi
12679 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12680 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 12681set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12683$as_echo_n "checking for $ac_word... " >&6; }
12684if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12685 $as_echo_n "(cached) " >&6
5ae72758
DJ
12686else
12687 if test -n "$OBJDUMP_FOR_TARGET"; then
12688 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12689else
c6b750e1
DJ
12690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12691for as_dir in $PATH
12692do
12693 IFS=$as_save_IFS
12694 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12695 for ac_exec_ext in '' $ac_executable_extensions; do
12696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12697 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12699 break 2
12700 fi
12701done
81ecdfbb
RW
12702 done
12703IFS=$as_save_IFS
c6b750e1 12704
5ae72758
DJ
12705fi
12706fi
c6b750e1 12707OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12708if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12710$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12711else
81ecdfbb
RW
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12713$as_echo "no" >&6; }
5ae72758 12714fi
c6b750e1 12715
81ecdfbb 12716
2429c060
PB
12717 fi
12718 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12719 done
12720fi
c6b750e1 12721
5ae72758
DJ
12722if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12723 set dummy objdump
12724 if test $build = $target ; then
12725 OBJDUMP_FOR_TARGET="$2"
12726 else
12727 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12728 fi
d3f5afc4
MS
12729else
12730 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
12731fi
12732
3a35eeb3
PB
12733else
12734 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
12735fi
12736
12737
12738
12739
12740if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12741 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12743$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12744 if test -x $with_build_time_tools/ranlib; then
12745 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12746 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12748$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 12749 else
81ecdfbb
RW
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12751$as_echo "no" >&6; }
3a35eeb3 12752 fi
2429c060
PB
12753 elif test $build != $host && test $have_gcc_for_target = yes; then
12754 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
12755 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12756 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
12757 fi
12758fi
c6b750e1 12759if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12760 # Extract the first word of "ranlib", so it can be a program name with args.
12761set dummy ranlib; ac_word=$2
81ecdfbb
RW
12762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12763$as_echo_n "checking for $ac_word... " >&6; }
12764if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12765 $as_echo_n "(cached) " >&6
2429c060 12766else
c6b750e1
DJ
12767 case $RANLIB_FOR_TARGET in
12768 [\\/]* | ?:[\\/]*)
2429c060
PB
12769 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12770 ;;
2429c060 12771 *)
c6b750e1
DJ
12772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12773for as_dir in $gcc_cv_tool_dirs
12774do
12775 IFS=$as_save_IFS
12776 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12777 for ac_exec_ext in '' $ac_executable_extensions; do
12778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12779 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12781 break 2
12782 fi
12783done
81ecdfbb
RW
12784 done
12785IFS=$as_save_IFS
c6b750e1 12786
2429c060
PB
12787 ;;
12788esac
12789fi
c6b750e1 12790RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 12791if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12793$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 12794else
81ecdfbb
RW
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12796$as_echo "no" >&6; }
2429c060
PB
12797fi
12798
81ecdfbb 12799
2429c060
PB
12800fi
12801if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
12802
12803
12804if test -n "$RANLIB_FOR_TARGET"; then
12805 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12806elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12807 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12808fi
12809
12810if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12811 for ncn_progname in ranlib; do
12812 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12813set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12815$as_echo_n "checking for $ac_word... " >&6; }
12816if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12817 $as_echo_n "(cached) " >&6
9a819804
AO
12818else
12819 if test -n "$RANLIB_FOR_TARGET"; then
12820 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12821else
12822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12823for as_dir in $PATH
12824do
12825 IFS=$as_save_IFS
12826 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12827 for ac_exec_ext in '' $ac_executable_extensions; do
12828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12829 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12831 break 2
12832 fi
12833done
81ecdfbb
RW
12834 done
12835IFS=$as_save_IFS
9a819804
AO
12836
12837fi
12838fi
12839RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12840if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12842$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 12843else
81ecdfbb
RW
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12845$as_echo "no" >&6; }
9a819804
AO
12846fi
12847
81ecdfbb 12848
9a819804
AO
12849 done
12850fi
12851
12852if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12853 for ncn_progname in ranlib; do
81ecdfbb
RW
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12855$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12856 if test -x $with_build_time_tools/${ncn_progname}; then
12857 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12859$as_echo "yes" >&6; }
2429c060
PB
12860 break
12861 else
81ecdfbb
RW
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12863$as_echo "no" >&6; }
2429c060
PB
12864 fi
12865 done
12866fi
12867
12868if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12869 for ncn_progname in ranlib; do
12870 if test -n "$ncn_target_tool_prefix"; then
12871 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 12872set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12874$as_echo_n "checking for $ac_word... " >&6; }
12875if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12876 $as_echo_n "(cached) " >&6
859789af 12877else
55db4b87
PB
12878 if test -n "$RANLIB_FOR_TARGET"; then
12879 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12880else
c6b750e1
DJ
12881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12882for as_dir in $PATH
12883do
12884 IFS=$as_save_IFS
12885 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12886 for ac_exec_ext in '' $ac_executable_extensions; do
12887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12888 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12890 break 2
12891 fi
12892done
81ecdfbb
RW
12893 done
12894IFS=$as_save_IFS
c6b750e1 12895
859789af
AC
12896fi
12897fi
c6b750e1 12898RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 12899if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12901$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12902else
81ecdfbb
RW
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12904$as_echo "no" >&6; }
859789af
AC
12905fi
12906
81ecdfbb 12907
2429c060
PB
12908 fi
12909 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12910 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12911set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12913$as_echo_n "checking for $ac_word... " >&6; }
12914if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12915 $as_echo_n "(cached) " >&6
859789af 12916else
05cbd757
PB
12917 if test -n "$RANLIB_FOR_TARGET"; then
12918 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12919else
c6b750e1
DJ
12920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12921for as_dir in $PATH
12922do
12923 IFS=$as_save_IFS
12924 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12925 for ac_exec_ext in '' $ac_executable_extensions; do
12926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12927 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12929 break 2
12930 fi
12931done
81ecdfbb
RW
12932 done
12933IFS=$as_save_IFS
c6b750e1 12934
859789af
AC
12935fi
12936fi
c6b750e1 12937RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 12938if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12940$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12941else
81ecdfbb
RW
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12943$as_echo "no" >&6; }
859789af 12944fi
c6b750e1 12945
81ecdfbb 12946
2429c060
PB
12947 fi
12948 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12949 done
12950fi
c6b750e1 12951
2429c060
PB
12952if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12953 set dummy ranlib
12954 if test $build = $target ; then
12955 RANLIB_FOR_TARGET="$2"
12956 else
12957 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12958 fi
d3f5afc4
MS
12959else
12960 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 12961fi
05cbd757 12962
3a35eeb3
PB
12963else
12964 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
12965fi
12966
2429c060
PB
12967
12968
12969
b121d7d4
DD
12970if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12971 if test -n "$with_build_time_tools"; then
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12973$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12974 if test -x $with_build_time_tools/readelf; then
12975 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12976 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12978$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12979 else
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12981$as_echo "no" >&6; }
12982 fi
12983 elif test $build != $host && test $have_gcc_for_target = yes; then
12984 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12985 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12986 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12987 fi
12988fi
12989if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12990 # Extract the first word of "readelf", so it can be a program name with args.
12991set dummy readelf; ac_word=$2
12992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12993$as_echo_n "checking for $ac_word... " >&6; }
12994if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12995 $as_echo_n "(cached) " >&6
12996else
12997 case $READELF_FOR_TARGET in
12998 [\\/]* | ?:[\\/]*)
12999 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13000 ;;
13001 *)
13002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13003for as_dir in $gcc_cv_tool_dirs
13004do
13005 IFS=$as_save_IFS
13006 test -z "$as_dir" && as_dir=.
13007 for ac_exec_ext in '' $ac_executable_extensions; do
13008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13009 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13011 break 2
13012 fi
13013done
13014 done
13015IFS=$as_save_IFS
13016
13017 ;;
13018esac
13019fi
13020READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13021if test -n "$READELF_FOR_TARGET"; then
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13023$as_echo "$READELF_FOR_TARGET" >&6; }
13024else
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13026$as_echo "no" >&6; }
13027fi
13028
13029
13030fi
13031if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13032
13033
13034if test -n "$READELF_FOR_TARGET"; then
13035 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13036elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13037 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13038fi
13039
13040if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13041 for ncn_progname in readelf; do
13042 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13043set dummy ${ncn_progname}; ac_word=$2
13044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13045$as_echo_n "checking for $ac_word... " >&6; }
13046if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13047 $as_echo_n "(cached) " >&6
13048else
13049 if test -n "$READELF_FOR_TARGET"; then
13050 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13051else
13052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13053for as_dir in $PATH
13054do
13055 IFS=$as_save_IFS
13056 test -z "$as_dir" && as_dir=.
13057 for ac_exec_ext in '' $ac_executable_extensions; do
13058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13059 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13061 break 2
13062 fi
13063done
13064 done
13065IFS=$as_save_IFS
13066
13067fi
13068fi
13069READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13070if test -n "$READELF_FOR_TARGET"; then
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13072$as_echo "$READELF_FOR_TARGET" >&6; }
13073else
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13075$as_echo "no" >&6; }
13076fi
13077
13078
13079 done
13080fi
13081
13082if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13083 for ncn_progname in readelf; do
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13085$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13086 if test -x $with_build_time_tools/${ncn_progname}; then
13087 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13089$as_echo "yes" >&6; }
13090 break
13091 else
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13093$as_echo "no" >&6; }
13094 fi
13095 done
13096fi
13097
13098if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13099 for ncn_progname in readelf; do
13100 if test -n "$ncn_target_tool_prefix"; then
13101 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13102set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13104$as_echo_n "checking for $ac_word... " >&6; }
13105if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13106 $as_echo_n "(cached) " >&6
13107else
13108 if test -n "$READELF_FOR_TARGET"; then
13109 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13110else
13111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13112for as_dir in $PATH
13113do
13114 IFS=$as_save_IFS
13115 test -z "$as_dir" && as_dir=.
13116 for ac_exec_ext in '' $ac_executable_extensions; do
13117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13118 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13120 break 2
13121 fi
13122done
13123 done
13124IFS=$as_save_IFS
13125
13126fi
13127fi
13128READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13129if test -n "$READELF_FOR_TARGET"; then
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13131$as_echo "$READELF_FOR_TARGET" >&6; }
13132else
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13134$as_echo "no" >&6; }
13135fi
13136
13137
13138 fi
13139 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13140 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13141set dummy ${ncn_progname}; ac_word=$2
13142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13143$as_echo_n "checking for $ac_word... " >&6; }
13144if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13145 $as_echo_n "(cached) " >&6
13146else
13147 if test -n "$READELF_FOR_TARGET"; then
13148 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13149else
13150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13151for as_dir in $PATH
13152do
13153 IFS=$as_save_IFS
13154 test -z "$as_dir" && as_dir=.
13155 for ac_exec_ext in '' $ac_executable_extensions; do
13156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13157 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13159 break 2
13160 fi
13161done
13162 done
13163IFS=$as_save_IFS
13164
13165fi
13166fi
13167READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13168if test -n "$READELF_FOR_TARGET"; then
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13170$as_echo "$READELF_FOR_TARGET" >&6; }
13171else
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13173$as_echo "no" >&6; }
13174fi
13175
13176
13177 fi
13178 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13179 done
13180fi
13181
13182if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13183 set dummy readelf
13184 if test $build = $target ; then
13185 READELF_FOR_TARGET="$2"
13186 else
13187 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13188 fi
13189else
13190 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13191fi
13192
13193else
13194 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13195fi
13196
13197
13198
13199
2429c060
PB
13200if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13201 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13203$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13204 if test -x $with_build_time_tools/strip; then
13205 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13206 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13208$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 13209 else
81ecdfbb
RW
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13211$as_echo "no" >&6; }
3a35eeb3 13212 fi
2429c060
PB
13213 elif test $build != $host && test $have_gcc_for_target = yes; then
13214 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
13215 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13216 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
13217 fi
13218fi
c6b750e1 13219if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13220 # Extract the first word of "strip", so it can be a program name with args.
13221set dummy strip; ac_word=$2
81ecdfbb
RW
13222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13223$as_echo_n "checking for $ac_word... " >&6; }
13224if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13225 $as_echo_n "(cached) " >&6
2429c060 13226else
c6b750e1
DJ
13227 case $STRIP_FOR_TARGET in
13228 [\\/]* | ?:[\\/]*)
2429c060
PB
13229 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13230 ;;
2429c060 13231 *)
c6b750e1
DJ
13232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13233for as_dir in $gcc_cv_tool_dirs
13234do
13235 IFS=$as_save_IFS
13236 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13237 for ac_exec_ext in '' $ac_executable_extensions; do
13238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13239 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13241 break 2
13242 fi
13243done
81ecdfbb
RW
13244 done
13245IFS=$as_save_IFS
c6b750e1 13246
2429c060
PB
13247 ;;
13248esac
13249fi
c6b750e1 13250STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 13251if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13253$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 13254else
81ecdfbb
RW
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13256$as_echo "no" >&6; }
2429c060
PB
13257fi
13258
81ecdfbb 13259
2429c060
PB
13260fi
13261if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
13262
13263
13264if test -n "$STRIP_FOR_TARGET"; then
13265 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13266elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13267 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13268fi
13269
13270if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13271 for ncn_progname in strip; do
13272 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13273set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13275$as_echo_n "checking for $ac_word... " >&6; }
13276if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13277 $as_echo_n "(cached) " >&6
9a819804
AO
13278else
13279 if test -n "$STRIP_FOR_TARGET"; then
13280 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13281else
13282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13283for as_dir in $PATH
13284do
13285 IFS=$as_save_IFS
13286 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13287 for ac_exec_ext in '' $ac_executable_extensions; do
13288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 13289 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13291 break 2
13292 fi
13293done
81ecdfbb
RW
13294 done
13295IFS=$as_save_IFS
9a819804
AO
13296
13297fi
13298fi
13299STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13300if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13302$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 13303else
81ecdfbb
RW
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13305$as_echo "no" >&6; }
9a819804
AO
13306fi
13307
81ecdfbb 13308
9a819804
AO
13309 done
13310fi
13311
13312if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13313 for ncn_progname in strip; do
81ecdfbb
RW
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13315$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13316 if test -x $with_build_time_tools/${ncn_progname}; then
13317 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13319$as_echo "yes" >&6; }
2429c060
PB
13320 break
13321 else
81ecdfbb
RW
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13323$as_echo "no" >&6; }
2429c060
PB
13324 fi
13325 done
13326fi
13327
13328if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13329 for ncn_progname in strip; do
13330 if test -n "$ncn_target_tool_prefix"; then
13331 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 13332set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13334$as_echo_n "checking for $ac_word... " >&6; }
13335if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13336 $as_echo_n "(cached) " >&6
7e0f7140
GK
13337else
13338 if test -n "$STRIP_FOR_TARGET"; then
13339 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
13340else
13341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13342for as_dir in $PATH
13343do
13344 IFS=$as_save_IFS
13345 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13346 for ac_exec_ext in '' $ac_executable_extensions; do
13347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13348 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13350 break 2
13351 fi
13352done
81ecdfbb
RW
13353 done
13354IFS=$as_save_IFS
c6b750e1 13355
7e0f7140
GK
13356fi
13357fi
c6b750e1 13358STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13359if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13361$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13362else
81ecdfbb
RW
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13364$as_echo "no" >&6; }
7e0f7140
GK
13365fi
13366
81ecdfbb 13367
2429c060
PB
13368 fi
13369 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13370 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 13371set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13373$as_echo_n "checking for $ac_word... " >&6; }
13374if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13375 $as_echo_n "(cached) " >&6
7e0f7140
GK
13376else
13377 if test -n "$STRIP_FOR_TARGET"; then
13378 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13379else
c6b750e1
DJ
13380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13381for as_dir in $PATH
13382do
13383 IFS=$as_save_IFS
13384 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13385 for ac_exec_ext in '' $ac_executable_extensions; do
13386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13387 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13389 break 2
13390 fi
13391done
81ecdfbb
RW
13392 done
13393IFS=$as_save_IFS
c6b750e1 13394
7e0f7140
GK
13395fi
13396fi
c6b750e1 13397STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13398if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13400$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13401else
81ecdfbb
RW
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13403$as_echo "no" >&6; }
7e0f7140 13404fi
c6b750e1 13405
81ecdfbb 13406
2429c060
PB
13407 fi
13408 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13409 done
13410fi
c6b750e1 13411
7e0f7140
GK
13412if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13413 set dummy strip
13414 if test $build = $target ; then
13415 STRIP_FOR_TARGET="$2"
13416 else
13417 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13418 fi
d3f5afc4
MS
13419else
13420 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
13421fi
13422
3a35eeb3
PB
13423else
13424 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
13425fi
13426
13427
13428
13429
13430if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13431 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13433$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13434 if test -x $with_build_time_tools/windres; then
13435 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13436 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13438$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 13439 else
81ecdfbb
RW
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13441$as_echo "no" >&6; }
3a35eeb3 13442 fi
2429c060
PB
13443 elif test $build != $host && test $have_gcc_for_target = yes; then
13444 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
13445 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13446 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
13447 fi
13448fi
c6b750e1 13449if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13450 # Extract the first word of "windres", so it can be a program name with args.
13451set dummy windres; ac_word=$2
81ecdfbb
RW
13452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13453$as_echo_n "checking for $ac_word... " >&6; }
13454if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13455 $as_echo_n "(cached) " >&6
2429c060 13456else
c6b750e1
DJ
13457 case $WINDRES_FOR_TARGET in
13458 [\\/]* | ?:[\\/]*)
2429c060
PB
13459 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13460 ;;
2429c060 13461 *)
c6b750e1
DJ
13462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13463for as_dir in $gcc_cv_tool_dirs
13464do
13465 IFS=$as_save_IFS
13466 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13467 for ac_exec_ext in '' $ac_executable_extensions; do
13468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13469 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13471 break 2
13472 fi
13473done
81ecdfbb
RW
13474 done
13475IFS=$as_save_IFS
c6b750e1 13476
2429c060
PB
13477 ;;
13478esac
13479fi
c6b750e1 13480WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 13481if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13483$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 13484else
81ecdfbb
RW
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13486$as_echo "no" >&6; }
2429c060
PB
13487fi
13488
81ecdfbb 13489
2429c060
PB
13490fi
13491if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
13492
13493
13494if test -n "$WINDRES_FOR_TARGET"; then
13495 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13496elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13497 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13498fi
13499
13500if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13501 for ncn_progname in windres; do
13502 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13503set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13505$as_echo_n "checking for $ac_word... " >&6; }
13506if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13507 $as_echo_n "(cached) " >&6
9a819804
AO
13508else
13509 if test -n "$WINDRES_FOR_TARGET"; then
13510 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13511else
13512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13513for as_dir in $PATH
13514do
13515 IFS=$as_save_IFS
13516 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13517 for ac_exec_ext in '' $ac_executable_extensions; do
13518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 13519 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13521 break 2
13522 fi
13523done
81ecdfbb
RW
13524 done
13525IFS=$as_save_IFS
9a819804
AO
13526
13527fi
13528fi
13529WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13530if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13532$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 13533else
81ecdfbb
RW
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13535$as_echo "no" >&6; }
9a819804
AO
13536fi
13537
81ecdfbb 13538
9a819804
AO
13539 done
13540fi
13541
13542if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13543 for ncn_progname in windres; do
81ecdfbb
RW
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13545$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13546 if test -x $with_build_time_tools/${ncn_progname}; then
13547 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13549$as_echo "yes" >&6; }
2429c060
PB
13550 break
13551 else
81ecdfbb
RW
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13553$as_echo "no" >&6; }
2429c060
PB
13554 fi
13555 done
13556fi
13557
13558if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13559 for ncn_progname in windres; do
13560 if test -n "$ncn_target_tool_prefix"; then
13561 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13562set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13564$as_echo_n "checking for $ac_word... " >&6; }
13565if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13566 $as_echo_n "(cached) " >&6
859789af 13567else
55db4b87
PB
13568 if test -n "$WINDRES_FOR_TARGET"; then
13569 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13570else
c6b750e1
DJ
13571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13572for as_dir in $PATH
13573do
13574 IFS=$as_save_IFS
13575 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13576 for ac_exec_ext in '' $ac_executable_extensions; do
13577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13578 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13580 break 2
13581 fi
13582done
81ecdfbb
RW
13583 done
13584IFS=$as_save_IFS
c6b750e1 13585
859789af
AC
13586fi
13587fi
c6b750e1 13588WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 13589if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13591$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13592else
81ecdfbb
RW
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13594$as_echo "no" >&6; }
859789af
AC
13595fi
13596
81ecdfbb 13597
2429c060
PB
13598 fi
13599 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13600 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13601set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13603$as_echo_n "checking for $ac_word... " >&6; }
13604if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13605 $as_echo_n "(cached) " >&6
859789af 13606else
05cbd757
PB
13607 if test -n "$WINDRES_FOR_TARGET"; then
13608 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13609else
c6b750e1
DJ
13610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13611for as_dir in $PATH
13612do
13613 IFS=$as_save_IFS
13614 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13615 for ac_exec_ext in '' $ac_executable_extensions; do
13616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13617 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13619 break 2
13620 fi
13621done
81ecdfbb
RW
13622 done
13623IFS=$as_save_IFS
c6b750e1 13624
859789af
AC
13625fi
13626fi
c6b750e1 13627WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 13628if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13630$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13631else
81ecdfbb
RW
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13633$as_echo "no" >&6; }
859789af 13634fi
c6b750e1 13635
81ecdfbb 13636
2429c060
PB
13637 fi
13638 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13639 done
13640fi
c6b750e1 13641
05cbd757
PB
13642if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13643 set dummy windres
13644 if test $build = $target ; then
13645 WINDRES_FOR_TARGET="$2"
859789af 13646 else
05cbd757 13647 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 13648 fi
d3f5afc4
MS
13649else
13650 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
13651fi
13652
3a35eeb3
PB
13653else
13654 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
13655fi
13656
852e5f18 13657
0c24b341
NC
13658
13659
13660if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13661 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13663$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
13664 if test -x $with_build_time_tools/windmc; then
13665 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13666 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13668$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 13669 else
81ecdfbb
RW
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13671$as_echo "no" >&6; }
0c24b341
NC
13672 fi
13673 elif test $build != $host && test $have_gcc_for_target = yes; then
13674 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13675 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13676 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13677 fi
13678fi
13679if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13680 # Extract the first word of "windmc", so it can be a program name with args.
13681set dummy windmc; ac_word=$2
81ecdfbb
RW
13682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13683$as_echo_n "checking for $ac_word... " >&6; }
13684if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13685 $as_echo_n "(cached) " >&6
0c24b341
NC
13686else
13687 case $WINDMC_FOR_TARGET in
13688 [\\/]* | ?:[\\/]*)
13689 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13690 ;;
13691 *)
13692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13693for as_dir in $gcc_cv_tool_dirs
13694do
13695 IFS=$as_save_IFS
13696 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13697 for ac_exec_ext in '' $ac_executable_extensions; do
13698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13699 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13701 break 2
13702 fi
13703done
81ecdfbb
RW
13704 done
13705IFS=$as_save_IFS
0c24b341
NC
13706
13707 ;;
13708esac
13709fi
13710WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 13711if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13713$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13714else
81ecdfbb
RW
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13716$as_echo "no" >&6; }
0c24b341
NC
13717fi
13718
81ecdfbb 13719
0c24b341
NC
13720fi
13721if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13722
13723
13724if test -n "$WINDMC_FOR_TARGET"; then
13725 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13726elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13727 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13728fi
13729
13730if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13731 for ncn_progname in windmc; do
13732 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13733set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13735$as_echo_n "checking for $ac_word... " >&6; }
13736if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13737 $as_echo_n "(cached) " >&6
0c24b341
NC
13738else
13739 if test -n "$WINDMC_FOR_TARGET"; then
13740 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13741else
13742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13743for as_dir in $PATH
13744do
13745 IFS=$as_save_IFS
13746 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13747 for ac_exec_ext in '' $ac_executable_extensions; do
13748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13749 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13751 break 2
13752 fi
13753done
81ecdfbb
RW
13754 done
13755IFS=$as_save_IFS
0c24b341
NC
13756
13757fi
13758fi
13759WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13760if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13762$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13763else
81ecdfbb
RW
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13765$as_echo "no" >&6; }
0c24b341
NC
13766fi
13767
81ecdfbb 13768
0c24b341
NC
13769 done
13770fi
13771
13772if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13773 for ncn_progname in windmc; do
81ecdfbb
RW
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13775$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
13776 if test -x $with_build_time_tools/${ncn_progname}; then
13777 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13779$as_echo "yes" >&6; }
0c24b341
NC
13780 break
13781 else
81ecdfbb
RW
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13783$as_echo "no" >&6; }
0c24b341
NC
13784 fi
13785 done
13786fi
13787
13788if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13789 for ncn_progname in windmc; do
13790 if test -n "$ncn_target_tool_prefix"; then
13791 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13792set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13794$as_echo_n "checking for $ac_word... " >&6; }
13795if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13796 $as_echo_n "(cached) " >&6
0c24b341
NC
13797else
13798 if test -n "$WINDMC_FOR_TARGET"; then
13799 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13800else
13801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13802for as_dir in $PATH
13803do
13804 IFS=$as_save_IFS
13805 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13806 for ac_exec_ext in '' $ac_executable_extensions; do
13807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13808 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13810 break 2
13811 fi
13812done
81ecdfbb
RW
13813 done
13814IFS=$as_save_IFS
0c24b341
NC
13815
13816fi
13817fi
13818WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13819if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13821$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13822else
81ecdfbb
RW
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13824$as_echo "no" >&6; }
0c24b341
NC
13825fi
13826
81ecdfbb 13827
0c24b341
NC
13828 fi
13829 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13830 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13831set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13833$as_echo_n "checking for $ac_word... " >&6; }
13834if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13835 $as_echo_n "(cached) " >&6
0c24b341
NC
13836else
13837 if test -n "$WINDMC_FOR_TARGET"; then
13838 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13839else
13840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13841for as_dir in $PATH
13842do
13843 IFS=$as_save_IFS
13844 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13845 for ac_exec_ext in '' $ac_executable_extensions; do
13846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13847 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13849 break 2
13850 fi
13851done
81ecdfbb
RW
13852 done
13853IFS=$as_save_IFS
0c24b341
NC
13854
13855fi
13856fi
13857WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13858if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13860$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13861else
81ecdfbb
RW
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13863$as_echo "no" >&6; }
0c24b341
NC
13864fi
13865
81ecdfbb 13866
0c24b341
NC
13867 fi
13868 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13869 done
13870fi
13871
13872if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13873 set dummy windmc
13874 if test $build = $target ; then
13875 WINDMC_FOR_TARGET="$2"
13876 else
13877 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13878 fi
13879else
13880 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13881fi
13882
13883else
13884 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13885fi
13886
13887
be01d343
PB
13888RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13889
81ecdfbb
RW
13890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13891$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 13892if test "x${build}" != "x${host}" ; then
2429c060
PB
13893 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13894 # We already found the complete path
b8025f34 13895 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13897$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13898 else
13899 # Canadian cross, just use what we found
81ecdfbb
RW
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13901$as_echo "pre-installed" >&6; }
2429c060 13902 fi
be01d343
PB
13903else
13904 ok=yes
13905 case " ${configdirs} " in
13906 *" binutils "*) ;;
13907 *) ok=no ;;
13908 esac
c6b750e1 13909
be01d343
PB
13910 if test $ok = yes; then
13911 # An in-tree tool is available and we can use it
13912 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13914$as_echo "just compiled" >&6; }
2429c060
PB
13915 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13916 # We already found the complete path
b8025f34 13917 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13919$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13920 elif test "x$target" = "x$host"; then
13921 # We can use an host tool
13922 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13924$as_echo "host tool" >&6; }
be01d343
PB
13925 else
13926 # We need a cross tool
81ecdfbb
RW
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13928$as_echo "pre-installed" >&6; }
be01d343
PB
13929 fi
13930fi
4b900473 13931
81ecdfbb
RW
13932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13933$as_echo_n "checking where to find the target as... " >&6; }
be01d343 13934if test "x${build}" != "x${host}" ; then
2429c060
PB
13935 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13936 # We already found the complete path
b8025f34 13937 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13939$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13940 else
13941 # Canadian cross, just use what we found
81ecdfbb
RW
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13943$as_echo "pre-installed" >&6; }
2429c060 13944 fi
be01d343
PB
13945else
13946 ok=yes
13947 case " ${configdirs} " in
13948 *" gas "*) ;;
13949 *) ok=no ;;
13950 esac
c6b750e1 13951
be01d343
PB
13952 if test $ok = yes; then
13953 # An in-tree tool is available and we can use it
13954 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13956$as_echo "just compiled" >&6; }
2429c060
PB
13957 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13958 # We already found the complete path
b8025f34 13959 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13961$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13962 elif test "x$target" = "x$host"; then
13963 # We can use an host tool
13964 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13966$as_echo "host tool" >&6; }
be01d343
PB
13967 else
13968 # We need a cross tool
81ecdfbb
RW
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13970$as_echo "pre-installed" >&6; }
be01d343
PB
13971 fi
13972fi
4b900473 13973
81ecdfbb
RW
13974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13975$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 13976if test "x${build}" != "x${host}" ; then
2429c060
PB
13977 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13978 # We already found the complete path
b8025f34 13979 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13981$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13982 else
13983 # Canadian cross, just use what we found
81ecdfbb
RW
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13985$as_echo "pre-installed" >&6; }
2429c060 13986 fi
be01d343
PB
13987else
13988 ok=yes
13989 case " ${configdirs} " in
13990 *" gcc "*) ;;
13991 *) ok=no ;;
13992 esac
c6b750e1 13993
be01d343
PB
13994 if test $ok = yes; then
13995 # An in-tree tool is available and we can use it
13996 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13998$as_echo "just compiled" >&6; }
2429c060
PB
13999 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14000 # We already found the complete path
b8025f34 14001 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14003$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14004 elif test "x$target" = "x$host"; then
14005 # We can use an host tool
14006 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14008$as_echo "host tool" >&6; }
be01d343
PB
14009 else
14010 # We need a cross tool
81ecdfbb
RW
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14012$as_echo "pre-installed" >&6; }
be01d343
PB
14013 fi
14014fi
4b900473 14015
81ecdfbb
RW
14016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14017$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 14018if test "x${build}" != "x${host}" ; then
2429c060
PB
14019 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14020 # We already found the complete path
b8025f34 14021 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14023$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14024 else
14025 # Canadian cross, just use what we found
81ecdfbb
RW
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14027$as_echo "pre-installed" >&6; }
2429c060 14028 fi
be01d343
PB
14029else
14030 ok=yes
14031 case " ${configdirs} " in
14032 *" gcc "*) ;;
14033 *) ok=no ;;
14034 esac
14035 case ,${enable_languages}, in
14036 *,c++,*) ;;
14037 *) ok=no ;;
14038 esac
14039 if test $ok = yes; then
14040 # An in-tree tool is available and we can use it
95e43135 14041 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'
81ecdfbb
RW
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14043$as_echo "just compiled" >&6; }
2429c060
PB
14044 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14045 # We already found the complete path
b8025f34 14046 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14048$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14049 elif test "x$target" = "x$host"; then
14050 # We can use an host tool
14051 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14053$as_echo "host tool" >&6; }
be01d343
PB
14054 else
14055 # We need a cross tool
81ecdfbb
RW
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14057$as_echo "pre-installed" >&6; }
be01d343
PB
14058 fi
14059fi
4b900473 14060
81ecdfbb
RW
14061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14062$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 14063if test "x${build}" != "x${host}" ; then
2429c060
PB
14064 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14065 # We already found the complete path
b8025f34 14066 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14068$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14069 else
14070 # Canadian cross, just use what we found
81ecdfbb
RW
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14072$as_echo "pre-installed" >&6; }
2429c060 14073 fi
be01d343
PB
14074else
14075 ok=yes
14076 case " ${configdirs} " in
14077 *" gcc "*) ;;
14078 *) ok=no ;;
14079 esac
14080 case ,${enable_languages}, in
14081 *,c++,*) ;;
14082 *) ok=no ;;
14083 esac
14084 if test $ok = yes; then
14085 # An in-tree tool is available and we can use it
95e43135 14086 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'
81ecdfbb
RW
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14088$as_echo "just compiled" >&6; }
2429c060
PB
14089 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14090 # We already found the complete path
b8025f34 14091 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14093$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14094 elif test "x$target" = "x$host"; then
14095 # We can use an host tool
14096 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14098$as_echo "host tool" >&6; }
be01d343
PB
14099 else
14100 # We need a cross tool
81ecdfbb
RW
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14102$as_echo "pre-installed" >&6; }
be01d343
PB
14103 fi
14104fi
4b900473 14105
81ecdfbb
RW
14106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14107$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 14108if test "x${build}" != "x${host}" ; then
2429c060
PB
14109 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14110 # We already found the complete path
b8025f34 14111 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14113$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14114 else
14115 # Canadian cross, just use what we found
81ecdfbb
RW
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14117$as_echo "pre-installed" >&6; }
2429c060 14118 fi
be01d343
PB
14119else
14120 ok=yes
14121 case " ${configdirs} " in
14122 *" binutils "*) ;;
14123 *) ok=no ;;
14124 esac
c6b750e1 14125
be01d343
PB
14126 if test $ok = yes; then
14127 # An in-tree tool is available and we can use it
14128 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14130$as_echo "just compiled" >&6; }
2429c060
PB
14131 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14132 # We already found the complete path
b8025f34 14133 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14135$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14136 elif test "x$target" = "x$host"; then
14137 # We can use an host tool
14138 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14140$as_echo "host tool" >&6; }
be01d343
PB
14141 else
14142 # We need a cross tool
81ecdfbb
RW
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14144$as_echo "pre-installed" >&6; }
be01d343
PB
14145 fi
14146fi
4b900473 14147
81ecdfbb
RW
14148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14149$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 14150if test "x${build}" != "x${host}" ; then
2429c060
PB
14151 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14152 # We already found the complete path
b8025f34 14153 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14155$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14156 else
14157 # Canadian cross, just use what we found
81ecdfbb
RW
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14159$as_echo "pre-installed" >&6; }
2429c060 14160 fi
be01d343
PB
14161else
14162 ok=yes
14163 case " ${configdirs} " in
14164 *" gcc "*) ;;
14165 *) ok=no ;;
14166 esac
c6b750e1 14167
be01d343
PB
14168 if test $ok = yes; then
14169 # An in-tree tool is available and we can use it
14170 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14172$as_echo "just compiled" >&6; }
2429c060
PB
14173 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14174 # We already found the complete path
b8025f34 14175 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14177$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14178 elif test "x$target" = "x$host"; then
14179 # We can use an host tool
14180 GCC_FOR_TARGET='$()'
81ecdfbb
RW
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14182$as_echo "host tool" >&6; }
be01d343
PB
14183 else
14184 # We need a cross tool
81ecdfbb
RW
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14186$as_echo "pre-installed" >&6; }
be01d343
PB
14187 fi
14188fi
4b900473 14189
81ecdfbb
RW
14190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14191$as_echo_n "checking where to find the target gcj... " >&6; }
be01d343 14192if test "x${build}" != "x${host}" ; then
2429c060
PB
14193 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14194 # We already found the complete path
b8025f34 14195 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14197$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14198 else
14199 # Canadian cross, just use what we found
81ecdfbb
RW
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14201$as_echo "pre-installed" >&6; }
2429c060 14202 fi
be01d343
PB
14203else
14204 ok=yes
14205 case " ${configdirs} " in
14206 *" gcc "*) ;;
14207 *) ok=no ;;
14208 esac
14209 case ,${enable_languages}, in
14210 *,java,*) ;;
14211 *) ok=no ;;
14212 esac
14213 if test $ok = yes; then
14214 # An in-tree tool is available and we can use it
14215 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14217$as_echo "just compiled" >&6; }
2429c060
PB
14218 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14219 # We already found the complete path
b8025f34 14220 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14222$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14223 elif test "x$target" = "x$host"; then
14224 # We can use an host tool
14225 GCJ_FOR_TARGET='$(GCJ)'
81ecdfbb
RW
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14227$as_echo "host tool" >&6; }
be01d343
PB
14228 else
14229 # We need a cross tool
81ecdfbb
RW
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14231$as_echo "pre-installed" >&6; }
be01d343
PB
14232 fi
14233fi
4b900473 14234
81ecdfbb
RW
14235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14236$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 14237if test "x${build}" != "x${host}" ; then
2429c060
PB
14238 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14239 # We already found the complete path
b8025f34 14240 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14242$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14243 else
14244 # Canadian cross, just use what we found
81ecdfbb
RW
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14246$as_echo "pre-installed" >&6; }
2429c060 14247 fi
be01d343
PB
14248else
14249 ok=yes
14250 case " ${configdirs} " in
14251 *" gcc "*) ;;
14252 *) ok=no ;;
14253 esac
14254 case ,${enable_languages}, in
14255 *,fortran,*) ;;
14256 *) ok=no ;;
14257 esac
14258 if test $ok = yes; then
14259 # An in-tree tool is available and we can use it
14260 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14262$as_echo "just compiled" >&6; }
2429c060
PB
14263 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14264 # We already found the complete path
b8025f34 14265 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14267$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14268 elif test "x$target" = "x$host"; then
14269 # We can use an host tool
14270 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14272$as_echo "host tool" >&6; }
be01d343
PB
14273 else
14274 # We need a cross tool
81ecdfbb
RW
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14276$as_echo "pre-installed" >&6; }
be01d343
PB
14277 fi
14278fi
4b900473 14279
e552509b
ILT
14280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14281$as_echo_n "checking where to find the target gccgo... " >&6; }
14282if test "x${build}" != "x${host}" ; then
14283 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14284 # We already found the complete path
14285 ac_dir=`dirname $GOC_FOR_TARGET`
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14287$as_echo "pre-installed in $ac_dir" >&6; }
14288 else
14289 # Canadian cross, just use what we found
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14291$as_echo "pre-installed" >&6; }
14292 fi
14293else
14294 ok=yes
14295 case " ${configdirs} " in
14296 *" gcc "*) ;;
14297 *) ok=no ;;
14298 esac
14299 case ,${enable_languages}, in
14300 *,go,*) ;;
14301 *) ok=no ;;
14302 esac
14303 if test $ok = yes; then
14304 # An in-tree tool is available and we can use it
14305 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14307$as_echo "just compiled" >&6; }
14308 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14309 # We already found the complete path
14310 ac_dir=`dirname $GOC_FOR_TARGET`
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14312$as_echo "pre-installed in $ac_dir" >&6; }
14313 elif test "x$target" = "x$host"; then
14314 # We can use an host tool
14315 GOC_FOR_TARGET='$(GOC)'
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14317$as_echo "host tool" >&6; }
14318 else
14319 # We need a cross tool
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14321$as_echo "pre-installed" >&6; }
14322 fi
14323fi
14324
81ecdfbb
RW
14325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14326$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 14327if test "x${build}" != "x${host}" ; then
2429c060
PB
14328 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14329 # We already found the complete path
b8025f34 14330 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14332$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14333 else
14334 # Canadian cross, just use what we found
81ecdfbb
RW
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14336$as_echo "pre-installed" >&6; }
2429c060 14337 fi
be01d343
PB
14338else
14339 ok=yes
14340 case " ${configdirs} " in
14341 *" ld "*) ;;
14342 *) ok=no ;;
14343 esac
c6b750e1 14344
be01d343
PB
14345 if test $ok = yes; then
14346 # An in-tree tool is available and we can use it
14347 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14349$as_echo "just compiled" >&6; }
2429c060
PB
14350 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14351 # We already found the complete path
b8025f34 14352 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14354$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14355 elif test "x$target" = "x$host"; then
14356 # We can use an host tool
14357 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14359$as_echo "host tool" >&6; }
be01d343
PB
14360 else
14361 # We need a cross tool
81ecdfbb
RW
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14363$as_echo "pre-installed" >&6; }
be01d343
PB
14364 fi
14365fi
4b900473 14366
81ecdfbb
RW
14367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14368$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 14369if test "x${build}" != "x${host}" ; then
2429c060
PB
14370 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14371 # We already found the complete path
b8025f34 14372 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14374$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14375 else
14376 # Canadian cross, just use what we found
81ecdfbb
RW
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14378$as_echo "pre-installed" >&6; }
2429c060 14379 fi
be01d343 14380else
2429c060
PB
14381 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14382 # We already found the complete path
b8025f34 14383 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14385$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 14386 elif test "x$target" = "x$host"; then
be01d343
PB
14387 # We can use an host tool
14388 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14390$as_echo "host tool" >&6; }
be01d343
PB
14391 else
14392 # We need a cross tool
81ecdfbb
RW
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14394$as_echo "pre-installed" >&6; }
be01d343
PB
14395 fi
14396fi
4b900473 14397
81ecdfbb
RW
14398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14399$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 14400if test "x${build}" != "x${host}" ; then
2429c060
PB
14401 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14402 # We already found the complete path
b8025f34 14403 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14405$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14406 else
14407 # Canadian cross, just use what we found
81ecdfbb
RW
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14409$as_echo "pre-installed" >&6; }
2429c060 14410 fi
be01d343
PB
14411else
14412 ok=yes
14413 case " ${configdirs} " in
14414 *" binutils "*) ;;
14415 *) ok=no ;;
14416 esac
c6b750e1 14417
be01d343
PB
14418 if test $ok = yes; then
14419 # An in-tree tool is available and we can use it
14420 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14422$as_echo "just compiled" >&6; }
2429c060
PB
14423 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14424 # We already found the complete path
b8025f34 14425 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14427$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14428 elif test "x$target" = "x$host"; then
14429 # We can use an host tool
14430 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14432$as_echo "host tool" >&6; }
be01d343
PB
14433 else
14434 # We need a cross tool
81ecdfbb
RW
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14436$as_echo "pre-installed" >&6; }
be01d343
PB
14437 fi
14438fi
4b900473 14439
6b91c541
AP
14440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14441$as_echo_n "checking where to find the target objcopy... " >&6; }
14442if test "x${build}" != "x${host}" ; then
14443 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14444 # We already found the complete path
14445 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14447$as_echo "pre-installed in $ac_dir" >&6; }
14448 else
14449 # Canadian cross, just use what we found
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14451$as_echo "pre-installed" >&6; }
14452 fi
14453else
14454 ok=yes
14455 case " ${configdirs} " in
14456 *" binutils "*) ;;
14457 *) ok=no ;;
14458 esac
14459
14460 if test $ok = yes; then
14461 # An in-tree tool is available and we can use it
14462 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14464$as_echo "just compiled" >&6; }
14465 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14466 # We already found the complete path
14467 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14469$as_echo "pre-installed in $ac_dir" >&6; }
14470 elif test "x$target" = "x$host"; then
14471 # We can use an host tool
1b6c0831 14472 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
6b91c541
AP
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14474$as_echo "host tool" >&6; }
14475 else
14476 # We need a cross tool
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14478$as_echo "pre-installed" >&6; }
14479 fi
14480fi
14481
81ecdfbb
RW
14482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14483$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 14484if test "x${build}" != "x${host}" ; then
2429c060
PB
14485 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14486 # We already found the complete path
b8025f34 14487 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14489$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14490 else
14491 # Canadian cross, just use what we found
81ecdfbb
RW
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14493$as_echo "pre-installed" >&6; }
2429c060 14494 fi
be01d343
PB
14495else
14496 ok=yes
14497 case " ${configdirs} " in
14498 *" binutils "*) ;;
14499 *) ok=no ;;
14500 esac
c6b750e1 14501
be01d343
PB
14502 if test $ok = yes; then
14503 # An in-tree tool is available and we can use it
14504 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14506$as_echo "just compiled" >&6; }
2429c060
PB
14507 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14508 # We already found the complete path
b8025f34 14509 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14511$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14512 elif test "x$target" = "x$host"; then
14513 # We can use an host tool
14514 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14516$as_echo "host tool" >&6; }
be01d343
PB
14517 else
14518 # We need a cross tool
81ecdfbb
RW
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14520$as_echo "pre-installed" >&6; }
be01d343
PB
14521 fi
14522fi
4b900473 14523
81ecdfbb
RW
14524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14525$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 14526if test "x${build}" != "x${host}" ; then
2429c060
PB
14527 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14528 # We already found the complete path
b8025f34 14529 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14531$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14532 else
14533 # Canadian cross, just use what we found
81ecdfbb
RW
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14535$as_echo "pre-installed" >&6; }
2429c060 14536 fi
be01d343
PB
14537else
14538 ok=yes
14539 case " ${configdirs} " in
14540 *" binutils "*) ;;
14541 *) ok=no ;;
14542 esac
c6b750e1 14543
be01d343
PB
14544 if test $ok = yes; then
14545 # An in-tree tool is available and we can use it
14546 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14548$as_echo "just compiled" >&6; }
2429c060
PB
14549 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14550 # We already found the complete path
b8025f34 14551 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14553$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14554 elif test "x$target" = "x$host"; then
14555 # We can use an host tool
14556 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14558$as_echo "host tool" >&6; }
be01d343
PB
14559 else
14560 # We need a cross tool
81ecdfbb
RW
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14562$as_echo "pre-installed" >&6; }
be01d343
PB
14563 fi
14564fi
4b900473 14565
b121d7d4
DD
14566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14567$as_echo_n "checking where to find the target readelf... " >&6; }
14568if test "x${build}" != "x${host}" ; then
14569 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14570 # We already found the complete path
14571 ac_dir=`dirname $READELF_FOR_TARGET`
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14573$as_echo "pre-installed in $ac_dir" >&6; }
14574 else
14575 # Canadian cross, just use what we found
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14577$as_echo "pre-installed" >&6; }
14578 fi
14579else
14580 ok=yes
14581 case " ${configdirs} " in
14582 *" binutils "*) ;;
14583 *) ok=no ;;
14584 esac
14585
14586 if test $ok = yes; then
14587 # An in-tree tool is available and we can use it
14588 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14590$as_echo "just compiled" >&6; }
14591 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14592 # We already found the complete path
14593 ac_dir=`dirname $READELF_FOR_TARGET`
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14595$as_echo "pre-installed in $ac_dir" >&6; }
14596 elif test "x$target" = "x$host"; then
14597 # We can use an host tool
14598 READELF_FOR_TARGET='$(READELF)'
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14600$as_echo "host tool" >&6; }
14601 else
14602 # We need a cross tool
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14604$as_echo "pre-installed" >&6; }
14605 fi
14606fi
14607
81ecdfbb
RW
14608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14609$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 14610if test "x${build}" != "x${host}" ; then
2429c060
PB
14611 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14612 # We already found the complete path
b8025f34 14613 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14615$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14616 else
14617 # Canadian cross, just use what we found
81ecdfbb
RW
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14619$as_echo "pre-installed" >&6; }
2429c060 14620 fi
be01d343
PB
14621else
14622 ok=yes
14623 case " ${configdirs} " in
14624 *" binutils "*) ;;
14625 *) ok=no ;;
14626 esac
c6b750e1 14627
be01d343
PB
14628 if test $ok = yes; then
14629 # An in-tree tool is available and we can use it
9b980aa1 14630 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14632$as_echo "just compiled" >&6; }
2429c060
PB
14633 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14634 # We already found the complete path
b8025f34 14635 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14637$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14638 elif test "x$target" = "x$host"; then
14639 # We can use an host tool
14640 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14642$as_echo "host tool" >&6; }
be01d343
PB
14643 else
14644 # We need a cross tool
81ecdfbb
RW
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14646$as_echo "pre-installed" >&6; }
be01d343
PB
14647 fi
14648fi
4b900473 14649
81ecdfbb
RW
14650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14651$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 14652if test "x${build}" != "x${host}" ; then
2429c060
PB
14653 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14654 # We already found the complete path
b8025f34 14655 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14657$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14658 else
14659 # Canadian cross, just use what we found
81ecdfbb
RW
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14661$as_echo "pre-installed" >&6; }
2429c060 14662 fi
be01d343
PB
14663else
14664 ok=yes
14665 case " ${configdirs} " in
14666 *" binutils "*) ;;
14667 *) ok=no ;;
14668 esac
c6b750e1 14669
be01d343
PB
14670 if test $ok = yes; then
14671 # An in-tree tool is available and we can use it
14672 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14674$as_echo "just compiled" >&6; }
2429c060
PB
14675 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14676 # We already found the complete path
b8025f34 14677 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14679$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14680 elif test "x$target" = "x$host"; then
14681 # We can use an host tool
14682 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14684$as_echo "host tool" >&6; }
be01d343
PB
14685 else
14686 # We need a cross tool
81ecdfbb
RW
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14688$as_echo "pre-installed" >&6; }
be01d343 14689 fi
a0da8069 14690fi
54752a6b 14691
81ecdfbb
RW
14692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14693$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
14694if test "x${build}" != "x${host}" ; then
14695 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14696 # We already found the complete path
14697 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14699$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14700 else
14701 # Canadian cross, just use what we found
81ecdfbb
RW
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14703$as_echo "pre-installed" >&6; }
0c24b341
NC
14704 fi
14705else
14706 ok=yes
14707 case " ${configdirs} " in
14708 *" binutils "*) ;;
14709 *) ok=no ;;
14710 esac
14711
14712 if test $ok = yes; then
14713 # An in-tree tool is available and we can use it
14714 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14716$as_echo "just compiled" >&6; }
0c24b341
NC
14717 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14718 # We already found the complete path
14719 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14721$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14722 elif test "x$target" = "x$host"; then
14723 # We can use an host tool
14724 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14726$as_echo "host tool" >&6; }
0c24b341
NC
14727 else
14728 # We need a cross tool
81ecdfbb
RW
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14730$as_echo "pre-installed" >&6; }
0c24b341
NC
14731 fi
14732fi
14733
54752a6b
NN
14734
14735
be01d343 14736
4b900473 14737
a0da8069
NN
14738# Certain tools may need extra flags.
14739AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14740RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14741NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14742
be01d343
PB
14743# When building target libraries, except in a Canadian cross, we use
14744# the same toolchain as the compiler we just built.
14745COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14746COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14747COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14748if test $host = $build; then
14749 case " $configdirs " in
14750 *" gcc "*)
14751 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14752 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14753 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14754 ;;
14755 esac
14756fi
14757
14758
14759
14760
14761
81ecdfbb
RW
14762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14763$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14764# Check whether --enable-maintainer-mode was given.
14765if test "${enable_maintainer_mode+set}" = set; then :
14766 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
14767else
14768 USE_MAINTAINER_MODE=no
81ecdfbb
RW
14769fi
14770
14771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14772$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
14773
14774
14775if test "$USE_MAINTAINER_MODE" = yes; then
14776 MAINTAINER_MODE_TRUE=
14777 MAINTAINER_MODE_FALSE='#'
14778else
14779 MAINTAINER_MODE_TRUE='#'
14780 MAINTAINER_MODE_FALSE=
c6b750e1 14781fi
3d5e36ae
AO
14782MAINT=$MAINTAINER_MODE_TRUE
14783
1d39f329
NN
14784# ---------------------
14785# GCC bootstrap support
14786# ---------------------
14787
14788# Stage specific cflags for build.
14789stage1_cflags="-g"
14790case $build in
14791 vax-*-*)
14792 case ${GCC} in
14793 yes) stage1_cflags="-g -Wa,-J" ;;
14794 *) stage1_cflags="-g -J" ;;
14795 esac ;;
1d39f329
NN
14796esac
14797
1d89b610 14798
1d39f329 14799
8a0d8a5c 14800# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
14801# Check whether --enable-stage1-checking was given.
14802if test "${enable_stage1_checking+set}" = set; then :
14803 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 14804else
5566c1fa 14805 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
ce6c656d
L
14806 # For --disable-checking or implicit --enable-checking=release, avoid
14807 # setting --enable-checking=gc in the default stage1 checking for LTO
14808 # bootstraps. See PR62077.
14809 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types
14810 case $BUILD_CONFIG in
14811 *lto*)
14812 if test "x$enable_checking" = x && \
14813 test -d ${srcdir}/gcc && \
14814 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14815 stage1_checking=--enable-checking=yes,types
14816 fi;;
14817 *) stage1_checking=--enable-checking=yes,types;;
14818 esac
8a0d8a5c 14819else
5566c1fa 14820 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 14821fi
81ecdfbb 14822fi
8a0d8a5c
PB
14823
14824
c6b750e1 14825
81ecdfbb
RW
14826# Enable -Werror in bootstrap stage2 and later.
14827# Check whether --enable-werror was given.
14828if test "${enable_werror+set}" = set; then :
14829 enableval=$enable_werror;
1d39f329 14830else
a0323144 14831 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 14832 enable_werror=yes
79fcd0ec
PB
14833else
14834 enable_werror=no
14835fi
81ecdfbb
RW
14836fi
14837
1a6f2dc7
NN
14838case ${enable_werror} in
14839 yes) stage2_werror_flag="--enable-werror-always" ;;
14840 *) stage2_werror_flag="" ;;
1d39f329
NN
14841esac
14842
14843
82033c9b
JBG
14844# Enable --enable-host-shared.
14845# Check whether --enable-host-shared was given.
14846if test "${enable_host_shared+set}" = set; then :
14847 enableval=$enable_host_shared; host_shared=$enableval
14848else
14849 host_shared=no
14850fi
14851
14852
14853
1b6c0831
L
14854# PR jit/64780: Require the user to explicitly specify
14855# --enable-host-shared if the jit is enabled, hinting
14856# that they might want to do a separate configure/build of
14857# the jit, to avoid users from slowing down the rest of the
14858# compiler by enabling the jit.
14859if test ${host_shared} = "no" ; then
14860 case "${enable_languages}" in
14861 *jit*)
14862 as_fn_error "
14863Enabling language \"jit\" requires --enable-host-shared.
14864
14865--enable-host-shared typically slows the rest of the compiler down by
14866a few %, so you must explicitly enable it.
14867
14868If you want to build both the jit and the regular compiler, it is often
14869best to do this via two separate configure/builds, in separate
14870directories, to avoid imposing the performance cost of
14871--enable-host-shared on the regular compiler." "$LINENO" 5
14872 ;;
14873 *)
14874 ;;
14875 esac
14876fi
14877
e8a5fa9c
RW
14878# Specify what files to not compare during bootstrap.
14879
14880compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14881case "$target" in
14882 hppa*64*-*-hpux*) ;;
14883 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
1488e230 14884 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
e8a5fa9c
RW
14885esac
14886
14887
81ecdfbb
RW
14888ac_config_files="$ac_config_files Makefile"
14889
c6b750e1 14890cat >confcache <<\_ACEOF
a0da8069
NN
14891# This file is a shell script that caches the results of configure
14892# tests run on this system so they can be shared between configure
c6b750e1
DJ
14893# scripts and configure runs, see configure's option --config-cache.
14894# It is not useful on other systems. If it contains results you don't
14895# want to keep, you may remove or edit it.
a0da8069 14896#
c6b750e1
DJ
14897# config.status only pays attention to the cache file if you give it
14898# the --recheck option to rerun configure.
a0da8069 14899#
c6b750e1
DJ
14900# `ac_cv_env_foo' variables (set or unset) will be overridden when
14901# loading this file, other *unset* `ac_cv_foo' will be assigned the
14902# following values.
14903
14904_ACEOF
14905
a0da8069
NN
14906# The following way of writing the cache mishandles newlines in values,
14907# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14908# So, we kill variables containing newlines.
a0da8069
NN
14909# Ultrix sh set writes to stderr and can't be redirected directly,
14910# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14911(
14912 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14913 eval ac_val=\$$ac_var
14914 case $ac_val in #(
14915 *${as_nl}*)
14916 case $ac_var in #(
14917 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14918$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14919 esac
14920 case $ac_var in #(
14921 _ | IFS | as_nl) ;; #(
14922 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14923 *) { eval $ac_var=; unset $ac_var;} ;;
14924 esac ;;
14925 esac
14926 done
14927
c6b750e1 14928 (set) 2>&1 |
81ecdfbb
RW
14929 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14930 *${as_nl}ac_space=\ *)
14931 # `set' does not quote correctly, so add quotes: double-quote
14932 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
14933 sed -n \
14934 "s/'/'\\\\''/g;
14935 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14936 ;; #(
c6b750e1
DJ
14937 *)
14938 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14939 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 14940 ;;
81ecdfbb
RW
14941 esac |
14942 sort
14943) |
c6b750e1 14944 sed '
81ecdfbb 14945 /^ac_cv_env_/b end
c6b750e1 14946 t clear
81ecdfbb 14947 :clear
c6b750e1
DJ
14948 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14949 t end
81ecdfbb
RW
14950 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14951 :end' >>confcache
14952if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14953 if test -w "$cache_file"; then
14954 test "x$cache_file" != "x/dev/null" &&
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14956$as_echo "$as_me: updating cache $cache_file" >&6;}
c6b750e1 14957 cat confcache >$cache_file
a0da8069 14958 else
81ecdfbb
RW
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14960$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 14961 fi
852e5f18 14962fi
a0da8069 14963rm -f confcache
852e5f18 14964
a0da8069
NN
14965test "x$prefix" = xNONE && prefix=$ac_default_prefix
14966# Let make expand exec_prefix.
14967test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 14968
a0da8069
NN
14969# Transform confdefs.h into DEFS.
14970# Protect against shell expansion while executing Makefile rules.
14971# Protect against Makefile macro expansion.
c6b750e1
DJ
14972#
14973# If the first sed substitution is executed (which looks for macros that
81ecdfbb 14974# take arguments), then branch to the quote section. Otherwise,
c6b750e1 14975# look for a macro that doesn't take arguments.
81ecdfbb
RW
14976ac_script='
14977:mline
14978/\\$/{
14979 N
14980 s,\\\n,,
14981 b mline
14982}
c6b750e1 14983t clear
81ecdfbb
RW
14984:clear
14985s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14986t quote
81ecdfbb 14987s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14988t quote
81ecdfbb
RW
14989b any
14990:quote
14991s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14992s/\[/\\&/g
14993s/\]/\\&/g
14994s/\$/$$/g
14995H
14996:any
14997${
14998 g
14999 s/^\n//
15000 s/\n/ /g
15001 p
15002}
15003'
15004DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
15005
15006
15007ac_libobjs=
15008ac_ltlibobjs=
15009for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15010 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
15011 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15012 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15013 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15014 # will be set to the directory where LIBOBJS objects are built.
15015 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15016 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
15017done
15018LIBOBJS=$ac_libobjs
852e5f18 15019
c6b750e1 15020LTLIBOBJS=$ac_ltlibobjs
376a0e54 15021
cac3d6c4 15022
c6b750e1
DJ
15023
15024: ${CONFIG_STATUS=./config.status}
81ecdfbb 15025ac_write_fail=0
c6b750e1
DJ
15026ac_clean_files_save=$ac_clean_files
15027ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
15028{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15029$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15030as_write_fail=0
15031cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
15032#! $SHELL
15033# Generated by $as_me.
a0da8069 15034# Run this file to recreate the current configuration.
a0da8069 15035# Compiler output produced by configure, useful for debugging
c6b750e1 15036# configure, is in config.log if it exists.
376a0e54 15037
c6b750e1
DJ
15038debug=false
15039ac_cs_recheck=false
15040ac_cs_silent=false
c6b750e1 15041
81ecdfbb
RW
15042SHELL=\${CONFIG_SHELL-$SHELL}
15043export SHELL
15044_ASEOF
15045cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15046## -------------------- ##
15047## M4sh Initialization. ##
15048## -------------------- ##
15049
15050# Be more Bourne compatible
15051DUALCASE=1; export DUALCASE # for MKS sh
15052if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
15053 emulate sh
15054 NULLCMD=:
81ecdfbb 15055 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
15056 # is contrary to our usage. Disable this feature.
15057 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
15058 setopt NO_GLOB_SUBST
15059else
15060 case `(set -o) 2>/dev/null` in #(
15061 *posix*) :
15062 set -o posix ;; #(
15063 *) :
15064 ;;
15065esac
c6b750e1 15066fi
c6b750e1 15067
81ecdfbb
RW
15068
15069as_nl='
15070'
15071export as_nl
15072# Printing a long string crashes Solaris 7 /usr/bin/printf.
15073as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15074as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15075as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15076# Prefer a ksh shell builtin over an external printf program on Solaris,
15077# but without wasting forks for bash or zsh.
15078if test -z "$BASH_VERSION$ZSH_VERSION" \
15079 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15080 as_echo='print -r --'
15081 as_echo_n='print -rn --'
15082elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15083 as_echo='printf %s\n'
15084 as_echo_n='printf %s'
15085else
15086 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15087 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15088 as_echo_n='/usr/ucb/echo -n'
15089 else
15090 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15091 as_echo_n_body='eval
15092 arg=$1;
15093 case $arg in #(
15094 *"$as_nl"*)
15095 expr "X$arg" : "X\\(.*\\)$as_nl";
15096 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15097 esac;
15098 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15099 '
15100 export as_echo_n_body
15101 as_echo_n='sh -c $as_echo_n_body as_echo'
15102 fi
15103 export as_echo_body
15104 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
15105fi
15106
81ecdfbb
RW
15107# The user is always right.
15108if test "${PATH_SEPARATOR+set}" != set; then
15109 PATH_SEPARATOR=:
15110 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15111 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15112 PATH_SEPARATOR=';'
15113 }
15114fi
15115
15116
15117# IFS
15118# We need space, tab and new line, in precisely that order. Quoting is
15119# there to prevent editors from complaining about space-tab.
15120# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15121# splitting by setting IFS to empty value.)
15122IFS=" "" $as_nl"
15123
15124# Find who we are. Look in the path if we contain no directory separator.
15125case $0 in #((
15126 *[\\/]* ) as_myself=$0 ;;
15127 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15128for as_dir in $PATH
15129do
15130 IFS=$as_save_IFS
15131 test -z "$as_dir" && as_dir=.
15132 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15133 done
15134IFS=$as_save_IFS
15135
15136 ;;
15137esac
15138# We did not find ourselves, most probably we were run as `sh COMMAND'
15139# in which case we are not to be found in the path.
15140if test "x$as_myself" = x; then
15141 as_myself=$0
15142fi
15143if test ! -f "$as_myself"; then
15144 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15145 exit 1
15146fi
c6b750e1 15147
81ecdfbb
RW
15148# Unset variables that we do not need and which cause bugs (e.g. in
15149# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15150# suppresses any "Segmentation fault" message there. '((' could
15151# trigger a bug in pdksh 5.2.14.
15152for as_var in BASH_ENV ENV MAIL MAILPATH
15153do eval test x\${$as_var+set} = xset \
15154 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15155done
c6b750e1
DJ
15156PS1='$ '
15157PS2='> '
15158PS4='+ '
15159
15160# NLS nuisances.
81ecdfbb
RW
15161LC_ALL=C
15162export LC_ALL
15163LANGUAGE=C
15164export LANGUAGE
15165
15166# CDPATH.
15167(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15168
15169
15170# as_fn_error ERROR [LINENO LOG_FD]
15171# ---------------------------------
15172# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15173# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15174# script with status $?, using 1 if that was 0.
15175as_fn_error ()
15176{
15177 as_status=$?; test $as_status -eq 0 && as_status=1
15178 if test "$3"; then
15179 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15180 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
c6b750e1 15181 fi
81ecdfbb
RW
15182 $as_echo "$as_me: error: $1" >&2
15183 as_fn_exit $as_status
15184} # as_fn_error
15185
15186
15187# as_fn_set_status STATUS
15188# -----------------------
15189# Set $? to STATUS, without forking.
15190as_fn_set_status ()
15191{
15192 return $1
15193} # as_fn_set_status
15194
15195# as_fn_exit STATUS
15196# -----------------
15197# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15198as_fn_exit ()
15199{
15200 set +e
15201 as_fn_set_status $1
15202 exit $1
15203} # as_fn_exit
15204
15205# as_fn_unset VAR
15206# ---------------
15207# Portably unset VAR.
15208as_fn_unset ()
15209{
15210 { eval $1=; unset $1;}
15211}
15212as_unset=as_fn_unset
15213# as_fn_append VAR VALUE
15214# ----------------------
15215# Append the text in VALUE to the end of the definition contained in VAR. Take
15216# advantage of any shell optimizations that allow amortized linear growth over
15217# repeated appends, instead of the typical quadratic growth present in naive
15218# implementations.
15219if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15220 eval 'as_fn_append ()
15221 {
15222 eval $1+=\$2
15223 }'
15224else
15225 as_fn_append ()
15226 {
15227 eval $1=\$$1\$2
15228 }
15229fi # as_fn_append
15230
15231# as_fn_arith ARG...
15232# ------------------
15233# Perform arithmetic evaluation on the ARGs, and store the result in the
15234# global $as_val. Take advantage of shells that can avoid forks. The arguments
15235# must be portable across $(()) and expr.
15236if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15237 eval 'as_fn_arith ()
15238 {
15239 as_val=$(( $* ))
15240 }'
15241else
15242 as_fn_arith ()
15243 {
15244 as_val=`expr "$@" || test $? -eq 1`
15245 }
15246fi # as_fn_arith
15247
c6b750e1 15248
81ecdfbb
RW
15249if expr a : '\(a\)' >/dev/null 2>&1 &&
15250 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
15251 as_expr=expr
15252else
15253 as_expr=false
15254fi
15255
81ecdfbb 15256if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
15257 as_basename=basename
15258else
15259 as_basename=false
15260fi
15261
81ecdfbb
RW
15262if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15263 as_dirname=dirname
15264else
15265 as_dirname=false
15266fi
c6b750e1 15267
81ecdfbb 15268as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
15269$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15270 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
15271 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15272$as_echo X/"$0" |
15273 sed '/^.*\/\([^/][^/]*\)\/*$/{
15274 s//\1/
15275 q
15276 }
15277 /^X\/\(\/\/\)$/{
15278 s//\1/
15279 q
15280 }
15281 /^X\/\(\/\).*/{
15282 s//\1/
15283 q
15284 }
15285 s/.*/./; q'`
c6b750e1 15286
c6b750e1
DJ
15287# Avoid depending upon Character Ranges.
15288as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15289as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15290as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15291as_cr_digits='0123456789'
15292as_cr_alnum=$as_cr_Letters$as_cr_digits
15293
81ecdfbb
RW
15294ECHO_C= ECHO_N= ECHO_T=
15295case `echo -n x` in #(((((
15296-n*)
15297 case `echo 'xy\c'` in
15298 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15299 xy) ECHO_C='\c';;
15300 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15301 ECHO_T=' ';;
15302 esac;;
15303*)
15304 ECHO_N='-n';;
c6b750e1
DJ
15305esac
15306
81ecdfbb
RW
15307rm -f conf$$ conf$$.exe conf$$.file
15308if test -d conf$$.dir; then
15309 rm -f conf$$.dir/conf$$.file
c6b750e1 15310else
81ecdfbb
RW
15311 rm -f conf$$.dir
15312 mkdir conf$$.dir 2>/dev/null
c6b750e1 15313fi
81ecdfbb
RW
15314if (echo >conf$$.file) 2>/dev/null; then
15315 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 15316 as_ln_s='ln -s'
81ecdfbb
RW
15317 # ... but there are two gotchas:
15318 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15319 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15320 # In both cases, we have to default to `cp -p'.
15321 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15322 as_ln_s='cp -p'
15323 elif ln conf$$.file conf$$ 2>/dev/null; then
15324 as_ln_s=ln
15325 else
15326 as_ln_s='cp -p'
c6b750e1 15327 fi
c6b750e1
DJ
15328else
15329 as_ln_s='cp -p'
15330fi
81ecdfbb
RW
15331rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15332rmdir conf$$.dir 2>/dev/null
15333
15334
15335# as_fn_mkdir_p
15336# -------------
15337# Create "$as_dir" as a directory, including parents if necessary.
15338as_fn_mkdir_p ()
15339{
15340
15341 case $as_dir in #(
15342 -*) as_dir=./$as_dir;;
15343 esac
15344 test -d "$as_dir" || eval $as_mkdir_p || {
15345 as_dirs=
15346 while :; do
15347 case $as_dir in #(
15348 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15349 *) as_qdir=$as_dir;;
15350 esac
15351 as_dirs="'$as_qdir' $as_dirs"
15352 as_dir=`$as_dirname -- "$as_dir" ||
15353$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15354 X"$as_dir" : 'X\(//\)[^/]' \| \
15355 X"$as_dir" : 'X\(//\)$' \| \
15356 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15357$as_echo X"$as_dir" |
15358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15359 s//\1/
15360 q
15361 }
15362 /^X\(\/\/\)[^/].*/{
15363 s//\1/
15364 q
15365 }
15366 /^X\(\/\/\)$/{
15367 s//\1/
15368 q
15369 }
15370 /^X\(\/\).*/{
15371 s//\1/
15372 q
15373 }
15374 s/.*/./; q'`
15375 test -d "$as_dir" && break
15376 done
15377 test -z "$as_dirs" || eval "mkdir $as_dirs"
15378 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15379
c6b750e1 15380
81ecdfbb 15381} # as_fn_mkdir_p
c6b750e1 15382if mkdir -p . 2>/dev/null; then
81ecdfbb 15383 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
15384else
15385 test -d ./-p && rmdir ./-p
15386 as_mkdir_p=false
15387fi
15388
81ecdfbb
RW
15389if test -x / >/dev/null 2>&1; then
15390 as_test_x='test -x'
15391else
15392 if ls -dL / >/dev/null 2>&1; then
15393 as_ls_L_option=L
15394 else
15395 as_ls_L_option=
15396 fi
15397 as_test_x='
15398 eval sh -c '\''
15399 if test -d "$1"; then
15400 test -d "$1/.";
15401 else
15402 case $1 in #(
15403 -*)set "./$1";;
15404 esac;
15405 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15406 ???[sx]*):;;*)false;;esac;fi
15407 '\'' sh
15408 '
15409fi
15410as_executable_p=$as_test_x
c6b750e1
DJ
15411
15412# Sed expression to map a string onto a valid CPP name.
15413as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15414
15415# Sed expression to map a string onto a valid variable name.
15416as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15417
15418
c6b750e1 15419exec 6>&1
81ecdfbb
RW
15420## ----------------------------------- ##
15421## Main body of $CONFIG_STATUS script. ##
15422## ----------------------------------- ##
15423_ASEOF
15424test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15425
15426cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15427# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 15428# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
15429# values after options handling.
15430ac_log="
c6b750e1 15431This file was extended by $as_me, which was
81ecdfbb 15432generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
15433
15434 CONFIG_FILES = $CONFIG_FILES
15435 CONFIG_HEADERS = $CONFIG_HEADERS
15436 CONFIG_LINKS = $CONFIG_LINKS
15437 CONFIG_COMMANDS = $CONFIG_COMMANDS
15438 $ $0 $@
15439
81ecdfbb
RW
15440on `(hostname || uname -n) 2>/dev/null | sed 1q`
15441"
15442
c6b750e1
DJ
15443_ACEOF
15444
81ecdfbb
RW
15445case $ac_config_files in *"
15446"*) set x $ac_config_files; shift; ac_config_files=$*;;
15447esac
c6b750e1 15448
c6b750e1 15449
c6b750e1 15450
81ecdfbb
RW
15451cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15452# Files that config.status was made for.
15453config_files="$ac_config_files"
c6b750e1 15454
81ecdfbb 15455_ACEOF
c6b750e1 15456
81ecdfbb 15457cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15458ac_cs_usage="\
81ecdfbb
RW
15459\`$as_me' instantiates files and other configuration actions
15460from templates according to the current configuration. Unless the files
15461and actions are specified as TAGs, all are instantiated by default.
c6b750e1 15462
81ecdfbb 15463Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
15464
15465 -h, --help print this help, then exit
81ecdfbb
RW
15466 -V, --version print version number and configuration settings, then exit
15467 -q, --quiet, --silent
15468 do not print progress messages
c6b750e1
DJ
15469 -d, --debug don't remove temporary files
15470 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
15471 --file=FILE[:TEMPLATE]
15472 instantiate the configuration file FILE
c6b750e1
DJ
15473
15474Configuration files:
15475$config_files
15476
81ecdfbb 15477Report bugs to the package provider."
c6b750e1 15478
81ecdfbb
RW
15479_ACEOF
15480cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1
DJ
15481ac_cs_version="\\
15482config.status
81ecdfbb
RW
15483configured by $0, generated by GNU Autoconf 2.64,
15484 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
c6b750e1 15485
81ecdfbb 15486Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
15487This config.status script is free software; the Free Software Foundation
15488gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
15489
15490ac_pwd='$ac_pwd'
15491srcdir='$srcdir'
15492INSTALL='$INSTALL'
8e957354 15493AWK='$AWK'
81ecdfbb 15494test -n "\$AWK" || AWK=awk
c6b750e1
DJ
15495_ACEOF
15496
81ecdfbb
RW
15497cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15498# The default lists apply if the user does not specify any file.
c6b750e1
DJ
15499ac_need_defaults=:
15500while test $# != 0
a0da8069 15501do
c6b750e1
DJ
15502 case $1 in
15503 --*=*)
81ecdfbb
RW
15504 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15505 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
15506 ac_shift=:
15507 ;;
81ecdfbb 15508 *)
c6b750e1
DJ
15509 ac_option=$1
15510 ac_optarg=$2
15511 ac_shift=shift
15512 ;;
c6b750e1
DJ
15513 esac
15514
15515 case $ac_option in
15516 # Handling of the options.
a0da8069 15517 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 15518 ac_cs_recheck=: ;;
81ecdfbb
RW
15519 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15520 $as_echo "$ac_cs_version"; exit ;;
15521 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
15522 debug=: ;;
15523 --file | --fil | --fi | --f )
15524 $ac_shift
81ecdfbb
RW
15525 case $ac_optarg in
15526 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15527 esac
15528 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 15529 ac_need_defaults=false;;
81ecdfbb
RW
15530 --he | --h | --help | --hel | -h )
15531 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
15532 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15533 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15534 ac_cs_silent=: ;;
15535
15536 # This is an error.
81ecdfbb
RW
15537 -*) as_fn_error "unrecognized option: \`$1'
15538Try \`$0 --help' for more information." ;;
c6b750e1 15539
81ecdfbb
RW
15540 *) as_fn_append ac_config_targets " $1"
15541 ac_need_defaults=false ;;
c6b750e1 15542
376a0e54 15543 esac
c6b750e1 15544 shift
376a0e54
CM
15545done
15546
c6b750e1 15547ac_configure_extra_args=
376a0e54 15548
c6b750e1
DJ
15549if $ac_cs_silent; then
15550 exec 6>/dev/null
15551 ac_configure_extra_args="$ac_configure_extra_args --silent"
15552fi
376a0e54 15553
c6b750e1 15554_ACEOF
81ecdfbb 15555cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 15556if \$ac_cs_recheck; then
81ecdfbb
RW
15557 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15558 shift
15559 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15560 CONFIG_SHELL='$SHELL'
15561 export CONFIG_SHELL
15562 exec "\$@"
c6b750e1
DJ
15563fi
15564
15565_ACEOF
81ecdfbb
RW
15566cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15567exec 5>>config.log
15568{
15569 echo
15570 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15571## Running $as_me. ##
15572_ASBOX
15573 $as_echo "$ac_log"
15574} >&5
c6b750e1 15575
81ecdfbb
RW
15576_ACEOF
15577cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
15578#
15579# INIT-COMMANDS
15580#
15581extrasub_build="$extrasub_build"
15582 extrasub_host="$extrasub_host"
15583 extrasub_target="$extrasub_target"
15584
81ecdfbb 15585_ACEOF
c6b750e1 15586
81ecdfbb 15587cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15588
81ecdfbb 15589# Handling of arguments.
c6b750e1
DJ
15590for ac_config_target in $ac_config_targets
15591do
81ecdfbb
RW
15592 case $ac_config_target in
15593 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15594
15595 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
15596 esac
15597done
15598
81ecdfbb 15599
c6b750e1
DJ
15600# If the user did not use the arguments to specify the items to instantiate,
15601# then the envvar interface is used. Set only those that are not.
15602# We use the long form for the default assignment because of an extremely
15603# bizarre bug on SunOS 4.1.3.
15604if $ac_need_defaults; then
15605 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15606fi
15607
15608# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 15609# simply because there is no reason against having it here, and in addition,
c6b750e1 15610# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15611# Hook for its removal unless debugging.
15612# Note that there is a small window in which the directory will not be cleaned:
15613# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
15614$debug ||
15615{
81ecdfbb
RW
15616 tmp=
15617 trap 'exit_status=$?
15618 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15619' 0
15620 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 15621}
c6b750e1
DJ
15622# Create a (secure) tmp directory for tmp files.
15623
15624{
81ecdfbb 15625 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
c6b750e1
DJ
15626 test -n "$tmp" && test -d "$tmp"
15627} ||
15628{
81ecdfbb
RW
15629 tmp=./conf$$-$RANDOM
15630 (umask 077 && mkdir "$tmp")
15631} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15632
15633# Set up the scripts for CONFIG_FILES section.
15634# No need to generate them if there are no CONFIG_FILES.
15635# This happens for instance with `./config.status config.h'.
15636if test -n "$CONFIG_FILES"; then
15637
15638if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15639 ac_cs_awk_getline=:
15640 ac_cs_awk_pipe_init=
15641 ac_cs_awk_read_file='
15642 while ((getline aline < (F[key])) > 0)
15643 print(aline)
15644 close(F[key])'
15645 ac_cs_awk_pipe_fini=
15646else
15647 ac_cs_awk_getline=false
15648 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15649 ac_cs_awk_read_file='
15650 print "|#_!!_#|"
15651 print "cat " F[key] " &&"
15652 '$ac_cs_awk_pipe_init
15653 # The final `:' finishes the AND list.
15654 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15655fi
15656ac_cr=`echo X | tr X '\015'`
15657# On cygwin, bash can eat \r inside `` if the user requested igncr.
15658# But we know of no other shell where ac_cr would be empty at this
15659# point, so we can use a bashism as a fallback.
15660if test "x$ac_cr" = x; then
15661 eval ac_cr=\$\'\\r\'
15662fi
15663ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15664if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15665 ac_cs_awk_cr='\r'
15666else
15667 ac_cs_awk_cr=$ac_cr
15668fi
15669
15670echo 'BEGIN {' >"$tmp/subs1.awk" &&
15671_ACEOF
15672
15673# Create commands to substitute file output variables.
c6b750e1 15674{
81ecdfbb
RW
15675 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15676 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15677 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15678 echo "_ACAWK" &&
15679 echo "_ACEOF"
15680} >conf$$files.sh &&
15681. ./conf$$files.sh ||
15682 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15683rm -f conf$$files.sh
c6b750e1 15684
81ecdfbb
RW
15685{
15686 echo "cat >conf$$subs.awk <<_ACEOF" &&
15687 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15688 echo "_ACEOF"
15689} >conf$$subs.sh ||
15690 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15691ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15692ac_delim='%!_!# '
15693for ac_last_try in false false false false false :; do
15694 . ./conf$$subs.sh ||
15695 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15696
15697 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15698 if test $ac_delim_n = $ac_delim_num; then
15699 break
15700 elif $ac_last_try; then
15701 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15702 else
15703 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15704 fi
15705done
15706rm -f conf$$subs.sh
15707
15708cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15709cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 15710_ACEOF
81ecdfbb
RW
15711sed -n '
15712h
15713s/^/S["/; s/!.*/"]=/
15714p
15715g
15716s/^[^!]*!//
15717:repl
15718t repl
15719s/'"$ac_delim"'$//
15720t delim
15721:nl
15722h
15723s/\(.\{148\}\).*/\1/
15724t more1
15725s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15726p
15727n
15728b repl
15729:more1
15730s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15731p
15732g
15733s/.\{148\}//
15734t nl
15735:delim
15736h
15737s/\(.\{148\}\).*/\1/
15738t more2
15739s/["\\]/\\&/g; s/^/"/; s/$/"/
15740p
15741b
15742:more2
15743s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15744p
15745g
15746s/.\{148\}//
15747t delim
15748' <conf$$subs.awk | sed '
15749/^[^""]/{
15750 N
15751 s/\n//
15752}
15753' >>$CONFIG_STATUS || ac_write_fail=1
15754rm -f conf$$subs.awk
15755cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15756_ACAWK
15757cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15758 for (key in S) S_is_set[key] = 1
15759 FS = "\a"
15760 \$ac_cs_awk_pipe_init
15761}
15762{
15763 line = $ 0
15764 nfields = split(line, field, "@")
15765 substed = 0
15766 len = length(field[1])
15767 for (i = 2; i < nfields; i++) {
15768 key = field[i]
15769 keylen = length(key)
15770 if (S_is_set[key]) {
15771 value = S[key]
15772 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15773 len += length(value) + length(field[++i])
15774 substed = 1
15775 } else
15776 len += 1 + keylen
15777 }
15778 if (nfields == 3 && !substed) {
15779 key = field[2]
15780 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15781 \$ac_cs_awk_read_file
15782 next
15783 }
15784 }
15785 print line
15786}
15787\$ac_cs_awk_pipe_fini
15788_ACAWK
15789_ACEOF
15790cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15791if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15792 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15793else
15794 cat
15795fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15796 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15797_ACEOF
15798
15799# VPATH may cause trouble with some makes, so we remove $(srcdir),
15800# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15801# trailing colons and then remove the whole line if VPATH becomes empty
15802# (actually we leave an empty line to preserve line numbers).
15803if test "x$srcdir" = x.; then
15804 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15805s/:*\$(srcdir):*/:/
15806s/:*\${srcdir}:*/:/
15807s/:*@srcdir@:*/:/
15808s/^\([^=]*=[ ]*\):*/\1/
15809s/:*$//
15810s/^[^=]*=[ ]*$//
15811}'
15812fi
c6b750e1 15813
81ecdfbb
RW
15814cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15815fi # test -n "$CONFIG_FILES"
c6b750e1 15816
c6b750e1 15817
81ecdfbb
RW
15818eval set X " :F $CONFIG_FILES "
15819shift
15820for ac_tag
15821do
15822 case $ac_tag in
15823 :[FHLC]) ac_mode=$ac_tag; continue;;
15824 esac
15825 case $ac_mode$ac_tag in
15826 :[FHL]*:*);;
15827 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15828 :[FH]-) ac_tag=-:-;;
15829 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15830 esac
15831 ac_save_IFS=$IFS
15832 IFS=:
15833 set x $ac_tag
15834 IFS=$ac_save_IFS
15835 shift
15836 ac_file=$1
15837 shift
252b5132 15838
81ecdfbb
RW
15839 case $ac_mode in
15840 :L) ac_source=$1;;
15841 :[FH])
15842 ac_file_inputs=
15843 for ac_f
15844 do
15845 case $ac_f in
15846 -) ac_f="$tmp/stdin";;
15847 *) # Look for the file first in the build tree, then in the source tree
15848 # (if the path is not absolute). The absolute path cannot be DOS-style,
15849 # because $ac_f cannot contain `:'.
15850 test -f "$ac_f" ||
15851 case $ac_f in
15852 [\\/$]*) false;;
15853 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15854 esac ||
15855 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15856 esac
15857 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15858 as_fn_append ac_file_inputs " '$ac_f'"
15859 done
c6b750e1 15860
81ecdfbb
RW
15861 # Let's still pretend it is `configure' which instantiates (i.e., don't
15862 # use $as_me), people would be surprised to read:
15863 # /* config.h. Generated by config.status. */
15864 configure_input='Generated from '`
15865 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15866 `' by configure.'
15867 if test x"$ac_file" != x-; then
15868 configure_input="$ac_file. $configure_input"
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15870$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 15871 fi
81ecdfbb
RW
15872 # Neutralize special characters interpreted by sed in replacement strings.
15873 case $configure_input in #(
15874 *\&* | *\|* | *\\* )
15875 ac_sed_conf_input=`$as_echo "$configure_input" |
15876 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15877 *) ac_sed_conf_input=$configure_input;;
15878 esac
cac3d6c4 15879
81ecdfbb
RW
15880 case $ac_tag in
15881 *:-:* | *:-) cat >"$tmp/stdin" \
15882 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15883 esac
15884 ;;
a0da8069 15885 esac
252b5132 15886
81ecdfbb 15887 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
15888$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15889 X"$ac_file" : 'X\(//\)[^/]' \| \
15890 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15891 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15892$as_echo X"$ac_file" |
15893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15894 s//\1/
15895 q
15896 }
15897 /^X\(\/\/\)[^/].*/{
15898 s//\1/
15899 q
15900 }
15901 /^X\(\/\/\)$/{
15902 s//\1/
15903 q
15904 }
15905 /^X\(\/\).*/{
15906 s//\1/
15907 q
15908 }
15909 s/.*/./; q'`
15910 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 15911 ac_builddir=.
252b5132 15912
81ecdfbb
RW
15913case "$ac_dir" in
15914.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15915*)
15916 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15917 # A ".." for each directory in $ac_dir_suffix.
15918 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15919 case $ac_top_builddir_sub in
15920 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15921 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15922 esac ;;
15923esac
15924ac_abs_top_builddir=$ac_pwd
15925ac_abs_builddir=$ac_pwd$ac_dir_suffix
15926# for backward compatibility:
15927ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
15928
15929case $srcdir in
81ecdfbb 15930 .) # We are building in place.
c6b750e1 15931 ac_srcdir=.
81ecdfbb
RW
15932 ac_top_srcdir=$ac_top_builddir_sub
15933 ac_abs_top_srcdir=$ac_pwd ;;
15934 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 15935 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15936 ac_top_srcdir=$srcdir
15937 ac_abs_top_srcdir=$srcdir ;;
15938 *) # Relative name.
15939 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15940 ac_top_srcdir=$ac_top_build_prefix$srcdir
15941 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 15942esac
81ecdfbb 15943ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 15944
252b5132 15945
81ecdfbb
RW
15946 case $ac_mode in
15947 :F)
15948 #
15949 # CONFIG_FILE
15950 #
c6b750e1
DJ
15951
15952 case $INSTALL in
15953 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 15954 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 15955 esac
81ecdfbb 15956_ACEOF
252b5132 15957
81ecdfbb
RW
15958cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15959# If the template does not know about datarootdir, expand it.
15960# FIXME: This hack should be removed a few years after 2.60.
15961ac_datarootdir_hack=; ac_datarootdir_seen=
15962ac_sed_dataroot='
15963/datarootdir/ {
15964 p
15965 q
15966}
15967/@datadir@/p
15968/@docdir@/p
15969/@infodir@/p
15970/@localedir@/p
15971/@mandir@/p'
15972case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15973*datarootdir*) ac_datarootdir_seen=yes;;
15974*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15976$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 15977_ACEOF
81ecdfbb
RW
15978cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15979 ac_datarootdir_hack='
15980 s&@datadir@&$datadir&g
15981 s&@docdir@&$docdir&g
15982 s&@infodir@&$infodir&g
15983 s&@localedir@&$localedir&g
15984 s&@mandir@&$mandir&g
15985 s&\\\${datarootdir}&$datarootdir&g' ;;
15986esac
15987_ACEOF
15988
15989# Neutralize VPATH when `$srcdir' = `.'.
15990# Shell code in configure.ac might set extrasub.
15991# FIXME: do we really want to maintain this feature?
15992cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15993ac_sed_extra="$ac_vpsub
c6b750e1
DJ
15994$extrasub
15995_ACEOF
81ecdfbb 15996cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
15997:t
15998/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15999s|@configure_input@|$ac_sed_conf_input|;t t
16000s&@top_builddir@&$ac_top_builddir_sub&;t t
16001s&@top_build_prefix@&$ac_top_build_prefix&;t t
16002s&@srcdir@&$ac_srcdir&;t t
16003s&@abs_srcdir@&$ac_abs_srcdir&;t t
16004s&@top_srcdir@&$ac_top_srcdir&;t t
16005s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16006s&@builddir@&$ac_builddir&;t t
16007s&@abs_builddir@&$ac_abs_builddir&;t t
16008s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16009s&@INSTALL@&$ac_INSTALL&;t t
16010$ac_datarootdir_hack
16011"
16012eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16013if $ac_cs_awk_getline; then
16014 $AWK -f "$tmp/subs.awk"
16015else
16016 $AWK -f "$tmp/subs.awk" | $SHELL
16017fi >$tmp/out \
16018 || as_fn_error "could not create $ac_file" "$LINENO" 5
16019
16020test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16021 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16022 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16024which seems to be undefined. Please make sure it is defined." >&5
16025$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16026which seems to be undefined. Please make sure it is defined." >&2;}
16027
16028 rm -f "$tmp/stdin"
16029 case $ac_file in
16030 -) cat "$tmp/out" && rm -f "$tmp/out";;
16031 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16032 esac \
16033 || as_fn_error "could not create $ac_file" "$LINENO" 5
16034 ;;
c148b4cb 16035
c148b4cb 16036
c148b4cb 16037
81ecdfbb
RW
16038 esac
16039
06a51eac
RW
16040
16041 case $ac_file$ac_mode in
16042 "Makefile":F) sed "$extrasub_build" Makefile |
16043 sed "$extrasub_host" |
16044 sed "$extrasub_target" > mf$$
16045 mv -f mf$$ Makefile ;;
16046
16047 esac
81ecdfbb
RW
16048done # for ac_tag
16049
16050
16051as_fn_exit 0
c6b750e1 16052_ACEOF
c6b750e1
DJ
16053ac_clean_files=$ac_clean_files_save
16054
81ecdfbb
RW
16055test $ac_write_fail = 0 ||
16056 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16057
c6b750e1
DJ
16058
16059# configure is writing to config.log, and then calls config.status.
16060# config.status does its own redirection, appending to config.log.
16061# Unfortunately, on DOS this fails, as config.log is still kept open
16062# by configure, so config.status won't be able to write to it; its
16063# output is simply discarded. So we exec the FD to /dev/null,
16064# effectively closing config.log, so it can be properly (re)opened and
16065# appended to by config.status. When coming back to configure, we
16066# need to make the FD available again.
16067if test "$no_create" != yes; then
16068 ac_cs_success=:
16069 ac_config_status_args=
16070 test "$silent" = yes &&
16071 ac_config_status_args="$ac_config_status_args --quiet"
16072 exec 5>/dev/null
16073 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16074 exec 5>>config.log
16075 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16076 # would make configure fail if this is the last instruction.
81ecdfbb
RW
16077 $ac_cs_success || as_fn_exit $?
16078fi
16079if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16081$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 16082fi
c148b4cb 16083
This page took 1.765502 seconds and 4 git commands to generate.