]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
re PR c++/56343 ([C++11] Destructor defaulted on first declaration has wrong implicit...
[thirdparty/gcc.git] / configure
CommitLineData
671aa708 1#! /bin/sh
671aa708 2# Guess values for system-dependent variables and create Makefiles.
5213506e
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.
671aa708
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
5213506e
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
1c710c3c 14
5213506e
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 :
1c710c3c
DJ
18 emulate sh
19 NULLCMD=:
5213506e 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
1c710c3c 31fi
1c710c3c 32
5213506e
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 }
1c710c3c
DJ
79fi
80
81
5213506e
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
1c710c3c
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
5213506e
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'\" &&
87264276
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"
5213506e
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
1c710c3c 184do
5213506e
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."
1c710c3c 228 else
5213506e
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."
1c710c3c 233 fi
5213506e
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
1c710c3c 263
5213506e
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
1c710c3c
DJ
375 as_expr=expr
376else
377 as_expr=false
378fi
379
5213506e 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
381 as_basename=basename
382else
383 as_basename=false
384fi
385
5213506e
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
1c710c3c 391
5213506e 392as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
5213506e
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'`
1c710c3c 410
2aeb72e9
DD
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
11a67599 417
1c710c3c 418
5213506e
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 |
1c710c3c 428 sed '
5213506e
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
1c710c3c 433 N
5213506e
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1c710c3c 436 t loop
5213506e 437 s/-\n.*//
1c710c3c 438 ' >$as_me.lineno &&
5213506e
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; }
1c710c3c
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
5213506e
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
1c710c3c
DJ
446 # Exit status is that of the last command.
447 exit
448}
449
5213506e
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';;
1c710c3c
DJ
461esac
462
5213506e
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
1c710c3c 466else
5213506e
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
1c710c3c 469fi
5213506e
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 472 as_ln_s='ln -s'
5213506e
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'
2aeb72e9 483 fi
1c710c3c
DJ
484else
485 as_ln_s='cp -p'
486fi
5213506e
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
1c710c3c
DJ
489
490if mkdir -p . 2>/dev/null; then
5213506e 491 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
5213506e
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
0b0dc272 519
1c710c3c
DJ
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
5213506e 527exec 7<&0 </dev/null 6>&1
1c710c3c
DJ
528
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
1c710c3c
DJ
534#
535# Initializations.
536#
671aa708 537ac_default_prefix=/usr/local
5213506e 538ac_clean_files=
1c710c3c 539ac_config_libobj_dir=.
5213506e 540LIBOBJS=
1c710c3c
DJ
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
2aeb72e9 545
1c710c3c
DJ
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
5213506e 552PACKAGE_URL=
1c710c3c
DJ
553
554ac_unique_file="move-if-change"
5213506e
RW
555enable_option_checking=no
556ac_subst_vars='LTLIBOBJS
557LIBOBJS
558compare_exclusions
559stage2_werror_flag
560stage1_checking
561stage1_cflags
562MAINT
563MAINTAINER_MODE_FALSE
564MAINTAINER_MODE_TRUE
565COMPILER_NM_FOR_TARGET
566COMPILER_LD_FOR_TARGET
567COMPILER_AS_FOR_TARGET
568FLAGS_FOR_TARGET
569RAW_CXX_FOR_TARGET
570WINDMC_FOR_TARGET
571WINDRES_FOR_TARGET
572STRIP_FOR_TARGET
e7a82751 573READELF_FOR_TARGET
5213506e
RW
574RANLIB_FOR_TARGET
575OBJDUMP_FOR_TARGET
576NM_FOR_TARGET
577LIPO_FOR_TARGET
578LD_FOR_TARGET
579DLLTOOL_FOR_TARGET
580AS_FOR_TARGET
581AR_FOR_TARGET
632e2a07 582GOC_FOR_TARGET
5213506e
RW
583GFORTRAN_FOR_TARGET
584GCJ_FOR_TARGET
585GCC_FOR_TARGET
586CXX_FOR_TARGET
587CC_FOR_TARGET
e7a82751 588READELF
5213506e
RW
589OBJDUMP
590OBJCOPY
591WINDMC
592WINDRES
593STRIP
594RANLIB
595NM
596LIPO
597LD
598DLLTOOL
599AS
600AR
601RUNTEST
602EXPECT
603MAKEINFO
604FLEX
605LEX
606M4
607BISON
608YACC
5213506e
RW
609WINDRES_FOR_BUILD
610WINDMC_FOR_BUILD
611RANLIB_FOR_BUILD
612NM_FOR_BUILD
613LD_FOR_BUILD
614LDFLAGS_FOR_BUILD
632e2a07 615GOC_FOR_BUILD
5213506e
RW
616GFORTRAN_FOR_BUILD
617GCJ_FOR_BUILD
618DLLTOOL_FOR_BUILD
619CXX_FOR_BUILD
620CXXFLAGS_FOR_BUILD
621CFLAGS_FOR_BUILD
622CC_FOR_BUILD
623AS_FOR_BUILD
624AR_FOR_BUILD
aae29963 625target_configdirs
5213506e 626configdirs
5213506e 627build_configdirs
5213506e
RW
628INSTALL_GDB_TK
629GDB_TK
630CONFIGURE_GDB_TK
631build_tooldir
632tooldir
633GCC_SHLIB_SUBDIR
634RPATH_ENVVAR
ffedf511
RW
635target_configargs
636host_configargs
637build_configargs
e12c4094 638BUILD_CONFIG
6f57bdf6 639LDFLAGS_FOR_TARGET
5213506e
RW
640CXXFLAGS_FOR_TARGET
641CFLAGS_FOR_TARGET
642DEBUG_PREFIX_CFLAGS_FOR_TARGET
643SYSROOT_CFLAGS_FOR_TARGET
644stage1_languages
d7f09764 645extra_host_libiberty_configure_flags
5213506e
RW
646clooginc
647clooglibs
33ad93b9 648islinc
5213506e 649poststage1_ldflags
ed2eaa9f 650poststage1_libs
5213506e 651stage1_ldflags
0b21f5d3 652stage1_libs
0ff2d841 653extra_isl_gmp_configure_flags
5213506e
RW
654extra_mpc_mpfr_configure_flags
655extra_mpc_gmp_configure_flags
656extra_mpfr_configure_flags
657gmpinc
658gmplibs
659do_compare
660GNATMAKE
661GNATBIND
662ac_ct_CXX
663CXXFLAGS
664CXX
665OBJEXT
666EXEEXT
667ac_ct_CC
668CPPFLAGS
669LDFLAGS
670CFLAGS
671CC
a4a2c37d 672EXTRA_CONFIGARGS_LIBJAVA
5213506e
RW
673target_subdir
674host_subdir
675build_subdir
676build_libsubdir
87264276
PB
677AWK
678SED
5213506e
RW
679LN_S
680LN
681INSTALL_DATA
682INSTALL_SCRIPT
683INSTALL_PROGRAM
684target_os
685target_vendor
686target_cpu
687target
688host_os
689host_vendor
690host_cpu
691host
692target_noncanonical
693host_noncanonical
694build_noncanonical
695build_os
696build_vendor
697build_cpu
698build
699TOPLEVEL_CONFIGURE_ARGUMENTS
700target_alias
701host_alias
702build_alias
703LIBS
704ECHO_T
705ECHO_N
706ECHO_C
707DEFS
708mandir
709localedir
710libdir
711psdir
712pdfdir
713dvidir
714htmldir
715infodir
716docdir
717oldincludedir
718includedir
719localstatedir
720sharedstatedir
721sysconfdir
722datadir
723datarootdir
724libexecdir
725sbindir
726bindir
727program_transform_name
728prefix
729exec_prefix
730PACKAGE_URL
731PACKAGE_BUGREPORT
732PACKAGE_STRING
733PACKAGE_VERSION
734PACKAGE_TARNAME
735PACKAGE_NAME
736PATH_SEPARATOR
737SHELL'
738ac_subst_files='serialization_dependencies
739host_makefile_frag
740target_makefile_frag
741alphaieee_frag
742ospace_frag'
743ac_user_opts='
744enable_option_checking
745with_build_libsubdir
746enable_gold
21539e2e 747enable_ld
87e6d9dc
TB
748enable_libquadmath
749enable_libquadmath_support
5213506e
RW
750enable_libada
751enable_libssp
1873ec0c 752enable_libstdcxx
a4a2c37d 753enable_static_libjava
ff3ac0f4 754enable_bootstrap
5213506e
RW
755with_mpc
756with_mpc_include
757with_mpc_lib
758with_mpfr_dir
759with_mpfr
760with_mpfr_include
761with_mpfr_lib
762with_gmp_dir
763with_gmp
764with_gmp_include
765with_gmp_lib
766with_host_libstdcxx
5213506e 767with_stage1_libs
0b21f5d3 768with_stage1_ldflags
5213506e 769with_boot_libs
ed2eaa9f 770with_boot_ldflags
625afa23 771with_cloog
33ad93b9
RG
772with_isl
773with_isl_include
774with_isl_lib
775enable_isl_version_check
5213506e
RW
776with_cloog_include
777with_cloog_lib
778enable_cloog_version_check
d7f09764 779enable_lto
5213506e
RW
780enable_stage1_languages
781enable_objc_gc
782with_build_sysroot
783with_debug_prefix_map
5646b7b9 784with_build_config
5213506e
RW
785enable_serial_configure
786with_build_time_tools
787enable_maintainer_mode
788enable_stage1_checking
789enable_werror
5213506e
RW
790'
791 ac_precious_vars='build_alias
792host_alias
793target_alias
794CC
795CFLAGS
796LDFLAGS
797LIBS
798CPPFLAGS
799CXX
800CXXFLAGS
801CCC
ffedf511
RW
802build_configargs
803host_configargs
804target_configargs
5213506e
RW
805AR
806AS
807DLLTOOL
808LD
809LIPO
810NM
811RANLIB
812STRIP
813WINDRES
814WINDMC
815OBJCOPY
816OBJDUMP
e7a82751 817READELF
5213506e
RW
818CC_FOR_TARGET
819CXX_FOR_TARGET
820GCC_FOR_TARGET
821GCJ_FOR_TARGET
822GFORTRAN_FOR_TARGET
632e2a07 823GOC_FOR_TARGET
5213506e
RW
824AR_FOR_TARGET
825AS_FOR_TARGET
826DLLTOOL_FOR_TARGET
827LD_FOR_TARGET
828LIPO_FOR_TARGET
829NM_FOR_TARGET
830OBJDUMP_FOR_TARGET
831RANLIB_FOR_TARGET
e7a82751 832READELF_FOR_TARGET
5213506e
RW
833STRIP_FOR_TARGET
834WINDRES_FOR_TARGET
835WINDMC_FOR_TARGET'
836
671aa708
NN
837
838# Initialize some variables set by options.
1c710c3c
DJ
839ac_init_help=
840ac_init_version=false
5213506e
RW
841ac_unrecognized_opts=
842ac_unrecognized_sep=
671aa708
NN
843# The variables have the same names as the options, with
844# dashes changed to underlines.
1c710c3c 845cache_file=/dev/null
671aa708 846exec_prefix=NONE
671aa708 847no_create=
671aa708
NN
848no_recursion=
849prefix=NONE
850program_prefix=NONE
851program_suffix=NONE
852program_transform_name=s,x,x,
853silent=
854site=
855srcdir=
671aa708
NN
856verbose=
857x_includes=NONE
858x_libraries=NONE
1c710c3c
DJ
859
860# Installation directory options.
861# These are left unexpanded so users can "make install exec_prefix=/foo"
862# and all the variables that are supposed to be based on exec_prefix
863# by default will actually change.
864# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 865# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
866bindir='${exec_prefix}/bin'
867sbindir='${exec_prefix}/sbin'
868libexecdir='${exec_prefix}/libexec'
5213506e
RW
869datarootdir='${prefix}/share'
870datadir='${datarootdir}'
671aa708
NN
871sysconfdir='${prefix}/etc'
872sharedstatedir='${prefix}/com'
873localstatedir='${prefix}/var'
671aa708
NN
874includedir='${prefix}/include'
875oldincludedir='/usr/include'
5213506e
RW
876docdir='${datarootdir}/doc/${PACKAGE}'
877infodir='${datarootdir}/info'
878htmldir='${docdir}'
879dvidir='${docdir}'
880pdfdir='${docdir}'
881psdir='${docdir}'
882libdir='${exec_prefix}/lib'
883localedir='${datarootdir}/locale'
884mandir='${datarootdir}/man'
79c06341 885
671aa708 886ac_prev=
5213506e 887ac_dashdash=
671aa708
NN
888for ac_option
889do
671aa708
NN
890 # If the previous option needs an argument, assign it.
891 if test -n "$ac_prev"; then
5213506e 892 eval $ac_prev=\$ac_option
671aa708
NN
893 ac_prev=
894 continue
895 fi
79c06341 896
5213506e
RW
897 case $ac_option in
898 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
899 *) ac_optarg=yes ;;
900 esac
671aa708
NN
901
902 # Accept the important Cygnus configure options, so we can diagnose typos.
903
5213506e
RW
904 case $ac_dashdash$ac_option in
905 --)
906 ac_dashdash=yes ;;
671aa708
NN
907
908 -bindir | --bindir | --bindi | --bind | --bin | --bi)
909 ac_prev=bindir ;;
910 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 911 bindir=$ac_optarg ;;
671aa708
NN
912
913 -build | --build | --buil | --bui | --bu)
1c710c3c 914 ac_prev=build_alias ;;
671aa708 915 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 916 build_alias=$ac_optarg ;;
671aa708
NN
917
918 -cache-file | --cache-file | --cache-fil | --cache-fi \
919 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920 ac_prev=cache_file ;;
921 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
923 cache_file=$ac_optarg ;;
924
925 --config-cache | -C)
926 cache_file=config.cache ;;
671aa708 927
5213506e 928 -datadir | --datadir | --datadi | --datad)
671aa708 929 ac_prev=datadir ;;
5213506e 930 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 931 datadir=$ac_optarg ;;
671aa708 932
5213506e
RW
933 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934 | --dataroo | --dataro | --datar)
935 ac_prev=datarootdir ;;
936 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938 datarootdir=$ac_optarg ;;
939
671aa708 940 -disable-* | --disable-*)
5213506e 941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 942 # Reject names that are not valid shell variable names.
5213506e
RW
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944 as_fn_error "invalid feature name: $ac_useropt"
945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
948 *"
949"enable_$ac_useropt"
950"*) ;;
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
953 esac
954 eval enable_$ac_useropt=no ;;
955
956 -docdir | --docdir | --docdi | --doc | --do)
957 ac_prev=docdir ;;
958 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959 docdir=$ac_optarg ;;
960
961 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962 ac_prev=dvidir ;;
963 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964 dvidir=$ac_optarg ;;
671aa708
NN
965
966 -enable-* | --enable-*)
5213506e 967 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 968 # Reject names that are not valid shell variable names.
5213506e
RW
969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970 as_fn_error "invalid feature name: $ac_useropt"
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
974 *"
975"enable_$ac_useropt"
976"*) ;;
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
2aeb72e9 979 esac
5213506e 980 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
981
982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984 | --exec | --exe | --ex)
985 ac_prev=exec_prefix ;;
986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988 | --exec=* | --exe=* | --ex=*)
1c710c3c 989 exec_prefix=$ac_optarg ;;
671aa708
NN
990
991 -gas | --gas | --ga | --g)
992 # Obsolete; use --with-gas.
993 with_gas=yes ;;
994
1c710c3c
DJ
995 -help | --help | --hel | --he | -h)
996 ac_init_help=long ;;
997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998 ac_init_help=recursive ;;
999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000 ac_init_help=short ;;
671aa708
NN
1001
1002 -host | --host | --hos | --ho)
1c710c3c 1003 ac_prev=host_alias ;;
671aa708 1004 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1005 host_alias=$ac_optarg ;;
671aa708 1006
5213506e
RW
1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008 ac_prev=htmldir ;;
1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010 | --ht=*)
1011 htmldir=$ac_optarg ;;
1012
671aa708
NN
1013 -includedir | --includedir | --includedi | --included | --include \
1014 | --includ | --inclu | --incl | --inc)
1015 ac_prev=includedir ;;
1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1018 includedir=$ac_optarg ;;
671aa708
NN
1019
1020 -infodir | --infodir | --infodi | --infod | --info | --inf)
1021 ac_prev=infodir ;;
1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1023 infodir=$ac_optarg ;;
671aa708
NN
1024
1025 -libdir | --libdir | --libdi | --libd)
1026 ac_prev=libdir ;;
1027 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1028 libdir=$ac_optarg ;;
671aa708
NN
1029
1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031 | --libexe | --libex | --libe)
1032 ac_prev=libexecdir ;;
1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1035 libexecdir=$ac_optarg ;;
671aa708 1036
5213506e
RW
1037 -localedir | --localedir | --localedi | --localed | --locale)
1038 ac_prev=localedir ;;
1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040 localedir=$ac_optarg ;;
1041
671aa708 1042 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1043 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1044 ac_prev=localstatedir ;;
1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1047 localstatedir=$ac_optarg ;;
671aa708
NN
1048
1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050 ac_prev=mandir ;;
1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1052 mandir=$ac_optarg ;;
671aa708
NN
1053
1054 -nfp | --nfp | --nf)
1055 # Obsolete; use --without-fp.
1056 with_fp=no ;;
1057
1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1059 | --no-cr | --no-c | -n)
671aa708
NN
1060 no_create=yes ;;
1061
1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064 no_recursion=yes ;;
1065
1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068 | --oldin | --oldi | --old | --ol | --o)
1069 ac_prev=oldincludedir ;;
1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1073 oldincludedir=$ac_optarg ;;
671aa708
NN
1074
1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076 ac_prev=prefix ;;
1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1078 prefix=$ac_optarg ;;
671aa708
NN
1079
1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081 | --program-pre | --program-pr | --program-p)
1082 ac_prev=program_prefix ;;
1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1085 program_prefix=$ac_optarg ;;
671aa708
NN
1086
1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088 | --program-suf | --program-su | --program-s)
1089 ac_prev=program_suffix ;;
1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1092 program_suffix=$ac_optarg ;;
671aa708
NN
1093
1094 -program-transform-name | --program-transform-name \
1095 | --program-transform-nam | --program-transform-na \
1096 | --program-transform-n | --program-transform- \
1097 | --program-transform | --program-transfor \
1098 | --program-transfo | --program-transf \
1099 | --program-trans | --program-tran \
1100 | --progr-tra | --program-tr | --program-t)
1101 ac_prev=program_transform_name ;;
1102 -program-transform-name=* | --program-transform-name=* \
1103 | --program-transform-nam=* | --program-transform-na=* \
1104 | --program-transform-n=* | --program-transform-=* \
1105 | --program-transform=* | --program-transfor=* \
1106 | --program-transfo=* | --program-transf=* \
1107 | --program-trans=* | --program-tran=* \
1108 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1109 program_transform_name=$ac_optarg ;;
671aa708 1110
5213506e
RW
1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112 ac_prev=pdfdir ;;
1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114 pdfdir=$ac_optarg ;;
1115
1116 -psdir | --psdir | --psdi | --psd | --ps)
1117 ac_prev=psdir ;;
1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119 psdir=$ac_optarg ;;
1120
671aa708
NN
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1123 silent=yes ;;
1124
1125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126 ac_prev=sbindir ;;
1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128 | --sbi=* | --sb=*)
1c710c3c 1129 sbindir=$ac_optarg ;;
671aa708
NN
1130
1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133 | --sharedst | --shareds | --shared | --share | --shar \
1134 | --sha | --sh)
1135 ac_prev=sharedstatedir ;;
1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139 | --sha=* | --sh=*)
1c710c3c 1140 sharedstatedir=$ac_optarg ;;
671aa708
NN
1141
1142 -site | --site | --sit)
1143 ac_prev=site ;;
1144 -site=* | --site=* | --sit=*)
1c710c3c 1145 site=$ac_optarg ;;
671aa708
NN
1146
1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148 ac_prev=srcdir ;;
1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1150 srcdir=$ac_optarg ;;
671aa708
NN
1151
1152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153 | --syscon | --sysco | --sysc | --sys | --sy)
1154 ac_prev=sysconfdir ;;
1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1157 sysconfdir=$ac_optarg ;;
671aa708
NN
1158
1159 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1160 ac_prev=target_alias ;;
671aa708 1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1162 target_alias=$ac_optarg ;;
671aa708
NN
1163
1164 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165 verbose=yes ;;
1166
1c710c3c
DJ
1167 -version | --version | --versio | --versi | --vers | -V)
1168 ac_init_version=: ;;
671aa708
NN
1169
1170 -with-* | --with-*)
5213506e 1171 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1172 # Reject names that are not valid shell variable names.
5213506e
RW
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1178 *"
1179"with_$ac_useropt"
1180"*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
2aeb72e9 1183 esac
5213506e 1184 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1185
1186 -without-* | --without-*)
5213506e 1187 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1188 # Reject names that are not valid shell variable names.
5213506e
RW
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190 as_fn_error "invalid package name: $ac_useropt"
1191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1194 *"
1195"with_$ac_useropt"
1196"*) ;;
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1199 esac
1200 eval with_$ac_useropt=no ;;
671aa708
NN
1201
1202 --x)
1203 # Obsolete; use --with-x.
1204 with_x=yes ;;
1205
1206 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1207 | --x-incl | --x-inc | --x-in | --x-i)
1208 ac_prev=x_includes ;;
1209 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1210 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1211 x_includes=$ac_optarg ;;
671aa708
NN
1212
1213 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1214 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1215 ac_prev=x_libraries ;;
1216 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1217 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1218 x_libraries=$ac_optarg ;;
671aa708 1219
5213506e
RW
1220 -*) as_fn_error "unrecognized option: \`$ac_option'
1221Try \`$0 --help' for more information."
671aa708
NN
1222 ;;
1223
1c710c3c
DJ
1224 *=*)
1225 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226 # Reject names that are not valid shell variable names.
5213506e
RW
1227 case $ac_envvar in #(
1228 '' | [0-9]* | *[!_$as_cr_alnum]* )
1229 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1230 esac
1231 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1232 export $ac_envvar ;;
1233
671aa708 1234 *)
1c710c3c 1235 # FIXME: should be removed in autoconf 3.0.
5213506e 1236 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1237 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1238 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1c710c3c 1239 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
1240 ;;
1241
1242 esac
1243done
1244
1245if test -n "$ac_prev"; then
1c710c3c 1246 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1247 as_fn_error "missing argument to $ac_option"
af71363e 1248fi
af71363e 1249
5213506e
RW
1250if test -n "$ac_unrecognized_opts"; then
1251 case $enable_option_checking in
1252 no) ;;
1253 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1254 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1255 esac
5213506e 1256fi
2aeb72e9 1257
5213506e
RW
1258# Check all directory arguments for consistency.
1259for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260 datadir sysconfdir sharedstatedir localstatedir includedir \
1261 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1262 libdir localedir mandir
2aeb72e9 1263do
5213506e
RW
1264 eval ac_val=\$$ac_var
1265 # Remove trailing slashes.
1266 case $ac_val in
1267 */ )
1268 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1269 eval $ac_var=\$ac_val;;
1270 esac
1271 # Be sure to have absolute directory names.
2aeb72e9 1272 case $ac_val in
5213506e
RW
1273 [\\/$]* | ?:[\\/]* ) continue;;
1274 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1275 esac
5213506e 1276 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1277done
1278
1c710c3c
DJ
1279# There might be people who depend on the old broken behavior: `$host'
1280# used to hold the argument of --host etc.
1281# FIXME: To remove some day.
1282build=$build_alias
1283host=$host_alias
1284target=$target_alias
0b0dc272 1285
1c710c3c
DJ
1286# FIXME: To remove some day.
1287if test "x$host_alias" != x; then
1288 if test "x$build_alias" = x; then
1289 cross_compiling=maybe
5213506e 1290 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1c710c3c
DJ
1291 If a cross compiler is detected then cross compile mode will be used." >&2
1292 elif test "x$build_alias" != "x$host_alias"; then
1293 cross_compiling=yes
1294 fi
1295fi
1296
1297ac_tool_prefix=
1298test -n "$host_alias" && ac_tool_prefix=$host_alias-
1299
1300test "$silent" = yes && exec 6>/dev/null
671aa708 1301
671aa708 1302
5213506e
RW
1303ac_pwd=`pwd` && test -n "$ac_pwd" &&
1304ac_ls_di=`ls -di .` &&
1305ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1306 as_fn_error "working directory cannot be determined"
1307test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1308 as_fn_error "pwd does not report name of working directory"
1309
1310
671aa708
NN
1311# Find the source files, if location was not specified.
1312if test -z "$srcdir"; then
1313 ac_srcdir_defaulted=yes
5213506e
RW
1314 # Try the directory containing this script, then the parent directory.
1315 ac_confdir=`$as_dirname -- "$as_myself" ||
1316$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1317 X"$as_myself" : 'X\(//\)[^/]' \| \
1318 X"$as_myself" : 'X\(//\)$' \| \
1319 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1320$as_echo X"$as_myself" |
1321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\/\)[^/].*/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\/\)$/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\).*/{
1334 s//\1/
1335 q
1336 }
1337 s/.*/./; q'`
671aa708 1338 srcdir=$ac_confdir
5213506e 1339 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1340 srcdir=..
1341 fi
1342else
1343 ac_srcdir_defaulted=no
1344fi
5213506e
RW
1345if test ! -r "$srcdir/$ac_unique_file"; then
1346 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1347 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1348fi
1349ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1350ac_abs_confdir=`(
1351 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1352 pwd)`
1353# When building in place, set srcdir=.
1354if test "$ac_abs_confdir" = "$ac_pwd"; then
1355 srcdir=.
1356fi
1357# Remove unnecessary trailing slashes from srcdir.
1358# Double slashes in file names in object file debugging info
1359# mess up M-x gdb in Emacs.
1360case $srcdir in
1361*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1362esac
87841584
AM
1363case $srcdir in
1364 *" "*)
1365 as_fn_error "path to source, $srcdir, contains spaces"
1366 ;;
1367esac
ac9e6043
RW
1368ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1369
5213506e
RW
1370for ac_var in $ac_precious_vars; do
1371 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1372 eval ac_env_${ac_var}_value=\$${ac_var}
1373 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1375done
1c710c3c
DJ
1376
1377#
1378# Report the --help message.
1379#
1380if test "$ac_init_help" = "long"; then
1381 # Omit some internal or obsolete options to make the list less imposing.
1382 # This message is too long to be a string in the A/UX 3.1 sh.
1383 cat <<_ACEOF
1384\`configure' configures this package to adapt to many kinds of systems.
1385
1386Usage: $0 [OPTION]... [VAR=VALUE]...
1387
1388To assign environment variables (e.g., CC, CFLAGS...), specify them as
1389VAR=VALUE. See below for descriptions of some of the useful variables.
1390
1391Defaults for the options are specified in brackets.
1392
1393Configuration:
1394 -h, --help display this help and exit
1395 --help=short display options specific to this package
1396 --help=recursive display the short help of all the included packages
1397 -V, --version display version information and exit
1398 -q, --quiet, --silent do not print \`checking...' messages
1399 --cache-file=FILE cache test results in FILE [disabled]
1400 -C, --config-cache alias for \`--cache-file=config.cache'
1401 -n, --no-create do not create output files
1402 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1403
1c710c3c
DJ
1404Installation directories:
1405 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1406 [$ac_default_prefix]
1c710c3c 1407 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1408 [PREFIX]
1c710c3c
DJ
1409
1410By default, \`make install' will install all the files in
1411\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1412an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1413for instance \`--prefix=\$HOME'.
1414
1415For better control, use the options below.
1416
1417Fine tuning of the installation directories:
5213506e
RW
1418 --bindir=DIR user executables [EPREFIX/bin]
1419 --sbindir=DIR system admin executables [EPREFIX/sbin]
1420 --libexecdir=DIR program executables [EPREFIX/libexec]
1421 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1422 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1423 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1424 --libdir=DIR object code libraries [EPREFIX/lib]
1425 --includedir=DIR C header files [PREFIX/include]
1426 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1427 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1428 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1429 --infodir=DIR info documentation [DATAROOTDIR/info]
1430 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1431 --mandir=DIR man documentation [DATAROOTDIR/man]
1432 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1433 --htmldir=DIR html documentation [DOCDIR]
1434 --dvidir=DIR dvi documentation [DOCDIR]
1435 --pdfdir=DIR pdf documentation [DOCDIR]
1436 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1437_ACEOF
1438
1439 cat <<\_ACEOF
1440
1441Program names:
1442 --program-prefix=PREFIX prepend PREFIX to installed program names
1443 --program-suffix=SUFFIX append SUFFIX to installed program names
1444 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1445
1446System types:
1447 --build=BUILD configure for building on BUILD [guessed]
1448 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1449 --target=TARGET configure for building compilers for TARGET [HOST]
1450_ACEOF
1451fi
1452
1453if test -n "$ac_init_help"; then
1454
1455 cat <<\_ACEOF
1456
1457Optional Features:
5213506e 1458 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1459 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1460 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
21539e2e 1461 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1462 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
87e6d9dc
TB
1463 --disable-libquadmath do not build libquadmath directory
1464 --disable-libquadmath-support
1465 disable libquadmath support for Fortran
30b74385
RW
1466 --enable-libada build libada directory
1467 --enable-libssp build libssp directory
1873ec0c 1468 --disable-libstdcxx do not build libstdc++-v3 directory
a4a2c37d
MK
1469 --enable-static-libjava[=ARG]
1470 build static libjava [default=no]
ff3ac0f4 1471 --enable-bootstrap enable bootstrapping [yes if native build]
33ad93b9
RG
1472 --disable-isl-version-check
1473 disable check for ISL version
d32ef397
AS
1474 --disable-cloog-version-check
1475 disable check for CLooG version
d7f09764 1476 --enable-lto enable link time optimization support
33e39b66
AS
1477 --enable-stage1-languages[=all]
1478 choose additional languages to build during stage1.
1479 Mostly useful for compiler development
1480 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1481 Objective-C runtime
30b74385 1482 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1483 force sequential configuration of sub-packages for
1484 the host, target or build machine, or all
1485 sub-packages
1486 --enable-maintainer-mode
1487 enable make rules and dependencies not useful (and
1488 sometimes confusing) to the casual installer
1489 --enable-stage1-checking[=all]
1490 choose additional checking for stage1 of the
1491 compiler
1c710c3c
DJ
1492 --enable-werror enable -Werror in bootstrap stage2 and later
1493
1494Optional Packages:
1495 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1496 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1497 --with-build-libsubdir=DIR Directory where to find libraries for build system
33e39b66
AS
1498 --with-mpc=PATH specify prefix directory for installed MPC package.
1499 Equivalent to --with-mpc-include=PATH/include plus
1500 --with-mpc-lib=PATH/lib
1501 --with-mpc-include=PATH specify directory for installed MPC include files
1502 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1503 --with-mpfr-dir=PATH this option has been REMOVED
1504 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1505 Equivalent to --with-mpfr-include=PATH/include plus
1506 --with-mpfr-lib=PATH/lib
1c710c3c 1507 --with-mpfr-include=PATH
30b74385
RW
1508 specify directory for installed MPFR include files
1509 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1510 --with-gmp-dir=PATH this option has been REMOVED
33e39b66
AS
1511 --with-gmp=PATH specify prefix directory for the installed GMP
1512 package. Equivalent to
1513 --with-gmp-include=PATH/include plus
1514 --with-gmp-lib=PATH/lib
30b74385
RW
1515 --with-gmp-include=PATH specify directory for installed GMP include files
1516 --with-gmp-lib=PATH specify directory for the installed GMP library
33e39b66
AS
1517 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1518 linking with PPL
0b21f5d3 1519 --with-stage1-libs=LIBS libraries for stage1
33e39b66
AS
1520 --with-stage1-ldflags=FLAGS
1521 linker flags for stage1
33e39b66
AS
1522 --with-boot-libs=LIBS libraries for stage2 and later
1523 --with-boot-ldflags=FLAGS
1524 linker flags for stage2 and later
625afa23
RG
1525 --with-cloog=PATH Specify prefix directory for the installed CLooG-ISL
1526 package. Equivalent to
1527 --with-cloog-include=PATH/include plus
1528 --with-cloog-lib=PATH/lib
33ad93b9 1529 --with-isl=PATH Specify prefix directory for the installed ISL
33e39b66 1530 package. Equivalent to
33ad93b9
RG
1531 --with-isl-include=PATH/include plus
1532 --with-isl-lib=PATH/lib
1533 --with-isl-include=PATH Specify directory for installed ISL include files
1534 --with-isl-lib=PATH Specify the directory for the installed ISL library
d32ef397
AS
1535 --with-cloog-include=PATH
1536 Specify directory for installed CLooG include files
1537 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1538 library
30b74385 1539 --with-build-sysroot=SYSROOT
1c710c3c 1540 use sysroot as the system root during the build
c8aea42c 1541 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1542 map A to B, C to D ... in debug information
1543 --with-build-config='NAME NAME2...'
1544 use config/NAME.mk build configuration
30b74385 1545 --with-build-time-tools=PATH
1c710c3c 1546 use given path to find target tools during the build
1c710c3c
DJ
1547
1548Some influential environment variables:
1549 CC C compiler command
1550 CFLAGS C compiler flags
1551 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1552 nonstandard directory <lib dir>
5213506e
RW
1553 LIBS libraries to pass to the linker, e.g. -l<library>
1554 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1555 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1556 CXX C++ compiler command
1557 CXXFLAGS C++ compiler flags
ffedf511
RW
1558 build_configargs
1559 additional configure arguments for build directories
1560 host_configargs
1561 additional configure arguments for host directories
1562 target_configargs
1563 additional configure arguments for target directories
278a7a38
AO
1564 AR AR for the host
1565 AS AS for the host
1566 DLLTOOL DLLTOOL for the host
1567 LD LD for the host
1568 LIPO LIPO for the host
1569 NM NM for the host
1570 RANLIB RANLIB for the host
1571 STRIP STRIP for the host
1572 WINDRES WINDRES for the host
901119ae 1573 WINDMC WINDMC for the host
278a7a38
AO
1574 OBJCOPY OBJCOPY for the host
1575 OBJDUMP OBJDUMP for the host
e7a82751 1576 READELF READELF for the host
278a7a38
AO
1577 CC_FOR_TARGET
1578 CC for the target
1579 CXX_FOR_TARGET
1580 CXX for the target
1581 GCC_FOR_TARGET
1582 GCC for the target
1583 GCJ_FOR_TARGET
1584 GCJ for the target
1585 GFORTRAN_FOR_TARGET
1586 GFORTRAN for the target
632e2a07
ILT
1587 GOC_FOR_TARGET
1588 GOC for the target
278a7a38
AO
1589 AR_FOR_TARGET
1590 AR for the target
1591 AS_FOR_TARGET
1592 AS for the target
1593 DLLTOOL_FOR_TARGET
1594 DLLTOOL for the target
1595 LD_FOR_TARGET
1596 LD for the target
1597 LIPO_FOR_TARGET
1598 LIPO for the target
1599 NM_FOR_TARGET
1600 NM for the target
1601 OBJDUMP_FOR_TARGET
1602 OBJDUMP for the target
1603 RANLIB_FOR_TARGET
1604 RANLIB for the target
e7a82751
RM
1605 READELF_FOR_TARGET
1606 READELF for the target
278a7a38
AO
1607 STRIP_FOR_TARGET
1608 STRIP for the target
1609 WINDRES_FOR_TARGET
1610 WINDRES for the target
901119ae
KT
1611 WINDMC_FOR_TARGET
1612 WINDMC for the target
1c710c3c
DJ
1613
1614Use these variables to override the choices made by `configure' or to help
1615it to find libraries and programs with nonstandard names/locations.
1616
5213506e 1617Report bugs to the package provider.
1c710c3c 1618_ACEOF
5213506e 1619ac_status=$?
1c710c3c
DJ
1620fi
1621
1622if test "$ac_init_help" = "recursive"; then
1623 # If there are subdirs, report their specific --help.
1c710c3c 1624 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1625 test -d "$ac_dir" ||
1626 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1627 continue
1c710c3c
DJ
1628 ac_builddir=.
1629
5213506e
RW
1630case "$ac_dir" in
1631.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1632*)
1633 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1634 # A ".." for each directory in $ac_dir_suffix.
1635 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1636 case $ac_top_builddir_sub in
1637 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1638 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1639 esac ;;
1640esac
1641ac_abs_top_builddir=$ac_pwd
1642ac_abs_builddir=$ac_pwd$ac_dir_suffix
1643# for backward compatibility:
1644ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1645
1646case $srcdir in
5213506e 1647 .) # We are building in place.
1c710c3c 1648 ac_srcdir=.
5213506e
RW
1649 ac_top_srcdir=$ac_top_builddir_sub
1650 ac_abs_top_srcdir=$ac_pwd ;;
1651 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1652 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1653 ac_top_srcdir=$srcdir
1654 ac_abs_top_srcdir=$srcdir ;;
1655 *) # Relative name.
1656 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1657 ac_top_srcdir=$ac_top_build_prefix$srcdir
1658 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1659esac
5213506e
RW
1660ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1661
1662 cd "$ac_dir" || { ac_status=$?; continue; }
1663 # Check for guested configure.
1664 if test -f "$ac_srcdir/configure.gnu"; then
1665 echo &&
1666 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1667 elif test -f "$ac_srcdir/configure"; then
1668 echo &&
1669 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1670 else
5213506e
RW
1671 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1672 fi || ac_status=$?
1673 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1674 done
1675fi
1676
5213506e 1677test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1678if $ac_init_version; then
1679 cat <<\_ACEOF
5213506e
RW
1680configure
1681generated by GNU Autoconf 2.64
1c710c3c 1682
5213506e 1683Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
1684This configure script is free software; the Free Software Foundation
1685gives unlimited permission to copy, distribute and modify it.
1686_ACEOF
5213506e 1687 exit
0b0dc272 1688fi
5213506e
RW
1689
1690## ------------------------ ##
1691## Autoconf initialization. ##
1692## ------------------------ ##
1693
1694# ac_fn_c_try_compile LINENO
1695# --------------------------
1696# Try to compile conftest.$ac_ext, and return whether this succeeded.
1697ac_fn_c_try_compile ()
1698{
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 rm -f conftest.$ac_objext
1701 if { { ac_try="$ac_compile"
1702case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705esac
1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707$as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_compile") 2>conftest.err
1709 ac_status=$?
1710 if test -s conftest.err; then
1711 grep -v '^ *+' conftest.err >conftest.er1
1712 cat conftest.er1 >&5
1713 mv -f conftest.er1 conftest.err
1714 fi
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; } && {
1717 test -z "$ac_c_werror_flag" ||
1718 test ! -s conftest.err
1719 } && test -s conftest.$ac_objext; then :
1720 ac_retval=0
1721else
1722 $as_echo "$as_me: failed program was:" >&5
1723sed 's/^/| /' conftest.$ac_ext >&5
1724
1725 ac_retval=1
1726fi
1727 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1728 return $ac_retval
1729
1730} # ac_fn_c_try_compile
1731
1732# ac_fn_cxx_try_compile LINENO
1733# ----------------------------
1734# Try to compile conftest.$ac_ext, and return whether this succeeded.
1735ac_fn_cxx_try_compile ()
1736{
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 rm -f conftest.$ac_objext
1739 if { { ac_try="$ac_compile"
1740case "(($ac_try" in
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1743esac
1744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745$as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_compile") 2>conftest.err
1747 ac_status=$?
1748 if test -s conftest.err; then
1749 grep -v '^ *+' conftest.err >conftest.er1
1750 cat conftest.er1 >&5
1751 mv -f conftest.er1 conftest.err
1752 fi
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } && {
1755 test -z "$ac_cxx_werror_flag" ||
1756 test ! -s conftest.err
1757 } && test -s conftest.$ac_objext; then :
1758 ac_retval=0
1759else
1760 $as_echo "$as_me: failed program was:" >&5
1761sed 's/^/| /' conftest.$ac_ext >&5
1762
1763 ac_retval=1
1764fi
1765 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1766 return $ac_retval
1767
1768} # ac_fn_cxx_try_compile
1769
0b21f5d3
EB
1770# ac_fn_cxx_try_link LINENO
1771# -------------------------
1772# Try to link conftest.$ac_ext, and return whether this succeeded.
1773ac_fn_cxx_try_link ()
1774{
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 rm -f conftest.$ac_objext conftest$ac_exeext
1777 if { { ac_try="$ac_link"
1778case "(($ac_try" in
1779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1780 *) ac_try_echo=$ac_try;;
1781esac
1782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783$as_echo "$ac_try_echo"; } >&5
1784 (eval "$ac_link") 2>conftest.err
1785 ac_status=$?
1786 if test -s conftest.err; then
1787 grep -v '^ *+' conftest.err >conftest.er1
1788 cat conftest.er1 >&5
1789 mv -f conftest.er1 conftest.err
1790 fi
1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792 test $ac_status = 0; } && {
1793 test -z "$ac_cxx_werror_flag" ||
1794 test ! -s conftest.err
1795 } && test -s conftest$ac_exeext && {
1796 test "$cross_compiling" = yes ||
1797 $as_test_x conftest$ac_exeext
1798 }; then :
1799 ac_retval=0
1800else
1801 $as_echo "$as_me: failed program was:" >&5
1802sed 's/^/| /' conftest.$ac_ext >&5
1803
1804 ac_retval=1
1805fi
1806 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1807 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1808 # interfere with the next link command; also delete a directory that is
1809 # left behind by Apple's compiler. We do this before executing the actions.
1810 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1811 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1812 return $ac_retval
1813
1814} # ac_fn_cxx_try_link
1815
5213506e
RW
1816# ac_fn_c_try_link LINENO
1817# -----------------------
1818# Try to link conftest.$ac_ext, and return whether this succeeded.
1819ac_fn_c_try_link ()
1820{
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 rm -f conftest.$ac_objext conftest$ac_exeext
1823 if { { ac_try="$ac_link"
1824case "(($ac_try" in
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1827esac
1828eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829$as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_link") 2>conftest.err
1831 ac_status=$?
1832 if test -s conftest.err; then
1833 grep -v '^ *+' conftest.err >conftest.er1
1834 cat conftest.er1 >&5
1835 mv -f conftest.er1 conftest.err
1836 fi
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && {
1839 test -z "$ac_c_werror_flag" ||
1840 test ! -s conftest.err
1841 } && test -s conftest$ac_exeext && {
1842 test "$cross_compiling" = yes ||
1843 $as_test_x conftest$ac_exeext
1844 }; then :
1845 ac_retval=0
1846else
1847 $as_echo "$as_me: failed program was:" >&5
1848sed 's/^/| /' conftest.$ac_ext >&5
1849
1850 ac_retval=1
1851fi
1852 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1853 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1854 # interfere with the next link command; also delete a directory that is
1855 # left behind by Apple's compiler. We do this before executing the actions.
1856 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1857 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1858 return $ac_retval
1859
1860} # ac_fn_c_try_link
33ad93b9
RG
1861
1862# ac_fn_c_try_run LINENO
1863# ----------------------
1864# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1865# that executables *can* be run.
1866ac_fn_c_try_run ()
1867{
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 if { { ac_try="$ac_link"
1870case "(($ac_try" in
1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872 *) ac_try_echo=$ac_try;;
1873esac
1874eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875$as_echo "$ac_try_echo"; } >&5
1876 (eval "$ac_link") 2>&5
1877 ac_status=$?
1878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1880 { { case "(($ac_try" in
1881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882 *) ac_try_echo=$ac_try;;
1883esac
1884eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885$as_echo "$ac_try_echo"; } >&5
1886 (eval "$ac_try") 2>&5
1887 ac_status=$?
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; }; }; then :
1890 ac_retval=0
1891else
1892 $as_echo "$as_me: program exited with status $ac_status" >&5
1893 $as_echo "$as_me: failed program was:" >&5
1894sed 's/^/| /' conftest.$ac_ext >&5
1895
1896 ac_retval=$ac_status
1897fi
1898 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1899 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1900 return $ac_retval
1901
1902} # ac_fn_c_try_run
5213506e 1903cat >config.log <<_ACEOF
1c710c3c
DJ
1904This file contains any messages produced by compilers while
1905running configure, to aid debugging if configure makes a mistake.
1906
1907It was created by $as_me, which was
5213506e 1908generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
1909
1910 $ $0 $@
1911
1912_ACEOF
5213506e 1913exec 5>>config.log
1c710c3c
DJ
1914{
1915cat <<_ASUNAME
1916## --------- ##
1917## Platform. ##
1918## --------- ##
1919
1920hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1921uname -m = `(uname -m) 2>/dev/null || echo unknown`
1922uname -r = `(uname -r) 2>/dev/null || echo unknown`
1923uname -s = `(uname -s) 2>/dev/null || echo unknown`
1924uname -v = `(uname -v) 2>/dev/null || echo unknown`
1925
1926/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1927/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1928
1929/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1930/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1931/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1932/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1933/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1934/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1935/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1936
1937_ASUNAME
1938
1939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1940for as_dir in $PATH
1941do
1942 IFS=$as_save_IFS
1943 test -z "$as_dir" && as_dir=.
5213506e
RW
1944 $as_echo "PATH: $as_dir"
1945 done
1946IFS=$as_save_IFS
1c710c3c
DJ
1947
1948} >&5
1949
1950cat >&5 <<_ACEOF
1951
1952
1953## ----------- ##
1954## Core tests. ##
1955## ----------- ##
1956
1957_ACEOF
1958
1959
1960# Keep a trace of the command line.
1961# Strip out --no-create and --no-recursion so they do not pile up.
1962# Strip out --silent because we don't want to record it for future runs.
1963# Also quote any args containing shell meta-characters.
1964# Make two passes to allow for proper duplicate-argument suppression.
1965ac_configure_args=
1966ac_configure_args0=
1967ac_configure_args1=
1c710c3c
DJ
1968ac_must_keep_next=false
1969for ac_pass in 1 2
1970do
1971 for ac_arg
1972 do
1973 case $ac_arg in
1974 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1975 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1976 | -silent | --silent | --silen | --sile | --sil)
1977 continue ;;
5213506e
RW
1978 *\'*)
1979 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1980 esac
1981 case $ac_pass in
5213506e 1982 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 1983 2)
5213506e 1984 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
1985 if test $ac_must_keep_next = true; then
1986 ac_must_keep_next=false # Got value, back to normal.
1987 else
1988 case $ac_arg in
1989 *=* | --config-cache | -C | -disable-* | --disable-* \
1990 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1991 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1992 | -with-* | --with-* | -without-* | --without-* | --x)
1993 case "$ac_configure_args0 " in
1994 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1995 esac
1996 ;;
1997 -* ) ac_must_keep_next=true ;;
1998 esac
1999 fi
5213506e 2000 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
2001 ;;
2002 esac
2003 done
2004done
5213506e
RW
2005{ ac_configure_args0=; unset ac_configure_args0;}
2006{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
2007
2008# When interrupted or exit'd, cleanup temporary files, and complete
2009# config.log. We remove comments because anyway the quotes in there
2010# would cause problems or look ugly.
5213506e
RW
2011# WARNING: Use '\'' to represent an apostrophe within the trap.
2012# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
2013trap 'exit_status=$?
2014 # Save into config.log some information that might help in debugging.
2015 {
2016 echo
2017
2018 cat <<\_ASBOX
2019## ---------------- ##
2020## Cache variables. ##
2021## ---------------- ##
2022_ASBOX
2023 echo
2024 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2025(
2026 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2027 eval ac_val=\$$ac_var
2028 case $ac_val in #(
2029 *${as_nl}*)
2030 case $ac_var in #(
2031 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2032$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2033 esac
2034 case $ac_var in #(
2035 _ | IFS | as_nl) ;; #(
2036 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2037 *) { eval $ac_var=; unset $ac_var;} ;;
2038 esac ;;
2039 esac
2040 done
1c710c3c 2041 (set) 2>&1 |
5213506e
RW
2042 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2043 *${as_nl}ac_space=\ *)
1c710c3c 2044 sed -n \
5213506e
RW
2045 "s/'\''/'\''\\\\'\'''\''/g;
2046 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2047 ;; #(
1c710c3c 2048 *)
5213506e 2049 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 2050 ;;
5213506e
RW
2051 esac |
2052 sort
2053)
1c710c3c
DJ
2054 echo
2055
2056 cat <<\_ASBOX
2057## ----------------- ##
2058## Output variables. ##
2059## ----------------- ##
2060_ASBOX
2061 echo
2062 for ac_var in $ac_subst_vars
2063 do
5213506e
RW
2064 eval ac_val=\$$ac_var
2065 case $ac_val in
2066 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2067 esac
2068 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2069 done | sort
2070 echo
2071
2072 if test -n "$ac_subst_files"; then
2073 cat <<\_ASBOX
5213506e
RW
2074## ------------------- ##
2075## File substitutions. ##
2076## ------------------- ##
1c710c3c
DJ
2077_ASBOX
2078 echo
2079 for ac_var in $ac_subst_files
2080 do
5213506e
RW
2081 eval ac_val=\$$ac_var
2082 case $ac_val in
2083 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2084 esac
2085 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2086 done | sort
2087 echo
2088 fi
2089
2090 if test -s confdefs.h; then
2091 cat <<\_ASBOX
2092## ----------- ##
2093## confdefs.h. ##
2094## ----------- ##
2095_ASBOX
2096 echo
5213506e 2097 cat confdefs.h
1c710c3c
DJ
2098 echo
2099 fi
2100 test "$ac_signal" != 0 &&
5213506e
RW
2101 $as_echo "$as_me: caught signal $ac_signal"
2102 $as_echo "$as_me: exit $exit_status"
1c710c3c 2103 } >&5
5213506e
RW
2104 rm -f core *.core core.conftest.* &&
2105 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2106 exit $exit_status
5213506e 2107' 0
1c710c3c 2108for ac_signal in 1 2 13 15; do
5213506e 2109 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2110done
2111ac_signal=0
2112
2113# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2114rm -f -r conftest* confdefs.h
2115
2116$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2117
2118# Predefined preprocessor variables.
2119
2120cat >>confdefs.h <<_ACEOF
2121#define PACKAGE_NAME "$PACKAGE_NAME"
2122_ACEOF
2123
1c710c3c
DJ
2124cat >>confdefs.h <<_ACEOF
2125#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2126_ACEOF
2127
1c710c3c
DJ
2128cat >>confdefs.h <<_ACEOF
2129#define PACKAGE_VERSION "$PACKAGE_VERSION"
2130_ACEOF
0b0dc272 2131
1c710c3c
DJ
2132cat >>confdefs.h <<_ACEOF
2133#define PACKAGE_STRING "$PACKAGE_STRING"
2134_ACEOF
2135
1c710c3c
DJ
2136cat >>confdefs.h <<_ACEOF
2137#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2138_ACEOF
2139
5213506e
RW
2140cat >>confdefs.h <<_ACEOF
2141#define PACKAGE_URL "$PACKAGE_URL"
2142_ACEOF
2143
1c710c3c
DJ
2144
2145# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2146# Prefer an explicitly selected file to automatically selected ones.
2147ac_site_file1=NONE
2148ac_site_file2=NONE
2149if test -n "$CONFIG_SITE"; then
2150 ac_site_file1=$CONFIG_SITE
2151elif test "x$prefix" != xNONE; then
2152 ac_site_file1=$prefix/share/config.site
2153 ac_site_file2=$prefix/etc/config.site
2154else
2155 ac_site_file1=$ac_default_prefix/share/config.site
2156 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2157fi
5213506e
RW
2158for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2159do
2160 test "x$ac_site_file" = xNONE && continue
671aa708 2161 if test -r "$ac_site_file"; then
5213506e
RW
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2163$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2164 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
2165 . "$ac_site_file"
2166 fi
2167done
2168
2169if test -r "$cache_file"; then
1c710c3c
DJ
2170 # Some versions of bash will fail to source /dev/null (special
2171 # files actually), so we avoid doing that.
2172 if test -f "$cache_file"; then
5213506e
RW
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2174$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2175 case $cache_file in
5213506e
RW
2176 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2177 *) . "./$cache_file";;
1c710c3c
DJ
2178 esac
2179 fi
671aa708 2180else
5213506e
RW
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2182$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2183 >$cache_file
2184fi
2185
2186# Check that the precious variables saved in the cache have kept the same
2187# value.
2188ac_cache_corrupted=false
5213506e 2189for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2190 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2191 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2192 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2193 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2194 case $ac_old_set,$ac_new_set in
2195 set,)
5213506e
RW
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2197$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2198 ac_cache_corrupted=: ;;
2199 ,set)
5213506e
RW
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2201$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2202 ac_cache_corrupted=: ;;
2203 ,);;
2204 *)
2205 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2206 # differences in whitespace do not lead to failure.
2207 ac_old_val_w=`echo x $ac_old_val`
2208 ac_new_val_w=`echo x $ac_new_val`
2209 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2211$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2212 ac_cache_corrupted=:
2213 else
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2215$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2216 eval $ac_var=\$ac_old_val
2217 fi
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2219$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2221$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2222 fi;;
2223 esac
2224 # Pass precious variables to config.status.
2225 if test "$ac_new_set" = set; then
2226 case $ac_new_val in
5213506e 2227 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2228 *) ac_arg=$ac_var=$ac_new_val ;;
2229 esac
2230 case " $ac_configure_args " in
2231 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2232 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2233 esac
2234 fi
2235done
2236if $ac_cache_corrupted; then
5213506e
RW
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2238$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2240$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2241 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2242fi
5213506e
RW
2243## -------------------- ##
2244## Main body of script. ##
2245## -------------------- ##
671aa708 2246
2aeb72e9
DD
2247ac_ext=c
2248ac_cpp='$CPP $CPPFLAGS'
2249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2251ac_compiler_gnu=$ac_cv_c_compiler_gnu
2252
1c710c3c
DJ
2253
2254
2255
1c710c3c
DJ
2256
2257
0115d4a3 2258
1c710c3c 2259
ad33ff57
RW
2260
2261progname=$0
2262# if PWD already has a value, it is probably wrong.
2263if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2264
2265# Export original configure arguments for use by sub-configures.
2266# Quote arguments with shell meta charatcers.
2267TOPLEVEL_CONFIGURE_ARGUMENTS=
2268set -- "$progname" "$@"
2269for ac_arg
2270do
2271 case "$ac_arg" in
2272 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2273 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2274 # if the argument is of the form -foo=baz, quote the baz part only
2275 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2276 *) ;;
2277 esac
2278 # Add the quoted argument to the list.
2279 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2280done
2281if test "$silent" = yes; then
2282 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2283fi
2284# Remove the initial space we just introduced and, as these will be
2285# expanded by make, quote '$'.
2286TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2287
1c710c3c
DJ
2288
2289# Find the build, host, and target systems.
671aa708 2290ac_aux_dir=
5213506e
RW
2291for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2292 for ac_t in install-sh install.sh shtool; do
2293 if test -f "$ac_dir/$ac_t"; then
2294 ac_aux_dir=$ac_dir
2295 ac_install_sh="$ac_aux_dir/$ac_t -c"
2296 break 2
2297 fi
2298 done
671aa708
NN
2299done
2300if test -z "$ac_aux_dir"; then
5213506e 2301 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2302fi
5213506e
RW
2303
2304# These three variables are undocumented and unsupported,
2305# and are intended to be withdrawn in a future Autoconf release.
2306# They can cause serious problems if a builder's source tree is in a directory
2307# whose full name contains unusual characters.
2308ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2309ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2310ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2311
671aa708 2312
1c710c3c 2313# Make sure we can run config.sub.
5213506e
RW
2314$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2315 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2316
2317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2318$as_echo_n "checking build system type... " >&6; }
2319if test "${ac_cv_build+set}" = set; then :
2320 $as_echo_n "(cached) " >&6
2321else
2322 ac_build_alias=$build_alias
2323test "x$ac_build_alias" = x &&
2324 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2325test "x$ac_build_alias" = x &&
2326 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2327ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2328 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2329
2330fi
2331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2332$as_echo "$ac_cv_build" >&6; }
2333case $ac_cv_build in
2334*-*-*) ;;
2335*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2336esac
1c710c3c 2337build=$ac_cv_build
5213506e
RW
2338ac_save_IFS=$IFS; IFS='-'
2339set x $ac_cv_build
2340shift
2341build_cpu=$1
2342build_vendor=$2
2343shift; shift
2344# Remember, the first character of IFS is used to create $*,
2345# except with old shells:
2346build_os=$*
2347IFS=$ac_save_IFS
2348case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2349
671aa708 2350
1c710c3c
DJ
2351 case ${build_alias} in
2352 "") build_noncanonical=${build} ;;
2353 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2354esac
2355
2356
af71363e 2357
1c710c3c
DJ
2358 case ${host_alias} in
2359 "") host_noncanonical=${build_noncanonical} ;;
2360 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2361esac
2362
af71363e 2363
1c710c3c
DJ
2364
2365 case ${target_alias} in
2366 "") target_noncanonical=${host_noncanonical} ;;
2367 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2368esac
2369
af71363e 2370
1c710c3c
DJ
2371
2372
2373test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2374 test "$program_prefix$program_suffix$program_transform_name" = \
2375 NONENONEs,x,x, &&
1c710c3c 2376 program_transform_name=s,y,y,
af71363e 2377
5213506e
RW
2378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2379$as_echo_n "checking host system type... " >&6; }
2380if test "${ac_cv_host+set}" = set; then :
2381 $as_echo_n "(cached) " >&6
af71363e 2382else
5213506e
RW
2383 if test "x$host_alias" = x; then
2384 ac_cv_host=$ac_cv_build
2385else
2386 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2387 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2388fi
1c710c3c 2389
af71363e 2390fi
5213506e
RW
2391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2392$as_echo "$ac_cv_host" >&6; }
2393case $ac_cv_host in
2394*-*-*) ;;
2395*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2396esac
1c710c3c 2397host=$ac_cv_host
5213506e
RW
2398ac_save_IFS=$IFS; IFS='-'
2399set x $ac_cv_host
2400shift
2401host_cpu=$1
2402host_vendor=$2
2403shift; shift
2404# Remember, the first character of IFS is used to create $*,
2405# except with old shells:
2406host_os=$*
2407IFS=$ac_save_IFS
2408case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2409
2410
5213506e
RW
2411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2412$as_echo_n "checking target system type... " >&6; }
2413if test "${ac_cv_target+set}" = set; then :
2414 $as_echo_n "(cached) " >&6
1c710c3c 2415else
5213506e
RW
2416 if test "x$target_alias" = x; then
2417 ac_cv_target=$ac_cv_host
2418else
2419 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2420 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2421fi
1c710c3c
DJ
2422
2423fi
5213506e
RW
2424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2425$as_echo "$ac_cv_target" >&6; }
2426case $ac_cv_target in
2427*-*-*) ;;
2428*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2429esac
1c710c3c 2430target=$ac_cv_target
5213506e
RW
2431ac_save_IFS=$IFS; IFS='-'
2432set x $ac_cv_target
2433shift
2434target_cpu=$1
2435target_vendor=$2
2436shift; shift
2437# Remember, the first character of IFS is used to create $*,
2438# except with old shells:
2439target_os=$*
2440IFS=$ac_save_IFS
2441case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2442
2443
2444# The aliases save the names the user supplied, while $host etc.
2445# will get canonicalized.
2446test -n "$target_alias" &&
2447 test "$program_prefix$program_suffix$program_transform_name" = \
2448 NONENONEs,x,x, &&
2449 program_prefix=${target_alias}-
5213506e 2450
671aa708 2451test "$program_prefix" != NONE &&
5213506e 2452 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2453# Use a double $ so make ignores it.
2454test "$program_suffix" != NONE &&
5213506e
RW
2455 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2456# Double any \ or $.
1c710c3c 2457# By default was `s,x,x', remove it if useless.
5213506e
RW
2458ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2459program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2460
671aa708
NN
2461
2462
775956d0
NN
2463# Get 'install' or 'install-sh' and its variants.
2464# Find a good install program. We prefer a C program (faster),
2465# so one script is as good as another. But avoid the broken or
2466# incompatible versions:
2467# SysV /etc/install, /usr/sbin/install
2468# SunOS /usr/etc/install
2469# IRIX /sbin/install
2470# AIX /bin/install
1c710c3c 2471# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2472# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2473# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2474# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2475# OS/2's system install, which has a completely different semantic
775956d0 2476# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2477# Reject install programs that cannot install multiple files.
5213506e
RW
2478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2479$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2480if test -z "$INSTALL"; then
5213506e
RW
2481if test "${ac_cv_path_install+set}" = set; then :
2482 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2483else
2484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485for as_dir in $PATH
2486do
2487 IFS=$as_save_IFS
2488 test -z "$as_dir" && as_dir=.
5213506e
RW
2489 # Account for people who put trailing slashes in PATH elements.
2490case $as_dir/ in #((
2491 ./ | .// | /[cC]/* | \
1c710c3c 2492 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2493 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2494 /usr/ucb/* ) ;;
2495 *)
2496 # OSF1 and SCO ODT 3.0 have their own names for install.
2497 # Don't use installbsd from OSF since it installs stuff as root
2498 # by default.
2499 for ac_prog in ginstall scoinst install; do
2500 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2501 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
775956d0 2502 if test $ac_prog = install &&
1c710c3c 2503 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2504 # AIX install. It has an incompatible calling convention.
2505 :
1c710c3c
DJ
2506 elif test $ac_prog = install &&
2507 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2508 # program-specific install script used by HP pwplus--don't use.
2509 :
775956d0 2510 else
38d24731
RW
2511 rm -rf conftest.one conftest.two conftest.dir
2512 echo one > conftest.one
2513 echo two > conftest.two
2514 mkdir conftest.dir
2515 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2516 test -s conftest.one && test -s conftest.two &&
2517 test -s conftest.dir/conftest.one &&
2518 test -s conftest.dir/conftest.two
2519 then
2520 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2521 break 3
2522 fi
775956d0
NN
2523 fi
2524 fi
2525 done
1c710c3c
DJ
2526 done
2527 ;;
2528esac
5213506e
RW
2529
2530 done
2531IFS=$as_save_IFS
1c710c3c 2532
38d24731 2533rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2534
2535fi
2536 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2537 INSTALL=$ac_cv_path_install
775956d0 2538 else
38d24731
RW
2539 # As a last resort, use the slow shell script. Don't cache a
2540 # value for INSTALL within a source directory, because that will
775956d0 2541 # break other packages using the cache if that directory is
38d24731 2542 # removed, or if the value is a relative name.
1c710c3c 2543 INSTALL=$ac_install_sh
775956d0
NN
2544 fi
2545fi
5213506e
RW
2546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2547$as_echo "$INSTALL" >&6; }
775956d0
NN
2548
2549# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2550# It thinks the first close brace ends the variable substitution.
2551test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2552
1c710c3c 2553test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2554
2555test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2556
5213506e
RW
2557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2558$as_echo_n "checking whether ln works... " >&6; }
2559if test "${acx_cv_prog_LN+set}" = set; then :
2560 $as_echo_n "(cached) " >&6
ad6717df
PB
2561else
2562 rm -f conftestdata_t
2563echo >conftestdata_f
2564if ln conftestdata_f conftestdata_t 2>/dev/null
2565then
2566 acx_cv_prog_LN=ln
2567else
2568 acx_cv_prog_LN=no
2569fi
2570rm -f conftestdata_f conftestdata_t
2571
2572fi
2573if test $acx_cv_prog_LN = no; then
2574 LN="cp"
5213506e
RW
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2576$as_echo "no, using $LN" >&6; }
ad6717df
PB
2577else
2578 LN="$acx_cv_prog_LN"
5213506e
RW
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2580$as_echo "yes" >&6; }
ad6717df
PB
2581fi
2582
5213506e
RW
2583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2584$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2585LN_S=$as_ln_s
2586if test "$LN_S" = "ln -s"; then
5213506e
RW
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2588$as_echo "yes" >&6; }
fb0103e5 2589else
5213506e
RW
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2591$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2592fi
2593
87264276
PB
2594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2595$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2596if test "${ac_cv_path_SED+set}" = set; then :
2597 $as_echo_n "(cached) " >&6
2598else
2599 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2600 for ac_i in 1 2 3 4 5 6 7; do
2601 ac_script="$ac_script$as_nl$ac_script"
2602 done
2603 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2604 { ac_script=; unset ac_script;}
2605 if test -z "$SED"; then
2606 ac_path_SED_found=false
2607 # Loop through the user's path and test for each of PROGNAME-LIST
2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609for as_dir in $PATH
2610do
2611 IFS=$as_save_IFS
2612 test -z "$as_dir" && as_dir=.
2613 for ac_prog in sed gsed; do
2614 for ac_exec_ext in '' $ac_executable_extensions; do
2615 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2616 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2617# Check for GNU ac_path_SED and select it if it is found.
2618 # Check for GNU $ac_path_SED
2619case `"$ac_path_SED" --version 2>&1` in
2620*GNU*)
2621 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2622*)
2623 ac_count=0
2624 $as_echo_n 0123456789 >"conftest.in"
2625 while :
2626 do
2627 cat "conftest.in" "conftest.in" >"conftest.tmp"
2628 mv "conftest.tmp" "conftest.in"
2629 cp "conftest.in" "conftest.nl"
2630 $as_echo '' >> "conftest.nl"
2631 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2632 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2633 as_fn_arith $ac_count + 1 && ac_count=$as_val
2634 if test $ac_count -gt ${ac_path_SED_max-0}; then
2635 # Best one so far, save it but keep looking for a better one
2636 ac_cv_path_SED="$ac_path_SED"
2637 ac_path_SED_max=$ac_count
2638 fi
2639 # 10*(2^10) chars as input seems more than enough
2640 test $ac_count -gt 10 && break
2641 done
2642 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2643esac
2644
2645 $ac_path_SED_found && break 3
2646 done
2647 done
2648 done
2649IFS=$as_save_IFS
2650 if test -z "$ac_cv_path_SED"; then
2651 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2652 fi
2653else
2654 ac_cv_path_SED=$SED
2655fi
2656
2657fi
2658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2659$as_echo "$ac_cv_path_SED" >&6; }
2660 SED="$ac_cv_path_SED"
2661 rm -f conftest.sed
2662
2663for ac_prog in gawk mawk nawk awk
2664do
2665 # Extract the first word of "$ac_prog", so it can be a program name with args.
2666set dummy $ac_prog; ac_word=$2
2667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2668$as_echo_n "checking for $ac_word... " >&6; }
2669if test "${ac_cv_prog_AWK+set}" = set; then :
2670 $as_echo_n "(cached) " >&6
2671else
2672 if test -n "$AWK"; then
2673 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2674else
2675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676for as_dir in $PATH
2677do
2678 IFS=$as_save_IFS
2679 test -z "$as_dir" && as_dir=.
2680 for ac_exec_ext in '' $ac_executable_extensions; do
2681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2682 ac_cv_prog_AWK="$ac_prog"
2683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2684 break 2
2685 fi
2686done
2687 done
2688IFS=$as_save_IFS
2689
2690fi
2691fi
2692AWK=$ac_cv_prog_AWK
2693if test -n "$AWK"; then
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2695$as_echo "$AWK" >&6; }
2696else
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2698$as_echo "no" >&6; }
2699fi
2700
2701
2702 test -n "$AWK" && break
2703done
2704
775956d0 2705
ee6a22df
L
2706srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2707
2708# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2709# a relative path.
2710if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2711 INSTALL="${srcpwd}/install-sh -c"
2712fi
2713
671aa708
NN
2714# Set srcdir to "." if that's what it is.
2715# This is important for multilib support.
2716pwd=`${PWDCMD-pwd}`
671aa708
NN
2717if test "${pwd}" = "${srcpwd}" ; then
2718 srcdir=.
79c06341
JL
2719fi
2720
671aa708 2721topsrcdir=$srcpwd
5d4a5ee6 2722
671aa708 2723extra_host_args=
afabd8e6 2724
671aa708
NN
2725### To add a new directory to the tree, first choose whether it is a target
2726### or a host dependent tool. Then put it into the appropriate list
2727### (library or tools, host or target), doing a dependency sort.
79c06341 2728
1c710c3c 2729# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2730# configdirs, or target_configdirs; see the serialization section below.
79c06341 2731
1c710c3c
DJ
2732# Dependency sorting is only needed when *configuration* must be done in
2733# a particular order. In all cases a dependency should be specified in
671aa708 2734# the Makefile, whether or not it's implicitly specified here.
79c06341 2735
671aa708
NN
2736# Double entries in build_configdirs, configdirs, or target_configdirs may
2737# cause circular dependencies and break everything horribly.
79c06341 2738
23f6b2f9
PB
2739# these library is used by various programs built for the build
2740# environment
2741#
2742build_libs="build-libiberty"
2743
2744# these tools are built for the build environment
85bfb75e 2745build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2746
671aa708
NN
2747# these libraries are used by various programs built for the host environment
2748#
eff02e4f 2749host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
671aa708 2750
671aa708
NN
2751# these tools are built for the host environment
2752# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2753# know that we are building the simulator.
2754# binutils, gas and ld appear in that order because it makes sense to run
2755# "make check" in that particular order.
38e3d868 2756# If --enable-gold is used, "gold" may replace "ld".
85bfb75e 2757host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
671aa708
NN
2758
2759# libgcj represents the runtime libraries only used by gcj.
2760libgcj="target-libffi \
671aa708 2761 target-zlib \
671aa708
NN
2762 target-libjava"
2763
2764# these libraries are built for the target environment, and are built after
2765# the host libraries and the host tools (which may be a cross compiler)
8499116a 2766# Note that libiberty is not a target library.
291f172e 2767target_libraries="target-libgcc \
eff02e4f 2768 target-libbacktrace \
671aa708
NN
2769 target-libgloss \
2770 target-newlib \
6d3b5aea 2771 target-libgomp \
48310492 2772 target-libatomic \
0a35513e 2773 target-libitm \
cb543528 2774 target-libstdc++-v3 \
6de9cd9a 2775 target-libmudflap \
f35db108 2776 target-libsanitizer \
77008252 2777 target-libssp \
1ec601bf 2778 target-libquadmath \
6de9cd9a 2779 target-libgfortran \
7cd0cf9c 2780 target-boehm-gc \
77d187bc 2781 ${libgcj} \
d9cdb878 2782 target-libobjc \
632e2a07
ILT
2783 target-libada \
2784 target-libgo"
671aa708 2785
4dbda6f0
NN
2786# these tools are built using the target libraries, and are intended to
2787# run only in the target environment
671aa708 2788#
4dbda6f0 2789# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2790# list belongs in this list.
671aa708 2791#
85bfb75e 2792target_tools="target-rda"
79c06341 2793
671aa708 2794################################################################################
79c06341 2795
671aa708
NN
2796## All tools belong in one of the four categories, and are assigned above
2797## We assign ${configdirs} this way to remove all embedded newlines. This
2798## is important because configure will choke if they ever get through.
2799## ${configdirs} is directories we build using the host tools.
2800## ${target_configdirs} is directories we build using the target tools.
671aa708 2801configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2802target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2803build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2804
ac9e6043
RW
2805
2806
671aa708 2807################################################################################
79c06341 2808
671aa708 2809srcname="gnu development package"
79c06341 2810
671aa708
NN
2811# This gets set non-empty for some net releases of packages.
2812appdirs=""
79c06341 2813
671aa708
NN
2814# Define is_cross_compiler to save on calls to 'test'.
2815is_cross_compiler=
2816if test x"${host}" = x"${target}" ; then
2817 is_cross_compiler=no
79c06341 2818else
671aa708 2819 is_cross_compiler=yes
1c710c3c 2820fi
79c06341 2821
b4acb5ef 2822# Find the build and target subdir names.
8b87bb96 2823
2e9e6f68
DJ
2824# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2825# have matching libraries, they should use host libraries: Makefile.tpl
2826# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2827# However, they still use the build modules, because the corresponding
2828# host modules (e.g. bison) are only built for the host when bootstrap
2829# finishes. So:
2830# - build_subdir is where we find build modules, and never changes.
2831# - build_libsubdir is where we find build libraries, and can be overridden.
2832
2833# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2834build_subdir="build-${build_noncanonical}"
1c710c3c 2835
5213506e
RW
2836# Check whether --with-build-libsubdir was given.
2837if test "${with_build_libsubdir+set}" = set; then :
2838 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2839else
2840 build_libsubdir="$build_subdir"
5213506e
RW
2841fi
2842
215c351a
PB
2843# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2844if ( test $srcdir = . && test -d gcc ) \
2845 || test -d $srcdir/../host-${host_noncanonical}; then
2846 host_subdir="host-${host_noncanonical}"
2847else
2848 host_subdir=.
2849fi
8b87bb96
NN
2850# No prefix.
2851target_subdir=${target_noncanonical}
1c710c3c 2852
0db770bd
RW
2853# Be sure to cover against remnants of an in-tree build.
2854if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2855 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2856Use a pristine source tree when building in a separate tree" "$LINENO" 5
2857fi
79c06341 2858
671aa708
NN
2859# Skipdirs are removed silently.
2860skipdirs=
2861# Noconfigdirs are removed loudly.
2862noconfigdirs=""
79c06341 2863
671aa708
NN
2864use_gnu_ld=
2865# Make sure we don't let GNU ld be added if we didn't want it.
2866if test x$with_gnu_ld = xno ; then
2867 use_gnu_ld=no
5afab7ad 2868 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2869fi
2870
671aa708
NN
2871use_gnu_as=
2872# Make sure we don't let GNU as be added if we didn't want it.
2873if test x$with_gnu_as = xno ; then
2874 use_gnu_as=no
2875 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2876fi
2877
d7f09764
DN
2878use_included_zlib=
2879# Make sure we don't let ZLIB be added if we didn't want it.
2880if test x$with_system_zlib = xyes ; then
2881 use_included_zlib=no
2882 noconfigdirs="$noconfigdirs zlib"
2883fi
2884
1c710c3c 2885# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2886# it's not even worth trying to configure, much less build, that tool.
79c06341 2887
671aa708
NN
2888case ${with_x} in
2889 yes | "") ;; # the default value for this tree is that X11 is available
2890 no)
b4f96efe 2891 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2892 # We won't be able to build gdbtk without X.
1c710c3c 2893 enable_gdbtk=no
671aa708
NN
2894 ;;
2895 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2896esac
79c06341 2897
1bcce263 2898# Some are only suitable for cross toolchains.
671aa708
NN
2899# Remove these if host=target.
2900cross_only="target-libgloss target-newlib target-opcodes"
2901
2902case $is_cross_compiler in
2903 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 2904esac
79c06341 2905
671aa708
NN
2906# If both --with-headers and --with-libs are specified, default to
2907# --without-newlib.
ee6a22df
L
2908if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2909 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2910 if test x"${with_newlib}" = x ; then
2911 with_newlib=no
2912 fi
79c06341
JL
2913fi
2914
671aa708
NN
2915# Recognize --with-newlib/--without-newlib.
2916case ${with_newlib} in
2917 no) skipdirs="${skipdirs} target-newlib" ;;
2918 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2919esac
79c06341 2920
21539e2e
MK
2921# Handle --enable-gold, --enable-ld.
2922# --disable-gold [--enable-ld]
2923# Build only ld. Default option.
9580395f
L
2924# --enable-gold [--enable-ld]
2925# Build both gold and ld. Install gold as "ld.gold", install ld
2926# as "ld.bfd" and "ld".
2927# --enable-gold=default [--enable-ld]
21539e2e
MK
2928# Build both gold and ld. Install gold as "ld.gold" and "ld",
2929# install ld as "ld.bfd".
2930# --enable-gold[=default] --disable-ld
2931# Build only gold, which is then installed as both "ld.gold" and "ld".
2932# --enable-gold --enable-ld=default
9580395f
L
2933# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2934# and ld.bfd).
21539e2e
MK
2935# In other words, ld is default
2936# --enable-gold=default --enable-ld=default
2937# Error.
2938
2939default_ld=
5213506e
RW
2940# Check whether --enable-gold was given.
2941if test "${enable_gold+set}" = set; then :
2942 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
2943else
2944 ENABLE_GOLD=no
5213506e
RW
2945fi
2946
21539e2e
MK
2947case "${ENABLE_GOLD}" in
2948 yes|default)
38e3d868
RM
2949 # Check for ELF target.
2950 is_elf=no
2951 case "${target}" in
2952 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
0e76460f 2953 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a 2954 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
ff4b7a7e 2955 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
38e3d868
RM
2956 case "${target}" in
2957 *-*-linux*aout* | *-*-linux*oldld*)
2958 ;;
2959 *)
2960 is_elf=yes
2961 ;;
2962 esac
2963 esac
2964
2965 if test "$is_elf" = "yes"; then
2966 # Check for target supported by gold.
5afab7ad 2967 case "${target}" in
8750dfc5 2968 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* | tilegx*-*-*)
21539e2e
MK
2969 configdirs="$configdirs gold"
2970 if test x${ENABLE_GOLD} = xdefault; then
2971 default_ld=gold
2972 fi
38e3d868 2973 ENABLE_GOLD=yes
5afab7ad
ILT
2974 ;;
2975 esac
38e3d868
RM
2976 fi
2977 ;;
2978 no)
2979 ;;
2980 *)
2981 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2982 ;;
21539e2e
MK
2983esac
2984
2985# Check whether --enable-ld was given.
2986if test "${enable_ld+set}" = set; then :
2987 enableval=$enable_ld; ENABLE_LD=$enableval
2988else
2989 ENABLE_LD=yes
2990fi
2991
2992
2993case "${ENABLE_LD}" in
2994 default)
9580395f 2995 if test x${default_ld} != x; then
21539e2e
MK
2996 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2997 fi
2998 ;;
2999 yes)
3000 ;;
3001 no)
3002 if test x${ENABLE_GOLD} != xyes; then
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3004$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3005 fi
3006 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3007 ;;
3008 *)
3009 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3010 ;;
3011esac
5afab7ad 3012
671aa708 3013# Configure extra directories which are host specific
79c06341 3014
671aa708
NN
3015case "${host}" in
3016 *-cygwin*)
3017 configdirs="$configdirs libtermcap" ;;
3018esac
79c06341 3019
4fab7234
HPN
3020# A target can indicate whether a language isn't supported for some reason.
3021# Only spaces may be used in this macro; not newlines or tabs.
3022unsupported_languages=
3023
1c710c3c 3024# Remove more programs from consideration, based on the host or
671aa708
NN
3025# target this usually means that a port of the program doesn't
3026# exist yet.
ec8d6ddc 3027
671aa708 3028case "${host}" in
111eeb6e 3029 i[3456789]86-*-msdosdjgpp*)
c9bdb152 3030 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 3031 ;;
671aa708 3032esac
ec8d6ddc 3033
6de9cd9a 3034
87e6d9dc
TB
3035# Check whether --enable-libquadmath was given.
3036if test "${enable_libquadmath+set}" = set; then :
3037 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3038else
3039 ENABLE_LIBQUADMATH=yes
3040fi
3041
3042if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3043 noconfigdirs="$noconfigdirs target-libquadmath"
3044fi
3045
3046
3047# Check whether --enable-libquadmath-support was given.
3048if test "${enable_libquadmath_support+set}" = set; then :
3049 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3050else
3051 ENABLE_LIBQUADMATH_SUPPORT=yes
3052fi
3053
3054enable_libquadmath_support=
3055if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3056 enable_libquadmath_support=no
3057fi
3058
3059
5213506e
RW
3060# Check whether --enable-libada was given.
3061if test "${enable_libada+set}" = set; then :
3062 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3063else
3064 ENABLE_LIBADA=yes
5213506e
RW
3065fi
3066
d9cdb878 3067if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3068 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3069fi
3070
5213506e
RW
3071# Check whether --enable-libssp was given.
3072if test "${enable_libssp+set}" = set; then :
3073 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3074else
3075 ENABLE_LIBSSP=yes
5213506e
RW
3076fi
3077
ef0087a7 3078
1873ec0c
L
3079# Check whether --enable-libstdcxx was given.
3080if test "${enable_libstdcxx+set}" = set; then :
3081 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3082else
3083 ENABLE_LIBSTDCXX=default
3084fi
3085
3086if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3087 noconfigdirs="$noconfigdirs libstdc++-v3"
3088fi
3089
671aa708
NN
3090# Save it here so that, even in case of --enable-libgcj, if the Java
3091# front-end isn't enabled, we still get libgcj disabled.
3092libgcj_saved=$libgcj
3093case $enable_libgcj in
3094yes)
3095 # If we reset it here, it won't get added to noconfigdirs in the
3096 # target-specific build rules, so it will be forcibly enabled
3097 # (unless the Java language itself isn't enabled).
3098 libgcj=
3099 ;;
3100no)
3101 # Make sure we get it printed in the list of not supported target libs.
4da3b0f8
ILT
3102 # Don't disable libffi, though, other languages use it.
3103 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
d479b128
ILT
3104 # Clear libgcj_saved so that even if java is enabled libffi won't be
3105 # built.
3106 libgcj_saved=
671aa708
NN
3107 ;;
3108esac
ec8d6ddc 3109
a4a2c37d
MK
3110# Check whether --enable-static-libjava was given.
3111if test "${enable_static_libjava+set}" = set; then :
3112 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3113else
3114 ENABLE_STATIC_LIBJAVA=no
3115fi
3116
3117enable_static_libjava=
3118if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3119 enable_static_libjava=yes
3120fi
3121
3122if test x$enable_static_libjava != xyes ; then
3123 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3124fi
3125
6de9cd9a 3126
27079765
AH
3127# Disable libmudflap on some systems.
3128if test x$enable_libmudflap = x ; then
dfcada9a 3129 case "${target}" in
416ac4d4 3130 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
98a5bb3b 3131 # Enable libmudflap by default in GNU and friends.
dfcada9a 3132 ;;
a3e8d8b4
LR
3133 *-*-freebsd*)
3134 # Enable libmudflap by default in FreeBSD.
3135 ;;
dfcada9a
MM
3136 *)
3137 # Disable it by default everywhere else.
3138 noconfigdirs="$noconfigdirs target-libmudflap"
3139 ;;
3140 esac
27079765 3141fi
6de9cd9a 3142
27079765
AH
3143# Disable libgomp on non POSIX hosted systems.
3144if test x$enable_libgomp = x ; then
953ff289
DN
3145 # Enable libgomp by default on hosted POSIX systems.
3146 case "${target}" in
416ac4d4 3147 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3148 ;;
8c6d158a 3149 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3150 ;;
b24513a1 3151 *-*-solaris2* | *-*-hpux11*)
953ff289 3152 ;;
cac90078 3153 *-*-darwin* | *-*-aix*)
953ff289
DN
3154 ;;
3155 *)
3156 noconfigdirs="$noconfigdirs target-libgomp"
3157 ;;
3158 esac
27079765 3159fi
953ff289 3160
48310492
RH
3161# Disable libatomic on unsupported systems.
3162if test -d ${srcdir}/libatomic; then
3163 if test x$enable_libatomic = x; then
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3165$as_echo_n "checking for libatomic support... " >&6; }
3166 if (srcdir=${srcdir}/libatomic; \
3167 . ${srcdir}/configure.tgt; \
3168 test -n "$UNSUPPORTED")
3169 then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171$as_echo "no" >&6; }
3172 noconfigdirs="$noconfigdirs target-libatomic"
3173 else
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3175$as_echo "yes" >&6; }
3176 fi
3177 fi
3178fi
3179
e948157d
RH
3180# Disable libitm on unsupported systems.
3181if test -d ${srcdir}/libitm; then
3182 if test x$enable_libitm = x; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
01f3428c 3184$as_echo_n "checking for libitm support... " >&6; }
e948157d
RH
3185 if (srcdir=${srcdir}/libitm; \
3186 . ${srcdir}/configure.tgt; \
3187 test -n "$UNSUPPORTED")
3188 then
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
01f3428c 3190$as_echo "no" >&6; }
e948157d
RH
3191 noconfigdirs="$noconfigdirs target-libitm"
3192 else
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
01f3428c 3194$as_echo "yes" >&6; }
e948157d
RH
3195 fi
3196 fi
0a35513e
AH
3197fi
3198
93bf5390
RH
3199# Disable libsanitizer on unsupported systems.
3200if test -d ${srcdir}/libsanitizer; then
3201 if test x$enable_libsanitizer = x; then
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3203$as_echo_n "checking for libsanitizer support... " >&6; }
3204 if (srcdir=${srcdir}/libsanitizer; \
3205 . ${srcdir}/configure.tgt; \
3206 test -n "$UNSUPPORTED")
3207 then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209$as_echo "no" >&6; }
3210 noconfigdirs="$noconfigdirs target-libsanitizer"
3211 else
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3213$as_echo "yes" >&6; }
3214 fi
3215 fi
3216fi
3217
d91491e5
SE
3218# Disable libquadmath for some systems.
3219case "${target}" in
e7fae550
DE
3220 avr-*-*)
3221 noconfigdirs="$noconfigdirs target-libquadmath"
3222 ;;
d91491e5
SE
3223 # libquadmath is unused on AIX and libquadmath build process use of
3224 # LD_LIBRARY_PATH can break AIX bootstrap.
3225 powerpc-*-aix* | rs6000-*-aix*)
3226 noconfigdirs="$noconfigdirs target-libquadmath"
3227 ;;
3228esac
3229
1e9e0e23
JM
3230# Disable libssp for some systems.
3231case "${target}" in
3232 avr-*-*)
b318fb4b 3233 # No hosted I/O support.
1e9e0e23
JM
3234 noconfigdirs="$noconfigdirs target-libssp"
3235 ;;
3236 powerpc-*-aix* | rs6000-*-aix*)
3237 noconfigdirs="$noconfigdirs target-libssp"
85b8555e
DD
3238 ;;
3239 rl78-*-*)
7cb62ef1
EB
3240 # libssp uses a misaligned load to trigger a fault, but the RL78
3241 # doesn't fault for those - instead, it gives a build-time error
3242 # for explicit misaligned loads.
85b8555e 3243 noconfigdirs="$noconfigdirs target-libssp"
1e9e0e23 3244 ;;
1e9e0e23
JM
3245esac
3246
1e9e0e23 3247# Disable libstdc++-v3 for some systems.
1873ec0c
L
3248# Allow user to override this if they pass --enable-libstdc++-v3
3249if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3250 case "${target}" in
3251 *-*-vxworks*)
3252 # VxWorks uses the Dinkumware C++ library.
3253 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3254 ;;
3255 arm*-wince-pe*)
3256 # the C++ libraries don't build on top of CE's C libraries
3257 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3258 ;;
3259 avr-*-*)
3260 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3261 ;;
3262 esac
3263fi
1e9e0e23
JM
3264
3265# Disable Fortran for some systems.
3266case "${target}" in
3267 mmix-*-*)
3268 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3269 unsupported_languages="$unsupported_languages fortran"
3270 ;;
3271esac
3272
80f81134 3273# Disable Java if libffi is not supported.
2909494b 3274case "${target}" in
80f81134
JM
3275 alpha*-*-*)
3276 ;;
3277 arm*-*-*)
3278 ;;
3279 cris-*-*)
3280 ;;
3281 frv-*-*)
3282 ;;
3283 hppa*-*-linux*)
3284 ;;
3285 hppa*-*-hpux*)
3286 ;;
3287 i?86-*-*)
3288 ;;
3289 ia64*-*-*)
3290 ;;
3291 m32r*-*-*)
3292 ;;
3293 m68k-*-*)
3294 ;;
b24513a1 3295 mips*-*-rtems*)
80f81134
JM
3296 ;;
3297 mips*-*-linux*)
3298 ;;
3299 powerpc*-*-linux*)
3300 ;;
3301 powerpc-*-darwin*)
3302 ;;
3303 powerpc-*-aix* | rs6000-*-aix*)
3304 ;;
3305 powerpc-*-freebsd*)
3306 ;;
3307 powerpc64-*-freebsd*)
3308 ;;
3309 powerpc*-*-rtems*)
2909494b 3310 ;;
80f81134
JM
3311 s390-*-* | s390x-*-*)
3312 ;;
3313 sh-*-* | sh[34]*-*-*)
3314 ;;
3315 sh64-*-* | sh5*-*-*)
3316 ;;
3317 sparc*-*-*)
3318 ;;
3319 x86_64-*-*)
3320 ;;
3321 *-*-*)
3322 unsupported_languages="$unsupported_languages java"
3323 ;;
3324esac
3325
3326# Disable Java, libgcj or related libraries for some systems.
3327case "${target}" in
2909494b
JM
3328 powerpc-*-darwin*)
3329 ;;
3330 i[3456789]86-*-darwin*)
3331 ;;
3332 x86_64-*-darwin[912]*)
3333 ;;
3334 *-*-darwin*)
3335 noconfigdirs="$noconfigdirs ${libgcj}"
3336 ;;
2909494b
JM
3337 *-*-netware*)
3338 noconfigdirs="$noconfigdirs ${libgcj}"
3339 ;;
3340 *-*-rtems*)
3341 noconfigdirs="$noconfigdirs ${libgcj}"
3342 ;;
3343 *-*-tpf*)
3344 noconfigdirs="$noconfigdirs ${libgcj}"
3345 ;;
3346 *-*-uclinux*)
3347 noconfigdirs="$noconfigdirs ${libgcj}"
3348 ;;
3349 *-*-vxworks*)
3350 noconfigdirs="$noconfigdirs ${libgcj}"
3351 ;;
2909494b
JM
3352 alpha*-*-*vms*)
3353 noconfigdirs="$noconfigdirs ${libgcj}"
3354 ;;
80f81134 3355 arm-wince-pe)
2909494b
JM
3356 noconfigdirs="$noconfigdirs ${libgcj}"
3357 ;;
2909494b
JM
3358 arm*-*-symbianelf*)
3359 noconfigdirs="$noconfigdirs ${libgcj}"
3360 ;;
2909494b 3361 bfin-*-*)
2909494b
JM
3362 noconfigdirs="$noconfigdirs target-boehm-gc"
3363 ;;
2909494b
JM
3364 cris-*-* | crisv32-*-*)
3365 unsupported_languages="$unsupported_languages java"
3366 case "${target}" in
3367 *-*-linux*)
3368 ;;
3369 *) # See PR46792 regarding target-libffi.
3370 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3371 esac
3372 ;;
2909494b
JM
3373 hppa*64*-*-linux*)
3374 # In this case, it's because the hppa64-linux target is for
3375 # the kernel only at this point and has no libc, and thus no
3376 # headers, crt*.o, etc., all of which are needed by these.
fddf9ee7 3377 unsupported_languages="$unsupported_languages java"
2909494b 3378 ;;
fddf9ee7 3379 hppa*64*-*-hpux*)
2909494b
JM
3380 noconfigdirs="$noconfigdirs ${libgcj}"
3381 ;;
3382 hppa*-hp-hpux11*)
3383 ;;
fddf9ee7 3384 hppa*-*-hpux*)
2909494b
JM
3385 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3386 # build on HP-UX 10.20.
3387 noconfigdirs="$noconfigdirs ${libgcj}"
3388 ;;
2909494b
JM
3389 ia64*-*-*vms*)
3390 noconfigdirs="$noconfigdirs ${libgcj}"
3391 ;;
2909494b
JM
3392 i[3456789]86-w64-mingw*)
3393 noconfigdirs="$noconfigdirs ${libgcj}"
3394 ;;
3395 i[3456789]86-*-mingw*)
3396 noconfigdirs="$noconfigdirs ${libgcj}"
3397 ;;
3398 x86_64-*-mingw*)
3399 noconfigdirs="$noconfigdirs ${libgcj}"
3400 ;;
2909494b
JM
3401 mmix-*-*)
3402 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
2909494b
JM
3403 ;;
3404 powerpc-*-aix*)
3405 # copied from rs6000-*-* entry
3406 noconfigdirs="$noconfigdirs ${libgcj}"
3407 ;;
2909494b
JM
3408 rs6000-*-aix*)
3409 noconfigdirs="$noconfigdirs ${libgcj}"
3410 ;;
2909494b
JM
3411 *-*-lynxos*)
3412 noconfigdirs="$noconfigdirs ${libgcj}"
3413 ;;
2909494b
JM
3414esac
3415
cdbc9e92
ILT
3416# Disable libgo for some systems where it is known to not work.
3417# For testing, you can easily override this with --enable-libgo.
3418if test x$enable_libgo = x; then
3419 case "${target}" in
3420 *-*-darwin*)
3421 # PR 46986
3422 noconfigdirs="$noconfigdirs target-libgo"
3423 ;;
3424 *-*-cygwin* | *-*-mingw*)
3425 noconfigdirs="$noconfigdirs target-libgo"
3426 ;;
3427 *-*-aix*)
3428 noconfigdirs="$noconfigdirs target-libgo"
3429 ;;
3430 esac
3431fi
3432
c03353e2
RIL
3433# Default libgloss CPU subdirectory.
3434libgloss_dir="$target_cpu"
6de9cd9a 3435
fbcf0dca
JM
3436case "${target}" in
3437 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3438 libgloss_dir=wince
3439 ;;
3440 arm*-*-*)
3441 libgloss_dir=arm
3442 ;;
3443 cris-*-* | crisv32-*-*)
3444 libgloss_dir=cris
3445 ;;
3446 hppa*-*-*)
3447 libgloss_dir=pa
3448 ;;
3449 i[3456789]86-*-*)
3450 libgloss_dir=i386
3451 ;;
3452 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3453 libgloss_dir=m68hc11
3454 ;;
3455 m68*-*-* | fido-*-*)
3456 libgloss_dir=m68k
3457 ;;
3458 mips*-*-*)
3459 libgloss_dir=mips
3460 ;;
3461 powerpc*-*-*)
3462 libgloss_dir=rs6000
3463 ;;
3464 sparc*-*-*)
3465 libgloss_dir=sparc
3466 ;;
3467esac
3468
6a789d5e 3469# Disable newlib and libgloss for various target OSes.
671aa708 3470case "${target}" in
6a789d5e
JM
3471 alpha*-dec-osf*)
3472 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3473 ;;
3474 i[3456789]86-*-linux*)
3475 # This section makes it possible to build newlib natively on linux.
3476 # If we are using a cross compiler then don't configure newlib.
3477 if test x${is_cross_compiler} != xno ; then
3478 noconfigdirs="$noconfigdirs target-newlib"
3479 fi
3480 noconfigdirs="$noconfigdirs target-libgloss"
3481 # If we are not using a cross compiler, do configure newlib.
3482 # Note however, that newlib will only be configured in this situation
3483 # if the --with-newlib option has been given, because otherwise
3484 # 'target-newlib' will appear in skipdirs.
3485 ;;
3486 i[3456789]86-*-rdos*)
3487 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3488 ;;
3489 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3490 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3491 ;;
3492 sparc-*-sunos4*)
3493 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3494 ;;
3495 *-*-aix*)
3496 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3497 ;;
3498 *-*-beos*)
3499 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3500 ;;
671aa708 3501 *-*-chorusos)
0036370f 3502 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3503 ;;
6a789d5e
JM
3504 *-*-dragonfly*)
3505 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3506 ;;
3507 *-*-freebsd*)
3508 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3509 ;;
3510 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3511 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3512 ;;
3513 *-*-lynxos*)
3514 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3515 ;;
3516 *-*-mingw*)
3517 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3518 ;;
3519 *-*-netbsd*)
3520 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3521 ;;
3522 *-*-netware*)
3523 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3524 ;;
3525 *-*-tpf*)
3526 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3527 ;;
3528 *-*-uclinux*)
3529 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3530 ;;
3531 *-*-vxworks*)
3532 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3533 ;;
3534esac
3535
3536case "${target}" in
3537 *-*-chorusos)
3538 ;;
75eeae1a 3539 powerpc-*-darwin*)
e1514c3f 3540 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3541 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3542 ;;
354ebf88
RW
3543 i[3456789]86-*-darwin*)
3544 noconfigdirs="$noconfigdirs ld gprof"
3545 noconfigdirs="$noconfigdirs sim target-rda"
3546 ;;
3547 x86_64-*-darwin[912]*)
0db3a858
TG
3548 noconfigdirs="$noconfigdirs ld gas gprof"
3549 noconfigdirs="$noconfigdirs sim target-rda"
3550 ;;
42c1cd8a
AT
3551 *-*-darwin*)
3552 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3553 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3554 ;;
8c6d158a 3555 *-*-dragonfly*)
8c6d158a 3556 ;;
c3f84f61 3557 *-*-freebsd*)
6de9cd9a
DN
3558 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3559 && test -f /usr/local/include/gmp.h; then
3560 with_gmp=/usr/local
3561 fi
6de9cd9a 3562 ;;
ef4e7569
US
3563 *-*-kaos*)
3564 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3565 noconfigdirs="$noconfigdirs target-libgloss"
3566 ;;
671aa708 3567 *-*-netbsd*)
671aa708 3568 ;;
61fec9ff 3569 *-*-netware*)
671aa708
NN
3570 ;;
3571 *-*-rtems*)
2909494b 3572 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3573 ;;
a8ba31f2
EC
3574 # The tpf target doesn't support gdb yet.
3575 *-*-tpf*)
6a789d5e 3576 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3577 ;;
5785c0ed 3578 *-*-uclinux*)
6a789d5e 3579 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3580 ;;
671aa708 3581 *-*-vxworks*)
671aa708
NN
3582 ;;
3583 alpha*-dec-osf*)
3584 # ld works, but does not support shared libraries.
671aa708 3585 # gas doesn't generate exception information.
6a789d5e 3586 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3587 ;;
3588 alpha*-*-*vms*)
2909494b 3589 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3590 ;;
671aa708
NN
3591 alpha*-*-*)
3592 # newlib is not 64 bit ready
2909494b 3593 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3594 ;;
671aa708 3595 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3596 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708
NN
3597 ;;
3598 arc-*-*)
ebb9f8b0 3599 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3600 ;;
671aa708 3601 arm-*-pe*)
2909494b 3602 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3603 ;;
671aa708 3604 arm-*-riscix*)
0036370f 3605 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3606 ;;
b588ae30
GJL
3607 avr-*-rtems*)
3608 ;;
3609 avr-*-*)
3610 if test x${with_avrlibc} != xno; then
3611 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3612 fi
3613 ;;
671aa708 3614 c4x-*-* | tic4x-*-*)
0036370f 3615 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3616 ;;
0036370f
JM
3617 tic54x-*-*)
3618 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3619 ;;
671aa708 3620 d10v-*-*)
0036370f 3621 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3622 ;;
3623 d30v-*-*)
0036370f 3624 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3625 ;;
3626 fr30-*-elf*)
2909494b 3627 noconfigdirs="$noconfigdirs gdb"
671aa708 3628 ;;
55f2d967 3629 moxie-*-*)
55f2d967
AG
3630 noconfigdirs="$noconfigdirs gprof"
3631 ;;
671aa708 3632 h8300*-*-*)
2909494b 3633 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3634 ;;
3635 h8500-*-*)
0036370f 3636 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3637 ;;
ee6a22df 3638 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3639 ;;
4569f85e 3640 hppa*64*-*-linux*)
671aa708 3641 ;;
56f8587a 3642 hppa*-*-linux*)
3e732ba0 3643 ;;
671aa708 3644 hppa*-*-*elf* | \
671aa708
NN
3645 hppa*-*-lites* | \
3646 hppa*-*-openbsd* | \
3647 hppa*64*-*-*)
671aa708 3648 ;;
2a332582 3649 hppa*-hp-hpux11*)
1bcce263 3650 noconfigdirs="$noconfigdirs ld"
2a332582 3651 ;;
c03353e2 3652 hppa*-*-pro*)
c03353e2 3653 ;;
671aa708 3654 hppa*-*-*)
2909494b 3655 noconfigdirs="$noconfigdirs ld"
671aa708 3656 ;;
fb87ad5d 3657 i960-*-*)
0036370f 3658 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3659 ;;
671aa708
NN
3660 ia64*-*-elf*)
3661 # No gdb support yet.
1bcce263 3662 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3663 ;;
3664 ia64*-**-hpux*)
5a2931d1 3665 # No ld support yet.
2909494b 3666 noconfigdirs="$noconfigdirs libgui itcl ld"
671aa708 3667 ;;
52535a64 3668 ia64*-*-*vms*)
091fe9ca
TG
3669 # No ld support yet.
3670 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3671 ;;
ef4c4300 3672 i[3456789]86-w64-mingw*)
ef4c4300
KT
3673 ;;
3674 i[3456789]86-*-mingw*)
b91f0a41 3675 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3676 ;;
671aa708
NN
3677 *-*-cygwin*)
3678 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3679 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3680 # always build newlib if winsup directory is present.
b91f0a41 3681 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3682 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3683 elif test -d "$srcdir/newlib"; then
b91f0a41 3684 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3685 fi
1c710c3c 3686 ;;
f2a0e225 3687 i[3456789]86-*-pe)
ebb9f8b0 3688 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3689 ;;
f2a0e225 3690 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3691 # The linker does not yet know about weak symbols in COFF,
3692 # and is not configured to handle mixed ELF and COFF.
0036370f 3693 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3694 ;;
f2a0e225 3695 i[3456789]86-*-sco*)
0036370f 3696 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3697 ;;
fbdd5d87 3698 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3699 noconfigdirs="$noconfigdirs target-libgloss"
3700 ;;
f2a0e225 3701 i[3456789]86-*-sysv4*)
0036370f 3702 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3703 ;;
f2a0e225 3704 i[3456789]86-*-beos*)
6a789d5e 3705 noconfigdirs="$noconfigdirs gdb"
3aa83176 3706 ;;
d1f8db0c 3707 i[3456789]86-*-rdos*)
6a789d5e 3708 noconfigdirs="$noconfigdirs gdb"
c03353e2 3709 ;;
671aa708 3710 mmix-*-*)
2909494b 3711 noconfigdirs="$noconfigdirs gdb"
671aa708 3712 ;;
ab34901f 3713 mt-*-*)
79dd769c
AH
3714 noconfigdirs="$noconfigdirs sim"
3715 ;;
671aa708
NN
3716 powerpc-*-aix*)
3717 # copied from rs6000-*-* entry
6a789d5e 3718 noconfigdirs="$noconfigdirs gprof"
671aa708 3719 ;;
4569f85e 3720 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3721 target_configdirs="$target_configdirs target-winsup"
0036370f 3722 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3723 # always build newlib.
3724 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3725 ;;
3726 # This is temporary until we can link against shared libraries
3727 powerpcle-*-solaris*)
0036370f 3728 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3729 ;;
3730 powerpc-*-beos*)
6a789d5e 3731 noconfigdirs="$noconfigdirs gdb"
671aa708 3732 ;;
671aa708 3733 rs6000-*-lynxos*)
6a789d5e 3734 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3735 ;;
3736 rs6000-*-aix*)
6a789d5e 3737 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3738 ;;
3739 rs6000-*-*)
2909494b 3740 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3741 ;;
3742 m68k-apollo-*)
0036370f 3743 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3744 ;;
ca9fe997 3745 microblaze*)
2909494b 3746 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3747 ;;
d91491e5 3748 mips*-sde-elf* | mips*-mti-elf*)
d9dced13
RS
3749 if test x$with_newlib = xyes; then
3750 noconfigdirs="$noconfigdirs gprof"
3751 fi
d9dced13 3752 ;;
671aa708 3753 mips*-*-irix5*)
0036370f 3754 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3755 ;;
3756 mips*-*-irix6*)
2909494b 3757 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3758 ;;
671aa708 3759 mips*-*-bsd*)
0036370f 3760 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3761 ;;
671aa708 3762 mips*-*-linux*)
671aa708
NN
3763 ;;
3764 mips*-*-*)
2909494b 3765 noconfigdirs="$noconfigdirs gprof"
671aa708 3766 ;;
669f01d8 3767 sh-*-* | sh64-*-*)
ea2002ba
CB
3768 case "${target}" in
3769 sh*-*-elf)
2909494b 3770 ;;
ea2002ba 3771 *)
2909494b 3772 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 3773 esac
671aa708 3774 ;;
671aa708 3775 sparc-*-sunos4*)
6a789d5e 3776 if test x${is_cross_compiler} = xno ; then
671aa708
NN
3777 use_gnu_ld=no
3778 fi
3779 ;;
b42f0d7e 3780 tic6x-*-*)
0d557ff8 3781 noconfigdirs="$noconfigdirs sim"
b42f0d7e 3782 ;;
db1d217c
WL
3783 tilepro-*-* | tilegx-*-*)
3784 noconfigdirs="$noconfigdirs sim"
3785 ;;
671aa708 3786 v810-*-*)
0036370f 3787 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
3788 ;;
3789 vax-*-*)
2909494b 3790 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3791 ;;
671aa708 3792esac
79c06341 3793
671aa708
NN
3794# If we aren't building newlib, then don't build libgloss, since libgloss
3795# depends upon some newlib header files.
3796case "${noconfigdirs}" in
3797 *target-libgloss*) ;;
3798 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3799esac
3800
671aa708 3801# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
3802host_makefile_frag=/dev/null
3803if test -d ${srcdir}/config ; then
3804case "${host}" in
f2a0e225 3805 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
3806 host_makefile_frag="config/mh-djgpp"
3807 ;;
3808 *-cygwin*)
2a79c47f 3809
5213506e
RW
3810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3811$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 3812echo a >cygwin-cat-check
e25a8c82 3813if test `cat cygwin-cat-check` = a ; then
2a79c47f 3814 rm cygwin-cat-check
5213506e
RW
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3816$as_echo "yes" >&6; }
2a79c47f
NC
3817else
3818 rm cygwin-cat-check
5213506e
RW
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3820$as_echo "no" >&6; }
3821 as_fn_error "The cat command does not ignore carriage return characters.
2a79c47f
NC
3822 Please either mount the build directory in binary mode or run the following
3823 commands before running any configure script:
3824set -o igncr
3825export SHELLOPTS
5213506e 3826 " "$LINENO" 5
2a79c47f
NC
3827fi
3828
671aa708
NN
3829 host_makefile_frag="config/mh-cygwin"
3830 ;;
c53a18d3 3831 *-mingw*)
1f5a6b84 3832 host_makefile_frag="config/mh-mingw"
95af8923 3833 ;;
efd41714 3834 hppa*-hp-hpux10*)
efd41714 3835 host_makefile_frag="config/mh-pa-hpux10"
671aa708 3836 ;;
111eeb6e 3837 hppa*-hp-hpux*)
efd41714
PB
3838 host_makefile_frag="config/mh-pa"
3839 ;;
3840 hppa*-*)
3841 host_makefile_frag="config/mh-pa"
3842 ;;
d8ed14ce
IS
3843 *-*-darwin*)
3844 host_makefile_frag="config/mh-darwin"
be8fff81 3845 ;;
d19bca38
PB
3846 powerpc-*-aix*)
3847 host_makefile_frag="config/mh-ppc-aix"
3848 ;;
3849 rs6000-*-aix*)
3850 host_makefile_frag="config/mh-ppc-aix"
3851 ;;
671aa708
NN
3852esac
3853fi
3854
55ffb5ed 3855if test "${build}" != "${host}" ; then
0999159b
PB
3856 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3857 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 3858 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b
PB
3859 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3860 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3861 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 3862 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
0999159b
PB
3863 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3864 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3865 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3866 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3867 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3868 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3869else
3870 AR_FOR_BUILD="\$(AR)"
3871 AS_FOR_BUILD="\$(AS)"
fb0103e5 3872 CC_FOR_BUILD="\$(CC)"
0999159b
PB
3873 CXX_FOR_BUILD="\$(CXX)"
3874 GCJ_FOR_BUILD="\$(GCJ)"
3875 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 3876 GOC_FOR_BUILD="\$(GOC)"
0999159b
PB
3877 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3878 LD_FOR_BUILD="\$(LD)"
3879 NM_FOR_BUILD="\$(NM)"
3880 RANLIB_FOR_BUILD="\$(RANLIB)"
3881 WINDRES_FOR_BUILD="\$(WINDRES)"
3882 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
3883fi
3884
3885ac_ext=c
1c710c3c
DJ
3886ac_cpp='$CPP $CPPFLAGS'
3887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3889ac_compiler_gnu=$ac_cv_c_compiler_gnu
3890if test -n "$ac_tool_prefix"; then
3891 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3892set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3894$as_echo_n "checking for $ac_word... " >&6; }
3895if test "${ac_cv_prog_CC+set}" = set; then :
3896 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3897else
3898 if test -n "$CC"; then
3899 ac_cv_prog_CC="$CC" # Let the user override the test.
3900else
3901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902for as_dir in $PATH
3903do
3904 IFS=$as_save_IFS
3905 test -z "$as_dir" && as_dir=.
5213506e
RW
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3908 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3910 break 2
3911 fi
3912done
5213506e
RW
3913 done
3914IFS=$as_save_IFS
1c710c3c
DJ
3915
3916fi
3917fi
3918CC=$ac_cv_prog_CC
3919if test -n "$CC"; then
5213506e
RW
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3921$as_echo "$CC" >&6; }
1c710c3c 3922else
5213506e
RW
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3924$as_echo "no" >&6; }
1c710c3c
DJ
3925fi
3926
5213506e 3927
1c710c3c
DJ
3928fi
3929if test -z "$ac_cv_prog_CC"; then
3930 ac_ct_CC=$CC
fb0103e5
RG
3931 # Extract the first word of "gcc", so it can be a program name with args.
3932set dummy gcc; ac_word=$2
5213506e
RW
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3934$as_echo_n "checking for $ac_word... " >&6; }
3935if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3936 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3937else
3938 if test -n "$ac_ct_CC"; then
3939 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3940else
3941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942for as_dir in $PATH
3943do
3944 IFS=$as_save_IFS
3945 test -z "$as_dir" && as_dir=.
5213506e
RW
3946 for ac_exec_ext in '' $ac_executable_extensions; do
3947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3948 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3950 break 2
3951 fi
3952done
5213506e
RW
3953 done
3954IFS=$as_save_IFS
1c710c3c
DJ
3955
3956fi
3957fi
3958ac_ct_CC=$ac_cv_prog_ac_ct_CC
3959if test -n "$ac_ct_CC"; then
5213506e
RW
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3961$as_echo "$ac_ct_CC" >&6; }
1c710c3c 3962else
5213506e
RW
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3964$as_echo "no" >&6; }
1c710c3c
DJ
3965fi
3966
5213506e
RW
3967 if test "x$ac_ct_CC" = x; then
3968 CC=""
3969 else
3970 case $cross_compiling:$ac_tool_warned in
3971yes:)
3972{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3973$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3974ac_tool_warned=yes ;;
3975esac
3976 CC=$ac_ct_CC
3977 fi
1c710c3c
DJ
3978else
3979 CC="$ac_cv_prog_CC"
3980fi
3981
3982if test -z "$CC"; then
5213506e
RW
3983 if test -n "$ac_tool_prefix"; then
3984 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 3985set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3987$as_echo_n "checking for $ac_word... " >&6; }
3988if test "${ac_cv_prog_CC+set}" = set; then :
3989 $as_echo_n "(cached) " >&6
55ffb5ed
NN
3990else
3991 if test -n "$CC"; then
3992 ac_cv_prog_CC="$CC" # Let the user override the test.
3993else
1c710c3c
DJ
3994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995for as_dir in $PATH
3996do
3997 IFS=$as_save_IFS
3998 test -z "$as_dir" && as_dir=.
5213506e
RW
3999 for ac_exec_ext in '' $ac_executable_extensions; do
4000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4001 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4003 break 2
4004 fi
4005done
5213506e
RW
4006 done
4007IFS=$as_save_IFS
1c710c3c 4008
0b0dc272 4009fi
0b0dc272 4010fi
1c710c3c 4011CC=$ac_cv_prog_CC
af71363e 4012if test -n "$CC"; then
5213506e
RW
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4014$as_echo "$CC" >&6; }
2aeb72e9 4015else
5213506e
RW
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4017$as_echo "no" >&6; }
2aeb72e9
DD
4018fi
4019
2aeb72e9 4020
5213506e 4021 fi
1c710c3c 4022fi
55ffb5ed
NN
4023if test -z "$CC"; then
4024 # Extract the first word of "cc", so it can be a program name with args.
4025set dummy cc; ac_word=$2
5213506e
RW
4026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4027$as_echo_n "checking for $ac_word... " >&6; }
4028if test "${ac_cv_prog_CC+set}" = set; then :
4029 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4030else
4031 if test -n "$CC"; then
4032 ac_cv_prog_CC="$CC" # Let the user override the test.
4033else
0b0dc272 4034 ac_prog_rejected=no
1c710c3c
DJ
4035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036for as_dir in $PATH
4037do
4038 IFS=$as_save_IFS
4039 test -z "$as_dir" && as_dir=.
5213506e
RW
4040 for ac_exec_ext in '' $ac_executable_extensions; do
4041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
4042 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4043 ac_prog_rejected=yes
4044 continue
4045 fi
4046 ac_cv_prog_CC="cc"
5213506e 4047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4048 break 2
4049 fi
4050done
5213506e
RW
4051 done
4052IFS=$as_save_IFS
1c710c3c 4053
55ffb5ed
NN
4054if test $ac_prog_rejected = yes; then
4055 # We found a bogon in the path, so make sure we never use it.
4056 set dummy $ac_cv_prog_CC
4057 shift
1c710c3c 4058 if test $# != 0; then
55ffb5ed
NN
4059 # We chose a different compiler from the bogus one.
4060 # However, it has the same basename, so the bogon will be chosen
4061 # first if we set CC to just the basename; use the full file name.
4062 shift
1c710c3c 4063 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4064 fi
4065fi
4066fi
4067fi
1c710c3c 4068CC=$ac_cv_prog_CC
55ffb5ed 4069if test -n "$CC"; then
5213506e
RW
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4071$as_echo "$CC" >&6; }
55ffb5ed 4072else
5213506e
RW
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4074$as_echo "no" >&6; }
55ffb5ed
NN
4075fi
4076
5213506e 4077
1c710c3c
DJ
4078fi
4079if test -z "$CC"; then
4080 if test -n "$ac_tool_prefix"; then
5213506e 4081 for ac_prog in cl.exe
1c710c3c
DJ
4082 do
4083 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4084set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4086$as_echo_n "checking for $ac_word... " >&6; }
4087if test "${ac_cv_prog_CC+set}" = set; then :
4088 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4089else
4090 if test -n "$CC"; then
4091 ac_cv_prog_CC="$CC" # Let the user override the test.
4092else
1c710c3c
DJ
4093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094for as_dir in $PATH
4095do
4096 IFS=$as_save_IFS
4097 test -z "$as_dir" && as_dir=.
5213506e
RW
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4100 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4102 break 2
4103 fi
4104done
5213506e
RW
4105 done
4106IFS=$as_save_IFS
1c710c3c 4107
55ffb5ed
NN
4108fi
4109fi
1c710c3c 4110CC=$ac_cv_prog_CC
55ffb5ed 4111if test -n "$CC"; then
5213506e
RW
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4113$as_echo "$CC" >&6; }
a4b9e93e 4114else
5213506e
RW
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4116$as_echo "no" >&6; }
fb0103e5 4117fi
af71363e 4118
5213506e 4119
1c710c3c
DJ
4120 test -n "$CC" && break
4121 done
af71363e 4122fi
1c710c3c
DJ
4123if test -z "$CC"; then
4124 ac_ct_CC=$CC
5213506e 4125 for ac_prog in cl.exe
1c710c3c
DJ
4126do
4127 # Extract the first word of "$ac_prog", so it can be a program name with args.
4128set dummy $ac_prog; ac_word=$2
5213506e
RW
4129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4130$as_echo_n "checking for $ac_word... " >&6; }
4131if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4132 $as_echo_n "(cached) " >&6
0b0dc272 4133else
1c710c3c
DJ
4134 if test -n "$ac_ct_CC"; then
4135 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4136else
1c710c3c
DJ
4137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138for as_dir in $PATH
4139do
4140 IFS=$as_save_IFS
4141 test -z "$as_dir" && as_dir=.
5213506e
RW
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4144 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4146 break 2
4147 fi
4148done
5213506e
RW
4149 done
4150IFS=$as_save_IFS
1c710c3c 4151
af71363e
AS
4152fi
4153fi
1c710c3c
DJ
4154ac_ct_CC=$ac_cv_prog_ac_ct_CC
4155if test -n "$ac_ct_CC"; then
5213506e
RW
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4157$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4158else
5213506e
RW
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4160$as_echo "no" >&6; }
af71363e 4161fi
0b0dc272 4162
5213506e 4163
1c710c3c
DJ
4164 test -n "$ac_ct_CC" && break
4165done
4166
5213506e
RW
4167 if test "x$ac_ct_CC" = x; then
4168 CC=""
4169 else
4170 case $cross_compiling:$ac_tool_warned in
4171yes:)
4172{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4173$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4174ac_tool_warned=yes ;;
4175esac
4176 CC=$ac_ct_CC
4177 fi
1c710c3c
DJ
4178fi
4179
4180fi
4181
4182
5213506e
RW
4183test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4185as_fn_error "no acceptable C compiler found in \$PATH
4186See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4187
4188# Provide some information about the compiler.
5213506e
RW
4189$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4190set X $ac_compile
4191ac_compiler=$2
4192for ac_option in --version -v -V -qversion; do
4193 { { ac_try="$ac_compiler $ac_option >&5"
4194case "(($ac_try" in
4195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196 *) ac_try_echo=$ac_try;;
4197esac
4198eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4199$as_echo "$ac_try_echo"; } >&5
4200 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4201 ac_status=$?
5213506e
RW
4202 if test -s conftest.err; then
4203 sed '10a\
4204... rest of stderr output deleted ...
4205 10q' conftest.err >conftest.er1
4206 cat conftest.er1 >&5
4207 rm -f conftest.er1 conftest.err
4208 fi
4209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4210 test $ac_status = 0; }
4211done
1c710c3c 4212
5213506e 4213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4214/* end confdefs.h. */
4215
4216int
4217main ()
4218{
4219
4220 ;
4221 return 0;
4222}
4223_ACEOF
4224ac_clean_files_save=$ac_clean_files
5213506e 4225ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
1c710c3c
DJ
4226# Try to create an executable without -o first, disregard a.out.
4227# It will help us diagnose broken compilers, and finding out an intuition
4228# of exeext.
5213506e
RW
4229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4230$as_echo_n "checking for C compiler default output file name... " >&6; }
4231ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4232
4233# The possible output files:
4234ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4235
4236ac_rmfiles=
4237for ac_file in $ac_files
4238do
4239 case $ac_file in
4240 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4241 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4242 esac
4243done
4244rm -f $ac_rmfiles
4245
4246if { { ac_try="$ac_link_default"
4247case "(($ac_try" in
4248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249 *) ac_try_echo=$ac_try;;
4250esac
4251eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4252$as_echo "$ac_try_echo"; } >&5
4253 (eval "$ac_link_default") 2>&5
1c710c3c 4254 ac_status=$?
5213506e
RW
4255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4256 test $ac_status = 0; }; then :
4257 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4258# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4259# in a Makefile. We should not override ac_cv_exeext if it was cached,
4260# so that the user can short-circuit this test for compilers unknown to
4261# Autoconf.
4262for ac_file in $ac_files ''
1c710c3c
DJ
4263do
4264 test -f "$ac_file" || continue
4265 case $ac_file in
5213506e 4266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4267 ;;
4268 [ab].out )
4269 # We found the default executable, but exeext='' is most
4270 # certainly right.
4271 break;;
4272 *.* )
5213506e
RW
4273 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4274 then :; else
4275 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4276 fi
4277 # We set ac_cv_exeext here because the later test for it is not
4278 # safe: cross compilers may not add the suffix if given an `-o'
4279 # argument, so we may need to know it at that point already.
4280 # Even if this section looks crufty: it has the advantage of
4281 # actually working.
1c710c3c
DJ
4282 break;;
4283 * )
4284 break;;
4285 esac
4286done
5213506e
RW
4287test "$ac_cv_exeext" = no && ac_cv_exeext=
4288
1c710c3c 4289else
5213506e
RW
4290 ac_file=''
4291fi
4292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4293$as_echo "$ac_file" >&6; }
4294if test -z "$ac_file"; then :
4295 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4296sed 's/^/| /' conftest.$ac_ext >&5
4297
5213506e
RW
4298{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4299$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4300{ as_fn_set_status 77
4301as_fn_error "C compiler cannot create executables
4302See \`config.log' for more details." "$LINENO" 5; }; }
1c710c3c 4303fi
1c710c3c 4304ac_exeext=$ac_cv_exeext
1c710c3c 4305
5213506e 4306# Check that the compiler produces executables we can run. If not, either
1c710c3c 4307# the compiler is broken, or we cross compile.
5213506e
RW
4308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4309$as_echo_n "checking whether the C compiler works... " >&6; }
1c710c3c
DJ
4310# If not cross compiling, check that we can run a simple program.
4311if test "$cross_compiling" != yes; then
4312 if { ac_try='./$ac_file'
5213506e
RW
4313 { { case "(($ac_try" in
4314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315 *) ac_try_echo=$ac_try;;
4316esac
4317eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4318$as_echo "$ac_try_echo"; } >&5
4319 (eval "$ac_try") 2>&5
1c710c3c 4320 ac_status=$?
5213506e
RW
4321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4322 test $ac_status = 0; }; }; then
1c710c3c
DJ
4323 cross_compiling=no
4324 else
4325 if test "$cross_compiling" = maybe; then
4326 cross_compiling=yes
4327 else
5213506e
RW
4328 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4329$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4330as_fn_error "cannot run C compiled programs.
1c710c3c 4331If you meant to cross compile, use \`--host'.
5213506e 4332See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4333 fi
4334 fi
4335fi
5213506e
RW
4336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4337$as_echo "yes" >&6; }
1c710c3c 4338
5213506e 4339rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
1c710c3c 4340ac_clean_files=$ac_clean_files_save
5213506e 4341# Check that the compiler produces executables we can run. If not, either
1c710c3c 4342# the compiler is broken, or we cross compile.
5213506e
RW
4343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4344$as_echo_n "checking whether we are cross compiling... " >&6; }
4345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4346$as_echo "$cross_compiling" >&6; }
4347
4348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4349$as_echo_n "checking for suffix of executables... " >&6; }
4350if { { ac_try="$ac_link"
4351case "(($ac_try" in
4352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353 *) ac_try_echo=$ac_try;;
4354esac
4355eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4356$as_echo "$ac_try_echo"; } >&5
4357 (eval "$ac_link") 2>&5
1c710c3c 4358 ac_status=$?
5213506e
RW
4359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4360 test $ac_status = 0; }; then :
1c710c3c
DJ
4361 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4362# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4363# work properly (i.e., refer to `conftest.exe'), while it won't with
4364# `rm'.
4365for ac_file in conftest.exe conftest conftest.*; do
4366 test -f "$ac_file" || continue
4367 case $ac_file in
5213506e 4368 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4369 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4370 break;;
4371 * ) break;;
4372 esac
4373done
af71363e 4374else
5213506e
RW
4375 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4376$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4377as_fn_error "cannot compute suffix of executables: cannot compile and link
4378See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4379fi
1c710c3c 4380rm -f conftest$ac_cv_exeext
5213506e
RW
4381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4382$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4383
4384rm -f conftest.$ac_ext
4385EXEEXT=$ac_cv_exeext
4386ac_exeext=$EXEEXT
5213506e
RW
4387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4388$as_echo_n "checking for suffix of object files... " >&6; }
4389if test "${ac_cv_objext+set}" = set; then :
4390 $as_echo_n "(cached) " >&6
1c710c3c 4391else
5213506e 4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4393/* end confdefs.h. */
4394
4395int
4396main ()
4397{
4398
4399 ;
4400 return 0;
4401}
4402_ACEOF
4403rm -f conftest.o conftest.obj
5213506e
RW
4404if { { ac_try="$ac_compile"
4405case "(($ac_try" in
4406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407 *) ac_try_echo=$ac_try;;
4408esac
4409eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4410$as_echo "$ac_try_echo"; } >&5
4411 (eval "$ac_compile") 2>&5
1c710c3c 4412 ac_status=$?
5213506e
RW
4413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4414 test $ac_status = 0; }; then :
4415 for ac_file in conftest.o conftest.obj conftest.*; do
4416 test -f "$ac_file" || continue;
1c710c3c 4417 case $ac_file in
5213506e 4418 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4419 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4420 break;;
4421 esac
4422done
4423else
5213506e 4424 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4425sed 's/^/| /' conftest.$ac_ext >&5
4426
5213506e
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 object files: cannot compile
4430See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4431fi
1c710c3c
DJ
4432rm -f conftest.$ac_cv_objext conftest.$ac_ext
4433fi
5213506e
RW
4434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4435$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4436OBJEXT=$ac_cv_objext
4437ac_objext=$OBJEXT
5213506e
RW
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4439$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4440if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4441 $as_echo_n "(cached) " >&6
1c710c3c 4442else
5213506e 4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4444/* end confdefs.h. */
4445
4446int
4447main ()
4448{
4449#ifndef __GNUC__
4450 choke me
4451#endif
4452
4453 ;
4454 return 0;
4455}
4456_ACEOF
5213506e 4457if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4458 ac_compiler_gnu=yes
4459else
5213506e 4460 ac_compiler_gnu=no
1c710c3c 4461fi
5213506e 4462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4463ac_cv_c_compiler_gnu=$ac_compiler_gnu
4464
4465fi
5213506e
RW
4466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4467$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4468if test $ac_compiler_gnu = yes; then
4469 GCC=yes
4470else
4471 GCC=
4472fi
1c710c3c
DJ
4473ac_test_CFLAGS=${CFLAGS+set}
4474ac_save_CFLAGS=$CFLAGS
5213506e
RW
4475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4476$as_echo_n "checking whether $CC accepts -g... " >&6; }
4477if test "${ac_cv_prog_cc_g+set}" = set; then :
4478 $as_echo_n "(cached) " >&6
4479else
4480 ac_save_c_werror_flag=$ac_c_werror_flag
4481 ac_c_werror_flag=yes
4482 ac_cv_prog_cc_g=no
4483 CFLAGS="-g"
4484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4485/* end confdefs.h. */
4486
4487int
4488main ()
4489{
4490
4491 ;
4492 return 0;
4493}
4494_ACEOF
5213506e 4495if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4496 ac_cv_prog_cc_g=yes
4497else
5213506e
RW
4498 CFLAGS=""
4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500/* end confdefs.h. */
4501
4502int
4503main ()
4504{
4505
4506 ;
4507 return 0;
4508}
4509_ACEOF
4510if ac_fn_c_try_compile "$LINENO"; then :
4511
4512else
4513 ac_c_werror_flag=$ac_save_c_werror_flag
4514 CFLAGS="-g"
4515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4516/* end confdefs.h. */
af71363e 4517
5213506e
RW
4518int
4519main ()
4520{
4521
4522 ;
4523 return 0;
4524}
4525_ACEOF
4526if ac_fn_c_try_compile "$LINENO"; then :
4527 ac_cv_prog_cc_g=yes
4528fi
4529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4530fi
5213506e 4531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4532fi
5213506e
RW
4533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4534 ac_c_werror_flag=$ac_save_c_werror_flag
4535fi
4536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4537$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4538if test "$ac_test_CFLAGS" = set; then
1c710c3c 4539 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4540elif test $ac_cv_prog_cc_g = yes; then
4541 if test "$GCC" = yes; then
4542 CFLAGS="-g -O2"
4543 else
4544 CFLAGS="-g"
4545 fi
4546else
4547 if test "$GCC" = yes; then
4548 CFLAGS="-O2"
4549 else
4550 CFLAGS=
4551 fi
4552fi
5213506e
RW
4553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4554$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4555if test "${ac_cv_prog_cc_c89+set}" = set; then :
4556 $as_echo_n "(cached) " >&6
1c710c3c 4557else
5213506e 4558 ac_cv_prog_cc_c89=no
1c710c3c 4559ac_save_CC=$CC
5213506e 4560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4561/* end confdefs.h. */
4562#include <stdarg.h>
4563#include <stdio.h>
4564#include <sys/types.h>
4565#include <sys/stat.h>
4566/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4567struct buf { int x; };
4568FILE * (*rcsopen) (struct buf *, struct stat *, int);
4569static char *e (p, i)
4570 char **p;
4571 int i;
4572{
4573 return p[i];
4574}
4575static char *f (char * (*g) (char **, int), char **p, ...)
4576{
4577 char *s;
4578 va_list v;
4579 va_start (v,p);
4580 s = g (p, va_arg (v,int));
4581 va_end (v);
4582 return s;
4583}
4584
4585/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4586 function prototypes and stuff, but not '\xHH' hex character constants.
4587 These don't provoke an error unfortunately, instead are silently treated
5213506e 4588 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4589 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4590 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4591 that's true only with -std. */
1c710c3c
DJ
4592int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4593
5213506e
RW
4594/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4595 inside strings and character constants. */
4596#define FOO(x) 'x'
4597int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4598
1c710c3c
DJ
4599int test (int i, double x);
4600struct s1 {int (*f) (int a);};
4601struct s2 {int (*f) (double a);};
4602int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4603int argc;
4604char **argv;
4605int
4606main ()
4607{
4608return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4609 ;
4610 return 0;
4611}
4612_ACEOF
5213506e
RW
4613for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4614 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4615do
4616 CC="$ac_save_CC $ac_arg"
5213506e
RW
4617 if ac_fn_c_try_compile "$LINENO"; then :
4618 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4619fi
5213506e
RW
4620rm -f core conftest.err conftest.$ac_objext
4621 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4622done
5213506e 4623rm -f conftest.$ac_ext
1c710c3c
DJ
4624CC=$ac_save_CC
4625
4626fi
5213506e
RW
4627# AC_CACHE_VAL
4628case "x$ac_cv_prog_cc_c89" in
4629 x)
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4631$as_echo "none needed" >&6; } ;;
4632 xno)
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4634$as_echo "unsupported" >&6; } ;;
1c710c3c 4635 *)
5213506e
RW
4636 CC="$CC $ac_cv_prog_cc_c89"
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4638$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4639esac
5213506e 4640if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4641
2aeb72e9
DD
4642fi
4643
2aeb72e9
DD
4644ac_ext=c
4645ac_cpp='$CPP $CPPFLAGS'
4646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4648ac_compiler_gnu=$ac_cv_c_compiler_gnu
4649
5213506e 4650ac_ext=cpp
2aeb72e9
DD
4651ac_cpp='$CXXCPP $CPPFLAGS'
4652ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4653ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4654ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4655if test -z "$CXX"; then
4656 if test -n "$CCC"; then
4657 CXX=$CCC
4658 else
4659 if test -n "$ac_tool_prefix"; then
4660 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4661 do
4662 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4663set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4665$as_echo_n "checking for $ac_word... " >&6; }
4666if test "${ac_cv_prog_CXX+set}" = set; then :
4667 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4668else
4669 if test -n "$CXX"; then
4670 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4671else
4672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673for as_dir in $PATH
4674do
4675 IFS=$as_save_IFS
4676 test -z "$as_dir" && as_dir=.
5213506e
RW
4677 for ac_exec_ext in '' $ac_executable_extensions; do
4678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2aeb72e9 4679 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4681 break 2
4682 fi
4683done
5213506e
RW
4684 done
4685IFS=$as_save_IFS
55ffb5ed 4686
c3a86da9
DJ
4687fi
4688fi
4689CXX=$ac_cv_prog_CXX
4690if test -n "$CXX"; then
5213506e
RW
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4692$as_echo "$CXX" >&6; }
c3a86da9 4693else
5213506e
RW
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4695$as_echo "no" >&6; }
c3a86da9
DJ
4696fi
4697
5213506e 4698
c3a86da9
DJ
4699 test -n "$CXX" && break
4700 done
4701fi
4702if test -z "$CXX"; then
4703 ac_ct_CXX=$CXX
5213506e 4704 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4705do
4706 # Extract the first word of "$ac_prog", so it can be a program name with args.
4707set dummy $ac_prog; ac_word=$2
5213506e
RW
4708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4709$as_echo_n "checking for $ac_word... " >&6; }
4710if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4711 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4712else
4713 if test -n "$ac_ct_CXX"; then
4714 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4715else
4716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717for as_dir in $PATH
4718do
4719 IFS=$as_save_IFS
4720 test -z "$as_dir" && as_dir=.
5213506e
RW
4721 for ac_exec_ext in '' $ac_executable_extensions; do
4722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c3a86da9 4723 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4725 break 2
4726 fi
4727done
5213506e
RW
4728 done
4729IFS=$as_save_IFS
c3a86da9
DJ
4730
4731fi
4732fi
4733ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4734if test -n "$ac_ct_CXX"; then
5213506e
RW
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4736$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4737else
5213506e
RW
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4739$as_echo "no" >&6; }
c3a86da9
DJ
4740fi
4741
5213506e 4742
c3a86da9
DJ
4743 test -n "$ac_ct_CXX" && break
4744done
c3a86da9 4745
5213506e
RW
4746 if test "x$ac_ct_CXX" = x; then
4747 CXX="g++"
4748 else
4749 case $cross_compiling:$ac_tool_warned in
4750yes:)
4751{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4752$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4753ac_tool_warned=yes ;;
4754esac
4755 CXX=$ac_ct_CXX
4756 fi
c3a86da9
DJ
4757fi
4758
5213506e
RW
4759 fi
4760fi
c3a86da9 4761# Provide some information about the compiler.
5213506e
RW
4762$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4763set X $ac_compile
4764ac_compiler=$2
4765for ac_option in --version -v -V -qversion; do
4766 { { ac_try="$ac_compiler $ac_option >&5"
4767case "(($ac_try" in
4768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4769 *) ac_try_echo=$ac_try;;
4770esac
4771eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4772$as_echo "$ac_try_echo"; } >&5
4773 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 4774 ac_status=$?
5213506e
RW
4775 if test -s conftest.err; then
4776 sed '10a\
4777... rest of stderr output deleted ...
4778 10q' conftest.err >conftest.er1
4779 cat conftest.er1 >&5
4780 rm -f conftest.er1 conftest.err
4781 fi
4782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4783 test $ac_status = 0; }
4784done
c3a86da9 4785
5213506e
RW
4786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4787$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4788if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4789 $as_echo_n "(cached) " >&6
c3a86da9 4790else
5213506e 4791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4792/* end confdefs.h. */
4793
4794int
4795main ()
4796{
4797#ifndef __GNUC__
4798 choke me
4799#endif
4800
4801 ;
4802 return 0;
4803}
4804_ACEOF
5213506e 4805if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4806 ac_compiler_gnu=yes
4807else
5213506e 4808 ac_compiler_gnu=no
c3a86da9 4809fi
5213506e 4810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4811ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4812
4813fi
5213506e
RW
4814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4815$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4816if test $ac_compiler_gnu = yes; then
4817 GXX=yes
4818else
4819 GXX=
4820fi
c3a86da9
DJ
4821ac_test_CXXFLAGS=${CXXFLAGS+set}
4822ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
4823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4824$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4825if test "${ac_cv_prog_cxx_g+set}" = set; then :
4826 $as_echo_n "(cached) " >&6
4827else
4828 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4829 ac_cxx_werror_flag=yes
4830 ac_cv_prog_cxx_g=no
4831 CXXFLAGS="-g"
4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4833/* end confdefs.h. */
4834
4835int
4836main ()
4837{
4838
4839 ;
4840 return 0;
4841}
4842_ACEOF
5213506e 4843if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4844 ac_cv_prog_cxx_g=yes
4845else
5213506e
RW
4846 CXXFLAGS=""
4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4848/* end confdefs.h. */
5213506e 4849
c3a86da9
DJ
4850int
4851main ()
4852{
5213506e 4853
c3a86da9
DJ
4854 ;
4855 return 0;
4856}
4857_ACEOF
5213506e 4858if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 4859
5213506e
RW
4860else
4861 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4862 CXXFLAGS="-g"
4863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4864/* end confdefs.h. */
5213506e 4865
c3a86da9
DJ
4866int
4867main ()
4868{
5213506e 4869
c3a86da9
DJ
4870 ;
4871 return 0;
4872}
4873_ACEOF
5213506e
RW
4874if ac_fn_cxx_try_compile "$LINENO"; then :
4875 ac_cv_prog_cxx_g=yes
11a67599 4876fi
5213506e
RW
4877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4878fi
4879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4880fi
4881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4882 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4883fi
4884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4885$as_echo "$ac_cv_prog_cxx_g" >&6; }
4886if test "$ac_test_CXXFLAGS" = set; then
4887 CXXFLAGS=$ac_save_CXXFLAGS
4888elif test $ac_cv_prog_cxx_g = yes; then
4889 if test "$GXX" = yes; then
4890 CXXFLAGS="-g -O2"
4891 else
4892 CXXFLAGS="-g"
4893 fi
4894else
4895 if test "$GXX" = yes; then
4896 CXXFLAGS="-O2"
4897 else
4898 CXXFLAGS=
4899 fi
c3a86da9 4900fi
c3a86da9
DJ
4901ac_ext=c
4902ac_cpp='$CPP $CPPFLAGS'
4903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4905ac_compiler_gnu=$ac_cv_c_compiler_gnu
4906
4907
4908# We must set the default linker to the linker used by gcc for the correct
4909# operation of libtool. If LD is not defined and we are using gcc, try to
4910# set the LD default to the ld used by gcc.
4911if test -z "$LD"; then
4912 if test "$GCC" = yes; then
4913 case $build in
4914 *-*-mingw*)
4915 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4916 *)
4917 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4918 esac
4919 case $gcc_prog_ld in
4920 # Accept absolute paths.
4921 [\\/]* | [A-Za-z]:[\\/]*)
4922 LD="$gcc_prog_ld" ;;
4923 esac
4924 fi
23f6b2f9
PB
4925fi
4926
0b21f5d3
EB
4927# Check whether -static-libstdc++ -static-libgcc is supported.
4928have_static_libs=no
4929if test "$GCC" = yes; then
4930 saved_LDFLAGS="$LDFLAGS"
4931
4932 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
4934$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
4935 ac_ext=cpp
4936ac_cpp='$CXXCPP $CPPFLAGS'
4937ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4938ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4939ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4940
4941
4942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943/* end confdefs.h. */
0d6414b2
EB
4944
4945#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
4946#error -static-libstdc++ not implemented
4947#endif
0b21f5d3
EB
4948int main() {}
4949_ACEOF
4950if ac_fn_cxx_try_link "$LINENO"; then :
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4952$as_echo "yes" >&6; }; have_static_libs=yes
4953else
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955$as_echo "no" >&6; }
4956fi
4957rm -f core conftest.err conftest.$ac_objext \
4958 conftest$ac_exeext conftest.$ac_ext
4959 ac_ext=c
4960ac_cpp='$CPP $CPPFLAGS'
4961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4963ac_compiler_gnu=$ac_cv_c_compiler_gnu
4964
4965
4966 LDFLAGS="$saved_LDFLAGS"
4967fi
4968
23f6b2f9
PB
4969
4970
55ffb5ed 4971
1c710c3c
DJ
4972if test -n "$ac_tool_prefix"; then
4973 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 4974set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
4975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4976$as_echo_n "checking for $ac_word... " >&6; }
4977if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4978 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4979else
4980 if test -n "$GNATBIND"; then
4981 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4982else
1c710c3c
DJ
4983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984for as_dir in $PATH
4985do
4986 IFS=$as_save_IFS
4987 test -z "$as_dir" && as_dir=.
5213506e
RW
4988 for ac_exec_ext in '' $ac_executable_extensions; do
4989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4990 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 4991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4992 break 2
4993 fi
4994done
5213506e
RW
4995 done
4996IFS=$as_save_IFS
1c710c3c 4997
55ffb5ed
NN
4998fi
4999fi
1c710c3c 5000GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5001if test -n "$GNATBIND"; then
5213506e
RW
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5003$as_echo "$GNATBIND" >&6; }
55ffb5ed 5004else
5213506e
RW
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5006$as_echo "no" >&6; }
55ffb5ed
NN
5007fi
5008
5213506e 5009
1c710c3c 5010fi
55ffb5ed 5011if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5012 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5013 # Extract the first word of "gnatbind", so it can be a program name with args.
5014set dummy gnatbind; ac_word=$2
5213506e
RW
5015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5016$as_echo_n "checking for $ac_word... " >&6; }
5017if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5018 $as_echo_n "(cached) " >&6
55ffb5ed 5019else
1c710c3c
DJ
5020 if test -n "$ac_ct_GNATBIND"; then
5021 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5022else
1c710c3c
DJ
5023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024for as_dir in $PATH
5025do
5026 IFS=$as_save_IFS
5027 test -z "$as_dir" && as_dir=.
5213506e
RW
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5030 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5032 break 2
5033 fi
5034done
5213506e
RW
5035 done
5036IFS=$as_save_IFS
1c710c3c 5037
55ffb5ed
NN
5038fi
5039fi
1c710c3c
DJ
5040ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5041if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5043$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5044else
5213506e
RW
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5046$as_echo "no" >&6; }
55ffb5ed
NN
5047fi
5048
5213506e
RW
5049 if test "x$ac_ct_GNATBIND" = x; then
5050 GNATBIND="no"
5051 else
5052 case $cross_compiling:$ac_tool_warned in
5053yes:)
5054{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5055$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5056ac_tool_warned=yes ;;
5057esac
5058 GNATBIND=$ac_ct_GNATBIND
5059 fi
55ffb5ed 5060else
1c710c3c 5061 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5062fi
5063
1c710c3c
DJ
5064if test -n "$ac_tool_prefix"; then
5065 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5066set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
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_GNATMAKE+set}" = set; then :
5070 $as_echo_n "(cached) " >&6
5305be7e
RG
5071else
5072 if test -n "$GNATMAKE"; then
5073 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5074else
1c710c3c
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=.
5213506e
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
1c710c3c 5082 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5084 break 2
5085 fi
5086done
5213506e
RW
5087 done
5088IFS=$as_save_IFS
1c710c3c 5089
5305be7e
RG
5090fi
5091fi
1c710c3c 5092GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5093if test -n "$GNATMAKE"; then
5213506e
RW
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5095$as_echo "$GNATMAKE" >&6; }
5305be7e 5096else
5213506e
RW
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098$as_echo "no" >&6; }
5305be7e
RG
5099fi
5100
5213506e 5101
1c710c3c 5102fi
5305be7e 5103if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5104 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5105 # Extract the first word of "gnatmake", so it can be a program name with args.
5106set dummy gnatmake; ac_word=$2
5213506e
RW
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5108$as_echo_n "checking for $ac_word... " >&6; }
5109if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5110 $as_echo_n "(cached) " >&6
5305be7e 5111else
1c710c3c
DJ
5112 if test -n "$ac_ct_GNATMAKE"; then
5113 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5114else
1c710c3c
DJ
5115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116for as_dir in $PATH
5117do
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
5213506e
RW
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5122 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5124 break 2
5125 fi
5126done
5213506e
RW
5127 done
5128IFS=$as_save_IFS
1c710c3c 5129
5305be7e
RG
5130fi
5131fi
1c710c3c
DJ
5132ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5133if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5135$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5136else
5213506e
RW
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138$as_echo "no" >&6; }
5305be7e
RG
5139fi
5140
5213506e
RW
5141 if test "x$ac_ct_GNATMAKE" = x; then
5142 GNATMAKE="no"
5143 else
5144 case $cross_compiling:$ac_tool_warned in
5145yes:)
5146{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5147$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5148ac_tool_warned=yes ;;
5149esac
5150 GNATMAKE=$ac_ct_GNATMAKE
5151 fi
5305be7e 5152else
1c710c3c 5153 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5154fi
5155
5213506e
RW
5156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5157$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5158if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5159 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5160else
5161 cat >conftest.adb <<EOF
5162procedure conftest is begin null; end conftest;
5163EOF
5164acx_cv_cc_gcc_supports_ada=no
5165# There is a bug in old released versions of GCC which causes the
5166# driver to exit successfully when the appropriate language module
5167# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5168# Therefore we must check for the error message as well as an
5169# unsuccessful exit.
1db673ca
RO
5170# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5171# given a .adb file, but produce no object file. So we must check
5172# if an object file was really produced to guard against this.
55ffb5ed 5173errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5174if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5175 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5176fi
5177rm -f conftest.*
5178fi
5213506e
RW
5179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5180$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5181
7cb62ef1 5182if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5183 have_gnat=yes
5184else
5185 have_gnat=no
5186fi
5187
5213506e
RW
5188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5189$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5190if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5191 $as_echo_n "(cached) " >&6
a76494aa
PB
5192else
5193 echo abfoo >t1
5194 echo cdfoo >t2
5195 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5196 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5197 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5198 :
5199 else
5200 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5201 fi
5202 fi
a76494aa
PB
5203 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5204 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5205 :
a76494aa
PB
5206 else
5207 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5208 fi
5209 fi
5210 rm t1 t2
5211
5212fi
5213506e
RW
5213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5214$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5215do_compare="$gcc_cv_prog_cmp_skip"
5216
5217
55ffb5ed 5218
ff3ac0f4
ILT
5219# Check whether --enable-bootstrap was given.
5220if test "${enable_bootstrap+set}" = set; then :
5221 enableval=$enable_bootstrap;
5222else
5223 enable_bootstrap=default
5224fi
5225
5226
5227# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5228if test -r $srcdir/gcc/configure; then
5229 have_compiler=yes
5230else
5231 have_compiler=no
5232fi
ff3ac0f4
ILT
5233
5234case "$have_compiler:$host:$target:$enable_bootstrap" in
5235 *:*:*:no) ;;
5236
5237 # Default behavior. Enable bootstrap if we have a compiler
5238 # and we are in a native configuration.
5239 yes:$build:$build:default)
5240 enable_bootstrap=yes ;;
5241
5242 *:*:*:default)
5243 enable_bootstrap=no ;;
5244
5245 # We have a compiler and we are in a native configuration, bootstrap is ok
5246 yes:$build:$build:yes)
5247 ;;
5248
5249 # Other configurations, but we have a compiler. Assume the user knows
5250 # what he's doing.
5251 yes:*:*:yes)
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5253$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5254 ;;
5255
5256 # No compiler: if they passed --enable-bootstrap explicitly, fail
5257 no:*:*:yes)
5258 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5259
5260 # Fail if wrong command line
5261 *)
5262 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5263 ;;
5264esac
5265
592c90ff
KG
5266# Used for setting $lt_cv_objdir
5267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5268$as_echo_n "checking for objdir... " >&6; }
5269if test "${lt_cv_objdir+set}" = set; then :
5270 $as_echo_n "(cached) " >&6
5271else
5272 rm -f .libs 2>/dev/null
5273mkdir .libs 2>/dev/null
5274if test -d .libs; then
5275 lt_cv_objdir=.libs
5276else
5277 # MS-DOS does not allow filenames that begin with a dot.
5278 lt_cv_objdir=_libs
5279fi
5280rmdir .libs 2>/dev/null
5281fi
5282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5283$as_echo "$lt_cv_objdir" >&6; }
5284objdir=$lt_cv_objdir
5285
5286
5287
5288
5289
5290cat >>confdefs.h <<_ACEOF
5291#define LT_OBJDIR "$lt_cv_objdir/"
5292_ACEOF
5293
5294
5295
acd26225 5296# Check for GMP, MPFR and MPC
3a5729ea 5297gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 5298gmpinc=
e69bf64b 5299have_gmp=no
acd26225
KG
5300
5301# Specify a location for mpc
5302# check for this first so it ends up on the link line before mpfr.
5303
5213506e
RW
5304# Check whether --with-mpc was given.
5305if test "${with_mpc+set}" = set; then :
5306 withval=$with_mpc;
5307fi
acd26225 5308
acd26225 5309
9965e3cd 5310# Check whether --with-mpc-include was given.
5213506e
RW
5311if test "${with_mpc_include+set}" = set; then :
5312 withval=$with_mpc_include;
5313fi
acd26225 5314
acd26225 5315
9965e3cd 5316# Check whether --with-mpc-lib was given.
5213506e
RW
5317if test "${with_mpc_lib+set}" = set; then :
5318 withval=$with_mpc_lib;
5319fi
acd26225 5320
acd26225
KG
5321
5322if test "x$with_mpc" != x; then
3a5729ea
KG
5323 gmplibs="-L$with_mpc/lib $gmplibs"
5324 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
5325fi
5326if test "x$with_mpc_include" != x; then
3a5729ea 5327 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
5328fi
5329if test "x$with_mpc_lib" != x; then
3a5729ea 5330 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
5331fi
5332if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 5333 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 5334 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5335 # Do not test the mpc version. Assume that it is sufficient, since
5336 # it is in the source tree, and the library has not been built yet
5337 # but it would be included on the link line in the version check below
5338 # hence making the test fail.
3a5729ea 5339 have_gmp=yes
acd26225 5340fi
e69bf64b 5341
bebf829d
PB
5342# Specify a location for mpfr
5343# check for this first so it ends up on the link line before gmp.
1c710c3c 5344
5213506e
RW
5345# Check whether --with-mpfr-dir was given.
5346if test "${with_mpfr_dir+set}" = set; then :
5347 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5348Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5349fi
5350
bebf829d
PB
5351
5352
5213506e
RW
5353# Check whether --with-mpfr was given.
5354if test "${with_mpfr+set}" = set; then :
5355 withval=$with_mpfr;
5356fi
1c710c3c 5357
bebf829d 5358
9965e3cd 5359# Check whether --with-mpfr-include was given.
5213506e
RW
5360if test "${with_mpfr_include+set}" = set; then :
5361 withval=$with_mpfr_include;
5362fi
1c710c3c 5363
8a877c9c 5364
9965e3cd 5365# Check whether --with-mpfr-lib was given.
5213506e
RW
5366if test "${with_mpfr_lib+set}" = set; then :
5367 withval=$with_mpfr_lib;
5368fi
8a877c9c 5369
bebf829d
PB
5370
5371if test "x$with_mpfr" != x; then
5372 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5373 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5374fi
8a877c9c 5375if test "x$with_mpfr_include" != x; then
3a5729ea 5376 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5377fi
5378if test "x$with_mpfr_lib" != x; then
5379 gmplibs="-L$with_mpfr_lib $gmplibs"
5380fi
e69bf64b 5381if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5b0d38e4
NC
5382 # MPFR v3.1.0 moved the sources into a src sub-directory.
5383 if test -d ${srcdir}/mpfr/src; then
5384 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5385 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5386 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5387 else
5388 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5389 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5390 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5391 fi
e69bf64b
PB
5392 # Do not test the mpfr version. Assume that it is sufficient, since
5393 # it is in the source tree, and the library has not been built yet
5394 # but it would be included on the link line in the version check below
5395 # hence making the test fail.
5396 have_gmp=yes
5397fi
bebf829d 5398
6de9cd9a 5399# Specify a location for gmp
1c710c3c 5400
5213506e
RW
5401# Check whether --with-gmp-dir was given.
5402if test "${with_gmp_dir+set}" = set; then :
5403 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5404Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5405fi
5406
6de9cd9a 5407
6de9cd9a 5408
5213506e
RW
5409# Check whether --with-gmp was given.
5410if test "${with_gmp+set}" = set; then :
5411 withval=$with_gmp;
5412fi
1c710c3c 5413
6de9cd9a 5414
9965e3cd 5415# Check whether --with-gmp-include was given.
5213506e
RW
5416if test "${with_gmp_include+set}" = set; then :
5417 withval=$with_gmp_include;
5418fi
1c710c3c 5419
8a877c9c 5420
9965e3cd 5421# Check whether --with-gmp-lib was given.
5213506e
RW
5422if test "${with_gmp_lib+set}" = set; then :
5423 withval=$with_gmp_lib;
5424fi
8a877c9c
KG
5425
5426
6de9cd9a 5427
bebf829d
PB
5428if test "x$with_gmp" != x; then
5429 gmplibs="-L$with_gmp/lib $gmplibs"
5430 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5431fi
8a877c9c
KG
5432if test "x$with_gmp_include" != x; then
5433 gmpinc="-I$with_gmp_include $gmpinc"
5434fi
5435if test "x$with_gmp_lib" != x; then
5436 gmplibs="-L$with_gmp_lib $gmplibs"
5437fi
e69bf64b 5438if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5439 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5440 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 5441 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 5442 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 5443 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
5444 # Do not test the gmp 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
6de9cd9a 5450
d943d7c4 5451if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5452 have_gmp=yes
5453 saved_CFLAGS="$CFLAGS"
5454 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5455 # Check for the recommended and required versions of GMP.
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5457$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5458
5459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5460/* end confdefs.h. */
5461#include "gmp.h"
5462int
5463main ()
5464{
5465
5466 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5467 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 5468 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
5469 choke me
5470 #endif
5471
5472 ;
5473 return 0;
5474}
5475_ACEOF
5476if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5478/* end confdefs.h. */
362c6d2f 5479#include <gmp.h>
1c710c3c
DJ
5480int
5481main ()
5482{
6de9cd9a 5483
362c6d2f
KG
5484 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5485 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5486 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5487 choke me
5488 #endif
1c710c3c
DJ
5489
5490 ;
5491 return 0;
5492}
5493_ACEOF
5213506e
RW
5494if ac_fn_c_try_compile "$LINENO"; then :
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5496$as_echo "yes" >&6; }
362c6d2f
KG
5497else
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5499$as_echo "buggy but acceptable" >&6; }
5500fi
5501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5502else
5213506e
RW
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5505fi
5213506e 5506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5507
acd26225 5508 # If we have GMP, check the MPFR version.
e69bf64b 5509 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5510 # Check for the recommended and required versions of MPFR.
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5512$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5514/* end confdefs.h. */
70ec446f 5515#include <gmp.h>
e69bf64b 5516 #include <mpfr.h>
1c710c3c
DJ
5517int
5518main ()
5519{
e48d66a9 5520
f7d6bc01 5521 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
e69bf64b
PB
5522 choke me
5523 #endif
1c710c3c
DJ
5524
5525 ;
5526 return 0;
5527}
5528_ACEOF
5213506e
RW
5529if ac_fn_c_try_compile "$LINENO"; then :
5530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5531/* end confdefs.h. */
a3993f33 5532#include <gmp.h>
e69bf64b 5533 #include <mpfr.h>
1c710c3c
DJ
5534int
5535main ()
5536{
a3993f33 5537
362c6d2f 5538 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
e69bf64b
PB
5539 choke me
5540 #endif
acd26225
KG
5541
5542 ;
5543 return 0;
5544}
5545_ACEOF
5213506e
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; }
acd26225 5549else
5213506e
RW
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5551$as_echo "buggy but acceptable" >&6; }
acd26225 5552fi
5213506e 5553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5554else
5213506e
RW
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556$as_echo "no" >&6; }; have_gmp=no
acd26225 5557fi
5213506e 5558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5559 fi
5560
5561 # Check for the MPC header version.
3a5729ea 5562 if test x"$have_gmp" = xyes ; then
362c6d2f 5563 # Check for the recommended and required versions of MPC.
5213506e
RW
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5565$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5567/* end confdefs.h. */
5568#include <mpc.h>
5569int
5570main ()
5571{
5572
362c6d2f
KG
5573 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5574 choke me
5575 #endif
5576
5577 ;
5578 return 0;
5579}
5580_ACEOF
5581if ac_fn_c_try_compile "$LINENO"; then :
5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583/* end confdefs.h. */
5584#include <mpc.h>
5585int
5586main ()
5587{
5588
5589 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5590 choke me
5591 #endif
5592
5593 ;
5594 return 0;
5595}
5596_ACEOF
5213506e
RW
5597if ac_fn_c_try_compile "$LINENO"; then :
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5599$as_echo "yes" >&6; }
362c6d2f
KG
5600else
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5602$as_echo "buggy but acceptable" >&6; }
5603fi
5604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5605else
5213506e 5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5607$as_echo "no" >&6; }; have_gmp=no
acd26225 5608fi
5213506e 5609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5610 fi
5611
5612 # Now check the MPFR library.
5613 if test x"$have_gmp" = xyes; then
5614 saved_LIBS="$LIBS"
5615 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5617$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5619/* end confdefs.h. */
3a5729ea 5620#include <mpc.h>
acd26225
KG
5621int
5622main ()
5623{
5624
5625 mpfr_t n;
5626 mpfr_t x;
3a5729ea 5627 mpc_t c;
acd26225
KG
5628 int t;
5629 mpfr_init (n);
5630 mpfr_init (x);
5631 mpfr_atan2 (n, n, x, GMP_RNDN);
5632 mpfr_erfc (n, x, GMP_RNDN);
5633 mpfr_subnormalize (x, t, GMP_RNDN);
3a5729ea
KG
5634 mpfr_clear(n);
5635 mpfr_clear(x);
5636 mpc_init2 (c, 53);
5637 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5638 mpc_cosh (c, c, MPC_RNDNN);
5639 mpc_pow (c, c, c, MPC_RNDNN);
5640 mpc_acosh (c, c, MPC_RNDNN);
5641 mpc_clear (c);
1c710c3c
DJ
5642
5643 ;
5644 return 0;
5645}
5646_ACEOF
5213506e
RW
5647if ac_fn_c_try_link "$LINENO"; then :
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5649$as_echo "yes" >&6; }
1c710c3c 5650else
5213506e
RW
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5652$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5653fi
5213506e
RW
5654rm -f core conftest.err conftest.$ac_objext \
5655 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5656 LIBS="$saved_LIBS"
5657 fi
5658
e69bf64b 5659 CFLAGS="$saved_CFLAGS"
6de9cd9a 5660
362c6d2f
KG
5661# The library versions listed in the error message below should match
5662# the HARD-minimums enforced above.
e69bf64b 5663 if test x$have_gmp != xyes; then
f7d6bc01 5664 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
3a5729ea
KG
5665Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5666their locations. Source code for these libraries can be found at
5667their respective hosting sites as well as at
5668ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5669http://gcc.gnu.org/install/prerequisites.html for additional info. If
5670you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5671make sure that you have installed both the libraries and the header
5672files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5673 fi
70ec446f
KG
5674fi
5675
acd26225
KG
5676# Flags needed for both GMP, MPFR and/or MPC.
5677
5678
6de9cd9a
DN
5679
5680
5681
9e3eba15 5682
0ff2d841 5683
f38095f3
JM
5684# Allow host libstdc++ to be specified for static linking with PPL.
5685
5213506e
RW
5686# Check whether --with-host-libstdcxx was given.
5687if test "${with_host_libstdcxx+set}" = set; then :
5688 withval=$with_host_libstdcxx;
5689fi
f38095f3 5690
f38095f3
JM
5691
5692case $with_host_libstdcxx in
5693 no|yes)
5213506e 5694 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
f38095f3
JM
5695 ;;
5696esac
f8bf9252 5697
0b21f5d3 5698# Libraries to use for stage1 or when not bootstrapping.
00020c16 5699
0b21f5d3
EB
5700# Check whether --with-stage1-libs was given.
5701if test "${with_stage1_libs+set}" = set; then :
5702 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5703 stage1_libs=
00020c16 5704 else
0b21f5d3 5705 stage1_libs=$withval
00020c16
ILT
5706 fi
5707else
0b21f5d3 5708 stage1_libs=$with_host_libstdcxx
5213506e
RW
5709fi
5710
00020c16
ILT
5711
5712
0b21f5d3 5713# Linker flags to use for stage1 or when not bootstrapping.
00020c16 5714
0b21f5d3
EB
5715# Check whether --with-stage1-ldflags was given.
5716if test "${with_stage1_ldflags+set}" = set; then :
5717 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5718 stage1_ldflags=
00020c16 5719 else
0b21f5d3 5720 stage1_ldflags=$withval
00020c16
ILT
5721 fi
5722else
0b21f5d3
EB
5723 stage1_ldflags=
5724 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5725 # if supported. But if the user explicitly specified the libraries to use,
5726 # trust that they are doing what they want.
5727 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5728 stage1_ldflags="-static-libstdc++ -static-libgcc"
5729 fi
5213506e
RW
5730fi
5731
00020c16
ILT
5732
5733
00020c16
ILT
5734# Libraries to use for stage2 and later builds. This defaults to the
5735# argument passed to --with-host-libstdcxx.
5736
5213506e
RW
5737# Check whether --with-boot-libs was given.
5738if test "${with_boot_libs+set}" = set; then :
5739 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
5740 poststage1_libs=
5741 else
5742 poststage1_libs=$withval
5743 fi
5744else
00020c16 5745 poststage1_libs=$with_host_libstdcxx
5213506e
RW
5746fi
5747
00020c16
ILT
5748
5749
ed2eaa9f
ILT
5750# Linker flags to use for stage2 and later builds.
5751
5752# Check whether --with-boot-ldflags was given.
5753if test "${with_boot_ldflags+set}" = set; then :
5754 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5755 poststage1_ldflags=
5756 else
5757 poststage1_ldflags=$withval
5758 fi
5759else
5760 poststage1_ldflags=
bec93d73
ILT
5761 # In stages 2 and 3, default to linking libstdc++ and libgcc
5762 # statically. But if the user explicitly specified the libraries to
5763 # use, trust that they are doing what they want.
5764 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
5765 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5766 fi
5767fi
5768
5769
5770
625afa23
RG
5771# GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
5772# Basic setup is inlined here, actual checks are in config/cloog.m4 and
5773# config/isl.m4
5774
5775
5776# Check whether --with-cloog was given.
5777if test "${with_cloog+set}" = set; then :
5778 withval=$with_cloog;
5779fi
f8bf9252
SP
5780
5781
33ad93b9
RG
5782# Check whether --with-isl was given.
5783if test "${with_isl+set}" = set; then :
5784 withval=$with_isl;
5213506e 5785fi
f8bf9252 5786
f8bf9252 5787
625afa23
RG
5788# Treat either --without-cloog or --without-isl as a request to disable
5789# GRAPHITE support and skip all following checks.
5790if test "x$with_isl" != "xno" &&
5791 test "x$with_cloog" != "xno"; then
5792 # Check for ISL
5793
5794
33ad93b9
RG
5795# Check whether --with-isl-include was given.
5796if test "${with_isl_include+set}" = set; then :
5797 withval=$with_isl_include;
5213506e
RW
5798fi
5799
f8bf9252 5800
33ad93b9
RG
5801# Check whether --with-isl-lib was given.
5802if test "${with_isl_lib+set}" = set; then :
5803 withval=$with_isl_lib;
5213506e 5804fi
f8bf9252 5805
f8bf9252 5806
33ad93b9
RG
5807 # Check whether --enable-isl-version-check was given.
5808if test "${enable_isl_version_check+set}" = set; then :
5809 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5810else
5811 ENABLE_ISL_CHECK=yes
7d32a440
SP
5812fi
5813
5814
33ad93b9
RG
5815 # Initialize isllibs and islinc.
5816 case $with_isl in
5817 no)
5818 isllibs=
5819 islinc=
5820 ;;
5821 "" | yes)
5822 ;;
5823 *)
5824 isllibs="-L$with_isl/lib"
5825 islinc="-I$with_isl/include"
5826 ;;
5827 esac
5828 if test "x${with_isl_include}" != x ; then
5829 islinc="-I$with_isl_include"
5830 fi
5831 if test "x${with_isl_lib}" != x; then
5832 isllibs="-L$with_isl_lib"
5833 fi
5834 if test "x${islinc}" = x && test "x${isllibs}" = x \
5835 && test -d ${srcdir}/isl; then
5836 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5837 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5838 ENABLE_ISL_CHECK=no
2869f0ff
RB
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5840$as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
33ad93b9 5841 fi
7d32a440 5842
7d32a440 5843
7d32a440 5844
33ad93b9
RG
5845 if test "${ENABLE_ISL_CHECK}" = yes ; then
5846 _isl_saved_CFLAGS=$CFLAGS
5847 _isl_saved_LDFLAGS=$LDFLAGS
90d4f233 5848 _isl_saved_LIBS=$LIBS
33ad93b9
RG
5849
5850 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
90d4f233
RO
5851 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5852 LIBS="${_isl_saved_LIBS} -lisl"
33ad93b9
RG
5853
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5855$as_echo_n "checking for version 0.10 of ISL... " >&6; }
2869f0ff 5856 if test "$cross_compiling" = yes; then :
2b2d7c53 5857 gcc_cv_isl=yes
33ad93b9
RG
5858else
5859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7d32a440 5860/* end confdefs.h. */
33ad93b9
RG
5861#include <isl/version.h>
5862 #include <string.h>
7d32a440
SP
5863int
5864main ()
5865{
8247e8b2
RG
5866if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
5867 return 1;
5868
7d32a440
SP
5869 ;
5870 return 0;
5871}
5872_ACEOF
33ad93b9
RG
5873if ac_fn_c_try_run "$LINENO"; then :
5874 gcc_cv_isl=yes
d789184e 5875else
33ad93b9 5876 gcc_cv_isl=no
7d32a440 5877fi
33ad93b9
RG
5878rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5879 conftest.$ac_objext conftest.beam conftest.$ac_ext
7d32a440 5880fi
33ad93b9 5881
2869f0ff 5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
33ad93b9 5883$as_echo "$gcc_cv_isl" >&6; }
5213506e 5884
33ad93b9
RG
5885 CFLAGS=$_isl_saved_CFLAGS
5886 LDFLAGS=$_isl_saved_LDFLAGS
90d4f233 5887 LIBS=$_isl_saved_LIBS
7d32a440 5888 fi
f8bf9252 5889
7d32a440 5890
d0ad394c
RB
5891 if test "${gcc_cv_isl}" = no ; then
5892
5893 if test "${ENABLE_ISL_CHECK}" = yes ; then
5894 _isl_saved_CFLAGS=$CFLAGS
5895 _isl_saved_LDFLAGS=$LDFLAGS
5896 _isl_saved_LIBS=$LIBS
5897
5898 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5899 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5900 LIBS="${_isl_saved_LIBS} -lisl"
d0ad394c
RB
5901
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 of ISL" >&5
5903$as_echo_n "checking for version 0.11 of ISL... " >&6; }
2869f0ff 5904 if test "$cross_compiling" = yes; then :
d0ad394c
RB
5905 gcc_cv_isl=yes
5906else
5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908/* end confdefs.h. */
5909#include <isl/version.h>
5910 #include <string.h>
5911int
5912main ()
5913{
5914if (strncmp (isl_version (), "isl-0.11", strlen ("isl-0.11")) != 0)
5915 return 1;
5916
5917 ;
5918 return 0;
5919}
5920_ACEOF
5921if ac_fn_c_try_run "$LINENO"; then :
5922 gcc_cv_isl=yes
5923else
5924 gcc_cv_isl=no
5925fi
5926rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5927 conftest.$ac_objext conftest.beam conftest.$ac_ext
5928fi
5929
2869f0ff 5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
d0ad394c
RB
5931$as_echo "$gcc_cv_isl" >&6; }
5932
5933 CFLAGS=$_isl_saved_CFLAGS
5934 LDFLAGS=$_isl_saved_LDFLAGS
5935 LIBS=$_isl_saved_LIBS
5936 fi
5937
5938
5939 fi
f8bf9252 5940
f8bf9252 5941
33ad93b9
RG
5942
5943
33ad93b9
RG
5944 if test "x${with_isl}" = xno; then
5945 graphite_requested=no
5946 elif test "x${with_isl}" != x \
5947 || test "x${with_isl_include}" != x \
5948 || test "x${with_isl_lib}" != x ; then
5949 graphite_requested=yes
5950 else
5951 graphite_requested=no
7d32a440 5952 fi
d789184e 5953
d789184e
SP
5954
5955
33ad93b9
RG
5956 if test "${gcc_cv_isl}" = no ; then
5957 isllibs=
5958 islinc=
5959 fi
5960
5961 if test "${graphite_requested}" = yes \
5962 && test "x${isllibs}" = x \
5963 && test "x${islinc}" = x ; then
f8bf9252 5964
33ad93b9
RG
5965 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
5966 fi
f8bf9252 5967
d32ef397 5968
d789184e 5969
625afa23
RG
5970 if test "x$gcc_cv_isl" != "xno"; then
5971 # Check for CLOOG
5213506e 5972
d789184e 5973
9965e3cd 5974# Check whether --with-cloog-include was given.
5213506e
RW
5975if test "${with_cloog_include+set}" = set; then :
5976 withval=$with_cloog_include;
5977fi
d789184e 5978
d789184e 5979
9965e3cd 5980# Check whether --with-cloog-lib was given.
5213506e
RW
5981if test "${with_cloog_lib+set}" = set; then :
5982 withval=$with_cloog_lib;
5983fi
d789184e 5984
d789184e 5985
d32ef397
AS
5986 # Check whether --enable-cloog-version-check was given.
5987if test "${enable_cloog_version_check+set}" = set; then :
5988 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5989else
5990 ENABLE_CLOOG_CHECK=yes
5991fi
5992
5993
5994 # Initialize clooglibs and clooginc.
5995 case $with_cloog in
5996 no)
5997 clooglibs=
5998 clooginc=
5999 ;;
6000 "" | yes)
6001 ;;
6002 *)
6003 clooglibs="-L$with_cloog/lib"
6004 clooginc="-I$with_cloog/include"
6005 ;;
6006 esac
6007 if test "x${with_cloog_include}" != x ; then
6008 clooginc="-I$with_cloog_include"
6009 fi
6010 if test "x${with_cloog_lib}" != x; then
6011 clooglibs="-L$with_cloog_lib"
6012 fi
2869f0ff 6013 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
33ad93b9 6014 && test -d ${srcdir}/cloog; then
33ad93b9
RG
6015 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
6016 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
2869f0ff
RB
6017 ENABLE_CLOOG_CHECK=no
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree CLooG, disabling version check" >&5
6019$as_echo "$as_me: WARNING: using in-tree CLooG, disabling version check" >&2;}
ab4173cf 6020 fi
ad0abd3c 6021
33ad93b9 6022 clooginc="-DCLOOG_INT_GMP ${clooginc}"
625afa23 6023 clooglibs="${clooglibs} -lcloog-isl ${isllibs} -lisl"
d32ef397
AS
6024
6025
6026
6027
6028
6029 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6030 _cloog_saved_CFLAGS=$CFLAGS
6031 _cloog_saved_LDFLAGS=$LDFLAGS
6032
33ad93b9
RG
6033 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6034 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
d32ef397 6035
6886e444
RG
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
6037$as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
2869f0ff 6038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f8bf9252 6039/* end confdefs.h. */
33ad93b9 6040#include "cloog/version.h"
f8bf9252
SP
6041int
6042main ()
6043{
d32ef397 6044#if CLOOG_VERSION_MAJOR != 0 \
6886e444
RG
6045 || CLOOG_VERSION_MINOR != 17 \
6046 || CLOOG_VERSION_REVISION < 0
d32ef397
AS
6047 choke me
6048 #endif
f8bf9252
SP
6049 ;
6050 return 0;
6051}
6052_ACEOF
0333b9a6 6053if ac_fn_c_try_compile "$LINENO"; then :
6886e444 6054 gcc_cv_cloog=yes
f8bf9252 6055else
6886e444 6056 gcc_cv_cloog=no
f8bf9252 6057fi
5213506e 6058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2869f0ff 6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6886e444 6060$as_echo "$gcc_cv_cloog" >&6; }
d32ef397
AS
6061
6062 CFLAGS=$_cloog_saved_CFLAGS
6063 LDFLAGS=$_cloog_saved_LDFLAGS
6064 fi
f8bf9252 6065
f8bf9252 6066
d0ad394c
RB
6067 if test "${gcc_cv_cloog}" = no ; then
6068
6069
6070
6071 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6072 _cloog_saved_CFLAGS=$CFLAGS
6073 _cloog_saved_LDFLAGS=$LDFLAGS
6074
6075 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6076 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
6077
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.18.0 of CLooG" >&5
6079$as_echo_n "checking for version 0.18.0 of CLooG... " >&6; }
2869f0ff 6080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0ad394c
RB
6081/* end confdefs.h. */
6082#include "cloog/version.h"
6083int
6084main ()
6085{
6086#if CLOOG_VERSION_MAJOR != 0 \
6087 || CLOOG_VERSION_MINOR != 18 \
6088 || CLOOG_VERSION_REVISION < 0
6089 choke me
6090 #endif
6091 ;
6092 return 0;
6093}
6094_ACEOF
6095if ac_fn_c_try_compile "$LINENO"; then :
6096 gcc_cv_cloog=yes
6097else
6098 gcc_cv_cloog=no
6099fi
6100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2869f0ff 6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
d0ad394c
RB
6102$as_echo "$gcc_cv_cloog" >&6; }
6103
6104 CFLAGS=$_cloog_saved_CFLAGS
6105 LDFLAGS=$_cloog_saved_LDFLAGS
6106 fi
6107
6108
6109 fi
f8bf9252
SP
6110
6111
d32ef397
AS
6112
6113
6114
6be7b668
JJ
6115 if test "x${with_cloog}" = xno; then
6116 graphite_requested=no
6117 elif test "x${with_cloog}" != x \
d32ef397
AS
6118 || test "x${with_cloog_include}" != x \
6119 || test "x${with_cloog_lib}" != x ; then
6120 graphite_requested=yes
6121 else
6122 graphite_requested=no
6123 fi
6124
6125
6126
6886e444 6127 if test "${gcc_cv_cloog}" = no ; then
d32ef397
AS
6128 clooglibs=
6129 clooginc=
6130 fi
6131
6132 if test "${graphite_requested}" = yes \
6133 && test "x${clooglibs}" = x \
6134 && test "x${clooginc}" = x ; then
6135
625afa23 6136 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
d32ef397
AS
6137 fi
6138
6139
625afa23 6140 fi
d32ef397
AS
6141fi
6142
32d024bf
RG
6143# If either the ISL or the CLooG check failed, disable builds of in-tree
6144# variants of both
625afa23
RG
6145if test "x$with_isl" = xno ||
6146 test "x$with_cloog" = xno ||
6147 test "x$gcc_cv_cloog" = xno ||
6148 test "x$gcc_cv_isl" = xno; then
32d024bf 6149 noconfigdirs="$noconfigdirs cloog isl"
625afa23
RG
6150 islinc=
6151 clooginc=
6152 clooglibs=
32d024bf
RG
6153fi
6154
625afa23
RG
6155
6156
6157
6158
6159
d7f09764
DN
6160# Check for LTO support.
6161# Check whether --enable-lto was given.
6162if test "${enable_lto+set}" = set; then :
6163 enableval=$enable_lto; enable_lto=$enableval
6164else
6165 enable_lto=yes; default_enable_lto=yes
6166fi
6167
6168
7413962d 6169
9a02962b
DK
6170
6171
6172target_elf=no
6173case $target in
6174 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 6175 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
9a02962b
DK
6176 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6177 target_elf=no
6178 ;;
6179 *)
6180 target_elf=yes
6181 ;;
6182esac
6183
6184if test $target_elf = yes; then :
48215350
DK
6185 # ELF platforms build the lto-plugin always.
6186 build_lto_plugin=yes
9a02962b 6187
9a02962b
DK
6188else
6189 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 6190 case $target in
2cd815e7 6191 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
48215350 6192 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
6193 *) enable_lto=no ;;
6194 esac
9a02962b 6195 else
db50fe7d
IS
6196 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6197 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
6198 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6199 # warn during gcc/ subconfigure; unless you're bootstrapping with
6200 # -flto it won't be needed until after installation anyway.
6201 case $target in
1cd0b716 6202 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
9a02962b
DK
6203 *) if test x"$enable_lto" = x"yes"; then
6204 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6205 fi
6206 ;;
6207 esac
6208 fi
1cd0b716 6209 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 6210 # Build it unless LTO was explicitly disabled.
1cd0b716 6211 case $target in
48215350 6212 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
6213 *) ;;
6214 esac
48215350 6215
9a02962b
DK
6216fi
6217
d7f09764 6218
f8bf9252 6219
0823efed 6220# By default, C and C++ are the only stage 1 languages.
e1888513 6221stage1_languages=,c,
2805b53a 6222
00020c16 6223# Target libraries that we bootstrap.
ad1e5170 6224bootstrap_target_libs=,target-libgcc,
00020c16 6225
55ffb5ed
NN
6226# Figure out what language subdirectories are present.
6227# Look if the user specified --enable-languages="..."; if not, use
6228# the environment variable $LANGUAGES if defined. $LANGUAGES might
6229# go away some day.
6230# NB: embedded tabs in this IF block -- do not untabify
6231if test -d ${srcdir}/gcc; then
6232 if test x"${enable_languages+set}" != xset; then
6233 if test x"${LANGUAGES+set}" = xset; then
6234 enable_languages="${LANGUAGES}"
6235 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6236 else
6237 enable_languages=all
6238 fi
6239 else
6240 if test x"${enable_languages}" = x ||
6241 test x"${enable_languages}" = xyes;
6242 then
6243 echo configure.in: --enable-languages needs at least one language argument 1>&2
6244 exit 1
6245 fi
6246 fi
6247 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6248
7f26dfa3
FXC
6249 # 'f95' is the old name for the 'fortran' language. We issue a warning
6250 # and make the substitution.
6251 case ,${enable_languages}, in
6252 *,f95,*)
6253 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6254 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6255 ;;
6256 esac
6257
0823efed
DN
6258 # If bootstrapping, C++ must be enabled.
6259 case ",$enable_languages,:$enable_bootstrap" in
6260 *,c++,*:*) ;;
6261 *:yes)
ff3ac0f4
ILT
6262 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6263 enable_languages="${enable_languages},c++"
6264 else
0823efed 6265 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
6266 fi
6267 ;;
6268 esac
6269
55ffb5ed
NN
6270 # First scan to see if an enabled language requires some other language.
6271 # We assume that a given config-lang.in will list all the language
6272 # front ends it requires, even if some are required indirectly.
6273 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6274 case ${lang_frag} in
6275 ..) ;;
6276 # The odd quoting in the next line works around
6277 # an apparent bug in bash 1.12 on linux.
6278 ${srcdir}/gcc/[*]/config-lang.in) ;;
6279 *)
69ecd18f
ILT
6280 # From the config-lang.in, get $language, $lang_requires, and
6281 # $lang_requires_boot_languages.
55ffb5ed
NN
6282 language=
6283 lang_requires=
69ecd18f 6284 lang_requires_boot_languages=
55ffb5ed 6285 . ${lang_frag}
69ecd18f 6286 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
6287 case ,${enable_languages}, in
6288 *,$other,*) ;;
6289 *,all,*) ;;
6290 *,$language,*)
6291 echo " \`$other' language required by \`$language'; enabling" 1>&2
6292 enable_languages="${enable_languages},${other}"
6293 ;;
6294 esac
6295 done
69ecd18f
ILT
6296 for other in ${lang_requires_boot_languages} ; do
6297 if test "$other" != "c"; then
6298 case ,${enable_stage1_languages}, in
6299 *,$other,*) ;;
6300 *,all,*) ;;
6301 *)
6302 case ,${enable_languages}, in
6303 *,$language,*)
6304 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6305 enable_stage1_languages="$enable_stage1_languages,${other}"
6306 ;;
6307 esac
6308 ;;
6309 esac
6310 fi
6311 done
55ffb5ed
NN
6312 ;;
6313 esac
6314 done
6315
e1888513 6316 new_enable_languages=,c,
d7f09764
DN
6317
6318 # If LTO is enabled, add the LTO front end.
6319 extra_host_libiberty_configure_flags=
6320 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6321 case ,${enable_languages}, in
6322 *,lto,*) ;;
6323 *) enable_languages="${enable_languages},lto" ;;
6324 esac
1cd0b716 6325 if test "${build_lto_plugin}" = "yes" ; then
d7f09764
DN
6326 configdirs="$configdirs lto-plugin"
6327 extra_host_libiberty_configure_flags=--enable-shared
6328 fi
6329 fi
6330
6331
55ffb5ed 6332 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6333 potential_languages=,c,
55ffb5ed 6334
4da3b0f8
ILT
6335 enabled_target_libs=
6336 disabled_target_libs=
6337
55ffb5ed
NN
6338 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6339 case ${lang_frag} in
6340 ..) ;;
6341 # The odd quoting in the next line works around
6342 # an apparent bug in bash 1.12 on linux.
6343 ${srcdir}/gcc/[*]/config-lang.in) ;;
6344 *)
1c710c3c 6345 # From the config-lang.in, get $language, $target_libs,
2805b53a 6346 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6347 language=
6348 target_libs=
6349 lang_dirs=
1546bb64 6350 subdir_requires=
e1888513
PB
6351 boot_language=no
6352 build_by_default=yes
55ffb5ed 6353 . ${lang_frag}
e1888513
PB
6354 if test x${language} = x; then
6355 echo "${lang_frag} doesn't set \$language." 1>&2
6356 exit 1
6357 fi
6358
78767fd9 6359 if test "$language" = "c++"; then
0823efed 6360 boot_language=yes
00020c16
ILT
6361 fi
6362
178f875a 6363 add_this_lang=no
e1888513
PB
6364 case ,${enable_languages}, in
6365 *,${language},*)
d4a10d0a
SB
6366 # Language was explicitly selected; include it
6367 # unless it is C, which is enabled by default.
6368 if test "$language" != "c"; then
6369 add_this_lang=yes
6370 fi
55ffb5ed 6371 ;;
e1888513
PB
6372 *,all,*)
6373 # 'all' was selected, select it if it is a default language
178f875a
JM
6374 if test "$language" != "c"; then
6375 add_this_lang=${build_by_default}
6376 fi
55ffb5ed
NN
6377 ;;
6378 esac
6de9cd9a 6379
1546bb64 6380 # Disable languages that need other directories if these aren't available.
95695ad3 6381 for i in $subdir_requires; do
b6348cb3 6382 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
6383 case ,${enable_languages}, in
6384 *,${language},*)
6385 # Specifically requested language; tell them.
5213506e 6386 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64
PB
6387 ;;
6388 *)
6389 # Silently disable.
e1888513 6390 add_this_lang=unsupported
1546bb64
PB
6391 ;;
6392 esac
6393 done
6394
e1888513
PB
6395 # Disable Ada if no preexisting GNAT is available.
6396 case ,${enable_languages},:${language}:${have_gnat} in
6397 *,${language},*:ada:no)
6398 # Specifically requested language; tell them.
5213506e 6399 as_fn_error "GNAT is required to build $language" "$LINENO" 5
e1888513
PB
6400 ;;
6401 *:ada:no)
6402 # Silently disable.
6403 add_this_lang=unsupported
6404 ;;
6405 esac
6406
4fab7234
HPN
6407 # Disable a language that is unsupported by the target.
6408 case " $unsupported_languages " in
6409 *" $language "*)
e1888513 6410 add_this_lang=unsupported
4fab7234
HPN
6411 ;;
6412 esac
6413
6de9cd9a 6414 case $add_this_lang in
e1888513 6415 unsupported)
55ffb5ed 6416 # Remove language-dependent dirs.
4da3b0f8
ILT
6417 disabled_target_libs="$disabled_target_libs $target_libs"
6418 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 6419 ;;
e1888513
PB
6420 no)
6421 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
6422 disabled_target_libs="$disabled_target_libs $target_libs"
6423 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
6424 potential_languages="${potential_languages}${language},"
6425 ;;
6426 yes)
6427 new_enable_languages="${new_enable_languages}${language},"
6428 potential_languages="${potential_languages}${language},"
2805b53a 6429 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 6430 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
6431 case "${boot_language}:,$enable_stage1_languages," in
6432 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6433 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6434 case ",$stage1_languages," in
6435 *,$language,* | ,yes, | ,all,) ;;
6436 *) stage1_languages="${stage1_languages}${language}," ;;
6437 esac
00020c16
ILT
6438 # We need to bootstrap any supporting libraries.
6439 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6440 ;;
6441 esac
6442 ;;
55ffb5ed
NN
6443 esac
6444 ;;
6445 esac
6446 done
6447
4da3b0f8
ILT
6448 # Add target libraries which are only needed for disabled languages
6449 # to noconfigdirs.
6450 if test -n "$disabled_target_libs"; then
6451 for dir in $disabled_target_libs; do
6452 case " $enabled_target_libs " in
6453 *" ${dir} "*) ;;
6454 *) noconfigdirs="$noconfigdirs $dir" ;;
6455 esac
6456 done
6457 fi
6458
5213506e
RW
6459 # Check whether --enable-stage1-languages was given.
6460if test "${enable_stage1_languages+set}" = set; then :
6461 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6462 ,no,|,,)
6463 # Set it to something that will have no effect in the loop below
6464 enable_stage1_languages=c ;;
6465 ,yes,)
6466 enable_stage1_languages=`echo $new_enable_languages | \
6467 sed -e "s/^,//" -e "s/,$//" ` ;;
6468 *,all,*)
6469 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6470 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6471 esac
6472
6473 # Add "good" languages from enable_stage1_languages to stage1_languages,
6474 # while "bad" languages go in missing_languages. Leave no duplicates.
6475 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6476 case $potential_languages in
6477 *,$i,*)
6478 case $stage1_languages in
6479 *,$i,*) ;;
6480 *) stage1_languages="$stage1_languages$i," ;;
6481 esac ;;
6482 *)
6483 case $missing_languages in
6484 *,$i,*) ;;
6485 *) missing_languages="$missing_languages$i," ;;
6486 esac ;;
6487 esac
6488 done
5213506e
RW
6489fi
6490
e1888513
PB
6491
6492 # Remove leading/trailing commas that were added for simplicity
6493 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6494 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6495 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6496 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6497
55ffb5ed 6498 if test "x$missing_languages" != x; then
5213506e 6499 as_fn_error "
0cf085e4 6500The following requested languages could not be built: ${missing_languages}
5213506e 6501Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6502 fi
55ffb5ed
NN
6503 if test "x$new_enable_languages" != "x$enable_languages"; then
6504 echo The following languages will be built: ${new_enable_languages}
e1888513 6505 enable_languages="$new_enable_languages"
55ffb5ed 6506 fi
e1888513 6507
1c710c3c 6508
b2eaac4a 6509 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6510fi
6511
27079765
AH
6512# Handle --disable-<component> generically.
6513for dir in $configdirs $build_configdirs $target_configdirs ; do
6514 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6515 varname=`echo $dirname | sed -e s/+/_/g`
6516 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6517 noconfigdirs="$noconfigdirs $dir"
6518 fi
6519done
6520
7cd0cf9c 6521# Check for Boehm's garbage collector
5213506e
RW
6522# Check whether --enable-objc-gc was given.
6523if test "${enable_objc_gc+set}" = set; then :
6524 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 6525 *,objc,*:*:yes:*target-boehm-gc*)
5213506e 6526 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
7cd0cf9c
DA
6527 ;;
6528esac
5213506e
RW
6529fi
6530
7cd0cf9c
DA
6531
6532# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
6533case ,${enable_languages},:${enable_objc_gc} in
6534 *,objc,*:yes)
7cd0cf9c
DA
6535 # Keep target-boehm-gc if requested for Objective-C.
6536 ;;
7cd0cf9c 6537 *)
2a79fd67
DA
6538 # Otherwise remove target-boehm-gc depending on target-libjava.
6539 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6540 noconfigdirs="$noconfigdirs target-boehm-gc"
6541 fi
7cd0cf9c
DA
6542 ;;
6543esac
6544
647545a5 6545# Disable libitm and libsanitizer if we're not building C++
99776ebd 6546case ,${enable_languages}, in
9696698a 6547 *,c++,*) ;;
99776ebd 6548 *)
647545a5 6549 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
99776ebd
RH
6550 ;;
6551esac
6552
ee6a22df
L
6553# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6554# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6555# If we have the source for $noconfigdirs entries, add them to $notsupp.
6556
6557notsupp=""
6558for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6559 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6560 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6561 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6562 if test -r $srcdir/$dirname/configure ; then
6563 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6564 true
6565 else
6566 notsupp="$notsupp $dir"
6567 fi
6568 fi
6569 fi
ee6a22df
L
6570 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6571 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6572 if test -r $srcdir/$dirname/configure ; then
6573 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6574 true
6575 else
6576 notsupp="$notsupp $dir"
6577 fi
6578 fi
6579 fi
55ffb5ed
NN
6580 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6581 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6582 if test -r $srcdir/$dirname/configure ; then
6583 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6584 true
6585 else
6586 notsupp="$notsupp $dir"
6587 fi
6588 fi
6589 fi
6590done
6591
55ffb5ed
NN
6592# Quietly strip out all directories which aren't configurable in this tree.
6593# This relies on all configurable subdirectories being autoconfiscated, which
6594# is now the case.
23f6b2f9
PB
6595build_configdirs_all="$build_configdirs"
6596build_configdirs=
6597for i in ${build_configdirs_all} ; do
1c710c3c 6598 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
6599 if test -f ${srcdir}/$j/configure ; then
6600 build_configdirs="${build_configdirs} $i"
6601 fi
6602done
6603
55ffb5ed
NN
6604configdirs_all="$configdirs"
6605configdirs=
6606for i in ${configdirs_all} ; do
6607 if test -f ${srcdir}/$i/configure ; then
6608 configdirs="${configdirs} $i"
6609 fi
6610done
23f6b2f9 6611
55ffb5ed
NN
6612target_configdirs_all="$target_configdirs"
6613target_configdirs=
6614for i in ${target_configdirs_all} ; do
1c710c3c 6615 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
6616 if test -f ${srcdir}/$j/configure ; then
6617 target_configdirs="${target_configdirs} $i"
6618 fi
6619done
6620
6621# Produce a warning message for the subdirs we can't configure.
6622# This isn't especially interesting in the Cygnus tree, but in the individual
6623# FSF releases, it's important to let people know when their machine isn't
6624# supported by the one or two programs in a package.
6625
6626if test -n "${notsupp}" && test -z "${norecursion}" ; then
6627 # If $appdirs is non-empty, at least one of those directories must still
6628 # be configured, or we error out. (E.g., if the gas release supports a
6629 # specified target in some subdirs but not the gas subdir, we shouldn't
6630 # pretend that all is well.)
6631 if test -n "$appdirs" ; then
6632 for dir in $appdirs ; do
6633 if test -r $dir/Makefile.in ; then
6634 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6635 appdirs=""
6636 break
6637 fi
23f6b2f9 6638 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
6639 appdirs=""
6640 break
6641 fi
6642 fi
6643 done
6644 if test -n "$appdirs" ; then
6645 echo "*** This configuration is not supported by this package." 1>&2
6646 exit 1
6647 fi
6648 fi
6649 # Okay, some application will build, or we don't care to check. Still
6650 # notify of subdirs not getting built.
6651 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6652 echo " ${notsupp}" 1>&2
6653 echo " (Any other directories should still work fine.)" 1>&2
6654fi
6655
6656case "$host" in
6657 *msdosdjgpp*)
6658 enable_gdbtk=no ;;
6659esac
6660
c3a86da9
DJ
6661# To find our prefix, in gcc_cv_tool_prefix.
6662
6663# The user is always right.
6664if test "${PATH_SEPARATOR+set}" != set; then
6665 echo "#! /bin/sh" >conf$$.sh
6666 echo "exit 0" >>conf$$.sh
6667 chmod +x conf$$.sh
6668 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6669 PATH_SEPARATOR=';'
6670 else
6671 PATH_SEPARATOR=:
6672 fi
6673 rm -f conf$$.sh
6674fi
6675
6676
6677
6678if test "x$exec_prefix" = xNONE; then
6679 if test "x$prefix" = xNONE; then
6680 gcc_cv_tool_prefix=$ac_default_prefix
6681 else
6682 gcc_cv_tool_prefix=$prefix
6683 fi
6684else
6685 gcc_cv_tool_prefix=$exec_prefix
6686fi
6687
6688# If there is no compiler in the tree, use the PATH only. In any
6689# case, if there is no compiler in the tree nobody should use
6690# AS_FOR_TARGET and LD_FOR_TARGET.
6691if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6692 gcc_version=`cat $srcdir/gcc/BASE-VER`
6693 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6694 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6695 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6696 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6697 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6698 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6699else
6700 gcc_cv_tool_dirs=
6701fi
6702
6703if test x$build = x$target && test -n "$md_exec_prefix"; then
6704 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6705fi
6706
6707
6708
55ffb5ed
NN
6709copy_dirs=
6710
1c710c3c 6711
5213506e
RW
6712# Check whether --with-build-sysroot was given.
6713if test "${with_build_sysroot+set}" = set; then :
6714 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
6715 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6716 fi
6717else
6718 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 6719fi
526635cb
MM
6720
6721
c8aea42c 6722
5213506e
RW
6723
6724# Check whether --with-debug-prefix-map was given.
6725if test "${with_debug_prefix_map+set}" = set; then :
6726 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
6727 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6728 for debug_map in $withval; do
6729 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6730 done
6731 fi
6732else
6733 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
6734fi
6735
c8aea42c
PB
6736
6737
1c8bd6a3
PB
6738# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6739# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6740# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6741# We want to ensure that TARGET libraries (which we know are built with
6742# gcc) are built with "-O2 -g", so include those options when setting
6743# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6744if test "x$CFLAGS_FOR_TARGET" = x; then
6745 CFLAGS_FOR_TARGET=$CFLAGS
6746 case " $CFLAGS " in
6747 *" -O2 "*) ;;
bd8e704f 6748 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6749 esac
6750 case " $CFLAGS " in
6751 *" -g "* | *" -g3 "*) ;;
bd8e704f 6752 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6753 esac
6754fi
6755
6756
6757if test "x$CXXFLAGS_FOR_TARGET" = x; then
6758 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6759 case " $CXXFLAGS " in
6760 *" -O2 "*) ;;
bd8e704f 6761 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6762 esac
6763 case " $CXXFLAGS " in
6764 *" -g "* | *" -g3 "*) ;;
bd8e704f 6765 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6766 esac
6767fi
6768
6769
6f57bdf6
DK
6770
6771
55ffb5ed
NN
6772# Handle --with-headers=XXX. If the value is not "yes", the contents of
6773# the named directory are copied to $(tooldir)/sys-include.
6774if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6775 if test x${is_cross_compiler} = xno ; then
6776 echo 1>&2 '***' --with-headers is only supported when cross compiling
6777 exit 1
6778 fi
6779 if test x"${with_headers}" != xyes ; then
c3a86da9 6780 x=${gcc_cv_tool_prefix}
1c710c3c 6781 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
6782 fi
6783fi
6784
6785# Handle --with-libs=XXX. If the value is not "yes", the contents of
6786# the name directories are copied to $(tooldir)/lib. Multiple directories
6787# are permitted.
6788if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6789 if test x${is_cross_compiler} = xno ; then
6790 echo 1>&2 '***' --with-libs is only supported when cross compiling
6791 exit 1
6792 fi
6793 if test x"${with_libs}" != xyes ; then
6794 # Copy the libraries in reverse order, so that files in the first named
6795 # library override files in subsequent libraries.
c3a86da9 6796 x=${gcc_cv_tool_prefix}
55ffb5ed 6797 for l in ${with_libs}; do
1c710c3c 6798 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
6799 done
6800 fi
6801fi
6802
d7f09764 6803# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
6804#
6805# This is done by determining whether or not the appropriate directory
6806# is available, and by checking whether or not specific configurations
6807# have requested that this magic not happen.
1c710c3c
DJ
6808#
6809# The command line options always override the explicit settings in
e8b05380
PB
6810# configure.in, and the settings in configure.in override this magic.
6811#
1c710c3c 6812# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 6813# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
6814# --without-gnu-ld options for the configure script. Similarly, if
6815# the default is to use the included zlib and you don't want to do that,
6816# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
6817
6818if test x${use_gnu_as} = x &&
6819 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6820 with_gnu_as=yes
6821 extra_host_args="$extra_host_args --with-gnu-as"
6822fi
6823
6824if test x${use_gnu_ld} = x &&
5afab7ad 6825 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
6826 with_gnu_ld=yes
6827 extra_host_args="$extra_host_args --with-gnu-ld"
6828fi
6829
d7f09764
DN
6830if test x${use_included_zlib} = x &&
6831 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6832 :
6833else
6834 with_system_zlib=yes
6835 extra_host_args="$extra_host_args --with-system-zlib"
6836fi
6837
e8b05380
PB
6838# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6839# can detect this case.
6840
6841if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6842 with_newlib=yes
6843 extra_host_args="$extra_host_args --with-newlib"
6844fi
6845
55ffb5ed
NN
6846# Handle ${copy_dirs}
6847set fnord ${copy_dirs}
6848shift
6849while test $# != 0 ; do
6850 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6851 :
6852 else
6853 echo Copying $1 to $2
6854
6855 # Use the install script to create the directory and all required
6856 # parent directories.
6857 if test -d $2 ; then
6858 :
6859 else
6860 echo >config.temp
6861 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6862 fi
6863
6864 # Copy the directory, assuming we have tar.
6865 # FIXME: Should we use B in the second tar? Not all systems support it.
6866 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6867
6868 # It is the responsibility of the user to correctly adjust all
6869 # symlinks. If somebody can figure out how to handle them correctly
6870 # here, feel free to add the code.
6871
6872 echo $1 > $2/COPIED
6873 fi
6874 shift; shift
6875done
6876
e8b05380
PB
6877# Determine a target-dependent exec_prefix that the installed
6878# gcc will search in. Keep this list sorted by triplet, with
6879# the *-*-osname triplets last.
6880md_exec_prefix=
6881case "${target}" in
30b74385 6882 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
6883 md_exec_prefix=/dev/env/DJDIR/bin
6884 ;;
e8b05380 6885 *-*-hpux* | \
e8b05380 6886 *-*-nto-qnx* | \
6de66370 6887 *-*-solaris2*)
e8b05380
PB
6888 md_exec_prefix=/usr/ccs/bin
6889 ;;
6890esac
6891
671aa708
NN
6892extra_arflags_for_target=
6893extra_nmflags_for_target=
6894extra_ranlibflags_for_target=
6895target_makefile_frag=/dev/null
6896case "${target}" in
58e24147
AM
6897 spu-*-*)
6898 target_makefile_frag="config/mt-spu"
6899 ;;
d91491e5 6900 mips*-sde-elf* | mips*-mti-elf*)
4bf6c438
RS
6901 target_makefile_frag="config/mt-sde"
6902 ;;
1ec3b87b
RS
6903 mipsisa*-*-elfoabi*)
6904 target_makefile_frag="config/mt-mips-elfoabi"
6905 ;;
08d0963a
RS
6906 mips*-*-*linux* | mips*-*-gnu*)
6907 target_makefile_frag="config/mt-mips-gnu"
6908 ;;
416ac4d4 6909 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 6910 target_makefile_frag="config/mt-gnu"
671aa708
NN
6911 ;;
6912 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 6913 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
6914 # commands to handle both 32-bit and 64-bit objects. These flags are
6915 # harmless if we're using GNU nm or ar.
6916 extra_arflags_for_target=" -X32_64"
6917 extra_nmflags_for_target=" -B -X32_64"
6918 ;;
671aa708
NN
6919esac
6920
6921alphaieee_frag=/dev/null
6922case $target in
6923 alpha*-*-*)
6924 # This just makes sure to use the -mieee option to build target libs.
6925 # This should probably be set individually by each library.
6926 alphaieee_frag="config/mt-alphaieee"
6927 ;;
6928esac
6929
6930# If --enable-target-optspace always use -Os instead of -O2 to build
6931# the target libraries, similarly if it is not specified, use -Os
6932# on selected platforms.
6933ospace_frag=/dev/null
6934case "${enable_target_optspace}:${target}" in
6935 yes:*)
6936 ospace_frag="config/mt-ospace"
6937 ;;
6938 :d30v-*)
6939 ospace_frag="config/mt-d30v"
6940 ;;
6941 :m32r-* | :d10v-* | :fr30-*)
6942 ospace_frag="config/mt-ospace"
6943 ;;
6944 no:* | :*)
6945 ;;
6946 *)
6947 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6948 ;;
6949esac
6950
671aa708
NN
6951# Some systems (e.g., one of the i386-aix systems the gas testers are
6952# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 6953tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
6954build_tooldir=${tooldir}
6955
671aa708
NN
6956# Create a .gdbinit file which runs the one in srcdir
6957# and tells GDB to look there for source files.
6958
6959if test -r ${srcdir}/.gdbinit ; then
6960 case ${srcdir} in
6961 .) ;;
6962 *) cat > ./.gdbinit <<EOF
6963# ${NO_EDIT}
6964dir ${srcdir}
6965dir .
6966source ${srcdir}/.gdbinit
6967EOF
6968 ;;
6969 esac
6970fi
6971
671aa708
NN
6972# Make sure that the compiler is able to generate an executable. If it
6973# can't, we are probably in trouble. We don't care whether we can run the
6974# executable--we might be using a cross compiler--we only care whether it
6975# can be created. At this point the main configure script has set CC.
6976we_are_ok=no
6977echo "int main () { return 0; }" > conftest.c
6978${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6979if test $? = 0 ; then
6980 if test -s conftest || test -s conftest.exe ; then
6981 we_are_ok=yes
6982 fi
1c710c3c 6983fi
671aa708
NN
6984case $we_are_ok in
6985 no)
6986 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6987 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6988 rm -f conftest*
6989 exit 1
6990 ;;
6991esac
6992rm -f conftest*
6993
d89f0ad6 6994# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
6995case "${host}" in
6996 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 6997 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 6998 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
6999 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7000esac
7001
d89f0ad6
AL
7002# On systems where the dynamic library environment variable is PATH,
7003# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7004# built executables to PATH.
7005if test "$RPATH_ENVVAR" = PATH; then
7006 GCC_SHLIB_SUBDIR=/shlib
7007else
7008 GCC_SHLIB_SUBDIR=
7009fi
7010
671aa708
NN
7011# Record target_configdirs and the configure arguments for target and
7012# build configuration in Makefile.
7013target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 7014build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 7015
ad1e5170
JR
7016# If we are building libgomp, bootstrap it.
7017if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7018 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7019fi
7020
ac8701fe
L
7021# If we are building libsanitizer, bootstrap it.
7022if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1 ; then
7023 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7024fi
7025
671aa708
NN
7026# Determine whether gdb needs tk/tcl or not.
7027# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7028# and in that case we want gdb to be built without tk. Ugh!
7029# In fact I believe gdb is the *only* package directly dependent on tk,
7030# so we should be able to put the 'maybe's in unconditionally and
7031# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7032# 100% sure that that's safe though.
e914a571 7033
b4f96efe 7034gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
7035case "$enable_gdbtk" in
7036 no)
7037 GDB_TK="" ;;
e914a571
AC
7038 yes)
7039 GDB_TK="${gdb_tk}" ;;
671aa708 7040 *)
e914a571
AC
7041 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7042 # distro. Eventually someone will fix this and move Insight, nee
7043 # gdbtk to a separate directory.
7044 if test -d ${srcdir}/gdb/gdbtk ; then
7045 GDB_TK="${gdb_tk}"
7046 else
7047 GDB_TK=""
7048 fi
7049 ;;
671aa708 7050esac
ef9db8d5
DJ
7051CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7052INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 7053
60975492 7054# Strip out unwanted targets.
8b87bb96
NN
7055
7056# While at that, we remove Makefiles if we were started for recursive
7057# configuration, so that the top-level Makefile reconfigures them,
7058# like we used to do when configure itself was recursive.
8b87bb96 7059
3e54529c
RW
7060# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7061# but now we're fixing up the Makefile ourselves with the additional
7062# commands passed to AC_CONFIG_FILES. Use separate variables
7063# extrasub-{build,host,target} not because there is any reason to split
7064# the substitutions up that way, but only to remain below the limit of
7065# 99 commands in a script, for HP-UX sed.
7066# Do not nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 7067
79cd2b23
RW
7068case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7069 yes:yes:*\ gold\ *:*,c++,*) ;;
7070 yes:yes:*\ gold\ *:*)
7071 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7072 ;;
7073esac
7074
ce521a9c 7075# Adjust the toplevel makefile according to whether bootstrap was selected.
e12c4094 7076case $enable_bootstrap in
f516a7da 7077 yes)
e12c4094
AO
7078 bootstrap_suffix=bootstrap
7079 BUILD_CONFIG=bootstrap-debug
7080 ;;
f516a7da 7081 no)
e12c4094
AO
7082 bootstrap_suffix=no-bootstrap
7083 BUILD_CONFIG=
7084 ;;
f516a7da
PB
7085esac
7086
e12c4094
AO
7087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7088$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
5646b7b9
AO
7089
7090
7091# Check whether --with-build-config was given.
7092if test "${with_build_config+set}" = set; then :
7093 withval=$with_build_config; case $with_build_config in
7094 yes) with_build_config= ;;
7095 no) with_build_config= BUILD_CONFIG= ;;
7096 esac
7097fi
7098
7099
e12c4094
AO
7100if test "x${with_build_config}" != x; then
7101 BUILD_CONFIG=$with_build_config
7102else
7103 case $BUILD_CONFIG in
7104 bootstrap-debug)
7105 if echo "int f (void) { return 0; }" > conftest.c &&
7106 ${CC} -c conftest.c &&
7107 mv conftest.o conftest.o.g0 &&
7108 ${CC} -c -g conftest.c &&
7109 mv conftest.o conftest.o.g &&
615c8ffa 7110 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
e12c4094
AO
7111 :
7112 else
7113 BUILD_CONFIG=
7114 fi
7115 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7116 ;;
7117 esac
7118fi
7119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7120$as_echo "$BUILD_CONFIG" >&6; }
7121
7122
3e54529c 7123extrasub_build=
23f6b2f9 7124for module in ${build_configdirs} ; do
5607edfd
PB
7125 if test -z "${no_recursion}" \
7126 && test -f ${build_subdir}/${module}/Makefile; then
7127 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7128 rm -f ${build_subdir}/${module}/Makefile
7129 fi
3e54529c 7130 extrasub_build="$extrasub_build
5607edfd
PB
7131/^@if build-$module\$/d
7132/^@endif build-$module\$/d
7133/^@if build-$module-$bootstrap_suffix\$/d
7134/^@endif build-$module-$bootstrap_suffix\$/d"
7135done
3e54529c 7136extrasub_host=
5607edfd 7137for module in ${configdirs} ; do
a6fbc1e2 7138 if test -z "${no_recursion}"; then
f063a9ed 7139 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
7140 if test -f ${file}; then
7141 echo 1>&2 "*** removing ${file} to force reconfigure"
7142 rm -f ${file}
7143 fi
7144 done
5607edfd 7145 fi
3e54529c 7146 extrasub_host="$extrasub_host
5607edfd
PB
7147/^@if $module\$/d
7148/^@endif $module\$/d
7149/^@if $module-$bootstrap_suffix\$/d
7150/^@endif $module-$bootstrap_suffix\$/d"
7151done
3e54529c 7152extrasub_target=
5607edfd
PB
7153for module in ${target_configdirs} ; do
7154 if test -z "${no_recursion}" \
7155 && test -f ${target_subdir}/${module}/Makefile; then
7156 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7157 rm -f ${target_subdir}/${module}/Makefile
7158 fi
00020c16
ILT
7159
7160 # We only bootstrap target libraries listed in bootstrap_target_libs.
7161 case $bootstrap_target_libs in
7162 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7163 *) target_bootstrap_suffix=no-bootstrap ;;
7164 esac
7165
3e54529c 7166 extrasub_target="$extrasub_target
5607edfd
PB
7167/^@if target-$module\$/d
7168/^@endif target-$module\$/d
00020c16
ILT
7169/^@if target-$module-$target_bootstrap_suffix\$/d
7170/^@endif target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
7171done
7172
3e54529c
RW
7173# Do the final fixup along with target modules.
7174extrasub_target="$extrasub_target
60975492 7175/^@if /,/^@endif /d"
671aa708
NN
7176
7177# Create the serialization dependencies. This uses a temporary file.
7178
5213506e
RW
7179# Check whether --enable-serial-configure was given.
7180if test "${enable_serial_configure+set}" = set; then :
7181 enableval=$enable_serial_configure;
7182fi
ade82b16
AO
7183
7184
bf1d3e81
NN
7185case ${enable_serial_configure} in
7186 yes)
7187 enable_serial_build_configure=yes
7188 enable_serial_host_configure=yes
7189 enable_serial_target_configure=yes
7190 ;;
7191esac
7192
671aa708
NN
7193# These force 'configure's to be done one at a time, to avoid problems
7194# with contention over a shared config.cache.
7195rm -f serdep.tmp
ade82b16 7196echo '# serdep.tmp' > serdep.tmp
671aa708 7197olditem=
bf1d3e81 7198test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
7199for item in ${build_configdirs} ; do
7200 case ${olditem} in
7201 "") ;;
ade82b16 7202 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
7203 esac
7204 olditem=${item}
7205done
7206olditem=
bf1d3e81 7207test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
7208for item in ${configdirs} ; do
7209 case ${olditem} in
7210 "") ;;
ade82b16 7211 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
7212 esac
7213 olditem=${item}
7214done
7215olditem=
bf1d3e81 7216test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
7217for item in ${target_configdirs} ; do
7218 case ${olditem} in
7219 "") ;;
ade82b16 7220 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
7221 esac
7222 olditem=${item}
7223done
7224serialization_dependencies=serdep.tmp
7225
7226
ade82b16 7227# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 7228# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
7229# might not want to pass down to subconfigures. The exception being
7230# --cache-file=/dev/null, which is used to turn off the use of cache
7231# files altogether, and which should be passed on to subconfigures.
7232# Also strip program-prefix, program-suffix, and program-transform-name,
7233# so that we can pass down a consistent program-transform-name.
1c710c3c 7234baseargs=
29a63921 7235tbaseargs=
1c710c3c
DJ
7236keep_next=no
7237skip_next=no
7238eval "set -- $ac_configure_args"
44bfc3ac
DJ
7239for ac_arg
7240do
1c710c3c
DJ
7241 if test X"$skip_next" = X"yes"; then
7242 skip_next=no
7243 continue
7244 fi
7245 if test X"$keep_next" = X"yes"; then
7246 case $ac_arg in
7247 *\'*)
7248 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7249 esac
7250 baseargs="$baseargs '$ac_arg'"
29a63921 7251 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
7252 keep_next=no
7253 continue
7254 fi
7255
7256 # Handle separated arguments. Based on the logic generated by
7257 # autoconf 2.59.
7258 case $ac_arg in
7259 *=* | --config-cache | -C | -disable-* | --disable-* \
7260 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7261 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7262 | -with-* | --with-* | -without-* | --without-* | --x)
7263 separate_arg=no
7264 ;;
7265 -*)
7266 separate_arg=yes
7267 ;;
7268 *)
7269 separate_arg=no
7270 ;;
7271 esac
7272
29a63921
AO
7273 skip_targ=no
7274 case $ac_arg in
7275
7276 --with-* | --without-*)
7277 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7278
7279 case $libopt in
7280 *[-_]include)
7281 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7282 ;;
7283 *[-_]lib)
7284 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7285 ;;
7286 *)
7287 lib=$libopt
7288 ;;
7289 esac
7290
7291
7292 case $lib in
33ad93b9 7293 mpc | mpfr | gmp | cloog)
29a63921
AO
7294 # If we're processing --with-$lib, --with-$lib-include or
7295 # --with-$lib-lib, for one of the libs above, and target is
7296 # different from host, don't pass the current argument to any
7297 # target library's configure.
7298 if test x$is_cross_compiler = xyes; then
7299 skip_targ=yes
7300 fi
7301 ;;
7302 esac
7303 ;;
7304 esac
7305
1c710c3c 7306 case "$ac_arg" in
f1a036e4
NC
7307 --cache-file=/dev/null | \
7308 -cache-file=/dev/null )
7309 # Handled here to avoid the test to skip args below.
7310 baseargs="$baseargs '$ac_arg'"
29a63921 7311 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
7312 # Assert: $separate_arg should always be no.
7313 keep_next=$separate_arg
7314 ;;
1c710c3c
DJ
7315 --no*)
7316 continue
7317 ;;
7318 --c* | \
7319 --sr* | \
7320 --ho* | \
7321 --bu* | \
7322 --t* | \
7323 --program-* | \
7324 -cache_file* | \
7325 -srcdir* | \
7326 -host* | \
7327 -build* | \
7328 -target* | \
7329 -program-prefix* | \
7330 -program-suffix* | \
7331 -program-transform-name* )
7332 skip_next=$separate_arg
7333 continue
7334 ;;
7335 -*)
7336 # An option. Add it.
7337 case $ac_arg in
7338 *\'*)
7339 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7340 esac
7341 baseargs="$baseargs '$ac_arg'"
29a63921
AO
7342 if test X"$skip_targ" = Xno; then
7343 tbaseargs="$tbaseargs '$ac_arg'"
7344 fi
1c710c3c
DJ
7345 keep_next=$separate_arg
7346 ;;
7347 *)
7348 # Either a variable assignment, or a nonopt (triplet). Don't
7349 # pass it down; let the Makefile handle this.
7350 continue
7351 ;;
7352 esac
7353done
7354# Remove the initial space we just introduced and, as these will be
7355# expanded by make, quote '$'.
7356baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7357
43bb47c2
DJ
7358# Add in --program-transform-name, after --program-prefix and
7359# --program-suffix have been applied to it. Autoconf has already
7360# doubled dollar signs and backslashes in program_transform_name; we want
7361# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7362# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7363# Also, because we want to override the logic in subdir configure scripts to
7364# choose program_transform_name, replace any s,x,x, with s,y,y,.
7365sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7366${program_transform_name}
7367EOF_SED
7368gcc_transform_name=`cat conftestsed.out`
7369rm -f conftestsed.out
7370baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 7371tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7372if test "$silent" = yes; then
7373 baseargs="$baseargs --silent"
29a63921 7374 tbaseargs="$tbaseargs --silent"
d9acb717 7375fi
0115d4a3 7376baseargs="$baseargs --disable-option-checking"
29a63921 7377tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 7378
ffedf511
RW
7379# Record and document user additions to sub configure arguments.
7380
7381
7382
7383
671aa708
NN
7384# For the build-side libraries, we just need to pretend we're native,
7385# and not use the same cache file. Multilibs are neither needed nor
7386# desired.
ffedf511 7387build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
671aa708
NN
7388
7389# For host modules, accept cache file option, or specification as blank.
7390case "${cache_file}" in
7391"") # empty
7392 cache_file_option="" ;;
7393/* | [A-Za-z]:[\\/]* ) # absolute path
7394 cache_file_option="--cache-file=${cache_file}" ;;
7395*) # relative path
7396 cache_file_option="--cache-file=../${cache_file}" ;;
7397esac
7398
09438bde
NN
7399# Host dirs don't like to share a cache file either, horribly enough.
7400# This seems to be due to autoconf 2.5x stupidity.
ffedf511 7401host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 7402
29a63921 7403target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
7404
7405# Passing a --with-cross-host argument lets the target libraries know
7406# whether they are being built with a cross-compiler or being built
7407# native. However, it would be better to use other mechanisms to make the
7408# sorts of decisions they want to make on this basis. Please consider
7409# this option to be deprecated. FIXME.
7410if test x${is_cross_compiler} = xyes ; then
1c710c3c 7411 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7412fi
7413
dc683a3f
RW
7414# Default to --enable-multilib.
7415if test x${enable_multilib} = x ; then
671aa708 7416 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 7417fi
671aa708
NN
7418
7419# Pass --with-newlib if appropriate. Note that target_configdirs has
7420# changed from the earlier setting of with_newlib.
7421if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7422 target_configargs="--with-newlib ${target_configargs}"
7423fi
7424
6b9eb62c
NN
7425# Different target subdirs use different values of certain variables
7426# (notably CXX). Worse, multilibs use *lots* of different values.
7427# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7428# it doesn't automatically accept command-line overrides of them.
7429# This means it's not safe for target subdirs to share a cache file,
7430# which is disgusting, but there you have it. Hopefully this can be
7431# fixed in future. It's still worthwhile to use a cache file for each
7432# directory. I think.
7433
bebcd931
MS
7434# Pass the appropriate --build, --host, --target and --cache-file arguments.
7435# We need to pass --target, as newer autoconf's requires consistency
7436# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7437target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7438
671aa708
NN
7439FLAGS_FOR_TARGET=
7440case " $target_configdirs " in
7441 *" newlib "*)
7442 case " $target_configargs " in
7443 *" --with-newlib "*)
7444 case "$target" in
5d571eaa 7445 *-cygwin*)
443e6238 7446 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5d571eaa 7447 ;;
671aa708
NN
7448 esac
7449
7450 # If we're not building GCC, don't discard standard headers.
7451 if test -d ${srcdir}/gcc; then
7452 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7453
7454 if test "${build}" != "${host}"; then
7455 # On Canadian crosses, CC_FOR_TARGET will have already been set
7456 # by `configure', so we won't have an opportunity to add -Bgcc/
7457 # to it. This is right: we don't want to search that directory
7458 # for binaries, but we want the header files in there, so add
7459 # them explicitly.
0463992b 7460 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
7461
7462 # Someone might think of using the pre-installed headers on
7463 # Canadian crosses, in case the installed compiler is not fully
7464 # compatible with the compiler being built. In this case, it
7465 # would be better to flag an error than risking having
7466 # incompatible object files being constructed. We can't
7467 # guarantee that an error will be flagged, but let's hope the
7468 # compiler will do it, when presented with incompatible header
7469 # files.
7470 fi
7471 fi
7472
7473 case "${target}-${is_cross_compiler}" in
f2a0e225 7474 i[3456789]86-*-linux*-no)
671aa708
NN
7475 # Here host == target, so we don't need to build gcc,
7476 # so we don't want to discard standard headers.
7477 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7478 ;;
7479 *)
7480 # If we're building newlib, use its generic headers last, but search
7481 # for any libc-related directories first (so make it the last -B
7482 # switch).
7483 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
c03353e2
RIL
7484
7485 # If we're building libgloss, find the startup file, simulator library
7486 # and linker script.
7487 case " $target_configdirs " in
7488 *" libgloss "*)
7489 # Look for startup file, simulator library and maybe linker script.
7490 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7491 # Look for libnosys.a in case the target needs it.
7492 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7493 # Most targets have the linker script in the source directory.
7494 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7495 ;;
7496 esac
671aa708
NN
7497 ;;
7498 esac
7499 ;;
7500 esac
7501 ;;
7502esac
5d571eaa 7503
b91f0a41 7504case "$target" in
5d571eaa
OS
7505 x86_64-*mingw* | *-w64-mingw*)
7506 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7507 # however, use a symlink named 'mingw' in ${prefix} .
7508 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7509 ;;
7510 *-mingw*)
7511 # MinGW can't be handled as Cygwin above since it does not use newlib.
7512 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'
7513 ;;
b91f0a41 7514esac
671aa708 7515
6691a79e
ME
7516# Allow the user to override the flags for
7517# our build compiler if desired.
f019adc1
MF
7518if test x"${build}" = x"${host}" ; then
7519 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7520 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7521 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7522fi
6691a79e 7523
671aa708
NN
7524# On Canadian crosses, we'll be searching the right directories for
7525# the previously-installed cross compiler, so don't bother to add
7526# flags for directories within the install tree of the compiler
7527# being built; programs in there won't even run.
7528if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7529 # Search for pre-installed headers if nothing else fits.
9124bc53 7530 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
671aa708
NN
7531fi
7532
7533if test "x${use_gnu_ld}" = x &&
7534 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7535 # Arrange for us to find uninstalled linker scripts.
215c351a 7536 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
7537fi
7538
e88a2c09
DD
7539# Search for other target-specific linker scripts and such.
7540case "${target}" in
3e19841a
PB
7541 mep*)
7542 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7543 ;;
e88a2c09
DD
7544esac
7545
671aa708 7546# Makefile fragments.
7b61653a
PE
7547for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7548do
7549 eval fragval=\$$frag
7550 if test $fragval != /dev/null; then
7551 eval $frag=${srcdir}/$fragval
7552 fi
7553done
671aa708
NN
7554
7555
7556
7557
7558
7559# Miscellanea: directories, flags, etc.
7560
7561
7562
7563
7564
7565
7566
d89f0ad6 7567
23f6b2f9 7568# Build module lists & subconfigure args.
671aa708
NN
7569
7570
7571
2abefe3d
PB
7572# Host module lists & subconfigure args.
7573
7574
7575
aae29963 7576
2abefe3d
PB
7577# Target module lists & subconfigure args.
7578
7579
7580
7581# Build tools.
7582
7583
7584
0999159b
PB
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
2abefe3d
PB
7599# Generate default definitions for YACC, M4, LEX and other programs that run
7600# on the build machine. These are used if the Makefile can't locate these
7601# programs in objdir.
7602MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7603
7604for ac_prog in 'bison -y' byacc yacc
7605do
1c710c3c 7606 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7607set dummy $ac_prog; ac_word=$2
5213506e
RW
7608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7609$as_echo_n "checking for $ac_word... " >&6; }
7610if test "${ac_cv_prog_YACC+set}" = set; then :
7611 $as_echo_n "(cached) " >&6
2abefe3d
PB
7612else
7613 if test -n "$YACC"; then
7614 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7615else
1c710c3c
DJ
7616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617for as_dir in $PATH
7618do
7619 IFS=$as_save_IFS
7620 test -z "$as_dir" && as_dir=.
5213506e
RW
7621 for ac_exec_ext in '' $ac_executable_extensions; do
7622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7623 ac_cv_prog_YACC="$ac_prog"
5213506e 7624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7625 break 2
7626 fi
7627done
5213506e
RW
7628 done
7629IFS=$as_save_IFS
1c710c3c 7630
2abefe3d
PB
7631fi
7632fi
1c710c3c 7633YACC=$ac_cv_prog_YACC
2abefe3d 7634if test -n "$YACC"; then
5213506e
RW
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7636$as_echo "$YACC" >&6; }
2abefe3d 7637else
5213506e
RW
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7639$as_echo "no" >&6; }
2abefe3d
PB
7640fi
7641
5213506e 7642
1c710c3c 7643 test -n "$YACC" && break
2abefe3d
PB
7644done
7645test -n "$YACC" || YACC="$MISSING bison -y"
7646
7647case " $build_configdirs " in
7648 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
7649esac
7650
7651for ac_prog in bison
7652do
1c710c3c 7653 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7654set dummy $ac_prog; ac_word=$2
5213506e
RW
7655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656$as_echo_n "checking for $ac_word... " >&6; }
7657if test "${ac_cv_prog_BISON+set}" = set; then :
7658 $as_echo_n "(cached) " >&6
2abefe3d
PB
7659else
7660 if test -n "$BISON"; then
7661 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7662else
1c710c3c
DJ
7663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664for as_dir in $PATH
7665do
7666 IFS=$as_save_IFS
7667 test -z "$as_dir" && as_dir=.
5213506e
RW
7668 for ac_exec_ext in '' $ac_executable_extensions; do
7669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7670 ac_cv_prog_BISON="$ac_prog"
5213506e 7671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7672 break 2
7673 fi
7674done
5213506e
RW
7675 done
7676IFS=$as_save_IFS
1c710c3c 7677
2abefe3d
PB
7678fi
7679fi
1c710c3c 7680BISON=$ac_cv_prog_BISON
2abefe3d 7681if test -n "$BISON"; then
5213506e
RW
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7683$as_echo "$BISON" >&6; }
2abefe3d 7684else
5213506e
RW
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686$as_echo "no" >&6; }
2abefe3d
PB
7687fi
7688
5213506e 7689
1c710c3c 7690 test -n "$BISON" && break
2abefe3d
PB
7691done
7692test -n "$BISON" || BISON="$MISSING bison"
7693
7694case " $build_configdirs " in
7695 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7696esac
7697
7698for ac_prog in gm4 gnum4 m4
7699do
1c710c3c 7700 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7701set dummy $ac_prog; ac_word=$2
5213506e
RW
7702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7703$as_echo_n "checking for $ac_word... " >&6; }
7704if test "${ac_cv_prog_M4+set}" = set; then :
7705 $as_echo_n "(cached) " >&6
2abefe3d
PB
7706else
7707 if test -n "$M4"; then
7708 ac_cv_prog_M4="$M4" # Let the user override the test.
7709else
1c710c3c
DJ
7710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711for as_dir in $PATH
7712do
7713 IFS=$as_save_IFS
7714 test -z "$as_dir" && as_dir=.
5213506e
RW
7715 for ac_exec_ext in '' $ac_executable_extensions; do
7716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7717 ac_cv_prog_M4="$ac_prog"
5213506e 7718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7719 break 2
7720 fi
7721done
5213506e
RW
7722 done
7723IFS=$as_save_IFS
1c710c3c 7724
2abefe3d
PB
7725fi
7726fi
1c710c3c 7727M4=$ac_cv_prog_M4
2abefe3d 7728if test -n "$M4"; then
5213506e
RW
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7730$as_echo "$M4" >&6; }
2abefe3d 7731else
5213506e
RW
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7733$as_echo "no" >&6; }
2abefe3d
PB
7734fi
7735
5213506e 7736
1c710c3c 7737 test -n "$M4" && break
2abefe3d
PB
7738done
7739test -n "$M4" || M4="$MISSING m4"
7740
7741case " $build_configdirs " in
7742 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7743esac
7744
7745for ac_prog in flex lex
7746do
1c710c3c 7747 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7748set dummy $ac_prog; ac_word=$2
5213506e
RW
7749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7750$as_echo_n "checking for $ac_word... " >&6; }
7751if test "${ac_cv_prog_LEX+set}" = set; then :
7752 $as_echo_n "(cached) " >&6
2abefe3d
PB
7753else
7754 if test -n "$LEX"; then
7755 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7756else
1c710c3c
DJ
7757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758for as_dir in $PATH
7759do
7760 IFS=$as_save_IFS
7761 test -z "$as_dir" && as_dir=.
5213506e
RW
7762 for ac_exec_ext in '' $ac_executable_extensions; do
7763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7764 ac_cv_prog_LEX="$ac_prog"
5213506e 7765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7766 break 2
7767 fi
7768done
5213506e
RW
7769 done
7770IFS=$as_save_IFS
1c710c3c 7771
2abefe3d
PB
7772fi
7773fi
1c710c3c 7774LEX=$ac_cv_prog_LEX
2abefe3d 7775if test -n "$LEX"; then
5213506e
RW
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7777$as_echo "$LEX" >&6; }
2abefe3d 7778else
5213506e
RW
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7780$as_echo "no" >&6; }
2abefe3d
PB
7781fi
7782
5213506e 7783
1c710c3c 7784 test -n "$LEX" && break
2abefe3d
PB
7785done
7786test -n "$LEX" || LEX="$MISSING flex"
7787
7788case " $build_configdirs " in
7789 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7790 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7791esac
7792
7793for ac_prog in flex
7794do
1c710c3c 7795 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7796set dummy $ac_prog; ac_word=$2
5213506e
RW
7797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7798$as_echo_n "checking for $ac_word... " >&6; }
7799if test "${ac_cv_prog_FLEX+set}" = set; then :
7800 $as_echo_n "(cached) " >&6
2abefe3d
PB
7801else
7802 if test -n "$FLEX"; then
7803 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7804else
1c710c3c
DJ
7805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806for as_dir in $PATH
7807do
7808 IFS=$as_save_IFS
7809 test -z "$as_dir" && as_dir=.
5213506e
RW
7810 for ac_exec_ext in '' $ac_executable_extensions; do
7811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7812 ac_cv_prog_FLEX="$ac_prog"
5213506e 7813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7814 break 2
7815 fi
7816done
5213506e
RW
7817 done
7818IFS=$as_save_IFS
1c710c3c 7819
2abefe3d
PB
7820fi
7821fi
1c710c3c 7822FLEX=$ac_cv_prog_FLEX
2abefe3d 7823if test -n "$FLEX"; then
5213506e
RW
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7825$as_echo "$FLEX" >&6; }
2abefe3d 7826else
5213506e
RW
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7828$as_echo "no" >&6; }
2abefe3d
PB
7829fi
7830
5213506e 7831
1c710c3c 7832 test -n "$FLEX" && break
2abefe3d
PB
7833done
7834test -n "$FLEX" || FLEX="$MISSING flex"
7835
7836case " $build_configdirs " in
7837 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7838esac
7839
7840for ac_prog in makeinfo
7841do
1c710c3c 7842 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7843set dummy $ac_prog; ac_word=$2
5213506e
RW
7844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7845$as_echo_n "checking for $ac_word... " >&6; }
7846if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7847 $as_echo_n "(cached) " >&6
2abefe3d
PB
7848else
7849 if test -n "$MAKEINFO"; then
7850 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7851else
1c710c3c
DJ
7852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7853for as_dir in $PATH
7854do
7855 IFS=$as_save_IFS
7856 test -z "$as_dir" && as_dir=.
5213506e
RW
7857 for ac_exec_ext in '' $ac_executable_extensions; do
7858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7859 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 7860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7861 break 2
7862 fi
7863done
5213506e
RW
7864 done
7865IFS=$as_save_IFS
1c710c3c 7866
2abefe3d
PB
7867fi
7868fi
1c710c3c 7869MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 7870if test -n "$MAKEINFO"; then
5213506e
RW
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7872$as_echo "$MAKEINFO" >&6; }
2abefe3d 7873else
5213506e
RW
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7875$as_echo "no" >&6; }
2abefe3d
PB
7876fi
7877
5213506e 7878
1c710c3c 7879 test -n "$MAKEINFO" && break
2abefe3d
PB
7880done
7881test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7882
7883case " $build_configdirs " in
7884 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7885 *)
7886
d18ff35a 7887 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
7888 # higher, else we use the "missing" dummy.
7889 if ${MAKEINFO} --version \
d18ff35a 7890 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
7891 :
7892 else
7893 MAKEINFO="$MISSING makeinfo"
7894 fi
7895 ;;
7896
7897esac
671aa708 7898
2abefe3d 7899# FIXME: expect and dejagnu may become build tools?
671aa708 7900
2abefe3d
PB
7901for ac_prog in expect
7902do
1c710c3c 7903 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7904set dummy $ac_prog; ac_word=$2
5213506e
RW
7905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7906$as_echo_n "checking for $ac_word... " >&6; }
7907if test "${ac_cv_prog_EXPECT+set}" = set; then :
7908 $as_echo_n "(cached) " >&6
2abefe3d
PB
7909else
7910 if test -n "$EXPECT"; then
7911 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7912else
1c710c3c
DJ
7913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7914for as_dir in $PATH
7915do
7916 IFS=$as_save_IFS
7917 test -z "$as_dir" && as_dir=.
5213506e
RW
7918 for ac_exec_ext in '' $ac_executable_extensions; do
7919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7920 ac_cv_prog_EXPECT="$ac_prog"
5213506e 7921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7922 break 2
7923 fi
7924done
5213506e
RW
7925 done
7926IFS=$as_save_IFS
1c710c3c 7927
2abefe3d
PB
7928fi
7929fi
1c710c3c 7930EXPECT=$ac_cv_prog_EXPECT
2abefe3d 7931if test -n "$EXPECT"; then
5213506e
RW
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7933$as_echo "$EXPECT" >&6; }
2abefe3d 7934else
5213506e
RW
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7936$as_echo "no" >&6; }
2abefe3d 7937fi
671aa708 7938
5213506e 7939
1c710c3c 7940 test -n "$EXPECT" && break
2abefe3d
PB
7941done
7942test -n "$EXPECT" || EXPECT="expect"
671aa708 7943
2abefe3d
PB
7944case " $configdirs " in
7945 *" expect "*)
7946 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7947 ;;
7948esac
671aa708 7949
2abefe3d
PB
7950for ac_prog in runtest
7951do
1c710c3c 7952 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7953set dummy $ac_prog; ac_word=$2
5213506e
RW
7954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7955$as_echo_n "checking for $ac_word... " >&6; }
7956if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7957 $as_echo_n "(cached) " >&6
2abefe3d
PB
7958else
7959 if test -n "$RUNTEST"; then
7960 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 7961else
1c710c3c
DJ
7962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963for as_dir in $PATH
7964do
7965 IFS=$as_save_IFS
7966 test -z "$as_dir" && as_dir=.
5213506e
RW
7967 for ac_exec_ext in '' $ac_executable_extensions; do
7968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7969 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 7970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7971 break 2
7972 fi
7973done
5213506e
RW
7974 done
7975IFS=$as_save_IFS
1c710c3c 7976
2abefe3d
PB
7977fi
7978fi
1c710c3c 7979RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 7980if test -n "$RUNTEST"; then
5213506e
RW
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7982$as_echo "$RUNTEST" >&6; }
2abefe3d 7983else
5213506e
RW
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7985$as_echo "no" >&6; }
2abefe3d 7986fi
671aa708 7987
5213506e 7988
1c710c3c 7989 test -n "$RUNTEST" && break
2abefe3d
PB
7990done
7991test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 7992
2abefe3d
PB
7993case " $configdirs " in
7994 *" dejagnu "*)
c394e891 7995 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
7996 ;;
7997esac
671aa708
NN
7998
7999
671aa708 8000# Host tools.
ca9f4b81
AO
8001ncn_tool_prefix=
8002test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8003ncn_target_tool_prefix=
8004test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8005
278a7a38
AO
8006
8007
8008if test -n "$AR"; then
8009 ac_cv_prog_AR=$AR
8010elif test -n "$ac_cv_prog_AR"; then
8011 AR=$ac_cv_prog_AR
8012fi
8013
8014if test -n "$ac_cv_prog_AR"; then
8015 for ncn_progname in ar; do
8016 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8017set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8019$as_echo_n "checking for $ac_word... " >&6; }
8020if test "${ac_cv_prog_AR+set}" = set; then :
8021 $as_echo_n "(cached) " >&6
278a7a38
AO
8022else
8023 if test -n "$AR"; then
8024 ac_cv_prog_AR="$AR" # Let the user override the test.
8025else
8026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027for as_dir in $PATH
8028do
8029 IFS=$as_save_IFS
8030 test -z "$as_dir" && as_dir=.
5213506e
RW
8031 for ac_exec_ext in '' $ac_executable_extensions; do
8032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8033 ac_cv_prog_AR="${ncn_progname}"
5213506e 8034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8035 break 2
8036 fi
8037done
5213506e
RW
8038 done
8039IFS=$as_save_IFS
278a7a38
AO
8040
8041fi
8042fi
8043AR=$ac_cv_prog_AR
8044if test -n "$AR"; then
5213506e
RW
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8046$as_echo "$AR" >&6; }
278a7a38 8047else
5213506e
RW
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049$as_echo "no" >&6; }
278a7a38
AO
8050fi
8051
5213506e 8052
278a7a38
AO
8053 done
8054fi
8055
8056for ncn_progname in ar; do
2693c0b0
PB
8057 if test -n "$ncn_tool_prefix"; then
8058 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8059set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8061$as_echo_n "checking for $ac_word... " >&6; }
8062if test "${ac_cv_prog_AR+set}" = set; then :
8063 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8064else
8065 if test -n "$AR"; then
8066 ac_cv_prog_AR="$AR" # Let the user override the test.
8067else
1c710c3c
DJ
8068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8069for as_dir in $PATH
8070do
8071 IFS=$as_save_IFS
8072 test -z "$as_dir" && as_dir=.
5213506e
RW
8073 for ac_exec_ext in '' $ac_executable_extensions; do
8074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8075 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 8076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8077 break 2
8078 fi
8079done
5213506e
RW
8080 done
8081IFS=$as_save_IFS
1c710c3c 8082
ca9f4b81
AO
8083fi
8084fi
1c710c3c 8085AR=$ac_cv_prog_AR
ca9f4b81 8086if test -n "$AR"; then
5213506e
RW
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8088$as_echo "$AR" >&6; }
ca9f4b81 8089else
5213506e
RW
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8091$as_echo "no" >&6; }
ca9f4b81
AO
8092fi
8093
5213506e 8094
2693c0b0
PB
8095 fi
8096 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8097 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8098set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8100$as_echo_n "checking for $ac_word... " >&6; }
8101if test "${ac_cv_prog_AR+set}" = set; then :
8102 $as_echo_n "(cached) " >&6
ca9f4b81 8103else
2693c0b0 8104 if test -n "$AR"; then
af71363e
AS
8105 ac_cv_prog_AR="$AR" # Let the user override the test.
8106else
1c710c3c
DJ
8107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8108for as_dir in $PATH
8109do
8110 IFS=$as_save_IFS
8111 test -z "$as_dir" && as_dir=.
5213506e
RW
8112 for ac_exec_ext in '' $ac_executable_extensions; do
8113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8114 ac_cv_prog_AR="${ncn_progname}"
5213506e 8115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8116 break 2
8117 fi
8118done
5213506e
RW
8119 done
8120IFS=$as_save_IFS
1c710c3c 8121
ca9f4b81
AO
8122fi
8123fi
1c710c3c 8124AR=$ac_cv_prog_AR
2693c0b0 8125if test -n "$AR"; then
5213506e
RW
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8127$as_echo "$AR" >&6; }
ca9f4b81 8128else
5213506e
RW
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8130$as_echo "no" >&6; }
ca9f4b81 8131fi
1c710c3c 8132
5213506e 8133
2693c0b0
PB
8134 fi
8135 test -n "$ac_cv_prog_AR" && break
8136done
8137
8138if test -z "$ac_cv_prog_AR" ; then
8139 set dummy ar
8140 if test $build = $host ; then
8141 AR="$2"
ca9f4b81 8142 else
2693c0b0 8143 AR="${ncn_tool_prefix}$2"
ca9f4b81 8144 fi
ca9f4b81
AO
8145fi
8146
278a7a38
AO
8147
8148
8149if test -n "$AS"; then
8150 ac_cv_prog_AS=$AS
8151elif test -n "$ac_cv_prog_AS"; then
8152 AS=$ac_cv_prog_AS
8153fi
8154
8155if test -n "$ac_cv_prog_AS"; then
8156 for ncn_progname in as; do
8157 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8158set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8160$as_echo_n "checking for $ac_word... " >&6; }
8161if test "${ac_cv_prog_AS+set}" = set; then :
8162 $as_echo_n "(cached) " >&6
278a7a38
AO
8163else
8164 if test -n "$AS"; then
8165 ac_cv_prog_AS="$AS" # Let the user override the test.
8166else
8167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168for as_dir in $PATH
8169do
8170 IFS=$as_save_IFS
8171 test -z "$as_dir" && as_dir=.
5213506e
RW
8172 for ac_exec_ext in '' $ac_executable_extensions; do
8173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8174 ac_cv_prog_AS="${ncn_progname}"
5213506e 8175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8176 break 2
8177 fi
8178done
5213506e
RW
8179 done
8180IFS=$as_save_IFS
278a7a38
AO
8181
8182fi
8183fi
8184AS=$ac_cv_prog_AS
8185if test -n "$AS"; then
5213506e
RW
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8187$as_echo "$AS" >&6; }
278a7a38 8188else
5213506e
RW
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8190$as_echo "no" >&6; }
278a7a38
AO
8191fi
8192
5213506e 8193
278a7a38
AO
8194 done
8195fi
8196
8197for ncn_progname in as; do
2693c0b0
PB
8198 if test -n "$ncn_tool_prefix"; then
8199 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8200set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8202$as_echo_n "checking for $ac_word... " >&6; }
8203if test "${ac_cv_prog_AS+set}" = set; then :
8204 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8205else
8206 if test -n "$AS"; then
8207 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 8208else
1c710c3c
DJ
8209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8210for as_dir in $PATH
8211do
8212 IFS=$as_save_IFS
8213 test -z "$as_dir" && as_dir=.
5213506e
RW
8214 for ac_exec_ext in '' $ac_executable_extensions; do
8215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8216 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 8217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8218 break 2
8219 fi
8220done
5213506e
RW
8221 done
8222IFS=$as_save_IFS
1c710c3c 8223
ca9f4b81
AO
8224fi
8225fi
1c710c3c 8226AS=$ac_cv_prog_AS
ca9f4b81 8227if test -n "$AS"; then
5213506e
RW
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8229$as_echo "$AS" >&6; }
ca9f4b81 8230else
5213506e
RW
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232$as_echo "no" >&6; }
ca9f4b81
AO
8233fi
8234
5213506e 8235
2693c0b0
PB
8236 fi
8237 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8238 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8239set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8241$as_echo_n "checking for $ac_word... " >&6; }
8242if test "${ac_cv_prog_AS+set}" = set; then :
8243 $as_echo_n "(cached) " >&6
ca9f4b81 8244else
2693c0b0
PB
8245 if test -n "$AS"; then
8246 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 8247else
1c710c3c
DJ
8248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8249for as_dir in $PATH
8250do
8251 IFS=$as_save_IFS
8252 test -z "$as_dir" && as_dir=.
5213506e
RW
8253 for ac_exec_ext in '' $ac_executable_extensions; do
8254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8255 ac_cv_prog_AS="${ncn_progname}"
5213506e 8256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8257 break 2
8258 fi
8259done
5213506e
RW
8260 done
8261IFS=$as_save_IFS
1c710c3c 8262
ca9f4b81
AO
8263fi
8264fi
1c710c3c 8265AS=$ac_cv_prog_AS
2693c0b0 8266if test -n "$AS"; then
5213506e
RW
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8268$as_echo "$AS" >&6; }
ca9f4b81 8269else
5213506e
RW
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271$as_echo "no" >&6; }
ca9f4b81 8272fi
1c710c3c 8273
5213506e 8274
2693c0b0
PB
8275 fi
8276 test -n "$ac_cv_prog_AS" && break
8277done
8278
8279if test -z "$ac_cv_prog_AS" ; then
8280 set dummy as
8281 if test $build = $host ; then
8282 AS="$2"
ca9f4b81 8283 else
2693c0b0 8284 AS="${ncn_tool_prefix}$2"
ca9f4b81 8285 fi
ca9f4b81
AO
8286fi
8287
278a7a38
AO
8288
8289
8290if test -n "$DLLTOOL"; then
8291 ac_cv_prog_DLLTOOL=$DLLTOOL
8292elif test -n "$ac_cv_prog_DLLTOOL"; then
8293 DLLTOOL=$ac_cv_prog_DLLTOOL
8294fi
8295
8296if test -n "$ac_cv_prog_DLLTOOL"; then
8297 for ncn_progname in dlltool; do
8298 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8299set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8301$as_echo_n "checking for $ac_word... " >&6; }
8302if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8303 $as_echo_n "(cached) " >&6
278a7a38
AO
8304else
8305 if test -n "$DLLTOOL"; then
8306 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8307else
8308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8309for as_dir in $PATH
8310do
8311 IFS=$as_save_IFS
8312 test -z "$as_dir" && as_dir=.
5213506e
RW
8313 for ac_exec_ext in '' $ac_executable_extensions; do
8314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8315 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8317 break 2
8318 fi
8319done
5213506e
RW
8320 done
8321IFS=$as_save_IFS
278a7a38
AO
8322
8323fi
8324fi
8325DLLTOOL=$ac_cv_prog_DLLTOOL
8326if test -n "$DLLTOOL"; then
5213506e
RW
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8328$as_echo "$DLLTOOL" >&6; }
278a7a38 8329else
5213506e
RW
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331$as_echo "no" >&6; }
278a7a38
AO
8332fi
8333
5213506e 8334
278a7a38
AO
8335 done
8336fi
8337
8338for ncn_progname in dlltool; do
2693c0b0
PB
8339 if test -n "$ncn_tool_prefix"; then
8340 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8341set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8343$as_echo_n "checking for $ac_word... " >&6; }
8344if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8345 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8346else
8347 if test -n "$DLLTOOL"; then
8348 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8349else
1c710c3c
DJ
8350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8351for as_dir in $PATH
8352do
8353 IFS=$as_save_IFS
8354 test -z "$as_dir" && as_dir=.
5213506e
RW
8355 for ac_exec_ext in '' $ac_executable_extensions; do
8356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8357 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8359 break 2
8360 fi
8361done
5213506e
RW
8362 done
8363IFS=$as_save_IFS
1c710c3c 8364
ca9f4b81
AO
8365fi
8366fi
1c710c3c 8367DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8368if test -n "$DLLTOOL"; then
5213506e
RW
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8370$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8371else
5213506e
RW
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8373$as_echo "no" >&6; }
ca9f4b81
AO
8374fi
8375
5213506e 8376
2693c0b0
PB
8377 fi
8378 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8379 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8380set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8382$as_echo_n "checking for $ac_word... " >&6; }
8383if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8384 $as_echo_n "(cached) " >&6
ca9f4b81 8385else
2693c0b0
PB
8386 if test -n "$DLLTOOL"; then
8387 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8388else
1c710c3c
DJ
8389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8390for as_dir in $PATH
8391do
8392 IFS=$as_save_IFS
8393 test -z "$as_dir" && as_dir=.
5213506e
RW
8394 for ac_exec_ext in '' $ac_executable_extensions; do
8395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8396 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8398 break 2
8399 fi
8400done
5213506e
RW
8401 done
8402IFS=$as_save_IFS
1c710c3c 8403
ca9f4b81
AO
8404fi
8405fi
1c710c3c 8406DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8407if test -n "$DLLTOOL"; then
5213506e
RW
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8409$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8410else
5213506e
RW
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8412$as_echo "no" >&6; }
ca9f4b81 8413fi
1c710c3c 8414
5213506e 8415
2693c0b0
PB
8416 fi
8417 test -n "$ac_cv_prog_DLLTOOL" && break
8418done
8419
8420if test -z "$ac_cv_prog_DLLTOOL" ; then
8421 set dummy dlltool
8422 if test $build = $host ; then
8423 DLLTOOL="$2"
ca9f4b81 8424 else
2693c0b0 8425 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8426 fi
ca9f4b81
AO
8427fi
8428
278a7a38
AO
8429
8430
8431if test -n "$LD"; then
8432 ac_cv_prog_LD=$LD
8433elif test -n "$ac_cv_prog_LD"; then
8434 LD=$ac_cv_prog_LD
8435fi
8436
8437if test -n "$ac_cv_prog_LD"; then
8438 for ncn_progname in ld; do
8439 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8440set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8442$as_echo_n "checking for $ac_word... " >&6; }
8443if test "${ac_cv_prog_LD+set}" = set; then :
8444 $as_echo_n "(cached) " >&6
278a7a38
AO
8445else
8446 if test -n "$LD"; then
8447 ac_cv_prog_LD="$LD" # Let the user override the test.
8448else
8449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8450for as_dir in $PATH
8451do
8452 IFS=$as_save_IFS
8453 test -z "$as_dir" && as_dir=.
5213506e
RW
8454 for ac_exec_ext in '' $ac_executable_extensions; do
8455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8456 ac_cv_prog_LD="${ncn_progname}"
5213506e 8457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8458 break 2
8459 fi
8460done
5213506e
RW
8461 done
8462IFS=$as_save_IFS
278a7a38
AO
8463
8464fi
8465fi
8466LD=$ac_cv_prog_LD
8467if test -n "$LD"; then
5213506e
RW
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8469$as_echo "$LD" >&6; }
278a7a38 8470else
5213506e
RW
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8472$as_echo "no" >&6; }
278a7a38
AO
8473fi
8474
5213506e 8475
278a7a38
AO
8476 done
8477fi
8478
8479for ncn_progname in ld; do
2693c0b0
PB
8480 if test -n "$ncn_tool_prefix"; then
8481 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8482set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8484$as_echo_n "checking for $ac_word... " >&6; }
8485if test "${ac_cv_prog_LD+set}" = set; then :
8486 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8487else
8488 if test -n "$LD"; then
8489 ac_cv_prog_LD="$LD" # Let the user override the test.
8490else
1c710c3c
DJ
8491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8492for as_dir in $PATH
8493do
8494 IFS=$as_save_IFS
8495 test -z "$as_dir" && as_dir=.
5213506e
RW
8496 for ac_exec_ext in '' $ac_executable_extensions; do
8497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8498 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 8499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8500 break 2
8501 fi
8502done
5213506e
RW
8503 done
8504IFS=$as_save_IFS
1c710c3c 8505
ca9f4b81
AO
8506fi
8507fi
1c710c3c 8508LD=$ac_cv_prog_LD
ca9f4b81 8509if test -n "$LD"; then
5213506e
RW
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8511$as_echo "$LD" >&6; }
ca9f4b81 8512else
5213506e
RW
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8514$as_echo "no" >&6; }
ca9f4b81
AO
8515fi
8516
5213506e 8517
2693c0b0
PB
8518 fi
8519 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8520 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8521set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8523$as_echo_n "checking for $ac_word... " >&6; }
8524if test "${ac_cv_prog_LD+set}" = set; then :
8525 $as_echo_n "(cached) " >&6
ca9f4b81 8526else
2693c0b0
PB
8527 if test -n "$LD"; then
8528 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 8529else
1c710c3c
DJ
8530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8531for as_dir in $PATH
8532do
8533 IFS=$as_save_IFS
8534 test -z "$as_dir" && as_dir=.
5213506e
RW
8535 for ac_exec_ext in '' $ac_executable_extensions; do
8536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8537 ac_cv_prog_LD="${ncn_progname}"
5213506e 8538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8539 break 2
8540 fi
8541done
5213506e
RW
8542 done
8543IFS=$as_save_IFS
1c710c3c 8544
ca9f4b81
AO
8545fi
8546fi
1c710c3c 8547LD=$ac_cv_prog_LD
2693c0b0 8548if test -n "$LD"; then
5213506e
RW
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8550$as_echo "$LD" >&6; }
ca9f4b81 8551else
5213506e
RW
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8553$as_echo "no" >&6; }
ca9f4b81 8554fi
1c710c3c 8555
5213506e 8556
2693c0b0
PB
8557 fi
8558 test -n "$ac_cv_prog_LD" && break
8559done
8560
8561if test -z "$ac_cv_prog_LD" ; then
8562 set dummy ld
8563 if test $build = $host ; then
8564 LD="$2"
ca9f4b81 8565 else
2693c0b0 8566 LD="${ncn_tool_prefix}$2"
ca9f4b81 8567 fi
ca9f4b81
AO
8568fi
8569
278a7a38
AO
8570
8571
8572if test -n "$LIPO"; then
8573 ac_cv_prog_LIPO=$LIPO
8574elif test -n "$ac_cv_prog_LIPO"; then
8575 LIPO=$ac_cv_prog_LIPO
8576fi
8577
8578if test -n "$ac_cv_prog_LIPO"; then
8579 for ncn_progname in lipo; do
8580 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8581set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8583$as_echo_n "checking for $ac_word... " >&6; }
8584if test "${ac_cv_prog_LIPO+set}" = set; then :
8585 $as_echo_n "(cached) " >&6
278a7a38
AO
8586else
8587 if test -n "$LIPO"; then
8588 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8589else
8590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8591for as_dir in $PATH
8592do
8593 IFS=$as_save_IFS
8594 test -z "$as_dir" && as_dir=.
5213506e
RW
8595 for ac_exec_ext in '' $ac_executable_extensions; do
8596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8597 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8599 break 2
8600 fi
8601done
5213506e
RW
8602 done
8603IFS=$as_save_IFS
278a7a38
AO
8604
8605fi
8606fi
8607LIPO=$ac_cv_prog_LIPO
8608if test -n "$LIPO"; then
5213506e
RW
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8610$as_echo "$LIPO" >&6; }
278a7a38 8611else
5213506e
RW
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8613$as_echo "no" >&6; }
278a7a38
AO
8614fi
8615
5213506e 8616
278a7a38
AO
8617 done
8618fi
8619
8620for ncn_progname in lipo; do
2abefe3d
PB
8621 if test -n "$ncn_tool_prefix"; then
8622 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8623set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8625$as_echo_n "checking for $ac_word... " >&6; }
8626if test "${ac_cv_prog_LIPO+set}" = set; then :
8627 $as_echo_n "(cached) " >&6
2abefe3d
PB
8628else
8629 if test -n "$LIPO"; then
8630 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8631else
1c710c3c
DJ
8632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8633for as_dir in $PATH
8634do
8635 IFS=$as_save_IFS
8636 test -z "$as_dir" && as_dir=.
5213506e
RW
8637 for ac_exec_ext in '' $ac_executable_extensions; do
8638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8639 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 8640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8641 break 2
8642 fi
8643done
5213506e
RW
8644 done
8645IFS=$as_save_IFS
1c710c3c 8646
2abefe3d
PB
8647fi
8648fi
1c710c3c 8649LIPO=$ac_cv_prog_LIPO
2abefe3d 8650if test -n "$LIPO"; then
5213506e
RW
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8652$as_echo "$LIPO" >&6; }
2abefe3d 8653else
5213506e
RW
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8655$as_echo "no" >&6; }
2abefe3d
PB
8656fi
8657
5213506e 8658
2abefe3d
PB
8659 fi
8660 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8661 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8662set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8664$as_echo_n "checking for $ac_word... " >&6; }
8665if test "${ac_cv_prog_LIPO+set}" = set; then :
8666 $as_echo_n "(cached) " >&6
2abefe3d
PB
8667else
8668 if test -n "$LIPO"; then
8669 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8670else
1c710c3c
DJ
8671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8672for as_dir in $PATH
8673do
8674 IFS=$as_save_IFS
8675 test -z "$as_dir" && as_dir=.
5213506e
RW
8676 for ac_exec_ext in '' $ac_executable_extensions; do
8677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8678 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8680 break 2
8681 fi
8682done
5213506e
RW
8683 done
8684IFS=$as_save_IFS
1c710c3c 8685
2abefe3d
PB
8686fi
8687fi
1c710c3c 8688LIPO=$ac_cv_prog_LIPO
2abefe3d 8689if test -n "$LIPO"; then
5213506e
RW
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8691$as_echo "$LIPO" >&6; }
2abefe3d 8692else
5213506e
RW
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8694$as_echo "no" >&6; }
2abefe3d 8695fi
1c710c3c 8696
5213506e 8697
2abefe3d
PB
8698 fi
8699 test -n "$ac_cv_prog_LIPO" && break
8700done
8701
8702if test -z "$ac_cv_prog_LIPO" ; then
8703 set dummy lipo
8704 if test $build = $host ; then
8705 LIPO="$2"
8706 else
8707 LIPO="${ncn_tool_prefix}$2"
8708 fi
8709fi
8710
278a7a38
AO
8711
8712
8713if test -n "$NM"; then
8714 ac_cv_prog_NM=$NM
8715elif test -n "$ac_cv_prog_NM"; then
8716 NM=$ac_cv_prog_NM
8717fi
8718
8719if test -n "$ac_cv_prog_NM"; then
8720 for ncn_progname in nm; do
8721 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8722set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8724$as_echo_n "checking for $ac_word... " >&6; }
8725if test "${ac_cv_prog_NM+set}" = set; then :
8726 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8727else
8728 if test -n "$NM"; then
8729 ac_cv_prog_NM="$NM" # Let the user override the test.
8730else
1c710c3c
DJ
8731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8732for as_dir in $PATH
8733do
8734 IFS=$as_save_IFS
8735 test -z "$as_dir" && as_dir=.
5213506e
RW
8736 for ac_exec_ext in '' $ac_executable_extensions; do
8737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8738 ac_cv_prog_NM="${ncn_progname}"
5213506e 8739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8740 break 2
8741 fi
8742done
5213506e
RW
8743 done
8744IFS=$as_save_IFS
1c710c3c 8745
ca9f4b81
AO
8746fi
8747fi
1c710c3c 8748NM=$ac_cv_prog_NM
ca9f4b81 8749if test -n "$NM"; then
5213506e
RW
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8751$as_echo "$NM" >&6; }
ca9f4b81 8752else
5213506e
RW
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8754$as_echo "no" >&6; }
ca9f4b81
AO
8755fi
8756
5213506e 8757
278a7a38
AO
8758 done
8759fi
8760
8761for ncn_progname in nm; do
8762 if test -n "$ncn_tool_prefix"; then
8763 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8764set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8766$as_echo_n "checking for $ac_word... " >&6; }
8767if test "${ac_cv_prog_NM+set}" = set; then :
8768 $as_echo_n "(cached) " >&6
ca9f4b81 8769else
2693c0b0
PB
8770 if test -n "$NM"; then
8771 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 8772else
1c710c3c
DJ
8773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8774for as_dir in $PATH
8775do
8776 IFS=$as_save_IFS
8777 test -z "$as_dir" && as_dir=.
5213506e
RW
8778 for ac_exec_ext in '' $ac_executable_extensions; do
8779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8780 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 8781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8782 break 2
8783 fi
8784done
5213506e
RW
8785 done
8786IFS=$as_save_IFS
1c710c3c 8787
ca9f4b81
AO
8788fi
8789fi
1c710c3c 8790NM=$ac_cv_prog_NM
2693c0b0 8791if test -n "$NM"; then
5213506e
RW
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8793$as_echo "$NM" >&6; }
ca9f4b81 8794else
5213506e
RW
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8796$as_echo "no" >&6; }
ca9f4b81 8797fi
1c710c3c 8798
5213506e 8799
2693c0b0 8800 fi
278a7a38
AO
8801 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8803set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8805$as_echo_n "checking for $ac_word... " >&6; }
8806if test "${ac_cv_prog_NM+set}" = set; then :
8807 $as_echo_n "(cached) " >&6
278a7a38
AO
8808else
8809 if test -n "$NM"; then
8810 ac_cv_prog_NM="$NM" # Let the user override the test.
8811else
8812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8813for as_dir in $PATH
8814do
8815 IFS=$as_save_IFS
8816 test -z "$as_dir" && as_dir=.
5213506e
RW
8817 for ac_exec_ext in '' $ac_executable_extensions; do
8818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8819 ac_cv_prog_NM="${ncn_progname}"
5213506e 8820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8821 break 2
8822 fi
8823done
5213506e
RW
8824 done
8825IFS=$as_save_IFS
278a7a38
AO
8826
8827fi
8828fi
8829NM=$ac_cv_prog_NM
8830if test -n "$NM"; then
5213506e
RW
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8832$as_echo "$NM" >&6; }
278a7a38 8833else
5213506e
RW
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8835$as_echo "no" >&6; }
278a7a38
AO
8836fi
8837
5213506e 8838
278a7a38
AO
8839 fi
8840 test -n "$ac_cv_prog_NM" && break
8841done
8842
8843if test -z "$ac_cv_prog_NM" ; then
8844 set dummy nm
8845 if test $build = $host ; then
8846 NM="$2"
8847 else
8848 NM="${ncn_tool_prefix}$2"
8849 fi
8850fi
8851
8852
8853
8854if test -n "$RANLIB"; then
8855 ac_cv_prog_RANLIB=$RANLIB
8856elif test -n "$ac_cv_prog_RANLIB"; then
8857 RANLIB=$ac_cv_prog_RANLIB
8858fi
8859
8860if test -n "$ac_cv_prog_RANLIB"; then
8861 for ncn_progname in ranlib; do
8862 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8863set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8865$as_echo_n "checking for $ac_word... " >&6; }
8866if test "${ac_cv_prog_RANLIB+set}" = set; then :
8867 $as_echo_n "(cached) " >&6
278a7a38
AO
8868else
8869 if test -n "$RANLIB"; then
8870 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8871else
8872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8873for as_dir in $PATH
8874do
8875 IFS=$as_save_IFS
8876 test -z "$as_dir" && as_dir=.
5213506e
RW
8877 for ac_exec_ext in '' $ac_executable_extensions; do
8878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8879 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8881 break 2
8882 fi
8883done
5213506e
RW
8884 done
8885IFS=$as_save_IFS
278a7a38
AO
8886
8887fi
8888fi
8889RANLIB=$ac_cv_prog_RANLIB
8890if test -n "$RANLIB"; then
5213506e
RW
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8892$as_echo "$RANLIB" >&6; }
278a7a38 8893else
5213506e
RW
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8895$as_echo "no" >&6; }
278a7a38
AO
8896fi
8897
5213506e 8898
278a7a38
AO
8899 done
8900fi
ca9f4b81 8901
278a7a38 8902for ncn_progname in ranlib; do
2693c0b0
PB
8903 if test -n "$ncn_tool_prefix"; then
8904 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8905set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8907$as_echo_n "checking for $ac_word... " >&6; }
8908if test "${ac_cv_prog_RANLIB+set}" = set; then :
8909 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8910else
8911 if test -n "$RANLIB"; then
8912 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8913else
1c710c3c
DJ
8914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8915for as_dir in $PATH
8916do
8917 IFS=$as_save_IFS
8918 test -z "$as_dir" && as_dir=.
5213506e
RW
8919 for ac_exec_ext in '' $ac_executable_extensions; do
8920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8921 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 8922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8923 break 2
8924 fi
8925done
5213506e
RW
8926 done
8927IFS=$as_save_IFS
1c710c3c 8928
ca9f4b81
AO
8929fi
8930fi
1c710c3c 8931RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 8932if test -n "$RANLIB"; then
5213506e
RW
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8934$as_echo "$RANLIB" >&6; }
ca9f4b81 8935else
5213506e
RW
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8937$as_echo "no" >&6; }
ca9f4b81
AO
8938fi
8939
5213506e 8940
2693c0b0
PB
8941 fi
8942 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8943 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8944set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8946$as_echo_n "checking for $ac_word... " >&6; }
8947if test "${ac_cv_prog_RANLIB+set}" = set; then :
8948 $as_echo_n "(cached) " >&6
ca9f4b81 8949else
2693c0b0
PB
8950 if test -n "$RANLIB"; then
8951 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 8952else
1c710c3c
DJ
8953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8954for as_dir in $PATH
8955do
8956 IFS=$as_save_IFS
8957 test -z "$as_dir" && as_dir=.
5213506e
RW
8958 for ac_exec_ext in '' $ac_executable_extensions; do
8959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8960 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8962 break 2
8963 fi
8964done
5213506e
RW
8965 done
8966IFS=$as_save_IFS
1c710c3c 8967
ca9f4b81
AO
8968fi
8969fi
1c710c3c 8970RANLIB=$ac_cv_prog_RANLIB
2693c0b0 8971if test -n "$RANLIB"; then
5213506e
RW
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8973$as_echo "$RANLIB" >&6; }
ca9f4b81 8974else
5213506e
RW
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8976$as_echo "no" >&6; }
ca9f4b81 8977fi
1c710c3c 8978
5213506e 8979
ca9f4b81 8980 fi
2693c0b0
PB
8981 test -n "$ac_cv_prog_RANLIB" && break
8982done
8983
8984if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 8985 RANLIB="true"
ca9f4b81
AO
8986fi
8987
278a7a38
AO
8988
8989
8990if test -n "$STRIP"; then
8991 ac_cv_prog_STRIP=$STRIP
8992elif test -n "$ac_cv_prog_STRIP"; then
8993 STRIP=$ac_cv_prog_STRIP
8994fi
8995
8996if test -n "$ac_cv_prog_STRIP"; then
8997 for ncn_progname in strip; do
8998 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8999set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9001$as_echo_n "checking for $ac_word... " >&6; }
9002if test "${ac_cv_prog_STRIP+set}" = set; then :
9003 $as_echo_n "(cached) " >&6
278a7a38
AO
9004else
9005 if test -n "$STRIP"; then
9006 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9007else
9008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9009for as_dir in $PATH
9010do
9011 IFS=$as_save_IFS
9012 test -z "$as_dir" && as_dir=.
5213506e
RW
9013 for ac_exec_ext in '' $ac_executable_extensions; do
9014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9015 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9017 break 2
9018 fi
9019done
5213506e
RW
9020 done
9021IFS=$as_save_IFS
278a7a38
AO
9022
9023fi
9024fi
9025STRIP=$ac_cv_prog_STRIP
9026if test -n "$STRIP"; then
5213506e
RW
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9028$as_echo "$STRIP" >&6; }
278a7a38 9029else
5213506e
RW
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9031$as_echo "no" >&6; }
278a7a38
AO
9032fi
9033
5213506e 9034
278a7a38
AO
9035 done
9036fi
9037
9038for ncn_progname in strip; do
2abefe3d
PB
9039 if test -n "$ncn_tool_prefix"; then
9040 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9041set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9043$as_echo_n "checking for $ac_word... " >&6; }
9044if test "${ac_cv_prog_STRIP+set}" = set; then :
9045 $as_echo_n "(cached) " >&6
2abefe3d
PB
9046else
9047 if test -n "$STRIP"; then
9048 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9049else
1c710c3c
DJ
9050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9051for as_dir in $PATH
9052do
9053 IFS=$as_save_IFS
9054 test -z "$as_dir" && as_dir=.
5213506e
RW
9055 for ac_exec_ext in '' $ac_executable_extensions; do
9056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9057 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9059 break 2
9060 fi
9061done
5213506e
RW
9062 done
9063IFS=$as_save_IFS
1c710c3c 9064
2abefe3d
PB
9065fi
9066fi
1c710c3c 9067STRIP=$ac_cv_prog_STRIP
2abefe3d 9068if test -n "$STRIP"; then
5213506e
RW
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9070$as_echo "$STRIP" >&6; }
2abefe3d 9071else
5213506e
RW
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9073$as_echo "no" >&6; }
2abefe3d
PB
9074fi
9075
5213506e 9076
2abefe3d
PB
9077 fi
9078 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9079 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9080set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9082$as_echo_n "checking for $ac_word... " >&6; }
9083if test "${ac_cv_prog_STRIP+set}" = set; then :
9084 $as_echo_n "(cached) " >&6
2abefe3d
PB
9085else
9086 if test -n "$STRIP"; then
9087 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9088else
1c710c3c
DJ
9089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9090for as_dir in $PATH
9091do
9092 IFS=$as_save_IFS
9093 test -z "$as_dir" && as_dir=.
5213506e
RW
9094 for ac_exec_ext in '' $ac_executable_extensions; do
9095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9096 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9098 break 2
9099 fi
9100done
5213506e
RW
9101 done
9102IFS=$as_save_IFS
1c710c3c 9103
2abefe3d
PB
9104fi
9105fi
1c710c3c 9106STRIP=$ac_cv_prog_STRIP
2abefe3d 9107if test -n "$STRIP"; then
5213506e
RW
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9109$as_echo "$STRIP" >&6; }
2abefe3d 9110else
5213506e
RW
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9112$as_echo "no" >&6; }
2abefe3d 9113fi
1c710c3c 9114
5213506e 9115
2abefe3d
PB
9116 fi
9117 test -n "$ac_cv_prog_STRIP" && break
9118done
9119
9120if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 9121 STRIP="true"
2abefe3d
PB
9122fi
9123
278a7a38
AO
9124
9125
9126if test -n "$WINDRES"; then
9127 ac_cv_prog_WINDRES=$WINDRES
9128elif test -n "$ac_cv_prog_WINDRES"; then
9129 WINDRES=$ac_cv_prog_WINDRES
9130fi
9131
9132if test -n "$ac_cv_prog_WINDRES"; then
9133 for ncn_progname in windres; do
9134 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9135set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9137$as_echo_n "checking for $ac_word... " >&6; }
9138if test "${ac_cv_prog_WINDRES+set}" = set; then :
9139 $as_echo_n "(cached) " >&6
278a7a38
AO
9140else
9141 if test -n "$WINDRES"; then
9142 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9143else
9144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9145for as_dir in $PATH
9146do
9147 IFS=$as_save_IFS
9148 test -z "$as_dir" && as_dir=.
5213506e
RW
9149 for ac_exec_ext in '' $ac_executable_extensions; do
9150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9151 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9153 break 2
9154 fi
9155done
5213506e
RW
9156 done
9157IFS=$as_save_IFS
278a7a38
AO
9158
9159fi
9160fi
9161WINDRES=$ac_cv_prog_WINDRES
9162if test -n "$WINDRES"; then
5213506e
RW
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9164$as_echo "$WINDRES" >&6; }
278a7a38 9165else
5213506e
RW
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9167$as_echo "no" >&6; }
278a7a38
AO
9168fi
9169
5213506e 9170
278a7a38
AO
9171 done
9172fi
9173
9174for ncn_progname in windres; do
2693c0b0
PB
9175 if test -n "$ncn_tool_prefix"; then
9176 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9177set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9179$as_echo_n "checking for $ac_word... " >&6; }
9180if test "${ac_cv_prog_WINDRES+set}" = set; then :
9181 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9182else
9183 if test -n "$WINDRES"; then
9184 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9185else
1c710c3c
DJ
9186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9187for as_dir in $PATH
9188do
9189 IFS=$as_save_IFS
9190 test -z "$as_dir" && as_dir=.
5213506e
RW
9191 for ac_exec_ext in '' $ac_executable_extensions; do
9192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9193 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 9194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9195 break 2
9196 fi
9197done
5213506e
RW
9198 done
9199IFS=$as_save_IFS
1c710c3c 9200
ca9f4b81
AO
9201fi
9202fi
1c710c3c 9203WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 9204if test -n "$WINDRES"; then
5213506e
RW
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9206$as_echo "$WINDRES" >&6; }
ca9f4b81 9207else
5213506e
RW
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9209$as_echo "no" >&6; }
ca9f4b81
AO
9210fi
9211
5213506e 9212
2693c0b0
PB
9213 fi
9214 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9215 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9216set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9218$as_echo_n "checking for $ac_word... " >&6; }
9219if test "${ac_cv_prog_WINDRES+set}" = set; then :
9220 $as_echo_n "(cached) " >&6
ca9f4b81 9221else
2693c0b0
PB
9222 if test -n "$WINDRES"; then
9223 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 9224else
1c710c3c
DJ
9225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9226for as_dir in $PATH
9227do
9228 IFS=$as_save_IFS
9229 test -z "$as_dir" && as_dir=.
5213506e
RW
9230 for ac_exec_ext in '' $ac_executable_extensions; do
9231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9232 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9234 break 2
9235 fi
9236done
5213506e
RW
9237 done
9238IFS=$as_save_IFS
1c710c3c 9239
ca9f4b81
AO
9240fi
9241fi
1c710c3c 9242WINDRES=$ac_cv_prog_WINDRES
2693c0b0 9243if test -n "$WINDRES"; then
5213506e
RW
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9245$as_echo "$WINDRES" >&6; }
ca9f4b81 9246else
5213506e
RW
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9248$as_echo "no" >&6; }
ca9f4b81 9249fi
1c710c3c 9250
5213506e 9251
2693c0b0
PB
9252 fi
9253 test -n "$ac_cv_prog_WINDRES" && break
9254done
9255
9256if test -z "$ac_cv_prog_WINDRES" ; then
9257 set dummy windres
9258 if test $build = $host ; then
9259 WINDRES="$2"
ca9f4b81 9260 else
2693c0b0 9261 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9262 fi
ca9f4b81
AO
9263fi
9264
278a7a38
AO
9265
9266
901119ae
KT
9267if test -n "$WINDMC"; then
9268 ac_cv_prog_WINDMC=$WINDMC
9269elif test -n "$ac_cv_prog_WINDMC"; then
9270 WINDMC=$ac_cv_prog_WINDMC
9271fi
9272
9273if test -n "$ac_cv_prog_WINDMC"; then
9274 for ncn_progname in windmc; do
9275 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9276set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9278$as_echo_n "checking for $ac_word... " >&6; }
9279if test "${ac_cv_prog_WINDMC+set}" = set; then :
9280 $as_echo_n "(cached) " >&6
901119ae
KT
9281else
9282 if test -n "$WINDMC"; then
9283 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9284else
9285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9286for as_dir in $PATH
9287do
9288 IFS=$as_save_IFS
9289 test -z "$as_dir" && as_dir=.
5213506e
RW
9290 for ac_exec_ext in '' $ac_executable_extensions; do
9291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9292 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9294 break 2
9295 fi
9296done
5213506e
RW
9297 done
9298IFS=$as_save_IFS
901119ae
KT
9299
9300fi
9301fi
9302WINDMC=$ac_cv_prog_WINDMC
9303if test -n "$WINDMC"; then
5213506e
RW
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9305$as_echo "$WINDMC" >&6; }
901119ae 9306else
5213506e
RW
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9308$as_echo "no" >&6; }
901119ae
KT
9309fi
9310
5213506e 9311
901119ae
KT
9312 done
9313fi
9314
9315for ncn_progname in windmc; do
9316 if test -n "$ncn_tool_prefix"; then
9317 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9318set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9320$as_echo_n "checking for $ac_word... " >&6; }
9321if test "${ac_cv_prog_WINDMC+set}" = set; then :
9322 $as_echo_n "(cached) " >&6
901119ae
KT
9323else
9324 if test -n "$WINDMC"; then
9325 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9326else
9327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9328for as_dir in $PATH
9329do
9330 IFS=$as_save_IFS
9331 test -z "$as_dir" && as_dir=.
5213506e
RW
9332 for ac_exec_ext in '' $ac_executable_extensions; do
9333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9334 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9336 break 2
9337 fi
9338done
5213506e
RW
9339 done
9340IFS=$as_save_IFS
901119ae
KT
9341
9342fi
9343fi
9344WINDMC=$ac_cv_prog_WINDMC
9345if test -n "$WINDMC"; then
5213506e
RW
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9347$as_echo "$WINDMC" >&6; }
901119ae 9348else
5213506e
RW
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9350$as_echo "no" >&6; }
901119ae
KT
9351fi
9352
5213506e 9353
901119ae
KT
9354 fi
9355 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9356 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9357set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9359$as_echo_n "checking for $ac_word... " >&6; }
9360if test "${ac_cv_prog_WINDMC+set}" = set; then :
9361 $as_echo_n "(cached) " >&6
901119ae
KT
9362else
9363 if test -n "$WINDMC"; then
9364 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9365else
9366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9367for as_dir in $PATH
9368do
9369 IFS=$as_save_IFS
9370 test -z "$as_dir" && as_dir=.
5213506e
RW
9371 for ac_exec_ext in '' $ac_executable_extensions; do
9372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9373 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9375 break 2
9376 fi
9377done
5213506e
RW
9378 done
9379IFS=$as_save_IFS
901119ae
KT
9380
9381fi
9382fi
9383WINDMC=$ac_cv_prog_WINDMC
9384if test -n "$WINDMC"; then
5213506e
RW
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9386$as_echo "$WINDMC" >&6; }
901119ae 9387else
5213506e
RW
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9389$as_echo "no" >&6; }
901119ae
KT
9390fi
9391
5213506e 9392
901119ae
KT
9393 fi
9394 test -n "$ac_cv_prog_WINDMC" && break
9395done
9396
9397if test -z "$ac_cv_prog_WINDMC" ; then
9398 set dummy windmc
9399 if test $build = $host ; then
9400 WINDMC="$2"
9401 else
9402 WINDMC="${ncn_tool_prefix}$2"
9403 fi
9404fi
9405
9406
9407
278a7a38
AO
9408if test -n "$OBJCOPY"; then
9409 ac_cv_prog_OBJCOPY=$OBJCOPY
9410elif test -n "$ac_cv_prog_OBJCOPY"; then
9411 OBJCOPY=$ac_cv_prog_OBJCOPY
9412fi
9413
9414if test -n "$ac_cv_prog_OBJCOPY"; then
9415 for ncn_progname in objcopy; do
9416 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9417set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9419$as_echo_n "checking for $ac_word... " >&6; }
9420if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9421 $as_echo_n "(cached) " >&6
278a7a38
AO
9422else
9423 if test -n "$OBJCOPY"; then
9424 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9425else
9426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9427for as_dir in $PATH
9428do
9429 IFS=$as_save_IFS
9430 test -z "$as_dir" && as_dir=.
5213506e
RW
9431 for ac_exec_ext in '' $ac_executable_extensions; do
9432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9433 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9435 break 2
9436 fi
9437done
5213506e
RW
9438 done
9439IFS=$as_save_IFS
278a7a38
AO
9440
9441fi
9442fi
9443OBJCOPY=$ac_cv_prog_OBJCOPY
9444if test -n "$OBJCOPY"; then
5213506e
RW
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9446$as_echo "$OBJCOPY" >&6; }
278a7a38 9447else
5213506e
RW
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9449$as_echo "no" >&6; }
278a7a38
AO
9450fi
9451
5213506e 9452
278a7a38
AO
9453 done
9454fi
9455
9456for ncn_progname in objcopy; do
2693c0b0
PB
9457 if test -n "$ncn_tool_prefix"; then
9458 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9459set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9461$as_echo_n "checking for $ac_word... " >&6; }
9462if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9463 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9464else
9465 if test -n "$OBJCOPY"; then
9466 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9467else
1c710c3c
DJ
9468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9469for as_dir in $PATH
9470do
9471 IFS=$as_save_IFS
9472 test -z "$as_dir" && as_dir=.
5213506e
RW
9473 for ac_exec_ext in '' $ac_executable_extensions; do
9474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9475 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9477 break 2
9478 fi
9479done
5213506e
RW
9480 done
9481IFS=$as_save_IFS
1c710c3c 9482
ca9f4b81
AO
9483fi
9484fi
1c710c3c 9485OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 9486if test -n "$OBJCOPY"; then
5213506e
RW
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9488$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9489else
5213506e
RW
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9491$as_echo "no" >&6; }
ca9f4b81
AO
9492fi
9493
5213506e 9494
2693c0b0
PB
9495 fi
9496 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9497 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9498set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9500$as_echo_n "checking for $ac_word... " >&6; }
9501if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9502 $as_echo_n "(cached) " >&6
ca9f4b81 9503else
2693c0b0
PB
9504 if test -n "$OBJCOPY"; then
9505 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 9506else
1c710c3c
DJ
9507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9508for as_dir in $PATH
9509do
9510 IFS=$as_save_IFS
9511 test -z "$as_dir" && as_dir=.
5213506e
RW
9512 for ac_exec_ext in '' $ac_executable_extensions; do
9513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9514 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9516 break 2
9517 fi
9518done
5213506e
RW
9519 done
9520IFS=$as_save_IFS
1c710c3c 9521
ca9f4b81
AO
9522fi
9523fi
1c710c3c 9524OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 9525if test -n "$OBJCOPY"; then
5213506e
RW
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9527$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9528else
5213506e
RW
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9530$as_echo "no" >&6; }
ca9f4b81 9531fi
1c710c3c 9532
5213506e 9533
2693c0b0
PB
9534 fi
9535 test -n "$ac_cv_prog_OBJCOPY" && break
9536done
9537
9538if test -z "$ac_cv_prog_OBJCOPY" ; then
9539 set dummy objcopy
9540 if test $build = $host ; then
9541 OBJCOPY="$2"
ca9f4b81 9542 else
2693c0b0 9543 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 9544 fi
ca9f4b81
AO
9545fi
9546
278a7a38
AO
9547
9548
9549if test -n "$OBJDUMP"; then
9550 ac_cv_prog_OBJDUMP=$OBJDUMP
9551elif test -n "$ac_cv_prog_OBJDUMP"; then
9552 OBJDUMP=$ac_cv_prog_OBJDUMP
9553fi
9554
9555if test -n "$ac_cv_prog_OBJDUMP"; then
9556 for ncn_progname in objdump; do
9557 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9558set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9560$as_echo_n "checking for $ac_word... " >&6; }
9561if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9562 $as_echo_n "(cached) " >&6
278a7a38
AO
9563else
9564 if test -n "$OBJDUMP"; then
9565 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9566else
9567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9568for as_dir in $PATH
9569do
9570 IFS=$as_save_IFS
9571 test -z "$as_dir" && as_dir=.
5213506e
RW
9572 for ac_exec_ext in '' $ac_executable_extensions; do
9573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9574 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9576 break 2
9577 fi
9578done
5213506e
RW
9579 done
9580IFS=$as_save_IFS
278a7a38
AO
9581
9582fi
9583fi
9584OBJDUMP=$ac_cv_prog_OBJDUMP
9585if test -n "$OBJDUMP"; then
5213506e
RW
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9587$as_echo "$OBJDUMP" >&6; }
278a7a38 9588else
5213506e
RW
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9590$as_echo "no" >&6; }
278a7a38
AO
9591fi
9592
5213506e 9593
278a7a38
AO
9594 done
9595fi
9596
9597for ncn_progname in objdump; do
2693c0b0
PB
9598 if test -n "$ncn_tool_prefix"; then
9599 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9600set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9602$as_echo_n "checking for $ac_word... " >&6; }
9603if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9604 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9605else
9606 if test -n "$OBJDUMP"; then
9607 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9608else
1c710c3c
DJ
9609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9610for as_dir in $PATH
9611do
9612 IFS=$as_save_IFS
9613 test -z "$as_dir" && as_dir=.
5213506e
RW
9614 for ac_exec_ext in '' $ac_executable_extensions; do
9615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9616 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9618 break 2
9619 fi
9620done
5213506e
RW
9621 done
9622IFS=$as_save_IFS
1c710c3c 9623
ca9f4b81
AO
9624fi
9625fi
1c710c3c 9626OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 9627if test -n "$OBJDUMP"; then
5213506e
RW
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9629$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9630else
5213506e
RW
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9632$as_echo "no" >&6; }
ca9f4b81
AO
9633fi
9634
5213506e 9635
2693c0b0
PB
9636 fi
9637 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9638 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9639set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9641$as_echo_n "checking for $ac_word... " >&6; }
9642if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9643 $as_echo_n "(cached) " >&6
ca9f4b81 9644else
2693c0b0
PB
9645 if test -n "$OBJDUMP"; then
9646 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 9647else
1c710c3c
DJ
9648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9649for as_dir in $PATH
9650do
9651 IFS=$as_save_IFS
9652 test -z "$as_dir" && as_dir=.
5213506e
RW
9653 for ac_exec_ext in '' $ac_executable_extensions; do
9654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9655 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9657 break 2
9658 fi
9659done
5213506e
RW
9660 done
9661IFS=$as_save_IFS
1c710c3c 9662
ca9f4b81
AO
9663fi
9664fi
1c710c3c 9665OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 9666if test -n "$OBJDUMP"; then
5213506e
RW
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9668$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9669else
5213506e
RW
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9671$as_echo "no" >&6; }
ca9f4b81 9672fi
1c710c3c 9673
5213506e 9674
2693c0b0
PB
9675 fi
9676 test -n "$ac_cv_prog_OBJDUMP" && break
9677done
9678
9679if test -z "$ac_cv_prog_OBJDUMP" ; then
9680 set dummy objdump
9681 if test $build = $host ; then
9682 OBJDUMP="$2"
ca9f4b81 9683 else
2693c0b0 9684 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 9685 fi
ca9f4b81
AO
9686fi
9687
671aa708
NN
9688
9689
e7a82751
RM
9690if test -n "$READELF"; then
9691 ac_cv_prog_READELF=$READELF
9692elif test -n "$ac_cv_prog_READELF"; then
9693 READELF=$ac_cv_prog_READELF
9694fi
9695
9696if test -n "$ac_cv_prog_READELF"; then
9697 for ncn_progname in readelf; do
9698 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9699set dummy ${ncn_progname}; ac_word=$2
9700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9701$as_echo_n "checking for $ac_word... " >&6; }
9702if test "${ac_cv_prog_READELF+set}" = set; then :
9703 $as_echo_n "(cached) " >&6
9704else
9705 if test -n "$READELF"; then
9706 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9707else
9708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9709for as_dir in $PATH
9710do
9711 IFS=$as_save_IFS
9712 test -z "$as_dir" && as_dir=.
9713 for ac_exec_ext in '' $ac_executable_extensions; do
9714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9715 ac_cv_prog_READELF="${ncn_progname}"
9716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9717 break 2
9718 fi
9719done
9720 done
9721IFS=$as_save_IFS
9722
9723fi
9724fi
9725READELF=$ac_cv_prog_READELF
9726if test -n "$READELF"; then
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9728$as_echo "$READELF" >&6; }
9729else
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9731$as_echo "no" >&6; }
9732fi
9733
9734
9735 done
9736fi
9737
9738for ncn_progname in readelf; do
9739 if test -n "$ncn_tool_prefix"; then
9740 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9741set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9743$as_echo_n "checking for $ac_word... " >&6; }
9744if test "${ac_cv_prog_READELF+set}" = set; then :
9745 $as_echo_n "(cached) " >&6
9746else
9747 if test -n "$READELF"; then
9748 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9749else
9750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9751for as_dir in $PATH
9752do
9753 IFS=$as_save_IFS
9754 test -z "$as_dir" && as_dir=.
9755 for ac_exec_ext in '' $ac_executable_extensions; do
9756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9757 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9759 break 2
9760 fi
9761done
9762 done
9763IFS=$as_save_IFS
9764
9765fi
9766fi
9767READELF=$ac_cv_prog_READELF
9768if test -n "$READELF"; then
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9770$as_echo "$READELF" >&6; }
9771else
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9773$as_echo "no" >&6; }
9774fi
9775
9776
9777 fi
9778 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9779 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9780set dummy ${ncn_progname}; ac_word=$2
9781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9782$as_echo_n "checking for $ac_word... " >&6; }
9783if test "${ac_cv_prog_READELF+set}" = set; then :
9784 $as_echo_n "(cached) " >&6
9785else
9786 if test -n "$READELF"; then
9787 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9788else
9789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9790for as_dir in $PATH
9791do
9792 IFS=$as_save_IFS
9793 test -z "$as_dir" && as_dir=.
9794 for ac_exec_ext in '' $ac_executable_extensions; do
9795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9796 ac_cv_prog_READELF="${ncn_progname}"
9797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9798 break 2
9799 fi
9800done
9801 done
9802IFS=$as_save_IFS
9803
9804fi
9805fi
9806READELF=$ac_cv_prog_READELF
9807if test -n "$READELF"; then
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9809$as_echo "$READELF" >&6; }
9810else
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9812$as_echo "no" >&6; }
9813fi
9814
9815
9816 fi
9817 test -n "$ac_cv_prog_READELF" && break
9818done
9819
9820if test -z "$ac_cv_prog_READELF" ; then
9821 set dummy readelf
9822 if test $build = $host ; then
9823 READELF="$2"
9824 else
9825 READELF="${ncn_tool_prefix}$2"
9826 fi
9827fi
9828
9829
9830
671aa708
NN
9831
9832
9833
2abefe3d 9834# Target tools.
1c710c3c 9835
5213506e
RW
9836# Check whether --with-build-time-tools was given.
9837if test "${with_build_time_tools+set}" = set; then :
9838 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
9839 x/*) ;;
9840 *)
9841 with_build_time_tools=
5213506e
RW
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9843$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
9844 ;;
9845 esac
ca9f4b81 9846else
e8b05380 9847 with_build_time_tools=
5213506e
RW
9848fi
9849
ca9f4b81 9850
278a7a38
AO
9851
9852
9853if test -n "$CC_FOR_TARGET"; then
9854 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9855elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9856 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9857fi
9858
9859if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9860 for ncn_progname in cc gcc; do
9861 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9862set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9864$as_echo_n "checking for $ac_word... " >&6; }
9865if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9866 $as_echo_n "(cached) " >&6
278a7a38
AO
9867else
9868 if test -n "$CC_FOR_TARGET"; then
9869 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9870else
9871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9872for as_dir in $PATH
9873do
9874 IFS=$as_save_IFS
9875 test -z "$as_dir" && as_dir=.
5213506e
RW
9876 for ac_exec_ext in '' $ac_executable_extensions; do
9877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9878 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9880 break 2
9881 fi
9882done
5213506e
RW
9883 done
9884IFS=$as_save_IFS
278a7a38
AO
9885
9886fi
9887fi
9888CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9889if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9891$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 9892else
5213506e
RW
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9894$as_echo "no" >&6; }
278a7a38
AO
9895fi
9896
5213506e 9897
278a7a38
AO
9898 done
9899fi
9900
9901if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9902 for ncn_progname in cc gcc; do
5213506e
RW
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9904$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9905 if test -x $with_build_time_tools/${ncn_progname}; then
9906 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9908$as_echo "yes" >&6; }
72a7ab82 9909 break
e8b05380 9910 else
5213506e
RW
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9912$as_echo "no" >&6; }
72a7ab82
AP
9913 fi
9914 done
4de997d1
PB
9915fi
9916
e8b05380
PB
9917if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9918 for ncn_progname in cc gcc; do
9919 if test -n "$ncn_target_tool_prefix"; then
9920 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9921set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9923$as_echo_n "checking for $ac_word... " >&6; }
9924if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9925 $as_echo_n "(cached) " >&6
4de997d1
PB
9926else
9927 if test -n "$CC_FOR_TARGET"; then
9928 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9929else
1c710c3c
DJ
9930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9931for as_dir in $PATH
9932do
9933 IFS=$as_save_IFS
9934 test -z "$as_dir" && as_dir=.
5213506e
RW
9935 for ac_exec_ext in '' $ac_executable_extensions; do
9936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9937 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9939 break 2
9940 fi
9941done
5213506e
RW
9942 done
9943IFS=$as_save_IFS
1c710c3c 9944
4de997d1
PB
9945fi
9946fi
1c710c3c 9947CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 9948if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9950$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9951else
5213506e
RW
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9953$as_echo "no" >&6; }
4de997d1
PB
9954fi
9955
5213506e 9956
e8b05380
PB
9957 fi
9958 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9959 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9960set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9962$as_echo_n "checking for $ac_word... " >&6; }
9963if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9964 $as_echo_n "(cached) " >&6
4de997d1 9965else
2693c0b0
PB
9966 if test -n "$CC_FOR_TARGET"; then
9967 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 9968else
1c710c3c
DJ
9969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9970for as_dir in $PATH
9971do
9972 IFS=$as_save_IFS
9973 test -z "$as_dir" && as_dir=.
5213506e
RW
9974 for ac_exec_ext in '' $ac_executable_extensions; do
9975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9976 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9978 break 2
9979 fi
9980done
5213506e
RW
9981 done
9982IFS=$as_save_IFS
1c710c3c 9983
4de997d1
PB
9984fi
9985fi
1c710c3c 9986CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 9987if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9989$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9990else
5213506e
RW
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9992$as_echo "no" >&6; }
4de997d1 9993fi
1c710c3c 9994
5213506e 9995
e8b05380
PB
9996 fi
9997 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9998 done
9999fi
1c710c3c 10000
2693c0b0
PB
10001if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10002 set dummy cc gcc
10003 if test $build = $target ; then
10004 CC_FOR_TARGET="$2"
4de997d1 10005 else
2693c0b0 10006 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10007 fi
1c00b503
PB
10008else
10009 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
10010fi
10011
278a7a38
AO
10012
10013
10014if test -n "$CXX_FOR_TARGET"; then
10015 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10016elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10017 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10018fi
10019
10020if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10021 for ncn_progname in c++ g++ cxx gxx; do
10022 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10023set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10025$as_echo_n "checking for $ac_word... " >&6; }
10026if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10027 $as_echo_n "(cached) " >&6
278a7a38
AO
10028else
10029 if test -n "$CXX_FOR_TARGET"; then
10030 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10031else
10032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10033for as_dir in $PATH
10034do
10035 IFS=$as_save_IFS
10036 test -z "$as_dir" && as_dir=.
5213506e
RW
10037 for ac_exec_ext in '' $ac_executable_extensions; do
10038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10039 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10041 break 2
10042 fi
10043done
5213506e
RW
10044 done
10045IFS=$as_save_IFS
278a7a38
AO
10046
10047fi
10048fi
10049CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10050if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10052$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 10053else
5213506e
RW
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10055$as_echo "no" >&6; }
278a7a38
AO
10056fi
10057
5213506e 10058
278a7a38
AO
10059 done
10060fi
10061
10062if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10063 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10065$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10066 if test -x $with_build_time_tools/${ncn_progname}; then
10067 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10069$as_echo "yes" >&6; }
e8b05380
PB
10070 break
10071 else
5213506e
RW
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10073$as_echo "no" >&6; }
e8b05380
PB
10074 fi
10075 done
10076fi
10077
10078if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10079 for ncn_progname in c++ g++ cxx gxx; do
10080 if test -n "$ncn_target_tool_prefix"; then
10081 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10082set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10084$as_echo_n "checking for $ac_word... " >&6; }
10085if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10086 $as_echo_n "(cached) " >&6
4de997d1
PB
10087else
10088 if test -n "$CXX_FOR_TARGET"; then
10089 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10090else
1c710c3c
DJ
10091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10092for as_dir in $PATH
10093do
10094 IFS=$as_save_IFS
10095 test -z "$as_dir" && as_dir=.
5213506e
RW
10096 for ac_exec_ext in '' $ac_executable_extensions; do
10097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10098 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10100 break 2
10101 fi
10102done
5213506e
RW
10103 done
10104IFS=$as_save_IFS
1c710c3c 10105
4de997d1
PB
10106fi
10107fi
1c710c3c 10108CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 10109if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10111$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10112else
5213506e
RW
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10114$as_echo "no" >&6; }
4de997d1
PB
10115fi
10116
5213506e 10117
e8b05380
PB
10118 fi
10119 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10120 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10121set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10123$as_echo_n "checking for $ac_word... " >&6; }
10124if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10125 $as_echo_n "(cached) " >&6
4de997d1 10126else
2693c0b0
PB
10127 if test -n "$CXX_FOR_TARGET"; then
10128 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 10129else
1c710c3c
DJ
10130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10131for as_dir in $PATH
10132do
10133 IFS=$as_save_IFS
10134 test -z "$as_dir" && as_dir=.
5213506e
RW
10135 for ac_exec_ext in '' $ac_executable_extensions; do
10136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10137 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10139 break 2
10140 fi
10141done
5213506e
RW
10142 done
10143IFS=$as_save_IFS
1c710c3c 10144
4de997d1
PB
10145fi
10146fi
1c710c3c 10147CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 10148if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10150$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10151else
5213506e
RW
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10153$as_echo "no" >&6; }
4de997d1 10154fi
1c710c3c 10155
5213506e 10156
e8b05380
PB
10157 fi
10158 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10159 done
10160fi
1c710c3c 10161
2693c0b0
PB
10162if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10163 set dummy c++ g++ cxx gxx
10164 if test $build = $target ; then
10165 CXX_FOR_TARGET="$2"
4de997d1 10166 else
2693c0b0 10167 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10168 fi
1c00b503
PB
10169else
10170 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
10171fi
10172
278a7a38
AO
10173
10174
10175if test -n "$GCC_FOR_TARGET"; then
10176 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10177elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10178 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10179fi
10180
10181if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10182 for ncn_progname in gcc; do
10183 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10184set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10186$as_echo_n "checking for $ac_word... " >&6; }
10187if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10188 $as_echo_n "(cached) " >&6
278a7a38
AO
10189else
10190 if test -n "$GCC_FOR_TARGET"; then
10191 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10192else
10193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10194for as_dir in $PATH
10195do
10196 IFS=$as_save_IFS
10197 test -z "$as_dir" && as_dir=.
5213506e
RW
10198 for ac_exec_ext in '' $ac_executable_extensions; do
10199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10200 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10202 break 2
10203 fi
10204done
5213506e
RW
10205 done
10206IFS=$as_save_IFS
278a7a38
AO
10207
10208fi
10209fi
10210GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10211if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10213$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 10214else
5213506e
RW
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10216$as_echo "no" >&6; }
278a7a38
AO
10217fi
10218
5213506e 10219
278a7a38
AO
10220 done
10221fi
10222
10223if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10224 for ncn_progname in gcc; do
5213506e
RW
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10226$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10227 if test -x $with_build_time_tools/${ncn_progname}; then
10228 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10230$as_echo "yes" >&6; }
e8b05380
PB
10231 break
10232 else
5213506e
RW
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10234$as_echo "no" >&6; }
e8b05380
PB
10235 fi
10236 done
10237fi
10238
10239if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10240 for ncn_progname in gcc; do
10241 if test -n "$ncn_target_tool_prefix"; then
10242 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10243set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10245$as_echo_n "checking for $ac_word... " >&6; }
10246if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10247 $as_echo_n "(cached) " >&6
ca9f4b81 10248else
e8b05380
PB
10249 if test -n "$GCC_FOR_TARGET"; then
10250 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10251else
1c710c3c
DJ
10252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10253for as_dir in $PATH
10254do
10255 IFS=$as_save_IFS
10256 test -z "$as_dir" && as_dir=.
5213506e
RW
10257 for ac_exec_ext in '' $ac_executable_extensions; do
10258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10259 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10261 break 2
10262 fi
10263done
5213506e
RW
10264 done
10265IFS=$as_save_IFS
1c710c3c 10266
ca9f4b81
AO
10267fi
10268fi
1c710c3c 10269GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10270if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10272$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10273else
5213506e
RW
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10275$as_echo "no" >&6; }
ca9f4b81
AO
10276fi
10277
5213506e 10278
e8b05380
PB
10279 fi
10280 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10281 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10282set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10284$as_echo_n "checking for $ac_word... " >&6; }
10285if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10286 $as_echo_n "(cached) " >&6
ca9f4b81 10287else
e8b05380
PB
10288 if test -n "$GCC_FOR_TARGET"; then
10289 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10290else
1c710c3c
DJ
10291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10292for as_dir in $PATH
10293do
10294 IFS=$as_save_IFS
10295 test -z "$as_dir" && as_dir=.
5213506e
RW
10296 for ac_exec_ext in '' $ac_executable_extensions; do
10297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10298 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10300 break 2
10301 fi
10302done
5213506e
RW
10303 done
10304IFS=$as_save_IFS
1c710c3c 10305
ca9f4b81
AO
10306fi
10307fi
1c710c3c 10308GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10309if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10311$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10312else
5213506e
RW
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10314$as_echo "no" >&6; }
ca9f4b81 10315fi
1c710c3c 10316
5213506e 10317
e8b05380
PB
10318 fi
10319 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10320 done
10321fi
1c710c3c 10322
e8b05380
PB
10323if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10324 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10325else
10326 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10327fi
10328
278a7a38
AO
10329
10330
10331if test -n "$GCJ_FOR_TARGET"; then
10332 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10333elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10334 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10335fi
10336
10337if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10338 for ncn_progname in gcj; do
10339 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10340set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10342$as_echo_n "checking for $ac_word... " >&6; }
10343if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10344 $as_echo_n "(cached) " >&6
278a7a38
AO
10345else
10346 if test -n "$GCJ_FOR_TARGET"; then
10347 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10348else
10349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10350for as_dir in $PATH
10351do
10352 IFS=$as_save_IFS
10353 test -z "$as_dir" && as_dir=.
5213506e
RW
10354 for ac_exec_ext in '' $ac_executable_extensions; do
10355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10356 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10358 break 2
10359 fi
10360done
5213506e
RW
10361 done
10362IFS=$as_save_IFS
278a7a38
AO
10363
10364fi
10365fi
10366GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10367if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10369$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10370else
5213506e
RW
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10372$as_echo "no" >&6; }
278a7a38
AO
10373fi
10374
5213506e 10375
278a7a38
AO
10376 done
10377fi
10378
10379if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10380 for ncn_progname in gcj; do
5213506e
RW
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10382$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10383 if test -x $with_build_time_tools/${ncn_progname}; then
10384 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10386$as_echo "yes" >&6; }
e8b05380
PB
10387 break
10388 else
5213506e
RW
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10390$as_echo "no" >&6; }
e8b05380
PB
10391 fi
10392 done
10393fi
10394
10395if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10396 for ncn_progname in gcj; do
10397 if test -n "$ncn_target_tool_prefix"; then
10398 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10399set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10401$as_echo_n "checking for $ac_word... " >&6; }
10402if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10403 $as_echo_n "(cached) " >&6
e8b05380 10404else
fb0103e5
RG
10405 if test -n "$GCJ_FOR_TARGET"; then
10406 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10407else
1c710c3c
DJ
10408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10409for as_dir in $PATH
10410do
10411 IFS=$as_save_IFS
10412 test -z "$as_dir" && as_dir=.
5213506e
RW
10413 for ac_exec_ext in '' $ac_executable_extensions; do
10414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10415 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10417 break 2
10418 fi
10419done
5213506e
RW
10420 done
10421IFS=$as_save_IFS
1c710c3c 10422
e8b05380
PB
10423fi
10424fi
278a7a38
AO
10425GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10426if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10428$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10429else
5213506e
RW
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10431$as_echo "no" >&6; }
278a7a38
AO
10432fi
10433
5213506e 10434
278a7a38
AO
10435 fi
10436 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10437 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10438set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10440$as_echo_n "checking for $ac_word... " >&6; }
10441if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10442 $as_echo_n "(cached) " >&6
278a7a38
AO
10443else
10444 if test -n "$GCJ_FOR_TARGET"; then
10445 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10446else
10447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10448for as_dir in $PATH
10449do
10450 IFS=$as_save_IFS
10451 test -z "$as_dir" && as_dir=.
5213506e
RW
10452 for ac_exec_ext in '' $ac_executable_extensions; do
10453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10454 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10456 break 2
10457 fi
10458done
5213506e
RW
10459 done
10460IFS=$as_save_IFS
278a7a38
AO
10461
10462fi
10463fi
10464GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10465if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10467$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10468else
5213506e
RW
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10470$as_echo "no" >&6; }
278a7a38
AO
10471fi
10472
5213506e 10473
278a7a38
AO
10474 fi
10475 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10476 done
10477fi
10478
10479if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10480 set dummy gcj
10481 if test $build = $target ; then
10482 GCJ_FOR_TARGET="$2"
10483 else
10484 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10485 fi
1c00b503
PB
10486else
10487 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
10488fi
10489
10490
10491
10492if test -n "$GFORTRAN_FOR_TARGET"; then
10493 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10494elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10495 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10496fi
10497
278a7a38
AO
10498if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10499 for ncn_progname in gfortran; do
10500 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10501set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10503$as_echo_n "checking for $ac_word... " >&6; }
10504if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10505 $as_echo_n "(cached) " >&6
e8b05380 10506else
278a7a38
AO
10507 if test -n "$GFORTRAN_FOR_TARGET"; then
10508 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10509else
1c710c3c
DJ
10510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10511for as_dir in $PATH
10512do
10513 IFS=$as_save_IFS
10514 test -z "$as_dir" && as_dir=.
5213506e
RW
10515 for ac_exec_ext in '' $ac_executable_extensions; do
10516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10517 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10519 break 2
10520 fi
10521done
5213506e
RW
10522 done
10523IFS=$as_save_IFS
1c710c3c 10524
e8b05380
PB
10525fi
10526fi
278a7a38
AO
10527GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10528if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10530$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10531else
5213506e
RW
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10533$as_echo "no" >&6; }
e8b05380 10534fi
1c710c3c 10535
5213506e 10536
e8b05380
PB
10537 done
10538fi
1c710c3c 10539
278a7a38 10540if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10541 for ncn_progname in gfortran; do
5213506e
RW
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10543$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10544 if test -x $with_build_time_tools/${ncn_progname}; then
10545 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10547$as_echo "yes" >&6; }
e8b05380
PB
10548 break
10549 else
5213506e
RW
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10551$as_echo "no" >&6; }
e8b05380
PB
10552 fi
10553 done
10554fi
10555
10556if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10557 for ncn_progname in gfortran; do
10558 if test -n "$ncn_target_tool_prefix"; then
10559 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10560set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10562$as_echo_n "checking for $ac_word... " >&6; }
10563if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10564 $as_echo_n "(cached) " >&6
e8b05380
PB
10565else
10566 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10567 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10568else
10569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10570for as_dir in $PATH
10571do
10572 IFS=$as_save_IFS
10573 test -z "$as_dir" && as_dir=.
5213506e
RW
10574 for ac_exec_ext in '' $ac_executable_extensions; do
10575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10576 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10578 break 2
10579 fi
10580done
5213506e
RW
10581 done
10582IFS=$as_save_IFS
1c710c3c 10583
e8b05380
PB
10584fi
10585fi
1c710c3c 10586GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10587if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10589$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10590else
5213506e
RW
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10592$as_echo "no" >&6; }
e8b05380
PB
10593fi
10594
5213506e 10595
e8b05380
PB
10596 fi
10597 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10598 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10599set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10601$as_echo_n "checking for $ac_word... " >&6; }
10602if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10603 $as_echo_n "(cached) " >&6
e8b05380
PB
10604else
10605 if test -n "$GFORTRAN_FOR_TARGET"; then
10606 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10607else
1c710c3c
DJ
10608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10609for as_dir in $PATH
10610do
10611 IFS=$as_save_IFS
10612 test -z "$as_dir" && as_dir=.
5213506e
RW
10613 for ac_exec_ext in '' $ac_executable_extensions; do
10614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10615 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10617 break 2
10618 fi
10619done
5213506e
RW
10620 done
10621IFS=$as_save_IFS
1c710c3c 10622
e8b05380
PB
10623fi
10624fi
1c710c3c 10625GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10626if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10628$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10629else
5213506e
RW
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10631$as_echo "no" >&6; }
e8b05380 10632fi
1c710c3c 10633
5213506e 10634
e8b05380
PB
10635 fi
10636 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10637 done
10638fi
1c710c3c 10639
e8b05380
PB
10640if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10641 set dummy gfortran
2693c0b0 10642 if test $build = $target ; then
e8b05380 10643 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 10644 else
e8b05380
PB
10645 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10646 fi
1c00b503
PB
10647else
10648 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
10649fi
10650
10651
10652
632e2a07
ILT
10653if test -n "$GOC_FOR_TARGET"; then
10654 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10655elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10656 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10657fi
10658
10659if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10660 for ncn_progname in gccgo; do
10661 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10662set dummy ${ncn_progname}; ac_word=$2
10663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10664$as_echo_n "checking for $ac_word... " >&6; }
10665if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10666 $as_echo_n "(cached) " >&6
10667else
10668 if test -n "$GOC_FOR_TARGET"; then
10669 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10670else
10671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10672for as_dir in $PATH
10673do
10674 IFS=$as_save_IFS
10675 test -z "$as_dir" && as_dir=.
10676 for ac_exec_ext in '' $ac_executable_extensions; do
10677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10678 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10680 break 2
10681 fi
10682done
10683 done
10684IFS=$as_save_IFS
10685
10686fi
10687fi
10688GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10689if test -n "$GOC_FOR_TARGET"; then
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10691$as_echo "$GOC_FOR_TARGET" >&6; }
10692else
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10694$as_echo "no" >&6; }
10695fi
10696
10697
10698 done
10699fi
10700
10701if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10702 for ncn_progname in gccgo; do
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10704$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10705 if test -x $with_build_time_tools/${ncn_progname}; then
10706 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10708$as_echo "yes" >&6; }
10709 break
10710 else
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10712$as_echo "no" >&6; }
10713 fi
10714 done
10715fi
10716
10717if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10718 for ncn_progname in gccgo; do
10719 if test -n "$ncn_target_tool_prefix"; then
10720 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10721set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10723$as_echo_n "checking for $ac_word... " >&6; }
10724if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10725 $as_echo_n "(cached) " >&6
10726else
10727 if test -n "$GOC_FOR_TARGET"; then
10728 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10729else
10730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10731for as_dir in $PATH
10732do
10733 IFS=$as_save_IFS
10734 test -z "$as_dir" && as_dir=.
10735 for ac_exec_ext in '' $ac_executable_extensions; do
10736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10737 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10739 break 2
10740 fi
10741done
10742 done
10743IFS=$as_save_IFS
10744
10745fi
10746fi
10747GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10748if test -n "$GOC_FOR_TARGET"; then
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10750$as_echo "$GOC_FOR_TARGET" >&6; }
10751else
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10753$as_echo "no" >&6; }
10754fi
10755
10756
10757 fi
10758 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10759 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10760set dummy ${ncn_progname}; ac_word=$2
10761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10762$as_echo_n "checking for $ac_word... " >&6; }
10763if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10764 $as_echo_n "(cached) " >&6
10765else
10766 if test -n "$GOC_FOR_TARGET"; then
10767 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10768else
10769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10770for as_dir in $PATH
10771do
10772 IFS=$as_save_IFS
10773 test -z "$as_dir" && as_dir=.
10774 for ac_exec_ext in '' $ac_executable_extensions; do
10775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10776 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10778 break 2
10779 fi
10780done
10781 done
10782IFS=$as_save_IFS
10783
10784fi
10785fi
10786GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10787if test -n "$GOC_FOR_TARGET"; then
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10789$as_echo "$GOC_FOR_TARGET" >&6; }
10790else
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10792$as_echo "no" >&6; }
10793fi
10794
10795
10796 fi
10797 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10798 done
10799fi
10800
10801if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10802 set dummy gccgo
10803 if test $build = $target ; then
10804 GOC_FOR_TARGET="$2"
10805 else
10806 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10807 fi
10808else
10809 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10810fi
10811
10812
10813
e8b05380
PB
10814cat > conftest.c << \EOF
10815#ifdef __GNUC__
10816 gcc_yay;
10817#endif
10818EOF
10819if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10820 have_gcc_for_target=yes
10821else
10822 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10823 have_gcc_for_target=no
10824fi
10825rm conftest.c
10826
10827
10828
10829
10830if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10831 if test -n "$with_build_time_tools"; then
5213506e
RW
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10833$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10834 if test -x $with_build_time_tools/ar; then
10835 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10836 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10838$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 10839 else
5213506e
RW
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10841$as_echo "no" >&6; }
d1f8db0c 10842 fi
e8b05380
PB
10843 elif test $build != $host && test $have_gcc_for_target = yes; then
10844 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
10845 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10846 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
10847 fi
10848fi
3e19841a 10849if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10850 # Extract the first word of "ar", so it can be a program name with args.
10851set dummy ar; ac_word=$2
5213506e
RW
10852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10853$as_echo_n "checking for $ac_word... " >&6; }
10854if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10855 $as_echo_n "(cached) " >&6
e8b05380 10856else
1c710c3c
DJ
10857 case $AR_FOR_TARGET in
10858 [\\/]* | ?:[\\/]*)
e8b05380
PB
10859 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10860 ;;
e8b05380 10861 *)
1c710c3c
DJ
10862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10863for as_dir in $gcc_cv_tool_dirs
10864do
10865 IFS=$as_save_IFS
10866 test -z "$as_dir" && as_dir=.
5213506e
RW
10867 for ac_exec_ext in '' $ac_executable_extensions; do
10868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10869 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10871 break 2
10872 fi
10873done
5213506e
RW
10874 done
10875IFS=$as_save_IFS
1c710c3c 10876
e8b05380
PB
10877 ;;
10878esac
10879fi
1c710c3c 10880AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 10881if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10883$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10884else
5213506e
RW
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10886$as_echo "no" >&6; }
4de997d1
PB
10887fi
10888
5213506e 10889
e8b05380
PB
10890fi
10891if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
10892
10893
10894if test -n "$AR_FOR_TARGET"; then
10895 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10896elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10897 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10898fi
10899
10900if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10901 for ncn_progname in ar; do
10902 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10903set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10905$as_echo_n "checking for $ac_word... " >&6; }
10906if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10907 $as_echo_n "(cached) " >&6
278a7a38
AO
10908else
10909 if test -n "$AR_FOR_TARGET"; then
10910 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10911else
10912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10913for as_dir in $PATH
10914do
10915 IFS=$as_save_IFS
10916 test -z "$as_dir" && as_dir=.
5213506e
RW
10917 for ac_exec_ext in '' $ac_executable_extensions; do
10918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10919 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10921 break 2
10922 fi
10923done
5213506e
RW
10924 done
10925IFS=$as_save_IFS
278a7a38
AO
10926
10927fi
10928fi
10929AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10930if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10932$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 10933else
5213506e
RW
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10935$as_echo "no" >&6; }
278a7a38
AO
10936fi
10937
5213506e 10938
278a7a38
AO
10939 done
10940fi
10941
10942if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10943 for ncn_progname in ar; do
5213506e
RW
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10945$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10946 if test -x $with_build_time_tools/${ncn_progname}; then
10947 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10949$as_echo "yes" >&6; }
e8b05380
PB
10950 break
10951 else
5213506e
RW
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10953$as_echo "no" >&6; }
e8b05380
PB
10954 fi
10955 done
10956fi
10957
10958if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10959 for ncn_progname in ar; do
10960 if test -n "$ncn_target_tool_prefix"; then
10961 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10962set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10964$as_echo_n "checking for $ac_word... " >&6; }
10965if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10966 $as_echo_n "(cached) " >&6
4de997d1 10967else
e8b05380
PB
10968 if test -n "$AR_FOR_TARGET"; then
10969 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 10970else
1c710c3c
DJ
10971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10972for as_dir in $PATH
10973do
10974 IFS=$as_save_IFS
10975 test -z "$as_dir" && as_dir=.
5213506e
RW
10976 for ac_exec_ext in '' $ac_executable_extensions; do
10977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10978 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10980 break 2
10981 fi
10982done
5213506e
RW
10983 done
10984IFS=$as_save_IFS
1c710c3c 10985
4de997d1
PB
10986fi
10987fi
1c710c3c 10988AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10989if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10991$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 10992else
5213506e
RW
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10994$as_echo "no" >&6; }
4de997d1
PB
10995fi
10996
5213506e 10997
e8b05380
PB
10998 fi
10999 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11000 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11001set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11003$as_echo_n "checking for $ac_word... " >&6; }
11004if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11005 $as_echo_n "(cached) " >&6
e8b05380
PB
11006else
11007 if test -n "$AR_FOR_TARGET"; then
11008 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11009else
1c710c3c
DJ
11010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11011for as_dir in $PATH
11012do
11013 IFS=$as_save_IFS
11014 test -z "$as_dir" && as_dir=.
5213506e
RW
11015 for ac_exec_ext in '' $ac_executable_extensions; do
11016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11017 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 11018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11019 break 2
11020 fi
11021done
5213506e
RW
11022 done
11023IFS=$as_save_IFS
1c710c3c 11024
e8b05380
PB
11025fi
11026fi
1c710c3c 11027AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11028if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11030$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 11031else
5213506e
RW
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11033$as_echo "no" >&6; }
e8b05380 11034fi
1c710c3c 11035
5213506e 11036
e8b05380
PB
11037 fi
11038 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11039 done
11040fi
1c710c3c 11041
e8b05380
PB
11042if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11043 set dummy ar
11044 if test $build = $target ; then
11045 AR_FOR_TARGET="$2"
11046 else
11047 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 11048 fi
1c00b503
PB
11049else
11050 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
11051fi
11052
d1f8db0c
PB
11053else
11054 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
11055fi
11056
11057
11058
11059
11060if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11061 if test -n "$with_build_time_tools"; then
5213506e
RW
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11063$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11064 if test -x $with_build_time_tools/as; then
11065 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11066 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11068$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 11069 else
5213506e
RW
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11071$as_echo "no" >&6; }
d1f8db0c 11072 fi
e8b05380
PB
11073 elif test $build != $host && test $have_gcc_for_target = yes; then
11074 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
11075 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11076 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
11077 fi
11078fi
3e19841a 11079if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11080 # Extract the first word of "as", so it can be a program name with args.
11081set dummy as; ac_word=$2
5213506e
RW
11082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11083$as_echo_n "checking for $ac_word... " >&6; }
11084if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11085 $as_echo_n "(cached) " >&6
e8b05380 11086else
1c710c3c
DJ
11087 case $AS_FOR_TARGET in
11088 [\\/]* | ?:[\\/]*)
e8b05380
PB
11089 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11090 ;;
e8b05380 11091 *)
1c710c3c
DJ
11092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11093for as_dir in $gcc_cv_tool_dirs
11094do
11095 IFS=$as_save_IFS
11096 test -z "$as_dir" && as_dir=.
5213506e
RW
11097 for ac_exec_ext in '' $ac_executable_extensions; do
11098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11099 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11101 break 2
11102 fi
11103done
5213506e
RW
11104 done
11105IFS=$as_save_IFS
1c710c3c 11106
e8b05380
PB
11107 ;;
11108esac
11109fi
1c710c3c 11110AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 11111if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11113$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11114else
5213506e
RW
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11116$as_echo "no" >&6; }
e8b05380
PB
11117fi
11118
5213506e 11119
e8b05380
PB
11120fi
11121if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
11122
11123
11124if test -n "$AS_FOR_TARGET"; then
11125 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11126elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11127 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11128fi
11129
11130if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11131 for ncn_progname in as; do
11132 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11133set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11135$as_echo_n "checking for $ac_word... " >&6; }
11136if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11137 $as_echo_n "(cached) " >&6
278a7a38
AO
11138else
11139 if test -n "$AS_FOR_TARGET"; then
11140 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11141else
11142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11143for as_dir in $PATH
11144do
11145 IFS=$as_save_IFS
11146 test -z "$as_dir" && as_dir=.
5213506e
RW
11147 for ac_exec_ext in '' $ac_executable_extensions; do
11148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11149 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11151 break 2
11152 fi
11153done
5213506e
RW
11154 done
11155IFS=$as_save_IFS
278a7a38
AO
11156
11157fi
11158fi
11159AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11160if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11162$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 11163else
5213506e
RW
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11165$as_echo "no" >&6; }
278a7a38
AO
11166fi
11167
5213506e 11168
278a7a38
AO
11169 done
11170fi
11171
11172if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11173 for ncn_progname in as; do
5213506e
RW
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11175$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11176 if test -x $with_build_time_tools/${ncn_progname}; then
11177 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11179$as_echo "yes" >&6; }
e8b05380
PB
11180 break
11181 else
5213506e
RW
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11183$as_echo "no" >&6; }
e8b05380
PB
11184 fi
11185 done
11186fi
11187
11188if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11189 for ncn_progname in as; do
11190 if test -n "$ncn_target_tool_prefix"; then
11191 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11192set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11194$as_echo_n "checking for $ac_word... " >&6; }
11195if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11196 $as_echo_n "(cached) " >&6
e8b05380
PB
11197else
11198 if test -n "$AS_FOR_TARGET"; then
11199 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11200else
1c710c3c
DJ
11201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11202for as_dir in $PATH
11203do
11204 IFS=$as_save_IFS
11205 test -z "$as_dir" && as_dir=.
5213506e
RW
11206 for ac_exec_ext in '' $ac_executable_extensions; do
11207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11208 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11210 break 2
11211 fi
11212done
5213506e
RW
11213 done
11214IFS=$as_save_IFS
1c710c3c 11215
e8b05380
PB
11216fi
11217fi
1c710c3c 11218AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11219if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11221$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11222else
5213506e
RW
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11224$as_echo "no" >&6; }
e8b05380
PB
11225fi
11226
5213506e 11227
e8b05380
PB
11228 fi
11229 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11230 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11231set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11233$as_echo_n "checking for $ac_word... " >&6; }
11234if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11235 $as_echo_n "(cached) " >&6
4de997d1 11236else
e8b05380
PB
11237 if test -n "$AS_FOR_TARGET"; then
11238 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 11239else
1c710c3c
DJ
11240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11241for as_dir in $PATH
11242do
11243 IFS=$as_save_IFS
11244 test -z "$as_dir" && as_dir=.
5213506e
RW
11245 for ac_exec_ext in '' $ac_executable_extensions; do
11246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11247 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11249 break 2
11250 fi
11251done
5213506e
RW
11252 done
11253IFS=$as_save_IFS
1c710c3c 11254
4de997d1
PB
11255fi
11256fi
1c710c3c 11257AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11258if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11260$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 11261else
5213506e
RW
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11263$as_echo "no" >&6; }
4de997d1 11264fi
1c710c3c 11265
5213506e 11266
e8b05380
PB
11267 fi
11268 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11269 done
11270fi
1c710c3c 11271
e8b05380
PB
11272if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11273 set dummy as
11274 if test $build = $target ; then
11275 AS_FOR_TARGET="$2"
11276 else
11277 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 11278 fi
1c00b503
PB
11279else
11280 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 11281fi
2693c0b0 11282
d1f8db0c
PB
11283else
11284 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
11285fi
11286
e8b05380
PB
11287
11288
11289
11290if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11291 if test -n "$with_build_time_tools"; then
5213506e
RW
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11293$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11294 if test -x $with_build_time_tools/dlltool; then
11295 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11296 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11298$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 11299 else
5213506e
RW
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11301$as_echo "no" >&6; }
d1f8db0c 11302 fi
e8b05380
PB
11303 elif test $build != $host && test $have_gcc_for_target = yes; then
11304 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
11305 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11306 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
11307 fi
11308fi
3e19841a 11309if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11310 # Extract the first word of "dlltool", so it can be a program name with args.
11311set dummy dlltool; ac_word=$2
5213506e
RW
11312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11313$as_echo_n "checking for $ac_word... " >&6; }
11314if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11315 $as_echo_n "(cached) " >&6
4de997d1 11316else
1c710c3c
DJ
11317 case $DLLTOOL_FOR_TARGET in
11318 [\\/]* | ?:[\\/]*)
e8b05380
PB
11319 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11320 ;;
e8b05380 11321 *)
1c710c3c
DJ
11322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11323for as_dir in $gcc_cv_tool_dirs
11324do
11325 IFS=$as_save_IFS
11326 test -z "$as_dir" && as_dir=.
5213506e
RW
11327 for ac_exec_ext in '' $ac_executable_extensions; do
11328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11329 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11331 break 2
11332 fi
11333done
5213506e
RW
11334 done
11335IFS=$as_save_IFS
1c710c3c 11336
e8b05380
PB
11337 ;;
11338esac
4de997d1 11339fi
1c710c3c 11340DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 11341if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11343$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11344else
5213506e
RW
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11346$as_echo "no" >&6; }
4de997d1
PB
11347fi
11348
5213506e 11349
e8b05380
PB
11350fi
11351if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
11352
11353
11354if test -n "$DLLTOOL_FOR_TARGET"; then
11355 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11356elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11357 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11358fi
11359
11360if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11361 for ncn_progname in dlltool; do
11362 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11363set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11365$as_echo_n "checking for $ac_word... " >&6; }
11366if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11367 $as_echo_n "(cached) " >&6
278a7a38
AO
11368else
11369 if test -n "$DLLTOOL_FOR_TARGET"; then
11370 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11371else
11372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11373for as_dir in $PATH
11374do
11375 IFS=$as_save_IFS
11376 test -z "$as_dir" && as_dir=.
5213506e
RW
11377 for ac_exec_ext in '' $ac_executable_extensions; do
11378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11379 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11381 break 2
11382 fi
11383done
5213506e
RW
11384 done
11385IFS=$as_save_IFS
278a7a38
AO
11386
11387fi
11388fi
11389DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11390if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11392$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11393else
5213506e
RW
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11395$as_echo "no" >&6; }
278a7a38
AO
11396fi
11397
5213506e 11398
278a7a38
AO
11399 done
11400fi
11401
11402if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11403 for ncn_progname in dlltool; do
5213506e
RW
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11405$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11406 if test -x $with_build_time_tools/${ncn_progname}; then
11407 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11409$as_echo "yes" >&6; }
e8b05380
PB
11410 break
11411 else
5213506e
RW
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11413$as_echo "no" >&6; }
e8b05380
PB
11414 fi
11415 done
11416fi
11417
11418if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11419 for ncn_progname in dlltool; do
11420 if test -n "$ncn_target_tool_prefix"; then
11421 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11422set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11424$as_echo_n "checking for $ac_word... " >&6; }
11425if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11426 $as_echo_n "(cached) " >&6
4de997d1 11427else
e8b05380
PB
11428 if test -n "$DLLTOOL_FOR_TARGET"; then
11429 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11430else
1c710c3c
DJ
11431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11432for as_dir in $PATH
11433do
11434 IFS=$as_save_IFS
11435 test -z "$as_dir" && as_dir=.
5213506e
RW
11436 for ac_exec_ext in '' $ac_executable_extensions; do
11437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11438 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11440 break 2
11441 fi
11442done
5213506e
RW
11443 done
11444IFS=$as_save_IFS
1c710c3c 11445
4de997d1
PB
11446fi
11447fi
1c710c3c 11448DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11449if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11451$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11452else
5213506e
RW
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11454$as_echo "no" >&6; }
4de997d1 11455fi
4de997d1 11456
5213506e 11457
e8b05380
PB
11458 fi
11459 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11460 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11461set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11463$as_echo_n "checking for $ac_word... " >&6; }
11464if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11465 $as_echo_n "(cached) " >&6
4de997d1 11466else
e8b05380
PB
11467 if test -n "$DLLTOOL_FOR_TARGET"; then
11468 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11469else
1c710c3c
DJ
11470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11471for as_dir in $PATH
11472do
11473 IFS=$as_save_IFS
11474 test -z "$as_dir" && as_dir=.
5213506e
RW
11475 for ac_exec_ext in '' $ac_executable_extensions; do
11476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11477 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11479 break 2
11480 fi
11481done
5213506e
RW
11482 done
11483IFS=$as_save_IFS
1c710c3c 11484
4de997d1
PB
11485fi
11486fi
1c710c3c 11487DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11488if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11490$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11491else
5213506e
RW
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11493$as_echo "no" >&6; }
4de997d1 11494fi
1c710c3c 11495
5213506e 11496
e8b05380
PB
11497 fi
11498 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11499 done
11500fi
1c710c3c 11501
e8b05380
PB
11502if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11503 set dummy dlltool
11504 if test $build = $target ; then
11505 DLLTOOL_FOR_TARGET="$2"
11506 else
11507 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11508 fi
1c00b503
PB
11509else
11510 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
11511fi
11512
d1f8db0c
PB
11513else
11514 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
11515fi
11516
4de997d1 11517
e8b05380
PB
11518
11519
11520if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11521 if test -n "$with_build_time_tools"; then
5213506e
RW
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11523$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11524 if test -x $with_build_time_tools/ld; then
11525 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11526 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11528$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 11529 else
5213506e
RW
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11531$as_echo "no" >&6; }
d1f8db0c 11532 fi
e8b05380
PB
11533 elif test $build != $host && test $have_gcc_for_target = yes; then
11534 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
11535 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11536 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 11537 fi
e8b05380 11538fi
3e19841a 11539if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11540 # Extract the first word of "ld", so it can be a program name with args.
11541set dummy ld; ac_word=$2
5213506e
RW
11542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11543$as_echo_n "checking for $ac_word... " >&6; }
11544if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11545 $as_echo_n "(cached) " >&6
4de997d1 11546else
1c710c3c
DJ
11547 case $LD_FOR_TARGET in
11548 [\\/]* | ?:[\\/]*)
e8b05380
PB
11549 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11550 ;;
e8b05380 11551 *)
1c710c3c
DJ
11552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11553for as_dir in $gcc_cv_tool_dirs
11554do
11555 IFS=$as_save_IFS
11556 test -z "$as_dir" && as_dir=.
5213506e
RW
11557 for ac_exec_ext in '' $ac_executable_extensions; do
11558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11559 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11561 break 2
11562 fi
11563done
5213506e
RW
11564 done
11565IFS=$as_save_IFS
1c710c3c 11566
e8b05380
PB
11567 ;;
11568esac
4de997d1 11569fi
1c710c3c 11570LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 11571if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11573$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 11574else
5213506e
RW
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11576$as_echo "no" >&6; }
4de997d1 11577fi
2693c0b0 11578
5213506e 11579
e8b05380
PB
11580fi
11581if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
11582
11583
11584if test -n "$LD_FOR_TARGET"; then
11585 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11586elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11587 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11588fi
11589
11590if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11591 for ncn_progname in ld; do
11592 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11593set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11595$as_echo_n "checking for $ac_word... " >&6; }
11596if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11597 $as_echo_n "(cached) " >&6
278a7a38
AO
11598else
11599 if test -n "$LD_FOR_TARGET"; then
11600 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11601else
11602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11603for as_dir in $PATH
11604do
11605 IFS=$as_save_IFS
11606 test -z "$as_dir" && as_dir=.
5213506e
RW
11607 for ac_exec_ext in '' $ac_executable_extensions; do
11608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11609 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11611 break 2
11612 fi
11613done
5213506e
RW
11614 done
11615IFS=$as_save_IFS
278a7a38
AO
11616
11617fi
11618fi
11619LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11620if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11622$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 11623else
5213506e
RW
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11625$as_echo "no" >&6; }
278a7a38
AO
11626fi
11627
5213506e 11628
278a7a38
AO
11629 done
11630fi
11631
11632if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11633 for ncn_progname in ld; do
5213506e
RW
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11635$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11636 if test -x $with_build_time_tools/${ncn_progname}; then
11637 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11639$as_echo "yes" >&6; }
e8b05380
PB
11640 break
11641 else
5213506e
RW
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11643$as_echo "no" >&6; }
e8b05380
PB
11644 fi
11645 done
ca9f4b81
AO
11646fi
11647
e8b05380
PB
11648if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11649 for ncn_progname in ld; do
11650 if test -n "$ncn_target_tool_prefix"; then
11651 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11652set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11654$as_echo_n "checking for $ac_word... " >&6; }
11655if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11656 $as_echo_n "(cached) " >&6
ca9f4b81 11657else
4de997d1
PB
11658 if test -n "$LD_FOR_TARGET"; then
11659 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11660else
1c710c3c
DJ
11661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11662for as_dir in $PATH
11663do
11664 IFS=$as_save_IFS
11665 test -z "$as_dir" && as_dir=.
5213506e
RW
11666 for ac_exec_ext in '' $ac_executable_extensions; do
11667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11668 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11670 break 2
11671 fi
11672done
5213506e
RW
11673 done
11674IFS=$as_save_IFS
1c710c3c 11675
ca9f4b81
AO
11676fi
11677fi
1c710c3c 11678LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 11679if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11681$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11682else
5213506e
RW
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11684$as_echo "no" >&6; }
ca9f4b81
AO
11685fi
11686
5213506e 11687
e8b05380
PB
11688 fi
11689 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11690 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11691set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11693$as_echo_n "checking for $ac_word... " >&6; }
11694if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11695 $as_echo_n "(cached) " >&6
ca9f4b81 11696else
2693c0b0
PB
11697 if test -n "$LD_FOR_TARGET"; then
11698 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11699else
1c710c3c
DJ
11700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11701for as_dir in $PATH
11702do
11703 IFS=$as_save_IFS
11704 test -z "$as_dir" && as_dir=.
5213506e
RW
11705 for ac_exec_ext in '' $ac_executable_extensions; do
11706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11707 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11709 break 2
11710 fi
11711done
5213506e
RW
11712 done
11713IFS=$as_save_IFS
1c710c3c 11714
ca9f4b81
AO
11715fi
11716fi
1c710c3c 11717LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 11718if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11720$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11721else
5213506e
RW
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11723$as_echo "no" >&6; }
ca9f4b81 11724fi
1c710c3c 11725
5213506e 11726
e8b05380
PB
11727 fi
11728 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11729 done
11730fi
1c710c3c 11731
2693c0b0
PB
11732if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11733 set dummy ld
11734 if test $build = $target ; then
11735 LD_FOR_TARGET="$2"
ca9f4b81 11736 else
2693c0b0 11737 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11738 fi
1c00b503
PB
11739else
11740 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
11741fi
11742
d1f8db0c
PB
11743else
11744 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
11745fi
11746
11747
11748
11749
11750if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11751 if test -n "$with_build_time_tools"; then
5213506e
RW
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11753$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11754 if test -x $with_build_time_tools/lipo; then
11755 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11756 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11758$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 11759 else
5213506e
RW
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11761$as_echo "no" >&6; }
d1f8db0c 11762 fi
e8b05380
PB
11763 elif test $build != $host && test $have_gcc_for_target = yes; then
11764 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
11765 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11766 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
11767 fi
11768fi
278a7a38
AO
11769if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11770 # Extract the first word of "lipo", so it can be a program name with args.
11771set dummy lipo; ac_word=$2
5213506e
RW
11772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11773$as_echo_n "checking for $ac_word... " >&6; }
11774if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11775 $as_echo_n "(cached) " >&6
278a7a38
AO
11776else
11777 case $LIPO_FOR_TARGET in
11778 [\\/]* | ?:[\\/]*)
11779 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11780 ;;
11781 *)
11782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11783for as_dir in $gcc_cv_tool_dirs
11784do
11785 IFS=$as_save_IFS
11786 test -z "$as_dir" && as_dir=.
5213506e
RW
11787 for ac_exec_ext in '' $ac_executable_extensions; do
11788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11789 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11791 break 2
11792 fi
11793done
5213506e
RW
11794 done
11795IFS=$as_save_IFS
278a7a38
AO
11796
11797 ;;
11798esac
11799fi
11800LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 11801if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11803$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 11804else
5213506e
RW
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11806$as_echo "no" >&6; }
278a7a38
AO
11807fi
11808
5213506e 11809
278a7a38
AO
11810fi
11811if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11812
11813
11814if test -n "$LIPO_FOR_TARGET"; then
11815 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11816elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11817 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11818fi
11819
11820if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11821 for ncn_progname in lipo; do
11822 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11823set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11825$as_echo_n "checking for $ac_word... " >&6; }
11826if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11827 $as_echo_n "(cached) " >&6
e8b05380 11828else
278a7a38
AO
11829 if test -n "$LIPO_FOR_TARGET"; then
11830 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11831else
11832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11833for as_dir in $PATH
1c710c3c
DJ
11834do
11835 IFS=$as_save_IFS
11836 test -z "$as_dir" && as_dir=.
5213506e
RW
11837 for ac_exec_ext in '' $ac_executable_extensions; do
11838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11839 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11841 break 2
11842 fi
11843done
5213506e
RW
11844 done
11845IFS=$as_save_IFS
1c710c3c 11846
e8b05380 11847fi
278a7a38
AO
11848fi
11849LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 11850if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11852$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 11853else
5213506e
RW
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11855$as_echo "no" >&6; }
e8b05380
PB
11856fi
11857
5213506e 11858
278a7a38 11859 done
e8b05380 11860fi
278a7a38
AO
11861
11862if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11863 for ncn_progname in lipo; do
5213506e
RW
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11865$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11866 if test -x $with_build_time_tools/${ncn_progname}; then
11867 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11869$as_echo "yes" >&6; }
e8b05380
PB
11870 break
11871 else
5213506e
RW
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11873$as_echo "no" >&6; }
e8b05380
PB
11874 fi
11875 done
11876fi
11877
11878if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11879 for ncn_progname in lipo; do
11880 if test -n "$ncn_target_tool_prefix"; then
11881 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11882set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11884$as_echo_n "checking for $ac_word... " >&6; }
11885if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11886 $as_echo_n "(cached) " >&6
040b1c5a
GK
11887else
11888 if test -n "$LIPO_FOR_TARGET"; then
11889 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11890else
1c710c3c
DJ
11891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11892for as_dir in $PATH
11893do
11894 IFS=$as_save_IFS
11895 test -z "$as_dir" && as_dir=.
5213506e
RW
11896 for ac_exec_ext in '' $ac_executable_extensions; do
11897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11898 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11900 break 2
11901 fi
11902done
5213506e
RW
11903 done
11904IFS=$as_save_IFS
1c710c3c 11905
040b1c5a
GK
11906fi
11907fi
1c710c3c 11908LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11909if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11911$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11912else
5213506e
RW
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11914$as_echo "no" >&6; }
040b1c5a
GK
11915fi
11916
5213506e 11917
e8b05380
PB
11918 fi
11919 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11920 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 11921set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11923$as_echo_n "checking for $ac_word... " >&6; }
11924if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11925 $as_echo_n "(cached) " >&6
040b1c5a
GK
11926else
11927 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
11928 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11929else
1c710c3c
DJ
11930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11931for as_dir in $PATH
11932do
11933 IFS=$as_save_IFS
11934 test -z "$as_dir" && as_dir=.
5213506e
RW
11935 for ac_exec_ext in '' $ac_executable_extensions; do
11936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11937 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11939 break 2
11940 fi
11941done
5213506e
RW
11942 done
11943IFS=$as_save_IFS
1c710c3c 11944
040b1c5a
GK
11945fi
11946fi
1c710c3c 11947LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11948if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11950$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11951else
5213506e
RW
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11953$as_echo "no" >&6; }
040b1c5a 11954fi
1c710c3c 11955
5213506e 11956
e8b05380
PB
11957 fi
11958 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11959 done
11960fi
1c710c3c 11961
040b1c5a
GK
11962if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11963 set dummy lipo
11964 if test $build = $target ; then
11965 LIPO_FOR_TARGET="$2"
11966 else
11967 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11968 fi
1c00b503
PB
11969else
11970 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
11971fi
11972
d1f8db0c
PB
11973else
11974 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
11975fi
11976
11977
11978
11979
11980if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11981 if test -n "$with_build_time_tools"; then
5213506e
RW
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11983$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11984 if test -x $with_build_time_tools/nm; then
11985 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11986 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11988$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 11989 else
5213506e
RW
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11991$as_echo "no" >&6; }
d1f8db0c 11992 fi
e8b05380
PB
11993 elif test $build != $host && test $have_gcc_for_target = yes; then
11994 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
11995 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11996 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
11997 fi
11998fi
3e19841a 11999if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12000 # Extract the first word of "nm", so it can be a program name with args.
12001set dummy nm; ac_word=$2
5213506e
RW
12002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12003$as_echo_n "checking for $ac_word... " >&6; }
12004if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12005 $as_echo_n "(cached) " >&6
e8b05380 12006else
1c710c3c
DJ
12007 case $NM_FOR_TARGET in
12008 [\\/]* | ?:[\\/]*)
e8b05380
PB
12009 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12010 ;;
e8b05380 12011 *)
1c710c3c
DJ
12012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12013for as_dir in $gcc_cv_tool_dirs
12014do
12015 IFS=$as_save_IFS
12016 test -z "$as_dir" && as_dir=.
5213506e
RW
12017 for ac_exec_ext in '' $ac_executable_extensions; do
12018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12019 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12021 break 2
12022 fi
12023done
5213506e
RW
12024 done
12025IFS=$as_save_IFS
1c710c3c 12026
e8b05380
PB
12027 ;;
12028esac
12029fi
1c710c3c 12030NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 12031if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12033$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 12034else
5213506e
RW
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12036$as_echo "no" >&6; }
e8b05380
PB
12037fi
12038
5213506e 12039
e8b05380
PB
12040fi
12041if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
12042
12043
12044if test -n "$NM_FOR_TARGET"; then
12045 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12046elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12047 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12048fi
12049
12050if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12051 for ncn_progname in nm; do
12052 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12053set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12055$as_echo_n "checking for $ac_word... " >&6; }
12056if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12057 $as_echo_n "(cached) " >&6
278a7a38
AO
12058else
12059 if test -n "$NM_FOR_TARGET"; then
12060 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12061else
12062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12063for as_dir in $PATH
12064do
12065 IFS=$as_save_IFS
12066 test -z "$as_dir" && as_dir=.
5213506e
RW
12067 for ac_exec_ext in '' $ac_executable_extensions; do
12068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12069 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12071 break 2
12072 fi
12073done
5213506e
RW
12074 done
12075IFS=$as_save_IFS
278a7a38
AO
12076
12077fi
12078fi
12079NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12080if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12082$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 12083else
5213506e
RW
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12085$as_echo "no" >&6; }
278a7a38
AO
12086fi
12087
5213506e 12088
278a7a38
AO
12089 done
12090fi
12091
12092if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12093 for ncn_progname in nm; do
5213506e
RW
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12095$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12096 if test -x $with_build_time_tools/${ncn_progname}; then
12097 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12099$as_echo "yes" >&6; }
e8b05380
PB
12100 break
12101 else
5213506e
RW
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12103$as_echo "no" >&6; }
e8b05380
PB
12104 fi
12105 done
12106fi
12107
12108if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12109 for ncn_progname in nm; do
12110 if test -n "$ncn_target_tool_prefix"; then
12111 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12112set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12114$as_echo_n "checking for $ac_word... " >&6; }
12115if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12116 $as_echo_n "(cached) " >&6
ca9f4b81 12117else
4de997d1
PB
12118 if test -n "$NM_FOR_TARGET"; then
12119 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12120else
1c710c3c
DJ
12121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12122for as_dir in $PATH
12123do
12124 IFS=$as_save_IFS
12125 test -z "$as_dir" && as_dir=.
5213506e
RW
12126 for ac_exec_ext in '' $ac_executable_extensions; do
12127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12128 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12130 break 2
12131 fi
12132done
5213506e
RW
12133 done
12134IFS=$as_save_IFS
1c710c3c 12135
ca9f4b81
AO
12136fi
12137fi
1c710c3c 12138NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 12139if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12141$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12142else
5213506e
RW
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12144$as_echo "no" >&6; }
ca9f4b81
AO
12145fi
12146
5213506e 12147
e8b05380
PB
12148 fi
12149 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12150 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12151set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12153$as_echo_n "checking for $ac_word... " >&6; }
12154if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12155 $as_echo_n "(cached) " >&6
ca9f4b81 12156else
2693c0b0
PB
12157 if test -n "$NM_FOR_TARGET"; then
12158 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12159else
1c710c3c
DJ
12160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12161for as_dir in $PATH
12162do
12163 IFS=$as_save_IFS
12164 test -z "$as_dir" && as_dir=.
5213506e
RW
12165 for ac_exec_ext in '' $ac_executable_extensions; do
12166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12167 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12169 break 2
12170 fi
12171done
5213506e
RW
12172 done
12173IFS=$as_save_IFS
1c710c3c 12174
ca9f4b81
AO
12175fi
12176fi
1c710c3c 12177NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 12178if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12180$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12181else
5213506e
RW
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12183$as_echo "no" >&6; }
ca9f4b81 12184fi
1c710c3c 12185
5213506e 12186
e8b05380
PB
12187 fi
12188 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12189 done
12190fi
1c710c3c 12191
2693c0b0
PB
12192if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12193 set dummy nm
12194 if test $build = $target ; then
12195 NM_FOR_TARGET="$2"
ca9f4b81 12196 else
2693c0b0 12197 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12198 fi
1c00b503
PB
12199else
12200 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
12201fi
12202
d1f8db0c
PB
12203else
12204 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
12205fi
12206
12207
12208
12209
12210if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12211 if test -n "$with_build_time_tools"; then
5213506e
RW
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12213$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12214 if test -x $with_build_time_tools/objdump; then
12215 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12216 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12218$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 12219 else
5213506e
RW
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12221$as_echo "no" >&6; }
d1f8db0c 12222 fi
e8b05380
PB
12223 elif test $build != $host && test $have_gcc_for_target = yes; then
12224 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
12225 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12226 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
12227 fi
12228fi
3e19841a 12229if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12230 # Extract the first word of "objdump", so it can be a program name with args.
12231set dummy objdump; ac_word=$2
5213506e
RW
12232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12233$as_echo_n "checking for $ac_word... " >&6; }
12234if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12235 $as_echo_n "(cached) " >&6
e8b05380 12236else
1c710c3c
DJ
12237 case $OBJDUMP_FOR_TARGET in
12238 [\\/]* | ?:[\\/]*)
e8b05380
PB
12239 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12240 ;;
e8b05380 12241 *)
1c710c3c
DJ
12242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12243for as_dir in $gcc_cv_tool_dirs
12244do
12245 IFS=$as_save_IFS
12246 test -z "$as_dir" && as_dir=.
5213506e
RW
12247 for ac_exec_ext in '' $ac_executable_extensions; do
12248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12249 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12251 break 2
12252 fi
12253done
5213506e
RW
12254 done
12255IFS=$as_save_IFS
1c710c3c 12256
e8b05380
PB
12257 ;;
12258esac
12259fi
1c710c3c 12260OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 12261if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12263$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 12264else
5213506e
RW
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266$as_echo "no" >&6; }
e8b05380
PB
12267fi
12268
5213506e 12269
e8b05380
PB
12270fi
12271if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
12272
12273
12274if test -n "$OBJDUMP_FOR_TARGET"; then
12275 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12276elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12277 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12278fi
12279
12280if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12281 for ncn_progname in objdump; do
12282 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12283set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12285$as_echo_n "checking for $ac_word... " >&6; }
12286if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12287 $as_echo_n "(cached) " >&6
278a7a38
AO
12288else
12289 if test -n "$OBJDUMP_FOR_TARGET"; then
12290 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12291else
12292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12293for as_dir in $PATH
12294do
12295 IFS=$as_save_IFS
12296 test -z "$as_dir" && as_dir=.
5213506e
RW
12297 for ac_exec_ext in '' $ac_executable_extensions; do
12298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12299 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12301 break 2
12302 fi
12303done
5213506e
RW
12304 done
12305IFS=$as_save_IFS
278a7a38
AO
12306
12307fi
12308fi
12309OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12310if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12312$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 12313else
5213506e
RW
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12315$as_echo "no" >&6; }
278a7a38
AO
12316fi
12317
5213506e 12318
278a7a38
AO
12319 done
12320fi
12321
12322if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12323 for ncn_progname in objdump; do
5213506e
RW
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12325$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12326 if test -x $with_build_time_tools/${ncn_progname}; then
12327 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12329$as_echo "yes" >&6; }
e8b05380
PB
12330 break
12331 else
5213506e
RW
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12333$as_echo "no" >&6; }
e8b05380
PB
12334 fi
12335 done
12336fi
12337
12338if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12339 for ncn_progname in objdump; do
12340 if test -n "$ncn_target_tool_prefix"; then
12341 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12342set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12344$as_echo_n "checking for $ac_word... " >&6; }
12345if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12346 $as_echo_n "(cached) " >&6
d739199a
DJ
12347else
12348 if test -n "$OBJDUMP_FOR_TARGET"; then
12349 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12350else
1c710c3c
DJ
12351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12352for as_dir in $PATH
12353do
12354 IFS=$as_save_IFS
12355 test -z "$as_dir" && as_dir=.
5213506e
RW
12356 for ac_exec_ext in '' $ac_executable_extensions; do
12357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12358 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12360 break 2
12361 fi
12362done
5213506e
RW
12363 done
12364IFS=$as_save_IFS
1c710c3c 12365
d739199a
DJ
12366fi
12367fi
1c710c3c 12368OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12369if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12371$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12372else
5213506e
RW
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12374$as_echo "no" >&6; }
d739199a
DJ
12375fi
12376
5213506e 12377
e8b05380
PB
12378 fi
12379 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12380 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 12381set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12383$as_echo_n "checking for $ac_word... " >&6; }
12384if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12385 $as_echo_n "(cached) " >&6
d739199a
DJ
12386else
12387 if test -n "$OBJDUMP_FOR_TARGET"; then
12388 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12389else
1c710c3c
DJ
12390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12391for as_dir in $PATH
12392do
12393 IFS=$as_save_IFS
12394 test -z "$as_dir" && as_dir=.
5213506e
RW
12395 for ac_exec_ext in '' $ac_executable_extensions; do
12396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12397 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12399 break 2
12400 fi
12401done
5213506e
RW
12402 done
12403IFS=$as_save_IFS
1c710c3c 12404
d739199a
DJ
12405fi
12406fi
1c710c3c 12407OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12408if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12410$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12411else
5213506e
RW
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12413$as_echo "no" >&6; }
d739199a 12414fi
1c710c3c 12415
5213506e 12416
e8b05380
PB
12417 fi
12418 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12419 done
12420fi
1c710c3c 12421
d739199a
DJ
12422if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12423 set dummy objdump
12424 if test $build = $target ; then
12425 OBJDUMP_FOR_TARGET="$2"
12426 else
12427 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12428 fi
1c00b503
PB
12429else
12430 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
12431fi
12432
d1f8db0c
PB
12433else
12434 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
12435fi
12436
12437
12438
12439
12440if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12441 if test -n "$with_build_time_tools"; then
5213506e
RW
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12443$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12444 if test -x $with_build_time_tools/ranlib; then
12445 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12446 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12448$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 12449 else
5213506e
RW
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12451$as_echo "no" >&6; }
d1f8db0c 12452 fi
e8b05380
PB
12453 elif test $build != $host && test $have_gcc_for_target = yes; then
12454 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
12455 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12456 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
12457 fi
12458fi
3e19841a 12459if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12460 # Extract the first word of "ranlib", so it can be a program name with args.
12461set dummy ranlib; ac_word=$2
5213506e
RW
12462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12463$as_echo_n "checking for $ac_word... " >&6; }
12464if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12465 $as_echo_n "(cached) " >&6
e8b05380 12466else
1c710c3c
DJ
12467 case $RANLIB_FOR_TARGET in
12468 [\\/]* | ?:[\\/]*)
e8b05380
PB
12469 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12470 ;;
e8b05380 12471 *)
1c710c3c
DJ
12472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12473for as_dir in $gcc_cv_tool_dirs
12474do
12475 IFS=$as_save_IFS
12476 test -z "$as_dir" && as_dir=.
5213506e
RW
12477 for ac_exec_ext in '' $ac_executable_extensions; do
12478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12479 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12481 break 2
12482 fi
12483done
5213506e
RW
12484 done
12485IFS=$as_save_IFS
1c710c3c 12486
e8b05380
PB
12487 ;;
12488esac
12489fi
1c710c3c 12490RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 12491if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12493$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 12494else
5213506e
RW
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12496$as_echo "no" >&6; }
e8b05380
PB
12497fi
12498
5213506e 12499
e8b05380
PB
12500fi
12501if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
12502
12503
12504if test -n "$RANLIB_FOR_TARGET"; then
12505 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12506elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12507 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12508fi
12509
12510if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12511 for ncn_progname in ranlib; do
12512 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12513set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12515$as_echo_n "checking for $ac_word... " >&6; }
12516if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12517 $as_echo_n "(cached) " >&6
278a7a38
AO
12518else
12519 if test -n "$RANLIB_FOR_TARGET"; then
12520 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12521else
12522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12523for as_dir in $PATH
12524do
12525 IFS=$as_save_IFS
12526 test -z "$as_dir" && as_dir=.
5213506e
RW
12527 for ac_exec_ext in '' $ac_executable_extensions; do
12528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12529 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12531 break 2
12532 fi
12533done
5213506e
RW
12534 done
12535IFS=$as_save_IFS
278a7a38
AO
12536
12537fi
12538fi
12539RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12540if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12542$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 12543else
5213506e
RW
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12545$as_echo "no" >&6; }
278a7a38
AO
12546fi
12547
5213506e 12548
278a7a38
AO
12549 done
12550fi
12551
12552if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12553 for ncn_progname in ranlib; do
5213506e
RW
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12555$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12556 if test -x $with_build_time_tools/${ncn_progname}; then
12557 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12559$as_echo "yes" >&6; }
e8b05380
PB
12560 break
12561 else
5213506e
RW
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12563$as_echo "no" >&6; }
e8b05380
PB
12564 fi
12565 done
12566fi
12567
12568if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12569 for ncn_progname in ranlib; do
12570 if test -n "$ncn_target_tool_prefix"; then
12571 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 12572set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12574$as_echo_n "checking for $ac_word... " >&6; }
12575if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12576 $as_echo_n "(cached) " >&6
ca9f4b81 12577else
4de997d1
PB
12578 if test -n "$RANLIB_FOR_TARGET"; then
12579 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12580else
1c710c3c
DJ
12581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12582for as_dir in $PATH
12583do
12584 IFS=$as_save_IFS
12585 test -z "$as_dir" && as_dir=.
5213506e
RW
12586 for ac_exec_ext in '' $ac_executable_extensions; do
12587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12588 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12590 break 2
12591 fi
12592done
5213506e
RW
12593 done
12594IFS=$as_save_IFS
1c710c3c 12595
ca9f4b81
AO
12596fi
12597fi
1c710c3c 12598RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 12599if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12601$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12602else
5213506e
RW
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12604$as_echo "no" >&6; }
ca9f4b81
AO
12605fi
12606
5213506e 12607
e8b05380
PB
12608 fi
12609 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12610 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12611set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12613$as_echo_n "checking for $ac_word... " >&6; }
12614if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12615 $as_echo_n "(cached) " >&6
ca9f4b81 12616else
2693c0b0
PB
12617 if test -n "$RANLIB_FOR_TARGET"; then
12618 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12619else
1c710c3c
DJ
12620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12621for as_dir in $PATH
12622do
12623 IFS=$as_save_IFS
12624 test -z "$as_dir" && as_dir=.
5213506e
RW
12625 for ac_exec_ext in '' $ac_executable_extensions; do
12626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12627 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12629 break 2
12630 fi
12631done
5213506e
RW
12632 done
12633IFS=$as_save_IFS
1c710c3c 12634
ca9f4b81
AO
12635fi
12636fi
1c710c3c 12637RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 12638if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12640$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12641else
5213506e
RW
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12643$as_echo "no" >&6; }
ca9f4b81 12644fi
1c710c3c 12645
5213506e 12646
e8b05380
PB
12647 fi
12648 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12649 done
12650fi
1c710c3c 12651
e8b05380
PB
12652if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12653 set dummy ranlib
12654 if test $build = $target ; then
12655 RANLIB_FOR_TARGET="$2"
12656 else
12657 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12658 fi
1c00b503
PB
12659else
12660 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 12661fi
2693c0b0 12662
d1f8db0c
PB
12663else
12664 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
12665fi
12666
e8b05380
PB
12667
12668
12669
e7a82751
RM
12670if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12671 if test -n "$with_build_time_tools"; then
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12673$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12674 if test -x $with_build_time_tools/readelf; then
12675 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12676 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12678$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12679 else
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12681$as_echo "no" >&6; }
12682 fi
12683 elif test $build != $host && test $have_gcc_for_target = yes; then
12684 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12685 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12686 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12687 fi
12688fi
12689if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12690 # Extract the first word of "readelf", so it can be a program name with args.
12691set dummy readelf; ac_word=$2
12692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12693$as_echo_n "checking for $ac_word... " >&6; }
12694if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12695 $as_echo_n "(cached) " >&6
12696else
12697 case $READELF_FOR_TARGET in
12698 [\\/]* | ?:[\\/]*)
12699 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12700 ;;
12701 *)
12702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12703for as_dir in $gcc_cv_tool_dirs
12704do
12705 IFS=$as_save_IFS
12706 test -z "$as_dir" && as_dir=.
12707 for ac_exec_ext in '' $ac_executable_extensions; do
12708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12709 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12711 break 2
12712 fi
12713done
12714 done
12715IFS=$as_save_IFS
12716
12717 ;;
12718esac
12719fi
12720READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12721if test -n "$READELF_FOR_TARGET"; then
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12723$as_echo "$READELF_FOR_TARGET" >&6; }
12724else
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12726$as_echo "no" >&6; }
12727fi
12728
12729
12730fi
12731if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12732
12733
12734if test -n "$READELF_FOR_TARGET"; then
12735 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12736elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12737 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12738fi
12739
12740if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12741 for ncn_progname in readelf; do
12742 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12743set dummy ${ncn_progname}; ac_word=$2
12744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12745$as_echo_n "checking for $ac_word... " >&6; }
12746if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12747 $as_echo_n "(cached) " >&6
12748else
12749 if test -n "$READELF_FOR_TARGET"; then
12750 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12751else
12752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12753for as_dir in $PATH
12754do
12755 IFS=$as_save_IFS
12756 test -z "$as_dir" && as_dir=.
12757 for ac_exec_ext in '' $ac_executable_extensions; do
12758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12759 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12761 break 2
12762 fi
12763done
12764 done
12765IFS=$as_save_IFS
12766
12767fi
12768fi
12769READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12770if test -n "$READELF_FOR_TARGET"; then
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12772$as_echo "$READELF_FOR_TARGET" >&6; }
12773else
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12775$as_echo "no" >&6; }
12776fi
12777
12778
12779 done
12780fi
12781
12782if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12783 for ncn_progname in readelf; do
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12785$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12786 if test -x $with_build_time_tools/${ncn_progname}; then
12787 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12789$as_echo "yes" >&6; }
12790 break
12791 else
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12793$as_echo "no" >&6; }
12794 fi
12795 done
12796fi
12797
12798if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12799 for ncn_progname in readelf; do
12800 if test -n "$ncn_target_tool_prefix"; then
12801 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12802set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12804$as_echo_n "checking for $ac_word... " >&6; }
12805if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12806 $as_echo_n "(cached) " >&6
12807else
12808 if test -n "$READELF_FOR_TARGET"; then
12809 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12810else
12811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12812for as_dir in $PATH
12813do
12814 IFS=$as_save_IFS
12815 test -z "$as_dir" && as_dir=.
12816 for ac_exec_ext in '' $ac_executable_extensions; do
12817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12818 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12820 break 2
12821 fi
12822done
12823 done
12824IFS=$as_save_IFS
12825
12826fi
12827fi
12828READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12829if test -n "$READELF_FOR_TARGET"; then
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12831$as_echo "$READELF_FOR_TARGET" >&6; }
12832else
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12834$as_echo "no" >&6; }
12835fi
12836
12837
12838 fi
12839 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12840 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12841set dummy ${ncn_progname}; ac_word=$2
12842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12843$as_echo_n "checking for $ac_word... " >&6; }
12844if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12845 $as_echo_n "(cached) " >&6
12846else
12847 if test -n "$READELF_FOR_TARGET"; then
12848 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12849else
12850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12851for as_dir in $PATH
12852do
12853 IFS=$as_save_IFS
12854 test -z "$as_dir" && as_dir=.
12855 for ac_exec_ext in '' $ac_executable_extensions; do
12856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12857 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12859 break 2
12860 fi
12861done
12862 done
12863IFS=$as_save_IFS
12864
12865fi
12866fi
12867READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12868if test -n "$READELF_FOR_TARGET"; then
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12870$as_echo "$READELF_FOR_TARGET" >&6; }
12871else
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12873$as_echo "no" >&6; }
12874fi
12875
12876
12877 fi
12878 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12879 done
12880fi
12881
12882if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12883 set dummy readelf
12884 if test $build = $target ; then
12885 READELF_FOR_TARGET="$2"
12886 else
12887 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12888 fi
12889else
12890 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12891fi
12892
12893else
12894 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12895fi
12896
12897
12898
12899
e8b05380
PB
12900if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12901 if test -n "$with_build_time_tools"; then
5213506e
RW
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12903$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12904 if test -x $with_build_time_tools/strip; then
12905 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12906 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12908$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 12909 else
5213506e
RW
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12911$as_echo "no" >&6; }
d1f8db0c 12912 fi
e8b05380
PB
12913 elif test $build != $host && test $have_gcc_for_target = yes; then
12914 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
12915 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12916 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
12917 fi
12918fi
3e19841a 12919if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12920 # Extract the first word of "strip", so it can be a program name with args.
12921set dummy strip; ac_word=$2
5213506e
RW
12922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12923$as_echo_n "checking for $ac_word... " >&6; }
12924if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12925 $as_echo_n "(cached) " >&6
e8b05380 12926else
1c710c3c
DJ
12927 case $STRIP_FOR_TARGET in
12928 [\\/]* | ?:[\\/]*)
e8b05380
PB
12929 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12930 ;;
e8b05380 12931 *)
1c710c3c
DJ
12932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12933for as_dir in $gcc_cv_tool_dirs
12934do
12935 IFS=$as_save_IFS
12936 test -z "$as_dir" && as_dir=.
5213506e
RW
12937 for ac_exec_ext in '' $ac_executable_extensions; do
12938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12939 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12941 break 2
12942 fi
12943done
5213506e
RW
12944 done
12945IFS=$as_save_IFS
1c710c3c 12946
e8b05380
PB
12947 ;;
12948esac
12949fi
1c710c3c 12950STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 12951if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12953$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 12954else
5213506e
RW
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12956$as_echo "no" >&6; }
e8b05380
PB
12957fi
12958
5213506e 12959
e8b05380
PB
12960fi
12961if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
12962
12963
12964if test -n "$STRIP_FOR_TARGET"; then
12965 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12966elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12967 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12968fi
12969
12970if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12971 for ncn_progname in strip; do
12972 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12973set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12975$as_echo_n "checking for $ac_word... " >&6; }
12976if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12977 $as_echo_n "(cached) " >&6
278a7a38
AO
12978else
12979 if test -n "$STRIP_FOR_TARGET"; then
12980 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12981else
12982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12983for as_dir in $PATH
12984do
12985 IFS=$as_save_IFS
12986 test -z "$as_dir" && as_dir=.
5213506e
RW
12987 for ac_exec_ext in '' $ac_executable_extensions; do
12988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12989 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 12990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12991 break 2
12992 fi
12993done
5213506e
RW
12994 done
12995IFS=$as_save_IFS
278a7a38
AO
12996
12997fi
12998fi
12999STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13000if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13002$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 13003else
5213506e
RW
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13005$as_echo "no" >&6; }
278a7a38
AO
13006fi
13007
5213506e 13008
278a7a38
AO
13009 done
13010fi
13011
13012if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13013 for ncn_progname in strip; do
5213506e
RW
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13015$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13016 if test -x $with_build_time_tools/${ncn_progname}; then
13017 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13019$as_echo "yes" >&6; }
e8b05380
PB
13020 break
13021 else
5213506e
RW
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13023$as_echo "no" >&6; }
e8b05380
PB
13024 fi
13025 done
13026fi
13027
13028if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13029 for ncn_progname in strip; do
13030 if test -n "$ncn_target_tool_prefix"; then
13031 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 13032set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13034$as_echo_n "checking for $ac_word... " >&6; }
13035if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13036 $as_echo_n "(cached) " >&6
af71363e
AS
13037else
13038 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
13039 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13040else
13041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13042for as_dir in $PATH
13043do
13044 IFS=$as_save_IFS
13045 test -z "$as_dir" && as_dir=.
5213506e
RW
13046 for ac_exec_ext in '' $ac_executable_extensions; do
13047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13048 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13050 break 2
13051 fi
13052done
5213506e
RW
13053 done
13054IFS=$as_save_IFS
1c710c3c 13055
040b1c5a
GK
13056fi
13057fi
1c710c3c 13058STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13059if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13061$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13062else
5213506e
RW
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13064$as_echo "no" >&6; }
040b1c5a
GK
13065fi
13066
5213506e 13067
e8b05380
PB
13068 fi
13069 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13070 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 13071set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13073$as_echo_n "checking for $ac_word... " >&6; }
13074if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13075 $as_echo_n "(cached) " >&6
040b1c5a
GK
13076else
13077 if test -n "$STRIP_FOR_TARGET"; then
13078 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13079else
1c710c3c
DJ
13080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13081for as_dir in $PATH
13082do
13083 IFS=$as_save_IFS
13084 test -z "$as_dir" && as_dir=.
5213506e
RW
13085 for ac_exec_ext in '' $ac_executable_extensions; do
13086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13087 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13089 break 2
13090 fi
13091done
5213506e
RW
13092 done
13093IFS=$as_save_IFS
1c710c3c 13094
040b1c5a
GK
13095fi
13096fi
1c710c3c 13097STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13098if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13100$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13101else
5213506e
RW
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13103$as_echo "no" >&6; }
040b1c5a 13104fi
1c710c3c 13105
5213506e 13106
e8b05380
PB
13107 fi
13108 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13109 done
13110fi
1c710c3c 13111
040b1c5a
GK
13112if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13113 set dummy strip
13114 if test $build = $target ; then
13115 STRIP_FOR_TARGET="$2"
13116 else
13117 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13118 fi
1c00b503
PB
13119else
13120 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
13121fi
13122
d1f8db0c
PB
13123else
13124 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
13125fi
13126
13127
13128
13129
13130if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13131 if test -n "$with_build_time_tools"; then
5213506e
RW
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13133$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13134 if test -x $with_build_time_tools/windres; then
13135 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13136 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13138$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 13139 else
5213506e
RW
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13141$as_echo "no" >&6; }
d1f8db0c 13142 fi
e8b05380
PB
13143 elif test $build != $host && test $have_gcc_for_target = yes; then
13144 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
13145 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13146 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
13147 fi
13148fi
3e19841a 13149if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13150 # Extract the first word of "windres", so it can be a program name with args.
13151set dummy windres; ac_word=$2
5213506e
RW
13152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13153$as_echo_n "checking for $ac_word... " >&6; }
13154if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13155 $as_echo_n "(cached) " >&6
e8b05380 13156else
1c710c3c
DJ
13157 case $WINDRES_FOR_TARGET in
13158 [\\/]* | ?:[\\/]*)
e8b05380
PB
13159 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13160 ;;
e8b05380 13161 *)
1c710c3c
DJ
13162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13163for as_dir in $gcc_cv_tool_dirs
13164do
13165 IFS=$as_save_IFS
13166 test -z "$as_dir" && as_dir=.
5213506e
RW
13167 for ac_exec_ext in '' $ac_executable_extensions; do
13168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13169 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13171 break 2
13172 fi
13173done
5213506e
RW
13174 done
13175IFS=$as_save_IFS
1c710c3c 13176
e8b05380
PB
13177 ;;
13178esac
13179fi
1c710c3c 13180WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 13181if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13183$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 13184else
5213506e
RW
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13186$as_echo "no" >&6; }
e8b05380
PB
13187fi
13188
5213506e 13189
e8b05380
PB
13190fi
13191if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
13192
13193
13194if test -n "$WINDRES_FOR_TARGET"; then
13195 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13196elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13197 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13198fi
13199
13200if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13201 for ncn_progname in windres; do
13202 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13203set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13205$as_echo_n "checking for $ac_word... " >&6; }
13206if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13207 $as_echo_n "(cached) " >&6
278a7a38
AO
13208else
13209 if test -n "$WINDRES_FOR_TARGET"; then
13210 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13211else
13212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13213for as_dir in $PATH
13214do
13215 IFS=$as_save_IFS
13216 test -z "$as_dir" && as_dir=.
5213506e
RW
13217 for ac_exec_ext in '' $ac_executable_extensions; do
13218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 13219 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13221 break 2
13222 fi
13223done
5213506e
RW
13224 done
13225IFS=$as_save_IFS
278a7a38
AO
13226
13227fi
13228fi
13229WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13230if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13232$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 13233else
5213506e
RW
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13235$as_echo "no" >&6; }
278a7a38
AO
13236fi
13237
5213506e 13238
278a7a38
AO
13239 done
13240fi
13241
13242if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13243 for ncn_progname in windres; do
5213506e
RW
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13245$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13246 if test -x $with_build_time_tools/${ncn_progname}; then
13247 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13249$as_echo "yes" >&6; }
e8b05380
PB
13250 break
13251 else
5213506e
RW
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13253$as_echo "no" >&6; }
e8b05380
PB
13254 fi
13255 done
13256fi
13257
13258if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13259 for ncn_progname in windres; do
13260 if test -n "$ncn_target_tool_prefix"; then
13261 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13262set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13264$as_echo_n "checking for $ac_word... " >&6; }
13265if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13266 $as_echo_n "(cached) " >&6
ca9f4b81 13267else
4de997d1
PB
13268 if test -n "$WINDRES_FOR_TARGET"; then
13269 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13270else
1c710c3c
DJ
13271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13272for as_dir in $PATH
13273do
13274 IFS=$as_save_IFS
13275 test -z "$as_dir" && as_dir=.
5213506e
RW
13276 for ac_exec_ext in '' $ac_executable_extensions; do
13277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13278 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13280 break 2
13281 fi
13282done
5213506e
RW
13283 done
13284IFS=$as_save_IFS
1c710c3c 13285
ca9f4b81
AO
13286fi
13287fi
1c710c3c 13288WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 13289if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13291$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13292else
5213506e
RW
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13294$as_echo "no" >&6; }
ca9f4b81
AO
13295fi
13296
5213506e 13297
e8b05380
PB
13298 fi
13299 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13300 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13301set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13303$as_echo_n "checking for $ac_word... " >&6; }
13304if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13305 $as_echo_n "(cached) " >&6
ca9f4b81 13306else
2693c0b0
PB
13307 if test -n "$WINDRES_FOR_TARGET"; then
13308 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13309else
1c710c3c
DJ
13310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13311for as_dir in $PATH
13312do
13313 IFS=$as_save_IFS
13314 test -z "$as_dir" && as_dir=.
5213506e
RW
13315 for ac_exec_ext in '' $ac_executable_extensions; do
13316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13317 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13319 break 2
13320 fi
13321done
5213506e
RW
13322 done
13323IFS=$as_save_IFS
1c710c3c 13324
ca9f4b81
AO
13325fi
13326fi
1c710c3c 13327WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 13328if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13330$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13331else
5213506e
RW
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13333$as_echo "no" >&6; }
ca9f4b81 13334fi
1c710c3c 13335
5213506e 13336
e8b05380
PB
13337 fi
13338 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13339 done
13340fi
1c710c3c 13341
2693c0b0
PB
13342if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13343 set dummy windres
13344 if test $build = $target ; then
13345 WINDRES_FOR_TARGET="$2"
ca9f4b81 13346 else
2693c0b0 13347 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 13348 fi
1c00b503
PB
13349else
13350 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
13351fi
13352
d1f8db0c
PB
13353else
13354 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
13355fi
13356
4977bab6 13357
901119ae
KT
13358
13359
13360if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13361 if test -n "$with_build_time_tools"; then
5213506e
RW
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13363$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
13364 if test -x $with_build_time_tools/windmc; then
13365 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13366 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13368$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 13369 else
5213506e
RW
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13371$as_echo "no" >&6; }
901119ae
KT
13372 fi
13373 elif test $build != $host && test $have_gcc_for_target = yes; then
13374 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
13375 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13376 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
13377 fi
13378fi
13379if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13380 # Extract the first word of "windmc", so it can be a program name with args.
13381set dummy windmc; ac_word=$2
5213506e
RW
13382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13383$as_echo_n "checking for $ac_word... " >&6; }
13384if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13385 $as_echo_n "(cached) " >&6
901119ae
KT
13386else
13387 case $WINDMC_FOR_TARGET in
13388 [\\/]* | ?:[\\/]*)
13389 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13390 ;;
13391 *)
13392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13393for as_dir in $gcc_cv_tool_dirs
13394do
13395 IFS=$as_save_IFS
13396 test -z "$as_dir" && as_dir=.
5213506e
RW
13397 for ac_exec_ext in '' $ac_executable_extensions; do
13398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13399 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13401 break 2
13402 fi
13403done
5213506e
RW
13404 done
13405IFS=$as_save_IFS
901119ae
KT
13406
13407 ;;
13408esac
13409fi
13410WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 13411if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13413$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13414else
5213506e
RW
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13416$as_echo "no" >&6; }
901119ae
KT
13417fi
13418
5213506e 13419
901119ae
KT
13420fi
13421if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13422
13423
13424if test -n "$WINDMC_FOR_TARGET"; then
13425 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13426elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13427 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13428fi
13429
13430if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13431 for ncn_progname in windmc; do
13432 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13433set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13435$as_echo_n "checking for $ac_word... " >&6; }
13436if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13437 $as_echo_n "(cached) " >&6
901119ae
KT
13438else
13439 if test -n "$WINDMC_FOR_TARGET"; then
13440 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13441else
13442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13443for as_dir in $PATH
13444do
13445 IFS=$as_save_IFS
13446 test -z "$as_dir" && as_dir=.
5213506e
RW
13447 for ac_exec_ext in '' $ac_executable_extensions; do
13448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13449 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13451 break 2
13452 fi
13453done
5213506e
RW
13454 done
13455IFS=$as_save_IFS
901119ae
KT
13456
13457fi
13458fi
13459WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13460if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13462$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13463else
5213506e
RW
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13465$as_echo "no" >&6; }
901119ae
KT
13466fi
13467
5213506e 13468
901119ae
KT
13469 done
13470fi
13471
13472if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13473 for ncn_progname in windmc; do
5213506e
RW
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13475$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
13476 if test -x $with_build_time_tools/${ncn_progname}; then
13477 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13479$as_echo "yes" >&6; }
901119ae
KT
13480 break
13481 else
5213506e
RW
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13483$as_echo "no" >&6; }
901119ae
KT
13484 fi
13485 done
13486fi
13487
13488if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13489 for ncn_progname in windmc; do
13490 if test -n "$ncn_target_tool_prefix"; then
13491 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13492set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13494$as_echo_n "checking for $ac_word... " >&6; }
13495if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13496 $as_echo_n "(cached) " >&6
901119ae
KT
13497else
13498 if test -n "$WINDMC_FOR_TARGET"; then
13499 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13500else
13501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13502for as_dir in $PATH
13503do
13504 IFS=$as_save_IFS
13505 test -z "$as_dir" && as_dir=.
5213506e
RW
13506 for ac_exec_ext in '' $ac_executable_extensions; do
13507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13508 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13510 break 2
13511 fi
13512done
5213506e
RW
13513 done
13514IFS=$as_save_IFS
901119ae
KT
13515
13516fi
13517fi
13518WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13519if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13521$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13522else
5213506e
RW
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13524$as_echo "no" >&6; }
901119ae
KT
13525fi
13526
5213506e 13527
901119ae
KT
13528 fi
13529 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13530 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13531set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13533$as_echo_n "checking for $ac_word... " >&6; }
13534if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13535 $as_echo_n "(cached) " >&6
901119ae
KT
13536else
13537 if test -n "$WINDMC_FOR_TARGET"; then
13538 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13539else
13540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13541for as_dir in $PATH
13542do
13543 IFS=$as_save_IFS
13544 test -z "$as_dir" && as_dir=.
5213506e
RW
13545 for ac_exec_ext in '' $ac_executable_extensions; do
13546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13547 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13549 break 2
13550 fi
13551done
5213506e
RW
13552 done
13553IFS=$as_save_IFS
901119ae
KT
13554
13555fi
13556fi
13557WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13558if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13560$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13561else
5213506e
RW
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13563$as_echo "no" >&6; }
901119ae
KT
13564fi
13565
5213506e 13566
901119ae
KT
13567 fi
13568 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13569 done
13570fi
13571
13572if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13573 set dummy windmc
13574 if test $build = $target ; then
13575 WINDMC_FOR_TARGET="$2"
13576 else
13577 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13578 fi
1c00b503
PB
13579else
13580 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
13581fi
13582
13583else
13584 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13585fi
13586
13587
2abefe3d
PB
13588RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13589
5213506e
RW
13590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13591$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 13592if test "x${build}" != "x${host}" ; then
e8b05380
PB
13593 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13594 # We already found the complete path
172e41aa 13595 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13597$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13598 else
13599 # Canadian cross, just use what we found
5213506e
RW
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13601$as_echo "pre-installed" >&6; }
e8b05380 13602 fi
2abefe3d
PB
13603else
13604 ok=yes
13605 case " ${configdirs} " in
13606 *" binutils "*) ;;
13607 *) ok=no ;;
13608 esac
1c710c3c 13609
2abefe3d
PB
13610 if test $ok = yes; then
13611 # An in-tree tool is available and we can use it
13612 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13614$as_echo "just compiled" >&6; }
e8b05380
PB
13615 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13616 # We already found the complete path
172e41aa 13617 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13619$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13620 elif test "x$target" = "x$host"; then
13621 # We can use an host tool
13622 AR_FOR_TARGET='$(AR)'
5213506e
RW
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13624$as_echo "host tool" >&6; }
2abefe3d
PB
13625 else
13626 # We need a cross tool
5213506e
RW
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13628$as_echo "pre-installed" >&6; }
2abefe3d
PB
13629 fi
13630fi
0b0dc272 13631
5213506e
RW
13632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13633$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 13634if test "x${build}" != "x${host}" ; then
e8b05380
PB
13635 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13636 # We already found the complete path
172e41aa 13637 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13639$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13640 else
13641 # Canadian cross, just use what we found
5213506e
RW
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13643$as_echo "pre-installed" >&6; }
e8b05380 13644 fi
2abefe3d
PB
13645else
13646 ok=yes
13647 case " ${configdirs} " in
13648 *" gas "*) ;;
13649 *) ok=no ;;
13650 esac
1c710c3c 13651
2abefe3d
PB
13652 if test $ok = yes; then
13653 # An in-tree tool is available and we can use it
13654 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13656$as_echo "just compiled" >&6; }
e8b05380
PB
13657 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13658 # We already found the complete path
172e41aa 13659 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13661$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13662 elif test "x$target" = "x$host"; then
13663 # We can use an host tool
13664 AS_FOR_TARGET='$(AS)'
5213506e
RW
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13666$as_echo "host tool" >&6; }
2abefe3d
PB
13667 else
13668 # We need a cross tool
5213506e
RW
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13670$as_echo "pre-installed" >&6; }
2abefe3d
PB
13671 fi
13672fi
0b0dc272 13673
5213506e
RW
13674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13675$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 13676if test "x${build}" != "x${host}" ; then
e8b05380
PB
13677 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13678 # We already found the complete path
172e41aa 13679 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13681$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13682 else
13683 # Canadian cross, just use what we found
5213506e
RW
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13685$as_echo "pre-installed" >&6; }
e8b05380 13686 fi
2abefe3d
PB
13687else
13688 ok=yes
13689 case " ${configdirs} " in
13690 *" gcc "*) ;;
13691 *) ok=no ;;
13692 esac
1c710c3c 13693
2abefe3d
PB
13694 if test $ok = yes; then
13695 # An in-tree tool is available and we can use it
13696 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13698$as_echo "just compiled" >&6; }
e8b05380
PB
13699 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13700 # We already found the complete path
172e41aa 13701 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13703$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13704 elif test "x$target" = "x$host"; then
13705 # We can use an host tool
13706 CC_FOR_TARGET='$(CC)'
5213506e
RW
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13708$as_echo "host tool" >&6; }
2abefe3d
PB
13709 else
13710 # We need a cross tool
5213506e
RW
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13712$as_echo "pre-installed" >&6; }
2abefe3d
PB
13713 fi
13714fi
0b0dc272 13715
5213506e
RW
13716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13717$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 13718if test "x${build}" != "x${host}" ; then
e8b05380
PB
13719 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13720 # We already found the complete path
172e41aa 13721 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13723$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13724 else
13725 # Canadian cross, just use what we found
5213506e
RW
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13727$as_echo "pre-installed" >&6; }
e8b05380 13728 fi
2abefe3d
PB
13729else
13730 ok=yes
13731 case " ${configdirs} " in
13732 *" gcc "*) ;;
13733 *) ok=no ;;
13734 esac
13735 case ,${enable_languages}, in
13736 *,c++,*) ;;
13737 *) ok=no ;;
13738 esac
13739 if test $ok = yes; then
13740 # An in-tree tool is available and we can use it
5d99894e 13741 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'
5213506e
RW
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13743$as_echo "just compiled" >&6; }
e8b05380
PB
13744 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13745 # We already found the complete path
172e41aa 13746 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13748$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13749 elif test "x$target" = "x$host"; then
13750 # We can use an host tool
13751 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13753$as_echo "host tool" >&6; }
2abefe3d
PB
13754 else
13755 # We need a cross tool
5213506e
RW
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13757$as_echo "pre-installed" >&6; }
2abefe3d
PB
13758 fi
13759fi
0b0dc272 13760
5213506e
RW
13761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13762$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 13763if test "x${build}" != "x${host}" ; then
e8b05380
PB
13764 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13765 # We already found the complete path
172e41aa 13766 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13768$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13769 else
13770 # Canadian cross, just use what we found
5213506e
RW
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13772$as_echo "pre-installed" >&6; }
e8b05380 13773 fi
2abefe3d
PB
13774else
13775 ok=yes
13776 case " ${configdirs} " in
13777 *" gcc "*) ;;
13778 *) ok=no ;;
13779 esac
13780 case ,${enable_languages}, in
13781 *,c++,*) ;;
13782 *) ok=no ;;
13783 esac
13784 if test $ok = yes; then
13785 # An in-tree tool is available and we can use it
13786 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'
5213506e
RW
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13788$as_echo "just compiled" >&6; }
e8b05380
PB
13789 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13790 # We already found the complete path
172e41aa 13791 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13793$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13794 elif test "x$target" = "x$host"; then
13795 # We can use an host tool
13796 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13798$as_echo "host tool" >&6; }
2abefe3d
PB
13799 else
13800 # We need a cross tool
5213506e
RW
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13802$as_echo "pre-installed" >&6; }
2abefe3d
PB
13803 fi
13804fi
0b0dc272 13805
5213506e
RW
13806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13807$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 13808if test "x${build}" != "x${host}" ; then
e8b05380
PB
13809 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13810 # We already found the complete path
172e41aa 13811 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13813$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13814 else
13815 # Canadian cross, just use what we found
5213506e
RW
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13817$as_echo "pre-installed" >&6; }
e8b05380 13818 fi
2abefe3d
PB
13819else
13820 ok=yes
13821 case " ${configdirs} " in
13822 *" binutils "*) ;;
13823 *) ok=no ;;
13824 esac
1c710c3c 13825
2abefe3d
PB
13826 if test $ok = yes; then
13827 # An in-tree tool is available and we can use it
13828 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13830$as_echo "just compiled" >&6; }
e8b05380
PB
13831 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13832 # We already found the complete path
172e41aa 13833 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13835$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13836 elif test "x$target" = "x$host"; then
13837 # We can use an host tool
13838 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13840$as_echo "host tool" >&6; }
2abefe3d
PB
13841 else
13842 # We need a cross tool
5213506e
RW
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13844$as_echo "pre-installed" >&6; }
2abefe3d
PB
13845 fi
13846fi
0b0dc272 13847
5213506e
RW
13848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13849$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 13850if test "x${build}" != "x${host}" ; then
e8b05380
PB
13851 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13852 # We already found the complete path
172e41aa 13853 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13855$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13856 else
13857 # Canadian cross, just use what we found
5213506e
RW
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13859$as_echo "pre-installed" >&6; }
e8b05380 13860 fi
2abefe3d
PB
13861else
13862 ok=yes
13863 case " ${configdirs} " in
13864 *" gcc "*) ;;
13865 *) ok=no ;;
13866 esac
1c710c3c 13867
2abefe3d
PB
13868 if test $ok = yes; then
13869 # An in-tree tool is available and we can use it
13870 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13872$as_echo "just compiled" >&6; }
e8b05380
PB
13873 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13874 # We already found the complete path
172e41aa 13875 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13877$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13878 elif test "x$target" = "x$host"; then
13879 # We can use an host tool
13880 GCC_FOR_TARGET='$()'
5213506e
RW
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13882$as_echo "host tool" >&6; }
2abefe3d
PB
13883 else
13884 # We need a cross tool
5213506e
RW
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13886$as_echo "pre-installed" >&6; }
2abefe3d
PB
13887 fi
13888fi
0b0dc272 13889
5213506e
RW
13890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13891$as_echo_n "checking where to find the target gcj... " >&6; }
2abefe3d 13892if test "x${build}" != "x${host}" ; then
e8b05380
PB
13893 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13894 # We already found the complete path
172e41aa 13895 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13897$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13898 else
13899 # Canadian cross, just use what we found
5213506e
RW
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13901$as_echo "pre-installed" >&6; }
e8b05380 13902 fi
2abefe3d
PB
13903else
13904 ok=yes
13905 case " ${configdirs} " in
13906 *" gcc "*) ;;
13907 *) ok=no ;;
13908 esac
13909 case ,${enable_languages}, in
13910 *,java,*) ;;
13911 *) ok=no ;;
13912 esac
13913 if test $ok = yes; then
13914 # An in-tree tool is available and we can use it
13915 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13917$as_echo "just compiled" >&6; }
e8b05380
PB
13918 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13919 # We already found the complete path
172e41aa 13920 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13922$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13923 elif test "x$target" = "x$host"; then
13924 # We can use an host tool
13925 GCJ_FOR_TARGET='$(GCJ)'
5213506e
RW
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13927$as_echo "host tool" >&6; }
2abefe3d
PB
13928 else
13929 # We need a cross tool
5213506e
RW
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13931$as_echo "pre-installed" >&6; }
2abefe3d
PB
13932 fi
13933fi
0b0dc272 13934
5213506e
RW
13935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13936$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 13937if test "x${build}" != "x${host}" ; then
e8b05380
PB
13938 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13939 # We already found the complete path
172e41aa 13940 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13942$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13943 else
13944 # Canadian cross, just use what we found
5213506e
RW
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13946$as_echo "pre-installed" >&6; }
e8b05380 13947 fi
2abefe3d
PB
13948else
13949 ok=yes
13950 case " ${configdirs} " in
13951 *" gcc "*) ;;
13952 *) ok=no ;;
13953 esac
13954 case ,${enable_languages}, in
13955 *,fortran,*) ;;
13956 *) ok=no ;;
13957 esac
13958 if test $ok = yes; then
13959 # An in-tree tool is available and we can use it
13960 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13962$as_echo "just compiled" >&6; }
e8b05380
PB
13963 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13964 # We already found the complete path
172e41aa 13965 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13967$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13968 elif test "x$target" = "x$host"; then
13969 # We can use an host tool
13970 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13972$as_echo "host tool" >&6; }
2abefe3d
PB
13973 else
13974 # We need a cross tool
5213506e
RW
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13976$as_echo "pre-installed" >&6; }
2abefe3d
PB
13977 fi
13978fi
0b0dc272 13979
632e2a07
ILT
13980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13981$as_echo_n "checking where to find the target gccgo... " >&6; }
13982if test "x${build}" != "x${host}" ; then
13983 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13984 # We already found the complete path
13985 ac_dir=`dirname $GOC_FOR_TARGET`
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13987$as_echo "pre-installed in $ac_dir" >&6; }
13988 else
13989 # Canadian cross, just use what we found
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13991$as_echo "pre-installed" >&6; }
13992 fi
13993else
13994 ok=yes
13995 case " ${configdirs} " in
13996 *" gcc "*) ;;
13997 *) ok=no ;;
13998 esac
13999 case ,${enable_languages}, in
14000 *,go,*) ;;
14001 *) ok=no ;;
14002 esac
14003 if test $ok = yes; then
14004 # An in-tree tool is available and we can use it
14005 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14007$as_echo "just compiled" >&6; }
14008 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14009 # We already found the complete path
14010 ac_dir=`dirname $GOC_FOR_TARGET`
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14012$as_echo "pre-installed in $ac_dir" >&6; }
14013 elif test "x$target" = "x$host"; then
14014 # We can use an host tool
14015 GOC_FOR_TARGET='$(GOC)'
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14017$as_echo "host tool" >&6; }
14018 else
14019 # We need a cross tool
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14021$as_echo "pre-installed" >&6; }
14022 fi
14023fi
14024
5213506e
RW
14025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14026$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 14027if test "x${build}" != "x${host}" ; then
e8b05380
PB
14028 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14029 # We already found the complete path
172e41aa 14030 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14032$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14033 else
14034 # Canadian cross, just use what we found
5213506e
RW
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14036$as_echo "pre-installed" >&6; }
e8b05380 14037 fi
2abefe3d
PB
14038else
14039 ok=yes
14040 case " ${configdirs} " in
14041 *" ld "*) ;;
14042 *) ok=no ;;
14043 esac
1c710c3c 14044
2abefe3d
PB
14045 if test $ok = yes; then
14046 # An in-tree tool is available and we can use it
14047 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14049$as_echo "just compiled" >&6; }
e8b05380
PB
14050 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14051 # We already found the complete path
172e41aa 14052 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14054$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14055 elif test "x$target" = "x$host"; then
14056 # We can use an host tool
14057 LD_FOR_TARGET='$(LD)'
5213506e
RW
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14059$as_echo "host tool" >&6; }
2abefe3d
PB
14060 else
14061 # We need a cross tool
5213506e
RW
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14063$as_echo "pre-installed" >&6; }
2abefe3d
PB
14064 fi
14065fi
0b0dc272 14066
5213506e
RW
14067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14068$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 14069if test "x${build}" != "x${host}" ; then
e8b05380
PB
14070 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14071 # We already found the complete path
172e41aa 14072 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14074$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14075 else
14076 # Canadian cross, just use what we found
5213506e
RW
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14078$as_echo "pre-installed" >&6; }
e8b05380 14079 fi
2abefe3d 14080else
e8b05380
PB
14081 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14082 # We already found the complete path
172e41aa 14083 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14085$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 14086 elif test "x$target" = "x$host"; then
2abefe3d
PB
14087 # We can use an host tool
14088 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14090$as_echo "host tool" >&6; }
2abefe3d
PB
14091 else
14092 # We need a cross tool
5213506e
RW
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14094$as_echo "pre-installed" >&6; }
2abefe3d
PB
14095 fi
14096fi
0b0dc272 14097
5213506e
RW
14098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14099$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 14100if test "x${build}" != "x${host}" ; then
e8b05380
PB
14101 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14102 # We already found the complete path
172e41aa 14103 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14105$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14106 else
14107 # Canadian cross, just use what we found
5213506e
RW
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14109$as_echo "pre-installed" >&6; }
e8b05380 14110 fi
2abefe3d
PB
14111else
14112 ok=yes
14113 case " ${configdirs} " in
14114 *" binutils "*) ;;
14115 *) ok=no ;;
14116 esac
1c710c3c 14117
2abefe3d
PB
14118 if test $ok = yes; then
14119 # An in-tree tool is available and we can use it
14120 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14122$as_echo "just compiled" >&6; }
e8b05380
PB
14123 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14124 # We already found the complete path
172e41aa 14125 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14127$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14128 elif test "x$target" = "x$host"; then
14129 # We can use an host tool
14130 NM_FOR_TARGET='$(NM)'
5213506e
RW
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14132$as_echo "host tool" >&6; }
2abefe3d
PB
14133 else
14134 # We need a cross tool
5213506e
RW
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14136$as_echo "pre-installed" >&6; }
2abefe3d
PB
14137 fi
14138fi
0b0dc272 14139
5213506e
RW
14140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14141$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 14142if test "x${build}" != "x${host}" ; then
e8b05380
PB
14143 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14144 # We already found the complete path
172e41aa 14145 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14147$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14148 else
14149 # Canadian cross, just use what we found
5213506e
RW
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14151$as_echo "pre-installed" >&6; }
e8b05380 14152 fi
2abefe3d
PB
14153else
14154 ok=yes
14155 case " ${configdirs} " in
14156 *" binutils "*) ;;
14157 *) ok=no ;;
14158 esac
1c710c3c 14159
2abefe3d
PB
14160 if test $ok = yes; then
14161 # An in-tree tool is available and we can use it
14162 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14164$as_echo "just compiled" >&6; }
e8b05380
PB
14165 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14166 # We already found the complete path
172e41aa 14167 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14169$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14170 elif test "x$target" = "x$host"; then
14171 # We can use an host tool
14172 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14174$as_echo "host tool" >&6; }
2abefe3d
PB
14175 else
14176 # We need a cross tool
5213506e
RW
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14178$as_echo "pre-installed" >&6; }
2abefe3d
PB
14179 fi
14180fi
0b0dc272 14181
5213506e
RW
14182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14183$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 14184if test "x${build}" != "x${host}" ; then
e8b05380
PB
14185 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14186 # We already found the complete path
172e41aa 14187 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14189$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14190 else
14191 # Canadian cross, just use what we found
5213506e
RW
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14193$as_echo "pre-installed" >&6; }
e8b05380 14194 fi
2abefe3d
PB
14195else
14196 ok=yes
14197 case " ${configdirs} " in
14198 *" binutils "*) ;;
14199 *) ok=no ;;
14200 esac
1c710c3c 14201
2abefe3d
PB
14202 if test $ok = yes; then
14203 # An in-tree tool is available and we can use it
14204 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14206$as_echo "just compiled" >&6; }
e8b05380
PB
14207 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14208 # We already found the complete path
172e41aa 14209 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14211$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14212 elif test "x$target" = "x$host"; then
14213 # We can use an host tool
14214 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14216$as_echo "host tool" >&6; }
2abefe3d
PB
14217 else
14218 # We need a cross tool
5213506e
RW
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14220$as_echo "pre-installed" >&6; }
2abefe3d
PB
14221 fi
14222fi
0b0dc272 14223
e7a82751
RM
14224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14225$as_echo_n "checking where to find the target readelf... " >&6; }
14226if test "x${build}" != "x${host}" ; then
14227 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14228 # We already found the complete path
14229 ac_dir=`dirname $READELF_FOR_TARGET`
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14231$as_echo "pre-installed in $ac_dir" >&6; }
14232 else
14233 # Canadian cross, just use what we found
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14235$as_echo "pre-installed" >&6; }
14236 fi
14237else
14238 ok=yes
14239 case " ${configdirs} " in
14240 *" binutils "*) ;;
14241 *) ok=no ;;
14242 esac
14243
14244 if test $ok = yes; then
14245 # An in-tree tool is available and we can use it
14246 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14248$as_echo "just compiled" >&6; }
14249 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14250 # We already found the complete path
14251 ac_dir=`dirname $READELF_FOR_TARGET`
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14253$as_echo "pre-installed in $ac_dir" >&6; }
14254 elif test "x$target" = "x$host"; then
14255 # We can use an host tool
14256 READELF_FOR_TARGET='$(READELF)'
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14258$as_echo "host tool" >&6; }
14259 else
14260 # We need a cross tool
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14262$as_echo "pre-installed" >&6; }
14263 fi
14264fi
14265
5213506e
RW
14266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14267$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 14268if test "x${build}" != "x${host}" ; then
e8b05380
PB
14269 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14270 # We already found the complete path
172e41aa 14271 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14273$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14274 else
14275 # Canadian cross, just use what we found
5213506e
RW
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14277$as_echo "pre-installed" >&6; }
e8b05380 14278 fi
2abefe3d
PB
14279else
14280 ok=yes
14281 case " ${configdirs} " in
14282 *" binutils "*) ;;
14283 *) ok=no ;;
14284 esac
1c710c3c 14285
2abefe3d
PB
14286 if test $ok = yes; then
14287 # An in-tree tool is available and we can use it
455c8f48 14288 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14290$as_echo "just compiled" >&6; }
e8b05380
PB
14291 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14292 # We already found the complete path
172e41aa 14293 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14295$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14296 elif test "x$target" = "x$host"; then
14297 # We can use an host tool
14298 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14300$as_echo "host tool" >&6; }
2abefe3d
PB
14301 else
14302 # We need a cross tool
5213506e
RW
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14304$as_echo "pre-installed" >&6; }
2abefe3d
PB
14305 fi
14306fi
0b0dc272 14307
5213506e
RW
14308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14309$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 14310if test "x${build}" != "x${host}" ; then
e8b05380
PB
14311 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14312 # We already found the complete path
172e41aa 14313 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14315$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14316 else
14317 # Canadian cross, just use what we found
5213506e
RW
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14319$as_echo "pre-installed" >&6; }
e8b05380 14320 fi
2abefe3d
PB
14321else
14322 ok=yes
14323 case " ${configdirs} " in
14324 *" binutils "*) ;;
14325 *) ok=no ;;
14326 esac
1c710c3c 14327
2abefe3d
PB
14328 if test $ok = yes; then
14329 # An in-tree tool is available and we can use it
14330 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14332$as_echo "just compiled" >&6; }
e8b05380
PB
14333 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14334 # We already found the complete path
172e41aa 14335 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14337$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14338 elif test "x$target" = "x$host"; then
14339 # We can use an host tool
14340 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14342$as_echo "host tool" >&6; }
2abefe3d
PB
14343 else
14344 # We need a cross tool
5213506e
RW
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14346$as_echo "pre-installed" >&6; }
2abefe3d 14347 fi
671aa708 14348fi
be912515 14349
5213506e
RW
14350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14351$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
14352if test "x${build}" != "x${host}" ; then
14353 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14354 # We already found the complete path
14355 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14357$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14358 else
14359 # Canadian cross, just use what we found
5213506e
RW
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14361$as_echo "pre-installed" >&6; }
901119ae
KT
14362 fi
14363else
14364 ok=yes
14365 case " ${configdirs} " in
14366 *" binutils "*) ;;
14367 *) ok=no ;;
14368 esac
14369
14370 if test $ok = yes; then
14371 # An in-tree tool is available and we can use it
14372 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14374$as_echo "just compiled" >&6; }
901119ae
KT
14375 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14376 # We already found the complete path
14377 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14379$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14380 elif test "x$target" = "x$host"; then
14381 # We can use an host tool
14382 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14384$as_echo "host tool" >&6; }
901119ae
KT
14385 else
14386 # We need a cross tool
5213506e
RW
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14388$as_echo "pre-installed" >&6; }
901119ae
KT
14389 fi
14390fi
14391
be912515
NN
14392
14393
2abefe3d 14394
0b0dc272 14395
671aa708
NN
14396# Certain tools may need extra flags.
14397AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14398RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14399NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14400
2abefe3d
PB
14401# When building target libraries, except in a Canadian cross, we use
14402# the same toolchain as the compiler we just built.
14403COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14404COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14405COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14406if test $host = $build; then
14407 case " $configdirs " in
14408 *" gcc "*)
14409 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14410 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14411 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14412 ;;
14413 esac
14414fi
14415
14416
14417
14418
14419
5213506e
RW
14420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14421$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14422# Check whether --enable-maintainer-mode was given.
14423if test "${enable_maintainer_mode+set}" = set; then :
14424 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
14425else
14426 USE_MAINTAINER_MODE=no
5213506e
RW
14427fi
14428
14429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14430$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
14431
14432
14433if test "$USE_MAINTAINER_MODE" = yes; then
14434 MAINTAINER_MODE_TRUE=
14435 MAINTAINER_MODE_FALSE='#'
14436else
14437 MAINTAINER_MODE_TRUE='#'
14438 MAINTAINER_MODE_FALSE=
1c710c3c 14439fi
ee03dc5e
AO
14440MAINT=$MAINTAINER_MODE_TRUE
14441
2805b53a
NN
14442# ---------------------
14443# GCC bootstrap support
14444# ---------------------
14445
14446# Stage specific cflags for build.
14447stage1_cflags="-g"
14448case $build in
14449 vax-*-*)
14450 case ${GCC} in
14451 yes) stage1_cflags="-g -Wa,-J" ;;
14452 *) stage1_cflags="-g -J" ;;
14453 esac ;;
2805b53a
NN
14454esac
14455
0b50988a 14456
2805b53a 14457
8efea775 14458# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
14459# Check whether --enable-stage1-checking was given.
14460if test "${enable_stage1_checking+set}" = set; then :
14461 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 14462else
e643dc23 14463 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
7e98624c 14464 stage1_checking=--enable-checking=yes,types
8efea775 14465else
e643dc23 14466 stage1_checking=--enable-checking=$enable_checking,types
8efea775 14467fi
5213506e 14468fi
8efea775
PB
14469
14470
2aeb72e9 14471
5213506e
RW
14472# Enable -Werror in bootstrap stage2 and later.
14473# Check whether --enable-werror was given.
14474if test "${enable_werror+set}" = set; then :
14475 enableval=$enable_werror;
2805b53a 14476else
416cfb5e 14477 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 14478 enable_werror=yes
88fceb68
PB
14479else
14480 enable_werror=no
14481fi
5213506e
RW
14482fi
14483
09a9c095
NN
14484case ${enable_werror} in
14485 yes) stage2_werror_flag="--enable-werror-always" ;;
14486 *) stage2_werror_flag="" ;;
2805b53a
NN
14487esac
14488
14489
f2689b09
SE
14490# Specify what files to not compare during bootstrap.
14491
14492compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14493case "$target" in
14494 hppa*64*-*-hpux*) ;;
14495 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
d91491e5 14496 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
f2689b09
SE
14497esac
14498
14499
5213506e
RW
14500ac_config_files="$ac_config_files Makefile"
14501
1c710c3c 14502cat >confcache <<\_ACEOF
671aa708
NN
14503# This file is a shell script that caches the results of configure
14504# tests run on this system so they can be shared between configure
1c710c3c
DJ
14505# scripts and configure runs, see configure's option --config-cache.
14506# It is not useful on other systems. If it contains results you don't
14507# want to keep, you may remove or edit it.
671aa708 14508#
1c710c3c
DJ
14509# config.status only pays attention to the cache file if you give it
14510# the --recheck option to rerun configure.
671aa708 14511#
1c710c3c
DJ
14512# `ac_cv_env_foo' variables (set or unset) will be overridden when
14513# loading this file, other *unset* `ac_cv_foo' will be assigned the
14514# following values.
14515
14516_ACEOF
14517
671aa708
NN
14518# The following way of writing the cache mishandles newlines in values,
14519# but we know of no workaround that is simple, portable, and efficient.
5213506e 14520# So, we kill variables containing newlines.
671aa708
NN
14521# Ultrix sh set writes to stderr and can't be redirected directly,
14522# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
14523(
14524 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14525 eval ac_val=\$$ac_var
14526 case $ac_val in #(
14527 *${as_nl}*)
14528 case $ac_var in #(
14529 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14530$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14531 esac
14532 case $ac_var in #(
14533 _ | IFS | as_nl) ;; #(
14534 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14535 *) { eval $ac_var=; unset $ac_var;} ;;
14536 esac ;;
14537 esac
14538 done
14539
1c710c3c 14540 (set) 2>&1 |
5213506e
RW
14541 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14542 *${as_nl}ac_space=\ *)
14543 # `set' does not quote correctly, so add quotes: double-quote
14544 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
14545 sed -n \
14546 "s/'/'\\\\''/g;
14547 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 14548 ;; #(
1c710c3c
DJ
14549 *)
14550 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 14551 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 14552 ;;
5213506e
RW
14553 esac |
14554 sort
14555) |
1c710c3c 14556 sed '
5213506e 14557 /^ac_cv_env_/b end
1c710c3c 14558 t clear
5213506e 14559 :clear
1c710c3c
DJ
14560 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14561 t end
5213506e
RW
14562 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14563 :end' >>confcache
14564if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14565 if test -w "$cache_file"; then
14566 test "x$cache_file" != "x/dev/null" &&
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14568$as_echo "$as_me: updating cache $cache_file" >&6;}
1c710c3c 14569 cat confcache >$cache_file
671aa708 14570 else
5213506e
RW
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14572$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 14573 fi
4977bab6 14574fi
671aa708 14575rm -f confcache
79c06341 14576
671aa708
NN
14577test "x$prefix" = xNONE && prefix=$ac_default_prefix
14578# Let make expand exec_prefix.
14579test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 14580
671aa708
NN
14581# Transform confdefs.h into DEFS.
14582# Protect against shell expansion while executing Makefile rules.
14583# Protect against Makefile macro expansion.
1c710c3c
DJ
14584#
14585# If the first sed substitution is executed (which looks for macros that
5213506e 14586# take arguments), then branch to the quote section. Otherwise,
1c710c3c 14587# look for a macro that doesn't take arguments.
5213506e
RW
14588ac_script='
14589:mline
14590/\\$/{
14591 N
14592 s,\\\n,,
14593 b mline
14594}
1c710c3c 14595t clear
5213506e
RW
14596:clear
14597s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14598t quote
5213506e 14599s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14600t quote
5213506e
RW
14601b any
14602:quote
14603s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14604s/\[/\\&/g
14605s/\]/\\&/g
14606s/\$/$$/g
14607H
14608:any
14609${
14610 g
14611 s/^\n//
14612 s/\n/ /g
14613 p
14614}
14615'
14616DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
14617
14618
14619ac_libobjs=
14620ac_ltlibobjs=
14621for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14622 # 1. Remove the extension, and $U if already installed.
5213506e
RW
14623 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14624 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14625 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14626 # will be set to the directory where LIBOBJS objects are built.
14627 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14628 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
14629done
14630LIBOBJS=$ac_libobjs
fb0103e5 14631
1c710c3c 14632LTLIBOBJS=$ac_ltlibobjs
0b0dc272 14633
af71363e 14634
1c710c3c
DJ
14635
14636: ${CONFIG_STATUS=./config.status}
5213506e 14637ac_write_fail=0
1c710c3c
DJ
14638ac_clean_files_save=$ac_clean_files
14639ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
14640{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14641$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14642as_write_fail=0
14643cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
14644#! $SHELL
14645# Generated by $as_me.
671aa708 14646# Run this file to recreate the current configuration.
671aa708 14647# Compiler output produced by configure, useful for debugging
1c710c3c 14648# configure, is in config.log if it exists.
0b0dc272 14649
1c710c3c
DJ
14650debug=false
14651ac_cs_recheck=false
14652ac_cs_silent=false
1c710c3c 14653
5213506e
RW
14654SHELL=\${CONFIG_SHELL-$SHELL}
14655export SHELL
14656_ASEOF
14657cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14658## -------------------- ##
14659## M4sh Initialization. ##
14660## -------------------- ##
14661
14662# Be more Bourne compatible
14663DUALCASE=1; export DUALCASE # for MKS sh
14664if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
14665 emulate sh
14666 NULLCMD=:
5213506e 14667 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
14668 # is contrary to our usage. Disable this feature.
14669 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
14670 setopt NO_GLOB_SUBST
14671else
14672 case `(set -o) 2>/dev/null` in #(
14673 *posix*) :
14674 set -o posix ;; #(
14675 *) :
14676 ;;
14677esac
1c710c3c 14678fi
1c710c3c 14679
5213506e
RW
14680
14681as_nl='
14682'
14683export as_nl
14684# Printing a long string crashes Solaris 7 /usr/bin/printf.
14685as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14686as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14687as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14688# Prefer a ksh shell builtin over an external printf program on Solaris,
14689# but without wasting forks for bash or zsh.
14690if test -z "$BASH_VERSION$ZSH_VERSION" \
14691 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14692 as_echo='print -r --'
14693 as_echo_n='print -rn --'
14694elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14695 as_echo='printf %s\n'
14696 as_echo_n='printf %s'
14697else
14698 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14699 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14700 as_echo_n='/usr/ucb/echo -n'
14701 else
14702 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14703 as_echo_n_body='eval
14704 arg=$1;
14705 case $arg in #(
14706 *"$as_nl"*)
14707 expr "X$arg" : "X\\(.*\\)$as_nl";
14708 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14709 esac;
14710 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14711 '
14712 export as_echo_n_body
14713 as_echo_n='sh -c $as_echo_n_body as_echo'
14714 fi
14715 export as_echo_body
14716 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
14717fi
14718
5213506e
RW
14719# The user is always right.
14720if test "${PATH_SEPARATOR+set}" != set; then
14721 PATH_SEPARATOR=:
14722 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14723 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14724 PATH_SEPARATOR=';'
14725 }
14726fi
14727
14728
14729# IFS
14730# We need space, tab and new line, in precisely that order. Quoting is
14731# there to prevent editors from complaining about space-tab.
14732# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14733# splitting by setting IFS to empty value.)
14734IFS=" "" $as_nl"
14735
14736# Find who we are. Look in the path if we contain no directory separator.
14737case $0 in #((
14738 *[\\/]* ) as_myself=$0 ;;
14739 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14740for as_dir in $PATH
14741do
14742 IFS=$as_save_IFS
14743 test -z "$as_dir" && as_dir=.
14744 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14745 done
14746IFS=$as_save_IFS
14747
14748 ;;
14749esac
14750# We did not find ourselves, most probably we were run as `sh COMMAND'
14751# in which case we are not to be found in the path.
14752if test "x$as_myself" = x; then
14753 as_myself=$0
14754fi
14755if test ! -f "$as_myself"; then
14756 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14757 exit 1
14758fi
1c710c3c 14759
5213506e
RW
14760# Unset variables that we do not need and which cause bugs (e.g. in
14761# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14762# suppresses any "Segmentation fault" message there. '((' could
14763# trigger a bug in pdksh 5.2.14.
14764for as_var in BASH_ENV ENV MAIL MAILPATH
14765do eval test x\${$as_var+set} = xset \
14766 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14767done
1c710c3c
DJ
14768PS1='$ '
14769PS2='> '
14770PS4='+ '
14771
14772# NLS nuisances.
5213506e
RW
14773LC_ALL=C
14774export LC_ALL
14775LANGUAGE=C
14776export LANGUAGE
14777
14778# CDPATH.
14779(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14780
14781
14782# as_fn_error ERROR [LINENO LOG_FD]
14783# ---------------------------------
14784# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14785# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14786# script with status $?, using 1 if that was 0.
14787as_fn_error ()
14788{
14789 as_status=$?; test $as_status -eq 0 && as_status=1
14790 if test "$3"; then
14791 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14792 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1c710c3c 14793 fi
5213506e
RW
14794 $as_echo "$as_me: error: $1" >&2
14795 as_fn_exit $as_status
14796} # as_fn_error
14797
14798
14799# as_fn_set_status STATUS
14800# -----------------------
14801# Set $? to STATUS, without forking.
14802as_fn_set_status ()
14803{
14804 return $1
14805} # as_fn_set_status
14806
14807# as_fn_exit STATUS
14808# -----------------
14809# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14810as_fn_exit ()
14811{
14812 set +e
14813 as_fn_set_status $1
14814 exit $1
14815} # as_fn_exit
14816
14817# as_fn_unset VAR
14818# ---------------
14819# Portably unset VAR.
14820as_fn_unset ()
14821{
14822 { eval $1=; unset $1;}
14823}
14824as_unset=as_fn_unset
14825# as_fn_append VAR VALUE
14826# ----------------------
14827# Append the text in VALUE to the end of the definition contained in VAR. Take
14828# advantage of any shell optimizations that allow amortized linear growth over
14829# repeated appends, instead of the typical quadratic growth present in naive
14830# implementations.
14831if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14832 eval 'as_fn_append ()
14833 {
14834 eval $1+=\$2
14835 }'
14836else
14837 as_fn_append ()
14838 {
14839 eval $1=\$$1\$2
14840 }
14841fi # as_fn_append
14842
14843# as_fn_arith ARG...
14844# ------------------
14845# Perform arithmetic evaluation on the ARGs, and store the result in the
14846# global $as_val. Take advantage of shells that can avoid forks. The arguments
14847# must be portable across $(()) and expr.
14848if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14849 eval 'as_fn_arith ()
14850 {
14851 as_val=$(( $* ))
14852 }'
14853else
14854 as_fn_arith ()
14855 {
14856 as_val=`expr "$@" || test $? -eq 1`
14857 }
14858fi # as_fn_arith
14859
1c710c3c 14860
5213506e
RW
14861if expr a : '\(a\)' >/dev/null 2>&1 &&
14862 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
14863 as_expr=expr
14864else
14865 as_expr=false
14866fi
14867
5213506e 14868if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
14869 as_basename=basename
14870else
14871 as_basename=false
14872fi
14873
5213506e
RW
14874if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14875 as_dirname=dirname
14876else
14877 as_dirname=false
14878fi
1c710c3c 14879
5213506e 14880as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
14881$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14882 X"$0" : 'X\(//\)$' \| \
5213506e
RW
14883 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14884$as_echo X/"$0" |
14885 sed '/^.*\/\([^/][^/]*\)\/*$/{
14886 s//\1/
14887 q
14888 }
14889 /^X\/\(\/\/\)$/{
14890 s//\1/
14891 q
14892 }
14893 /^X\/\(\/\).*/{
14894 s//\1/
14895 q
14896 }
14897 s/.*/./; q'`
2aeb72e9 14898
2aeb72e9
DD
14899# Avoid depending upon Character Ranges.
14900as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14901as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14902as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14903as_cr_digits='0123456789'
14904as_cr_alnum=$as_cr_Letters$as_cr_digits
14905
5213506e
RW
14906ECHO_C= ECHO_N= ECHO_T=
14907case `echo -n x` in #(((((
14908-n*)
14909 case `echo 'xy\c'` in
14910 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14911 xy) ECHO_C='\c';;
14912 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14913 ECHO_T=' ';;
14914 esac;;
14915*)
14916 ECHO_N='-n';;
1c710c3c
DJ
14917esac
14918
5213506e
RW
14919rm -f conf$$ conf$$.exe conf$$.file
14920if test -d conf$$.dir; then
14921 rm -f conf$$.dir/conf$$.file
1c710c3c 14922else
5213506e
RW
14923 rm -f conf$$.dir
14924 mkdir conf$$.dir 2>/dev/null
1c710c3c 14925fi
5213506e
RW
14926if (echo >conf$$.file) 2>/dev/null; then
14927 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 14928 as_ln_s='ln -s'
5213506e
RW
14929 # ... but there are two gotchas:
14930 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14931 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14932 # In both cases, we have to default to `cp -p'.
14933 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14934 as_ln_s='cp -p'
14935 elif ln conf$$.file conf$$ 2>/dev/null; then
14936 as_ln_s=ln
14937 else
14938 as_ln_s='cp -p'
2aeb72e9 14939 fi
1c710c3c
DJ
14940else
14941 as_ln_s='cp -p'
14942fi
5213506e
RW
14943rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14944rmdir conf$$.dir 2>/dev/null
14945
14946
14947# as_fn_mkdir_p
14948# -------------
14949# Create "$as_dir" as a directory, including parents if necessary.
14950as_fn_mkdir_p ()
14951{
14952
14953 case $as_dir in #(
14954 -*) as_dir=./$as_dir;;
14955 esac
14956 test -d "$as_dir" || eval $as_mkdir_p || {
14957 as_dirs=
14958 while :; do
14959 case $as_dir in #(
14960 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14961 *) as_qdir=$as_dir;;
14962 esac
14963 as_dirs="'$as_qdir' $as_dirs"
14964 as_dir=`$as_dirname -- "$as_dir" ||
14965$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14966 X"$as_dir" : 'X\(//\)[^/]' \| \
14967 X"$as_dir" : 'X\(//\)$' \| \
14968 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14969$as_echo X"$as_dir" |
14970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14971 s//\1/
14972 q
14973 }
14974 /^X\(\/\/\)[^/].*/{
14975 s//\1/
14976 q
14977 }
14978 /^X\(\/\/\)$/{
14979 s//\1/
14980 q
14981 }
14982 /^X\(\/\).*/{
14983 s//\1/
14984 q
14985 }
14986 s/.*/./; q'`
14987 test -d "$as_dir" && break
14988 done
14989 test -z "$as_dirs" || eval "mkdir $as_dirs"
14990 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14991
1c710c3c 14992
5213506e 14993} # as_fn_mkdir_p
1c710c3c 14994if mkdir -p . 2>/dev/null; then
5213506e 14995 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
14996else
14997 test -d ./-p && rmdir ./-p
14998 as_mkdir_p=false
14999fi
15000
5213506e
RW
15001if test -x / >/dev/null 2>&1; then
15002 as_test_x='test -x'
15003else
15004 if ls -dL / >/dev/null 2>&1; then
15005 as_ls_L_option=L
15006 else
15007 as_ls_L_option=
15008 fi
15009 as_test_x='
15010 eval sh -c '\''
15011 if test -d "$1"; then
15012 test -d "$1/.";
15013 else
15014 case $1 in #(
15015 -*)set "./$1";;
15016 esac;
15017 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15018 ???[sx]*):;;*)false;;esac;fi
15019 '\'' sh
15020 '
15021fi
15022as_executable_p=$as_test_x
1c710c3c
DJ
15023
15024# Sed expression to map a string onto a valid CPP name.
15025as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15026
15027# Sed expression to map a string onto a valid variable name.
15028as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15029
15030
1c710c3c 15031exec 6>&1
5213506e
RW
15032## ----------------------------------- ##
15033## Main body of $CONFIG_STATUS script. ##
15034## ----------------------------------- ##
15035_ASEOF
15036test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15037
15038cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15039# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 15040# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
15041# values after options handling.
15042ac_log="
1c710c3c 15043This file was extended by $as_me, which was
5213506e 15044generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
15045
15046 CONFIG_FILES = $CONFIG_FILES
15047 CONFIG_HEADERS = $CONFIG_HEADERS
15048 CONFIG_LINKS = $CONFIG_LINKS
15049 CONFIG_COMMANDS = $CONFIG_COMMANDS
15050 $ $0 $@
15051
5213506e
RW
15052on `(hostname || uname -n) 2>/dev/null | sed 1q`
15053"
15054
1c710c3c
DJ
15055_ACEOF
15056
5213506e
RW
15057case $ac_config_files in *"
15058"*) set x $ac_config_files; shift; ac_config_files=$*;;
15059esac
1c710c3c 15060
2aeb72e9 15061
2aeb72e9 15062
5213506e
RW
15063cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15064# Files that config.status was made for.
15065config_files="$ac_config_files"
1c710c3c 15066
5213506e 15067_ACEOF
2aeb72e9 15068
5213506e 15069cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 15070ac_cs_usage="\
5213506e
RW
15071\`$as_me' instantiates files and other configuration actions
15072from templates according to the current configuration. Unless the files
15073and actions are specified as TAGs, all are instantiated by default.
1c710c3c 15074
5213506e 15075Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
15076
15077 -h, --help print this help, then exit
5213506e
RW
15078 -V, --version print version number and configuration settings, then exit
15079 -q, --quiet, --silent
15080 do not print progress messages
1c710c3c
DJ
15081 -d, --debug don't remove temporary files
15082 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
15083 --file=FILE[:TEMPLATE]
15084 instantiate the configuration file FILE
1c710c3c
DJ
15085
15086Configuration files:
15087$config_files
15088
5213506e 15089Report bugs to the package provider."
2aeb72e9 15090
5213506e
RW
15091_ACEOF
15092cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c
DJ
15093ac_cs_version="\\
15094config.status
5213506e
RW
15095configured by $0, generated by GNU Autoconf 2.64,
15096 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 15097
5213506e 15098Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
15099This config.status script is free software; the Free Software Foundation
15100gives unlimited permission to copy, distribute and modify it."
5213506e
RW
15101
15102ac_pwd='$ac_pwd'
15103srcdir='$srcdir'
15104INSTALL='$INSTALL'
87264276 15105AWK='$AWK'
5213506e 15106test -n "\$AWK" || AWK=awk
1c710c3c
DJ
15107_ACEOF
15108
5213506e
RW
15109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15110# The default lists apply if the user does not specify any file.
1c710c3c
DJ
15111ac_need_defaults=:
15112while test $# != 0
a4b9e93e 15113do
1c710c3c
DJ
15114 case $1 in
15115 --*=*)
5213506e
RW
15116 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15117 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
15118 ac_shift=:
15119 ;;
5213506e 15120 *)
1c710c3c
DJ
15121 ac_option=$1
15122 ac_optarg=$2
15123 ac_shift=shift
15124 ;;
1c710c3c
DJ
15125 esac
15126
15127 case $ac_option in
15128 # Handling of the options.
671aa708 15129 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 15130 ac_cs_recheck=: ;;
5213506e
RW
15131 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15132 $as_echo "$ac_cs_version"; exit ;;
15133 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
15134 debug=: ;;
15135 --file | --fil | --fi | --f )
15136 $ac_shift
5213506e
RW
15137 case $ac_optarg in
15138 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15139 esac
15140 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 15141 ac_need_defaults=false;;
5213506e
RW
15142 --he | --h | --help | --hel | -h )
15143 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
15144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15145 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15146 ac_cs_silent=: ;;
15147
15148 # This is an error.
5213506e
RW
15149 -*) as_fn_error "unrecognized option: \`$1'
15150Try \`$0 --help' for more information." ;;
1c710c3c 15151
5213506e
RW
15152 *) as_fn_append ac_config_targets " $1"
15153 ac_need_defaults=false ;;
1c710c3c 15154
0b0dc272 15155 esac
1c710c3c 15156 shift
0b0dc272
AM
15157done
15158
1c710c3c 15159ac_configure_extra_args=
0b0dc272 15160
1c710c3c
DJ
15161if $ac_cs_silent; then
15162 exec 6>/dev/null
15163 ac_configure_extra_args="$ac_configure_extra_args --silent"
15164fi
0b0dc272 15165
1c710c3c 15166_ACEOF
5213506e 15167cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 15168if \$ac_cs_recheck; then
5213506e
RW
15169 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15170 shift
15171 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15172 CONFIG_SHELL='$SHELL'
15173 export CONFIG_SHELL
15174 exec "\$@"
1c710c3c
DJ
15175fi
15176
15177_ACEOF
5213506e
RW
15178cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15179exec 5>>config.log
15180{
15181 echo
15182 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15183## Running $as_me. ##
15184_ASBOX
15185 $as_echo "$ac_log"
15186} >&5
1c710c3c 15187
5213506e
RW
15188_ACEOF
15189cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
15190#
15191# INIT-COMMANDS
15192#
15193extrasub_build="$extrasub_build"
15194 extrasub_host="$extrasub_host"
15195 extrasub_target="$extrasub_target"
15196
5213506e 15197_ACEOF
1c710c3c 15198
5213506e 15199cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 15200
5213506e 15201# Handling of arguments.
1c710c3c
DJ
15202for ac_config_target in $ac_config_targets
15203do
5213506e
RW
15204 case $ac_config_target in
15205 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15206
15207 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
15208 esac
15209done
15210
5213506e 15211
1c710c3c
DJ
15212# If the user did not use the arguments to specify the items to instantiate,
15213# then the envvar interface is used. Set only those that are not.
15214# We use the long form for the default assignment because of an extremely
15215# bizarre bug on SunOS 4.1.3.
15216if $ac_need_defaults; then
15217 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15218fi
15219
15220# Have a temporary directory for convenience. Make it in the build tree
5213506e 15221# simply because there is no reason against having it here, and in addition,
1c710c3c 15222# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
15223# Hook for its removal unless debugging.
15224# Note that there is a small window in which the directory will not be cleaned:
15225# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
15226$debug ||
15227{
5213506e
RW
15228 tmp=
15229 trap 'exit_status=$?
15230 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15231' 0
15232 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 15233}
1c710c3c
DJ
15234# Create a (secure) tmp directory for tmp files.
15235
15236{
5213506e 15237 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
15238 test -n "$tmp" && test -d "$tmp"
15239} ||
15240{
5213506e
RW
15241 tmp=./conf$$-$RANDOM
15242 (umask 077 && mkdir "$tmp")
15243} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15244
15245# Set up the scripts for CONFIG_FILES section.
15246# No need to generate them if there are no CONFIG_FILES.
15247# This happens for instance with `./config.status config.h'.
15248if test -n "$CONFIG_FILES"; then
15249
15250if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15251 ac_cs_awk_getline=:
15252 ac_cs_awk_pipe_init=
15253 ac_cs_awk_read_file='
15254 while ((getline aline < (F[key])) > 0)
15255 print(aline)
15256 close(F[key])'
15257 ac_cs_awk_pipe_fini=
15258else
15259 ac_cs_awk_getline=false
15260 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15261 ac_cs_awk_read_file='
15262 print "|#_!!_#|"
15263 print "cat " F[key] " &&"
15264 '$ac_cs_awk_pipe_init
15265 # The final `:' finishes the AND list.
15266 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15267fi
15268ac_cr=`echo X | tr X '\015'`
15269# On cygwin, bash can eat \r inside `` if the user requested igncr.
15270# But we know of no other shell where ac_cr would be empty at this
15271# point, so we can use a bashism as a fallback.
15272if test "x$ac_cr" = x; then
15273 eval ac_cr=\$\'\\r\'
15274fi
15275ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15276if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15277 ac_cs_awk_cr='\r'
15278else
15279 ac_cs_awk_cr=$ac_cr
15280fi
15281
15282echo 'BEGIN {' >"$tmp/subs1.awk" &&
15283_ACEOF
15284
15285# Create commands to substitute file output variables.
1c710c3c 15286{
5213506e
RW
15287 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15288 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15289 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15290 echo "_ACAWK" &&
15291 echo "_ACEOF"
15292} >conf$$files.sh &&
15293. ./conf$$files.sh ||
15294 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15295rm -f conf$$files.sh
1c710c3c 15296
5213506e
RW
15297{
15298 echo "cat >conf$$subs.awk <<_ACEOF" &&
15299 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15300 echo "_ACEOF"
15301} >conf$$subs.sh ||
15302 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15303ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15304ac_delim='%!_!# '
15305for ac_last_try in false false false false false :; do
15306 . ./conf$$subs.sh ||
15307 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15308
15309 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15310 if test $ac_delim_n = $ac_delim_num; then
15311 break
15312 elif $ac_last_try; then
15313 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15314 else
15315 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15316 fi
15317done
15318rm -f conf$$subs.sh
15319
15320cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15321cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 15322_ACEOF
5213506e
RW
15323sed -n '
15324h
15325s/^/S["/; s/!.*/"]=/
15326p
15327g
15328s/^[^!]*!//
15329:repl
15330t repl
15331s/'"$ac_delim"'$//
15332t delim
15333:nl
15334h
15335s/\(.\{148\}\).*/\1/
15336t more1
15337s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15338p
15339n
15340b repl
15341:more1
15342s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15343p
15344g
15345s/.\{148\}//
15346t nl
15347:delim
15348h
15349s/\(.\{148\}\).*/\1/
15350t more2
15351s/["\\]/\\&/g; s/^/"/; s/$/"/
15352p
15353b
15354:more2
15355s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15356p
15357g
15358s/.\{148\}//
15359t delim
15360' <conf$$subs.awk | sed '
15361/^[^""]/{
15362 N
15363 s/\n//
15364}
15365' >>$CONFIG_STATUS || ac_write_fail=1
15366rm -f conf$$subs.awk
15367cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15368_ACAWK
15369cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15370 for (key in S) S_is_set[key] = 1
15371 FS = "\a"
15372 \$ac_cs_awk_pipe_init
15373}
15374{
15375 line = $ 0
15376 nfields = split(line, field, "@")
15377 substed = 0
15378 len = length(field[1])
15379 for (i = 2; i < nfields; i++) {
15380 key = field[i]
15381 keylen = length(key)
15382 if (S_is_set[key]) {
15383 value = S[key]
15384 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15385 len += length(value) + length(field[++i])
15386 substed = 1
15387 } else
15388 len += 1 + keylen
15389 }
15390 if (nfields == 3 && !substed) {
15391 key = field[2]
15392 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15393 \$ac_cs_awk_read_file
15394 next
15395 }
15396 }
15397 print line
15398}
15399\$ac_cs_awk_pipe_fini
15400_ACAWK
15401_ACEOF
15402cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15403if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15404 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15405else
15406 cat
15407fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15408 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15409_ACEOF
15410
15411# VPATH may cause trouble with some makes, so we remove $(srcdir),
15412# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15413# trailing colons and then remove the whole line if VPATH becomes empty
15414# (actually we leave an empty line to preserve line numbers).
15415if test "x$srcdir" = x.; then
15416 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15417s/:*\$(srcdir):*/:/
15418s/:*\${srcdir}:*/:/
15419s/:*@srcdir@:*/:/
15420s/^\([^=]*=[ ]*\):*/\1/
15421s/:*$//
15422s/^[^=]*=[ ]*$//
15423}'
15424fi
2aeb72e9 15425
5213506e
RW
15426cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15427fi # test -n "$CONFIG_FILES"
2aeb72e9 15428
1c710c3c 15429
5213506e
RW
15430eval set X " :F $CONFIG_FILES "
15431shift
15432for ac_tag
15433do
15434 case $ac_tag in
15435 :[FHLC]) ac_mode=$ac_tag; continue;;
15436 esac
15437 case $ac_mode$ac_tag in
15438 :[FHL]*:*);;
15439 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15440 :[FH]-) ac_tag=-:-;;
15441 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15442 esac
15443 ac_save_IFS=$IFS
15444 IFS=:
15445 set x $ac_tag
15446 IFS=$ac_save_IFS
15447 shift
15448 ac_file=$1
15449 shift
79c06341 15450
5213506e
RW
15451 case $ac_mode in
15452 :L) ac_source=$1;;
15453 :[FH])
15454 ac_file_inputs=
15455 for ac_f
15456 do
15457 case $ac_f in
15458 -) ac_f="$tmp/stdin";;
15459 *) # Look for the file first in the build tree, then in the source tree
15460 # (if the path is not absolute). The absolute path cannot be DOS-style,
15461 # because $ac_f cannot contain `:'.
15462 test -f "$ac_f" ||
15463 case $ac_f in
15464 [\\/$]*) false;;
15465 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15466 esac ||
15467 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15468 esac
15469 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15470 as_fn_append ac_file_inputs " '$ac_f'"
15471 done
1c710c3c 15472
5213506e
RW
15473 # Let's still pretend it is `configure' which instantiates (i.e., don't
15474 # use $as_me), people would be surprised to read:
15475 # /* config.h. Generated by config.status. */
15476 configure_input='Generated from '`
15477 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15478 `' by configure.'
15479 if test x"$ac_file" != x-; then
15480 configure_input="$ac_file. $configure_input"
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15482$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 15483 fi
5213506e
RW
15484 # Neutralize special characters interpreted by sed in replacement strings.
15485 case $configure_input in #(
15486 *\&* | *\|* | *\\* )
15487 ac_sed_conf_input=`$as_echo "$configure_input" |
15488 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15489 *) ac_sed_conf_input=$configure_input;;
15490 esac
11a67599 15491
5213506e
RW
15492 case $ac_tag in
15493 *:-:* | *:-) cat >"$tmp/stdin" \
15494 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15495 esac
15496 ;;
11a67599
ZW
15497 esac
15498
5213506e 15499 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
15500$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15501 X"$ac_file" : 'X\(//\)[^/]' \| \
15502 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
15503 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15504$as_echo X"$ac_file" |
15505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15506 s//\1/
15507 q
15508 }
15509 /^X\(\/\/\)[^/].*/{
15510 s//\1/
15511 q
15512 }
15513 /^X\(\/\/\)$/{
15514 s//\1/
15515 q
15516 }
15517 /^X\(\/\).*/{
15518 s//\1/
15519 q
15520 }
15521 s/.*/./; q'`
15522 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 15523 ac_builddir=.
0b0dc272 15524
5213506e
RW
15525case "$ac_dir" in
15526.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15527*)
15528 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15529 # A ".." for each directory in $ac_dir_suffix.
15530 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15531 case $ac_top_builddir_sub in
15532 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15533 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15534 esac ;;
15535esac
15536ac_abs_top_builddir=$ac_pwd
15537ac_abs_builddir=$ac_pwd$ac_dir_suffix
15538# for backward compatibility:
15539ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
15540
15541case $srcdir in
5213506e 15542 .) # We are building in place.
1c710c3c 15543 ac_srcdir=.
5213506e
RW
15544 ac_top_srcdir=$ac_top_builddir_sub
15545 ac_abs_top_srcdir=$ac_pwd ;;
15546 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 15547 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
15548 ac_top_srcdir=$srcdir
15549 ac_abs_top_srcdir=$srcdir ;;
15550 *) # Relative name.
15551 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15552 ac_top_srcdir=$ac_top_build_prefix$srcdir
15553 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 15554esac
5213506e 15555ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 15556
0b0dc272 15557
5213506e
RW
15558 case $ac_mode in
15559 :F)
15560 #
15561 # CONFIG_FILE
15562 #
1c710c3c
DJ
15563
15564 case $INSTALL in
15565 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 15566 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 15567 esac
5213506e 15568_ACEOF
11a67599 15569
5213506e
RW
15570cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15571# If the template does not know about datarootdir, expand it.
15572# FIXME: This hack should be removed a few years after 2.60.
15573ac_datarootdir_hack=; ac_datarootdir_seen=
15574ac_sed_dataroot='
15575/datarootdir/ {
15576 p
15577 q
15578}
15579/@datadir@/p
15580/@docdir@/p
15581/@infodir@/p
15582/@localedir@/p
15583/@mandir@/p'
15584case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15585*datarootdir*) ac_datarootdir_seen=yes;;
15586*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15588$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 15589_ACEOF
5213506e
RW
15590cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15591 ac_datarootdir_hack='
15592 s&@datadir@&$datadir&g
15593 s&@docdir@&$docdir&g
15594 s&@infodir@&$infodir&g
15595 s&@localedir@&$localedir&g
15596 s&@mandir@&$mandir&g
15597 s&\\\${datarootdir}&$datarootdir&g' ;;
15598esac
15599_ACEOF
15600
15601# Neutralize VPATH when `$srcdir' = `.'.
15602# Shell code in configure.ac might set extrasub.
15603# FIXME: do we really want to maintain this feature?
15604cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15605ac_sed_extra="$ac_vpsub
1c710c3c
DJ
15606$extrasub
15607_ACEOF
5213506e 15608cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
15609:t
15610/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
15611s|@configure_input@|$ac_sed_conf_input|;t t
15612s&@top_builddir@&$ac_top_builddir_sub&;t t
15613s&@top_build_prefix@&$ac_top_build_prefix&;t t
15614s&@srcdir@&$ac_srcdir&;t t
15615s&@abs_srcdir@&$ac_abs_srcdir&;t t
15616s&@top_srcdir@&$ac_top_srcdir&;t t
15617s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15618s&@builddir@&$ac_builddir&;t t
15619s&@abs_builddir@&$ac_abs_builddir&;t t
15620s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15621s&@INSTALL@&$ac_INSTALL&;t t
15622$ac_datarootdir_hack
15623"
15624eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15625if $ac_cs_awk_getline; then
15626 $AWK -f "$tmp/subs.awk"
15627else
15628 $AWK -f "$tmp/subs.awk" | $SHELL
15629fi >$tmp/out \
15630 || as_fn_error "could not create $ac_file" "$LINENO" 5
15631
15632test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15633 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15634 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15636which seems to be undefined. Please make sure it is defined." >&5
15637$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15638which seems to be undefined. Please make sure it is defined." >&2;}
15639
15640 rm -f "$tmp/stdin"
15641 case $ac_file in
15642 -) cat "$tmp/out" && rm -f "$tmp/out";;
15643 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15644 esac \
15645 || as_fn_error "could not create $ac_file" "$LINENO" 5
15646 ;;
11a67599 15647
11a67599 15648
79c06341 15649
5213506e
RW
15650 esac
15651
3e54529c
RW
15652
15653 case $ac_file$ac_mode in
15654 "Makefile":F) sed "$extrasub_build" Makefile |
15655 sed "$extrasub_host" |
15656 sed "$extrasub_target" > mf$$
15657 mv -f mf$$ Makefile ;;
15658
15659 esac
5213506e
RW
15660done # for ac_tag
15661
15662
15663as_fn_exit 0
1c710c3c 15664_ACEOF
1c710c3c
DJ
15665ac_clean_files=$ac_clean_files_save
15666
5213506e
RW
15667test $ac_write_fail = 0 ||
15668 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15669
1c710c3c
DJ
15670
15671# configure is writing to config.log, and then calls config.status.
15672# config.status does its own redirection, appending to config.log.
15673# Unfortunately, on DOS this fails, as config.log is still kept open
15674# by configure, so config.status won't be able to write to it; its
15675# output is simply discarded. So we exec the FD to /dev/null,
15676# effectively closing config.log, so it can be properly (re)opened and
15677# appended to by config.status. When coming back to configure, we
15678# need to make the FD available again.
15679if test "$no_create" != yes; then
15680 ac_cs_success=:
15681 ac_config_status_args=
15682 test "$silent" = yes &&
15683 ac_config_status_args="$ac_config_status_args --quiet"
15684 exec 5>/dev/null
15685 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15686 exec 5>>config.log
15687 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15688 # would make configure fail if this is the last instruction.
5213506e
RW
15689 $ac_cs_success || as_fn_exit $?
15690fi
15691if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15693$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 15694fi
79c06341 15695