Allow symbols in MEMORY region specification
[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
646stage1_languages
700d40ca 647extra_host_libiberty_configure_flags
81ecdfbb
RW
648clooginc
649clooglibs
7ec59b9e 650islinc
81ecdfbb 651poststage1_ldflags
143754cd 652poststage1_libs
81ecdfbb 653stage1_ldflags
b3676d82 654stage1_libs
7ec59b9e 655extra_isl_gmp_configure_flags
81ecdfbb
RW
656extra_mpc_mpfr_configure_flags
657extra_mpc_gmp_configure_flags
658extra_mpfr_configure_flags
659gmpinc
660gmplibs
661do_compare
662GNATMAKE
663GNATBIND
664ac_ct_CXX
665CXXFLAGS
666CXX
667OBJEXT
668EXEEXT
669ac_ct_CC
670CPPFLAGS
671LDFLAGS
672CFLAGS
673CC
ffdd6afc 674EXTRA_CONFIGARGS_LIBJAVA
81ecdfbb
RW
675target_subdir
676host_subdir
677build_subdir
678build_libsubdir
8e957354
PB
679AWK
680SED
81ecdfbb
RW
681LN_S
682LN
683INSTALL_DATA
684INSTALL_SCRIPT
685INSTALL_PROGRAM
686target_os
687target_vendor
688target_cpu
689target
690host_os
691host_vendor
692host_cpu
693host
694target_noncanonical
695host_noncanonical
696build_noncanonical
697build_os
698build_vendor
699build_cpu
700build
701TOPLEVEL_CONFIGURE_ARGUMENTS
702target_alias
703host_alias
704build_alias
705LIBS
706ECHO_T
707ECHO_N
708ECHO_C
709DEFS
710mandir
711localedir
712libdir
713psdir
714pdfdir
715dvidir
716htmldir
717infodir
718docdir
719oldincludedir
720includedir
721localstatedir
722sharedstatedir
723sysconfdir
724datadir
725datarootdir
726libexecdir
727sbindir
728bindir
729program_transform_name
730prefix
731exec_prefix
732PACKAGE_URL
733PACKAGE_BUGREPORT
734PACKAGE_STRING
735PACKAGE_VERSION
736PACKAGE_TARNAME
737PACKAGE_NAME
738PATH_SEPARATOR
739SHELL'
740ac_subst_files='serialization_dependencies
741host_makefile_frag
742target_makefile_frag
743alphaieee_frag
744ospace_frag'
745ac_user_opts='
746enable_option_checking
747with_build_libsubdir
748enable_gold
c7791212 749enable_ld
89a1e9c3
PB
750enable_libquadmath
751enable_libquadmath_support
81ecdfbb
RW
752enable_libada
753enable_libssp
f66a9a70 754enable_libstdcxx
ffdd6afc
ILT
755enable_static_libjava
756enable_bootstrap
81ecdfbb
RW
757with_mpc
758with_mpc_include
759with_mpc_lib
760with_mpfr_dir
761with_mpfr
762with_mpfr_include
763with_mpfr_lib
764with_gmp_dir
765with_gmp
766with_gmp_include
767with_gmp_lib
768with_host_libstdcxx
81ecdfbb 769with_stage1_libs
b3676d82 770with_stage1_ldflags
81ecdfbb 771with_boot_libs
143754cd 772with_boot_ldflags
8e71395b 773with_cloog
7ec59b9e
L
774with_isl
775with_isl_include
776with_isl_lib
777enable_isl_version_check
81ecdfbb
RW
778with_cloog_include
779with_cloog_lib
780enable_cloog_version_check
700d40ca 781enable_lto
81ecdfbb
RW
782enable_stage1_languages
783enable_objc_gc
784with_build_sysroot
785with_debug_prefix_map
96655cc4 786with_build_config
730af8ee 787enable_vtable_verify
81ecdfbb
RW
788enable_serial_configure
789with_build_time_tools
790enable_maintainer_mode
791enable_stage1_checking
792enable_werror
82033c9b 793enable_host_shared
81ecdfbb
RW
794'
795 ac_precious_vars='build_alias
796host_alias
797target_alias
798CC
799CFLAGS
800LDFLAGS
801LIBS
802CPPFLAGS
803CXX
804CXXFLAGS
805CCC
4074d5f2
RW
806build_configargs
807host_configargs
808target_configargs
81ecdfbb
RW
809AR
810AS
811DLLTOOL
812LD
813LIPO
814NM
815RANLIB
816STRIP
817WINDRES
818WINDMC
819OBJCOPY
820OBJDUMP
b121d7d4 821READELF
81ecdfbb
RW
822CC_FOR_TARGET
823CXX_FOR_TARGET
824GCC_FOR_TARGET
825GCJ_FOR_TARGET
826GFORTRAN_FOR_TARGET
e552509b 827GOC_FOR_TARGET
81ecdfbb
RW
828AR_FOR_TARGET
829AS_FOR_TARGET
830DLLTOOL_FOR_TARGET
831LD_FOR_TARGET
832LIPO_FOR_TARGET
833NM_FOR_TARGET
6b91c541 834OBJCOPY_FOR_TARGET
81ecdfbb
RW
835OBJDUMP_FOR_TARGET
836RANLIB_FOR_TARGET
b121d7d4 837READELF_FOR_TARGET
81ecdfbb
RW
838STRIP_FOR_TARGET
839WINDRES_FOR_TARGET
840WINDMC_FOR_TARGET'
841
a0da8069
NN
842
843# Initialize some variables set by options.
c6b750e1
DJ
844ac_init_help=
845ac_init_version=false
81ecdfbb
RW
846ac_unrecognized_opts=
847ac_unrecognized_sep=
a0da8069
NN
848# The variables have the same names as the options, with
849# dashes changed to underlines.
c6b750e1 850cache_file=/dev/null
a0da8069 851exec_prefix=NONE
a0da8069 852no_create=
a0da8069
NN
853no_recursion=
854prefix=NONE
855program_prefix=NONE
856program_suffix=NONE
857program_transform_name=s,x,x,
858silent=
859site=
860srcdir=
a0da8069
NN
861verbose=
862x_includes=NONE
863x_libraries=NONE
c6b750e1
DJ
864
865# Installation directory options.
866# These are left unexpanded so users can "make install exec_prefix=/foo"
867# and all the variables that are supposed to be based on exec_prefix
868# by default will actually change.
869# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 870# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
871bindir='${exec_prefix}/bin'
872sbindir='${exec_prefix}/sbin'
873libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
874datarootdir='${prefix}/share'
875datadir='${datarootdir}'
a0da8069
NN
876sysconfdir='${prefix}/etc'
877sharedstatedir='${prefix}/com'
878localstatedir='${prefix}/var'
a0da8069
NN
879includedir='${prefix}/include'
880oldincludedir='/usr/include'
81ecdfbb
RW
881docdir='${datarootdir}/doc/${PACKAGE}'
882infodir='${datarootdir}/info'
883htmldir='${docdir}'
884dvidir='${docdir}'
885pdfdir='${docdir}'
886psdir='${docdir}'
887libdir='${exec_prefix}/lib'
888localedir='${datarootdir}/locale'
889mandir='${datarootdir}/man'
252b5132 890
a0da8069 891ac_prev=
81ecdfbb 892ac_dashdash=
a0da8069
NN
893for ac_option
894do
a0da8069
NN
895 # If the previous option needs an argument, assign it.
896 if test -n "$ac_prev"; then
81ecdfbb 897 eval $ac_prev=\$ac_option
a0da8069
NN
898 ac_prev=
899 continue
900 fi
252b5132 901
81ecdfbb
RW
902 case $ac_option in
903 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904 *) ac_optarg=yes ;;
905 esac
a0da8069
NN
906
907 # Accept the important Cygnus configure options, so we can diagnose typos.
908
81ecdfbb
RW
909 case $ac_dashdash$ac_option in
910 --)
911 ac_dashdash=yes ;;
a0da8069
NN
912
913 -bindir | --bindir | --bindi | --bind | --bin | --bi)
914 ac_prev=bindir ;;
915 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 916 bindir=$ac_optarg ;;
a0da8069
NN
917
918 -build | --build | --buil | --bui | --bu)
c6b750e1 919 ac_prev=build_alias ;;
a0da8069 920 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 921 build_alias=$ac_optarg ;;
a0da8069
NN
922
923 -cache-file | --cache-file | --cache-fil | --cache-fi \
924 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
925 ac_prev=cache_file ;;
926 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
927 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
928 cache_file=$ac_optarg ;;
929
930 --config-cache | -C)
931 cache_file=config.cache ;;
a0da8069 932
81ecdfbb 933 -datadir | --datadir | --datadi | --datad)
a0da8069 934 ac_prev=datadir ;;
81ecdfbb 935 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 936 datadir=$ac_optarg ;;
a0da8069 937
81ecdfbb
RW
938 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
939 | --dataroo | --dataro | --datar)
940 ac_prev=datarootdir ;;
941 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
942 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
943 datarootdir=$ac_optarg ;;
944
a0da8069 945 -disable-* | --disable-*)
81ecdfbb 946 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 947 # Reject names that are not valid shell variable names.
81ecdfbb
RW
948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949 as_fn_error "invalid feature name: $ac_useropt"
950 ac_useropt_orig=$ac_useropt
951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
953 *"
954"enable_$ac_useropt"
955"*) ;;
956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
957 ac_unrecognized_sep=', ';;
958 esac
959 eval enable_$ac_useropt=no ;;
960
961 -docdir | --docdir | --docdi | --doc | --do)
962 ac_prev=docdir ;;
963 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
964 docdir=$ac_optarg ;;
965
966 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
967 ac_prev=dvidir ;;
968 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
969 dvidir=$ac_optarg ;;
a0da8069
NN
970
971 -enable-* | --enable-*)
81ecdfbb 972 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 973 # Reject names that are not valid shell variable names.
81ecdfbb
RW
974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975 as_fn_error "invalid feature name: $ac_useropt"
976 ac_useropt_orig=$ac_useropt
977 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
979 *"
980"enable_$ac_useropt"
981"*) ;;
982 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
983 ac_unrecognized_sep=', ';;
a0da8069 984 esac
81ecdfbb 985 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
986
987 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
988 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
989 | --exec | --exe | --ex)
990 ac_prev=exec_prefix ;;
991 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
992 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
993 | --exec=* | --exe=* | --ex=*)
c6b750e1 994 exec_prefix=$ac_optarg ;;
a0da8069
NN
995
996 -gas | --gas | --ga | --g)
997 # Obsolete; use --with-gas.
998 with_gas=yes ;;
999
c6b750e1
DJ
1000 -help | --help | --hel | --he | -h)
1001 ac_init_help=long ;;
1002 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1003 ac_init_help=recursive ;;
1004 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1005 ac_init_help=short ;;
a0da8069
NN
1006
1007 -host | --host | --hos | --ho)
c6b750e1 1008 ac_prev=host_alias ;;
a0da8069 1009 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 1010 host_alias=$ac_optarg ;;
a0da8069 1011
81ecdfbb
RW
1012 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1013 ac_prev=htmldir ;;
1014 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1015 | --ht=*)
1016 htmldir=$ac_optarg ;;
1017
a0da8069
NN
1018 -includedir | --includedir | --includedi | --included | --include \
1019 | --includ | --inclu | --incl | --inc)
1020 ac_prev=includedir ;;
1021 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1022 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 1023 includedir=$ac_optarg ;;
a0da8069
NN
1024
1025 -infodir | --infodir | --infodi | --infod | --info | --inf)
1026 ac_prev=infodir ;;
1027 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1028 infodir=$ac_optarg ;;
a0da8069
NN
1029
1030 -libdir | --libdir | --libdi | --libd)
1031 ac_prev=libdir ;;
1032 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1033 libdir=$ac_optarg ;;
a0da8069
NN
1034
1035 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1036 | --libexe | --libex | --libe)
1037 ac_prev=libexecdir ;;
1038 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1039 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1040 libexecdir=$ac_optarg ;;
a0da8069 1041
81ecdfbb
RW
1042 -localedir | --localedir | --localedi | --localed | --locale)
1043 ac_prev=localedir ;;
1044 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1045 localedir=$ac_optarg ;;
1046
a0da8069 1047 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1048 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1049 ac_prev=localstatedir ;;
1050 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1051 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1052 localstatedir=$ac_optarg ;;
a0da8069
NN
1053
1054 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055 ac_prev=mandir ;;
1056 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1057 mandir=$ac_optarg ;;
a0da8069
NN
1058
1059 -nfp | --nfp | --nf)
1060 # Obsolete; use --without-fp.
1061 with_fp=no ;;
1062
1063 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1064 | --no-cr | --no-c | -n)
a0da8069
NN
1065 no_create=yes ;;
1066
1067 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1068 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069 no_recursion=yes ;;
1070
1071 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1072 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1073 | --oldin | --oldi | --old | --ol | --o)
1074 ac_prev=oldincludedir ;;
1075 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1076 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1077 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1078 oldincludedir=$ac_optarg ;;
a0da8069
NN
1079
1080 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1081 ac_prev=prefix ;;
1082 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1083 prefix=$ac_optarg ;;
a0da8069
NN
1084
1085 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1086 | --program-pre | --program-pr | --program-p)
1087 ac_prev=program_prefix ;;
1088 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1089 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1090 program_prefix=$ac_optarg ;;
a0da8069
NN
1091
1092 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1093 | --program-suf | --program-su | --program-s)
1094 ac_prev=program_suffix ;;
1095 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1096 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1097 program_suffix=$ac_optarg ;;
a0da8069
NN
1098
1099 -program-transform-name | --program-transform-name \
1100 | --program-transform-nam | --program-transform-na \
1101 | --program-transform-n | --program-transform- \
1102 | --program-transform | --program-transfor \
1103 | --program-transfo | --program-transf \
1104 | --program-trans | --program-tran \
1105 | --progr-tra | --program-tr | --program-t)
1106 ac_prev=program_transform_name ;;
1107 -program-transform-name=* | --program-transform-name=* \
1108 | --program-transform-nam=* | --program-transform-na=* \
1109 | --program-transform-n=* | --program-transform-=* \
1110 | --program-transform=* | --program-transfor=* \
1111 | --program-transfo=* | --program-transf=* \
1112 | --program-trans=* | --program-tran=* \
1113 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1114 program_transform_name=$ac_optarg ;;
a0da8069 1115
81ecdfbb
RW
1116 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1117 ac_prev=pdfdir ;;
1118 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1119 pdfdir=$ac_optarg ;;
1120
1121 -psdir | --psdir | --psdi | --psd | --ps)
1122 ac_prev=psdir ;;
1123 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124 psdir=$ac_optarg ;;
1125
a0da8069
NN
1126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127 | -silent | --silent | --silen | --sile | --sil)
1128 silent=yes ;;
1129
1130 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1131 ac_prev=sbindir ;;
1132 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1133 | --sbi=* | --sb=*)
c6b750e1 1134 sbindir=$ac_optarg ;;
a0da8069
NN
1135
1136 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1137 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1138 | --sharedst | --shareds | --shared | --share | --shar \
1139 | --sha | --sh)
1140 ac_prev=sharedstatedir ;;
1141 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1142 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1143 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1144 | --sha=* | --sh=*)
c6b750e1 1145 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1146
1147 -site | --site | --sit)
1148 ac_prev=site ;;
1149 -site=* | --site=* | --sit=*)
c6b750e1 1150 site=$ac_optarg ;;
a0da8069
NN
1151
1152 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1153 ac_prev=srcdir ;;
1154 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1155 srcdir=$ac_optarg ;;
a0da8069
NN
1156
1157 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1158 | --syscon | --sysco | --sysc | --sys | --sy)
1159 ac_prev=sysconfdir ;;
1160 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1161 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1162 sysconfdir=$ac_optarg ;;
a0da8069
NN
1163
1164 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1165 ac_prev=target_alias ;;
a0da8069 1166 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1167 target_alias=$ac_optarg ;;
a0da8069
NN
1168
1169 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170 verbose=yes ;;
1171
c6b750e1
DJ
1172 -version | --version | --versio | --versi | --vers | -V)
1173 ac_init_version=: ;;
a0da8069
NN
1174
1175 -with-* | --with-*)
81ecdfbb 1176 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1177 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179 as_fn_error "invalid package name: $ac_useropt"
1180 ac_useropt_orig=$ac_useropt
1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182 case $ac_user_opts in
1183 *"
1184"with_$ac_useropt"
1185"*) ;;
1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1187 ac_unrecognized_sep=', ';;
a0da8069 1188 esac
81ecdfbb 1189 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1190
1191 -without-* | --without-*)
81ecdfbb 1192 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1193 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195 as_fn_error "invalid package name: $ac_useropt"
1196 ac_useropt_orig=$ac_useropt
1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1199 *"
1200"with_$ac_useropt"
1201"*) ;;
1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1203 ac_unrecognized_sep=', ';;
1204 esac
1205 eval with_$ac_useropt=no ;;
a0da8069
NN
1206
1207 --x)
1208 # Obsolete; use --with-x.
1209 with_x=yes ;;
1210
1211 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1212 | --x-incl | --x-inc | --x-in | --x-i)
1213 ac_prev=x_includes ;;
1214 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1215 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1216 x_includes=$ac_optarg ;;
a0da8069
NN
1217
1218 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1219 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1220 ac_prev=x_libraries ;;
1221 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1222 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1223 x_libraries=$ac_optarg ;;
a0da8069 1224
81ecdfbb
RW
1225 -*) as_fn_error "unrecognized option: \`$ac_option'
1226Try \`$0 --help' for more information."
a0da8069
NN
1227 ;;
1228
c6b750e1
DJ
1229 *=*)
1230 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1231 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1232 case $ac_envvar in #(
1233 '' | [0-9]* | *[!_$as_cr_alnum]* )
1234 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1235 esac
1236 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1237 export $ac_envvar ;;
1238
a0da8069 1239 *)
c6b750e1 1240 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1241 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1242 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1243 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
c6b750e1 1244 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
1245 ;;
1246
1247 esac
1248done
1249
1250if test -n "$ac_prev"; then
c6b750e1 1251 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1252 as_fn_error "missing argument to $ac_option"
a0da8069 1253fi
a0da8069 1254
81ecdfbb
RW
1255if test -n "$ac_unrecognized_opts"; then
1256 case $enable_option_checking in
1257 no) ;;
1258 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1259 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1260 esac
81ecdfbb 1261fi
a0da8069 1262
81ecdfbb
RW
1263# Check all directory arguments for consistency.
1264for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1265 datadir sysconfdir sharedstatedir localstatedir includedir \
1266 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1267 libdir localedir mandir
a0da8069 1268do
81ecdfbb
RW
1269 eval ac_val=\$$ac_var
1270 # Remove trailing slashes.
1271 case $ac_val in
1272 */ )
1273 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1274 eval $ac_var=\$ac_val;;
1275 esac
1276 # Be sure to have absolute directory names.
c6b750e1 1277 case $ac_val in
81ecdfbb
RW
1278 [\\/$]* | ?:[\\/]* ) continue;;
1279 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1280 esac
81ecdfbb 1281 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1282done
1283
c6b750e1
DJ
1284# There might be people who depend on the old broken behavior: `$host'
1285# used to hold the argument of --host etc.
1286# FIXME: To remove some day.
1287build=$build_alias
1288host=$host_alias
1289target=$target_alias
376a0e54 1290
c6b750e1
DJ
1291# FIXME: To remove some day.
1292if test "x$host_alias" != x; then
1293 if test "x$build_alias" = x; then
1294 cross_compiling=maybe
81ecdfbb 1295 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
c6b750e1
DJ
1296 If a cross compiler is detected then cross compile mode will be used." >&2
1297 elif test "x$build_alias" != "x$host_alias"; then
1298 cross_compiling=yes
1299 fi
1300fi
1301
1302ac_tool_prefix=
1303test -n "$host_alias" && ac_tool_prefix=$host_alias-
1304
1305test "$silent" = yes && exec 6>/dev/null
a0da8069 1306
a0da8069 1307
81ecdfbb
RW
1308ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309ac_ls_di=`ls -di .` &&
1310ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311 as_fn_error "working directory cannot be determined"
1312test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1313 as_fn_error "pwd does not report name of working directory"
1314
1315
a0da8069
NN
1316# Find the source files, if location was not specified.
1317if test -z "$srcdir"; then
1318 ac_srcdir_defaulted=yes
81ecdfbb
RW
1319 # Try the directory containing this script, then the parent directory.
1320 ac_confdir=`$as_dirname -- "$as_myself" ||
1321$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322 X"$as_myself" : 'X\(//\)[^/]' \| \
1323 X"$as_myself" : 'X\(//\)$' \| \
1324 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1325$as_echo X"$as_myself" |
1326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1327 s//\1/
1328 q
1329 }
1330 /^X\(\/\/\)[^/].*/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\/\)$/{
1335 s//\1/
1336 q
1337 }
1338 /^X\(\/\).*/{
1339 s//\1/
1340 q
1341 }
1342 s/.*/./; q'`
a0da8069 1343 srcdir=$ac_confdir
81ecdfbb 1344 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1345 srcdir=..
1346 fi
1347else
1348 ac_srcdir_defaulted=no
1349fi
81ecdfbb
RW
1350if test ! -r "$srcdir/$ac_unique_file"; then
1351 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1352 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1353fi
1354ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355ac_abs_confdir=`(
1356 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1357 pwd)`
1358# When building in place, set srcdir=.
1359if test "$ac_abs_confdir" = "$ac_pwd"; then
1360 srcdir=.
1361fi
1362# Remove unnecessary trailing slashes from srcdir.
1363# Double slashes in file names in object file debugging info
1364# mess up M-x gdb in Emacs.
1365case $srcdir in
1366*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367esac
6d0cd39e
AM
1368case $srcdir in
1369 *" "*)
1370 as_fn_error "path to source, $srcdir, contains spaces"
1371 ;;
1372esac
9cc8ae67
PB
1373ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1374
81ecdfbb
RW
1375for ac_var in $ac_precious_vars; do
1376 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_env_${ac_var}_value=\$${ac_var}
1378 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1380done
c6b750e1
DJ
1381
1382#
1383# Report the --help message.
1384#
1385if test "$ac_init_help" = "long"; then
1386 # Omit some internal or obsolete options to make the list less imposing.
1387 # This message is too long to be a string in the A/UX 3.1 sh.
1388 cat <<_ACEOF
1389\`configure' configures this package to adapt to many kinds of systems.
1390
1391Usage: $0 [OPTION]... [VAR=VALUE]...
1392
1393To assign environment variables (e.g., CC, CFLAGS...), specify them as
1394VAR=VALUE. See below for descriptions of some of the useful variables.
1395
1396Defaults for the options are specified in brackets.
1397
1398Configuration:
1399 -h, --help display this help and exit
1400 --help=short display options specific to this package
1401 --help=recursive display the short help of all the included packages
1402 -V, --version display version information and exit
1403 -q, --quiet, --silent do not print \`checking...' messages
1404 --cache-file=FILE cache test results in FILE [disabled]
1405 -C, --config-cache alias for \`--cache-file=config.cache'
1406 -n, --no-create do not create output files
1407 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1408
c6b750e1
DJ
1409Installation directories:
1410 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1411 [$ac_default_prefix]
c6b750e1 1412 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1413 [PREFIX]
c6b750e1
DJ
1414
1415By default, \`make install' will install all the files in
1416\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1417an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1418for instance \`--prefix=\$HOME'.
1419
1420For better control, use the options below.
1421
1422Fine tuning of the installation directories:
81ecdfbb
RW
1423 --bindir=DIR user executables [EPREFIX/bin]
1424 --sbindir=DIR system admin executables [EPREFIX/sbin]
1425 --libexecdir=DIR program executables [EPREFIX/libexec]
1426 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1427 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1428 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1429 --libdir=DIR object code libraries [EPREFIX/lib]
1430 --includedir=DIR C header files [PREFIX/include]
1431 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1432 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1433 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1434 --infodir=DIR info documentation [DATAROOTDIR/info]
1435 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1436 --mandir=DIR man documentation [DATAROOTDIR/man]
1437 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1438 --htmldir=DIR html documentation [DOCDIR]
1439 --dvidir=DIR dvi documentation [DOCDIR]
1440 --pdfdir=DIR pdf documentation [DOCDIR]
1441 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1442_ACEOF
1443
1444 cat <<\_ACEOF
1445
1446Program names:
1447 --program-prefix=PREFIX prepend PREFIX to installed program names
1448 --program-suffix=SUFFIX append SUFFIX to installed program names
1449 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1450
1451System types:
1452 --build=BUILD configure for building on BUILD [guessed]
1453 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1454 --target=TARGET configure for building compilers for TARGET [HOST]
1455_ACEOF
a0da8069 1456fi
a0da8069 1457
c6b750e1
DJ
1458if test -n "$ac_init_help"; then
1459
1460 cat <<\_ACEOF
1461
1462Optional Features:
81ecdfbb 1463 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1464 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1465 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
c7791212 1466 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7837304f 1467 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
89a1e9c3
PB
1468 --disable-libquadmath do not build libquadmath directory
1469 --disable-libquadmath-support
1470 disable libquadmath support for Fortran
521ec477
DD
1471 --enable-libada build libada directory
1472 --enable-libssp build libssp directory
f66a9a70 1473 --disable-libstdcxx do not build libstdc++-v3 directory
ffdd6afc
ILT
1474 --enable-static-libjava[=ARG]
1475 build static libjava [default=no]
1476 --enable-bootstrap enable bootstrapping [yes if native build]
7ec59b9e
L
1477 --disable-isl-version-check
1478 disable check for ISL version
e552509b
ILT
1479 --disable-cloog-version-check
1480 disable check for CLooG version
700d40ca 1481 --enable-lto enable link time optimization support
7837304f
AS
1482 --enable-stage1-languages[=all]
1483 choose additional languages to build during stage1.
1484 Mostly useful for compiler development
1485 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1486 Objective-C runtime
730af8ee 1487 --enable-vtable-verify Enable vtable verification feature
521ec477 1488 --enable-serial-[{host,target,build}-]configure
7837304f
AS
1489 force sequential configuration of sub-packages for
1490 the host, target or build machine, or all
1491 sub-packages
1492 --enable-maintainer-mode
1493 enable make rules and dependencies not useful (and
1494 sometimes confusing) to the casual installer
1495 --enable-stage1-checking[=all]
1496 choose additional checking for stage1 of the
1497 compiler
c6b750e1 1498 --enable-werror enable -Werror in bootstrap stage2 and later
82033c9b 1499 --enable-host-shared build host code as shared libraries
c6b750e1
DJ
1500
1501Optional Packages:
1502 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1503 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1504 --with-build-libsubdir=DIR Directory where to find libraries for build system
7837304f
AS
1505 --with-mpc=PATH specify prefix directory for installed MPC package.
1506 Equivalent to --with-mpc-include=PATH/include plus
1507 --with-mpc-lib=PATH/lib
1508 --with-mpc-include=PATH specify directory for installed MPC include files
1509 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
1510 --with-mpfr-dir=PATH this option has been REMOVED
1511 --with-mpfr=PATH specify prefix directory for installed MPFR package.
7837304f
AS
1512 Equivalent to --with-mpfr-include=PATH/include plus
1513 --with-mpfr-lib=PATH/lib
c6b750e1 1514 --with-mpfr-include=PATH
521ec477
DD
1515 specify directory for installed MPFR include files
1516 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1517 --with-gmp-dir=PATH this option has been REMOVED
7837304f
AS
1518 --with-gmp=PATH specify prefix directory for the installed GMP
1519 package. Equivalent to
1520 --with-gmp-include=PATH/include plus
1521 --with-gmp-lib=PATH/lib
521ec477
DD
1522 --with-gmp-include=PATH specify directory for installed GMP include files
1523 --with-gmp-lib=PATH specify directory for the installed GMP library
7837304f
AS
1524 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1525 linking with PPL
b3676d82 1526 --with-stage1-libs=LIBS libraries for stage1
7837304f
AS
1527 --with-stage1-ldflags=FLAGS
1528 linker flags for stage1
7837304f
AS
1529 --with-boot-libs=LIBS libraries for stage2 and later
1530 --with-boot-ldflags=FLAGS
1531 linker flags for stage2 and later
8e71395b
L
1532 --with-cloog=PATH Specify prefix directory for the installed CLooG-ISL
1533 package. Equivalent to
1534 --with-cloog-include=PATH/include plus
1535 --with-cloog-lib=PATH/lib
7ec59b9e 1536 --with-isl=PATH Specify prefix directory for the installed ISL
7837304f 1537 package. Equivalent to
7ec59b9e
L
1538 --with-isl-include=PATH/include plus
1539 --with-isl-lib=PATH/lib
1540 --with-isl-include=PATH Specify directory for installed ISL include files
1541 --with-isl-lib=PATH Specify the directory for the installed ISL library
e552509b
ILT
1542 --with-cloog-include=PATH
1543 Specify directory for installed CLooG include files
1544 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1545 library
521ec477 1546 --with-build-sysroot=SYSROOT
c6b750e1 1547 use sysroot as the system root during the build
8a6ee3ab 1548 --with-debug-prefix-map='A=B C=D ...'
7837304f
AS
1549 map A to B, C to D ... in debug information
1550 --with-build-config='NAME NAME2...'
1551 use config/NAME.mk build configuration
521ec477 1552 --with-build-time-tools=PATH
c6b750e1 1553 use given path to find target tools during the build
c6b750e1
DJ
1554
1555Some influential environment variables:
1556 CC C compiler command
1557 CFLAGS C compiler flags
1558 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1559 nonstandard directory <lib dir>
81ecdfbb
RW
1560 LIBS libraries to pass to the linker, e.g. -l<library>
1561 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1562 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1563 CXX C++ compiler command
1564 CXXFLAGS C++ compiler flags
4074d5f2
RW
1565 build_configargs
1566 additional configure arguments for build directories
1567 host_configargs
1568 additional configure arguments for host directories
1569 target_configargs
1570 additional configure arguments for target directories
9a819804
AO
1571 AR AR for the host
1572 AS AS for the host
1573 DLLTOOL DLLTOOL for the host
1574 LD LD for the host
1575 LIPO LIPO for the host
1576 NM NM for the host
1577 RANLIB RANLIB for the host
1578 STRIP STRIP for the host
1579 WINDRES WINDRES for the host
0c24b341 1580 WINDMC WINDMC for the host
9a819804
AO
1581 OBJCOPY OBJCOPY for the host
1582 OBJDUMP OBJDUMP for the host
b121d7d4 1583 READELF READELF for the host
9a819804
AO
1584 CC_FOR_TARGET
1585 CC for the target
1586 CXX_FOR_TARGET
1587 CXX for the target
1588 GCC_FOR_TARGET
1589 GCC for the target
1590 GCJ_FOR_TARGET
1591 GCJ for the target
1592 GFORTRAN_FOR_TARGET
1593 GFORTRAN for the target
e552509b
ILT
1594 GOC_FOR_TARGET
1595 GOC for the target
9a819804
AO
1596 AR_FOR_TARGET
1597 AR for the target
1598 AS_FOR_TARGET
1599 AS for the target
1600 DLLTOOL_FOR_TARGET
1601 DLLTOOL for the target
1602 LD_FOR_TARGET
1603 LD for the target
1604 LIPO_FOR_TARGET
1605 LIPO for the target
1606 NM_FOR_TARGET
1607 NM for the target
6b91c541
AP
1608 OBJCOPY_FOR_TARGET
1609 OBJCOPY for the target
9a819804
AO
1610 OBJDUMP_FOR_TARGET
1611 OBJDUMP for the target
1612 RANLIB_FOR_TARGET
1613 RANLIB for the target
b121d7d4
DD
1614 READELF_FOR_TARGET
1615 READELF for the target
9a819804
AO
1616 STRIP_FOR_TARGET
1617 STRIP for the target
1618 WINDRES_FOR_TARGET
1619 WINDRES for the target
0c24b341
NC
1620 WINDMC_FOR_TARGET
1621 WINDMC for the target
c6b750e1
DJ
1622
1623Use these variables to override the choices made by `configure' or to help
1624it to find libraries and programs with nonstandard names/locations.
1625
81ecdfbb 1626Report bugs to the package provider.
c6b750e1 1627_ACEOF
81ecdfbb 1628ac_status=$?
c6b750e1
DJ
1629fi
1630
1631if test "$ac_init_help" = "recursive"; then
1632 # If there are subdirs, report their specific --help.
c6b750e1 1633 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1634 test -d "$ac_dir" ||
1635 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1636 continue
c6b750e1
DJ
1637 ac_builddir=.
1638
81ecdfbb
RW
1639case "$ac_dir" in
1640.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1641*)
1642 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1643 # A ".." for each directory in $ac_dir_suffix.
1644 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1645 case $ac_top_builddir_sub in
1646 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1647 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1648 esac ;;
1649esac
1650ac_abs_top_builddir=$ac_pwd
1651ac_abs_builddir=$ac_pwd$ac_dir_suffix
1652# for backward compatibility:
1653ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1654
1655case $srcdir in
81ecdfbb 1656 .) # We are building in place.
c6b750e1 1657 ac_srcdir=.
81ecdfbb
RW
1658 ac_top_srcdir=$ac_top_builddir_sub
1659 ac_abs_top_srcdir=$ac_pwd ;;
1660 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1661 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1662 ac_top_srcdir=$srcdir
1663 ac_abs_top_srcdir=$srcdir ;;
1664 *) # Relative name.
1665 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1666 ac_top_srcdir=$ac_top_build_prefix$srcdir
1667 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1668esac
81ecdfbb
RW
1669ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1670
1671 cd "$ac_dir" || { ac_status=$?; continue; }
1672 # Check for guested configure.
1673 if test -f "$ac_srcdir/configure.gnu"; then
1674 echo &&
1675 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1676 elif test -f "$ac_srcdir/configure"; then
1677 echo &&
1678 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1679 else
81ecdfbb
RW
1680 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1681 fi || ac_status=$?
1682 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1683 done
1684fi
1685
81ecdfbb 1686test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1687if $ac_init_version; then
1688 cat <<\_ACEOF
81ecdfbb
RW
1689configure
1690generated by GNU Autoconf 2.64
c6b750e1 1691
81ecdfbb 1692Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
1693This configure script is free software; the Free Software Foundation
1694gives unlimited permission to copy, distribute and modify it.
1695_ACEOF
81ecdfbb 1696 exit
c6b750e1 1697fi
81ecdfbb
RW
1698
1699## ------------------------ ##
1700## Autoconf initialization. ##
1701## ------------------------ ##
1702
1703# ac_fn_c_try_compile LINENO
1704# --------------------------
1705# Try to compile conftest.$ac_ext, and return whether this succeeded.
1706ac_fn_c_try_compile ()
1707{
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 rm -f conftest.$ac_objext
1710 if { { ac_try="$ac_compile"
1711case "(($ac_try" in
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1714esac
1715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716$as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_compile") 2>conftest.err
1718 ac_status=$?
1719 if test -s conftest.err; then
1720 grep -v '^ *+' conftest.err >conftest.er1
1721 cat conftest.er1 >&5
1722 mv -f conftest.er1 conftest.err
1723 fi
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; } && {
1726 test -z "$ac_c_werror_flag" ||
1727 test ! -s conftest.err
1728 } && test -s conftest.$ac_objext; then :
1729 ac_retval=0
1730else
1731 $as_echo "$as_me: failed program was:" >&5
1732sed 's/^/| /' conftest.$ac_ext >&5
1733
1734 ac_retval=1
1735fi
1736 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1737 return $ac_retval
1738
1739} # ac_fn_c_try_compile
1740
1741# ac_fn_cxx_try_compile LINENO
1742# ----------------------------
1743# Try to compile conftest.$ac_ext, and return whether this succeeded.
1744ac_fn_cxx_try_compile ()
1745{
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 rm -f conftest.$ac_objext
1748 if { { ac_try="$ac_compile"
1749case "(($ac_try" in
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1752esac
1753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754$as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_compile") 2>conftest.err
1756 ac_status=$?
1757 if test -s conftest.err; then
1758 grep -v '^ *+' conftest.err >conftest.er1
1759 cat conftest.er1 >&5
1760 mv -f conftest.er1 conftest.err
1761 fi
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; } && {
1764 test -z "$ac_cxx_werror_flag" ||
1765 test ! -s conftest.err
1766 } && test -s conftest.$ac_objext; then :
1767 ac_retval=0
1768else
1769 $as_echo "$as_me: failed program was:" >&5
1770sed 's/^/| /' conftest.$ac_ext >&5
1771
1772 ac_retval=1
1773fi
1774 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1775 return $ac_retval
1776
1777} # ac_fn_cxx_try_compile
1778
b3676d82
EB
1779# ac_fn_cxx_try_link LINENO
1780# -------------------------
1781# Try to link conftest.$ac_ext, and return whether this succeeded.
1782ac_fn_cxx_try_link ()
1783{
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 rm -f conftest.$ac_objext conftest$ac_exeext
1786 if { { ac_try="$ac_link"
1787case "(($ac_try" in
1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1790esac
1791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792$as_echo "$ac_try_echo"; } >&5
1793 (eval "$ac_link") 2>conftest.err
1794 ac_status=$?
1795 if test -s conftest.err; then
1796 grep -v '^ *+' conftest.err >conftest.er1
1797 cat conftest.er1 >&5
1798 mv -f conftest.er1 conftest.err
1799 fi
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } && {
1802 test -z "$ac_cxx_werror_flag" ||
1803 test ! -s conftest.err
1804 } && test -s conftest$ac_exeext && {
1805 test "$cross_compiling" = yes ||
1806 $as_test_x conftest$ac_exeext
1807 }; then :
1808 ac_retval=0
1809else
1810 $as_echo "$as_me: failed program was:" >&5
1811sed 's/^/| /' conftest.$ac_ext >&5
1812
1813 ac_retval=1
1814fi
1815 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1816 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1817 # interfere with the next link command; also delete a directory that is
1818 # left behind by Apple's compiler. We do this before executing the actions.
1819 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1820 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1821 return $ac_retval
1822
1823} # ac_fn_cxx_try_link
1824
81ecdfbb
RW
1825# ac_fn_c_try_link LINENO
1826# -----------------------
1827# Try to link conftest.$ac_ext, and return whether this succeeded.
1828ac_fn_c_try_link ()
1829{
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 rm -f conftest.$ac_objext conftest$ac_exeext
1832 if { { ac_try="$ac_link"
1833case "(($ac_try" in
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1836esac
1837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838$as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_link") 2>conftest.err
1840 ac_status=$?
1841 if test -s conftest.err; then
1842 grep -v '^ *+' conftest.err >conftest.er1
1843 cat conftest.er1 >&5
1844 mv -f conftest.er1 conftest.err
1845 fi
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; } && {
1848 test -z "$ac_c_werror_flag" ||
1849 test ! -s conftest.err
1850 } && test -s conftest$ac_exeext && {
1851 test "$cross_compiling" = yes ||
1852 $as_test_x conftest$ac_exeext
1853 }; then :
1854 ac_retval=0
1855else
1856 $as_echo "$as_me: failed program was:" >&5
1857sed 's/^/| /' conftest.$ac_ext >&5
1858
1859 ac_retval=1
1860fi
1861 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1862 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1863 # interfere with the next link command; also delete a directory that is
1864 # left behind by Apple's compiler. We do this before executing the actions.
1865 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1866 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1867 return $ac_retval
1868
1869} # ac_fn_c_try_link
7ec59b9e
L
1870
1871# ac_fn_c_try_run LINENO
1872# ----------------------
1873# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1874# that executables *can* be run.
1875ac_fn_c_try_run ()
1876{
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 if { { ac_try="$ac_link"
1879case "(($ac_try" in
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1882esac
1883eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884$as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_link") 2>&5
1886 ac_status=$?
1887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1888 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1889 { { case "(($ac_try" in
1890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891 *) ac_try_echo=$ac_try;;
1892esac
1893eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894$as_echo "$ac_try_echo"; } >&5
1895 (eval "$ac_try") 2>&5
1896 ac_status=$?
1897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898 test $ac_status = 0; }; }; then :
1899 ac_retval=0
1900else
1901 $as_echo "$as_me: program exited with status $ac_status" >&5
1902 $as_echo "$as_me: failed program was:" >&5
1903sed 's/^/| /' conftest.$ac_ext >&5
1904
1905 ac_retval=$ac_status
1906fi
1907 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1908 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1909 return $ac_retval
1910
1911} # ac_fn_c_try_run
81ecdfbb 1912cat >config.log <<_ACEOF
c6b750e1
DJ
1913This file contains any messages produced by compilers while
1914running configure, to aid debugging if configure makes a mistake.
1915
1916It was created by $as_me, which was
81ecdfbb 1917generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
1918
1919 $ $0 $@
1920
1921_ACEOF
81ecdfbb 1922exec 5>>config.log
c6b750e1
DJ
1923{
1924cat <<_ASUNAME
1925## --------- ##
1926## Platform. ##
1927## --------- ##
1928
1929hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1930uname -m = `(uname -m) 2>/dev/null || echo unknown`
1931uname -r = `(uname -r) 2>/dev/null || echo unknown`
1932uname -s = `(uname -s) 2>/dev/null || echo unknown`
1933uname -v = `(uname -v) 2>/dev/null || echo unknown`
1934
1935/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1936/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1937
1938/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1939/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1940/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1941/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
1942/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1943/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1944/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1945
1946_ASUNAME
1947
1948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1949for as_dir in $PATH
1950do
1951 IFS=$as_save_IFS
1952 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1953 $as_echo "PATH: $as_dir"
1954 done
1955IFS=$as_save_IFS
c6b750e1
DJ
1956
1957} >&5
1958
1959cat >&5 <<_ACEOF
1960
1961
1962## ----------- ##
1963## Core tests. ##
1964## ----------- ##
1965
1966_ACEOF
1967
1968
1969# Keep a trace of the command line.
1970# Strip out --no-create and --no-recursion so they do not pile up.
1971# Strip out --silent because we don't want to record it for future runs.
1972# Also quote any args containing shell meta-characters.
1973# Make two passes to allow for proper duplicate-argument suppression.
1974ac_configure_args=
1975ac_configure_args0=
1976ac_configure_args1=
c6b750e1
DJ
1977ac_must_keep_next=false
1978for ac_pass in 1 2
1979do
1980 for ac_arg
1981 do
1982 case $ac_arg in
1983 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1984 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1985 | -silent | --silent | --silen | --sile | --sil)
1986 continue ;;
81ecdfbb
RW
1987 *\'*)
1988 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
1989 esac
1990 case $ac_pass in
81ecdfbb 1991 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 1992 2)
81ecdfbb 1993 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
1994 if test $ac_must_keep_next = true; then
1995 ac_must_keep_next=false # Got value, back to normal.
1996 else
1997 case $ac_arg in
1998 *=* | --config-cache | -C | -disable-* | --disable-* \
1999 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2000 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2001 | -with-* | --with-* | -without-* | --without-* | --x)
2002 case "$ac_configure_args0 " in
2003 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2004 esac
2005 ;;
2006 -* ) ac_must_keep_next=true ;;
2007 esac
2008 fi
81ecdfbb 2009 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
2010 ;;
2011 esac
2012 done
2013done
81ecdfbb
RW
2014{ ac_configure_args0=; unset ac_configure_args0;}
2015{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
2016
2017# When interrupted or exit'd, cleanup temporary files, and complete
2018# config.log. We remove comments because anyway the quotes in there
2019# would cause problems or look ugly.
81ecdfbb
RW
2020# WARNING: Use '\'' to represent an apostrophe within the trap.
2021# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
2022trap 'exit_status=$?
2023 # Save into config.log some information that might help in debugging.
2024 {
2025 echo
2026
2027 cat <<\_ASBOX
2028## ---------------- ##
2029## Cache variables. ##
2030## ---------------- ##
2031_ASBOX
2032 echo
2033 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2034(
2035 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2036 eval ac_val=\$$ac_var
2037 case $ac_val in #(
2038 *${as_nl}*)
2039 case $ac_var in #(
2040 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2041$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2042 esac
2043 case $ac_var in #(
2044 _ | IFS | as_nl) ;; #(
2045 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2046 *) { eval $ac_var=; unset $ac_var;} ;;
2047 esac ;;
2048 esac
2049 done
c6b750e1 2050 (set) 2>&1 |
81ecdfbb
RW
2051 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2052 *${as_nl}ac_space=\ *)
c6b750e1 2053 sed -n \
81ecdfbb
RW
2054 "s/'\''/'\''\\\\'\'''\''/g;
2055 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2056 ;; #(
c6b750e1 2057 *)
81ecdfbb 2058 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 2059 ;;
81ecdfbb
RW
2060 esac |
2061 sort
2062)
c6b750e1
DJ
2063 echo
2064
2065 cat <<\_ASBOX
2066## ----------------- ##
2067## Output variables. ##
2068## ----------------- ##
2069_ASBOX
2070 echo
2071 for ac_var in $ac_subst_vars
2072 do
81ecdfbb
RW
2073 eval ac_val=\$$ac_var
2074 case $ac_val in
2075 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2076 esac
2077 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2078 done | sort
2079 echo
2080
2081 if test -n "$ac_subst_files"; then
2082 cat <<\_ASBOX
81ecdfbb
RW
2083## ------------------- ##
2084## File substitutions. ##
2085## ------------------- ##
c6b750e1
DJ
2086_ASBOX
2087 echo
2088 for ac_var in $ac_subst_files
2089 do
81ecdfbb
RW
2090 eval ac_val=\$$ac_var
2091 case $ac_val in
2092 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2093 esac
2094 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2095 done | sort
2096 echo
2097 fi
2098
2099 if test -s confdefs.h; then
2100 cat <<\_ASBOX
2101## ----------- ##
2102## confdefs.h. ##
2103## ----------- ##
2104_ASBOX
2105 echo
81ecdfbb 2106 cat confdefs.h
c6b750e1
DJ
2107 echo
2108 fi
2109 test "$ac_signal" != 0 &&
81ecdfbb
RW
2110 $as_echo "$as_me: caught signal $ac_signal"
2111 $as_echo "$as_me: exit $exit_status"
c6b750e1 2112 } >&5
81ecdfbb
RW
2113 rm -f core *.core core.conftest.* &&
2114 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 2115 exit $exit_status
81ecdfbb 2116' 0
c6b750e1 2117for ac_signal in 1 2 13 15; do
81ecdfbb 2118 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
2119done
2120ac_signal=0
2121
2122# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2123rm -f -r conftest* confdefs.h
2124
2125$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
2126
2127# Predefined preprocessor variables.
2128
2129cat >>confdefs.h <<_ACEOF
2130#define PACKAGE_NAME "$PACKAGE_NAME"
2131_ACEOF
2132
c6b750e1
DJ
2133cat >>confdefs.h <<_ACEOF
2134#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2135_ACEOF
2136
c6b750e1
DJ
2137cat >>confdefs.h <<_ACEOF
2138#define PACKAGE_VERSION "$PACKAGE_VERSION"
2139_ACEOF
2140
c6b750e1
DJ
2141cat >>confdefs.h <<_ACEOF
2142#define PACKAGE_STRING "$PACKAGE_STRING"
2143_ACEOF
2144
c6b750e1
DJ
2145cat >>confdefs.h <<_ACEOF
2146#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2147_ACEOF
2148
81ecdfbb
RW
2149cat >>confdefs.h <<_ACEOF
2150#define PACKAGE_URL "$PACKAGE_URL"
2151_ACEOF
2152
c6b750e1
DJ
2153
2154# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2155# Prefer an explicitly selected file to automatically selected ones.
2156ac_site_file1=NONE
2157ac_site_file2=NONE
2158if test -n "$CONFIG_SITE"; then
2159 ac_site_file1=$CONFIG_SITE
2160elif test "x$prefix" != xNONE; then
2161 ac_site_file1=$prefix/share/config.site
2162 ac_site_file2=$prefix/etc/config.site
2163else
2164 ac_site_file1=$ac_default_prefix/share/config.site
2165 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2166fi
81ecdfbb
RW
2167for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2168do
2169 test "x$ac_site_file" = xNONE && continue
a0da8069 2170 if test -r "$ac_site_file"; then
81ecdfbb
RW
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2172$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2173 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
2174 . "$ac_site_file"
2175 fi
2176done
2177
2178if test -r "$cache_file"; then
c6b750e1
DJ
2179 # Some versions of bash will fail to source /dev/null (special
2180 # files actually), so we avoid doing that.
2181 if test -f "$cache_file"; then
81ecdfbb
RW
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2183$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2184 case $cache_file in
81ecdfbb
RW
2185 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2186 *) . "./$cache_file";;
c6b750e1
DJ
2187 esac
2188 fi
a0da8069 2189else
81ecdfbb
RW
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2191$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2192 >$cache_file
2193fi
2194
2195# Check that the precious variables saved in the cache have kept the same
2196# value.
2197ac_cache_corrupted=false
81ecdfbb 2198for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2199 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2200 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2201 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2202 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2203 case $ac_old_set,$ac_new_set in
2204 set,)
81ecdfbb
RW
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2206$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2207 ac_cache_corrupted=: ;;
2208 ,set)
81ecdfbb
RW
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2210$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2211 ac_cache_corrupted=: ;;
2212 ,);;
2213 *)
2214 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2215 # differences in whitespace do not lead to failure.
2216 ac_old_val_w=`echo x $ac_old_val`
2217 ac_new_val_w=`echo x $ac_new_val`
2218 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2220$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2221 ac_cache_corrupted=:
2222 else
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2224$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2225 eval $ac_var=\$ac_old_val
2226 fi
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2228$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2230$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2231 fi;;
2232 esac
2233 # Pass precious variables to config.status.
2234 if test "$ac_new_set" = set; then
2235 case $ac_new_val in
81ecdfbb 2236 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2237 *) ac_arg=$ac_var=$ac_new_val ;;
2238 esac
2239 case " $ac_configure_args " in
2240 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2241 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2242 esac
2243 fi
2244done
2245if $ac_cache_corrupted; then
81ecdfbb
RW
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2247$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2249$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2250 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2251fi
81ecdfbb
RW
2252## -------------------- ##
2253## Main body of script. ##
2254## -------------------- ##
a0da8069
NN
2255
2256ac_ext=c
a0da8069 2257ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2260ac_compiler_gnu=$ac_cv_c_compiler_gnu
2261
2262
2263
2264
c6b750e1
DJ
2265
2266
34a0f3cf 2267
c6b750e1 2268
5b553f7e
RW
2269
2270progname=$0
2271# if PWD already has a value, it is probably wrong.
2272if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2273
2274# Export original configure arguments for use by sub-configures.
2275# Quote arguments with shell meta charatcers.
2276TOPLEVEL_CONFIGURE_ARGUMENTS=
2277set -- "$progname" "$@"
2278for ac_arg
2279do
2280 case "$ac_arg" in
2281 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2282 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2283 # if the argument is of the form -foo=baz, quote the baz part only
2284 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2285 *) ;;
2286 esac
2287 # Add the quoted argument to the list.
2288 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2289done
2290if test "$silent" = yes; then
2291 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2292fi
2293# Remove the initial space we just introduced and, as these will be
2294# expanded by make, quote '$'.
2295TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2296
c6b750e1
DJ
2297
2298# Find the build, host, and target systems.
a0da8069 2299ac_aux_dir=
81ecdfbb
RW
2300for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2301 for ac_t in install-sh install.sh shtool; do
2302 if test -f "$ac_dir/$ac_t"; then
2303 ac_aux_dir=$ac_dir
2304 ac_install_sh="$ac_aux_dir/$ac_t -c"
2305 break 2
2306 fi
2307 done
a0da8069
NN
2308done
2309if test -z "$ac_aux_dir"; then
81ecdfbb 2310 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2311fi
81ecdfbb
RW
2312
2313# These three variables are undocumented and unsupported,
2314# and are intended to be withdrawn in a future Autoconf release.
2315# They can cause serious problems if a builder's source tree is in a directory
2316# whose full name contains unusual characters.
2317ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2318ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2319ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2320
a0da8069 2321
c6b750e1 2322# Make sure we can run config.sub.
81ecdfbb
RW
2323$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2324 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2325
2326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2327$as_echo_n "checking build system type... " >&6; }
2328if test "${ac_cv_build+set}" = set; then :
2329 $as_echo_n "(cached) " >&6
2330else
2331 ac_build_alias=$build_alias
2332test "x$ac_build_alias" = x &&
2333 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2334test "x$ac_build_alias" = x &&
2335 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2336ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2337 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2338
2339fi
2340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2341$as_echo "$ac_cv_build" >&6; }
2342case $ac_cv_build in
2343*-*-*) ;;
2344*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2345esac
c6b750e1 2346build=$ac_cv_build
81ecdfbb
RW
2347ac_save_IFS=$IFS; IFS='-'
2348set x $ac_cv_build
2349shift
2350build_cpu=$1
2351build_vendor=$2
2352shift; shift
2353# Remember, the first character of IFS is used to create $*,
2354# except with old shells:
2355build_os=$*
2356IFS=$ac_save_IFS
2357case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2358
a0da8069 2359
c6b750e1
DJ
2360 case ${build_alias} in
2361 "") build_noncanonical=${build} ;;
2362 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2363esac
2364
2365
cac3d6c4 2366
c6b750e1
DJ
2367 case ${host_alias} in
2368 "") host_noncanonical=${build_noncanonical} ;;
2369 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2370esac
2371
cac3d6c4 2372
c6b750e1
DJ
2373
2374 case ${target_alias} in
2375 "") target_noncanonical=${host_noncanonical} ;;
2376 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2377esac
2378
cac3d6c4 2379
c6b750e1
DJ
2380
2381
2382test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2383 test "$program_prefix$program_suffix$program_transform_name" = \
2384 NONENONEs,x,x, &&
c6b750e1 2385 program_transform_name=s,y,y,
cac3d6c4 2386
81ecdfbb
RW
2387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2388$as_echo_n "checking host system type... " >&6; }
2389if test "${ac_cv_host+set}" = set; then :
2390 $as_echo_n "(cached) " >&6
cac3d6c4 2391else
81ecdfbb
RW
2392 if test "x$host_alias" = x; then
2393 ac_cv_host=$ac_cv_build
2394else
2395 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2396 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2397fi
c6b750e1
DJ
2398
2399fi
81ecdfbb
RW
2400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2401$as_echo "$ac_cv_host" >&6; }
2402case $ac_cv_host in
2403*-*-*) ;;
2404*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2405esac
c6b750e1 2406host=$ac_cv_host
81ecdfbb
RW
2407ac_save_IFS=$IFS; IFS='-'
2408set x $ac_cv_host
2409shift
2410host_cpu=$1
2411host_vendor=$2
2412shift; shift
2413# Remember, the first character of IFS is used to create $*,
2414# except with old shells:
2415host_os=$*
2416IFS=$ac_save_IFS
2417case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2418
2419
81ecdfbb
RW
2420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2421$as_echo_n "checking target system type... " >&6; }
2422if test "${ac_cv_target+set}" = set; then :
2423 $as_echo_n "(cached) " >&6
c6b750e1 2424else
81ecdfbb
RW
2425 if test "x$target_alias" = x; then
2426 ac_cv_target=$ac_cv_host
2427else
2428 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2429 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2430fi
c6b750e1 2431
cac3d6c4 2432fi
81ecdfbb
RW
2433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2434$as_echo "$ac_cv_target" >&6; }
2435case $ac_cv_target in
2436*-*-*) ;;
2437*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2438esac
c6b750e1 2439target=$ac_cv_target
81ecdfbb
RW
2440ac_save_IFS=$IFS; IFS='-'
2441set x $ac_cv_target
2442shift
2443target_cpu=$1
2444target_vendor=$2
2445shift; shift
2446# Remember, the first character of IFS is used to create $*,
2447# except with old shells:
2448target_os=$*
2449IFS=$ac_save_IFS
2450case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2451
2452
2453# The aliases save the names the user supplied, while $host etc.
2454# will get canonicalized.
2455test -n "$target_alias" &&
2456 test "$program_prefix$program_suffix$program_transform_name" = \
2457 NONENONEs,x,x, &&
2458 program_prefix=${target_alias}-
81ecdfbb 2459
a0da8069 2460test "$program_prefix" != NONE &&
81ecdfbb 2461 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2462# Use a double $ so make ignores it.
2463test "$program_suffix" != NONE &&
81ecdfbb
RW
2464 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2465# Double any \ or $.
c6b750e1 2466# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2467ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2468program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2469
a0da8069
NN
2470
2471
e5c3f801
NN
2472# Get 'install' or 'install-sh' and its variants.
2473# Find a good install program. We prefer a C program (faster),
2474# so one script is as good as another. But avoid the broken or
2475# incompatible versions:
2476# SysV /etc/install, /usr/sbin/install
2477# SunOS /usr/etc/install
2478# IRIX /sbin/install
2479# AIX /bin/install
c6b750e1 2480# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2481# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2482# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2483# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2484# OS/2's system install, which has a completely different semantic
e5c3f801 2485# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2486# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2488$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2489if test -z "$INSTALL"; then
81ecdfbb
RW
2490if test "${ac_cv_path_install+set}" = set; then :
2491 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2492else
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494for as_dir in $PATH
2495do
2496 IFS=$as_save_IFS
2497 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2498 # Account for people who put trailing slashes in PATH elements.
2499case $as_dir/ in #((
2500 ./ | .// | /[cC]/* | \
c6b750e1 2501 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2502 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2503 /usr/ucb/* ) ;;
2504 *)
2505 # OSF1 and SCO ODT 3.0 have their own names for install.
2506 # Don't use installbsd from OSF since it installs stuff as root
2507 # by default.
2508 for ac_prog in ginstall scoinst install; do
2509 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 2510 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
e5c3f801 2511 if test $ac_prog = install &&
c6b750e1 2512 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2513 # AIX install. It has an incompatible calling convention.
2514 :
c6b750e1
DJ
2515 elif test $ac_prog = install &&
2516 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2517 # program-specific install script used by HP pwplus--don't use.
2518 :
e5c3f801 2519 else
58c85be7
RW
2520 rm -rf conftest.one conftest.two conftest.dir
2521 echo one > conftest.one
2522 echo two > conftest.two
2523 mkdir conftest.dir
2524 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2525 test -s conftest.one && test -s conftest.two &&
2526 test -s conftest.dir/conftest.one &&
2527 test -s conftest.dir/conftest.two
2528 then
2529 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2530 break 3
2531 fi
e5c3f801
NN
2532 fi
2533 fi
2534 done
c6b750e1
DJ
2535 done
2536 ;;
2537esac
81ecdfbb
RW
2538
2539 done
2540IFS=$as_save_IFS
c6b750e1 2541
58c85be7 2542rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2543
2544fi
2545 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2546 INSTALL=$ac_cv_path_install
e5c3f801 2547 else
58c85be7
RW
2548 # As a last resort, use the slow shell script. Don't cache a
2549 # value for INSTALL within a source directory, because that will
e5c3f801 2550 # break other packages using the cache if that directory is
58c85be7 2551 # removed, or if the value is a relative name.
c6b750e1 2552 INSTALL=$ac_install_sh
e5c3f801
NN
2553 fi
2554fi
81ecdfbb
RW
2555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2556$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2557
2558# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2559# It thinks the first close brace ends the variable substitution.
2560test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2561
c6b750e1 2562test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2563
2564test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2565
81ecdfbb
RW
2566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2567$as_echo_n "checking whether ln works... " >&6; }
2568if test "${acx_cv_prog_LN+set}" = set; then :
2569 $as_echo_n "(cached) " >&6
656fdd47
PB
2570else
2571 rm -f conftestdata_t
2572echo >conftestdata_f
2573if ln conftestdata_f conftestdata_t 2>/dev/null
2574then
2575 acx_cv_prog_LN=ln
2576else
2577 acx_cv_prog_LN=no
2578fi
2579rm -f conftestdata_f conftestdata_t
2580
2581fi
2582if test $acx_cv_prog_LN = no; then
2583 LN="cp"
81ecdfbb
RW
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2585$as_echo "no, using $LN" >&6; }
656fdd47
PB
2586else
2587 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2589$as_echo "yes" >&6; }
656fdd47
PB
2590fi
2591
81ecdfbb
RW
2592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2593$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2594LN_S=$as_ln_s
2595if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2597$as_echo "yes" >&6; }
cac3d6c4 2598else
81ecdfbb
RW
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2600$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2601fi
2602
8e957354
PB
2603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2604$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2605if test "${ac_cv_path_SED+set}" = set; then :
2606 $as_echo_n "(cached) " >&6
2607else
2608 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2609 for ac_i in 1 2 3 4 5 6 7; do
2610 ac_script="$ac_script$as_nl$ac_script"
2611 done
2612 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2613 { ac_script=; unset ac_script;}
2614 if test -z "$SED"; then
2615 ac_path_SED_found=false
2616 # Loop through the user's path and test for each of PROGNAME-LIST
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618for as_dir in $PATH
2619do
2620 IFS=$as_save_IFS
2621 test -z "$as_dir" && as_dir=.
2622 for ac_prog in sed gsed; do
2623 for ac_exec_ext in '' $ac_executable_extensions; do
2624 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2625 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2626# Check for GNU ac_path_SED and select it if it is found.
2627 # Check for GNU $ac_path_SED
2628case `"$ac_path_SED" --version 2>&1` in
2629*GNU*)
2630 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2631*)
2632 ac_count=0
2633 $as_echo_n 0123456789 >"conftest.in"
2634 while :
2635 do
2636 cat "conftest.in" "conftest.in" >"conftest.tmp"
2637 mv "conftest.tmp" "conftest.in"
2638 cp "conftest.in" "conftest.nl"
2639 $as_echo '' >> "conftest.nl"
2640 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2641 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2642 as_fn_arith $ac_count + 1 && ac_count=$as_val
2643 if test $ac_count -gt ${ac_path_SED_max-0}; then
2644 # Best one so far, save it but keep looking for a better one
2645 ac_cv_path_SED="$ac_path_SED"
2646 ac_path_SED_max=$ac_count
2647 fi
2648 # 10*(2^10) chars as input seems more than enough
2649 test $ac_count -gt 10 && break
2650 done
2651 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2652esac
2653
2654 $ac_path_SED_found && break 3
2655 done
2656 done
2657 done
2658IFS=$as_save_IFS
2659 if test -z "$ac_cv_path_SED"; then
2660 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2661 fi
2662else
2663 ac_cv_path_SED=$SED
2664fi
2665
2666fi
2667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2668$as_echo "$ac_cv_path_SED" >&6; }
2669 SED="$ac_cv_path_SED"
2670 rm -f conftest.sed
2671
2672for ac_prog in gawk mawk nawk awk
2673do
2674 # Extract the first word of "$ac_prog", so it can be a program name with args.
2675set dummy $ac_prog; ac_word=$2
2676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2677$as_echo_n "checking for $ac_word... " >&6; }
2678if test "${ac_cv_prog_AWK+set}" = set; then :
2679 $as_echo_n "(cached) " >&6
2680else
2681 if test -n "$AWK"; then
2682 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2683else
2684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685for as_dir in $PATH
2686do
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2691 ac_cv_prog_AWK="$ac_prog"
2692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 break 2
2694 fi
2695done
2696 done
2697IFS=$as_save_IFS
2698
2699fi
2700fi
2701AWK=$ac_cv_prog_AWK
2702if test -n "$AWK"; then
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2704$as_echo "$AWK" >&6; }
2705else
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707$as_echo "no" >&6; }
2708fi
2709
2710
2711 test -n "$AWK" && break
2712done
2713
e5c3f801 2714
0fdbe983
DJ
2715srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2716
2717# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2718# a relative path.
2719if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2720 INSTALL="${srcpwd}/install-sh -c"
2721fi
2722
a0da8069
NN
2723# Set srcdir to "." if that's what it is.
2724# This is important for multilib support.
2725pwd=`${PWDCMD-pwd}`
a0da8069
NN
2726if test "${pwd}" = "${srcpwd}" ; then
2727 srcdir=.
252b5132
RH
2728fi
2729
a0da8069 2730topsrcdir=$srcpwd
252b5132 2731
a0da8069 2732extra_host_args=
afefada0 2733
a0da8069
NN
2734### To add a new directory to the tree, first choose whether it is a target
2735### or a host dependent tool. Then put it into the appropriate list
2736### (library or tools, host or target), doing a dependency sort.
252b5132 2737
c6b750e1 2738# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2739# configdirs, or target_configdirs; see the serialization section below.
252b5132 2740
c6b750e1
DJ
2741# Dependency sorting is only needed when *configuration* must be done in
2742# a particular order. In all cases a dependency should be specified in
a0da8069 2743# the Makefile, whether or not it's implicitly specified here.
252b5132 2744
a0da8069
NN
2745# Double entries in build_configdirs, configdirs, or target_configdirs may
2746# cause circular dependencies and break everything horribly.
252b5132 2747
6a9cf61e
PB
2748# these library is used by various programs built for the build
2749# environment
2750#
2751build_libs="build-libiberty"
2752
2753# these tools are built for the build environment
a90ef4bf 2754build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2755
a0da8069
NN
2756# these libraries are used by various programs built for the host environment
2757#
2bf680c4 2758host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
a0da8069 2759
a0da8069
NN
2760# these tools are built for the host environment
2761# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2762# know that we are building the simulator.
2763# binutils, gas and ld appear in that order because it makes sense to run
2764# "make check" in that particular order.
e6de499b 2765# If --enable-gold is used, "gold" may replace "ld".
a90ef4bf 2766host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
a0da8069
NN
2767
2768# libgcj represents the runtime libraries only used by gcj.
2769libgcj="target-libffi \
a0da8069 2770 target-zlib \
a0da8069
NN
2771 target-libjava"
2772
2773# these libraries are built for the target environment, and are built after
2774# the host libraries and the host tools (which may be a cross compiler)
ffdd6afc 2775# Note that libiberty is not a target library.
b1299c4e 2776target_libraries="target-libgcc \
2bf680c4 2777 target-libbacktrace \
a0da8069
NN
2778 target-libgloss \
2779 target-newlib \
cff87f51 2780 target-libgomp \
522e3d71 2781 target-libcilkrts \
7ec59b9e 2782 target-libatomic \
d32e2926 2783 target-libitm \
b9459e83 2784 target-libstdc++-v3 \
5286fdef 2785 target-libsanitizer \
95e43135 2786 target-libvtv \
bb780410 2787 target-libssp \
e552509b 2788 target-libquadmath \
4b1cb4fe 2789 target-libgfortran \
4f0ef2d8 2790 target-boehm-gc \
83326456 2791 ${libgcj} \
a2592b1b 2792 target-libobjc \
e552509b
ILT
2793 target-libada \
2794 target-libgo"
a0da8069 2795
9c14acb8
NN
2796# these tools are built using the target libraries, and are intended to
2797# run only in the target environment
a0da8069 2798#
9c14acb8 2799# note: any program that *uses* libraries that are in the "target_libraries"
0377a422 2800# list belongs in this list.
a0da8069 2801#
a90ef4bf 2802target_tools="target-rda"
252b5132 2803
a0da8069 2804################################################################################
252b5132 2805
a0da8069
NN
2806## All tools belong in one of the four categories, and are assigned above
2807## We assign ${configdirs} this way to remove all embedded newlines. This
2808## is important because configure will choke if they ever get through.
2809## ${configdirs} is directories we build using the host tools.
2810## ${target_configdirs} is directories we build using the target tools.
a0da8069 2811configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2812target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2813build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2814
9cc8ae67
PB
2815
2816
a0da8069 2817################################################################################
252b5132 2818
a0da8069 2819srcname="gnu development package"
252b5132 2820
a0da8069
NN
2821# This gets set non-empty for some net releases of packages.
2822appdirs=""
252b5132 2823
a0da8069
NN
2824# Define is_cross_compiler to save on calls to 'test'.
2825is_cross_compiler=
2826if test x"${host}" = x"${target}" ; then
2827 is_cross_compiler=no
252b5132 2828else
a0da8069 2829 is_cross_compiler=yes
c6b750e1 2830fi
252b5132 2831
9175bfc0 2832# Find the build and target subdir names.
dd12c3a8 2833
66a79c16
DJ
2834# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2835# have matching libraries, they should use host libraries: Makefile.tpl
2836# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2837# However, they still use the build modules, because the corresponding
2838# host modules (e.g. bison) are only built for the host when bootstrap
2839# finishes. So:
2840# - build_subdir is where we find build modules, and never changes.
2841# - build_libsubdir is where we find build libraries, and can be overridden.
2842
2843# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2844build_subdir="build-${build_noncanonical}"
c6b750e1 2845
81ecdfbb
RW
2846# Check whether --with-build-libsubdir was given.
2847if test "${with_build_libsubdir+set}" = set; then :
2848 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2849else
2850 build_libsubdir="$build_subdir"
81ecdfbb
RW
2851fi
2852
b00612cc
PB
2853# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2854if ( test $srcdir = . && test -d gcc ) \
2855 || test -d $srcdir/../host-${host_noncanonical}; then
2856 host_subdir="host-${host_noncanonical}"
2857else
2858 host_subdir=.
2859fi
dd12c3a8
NN
2860# No prefix.
2861target_subdir=${target_noncanonical}
c6b750e1 2862
2fd0b40b
RW
2863# Be sure to cover against remnants of an in-tree build.
2864if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2865 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2866Use a pristine source tree when building in a separate tree" "$LINENO" 5
2867fi
252b5132 2868
a0da8069
NN
2869# Skipdirs are removed silently.
2870skipdirs=
2871# Noconfigdirs are removed loudly.
2872noconfigdirs=""
252b5132 2873
a0da8069
NN
2874use_gnu_ld=
2875# Make sure we don't let GNU ld be added if we didn't want it.
2876if test x$with_gnu_ld = xno ; then
2877 use_gnu_ld=no
93f9b408 2878 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2879fi
2880
a0da8069
NN
2881use_gnu_as=
2882# Make sure we don't let GNU as be added if we didn't want it.
2883if test x$with_gnu_as = xno ; then
2884 use_gnu_as=no
2885 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2886fi
2887
700d40ca
ILT
2888use_included_zlib=
2889# Make sure we don't let ZLIB be added if we didn't want it.
2890if test x$with_system_zlib = xyes ; then
2891 use_included_zlib=no
2892 noconfigdirs="$noconfigdirs zlib"
2893fi
2894
c6b750e1 2895# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2896# it's not even worth trying to configure, much less build, that tool.
252b5132 2897
a0da8069
NN
2898case ${with_x} in
2899 yes | "") ;; # the default value for this tree is that X11 is available
2900 no)
675c6968 2901 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2902 # We won't be able to build gdbtk without X.
c6b750e1 2903 enable_gdbtk=no
a0da8069
NN
2904 ;;
2905 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2906esac
252b5132 2907
0377a422 2908# Some are only suitable for cross toolchains.
a0da8069
NN
2909# Remove these if host=target.
2910cross_only="target-libgloss target-newlib target-opcodes"
2911
2912case $is_cross_compiler in
2913 no) skipdirs="${skipdirs} ${cross_only}" ;;
a0da8069 2914esac
252b5132 2915
a0da8069
NN
2916# If both --with-headers and --with-libs are specified, default to
2917# --without-newlib.
32be62b5
RS
2918if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2919 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2920 if test x"${with_newlib}" = x ; then
2921 with_newlib=no
2922 fi
252b5132
RH
2923fi
2924
a0da8069
NN
2925# Recognize --with-newlib/--without-newlib.
2926case ${with_newlib} in
2927 no) skipdirs="${skipdirs} target-newlib" ;;
2928 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2929esac
252b5132 2930
c7791212
NC
2931# Handle --enable-gold, --enable-ld.
2932# --disable-gold [--enable-ld]
2933# Build only ld. Default option.
d3b50760
L
2934# --enable-gold [--enable-ld]
2935# Build both gold and ld. Install gold as "ld.gold", install ld
2936# as "ld.bfd" and "ld".
2937# --enable-gold=default [--enable-ld]
c7791212
NC
2938# Build both gold and ld. Install gold as "ld.gold" and "ld",
2939# install ld as "ld.bfd".
2940# --enable-gold[=default] --disable-ld
2941# Build only gold, which is then installed as both "ld.gold" and "ld".
2942# --enable-gold --enable-ld=default
d3b50760
L
2943# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2944# and ld.bfd).
c7791212
NC
2945# In other words, ld is default
2946# --enable-gold=default --enable-ld=default
2947# Error.
2948
2949default_ld=
81ecdfbb
RW
2950# Check whether --enable-gold was given.
2951if test "${enable_gold+set}" = set; then :
2952 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
2953else
2954 ENABLE_GOLD=no
81ecdfbb
RW
2955fi
2956
c7791212
NC
2957case "${ENABLE_GOLD}" in
2958 yes|default)
e6de499b
NC
2959 # Check for ELF target.
2960 is_elf=no
2961 case "${target}" in
2962 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2344b8da 2963 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
5b806d27 2964 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2bda3143 2965 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
e6de499b
NC
2966 case "${target}" in
2967 *-*-linux*aout* | *-*-linux*oldld*)
2968 ;;
2969 *)
2970 is_elf=yes
2971 ;;
2972 esac
2973 esac
2974
2975 if test "$is_elf" = "yes"; then
2976 # Check for target supported by gold.
93f9b408 2977 case "${target}" in
6d26190c
JY
2978 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2979 | aarch64*-*-* | tilegx*-*-*)
c7791212
NC
2980 configdirs="$configdirs gold"
2981 if test x${ENABLE_GOLD} = xdefault; then
2982 default_ld=gold
2983 fi
e6de499b 2984 ENABLE_GOLD=yes
93f9b408
ILT
2985 ;;
2986 esac
e6de499b
NC
2987 fi
2988 ;;
2989 no)
2990 ;;
2991 *)
2992 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2993 ;;
c7791212
NC
2994esac
2995
2996# Check whether --enable-ld was given.
2997if test "${enable_ld+set}" = set; then :
2998 enableval=$enable_ld; ENABLE_LD=$enableval
2999else
3000 ENABLE_LD=yes
3001fi
3002
3003
3004case "${ENABLE_LD}" in
3005 default)
d3b50760 3006 if test x${default_ld} != x; then
c7791212
NC
3007 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3008 fi
3009 ;;
3010 yes)
3011 ;;
3012 no)
3013 if test x${ENABLE_GOLD} != xyes; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3015$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3016 fi
3017 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3018 ;;
3019 *)
3020 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3021 ;;
3022esac
93f9b408 3023
a0da8069 3024# Configure extra directories which are host specific
252b5132 3025
a0da8069
NN
3026case "${host}" in
3027 *-cygwin*)
3028 configdirs="$configdirs libtermcap" ;;
3029esac
252b5132 3030
59f7ec45
HPN
3031# A target can indicate whether a language isn't supported for some reason.
3032# Only spaces may be used in this macro; not newlines or tabs.
3033unsupported_languages=
3034
c6b750e1 3035# Remove more programs from consideration, based on the host or
a0da8069
NN
3036# target this usually means that a port of the program doesn't
3037# exist yet.
252b5132 3038
a0da8069 3039case "${host}" in
3516a403 3040 i[3456789]86-*-msdosdjgpp*)
6a608608 3041 noconfigdirs="$noconfigdirs tcl tk itcl"
a0da8069 3042 ;;
a0da8069 3043esac
252b5132 3044
4b1cb4fe 3045
89a1e9c3
PB
3046# Check whether --enable-libquadmath was given.
3047if test "${enable_libquadmath+set}" = set; then :
3048 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3049else
3050 ENABLE_LIBQUADMATH=yes
3051fi
3052
3053if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3054 noconfigdirs="$noconfigdirs target-libquadmath"
3055fi
3056
3057
3058# Check whether --enable-libquadmath-support was given.
3059if test "${enable_libquadmath_support+set}" = set; then :
3060 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3061else
3062 ENABLE_LIBQUADMATH_SUPPORT=yes
3063fi
3064
3065enable_libquadmath_support=
3066if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3067 enable_libquadmath_support=no
3068fi
3069
3070
81ecdfbb
RW
3071# Check whether --enable-libada was given.
3072if test "${enable_libada+set}" = set; then :
3073 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
3074else
3075 ENABLE_LIBADA=yes
81ecdfbb
RW
3076fi
3077
a2592b1b 3078if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 3079 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
3080fi
3081
81ecdfbb
RW
3082# Check whether --enable-libssp was given.
3083if test "${enable_libssp+set}" = set; then :
3084 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
3085else
3086 ENABLE_LIBSSP=yes
81ecdfbb
RW
3087fi
3088
5f128533 3089
f66a9a70
L
3090# Check whether --enable-libstdcxx was given.
3091if test "${enable_libstdcxx+set}" = set; then :
3092 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3093else
3094 ENABLE_LIBSTDCXX=default
3095fi
3096
3097if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3098 noconfigdirs="$noconfigdirs libstdc++-v3"
3099fi
3100
a0da8069
NN
3101# Save it here so that, even in case of --enable-libgcj, if the Java
3102# front-end isn't enabled, we still get libgcj disabled.
3103libgcj_saved=$libgcj
3104case $enable_libgcj in
3105yes)
3106 # If we reset it here, it won't get added to noconfigdirs in the
3107 # target-specific build rules, so it will be forcibly enabled
3108 # (unless the Java language itself isn't enabled).
3109 libgcj=
3110 ;;
3111no)
3112 # Make sure we get it printed in the list of not supported target libs.
9e1a94f4
ILT
3113 # Don't disable libffi, though, other languages use it.
3114 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
33d23ee8
ILT
3115 # Clear libgcj_saved so that even if java is enabled libffi won't be
3116 # built.
3117 libgcj_saved=
a0da8069
NN
3118 ;;
3119esac
252b5132 3120
ffdd6afc
ILT
3121# Check whether --enable-static-libjava was given.
3122if test "${enable_static_libjava+set}" = set; then :
3123 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3124else
3125 ENABLE_STATIC_LIBJAVA=no
3126fi
3127
3128enable_static_libjava=
3129if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3130 enable_static_libjava=yes
3131fi
3132
3133if test x$enable_static_libjava != xyes ; then
3134 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3135fi
3136
4b1cb4fe 3137
a6df5a19
PB
3138# Disable libgomp on non POSIX hosted systems.
3139if test x$enable_libgomp = x ; then
b3ded179
PB
3140 # Enable libgomp by default on hosted POSIX systems.
3141 case "${target}" in
29383458 3142 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179 3143 ;;
5b806d27 3144 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
b3ded179 3145 ;;
2479f722 3146 *-*-solaris2* | *-*-hpux11*)
b3ded179
PB
3147 ;;
3148 *-*-darwin* | *-*-aix*)
3149 ;;
3150 *)
3151 noconfigdirs="$noconfigdirs target-libgomp"
3152 ;;
3153 esac
a6df5a19 3154fi
b3ded179 3155
7ec59b9e
L
3156# Disable libatomic on unsupported systems.
3157if test -d ${srcdir}/libatomic; then
3158 if test x$enable_libatomic = x; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3160$as_echo_n "checking for libatomic support... " >&6; }
3161 if (srcdir=${srcdir}/libatomic; \
3162 . ${srcdir}/configure.tgt; \
3163 test -n "$UNSUPPORTED")
3164 then
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166$as_echo "no" >&6; }
3167 noconfigdirs="$noconfigdirs target-libatomic"
3168 else
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3170$as_echo "yes" >&6; }
3171 fi
3172 fi
3173fi
3174
522e3d71 3175# Disable libcilkrts on unsupported systems.
3176if test -d ${srcdir}/libcilkrts; then
3177 if test x$enable_libcilkrts = x; then
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3179$as_echo_n "checking for libcilkrts support... " >&6; }
3180 if (srcdir=${srcdir}/libcilkrts; \
3181 . ${srcdir}/configure.tgt; \
3182 test -n "$UNSUPPORTED")
3183 then
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185$as_echo "no" >&6; }
3186 noconfigdirs="$noconfigdirs target-libcilkrts"
3187 else
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3189$as_echo "yes" >&6; }
3190 fi
3191 fi
3192fi
3193
d32e2926
RH
3194# Disable libitm on unsupported systems.
3195if test -d ${srcdir}/libitm; then
3196 if test x$enable_libitm = x; then
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3198$as_echo_n "checking for libitm support... " >&6; }
3199 if (srcdir=${srcdir}/libitm; \
3200 . ${srcdir}/configure.tgt; \
3201 test -n "$UNSUPPORTED")
3202 then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204$as_echo "no" >&6; }
3205 noconfigdirs="$noconfigdirs target-libitm"
3206 else
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3208$as_echo "yes" >&6; }
3209 fi
3210 fi
3211fi
3212
5286fdef
L
3213# Disable libsanitizer on unsupported systems.
3214if test -d ${srcdir}/libsanitizer; then
3215 if test x$enable_libsanitizer = x; then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3217$as_echo_n "checking for libsanitizer support... " >&6; }
3218 if (srcdir=${srcdir}/libsanitizer; \
3219 . ${srcdir}/configure.tgt; \
3220 test -n "$UNSUPPORTED")
3221 then
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223$as_echo "no" >&6; }
3224 noconfigdirs="$noconfigdirs target-libsanitizer"
3225 else
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3227$as_echo "yes" >&6; }
3228 fi
3229 fi
3230fi
3231
95e43135
JBG
3232# Disable libvtv on unsupported systems.
3233if test -d ${srcdir}/libvtv; then
3234 if test x$enable_libvtv = x; then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3236$as_echo_n "checking for libvtv support... " >&6; }
3237 if (srcdir=${srcdir}/libvtv; \
3238 . ${srcdir}/configure.tgt; \
3239 test "$VTV_SUPPORTED" != "yes")
3240 then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242$as_echo "no" >&6; }
3243 noconfigdirs="$noconfigdirs target-libvtv"
3244 else
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3246$as_echo "yes" >&6; }
3247 fi
3248 fi
3249fi
3250
1488e230
DE
3251# Disable libquadmath for some systems.
3252case "${target}" in
5286fdef
L
3253 avr-*-*)
3254 noconfigdirs="$noconfigdirs target-libquadmath"
3255 ;;
1488e230
DE
3256 # libquadmath is unused on AIX and libquadmath build process use of
3257 # LD_LIBRARY_PATH can break AIX bootstrap.
3258 powerpc-*-aix* | rs6000-*-aix*)
3259 noconfigdirs="$noconfigdirs target-libquadmath"
3260 ;;
3261esac
3262
065a5627
JM
3263# Disable libssp for some systems.
3264case "${target}" in
3265 avr-*-*)
c5f5c3c2 3266 # No hosted I/O support.
065a5627
JM
3267 noconfigdirs="$noconfigdirs target-libssp"
3268 ;;
3269 powerpc-*-aix* | rs6000-*-aix*)
3270 noconfigdirs="$noconfigdirs target-libssp"
3271 ;;
99c513f6 3272 rl78-*-*)
202e2356
NC
3273 # libssp uses a misaligned load to trigger a fault, but the RL78
3274 # doesn't fault for those - instead, it gives a build-time error
3275 # for explicit misaligned loads.
99c513f6
DD
3276 noconfigdirs="$noconfigdirs target-libssp"
3277 ;;
065a5627
JM
3278esac
3279
065a5627 3280# Disable libstdc++-v3 for some systems.
f66a9a70
L
3281# Allow user to override this if they pass --enable-libstdc++-v3
3282if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3283 case "${target}" in
3284 *-*-vxworks*)
3285 # VxWorks uses the Dinkumware C++ library.
3286 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3287 ;;
3288 arm*-wince-pe*)
3289 # the C++ libraries don't build on top of CE's C libraries
3290 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3291 ;;
3292 avr-*-*)
3293 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3294 ;;
3295 esac
3296fi
065a5627
JM
3297
3298# Disable Fortran for some systems.
3299case "${target}" in
3300 mmix-*-*)
3301 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3302 unsupported_languages="$unsupported_languages fortran"
3303 ;;
3304esac
3305
0827f9a6 3306# Disable Java if libffi is not supported.
9863d716 3307case "${target}" in
e7d5abf1
JBG
3308 aarch64-*-*)
3309 ;;
0827f9a6
JM
3310 alpha*-*-*)
3311 ;;
3312 arm*-*-*)
3313 ;;
3314 cris-*-*)
3315 ;;
3316 frv-*-*)
3317 ;;
3318 hppa*-*-linux*)
3319 ;;
3320 hppa*-*-hpux*)
3321 ;;
3322 i?86-*-*)
3323 ;;
3324 ia64*-*-*)
3325 ;;
3326 m32r*-*-*)
3327 ;;
3328 m68k-*-*)
3329 ;;
2479f722 3330 mips*-*-rtems*)
0827f9a6
JM
3331 ;;
3332 mips*-*-linux*)
3333 ;;
3334 powerpc*-*-linux*)
3335 ;;
3336 powerpc-*-darwin*)
3337 ;;
3338 powerpc-*-aix* | rs6000-*-aix*)
3339 ;;
3340 powerpc-*-freebsd*)
3341 ;;
3342 powerpc64-*-freebsd*)
3343 ;;
3344 powerpc*-*-rtems*)
9863d716 3345 ;;
0827f9a6
JM
3346 s390-*-* | s390x-*-*)
3347 ;;
3348 sh-*-* | sh[34]*-*-*)
3349 ;;
3350 sh64-*-* | sh5*-*-*)
3351 ;;
3352 sparc*-*-*)
3353 ;;
3354 x86_64-*-*)
3355 ;;
3356 *-*-*)
3357 unsupported_languages="$unsupported_languages java"
3358 ;;
3359esac
3360
3361# Disable Java, libgcj or related libraries for some systems.
3362case "${target}" in
9863d716
JM
3363 powerpc-*-darwin*)
3364 ;;
3365 i[3456789]86-*-darwin*)
3366 ;;
3367 x86_64-*-darwin[912]*)
3368 ;;
3369 *-*-darwin*)
3370 noconfigdirs="$noconfigdirs ${libgcj}"
3371 ;;
9863d716
JM
3372 *-*-netware*)
3373 noconfigdirs="$noconfigdirs ${libgcj}"
3374 ;;
3375 *-*-rtems*)
3376 noconfigdirs="$noconfigdirs ${libgcj}"
3377 ;;
3378 *-*-tpf*)
3379 noconfigdirs="$noconfigdirs ${libgcj}"
3380 ;;
3381 *-*-uclinux*)
3382 noconfigdirs="$noconfigdirs ${libgcj}"
3383 ;;
3384 *-*-vxworks*)
3385 noconfigdirs="$noconfigdirs ${libgcj}"
3386 ;;
9863d716
JM
3387 alpha*-*-*vms*)
3388 noconfigdirs="$noconfigdirs ${libgcj}"
3389 ;;
0827f9a6 3390 arm-wince-pe)
9863d716
JM
3391 noconfigdirs="$noconfigdirs ${libgcj}"
3392 ;;
9863d716
JM
3393 arm*-*-symbianelf*)
3394 noconfigdirs="$noconfigdirs ${libgcj}"
3395 ;;
9863d716 3396 bfin-*-*)
9863d716
JM
3397 noconfigdirs="$noconfigdirs target-boehm-gc"
3398 ;;
9863d716
JM
3399 cris-*-* | crisv32-*-*)
3400 unsupported_languages="$unsupported_languages java"
3401 case "${target}" in
3402 *-*-linux*)
3403 ;;
3404 *) # See PR46792 regarding target-libffi.
3405 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3406 esac
3407 ;;
9863d716
JM
3408 hppa*64*-*-linux*)
3409 # In this case, it's because the hppa64-linux target is for
3410 # the kernel only at this point and has no libc, and thus no
3411 # headers, crt*.o, etc., all of which are needed by these.
82ae827f 3412 unsupported_languages="$unsupported_languages java"
9863d716 3413 ;;
82ae827f 3414 hppa*64*-*-hpux*)
9863d716
JM
3415 noconfigdirs="$noconfigdirs ${libgcj}"
3416 ;;
3417 hppa*-hp-hpux11*)
3418 ;;
82ae827f 3419 hppa*-*-hpux*)
9863d716
JM
3420 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3421 # build on HP-UX 10.20.
3422 noconfigdirs="$noconfigdirs ${libgcj}"
3423 ;;
9863d716
JM
3424 ia64*-*-*vms*)
3425 noconfigdirs="$noconfigdirs ${libgcj}"
3426 ;;
9863d716
JM
3427 i[3456789]86-w64-mingw*)
3428 noconfigdirs="$noconfigdirs ${libgcj}"
3429 ;;
3430 i[3456789]86-*-mingw*)
3431 noconfigdirs="$noconfigdirs ${libgcj}"
3432 ;;
3433 x86_64-*-mingw*)
3434 noconfigdirs="$noconfigdirs ${libgcj}"
3435 ;;
9863d716
JM
3436 mmix-*-*)
3437 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
9863d716
JM
3438 ;;
3439 powerpc-*-aix*)
3440 # copied from rs6000-*-* entry
3441 noconfigdirs="$noconfigdirs ${libgcj}"
3442 ;;
9863d716
JM
3443 rs6000-*-aix*)
3444 noconfigdirs="$noconfigdirs ${libgcj}"
3445 ;;
9863d716
JM
3446 *-*-lynxos*)
3447 noconfigdirs="$noconfigdirs ${libgcj}"
3448 ;;
9863d716
JM
3449esac
3450
a413f71a
ILT
3451# Disable libgo for some systems where it is known to not work.
3452# For testing, you can easily override this with --enable-libgo.
3453if test x$enable_libgo = x; then
3454 case "${target}" in
3455 *-*-darwin*)
3456 # PR 46986
3457 noconfigdirs="$noconfigdirs target-libgo"
3458 ;;
3459 *-*-cygwin* | *-*-mingw*)
3460 noconfigdirs="$noconfigdirs target-libgo"
3461 ;;
3462 *-*-aix*)
3463 noconfigdirs="$noconfigdirs target-libgo"
3464 ;;
3465 esac
3466fi
3467
691bb5a1
DD
3468# Default libgloss CPU subdirectory.
3469libgloss_dir="$target_cpu"
4b1cb4fe 3470
ff46fb8f
JM
3471case "${target}" in
3472 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3473 libgloss_dir=wince
3474 ;;
f1dd87fc
YZ
3475 aarch64*-*-* )
3476 libgloss_dir=aarch64
3477 ;;
ff46fb8f
JM
3478 arm*-*-*)
3479 libgloss_dir=arm
3480 ;;
3481 cris-*-* | crisv32-*-*)
3482 libgloss_dir=cris
3483 ;;
3484 hppa*-*-*)
3485 libgloss_dir=pa
3486 ;;
3487 i[3456789]86-*-*)
3488 libgloss_dir=i386
3489 ;;
3490 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3491 libgloss_dir=m68hc11
3492 ;;
3493 m68*-*-* | fido-*-*)
3494 libgloss_dir=m68k
3495 ;;
3496 mips*-*-*)
3497 libgloss_dir=mips
3498 ;;
3499 powerpc*-*-*)
3500 libgloss_dir=rs6000
3501 ;;
3502 sparc*-*-*)
3503 libgloss_dir=sparc
3504 ;;
3505esac
3506
c7e4b184 3507# Disable newlib and libgloss for various target OSes.
a0da8069 3508case "${target}" in
c7e4b184
JM
3509 alpha*-dec-osf*)
3510 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3511 ;;
3512 i[3456789]86-*-linux*)
3513 # This section makes it possible to build newlib natively on linux.
3514 # If we are using a cross compiler then don't configure newlib.
3515 if test x${is_cross_compiler} != xno ; then
3516 noconfigdirs="$noconfigdirs target-newlib"
3517 fi
3518 noconfigdirs="$noconfigdirs target-libgloss"
3519 # If we are not using a cross compiler, do configure newlib.
3520 # Note however, that newlib will only be configured in this situation
3521 # if the --with-newlib option has been given, because otherwise
3522 # 'target-newlib' will appear in skipdirs.
3523 ;;
3524 i[3456789]86-*-rdos*)
3525 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3526 ;;
3527 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3528 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3529 ;;
3530 sparc-*-sunos4*)
3531 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3532 ;;
3533 *-*-aix*)
3534 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3535 ;;
3536 *-*-beos*)
3537 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3538 ;;
a0da8069 3539 *-*-chorusos)
b2f14e4a 3540 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3541 ;;
c7e4b184
JM
3542 *-*-dragonfly*)
3543 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3544 ;;
3545 *-*-freebsd*)
3546 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3547 ;;
3548 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3549 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3550 ;;
3551 *-*-lynxos*)
3552 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3553 ;;
3554 *-*-mingw*)
3555 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3556 ;;
3557 *-*-netbsd*)
3558 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3559 ;;
3560 *-*-netware*)
3561 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3562 ;;
3563 *-*-tpf*)
3564 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3565 ;;
3566 *-*-uclinux*)
3567 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3568 ;;
3569 *-*-vxworks*)
3570 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3571 ;;
3572esac
3573
3574case "${target}" in
3575 *-*-chorusos)
3576 ;;
24741ab2 3577 powerpc-*-darwin*)
9d39db92 3578 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3579 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3580 ;;
85bd1942
TG
3581 i[3456789]86-*-darwin*)
3582 noconfigdirs="$noconfigdirs ld gprof"
3583 noconfigdirs="$noconfigdirs sim target-rda"
3584 ;;
e8a5fa9c 3585 x86_64-*-darwin[912]*)
652dec25
TG
3586 noconfigdirs="$noconfigdirs ld gas gprof"
3587 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3588 ;;
04d1ab34 3589 *-*-darwin*)
d320aacb 3590 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3591 noconfigdirs="$noconfigdirs sim target-rda"
04d1ab34 3592 ;;
5b806d27 3593 *-*-dragonfly*)
5b806d27 3594 ;;
de0b4a87 3595 *-*-freebsd*)
4b1cb4fe
DD
3596 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3597 && test -f /usr/local/include/gmp.h; then
3598 with_gmp=/usr/local
3599 fi
4b1cb4fe 3600 ;;
f8a495c8
NC
3601 *-*-kaos*)
3602 # Remove unsupported stuff on all kaOS configurations.
f8a495c8
NC
3603 noconfigdirs="$noconfigdirs target-libgloss"
3604 ;;
a0da8069 3605 *-*-netbsd*)
a0da8069 3606 ;;
2a3124ca 3607 *-*-netware*)
a0da8069
NN
3608 ;;
3609 *-*-rtems*)
9863d716 3610 noconfigdirs="$noconfigdirs target-libgloss"
f8797b5a
JB
3611 # this is not caught below because this stanza matches earlier
3612 case $target in
3613 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3614 esac
a0da8069 3615 ;;
1587117a
EC
3616 # The tpf target doesn't support gdb yet.
3617 *-*-tpf*)
c7e4b184 3618 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
1587117a 3619 ;;
c1968181 3620 *-*-uclinux*)
c7e4b184 3621 noconfigdirs="$noconfigdirs target-rda"
c1968181 3622 ;;
a0da8069 3623 *-*-vxworks*)
a0da8069
NN
3624 ;;
3625 alpha*-dec-osf*)
3626 # ld works, but does not support shared libraries.
a0da8069 3627 # gas doesn't generate exception information.
c7e4b184 3628 noconfigdirs="$noconfigdirs gas ld"
a0da8069
NN
3629 ;;
3630 alpha*-*-*vms*)
9863d716 3631 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
a0da8069 3632 ;;
a0da8069
NN
3633 alpha*-*-*)
3634 # newlib is not 64 bit ready
9863d716 3635 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3636 ;;
a0da8069 3637 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
675c6968 3638 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069 3639 ;;
f4cfb980 3640 arc-*-*|arceb-*-*)
782cb41f 3641 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3642 ;;
a0da8069 3643 arm-*-pe*)
9863d716 3644 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3645 ;;
a0da8069 3646 arm-*-riscix*)
b2f14e4a 3647 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3648 ;;
8e71395b
L
3649 avr-*-rtems*)
3650 ;;
3651 avr-*-*)
3652 if test x${with_avrlibc} != xno; then
3653 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3654 fi
3655 ;;
a0da8069 3656 c4x-*-* | tic4x-*-*)
b2f14e4a 3657 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3658 ;;
b2f14e4a
JM
3659 tic54x-*-*)
3660 noconfigdirs="$noconfigdirs target-libgloss gdb"
a0da8069 3661 ;;
a0da8069 3662 d10v-*-*)
b2f14e4a 3663 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3664 ;;
3665 d30v-*-*)
b2f14e4a 3666 noconfigdirs="$noconfigdirs gdb"
a0da8069
NN
3667 ;;
3668 fr30-*-elf*)
9863d716 3669 noconfigdirs="$noconfigdirs gdb"
a0da8069 3670 ;;
20135e4c 3671 moxie-*-*)
10b8fe5e 3672 noconfigdirs="$noconfigdirs"
20135e4c 3673 ;;
a0da8069 3674 h8300*-*-*)
9863d716 3675 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3676 ;;
3677 h8500-*-*)
b2f14e4a 3678 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3679 ;;
caeba88f 3680 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3681 ;;
93cc359e 3682 hppa*64*-*-linux*)
a0da8069 3683 ;;
f0ff0f90 3684 hppa*-*-linux*)
5dcac624 3685 ;;
a0da8069 3686 hppa*-*-*elf* | \
a0da8069
NN
3687 hppa*-*-lites* | \
3688 hppa*-*-openbsd* | \
3689 hppa*64*-*-*)
4f0ef2d8
CD
3690 ;;
3691 hppa*-hp-hpux11*)
0377a422 3692 noconfigdirs="$noconfigdirs ld"
a0da8069 3693 ;;
691bb5a1 3694 hppa*-*-pro*)
691bb5a1 3695 ;;
a0da8069 3696 hppa*-*-*)
9863d716 3697 noconfigdirs="$noconfigdirs ld"
a0da8069 3698 ;;
b07c2aad 3699 i960-*-*)
b2f14e4a 3700 noconfigdirs="$noconfigdirs gdb"
b07c2aad 3701 ;;
a0da8069
NN
3702 ia64*-*-elf*)
3703 # No gdb support yet.
0377a422 3704 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
a0da8069
NN
3705 ;;
3706 ia64*-**-hpux*)
92c9a463 3707 # No ld support yet.
9863d716 3708 noconfigdirs="$noconfigdirs libgui itcl ld"
a0da8069 3709 ;;
19e99079 3710 ia64*-*-*vms*)
7ec59b9e
L
3711 # No ld support yet.
3712 noconfigdirs="$noconfigdirs libgui itcl ld"
19e99079 3713 ;;
1f53ca9a 3714 i[3456789]86-w64-mingw*)
1f53ca9a
AO
3715 ;;
3716 i[3456789]86-*-mingw*)
45055374 3717 target_configdirs="$target_configdirs target-winsup"
c6b750e1 3718 ;;
a0da8069
NN
3719 *-*-cygwin*)
3720 target_configdirs="$target_configdirs target-libtermcap target-winsup"
0377a422 3721 noconfigdirs="$noconfigdirs target-libgloss"
b76d7de0 3722 # always build newlib if winsup directory is present.
45055374 3723 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3724 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3725 elif test -d "$srcdir/newlib"; then
45055374 3726 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3727 fi
c6b750e1 3728 ;;
ec11bdc6 3729 i[3456789]86-*-pe)
782cb41f 3730 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3731 ;;
ec11bdc6 3732 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3733 # The linker does not yet know about weak symbols in COFF,
3734 # and is not configured to handle mixed ELF and COFF.
b2f14e4a 3735 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3736 ;;
ec11bdc6 3737 i[3456789]86-*-sco*)
b2f14e4a 3738 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3739 ;;
cff32a7c 3740 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
a0da8069
NN
3741 noconfigdirs="$noconfigdirs target-libgloss"
3742 ;;
ec11bdc6 3743 i[3456789]86-*-sysv4*)
b2f14e4a 3744 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3745 ;;
ec11bdc6 3746 i[3456789]86-*-beos*)
c7e4b184 3747 noconfigdirs="$noconfigdirs gdb"
bba45b8b 3748 ;;
b59bea8a 3749 i[3456789]86-*-rdos*)
c7e4b184 3750 noconfigdirs="$noconfigdirs gdb"
691bb5a1 3751 ;;
a0da8069 3752 mmix-*-*)
9863d716 3753 noconfigdirs="$noconfigdirs gdb"
a0da8069 3754 ;;
4970f871 3755 mt-*-*)
cdb9b172
AH
3756 noconfigdirs="$noconfigdirs sim"
3757 ;;
a0da8069
NN
3758 powerpc-*-aix*)
3759 # copied from rs6000-*-* entry
c7e4b184 3760 noconfigdirs="$noconfigdirs gprof"
a0da8069 3761 ;;
93cc359e 3762 powerpc*-*-winnt* | powerpc*-*-pe*)
a0da8069 3763 target_configdirs="$target_configdirs target-winsup"
b2f14e4a 3764 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
a0da8069
NN
3765 # always build newlib.
3766 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3767 ;;
3768 # This is temporary until we can link against shared libraries
3769 powerpcle-*-solaris*)
b2f14e4a 3770 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
a0da8069
NN
3771 ;;
3772 powerpc-*-beos*)
c7e4b184 3773 noconfigdirs="$noconfigdirs gdb"
a0da8069 3774 ;;
a0da8069 3775 rs6000-*-lynxos*)
c7e4b184 3776 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3777 ;;
3778 rs6000-*-aix*)
c7e4b184 3779 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3780 ;;
3781 rs6000-*-*)
9863d716 3782 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3783 ;;
3784 m68k-apollo-*)
b2f14e4a 3785 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
a0da8069 3786 ;;
25a07265 3787 microblaze*)
9863d716 3788 noconfigdirs="$noconfigdirs gprof"
25a07265 3789 ;;
a9d58c06 3790 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
5bd8be13
RS
3791 if test x$with_newlib = xyes; then
3792 noconfigdirs="$noconfigdirs gprof"
3793 fi
5bd8be13 3794 ;;
a0da8069 3795 mips*-*-irix5*)
b2f14e4a 3796 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069
NN
3797 ;;
3798 mips*-*-irix6*)
9863d716 3799 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3800 ;;
a0da8069 3801 mips*-*-bsd*)
e8044f35 3802 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
a0da8069 3803 ;;
a0da8069 3804 mips*-*-linux*)
a0da8069 3805 ;;
e8044f35
RS
3806 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3807 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3808 noconfigdirs="$noconfigdirs ld gas gprof"
3809 ;;
a0da8069 3810 mips*-*-*)
9863d716 3811 noconfigdirs="$noconfigdirs gprof"
a0da8069 3812 ;;
b25b5cef
CJW
3813 nds32*-*-*)
3814 noconfigdirs="$noconfigdirs gdb"
3815 ;;
cfbc1a6c
JS
3816 or1k*-*-*)
3817 noconfigdirs="$noconfigdirs gdb"
3818 ;;
dbf85af7 3819 sh-*-* | sh64-*-*)
e8a5fa9c
RW
3820 case "${target}" in
3821 sh*-*-elf)
9863d716 3822 ;;
e8a5fa9c 3823 *)
9863d716 3824 noconfigdirs="$noconfigdirs target-libgloss" ;;
e8a5fa9c 3825 esac
a0da8069 3826 ;;
a0da8069 3827 sparc-*-sunos4*)
c7e4b184 3828 if test x${is_cross_compiler} = xno ; then
a0da8069
NN
3829 use_gnu_ld=no
3830 fi
3831 ;;
619a3713 3832 tic6x-*-*)
40ae9136 3833 noconfigdirs="$noconfigdirs sim"
619a3713 3834 ;;
68d122bb 3835 tilepro*-*-* | tilegx*-*-*)
eb4b2452
NC
3836 noconfigdirs="$noconfigdirs sim"
3837 ;;
a0da8069 3838 v810-*-*)
b2f14e4a 3839 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
a0da8069
NN
3840 ;;
3841 vax-*-*)
9863d716 3842 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3843 ;;
a0da8069 3844esac
252b5132 3845
a0da8069
NN
3846# If we aren't building newlib, then don't build libgloss, since libgloss
3847# depends upon some newlib header files.
3848case "${noconfigdirs}" in
3849 *target-libgloss*) ;;
3850 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3851esac
3852
a0da8069 3853# Work in distributions that contain no compiler tools, like Autoconf.
a0da8069
NN
3854host_makefile_frag=/dev/null
3855if test -d ${srcdir}/config ; then
3856case "${host}" in
ec11bdc6 3857 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3858 host_makefile_frag="config/mh-djgpp"
3859 ;;
3860 *-cygwin*)
e33b51a6 3861
81ecdfbb
RW
3862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3863$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3864echo a >cygwin-cat-check
1f53ca9a 3865if test `cat cygwin-cat-check` = a ; then
8ade07e9 3866 rm cygwin-cat-check
81ecdfbb
RW
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3868$as_echo "yes" >&6; }
e33b51a6 3869else
8ade07e9 3870 rm cygwin-cat-check
81ecdfbb
RW
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3872$as_echo "no" >&6; }
3873 as_fn_error "The cat command does not ignore carriage return characters.
e33b51a6
NC
3874 Please either mount the build directory in binary mode or run the following
3875 commands before running any configure script:
3876set -o igncr
3877export SHELLOPTS
81ecdfbb 3878 " "$LINENO" 5
e33b51a6 3879fi
e33b51a6 3880
a0da8069
NN
3881 host_makefile_frag="config/mh-cygwin"
3882 ;;
8a1599ab 3883 *-mingw*)
84e7906e 3884 host_makefile_frag="config/mh-mingw"
2d1e8239 3885 ;;
da888c87 3886 hppa*-hp-hpux10*)
da888c87 3887 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3888 ;;
3516a403 3889 hppa*-hp-hpux*)
da888c87
PB
3890 host_makefile_frag="config/mh-pa"
3891 ;;
3892 hppa*-*)
3893 host_makefile_frag="config/mh-pa"
3894 ;;
e552509b
ILT
3895 *-*-darwin*)
3896 host_makefile_frag="config/mh-darwin"
0df3d27f 3897 ;;
f6d183c0
PB
3898 powerpc-*-aix*)
3899 host_makefile_frag="config/mh-ppc-aix"
3900 ;;
3901 rs6000-*-aix*)
3902 host_makefile_frag="config/mh-ppc-aix"
3903 ;;
a0da8069
NN
3904esac
3905fi
3906
9e07f89d 3907if test "${build}" != "${host}" ; then
1576798e
PB
3908 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3909 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 3910 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
3911 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3912 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3913 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 3914 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
1576798e
PB
3915 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3916 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3917 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3918 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3919 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3920 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3921else
3922 AR_FOR_BUILD="\$(AR)"
3923 AS_FOR_BUILD="\$(AS)"
512b7dfb 3924 CC_FOR_BUILD="\$(CC)"
1576798e
PB
3925 CXX_FOR_BUILD="\$(CXX)"
3926 GCJ_FOR_BUILD="\$(GCJ)"
3927 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 3928 GOC_FOR_BUILD="\$(GOC)"
1576798e
PB
3929 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3930 LD_FOR_BUILD="\$(LD)"
3931 NM_FOR_BUILD="\$(NM)"
3932 RANLIB_FOR_BUILD="\$(RANLIB)"
3933 WINDRES_FOR_BUILD="\$(WINDRES)"
3934 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
3935fi
3936
3937ac_ext=c
c6b750e1
DJ
3938ac_cpp='$CPP $CPPFLAGS'
3939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3941ac_compiler_gnu=$ac_cv_c_compiler_gnu
3942if test -n "$ac_tool_prefix"; then
3943 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3944set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3946$as_echo_n "checking for $ac_word... " >&6; }
3947if test "${ac_cv_prog_CC+set}" = set; then :
3948 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3949else
3950 if test -n "$CC"; then
3951 ac_cv_prog_CC="$CC" # Let the user override the test.
3952else
3953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3954for as_dir in $PATH
3955do
3956 IFS=$as_save_IFS
3957 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3958 for ac_exec_ext in '' $ac_executable_extensions; do
3959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3960 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3962 break 2
3963 fi
3964done
81ecdfbb
RW
3965 done
3966IFS=$as_save_IFS
c6b750e1
DJ
3967
3968fi
3969fi
3970CC=$ac_cv_prog_CC
3971if test -n "$CC"; then
81ecdfbb
RW
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3973$as_echo "$CC" >&6; }
c6b750e1 3974else
81ecdfbb
RW
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3976$as_echo "no" >&6; }
c6b750e1
DJ
3977fi
3978
81ecdfbb 3979
c6b750e1
DJ
3980fi
3981if test -z "$ac_cv_prog_CC"; then
3982 ac_ct_CC=$CC
6a9cf61e 3983 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 3984set dummy gcc; ac_word=$2
81ecdfbb
RW
3985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3986$as_echo_n "checking for $ac_word... " >&6; }
3987if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3988 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3989else
3990 if test -n "$ac_ct_CC"; then
3991 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3992else
3993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994for as_dir in $PATH
3995do
3996 IFS=$as_save_IFS
3997 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4000 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4002 break 2
4003 fi
4004done
81ecdfbb
RW
4005 done
4006IFS=$as_save_IFS
c6b750e1
DJ
4007
4008fi
4009fi
4010ac_ct_CC=$ac_cv_prog_ac_ct_CC
4011if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4013$as_echo "$ac_ct_CC" >&6; }
c6b750e1 4014else
81ecdfbb
RW
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4016$as_echo "no" >&6; }
c6b750e1
DJ
4017fi
4018
81ecdfbb
RW
4019 if test "x$ac_ct_CC" = x; then
4020 CC=""
4021 else
4022 case $cross_compiling:$ac_tool_warned in
4023yes:)
4024{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4025$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4026ac_tool_warned=yes ;;
4027esac
4028 CC=$ac_ct_CC
4029 fi
c6b750e1
DJ
4030else
4031 CC="$ac_cv_prog_CC"
4032fi
4033
4034if test -z "$CC"; then
81ecdfbb
RW
4035 if test -n "$ac_tool_prefix"; then
4036 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 4037set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4039$as_echo_n "checking for $ac_word... " >&6; }
4040if test "${ac_cv_prog_CC+set}" = set; then :
4041 $as_echo_n "(cached) " >&6
9e07f89d
NN
4042else
4043 if test -n "$CC"; then
4044 ac_cv_prog_CC="$CC" # Let the user override the test.
4045else
c6b750e1
DJ
4046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047for as_dir in $PATH
4048do
4049 IFS=$as_save_IFS
4050 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4053 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4055 break 2
4056 fi
4057done
81ecdfbb
RW
4058 done
4059IFS=$as_save_IFS
c6b750e1 4060
9e07f89d
NN
4061fi
4062fi
c6b750e1 4063CC=$ac_cv_prog_CC
9e07f89d 4064if test -n "$CC"; then
81ecdfbb
RW
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4066$as_echo "$CC" >&6; }
c6b750e1 4067else
81ecdfbb
RW
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4069$as_echo "no" >&6; }
c6b750e1
DJ
4070fi
4071
c6b750e1 4072
81ecdfbb 4073 fi
c6b750e1 4074fi
9e07f89d
NN
4075if test -z "$CC"; then
4076 # Extract the first word of "cc", so it can be a program name with args.
4077set dummy cc; ac_word=$2
81ecdfbb
RW
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4079$as_echo_n "checking for $ac_word... " >&6; }
4080if test "${ac_cv_prog_CC+set}" = set; then :
4081 $as_echo_n "(cached) " >&6
9e07f89d
NN
4082else
4083 if test -n "$CC"; then
4084 ac_cv_prog_CC="$CC" # Let the user override the test.
4085else
9e07f89d 4086 ac_prog_rejected=no
c6b750e1
DJ
4087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088for as_dir in $PATH
4089do
4090 IFS=$as_save_IFS
4091 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4092 for ac_exec_ext in '' $ac_executable_extensions; do
4093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1
DJ
4094 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4095 ac_prog_rejected=yes
4096 continue
4097 fi
4098 ac_cv_prog_CC="cc"
81ecdfbb 4099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4100 break 2
4101 fi
4102done
81ecdfbb
RW
4103 done
4104IFS=$as_save_IFS
c6b750e1 4105
9e07f89d
NN
4106if test $ac_prog_rejected = yes; then
4107 # We found a bogon in the path, so make sure we never use it.
4108 set dummy $ac_cv_prog_CC
4109 shift
c6b750e1 4110 if test $# != 0; then
9e07f89d
NN
4111 # We chose a different compiler from the bogus one.
4112 # However, it has the same basename, so the bogon will be chosen
4113 # first if we set CC to just the basename; use the full file name.
4114 shift
c6b750e1 4115 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
4116 fi
4117fi
4118fi
4119fi
c6b750e1 4120CC=$ac_cv_prog_CC
9e07f89d 4121if test -n "$CC"; then
81ecdfbb
RW
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4123$as_echo "$CC" >&6; }
9e07f89d 4124else
81ecdfbb
RW
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4126$as_echo "no" >&6; }
9e07f89d
NN
4127fi
4128
81ecdfbb 4129
c6b750e1
DJ
4130fi
4131if test -z "$CC"; then
4132 if test -n "$ac_tool_prefix"; then
81ecdfbb 4133 for ac_prog in cl.exe
c6b750e1
DJ
4134 do
4135 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4136set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4138$as_echo_n "checking for $ac_word... " >&6; }
4139if test "${ac_cv_prog_CC+set}" = set; then :
4140 $as_echo_n "(cached) " >&6
9e07f89d
NN
4141else
4142 if test -n "$CC"; then
4143 ac_cv_prog_CC="$CC" # Let the user override the test.
4144else
c6b750e1
DJ
4145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4146for as_dir in $PATH
4147do
4148 IFS=$as_save_IFS
4149 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4150 for ac_exec_ext in '' $ac_executable_extensions; do
4151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4152 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 4154 break 2
376a0e54 4155 fi
c6b750e1 4156done
81ecdfbb
RW
4157 done
4158IFS=$as_save_IFS
cac3d6c4 4159
c6b750e1
DJ
4160fi
4161fi
4162CC=$ac_cv_prog_CC
4163if test -n "$CC"; then
81ecdfbb
RW
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4165$as_echo "$CC" >&6; }
cac3d6c4 4166else
81ecdfbb
RW
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4168$as_echo "no" >&6; }
9e07f89d 4169fi
cac3d6c4 4170
81ecdfbb 4171
c6b750e1
DJ
4172 test -n "$CC" && break
4173 done
cac3d6c4 4174fi
c6b750e1
DJ
4175if test -z "$CC"; then
4176 ac_ct_CC=$CC
81ecdfbb 4177 for ac_prog in cl.exe
c6b750e1
DJ
4178do
4179 # Extract the first word of "$ac_prog", so it can be a program name with args.
4180set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4182$as_echo_n "checking for $ac_word... " >&6; }
4183if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4184 $as_echo_n "(cached) " >&6
cac3d6c4 4185else
c6b750e1
DJ
4186 if test -n "$ac_ct_CC"; then
4187 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 4188else
c6b750e1
DJ
4189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190for as_dir in $PATH
4191do
4192 IFS=$as_save_IFS
4193 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4194 for ac_exec_ext in '' $ac_executable_extensions; do
4195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4196 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4198 break 2
4199 fi
4200done
81ecdfbb
RW
4201 done
4202IFS=$as_save_IFS
c6b750e1 4203
cac3d6c4
CM
4204fi
4205fi
c6b750e1
DJ
4206ac_ct_CC=$ac_cv_prog_ac_ct_CC
4207if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4209$as_echo "$ac_ct_CC" >&6; }
9e07f89d 4210else
81ecdfbb
RW
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4212$as_echo "no" >&6; }
cac3d6c4 4213fi
376a0e54 4214
81ecdfbb 4215
c6b750e1
DJ
4216 test -n "$ac_ct_CC" && break
4217done
4218
81ecdfbb
RW
4219 if test "x$ac_ct_CC" = x; then
4220 CC=""
4221 else
4222 case $cross_compiling:$ac_tool_warned in
4223yes:)
4224{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4225$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4226ac_tool_warned=yes ;;
4227esac
4228 CC=$ac_ct_CC
4229 fi
c6b750e1
DJ
4230fi
4231
4232fi
4233
4234
81ecdfbb
RW
4235test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4236$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4237as_fn_error "no acceptable C compiler found in \$PATH
4238See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4239
4240# Provide some information about the compiler.
81ecdfbb
RW
4241$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4242set X $ac_compile
4243ac_compiler=$2
4244for ac_option in --version -v -V -qversion; do
4245 { { ac_try="$ac_compiler $ac_option >&5"
4246case "(($ac_try" in
4247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248 *) ac_try_echo=$ac_try;;
4249esac
4250eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4251$as_echo "$ac_try_echo"; } >&5
4252 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4253 ac_status=$?
81ecdfbb
RW
4254 if test -s conftest.err; then
4255 sed '10a\
4256... rest of stderr output deleted ...
4257 10q' conftest.err >conftest.er1
4258 cat conftest.er1 >&5
4259 rm -f conftest.er1 conftest.err
4260 fi
4261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4262 test $ac_status = 0; }
4263done
c6b750e1 4264
81ecdfbb 4265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4266/* end confdefs.h. */
4267
4268int
4269main ()
4270{
4271
4272 ;
4273 return 0;
4274}
4275_ACEOF
4276ac_clean_files_save=$ac_clean_files
81ecdfbb 4277ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
c6b750e1
DJ
4278# Try to create an executable without -o first, disregard a.out.
4279# It will help us diagnose broken compilers, and finding out an intuition
4280# of exeext.
81ecdfbb
RW
4281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4282$as_echo_n "checking for C compiler default output file name... " >&6; }
4283ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4284
4285# The possible output files:
4286ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4287
4288ac_rmfiles=
4289for ac_file in $ac_files
4290do
4291 case $ac_file in
4292 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4293 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4294 esac
4295done
4296rm -f $ac_rmfiles
4297
4298if { { ac_try="$ac_link_default"
4299case "(($ac_try" in
4300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301 *) ac_try_echo=$ac_try;;
4302esac
4303eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4304$as_echo "$ac_try_echo"; } >&5
4305 (eval "$ac_link_default") 2>&5
c6b750e1 4306 ac_status=$?
81ecdfbb
RW
4307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4308 test $ac_status = 0; }; then :
4309 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4310# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4311# in a Makefile. We should not override ac_cv_exeext if it was cached,
4312# so that the user can short-circuit this test for compilers unknown to
4313# Autoconf.
4314for ac_file in $ac_files ''
c6b750e1
DJ
4315do
4316 test -f "$ac_file" || continue
4317 case $ac_file in
81ecdfbb 4318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4319 ;;
4320 [ab].out )
4321 # We found the default executable, but exeext='' is most
4322 # certainly right.
4323 break;;
4324 *.* )
81ecdfbb
RW
4325 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4326 then :; else
4327 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4328 fi
4329 # We set ac_cv_exeext here because the later test for it is not
4330 # safe: cross compilers may not add the suffix if given an `-o'
4331 # argument, so we may need to know it at that point already.
4332 # Even if this section looks crufty: it has the advantage of
4333 # actually working.
c6b750e1
DJ
4334 break;;
4335 * )
4336 break;;
4337 esac
4338done
81ecdfbb
RW
4339test "$ac_cv_exeext" = no && ac_cv_exeext=
4340
c6b750e1 4341else
81ecdfbb
RW
4342 ac_file=''
4343fi
4344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4345$as_echo "$ac_file" >&6; }
4346if test -z "$ac_file"; then :
4347 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4348sed 's/^/| /' conftest.$ac_ext >&5
4349
81ecdfbb
RW
4350{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4351$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4352{ as_fn_set_status 77
4353as_fn_error "C compiler cannot create executables
4354See \`config.log' for more details." "$LINENO" 5; }; }
c6b750e1 4355fi
c6b750e1 4356ac_exeext=$ac_cv_exeext
c6b750e1 4357
81ecdfbb 4358# Check that the compiler produces executables we can run. If not, either
c6b750e1 4359# the compiler is broken, or we cross compile.
81ecdfbb
RW
4360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4361$as_echo_n "checking whether the C compiler works... " >&6; }
c6b750e1
DJ
4362# If not cross compiling, check that we can run a simple program.
4363if test "$cross_compiling" != yes; then
4364 if { ac_try='./$ac_file'
81ecdfbb
RW
4365 { { case "(($ac_try" in
4366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367 *) ac_try_echo=$ac_try;;
4368esac
4369eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4370$as_echo "$ac_try_echo"; } >&5
4371 (eval "$ac_try") 2>&5
c6b750e1 4372 ac_status=$?
81ecdfbb
RW
4373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4374 test $ac_status = 0; }; }; then
c6b750e1
DJ
4375 cross_compiling=no
4376 else
4377 if test "$cross_compiling" = maybe; then
4378 cross_compiling=yes
4379 else
81ecdfbb
RW
4380 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4381$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4382as_fn_error "cannot run C compiled programs.
c6b750e1 4383If you meant to cross compile, use \`--host'.
81ecdfbb 4384See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4385 fi
4386 fi
4387fi
81ecdfbb
RW
4388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4389$as_echo "yes" >&6; }
c6b750e1 4390
81ecdfbb 4391rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
c6b750e1 4392ac_clean_files=$ac_clean_files_save
81ecdfbb 4393# Check that the compiler produces executables we can run. If not, either
c6b750e1 4394# the compiler is broken, or we cross compile.
81ecdfbb
RW
4395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4396$as_echo_n "checking whether we are cross compiling... " >&6; }
4397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4398$as_echo "$cross_compiling" >&6; }
4399
4400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4401$as_echo_n "checking for suffix of executables... " >&6; }
4402if { { ac_try="$ac_link"
4403case "(($ac_try" in
4404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4405 *) ac_try_echo=$ac_try;;
4406esac
4407eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4408$as_echo "$ac_try_echo"; } >&5
4409 (eval "$ac_link") 2>&5
c6b750e1 4410 ac_status=$?
81ecdfbb
RW
4411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4412 test $ac_status = 0; }; then :
c6b750e1
DJ
4413 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4414# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4415# work properly (i.e., refer to `conftest.exe'), while it won't with
4416# `rm'.
4417for ac_file in conftest.exe conftest conftest.*; do
4418 test -f "$ac_file" || continue
4419 case $ac_file in
81ecdfbb 4420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4421 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4422 break;;
4423 * ) break;;
4424 esac
4425done
4426else
81ecdfbb
RW
4427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4428$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4429as_fn_error "cannot compute suffix of executables: cannot compile and link
4430See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4431fi
c6b750e1 4432rm -f conftest$ac_cv_exeext
81ecdfbb
RW
4433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4434$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4435
4436rm -f conftest.$ac_ext
4437EXEEXT=$ac_cv_exeext
4438ac_exeext=$EXEEXT
81ecdfbb
RW
4439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4440$as_echo_n "checking for suffix of object files... " >&6; }
4441if test "${ac_cv_objext+set}" = set; then :
4442 $as_echo_n "(cached) " >&6
c6b750e1 4443else
81ecdfbb 4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4445/* end confdefs.h. */
4446
4447int
4448main ()
4449{
4450
4451 ;
4452 return 0;
4453}
4454_ACEOF
4455rm -f conftest.o conftest.obj
81ecdfbb
RW
4456if { { ac_try="$ac_compile"
4457case "(($ac_try" in
4458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459 *) ac_try_echo=$ac_try;;
4460esac
4461eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4462$as_echo "$ac_try_echo"; } >&5
4463 (eval "$ac_compile") 2>&5
c6b750e1 4464 ac_status=$?
81ecdfbb
RW
4465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4466 test $ac_status = 0; }; then :
4467 for ac_file in conftest.o conftest.obj conftest.*; do
4468 test -f "$ac_file" || continue;
c6b750e1 4469 case $ac_file in
81ecdfbb 4470 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4471 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4472 break;;
4473 esac
4474done
cac3d6c4 4475else
81ecdfbb 4476 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4477sed 's/^/| /' conftest.$ac_ext >&5
4478
81ecdfbb
RW
4479{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4480$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4481as_fn_error "cannot compute suffix of object files: cannot compile
4482See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4483fi
c6b750e1
DJ
4484rm -f conftest.$ac_cv_objext conftest.$ac_ext
4485fi
81ecdfbb
RW
4486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4487$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4488OBJEXT=$ac_cv_objext
4489ac_objext=$OBJEXT
81ecdfbb
RW
4490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4491$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4492if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4493 $as_echo_n "(cached) " >&6
c6b750e1 4494else
81ecdfbb 4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4496/* end confdefs.h. */
4497
4498int
4499main ()
4500{
4501#ifndef __GNUC__
4502 choke me
4503#endif
4504
4505 ;
4506 return 0;
4507}
4508_ACEOF
81ecdfbb 4509if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4510 ac_compiler_gnu=yes
4511else
81ecdfbb 4512 ac_compiler_gnu=no
c6b750e1 4513fi
81ecdfbb 4514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4515ac_cv_c_compiler_gnu=$ac_compiler_gnu
4516
4517fi
81ecdfbb
RW
4518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4519$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4520if test $ac_compiler_gnu = yes; then
4521 GCC=yes
4522else
4523 GCC=
4524fi
c6b750e1
DJ
4525ac_test_CFLAGS=${CFLAGS+set}
4526ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4528$as_echo_n "checking whether $CC accepts -g... " >&6; }
4529if test "${ac_cv_prog_cc_g+set}" = set; then :
4530 $as_echo_n "(cached) " >&6
4531else
4532 ac_save_c_werror_flag=$ac_c_werror_flag
4533 ac_c_werror_flag=yes
4534 ac_cv_prog_cc_g=no
4535 CFLAGS="-g"
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4537/* end confdefs.h. */
4538
4539int
4540main ()
4541{
4542
4543 ;
4544 return 0;
4545}
4546_ACEOF
81ecdfbb 4547if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4548 ac_cv_prog_cc_g=yes
4549else
81ecdfbb
RW
4550 CFLAGS=""
4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552/* end confdefs.h. */
4553
4554int
4555main ()
4556{
4557
4558 ;
4559 return 0;
4560}
4561_ACEOF
4562if ac_fn_c_try_compile "$LINENO"; then :
4563
4564else
4565 ac_c_werror_flag=$ac_save_c_werror_flag
4566 CFLAGS="-g"
4567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568/* end confdefs.h. */
cac3d6c4 4569
81ecdfbb
RW
4570int
4571main ()
4572{
4573
4574 ;
4575 return 0;
4576}
4577_ACEOF
4578if ac_fn_c_try_compile "$LINENO"; then :
4579 ac_cv_prog_cc_g=yes
4580fi
4581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4582fi
81ecdfbb 4583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4584fi
81ecdfbb
RW
4585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4586 ac_c_werror_flag=$ac_save_c_werror_flag
4587fi
4588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4589$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4590if test "$ac_test_CFLAGS" = set; then
c6b750e1 4591 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4592elif test $ac_cv_prog_cc_g = yes; then
4593 if test "$GCC" = yes; then
4594 CFLAGS="-g -O2"
4595 else
4596 CFLAGS="-g"
4597 fi
4598else
4599 if test "$GCC" = yes; then
4600 CFLAGS="-O2"
4601 else
4602 CFLAGS=
4603 fi
4604fi
81ecdfbb
RW
4605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4606$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4607if test "${ac_cv_prog_cc_c89+set}" = set; then :
4608 $as_echo_n "(cached) " >&6
c6b750e1 4609else
81ecdfbb 4610 ac_cv_prog_cc_c89=no
c6b750e1 4611ac_save_CC=$CC
81ecdfbb 4612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4613/* end confdefs.h. */
4614#include <stdarg.h>
4615#include <stdio.h>
4616#include <sys/types.h>
4617#include <sys/stat.h>
4618/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4619struct buf { int x; };
4620FILE * (*rcsopen) (struct buf *, struct stat *, int);
4621static char *e (p, i)
4622 char **p;
4623 int i;
4624{
4625 return p[i];
4626}
4627static char *f (char * (*g) (char **, int), char **p, ...)
4628{
4629 char *s;
4630 va_list v;
4631 va_start (v,p);
4632 s = g (p, va_arg (v,int));
4633 va_end (v);
4634 return s;
4635}
4636
4637/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4638 function prototypes and stuff, but not '\xHH' hex character constants.
4639 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4640 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4641 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4642 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4643 that's true only with -std. */
c6b750e1
DJ
4644int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4645
81ecdfbb
RW
4646/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4647 inside strings and character constants. */
4648#define FOO(x) 'x'
4649int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4650
c6b750e1
DJ
4651int test (int i, double x);
4652struct s1 {int (*f) (int a);};
4653struct s2 {int (*f) (double a);};
4654int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4655int argc;
4656char **argv;
4657int
4658main ()
4659{
4660return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4661 ;
4662 return 0;
4663}
4664_ACEOF
81ecdfbb
RW
4665for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4666 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4667do
4668 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4669 if ac_fn_c_try_compile "$LINENO"; then :
4670 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4671fi
81ecdfbb
RW
4672rm -f core conftest.err conftest.$ac_objext
4673 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4674done
81ecdfbb 4675rm -f conftest.$ac_ext
c6b750e1
DJ
4676CC=$ac_save_CC
4677
4678fi
81ecdfbb
RW
4679# AC_CACHE_VAL
4680case "x$ac_cv_prog_cc_c89" in
4681 x)
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4683$as_echo "none needed" >&6; } ;;
4684 xno)
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4686$as_echo "unsupported" >&6; } ;;
c6b750e1 4687 *)
81ecdfbb
RW
4688 CC="$CC $ac_cv_prog_cc_c89"
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4690$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4691esac
81ecdfbb 4692if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4693
c6b750e1
DJ
4694fi
4695
c6b750e1
DJ
4696ac_ext=c
4697ac_cpp='$CPP $CPPFLAGS'
4698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4700ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4701
81ecdfbb 4702ac_ext=cpp
18f6b6ee
PB
4703ac_cpp='$CXXCPP $CPPFLAGS'
4704ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4705ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4706ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4707if test -z "$CXX"; then
4708 if test -n "$CCC"; then
4709 CXX=$CCC
4710 else
4711 if test -n "$ac_tool_prefix"; then
4712 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4713 do
4714 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4715set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4717$as_echo_n "checking for $ac_word... " >&6; }
4718if test "${ac_cv_prog_CXX+set}" = set; then :
4719 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4720else
4721 if test -n "$CXX"; then
4722 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4723else
4724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725for as_dir in $PATH
4726do
4727 IFS=$as_save_IFS
4728 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4731 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4733 break 2
4734 fi
4735done
81ecdfbb
RW
4736 done
4737IFS=$as_save_IFS
512b7dfb 4738
18f6b6ee
PB
4739fi
4740fi
4741CXX=$ac_cv_prog_CXX
4742if test -n "$CXX"; then
81ecdfbb
RW
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4744$as_echo "$CXX" >&6; }
18f6b6ee 4745else
81ecdfbb
RW
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4747$as_echo "no" >&6; }
18f6b6ee
PB
4748fi
4749
81ecdfbb 4750
18f6b6ee
PB
4751 test -n "$CXX" && break
4752 done
4753fi
4754if test -z "$CXX"; then
4755 ac_ct_CXX=$CXX
81ecdfbb 4756 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4757do
4758 # Extract the first word of "$ac_prog", so it can be a program name with args.
4759set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4761$as_echo_n "checking for $ac_word... " >&6; }
4762if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4763 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4764else
4765 if test -n "$ac_ct_CXX"; then
4766 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4767else
4768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769for as_dir in $PATH
4770do
4771 IFS=$as_save_IFS
4772 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4773 for ac_exec_ext in '' $ac_executable_extensions; do
4774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4775 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4777 break 2
512b7dfb 4778 fi
18f6b6ee 4779done
81ecdfbb
RW
4780 done
4781IFS=$as_save_IFS
512b7dfb 4782
18f6b6ee
PB
4783fi
4784fi
4785ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4786if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4788$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4789else
81ecdfbb
RW
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4791$as_echo "no" >&6; }
18f6b6ee
PB
4792fi
4793
81ecdfbb 4794
18f6b6ee
PB
4795 test -n "$ac_ct_CXX" && break
4796done
18f6b6ee 4797
81ecdfbb
RW
4798 if test "x$ac_ct_CXX" = x; then
4799 CXX="g++"
4800 else
4801 case $cross_compiling:$ac_tool_warned in
4802yes:)
4803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4805ac_tool_warned=yes ;;
4806esac
4807 CXX=$ac_ct_CXX
4808 fi
18f6b6ee
PB
4809fi
4810
81ecdfbb
RW
4811 fi
4812fi
18f6b6ee 4813# Provide some information about the compiler.
81ecdfbb
RW
4814$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4815set X $ac_compile
4816ac_compiler=$2
4817for ac_option in --version -v -V -qversion; do
4818 { { ac_try="$ac_compiler $ac_option >&5"
4819case "(($ac_try" in
4820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4821 *) ac_try_echo=$ac_try;;
4822esac
4823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4824$as_echo "$ac_try_echo"; } >&5
4825 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4826 ac_status=$?
81ecdfbb
RW
4827 if test -s conftest.err; then
4828 sed '10a\
4829... rest of stderr output deleted ...
4830 10q' conftest.err >conftest.er1
4831 cat conftest.er1 >&5
4832 rm -f conftest.er1 conftest.err
4833 fi
4834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4835 test $ac_status = 0; }
4836done
18f6b6ee 4837
81ecdfbb
RW
4838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4839$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4840if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4841 $as_echo_n "(cached) " >&6
18f6b6ee 4842else
81ecdfbb 4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4844/* end confdefs.h. */
4845
4846int
4847main ()
4848{
4849#ifndef __GNUC__
4850 choke me
4851#endif
4852
4853 ;
4854 return 0;
4855}
4856_ACEOF
81ecdfbb 4857if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4858 ac_compiler_gnu=yes
4859else
81ecdfbb 4860 ac_compiler_gnu=no
18f6b6ee 4861fi
81ecdfbb 4862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4863ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4864
4865fi
81ecdfbb
RW
4866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4867$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4868if test $ac_compiler_gnu = yes; then
4869 GXX=yes
4870else
4871 GXX=
4872fi
18f6b6ee
PB
4873ac_test_CXXFLAGS=${CXXFLAGS+set}
4874ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4876$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4877if test "${ac_cv_prog_cxx_g+set}" = set; then :
4878 $as_echo_n "(cached) " >&6
4879else
4880 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4881 ac_cxx_werror_flag=yes
4882 ac_cv_prog_cxx_g=no
4883 CXXFLAGS="-g"
4884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4885/* end confdefs.h. */
4886
4887int
4888main ()
4889{
4890
4891 ;
4892 return 0;
4893}
4894_ACEOF
81ecdfbb 4895if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4896 ac_cv_prog_cxx_g=yes
4897else
81ecdfbb
RW
4898 CXXFLAGS=""
4899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4900/* end confdefs.h. */
81ecdfbb 4901
18f6b6ee
PB
4902int
4903main ()
4904{
81ecdfbb 4905
18f6b6ee
PB
4906 ;
4907 return 0;
4908}
4909_ACEOF
81ecdfbb 4910if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 4911
81ecdfbb
RW
4912else
4913 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4914 CXXFLAGS="-g"
4915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4916/* end confdefs.h. */
81ecdfbb 4917
18f6b6ee
PB
4918int
4919main ()
4920{
81ecdfbb 4921
18f6b6ee
PB
4922 ;
4923 return 0;
4924}
4925_ACEOF
81ecdfbb
RW
4926if ac_fn_cxx_try_compile "$LINENO"; then :
4927 ac_cv_prog_cxx_g=yes
18f6b6ee 4928fi
81ecdfbb
RW
4929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4930fi
4931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4932fi
4933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4934 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4935fi
4936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4937$as_echo "$ac_cv_prog_cxx_g" >&6; }
4938if test "$ac_test_CXXFLAGS" = set; then
4939 CXXFLAGS=$ac_save_CXXFLAGS
4940elif test $ac_cv_prog_cxx_g = yes; then
4941 if test "$GXX" = yes; then
4942 CXXFLAGS="-g -O2"
4943 else
4944 CXXFLAGS="-g"
4945 fi
4946else
4947 if test "$GXX" = yes; then
4948 CXXFLAGS="-O2"
4949 else
4950 CXXFLAGS=
4951 fi
18f6b6ee 4952fi
18f6b6ee
PB
4953ac_ext=c
4954ac_cpp='$CPP $CPPFLAGS'
4955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4957ac_compiler_gnu=$ac_cv_c_compiler_gnu
4958
4959
4960# We must set the default linker to the linker used by gcc for the correct
4961# operation of libtool. If LD is not defined and we are using gcc, try to
4962# set the LD default to the ld used by gcc.
4963if test -z "$LD"; then
4964 if test "$GCC" = yes; then
4965 case $build in
4966 *-*-mingw*)
4967 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4968 *)
4969 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4970 esac
4971 case $gcc_prog_ld in
4972 # Accept absolute paths.
4973 [\\/]* | [A-Za-z]:[\\/]*)
4974 LD="$gcc_prog_ld" ;;
4975 esac
4976 fi
512b7dfb
PB
4977fi
4978
b3676d82
EB
4979# Check whether -static-libstdc++ -static-libgcc is supported.
4980have_static_libs=no
4981if test "$GCC" = yes; then
4982 saved_LDFLAGS="$LDFLAGS"
4983
4984 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
4986$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
4987 ac_ext=cpp
4988ac_cpp='$CXXCPP $CPPFLAGS'
4989ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4990ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4991ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4992
4993
4994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995/* end confdefs.h. */
a882be68
EB
4996
4997#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
4998#error -static-libstdc++ not implemented
4999#endif
b3676d82
EB
5000int main() {}
5001_ACEOF
5002if ac_fn_cxx_try_link "$LINENO"; then :
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5004$as_echo "yes" >&6; }; have_static_libs=yes
5005else
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5007$as_echo "no" >&6; }
5008fi
5009rm -f core conftest.err conftest.$ac_objext \
5010 conftest$ac_exeext conftest.$ac_ext
5011 ac_ext=c
5012ac_cpp='$CPP $CPPFLAGS'
5013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5015ac_compiler_gnu=$ac_cv_c_compiler_gnu
5016
5017
5018 LDFLAGS="$saved_LDFLAGS"
5019fi
5020
512b7dfb
PB
5021
5022
5023
c6b750e1 5024if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5025 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5026set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
5027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5028$as_echo_n "checking for $ac_word... " >&6; }
5029if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5030 $as_echo_n "(cached) " >&6
9e07f89d 5031else
512b7dfb
PB
5032 if test -n "$GNATBIND"; then
5033 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 5034else
c6b750e1
DJ
5035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036for as_dir in $PATH
5037do
5038 IFS=$as_save_IFS
5039 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5040 for ac_exec_ext in '' $ac_executable_extensions; do
5041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5042 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 5043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5044 break 2
5045 fi
5046done
81ecdfbb
RW
5047 done
5048IFS=$as_save_IFS
c6b750e1 5049
9e07f89d
NN
5050fi
5051fi
512b7dfb
PB
5052GNATBIND=$ac_cv_prog_GNATBIND
5053if test -n "$GNATBIND"; then
81ecdfbb
RW
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5055$as_echo "$GNATBIND" >&6; }
9e07f89d 5056else
81ecdfbb
RW
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5058$as_echo "no" >&6; }
9e07f89d
NN
5059fi
5060
81ecdfbb 5061
c6b750e1 5062fi
512b7dfb
PB
5063if test -z "$ac_cv_prog_GNATBIND"; then
5064 ac_ct_GNATBIND=$GNATBIND
5065 # Extract the first word of "gnatbind", so it can be a program name with args.
5066set dummy gnatbind; ac_word=$2
81ecdfbb
RW
5067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5068$as_echo_n "checking for $ac_word... " >&6; }
5069if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5070 $as_echo_n "(cached) " >&6
9e07f89d 5071else
512b7dfb
PB
5072 if test -n "$ac_ct_GNATBIND"; then
5073 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 5074else
c6b750e1
DJ
5075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076for as_dir in $PATH
5077do
5078 IFS=$as_save_IFS
5079 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5080 for ac_exec_ext in '' $ac_executable_extensions; do
5081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5082 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 5083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5084 break 2
5085 fi
5086done
81ecdfbb
RW
5087 done
5088IFS=$as_save_IFS
c6b750e1 5089
9e07f89d
NN
5090fi
5091fi
512b7dfb
PB
5092ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5093if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5095$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 5096else
81ecdfbb
RW
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098$as_echo "no" >&6; }
9e07f89d
NN
5099fi
5100
81ecdfbb
RW
5101 if test "x$ac_ct_GNATBIND" = x; then
5102 GNATBIND="no"
5103 else
5104 case $cross_compiling:$ac_tool_warned in
5105yes:)
5106{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5107$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5108ac_tool_warned=yes ;;
5109esac
5110 GNATBIND=$ac_ct_GNATBIND
5111 fi
24ff9987 5112else
512b7dfb 5113 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
5114fi
5115
7df2cd5d 5116if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5117 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5118set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
5119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5120$as_echo_n "checking for $ac_word... " >&6; }
5121if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5122 $as_echo_n "(cached) " >&6
7df2cd5d 5123else
512b7dfb
PB
5124 if test -n "$GNATMAKE"; then
5125 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5126else
5127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128for as_dir in $PATH
5129do
5130 IFS=$as_save_IFS
5131 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5132 for ac_exec_ext in '' $ac_executable_extensions; do
5133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5134 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 5135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5136 break 2
5137 fi
5138done
81ecdfbb
RW
5139 done
5140IFS=$as_save_IFS
7df2cd5d
PB
5141
5142fi
5143fi
512b7dfb
PB
5144GNATMAKE=$ac_cv_prog_GNATMAKE
5145if test -n "$GNATMAKE"; then
81ecdfbb
RW
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5147$as_echo "$GNATMAKE" >&6; }
7df2cd5d 5148else
81ecdfbb
RW
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150$as_echo "no" >&6; }
7df2cd5d
PB
5151fi
5152
81ecdfbb 5153
7df2cd5d 5154fi
512b7dfb
PB
5155if test -z "$ac_cv_prog_GNATMAKE"; then
5156 ac_ct_GNATMAKE=$GNATMAKE
5157 # Extract the first word of "gnatmake", so it can be a program name with args.
5158set dummy gnatmake; ac_word=$2
81ecdfbb
RW
5159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5160$as_echo_n "checking for $ac_word... " >&6; }
5161if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5162 $as_echo_n "(cached) " >&6
7df2cd5d 5163else
512b7dfb
PB
5164 if test -n "$ac_ct_GNATMAKE"; then
5165 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5166else
5167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168for as_dir in $PATH
5169do
5170 IFS=$as_save_IFS
5171 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5174 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 5175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5176 break 2
5177 fi
5178done
81ecdfbb
RW
5179 done
5180IFS=$as_save_IFS
7df2cd5d 5181
7df2cd5d
PB
5182fi
5183fi
512b7dfb
PB
5184ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5185if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5187$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 5188else
81ecdfbb
RW
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5190$as_echo "no" >&6; }
7df2cd5d
PB
5191fi
5192
81ecdfbb
RW
5193 if test "x$ac_ct_GNATMAKE" = x; then
5194 GNATMAKE="no"
5195 else
5196 case $cross_compiling:$ac_tool_warned in
5197yes:)
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5199$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5200ac_tool_warned=yes ;;
5201esac
5202 GNATMAKE=$ac_ct_GNATMAKE
5203 fi
7df2cd5d 5204else
512b7dfb 5205 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
5206fi
5207
81ecdfbb
RW
5208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5209$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5210if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5211 $as_echo_n "(cached) " >&6
9e07f89d
NN
5212else
5213 cat >conftest.adb <<EOF
5214procedure conftest is begin null; end conftest;
5215EOF
5216acx_cv_cc_gcc_supports_ada=no
5217# There is a bug in old released versions of GCC which causes the
5218# driver to exit successfully when the appropriate language module
5219# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5220# Therefore we must check for the error message as well as an
5221# unsuccessful exit.
b8908782
DD
5222# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5223# given a .adb file, but produce no object file. So we must check
5224# if an object file was really produced to guard against this.
9e07f89d 5225errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 5226if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 5227 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
5228fi
5229rm -f conftest.*
5230fi
81ecdfbb
RW
5231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5232$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 5233
64b986c0 5234if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
5235 have_gnat=yes
5236else
5237 have_gnat=no
5238fi
5239
81ecdfbb
RW
5240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5241$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5242if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5243 $as_echo_n "(cached) " >&6
b8908782
DD
5244else
5245 echo abfoo >t1
5246 echo cdfoo >t2
5247 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5248 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5249 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5250 :
5251 else
5252 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5253 fi
5254 fi
b8908782
DD
5255 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5256 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5257 :
b8908782
DD
5258 else
5259 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5260 fi
5261 fi
5262 rm t1 t2
5263
5264fi
81ecdfbb
RW
5265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5266$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5267do_compare="$gcc_cv_prog_cmp_skip"
5268
5269
9e07f89d 5270
ffdd6afc
ILT
5271# Check whether --enable-bootstrap was given.
5272if test "${enable_bootstrap+set}" = set; then :
5273 enableval=$enable_bootstrap;
5274else
5275 enable_bootstrap=default
5276fi
5277
5278
5279# Issue errors and warnings for invalid/strange bootstrap combinations.
5280if test -r $srcdir/gcc/configure; then
5281 have_compiler=yes
5282else
5283 have_compiler=no
5284fi
5285
5286case "$have_compiler:$host:$target:$enable_bootstrap" in
5287 *:*:*:no) ;;
5288
5289 # Default behavior. Enable bootstrap if we have a compiler
5290 # and we are in a native configuration.
5291 yes:$build:$build:default)
5292 enable_bootstrap=yes ;;
5293
5294 *:*:*:default)
5295 enable_bootstrap=no ;;
5296
5297 # We have a compiler and we are in a native configuration, bootstrap is ok
5298 yes:$build:$build:yes)
5299 ;;
5300
5301 # Other configurations, but we have a compiler. Assume the user knows
5302 # what he's doing.
5303 yes:*:*:yes)
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5305$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5306 ;;
5307
5308 # No compiler: if they passed --enable-bootstrap explicitly, fail
5309 no:*:*:yes)
5310 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5311
5312 # Fail if wrong command line
5313 *)
5314 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5315 ;;
5316esac
5317
d5f2ee2e
KG
5318# Used for setting $lt_cv_objdir
5319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5320$as_echo_n "checking for objdir... " >&6; }
5321if test "${lt_cv_objdir+set}" = set; then :
5322 $as_echo_n "(cached) " >&6
5323else
5324 rm -f .libs 2>/dev/null
5325mkdir .libs 2>/dev/null
5326if test -d .libs; then
5327 lt_cv_objdir=.libs
5328else
5329 # MS-DOS does not allow filenames that begin with a dot.
5330 lt_cv_objdir=_libs
5331fi
5332rmdir .libs 2>/dev/null
5333fi
5334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5335$as_echo "$lt_cv_objdir" >&6; }
5336objdir=$lt_cv_objdir
5337
5338
5339
5340
5341
5342cat >>confdefs.h <<_ACEOF
5343#define LT_OBJDIR "$lt_cv_objdir/"
5344_ACEOF
5345
5346
5347
e8a5fa9c 5348# Check for GMP, MPFR and MPC
d9b76ff9 5349gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 5350gmpinc=
4b900473 5351have_gmp=no
e8a5fa9c
RW
5352
5353# Specify a location for mpc
5354# check for this first so it ends up on the link line before mpfr.
5355
81ecdfbb
RW
5356# Check whether --with-mpc was given.
5357if test "${with_mpc+set}" = set; then :
5358 withval=$with_mpc;
5359fi
e8a5fa9c 5360
e8a5fa9c 5361
e552509b 5362# Check whether --with-mpc-include was given.
81ecdfbb
RW
5363if test "${with_mpc_include+set}" = set; then :
5364 withval=$with_mpc_include;
5365fi
e8a5fa9c 5366
e8a5fa9c 5367
e552509b 5368# Check whether --with-mpc-lib was given.
81ecdfbb
RW
5369if test "${with_mpc_lib+set}" = set; then :
5370 withval=$with_mpc_lib;
5371fi
e8a5fa9c 5372
e8a5fa9c
RW
5373
5374if test "x$with_mpc" != x; then
d9b76ff9
KG
5375 gmplibs="-L$with_mpc/lib $gmplibs"
5376 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5377fi
5378if test "x$with_mpc_include" != x; then
d9b76ff9 5379 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5380fi
5381if test "x$with_mpc_lib" != x; then
d9b76ff9 5382 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5383fi
5384if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5385 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5386 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5387 # Do not test the mpc version. Assume that it is sufficient, since
5388 # it is in the source tree, and the library has not been built yet
5389 # but it would be included on the link line in the version check below
5390 # hence making the test fail.
d9b76ff9 5391 have_gmp=yes
e8a5fa9c 5392fi
4b900473 5393
11b04d1f
DD
5394# Specify a location for mpfr
5395# check for this first so it ends up on the link line before gmp.
c6b750e1 5396
81ecdfbb
RW
5397# Check whether --with-mpfr-dir was given.
5398if test "${with_mpfr_dir+set}" = set; then :
5399 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5400Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5401fi
5402
11b04d1f
DD
5403
5404
81ecdfbb
RW
5405# Check whether --with-mpfr was given.
5406if test "${with_mpfr+set}" = set; then :
5407 withval=$with_mpfr;
5408fi
c6b750e1 5409
11b04d1f 5410
e552509b 5411# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5412if test "${with_mpfr_include+set}" = set; then :
5413 withval=$with_mpfr_include;
5414fi
c6b750e1 5415
8a0d8a5c 5416
e552509b 5417# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5418if test "${with_mpfr_lib+set}" = set; then :
5419 withval=$with_mpfr_lib;
5420fi
8a0d8a5c 5421
11b04d1f
DD
5422
5423if test "x$with_mpfr" != x; then
5424 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5425 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5426fi
8a0d8a5c 5427if test "x$with_mpfr_include" != x; then
d9b76ff9 5428 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5429fi
5430if test "x$with_mpfr_lib" != x; then
5431 gmplibs="-L$with_mpfr_lib $gmplibs"
5432fi
4b900473 5433if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
58b1dd21
NC
5434 # MPFR v3.1.0 moved the sources into a src sub-directory.
5435 if test -d ${srcdir}/mpfr/src; then
5436 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5437 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5438 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5439 else
5440 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5441 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5442 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5443 fi
4b900473
PB
5444 # Do not test the mpfr version. Assume that it is sufficient, since
5445 # it is in the source tree, and the library has not been built yet
5446 # but it would be included on the link line in the version check below
5447 # hence making the test fail.
5448 have_gmp=yes
5449fi
11b04d1f 5450
4b1cb4fe 5451# Specify a location for gmp
c6b750e1 5452
81ecdfbb
RW
5453# Check whether --with-gmp-dir was given.
5454if test "${with_gmp_dir+set}" = set; then :
5455 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5456Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5457fi
5458
4b1cb4fe
DD
5459
5460
81ecdfbb
RW
5461# Check whether --with-gmp was given.
5462if test "${with_gmp+set}" = set; then :
5463 withval=$with_gmp;
5464fi
c6b750e1 5465
4b1cb4fe 5466
e552509b 5467# Check whether --with-gmp-include was given.
81ecdfbb
RW
5468if test "${with_gmp_include+set}" = set; then :
5469 withval=$with_gmp_include;
5470fi
c6b750e1 5471
8a0d8a5c 5472
e552509b 5473# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5474if test "${with_gmp_lib+set}" = set; then :
5475 withval=$with_gmp_lib;
5476fi
8a0d8a5c
PB
5477
5478
4b1cb4fe 5479
11b04d1f
DD
5480if test "x$with_gmp" != x; then
5481 gmplibs="-L$with_gmp/lib $gmplibs"
5482 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5483fi
8a0d8a5c
PB
5484if test "x$with_gmp_include" != x; then
5485 gmpinc="-I$with_gmp_include $gmpinc"
5486fi
5487if test "x$with_gmp_lib" != x; then
5488 gmplibs="-L$with_gmp_lib $gmplibs"
5489fi
4b900473 5490if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5491 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5492 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5493 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5494 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7ec59b9e 5495 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
4b900473
PB
5496 # Do not test the gmp version. Assume that it is sufficient, since
5497 # it is in the source tree, and the library has not been built yet
5498 # but it would be included on the link line in the version check below
5499 # hence making the test fail.
5500 have_gmp=yes
5501fi
4b1cb4fe 5502
ceb92e78 5503if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5504 have_gmp=yes
5505 saved_CFLAGS="$CFLAGS"
5506 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5507 # Check for the recommended and required versions of GMP.
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5509$as_echo_n "checking for the correct version of gmp.h... " >&6; }
a009f2e7
RW
5510
5511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5512/* end confdefs.h. */
5513#include "gmp.h"
5514int
5515main ()
5516{
5517
5518 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5519 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8e71395b 5520 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
a6b5846e
KG
5521 choke me
5522 #endif
5523
5524 ;
5525 return 0;
5526}
5527_ACEOF
5528if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5530/* end confdefs.h. */
a6b5846e 5531#include <gmp.h>
c6b750e1
DJ
5532int
5533main ()
5534{
4b1cb4fe 5535
a6b5846e
KG
5536 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5537 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5538 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5539 choke me
5540 #endif
c6b750e1
DJ
5541
5542 ;
5543 return 0;
5544}
5545_ACEOF
81ecdfbb
RW
5546if ac_fn_c_try_compile "$LINENO"; then :
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5548$as_echo "yes" >&6; }
a6b5846e
KG
5549else
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5551$as_echo "buggy but acceptable" >&6; }
5552fi
5553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5554else
81ecdfbb
RW
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5557fi
81ecdfbb 5558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5559
e8a5fa9c 5560 # If we have GMP, check the MPFR version.
4b900473 5561 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5562 # Check for the recommended and required versions of MPFR.
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5564$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5566/* end confdefs.h. */
9b134994 5567#include <gmp.h>
4b900473 5568 #include <mpfr.h>
c6b750e1
DJ
5569int
5570main ()
5571{
9b134994 5572
7ec59b9e 5573 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
4b900473
PB
5574 choke me
5575 #endif
c6b750e1
DJ
5576
5577 ;
5578 return 0;
5579}
5580_ACEOF
81ecdfbb
RW
5581if ac_fn_c_try_compile "$LINENO"; then :
5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5583/* end confdefs.h. */
4b1cb4fe 5584#include <gmp.h>
4b900473 5585 #include <mpfr.h>
c6b750e1
DJ
5586int
5587main ()
5588{
9dbaa842 5589
a6b5846e 5590 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5591 choke me
5592 #endif
e8a5fa9c
RW
5593
5594 ;
5595 return 0;
5596}
5597_ACEOF
81ecdfbb
RW
5598if ac_fn_c_try_compile "$LINENO"; then :
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5600$as_echo "yes" >&6; }
e8a5fa9c 5601else
81ecdfbb
RW
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5603$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5604fi
81ecdfbb 5605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5606else
81ecdfbb
RW
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5609fi
81ecdfbb 5610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5611 fi
5612
5613 # Check for the MPC header version.
d9b76ff9 5614 if test x"$have_gmp" = xyes ; then
a6b5846e 5615 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5617$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5619/* end confdefs.h. */
5620#include <mpc.h>
5621int
5622main ()
5623{
5624
a6b5846e
KG
5625 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5626 choke me
5627 #endif
5628
5629 ;
5630 return 0;
5631}
5632_ACEOF
5633if ac_fn_c_try_compile "$LINENO"; then :
5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635/* end confdefs.h. */
5636#include <mpc.h>
5637int
5638main ()
5639{
5640
5641 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
5642 choke me
5643 #endif
5644
5645 ;
5646 return 0;
5647}
5648_ACEOF
81ecdfbb
RW
5649if ac_fn_c_try_compile "$LINENO"; then :
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 5651$as_echo "yes" >&6; }
a6b5846e
KG
5652else
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5654$as_echo "buggy but acceptable" >&6; }
5655fi
5656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5657else
81ecdfbb 5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 5659$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5660fi
81ecdfbb 5661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5662 fi
5663
5664 # Now check the MPFR library.
5665 if test x"$have_gmp" = xyes; then
5666 saved_LIBS="$LIBS"
5667 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5669$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 5670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 5671/* end confdefs.h. */
d9b76ff9 5672#include <mpc.h>
e8a5fa9c
RW
5673int
5674main ()
5675{
5676
5677 mpfr_t n;
5678 mpfr_t x;
d9b76ff9 5679 mpc_t c;
e8a5fa9c
RW
5680 int t;
5681 mpfr_init (n);
5682 mpfr_init (x);
5683 mpfr_atan2 (n, n, x, GMP_RNDN);
5684 mpfr_erfc (n, x, GMP_RNDN);
5685 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
5686 mpfr_clear(n);
5687 mpfr_clear(x);
5688 mpc_init2 (c, 53);
5689 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5690 mpc_cosh (c, c, MPC_RNDNN);
5691 mpc_pow (c, c, c, MPC_RNDNN);
5692 mpc_acosh (c, c, MPC_RNDNN);
5693 mpc_clear (c);
c6b750e1
DJ
5694
5695 ;
5696 return 0;
5697}
5698_ACEOF
81ecdfbb
RW
5699if ac_fn_c_try_link "$LINENO"; then :
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5701$as_echo "yes" >&6; }
c6b750e1 5702else
81ecdfbb
RW
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5704$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5705fi
81ecdfbb
RW
5706rm -f core conftest.err conftest.$ac_objext \
5707 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5708 LIBS="$saved_LIBS"
5709 fi
5710
4b900473 5711 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5712
a6b5846e
KG
5713# The library versions listed in the error message below should match
5714# the HARD-minimums enforced above.
4b900473 5715 if test x$have_gmp != xyes; then
7ec59b9e 5716 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
d9b76ff9
KG
5717Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5718their locations. Source code for these libraries can be found at
5719their respective hosting sites as well as at
5720ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5721http://gcc.gnu.org/install/prerequisites.html for additional info. If
5722you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5723make sure that you have installed both the libraries and the header
5724files. They may be located in separate packages." "$LINENO" 5
4b900473 5725 fi
9dbaa842
DD
5726fi
5727
e8a5fa9c
RW
5728# Flags needed for both GMP, MPFR and/or MPC.
5729
5730
5731
4b1cb4fe
DD
5732
5733
5734
7ec59b9e 5735
29383458
JM
5736# Allow host libstdc++ to be specified for static linking with PPL.
5737
81ecdfbb
RW
5738# Check whether --with-host-libstdcxx was given.
5739if test "${with_host_libstdcxx+set}" = set; then :
5740 withval=$with_host_libstdcxx;
5741fi
29383458 5742
29383458
JM
5743
5744case $with_host_libstdcxx in
5745 no|yes)
81ecdfbb 5746 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
29383458
JM
5747 ;;
5748esac
e28c595f 5749
b3676d82 5750# Libraries to use for stage1 or when not bootstrapping.
e8a5fa9c 5751
b3676d82
EB
5752# Check whether --with-stage1-libs was given.
5753if test "${with_stage1_libs+set}" = set; then :
5754 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5755 stage1_libs=
e8a5fa9c 5756 else
b3676d82 5757 stage1_libs=$withval
e8a5fa9c
RW
5758 fi
5759else
b3676d82 5760 stage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5761fi
5762
e8a5fa9c
RW
5763
5764
b3676d82 5765# Linker flags to use for stage1 or when not bootstrapping.
e8a5fa9c 5766
b3676d82
EB
5767# Check whether --with-stage1-ldflags was given.
5768if test "${with_stage1_ldflags+set}" = set; then :
5769 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5770 stage1_ldflags=
e8a5fa9c 5771 else
b3676d82 5772 stage1_ldflags=$withval
e8a5fa9c
RW
5773 fi
5774else
b3676d82
EB
5775 stage1_ldflags=
5776 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5777 # if supported. But if the user explicitly specified the libraries to use,
5778 # trust that they are doing what they want.
5779 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5780 stage1_ldflags="-static-libstdc++ -static-libgcc"
5781 fi
81ecdfbb
RW
5782fi
5783
e8a5fa9c
RW
5784
5785
e8a5fa9c
RW
5786# Libraries to use for stage2 and later builds. This defaults to the
5787# argument passed to --with-host-libstdcxx.
5788
81ecdfbb
RW
5789# Check whether --with-boot-libs was given.
5790if test "${with_boot_libs+set}" = set; then :
5791 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5792 poststage1_libs=
5793 else
5794 poststage1_libs=$withval
5795 fi
5796else
5797 poststage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5798fi
5799
e8a5fa9c
RW
5800
5801
143754cd
NC
5802# Linker flags to use for stage2 and later builds.
5803
5804# Check whether --with-boot-ldflags was given.
5805if test "${with_boot_ldflags+set}" = set; then :
5806 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5807 poststage1_ldflags=
5808 else
5809 poststage1_ldflags=$withval
5810 fi
5811else
5812 poststage1_ldflags=
4f11b223
ILT
5813 # In stages 2 and 3, default to linking libstdc++ and libgcc
5814 # statically. But if the user explicitly specified the libraries to
5815 # use, trust that they are doing what they want.
5816 if test "$poststage1_libs" = ""; then
143754cd
NC
5817 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5818 fi
5819fi
5820
5821
5822
8e71395b
L
5823# GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
5824# Basic setup is inlined here, actual checks are in config/cloog.m4 and
5825# config/isl.m4
5826
5827
5828# Check whether --with-cloog was given.
5829if test "${with_cloog+set}" = set; then :
5830 withval=$with_cloog;
5831fi
e28c595f
JM
5832
5833
7ec59b9e
L
5834# Check whether --with-isl was given.
5835if test "${with_isl+set}" = set; then :
5836 withval=$with_isl;
81ecdfbb 5837fi
e28c595f 5838
e28c595f 5839
8e71395b
L
5840# Treat either --without-cloog or --without-isl as a request to disable
5841# GRAPHITE support and skip all following checks.
5842if test "x$with_isl" != "xno" &&
5843 test "x$with_cloog" != "xno"; then
5844 # Check for ISL
5845
5846
7ec59b9e
L
5847# Check whether --with-isl-include was given.
5848if test "${with_isl_include+set}" = set; then :
5849 withval=$with_isl_include;
81ecdfbb
RW
5850fi
5851
e28c595f 5852
7ec59b9e
L
5853# Check whether --with-isl-lib was given.
5854if test "${with_isl_lib+set}" = set; then :
5855 withval=$with_isl_lib;
81ecdfbb 5856fi
e28c595f 5857
e28c595f 5858
7ec59b9e
L
5859 # Check whether --enable-isl-version-check was given.
5860if test "${enable_isl_version_check+set}" = set; then :
5861 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5862else
5863 ENABLE_ISL_CHECK=yes
b123da99
SP
5864fi
5865
5866
7ec59b9e
L
5867 # Initialize isllibs and islinc.
5868 case $with_isl in
5869 no)
5870 isllibs=
5871 islinc=
5872 ;;
5873 "" | yes)
5874 ;;
5875 *)
5876 isllibs="-L$with_isl/lib"
5877 islinc="-I$with_isl/include"
5878 ;;
5879 esac
5880 if test "x${with_isl_include}" != x ; then
5881 islinc="-I$with_isl_include"
5882 fi
5883 if test "x${with_isl_lib}" != x; then
5884 isllibs="-L$with_isl_lib"
5885 fi
5886 if test "x${islinc}" = x && test "x${isllibs}" = x \
5887 && test -d ${srcdir}/isl; then
5888 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5889 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5890 ENABLE_ISL_CHECK=no
3dae1673
JBG
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5892$as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
7ec59b9e 5893 fi
b123da99 5894
b123da99 5895
e28c595f 5896
7ec59b9e
L
5897 if test "${ENABLE_ISL_CHECK}" = yes ; then
5898 _isl_saved_CFLAGS=$CFLAGS
5899 _isl_saved_LDFLAGS=$LDFLAGS
5900 _isl_saved_LIBS=$LIBS
5901
5902 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5903 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5904 LIBS="${_isl_saved_LIBS} -lisl"
7ec59b9e
L
5905
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5907$as_echo_n "checking for version 0.10 of ISL... " >&6; }
3dae1673 5908 if test "$cross_compiling" = yes; then :
7ec59b9e
L
5909 gcc_cv_isl=yes
5910else
5911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b123da99 5912/* end confdefs.h. */
7ec59b9e
L
5913#include <isl/version.h>
5914 #include <string.h>
b123da99
SP
5915int
5916main ()
5917{
7ec59b9e
L
5918if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
5919 return 1;
5920
b123da99
SP
5921 ;
5922 return 0;
5923}
5924_ACEOF
7ec59b9e
L
5925if ac_fn_c_try_run "$LINENO"; then :
5926 gcc_cv_isl=yes
e28c595f 5927else
7ec59b9e 5928 gcc_cv_isl=no
b123da99 5929fi
7ec59b9e
L
5930rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5931 conftest.$ac_objext conftest.beam conftest.$ac_ext
b123da99 5932fi
7ec59b9e 5933
3dae1673
JBG
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5935$as_echo "$gcc_cv_isl" >&6; }
5936
5937 CFLAGS=$_isl_saved_CFLAGS
5938 LDFLAGS=$_isl_saved_LDFLAGS
5939 LIBS=$_isl_saved_LIBS
5940 fi
5941
5942
5943 if test "${gcc_cv_isl}" = no ; then
5944
5945 if test "${ENABLE_ISL_CHECK}" = yes ; then
5946 _isl_saved_CFLAGS=$CFLAGS
5947 _isl_saved_LDFLAGS=$LDFLAGS
5948 _isl_saved_LIBS=$LIBS
5949
5950 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5951 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5952 LIBS="${_isl_saved_LIBS} -lisl"
3dae1673
JBG
5953
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 of ISL" >&5
5955$as_echo_n "checking for version 0.11 of ISL... " >&6; }
5956 if test "$cross_compiling" = yes; then :
5957 gcc_cv_isl=yes
5958else
5959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5960/* end confdefs.h. */
5961#include <isl/version.h>
5962 #include <string.h>
5963int
5964main ()
5965{
5966if (strncmp (isl_version (), "isl-0.11", strlen ("isl-0.11")) != 0)
5967 return 1;
5968
5969 ;
5970 return 0;
5971}
5972_ACEOF
5973if ac_fn_c_try_run "$LINENO"; then :
5974 gcc_cv_isl=yes
5975else
5976 gcc_cv_isl=no
5977fi
5978rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5979 conftest.$ac_objext conftest.beam conftest.$ac_ext
81ecdfbb 5980fi
3dae1673
JBG
5981
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
7ec59b9e 5983$as_echo "$gcc_cv_isl" >&6; }
81ecdfbb 5984
7ec59b9e
L
5985 CFLAGS=$_isl_saved_CFLAGS
5986 LDFLAGS=$_isl_saved_LDFLAGS
5987 LIBS=$_isl_saved_LIBS
b123da99 5988 fi
e28c595f 5989
b123da99 5990
b3fc79f8
JBG
5991 if test "${gcc_cv_isl}" = no ; then
5992
5993 if test "${ENABLE_ISL_CHECK}" = yes ; then
5994 _isl_saved_CFLAGS=$CFLAGS
5995 _isl_saved_LDFLAGS=$LDFLAGS
5996 _isl_saved_LIBS=$LIBS
5997
5998 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5999 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
6000 LIBS="${_isl_saved_LIBS} -lisl"
6001
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.12 of ISL" >&5
6003$as_echo_n "checking for version 0.12 of ISL... " >&6; }
6004 if test "$cross_compiling" = yes; then :
6005 gcc_cv_isl=yes
6006else
6007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008/* end confdefs.h. */
6009#include <isl/version.h>
6010 #include <string.h>
6011int
6012main ()
6013{
6014if (strncmp (isl_version (), "isl-0.12", strlen ("isl-0.12")) != 0)
6015 return 1;
6016
6017 ;
6018 return 0;
6019}
6020_ACEOF
6021if ac_fn_c_try_run "$LINENO"; then :
6022 gcc_cv_isl=yes
6023else
6024 gcc_cv_isl=no
6025fi
6026rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6027 conftest.$ac_objext conftest.beam conftest.$ac_ext
6028fi
6029
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6031$as_echo "$gcc_cv_isl" >&6; }
6032
6033 CFLAGS=$_isl_saved_CFLAGS
6034 LDFLAGS=$_isl_saved_LDFLAGS
6035 LIBS=$_isl_saved_LIBS
6036 fi
6037
6038
6039 fi
3dae1673 6040 fi
e28c595f 6041
e28c595f 6042
7ec59b9e
L
6043
6044
7ec59b9e
L
6045 if test "x${with_isl}" = xno; then
6046 graphite_requested=no
6047 elif test "x${with_isl}" != x \
6048 || test "x${with_isl_include}" != x \
6049 || test "x${with_isl_lib}" != x ; then
6050 graphite_requested=yes
6051 else
6052 graphite_requested=no
b123da99 6053 fi
e28c595f 6054
e28c595f
JM
6055
6056
7ec59b9e
L
6057 if test "${gcc_cv_isl}" = no ; then
6058 isllibs=
6059 islinc=
6060 fi
e28c595f 6061
7ec59b9e
L
6062 if test "${graphite_requested}" = yes \
6063 && test "x${isllibs}" = x \
6064 && test "x${islinc}" = x ; then
e28c595f 6065
7ec59b9e
L
6066 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
6067 fi
e552509b 6068
e28c595f
JM
6069
6070
8e71395b
L
6071 if test "x$gcc_cv_isl" != "xno"; then
6072 # Check for CLOOG
81ecdfbb 6073
e28c595f 6074
e552509b 6075# Check whether --with-cloog-include was given.
81ecdfbb
RW
6076if test "${with_cloog_include+set}" = set; then :
6077 withval=$with_cloog_include;
6078fi
e28c595f 6079
e28c595f 6080
e552509b 6081# Check whether --with-cloog-lib was given.
81ecdfbb
RW
6082if test "${with_cloog_lib+set}" = set; then :
6083 withval=$with_cloog_lib;
6084fi
e28c595f 6085
e28c595f 6086
e552509b
ILT
6087 # Check whether --enable-cloog-version-check was given.
6088if test "${enable_cloog_version_check+set}" = set; then :
6089 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
6090else
6091 ENABLE_CLOOG_CHECK=yes
6092fi
6093
6094
6095 # Initialize clooglibs and clooginc.
6096 case $with_cloog in
6097 no)
6098 clooglibs=
6099 clooginc=
6100 ;;
6101 "" | yes)
6102 ;;
6103 *)
6104 clooglibs="-L$with_cloog/lib"
6105 clooginc="-I$with_cloog/include"
6106 ;;
6107 esac
6108 if test "x${with_cloog_include}" != x ; then
6109 clooginc="-I$with_cloog_include"
6110 fi
6111 if test "x${with_cloog_lib}" != x; then
6112 clooglibs="-L$with_cloog_lib"
6113 fi
3dae1673 6114 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
7ec59b9e
L
6115 && test -d ${srcdir}/cloog; then
6116 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
6117 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
3dae1673
JBG
6118 ENABLE_CLOOG_CHECK=no
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree CLooG, disabling version check" >&5
6120$as_echo "$as_me: WARNING: using in-tree CLooG, disabling version check" >&2;}
8d8eef9a
RW
6121 fi
6122
7ec59b9e 6123 clooginc="-DCLOOG_INT_GMP ${clooginc}"
8e71395b 6124 clooglibs="${clooglibs} -lcloog-isl ${isllibs} -lisl"
e28c595f 6125
e552509b
ILT
6126
6127
6128
6129
6130 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6131 _cloog_saved_CFLAGS=$CFLAGS
6132 _cloog_saved_LDFLAGS=$LDFLAGS
6133
7ec59b9e
L
6134 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6135 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
e552509b 6136
7ec59b9e
L
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
6138$as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
3dae1673 6139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e552509b 6140/* end confdefs.h. */
7ec59b9e 6141#include "cloog/version.h"
e552509b
ILT
6142int
6143main ()
6144{
6145#if CLOOG_VERSION_MAJOR != 0 \
7ec59b9e
L
6146 || CLOOG_VERSION_MINOR != 17 \
6147 || CLOOG_VERSION_REVISION < 0
e552509b
ILT
6148 choke me
6149 #endif
6150 ;
6151 return 0;
6152}
6153_ACEOF
6154if ac_fn_c_try_compile "$LINENO"; then :
7ec59b9e 6155 gcc_cv_cloog=yes
e552509b 6156else
7ec59b9e 6157 gcc_cv_cloog=no
e552509b
ILT
6158fi
6159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3dae1673
JBG
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6161$as_echo "$gcc_cv_cloog" >&6; }
6162
6163 CFLAGS=$_cloog_saved_CFLAGS
6164 LDFLAGS=$_cloog_saved_LDFLAGS
6165 fi
6166
6167
6168 if test "${gcc_cv_cloog}" = no ; then
6169
6170
6171
6172 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6173 _cloog_saved_CFLAGS=$CFLAGS
6174 _cloog_saved_LDFLAGS=$LDFLAGS
6175
6176 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6177 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
6178
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.18.0 of CLooG" >&5
6180$as_echo_n "checking for version 0.18.0 of CLooG... " >&6; }
6181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6182/* end confdefs.h. */
6183#include "cloog/version.h"
6184int
6185main ()
6186{
6187#if CLOOG_VERSION_MAJOR != 0 \
6188 || CLOOG_VERSION_MINOR != 18 \
6189 || CLOOG_VERSION_REVISION < 0
6190 choke me
6191 #endif
6192 ;
6193 return 0;
6194}
6195_ACEOF
6196if ac_fn_c_try_compile "$LINENO"; then :
6197 gcc_cv_cloog=yes
6198else
6199 gcc_cv_cloog=no
e552509b 6200fi
3dae1673
JBG
6201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
7ec59b9e 6203$as_echo "$gcc_cv_cloog" >&6; }
e552509b
ILT
6204
6205 CFLAGS=$_cloog_saved_CFLAGS
6206 LDFLAGS=$_cloog_saved_LDFLAGS
6207 fi
6208
6209
3dae1673 6210 fi
e552509b 6211
e28c595f 6212
e28c595f
JM
6213
6214
6215
8d8eef9a
RW
6216 if test "x${with_cloog}" = xno; then
6217 graphite_requested=no
6218 elif test "x${with_cloog}" != x \
e552509b
ILT
6219 || test "x${with_cloog_include}" != x \
6220 || test "x${with_cloog_lib}" != x ; then
6221 graphite_requested=yes
6222 else
6223 graphite_requested=no
6224 fi
6225
6226
6227
7ec59b9e 6228 if test "${gcc_cv_cloog}" = no ; then
e552509b
ILT
6229 clooglibs=
6230 clooginc=
6231 fi
6232
6233 if test "${graphite_requested}" = yes \
6234 && test "x${clooglibs}" = x \
6235 && test "x${clooginc}" = x ; then
6236
8e71395b 6237 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
e552509b
ILT
6238 fi
6239
6240
8e71395b 6241 fi
e552509b
ILT
6242fi
6243
7ec59b9e
L
6244# If either the ISL or the CLooG check failed, disable builds of in-tree
6245# variants of both
8e71395b
L
6246if test "x$with_isl" = xno ||
6247 test "x$with_cloog" = xno ||
6248 test "x$gcc_cv_cloog" = xno ||
6249 test "x$gcc_cv_isl" = xno; then
7ec59b9e 6250 noconfigdirs="$noconfigdirs cloog isl"
8e71395b
L
6251 islinc=
6252 clooginc=
6253 clooglibs=
7ec59b9e
L
6254fi
6255
8e71395b
L
6256
6257
6258
6259
6260
700d40ca
ILT
6261# Check for LTO support.
6262# Check whether --enable-lto was given.
6263if test "${enable_lto+set}" = set; then :
6264 enableval=$enable_lto; enable_lto=$enableval
6265else
6266 enable_lto=yes; default_enable_lto=yes
6267fi
6268
6269
143754cd 6270
e49e5c92
DK
6271
6272
6273target_elf=no
6274case $target in
6275 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
090bc50f 6276 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
a009f2e7 6277 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
e49e5c92
DK
6278 target_elf=no
6279 ;;
6280 *)
6281 target_elf=yes
6282 ;;
6283esac
6284
6285if test $target_elf = yes; then :
74cea91b
DK
6286 # ELF platforms build the lto-plugin always.
6287 build_lto_plugin=yes
e49e5c92 6288
e49e5c92
DK
6289else
6290 if test x"$default_enable_lto" = x"yes" ; then
29821356 6291 case $target in
899b04ef 6292 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
74cea91b 6293 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
6294 *) enable_lto=no ;;
6295 esac
e49e5c92 6296 else
29821356
RW
6297 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6298 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
6299 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6300 # warn during gcc/ subconfigure; unless you're bootstrapping with
6301 # -flto it won't be needed until after installation anyway.
6302 case $target in
a8eb3f0a 6303 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
e49e5c92
DK
6304 *) if test x"$enable_lto" = x"yes"; then
6305 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6306 fi
6307 ;;
6308 esac
6309 fi
a8eb3f0a 6310 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 6311 # Build it unless LTO was explicitly disabled.
a8eb3f0a 6312 case $target in
74cea91b 6313 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
6314 *) ;;
6315 esac
74cea91b 6316
e49e5c92
DK
6317fi
6318
700d40ca 6319
e28c595f 6320
7ec59b9e 6321# By default, C and C++ are the only stage 1 languages.
9b134994 6322stage1_languages=,c,
1d39f329 6323
e8a5fa9c 6324# Target libraries that we bootstrap.
2aa2364a 6325bootstrap_target_libs=,target-libgcc,
e8a5fa9c 6326
9e07f89d
NN
6327# Figure out what language subdirectories are present.
6328# Look if the user specified --enable-languages="..."; if not, use
6329# the environment variable $LANGUAGES if defined. $LANGUAGES might
6330# go away some day.
6331# NB: embedded tabs in this IF block -- do not untabify
6332if test -d ${srcdir}/gcc; then
6333 if test x"${enable_languages+set}" != xset; then
6334 if test x"${LANGUAGES+set}" = xset; then
6335 enable_languages="${LANGUAGES}"
6336 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6337 else
6338 enable_languages=all
6339 fi
6340 else
6341 if test x"${enable_languages}" = x ||
6342 test x"${enable_languages}" = xyes;
6343 then
6344 echo configure.in: --enable-languages needs at least one language argument 1>&2
6345 exit 1
6346 fi
6347 fi
6348 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6349
096f7d00
DE
6350 # 'f95' is the old name for the 'fortran' language. We issue a warning
6351 # and make the substitution.
6352 case ,${enable_languages}, in
6353 *,f95,*)
6354 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6355 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6356 ;;
6357 esac
6358
7ec59b9e
L
6359 # If bootstrapping, C++ must be enabled.
6360 case ",$enable_languages,:$enable_bootstrap" in
6361 *,c++,*:*) ;;
6362 *:yes)
ffdd6afc
ILT
6363 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6364 enable_languages="${enable_languages},c++"
6365 else
7ec59b9e 6366 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
ffdd6afc
ILT
6367 fi
6368 ;;
6369 esac
6370
9e07f89d
NN
6371 # First scan to see if an enabled language requires some other language.
6372 # We assume that a given config-lang.in will list all the language
6373 # front ends it requires, even if some are required indirectly.
6374 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6375 case ${lang_frag} in
6376 ..) ;;
6377 # The odd quoting in the next line works around
6378 # an apparent bug in bash 1.12 on linux.
6379 ${srcdir}/gcc/[*]/config-lang.in) ;;
6380 *)
e552509b
ILT
6381 # From the config-lang.in, get $language, $lang_requires, and
6382 # $lang_requires_boot_languages.
9e07f89d
NN
6383 language=
6384 lang_requires=
e552509b 6385 lang_requires_boot_languages=
9e07f89d 6386 . ${lang_frag}
e552509b 6387 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6388 case ,${enable_languages}, in
6389 *,$other,*) ;;
6390 *,all,*) ;;
6391 *,$language,*)
6392 echo " \`$other' language required by \`$language'; enabling" 1>&2
6393 enable_languages="${enable_languages},${other}"
6394 ;;
6395 esac
6396 done
e552509b
ILT
6397 for other in ${lang_requires_boot_languages} ; do
6398 if test "$other" != "c"; then
6399 case ,${enable_stage1_languages}, in
6400 *,$other,*) ;;
6401 *,all,*) ;;
6402 *)
6403 case ,${enable_languages}, in
6404 *,$language,*)
6405 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6406 enable_stage1_languages="$enable_stage1_languages,${other}"
6407 ;;
6408 esac
6409 ;;
6410 esac
6411 fi
6412 done
9e07f89d
NN
6413 ;;
6414 esac
6415 done
6416
9b134994 6417 new_enable_languages=,c,
700d40ca
ILT
6418
6419 # If LTO is enabled, add the LTO front end.
6420 extra_host_libiberty_configure_flags=
6421 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6422 case ,${enable_languages}, in
6423 *,lto,*) ;;
6424 *) enable_languages="${enable_languages},lto" ;;
6425 esac
a8eb3f0a 6426 if test "${build_lto_plugin}" = "yes" ; then
700d40ca
ILT
6427 configdirs="$configdirs lto-plugin"
6428 extra_host_libiberty_configure_flags=--enable-shared
6429 fi
6430 fi
6431
6432
9e07f89d 6433 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6434 potential_languages=,c,
9e07f89d 6435
9e1a94f4
ILT
6436 enabled_target_libs=
6437 disabled_target_libs=
6438
9e07f89d
NN
6439 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6440 case ${lang_frag} in
6441 ..) ;;
6442 # The odd quoting in the next line works around
6443 # an apparent bug in bash 1.12 on linux.
6444 ${srcdir}/gcc/[*]/config-lang.in) ;;
6445 *)
c6b750e1 6446 # From the config-lang.in, get $language, $target_libs,
1d39f329 6447 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6448 language=
6449 target_libs=
6450 lang_dirs=
64ce424c 6451 subdir_requires=
9b134994
PB
6452 boot_language=no
6453 build_by_default=yes
9e07f89d 6454 . ${lang_frag}
9b134994
PB
6455 if test x${language} = x; then
6456 echo "${lang_frag} doesn't set \$language." 1>&2
6457 exit 1
6458 fi
6459
ffdd6afc 6460 if test "$language" = "c++"; then
7ec59b9e 6461 boot_language=yes
e8a5fa9c
RW
6462 fi
6463
8e71395b 6464 add_this_lang=no
9b134994
PB
6465 case ,${enable_languages}, in
6466 *,${language},*)
7ec59b9e
L
6467 # Language was explicitly selected; include it
6468 # unless it is C, which is enabled by default.
6469 if test "$language" != "c"; then
6470 add_this_lang=yes
6471 fi
9e07f89d 6472 ;;
9b134994
PB
6473 *,all,*)
6474 # 'all' was selected, select it if it is a default language
8e71395b
L
6475 if test "$language" != "c"; then
6476 add_this_lang=${build_by_default}
6477 fi
9e07f89d
NN
6478 ;;
6479 esac
4b1cb4fe 6480
64ce424c 6481 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6482 for i in $subdir_requires; do
3d3adb43 6483 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
6484 case ,${enable_languages}, in
6485 *,${language},*)
6486 # Specifically requested language; tell them.
81ecdfbb 6487 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c
PB
6488 ;;
6489 *)
6490 # Silently disable.
9b134994 6491 add_this_lang=unsupported
64ce424c
PB
6492 ;;
6493 esac
6494 done
6495
9b134994
PB
6496 # Disable Ada if no preexisting GNAT is available.
6497 case ,${enable_languages},:${language}:${have_gnat} in
6498 *,${language},*:ada:no)
6499 # Specifically requested language; tell them.
81ecdfbb 6500 as_fn_error "GNAT is required to build $language" "$LINENO" 5
9b134994
PB
6501 ;;
6502 *:ada:no)
6503 # Silently disable.
6504 add_this_lang=unsupported
6505 ;;
6506 esac
6507
59f7ec45
HPN
6508 # Disable a language that is unsupported by the target.
6509 case " $unsupported_languages " in
6510 *" $language "*)
9b134994 6511 add_this_lang=unsupported
59f7ec45
HPN
6512 ;;
6513 esac
6514
4b1cb4fe 6515 case $add_this_lang in
9b134994 6516 unsupported)
9e07f89d 6517 # Remove language-dependent dirs.
9e1a94f4
ILT
6518 disabled_target_libs="$disabled_target_libs $target_libs"
6519 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 6520 ;;
9b134994
PB
6521 no)
6522 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
6523 disabled_target_libs="$disabled_target_libs $target_libs"
6524 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
6525 potential_languages="${potential_languages}${language},"
6526 ;;
6527 yes)
6528 new_enable_languages="${new_enable_languages}${language},"
6529 potential_languages="${potential_languages}${language},"
1d39f329 6530 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 6531 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
6532 case "${boot_language}:,$enable_stage1_languages," in
6533 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6534 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6535 case ",$stage1_languages," in
6536 *,$language,* | ,yes, | ,all,) ;;
6537 *) stage1_languages="${stage1_languages}${language}," ;;
6538 esac
e8a5fa9c
RW
6539 # We need to bootstrap any supporting libraries.
6540 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6541 ;;
6542 esac
6543 ;;
9e07f89d
NN
6544 esac
6545 ;;
6546 esac
6547 done
6548
9e1a94f4
ILT
6549 # Add target libraries which are only needed for disabled languages
6550 # to noconfigdirs.
6551 if test -n "$disabled_target_libs"; then
6552 for dir in $disabled_target_libs; do
6553 case " $enabled_target_libs " in
6554 *" ${dir} "*) ;;
6555 *) noconfigdirs="$noconfigdirs $dir" ;;
6556 esac
6557 done
6558 fi
6559
81ecdfbb
RW
6560 # Check whether --enable-stage1-languages was given.
6561if test "${enable_stage1_languages+set}" = set; then :
6562 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6563 ,no,|,,)
6564 # Set it to something that will have no effect in the loop below
6565 enable_stage1_languages=c ;;
6566 ,yes,)
6567 enable_stage1_languages=`echo $new_enable_languages | \
6568 sed -e "s/^,//" -e "s/,$//" ` ;;
6569 *,all,*)
6570 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6571 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6572 esac
6573
6574 # Add "good" languages from enable_stage1_languages to stage1_languages,
6575 # while "bad" languages go in missing_languages. Leave no duplicates.
6576 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6577 case $potential_languages in
6578 *,$i,*)
6579 case $stage1_languages in
6580 *,$i,*) ;;
6581 *) stage1_languages="$stage1_languages$i," ;;
6582 esac ;;
6583 *)
6584 case $missing_languages in
6585 *,$i,*) ;;
6586 *) missing_languages="$missing_languages$i," ;;
6587 esac ;;
6588 esac
6589 done
81ecdfbb
RW
6590fi
6591
9b134994
PB
6592
6593 # Remove leading/trailing commas that were added for simplicity
6594 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6595 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6596 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6597 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6598
9e07f89d 6599 if test "x$missing_languages" != x; then
81ecdfbb 6600 as_fn_error "
27258dd4 6601The following requested languages could not be built: ${missing_languages}
81ecdfbb 6602Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6603 fi
9e07f89d
NN
6604 if test "x$new_enable_languages" != "x$enable_languages"; then
6605 echo The following languages will be built: ${new_enable_languages}
9b134994 6606 enable_languages="$new_enable_languages"
9e07f89d 6607 fi
9b134994 6608
c6b750e1 6609
81ec575a 6610 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6611fi
6612
a6df5a19
PB
6613# Handle --disable-<component> generically.
6614for dir in $configdirs $build_configdirs $target_configdirs ; do
6615 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6616 varname=`echo $dirname | sed -e s/+/_/g`
6617 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6618 noconfigdirs="$noconfigdirs $dir"
6619 fi
6620done
6621
4f0ef2d8 6622# Check for Boehm's garbage collector
81ecdfbb
RW
6623# Check whether --enable-objc-gc was given.
6624if test "${enable_objc_gc+set}" = set; then :
6625 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4f0ef2d8 6626 *,objc,*:*:yes:*target-boehm-gc*)
81ecdfbb 6627 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
4f0ef2d8
CD
6628 ;;
6629esac
81ecdfbb
RW
6630fi
6631
4f0ef2d8
CD
6632
6633# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
6634case ,${enable_languages},:${enable_objc_gc} in
6635 *,objc,*:yes)
4f0ef2d8
CD
6636 # Keep target-boehm-gc if requested for Objective-C.
6637 ;;
4f0ef2d8 6638 *)
d42c4017
DA
6639 # Otherwise remove target-boehm-gc depending on target-libjava.
6640 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6641 noconfigdirs="$noconfigdirs target-boehm-gc"
6642 fi
4f0ef2d8
CD
6643 ;;
6644esac
6645
95e43135 6646# Disable libitm, libsanitizer, libvtv if we're not building C++
7ec59b9e
L
6647case ,${enable_languages}, in
6648 *,c++,*) ;;
6649 *)
9aaf2a7e 6650 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer target-libvtv"
7ec59b9e
L
6651 ;;
6652esac
6653
caeba88f
AL
6654# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6655# $build_configdirs and $target_configdirs.
9e07f89d
NN
6656# If we have the source for $noconfigdirs entries, add them to $notsupp.
6657
6658notsupp=""
6659for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6660 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6661 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6662 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6663 if test -r $srcdir/$dirname/configure ; then
6664 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6665 true
6666 else
6667 notsupp="$notsupp $dir"
6668 fi
6669 fi
6670 fi
caeba88f
AL
6671 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6672 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6673 if test -r $srcdir/$dirname/configure ; then
6674 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6675 true
6676 else
6677 notsupp="$notsupp $dir"
6678 fi
6679 fi
6680 fi
9e07f89d
NN
6681 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6682 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6683 if test -r $srcdir/$dirname/configure ; then
6684 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6685 true
6686 else
6687 notsupp="$notsupp $dir"
6688 fi
6689 fi
6690 fi
6691done
6692
9e07f89d
NN
6693# Quietly strip out all directories which aren't configurable in this tree.
6694# This relies on all configurable subdirectories being autoconfiscated, which
6695# is now the case.
6a9cf61e
PB
6696build_configdirs_all="$build_configdirs"
6697build_configdirs=
6698for i in ${build_configdirs_all} ; do
c6b750e1 6699 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6700 if test -f ${srcdir}/$j/configure ; then
6701 build_configdirs="${build_configdirs} $i"
6702 fi
6703done
6704
9e07f89d
NN
6705configdirs_all="$configdirs"
6706configdirs=
6707for i in ${configdirs_all} ; do
6708 if test -f ${srcdir}/$i/configure ; then
6709 configdirs="${configdirs} $i"
6710 fi
6711done
6a9cf61e 6712
9e07f89d
NN
6713target_configdirs_all="$target_configdirs"
6714target_configdirs=
6715for i in ${target_configdirs_all} ; do
c6b750e1 6716 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6717 if test -f ${srcdir}/$j/configure ; then
6718 target_configdirs="${target_configdirs} $i"
6719 fi
6720done
6721
6722# Produce a warning message for the subdirs we can't configure.
6723# This isn't especially interesting in the Cygnus tree, but in the individual
6724# FSF releases, it's important to let people know when their machine isn't
6725# supported by the one or two programs in a package.
6726
6727if test -n "${notsupp}" && test -z "${norecursion}" ; then
6728 # If $appdirs is non-empty, at least one of those directories must still
6729 # be configured, or we error out. (E.g., if the gas release supports a
6730 # specified target in some subdirs but not the gas subdir, we shouldn't
6731 # pretend that all is well.)
6732 if test -n "$appdirs" ; then
6733 for dir in $appdirs ; do
6734 if test -r $dir/Makefile.in ; then
6735 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6736 appdirs=""
6737 break
6738 fi
6a9cf61e 6739 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6740 appdirs=""
6741 break
6742 fi
6743 fi
6744 done
6745 if test -n "$appdirs" ; then
6746 echo "*** This configuration is not supported by this package." 1>&2
6747 exit 1
6748 fi
6749 fi
6750 # Okay, some application will build, or we don't care to check. Still
6751 # notify of subdirs not getting built.
6752 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6753 echo " ${notsupp}" 1>&2
6754 echo " (Any other directories should still work fine.)" 1>&2
6755fi
6756
6757case "$host" in
6758 *msdosdjgpp*)
6759 enable_gdbtk=no ;;
6760esac
6761
18f6b6ee
PB
6762# To find our prefix, in gcc_cv_tool_prefix.
6763
6764# The user is always right.
6765if test "${PATH_SEPARATOR+set}" != set; then
6766 echo "#! /bin/sh" >conf$$.sh
6767 echo "exit 0" >>conf$$.sh
6768 chmod +x conf$$.sh
6769 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6770 PATH_SEPARATOR=';'
6771 else
6772 PATH_SEPARATOR=:
6773 fi
6774 rm -f conf$$.sh
6775fi
6776
6777
6778
6779if test "x$exec_prefix" = xNONE; then
6780 if test "x$prefix" = xNONE; then
6781 gcc_cv_tool_prefix=$ac_default_prefix
6782 else
6783 gcc_cv_tool_prefix=$prefix
6784 fi
6785else
6786 gcc_cv_tool_prefix=$exec_prefix
6787fi
6788
6789# If there is no compiler in the tree, use the PATH only. In any
6790# case, if there is no compiler in the tree nobody should use
6791# AS_FOR_TARGET and LD_FOR_TARGET.
6792if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6793 gcc_version=`cat $srcdir/gcc/BASE-VER`
6794 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6795 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6796 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6797 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6798 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6799 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6800else
6801 gcc_cv_tool_dirs=
6802fi
6803
6804if test x$build = x$target && test -n "$md_exec_prefix"; then
6805 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6806fi
6807
6808
6809
9e07f89d
NN
6810copy_dirs=
6811
c6b750e1 6812
81ecdfbb
RW
6813# Check whether --with-build-sysroot was given.
6814if test "${with_build_sysroot+set}" = set; then :
6815 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
6816 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6817 fi
6818else
6819 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 6820fi
a19b6204
MM
6821
6822
8a6ee3ab 6823
81ecdfbb
RW
6824
6825# Check whether --with-debug-prefix-map was given.
6826if test "${with_debug_prefix_map+set}" = set; then :
6827 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6828 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6829 for debug_map in $withval; do
6830 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6831 done
6832 fi
6833else
6834 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6835fi
6836
8a6ee3ab
JM
6837
6838
7f6ef0c0
PB
6839# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6840# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6841# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6842# We want to ensure that TARGET libraries (which we know are built with
6843# gcc) are built with "-O2 -g", so include those options when setting
6844# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6845if test "x$CFLAGS_FOR_TARGET" = x; then
6846 CFLAGS_FOR_TARGET=$CFLAGS
6847 case " $CFLAGS " in
6848 *" -O2 "*) ;;
68f107fa 6849 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
7f6ef0c0
PB
6850 esac
6851 case " $CFLAGS " in
6852 *" -g "* | *" -g3 "*) ;;
68f107fa 6853 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
7f6ef0c0
PB
6854 esac
6855fi
6856
6857
6858if test "x$CXXFLAGS_FOR_TARGET" = x; then
6859 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6860 case " $CXXFLAGS " in
6861 *" -O2 "*) ;;
68f107fa 6862 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
7f6ef0c0
PB
6863 esac
6864 case " $CXXFLAGS " in
6865 *" -g "* | *" -g3 "*) ;;
68f107fa 6866 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
7f6ef0c0
PB
6867 esac
6868fi
6869
6870
91c1f14c
DK
6871
6872
9e07f89d
NN
6873# Handle --with-headers=XXX. If the value is not "yes", the contents of
6874# the named directory are copied to $(tooldir)/sys-include.
6875if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6876 if test x${is_cross_compiler} = xno ; then
6877 echo 1>&2 '***' --with-headers is only supported when cross compiling
6878 exit 1
6879 fi
6880 if test x"${with_headers}" != xyes ; then
18f6b6ee 6881 x=${gcc_cv_tool_prefix}
c6b750e1 6882 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6883 fi
6884fi
6885
6886# Handle --with-libs=XXX. If the value is not "yes", the contents of
6887# the name directories are copied to $(tooldir)/lib. Multiple directories
6888# are permitted.
6889if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6890 if test x${is_cross_compiler} = xno ; then
6891 echo 1>&2 '***' --with-libs is only supported when cross compiling
6892 exit 1
6893 fi
6894 if test x"${with_libs}" != xyes ; then
6895 # Copy the libraries in reverse order, so that files in the first named
6896 # library override files in subsequent libraries.
18f6b6ee 6897 x=${gcc_cv_tool_prefix}
9e07f89d 6898 for l in ${with_libs}; do
c6b750e1 6899 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6900 done
6901 fi
6902fi
6903
700d40ca 6904# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
6905#
6906# This is done by determining whether or not the appropriate directory
6907# is available, and by checking whether or not specific configurations
6908# have requested that this magic not happen.
c6b750e1
DJ
6909#
6910# The command line options always override the explicit settings in
2429c060
PB
6911# configure.in, and the settings in configure.in override this magic.
6912#
c6b750e1 6913# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 6914# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
6915# --without-gnu-ld options for the configure script. Similarly, if
6916# the default is to use the included zlib and you don't want to do that,
6917# you should use the --with-system-zlib option for the configure script.
2429c060
PB
6918
6919if test x${use_gnu_as} = x &&
6920 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6921 with_gnu_as=yes
6922 extra_host_args="$extra_host_args --with-gnu-as"
6923fi
6924
6925if test x${use_gnu_ld} = x &&
93f9b408 6926 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
6927 with_gnu_ld=yes
6928 extra_host_args="$extra_host_args --with-gnu-ld"
6929fi
6930
700d40ca
ILT
6931if test x${use_included_zlib} = x &&
6932 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6933 :
6934else
6935 with_system_zlib=yes
6936 extra_host_args="$extra_host_args --with-system-zlib"
6937fi
6938
2429c060
PB
6939# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6940# can detect this case.
6941
6942if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6943 with_newlib=yes
6944 extra_host_args="$extra_host_args --with-newlib"
6945fi
6946
9e07f89d
NN
6947# Handle ${copy_dirs}
6948set fnord ${copy_dirs}
6949shift
6950while test $# != 0 ; do
6951 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6952 :
6953 else
6954 echo Copying $1 to $2
6955
6956 # Use the install script to create the directory and all required
6957 # parent directories.
6958 if test -d $2 ; then
6959 :
6960 else
6961 echo >config.temp
6962 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6963 fi
6964
6965 # Copy the directory, assuming we have tar.
6966 # FIXME: Should we use B in the second tar? Not all systems support it.
6967 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6968
6969 # It is the responsibility of the user to correctly adjust all
6970 # symlinks. If somebody can figure out how to handle them correctly
6971 # here, feel free to add the code.
6972
6973 echo $1 > $2/COPIED
6974 fi
6975 shift; shift
6976done
6977
2429c060
PB
6978# Determine a target-dependent exec_prefix that the installed
6979# gcc will search in. Keep this list sorted by triplet, with
6980# the *-*-osname triplets last.
6981md_exec_prefix=
6982case "${target}" in
521ec477 6983 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6984 md_exec_prefix=/dev/env/DJDIR/bin
6985 ;;
2429c060 6986 *-*-hpux* | \
2429c060 6987 *-*-nto-qnx* | \
1f111696 6988 *-*-solaris2*)
2429c060
PB
6989 md_exec_prefix=/usr/ccs/bin
6990 ;;
6991esac
6992
a0da8069
NN
6993extra_arflags_for_target=
6994extra_nmflags_for_target=
6995extra_ranlibflags_for_target=
6996target_makefile_frag=/dev/null
6997case "${target}" in
77d7106f
AM
6998 spu-*-*)
6999 target_makefile_frag="config/mt-spu"
7000 ;;
a9d58c06 7001 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
429acdec
RS
7002 target_makefile_frag="config/mt-sde"
7003 ;;
f3b1e08e
RS
7004 mipsisa*-*-elfoabi*)
7005 target_makefile_frag="config/mt-mips-elfoabi"
7006 ;;
e7c8859c
RS
7007 mips*-*-*linux* | mips*-*-gnu*)
7008 target_makefile_frag="config/mt-mips-gnu"
7009 ;;
d9e042ac
SL
7010 nios2-*-elf*)
7011 target_makefile_frag="config/mt-nios2-elf"
7012 ;;
29383458 7013 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 7014 target_makefile_frag="config/mt-gnu"
a0da8069
NN
7015 ;;
7016 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 7017 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
7018 # commands to handle both 32-bit and 64-bit objects. These flags are
7019 # harmless if we're using GNU nm or ar.
7020 extra_arflags_for_target=" -X32_64"
7021 extra_nmflags_for_target=" -B -X32_64"
7022 ;;
a0da8069
NN
7023esac
7024
7025alphaieee_frag=/dev/null
7026case $target in
7027 alpha*-*-*)
7028 # This just makes sure to use the -mieee option to build target libs.
7029 # This should probably be set individually by each library.
7030 alphaieee_frag="config/mt-alphaieee"
7031 ;;
7032esac
7033
7034# If --enable-target-optspace always use -Os instead of -O2 to build
7035# the target libraries, similarly if it is not specified, use -Os
7036# on selected platforms.
7037ospace_frag=/dev/null
7038case "${enable_target_optspace}:${target}" in
7039 yes:*)
7040 ospace_frag="config/mt-ospace"
7041 ;;
7042 :d30v-*)
7043 ospace_frag="config/mt-d30v"
7044 ;;
7045 :m32r-* | :d10v-* | :fr30-*)
7046 ospace_frag="config/mt-ospace"
7047 ;;
7048 no:* | :*)
7049 ;;
7050 *)
7051 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7052 ;;
7053esac
7054
a0da8069
NN
7055# Some systems (e.g., one of the i386-aix systems the gas testers are
7056# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 7057tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
7058build_tooldir=${tooldir}
7059
a0da8069
NN
7060# Create a .gdbinit file which runs the one in srcdir
7061# and tells GDB to look there for source files.
7062
7063if test -r ${srcdir}/.gdbinit ; then
7064 case ${srcdir} in
7065 .) ;;
7066 *) cat > ./.gdbinit <<EOF
7067# ${NO_EDIT}
7068dir ${srcdir}
7069dir .
7070source ${srcdir}/.gdbinit
7071EOF
7072 ;;
7073 esac
7074fi
7075
a0da8069
NN
7076# Make sure that the compiler is able to generate an executable. If it
7077# can't, we are probably in trouble. We don't care whether we can run the
7078# executable--we might be using a cross compiler--we only care whether it
7079# can be created. At this point the main configure script has set CC.
7080we_are_ok=no
7081echo "int main () { return 0; }" > conftest.c
7082${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7083if test $? = 0 ; then
7084 if test -s conftest || test -s conftest.exe ; then
7085 we_are_ok=yes
7086 fi
c6b750e1 7087fi
a0da8069
NN
7088case $we_are_ok in
7089 no)
7090 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7091 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7092 rm -f conftest*
7093 exit 1
7094 ;;
7095esac
7096rm -f conftest*
7097
3bbd2f8f 7098# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
7099case "${host}" in
7100 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3516a403 7101 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 7102 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
7103 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7104esac
7105
3bbd2f8f 7106# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
7107# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7108# built executables to PATH.
3bbd2f8f
AL
7109if test "$RPATH_ENVVAR" = PATH; then
7110 GCC_SHLIB_SUBDIR=/shlib
7111else
7112 GCC_SHLIB_SUBDIR=
7113fi
7114
730af8ee 7115# Adjust the toplevel makefile according to whether bootstrap was selected.
7116case $enable_bootstrap in
7117 yes)
7118 bootstrap_suffix=bootstrap
7119 BUILD_CONFIG=bootstrap-debug
7120 ;;
7121 no)
7122 bootstrap_suffix=no-bootstrap
7123 BUILD_CONFIG=
7124 ;;
7125esac
7126
7127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7128$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7129
7130
7131# Check whether --with-build-config was given.
7132if test "${with_build_config+set}" = set; then :
7133 withval=$with_build_config; case $with_build_config in
7134 yes) with_build_config= ;;
7135 no) with_build_config= BUILD_CONFIG= ;;
7136 esac
7137fi
7138
7139
7140if test "x${with_build_config}" != x; then
7141 BUILD_CONFIG=$with_build_config
7142else
7143 case $BUILD_CONFIG in
7144 bootstrap-debug)
7145 if echo "int f (void) { return 0; }" > conftest.c &&
7146 ${CC} -c conftest.c &&
7147 mv conftest.o conftest.o.g0 &&
7148 ${CC} -c -g conftest.c &&
7149 mv conftest.o conftest.o.g &&
7150 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7151 :
7152 else
7153 BUILD_CONFIG=
7154 fi
7155 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7156 ;;
7157 esac
7158fi
7159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7160$as_echo "$BUILD_CONFIG" >&6; }
7161
7162
7163# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7165$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7166# Check whether --enable-vtable-verify was given.
7167if test "${enable_vtable_verify+set}" = set; then :
7168 enableval=$enable_vtable_verify; case "$enableval" in
7169 yes) enable_vtable_verify=yes ;;
7170 no) enable_vtable_verify=no ;;
7171 *) enable_vtable_verify=no;;
7172 esac
7173else
7174 enable_vtable_verify=no
7175fi
7176
7177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7178$as_echo "$enable_vtable_verify" >&6; }
7179
a0da8069
NN
7180# Record target_configdirs and the configure arguments for target and
7181# build configuration in Makefile.
7182target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 7183build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
201f096f 7184bootstrap_fixincludes=no
a0da8069 7185
2aa2364a
JR
7186# If we are building libgomp, bootstrap it.
7187if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7188 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7189fi
7190
730af8ee 7191# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7192# or bootstrap-ubsan, bootstrap it.
7193if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7194 case "$BUILD_CONFIG" in
7195 *bootstrap-asan* | *bootstrap-ubsan* )
7196 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
201f096f 7197 bootstrap_fixincludes=yes
730af8ee 7198 ;;
7199 esac
5eb08693
L
7200fi
7201
730af8ee 7202# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7203if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7204 test "$enable_vtable_verify" != no; then
95e43135
JBG
7205 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7206fi
7207
a0da8069
NN
7208# Determine whether gdb needs tk/tcl or not.
7209# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7210# and in that case we want gdb to be built without tk. Ugh!
7211# In fact I believe gdb is the *only* package directly dependent on tk,
7212# so we should be able to put the 'maybe's in unconditionally and
7213# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7214# 100% sure that that's safe though.
c180f501 7215
675c6968 7216gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
7217case "$enable_gdbtk" in
7218 no)
7219 GDB_TK="" ;;
c180f501
AC
7220 yes)
7221 GDB_TK="${gdb_tk}" ;;
a0da8069 7222 *)
c180f501
AC
7223 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7224 # distro. Eventually someone will fix this and move Insight, nee
7225 # gdbtk to a separate directory.
7226 if test -d ${srcdir}/gdb/gdbtk ; then
7227 GDB_TK="${gdb_tk}"
7228 else
7229 GDB_TK=""
7230 fi
7231 ;;
a0da8069 7232esac
907be67c
DJ
7233CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7234INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 7235
6bd3dfaa 7236# Strip out unwanted targets.
dd12c3a8
NN
7237
7238# While at that, we remove Makefiles if we were started for recursive
7239# configuration, so that the top-level Makefile reconfigures them,
7240# like we used to do when configure itself was recursive.
dd12c3a8 7241
06a51eac
RW
7242# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7243# but now we're fixing up the Makefile ourselves with the additional
7244# commands passed to AC_CONFIG_FILES. Use separate variables
7245# extrasub-{build,host,target} not because there is any reason to split
7246# the substitutions up that way, but only to remain below the limit of
7247# 99 commands in a script, for HP-UX sed.
7248# Do not nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 7249
16b1ad29
RW
7250case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7251 yes:yes:*\ gold\ *:*,c++,*) ;;
7252 yes:yes:*\ gold\ *:*)
7253 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7254 ;;
7255esac
7256
06a51eac 7257extrasub_build=
6a9cf61e 7258for module in ${build_configdirs} ; do
498d4a71
CF
7259 if test -z "${no_recursion}" \
7260 && test -f ${build_subdir}/${module}/Makefile; then
7261 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7262 rm -f ${build_subdir}/${module}/Makefile
7263 fi
06a51eac 7264 extrasub_build="$extrasub_build
498d4a71
CF
7265/^@if build-$module\$/d
7266/^@endif build-$module\$/d
7267/^@if build-$module-$bootstrap_suffix\$/d
7268/^@endif build-$module-$bootstrap_suffix\$/d"
7269done
06a51eac 7270extrasub_host=
498d4a71 7271for module in ${configdirs} ; do
80911fe1 7272 if test -z "${no_recursion}"; then
8cf39b1b 7273 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
7274 if test -f ${file}; then
7275 echo 1>&2 "*** removing ${file} to force reconfigure"
7276 rm -f ${file}
7277 fi
7278 done
498d4a71 7279 fi
201f096f 7280 case ${module},${bootstrap_fixincludes} in
7281 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7282 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7283 esac
06a51eac 7284 extrasub_host="$extrasub_host
498d4a71
CF
7285/^@if $module\$/d
7286/^@endif $module\$/d
201f096f 7287/^@if $module-$host_bootstrap_suffix\$/d
7288/^@endif $module-$host_bootstrap_suffix\$/d"
498d4a71 7289done
06a51eac 7290extrasub_target=
498d4a71
CF
7291for module in ${target_configdirs} ; do
7292 if test -z "${no_recursion}" \
7293 && test -f ${target_subdir}/${module}/Makefile; then
7294 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7295 rm -f ${target_subdir}/${module}/Makefile
7296 fi
e8a5fa9c
RW
7297
7298 # We only bootstrap target libraries listed in bootstrap_target_libs.
7299 case $bootstrap_target_libs in
7300 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7301 *) target_bootstrap_suffix=no-bootstrap ;;
7302 esac
7303
06a51eac 7304 extrasub_target="$extrasub_target
498d4a71
CF
7305/^@if target-$module\$/d
7306/^@endif target-$module\$/d
e8a5fa9c
RW
7307/^@if target-$module-$target_bootstrap_suffix\$/d
7308/^@endif target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
7309done
7310
06a51eac
RW
7311# Do the final fixup along with target modules.
7312extrasub_target="$extrasub_target
6bd3dfaa 7313/^@if /,/^@endif /d"
a0da8069
NN
7314
7315# Create the serialization dependencies. This uses a temporary file.
7316
81ecdfbb
RW
7317# Check whether --enable-serial-configure was given.
7318if test "${enable_serial_configure+set}" = set; then :
7319 enableval=$enable_serial_configure;
7320fi
e6bfb94a
AO
7321
7322
1047cb91
DD
7323case ${enable_serial_configure} in
7324 yes)
7325 enable_serial_build_configure=yes
7326 enable_serial_host_configure=yes
7327 enable_serial_target_configure=yes
7328 ;;
7329esac
7330
a0da8069
NN
7331# These force 'configure's to be done one at a time, to avoid problems
7332# with contention over a shared config.cache.
7333rm -f serdep.tmp
e6bfb94a 7334echo '# serdep.tmp' > serdep.tmp
a0da8069 7335olditem=
1047cb91 7336test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
7337for item in ${build_configdirs} ; do
7338 case ${olditem} in
7339 "") ;;
e6bfb94a 7340 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7341 esac
7342 olditem=${item}
7343done
7344olditem=
1047cb91 7345test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
7346for item in ${configdirs} ; do
7347 case ${olditem} in
7348 "") ;;
e6bfb94a 7349 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7350 esac
7351 olditem=${item}
7352done
7353olditem=
1047cb91 7354test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
7355for item in ${target_configdirs} ; do
7356 case ${olditem} in
7357 "") ;;
e6bfb94a 7358 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7359 esac
7360 olditem=${item}
7361done
7362serialization_dependencies=serdep.tmp
7363
7364
e6bfb94a 7365# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 7366# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
7367# might not want to pass down to subconfigures. The exception being
7368# --cache-file=/dev/null, which is used to turn off the use of cache
7369# files altogether, and which should be passed on to subconfigures.
7370# Also strip program-prefix, program-suffix, and program-transform-name,
7371# so that we can pass down a consistent program-transform-name.
c6b750e1 7372baseargs=
65b4571a 7373tbaseargs=
c6b750e1
DJ
7374keep_next=no
7375skip_next=no
7376eval "set -- $ac_configure_args"
18f6b6ee
PB
7377for ac_arg
7378do
c6b750e1
DJ
7379 if test X"$skip_next" = X"yes"; then
7380 skip_next=no
7381 continue
7382 fi
7383 if test X"$keep_next" = X"yes"; then
7384 case $ac_arg in
7385 *\'*)
7386 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7387 esac
7388 baseargs="$baseargs '$ac_arg'"
65b4571a 7389 tbaseargs="$tbaseargs '$ac_arg'"
c6b750e1
DJ
7390 keep_next=no
7391 continue
7392 fi
7393
7394 # Handle separated arguments. Based on the logic generated by
7395 # autoconf 2.59.
7396 case $ac_arg in
7397 *=* | --config-cache | -C | -disable-* | --disable-* \
7398 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7399 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7400 | -with-* | --with-* | -without-* | --without-* | --x)
7401 separate_arg=no
7402 ;;
7403 -*)
7404 separate_arg=yes
7405 ;;
7406 *)
7407 separate_arg=no
7408 ;;
7409 esac
7410
65b4571a
AO
7411 skip_targ=no
7412 case $ac_arg in
7413
7414 --with-* | --without-*)
7415 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7416
7417 case $libopt in
7418 *[-_]include)
7419 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7420 ;;
7421 *[-_]lib)
7422 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7423 ;;
7424 *)
7425 lib=$libopt
7426 ;;
7427 esac
7428
7429
7430 case $lib in
7ec59b9e 7431 mpc | mpfr | gmp | cloog)
65b4571a
AO
7432 # If we're processing --with-$lib, --with-$lib-include or
7433 # --with-$lib-lib, for one of the libs above, and target is
7434 # different from host, don't pass the current argument to any
7435 # target library's configure.
7436 if test x$is_cross_compiler = xyes; then
7437 skip_targ=yes
7438 fi
7439 ;;
7440 esac
7441 ;;
7442 esac
7443
c6b750e1 7444 case "$ac_arg" in
30167e0a
NC
7445 --cache-file=/dev/null | \
7446 -cache-file=/dev/null )
7447 # Handled here to avoid the test to skip args below.
7448 baseargs="$baseargs '$ac_arg'"
65b4571a 7449 tbaseargs="$tbaseargs '$ac_arg'"
30167e0a
NC
7450 # Assert: $separate_arg should always be no.
7451 keep_next=$separate_arg
7452 ;;
c6b750e1
DJ
7453 --no*)
7454 continue
7455 ;;
7456 --c* | \
7457 --sr* | \
7458 --ho* | \
7459 --bu* | \
7460 --t* | \
7461 --program-* | \
7462 -cache_file* | \
7463 -srcdir* | \
7464 -host* | \
7465 -build* | \
7466 -target* | \
7467 -program-prefix* | \
7468 -program-suffix* | \
7469 -program-transform-name* )
7470 skip_next=$separate_arg
7471 continue
7472 ;;
7473 -*)
7474 # An option. Add it.
7475 case $ac_arg in
7476 *\'*)
7477 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7478 esac
7479 baseargs="$baseargs '$ac_arg'"
65b4571a
AO
7480 if test X"$skip_targ" = Xno; then
7481 tbaseargs="$tbaseargs '$ac_arg'"
7482 fi
c6b750e1
DJ
7483 keep_next=$separate_arg
7484 ;;
7485 *)
7486 # Either a variable assignment, or a nonopt (triplet). Don't
7487 # pass it down; let the Makefile handle this.
7488 continue
7489 ;;
7490 esac
7491done
7492# Remove the initial space we just introduced and, as these will be
7493# expanded by make, quote '$'.
7494baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7495
f27d4f92
DJ
7496# Add in --program-transform-name, after --program-prefix and
7497# --program-suffix have been applied to it. Autoconf has already
7498# doubled dollar signs and backslashes in program_transform_name; we want
7499# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7500# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7501# Also, because we want to override the logic in subdir configure scripts to
7502# choose program_transform_name, replace any s,x,x, with s,y,y,.
7503sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7504${program_transform_name}
7505EOF_SED
7506gcc_transform_name=`cat conftestsed.out`
7507rm -f conftestsed.out
7508baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
65b4571a 7509tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7510if test "$silent" = yes; then
7511 baseargs="$baseargs --silent"
65b4571a 7512 tbaseargs="$tbaseargs --silent"
2444379b 7513fi
34a0f3cf 7514baseargs="$baseargs --disable-option-checking"
65b4571a 7515tbaseargs="$tbaseargs --disable-option-checking"
f27d4f92 7516
4074d5f2
RW
7517# Record and document user additions to sub configure arguments.
7518
7519
7520
7521
a0da8069
NN
7522# For the build-side libraries, we just need to pretend we're native,
7523# and not use the same cache file. Multilibs are neither needed nor
7524# desired.
4074d5f2 7525build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
a0da8069
NN
7526
7527# For host modules, accept cache file option, or specification as blank.
7528case "${cache_file}" in
7529"") # empty
7530 cache_file_option="" ;;
7531/* | [A-Za-z]:[\\/]* ) # absolute path
7532 cache_file_option="--cache-file=${cache_file}" ;;
7533*) # relative path
7534 cache_file_option="--cache-file=../${cache_file}" ;;
7535esac
7536
82252c06
NN
7537# Host dirs don't like to share a cache file either, horribly enough.
7538# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7539host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7540
65b4571a 7541target_configargs="$target_configargs ${tbaseargs}"
a0da8069
NN
7542
7543# Passing a --with-cross-host argument lets the target libraries know
7544# whether they are being built with a cross-compiler or being built
7545# native. However, it would be better to use other mechanisms to make the
7546# sorts of decisions they want to make on this basis. Please consider
7547# this option to be deprecated. FIXME.
7548if test x${is_cross_compiler} = xyes ; then
c6b750e1 7549 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7550fi
7551
afc0578d 7552# Special user-friendly check for native x86_64-linux build, if
7553# multilib is not explicitly enabled.
7554case "$target:$have_compiler:$host:$target:$enable_multilib" in
7555 x86_64-*linux*:yes:$build:$build:)
7556 # Make sure we have a developement environment that handles 32-bit
7557 dev64=no
7558 echo "int main () { return 0; }" > conftest.c
7559 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7560 if test $? = 0 ; then
7561 if test -s conftest || test -s conftest.exe ; then
7562 dev64=yes
7563 fi
7564 fi
7565 rm -f conftest*
7566 if test x${dev64} != xyes ; then
7567 as_fn_error "I suspect your system does not have 32-bit developement 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
7568 fi
7569 ;;
7570esac
7571
938d2b74
RW
7572# Default to --enable-multilib.
7573if test x${enable_multilib} = x ; then
a0da8069 7574 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7575fi
a0da8069
NN
7576
7577# Pass --with-newlib if appropriate. Note that target_configdirs has
7578# changed from the earlier setting of with_newlib.
7579if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7580 target_configargs="--with-newlib ${target_configargs}"
7581fi
7582
95036d20
NN
7583# Different target subdirs use different values of certain variables
7584# (notably CXX). Worse, multilibs use *lots* of different values.
7585# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7586# it doesn't automatically accept command-line overrides of them.
7587# This means it's not safe for target subdirs to share a cache file,
7588# which is disgusting, but there you have it. Hopefully this can be
7589# fixed in future. It's still worthwhile to use a cache file for each
7590# directory. I think.
7591
ae380b45
MS
7592# Pass the appropriate --build, --host, --target and --cache-file arguments.
7593# We need to pass --target, as newer autoconf's requires consistency
7594# for target_alias and gcc doesn't manage it consistently.
4b900473 7595target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7596
a0da8069
NN
7597FLAGS_FOR_TARGET=
7598case " $target_configdirs " in
7599 *" newlib "*)
7600 case " $target_configargs " in
7601 *" --with-newlib "*)
7602 case "$target" in
1f53ca9a 7603 *-cygwin*)
6d94c122 7604 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
1f53ca9a 7605 ;;
a0da8069
NN
7606 esac
7607
7608 # If we're not building GCC, don't discard standard headers.
7609 if test -d ${srcdir}/gcc; then
7610 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7611
7612 if test "${build}" != "${host}"; then
7613 # On Canadian crosses, CC_FOR_TARGET will have already been set
7614 # by `configure', so we won't have an opportunity to add -Bgcc/
7615 # to it. This is right: we don't want to search that directory
7616 # for binaries, but we want the header files in there, so add
7617 # them explicitly.
e552509b 7618 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7619
7620 # Someone might think of using the pre-installed headers on
7621 # Canadian crosses, in case the installed compiler is not fully
7622 # compatible with the compiler being built. In this case, it
7623 # would be better to flag an error than risking having
7624 # incompatible object files being constructed. We can't
7625 # guarantee that an error will be flagged, but let's hope the
7626 # compiler will do it, when presented with incompatible header
7627 # files.
7628 fi
7629 fi
7630
7631 case "${target}-${is_cross_compiler}" in
ec11bdc6 7632 i[3456789]86-*-linux*-no)
a0da8069
NN
7633 # Here host == target, so we don't need to build gcc,
7634 # so we don't want to discard standard headers.
7635 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7636 ;;
7637 *)
7638 # If we're building newlib, use its generic headers last, but search
7639 # for any libc-related directories first (so make it the last -B
7640 # switch).
7641 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
7642
7643 # If we're building libgloss, find the startup file, simulator library
7644 # and linker script.
7645 case " $target_configdirs " in
7646 *" libgloss "*)
7647 # Look for startup file, simulator library and maybe linker script.
7648 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7649 # Look for libnosys.a in case the target needs it.
7650 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7651 # Most targets have the linker script in the source directory.
7652 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7653 ;;
7654 esac
a0da8069
NN
7655 ;;
7656 esac
7657 ;;
7658 esac
7659 ;;
7660esac
1f53ca9a 7661
45055374 7662case "$target" in
1f53ca9a
AO
7663 x86_64-*mingw* | *-w64-mingw*)
7664 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7665 # however, use a symlink named 'mingw' in ${prefix} .
7666 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7667 ;;
7668 *-mingw*)
7669 # MinGW can't be handled as Cygwin above since it does not use newlib.
7670 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'
7671 ;;
45055374 7672esac
a0da8069 7673
5fbad20a
DD
7674# Allow the user to override the flags for
7675# our build compiler if desired.
c66487f8
NC
7676if test x"${build}" = x"${host}" ; then
7677 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7678 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7679 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7680fi
5fbad20a 7681
a0da8069
NN
7682# On Canadian crosses, we'll be searching the right directories for
7683# the previously-installed cross compiler, so don't bother to add
7684# flags for directories within the install tree of the compiler
7685# being built; programs in there won't even run.
7686if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7687 # Search for pre-installed headers if nothing else fits.
bba45b8b 7688 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
7689fi
7690
7691if test "x${use_gnu_ld}" = x &&
7692 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7693 # Arrange for us to find uninstalled linker scripts.
b00612cc 7694 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
7695fi
7696
a481dbb7
DD
7697# Search for other target-specific linker scripts and such.
7698case "${target}" in
4e206d7e
DB
7699 mep*)
7700 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7701 ;;
7702esac
7703
a0da8069 7704# Makefile fragments.
3e707e94
PB
7705for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7706do
7707 eval fragval=\$$frag
7708 if test $fragval != /dev/null; then
7709 eval $frag=${srcdir}/$fragval
7710 fi
7711done
a0da8069
NN
7712
7713
7714
7715
7716
7717# Miscellanea: directories, flags, etc.
7718
7719
7720
7721
7722
7723
7724
3bbd2f8f 7725
6a9cf61e 7726# Build module lists & subconfigure args.
a0da8069
NN
7727
7728
7729
be01d343
PB
7730# Host module lists & subconfigure args.
7731
7732
7733
911e63d0 7734
be01d343
PB
7735# Target module lists & subconfigure args.
7736
7737
7738
7739# Build tools.
7740
7741
7742
1576798e
PB
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
be01d343
PB
7757# Generate default definitions for YACC, M4, LEX and other programs that run
7758# on the build machine. These are used if the Makefile can't locate these
7759# programs in objdir.
7760MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7761
7762for ac_prog in 'bison -y' byacc yacc
7763do
c6b750e1 7764 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7765set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7767$as_echo_n "checking for $ac_word... " >&6; }
7768if test "${ac_cv_prog_YACC+set}" = set; then :
7769 $as_echo_n "(cached) " >&6
be01d343
PB
7770else
7771 if test -n "$YACC"; then
7772 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7773else
c6b750e1
DJ
7774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775for as_dir in $PATH
7776do
7777 IFS=$as_save_IFS
7778 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7779 for ac_exec_ext in '' $ac_executable_extensions; do
7780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7781 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 7782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7783 break 2
7784 fi
7785done
81ecdfbb
RW
7786 done
7787IFS=$as_save_IFS
c6b750e1 7788
be01d343
PB
7789fi
7790fi
c6b750e1 7791YACC=$ac_cv_prog_YACC
be01d343 7792if test -n "$YACC"; then
81ecdfbb
RW
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7794$as_echo "$YACC" >&6; }
be01d343 7795else
81ecdfbb
RW
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797$as_echo "no" >&6; }
be01d343
PB
7798fi
7799
81ecdfbb 7800
c6b750e1 7801 test -n "$YACC" && break
be01d343
PB
7802done
7803test -n "$YACC" || YACC="$MISSING bison -y"
7804
7805case " $build_configdirs " in
7806 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
be01d343
PB
7807esac
7808
7809for ac_prog in bison
7810do
c6b750e1 7811 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7812set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7814$as_echo_n "checking for $ac_word... " >&6; }
7815if test "${ac_cv_prog_BISON+set}" = set; then :
7816 $as_echo_n "(cached) " >&6
be01d343
PB
7817else
7818 if test -n "$BISON"; then
7819 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7820else
c6b750e1
DJ
7821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822for as_dir in $PATH
7823do
7824 IFS=$as_save_IFS
7825 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7826 for ac_exec_ext in '' $ac_executable_extensions; do
7827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7828 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 7829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7830 break 2
7831 fi
7832done
81ecdfbb
RW
7833 done
7834IFS=$as_save_IFS
c6b750e1 7835
be01d343
PB
7836fi
7837fi
c6b750e1 7838BISON=$ac_cv_prog_BISON
be01d343 7839if test -n "$BISON"; then
81ecdfbb
RW
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7841$as_echo "$BISON" >&6; }
be01d343 7842else
81ecdfbb
RW
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844$as_echo "no" >&6; }
be01d343
PB
7845fi
7846
81ecdfbb 7847
c6b750e1 7848 test -n "$BISON" && break
be01d343
PB
7849done
7850test -n "$BISON" || BISON="$MISSING bison"
7851
7852case " $build_configdirs " in
7853 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7854esac
7855
7856for ac_prog in gm4 gnum4 m4
7857do
c6b750e1 7858 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7859set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7861$as_echo_n "checking for $ac_word... " >&6; }
7862if test "${ac_cv_prog_M4+set}" = set; then :
7863 $as_echo_n "(cached) " >&6
be01d343
PB
7864else
7865 if test -n "$M4"; then
7866 ac_cv_prog_M4="$M4" # Let the user override the test.
7867else
c6b750e1
DJ
7868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7869for as_dir in $PATH
7870do
7871 IFS=$as_save_IFS
7872 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7873 for ac_exec_ext in '' $ac_executable_extensions; do
7874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7875 ac_cv_prog_M4="$ac_prog"
81ecdfbb 7876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7877 break 2
7878 fi
7879done
81ecdfbb
RW
7880 done
7881IFS=$as_save_IFS
c6b750e1 7882
be01d343
PB
7883fi
7884fi
c6b750e1 7885M4=$ac_cv_prog_M4
be01d343 7886if test -n "$M4"; then
81ecdfbb
RW
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7888$as_echo "$M4" >&6; }
be01d343 7889else
81ecdfbb
RW
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7891$as_echo "no" >&6; }
be01d343
PB
7892fi
7893
81ecdfbb 7894
c6b750e1 7895 test -n "$M4" && break
be01d343
PB
7896done
7897test -n "$M4" || M4="$MISSING m4"
7898
7899case " $build_configdirs " in
7900 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7901esac
7902
7903for ac_prog in flex lex
7904do
c6b750e1 7905 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7906set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7908$as_echo_n "checking for $ac_word... " >&6; }
7909if test "${ac_cv_prog_LEX+set}" = set; then :
7910 $as_echo_n "(cached) " >&6
be01d343
PB
7911else
7912 if test -n "$LEX"; then
7913 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7914else
c6b750e1
DJ
7915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7916for as_dir in $PATH
7917do
7918 IFS=$as_save_IFS
7919 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7920 for ac_exec_ext in '' $ac_executable_extensions; do
7921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7922 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 7923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7924 break 2
7925 fi
7926done
81ecdfbb
RW
7927 done
7928IFS=$as_save_IFS
c6b750e1 7929
be01d343
PB
7930fi
7931fi
c6b750e1 7932LEX=$ac_cv_prog_LEX
be01d343 7933if test -n "$LEX"; then
81ecdfbb
RW
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7935$as_echo "$LEX" >&6; }
be01d343 7936else
81ecdfbb
RW
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7938$as_echo "no" >&6; }
be01d343
PB
7939fi
7940
81ecdfbb 7941
c6b750e1 7942 test -n "$LEX" && break
be01d343
PB
7943done
7944test -n "$LEX" || LEX="$MISSING flex"
7945
7946case " $build_configdirs " in
7947 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7948 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7949esac
7950
7951for ac_prog in flex
7952do
c6b750e1 7953 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7954set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7956$as_echo_n "checking for $ac_word... " >&6; }
7957if test "${ac_cv_prog_FLEX+set}" = set; then :
7958 $as_echo_n "(cached) " >&6
be01d343
PB
7959else
7960 if test -n "$FLEX"; then
7961 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7962else
c6b750e1
DJ
7963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7964for as_dir in $PATH
7965do
7966 IFS=$as_save_IFS
7967 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7968 for ac_exec_ext in '' $ac_executable_extensions; do
7969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7970 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 7971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7972 break 2
7973 fi
7974done
81ecdfbb
RW
7975 done
7976IFS=$as_save_IFS
c6b750e1 7977
be01d343
PB
7978fi
7979fi
c6b750e1 7980FLEX=$ac_cv_prog_FLEX
be01d343 7981if test -n "$FLEX"; then
81ecdfbb
RW
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7983$as_echo "$FLEX" >&6; }
be01d343 7984else
81ecdfbb
RW
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7986$as_echo "no" >&6; }
be01d343
PB
7987fi
7988
81ecdfbb 7989
c6b750e1 7990 test -n "$FLEX" && break
be01d343
PB
7991done
7992test -n "$FLEX" || FLEX="$MISSING flex"
7993
7994case " $build_configdirs " in
7995 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7996esac
7997
7998for ac_prog in makeinfo
7999do
c6b750e1 8000 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8001set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8003$as_echo_n "checking for $ac_word... " >&6; }
8004if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8005 $as_echo_n "(cached) " >&6
be01d343
PB
8006else
8007 if test -n "$MAKEINFO"; then
8008 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8009else
c6b750e1
DJ
8010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8011for as_dir in $PATH
8012do
8013 IFS=$as_save_IFS
8014 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8015 for ac_exec_ext in '' $ac_executable_extensions; do
8016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8017 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 8018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8019 break 2
8020 fi
8021done
81ecdfbb
RW
8022 done
8023IFS=$as_save_IFS
c6b750e1 8024
be01d343
PB
8025fi
8026fi
c6b750e1 8027MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 8028if test -n "$MAKEINFO"; then
81ecdfbb
RW
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8030$as_echo "$MAKEINFO" >&6; }
be01d343 8031else
81ecdfbb
RW
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8033$as_echo "no" >&6; }
be01d343
PB
8034fi
8035
81ecdfbb 8036
c6b750e1 8037 test -n "$MAKEINFO" && break
be01d343
PB
8038done
8039test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8040
8041case " $build_configdirs " in
8042 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8043 *)
8044
10ad8ef3 8045 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
8046 # higher, else we use the "missing" dummy.
8047 if ${MAKEINFO} --version \
10ad8ef3 8048 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
8049 :
8050 else
8051 MAKEINFO="$MISSING makeinfo"
8052 fi
8053 ;;
8054
8055esac
a0da8069 8056
be01d343 8057# FIXME: expect and dejagnu may become build tools?
a0da8069 8058
be01d343
PB
8059for ac_prog in expect
8060do
c6b750e1 8061 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8062set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8064$as_echo_n "checking for $ac_word... " >&6; }
8065if test "${ac_cv_prog_EXPECT+set}" = set; then :
8066 $as_echo_n "(cached) " >&6
be01d343
PB
8067else
8068 if test -n "$EXPECT"; then
8069 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8070else
c6b750e1
DJ
8071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8072for as_dir in $PATH
8073do
8074 IFS=$as_save_IFS
8075 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8076 for ac_exec_ext in '' $ac_executable_extensions; do
8077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8078 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 8079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8080 break 2
8081 fi
8082done
81ecdfbb
RW
8083 done
8084IFS=$as_save_IFS
c6b750e1 8085
be01d343
PB
8086fi
8087fi
c6b750e1 8088EXPECT=$ac_cv_prog_EXPECT
be01d343 8089if test -n "$EXPECT"; then
81ecdfbb
RW
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8091$as_echo "$EXPECT" >&6; }
be01d343 8092else
81ecdfbb
RW
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8094$as_echo "no" >&6; }
be01d343 8095fi
a0da8069 8096
81ecdfbb 8097
c6b750e1 8098 test -n "$EXPECT" && break
be01d343
PB
8099done
8100test -n "$EXPECT" || EXPECT="expect"
a0da8069 8101
be01d343
PB
8102case " $configdirs " in
8103 *" expect "*)
8104 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8105 ;;
8106esac
a0da8069 8107
be01d343
PB
8108for ac_prog in runtest
8109do
c6b750e1 8110 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8111set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8113$as_echo_n "checking for $ac_word... " >&6; }
8114if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8115 $as_echo_n "(cached) " >&6
be01d343
PB
8116else
8117 if test -n "$RUNTEST"; then
8118 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8119else
c6b750e1
DJ
8120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8121for as_dir in $PATH
8122do
8123 IFS=$as_save_IFS
8124 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8125 for ac_exec_ext in '' $ac_executable_extensions; do
8126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8127 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 8128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8129 break 2
8130 fi
8131done
81ecdfbb
RW
8132 done
8133IFS=$as_save_IFS
c6b750e1 8134
be01d343
PB
8135fi
8136fi
c6b750e1 8137RUNTEST=$ac_cv_prog_RUNTEST
be01d343 8138if test -n "$RUNTEST"; then
81ecdfbb
RW
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8140$as_echo "$RUNTEST" >&6; }
be01d343 8141else
81ecdfbb
RW
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8143$as_echo "no" >&6; }
be01d343 8144fi
a0da8069 8145
81ecdfbb 8146
c6b750e1 8147 test -n "$RUNTEST" && break
be01d343
PB
8148done
8149test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 8150
be01d343
PB
8151case " $configdirs " in
8152 *" dejagnu "*)
6b89cc21 8153 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
8154 ;;
8155esac
a0da8069
NN
8156
8157
a0da8069 8158# Host tools.
859789af
AC
8159ncn_tool_prefix=
8160test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8161ncn_target_tool_prefix=
8162test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8163
9a819804
AO
8164
8165
8166if test -n "$AR"; then
8167 ac_cv_prog_AR=$AR
8168elif test -n "$ac_cv_prog_AR"; then
8169 AR=$ac_cv_prog_AR
8170fi
8171
8172if test -n "$ac_cv_prog_AR"; then
8173 for ncn_progname in ar; do
8174 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8175set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8177$as_echo_n "checking for $ac_word... " >&6; }
8178if test "${ac_cv_prog_AR+set}" = set; then :
8179 $as_echo_n "(cached) " >&6
9a819804
AO
8180else
8181 if test -n "$AR"; then
8182 ac_cv_prog_AR="$AR" # Let the user override the test.
8183else
8184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8185for as_dir in $PATH
8186do
8187 IFS=$as_save_IFS
8188 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8189 for ac_exec_ext in '' $ac_executable_extensions; do
8190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8191 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8193 break 2
8194 fi
8195done
81ecdfbb
RW
8196 done
8197IFS=$as_save_IFS
9a819804
AO
8198
8199fi
8200fi
8201AR=$ac_cv_prog_AR
8202if test -n "$AR"; then
81ecdfbb
RW
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8204$as_echo "$AR" >&6; }
9a819804 8205else
81ecdfbb
RW
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8207$as_echo "no" >&6; }
9a819804
AO
8208fi
8209
81ecdfbb 8210
9a819804
AO
8211 done
8212fi
8213
8214for ncn_progname in ar; do
05cbd757
PB
8215 if test -n "$ncn_tool_prefix"; then
8216 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8217set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8219$as_echo_n "checking for $ac_word... " >&6; }
8220if test "${ac_cv_prog_AR+set}" = set; then :
8221 $as_echo_n "(cached) " >&6
859789af
AC
8222else
8223 if test -n "$AR"; then
8224 ac_cv_prog_AR="$AR" # Let the user override the test.
8225else
c6b750e1
DJ
8226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227for as_dir in $PATH
8228do
8229 IFS=$as_save_IFS
8230 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8231 for ac_exec_ext in '' $ac_executable_extensions; do
8232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8233 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8235 break 2
8236 fi
8237done
81ecdfbb
RW
8238 done
8239IFS=$as_save_IFS
c6b750e1 8240
859789af
AC
8241fi
8242fi
c6b750e1 8243AR=$ac_cv_prog_AR
859789af 8244if test -n "$AR"; then
81ecdfbb
RW
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8246$as_echo "$AR" >&6; }
859789af 8247else
81ecdfbb
RW
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8249$as_echo "no" >&6; }
859789af
AC
8250fi
8251
81ecdfbb 8252
05cbd757
PB
8253 fi
8254 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8255 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8256set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8258$as_echo_n "checking for $ac_word... " >&6; }
8259if test "${ac_cv_prog_AR+set}" = set; then :
8260 $as_echo_n "(cached) " >&6
859789af 8261else
05cbd757
PB
8262 if test -n "$AR"; then
8263 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 8264else
c6b750e1
DJ
8265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8266for as_dir in $PATH
8267do
8268 IFS=$as_save_IFS
8269 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8270 for ac_exec_ext in '' $ac_executable_extensions; do
8271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8272 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8274 break 2
8275 fi
8276done
81ecdfbb
RW
8277 done
8278IFS=$as_save_IFS
c6b750e1 8279
859789af
AC
8280fi
8281fi
c6b750e1 8282AR=$ac_cv_prog_AR
05cbd757 8283if test -n "$AR"; then
81ecdfbb
RW
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8285$as_echo "$AR" >&6; }
859789af 8286else
81ecdfbb
RW
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8288$as_echo "no" >&6; }
859789af 8289fi
c6b750e1 8290
81ecdfbb 8291
05cbd757
PB
8292 fi
8293 test -n "$ac_cv_prog_AR" && break
8294done
8295
8296if test -z "$ac_cv_prog_AR" ; then
8297 set dummy ar
8298 if test $build = $host ; then
8299 AR="$2"
859789af 8300 else
05cbd757 8301 AR="${ncn_tool_prefix}$2"
859789af 8302 fi
859789af
AC
8303fi
8304
9a819804
AO
8305
8306
8307if test -n "$AS"; then
8308 ac_cv_prog_AS=$AS
8309elif test -n "$ac_cv_prog_AS"; then
8310 AS=$ac_cv_prog_AS
8311fi
8312
8313if test -n "$ac_cv_prog_AS"; then
8314 for ncn_progname in as; do
8315 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8316set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8318$as_echo_n "checking for $ac_word... " >&6; }
8319if test "${ac_cv_prog_AS+set}" = set; then :
8320 $as_echo_n "(cached) " >&6
9a819804
AO
8321else
8322 if test -n "$AS"; then
8323 ac_cv_prog_AS="$AS" # Let the user override the test.
8324else
8325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8326for as_dir in $PATH
8327do
8328 IFS=$as_save_IFS
8329 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8330 for ac_exec_ext in '' $ac_executable_extensions; do
8331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8332 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8334 break 2
8335 fi
8336done
81ecdfbb
RW
8337 done
8338IFS=$as_save_IFS
9a819804
AO
8339
8340fi
8341fi
8342AS=$ac_cv_prog_AS
8343if test -n "$AS"; then
81ecdfbb
RW
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8345$as_echo "$AS" >&6; }
9a819804 8346else
81ecdfbb
RW
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8348$as_echo "no" >&6; }
9a819804
AO
8349fi
8350
81ecdfbb 8351
9a819804
AO
8352 done
8353fi
8354
8355for ncn_progname in as; do
05cbd757
PB
8356 if test -n "$ncn_tool_prefix"; then
8357 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8358set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8360$as_echo_n "checking for $ac_word... " >&6; }
8361if test "${ac_cv_prog_AS+set}" = set; then :
8362 $as_echo_n "(cached) " >&6
859789af
AC
8363else
8364 if test -n "$AS"; then
8365 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
8366else
8367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368for as_dir in $PATH
8369do
8370 IFS=$as_save_IFS
8371 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8372 for ac_exec_ext in '' $ac_executable_extensions; do
8373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8374 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8376 break 2
8377 fi
8378done
81ecdfbb
RW
8379 done
8380IFS=$as_save_IFS
c6b750e1 8381
859789af
AC
8382fi
8383fi
c6b750e1 8384AS=$ac_cv_prog_AS
859789af 8385if test -n "$AS"; then
81ecdfbb
RW
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8387$as_echo "$AS" >&6; }
859789af 8388else
81ecdfbb
RW
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8390$as_echo "no" >&6; }
859789af
AC
8391fi
8392
81ecdfbb 8393
05cbd757
PB
8394 fi
8395 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8396 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8397set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8399$as_echo_n "checking for $ac_word... " >&6; }
8400if test "${ac_cv_prog_AS+set}" = set; then :
8401 $as_echo_n "(cached) " >&6
859789af 8402else
05cbd757
PB
8403 if test -n "$AS"; then
8404 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 8405else
c6b750e1
DJ
8406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8407for as_dir in $PATH
8408do
8409 IFS=$as_save_IFS
8410 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8411 for ac_exec_ext in '' $ac_executable_extensions; do
8412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8413 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8415 break 2
8416 fi
8417done
81ecdfbb
RW
8418 done
8419IFS=$as_save_IFS
c6b750e1 8420
859789af
AC
8421fi
8422fi
c6b750e1 8423AS=$ac_cv_prog_AS
05cbd757 8424if test -n "$AS"; then
81ecdfbb
RW
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8426$as_echo "$AS" >&6; }
859789af 8427else
81ecdfbb
RW
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8429$as_echo "no" >&6; }
859789af 8430fi
c6b750e1 8431
81ecdfbb 8432
05cbd757
PB
8433 fi
8434 test -n "$ac_cv_prog_AS" && break
8435done
8436
8437if test -z "$ac_cv_prog_AS" ; then
8438 set dummy as
8439 if test $build = $host ; then
8440 AS="$2"
859789af 8441 else
05cbd757 8442 AS="${ncn_tool_prefix}$2"
859789af 8443 fi
859789af
AC
8444fi
8445
9a819804
AO
8446
8447
8448if test -n "$DLLTOOL"; then
8449 ac_cv_prog_DLLTOOL=$DLLTOOL
8450elif test -n "$ac_cv_prog_DLLTOOL"; then
8451 DLLTOOL=$ac_cv_prog_DLLTOOL
8452fi
8453
8454if test -n "$ac_cv_prog_DLLTOOL"; then
8455 for ncn_progname in dlltool; do
8456 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8457set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8459$as_echo_n "checking for $ac_word... " >&6; }
8460if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8461 $as_echo_n "(cached) " >&6
9a819804
AO
8462else
8463 if test -n "$DLLTOOL"; then
8464 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8465else
8466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8467for as_dir in $PATH
8468do
8469 IFS=$as_save_IFS
8470 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8471 for ac_exec_ext in '' $ac_executable_extensions; do
8472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8473 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8475 break 2
8476 fi
8477done
81ecdfbb
RW
8478 done
8479IFS=$as_save_IFS
9a819804
AO
8480
8481fi
8482fi
8483DLLTOOL=$ac_cv_prog_DLLTOOL
8484if test -n "$DLLTOOL"; then
81ecdfbb
RW
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8486$as_echo "$DLLTOOL" >&6; }
9a819804 8487else
81ecdfbb
RW
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8489$as_echo "no" >&6; }
9a819804
AO
8490fi
8491
81ecdfbb 8492
9a819804
AO
8493 done
8494fi
8495
8496for ncn_progname in dlltool; do
05cbd757
PB
8497 if test -n "$ncn_tool_prefix"; then
8498 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8499set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8501$as_echo_n "checking for $ac_word... " >&6; }
8502if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8503 $as_echo_n "(cached) " >&6
859789af
AC
8504else
8505 if test -n "$DLLTOOL"; then
8506 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8507else
c6b750e1
DJ
8508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8509for as_dir in $PATH
8510do
8511 IFS=$as_save_IFS
8512 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8513 for ac_exec_ext in '' $ac_executable_extensions; do
8514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8515 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8517 break 2
8518 fi
8519done
81ecdfbb
RW
8520 done
8521IFS=$as_save_IFS
c6b750e1 8522
859789af
AC
8523fi
8524fi
c6b750e1 8525DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8526if test -n "$DLLTOOL"; then
81ecdfbb
RW
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8528$as_echo "$DLLTOOL" >&6; }
859789af 8529else
81ecdfbb
RW
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8531$as_echo "no" >&6; }
859789af
AC
8532fi
8533
81ecdfbb 8534
05cbd757
PB
8535 fi
8536 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8537 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8538set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8540$as_echo_n "checking for $ac_word... " >&6; }
8541if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8542 $as_echo_n "(cached) " >&6
859789af 8543else
05cbd757
PB
8544 if test -n "$DLLTOOL"; then
8545 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8546else
c6b750e1
DJ
8547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8548for as_dir in $PATH
8549do
8550 IFS=$as_save_IFS
8551 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8552 for ac_exec_ext in '' $ac_executable_extensions; do
8553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8554 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8556 break 2
8557 fi
8558done
81ecdfbb
RW
8559 done
8560IFS=$as_save_IFS
c6b750e1 8561
859789af
AC
8562fi
8563fi
c6b750e1 8564DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8565if test -n "$DLLTOOL"; then
81ecdfbb
RW
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8567$as_echo "$DLLTOOL" >&6; }
859789af 8568else
81ecdfbb
RW
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8570$as_echo "no" >&6; }
859789af 8571fi
c6b750e1 8572
81ecdfbb 8573
05cbd757
PB
8574 fi
8575 test -n "$ac_cv_prog_DLLTOOL" && break
8576done
8577
8578if test -z "$ac_cv_prog_DLLTOOL" ; then
8579 set dummy dlltool
8580 if test $build = $host ; then
8581 DLLTOOL="$2"
859789af 8582 else
05cbd757 8583 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8584 fi
859789af
AC
8585fi
8586
9a819804
AO
8587
8588
8589if test -n "$LD"; then
8590 ac_cv_prog_LD=$LD
8591elif test -n "$ac_cv_prog_LD"; then
8592 LD=$ac_cv_prog_LD
8593fi
8594
8595if test -n "$ac_cv_prog_LD"; then
8596 for ncn_progname in ld; do
8597 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8598set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8600$as_echo_n "checking for $ac_word... " >&6; }
8601if test "${ac_cv_prog_LD+set}" = set; then :
8602 $as_echo_n "(cached) " >&6
9a819804
AO
8603else
8604 if test -n "$LD"; then
8605 ac_cv_prog_LD="$LD" # Let the user override the test.
8606else
8607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8608for as_dir in $PATH
8609do
8610 IFS=$as_save_IFS
8611 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8612 for ac_exec_ext in '' $ac_executable_extensions; do
8613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8614 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8616 break 2
8617 fi
8618done
81ecdfbb
RW
8619 done
8620IFS=$as_save_IFS
9a819804
AO
8621
8622fi
8623fi
8624LD=$ac_cv_prog_LD
8625if test -n "$LD"; then
81ecdfbb
RW
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8627$as_echo "$LD" >&6; }
9a819804 8628else
81ecdfbb
RW
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8630$as_echo "no" >&6; }
9a819804
AO
8631fi
8632
81ecdfbb 8633
9a819804
AO
8634 done
8635fi
8636
8637for ncn_progname in ld; do
05cbd757
PB
8638 if test -n "$ncn_tool_prefix"; then
8639 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8640set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8642$as_echo_n "checking for $ac_word... " >&6; }
8643if test "${ac_cv_prog_LD+set}" = set; then :
8644 $as_echo_n "(cached) " >&6
859789af
AC
8645else
8646 if test -n "$LD"; then
8647 ac_cv_prog_LD="$LD" # Let the user override the test.
8648else
c6b750e1
DJ
8649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8650for as_dir in $PATH
8651do
8652 IFS=$as_save_IFS
8653 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8654 for ac_exec_ext in '' $ac_executable_extensions; do
8655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8656 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8658 break 2
8659 fi
8660done
81ecdfbb
RW
8661 done
8662IFS=$as_save_IFS
c6b750e1 8663
859789af
AC
8664fi
8665fi
c6b750e1 8666LD=$ac_cv_prog_LD
859789af 8667if test -n "$LD"; then
81ecdfbb
RW
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8669$as_echo "$LD" >&6; }
859789af 8670else
81ecdfbb
RW
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8672$as_echo "no" >&6; }
859789af
AC
8673fi
8674
81ecdfbb 8675
05cbd757
PB
8676 fi
8677 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8678 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8679set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8681$as_echo_n "checking for $ac_word... " >&6; }
8682if test "${ac_cv_prog_LD+set}" = set; then :
8683 $as_echo_n "(cached) " >&6
859789af 8684else
05cbd757
PB
8685 if test -n "$LD"; then
8686 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 8687else
c6b750e1
DJ
8688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8689for as_dir in $PATH
8690do
8691 IFS=$as_save_IFS
8692 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8693 for ac_exec_ext in '' $ac_executable_extensions; do
8694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8695 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8697 break 2
8698 fi
8699done
81ecdfbb
RW
8700 done
8701IFS=$as_save_IFS
c6b750e1 8702
859789af
AC
8703fi
8704fi
c6b750e1 8705LD=$ac_cv_prog_LD
05cbd757 8706if test -n "$LD"; then
81ecdfbb
RW
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8708$as_echo "$LD" >&6; }
859789af 8709else
81ecdfbb
RW
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8711$as_echo "no" >&6; }
859789af 8712fi
c6b750e1 8713
81ecdfbb 8714
05cbd757
PB
8715 fi
8716 test -n "$ac_cv_prog_LD" && break
8717done
8718
8719if test -z "$ac_cv_prog_LD" ; then
8720 set dummy ld
8721 if test $build = $host ; then
8722 LD="$2"
859789af 8723 else
05cbd757 8724 LD="${ncn_tool_prefix}$2"
859789af 8725 fi
859789af
AC
8726fi
8727
9a819804
AO
8728
8729
8730if test -n "$LIPO"; then
8731 ac_cv_prog_LIPO=$LIPO
8732elif test -n "$ac_cv_prog_LIPO"; then
8733 LIPO=$ac_cv_prog_LIPO
8734fi
8735
8736if test -n "$ac_cv_prog_LIPO"; then
8737 for ncn_progname in lipo; do
8738 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8739set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8741$as_echo_n "checking for $ac_word... " >&6; }
8742if test "${ac_cv_prog_LIPO+set}" = set; then :
8743 $as_echo_n "(cached) " >&6
9a819804
AO
8744else
8745 if test -n "$LIPO"; then
8746 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8747else
8748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8749for as_dir in $PATH
8750do
8751 IFS=$as_save_IFS
8752 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8753 for ac_exec_ext in '' $ac_executable_extensions; do
8754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8755 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8757 break 2
8758 fi
8759done
81ecdfbb
RW
8760 done
8761IFS=$as_save_IFS
9a819804
AO
8762
8763fi
8764fi
8765LIPO=$ac_cv_prog_LIPO
8766if test -n "$LIPO"; then
81ecdfbb
RW
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8768$as_echo "$LIPO" >&6; }
9a819804 8769else
81ecdfbb
RW
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8771$as_echo "no" >&6; }
9a819804
AO
8772fi
8773
81ecdfbb 8774
9a819804
AO
8775 done
8776fi
8777
8778for ncn_progname in lipo; do
be01d343
PB
8779 if test -n "$ncn_tool_prefix"; then
8780 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8781set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8783$as_echo_n "checking for $ac_word... " >&6; }
8784if test "${ac_cv_prog_LIPO+set}" = set; then :
8785 $as_echo_n "(cached) " >&6
be01d343
PB
8786else
8787 if test -n "$LIPO"; then
8788 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8789else
c6b750e1
DJ
8790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8791for as_dir in $PATH
8792do
8793 IFS=$as_save_IFS
8794 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8795 for ac_exec_ext in '' $ac_executable_extensions; do
8796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8797 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8799 break 2
8800 fi
8801done
81ecdfbb
RW
8802 done
8803IFS=$as_save_IFS
c6b750e1 8804
be01d343
PB
8805fi
8806fi
c6b750e1 8807LIPO=$ac_cv_prog_LIPO
be01d343 8808if test -n "$LIPO"; then
81ecdfbb
RW
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8810$as_echo "$LIPO" >&6; }
be01d343 8811else
81ecdfbb
RW
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8813$as_echo "no" >&6; }
be01d343
PB
8814fi
8815
81ecdfbb 8816
be01d343
PB
8817 fi
8818 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8819 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8820set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8822$as_echo_n "checking for $ac_word... " >&6; }
8823if test "${ac_cv_prog_LIPO+set}" = set; then :
8824 $as_echo_n "(cached) " >&6
be01d343
PB
8825else
8826 if test -n "$LIPO"; then
8827 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8828else
c6b750e1
DJ
8829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8830for as_dir in $PATH
8831do
8832 IFS=$as_save_IFS
8833 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8834 for ac_exec_ext in '' $ac_executable_extensions; do
8835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8836 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8838 break 2
8839 fi
8840done
81ecdfbb
RW
8841 done
8842IFS=$as_save_IFS
c6b750e1 8843
be01d343
PB
8844fi
8845fi
c6b750e1 8846LIPO=$ac_cv_prog_LIPO
be01d343 8847if test -n "$LIPO"; then
81ecdfbb
RW
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8849$as_echo "$LIPO" >&6; }
be01d343 8850else
81ecdfbb
RW
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8852$as_echo "no" >&6; }
be01d343 8853fi
c6b750e1 8854
81ecdfbb 8855
be01d343
PB
8856 fi
8857 test -n "$ac_cv_prog_LIPO" && break
8858done
8859
8860if test -z "$ac_cv_prog_LIPO" ; then
8861 set dummy lipo
8862 if test $build = $host ; then
8863 LIPO="$2"
8864 else
8865 LIPO="${ncn_tool_prefix}$2"
8866 fi
8867fi
8868
9a819804
AO
8869
8870
8871if test -n "$NM"; then
8872 ac_cv_prog_NM=$NM
8873elif test -n "$ac_cv_prog_NM"; then
8874 NM=$ac_cv_prog_NM
8875fi
8876
8877if test -n "$ac_cv_prog_NM"; then
8878 for ncn_progname in nm; do
8879 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8880set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8882$as_echo_n "checking for $ac_word... " >&6; }
8883if test "${ac_cv_prog_NM+set}" = set; then :
8884 $as_echo_n "(cached) " >&6
859789af
AC
8885else
8886 if test -n "$NM"; then
8887 ac_cv_prog_NM="$NM" # Let the user override the test.
8888else
c6b750e1
DJ
8889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8890for as_dir in $PATH
8891do
8892 IFS=$as_save_IFS
8893 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8894 for ac_exec_ext in '' $ac_executable_extensions; do
8895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8896 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8898 break 2
8899 fi
8900done
81ecdfbb
RW
8901 done
8902IFS=$as_save_IFS
c6b750e1 8903
859789af
AC
8904fi
8905fi
c6b750e1 8906NM=$ac_cv_prog_NM
859789af 8907if test -n "$NM"; then
81ecdfbb
RW
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8909$as_echo "$NM" >&6; }
859789af 8910else
81ecdfbb
RW
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8912$as_echo "no" >&6; }
859789af
AC
8913fi
8914
81ecdfbb 8915
9a819804
AO
8916 done
8917fi
8918
8919for ncn_progname in nm; do
8920 if test -n "$ncn_tool_prefix"; then
8921 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8922set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8924$as_echo_n "checking for $ac_word... " >&6; }
8925if test "${ac_cv_prog_NM+set}" = set; then :
8926 $as_echo_n "(cached) " >&6
859789af 8927else
05cbd757
PB
8928 if test -n "$NM"; then
8929 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 8930else
c6b750e1
DJ
8931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8932for as_dir in $PATH
8933do
8934 IFS=$as_save_IFS
8935 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8936 for ac_exec_ext in '' $ac_executable_extensions; do
8937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8938 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8940 break 2
8941 fi
8942done
81ecdfbb
RW
8943 done
8944IFS=$as_save_IFS
c6b750e1 8945
859789af
AC
8946fi
8947fi
c6b750e1 8948NM=$ac_cv_prog_NM
05cbd757 8949if test -n "$NM"; then
81ecdfbb
RW
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8951$as_echo "$NM" >&6; }
859789af 8952else
81ecdfbb
RW
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8954$as_echo "no" >&6; }
859789af 8955fi
c6b750e1 8956
81ecdfbb 8957
05cbd757 8958 fi
9a819804
AO
8959 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8960 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8961set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8963$as_echo_n "checking for $ac_word... " >&6; }
8964if test "${ac_cv_prog_NM+set}" = set; then :
8965 $as_echo_n "(cached) " >&6
9a819804
AO
8966else
8967 if test -n "$NM"; then
8968 ac_cv_prog_NM="$NM" # Let the user override the test.
8969else
8970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8971for as_dir in $PATH
8972do
8973 IFS=$as_save_IFS
8974 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8975 for ac_exec_ext in '' $ac_executable_extensions; do
8976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8977 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8979 break 2
8980 fi
8981done
81ecdfbb
RW
8982 done
8983IFS=$as_save_IFS
9a819804
AO
8984
8985fi
8986fi
8987NM=$ac_cv_prog_NM
8988if test -n "$NM"; then
81ecdfbb
RW
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8990$as_echo "$NM" >&6; }
9a819804 8991else
81ecdfbb
RW
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8993$as_echo "no" >&6; }
9a819804
AO
8994fi
8995
81ecdfbb 8996
9a819804
AO
8997 fi
8998 test -n "$ac_cv_prog_NM" && break
8999done
9000
9001if test -z "$ac_cv_prog_NM" ; then
9002 set dummy nm
9003 if test $build = $host ; then
9004 NM="$2"
9005 else
9006 NM="${ncn_tool_prefix}$2"
9007 fi
9008fi
9009
9010
9011
9012if test -n "$RANLIB"; then
9013 ac_cv_prog_RANLIB=$RANLIB
9014elif test -n "$ac_cv_prog_RANLIB"; then
9015 RANLIB=$ac_cv_prog_RANLIB
9016fi
9017
9018if test -n "$ac_cv_prog_RANLIB"; then
9019 for ncn_progname in ranlib; do
9020 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9021set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9023$as_echo_n "checking for $ac_word... " >&6; }
9024if test "${ac_cv_prog_RANLIB+set}" = set; then :
9025 $as_echo_n "(cached) " >&6
9a819804
AO
9026else
9027 if test -n "$RANLIB"; then
9028 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9029else
9030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9031for as_dir in $PATH
9032do
9033 IFS=$as_save_IFS
9034 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9035 for ac_exec_ext in '' $ac_executable_extensions; do
9036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9037 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 9038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9039 break 2
9040 fi
9041done
81ecdfbb
RW
9042 done
9043IFS=$as_save_IFS
9a819804
AO
9044
9045fi
9046fi
9047RANLIB=$ac_cv_prog_RANLIB
9048if test -n "$RANLIB"; then
81ecdfbb
RW
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9050$as_echo "$RANLIB" >&6; }
9a819804 9051else
81ecdfbb
RW
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9053$as_echo "no" >&6; }
9a819804
AO
9054fi
9055
81ecdfbb 9056
9a819804
AO
9057 done
9058fi
859789af 9059
9a819804 9060for ncn_progname in ranlib; do
05cbd757
PB
9061 if test -n "$ncn_tool_prefix"; then
9062 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9063set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9065$as_echo_n "checking for $ac_word... " >&6; }
9066if test "${ac_cv_prog_RANLIB+set}" = set; then :
9067 $as_echo_n "(cached) " >&6
859789af
AC
9068else
9069 if test -n "$RANLIB"; then
9070 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9071else
c6b750e1
DJ
9072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9073for as_dir in $PATH
9074do
9075 IFS=$as_save_IFS
9076 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9077 for ac_exec_ext in '' $ac_executable_extensions; do
9078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9079 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9081 break 2
9082 fi
9083done
81ecdfbb
RW
9084 done
9085IFS=$as_save_IFS
c6b750e1 9086
859789af
AC
9087fi
9088fi
c6b750e1 9089RANLIB=$ac_cv_prog_RANLIB
859789af 9090if test -n "$RANLIB"; then
81ecdfbb
RW
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9092$as_echo "$RANLIB" >&6; }
859789af 9093else
81ecdfbb
RW
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9095$as_echo "no" >&6; }
859789af
AC
9096fi
9097
81ecdfbb 9098
05cbd757
PB
9099 fi
9100 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9101 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9102set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9104$as_echo_n "checking for $ac_word... " >&6; }
9105if test "${ac_cv_prog_RANLIB+set}" = set; then :
9106 $as_echo_n "(cached) " >&6
859789af 9107else
05cbd757
PB
9108 if test -n "$RANLIB"; then
9109 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 9110else
c6b750e1
DJ
9111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9112for as_dir in $PATH
9113do
9114 IFS=$as_save_IFS
9115 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9116 for ac_exec_ext in '' $ac_executable_extensions; do
9117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9118 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 9119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9120 break 2
9121 fi
9122done
81ecdfbb
RW
9123 done
9124IFS=$as_save_IFS
c6b750e1 9125
859789af
AC
9126fi
9127fi
c6b750e1 9128RANLIB=$ac_cv_prog_RANLIB
05cbd757 9129if test -n "$RANLIB"; then
81ecdfbb
RW
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9131$as_echo "$RANLIB" >&6; }
859789af 9132else
81ecdfbb
RW
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9134$as_echo "no" >&6; }
859789af 9135fi
c6b750e1 9136
81ecdfbb 9137
859789af 9138 fi
05cbd757
PB
9139 test -n "$ac_cv_prog_RANLIB" && break
9140done
9141
9142if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 9143 RANLIB="true"
859789af
AC
9144fi
9145
9a819804
AO
9146
9147
9148if test -n "$STRIP"; then
9149 ac_cv_prog_STRIP=$STRIP
9150elif test -n "$ac_cv_prog_STRIP"; then
9151 STRIP=$ac_cv_prog_STRIP
9152fi
9153
9154if test -n "$ac_cv_prog_STRIP"; then
9155 for ncn_progname in strip; do
9156 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9157set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9159$as_echo_n "checking for $ac_word... " >&6; }
9160if test "${ac_cv_prog_STRIP+set}" = set; then :
9161 $as_echo_n "(cached) " >&6
9a819804
AO
9162else
9163 if test -n "$STRIP"; then
9164 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9165else
9166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9167for as_dir in $PATH
9168do
9169 IFS=$as_save_IFS
9170 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9171 for ac_exec_ext in '' $ac_executable_extensions; do
9172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9173 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9175 break 2
9176 fi
9177done
81ecdfbb
RW
9178 done
9179IFS=$as_save_IFS
9a819804
AO
9180
9181fi
9182fi
9183STRIP=$ac_cv_prog_STRIP
9184if test -n "$STRIP"; then
81ecdfbb
RW
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9186$as_echo "$STRIP" >&6; }
9a819804 9187else
81ecdfbb
RW
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9189$as_echo "no" >&6; }
9a819804
AO
9190fi
9191
81ecdfbb 9192
9a819804
AO
9193 done
9194fi
9195
9196for ncn_progname in strip; do
be01d343
PB
9197 if test -n "$ncn_tool_prefix"; then
9198 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9199set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9201$as_echo_n "checking for $ac_word... " >&6; }
9202if test "${ac_cv_prog_STRIP+set}" = set; then :
9203 $as_echo_n "(cached) " >&6
be01d343
PB
9204else
9205 if test -n "$STRIP"; then
9206 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9207else
c6b750e1
DJ
9208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9209for as_dir in $PATH
9210do
9211 IFS=$as_save_IFS
9212 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9213 for ac_exec_ext in '' $ac_executable_extensions; do
9214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9215 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9217 break 2
9218 fi
9219done
81ecdfbb
RW
9220 done
9221IFS=$as_save_IFS
c6b750e1 9222
be01d343
PB
9223fi
9224fi
c6b750e1 9225STRIP=$ac_cv_prog_STRIP
be01d343 9226if test -n "$STRIP"; then
81ecdfbb
RW
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9228$as_echo "$STRIP" >&6; }
be01d343 9229else
81ecdfbb
RW
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9231$as_echo "no" >&6; }
be01d343
PB
9232fi
9233
81ecdfbb 9234
be01d343
PB
9235 fi
9236 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9237 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9238set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9240$as_echo_n "checking for $ac_word... " >&6; }
9241if test "${ac_cv_prog_STRIP+set}" = set; then :
9242 $as_echo_n "(cached) " >&6
be01d343
PB
9243else
9244 if test -n "$STRIP"; then
9245 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9246else
c6b750e1
DJ
9247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9248for as_dir in $PATH
9249do
9250 IFS=$as_save_IFS
9251 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9252 for ac_exec_ext in '' $ac_executable_extensions; do
9253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9254 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9256 break 2
9257 fi
9258done
81ecdfbb
RW
9259 done
9260IFS=$as_save_IFS
c6b750e1 9261
be01d343
PB
9262fi
9263fi
c6b750e1 9264STRIP=$ac_cv_prog_STRIP
be01d343 9265if test -n "$STRIP"; then
81ecdfbb
RW
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9267$as_echo "$STRIP" >&6; }
be01d343 9268else
81ecdfbb
RW
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9270$as_echo "no" >&6; }
be01d343 9271fi
c6b750e1 9272
81ecdfbb 9273
be01d343
PB
9274 fi
9275 test -n "$ac_cv_prog_STRIP" && break
9276done
9277
9278if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 9279 STRIP="true"
be01d343
PB
9280fi
9281
9a819804
AO
9282
9283
9284if test -n "$WINDRES"; then
9285 ac_cv_prog_WINDRES=$WINDRES
9286elif test -n "$ac_cv_prog_WINDRES"; then
9287 WINDRES=$ac_cv_prog_WINDRES
9288fi
9289
9290if test -n "$ac_cv_prog_WINDRES"; then
9291 for ncn_progname in windres; do
9292 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9293set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9295$as_echo_n "checking for $ac_word... " >&6; }
9296if test "${ac_cv_prog_WINDRES+set}" = set; then :
9297 $as_echo_n "(cached) " >&6
9a819804
AO
9298else
9299 if test -n "$WINDRES"; then
9300 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9301else
9302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9303for as_dir in $PATH
9304do
9305 IFS=$as_save_IFS
9306 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9307 for ac_exec_ext in '' $ac_executable_extensions; do
9308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9309 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9311 break 2
9312 fi
9313done
81ecdfbb
RW
9314 done
9315IFS=$as_save_IFS
9a819804
AO
9316
9317fi
9318fi
9319WINDRES=$ac_cv_prog_WINDRES
9320if test -n "$WINDRES"; then
81ecdfbb
RW
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9322$as_echo "$WINDRES" >&6; }
9a819804 9323else
81ecdfbb
RW
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9325$as_echo "no" >&6; }
9a819804
AO
9326fi
9327
81ecdfbb 9328
9a819804
AO
9329 done
9330fi
9331
9332for ncn_progname in windres; do
05cbd757
PB
9333 if test -n "$ncn_tool_prefix"; then
9334 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9335set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9337$as_echo_n "checking for $ac_word... " >&6; }
9338if test "${ac_cv_prog_WINDRES+set}" = set; then :
9339 $as_echo_n "(cached) " >&6
859789af
AC
9340else
9341 if test -n "$WINDRES"; then
9342 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9343else
c6b750e1
DJ
9344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9345for as_dir in $PATH
9346do
9347 IFS=$as_save_IFS
9348 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9349 for ac_exec_ext in '' $ac_executable_extensions; do
9350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9351 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9353 break 2
9354 fi
9355done
81ecdfbb
RW
9356 done
9357IFS=$as_save_IFS
c6b750e1 9358
859789af
AC
9359fi
9360fi
c6b750e1 9361WINDRES=$ac_cv_prog_WINDRES
859789af 9362if test -n "$WINDRES"; then
81ecdfbb
RW
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9364$as_echo "$WINDRES" >&6; }
859789af 9365else
81ecdfbb
RW
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9367$as_echo "no" >&6; }
859789af
AC
9368fi
9369
81ecdfbb 9370
05cbd757
PB
9371 fi
9372 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9373 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9374set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9376$as_echo_n "checking for $ac_word... " >&6; }
9377if test "${ac_cv_prog_WINDRES+set}" = set; then :
9378 $as_echo_n "(cached) " >&6
859789af 9379else
05cbd757
PB
9380 if test -n "$WINDRES"; then
9381 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 9382else
c6b750e1
DJ
9383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9384for as_dir in $PATH
9385do
9386 IFS=$as_save_IFS
9387 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9388 for ac_exec_ext in '' $ac_executable_extensions; do
9389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9390 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9392 break 2
9393 fi
9394done
81ecdfbb
RW
9395 done
9396IFS=$as_save_IFS
c6b750e1 9397
859789af
AC
9398fi
9399fi
c6b750e1 9400WINDRES=$ac_cv_prog_WINDRES
05cbd757 9401if test -n "$WINDRES"; then
81ecdfbb
RW
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9403$as_echo "$WINDRES" >&6; }
859789af 9404else
81ecdfbb
RW
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9406$as_echo "no" >&6; }
859789af 9407fi
c6b750e1 9408
81ecdfbb 9409
05cbd757
PB
9410 fi
9411 test -n "$ac_cv_prog_WINDRES" && break
9412done
9413
9414if test -z "$ac_cv_prog_WINDRES" ; then
9415 set dummy windres
9416 if test $build = $host ; then
9417 WINDRES="$2"
859789af 9418 else
05cbd757 9419 WINDRES="${ncn_tool_prefix}$2"
859789af 9420 fi
859789af
AC
9421fi
9422
9a819804
AO
9423
9424
0c24b341
NC
9425if test -n "$WINDMC"; then
9426 ac_cv_prog_WINDMC=$WINDMC
9427elif test -n "$ac_cv_prog_WINDMC"; then
9428 WINDMC=$ac_cv_prog_WINDMC
9429fi
9430
9431if test -n "$ac_cv_prog_WINDMC"; then
9432 for ncn_progname in windmc; do
9433 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9434set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9436$as_echo_n "checking for $ac_word... " >&6; }
9437if test "${ac_cv_prog_WINDMC+set}" = set; then :
9438 $as_echo_n "(cached) " >&6
0c24b341
NC
9439else
9440 if test -n "$WINDMC"; then
9441 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9442else
9443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9444for as_dir in $PATH
9445do
9446 IFS=$as_save_IFS
9447 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9448 for ac_exec_ext in '' $ac_executable_extensions; do
9449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9450 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9452 break 2
9453 fi
9454done
81ecdfbb
RW
9455 done
9456IFS=$as_save_IFS
0c24b341
NC
9457
9458fi
9459fi
9460WINDMC=$ac_cv_prog_WINDMC
9461if test -n "$WINDMC"; then
81ecdfbb
RW
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9463$as_echo "$WINDMC" >&6; }
0c24b341 9464else
81ecdfbb
RW
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9466$as_echo "no" >&6; }
0c24b341
NC
9467fi
9468
81ecdfbb 9469
0c24b341
NC
9470 done
9471fi
9472
9473for ncn_progname in windmc; do
9474 if test -n "$ncn_tool_prefix"; then
9475 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9476set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9478$as_echo_n "checking for $ac_word... " >&6; }
9479if test "${ac_cv_prog_WINDMC+set}" = set; then :
9480 $as_echo_n "(cached) " >&6
0c24b341
NC
9481else
9482 if test -n "$WINDMC"; then
9483 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9484else
9485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9486for as_dir in $PATH
9487do
9488 IFS=$as_save_IFS
9489 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9490 for ac_exec_ext in '' $ac_executable_extensions; do
9491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9492 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9494 break 2
9495 fi
9496done
81ecdfbb
RW
9497 done
9498IFS=$as_save_IFS
0c24b341
NC
9499
9500fi
9501fi
9502WINDMC=$ac_cv_prog_WINDMC
9503if test -n "$WINDMC"; then
81ecdfbb
RW
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9505$as_echo "$WINDMC" >&6; }
0c24b341 9506else
81ecdfbb
RW
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9508$as_echo "no" >&6; }
0c24b341
NC
9509fi
9510
81ecdfbb 9511
0c24b341
NC
9512 fi
9513 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9514 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9515set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9517$as_echo_n "checking for $ac_word... " >&6; }
9518if test "${ac_cv_prog_WINDMC+set}" = set; then :
9519 $as_echo_n "(cached) " >&6
0c24b341
NC
9520else
9521 if test -n "$WINDMC"; then
9522 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9523else
9524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9525for as_dir in $PATH
9526do
9527 IFS=$as_save_IFS
9528 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9529 for ac_exec_ext in '' $ac_executable_extensions; do
9530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9531 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9533 break 2
9534 fi
9535done
81ecdfbb
RW
9536 done
9537IFS=$as_save_IFS
0c24b341
NC
9538
9539fi
9540fi
9541WINDMC=$ac_cv_prog_WINDMC
9542if test -n "$WINDMC"; then
81ecdfbb
RW
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9544$as_echo "$WINDMC" >&6; }
0c24b341 9545else
81ecdfbb
RW
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9547$as_echo "no" >&6; }
0c24b341
NC
9548fi
9549
81ecdfbb 9550
0c24b341
NC
9551 fi
9552 test -n "$ac_cv_prog_WINDMC" && break
9553done
9554
9555if test -z "$ac_cv_prog_WINDMC" ; then
9556 set dummy windmc
9557 if test $build = $host ; then
9558 WINDMC="$2"
9559 else
9560 WINDMC="${ncn_tool_prefix}$2"
9561 fi
9562fi
9563
9564
9565
9a819804
AO
9566if test -n "$OBJCOPY"; then
9567 ac_cv_prog_OBJCOPY=$OBJCOPY
9568elif test -n "$ac_cv_prog_OBJCOPY"; then
9569 OBJCOPY=$ac_cv_prog_OBJCOPY
9570fi
9571
9572if test -n "$ac_cv_prog_OBJCOPY"; then
9573 for ncn_progname in objcopy; do
9574 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9575set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9577$as_echo_n "checking for $ac_word... " >&6; }
9578if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9579 $as_echo_n "(cached) " >&6
9a819804
AO
9580else
9581 if test -n "$OBJCOPY"; then
9582 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9583else
9584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9585for as_dir in $PATH
9586do
9587 IFS=$as_save_IFS
9588 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9589 for ac_exec_ext in '' $ac_executable_extensions; do
9590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9591 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9593 break 2
9594 fi
9595done
81ecdfbb
RW
9596 done
9597IFS=$as_save_IFS
9a819804
AO
9598
9599fi
9600fi
9601OBJCOPY=$ac_cv_prog_OBJCOPY
9602if test -n "$OBJCOPY"; then
81ecdfbb
RW
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9604$as_echo "$OBJCOPY" >&6; }
9a819804 9605else
81ecdfbb
RW
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9607$as_echo "no" >&6; }
9a819804
AO
9608fi
9609
81ecdfbb 9610
9a819804
AO
9611 done
9612fi
9613
9614for ncn_progname in objcopy; do
05cbd757
PB
9615 if test -n "$ncn_tool_prefix"; then
9616 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9617set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9619$as_echo_n "checking for $ac_word... " >&6; }
9620if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9621 $as_echo_n "(cached) " >&6
859789af
AC
9622else
9623 if test -n "$OBJCOPY"; then
9624 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9625else
c6b750e1
DJ
9626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9627for as_dir in $PATH
9628do
9629 IFS=$as_save_IFS
9630 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9631 for ac_exec_ext in '' $ac_executable_extensions; do
9632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9633 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9635 break 2
9636 fi
9637done
81ecdfbb
RW
9638 done
9639IFS=$as_save_IFS
c6b750e1 9640
859789af
AC
9641fi
9642fi
c6b750e1 9643OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9644if test -n "$OBJCOPY"; then
81ecdfbb
RW
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9646$as_echo "$OBJCOPY" >&6; }
859789af 9647else
81ecdfbb
RW
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9649$as_echo "no" >&6; }
859789af
AC
9650fi
9651
81ecdfbb 9652
05cbd757
PB
9653 fi
9654 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9655 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9656set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9658$as_echo_n "checking for $ac_word... " >&6; }
9659if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9660 $as_echo_n "(cached) " >&6
859789af 9661else
05cbd757
PB
9662 if test -n "$OBJCOPY"; then
9663 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 9664else
c6b750e1
DJ
9665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9666for as_dir in $PATH
9667do
9668 IFS=$as_save_IFS
9669 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9670 for ac_exec_ext in '' $ac_executable_extensions; do
9671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9672 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9674 break 2
9675 fi
9676done
81ecdfbb
RW
9677 done
9678IFS=$as_save_IFS
c6b750e1 9679
859789af
AC
9680fi
9681fi
c6b750e1 9682OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 9683if test -n "$OBJCOPY"; then
81ecdfbb
RW
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9685$as_echo "$OBJCOPY" >&6; }
859789af 9686else
81ecdfbb
RW
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9688$as_echo "no" >&6; }
859789af 9689fi
c6b750e1 9690
81ecdfbb 9691
05cbd757
PB
9692 fi
9693 test -n "$ac_cv_prog_OBJCOPY" && break
9694done
9695
9696if test -z "$ac_cv_prog_OBJCOPY" ; then
9697 set dummy objcopy
9698 if test $build = $host ; then
9699 OBJCOPY="$2"
859789af 9700 else
05cbd757 9701 OBJCOPY="${ncn_tool_prefix}$2"
859789af 9702 fi
859789af
AC
9703fi
9704
9a819804
AO
9705
9706
9707if test -n "$OBJDUMP"; then
9708 ac_cv_prog_OBJDUMP=$OBJDUMP
9709elif test -n "$ac_cv_prog_OBJDUMP"; then
9710 OBJDUMP=$ac_cv_prog_OBJDUMP
9711fi
9712
9713if test -n "$ac_cv_prog_OBJDUMP"; then
9714 for ncn_progname in objdump; do
9715 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9716set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9718$as_echo_n "checking for $ac_word... " >&6; }
9719if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9720 $as_echo_n "(cached) " >&6
9a819804
AO
9721else
9722 if test -n "$OBJDUMP"; then
9723 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9724else
9725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9726for as_dir in $PATH
9727do
9728 IFS=$as_save_IFS
9729 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9730 for ac_exec_ext in '' $ac_executable_extensions; do
9731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9732 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9734 break 2
9735 fi
9736done
81ecdfbb
RW
9737 done
9738IFS=$as_save_IFS
9a819804
AO
9739
9740fi
9741fi
9742OBJDUMP=$ac_cv_prog_OBJDUMP
9743if test -n "$OBJDUMP"; then
81ecdfbb
RW
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9745$as_echo "$OBJDUMP" >&6; }
9a819804 9746else
81ecdfbb
RW
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9748$as_echo "no" >&6; }
9a819804
AO
9749fi
9750
81ecdfbb 9751
9a819804
AO
9752 done
9753fi
9754
9755for ncn_progname in objdump; do
05cbd757
PB
9756 if test -n "$ncn_tool_prefix"; then
9757 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9758set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9760$as_echo_n "checking for $ac_word... " >&6; }
9761if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9762 $as_echo_n "(cached) " >&6
859789af
AC
9763else
9764 if test -n "$OBJDUMP"; then
9765 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9766else
c6b750e1
DJ
9767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9768for as_dir in $PATH
9769do
9770 IFS=$as_save_IFS
9771 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9772 for ac_exec_ext in '' $ac_executable_extensions; do
9773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9774 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9776 break 2
9777 fi
9778done
81ecdfbb
RW
9779 done
9780IFS=$as_save_IFS
c6b750e1 9781
859789af
AC
9782fi
9783fi
c6b750e1 9784OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 9785if test -n "$OBJDUMP"; then
81ecdfbb
RW
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9787$as_echo "$OBJDUMP" >&6; }
859789af 9788else
81ecdfbb
RW
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9790$as_echo "no" >&6; }
859789af
AC
9791fi
9792
81ecdfbb 9793
05cbd757
PB
9794 fi
9795 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9796 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9797set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9799$as_echo_n "checking for $ac_word... " >&6; }
9800if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9801 $as_echo_n "(cached) " >&6
859789af 9802else
05cbd757
PB
9803 if test -n "$OBJDUMP"; then
9804 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 9805else
c6b750e1
DJ
9806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9807for as_dir in $PATH
9808do
9809 IFS=$as_save_IFS
9810 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9811 for ac_exec_ext in '' $ac_executable_extensions; do
9812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9813 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9815 break 2
9816 fi
9817done
81ecdfbb
RW
9818 done
9819IFS=$as_save_IFS
c6b750e1 9820
859789af
AC
9821fi
9822fi
c6b750e1 9823OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 9824if test -n "$OBJDUMP"; then
81ecdfbb
RW
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9826$as_echo "$OBJDUMP" >&6; }
859789af 9827else
81ecdfbb
RW
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9829$as_echo "no" >&6; }
859789af 9830fi
c6b750e1 9831
81ecdfbb 9832
05cbd757
PB
9833 fi
9834 test -n "$ac_cv_prog_OBJDUMP" && break
9835done
9836
9837if test -z "$ac_cv_prog_OBJDUMP" ; then
9838 set dummy objdump
9839 if test $build = $host ; then
9840 OBJDUMP="$2"
859789af 9841 else
05cbd757 9842 OBJDUMP="${ncn_tool_prefix}$2"
859789af 9843 fi
859789af
AC
9844fi
9845
a0da8069
NN
9846
9847
b121d7d4
DD
9848if test -n "$READELF"; then
9849 ac_cv_prog_READELF=$READELF
9850elif test -n "$ac_cv_prog_READELF"; then
9851 READELF=$ac_cv_prog_READELF
9852fi
9853
9854if test -n "$ac_cv_prog_READELF"; then
9855 for ncn_progname in readelf; do
9856 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9857set dummy ${ncn_progname}; ac_word=$2
9858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9859$as_echo_n "checking for $ac_word... " >&6; }
9860if test "${ac_cv_prog_READELF+set}" = set; then :
9861 $as_echo_n "(cached) " >&6
9862else
9863 if test -n "$READELF"; then
9864 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9865else
9866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9867for as_dir in $PATH
9868do
9869 IFS=$as_save_IFS
9870 test -z "$as_dir" && as_dir=.
9871 for ac_exec_ext in '' $ac_executable_extensions; do
9872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9873 ac_cv_prog_READELF="${ncn_progname}"
9874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9875 break 2
9876 fi
9877done
9878 done
9879IFS=$as_save_IFS
9880
9881fi
9882fi
9883READELF=$ac_cv_prog_READELF
9884if test -n "$READELF"; then
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9886$as_echo "$READELF" >&6; }
9887else
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9889$as_echo "no" >&6; }
9890fi
9891
9892
9893 done
9894fi
9895
9896for ncn_progname in readelf; do
9897 if test -n "$ncn_tool_prefix"; then
9898 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9899set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9901$as_echo_n "checking for $ac_word... " >&6; }
9902if test "${ac_cv_prog_READELF+set}" = set; then :
9903 $as_echo_n "(cached) " >&6
9904else
9905 if test -n "$READELF"; then
9906 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9907else
9908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9909for as_dir in $PATH
9910do
9911 IFS=$as_save_IFS
9912 test -z "$as_dir" && as_dir=.
9913 for ac_exec_ext in '' $ac_executable_extensions; do
9914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9915 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9917 break 2
9918 fi
9919done
9920 done
9921IFS=$as_save_IFS
9922
9923fi
9924fi
9925READELF=$ac_cv_prog_READELF
9926if test -n "$READELF"; then
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9928$as_echo "$READELF" >&6; }
9929else
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9931$as_echo "no" >&6; }
9932fi
9933
9934
9935 fi
9936 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9937 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9938set dummy ${ncn_progname}; ac_word=$2
9939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9940$as_echo_n "checking for $ac_word... " >&6; }
9941if test "${ac_cv_prog_READELF+set}" = set; then :
9942 $as_echo_n "(cached) " >&6
9943else
9944 if test -n "$READELF"; then
9945 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9946else
9947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9948for as_dir in $PATH
9949do
9950 IFS=$as_save_IFS
9951 test -z "$as_dir" && as_dir=.
9952 for ac_exec_ext in '' $ac_executable_extensions; do
9953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9954 ac_cv_prog_READELF="${ncn_progname}"
9955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9956 break 2
9957 fi
9958done
9959 done
9960IFS=$as_save_IFS
9961
9962fi
9963fi
9964READELF=$ac_cv_prog_READELF
9965if test -n "$READELF"; then
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9967$as_echo "$READELF" >&6; }
9968else
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9970$as_echo "no" >&6; }
9971fi
9972
9973
9974 fi
9975 test -n "$ac_cv_prog_READELF" && break
9976done
9977
9978if test -z "$ac_cv_prog_READELF" ; then
9979 set dummy readelf
9980 if test $build = $host ; then
9981 READELF="$2"
9982 else
9983 READELF="${ncn_tool_prefix}$2"
9984 fi
9985fi
9986
9987
9988
a0da8069
NN
9989
9990
9991
be01d343 9992# Target tools.
c6b750e1 9993
81ecdfbb
RW
9994# Check whether --with-build-time-tools was given.
9995if test "${with_build_time_tools+set}" = set; then :
9996 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
9997 x/*) ;;
9998 *)
9999 with_build_time_tools=
81ecdfbb
RW
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10001$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
10002 ;;
10003 esac
859789af 10004else
2429c060 10005 with_build_time_tools=
81ecdfbb
RW
10006fi
10007
859789af 10008
9a819804
AO
10009
10010
10011if test -n "$CC_FOR_TARGET"; then
10012 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10013elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10014 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10015fi
10016
10017if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10018 for ncn_progname in cc gcc; do
10019 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10020set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10022$as_echo_n "checking for $ac_word... " >&6; }
10023if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10024 $as_echo_n "(cached) " >&6
9a819804
AO
10025else
10026 if test -n "$CC_FOR_TARGET"; then
10027 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10028else
10029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10030for as_dir in $PATH
10031do
10032 IFS=$as_save_IFS
10033 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10034 for ac_exec_ext in '' $ac_executable_extensions; do
10035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10036 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10038 break 2
10039 fi
10040done
81ecdfbb
RW
10041 done
10042IFS=$as_save_IFS
9a819804
AO
10043
10044fi
10045fi
10046CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10047if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10049$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 10050else
81ecdfbb
RW
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10052$as_echo "no" >&6; }
9a819804
AO
10053fi
10054
81ecdfbb 10055
9a819804
AO
10056 done
10057fi
10058
10059if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10060 for ncn_progname in cc gcc; do
81ecdfbb
RW
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10062$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10063 if test -x $with_build_time_tools/${ncn_progname}; then
10064 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10066$as_echo "yes" >&6; }
cac3d6c4 10067 break
2429c060 10068 else
81ecdfbb
RW
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10070$as_echo "no" >&6; }
cac3d6c4
CM
10071 fi
10072 done
55db4b87
PB
10073fi
10074
2429c060
PB
10075if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10076 for ncn_progname in cc gcc; do
10077 if test -n "$ncn_target_tool_prefix"; then
10078 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10079set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10081$as_echo_n "checking for $ac_word... " >&6; }
10082if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10083 $as_echo_n "(cached) " >&6
55db4b87
PB
10084else
10085 if test -n "$CC_FOR_TARGET"; then
10086 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10087else
c6b750e1
DJ
10088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10089for as_dir in $PATH
10090do
10091 IFS=$as_save_IFS
10092 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10093 for ac_exec_ext in '' $ac_executable_extensions; do
10094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10095 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10097 break 2
10098 fi
10099done
81ecdfbb
RW
10100 done
10101IFS=$as_save_IFS
c6b750e1 10102
55db4b87
PB
10103fi
10104fi
c6b750e1 10105CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 10106if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10108$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10109else
81ecdfbb
RW
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10111$as_echo "no" >&6; }
55db4b87
PB
10112fi
10113
81ecdfbb 10114
2429c060
PB
10115 fi
10116 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10117 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10118set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10120$as_echo_n "checking for $ac_word... " >&6; }
10121if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10122 $as_echo_n "(cached) " >&6
55db4b87 10123else
05cbd757
PB
10124 if test -n "$CC_FOR_TARGET"; then
10125 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 10126else
c6b750e1
DJ
10127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10128for as_dir in $PATH
10129do
10130 IFS=$as_save_IFS
10131 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10132 for ac_exec_ext in '' $ac_executable_extensions; do
10133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10134 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10136 break 2
10137 fi
10138done
81ecdfbb
RW
10139 done
10140IFS=$as_save_IFS
c6b750e1 10141
55db4b87
PB
10142fi
10143fi
c6b750e1 10144CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 10145if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10147$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10148else
81ecdfbb
RW
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10150$as_echo "no" >&6; }
55db4b87 10151fi
c6b750e1 10152
81ecdfbb 10153
2429c060
PB
10154 fi
10155 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10156 done
10157fi
c6b750e1 10158
05cbd757
PB
10159if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10160 set dummy cc gcc
10161 if test $build = $target ; then
10162 CC_FOR_TARGET="$2"
55db4b87 10163 else
05cbd757 10164 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10165 fi
d3f5afc4
MS
10166else
10167 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
10168fi
10169
9a819804
AO
10170
10171
10172if test -n "$CXX_FOR_TARGET"; then
10173 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10174elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10175 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10176fi
10177
10178if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10179 for ncn_progname in c++ g++ cxx gxx; do
10180 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10181set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10183$as_echo_n "checking for $ac_word... " >&6; }
10184if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10185 $as_echo_n "(cached) " >&6
9a819804
AO
10186else
10187 if test -n "$CXX_FOR_TARGET"; then
10188 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10189else
10190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10191for as_dir in $PATH
10192do
10193 IFS=$as_save_IFS
10194 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10195 for ac_exec_ext in '' $ac_executable_extensions; do
10196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10197 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10199 break 2
10200 fi
10201done
81ecdfbb
RW
10202 done
10203IFS=$as_save_IFS
9a819804
AO
10204
10205fi
10206fi
10207CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10208if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10210$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 10211else
81ecdfbb
RW
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10213$as_echo "no" >&6; }
9a819804
AO
10214fi
10215
81ecdfbb 10216
9a819804
AO
10217 done
10218fi
10219
10220if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10221 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10223$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10224 if test -x $with_build_time_tools/${ncn_progname}; then
10225 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10227$as_echo "yes" >&6; }
2429c060
PB
10228 break
10229 else
81ecdfbb
RW
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10231$as_echo "no" >&6; }
2429c060
PB
10232 fi
10233 done
10234fi
10235
10236if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10237 for ncn_progname in c++ g++ cxx gxx; do
10238 if test -n "$ncn_target_tool_prefix"; then
10239 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10240set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10242$as_echo_n "checking for $ac_word... " >&6; }
10243if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10244 $as_echo_n "(cached) " >&6
55db4b87
PB
10245else
10246 if test -n "$CXX_FOR_TARGET"; then
10247 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10248else
c6b750e1
DJ
10249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10250for as_dir in $PATH
10251do
10252 IFS=$as_save_IFS
10253 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10254 for ac_exec_ext in '' $ac_executable_extensions; do
10255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10256 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10258 break 2
10259 fi
10260done
81ecdfbb
RW
10261 done
10262IFS=$as_save_IFS
c6b750e1 10263
55db4b87
PB
10264fi
10265fi
c6b750e1 10266CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 10267if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10269$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10270else
81ecdfbb
RW
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10272$as_echo "no" >&6; }
55db4b87
PB
10273fi
10274
81ecdfbb 10275
2429c060
PB
10276 fi
10277 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10278 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10279set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10281$as_echo_n "checking for $ac_word... " >&6; }
10282if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10283 $as_echo_n "(cached) " >&6
55db4b87 10284else
05cbd757
PB
10285 if test -n "$CXX_FOR_TARGET"; then
10286 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 10287else
c6b750e1
DJ
10288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10289for as_dir in $PATH
10290do
10291 IFS=$as_save_IFS
10292 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10293 for ac_exec_ext in '' $ac_executable_extensions; do
10294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10295 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10297 break 2
10298 fi
10299done
81ecdfbb
RW
10300 done
10301IFS=$as_save_IFS
c6b750e1 10302
55db4b87
PB
10303fi
10304fi
c6b750e1 10305CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 10306if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10308$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10309else
81ecdfbb
RW
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10311$as_echo "no" >&6; }
55db4b87 10312fi
c6b750e1 10313
81ecdfbb 10314
2429c060
PB
10315 fi
10316 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10317 done
10318fi
c6b750e1 10319
05cbd757
PB
10320if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10321 set dummy c++ g++ cxx gxx
10322 if test $build = $target ; then
10323 CXX_FOR_TARGET="$2"
55db4b87 10324 else
05cbd757 10325 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10326 fi
d3f5afc4
MS
10327else
10328 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
10329fi
10330
9a819804
AO
10331
10332
10333if test -n "$GCC_FOR_TARGET"; then
10334 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10335elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10336 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10337fi
10338
10339if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10340 for ncn_progname in gcc; do
10341 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10342set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10344$as_echo_n "checking for $ac_word... " >&6; }
10345if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10346 $as_echo_n "(cached) " >&6
9a819804
AO
10347else
10348 if test -n "$GCC_FOR_TARGET"; then
10349 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10350else
10351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10352for as_dir in $PATH
10353do
10354 IFS=$as_save_IFS
10355 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10356 for ac_exec_ext in '' $ac_executable_extensions; do
10357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10358 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10360 break 2
10361 fi
10362done
81ecdfbb
RW
10363 done
10364IFS=$as_save_IFS
9a819804
AO
10365
10366fi
10367fi
10368GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10369if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10371$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 10372else
81ecdfbb
RW
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10374$as_echo "no" >&6; }
9a819804
AO
10375fi
10376
81ecdfbb 10377
9a819804
AO
10378 done
10379fi
10380
10381if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10382 for ncn_progname in gcc; do
81ecdfbb
RW
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10384$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10385 if test -x $with_build_time_tools/${ncn_progname}; then
10386 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10388$as_echo "yes" >&6; }
2429c060
PB
10389 break
10390 else
81ecdfbb
RW
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10392$as_echo "no" >&6; }
2429c060
PB
10393 fi
10394 done
10395fi
10396
10397if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10398 for ncn_progname in gcc; do
10399 if test -n "$ncn_target_tool_prefix"; then
10400 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10401set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10403$as_echo_n "checking for $ac_word... " >&6; }
10404if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10405 $as_echo_n "(cached) " >&6
859789af 10406else
2429c060
PB
10407 if test -n "$GCC_FOR_TARGET"; then
10408 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10409else
c6b750e1
DJ
10410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10411for as_dir in $PATH
10412do
10413 IFS=$as_save_IFS
10414 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10415 for ac_exec_ext in '' $ac_executable_extensions; do
10416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10417 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10419 break 2
10420 fi
10421done
81ecdfbb
RW
10422 done
10423IFS=$as_save_IFS
c6b750e1 10424
55db4b87
PB
10425fi
10426fi
c6b750e1 10427GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10428if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10430$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10431else
81ecdfbb
RW
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10433$as_echo "no" >&6; }
55db4b87
PB
10434fi
10435
81ecdfbb 10436
2429c060
PB
10437 fi
10438 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10439 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10440set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10442$as_echo_n "checking for $ac_word... " >&6; }
10443if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10444 $as_echo_n "(cached) " >&6
55db4b87 10445else
05cbd757
PB
10446 if test -n "$GCC_FOR_TARGET"; then
10447 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10448else
c6b750e1
DJ
10449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10450for as_dir in $PATH
10451do
10452 IFS=$as_save_IFS
10453 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10454 for ac_exec_ext in '' $ac_executable_extensions; do
10455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10456 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10458 break 2
10459 fi
10460done
81ecdfbb
RW
10461 done
10462IFS=$as_save_IFS
c6b750e1 10463
55db4b87
PB
10464fi
10465fi
c6b750e1 10466GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10467if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10469$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10470else
81ecdfbb
RW
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10472$as_echo "no" >&6; }
55db4b87 10473fi
c6b750e1 10474
81ecdfbb 10475
2429c060
PB
10476 fi
10477 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10478 done
10479fi
c6b750e1 10480
05cbd757
PB
10481if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10482 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10483else
10484 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10485fi
10486
9a819804
AO
10487
10488
10489if test -n "$GCJ_FOR_TARGET"; then
10490 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10491elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10492 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10493fi
10494
10495if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10496 for ncn_progname in gcj; do
10497 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10498set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10500$as_echo_n "checking for $ac_word... " >&6; }
10501if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10502 $as_echo_n "(cached) " >&6
9a819804
AO
10503else
10504 if test -n "$GCJ_FOR_TARGET"; then
10505 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10506else
10507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10508for as_dir in $PATH
10509do
10510 IFS=$as_save_IFS
10511 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10512 for ac_exec_ext in '' $ac_executable_extensions; do
10513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10514 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10516 break 2
10517 fi
10518done
81ecdfbb
RW
10519 done
10520IFS=$as_save_IFS
9a819804
AO
10521
10522fi
10523fi
10524GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10525if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10527$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10528else
81ecdfbb
RW
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10530$as_echo "no" >&6; }
9a819804
AO
10531fi
10532
81ecdfbb 10533
9a819804
AO
10534 done
10535fi
10536
10537if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10538 for ncn_progname in gcj; do
81ecdfbb
RW
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10540$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10541 if test -x $with_build_time_tools/${ncn_progname}; then
10542 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10544$as_echo "yes" >&6; }
2429c060
PB
10545 break
10546 else
81ecdfbb
RW
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10548$as_echo "no" >&6; }
2429c060
PB
10549 fi
10550 done
10551fi
10552
10553if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10554 for ncn_progname in gcj; do
10555 if test -n "$ncn_target_tool_prefix"; then
10556 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10557set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10559$as_echo_n "checking for $ac_word... " >&6; }
10560if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10561 $as_echo_n "(cached) " >&6
55db4b87
PB
10562else
10563 if test -n "$GCJ_FOR_TARGET"; then
10564 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10565else
c6b750e1
DJ
10566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10567for as_dir in $PATH
10568do
10569 IFS=$as_save_IFS
10570 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10571 for ac_exec_ext in '' $ac_executable_extensions; do
10572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10573 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10575 break 2
10576 fi
10577done
81ecdfbb
RW
10578 done
10579IFS=$as_save_IFS
c6b750e1 10580
55db4b87
PB
10581fi
10582fi
9a819804
AO
10583GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10584if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10586$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10587else
81ecdfbb
RW
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10589$as_echo "no" >&6; }
9a819804
AO
10590fi
10591
81ecdfbb 10592
9a819804
AO
10593 fi
10594 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10595 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10596set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10598$as_echo_n "checking for $ac_word... " >&6; }
10599if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10600 $as_echo_n "(cached) " >&6
9a819804
AO
10601else
10602 if test -n "$GCJ_FOR_TARGET"; then
10603 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10604else
10605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10606for as_dir in $PATH
10607do
10608 IFS=$as_save_IFS
10609 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10610 for ac_exec_ext in '' $ac_executable_extensions; do
10611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10612 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10614 break 2
10615 fi
10616done
81ecdfbb
RW
10617 done
10618IFS=$as_save_IFS
9a819804
AO
10619
10620fi
10621fi
10622GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10623if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10625$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10626else
81ecdfbb
RW
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10628$as_echo "no" >&6; }
9a819804
AO
10629fi
10630
81ecdfbb 10631
9a819804
AO
10632 fi
10633 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10634 done
10635fi
10636
10637if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10638 set dummy gcj
10639 if test $build = $target ; then
10640 GCJ_FOR_TARGET="$2"
10641 else
10642 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10643 fi
d3f5afc4
MS
10644else
10645 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
10646fi
10647
10648
10649
10650if test -n "$GFORTRAN_FOR_TARGET"; then
10651 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10652elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10653 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10654fi
10655
9a819804
AO
10656if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10657 for ncn_progname in gfortran; do
10658 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10659set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10661$as_echo_n "checking for $ac_word... " >&6; }
10662if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10663 $as_echo_n "(cached) " >&6
55db4b87 10664else
9a819804
AO
10665 if test -n "$GFORTRAN_FOR_TARGET"; then
10666 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10667else
c6b750e1
DJ
10668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10669for as_dir in $PATH
10670do
10671 IFS=$as_save_IFS
10672 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10673 for ac_exec_ext in '' $ac_executable_extensions; do
10674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10675 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10677 break 2
10678 fi
10679done
81ecdfbb
RW
10680 done
10681IFS=$as_save_IFS
c6b750e1 10682
55db4b87
PB
10683fi
10684fi
9a819804
AO
10685GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10686if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10688$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10689else
81ecdfbb
RW
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10691$as_echo "no" >&6; }
55db4b87 10692fi
c6b750e1 10693
81ecdfbb 10694
2429c060
PB
10695 done
10696fi
c6b750e1 10697
9a819804 10698if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10699 for ncn_progname in gfortran; do
81ecdfbb
RW
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10701$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10702 if test -x $with_build_time_tools/${ncn_progname}; then
10703 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10705$as_echo "yes" >&6; }
2429c060
PB
10706 break
10707 else
81ecdfbb
RW
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10709$as_echo "no" >&6; }
2429c060
PB
10710 fi
10711 done
10712fi
10713
10714if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10715 for ncn_progname in gfortran; do
10716 if test -n "$ncn_target_tool_prefix"; then
10717 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10718set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10720$as_echo_n "checking for $ac_word... " >&6; }
10721if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10722 $as_echo_n "(cached) " >&6
55db4b87
PB
10723else
10724 if test -n "$GFORTRAN_FOR_TARGET"; then
10725 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10726else
c6b750e1
DJ
10727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10728for as_dir in $PATH
10729do
10730 IFS=$as_save_IFS
10731 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10732 for ac_exec_ext in '' $ac_executable_extensions; do
10733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10734 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10736 break 2
10737 fi
10738done
81ecdfbb
RW
10739 done
10740IFS=$as_save_IFS
c6b750e1 10741
55db4b87
PB
10742fi
10743fi
c6b750e1 10744GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 10745if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10747$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10748else
81ecdfbb
RW
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10750$as_echo "no" >&6; }
55db4b87
PB
10751fi
10752
81ecdfbb 10753
2429c060
PB
10754 fi
10755 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10756 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10757set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10759$as_echo_n "checking for $ac_word... " >&6; }
10760if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10761 $as_echo_n "(cached) " >&6
55db4b87 10762else
05cbd757 10763 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
10764 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10765else
10766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10767for as_dir in $PATH
10768do
10769 IFS=$as_save_IFS
10770 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10771 for ac_exec_ext in '' $ac_executable_extensions; do
10772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10773 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10775 break 2
10776 fi
10777done
81ecdfbb
RW
10778 done
10779IFS=$as_save_IFS
c6b750e1 10780
55db4b87
PB
10781fi
10782fi
c6b750e1 10783GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 10784if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10786$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10787else
81ecdfbb
RW
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10789$as_echo "no" >&6; }
55db4b87 10790fi
c6b750e1 10791
81ecdfbb 10792
2429c060
PB
10793 fi
10794 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10795 done
10796fi
c6b750e1 10797
05cbd757
PB
10798if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10799 set dummy gfortran
10800 if test $build = $target ; then
10801 GFORTRAN_FOR_TARGET="$2"
55db4b87 10802 else
05cbd757 10803 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10804 fi
d3f5afc4
MS
10805else
10806 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
10807fi
10808
2429c060
PB
10809
10810
e552509b
ILT
10811if test -n "$GOC_FOR_TARGET"; then
10812 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10813elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10814 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10815fi
10816
10817if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10818 for ncn_progname in gccgo; do
10819 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10820set dummy ${ncn_progname}; ac_word=$2
10821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10822$as_echo_n "checking for $ac_word... " >&6; }
10823if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10824 $as_echo_n "(cached) " >&6
10825else
10826 if test -n "$GOC_FOR_TARGET"; then
10827 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10828else
10829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10830for as_dir in $PATH
10831do
10832 IFS=$as_save_IFS
10833 test -z "$as_dir" && as_dir=.
10834 for ac_exec_ext in '' $ac_executable_extensions; do
10835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10836 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10838 break 2
10839 fi
10840done
10841 done
10842IFS=$as_save_IFS
10843
10844fi
10845fi
10846GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10847if test -n "$GOC_FOR_TARGET"; then
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10849$as_echo "$GOC_FOR_TARGET" >&6; }
10850else
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10852$as_echo "no" >&6; }
10853fi
10854
10855
10856 done
10857fi
10858
10859if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10860 for ncn_progname in gccgo; do
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10862$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10863 if test -x $with_build_time_tools/${ncn_progname}; then
10864 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10866$as_echo "yes" >&6; }
10867 break
10868 else
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10870$as_echo "no" >&6; }
10871 fi
10872 done
10873fi
10874
10875if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10876 for ncn_progname in gccgo; do
10877 if test -n "$ncn_target_tool_prefix"; then
10878 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10879set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10881$as_echo_n "checking for $ac_word... " >&6; }
10882if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10883 $as_echo_n "(cached) " >&6
10884else
10885 if test -n "$GOC_FOR_TARGET"; then
10886 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10887else
10888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10889for as_dir in $PATH
10890do
10891 IFS=$as_save_IFS
10892 test -z "$as_dir" && as_dir=.
10893 for ac_exec_ext in '' $ac_executable_extensions; do
10894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10895 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10897 break 2
10898 fi
10899done
10900 done
10901IFS=$as_save_IFS
10902
10903fi
10904fi
10905GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10906if test -n "$GOC_FOR_TARGET"; then
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10908$as_echo "$GOC_FOR_TARGET" >&6; }
10909else
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10911$as_echo "no" >&6; }
10912fi
10913
10914
10915 fi
10916 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10917 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10918set dummy ${ncn_progname}; ac_word=$2
10919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10920$as_echo_n "checking for $ac_word... " >&6; }
10921if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10922 $as_echo_n "(cached) " >&6
10923else
10924 if test -n "$GOC_FOR_TARGET"; then
10925 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10926else
10927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10928for as_dir in $PATH
10929do
10930 IFS=$as_save_IFS
10931 test -z "$as_dir" && as_dir=.
10932 for ac_exec_ext in '' $ac_executable_extensions; do
10933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10934 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10936 break 2
10937 fi
10938done
10939 done
10940IFS=$as_save_IFS
10941
10942fi
10943fi
10944GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10945if test -n "$GOC_FOR_TARGET"; then
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10947$as_echo "$GOC_FOR_TARGET" >&6; }
10948else
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10950$as_echo "no" >&6; }
10951fi
10952
10953
10954 fi
10955 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10956 done
10957fi
10958
10959if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10960 set dummy gccgo
10961 if test $build = $target ; then
10962 GOC_FOR_TARGET="$2"
10963 else
10964 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10965 fi
10966else
10967 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10968fi
10969
10970
10971
2429c060
PB
10972cat > conftest.c << \EOF
10973#ifdef __GNUC__
10974 gcc_yay;
10975#endif
10976EOF
10977if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10978 have_gcc_for_target=yes
859789af 10979else
2429c060
PB
10980 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10981 have_gcc_for_target=no
859789af 10982fi
2429c060
PB
10983rm conftest.c
10984
10985
10986
859789af 10987
2429c060
PB
10988if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10989 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10991$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10992 if test -x $with_build_time_tools/ar; then
10993 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10994 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10996$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 10997 else
81ecdfbb
RW
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10999$as_echo "no" >&6; }
3a35eeb3 11000 fi
2429c060
PB
11001 elif test $build != $host && test $have_gcc_for_target = yes; then
11002 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
11003 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11004 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 11005 fi
2429c060 11006fi
c6b750e1 11007if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11008 # Extract the first word of "ar", so it can be a program name with args.
11009set dummy ar; ac_word=$2
81ecdfbb
RW
11010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11011$as_echo_n "checking for $ac_word... " >&6; }
11012if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
11013 $as_echo_n "(cached) " >&6
859789af 11014else
c6b750e1
DJ
11015 case $AR_FOR_TARGET in
11016 [\\/]* | ?:[\\/]*)
2429c060
PB
11017 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11018 ;;
2429c060 11019 *)
c6b750e1
DJ
11020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11021for as_dir in $gcc_cv_tool_dirs
11022do
11023 IFS=$as_save_IFS
11024 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11025 for ac_exec_ext in '' $ac_executable_extensions; do
11026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11027 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11029 break 2
11030 fi
11031done
81ecdfbb
RW
11032 done
11033IFS=$as_save_IFS
c6b750e1 11034
2429c060
PB
11035 ;;
11036esac
859789af 11037fi
c6b750e1 11038AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 11039if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11041$as_echo "$AR_FOR_TARGET" >&6; }
859789af 11042else
81ecdfbb
RW
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11044$as_echo "no" >&6; }
859789af 11045fi
05cbd757 11046
81ecdfbb 11047
2429c060
PB
11048fi
11049if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
11050
11051
11052if test -n "$AR_FOR_TARGET"; then
11053 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11054elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11055 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11056fi
11057
11058if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11059 for ncn_progname in ar; do
11060 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11061set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11063$as_echo_n "checking for $ac_word... " >&6; }
11064if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11065 $as_echo_n "(cached) " >&6
9a819804
AO
11066else
11067 if test -n "$AR_FOR_TARGET"; then
11068 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11069else
11070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11071for as_dir in $PATH
11072do
11073 IFS=$as_save_IFS
11074 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11075 for ac_exec_ext in '' $ac_executable_extensions; do
11076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11077 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 11078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11079 break 2
11080 fi
11081done
81ecdfbb
RW
11082 done
11083IFS=$as_save_IFS
9a819804
AO
11084
11085fi
11086fi
11087AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11088if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11090$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 11091else
81ecdfbb
RW
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11093$as_echo "no" >&6; }
9a819804
AO
11094fi
11095
81ecdfbb 11096
9a819804
AO
11097 done
11098fi
11099
11100if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11101 for ncn_progname in ar; do
81ecdfbb
RW
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11103$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11104 if test -x $with_build_time_tools/${ncn_progname}; then
11105 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11107$as_echo "yes" >&6; }
2429c060
PB
11108 break
11109 else
81ecdfbb
RW
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11111$as_echo "no" >&6; }
2429c060
PB
11112 fi
11113 done
859789af
AC
11114fi
11115
2429c060
PB
11116if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11117 for ncn_progname in ar; do
11118 if test -n "$ncn_target_tool_prefix"; then
11119 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11120set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11122$as_echo_n "checking for $ac_word... " >&6; }
11123if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11124 $as_echo_n "(cached) " >&6
7e0f7140 11125else
2429c060
PB
11126 if test -n "$AR_FOR_TARGET"; then
11127 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 11128else
c6b750e1
DJ
11129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11130for as_dir in $PATH
11131do
11132 IFS=$as_save_IFS
11133 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11134 for ac_exec_ext in '' $ac_executable_extensions; do
11135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11136 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11138 break 2
11139 fi
11140done
81ecdfbb
RW
11141 done
11142IFS=$as_save_IFS
c6b750e1 11143
7e0f7140
GK
11144fi
11145fi
c6b750e1 11146AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 11147if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11149$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 11150else
81ecdfbb
RW
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11152$as_echo "no" >&6; }
7e0f7140
GK
11153fi
11154
81ecdfbb 11155
2429c060
PB
11156 fi
11157 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11158 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 11159set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11161$as_echo_n "checking for $ac_word... " >&6; }
11162if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11163 $as_echo_n "(cached) " >&6
7e0f7140 11164else
2429c060
PB
11165 if test -n "$AR_FOR_TARGET"; then
11166 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 11167else
c6b750e1
DJ
11168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11169for as_dir in $PATH
11170do
11171 IFS=$as_save_IFS
11172 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11173 for ac_exec_ext in '' $ac_executable_extensions; do
11174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11175 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 11176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11177 break 2
11178 fi
11179done
81ecdfbb
RW
11180 done
11181IFS=$as_save_IFS
c6b750e1 11182
7e0f7140
GK
11183fi
11184fi
c6b750e1 11185AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 11186if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11188$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 11189else
81ecdfbb
RW
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11191$as_echo "no" >&6; }
7e0f7140 11192fi
c6b750e1 11193
81ecdfbb 11194
2429c060
PB
11195 fi
11196 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11197 done
11198fi
c6b750e1 11199
2429c060
PB
11200if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11201 set dummy ar
7e0f7140 11202 if test $build = $target ; then
2429c060 11203 AR_FOR_TARGET="$2"
7e0f7140 11204 else
2429c060 11205 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 11206 fi
d3f5afc4
MS
11207else
11208 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
11209fi
11210
3a35eeb3
PB
11211else
11212 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
11213fi
11214
11215
11216
11217
11218if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11219 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11221$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11222 if test -x $with_build_time_tools/as; then
11223 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11224 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11226$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 11227 else
81ecdfbb
RW
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11229$as_echo "no" >&6; }
3a35eeb3 11230 fi
2429c060
PB
11231 elif test $build != $host && test $have_gcc_for_target = yes; then
11232 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
11233 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11234 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
11235 fi
11236fi
c6b750e1 11237if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11238 # Extract the first word of "as", so it can be a program name with args.
11239set dummy as; ac_word=$2
81ecdfbb
RW
11240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11241$as_echo_n "checking for $ac_word... " >&6; }
11242if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11243 $as_echo_n "(cached) " >&6
2429c060 11244else
c6b750e1
DJ
11245 case $AS_FOR_TARGET in
11246 [\\/]* | ?:[\\/]*)
2429c060
PB
11247 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11248 ;;
2429c060 11249 *)
c6b750e1
DJ
11250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11251for as_dir in $gcc_cv_tool_dirs
11252do
11253 IFS=$as_save_IFS
11254 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11255 for ac_exec_ext in '' $ac_executable_extensions; do
11256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11257 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11259 break 2
11260 fi
11261done
81ecdfbb
RW
11262 done
11263IFS=$as_save_IFS
c6b750e1 11264
2429c060
PB
11265 ;;
11266esac
11267fi
c6b750e1 11268AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 11269if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11271$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11272else
81ecdfbb
RW
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11274$as_echo "no" >&6; }
2429c060
PB
11275fi
11276
81ecdfbb 11277
2429c060
PB
11278fi
11279if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
11280
11281
11282if test -n "$AS_FOR_TARGET"; then
11283 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11284elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11285 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11286fi
11287
11288if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11289 for ncn_progname in as; do
11290 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11291set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11293$as_echo_n "checking for $ac_word... " >&6; }
11294if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11295 $as_echo_n "(cached) " >&6
9a819804
AO
11296else
11297 if test -n "$AS_FOR_TARGET"; then
11298 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11299else
11300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11301for as_dir in $PATH
11302do
11303 IFS=$as_save_IFS
11304 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11305 for ac_exec_ext in '' $ac_executable_extensions; do
11306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11307 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11309 break 2
11310 fi
11311done
81ecdfbb
RW
11312 done
11313IFS=$as_save_IFS
9a819804
AO
11314
11315fi
11316fi
11317AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11318if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11320$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 11321else
81ecdfbb
RW
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11323$as_echo "no" >&6; }
9a819804
AO
11324fi
11325
81ecdfbb 11326
9a819804
AO
11327 done
11328fi
11329
11330if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11331 for ncn_progname in as; do
81ecdfbb
RW
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11333$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11334 if test -x $with_build_time_tools/${ncn_progname}; then
11335 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11337$as_echo "yes" >&6; }
2429c060
PB
11338 break
11339 else
81ecdfbb
RW
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11341$as_echo "no" >&6; }
2429c060
PB
11342 fi
11343 done
11344fi
11345
11346if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11347 for ncn_progname in as; do
11348 if test -n "$ncn_target_tool_prefix"; then
11349 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11350set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11352$as_echo_n "checking for $ac_word... " >&6; }
11353if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11354 $as_echo_n "(cached) " >&6
2429c060
PB
11355else
11356 if test -n "$AS_FOR_TARGET"; then
11357 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11358else
c6b750e1
DJ
11359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11360for as_dir in $PATH
11361do
11362 IFS=$as_save_IFS
11363 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11364 for ac_exec_ext in '' $ac_executable_extensions; do
11365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11366 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11368 break 2
11369 fi
11370done
81ecdfbb
RW
11371 done
11372IFS=$as_save_IFS
c6b750e1 11373
2429c060
PB
11374fi
11375fi
c6b750e1 11376AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11377if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11379$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11380else
81ecdfbb
RW
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11382$as_echo "no" >&6; }
2429c060
PB
11383fi
11384
81ecdfbb 11385
2429c060
PB
11386 fi
11387 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11388 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11389set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11391$as_echo_n "checking for $ac_word... " >&6; }
11392if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11393 $as_echo_n "(cached) " >&6
2429c060
PB
11394else
11395 if test -n "$AS_FOR_TARGET"; then
11396 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11397else
c6b750e1
DJ
11398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11399for as_dir in $PATH
11400do
11401 IFS=$as_save_IFS
11402 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11403 for ac_exec_ext in '' $ac_executable_extensions; do
11404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11405 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11407 break 2
11408 fi
11409done
81ecdfbb
RW
11410 done
11411IFS=$as_save_IFS
c6b750e1 11412
2429c060
PB
11413fi
11414fi
c6b750e1 11415AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11416if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11418$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11419else
81ecdfbb
RW
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11421$as_echo "no" >&6; }
2429c060 11422fi
c6b750e1 11423
81ecdfbb 11424
2429c060
PB
11425 fi
11426 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11427 done
11428fi
c6b750e1 11429
2429c060
PB
11430if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11431 set dummy as
11432 if test $build = $target ; then
11433 AS_FOR_TARGET="$2"
11434 else
11435 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11436 fi
d3f5afc4
MS
11437else
11438 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11439fi
11440
3a35eeb3
PB
11441else
11442 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11443fi
11444
11445
11446
11447
11448if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11449 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11451$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11452 if test -x $with_build_time_tools/dlltool; then
11453 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11454 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11456$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11457 else
81ecdfbb
RW
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11459$as_echo "no" >&6; }
3a35eeb3 11460 fi
2429c060
PB
11461 elif test $build != $host && test $have_gcc_for_target = yes; then
11462 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11463 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11464 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11465 fi
11466fi
c6b750e1 11467if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11468 # Extract the first word of "dlltool", so it can be a program name with args.
11469set dummy dlltool; ac_word=$2
81ecdfbb
RW
11470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11471$as_echo_n "checking for $ac_word... " >&6; }
11472if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11473 $as_echo_n "(cached) " >&6
2429c060 11474else
c6b750e1
DJ
11475 case $DLLTOOL_FOR_TARGET in
11476 [\\/]* | ?:[\\/]*)
2429c060
PB
11477 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11478 ;;
2429c060 11479 *)
c6b750e1
DJ
11480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11481for as_dir in $gcc_cv_tool_dirs
11482do
11483 IFS=$as_save_IFS
11484 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11485 for ac_exec_ext in '' $ac_executable_extensions; do
11486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11487 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11489 break 2
11490 fi
11491done
81ecdfbb
RW
11492 done
11493IFS=$as_save_IFS
c6b750e1 11494
2429c060
PB
11495 ;;
11496esac
11497fi
c6b750e1 11498DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11499if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11501$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11502else
81ecdfbb
RW
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11504$as_echo "no" >&6; }
2429c060
PB
11505fi
11506
81ecdfbb 11507
2429c060
PB
11508fi
11509if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11510
11511
11512if test -n "$DLLTOOL_FOR_TARGET"; then
11513 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11514elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11515 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11516fi
11517
11518if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11519 for ncn_progname in dlltool; do
11520 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11521set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11523$as_echo_n "checking for $ac_word... " >&6; }
11524if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11525 $as_echo_n "(cached) " >&6
9a819804
AO
11526else
11527 if test -n "$DLLTOOL_FOR_TARGET"; then
11528 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11529else
11530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11531for as_dir in $PATH
11532do
11533 IFS=$as_save_IFS
11534 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11535 for ac_exec_ext in '' $ac_executable_extensions; do
11536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11537 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11539 break 2
11540 fi
11541done
81ecdfbb
RW
11542 done
11543IFS=$as_save_IFS
9a819804
AO
11544
11545fi
11546fi
11547DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11548if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11550$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11551else
81ecdfbb
RW
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11553$as_echo "no" >&6; }
9a819804
AO
11554fi
11555
81ecdfbb 11556
9a819804
AO
11557 done
11558fi
11559
11560if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11561 for ncn_progname in dlltool; do
81ecdfbb
RW
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11563$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11564 if test -x $with_build_time_tools/${ncn_progname}; then
11565 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11567$as_echo "yes" >&6; }
2429c060
PB
11568 break
11569 else
81ecdfbb
RW
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11571$as_echo "no" >&6; }
2429c060
PB
11572 fi
11573 done
11574fi
11575
11576if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11577 for ncn_progname in dlltool; do
11578 if test -n "$ncn_target_tool_prefix"; then
11579 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11580set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11582$as_echo_n "checking for $ac_word... " >&6; }
11583if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11584 $as_echo_n "(cached) " >&6
2429c060
PB
11585else
11586 if test -n "$DLLTOOL_FOR_TARGET"; then
11587 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11588else
c6b750e1
DJ
11589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11590for as_dir in $PATH
11591do
11592 IFS=$as_save_IFS
11593 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11594 for ac_exec_ext in '' $ac_executable_extensions; do
11595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11596 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11598 break 2
11599 fi
11600done
81ecdfbb
RW
11601 done
11602IFS=$as_save_IFS
c6b750e1 11603
2429c060
PB
11604fi
11605fi
c6b750e1 11606DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11607if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11609$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11610else
81ecdfbb
RW
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11612$as_echo "no" >&6; }
2429c060
PB
11613fi
11614
81ecdfbb 11615
2429c060
PB
11616 fi
11617 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11618 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11619set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11621$as_echo_n "checking for $ac_word... " >&6; }
11622if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11623 $as_echo_n "(cached) " >&6
2429c060
PB
11624else
11625 if test -n "$DLLTOOL_FOR_TARGET"; then
11626 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11627else
c6b750e1
DJ
11628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11629for as_dir in $PATH
11630do
11631 IFS=$as_save_IFS
11632 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11633 for ac_exec_ext in '' $ac_executable_extensions; do
11634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11635 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11637 break 2
11638 fi
11639done
81ecdfbb
RW
11640 done
11641IFS=$as_save_IFS
c6b750e1 11642
2429c060
PB
11643fi
11644fi
c6b750e1 11645DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11646if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11648$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11649else
81ecdfbb
RW
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11651$as_echo "no" >&6; }
2429c060 11652fi
c6b750e1 11653
81ecdfbb 11654
2429c060
PB
11655 fi
11656 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11657 done
11658fi
c6b750e1 11659
2429c060
PB
11660if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11661 set dummy dlltool
11662 if test $build = $target ; then
11663 DLLTOOL_FOR_TARGET="$2"
11664 else
11665 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11666 fi
d3f5afc4
MS
11667else
11668 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
11669fi
11670
3a35eeb3
PB
11671else
11672 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
11673fi
11674
11675
11676
11677
11678if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11679 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11681$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11682 if test -x $with_build_time_tools/ld; then
11683 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11684 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11686$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 11687 else
81ecdfbb
RW
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11689$as_echo "no" >&6; }
3a35eeb3 11690 fi
2429c060
PB
11691 elif test $build != $host && test $have_gcc_for_target = yes; then
11692 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
11693 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11694 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
11695 fi
11696fi
c6b750e1 11697if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11698 # Extract the first word of "ld", so it can be a program name with args.
11699set dummy ld; ac_word=$2
81ecdfbb
RW
11700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11701$as_echo_n "checking for $ac_word... " >&6; }
11702if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11703 $as_echo_n "(cached) " >&6
2429c060 11704else
c6b750e1
DJ
11705 case $LD_FOR_TARGET in
11706 [\\/]* | ?:[\\/]*)
2429c060
PB
11707 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11708 ;;
2429c060 11709 *)
c6b750e1
DJ
11710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11711for as_dir in $gcc_cv_tool_dirs
11712do
11713 IFS=$as_save_IFS
11714 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11715 for ac_exec_ext in '' $ac_executable_extensions; do
11716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11717 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11719 break 2
11720 fi
11721done
81ecdfbb
RW
11722 done
11723IFS=$as_save_IFS
c6b750e1 11724
2429c060
PB
11725 ;;
11726esac
11727fi
c6b750e1 11728LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 11729if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11731$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11732else
81ecdfbb
RW
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11734$as_echo "no" >&6; }
2429c060
PB
11735fi
11736
81ecdfbb 11737
2429c060
PB
11738fi
11739if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
11740
11741
11742if test -n "$LD_FOR_TARGET"; then
11743 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11744elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11745 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11746fi
11747
11748if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11749 for ncn_progname in ld; do
11750 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11751set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11753$as_echo_n "checking for $ac_word... " >&6; }
11754if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11755 $as_echo_n "(cached) " >&6
9a819804
AO
11756else
11757 if test -n "$LD_FOR_TARGET"; then
11758 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11759else
11760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11761for as_dir in $PATH
11762do
11763 IFS=$as_save_IFS
11764 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11765 for ac_exec_ext in '' $ac_executable_extensions; do
11766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11767 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11769 break 2
11770 fi
11771done
81ecdfbb
RW
11772 done
11773IFS=$as_save_IFS
9a819804
AO
11774
11775fi
11776fi
11777LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11778if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11780$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 11781else
81ecdfbb
RW
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11783$as_echo "no" >&6; }
9a819804
AO
11784fi
11785
81ecdfbb 11786
9a819804
AO
11787 done
11788fi
11789
11790if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11791 for ncn_progname in ld; do
81ecdfbb
RW
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11793$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11794 if test -x $with_build_time_tools/${ncn_progname}; then
11795 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11797$as_echo "yes" >&6; }
2429c060
PB
11798 break
11799 else
81ecdfbb
RW
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11801$as_echo "no" >&6; }
2429c060
PB
11802 fi
11803 done
11804fi
11805
11806if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11807 for ncn_progname in ld; do
11808 if test -n "$ncn_target_tool_prefix"; then
11809 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11810set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11812$as_echo_n "checking for $ac_word... " >&6; }
11813if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11814 $as_echo_n "(cached) " >&6
2429c060
PB
11815else
11816 if test -n "$LD_FOR_TARGET"; then
11817 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11818else
c6b750e1
DJ
11819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11820for as_dir in $PATH
11821do
11822 IFS=$as_save_IFS
11823 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11824 for ac_exec_ext in '' $ac_executable_extensions; do
11825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11826 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11828 break 2
11829 fi
11830done
81ecdfbb
RW
11831 done
11832IFS=$as_save_IFS
c6b750e1 11833
2429c060
PB
11834fi
11835fi
c6b750e1 11836LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11837if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11839$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11840else
81ecdfbb
RW
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11842$as_echo "no" >&6; }
2429c060
PB
11843fi
11844
81ecdfbb 11845
2429c060
PB
11846 fi
11847 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11848 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11849set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11851$as_echo_n "checking for $ac_word... " >&6; }
11852if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11853 $as_echo_n "(cached) " >&6
2429c060
PB
11854else
11855 if test -n "$LD_FOR_TARGET"; then
11856 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11857else
c6b750e1
DJ
11858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11859for as_dir in $PATH
11860do
11861 IFS=$as_save_IFS
11862 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11863 for ac_exec_ext in '' $ac_executable_extensions; do
11864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11865 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11867 break 2
11868 fi
11869done
81ecdfbb
RW
11870 done
11871IFS=$as_save_IFS
c6b750e1 11872
2429c060
PB
11873fi
11874fi
c6b750e1 11875LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11876if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11878$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11879else
81ecdfbb
RW
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11881$as_echo "no" >&6; }
2429c060 11882fi
c6b750e1 11883
81ecdfbb 11884
2429c060
PB
11885 fi
11886 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11887 done
11888fi
c6b750e1 11889
2429c060
PB
11890if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11891 set dummy ld
11892 if test $build = $target ; then
11893 LD_FOR_TARGET="$2"
11894 else
11895 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11896 fi
d3f5afc4
MS
11897else
11898 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
11899fi
11900
3a35eeb3
PB
11901else
11902 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
11903fi
11904
11905
11906
11907
11908if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11909 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11911$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11912 if test -x $with_build_time_tools/lipo; then
11913 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11914 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11916$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 11917 else
81ecdfbb
RW
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11919$as_echo "no" >&6; }
3a35eeb3 11920 fi
2429c060
PB
11921 elif test $build != $host && test $have_gcc_for_target = yes; then
11922 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
11923 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11924 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
11925 fi
11926fi
9a819804
AO
11927if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11928 # Extract the first word of "lipo", so it can be a program name with args.
11929set dummy lipo; ac_word=$2
81ecdfbb
RW
11930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11931$as_echo_n "checking for $ac_word... " >&6; }
11932if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11933 $as_echo_n "(cached) " >&6
9a819804
AO
11934else
11935 case $LIPO_FOR_TARGET in
11936 [\\/]* | ?:[\\/]*)
11937 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11938 ;;
11939 *)
11940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11941for as_dir in $gcc_cv_tool_dirs
11942do
11943 IFS=$as_save_IFS
11944 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11945 for ac_exec_ext in '' $ac_executable_extensions; do
11946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11947 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11949 break 2
11950 fi
11951done
81ecdfbb
RW
11952 done
11953IFS=$as_save_IFS
9a819804
AO
11954
11955 ;;
11956esac
11957fi
11958LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 11959if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11961$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 11962else
81ecdfbb
RW
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11964$as_echo "no" >&6; }
9a819804
AO
11965fi
11966
81ecdfbb 11967
9a819804
AO
11968fi
11969if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11970
11971
11972if test -n "$LIPO_FOR_TARGET"; then
11973 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11974elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11975 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11976fi
11977
11978if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11979 for ncn_progname in lipo; do
11980 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11981set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11983$as_echo_n "checking for $ac_word... " >&6; }
11984if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11985 $as_echo_n "(cached) " >&6
2429c060 11986else
9a819804
AO
11987 if test -n "$LIPO_FOR_TARGET"; then
11988 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11989else
11990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11991for as_dir in $PATH
c6b750e1
DJ
11992do
11993 IFS=$as_save_IFS
11994 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11995 for ac_exec_ext in '' $ac_executable_extensions; do
11996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11997 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11999 break 2
12000 fi
12001done
81ecdfbb
RW
12002 done
12003IFS=$as_save_IFS
c6b750e1 12004
2429c060 12005fi
9a819804
AO
12006fi
12007LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 12008if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12010$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 12011else
81ecdfbb
RW
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12013$as_echo "no" >&6; }
2429c060
PB
12014fi
12015
81ecdfbb 12016
9a819804 12017 done
2429c060 12018fi
9a819804
AO
12019
12020if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12021 for ncn_progname in lipo; do
81ecdfbb
RW
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12023$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12024 if test -x $with_build_time_tools/${ncn_progname}; then
12025 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12027$as_echo "yes" >&6; }
2429c060
PB
12028 break
12029 else
81ecdfbb
RW
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12031$as_echo "no" >&6; }
2429c060
PB
12032 fi
12033 done
12034fi
12035
12036if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12037 for ncn_progname in lipo; do
12038 if test -n "$ncn_target_tool_prefix"; then
12039 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12040set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12042$as_echo_n "checking for $ac_word... " >&6; }
12043if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12044 $as_echo_n "(cached) " >&6
2429c060
PB
12045else
12046 if test -n "$LIPO_FOR_TARGET"; then
12047 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12048else
c6b750e1
DJ
12049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12050for as_dir in $PATH
12051do
12052 IFS=$as_save_IFS
12053 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12054 for ac_exec_ext in '' $ac_executable_extensions; do
12055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12056 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12058 break 2
12059 fi
12060done
81ecdfbb
RW
12061 done
12062IFS=$as_save_IFS
c6b750e1 12063
2429c060
PB
12064fi
12065fi
c6b750e1 12066LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 12067if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12069$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 12070else
81ecdfbb
RW
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12072$as_echo "no" >&6; }
2429c060
PB
12073fi
12074
81ecdfbb 12075
2429c060
PB
12076 fi
12077 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12078 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12079set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12081$as_echo_n "checking for $ac_word... " >&6; }
12082if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12083 $as_echo_n "(cached) " >&6
2429c060
PB
12084else
12085 if test -n "$LIPO_FOR_TARGET"; then
12086 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12087else
c6b750e1
DJ
12088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12089for as_dir in $PATH
12090do
12091 IFS=$as_save_IFS
12092 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12093 for ac_exec_ext in '' $ac_executable_extensions; do
12094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12095 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 12096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12097 break 2
12098 fi
12099done
81ecdfbb
RW
12100 done
12101IFS=$as_save_IFS
c6b750e1 12102
2429c060
PB
12103fi
12104fi
c6b750e1 12105LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 12106if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12108$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 12109else
81ecdfbb
RW
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12111$as_echo "no" >&6; }
2429c060 12112fi
c6b750e1 12113
81ecdfbb 12114
2429c060
PB
12115 fi
12116 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12117 done
12118fi
c6b750e1 12119
2429c060
PB
12120if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12121 set dummy lipo
12122 if test $build = $target ; then
12123 LIPO_FOR_TARGET="$2"
12124 else
12125 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12126 fi
d3f5afc4
MS
12127else
12128 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
12129fi
12130
3a35eeb3
PB
12131else
12132 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
12133fi
12134
12135
12136
12137
12138if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12139 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12141$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12142 if test -x $with_build_time_tools/nm; then
12143 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12144 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12146$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 12147 else
81ecdfbb
RW
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12149$as_echo "no" >&6; }
3a35eeb3 12150 fi
2429c060
PB
12151 elif test $build != $host && test $have_gcc_for_target = yes; then
12152 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
12153 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12154 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
12155 fi
12156fi
c6b750e1 12157if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12158 # Extract the first word of "nm", so it can be a program name with args.
12159set dummy nm; ac_word=$2
81ecdfbb
RW
12160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12161$as_echo_n "checking for $ac_word... " >&6; }
12162if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12163 $as_echo_n "(cached) " >&6
2429c060 12164else
c6b750e1
DJ
12165 case $NM_FOR_TARGET in
12166 [\\/]* | ?:[\\/]*)
2429c060
PB
12167 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12168 ;;
2429c060 12169 *)
c6b750e1
DJ
12170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12171for as_dir in $gcc_cv_tool_dirs
12172do
12173 IFS=$as_save_IFS
12174 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12175 for ac_exec_ext in '' $ac_executable_extensions; do
12176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12177 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12179 break 2
12180 fi
12181done
81ecdfbb
RW
12182 done
12183IFS=$as_save_IFS
c6b750e1 12184
2429c060
PB
12185 ;;
12186esac
12187fi
c6b750e1 12188NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 12189if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12191$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 12192else
81ecdfbb
RW
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12194$as_echo "no" >&6; }
2429c060
PB
12195fi
12196
81ecdfbb 12197
2429c060
PB
12198fi
12199if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
12200
12201
12202if test -n "$NM_FOR_TARGET"; then
12203 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12204elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12205 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12206fi
12207
12208if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12209 for ncn_progname in nm; do
12210 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12211set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12213$as_echo_n "checking for $ac_word... " >&6; }
12214if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12215 $as_echo_n "(cached) " >&6
9a819804
AO
12216else
12217 if test -n "$NM_FOR_TARGET"; then
12218 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12219else
12220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12221for as_dir in $PATH
12222do
12223 IFS=$as_save_IFS
12224 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12225 for ac_exec_ext in '' $ac_executable_extensions; do
12226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12227 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12229 break 2
12230 fi
12231done
81ecdfbb
RW
12232 done
12233IFS=$as_save_IFS
9a819804
AO
12234
12235fi
12236fi
12237NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12238if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12240$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 12241else
81ecdfbb
RW
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12243$as_echo "no" >&6; }
9a819804
AO
12244fi
12245
81ecdfbb 12246
9a819804
AO
12247 done
12248fi
12249
12250if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12251 for ncn_progname in nm; do
81ecdfbb
RW
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12253$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12254 if test -x $with_build_time_tools/${ncn_progname}; then
12255 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12257$as_echo "yes" >&6; }
2429c060
PB
12258 break
12259 else
81ecdfbb
RW
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12261$as_echo "no" >&6; }
2429c060
PB
12262 fi
12263 done
12264fi
12265
12266if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12267 for ncn_progname in nm; do
12268 if test -n "$ncn_target_tool_prefix"; then
12269 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12270set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12272$as_echo_n "checking for $ac_word... " >&6; }
12273if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12274 $as_echo_n "(cached) " >&6
859789af 12275else
55db4b87
PB
12276 if test -n "$NM_FOR_TARGET"; then
12277 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12278else
c6b750e1
DJ
12279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12280for as_dir in $PATH
12281do
12282 IFS=$as_save_IFS
12283 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12284 for ac_exec_ext in '' $ac_executable_extensions; do
12285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12286 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12288 break 2
12289 fi
12290done
81ecdfbb
RW
12291 done
12292IFS=$as_save_IFS
c6b750e1 12293
859789af
AC
12294fi
12295fi
c6b750e1 12296NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 12297if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12299$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12300else
81ecdfbb
RW
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12302$as_echo "no" >&6; }
859789af
AC
12303fi
12304
81ecdfbb 12305
2429c060
PB
12306 fi
12307 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12308 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12309set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12311$as_echo_n "checking for $ac_word... " >&6; }
12312if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12313 $as_echo_n "(cached) " >&6
859789af 12314else
05cbd757
PB
12315 if test -n "$NM_FOR_TARGET"; then
12316 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12317else
c6b750e1
DJ
12318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12319for as_dir in $PATH
12320do
12321 IFS=$as_save_IFS
12322 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12323 for ac_exec_ext in '' $ac_executable_extensions; do
12324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12325 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12327 break 2
12328 fi
12329done
81ecdfbb
RW
12330 done
12331IFS=$as_save_IFS
c6b750e1 12332
859789af
AC
12333fi
12334fi
c6b750e1 12335NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 12336if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12338$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12339else
81ecdfbb
RW
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12341$as_echo "no" >&6; }
859789af 12342fi
c6b750e1 12343
81ecdfbb 12344
2429c060
PB
12345 fi
12346 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12347 done
12348fi
c6b750e1 12349
05cbd757
PB
12350if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12351 set dummy nm
12352 if test $build = $target ; then
12353 NM_FOR_TARGET="$2"
859789af 12354 else
05cbd757 12355 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12356 fi
d3f5afc4
MS
12357else
12358 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
12359fi
12360
3a35eeb3
PB
12361else
12362 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
12363fi
12364
12365
12366
12367
6b91c541
AP
12368if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12369 if test -n "$with_build_time_tools"; then
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12371$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12372 if test -x $with_build_time_tools/objcopy; then
12373 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12374 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12376$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12377 else
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12379$as_echo "no" >&6; }
12380 fi
12381 elif test $build != $host && test $have_gcc_for_target = yes; then
12382 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12383 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12384 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12385 fi
12386fi
12387if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12388 # Extract the first word of "objcopy", so it can be a program name with args.
12389set dummy objcopy; ac_word=$2
12390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12391$as_echo_n "checking for $ac_word... " >&6; }
12392if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12393 $as_echo_n "(cached) " >&6
12394else
12395 case $OBJCOPY_FOR_TARGET in
12396 [\\/]* | ?:[\\/]*)
12397 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12398 ;;
12399 *)
12400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12401for as_dir in $gcc_cv_tool_dirs
12402do
12403 IFS=$as_save_IFS
12404 test -z "$as_dir" && as_dir=.
12405 for ac_exec_ext in '' $ac_executable_extensions; do
12406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12407 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12409 break 2
12410 fi
12411done
12412 done
12413IFS=$as_save_IFS
12414
12415 ;;
12416esac
12417fi
12418OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12419if test -n "$OBJCOPY_FOR_TARGET"; then
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12421$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12422else
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12424$as_echo "no" >&6; }
12425fi
12426
12427
12428fi
12429if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12430
12431
12432if test -n "$OBJCOPY_FOR_TARGET"; then
12433 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12434elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12435 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12436fi
12437
12438if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12439 for ncn_progname in objcopy; do
12440 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12441set dummy ${ncn_progname}; ac_word=$2
12442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12443$as_echo_n "checking for $ac_word... " >&6; }
12444if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12445 $as_echo_n "(cached) " >&6
12446else
12447 if test -n "$OBJCOPY_FOR_TARGET"; then
12448 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12449else
12450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12451for as_dir in $PATH
12452do
12453 IFS=$as_save_IFS
12454 test -z "$as_dir" && as_dir=.
12455 for ac_exec_ext in '' $ac_executable_extensions; do
12456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12457 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12459 break 2
12460 fi
12461done
12462 done
12463IFS=$as_save_IFS
12464
12465fi
12466fi
12467OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12468if test -n "$OBJCOPY_FOR_TARGET"; then
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12470$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12471else
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12473$as_echo "no" >&6; }
12474fi
12475
12476
12477 done
12478fi
12479
12480if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12481 for ncn_progname in objcopy; do
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12483$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12484 if test -x $with_build_time_tools/${ncn_progname}; then
12485 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12487$as_echo "yes" >&6; }
12488 break
12489 else
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12491$as_echo "no" >&6; }
12492 fi
12493 done
12494fi
12495
12496if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12497 for ncn_progname in objcopy; do
12498 if test -n "$ncn_target_tool_prefix"; then
12499 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12500set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12502$as_echo_n "checking for $ac_word... " >&6; }
12503if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12504 $as_echo_n "(cached) " >&6
12505else
12506 if test -n "$OBJCOPY_FOR_TARGET"; then
12507 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12508else
12509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12510for as_dir in $PATH
12511do
12512 IFS=$as_save_IFS
12513 test -z "$as_dir" && as_dir=.
12514 for ac_exec_ext in '' $ac_executable_extensions; do
12515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12516 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12518 break 2
12519 fi
12520done
12521 done
12522IFS=$as_save_IFS
12523
12524fi
12525fi
12526OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12527if test -n "$OBJCOPY_FOR_TARGET"; then
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12529$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12530else
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12532$as_echo "no" >&6; }
12533fi
12534
12535
12536 fi
12537 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12538 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12539set dummy ${ncn_progname}; ac_word=$2
12540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12541$as_echo_n "checking for $ac_word... " >&6; }
12542if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12543 $as_echo_n "(cached) " >&6
12544else
12545 if test -n "$OBJCOPY_FOR_TARGET"; then
12546 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12547else
12548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12549for as_dir in $PATH
12550do
12551 IFS=$as_save_IFS
12552 test -z "$as_dir" && as_dir=.
12553 for ac_exec_ext in '' $ac_executable_extensions; do
12554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12555 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12557 break 2
12558 fi
12559done
12560 done
12561IFS=$as_save_IFS
12562
12563fi
12564fi
12565OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12566if test -n "$OBJCOPY_FOR_TARGET"; then
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12568$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12569else
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12571$as_echo "no" >&6; }
12572fi
12573
12574
12575 fi
12576 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12577 done
12578fi
12579
12580if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12581 set dummy objcopy
12582 if test $build = $target ; then
12583 OBJCOPY_FOR_TARGET="$2"
12584 else
12585 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12586 fi
12587else
12588 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12589fi
12590
12591else
12592 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12593fi
12594
12595
12596
12597
2429c060
PB
12598if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12599 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12601$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12602 if test -x $with_build_time_tools/objdump; then
12603 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12604 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12606$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 12607 else
81ecdfbb
RW
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12609$as_echo "no" >&6; }
3a35eeb3 12610 fi
2429c060
PB
12611 elif test $build != $host && test $have_gcc_for_target = yes; then
12612 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
12613 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12614 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
12615 fi
12616fi
c6b750e1 12617if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12618 # Extract the first word of "objdump", so it can be a program name with args.
12619set dummy objdump; ac_word=$2
81ecdfbb
RW
12620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12621$as_echo_n "checking for $ac_word... " >&6; }
12622if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12623 $as_echo_n "(cached) " >&6
2429c060 12624else
c6b750e1
DJ
12625 case $OBJDUMP_FOR_TARGET in
12626 [\\/]* | ?:[\\/]*)
2429c060
PB
12627 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12628 ;;
2429c060 12629 *)
c6b750e1
DJ
12630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12631for as_dir in $gcc_cv_tool_dirs
12632do
12633 IFS=$as_save_IFS
12634 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12635 for ac_exec_ext in '' $ac_executable_extensions; do
12636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12637 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12639 break 2
12640 fi
12641done
81ecdfbb
RW
12642 done
12643IFS=$as_save_IFS
c6b750e1 12644
2429c060
PB
12645 ;;
12646esac
12647fi
c6b750e1 12648OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 12649if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12651$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 12652else
81ecdfbb
RW
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12654$as_echo "no" >&6; }
2429c060
PB
12655fi
12656
81ecdfbb 12657
2429c060
PB
12658fi
12659if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12660
12661
12662if test -n "$OBJDUMP_FOR_TARGET"; then
12663 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12664elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12665 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12666fi
12667
12668if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12669 for ncn_progname in objdump; do
12670 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12671set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12673$as_echo_n "checking for $ac_word... " >&6; }
12674if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12675 $as_echo_n "(cached) " >&6
9a819804
AO
12676else
12677 if test -n "$OBJDUMP_FOR_TARGET"; then
12678 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12679else
12680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12681for as_dir in $PATH
12682do
12683 IFS=$as_save_IFS
12684 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12685 for ac_exec_ext in '' $ac_executable_extensions; do
12686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12687 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12689 break 2
12690 fi
12691done
81ecdfbb
RW
12692 done
12693IFS=$as_save_IFS
9a819804
AO
12694
12695fi
12696fi
12697OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12698if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12700$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 12701else
81ecdfbb
RW
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12703$as_echo "no" >&6; }
9a819804
AO
12704fi
12705
81ecdfbb 12706
9a819804
AO
12707 done
12708fi
12709
12710if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12711 for ncn_progname in objdump; do
81ecdfbb
RW
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12713$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12714 if test -x $with_build_time_tools/${ncn_progname}; then
12715 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12717$as_echo "yes" >&6; }
2429c060
PB
12718 break
12719 else
81ecdfbb
RW
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12721$as_echo "no" >&6; }
2429c060
PB
12722 fi
12723 done
12724fi
12725
12726if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12727 for ncn_progname in objdump; do
12728 if test -n "$ncn_target_tool_prefix"; then
12729 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12730set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12732$as_echo_n "checking for $ac_word... " >&6; }
12733if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12734 $as_echo_n "(cached) " >&6
5ae72758
DJ
12735else
12736 if test -n "$OBJDUMP_FOR_TARGET"; then
12737 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12738else
c6b750e1
DJ
12739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12740for as_dir in $PATH
12741do
12742 IFS=$as_save_IFS
12743 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12744 for ac_exec_ext in '' $ac_executable_extensions; do
12745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12746 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12748 break 2
12749 fi
12750done
81ecdfbb
RW
12751 done
12752IFS=$as_save_IFS
c6b750e1 12753
5ae72758
DJ
12754fi
12755fi
c6b750e1 12756OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12757if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12759$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12760else
81ecdfbb
RW
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12762$as_echo "no" >&6; }
5ae72758
DJ
12763fi
12764
81ecdfbb 12765
2429c060
PB
12766 fi
12767 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12768 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 12769set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12771$as_echo_n "checking for $ac_word... " >&6; }
12772if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12773 $as_echo_n "(cached) " >&6
5ae72758
DJ
12774else
12775 if test -n "$OBJDUMP_FOR_TARGET"; then
12776 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12777else
c6b750e1
DJ
12778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12779for as_dir in $PATH
12780do
12781 IFS=$as_save_IFS
12782 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12783 for ac_exec_ext in '' $ac_executable_extensions; do
12784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12785 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12787 break 2
12788 fi
12789done
81ecdfbb
RW
12790 done
12791IFS=$as_save_IFS
c6b750e1 12792
5ae72758
DJ
12793fi
12794fi
c6b750e1 12795OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12796if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12798$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12799else
81ecdfbb
RW
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12801$as_echo "no" >&6; }
5ae72758 12802fi
c6b750e1 12803
81ecdfbb 12804
2429c060
PB
12805 fi
12806 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12807 done
12808fi
c6b750e1 12809
5ae72758
DJ
12810if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12811 set dummy objdump
12812 if test $build = $target ; then
12813 OBJDUMP_FOR_TARGET="$2"
12814 else
12815 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12816 fi
d3f5afc4
MS
12817else
12818 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
12819fi
12820
3a35eeb3
PB
12821else
12822 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
12823fi
12824
12825
12826
12827
12828if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12829 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12831$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12832 if test -x $with_build_time_tools/ranlib; then
12833 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12834 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12836$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 12837 else
81ecdfbb
RW
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12839$as_echo "no" >&6; }
3a35eeb3 12840 fi
2429c060
PB
12841 elif test $build != $host && test $have_gcc_for_target = yes; then
12842 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
12843 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12844 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
12845 fi
12846fi
c6b750e1 12847if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12848 # Extract the first word of "ranlib", so it can be a program name with args.
12849set dummy ranlib; ac_word=$2
81ecdfbb
RW
12850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12851$as_echo_n "checking for $ac_word... " >&6; }
12852if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12853 $as_echo_n "(cached) " >&6
2429c060 12854else
c6b750e1
DJ
12855 case $RANLIB_FOR_TARGET in
12856 [\\/]* | ?:[\\/]*)
2429c060
PB
12857 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12858 ;;
2429c060 12859 *)
c6b750e1
DJ
12860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12861for as_dir in $gcc_cv_tool_dirs
12862do
12863 IFS=$as_save_IFS
12864 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12865 for ac_exec_ext in '' $ac_executable_extensions; do
12866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12867 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12869 break 2
12870 fi
12871done
81ecdfbb
RW
12872 done
12873IFS=$as_save_IFS
c6b750e1 12874
2429c060
PB
12875 ;;
12876esac
12877fi
c6b750e1 12878RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 12879if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12881$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 12882else
81ecdfbb
RW
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12884$as_echo "no" >&6; }
2429c060
PB
12885fi
12886
81ecdfbb 12887
2429c060
PB
12888fi
12889if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
12890
12891
12892if test -n "$RANLIB_FOR_TARGET"; then
12893 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12894elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12895 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12896fi
12897
12898if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12899 for ncn_progname in ranlib; do
12900 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12901set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12903$as_echo_n "checking for $ac_word... " >&6; }
12904if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12905 $as_echo_n "(cached) " >&6
9a819804
AO
12906else
12907 if test -n "$RANLIB_FOR_TARGET"; then
12908 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12909else
12910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12911for as_dir in $PATH
12912do
12913 IFS=$as_save_IFS
12914 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12915 for ac_exec_ext in '' $ac_executable_extensions; do
12916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12917 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12919 break 2
12920 fi
12921done
81ecdfbb
RW
12922 done
12923IFS=$as_save_IFS
9a819804
AO
12924
12925fi
12926fi
12927RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12928if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12930$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 12931else
81ecdfbb
RW
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12933$as_echo "no" >&6; }
9a819804
AO
12934fi
12935
81ecdfbb 12936
9a819804
AO
12937 done
12938fi
12939
12940if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12941 for ncn_progname in ranlib; do
81ecdfbb
RW
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12943$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12944 if test -x $with_build_time_tools/${ncn_progname}; then
12945 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12947$as_echo "yes" >&6; }
2429c060
PB
12948 break
12949 else
81ecdfbb
RW
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12951$as_echo "no" >&6; }
2429c060
PB
12952 fi
12953 done
12954fi
12955
12956if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12957 for ncn_progname in ranlib; do
12958 if test -n "$ncn_target_tool_prefix"; then
12959 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 12960set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12962$as_echo_n "checking for $ac_word... " >&6; }
12963if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12964 $as_echo_n "(cached) " >&6
859789af 12965else
55db4b87
PB
12966 if test -n "$RANLIB_FOR_TARGET"; then
12967 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12968else
c6b750e1
DJ
12969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12970for as_dir in $PATH
12971do
12972 IFS=$as_save_IFS
12973 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12974 for ac_exec_ext in '' $ac_executable_extensions; do
12975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12976 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12978 break 2
12979 fi
12980done
81ecdfbb
RW
12981 done
12982IFS=$as_save_IFS
c6b750e1 12983
859789af
AC
12984fi
12985fi
c6b750e1 12986RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 12987if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12989$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12990else
81ecdfbb
RW
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12992$as_echo "no" >&6; }
859789af
AC
12993fi
12994
81ecdfbb 12995
2429c060
PB
12996 fi
12997 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12998 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12999set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13001$as_echo_n "checking for $ac_word... " >&6; }
13002if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
13003 $as_echo_n "(cached) " >&6
859789af 13004else
05cbd757
PB
13005 if test -n "$RANLIB_FOR_TARGET"; then
13006 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 13007else
c6b750e1
DJ
13008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13009for as_dir in $PATH
13010do
13011 IFS=$as_save_IFS
13012 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13013 for ac_exec_ext in '' $ac_executable_extensions; do
13014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13015 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 13016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13017 break 2
13018 fi
13019done
81ecdfbb
RW
13020 done
13021IFS=$as_save_IFS
c6b750e1 13022
859789af
AC
13023fi
13024fi
c6b750e1 13025RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 13026if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13028$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 13029else
81ecdfbb
RW
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13031$as_echo "no" >&6; }
859789af 13032fi
c6b750e1 13033
81ecdfbb 13034
2429c060
PB
13035 fi
13036 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13037 done
13038fi
c6b750e1 13039
2429c060
PB
13040if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13041 set dummy ranlib
13042 if test $build = $target ; then
13043 RANLIB_FOR_TARGET="$2"
13044 else
13045 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 13046 fi
d3f5afc4
MS
13047else
13048 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 13049fi
05cbd757 13050
3a35eeb3
PB
13051else
13052 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
13053fi
13054
2429c060
PB
13055
13056
13057
b121d7d4
DD
13058if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13059 if test -n "$with_build_time_tools"; then
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13061$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13062 if test -x $with_build_time_tools/readelf; then
13063 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13064 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13066$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13067 else
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13069$as_echo "no" >&6; }
13070 fi
13071 elif test $build != $host && test $have_gcc_for_target = yes; then
13072 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13073 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13074 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13075 fi
13076fi
13077if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13078 # Extract the first word of "readelf", so it can be a program name with args.
13079set dummy readelf; ac_word=$2
13080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13081$as_echo_n "checking for $ac_word... " >&6; }
13082if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
13083 $as_echo_n "(cached) " >&6
13084else
13085 case $READELF_FOR_TARGET in
13086 [\\/]* | ?:[\\/]*)
13087 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13088 ;;
13089 *)
13090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13091for as_dir in $gcc_cv_tool_dirs
13092do
13093 IFS=$as_save_IFS
13094 test -z "$as_dir" && as_dir=.
13095 for ac_exec_ext in '' $ac_executable_extensions; do
13096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13097 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13099 break 2
13100 fi
13101done
13102 done
13103IFS=$as_save_IFS
13104
13105 ;;
13106esac
13107fi
13108READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13109if test -n "$READELF_FOR_TARGET"; then
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13111$as_echo "$READELF_FOR_TARGET" >&6; }
13112else
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13114$as_echo "no" >&6; }
13115fi
13116
13117
13118fi
13119if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13120
13121
13122if test -n "$READELF_FOR_TARGET"; then
13123 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13124elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13125 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13126fi
13127
13128if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13129 for ncn_progname in readelf; do
13130 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13131set dummy ${ncn_progname}; ac_word=$2
13132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13133$as_echo_n "checking for $ac_word... " >&6; }
13134if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13135 $as_echo_n "(cached) " >&6
13136else
13137 if test -n "$READELF_FOR_TARGET"; then
13138 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13139else
13140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13141for as_dir in $PATH
13142do
13143 IFS=$as_save_IFS
13144 test -z "$as_dir" && as_dir=.
13145 for ac_exec_ext in '' $ac_executable_extensions; do
13146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13147 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13149 break 2
13150 fi
13151done
13152 done
13153IFS=$as_save_IFS
13154
13155fi
13156fi
13157READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13158if test -n "$READELF_FOR_TARGET"; then
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13160$as_echo "$READELF_FOR_TARGET" >&6; }
13161else
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13163$as_echo "no" >&6; }
13164fi
13165
13166
13167 done
13168fi
13169
13170if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13171 for ncn_progname in readelf; do
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13173$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13174 if test -x $with_build_time_tools/${ncn_progname}; then
13175 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13177$as_echo "yes" >&6; }
13178 break
13179 else
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13181$as_echo "no" >&6; }
13182 fi
13183 done
13184fi
13185
13186if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13187 for ncn_progname in readelf; do
13188 if test -n "$ncn_target_tool_prefix"; then
13189 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13190set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13192$as_echo_n "checking for $ac_word... " >&6; }
13193if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13194 $as_echo_n "(cached) " >&6
13195else
13196 if test -n "$READELF_FOR_TARGET"; then
13197 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13198else
13199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13200for as_dir in $PATH
13201do
13202 IFS=$as_save_IFS
13203 test -z "$as_dir" && as_dir=.
13204 for ac_exec_ext in '' $ac_executable_extensions; do
13205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13206 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13208 break 2
13209 fi
13210done
13211 done
13212IFS=$as_save_IFS
13213
13214fi
13215fi
13216READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13217if test -n "$READELF_FOR_TARGET"; then
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13219$as_echo "$READELF_FOR_TARGET" >&6; }
13220else
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13222$as_echo "no" >&6; }
13223fi
13224
13225
13226 fi
13227 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13228 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13229set dummy ${ncn_progname}; ac_word=$2
13230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13231$as_echo_n "checking for $ac_word... " >&6; }
13232if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13233 $as_echo_n "(cached) " >&6
13234else
13235 if test -n "$READELF_FOR_TARGET"; then
13236 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13237else
13238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13239for as_dir in $PATH
13240do
13241 IFS=$as_save_IFS
13242 test -z "$as_dir" && as_dir=.
13243 for ac_exec_ext in '' $ac_executable_extensions; do
13244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13245 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13247 break 2
13248 fi
13249done
13250 done
13251IFS=$as_save_IFS
13252
13253fi
13254fi
13255READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13256if test -n "$READELF_FOR_TARGET"; then
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13258$as_echo "$READELF_FOR_TARGET" >&6; }
13259else
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13261$as_echo "no" >&6; }
13262fi
13263
13264
13265 fi
13266 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13267 done
13268fi
13269
13270if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13271 set dummy readelf
13272 if test $build = $target ; then
13273 READELF_FOR_TARGET="$2"
13274 else
13275 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13276 fi
13277else
13278 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13279fi
13280
13281else
13282 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13283fi
13284
13285
13286
13287
2429c060
PB
13288if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13289 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13291$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13292 if test -x $with_build_time_tools/strip; then
13293 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13294 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13296$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 13297 else
81ecdfbb
RW
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13299$as_echo "no" >&6; }
3a35eeb3 13300 fi
2429c060
PB
13301 elif test $build != $host && test $have_gcc_for_target = yes; then
13302 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
13303 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13304 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
13305 fi
13306fi
c6b750e1 13307if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13308 # Extract the first word of "strip", so it can be a program name with args.
13309set dummy strip; ac_word=$2
81ecdfbb
RW
13310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13311$as_echo_n "checking for $ac_word... " >&6; }
13312if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13313 $as_echo_n "(cached) " >&6
2429c060 13314else
c6b750e1
DJ
13315 case $STRIP_FOR_TARGET in
13316 [\\/]* | ?:[\\/]*)
2429c060
PB
13317 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13318 ;;
2429c060 13319 *)
c6b750e1
DJ
13320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13321for as_dir in $gcc_cv_tool_dirs
13322do
13323 IFS=$as_save_IFS
13324 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13325 for ac_exec_ext in '' $ac_executable_extensions; do
13326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13327 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13329 break 2
13330 fi
13331done
81ecdfbb
RW
13332 done
13333IFS=$as_save_IFS
c6b750e1 13334
2429c060
PB
13335 ;;
13336esac
13337fi
c6b750e1 13338STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 13339if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13341$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 13342else
81ecdfbb
RW
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13344$as_echo "no" >&6; }
2429c060
PB
13345fi
13346
81ecdfbb 13347
2429c060
PB
13348fi
13349if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
13350
13351
13352if test -n "$STRIP_FOR_TARGET"; then
13353 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13354elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13355 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13356fi
13357
13358if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13359 for ncn_progname in strip; do
13360 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13361set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13363$as_echo_n "checking for $ac_word... " >&6; }
13364if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13365 $as_echo_n "(cached) " >&6
9a819804
AO
13366else
13367 if test -n "$STRIP_FOR_TARGET"; then
13368 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13369else
13370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13371for as_dir in $PATH
13372do
13373 IFS=$as_save_IFS
13374 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13375 for ac_exec_ext in '' $ac_executable_extensions; do
13376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 13377 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13379 break 2
13380 fi
13381done
81ecdfbb
RW
13382 done
13383IFS=$as_save_IFS
9a819804
AO
13384
13385fi
13386fi
13387STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13388if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13390$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 13391else
81ecdfbb
RW
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13393$as_echo "no" >&6; }
9a819804
AO
13394fi
13395
81ecdfbb 13396
9a819804
AO
13397 done
13398fi
13399
13400if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13401 for ncn_progname in strip; do
81ecdfbb
RW
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13403$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13404 if test -x $with_build_time_tools/${ncn_progname}; then
13405 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13407$as_echo "yes" >&6; }
2429c060
PB
13408 break
13409 else
81ecdfbb
RW
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13411$as_echo "no" >&6; }
2429c060
PB
13412 fi
13413 done
13414fi
13415
13416if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13417 for ncn_progname in strip; do
13418 if test -n "$ncn_target_tool_prefix"; then
13419 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 13420set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13422$as_echo_n "checking for $ac_word... " >&6; }
13423if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13424 $as_echo_n "(cached) " >&6
7e0f7140
GK
13425else
13426 if test -n "$STRIP_FOR_TARGET"; then
13427 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
13428else
13429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13430for as_dir in $PATH
13431do
13432 IFS=$as_save_IFS
13433 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13434 for ac_exec_ext in '' $ac_executable_extensions; do
13435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13436 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13438 break 2
13439 fi
13440done
81ecdfbb
RW
13441 done
13442IFS=$as_save_IFS
c6b750e1 13443
7e0f7140
GK
13444fi
13445fi
c6b750e1 13446STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13447if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13449$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13450else
81ecdfbb
RW
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13452$as_echo "no" >&6; }
7e0f7140
GK
13453fi
13454
81ecdfbb 13455
2429c060
PB
13456 fi
13457 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13458 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 13459set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13461$as_echo_n "checking for $ac_word... " >&6; }
13462if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13463 $as_echo_n "(cached) " >&6
7e0f7140
GK
13464else
13465 if test -n "$STRIP_FOR_TARGET"; then
13466 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13467else
c6b750e1
DJ
13468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13469for as_dir in $PATH
13470do
13471 IFS=$as_save_IFS
13472 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13473 for ac_exec_ext in '' $ac_executable_extensions; do
13474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13475 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13477 break 2
13478 fi
13479done
81ecdfbb
RW
13480 done
13481IFS=$as_save_IFS
c6b750e1 13482
7e0f7140
GK
13483fi
13484fi
c6b750e1 13485STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13486if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13488$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13489else
81ecdfbb
RW
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13491$as_echo "no" >&6; }
7e0f7140 13492fi
c6b750e1 13493
81ecdfbb 13494
2429c060
PB
13495 fi
13496 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13497 done
13498fi
c6b750e1 13499
7e0f7140
GK
13500if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13501 set dummy strip
13502 if test $build = $target ; then
13503 STRIP_FOR_TARGET="$2"
13504 else
13505 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13506 fi
d3f5afc4
MS
13507else
13508 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
13509fi
13510
3a35eeb3
PB
13511else
13512 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
13513fi
13514
13515
13516
13517
13518if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13519 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13521$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13522 if test -x $with_build_time_tools/windres; then
13523 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13524 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13526$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 13527 else
81ecdfbb
RW
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13529$as_echo "no" >&6; }
3a35eeb3 13530 fi
2429c060
PB
13531 elif test $build != $host && test $have_gcc_for_target = yes; then
13532 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
13533 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13534 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
13535 fi
13536fi
c6b750e1 13537if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13538 # Extract the first word of "windres", so it can be a program name with args.
13539set dummy windres; ac_word=$2
81ecdfbb
RW
13540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13541$as_echo_n "checking for $ac_word... " >&6; }
13542if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13543 $as_echo_n "(cached) " >&6
2429c060 13544else
c6b750e1
DJ
13545 case $WINDRES_FOR_TARGET in
13546 [\\/]* | ?:[\\/]*)
2429c060
PB
13547 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13548 ;;
2429c060 13549 *)
c6b750e1
DJ
13550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13551for as_dir in $gcc_cv_tool_dirs
13552do
13553 IFS=$as_save_IFS
13554 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13555 for ac_exec_ext in '' $ac_executable_extensions; do
13556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13557 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13559 break 2
13560 fi
13561done
81ecdfbb
RW
13562 done
13563IFS=$as_save_IFS
c6b750e1 13564
2429c060
PB
13565 ;;
13566esac
13567fi
c6b750e1 13568WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 13569if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13571$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 13572else
81ecdfbb
RW
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13574$as_echo "no" >&6; }
2429c060
PB
13575fi
13576
81ecdfbb 13577
2429c060
PB
13578fi
13579if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
13580
13581
13582if test -n "$WINDRES_FOR_TARGET"; then
13583 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13584elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13585 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13586fi
13587
13588if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13589 for ncn_progname in windres; do
13590 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13591set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13593$as_echo_n "checking for $ac_word... " >&6; }
13594if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13595 $as_echo_n "(cached) " >&6
9a819804
AO
13596else
13597 if test -n "$WINDRES_FOR_TARGET"; then
13598 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13599else
13600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13601for as_dir in $PATH
13602do
13603 IFS=$as_save_IFS
13604 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13605 for ac_exec_ext in '' $ac_executable_extensions; do
13606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 13607 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13609 break 2
13610 fi
13611done
81ecdfbb
RW
13612 done
13613IFS=$as_save_IFS
9a819804
AO
13614
13615fi
13616fi
13617WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13618if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13620$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 13621else
81ecdfbb
RW
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13623$as_echo "no" >&6; }
9a819804
AO
13624fi
13625
81ecdfbb 13626
9a819804
AO
13627 done
13628fi
13629
13630if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13631 for ncn_progname in windres; do
81ecdfbb
RW
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13633$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13634 if test -x $with_build_time_tools/${ncn_progname}; then
13635 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13637$as_echo "yes" >&6; }
2429c060
PB
13638 break
13639 else
81ecdfbb
RW
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13641$as_echo "no" >&6; }
2429c060
PB
13642 fi
13643 done
13644fi
13645
13646if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13647 for ncn_progname in windres; do
13648 if test -n "$ncn_target_tool_prefix"; then
13649 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13650set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13652$as_echo_n "checking for $ac_word... " >&6; }
13653if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13654 $as_echo_n "(cached) " >&6
859789af 13655else
55db4b87
PB
13656 if test -n "$WINDRES_FOR_TARGET"; then
13657 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13658else
c6b750e1
DJ
13659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13660for as_dir in $PATH
13661do
13662 IFS=$as_save_IFS
13663 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13664 for ac_exec_ext in '' $ac_executable_extensions; do
13665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13666 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13668 break 2
13669 fi
13670done
81ecdfbb
RW
13671 done
13672IFS=$as_save_IFS
c6b750e1 13673
859789af
AC
13674fi
13675fi
c6b750e1 13676WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 13677if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13679$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13680else
81ecdfbb
RW
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13682$as_echo "no" >&6; }
859789af
AC
13683fi
13684
81ecdfbb 13685
2429c060
PB
13686 fi
13687 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13688 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13689set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13691$as_echo_n "checking for $ac_word... " >&6; }
13692if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13693 $as_echo_n "(cached) " >&6
859789af 13694else
05cbd757
PB
13695 if test -n "$WINDRES_FOR_TARGET"; then
13696 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13697else
c6b750e1
DJ
13698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13699for as_dir in $PATH
13700do
13701 IFS=$as_save_IFS
13702 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13703 for ac_exec_ext in '' $ac_executable_extensions; do
13704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13705 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13707 break 2
13708 fi
13709done
81ecdfbb
RW
13710 done
13711IFS=$as_save_IFS
c6b750e1 13712
859789af
AC
13713fi
13714fi
c6b750e1 13715WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 13716if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13718$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13719else
81ecdfbb
RW
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13721$as_echo "no" >&6; }
859789af 13722fi
c6b750e1 13723
81ecdfbb 13724
2429c060
PB
13725 fi
13726 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13727 done
13728fi
c6b750e1 13729
05cbd757
PB
13730if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13731 set dummy windres
13732 if test $build = $target ; then
13733 WINDRES_FOR_TARGET="$2"
859789af 13734 else
05cbd757 13735 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 13736 fi
d3f5afc4
MS
13737else
13738 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
13739fi
13740
3a35eeb3
PB
13741else
13742 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
13743fi
13744
852e5f18 13745
0c24b341
NC
13746
13747
13748if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13749 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13751$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
13752 if test -x $with_build_time_tools/windmc; then
13753 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13754 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13756$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 13757 else
81ecdfbb
RW
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13759$as_echo "no" >&6; }
0c24b341
NC
13760 fi
13761 elif test $build != $host && test $have_gcc_for_target = yes; then
13762 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13763 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13764 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13765 fi
13766fi
13767if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13768 # Extract the first word of "windmc", so it can be a program name with args.
13769set dummy windmc; ac_word=$2
81ecdfbb
RW
13770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13771$as_echo_n "checking for $ac_word... " >&6; }
13772if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13773 $as_echo_n "(cached) " >&6
0c24b341
NC
13774else
13775 case $WINDMC_FOR_TARGET in
13776 [\\/]* | ?:[\\/]*)
13777 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13778 ;;
13779 *)
13780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13781for as_dir in $gcc_cv_tool_dirs
13782do
13783 IFS=$as_save_IFS
13784 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13785 for ac_exec_ext in '' $ac_executable_extensions; do
13786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13787 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13789 break 2
13790 fi
13791done
81ecdfbb
RW
13792 done
13793IFS=$as_save_IFS
0c24b341
NC
13794
13795 ;;
13796esac
13797fi
13798WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 13799if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13801$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13802else
81ecdfbb
RW
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13804$as_echo "no" >&6; }
0c24b341
NC
13805fi
13806
81ecdfbb 13807
0c24b341
NC
13808fi
13809if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13810
13811
13812if test -n "$WINDMC_FOR_TARGET"; then
13813 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13814elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13815 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13816fi
13817
13818if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13819 for ncn_progname in windmc; do
13820 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13821set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13823$as_echo_n "checking for $ac_word... " >&6; }
13824if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13825 $as_echo_n "(cached) " >&6
0c24b341
NC
13826else
13827 if test -n "$WINDMC_FOR_TARGET"; then
13828 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13829else
13830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13831for as_dir in $PATH
13832do
13833 IFS=$as_save_IFS
13834 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13835 for ac_exec_ext in '' $ac_executable_extensions; do
13836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13837 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13839 break 2
13840 fi
13841done
81ecdfbb
RW
13842 done
13843IFS=$as_save_IFS
0c24b341
NC
13844
13845fi
13846fi
13847WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13848if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13850$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13851else
81ecdfbb
RW
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13853$as_echo "no" >&6; }
0c24b341
NC
13854fi
13855
81ecdfbb 13856
0c24b341
NC
13857 done
13858fi
13859
13860if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13861 for ncn_progname in windmc; do
81ecdfbb
RW
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13863$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
13864 if test -x $with_build_time_tools/${ncn_progname}; then
13865 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13867$as_echo "yes" >&6; }
0c24b341
NC
13868 break
13869 else
81ecdfbb
RW
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13871$as_echo "no" >&6; }
0c24b341
NC
13872 fi
13873 done
13874fi
13875
13876if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13877 for ncn_progname in windmc; do
13878 if test -n "$ncn_target_tool_prefix"; then
13879 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13880set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13882$as_echo_n "checking for $ac_word... " >&6; }
13883if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13884 $as_echo_n "(cached) " >&6
0c24b341
NC
13885else
13886 if test -n "$WINDMC_FOR_TARGET"; then
13887 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13888else
13889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13890for as_dir in $PATH
13891do
13892 IFS=$as_save_IFS
13893 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13894 for ac_exec_ext in '' $ac_executable_extensions; do
13895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13896 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13898 break 2
13899 fi
13900done
81ecdfbb
RW
13901 done
13902IFS=$as_save_IFS
0c24b341
NC
13903
13904fi
13905fi
13906WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13907if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13909$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13910else
81ecdfbb
RW
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13912$as_echo "no" >&6; }
0c24b341
NC
13913fi
13914
81ecdfbb 13915
0c24b341
NC
13916 fi
13917 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13918 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13919set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13921$as_echo_n "checking for $ac_word... " >&6; }
13922if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13923 $as_echo_n "(cached) " >&6
0c24b341
NC
13924else
13925 if test -n "$WINDMC_FOR_TARGET"; then
13926 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13927else
13928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13929for as_dir in $PATH
13930do
13931 IFS=$as_save_IFS
13932 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13933 for ac_exec_ext in '' $ac_executable_extensions; do
13934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13935 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13937 break 2
13938 fi
13939done
81ecdfbb
RW
13940 done
13941IFS=$as_save_IFS
0c24b341
NC
13942
13943fi
13944fi
13945WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13946if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13948$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13949else
81ecdfbb
RW
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13951$as_echo "no" >&6; }
0c24b341
NC
13952fi
13953
81ecdfbb 13954
0c24b341
NC
13955 fi
13956 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13957 done
13958fi
13959
13960if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13961 set dummy windmc
13962 if test $build = $target ; then
13963 WINDMC_FOR_TARGET="$2"
13964 else
13965 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13966 fi
13967else
13968 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13969fi
13970
13971else
13972 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13973fi
13974
13975
be01d343
PB
13976RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13977
81ecdfbb
RW
13978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13979$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 13980if test "x${build}" != "x${host}" ; then
2429c060
PB
13981 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13982 # We already found the complete path
b8025f34 13983 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13985$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13986 else
13987 # Canadian cross, just use what we found
81ecdfbb
RW
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13989$as_echo "pre-installed" >&6; }
2429c060 13990 fi
be01d343
PB
13991else
13992 ok=yes
13993 case " ${configdirs} " in
13994 *" binutils "*) ;;
13995 *) ok=no ;;
13996 esac
c6b750e1 13997
be01d343
PB
13998 if test $ok = yes; then
13999 # An in-tree tool is available and we can use it
14000 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14002$as_echo "just compiled" >&6; }
2429c060
PB
14003 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14004 # We already found the complete path
b8025f34 14005 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14007$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14008 elif test "x$target" = "x$host"; then
14009 # We can use an host tool
14010 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14012$as_echo "host tool" >&6; }
be01d343
PB
14013 else
14014 # We need a cross tool
81ecdfbb
RW
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14016$as_echo "pre-installed" >&6; }
be01d343
PB
14017 fi
14018fi
4b900473 14019
81ecdfbb
RW
14020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14021$as_echo_n "checking where to find the target as... " >&6; }
be01d343 14022if test "x${build}" != "x${host}" ; then
2429c060
PB
14023 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14024 # We already found the complete path
b8025f34 14025 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14027$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14028 else
14029 # Canadian cross, just use what we found
81ecdfbb
RW
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14031$as_echo "pre-installed" >&6; }
2429c060 14032 fi
be01d343
PB
14033else
14034 ok=yes
14035 case " ${configdirs} " in
14036 *" gas "*) ;;
14037 *) ok=no ;;
14038 esac
c6b750e1 14039
be01d343
PB
14040 if test $ok = yes; then
14041 # An in-tree tool is available and we can use it
14042 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14044$as_echo "just compiled" >&6; }
2429c060
PB
14045 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14046 # We already found the complete path
b8025f34 14047 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14049$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14050 elif test "x$target" = "x$host"; then
14051 # We can use an host tool
14052 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14054$as_echo "host tool" >&6; }
be01d343
PB
14055 else
14056 # We need a cross tool
81ecdfbb
RW
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14058$as_echo "pre-installed" >&6; }
be01d343
PB
14059 fi
14060fi
4b900473 14061
81ecdfbb
RW
14062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14063$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 14064if test "x${build}" != "x${host}" ; then
2429c060
PB
14065 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14066 # We already found the complete path
b8025f34 14067 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14069$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14070 else
14071 # Canadian cross, just use what we found
81ecdfbb
RW
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14073$as_echo "pre-installed" >&6; }
2429c060 14074 fi
be01d343
PB
14075else
14076 ok=yes
14077 case " ${configdirs} " in
14078 *" gcc "*) ;;
14079 *) ok=no ;;
14080 esac
c6b750e1 14081
be01d343
PB
14082 if test $ok = yes; then
14083 # An in-tree tool is available and we can use it
14084 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14086$as_echo "just compiled" >&6; }
2429c060
PB
14087 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14088 # We already found the complete path
b8025f34 14089 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14091$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14092 elif test "x$target" = "x$host"; then
14093 # We can use an host tool
14094 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14096$as_echo "host tool" >&6; }
be01d343
PB
14097 else
14098 # We need a cross tool
81ecdfbb
RW
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14100$as_echo "pre-installed" >&6; }
be01d343
PB
14101 fi
14102fi
4b900473 14103
81ecdfbb
RW
14104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14105$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 14106if test "x${build}" != "x${host}" ; then
2429c060
PB
14107 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14108 # We already found the complete path
b8025f34 14109 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14111$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14112 else
14113 # Canadian cross, just use what we found
81ecdfbb
RW
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14115$as_echo "pre-installed" >&6; }
2429c060 14116 fi
be01d343
PB
14117else
14118 ok=yes
14119 case " ${configdirs} " in
14120 *" gcc "*) ;;
14121 *) ok=no ;;
14122 esac
14123 case ,${enable_languages}, in
14124 *,c++,*) ;;
14125 *) ok=no ;;
14126 esac
14127 if test $ok = yes; then
14128 # An in-tree tool is available and we can use it
95e43135 14129 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
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14131$as_echo "just compiled" >&6; }
2429c060
PB
14132 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14133 # We already found the complete path
b8025f34 14134 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14136$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14137 elif test "x$target" = "x$host"; then
14138 # We can use an host tool
14139 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14141$as_echo "host tool" >&6; }
be01d343
PB
14142 else
14143 # We need a cross tool
81ecdfbb
RW
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14145$as_echo "pre-installed" >&6; }
be01d343
PB
14146 fi
14147fi
4b900473 14148
81ecdfbb
RW
14149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14150$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 14151if test "x${build}" != "x${host}" ; then
2429c060
PB
14152 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14153 # We already found the complete path
b8025f34 14154 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14156$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14157 else
14158 # Canadian cross, just use what we found
81ecdfbb
RW
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14160$as_echo "pre-installed" >&6; }
2429c060 14161 fi
be01d343
PB
14162else
14163 ok=yes
14164 case " ${configdirs} " in
14165 *" gcc "*) ;;
14166 *) ok=no ;;
14167 esac
14168 case ,${enable_languages}, in
14169 *,c++,*) ;;
14170 *) ok=no ;;
14171 esac
14172 if test $ok = yes; then
14173 # An in-tree tool is available and we can use it
95e43135 14174 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
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14176$as_echo "just compiled" >&6; }
2429c060
PB
14177 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14178 # We already found the complete path
b8025f34 14179 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14181$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14182 elif test "x$target" = "x$host"; then
14183 # We can use an host tool
14184 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14186$as_echo "host tool" >&6; }
be01d343
PB
14187 else
14188 # We need a cross tool
81ecdfbb
RW
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14190$as_echo "pre-installed" >&6; }
be01d343
PB
14191 fi
14192fi
4b900473 14193
81ecdfbb
RW
14194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14195$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 14196if test "x${build}" != "x${host}" ; then
2429c060
PB
14197 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14198 # We already found the complete path
b8025f34 14199 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14201$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14202 else
14203 # Canadian cross, just use what we found
81ecdfbb
RW
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14205$as_echo "pre-installed" >&6; }
2429c060 14206 fi
be01d343
PB
14207else
14208 ok=yes
14209 case " ${configdirs} " in
14210 *" binutils "*) ;;
14211 *) ok=no ;;
14212 esac
c6b750e1 14213
be01d343
PB
14214 if test $ok = yes; then
14215 # An in-tree tool is available and we can use it
14216 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14218$as_echo "just compiled" >&6; }
2429c060
PB
14219 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14220 # We already found the complete path
b8025f34 14221 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14223$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14224 elif test "x$target" = "x$host"; then
14225 # We can use an host tool
14226 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14228$as_echo "host tool" >&6; }
be01d343
PB
14229 else
14230 # We need a cross tool
81ecdfbb
RW
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14232$as_echo "pre-installed" >&6; }
be01d343
PB
14233 fi
14234fi
4b900473 14235
81ecdfbb
RW
14236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14237$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 14238if test "x${build}" != "x${host}" ; then
2429c060
PB
14239 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14240 # We already found the complete path
b8025f34 14241 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14243$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14244 else
14245 # Canadian cross, just use what we found
81ecdfbb
RW
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14247$as_echo "pre-installed" >&6; }
2429c060 14248 fi
be01d343
PB
14249else
14250 ok=yes
14251 case " ${configdirs} " in
14252 *" gcc "*) ;;
14253 *) ok=no ;;
14254 esac
c6b750e1 14255
be01d343
PB
14256 if test $ok = yes; then
14257 # An in-tree tool is available and we can use it
14258 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14260$as_echo "just compiled" >&6; }
2429c060
PB
14261 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14262 # We already found the complete path
b8025f34 14263 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14265$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14266 elif test "x$target" = "x$host"; then
14267 # We can use an host tool
14268 GCC_FOR_TARGET='$()'
81ecdfbb
RW
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14270$as_echo "host tool" >&6; }
be01d343
PB
14271 else
14272 # We need a cross tool
81ecdfbb
RW
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14274$as_echo "pre-installed" >&6; }
be01d343
PB
14275 fi
14276fi
4b900473 14277
81ecdfbb
RW
14278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14279$as_echo_n "checking where to find the target gcj... " >&6; }
be01d343 14280if test "x${build}" != "x${host}" ; then
2429c060
PB
14281 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14282 # We already found the complete path
b8025f34 14283 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14285$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14286 else
14287 # Canadian cross, just use what we found
81ecdfbb
RW
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14289$as_echo "pre-installed" >&6; }
2429c060 14290 fi
be01d343
PB
14291else
14292 ok=yes
14293 case " ${configdirs} " in
14294 *" gcc "*) ;;
14295 *) ok=no ;;
14296 esac
14297 case ,${enable_languages}, in
14298 *,java,*) ;;
14299 *) ok=no ;;
14300 esac
14301 if test $ok = yes; then
14302 # An in-tree tool is available and we can use it
14303 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14305$as_echo "just compiled" >&6; }
2429c060
PB
14306 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14307 # We already found the complete path
b8025f34 14308 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14310$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14311 elif test "x$target" = "x$host"; then
14312 # We can use an host tool
14313 GCJ_FOR_TARGET='$(GCJ)'
81ecdfbb
RW
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14315$as_echo "host tool" >&6; }
be01d343
PB
14316 else
14317 # We need a cross tool
81ecdfbb
RW
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14319$as_echo "pre-installed" >&6; }
be01d343
PB
14320 fi
14321fi
4b900473 14322
81ecdfbb
RW
14323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14324$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 14325if test "x${build}" != "x${host}" ; then
2429c060
PB
14326 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14327 # We already found the complete path
b8025f34 14328 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14330$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14331 else
14332 # Canadian cross, just use what we found
81ecdfbb
RW
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14334$as_echo "pre-installed" >&6; }
2429c060 14335 fi
be01d343
PB
14336else
14337 ok=yes
14338 case " ${configdirs} " in
14339 *" gcc "*) ;;
14340 *) ok=no ;;
14341 esac
14342 case ,${enable_languages}, in
14343 *,fortran,*) ;;
14344 *) ok=no ;;
14345 esac
14346 if test $ok = yes; then
14347 # An in-tree tool is available and we can use it
14348 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14350$as_echo "just compiled" >&6; }
2429c060
PB
14351 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14352 # We already found the complete path
b8025f34 14353 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14355$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14356 elif test "x$target" = "x$host"; then
14357 # We can use an host tool
14358 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14360$as_echo "host tool" >&6; }
be01d343
PB
14361 else
14362 # We need a cross tool
81ecdfbb
RW
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14364$as_echo "pre-installed" >&6; }
be01d343
PB
14365 fi
14366fi
4b900473 14367
e552509b
ILT
14368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14369$as_echo_n "checking where to find the target gccgo... " >&6; }
14370if test "x${build}" != "x${host}" ; then
14371 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14372 # We already found the complete path
14373 ac_dir=`dirname $GOC_FOR_TARGET`
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14375$as_echo "pre-installed in $ac_dir" >&6; }
14376 else
14377 # Canadian cross, just use what we found
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14379$as_echo "pre-installed" >&6; }
14380 fi
14381else
14382 ok=yes
14383 case " ${configdirs} " in
14384 *" gcc "*) ;;
14385 *) ok=no ;;
14386 esac
14387 case ,${enable_languages}, in
14388 *,go,*) ;;
14389 *) ok=no ;;
14390 esac
14391 if test $ok = yes; then
14392 # An in-tree tool is available and we can use it
14393 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14395$as_echo "just compiled" >&6; }
14396 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14397 # We already found the complete path
14398 ac_dir=`dirname $GOC_FOR_TARGET`
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14400$as_echo "pre-installed in $ac_dir" >&6; }
14401 elif test "x$target" = "x$host"; then
14402 # We can use an host tool
14403 GOC_FOR_TARGET='$(GOC)'
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14405$as_echo "host tool" >&6; }
14406 else
14407 # We need a cross tool
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14409$as_echo "pre-installed" >&6; }
14410 fi
14411fi
14412
81ecdfbb
RW
14413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14414$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 14415if test "x${build}" != "x${host}" ; then
2429c060
PB
14416 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14417 # We already found the complete path
b8025f34 14418 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14420$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14421 else
14422 # Canadian cross, just use what we found
81ecdfbb
RW
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14424$as_echo "pre-installed" >&6; }
2429c060 14425 fi
be01d343
PB
14426else
14427 ok=yes
14428 case " ${configdirs} " in
14429 *" ld "*) ;;
14430 *) ok=no ;;
14431 esac
c6b750e1 14432
be01d343
PB
14433 if test $ok = yes; then
14434 # An in-tree tool is available and we can use it
14435 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14437$as_echo "just compiled" >&6; }
2429c060
PB
14438 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14439 # We already found the complete path
b8025f34 14440 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14442$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14443 elif test "x$target" = "x$host"; then
14444 # We can use an host tool
14445 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14447$as_echo "host tool" >&6; }
be01d343
PB
14448 else
14449 # We need a cross tool
81ecdfbb
RW
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14451$as_echo "pre-installed" >&6; }
be01d343
PB
14452 fi
14453fi
4b900473 14454
81ecdfbb
RW
14455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14456$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 14457if test "x${build}" != "x${host}" ; then
2429c060
PB
14458 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14459 # We already found the complete path
b8025f34 14460 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14462$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14463 else
14464 # Canadian cross, just use what we found
81ecdfbb
RW
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14466$as_echo "pre-installed" >&6; }
2429c060 14467 fi
be01d343 14468else
2429c060
PB
14469 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14470 # We already found the complete path
b8025f34 14471 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14473$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 14474 elif test "x$target" = "x$host"; then
be01d343
PB
14475 # We can use an host tool
14476 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14478$as_echo "host tool" >&6; }
be01d343
PB
14479 else
14480 # We need a cross tool
81ecdfbb
RW
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14482$as_echo "pre-installed" >&6; }
be01d343
PB
14483 fi
14484fi
4b900473 14485
81ecdfbb
RW
14486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14487$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 14488if test "x${build}" != "x${host}" ; then
2429c060
PB
14489 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14490 # We already found the complete path
b8025f34 14491 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14493$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14494 else
14495 # Canadian cross, just use what we found
81ecdfbb
RW
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14497$as_echo "pre-installed" >&6; }
2429c060 14498 fi
be01d343
PB
14499else
14500 ok=yes
14501 case " ${configdirs} " in
14502 *" binutils "*) ;;
14503 *) ok=no ;;
14504 esac
c6b750e1 14505
be01d343
PB
14506 if test $ok = yes; then
14507 # An in-tree tool is available and we can use it
14508 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14510$as_echo "just compiled" >&6; }
2429c060
PB
14511 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14512 # We already found the complete path
b8025f34 14513 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14515$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14516 elif test "x$target" = "x$host"; then
14517 # We can use an host tool
14518 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14520$as_echo "host tool" >&6; }
be01d343
PB
14521 else
14522 # We need a cross tool
81ecdfbb
RW
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14524$as_echo "pre-installed" >&6; }
be01d343
PB
14525 fi
14526fi
4b900473 14527
6b91c541
AP
14528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14529$as_echo_n "checking where to find the target objcopy... " >&6; }
14530if test "x${build}" != "x${host}" ; then
14531 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14532 # We already found the complete path
14533 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14535$as_echo "pre-installed in $ac_dir" >&6; }
14536 else
14537 # Canadian cross, just use what we found
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14539$as_echo "pre-installed" >&6; }
14540 fi
14541else
14542 ok=yes
14543 case " ${configdirs} " in
14544 *" binutils "*) ;;
14545 *) ok=no ;;
14546 esac
14547
14548 if test $ok = yes; then
14549 # An in-tree tool is available and we can use it
14550 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14552$as_echo "just compiled" >&6; }
14553 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14554 # We already found the complete path
14555 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14557$as_echo "pre-installed in $ac_dir" >&6; }
14558 elif test "x$target" = "x$host"; then
14559 # We can use an host tool
14560 OBJCOPY_FOR_TARGET='$(OBJDUMP)'
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14562$as_echo "host tool" >&6; }
14563 else
14564 # We need a cross tool
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14566$as_echo "pre-installed" >&6; }
14567 fi
14568fi
14569
81ecdfbb
RW
14570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14571$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 14572if test "x${build}" != "x${host}" ; then
2429c060
PB
14573 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14574 # We already found the complete path
b8025f34 14575 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14577$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14578 else
14579 # Canadian cross, just use what we found
81ecdfbb
RW
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14581$as_echo "pre-installed" >&6; }
2429c060 14582 fi
be01d343
PB
14583else
14584 ok=yes
14585 case " ${configdirs} " in
14586 *" binutils "*) ;;
14587 *) ok=no ;;
14588 esac
c6b750e1 14589
be01d343
PB
14590 if test $ok = yes; then
14591 # An in-tree tool is available and we can use it
14592 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14594$as_echo "just compiled" >&6; }
2429c060
PB
14595 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14596 # We already found the complete path
b8025f34 14597 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14599$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14600 elif test "x$target" = "x$host"; then
14601 # We can use an host tool
14602 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14604$as_echo "host tool" >&6; }
be01d343
PB
14605 else
14606 # We need a cross tool
81ecdfbb
RW
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14608$as_echo "pre-installed" >&6; }
be01d343
PB
14609 fi
14610fi
4b900473 14611
81ecdfbb
RW
14612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14613$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 14614if test "x${build}" != "x${host}" ; then
2429c060
PB
14615 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14616 # We already found the complete path
b8025f34 14617 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14619$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14620 else
14621 # Canadian cross, just use what we found
81ecdfbb
RW
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14623$as_echo "pre-installed" >&6; }
2429c060 14624 fi
be01d343
PB
14625else
14626 ok=yes
14627 case " ${configdirs} " in
14628 *" binutils "*) ;;
14629 *) ok=no ;;
14630 esac
c6b750e1 14631
be01d343
PB
14632 if test $ok = yes; then
14633 # An in-tree tool is available and we can use it
14634 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14636$as_echo "just compiled" >&6; }
2429c060
PB
14637 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14638 # We already found the complete path
b8025f34 14639 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14641$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14642 elif test "x$target" = "x$host"; then
14643 # We can use an host tool
14644 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14646$as_echo "host tool" >&6; }
be01d343
PB
14647 else
14648 # We need a cross tool
81ecdfbb
RW
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14650$as_echo "pre-installed" >&6; }
be01d343
PB
14651 fi
14652fi
4b900473 14653
b121d7d4
DD
14654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14655$as_echo_n "checking where to find the target readelf... " >&6; }
14656if test "x${build}" != "x${host}" ; then
14657 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14658 # We already found the complete path
14659 ac_dir=`dirname $READELF_FOR_TARGET`
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14661$as_echo "pre-installed in $ac_dir" >&6; }
14662 else
14663 # Canadian cross, just use what we found
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14665$as_echo "pre-installed" >&6; }
14666 fi
14667else
14668 ok=yes
14669 case " ${configdirs} " in
14670 *" binutils "*) ;;
14671 *) ok=no ;;
14672 esac
14673
14674 if test $ok = yes; then
14675 # An in-tree tool is available and we can use it
14676 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14678$as_echo "just compiled" >&6; }
14679 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14680 # We already found the complete path
14681 ac_dir=`dirname $READELF_FOR_TARGET`
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14683$as_echo "pre-installed in $ac_dir" >&6; }
14684 elif test "x$target" = "x$host"; then
14685 # We can use an host tool
14686 READELF_FOR_TARGET='$(READELF)'
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14688$as_echo "host tool" >&6; }
14689 else
14690 # We need a cross tool
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14692$as_echo "pre-installed" >&6; }
14693 fi
14694fi
14695
81ecdfbb
RW
14696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14697$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 14698if test "x${build}" != "x${host}" ; then
2429c060
PB
14699 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14700 # We already found the complete path
b8025f34 14701 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14703$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14704 else
14705 # Canadian cross, just use what we found
81ecdfbb
RW
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14707$as_echo "pre-installed" >&6; }
2429c060 14708 fi
be01d343
PB
14709else
14710 ok=yes
14711 case " ${configdirs} " in
14712 *" binutils "*) ;;
14713 *) ok=no ;;
14714 esac
c6b750e1 14715
be01d343
PB
14716 if test $ok = yes; then
14717 # An in-tree tool is available and we can use it
9b980aa1 14718 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14720$as_echo "just compiled" >&6; }
2429c060
PB
14721 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14722 # We already found the complete path
b8025f34 14723 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14725$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14726 elif test "x$target" = "x$host"; then
14727 # We can use an host tool
14728 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14730$as_echo "host tool" >&6; }
be01d343
PB
14731 else
14732 # We need a cross tool
81ecdfbb
RW
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14734$as_echo "pre-installed" >&6; }
be01d343
PB
14735 fi
14736fi
4b900473 14737
81ecdfbb
RW
14738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14739$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 14740if test "x${build}" != "x${host}" ; then
2429c060
PB
14741 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14742 # We already found the complete path
b8025f34 14743 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14745$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14746 else
14747 # Canadian cross, just use what we found
81ecdfbb
RW
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14749$as_echo "pre-installed" >&6; }
2429c060 14750 fi
be01d343
PB
14751else
14752 ok=yes
14753 case " ${configdirs} " in
14754 *" binutils "*) ;;
14755 *) ok=no ;;
14756 esac
c6b750e1 14757
be01d343
PB
14758 if test $ok = yes; then
14759 # An in-tree tool is available and we can use it
14760 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14762$as_echo "just compiled" >&6; }
2429c060
PB
14763 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14764 # We already found the complete path
b8025f34 14765 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14767$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14768 elif test "x$target" = "x$host"; then
14769 # We can use an host tool
14770 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14772$as_echo "host tool" >&6; }
be01d343
PB
14773 else
14774 # We need a cross tool
81ecdfbb
RW
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14776$as_echo "pre-installed" >&6; }
be01d343 14777 fi
a0da8069 14778fi
54752a6b 14779
81ecdfbb
RW
14780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14781$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
14782if test "x${build}" != "x${host}" ; then
14783 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14784 # We already found the complete path
14785 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14787$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14788 else
14789 # Canadian cross, just use what we found
81ecdfbb
RW
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14791$as_echo "pre-installed" >&6; }
0c24b341
NC
14792 fi
14793else
14794 ok=yes
14795 case " ${configdirs} " in
14796 *" binutils "*) ;;
14797 *) ok=no ;;
14798 esac
14799
14800 if test $ok = yes; then
14801 # An in-tree tool is available and we can use it
14802 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14804$as_echo "just compiled" >&6; }
0c24b341
NC
14805 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14806 # We already found the complete path
14807 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14809$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14810 elif test "x$target" = "x$host"; then
14811 # We can use an host tool
14812 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14814$as_echo "host tool" >&6; }
0c24b341
NC
14815 else
14816 # We need a cross tool
81ecdfbb
RW
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14818$as_echo "pre-installed" >&6; }
0c24b341
NC
14819 fi
14820fi
14821
54752a6b
NN
14822
14823
be01d343 14824
4b900473 14825
a0da8069
NN
14826# Certain tools may need extra flags.
14827AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14828RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14829NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14830
be01d343
PB
14831# When building target libraries, except in a Canadian cross, we use
14832# the same toolchain as the compiler we just built.
14833COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14834COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14835COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14836if test $host = $build; then
14837 case " $configdirs " in
14838 *" gcc "*)
14839 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14840 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14841 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14842 ;;
14843 esac
14844fi
14845
14846
14847
14848
14849
81ecdfbb
RW
14850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14851$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14852# Check whether --enable-maintainer-mode was given.
14853if test "${enable_maintainer_mode+set}" = set; then :
14854 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
14855else
14856 USE_MAINTAINER_MODE=no
81ecdfbb
RW
14857fi
14858
14859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14860$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
14861
14862
14863if test "$USE_MAINTAINER_MODE" = yes; then
14864 MAINTAINER_MODE_TRUE=
14865 MAINTAINER_MODE_FALSE='#'
14866else
14867 MAINTAINER_MODE_TRUE='#'
14868 MAINTAINER_MODE_FALSE=
c6b750e1 14869fi
3d5e36ae
AO
14870MAINT=$MAINTAINER_MODE_TRUE
14871
1d39f329
NN
14872# ---------------------
14873# GCC bootstrap support
14874# ---------------------
14875
14876# Stage specific cflags for build.
14877stage1_cflags="-g"
14878case $build in
14879 vax-*-*)
14880 case ${GCC} in
14881 yes) stage1_cflags="-g -Wa,-J" ;;
14882 *) stage1_cflags="-g -J" ;;
14883 esac ;;
1d39f329
NN
14884esac
14885
1d89b610 14886
1d39f329 14887
8a0d8a5c 14888# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
14889# Check whether --enable-stage1-checking was given.
14890if test "${enable_stage1_checking+set}" = set; then :
14891 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 14892else
5566c1fa 14893 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 14894 stage1_checking=--enable-checking=yes,types
8a0d8a5c 14895else
5566c1fa 14896 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 14897fi
81ecdfbb 14898fi
8a0d8a5c
PB
14899
14900
c6b750e1 14901
81ecdfbb
RW
14902# Enable -Werror in bootstrap stage2 and later.
14903# Check whether --enable-werror was given.
14904if test "${enable_werror+set}" = set; then :
14905 enableval=$enable_werror;
1d39f329 14906else
a0323144 14907 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 14908 enable_werror=yes
79fcd0ec
PB
14909else
14910 enable_werror=no
14911fi
81ecdfbb
RW
14912fi
14913
1a6f2dc7
NN
14914case ${enable_werror} in
14915 yes) stage2_werror_flag="--enable-werror-always" ;;
14916 *) stage2_werror_flag="" ;;
1d39f329
NN
14917esac
14918
14919
82033c9b
JBG
14920# Enable --enable-host-shared.
14921# Check whether --enable-host-shared was given.
14922if test "${enable_host_shared+set}" = set; then :
14923 enableval=$enable_host_shared; host_shared=$enableval
14924else
14925 host_shared=no
14926fi
14927
14928
14929
e8a5fa9c
RW
14930# Specify what files to not compare during bootstrap.
14931
14932compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14933case "$target" in
14934 hppa*64*-*-hpux*) ;;
14935 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
1488e230 14936 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
e8a5fa9c
RW
14937esac
14938
14939
81ecdfbb
RW
14940ac_config_files="$ac_config_files Makefile"
14941
c6b750e1 14942cat >confcache <<\_ACEOF
a0da8069
NN
14943# This file is a shell script that caches the results of configure
14944# tests run on this system so they can be shared between configure
c6b750e1
DJ
14945# scripts and configure runs, see configure's option --config-cache.
14946# It is not useful on other systems. If it contains results you don't
14947# want to keep, you may remove or edit it.
a0da8069 14948#
c6b750e1
DJ
14949# config.status only pays attention to the cache file if you give it
14950# the --recheck option to rerun configure.
a0da8069 14951#
c6b750e1
DJ
14952# `ac_cv_env_foo' variables (set or unset) will be overridden when
14953# loading this file, other *unset* `ac_cv_foo' will be assigned the
14954# following values.
14955
14956_ACEOF
14957
a0da8069
NN
14958# The following way of writing the cache mishandles newlines in values,
14959# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14960# So, we kill variables containing newlines.
a0da8069
NN
14961# Ultrix sh set writes to stderr and can't be redirected directly,
14962# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14963(
14964 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14965 eval ac_val=\$$ac_var
14966 case $ac_val in #(
14967 *${as_nl}*)
14968 case $ac_var in #(
14969 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14970$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14971 esac
14972 case $ac_var in #(
14973 _ | IFS | as_nl) ;; #(
14974 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14975 *) { eval $ac_var=; unset $ac_var;} ;;
14976 esac ;;
14977 esac
14978 done
14979
c6b750e1 14980 (set) 2>&1 |
81ecdfbb
RW
14981 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14982 *${as_nl}ac_space=\ *)
14983 # `set' does not quote correctly, so add quotes: double-quote
14984 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
14985 sed -n \
14986 "s/'/'\\\\''/g;
14987 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14988 ;; #(
c6b750e1
DJ
14989 *)
14990 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14991 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 14992 ;;
81ecdfbb
RW
14993 esac |
14994 sort
14995) |
c6b750e1 14996 sed '
81ecdfbb 14997 /^ac_cv_env_/b end
c6b750e1 14998 t clear
81ecdfbb 14999 :clear
c6b750e1
DJ
15000 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15001 t end
81ecdfbb
RW
15002 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15003 :end' >>confcache
15004if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15005 if test -w "$cache_file"; then
15006 test "x$cache_file" != "x/dev/null" &&
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15008$as_echo "$as_me: updating cache $cache_file" >&6;}
c6b750e1 15009 cat confcache >$cache_file
a0da8069 15010 else
81ecdfbb
RW
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15012$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 15013 fi
852e5f18 15014fi
a0da8069 15015rm -f confcache
852e5f18 15016
a0da8069
NN
15017test "x$prefix" = xNONE && prefix=$ac_default_prefix
15018# Let make expand exec_prefix.
15019test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 15020
a0da8069
NN
15021# Transform confdefs.h into DEFS.
15022# Protect against shell expansion while executing Makefile rules.
15023# Protect against Makefile macro expansion.
c6b750e1
DJ
15024#
15025# If the first sed substitution is executed (which looks for macros that
81ecdfbb 15026# take arguments), then branch to the quote section. Otherwise,
c6b750e1 15027# look for a macro that doesn't take arguments.
81ecdfbb
RW
15028ac_script='
15029:mline
15030/\\$/{
15031 N
15032 s,\\\n,,
15033 b mline
15034}
c6b750e1 15035t clear
81ecdfbb
RW
15036:clear
15037s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 15038t quote
81ecdfbb 15039s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 15040t quote
81ecdfbb
RW
15041b any
15042:quote
15043s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15044s/\[/\\&/g
15045s/\]/\\&/g
15046s/\$/$$/g
15047H
15048:any
15049${
15050 g
15051 s/^\n//
15052 s/\n/ /g
15053 p
15054}
15055'
15056DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
15057
15058
15059ac_libobjs=
15060ac_ltlibobjs=
15061for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15062 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
15063 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15064 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15065 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15066 # will be set to the directory where LIBOBJS objects are built.
15067 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15068 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
15069done
15070LIBOBJS=$ac_libobjs
852e5f18 15071
c6b750e1 15072LTLIBOBJS=$ac_ltlibobjs
376a0e54 15073
cac3d6c4 15074
c6b750e1
DJ
15075
15076: ${CONFIG_STATUS=./config.status}
81ecdfbb 15077ac_write_fail=0
c6b750e1
DJ
15078ac_clean_files_save=$ac_clean_files
15079ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
15080{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15081$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15082as_write_fail=0
15083cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
15084#! $SHELL
15085# Generated by $as_me.
a0da8069 15086# Run this file to recreate the current configuration.
a0da8069 15087# Compiler output produced by configure, useful for debugging
c6b750e1 15088# configure, is in config.log if it exists.
376a0e54 15089
c6b750e1
DJ
15090debug=false
15091ac_cs_recheck=false
15092ac_cs_silent=false
c6b750e1 15093
81ecdfbb
RW
15094SHELL=\${CONFIG_SHELL-$SHELL}
15095export SHELL
15096_ASEOF
15097cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15098## -------------------- ##
15099## M4sh Initialization. ##
15100## -------------------- ##
15101
15102# Be more Bourne compatible
15103DUALCASE=1; export DUALCASE # for MKS sh
15104if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
15105 emulate sh
15106 NULLCMD=:
81ecdfbb 15107 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
15108 # is contrary to our usage. Disable this feature.
15109 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
15110 setopt NO_GLOB_SUBST
15111else
15112 case `(set -o) 2>/dev/null` in #(
15113 *posix*) :
15114 set -o posix ;; #(
15115 *) :
15116 ;;
15117esac
c6b750e1 15118fi
c6b750e1 15119
81ecdfbb
RW
15120
15121as_nl='
15122'
15123export as_nl
15124# Printing a long string crashes Solaris 7 /usr/bin/printf.
15125as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15126as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15127as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15128# Prefer a ksh shell builtin over an external printf program on Solaris,
15129# but without wasting forks for bash or zsh.
15130if test -z "$BASH_VERSION$ZSH_VERSION" \
15131 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15132 as_echo='print -r --'
15133 as_echo_n='print -rn --'
15134elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15135 as_echo='printf %s\n'
15136 as_echo_n='printf %s'
15137else
15138 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15139 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15140 as_echo_n='/usr/ucb/echo -n'
15141 else
15142 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15143 as_echo_n_body='eval
15144 arg=$1;
15145 case $arg in #(
15146 *"$as_nl"*)
15147 expr "X$arg" : "X\\(.*\\)$as_nl";
15148 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15149 esac;
15150 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15151 '
15152 export as_echo_n_body
15153 as_echo_n='sh -c $as_echo_n_body as_echo'
15154 fi
15155 export as_echo_body
15156 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
15157fi
15158
81ecdfbb
RW
15159# The user is always right.
15160if test "${PATH_SEPARATOR+set}" != set; then
15161 PATH_SEPARATOR=:
15162 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15163 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15164 PATH_SEPARATOR=';'
15165 }
15166fi
15167
15168
15169# IFS
15170# We need space, tab and new line, in precisely that order. Quoting is
15171# there to prevent editors from complaining about space-tab.
15172# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15173# splitting by setting IFS to empty value.)
15174IFS=" "" $as_nl"
15175
15176# Find who we are. Look in the path if we contain no directory separator.
15177case $0 in #((
15178 *[\\/]* ) as_myself=$0 ;;
15179 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15180for as_dir in $PATH
15181do
15182 IFS=$as_save_IFS
15183 test -z "$as_dir" && as_dir=.
15184 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15185 done
15186IFS=$as_save_IFS
15187
15188 ;;
15189esac
15190# We did not find ourselves, most probably we were run as `sh COMMAND'
15191# in which case we are not to be found in the path.
15192if test "x$as_myself" = x; then
15193 as_myself=$0
15194fi
15195if test ! -f "$as_myself"; then
15196 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15197 exit 1
15198fi
c6b750e1 15199
81ecdfbb
RW
15200# Unset variables that we do not need and which cause bugs (e.g. in
15201# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15202# suppresses any "Segmentation fault" message there. '((' could
15203# trigger a bug in pdksh 5.2.14.
15204for as_var in BASH_ENV ENV MAIL MAILPATH
15205do eval test x\${$as_var+set} = xset \
15206 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15207done
c6b750e1
DJ
15208PS1='$ '
15209PS2='> '
15210PS4='+ '
15211
15212# NLS nuisances.
81ecdfbb
RW
15213LC_ALL=C
15214export LC_ALL
15215LANGUAGE=C
15216export LANGUAGE
15217
15218# CDPATH.
15219(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15220
15221
15222# as_fn_error ERROR [LINENO LOG_FD]
15223# ---------------------------------
15224# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15225# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15226# script with status $?, using 1 if that was 0.
15227as_fn_error ()
15228{
15229 as_status=$?; test $as_status -eq 0 && as_status=1
15230 if test "$3"; then
15231 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15232 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
c6b750e1 15233 fi
81ecdfbb
RW
15234 $as_echo "$as_me: error: $1" >&2
15235 as_fn_exit $as_status
15236} # as_fn_error
15237
15238
15239# as_fn_set_status STATUS
15240# -----------------------
15241# Set $? to STATUS, without forking.
15242as_fn_set_status ()
15243{
15244 return $1
15245} # as_fn_set_status
15246
15247# as_fn_exit STATUS
15248# -----------------
15249# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15250as_fn_exit ()
15251{
15252 set +e
15253 as_fn_set_status $1
15254 exit $1
15255} # as_fn_exit
15256
15257# as_fn_unset VAR
15258# ---------------
15259# Portably unset VAR.
15260as_fn_unset ()
15261{
15262 { eval $1=; unset $1;}
15263}
15264as_unset=as_fn_unset
15265# as_fn_append VAR VALUE
15266# ----------------------
15267# Append the text in VALUE to the end of the definition contained in VAR. Take
15268# advantage of any shell optimizations that allow amortized linear growth over
15269# repeated appends, instead of the typical quadratic growth present in naive
15270# implementations.
15271if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15272 eval 'as_fn_append ()
15273 {
15274 eval $1+=\$2
15275 }'
15276else
15277 as_fn_append ()
15278 {
15279 eval $1=\$$1\$2
15280 }
15281fi # as_fn_append
15282
15283# as_fn_arith ARG...
15284# ------------------
15285# Perform arithmetic evaluation on the ARGs, and store the result in the
15286# global $as_val. Take advantage of shells that can avoid forks. The arguments
15287# must be portable across $(()) and expr.
15288if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15289 eval 'as_fn_arith ()
15290 {
15291 as_val=$(( $* ))
15292 }'
15293else
15294 as_fn_arith ()
15295 {
15296 as_val=`expr "$@" || test $? -eq 1`
15297 }
15298fi # as_fn_arith
15299
c6b750e1 15300
81ecdfbb
RW
15301if expr a : '\(a\)' >/dev/null 2>&1 &&
15302 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
15303 as_expr=expr
15304else
15305 as_expr=false
15306fi
15307
81ecdfbb 15308if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
15309 as_basename=basename
15310else
15311 as_basename=false
15312fi
15313
81ecdfbb
RW
15314if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15315 as_dirname=dirname
15316else
15317 as_dirname=false
15318fi
c6b750e1 15319
81ecdfbb 15320as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
15321$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15322 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
15323 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15324$as_echo X/"$0" |
15325 sed '/^.*\/\([^/][^/]*\)\/*$/{
15326 s//\1/
15327 q
15328 }
15329 /^X\/\(\/\/\)$/{
15330 s//\1/
15331 q
15332 }
15333 /^X\/\(\/\).*/{
15334 s//\1/
15335 q
15336 }
15337 s/.*/./; q'`
c6b750e1 15338
c6b750e1
DJ
15339# Avoid depending upon Character Ranges.
15340as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15341as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15342as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15343as_cr_digits='0123456789'
15344as_cr_alnum=$as_cr_Letters$as_cr_digits
15345
81ecdfbb
RW
15346ECHO_C= ECHO_N= ECHO_T=
15347case `echo -n x` in #(((((
15348-n*)
15349 case `echo 'xy\c'` in
15350 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15351 xy) ECHO_C='\c';;
15352 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15353 ECHO_T=' ';;
15354 esac;;
15355*)
15356 ECHO_N='-n';;
c6b750e1
DJ
15357esac
15358
81ecdfbb
RW
15359rm -f conf$$ conf$$.exe conf$$.file
15360if test -d conf$$.dir; then
15361 rm -f conf$$.dir/conf$$.file
c6b750e1 15362else
81ecdfbb
RW
15363 rm -f conf$$.dir
15364 mkdir conf$$.dir 2>/dev/null
c6b750e1 15365fi
81ecdfbb
RW
15366if (echo >conf$$.file) 2>/dev/null; then
15367 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 15368 as_ln_s='ln -s'
81ecdfbb
RW
15369 # ... but there are two gotchas:
15370 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15371 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15372 # In both cases, we have to default to `cp -p'.
15373 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15374 as_ln_s='cp -p'
15375 elif ln conf$$.file conf$$ 2>/dev/null; then
15376 as_ln_s=ln
15377 else
15378 as_ln_s='cp -p'
c6b750e1 15379 fi
c6b750e1
DJ
15380else
15381 as_ln_s='cp -p'
15382fi
81ecdfbb
RW
15383rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15384rmdir conf$$.dir 2>/dev/null
15385
15386
15387# as_fn_mkdir_p
15388# -------------
15389# Create "$as_dir" as a directory, including parents if necessary.
15390as_fn_mkdir_p ()
15391{
15392
15393 case $as_dir in #(
15394 -*) as_dir=./$as_dir;;
15395 esac
15396 test -d "$as_dir" || eval $as_mkdir_p || {
15397 as_dirs=
15398 while :; do
15399 case $as_dir in #(
15400 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15401 *) as_qdir=$as_dir;;
15402 esac
15403 as_dirs="'$as_qdir' $as_dirs"
15404 as_dir=`$as_dirname -- "$as_dir" ||
15405$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15406 X"$as_dir" : 'X\(//\)[^/]' \| \
15407 X"$as_dir" : 'X\(//\)$' \| \
15408 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15409$as_echo X"$as_dir" |
15410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15411 s//\1/
15412 q
15413 }
15414 /^X\(\/\/\)[^/].*/{
15415 s//\1/
15416 q
15417 }
15418 /^X\(\/\/\)$/{
15419 s//\1/
15420 q
15421 }
15422 /^X\(\/\).*/{
15423 s//\1/
15424 q
15425 }
15426 s/.*/./; q'`
15427 test -d "$as_dir" && break
15428 done
15429 test -z "$as_dirs" || eval "mkdir $as_dirs"
15430 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15431
c6b750e1 15432
81ecdfbb 15433} # as_fn_mkdir_p
c6b750e1 15434if mkdir -p . 2>/dev/null; then
81ecdfbb 15435 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
15436else
15437 test -d ./-p && rmdir ./-p
15438 as_mkdir_p=false
15439fi
15440
81ecdfbb
RW
15441if test -x / >/dev/null 2>&1; then
15442 as_test_x='test -x'
15443else
15444 if ls -dL / >/dev/null 2>&1; then
15445 as_ls_L_option=L
15446 else
15447 as_ls_L_option=
15448 fi
15449 as_test_x='
15450 eval sh -c '\''
15451 if test -d "$1"; then
15452 test -d "$1/.";
15453 else
15454 case $1 in #(
15455 -*)set "./$1";;
15456 esac;
15457 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15458 ???[sx]*):;;*)false;;esac;fi
15459 '\'' sh
15460 '
15461fi
15462as_executable_p=$as_test_x
c6b750e1
DJ
15463
15464# Sed expression to map a string onto a valid CPP name.
15465as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15466
15467# Sed expression to map a string onto a valid variable name.
15468as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15469
15470
c6b750e1 15471exec 6>&1
81ecdfbb
RW
15472## ----------------------------------- ##
15473## Main body of $CONFIG_STATUS script. ##
15474## ----------------------------------- ##
15475_ASEOF
15476test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15477
15478cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15479# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 15480# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
15481# values after options handling.
15482ac_log="
c6b750e1 15483This file was extended by $as_me, which was
81ecdfbb 15484generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
15485
15486 CONFIG_FILES = $CONFIG_FILES
15487 CONFIG_HEADERS = $CONFIG_HEADERS
15488 CONFIG_LINKS = $CONFIG_LINKS
15489 CONFIG_COMMANDS = $CONFIG_COMMANDS
15490 $ $0 $@
15491
81ecdfbb
RW
15492on `(hostname || uname -n) 2>/dev/null | sed 1q`
15493"
15494
c6b750e1
DJ
15495_ACEOF
15496
81ecdfbb
RW
15497case $ac_config_files in *"
15498"*) set x $ac_config_files; shift; ac_config_files=$*;;
15499esac
c6b750e1 15500
c6b750e1 15501
c6b750e1 15502
81ecdfbb
RW
15503cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15504# Files that config.status was made for.
15505config_files="$ac_config_files"
c6b750e1 15506
81ecdfbb 15507_ACEOF
c6b750e1 15508
81ecdfbb 15509cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15510ac_cs_usage="\
81ecdfbb
RW
15511\`$as_me' instantiates files and other configuration actions
15512from templates according to the current configuration. Unless the files
15513and actions are specified as TAGs, all are instantiated by default.
c6b750e1 15514
81ecdfbb 15515Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
15516
15517 -h, --help print this help, then exit
81ecdfbb
RW
15518 -V, --version print version number and configuration settings, then exit
15519 -q, --quiet, --silent
15520 do not print progress messages
c6b750e1
DJ
15521 -d, --debug don't remove temporary files
15522 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
15523 --file=FILE[:TEMPLATE]
15524 instantiate the configuration file FILE
c6b750e1
DJ
15525
15526Configuration files:
15527$config_files
15528
81ecdfbb 15529Report bugs to the package provider."
c6b750e1 15530
81ecdfbb
RW
15531_ACEOF
15532cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1
DJ
15533ac_cs_version="\\
15534config.status
81ecdfbb
RW
15535configured by $0, generated by GNU Autoconf 2.64,
15536 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
c6b750e1 15537
81ecdfbb 15538Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
15539This config.status script is free software; the Free Software Foundation
15540gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
15541
15542ac_pwd='$ac_pwd'
15543srcdir='$srcdir'
15544INSTALL='$INSTALL'
8e957354 15545AWK='$AWK'
81ecdfbb 15546test -n "\$AWK" || AWK=awk
c6b750e1
DJ
15547_ACEOF
15548
81ecdfbb
RW
15549cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15550# The default lists apply if the user does not specify any file.
c6b750e1
DJ
15551ac_need_defaults=:
15552while test $# != 0
a0da8069 15553do
c6b750e1
DJ
15554 case $1 in
15555 --*=*)
81ecdfbb
RW
15556 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15557 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
15558 ac_shift=:
15559 ;;
81ecdfbb 15560 *)
c6b750e1
DJ
15561 ac_option=$1
15562 ac_optarg=$2
15563 ac_shift=shift
15564 ;;
c6b750e1
DJ
15565 esac
15566
15567 case $ac_option in
15568 # Handling of the options.
a0da8069 15569 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 15570 ac_cs_recheck=: ;;
81ecdfbb
RW
15571 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15572 $as_echo "$ac_cs_version"; exit ;;
15573 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
15574 debug=: ;;
15575 --file | --fil | --fi | --f )
15576 $ac_shift
81ecdfbb
RW
15577 case $ac_optarg in
15578 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15579 esac
15580 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 15581 ac_need_defaults=false;;
81ecdfbb
RW
15582 --he | --h | --help | --hel | -h )
15583 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
15584 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15585 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15586 ac_cs_silent=: ;;
15587
15588 # This is an error.
81ecdfbb
RW
15589 -*) as_fn_error "unrecognized option: \`$1'
15590Try \`$0 --help' for more information." ;;
c6b750e1 15591
81ecdfbb
RW
15592 *) as_fn_append ac_config_targets " $1"
15593 ac_need_defaults=false ;;
c6b750e1 15594
376a0e54 15595 esac
c6b750e1 15596 shift
376a0e54
CM
15597done
15598
c6b750e1 15599ac_configure_extra_args=
376a0e54 15600
c6b750e1
DJ
15601if $ac_cs_silent; then
15602 exec 6>/dev/null
15603 ac_configure_extra_args="$ac_configure_extra_args --silent"
15604fi
376a0e54 15605
c6b750e1 15606_ACEOF
81ecdfbb 15607cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 15608if \$ac_cs_recheck; then
81ecdfbb
RW
15609 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15610 shift
15611 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15612 CONFIG_SHELL='$SHELL'
15613 export CONFIG_SHELL
15614 exec "\$@"
c6b750e1
DJ
15615fi
15616
15617_ACEOF
81ecdfbb
RW
15618cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15619exec 5>>config.log
15620{
15621 echo
15622 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15623## Running $as_me. ##
15624_ASBOX
15625 $as_echo "$ac_log"
15626} >&5
c6b750e1 15627
81ecdfbb
RW
15628_ACEOF
15629cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
15630#
15631# INIT-COMMANDS
15632#
15633extrasub_build="$extrasub_build"
15634 extrasub_host="$extrasub_host"
15635 extrasub_target="$extrasub_target"
15636
81ecdfbb 15637_ACEOF
c6b750e1 15638
81ecdfbb 15639cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15640
81ecdfbb 15641# Handling of arguments.
c6b750e1
DJ
15642for ac_config_target in $ac_config_targets
15643do
81ecdfbb
RW
15644 case $ac_config_target in
15645 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15646
15647 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
15648 esac
15649done
15650
81ecdfbb 15651
c6b750e1
DJ
15652# If the user did not use the arguments to specify the items to instantiate,
15653# then the envvar interface is used. Set only those that are not.
15654# We use the long form for the default assignment because of an extremely
15655# bizarre bug on SunOS 4.1.3.
15656if $ac_need_defaults; then
15657 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15658fi
15659
15660# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 15661# simply because there is no reason against having it here, and in addition,
c6b750e1 15662# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15663# Hook for its removal unless debugging.
15664# Note that there is a small window in which the directory will not be cleaned:
15665# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
15666$debug ||
15667{
81ecdfbb
RW
15668 tmp=
15669 trap 'exit_status=$?
15670 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15671' 0
15672 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 15673}
c6b750e1
DJ
15674# Create a (secure) tmp directory for tmp files.
15675
15676{
81ecdfbb 15677 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
c6b750e1
DJ
15678 test -n "$tmp" && test -d "$tmp"
15679} ||
15680{
81ecdfbb
RW
15681 tmp=./conf$$-$RANDOM
15682 (umask 077 && mkdir "$tmp")
15683} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15684
15685# Set up the scripts for CONFIG_FILES section.
15686# No need to generate them if there are no CONFIG_FILES.
15687# This happens for instance with `./config.status config.h'.
15688if test -n "$CONFIG_FILES"; then
15689
15690if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15691 ac_cs_awk_getline=:
15692 ac_cs_awk_pipe_init=
15693 ac_cs_awk_read_file='
15694 while ((getline aline < (F[key])) > 0)
15695 print(aline)
15696 close(F[key])'
15697 ac_cs_awk_pipe_fini=
15698else
15699 ac_cs_awk_getline=false
15700 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15701 ac_cs_awk_read_file='
15702 print "|#_!!_#|"
15703 print "cat " F[key] " &&"
15704 '$ac_cs_awk_pipe_init
15705 # The final `:' finishes the AND list.
15706 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15707fi
15708ac_cr=`echo X | tr X '\015'`
15709# On cygwin, bash can eat \r inside `` if the user requested igncr.
15710# But we know of no other shell where ac_cr would be empty at this
15711# point, so we can use a bashism as a fallback.
15712if test "x$ac_cr" = x; then
15713 eval ac_cr=\$\'\\r\'
15714fi
15715ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15716if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15717 ac_cs_awk_cr='\r'
15718else
15719 ac_cs_awk_cr=$ac_cr
15720fi
15721
15722echo 'BEGIN {' >"$tmp/subs1.awk" &&
15723_ACEOF
15724
15725# Create commands to substitute file output variables.
c6b750e1 15726{
81ecdfbb
RW
15727 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15728 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15729 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15730 echo "_ACAWK" &&
15731 echo "_ACEOF"
15732} >conf$$files.sh &&
15733. ./conf$$files.sh ||
15734 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15735rm -f conf$$files.sh
c6b750e1 15736
81ecdfbb
RW
15737{
15738 echo "cat >conf$$subs.awk <<_ACEOF" &&
15739 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15740 echo "_ACEOF"
15741} >conf$$subs.sh ||
15742 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15743ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15744ac_delim='%!_!# '
15745for ac_last_try in false false false false false :; do
15746 . ./conf$$subs.sh ||
15747 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15748
15749 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15750 if test $ac_delim_n = $ac_delim_num; then
15751 break
15752 elif $ac_last_try; then
15753 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15754 else
15755 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15756 fi
15757done
15758rm -f conf$$subs.sh
15759
15760cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15761cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 15762_ACEOF
81ecdfbb
RW
15763sed -n '
15764h
15765s/^/S["/; s/!.*/"]=/
15766p
15767g
15768s/^[^!]*!//
15769:repl
15770t repl
15771s/'"$ac_delim"'$//
15772t delim
15773:nl
15774h
15775s/\(.\{148\}\).*/\1/
15776t more1
15777s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15778p
15779n
15780b repl
15781:more1
15782s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15783p
15784g
15785s/.\{148\}//
15786t nl
15787:delim
15788h
15789s/\(.\{148\}\).*/\1/
15790t more2
15791s/["\\]/\\&/g; s/^/"/; s/$/"/
15792p
15793b
15794:more2
15795s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15796p
15797g
15798s/.\{148\}//
15799t delim
15800' <conf$$subs.awk | sed '
15801/^[^""]/{
15802 N
15803 s/\n//
15804}
15805' >>$CONFIG_STATUS || ac_write_fail=1
15806rm -f conf$$subs.awk
15807cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15808_ACAWK
15809cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15810 for (key in S) S_is_set[key] = 1
15811 FS = "\a"
15812 \$ac_cs_awk_pipe_init
15813}
15814{
15815 line = $ 0
15816 nfields = split(line, field, "@")
15817 substed = 0
15818 len = length(field[1])
15819 for (i = 2; i < nfields; i++) {
15820 key = field[i]
15821 keylen = length(key)
15822 if (S_is_set[key]) {
15823 value = S[key]
15824 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15825 len += length(value) + length(field[++i])
15826 substed = 1
15827 } else
15828 len += 1 + keylen
15829 }
15830 if (nfields == 3 && !substed) {
15831 key = field[2]
15832 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15833 \$ac_cs_awk_read_file
15834 next
15835 }
15836 }
15837 print line
15838}
15839\$ac_cs_awk_pipe_fini
15840_ACAWK
15841_ACEOF
15842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15843if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15844 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15845else
15846 cat
15847fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15848 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15849_ACEOF
15850
15851# VPATH may cause trouble with some makes, so we remove $(srcdir),
15852# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15853# trailing colons and then remove the whole line if VPATH becomes empty
15854# (actually we leave an empty line to preserve line numbers).
15855if test "x$srcdir" = x.; then
15856 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15857s/:*\$(srcdir):*/:/
15858s/:*\${srcdir}:*/:/
15859s/:*@srcdir@:*/:/
15860s/^\([^=]*=[ ]*\):*/\1/
15861s/:*$//
15862s/^[^=]*=[ ]*$//
15863}'
15864fi
c6b750e1 15865
81ecdfbb
RW
15866cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15867fi # test -n "$CONFIG_FILES"
c6b750e1 15868
c6b750e1 15869
81ecdfbb
RW
15870eval set X " :F $CONFIG_FILES "
15871shift
15872for ac_tag
15873do
15874 case $ac_tag in
15875 :[FHLC]) ac_mode=$ac_tag; continue;;
15876 esac
15877 case $ac_mode$ac_tag in
15878 :[FHL]*:*);;
15879 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15880 :[FH]-) ac_tag=-:-;;
15881 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15882 esac
15883 ac_save_IFS=$IFS
15884 IFS=:
15885 set x $ac_tag
15886 IFS=$ac_save_IFS
15887 shift
15888 ac_file=$1
15889 shift
252b5132 15890
81ecdfbb
RW
15891 case $ac_mode in
15892 :L) ac_source=$1;;
15893 :[FH])
15894 ac_file_inputs=
15895 for ac_f
15896 do
15897 case $ac_f in
15898 -) ac_f="$tmp/stdin";;
15899 *) # Look for the file first in the build tree, then in the source tree
15900 # (if the path is not absolute). The absolute path cannot be DOS-style,
15901 # because $ac_f cannot contain `:'.
15902 test -f "$ac_f" ||
15903 case $ac_f in
15904 [\\/$]*) false;;
15905 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15906 esac ||
15907 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15908 esac
15909 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15910 as_fn_append ac_file_inputs " '$ac_f'"
15911 done
c6b750e1 15912
81ecdfbb
RW
15913 # Let's still pretend it is `configure' which instantiates (i.e., don't
15914 # use $as_me), people would be surprised to read:
15915 # /* config.h. Generated by config.status. */
15916 configure_input='Generated from '`
15917 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15918 `' by configure.'
15919 if test x"$ac_file" != x-; then
15920 configure_input="$ac_file. $configure_input"
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15922$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 15923 fi
81ecdfbb
RW
15924 # Neutralize special characters interpreted by sed in replacement strings.
15925 case $configure_input in #(
15926 *\&* | *\|* | *\\* )
15927 ac_sed_conf_input=`$as_echo "$configure_input" |
15928 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15929 *) ac_sed_conf_input=$configure_input;;
15930 esac
cac3d6c4 15931
81ecdfbb
RW
15932 case $ac_tag in
15933 *:-:* | *:-) cat >"$tmp/stdin" \
15934 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15935 esac
15936 ;;
a0da8069 15937 esac
252b5132 15938
81ecdfbb 15939 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
15940$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15941 X"$ac_file" : 'X\(//\)[^/]' \| \
15942 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15943 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15944$as_echo X"$ac_file" |
15945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15946 s//\1/
15947 q
15948 }
15949 /^X\(\/\/\)[^/].*/{
15950 s//\1/
15951 q
15952 }
15953 /^X\(\/\/\)$/{
15954 s//\1/
15955 q
15956 }
15957 /^X\(\/\).*/{
15958 s//\1/
15959 q
15960 }
15961 s/.*/./; q'`
15962 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 15963 ac_builddir=.
252b5132 15964
81ecdfbb
RW
15965case "$ac_dir" in
15966.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15967*)
15968 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15969 # A ".." for each directory in $ac_dir_suffix.
15970 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15971 case $ac_top_builddir_sub in
15972 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15973 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15974 esac ;;
15975esac
15976ac_abs_top_builddir=$ac_pwd
15977ac_abs_builddir=$ac_pwd$ac_dir_suffix
15978# for backward compatibility:
15979ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
15980
15981case $srcdir in
81ecdfbb 15982 .) # We are building in place.
c6b750e1 15983 ac_srcdir=.
81ecdfbb
RW
15984 ac_top_srcdir=$ac_top_builddir_sub
15985 ac_abs_top_srcdir=$ac_pwd ;;
15986 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 15987 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15988 ac_top_srcdir=$srcdir
15989 ac_abs_top_srcdir=$srcdir ;;
15990 *) # Relative name.
15991 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15992 ac_top_srcdir=$ac_top_build_prefix$srcdir
15993 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 15994esac
81ecdfbb 15995ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 15996
252b5132 15997
81ecdfbb
RW
15998 case $ac_mode in
15999 :F)
16000 #
16001 # CONFIG_FILE
16002 #
c6b750e1
DJ
16003
16004 case $INSTALL in
16005 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 16006 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 16007 esac
81ecdfbb 16008_ACEOF
252b5132 16009
81ecdfbb
RW
16010cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16011# If the template does not know about datarootdir, expand it.
16012# FIXME: This hack should be removed a few years after 2.60.
16013ac_datarootdir_hack=; ac_datarootdir_seen=
16014ac_sed_dataroot='
16015/datarootdir/ {
16016 p
16017 q
16018}
16019/@datadir@/p
16020/@docdir@/p
16021/@infodir@/p
16022/@localedir@/p
16023/@mandir@/p'
16024case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16025*datarootdir*) ac_datarootdir_seen=yes;;
16026*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16028$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 16029_ACEOF
81ecdfbb
RW
16030cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16031 ac_datarootdir_hack='
16032 s&@datadir@&$datadir&g
16033 s&@docdir@&$docdir&g
16034 s&@infodir@&$infodir&g
16035 s&@localedir@&$localedir&g
16036 s&@mandir@&$mandir&g
16037 s&\\\${datarootdir}&$datarootdir&g' ;;
16038esac
16039_ACEOF
16040
16041# Neutralize VPATH when `$srcdir' = `.'.
16042# Shell code in configure.ac might set extrasub.
16043# FIXME: do we really want to maintain this feature?
16044cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16045ac_sed_extra="$ac_vpsub
c6b750e1
DJ
16046$extrasub
16047_ACEOF
81ecdfbb 16048cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
16049:t
16050/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
16051s|@configure_input@|$ac_sed_conf_input|;t t
16052s&@top_builddir@&$ac_top_builddir_sub&;t t
16053s&@top_build_prefix@&$ac_top_build_prefix&;t t
16054s&@srcdir@&$ac_srcdir&;t t
16055s&@abs_srcdir@&$ac_abs_srcdir&;t t
16056s&@top_srcdir@&$ac_top_srcdir&;t t
16057s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16058s&@builddir@&$ac_builddir&;t t
16059s&@abs_builddir@&$ac_abs_builddir&;t t
16060s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16061s&@INSTALL@&$ac_INSTALL&;t t
16062$ac_datarootdir_hack
16063"
16064eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16065if $ac_cs_awk_getline; then
16066 $AWK -f "$tmp/subs.awk"
16067else
16068 $AWK -f "$tmp/subs.awk" | $SHELL
16069fi >$tmp/out \
16070 || as_fn_error "could not create $ac_file" "$LINENO" 5
16071
16072test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16073 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16074 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16076which seems to be undefined. Please make sure it is defined." >&5
16077$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16078which seems to be undefined. Please make sure it is defined." >&2;}
16079
16080 rm -f "$tmp/stdin"
16081 case $ac_file in
16082 -) cat "$tmp/out" && rm -f "$tmp/out";;
16083 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16084 esac \
16085 || as_fn_error "could not create $ac_file" "$LINENO" 5
16086 ;;
c148b4cb 16087
c148b4cb 16088
c148b4cb 16089
81ecdfbb
RW
16090 esac
16091
06a51eac
RW
16092
16093 case $ac_file$ac_mode in
16094 "Makefile":F) sed "$extrasub_build" Makefile |
16095 sed "$extrasub_host" |
16096 sed "$extrasub_target" > mf$$
16097 mv -f mf$$ Makefile ;;
16098
16099 esac
81ecdfbb
RW
16100done # for ac_tag
16101
16102
16103as_fn_exit 0
c6b750e1 16104_ACEOF
c6b750e1
DJ
16105ac_clean_files=$ac_clean_files_save
16106
81ecdfbb
RW
16107test $ac_write_fail = 0 ||
16108 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16109
c6b750e1
DJ
16110
16111# configure is writing to config.log, and then calls config.status.
16112# config.status does its own redirection, appending to config.log.
16113# Unfortunately, on DOS this fails, as config.log is still kept open
16114# by configure, so config.status won't be able to write to it; its
16115# output is simply discarded. So we exec the FD to /dev/null,
16116# effectively closing config.log, so it can be properly (re)opened and
16117# appended to by config.status. When coming back to configure, we
16118# need to make the FD available again.
16119if test "$no_create" != yes; then
16120 ac_cs_success=:
16121 ac_config_status_args=
16122 test "$silent" = yes &&
16123 ac_config_status_args="$ac_config_status_args --quiet"
16124 exec 5>/dev/null
16125 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16126 exec 5>>config.log
16127 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16128 # would make configure fail if this is the last instruction.
81ecdfbb
RW
16129 $ac_cs_success || as_fn_exit $?
16130fi
16131if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16133$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 16134fi
c148b4cb 16135
This page took 1.738714 seconds and 4 git commands to generate.