]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
arm.c (arm_emit_coreregs_64bit_shift): Fix comment.
[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* \
2953 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a
JM
2954 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2955 | *-*-solaris2* | *-*-nto*)
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
d91491e5
SE
3199# Disable libquadmath for some systems.
3200case "${target}" in
3201 # libquadmath is unused on AIX and libquadmath build process use of
3202 # LD_LIBRARY_PATH can break AIX bootstrap.
3203 powerpc-*-aix* | rs6000-*-aix*)
3204 noconfigdirs="$noconfigdirs target-libquadmath"
3205 ;;
3206esac
3207
3c31b9b4
HPN
3208# Disable libsanitizer for some systems.
3209case "${target}" in
3210 cris-*-* | crisv32-*-* | mmix-*-*)
3211 noconfigdirs="$noconfigdirs target-libsanitizer"
3212 ;;
3213esac
3214
1e9e0e23
JM
3215# Disable libssp for some systems.
3216case "${target}" in
3217 avr-*-*)
b318fb4b 3218 # No hosted I/O support.
1e9e0e23
JM
3219 noconfigdirs="$noconfigdirs target-libssp"
3220 ;;
3221 powerpc-*-aix* | rs6000-*-aix*)
3222 noconfigdirs="$noconfigdirs target-libssp"
85b8555e
DD
3223 ;;
3224 rl78-*-*)
7cb62ef1
EB
3225 # libssp uses a misaligned load to trigger a fault, but the RL78
3226 # doesn't fault for those - instead, it gives a build-time error
3227 # for explicit misaligned loads.
85b8555e 3228 noconfigdirs="$noconfigdirs target-libssp"
1e9e0e23 3229 ;;
1e9e0e23
JM
3230esac
3231
a4cf6e46
GJL
3232# Disable libquadmath for some systems.
3233case "${target}" in
3234 avr-*-*)
3235 noconfigdirs="$noconfigdirs target-libquadmath"
3236 ;;
3237esac
3238
1e9e0e23 3239# Disable libstdc++-v3 for some systems.
1873ec0c
L
3240# Allow user to override this if they pass --enable-libstdc++-v3
3241if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3242 case "${target}" in
3243 *-*-vxworks*)
3244 # VxWorks uses the Dinkumware C++ library.
3245 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3246 ;;
3247 arm*-wince-pe*)
3248 # the C++ libraries don't build on top of CE's C libraries
3249 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3250 ;;
3251 avr-*-*)
3252 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3253 ;;
3254 esac
3255fi
1e9e0e23
JM
3256
3257# Disable Fortran for some systems.
3258case "${target}" in
3259 mmix-*-*)
3260 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3261 unsupported_languages="$unsupported_languages fortran"
3262 ;;
3263esac
3264
80f81134 3265# Disable Java if libffi is not supported.
2909494b 3266case "${target}" in
80f81134
JM
3267 alpha*-*-*)
3268 ;;
3269 arm*-*-*)
3270 ;;
3271 cris-*-*)
3272 ;;
3273 frv-*-*)
3274 ;;
3275 hppa*-*-linux*)
3276 ;;
3277 hppa*-*-hpux*)
3278 ;;
3279 i?86-*-*)
3280 ;;
3281 ia64*-*-*)
3282 ;;
3283 m32r*-*-*)
3284 ;;
3285 m68k-*-*)
3286 ;;
b24513a1 3287 mips*-*-rtems*)
80f81134
JM
3288 ;;
3289 mips*-*-linux*)
3290 ;;
3291 powerpc*-*-linux*)
3292 ;;
3293 powerpc-*-darwin*)
3294 ;;
3295 powerpc-*-aix* | rs6000-*-aix*)
3296 ;;
3297 powerpc-*-freebsd*)
3298 ;;
3299 powerpc64-*-freebsd*)
3300 ;;
3301 powerpc*-*-rtems*)
2909494b 3302 ;;
80f81134
JM
3303 s390-*-* | s390x-*-*)
3304 ;;
3305 sh-*-* | sh[34]*-*-*)
3306 ;;
3307 sh64-*-* | sh5*-*-*)
3308 ;;
3309 sparc*-*-*)
3310 ;;
3311 x86_64-*-*)
3312 ;;
3313 *-*-*)
3314 unsupported_languages="$unsupported_languages java"
3315 ;;
3316esac
3317
3318# Disable Java, libgcj or related libraries for some systems.
3319case "${target}" in
2909494b
JM
3320 powerpc-*-darwin*)
3321 ;;
3322 i[3456789]86-*-darwin*)
3323 ;;
3324 x86_64-*-darwin[912]*)
3325 ;;
3326 *-*-darwin*)
3327 noconfigdirs="$noconfigdirs ${libgcj}"
3328 ;;
2909494b
JM
3329 *-*-netware*)
3330 noconfigdirs="$noconfigdirs ${libgcj}"
3331 ;;
3332 *-*-rtems*)
3333 noconfigdirs="$noconfigdirs ${libgcj}"
3334 ;;
3335 *-*-tpf*)
3336 noconfigdirs="$noconfigdirs ${libgcj}"
3337 ;;
3338 *-*-uclinux*)
3339 noconfigdirs="$noconfigdirs ${libgcj}"
3340 ;;
3341 *-*-vxworks*)
3342 noconfigdirs="$noconfigdirs ${libgcj}"
3343 ;;
2909494b
JM
3344 alpha*-*-*vms*)
3345 noconfigdirs="$noconfigdirs ${libgcj}"
3346 ;;
80f81134 3347 arm-wince-pe)
2909494b
JM
3348 noconfigdirs="$noconfigdirs ${libgcj}"
3349 ;;
2909494b
JM
3350 arm*-*-symbianelf*)
3351 noconfigdirs="$noconfigdirs ${libgcj}"
3352 ;;
2909494b 3353 bfin-*-*)
2909494b
JM
3354 noconfigdirs="$noconfigdirs target-boehm-gc"
3355 ;;
2909494b
JM
3356 cris-*-* | crisv32-*-*)
3357 unsupported_languages="$unsupported_languages java"
3358 case "${target}" in
3359 *-*-linux*)
3360 ;;
3361 *) # See PR46792 regarding target-libffi.
3362 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3363 esac
3364 ;;
2909494b
JM
3365 hppa*64*-*-linux*)
3366 # In this case, it's because the hppa64-linux target is for
3367 # the kernel only at this point and has no libc, and thus no
3368 # headers, crt*.o, etc., all of which are needed by these.
fddf9ee7 3369 unsupported_languages="$unsupported_languages java"
2909494b 3370 ;;
fddf9ee7 3371 hppa*64*-*-hpux*)
2909494b
JM
3372 noconfigdirs="$noconfigdirs ${libgcj}"
3373 ;;
3374 hppa*-hp-hpux11*)
3375 ;;
fddf9ee7 3376 hppa*-*-hpux*)
2909494b
JM
3377 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3378 # build on HP-UX 10.20.
3379 noconfigdirs="$noconfigdirs ${libgcj}"
3380 ;;
2909494b
JM
3381 ia64*-*-*vms*)
3382 noconfigdirs="$noconfigdirs ${libgcj}"
3383 ;;
2909494b
JM
3384 i[3456789]86-w64-mingw*)
3385 noconfigdirs="$noconfigdirs ${libgcj}"
3386 ;;
3387 i[3456789]86-*-mingw*)
3388 noconfigdirs="$noconfigdirs ${libgcj}"
3389 ;;
3390 x86_64-*-mingw*)
3391 noconfigdirs="$noconfigdirs ${libgcj}"
3392 ;;
2909494b
JM
3393 mmix-*-*)
3394 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
2909494b
JM
3395 ;;
3396 powerpc-*-aix*)
3397 # copied from rs6000-*-* entry
3398 noconfigdirs="$noconfigdirs ${libgcj}"
3399 ;;
2909494b
JM
3400 rs6000-*-aix*)
3401 noconfigdirs="$noconfigdirs ${libgcj}"
3402 ;;
2909494b
JM
3403 *-*-lynxos*)
3404 noconfigdirs="$noconfigdirs ${libgcj}"
3405 ;;
2909494b
JM
3406esac
3407
c03353e2
RIL
3408# Default libgloss CPU subdirectory.
3409libgloss_dir="$target_cpu"
6de9cd9a 3410
fbcf0dca
JM
3411case "${target}" in
3412 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3413 libgloss_dir=wince
3414 ;;
3415 arm*-*-*)
3416 libgloss_dir=arm
3417 ;;
3418 cris-*-* | crisv32-*-*)
3419 libgloss_dir=cris
3420 ;;
3421 hppa*-*-*)
3422 libgloss_dir=pa
3423 ;;
3424 i[3456789]86-*-*)
3425 libgloss_dir=i386
3426 ;;
3427 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3428 libgloss_dir=m68hc11
3429 ;;
3430 m68*-*-* | fido-*-*)
3431 libgloss_dir=m68k
3432 ;;
3433 mips*-*-*)
3434 libgloss_dir=mips
3435 ;;
3436 powerpc*-*-*)
3437 libgloss_dir=rs6000
3438 ;;
3439 sparc*-*-*)
3440 libgloss_dir=sparc
3441 ;;
3442esac
3443
6a789d5e 3444# Disable newlib and libgloss for various target OSes.
671aa708 3445case "${target}" in
6a789d5e
JM
3446 alpha*-dec-osf*)
3447 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3448 ;;
3449 i[3456789]86-*-linux*)
3450 # This section makes it possible to build newlib natively on linux.
3451 # If we are using a cross compiler then don't configure newlib.
3452 if test x${is_cross_compiler} != xno ; then
3453 noconfigdirs="$noconfigdirs target-newlib"
3454 fi
3455 noconfigdirs="$noconfigdirs target-libgloss"
3456 # If we are not using a cross compiler, do configure newlib.
3457 # Note however, that newlib will only be configured in this situation
3458 # if the --with-newlib option has been given, because otherwise
3459 # 'target-newlib' will appear in skipdirs.
3460 ;;
3461 i[3456789]86-*-rdos*)
3462 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3463 ;;
3464 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3465 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3466 ;;
3467 sparc-*-sunos4*)
3468 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3469 ;;
3470 *-*-aix*)
3471 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3472 ;;
3473 *-*-beos*)
3474 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3475 ;;
671aa708 3476 *-*-chorusos)
0036370f 3477 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3478 ;;
6a789d5e
JM
3479 *-*-dragonfly*)
3480 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3481 ;;
3482 *-*-freebsd*)
3483 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3484 ;;
3485 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3486 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3487 ;;
3488 *-*-lynxos*)
3489 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3490 ;;
3491 *-*-mingw*)
3492 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3493 ;;
3494 *-*-netbsd*)
3495 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3496 ;;
3497 *-*-netware*)
3498 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3499 ;;
3500 *-*-tpf*)
3501 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3502 ;;
3503 *-*-uclinux*)
3504 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3505 ;;
3506 *-*-vxworks*)
3507 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3508 ;;
3509esac
3510
3511case "${target}" in
3512 *-*-chorusos)
3513 ;;
75eeae1a 3514 powerpc-*-darwin*)
e1514c3f 3515 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3516 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3517 ;;
354ebf88
RW
3518 i[3456789]86-*-darwin*)
3519 noconfigdirs="$noconfigdirs ld gprof"
3520 noconfigdirs="$noconfigdirs sim target-rda"
3521 ;;
3522 x86_64-*-darwin[912]*)
0db3a858
TG
3523 noconfigdirs="$noconfigdirs ld gas gprof"
3524 noconfigdirs="$noconfigdirs sim target-rda"
3525 ;;
42c1cd8a
AT
3526 *-*-darwin*)
3527 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3528 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3529 ;;
8c6d158a 3530 *-*-dragonfly*)
8c6d158a 3531 ;;
c3f84f61 3532 *-*-freebsd*)
6de9cd9a
DN
3533 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3534 && test -f /usr/local/include/gmp.h; then
3535 with_gmp=/usr/local
3536 fi
6de9cd9a 3537 ;;
ef4e7569
US
3538 *-*-kaos*)
3539 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3540 noconfigdirs="$noconfigdirs target-libgloss"
3541 ;;
671aa708 3542 *-*-netbsd*)
671aa708 3543 ;;
61fec9ff 3544 *-*-netware*)
671aa708
NN
3545 ;;
3546 *-*-rtems*)
2909494b 3547 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3548 ;;
a8ba31f2
EC
3549 # The tpf target doesn't support gdb yet.
3550 *-*-tpf*)
6a789d5e 3551 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3552 ;;
5785c0ed 3553 *-*-uclinux*)
6a789d5e 3554 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3555 ;;
671aa708 3556 *-*-vxworks*)
671aa708
NN
3557 ;;
3558 alpha*-dec-osf*)
3559 # ld works, but does not support shared libraries.
671aa708 3560 # gas doesn't generate exception information.
6a789d5e 3561 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3562 ;;
3563 alpha*-*-*vms*)
2909494b 3564 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3565 ;;
671aa708
NN
3566 alpha*-*-*)
3567 # newlib is not 64 bit ready
2909494b 3568 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3569 ;;
671aa708 3570 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3571 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708
NN
3572 ;;
3573 arc-*-*)
ebb9f8b0 3574 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3575 ;;
671aa708 3576 arm-*-pe*)
2909494b 3577 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3578 ;;
671aa708 3579 arm-*-riscix*)
0036370f 3580 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3581 ;;
b588ae30
GJL
3582 avr-*-rtems*)
3583 ;;
3584 avr-*-*)
3585 if test x${with_avrlibc} != xno; then
3586 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3587 fi
3588 ;;
671aa708 3589 c4x-*-* | tic4x-*-*)
0036370f 3590 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3591 ;;
0036370f
JM
3592 tic54x-*-*)
3593 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3594 ;;
671aa708 3595 d10v-*-*)
0036370f 3596 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3597 ;;
3598 d30v-*-*)
0036370f 3599 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3600 ;;
3601 fr30-*-elf*)
2909494b 3602 noconfigdirs="$noconfigdirs gdb"
671aa708 3603 ;;
55f2d967 3604 moxie-*-*)
55f2d967
AG
3605 noconfigdirs="$noconfigdirs gprof"
3606 ;;
671aa708 3607 h8300*-*-*)
2909494b 3608 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3609 ;;
3610 h8500-*-*)
0036370f 3611 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3612 ;;
ee6a22df 3613 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3614 ;;
4569f85e 3615 hppa*64*-*-linux*)
671aa708 3616 ;;
56f8587a 3617 hppa*-*-linux*)
3e732ba0 3618 ;;
671aa708 3619 hppa*-*-*elf* | \
671aa708
NN
3620 hppa*-*-lites* | \
3621 hppa*-*-openbsd* | \
3622 hppa*64*-*-*)
671aa708 3623 ;;
2a332582 3624 hppa*-hp-hpux11*)
1bcce263 3625 noconfigdirs="$noconfigdirs ld"
2a332582 3626 ;;
c03353e2 3627 hppa*-*-pro*)
c03353e2 3628 ;;
671aa708 3629 hppa*-*-*)
2909494b 3630 noconfigdirs="$noconfigdirs ld"
671aa708 3631 ;;
fb87ad5d 3632 i960-*-*)
0036370f 3633 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3634 ;;
671aa708
NN
3635 ia64*-*-elf*)
3636 # No gdb support yet.
1bcce263 3637 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3638 ;;
3639 ia64*-**-hpux*)
5a2931d1 3640 # No ld support yet.
2909494b 3641 noconfigdirs="$noconfigdirs libgui itcl ld"
671aa708 3642 ;;
52535a64 3643 ia64*-*-*vms*)
091fe9ca
TG
3644 # No ld support yet.
3645 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3646 ;;
ef4c4300 3647 i[3456789]86-w64-mingw*)
ef4c4300
KT
3648 ;;
3649 i[3456789]86-*-mingw*)
b91f0a41 3650 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3651 ;;
671aa708
NN
3652 *-*-cygwin*)
3653 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3654 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3655 # always build newlib if winsup directory is present.
b91f0a41 3656 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3657 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3658 elif test -d "$srcdir/newlib"; then
b91f0a41 3659 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3660 fi
1c710c3c 3661 ;;
f2a0e225 3662 i[3456789]86-*-pe)
ebb9f8b0 3663 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3664 ;;
f2a0e225 3665 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3666 # The linker does not yet know about weak symbols in COFF,
3667 # and is not configured to handle mixed ELF and COFF.
0036370f 3668 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3669 ;;
f2a0e225 3670 i[3456789]86-*-sco*)
0036370f 3671 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3672 ;;
fbdd5d87 3673 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3674 noconfigdirs="$noconfigdirs target-libgloss"
3675 ;;
f2a0e225 3676 i[3456789]86-*-sysv4*)
0036370f 3677 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3678 ;;
f2a0e225 3679 i[3456789]86-*-beos*)
6a789d5e 3680 noconfigdirs="$noconfigdirs gdb"
3aa83176 3681 ;;
d1f8db0c 3682 i[3456789]86-*-rdos*)
6a789d5e 3683 noconfigdirs="$noconfigdirs gdb"
c03353e2 3684 ;;
671aa708 3685 mmix-*-*)
2909494b 3686 noconfigdirs="$noconfigdirs gdb"
671aa708 3687 ;;
ab34901f 3688 mt-*-*)
79dd769c
AH
3689 noconfigdirs="$noconfigdirs sim"
3690 ;;
671aa708
NN
3691 powerpc-*-aix*)
3692 # copied from rs6000-*-* entry
6a789d5e 3693 noconfigdirs="$noconfigdirs gprof"
671aa708 3694 ;;
4569f85e 3695 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3696 target_configdirs="$target_configdirs target-winsup"
0036370f 3697 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3698 # always build newlib.
3699 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3700 ;;
3701 # This is temporary until we can link against shared libraries
3702 powerpcle-*-solaris*)
0036370f 3703 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3704 ;;
3705 powerpc-*-beos*)
6a789d5e 3706 noconfigdirs="$noconfigdirs gdb"
671aa708 3707 ;;
671aa708 3708 rs6000-*-lynxos*)
6a789d5e 3709 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3710 ;;
3711 rs6000-*-aix*)
6a789d5e 3712 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3713 ;;
3714 rs6000-*-*)
2909494b 3715 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3716 ;;
3717 m68k-apollo-*)
0036370f 3718 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3719 ;;
ca9fe997 3720 microblaze*)
2909494b 3721 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3722 ;;
d91491e5 3723 mips*-sde-elf* | mips*-mti-elf*)
d9dced13
RS
3724 if test x$with_newlib = xyes; then
3725 noconfigdirs="$noconfigdirs gprof"
3726 fi
d9dced13 3727 ;;
671aa708 3728 mips*-*-irix5*)
0036370f 3729 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3730 ;;
3731 mips*-*-irix6*)
2909494b 3732 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3733 ;;
671aa708 3734 mips*-*-bsd*)
0036370f 3735 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3736 ;;
671aa708 3737 mips*-*-linux*)
671aa708
NN
3738 ;;
3739 mips*-*-*)
2909494b 3740 noconfigdirs="$noconfigdirs gprof"
671aa708 3741 ;;
669f01d8 3742 sh-*-* | sh64-*-*)
ea2002ba
CB
3743 case "${target}" in
3744 sh*-*-elf)
2909494b 3745 ;;
ea2002ba 3746 *)
2909494b 3747 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 3748 esac
671aa708 3749 ;;
671aa708 3750 sparc-*-sunos4*)
6a789d5e 3751 if test x${is_cross_compiler} = xno ; then
671aa708
NN
3752 use_gnu_ld=no
3753 fi
3754 ;;
b42f0d7e 3755 tic6x-*-*)
0d557ff8 3756 noconfigdirs="$noconfigdirs sim"
b42f0d7e 3757 ;;
db1d217c
WL
3758 tilepro-*-* | tilegx-*-*)
3759 noconfigdirs="$noconfigdirs sim"
3760 ;;
671aa708 3761 v810-*-*)
0036370f 3762 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
3763 ;;
3764 vax-*-*)
2909494b 3765 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3766 ;;
671aa708 3767esac
79c06341 3768
671aa708
NN
3769# If we aren't building newlib, then don't build libgloss, since libgloss
3770# depends upon some newlib header files.
3771case "${noconfigdirs}" in
3772 *target-libgloss*) ;;
3773 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3774esac
3775
671aa708 3776# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
3777host_makefile_frag=/dev/null
3778if test -d ${srcdir}/config ; then
3779case "${host}" in
f2a0e225 3780 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
3781 host_makefile_frag="config/mh-djgpp"
3782 ;;
3783 *-cygwin*)
2a79c47f 3784
5213506e
RW
3785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3786$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 3787echo a >cygwin-cat-check
e25a8c82 3788if test `cat cygwin-cat-check` = a ; then
2a79c47f 3789 rm cygwin-cat-check
5213506e
RW
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3791$as_echo "yes" >&6; }
2a79c47f
NC
3792else
3793 rm cygwin-cat-check
5213506e
RW
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3795$as_echo "no" >&6; }
3796 as_fn_error "The cat command does not ignore carriage return characters.
2a79c47f
NC
3797 Please either mount the build directory in binary mode or run the following
3798 commands before running any configure script:
3799set -o igncr
3800export SHELLOPTS
5213506e 3801 " "$LINENO" 5
2a79c47f
NC
3802fi
3803
671aa708
NN
3804 host_makefile_frag="config/mh-cygwin"
3805 ;;
c53a18d3 3806 *-mingw*)
1f5a6b84 3807 host_makefile_frag="config/mh-mingw"
95af8923 3808 ;;
efd41714 3809 hppa*-hp-hpux10*)
efd41714 3810 host_makefile_frag="config/mh-pa-hpux10"
671aa708 3811 ;;
111eeb6e 3812 hppa*-hp-hpux*)
efd41714
PB
3813 host_makefile_frag="config/mh-pa"
3814 ;;
3815 hppa*-*)
3816 host_makefile_frag="config/mh-pa"
3817 ;;
d8ed14ce
IS
3818 *-*-darwin*)
3819 host_makefile_frag="config/mh-darwin"
be8fff81 3820 ;;
d19bca38
PB
3821 powerpc-*-aix*)
3822 host_makefile_frag="config/mh-ppc-aix"
3823 ;;
3824 rs6000-*-aix*)
3825 host_makefile_frag="config/mh-ppc-aix"
3826 ;;
671aa708
NN
3827esac
3828fi
3829
55ffb5ed 3830if test "${build}" != "${host}" ; then
0999159b
PB
3831 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3832 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 3833 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b
PB
3834 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3835 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3836 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 3837 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
0999159b
PB
3838 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3839 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3840 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3841 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3842 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3843 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3844else
3845 AR_FOR_BUILD="\$(AR)"
3846 AS_FOR_BUILD="\$(AS)"
fb0103e5 3847 CC_FOR_BUILD="\$(CC)"
0999159b
PB
3848 CXX_FOR_BUILD="\$(CXX)"
3849 GCJ_FOR_BUILD="\$(GCJ)"
3850 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 3851 GOC_FOR_BUILD="\$(GOC)"
0999159b
PB
3852 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3853 LD_FOR_BUILD="\$(LD)"
3854 NM_FOR_BUILD="\$(NM)"
3855 RANLIB_FOR_BUILD="\$(RANLIB)"
3856 WINDRES_FOR_BUILD="\$(WINDRES)"
3857 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
3858fi
3859
3860ac_ext=c
1c710c3c
DJ
3861ac_cpp='$CPP $CPPFLAGS'
3862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3864ac_compiler_gnu=$ac_cv_c_compiler_gnu
3865if test -n "$ac_tool_prefix"; then
3866 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3867set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3869$as_echo_n "checking for $ac_word... " >&6; }
3870if test "${ac_cv_prog_CC+set}" = set; then :
3871 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3872else
3873 if test -n "$CC"; then
3874 ac_cv_prog_CC="$CC" # Let the user override the test.
3875else
3876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877for as_dir in $PATH
3878do
3879 IFS=$as_save_IFS
3880 test -z "$as_dir" && as_dir=.
5213506e
RW
3881 for ac_exec_ext in '' $ac_executable_extensions; do
3882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3883 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3885 break 2
3886 fi
3887done
5213506e
RW
3888 done
3889IFS=$as_save_IFS
1c710c3c
DJ
3890
3891fi
3892fi
3893CC=$ac_cv_prog_CC
3894if test -n "$CC"; then
5213506e
RW
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3896$as_echo "$CC" >&6; }
1c710c3c 3897else
5213506e
RW
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3899$as_echo "no" >&6; }
1c710c3c
DJ
3900fi
3901
5213506e 3902
1c710c3c
DJ
3903fi
3904if test -z "$ac_cv_prog_CC"; then
3905 ac_ct_CC=$CC
fb0103e5
RG
3906 # Extract the first word of "gcc", so it can be a program name with args.
3907set dummy gcc; ac_word=$2
5213506e
RW
3908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3909$as_echo_n "checking for $ac_word... " >&6; }
3910if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3911 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3912else
3913 if test -n "$ac_ct_CC"; then
3914 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3915else
3916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917for as_dir in $PATH
3918do
3919 IFS=$as_save_IFS
3920 test -z "$as_dir" && as_dir=.
5213506e
RW
3921 for ac_exec_ext in '' $ac_executable_extensions; do
3922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3923 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3925 break 2
3926 fi
3927done
5213506e
RW
3928 done
3929IFS=$as_save_IFS
1c710c3c
DJ
3930
3931fi
3932fi
3933ac_ct_CC=$ac_cv_prog_ac_ct_CC
3934if test -n "$ac_ct_CC"; then
5213506e
RW
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3936$as_echo "$ac_ct_CC" >&6; }
1c710c3c 3937else
5213506e
RW
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3939$as_echo "no" >&6; }
1c710c3c
DJ
3940fi
3941
5213506e
RW
3942 if test "x$ac_ct_CC" = x; then
3943 CC=""
3944 else
3945 case $cross_compiling:$ac_tool_warned in
3946yes:)
3947{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3948$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3949ac_tool_warned=yes ;;
3950esac
3951 CC=$ac_ct_CC
3952 fi
1c710c3c
DJ
3953else
3954 CC="$ac_cv_prog_CC"
3955fi
3956
3957if test -z "$CC"; then
5213506e
RW
3958 if test -n "$ac_tool_prefix"; then
3959 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 3960set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3962$as_echo_n "checking for $ac_word... " >&6; }
3963if test "${ac_cv_prog_CC+set}" = set; then :
3964 $as_echo_n "(cached) " >&6
55ffb5ed
NN
3965else
3966 if test -n "$CC"; then
3967 ac_cv_prog_CC="$CC" # Let the user override the test.
3968else
1c710c3c
DJ
3969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970for as_dir in $PATH
3971do
3972 IFS=$as_save_IFS
3973 test -z "$as_dir" && as_dir=.
5213506e
RW
3974 for ac_exec_ext in '' $ac_executable_extensions; do
3975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3976 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 3977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3978 break 2
3979 fi
3980done
5213506e
RW
3981 done
3982IFS=$as_save_IFS
1c710c3c 3983
0b0dc272 3984fi
0b0dc272 3985fi
1c710c3c 3986CC=$ac_cv_prog_CC
af71363e 3987if test -n "$CC"; then
5213506e
RW
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3989$as_echo "$CC" >&6; }
2aeb72e9 3990else
5213506e
RW
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3992$as_echo "no" >&6; }
2aeb72e9
DD
3993fi
3994
2aeb72e9 3995
5213506e 3996 fi
1c710c3c 3997fi
55ffb5ed
NN
3998if test -z "$CC"; then
3999 # Extract the first word of "cc", so it can be a program name with args.
4000set dummy cc; ac_word=$2
5213506e
RW
4001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4002$as_echo_n "checking for $ac_word... " >&6; }
4003if test "${ac_cv_prog_CC+set}" = set; then :
4004 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4005else
4006 if test -n "$CC"; then
4007 ac_cv_prog_CC="$CC" # Let the user override the test.
4008else
0b0dc272 4009 ac_prog_rejected=no
1c710c3c
DJ
4010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011for as_dir in $PATH
4012do
4013 IFS=$as_save_IFS
4014 test -z "$as_dir" && as_dir=.
5213506e
RW
4015 for ac_exec_ext in '' $ac_executable_extensions; do
4016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
4017 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4018 ac_prog_rejected=yes
4019 continue
4020 fi
4021 ac_cv_prog_CC="cc"
5213506e 4022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4023 break 2
4024 fi
4025done
5213506e
RW
4026 done
4027IFS=$as_save_IFS
1c710c3c 4028
55ffb5ed
NN
4029if test $ac_prog_rejected = yes; then
4030 # We found a bogon in the path, so make sure we never use it.
4031 set dummy $ac_cv_prog_CC
4032 shift
1c710c3c 4033 if test $# != 0; then
55ffb5ed
NN
4034 # We chose a different compiler from the bogus one.
4035 # However, it has the same basename, so the bogon will be chosen
4036 # first if we set CC to just the basename; use the full file name.
4037 shift
1c710c3c 4038 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4039 fi
4040fi
4041fi
4042fi
1c710c3c 4043CC=$ac_cv_prog_CC
55ffb5ed 4044if test -n "$CC"; then
5213506e
RW
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4046$as_echo "$CC" >&6; }
55ffb5ed 4047else
5213506e
RW
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4049$as_echo "no" >&6; }
55ffb5ed
NN
4050fi
4051
5213506e 4052
1c710c3c
DJ
4053fi
4054if test -z "$CC"; then
4055 if test -n "$ac_tool_prefix"; then
5213506e 4056 for ac_prog in cl.exe
1c710c3c
DJ
4057 do
4058 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4059set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4061$as_echo_n "checking for $ac_word... " >&6; }
4062if test "${ac_cv_prog_CC+set}" = set; then :
4063 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4064else
4065 if test -n "$CC"; then
4066 ac_cv_prog_CC="$CC" # Let the user override the test.
4067else
1c710c3c
DJ
4068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069for as_dir in $PATH
4070do
4071 IFS=$as_save_IFS
4072 test -z "$as_dir" && as_dir=.
5213506e
RW
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4075 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4077 break 2
4078 fi
4079done
5213506e
RW
4080 done
4081IFS=$as_save_IFS
1c710c3c 4082
55ffb5ed
NN
4083fi
4084fi
1c710c3c 4085CC=$ac_cv_prog_CC
55ffb5ed 4086if test -n "$CC"; then
5213506e
RW
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4088$as_echo "$CC" >&6; }
a4b9e93e 4089else
5213506e
RW
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4091$as_echo "no" >&6; }
fb0103e5 4092fi
af71363e 4093
5213506e 4094
1c710c3c
DJ
4095 test -n "$CC" && break
4096 done
af71363e 4097fi
1c710c3c
DJ
4098if test -z "$CC"; then
4099 ac_ct_CC=$CC
5213506e 4100 for ac_prog in cl.exe
1c710c3c
DJ
4101do
4102 # Extract the first word of "$ac_prog", so it can be a program name with args.
4103set dummy $ac_prog; ac_word=$2
5213506e
RW
4104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4105$as_echo_n "checking for $ac_word... " >&6; }
4106if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4107 $as_echo_n "(cached) " >&6
0b0dc272 4108else
1c710c3c
DJ
4109 if test -n "$ac_ct_CC"; then
4110 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4111else
1c710c3c
DJ
4112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113for as_dir in $PATH
4114do
4115 IFS=$as_save_IFS
4116 test -z "$as_dir" && as_dir=.
5213506e
RW
4117 for ac_exec_ext in '' $ac_executable_extensions; do
4118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4119 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4121 break 2
4122 fi
4123done
5213506e
RW
4124 done
4125IFS=$as_save_IFS
1c710c3c 4126
af71363e
AS
4127fi
4128fi
1c710c3c
DJ
4129ac_ct_CC=$ac_cv_prog_ac_ct_CC
4130if test -n "$ac_ct_CC"; then
5213506e
RW
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4132$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4133else
5213506e
RW
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4135$as_echo "no" >&6; }
af71363e 4136fi
0b0dc272 4137
5213506e 4138
1c710c3c
DJ
4139 test -n "$ac_ct_CC" && break
4140done
4141
5213506e
RW
4142 if test "x$ac_ct_CC" = x; then
4143 CC=""
4144 else
4145 case $cross_compiling:$ac_tool_warned in
4146yes:)
4147{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4148$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4149ac_tool_warned=yes ;;
4150esac
4151 CC=$ac_ct_CC
4152 fi
1c710c3c
DJ
4153fi
4154
4155fi
4156
4157
5213506e
RW
4158test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4159$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4160as_fn_error "no acceptable C compiler found in \$PATH
4161See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4162
4163# Provide some information about the compiler.
5213506e
RW
4164$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4165set X $ac_compile
4166ac_compiler=$2
4167for ac_option in --version -v -V -qversion; do
4168 { { ac_try="$ac_compiler $ac_option >&5"
4169case "(($ac_try" in
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4172esac
4173eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4174$as_echo "$ac_try_echo"; } >&5
4175 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4176 ac_status=$?
5213506e
RW
4177 if test -s conftest.err; then
4178 sed '10a\
4179... rest of stderr output deleted ...
4180 10q' conftest.err >conftest.er1
4181 cat conftest.er1 >&5
4182 rm -f conftest.er1 conftest.err
4183 fi
4184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4185 test $ac_status = 0; }
4186done
1c710c3c 4187
5213506e 4188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4189/* end confdefs.h. */
4190
4191int
4192main ()
4193{
4194
4195 ;
4196 return 0;
4197}
4198_ACEOF
4199ac_clean_files_save=$ac_clean_files
5213506e 4200ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
1c710c3c
DJ
4201# Try to create an executable without -o first, disregard a.out.
4202# It will help us diagnose broken compilers, and finding out an intuition
4203# of exeext.
5213506e
RW
4204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4205$as_echo_n "checking for C compiler default output file name... " >&6; }
4206ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4207
4208# The possible output files:
4209ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4210
4211ac_rmfiles=
4212for ac_file in $ac_files
4213do
4214 case $ac_file in
4215 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4216 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4217 esac
4218done
4219rm -f $ac_rmfiles
4220
4221if { { ac_try="$ac_link_default"
4222case "(($ac_try" in
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4225esac
4226eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4227$as_echo "$ac_try_echo"; } >&5
4228 (eval "$ac_link_default") 2>&5
1c710c3c 4229 ac_status=$?
5213506e
RW
4230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4231 test $ac_status = 0; }; then :
4232 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4233# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4234# in a Makefile. We should not override ac_cv_exeext if it was cached,
4235# so that the user can short-circuit this test for compilers unknown to
4236# Autoconf.
4237for ac_file in $ac_files ''
1c710c3c
DJ
4238do
4239 test -f "$ac_file" || continue
4240 case $ac_file in
5213506e 4241 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4242 ;;
4243 [ab].out )
4244 # We found the default executable, but exeext='' is most
4245 # certainly right.
4246 break;;
4247 *.* )
5213506e
RW
4248 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4249 then :; else
4250 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4251 fi
4252 # We set ac_cv_exeext here because the later test for it is not
4253 # safe: cross compilers may not add the suffix if given an `-o'
4254 # argument, so we may need to know it at that point already.
4255 # Even if this section looks crufty: it has the advantage of
4256 # actually working.
1c710c3c
DJ
4257 break;;
4258 * )
4259 break;;
4260 esac
4261done
5213506e
RW
4262test "$ac_cv_exeext" = no && ac_cv_exeext=
4263
1c710c3c 4264else
5213506e
RW
4265 ac_file=''
4266fi
4267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4268$as_echo "$ac_file" >&6; }
4269if test -z "$ac_file"; then :
4270 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4271sed 's/^/| /' conftest.$ac_ext >&5
4272
5213506e
RW
4273{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4274$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4275{ as_fn_set_status 77
4276as_fn_error "C compiler cannot create executables
4277See \`config.log' for more details." "$LINENO" 5; }; }
1c710c3c 4278fi
1c710c3c 4279ac_exeext=$ac_cv_exeext
1c710c3c 4280
5213506e 4281# Check that the compiler produces executables we can run. If not, either
1c710c3c 4282# the compiler is broken, or we cross compile.
5213506e
RW
4283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4284$as_echo_n "checking whether the C compiler works... " >&6; }
1c710c3c
DJ
4285# If not cross compiling, check that we can run a simple program.
4286if test "$cross_compiling" != yes; then
4287 if { ac_try='./$ac_file'
5213506e
RW
4288 { { case "(($ac_try" in
4289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4291esac
4292eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4293$as_echo "$ac_try_echo"; } >&5
4294 (eval "$ac_try") 2>&5
1c710c3c 4295 ac_status=$?
5213506e
RW
4296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4297 test $ac_status = 0; }; }; then
1c710c3c
DJ
4298 cross_compiling=no
4299 else
4300 if test "$cross_compiling" = maybe; then
4301 cross_compiling=yes
4302 else
5213506e
RW
4303 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4304$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4305as_fn_error "cannot run C compiled programs.
1c710c3c 4306If you meant to cross compile, use \`--host'.
5213506e 4307See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4308 fi
4309 fi
4310fi
5213506e
RW
4311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4312$as_echo "yes" >&6; }
1c710c3c 4313
5213506e 4314rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
1c710c3c 4315ac_clean_files=$ac_clean_files_save
5213506e 4316# Check that the compiler produces executables we can run. If not, either
1c710c3c 4317# the compiler is broken, or we cross compile.
5213506e
RW
4318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4319$as_echo_n "checking whether we are cross compiling... " >&6; }
4320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4321$as_echo "$cross_compiling" >&6; }
4322
4323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4324$as_echo_n "checking for suffix of executables... " >&6; }
4325if { { ac_try="$ac_link"
4326case "(($ac_try" in
4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328 *) ac_try_echo=$ac_try;;
4329esac
4330eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4331$as_echo "$ac_try_echo"; } >&5
4332 (eval "$ac_link") 2>&5
1c710c3c 4333 ac_status=$?
5213506e
RW
4334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4335 test $ac_status = 0; }; then :
1c710c3c
DJ
4336 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4337# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4338# work properly (i.e., refer to `conftest.exe'), while it won't with
4339# `rm'.
4340for ac_file in conftest.exe conftest conftest.*; do
4341 test -f "$ac_file" || continue
4342 case $ac_file in
5213506e 4343 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4344 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4345 break;;
4346 * ) break;;
4347 esac
4348done
af71363e 4349else
5213506e
RW
4350 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4351$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4352as_fn_error "cannot compute suffix of executables: cannot compile and link
4353See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4354fi
1c710c3c 4355rm -f conftest$ac_cv_exeext
5213506e
RW
4356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4357$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4358
4359rm -f conftest.$ac_ext
4360EXEEXT=$ac_cv_exeext
4361ac_exeext=$EXEEXT
5213506e
RW
4362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4363$as_echo_n "checking for suffix of object files... " >&6; }
4364if test "${ac_cv_objext+set}" = set; then :
4365 $as_echo_n "(cached) " >&6
1c710c3c 4366else
5213506e 4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4368/* end confdefs.h. */
4369
4370int
4371main ()
4372{
4373
4374 ;
4375 return 0;
4376}
4377_ACEOF
4378rm -f conftest.o conftest.obj
5213506e
RW
4379if { { ac_try="$ac_compile"
4380case "(($ac_try" in
4381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382 *) ac_try_echo=$ac_try;;
4383esac
4384eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4385$as_echo "$ac_try_echo"; } >&5
4386 (eval "$ac_compile") 2>&5
1c710c3c 4387 ac_status=$?
5213506e
RW
4388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4389 test $ac_status = 0; }; then :
4390 for ac_file in conftest.o conftest.obj conftest.*; do
4391 test -f "$ac_file" || continue;
1c710c3c 4392 case $ac_file in
5213506e 4393 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4394 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4395 break;;
4396 esac
4397done
4398else
5213506e 4399 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4400sed 's/^/| /' conftest.$ac_ext >&5
4401
5213506e
RW
4402{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4403$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4404as_fn_error "cannot compute suffix of object files: cannot compile
4405See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4406fi
1c710c3c
DJ
4407rm -f conftest.$ac_cv_objext conftest.$ac_ext
4408fi
5213506e
RW
4409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4410$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4411OBJEXT=$ac_cv_objext
4412ac_objext=$OBJEXT
5213506e
RW
4413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4414$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4415if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4416 $as_echo_n "(cached) " >&6
1c710c3c 4417else
5213506e 4418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4419/* end confdefs.h. */
4420
4421int
4422main ()
4423{
4424#ifndef __GNUC__
4425 choke me
4426#endif
4427
4428 ;
4429 return 0;
4430}
4431_ACEOF
5213506e 4432if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4433 ac_compiler_gnu=yes
4434else
5213506e 4435 ac_compiler_gnu=no
1c710c3c 4436fi
5213506e 4437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4438ac_cv_c_compiler_gnu=$ac_compiler_gnu
4439
4440fi
5213506e
RW
4441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4442$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4443if test $ac_compiler_gnu = yes; then
4444 GCC=yes
4445else
4446 GCC=
4447fi
1c710c3c
DJ
4448ac_test_CFLAGS=${CFLAGS+set}
4449ac_save_CFLAGS=$CFLAGS
5213506e
RW
4450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4451$as_echo_n "checking whether $CC accepts -g... " >&6; }
4452if test "${ac_cv_prog_cc_g+set}" = set; then :
4453 $as_echo_n "(cached) " >&6
4454else
4455 ac_save_c_werror_flag=$ac_c_werror_flag
4456 ac_c_werror_flag=yes
4457 ac_cv_prog_cc_g=no
4458 CFLAGS="-g"
4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4460/* end confdefs.h. */
4461
4462int
4463main ()
4464{
4465
4466 ;
4467 return 0;
4468}
4469_ACEOF
5213506e 4470if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4471 ac_cv_prog_cc_g=yes
4472else
5213506e
RW
4473 CFLAGS=""
4474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475/* end confdefs.h. */
4476
4477int
4478main ()
4479{
4480
4481 ;
4482 return 0;
4483}
4484_ACEOF
4485if ac_fn_c_try_compile "$LINENO"; then :
4486
4487else
4488 ac_c_werror_flag=$ac_save_c_werror_flag
4489 CFLAGS="-g"
4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491/* end confdefs.h. */
af71363e 4492
5213506e
RW
4493int
4494main ()
4495{
4496
4497 ;
4498 return 0;
4499}
4500_ACEOF
4501if ac_fn_c_try_compile "$LINENO"; then :
4502 ac_cv_prog_cc_g=yes
4503fi
4504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4505fi
5213506e 4506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4507fi
5213506e
RW
4508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4509 ac_c_werror_flag=$ac_save_c_werror_flag
4510fi
4511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4512$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4513if test "$ac_test_CFLAGS" = set; then
1c710c3c 4514 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4515elif test $ac_cv_prog_cc_g = yes; then
4516 if test "$GCC" = yes; then
4517 CFLAGS="-g -O2"
4518 else
4519 CFLAGS="-g"
4520 fi
4521else
4522 if test "$GCC" = yes; then
4523 CFLAGS="-O2"
4524 else
4525 CFLAGS=
4526 fi
4527fi
5213506e
RW
4528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4529$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4530if test "${ac_cv_prog_cc_c89+set}" = set; then :
4531 $as_echo_n "(cached) " >&6
1c710c3c 4532else
5213506e 4533 ac_cv_prog_cc_c89=no
1c710c3c 4534ac_save_CC=$CC
5213506e 4535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4536/* end confdefs.h. */
4537#include <stdarg.h>
4538#include <stdio.h>
4539#include <sys/types.h>
4540#include <sys/stat.h>
4541/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4542struct buf { int x; };
4543FILE * (*rcsopen) (struct buf *, struct stat *, int);
4544static char *e (p, i)
4545 char **p;
4546 int i;
4547{
4548 return p[i];
4549}
4550static char *f (char * (*g) (char **, int), char **p, ...)
4551{
4552 char *s;
4553 va_list v;
4554 va_start (v,p);
4555 s = g (p, va_arg (v,int));
4556 va_end (v);
4557 return s;
4558}
4559
4560/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4561 function prototypes and stuff, but not '\xHH' hex character constants.
4562 These don't provoke an error unfortunately, instead are silently treated
5213506e 4563 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4564 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4565 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4566 that's true only with -std. */
1c710c3c
DJ
4567int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4568
5213506e
RW
4569/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4570 inside strings and character constants. */
4571#define FOO(x) 'x'
4572int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4573
1c710c3c
DJ
4574int test (int i, double x);
4575struct s1 {int (*f) (int a);};
4576struct s2 {int (*f) (double a);};
4577int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4578int argc;
4579char **argv;
4580int
4581main ()
4582{
4583return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4584 ;
4585 return 0;
4586}
4587_ACEOF
5213506e
RW
4588for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4589 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4590do
4591 CC="$ac_save_CC $ac_arg"
5213506e
RW
4592 if ac_fn_c_try_compile "$LINENO"; then :
4593 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4594fi
5213506e
RW
4595rm -f core conftest.err conftest.$ac_objext
4596 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4597done
5213506e 4598rm -f conftest.$ac_ext
1c710c3c
DJ
4599CC=$ac_save_CC
4600
4601fi
5213506e
RW
4602# AC_CACHE_VAL
4603case "x$ac_cv_prog_cc_c89" in
4604 x)
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4606$as_echo "none needed" >&6; } ;;
4607 xno)
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4609$as_echo "unsupported" >&6; } ;;
1c710c3c 4610 *)
5213506e
RW
4611 CC="$CC $ac_cv_prog_cc_c89"
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4613$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4614esac
5213506e 4615if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4616
2aeb72e9
DD
4617fi
4618
2aeb72e9
DD
4619ac_ext=c
4620ac_cpp='$CPP $CPPFLAGS'
4621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4623ac_compiler_gnu=$ac_cv_c_compiler_gnu
4624
5213506e 4625ac_ext=cpp
2aeb72e9
DD
4626ac_cpp='$CXXCPP $CPPFLAGS'
4627ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4628ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4629ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4630if test -z "$CXX"; then
4631 if test -n "$CCC"; then
4632 CXX=$CCC
4633 else
4634 if test -n "$ac_tool_prefix"; then
4635 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4636 do
4637 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4638set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4640$as_echo_n "checking for $ac_word... " >&6; }
4641if test "${ac_cv_prog_CXX+set}" = set; then :
4642 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4643else
4644 if test -n "$CXX"; then
4645 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4646else
4647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648for as_dir in $PATH
4649do
4650 IFS=$as_save_IFS
4651 test -z "$as_dir" && as_dir=.
5213506e
RW
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2aeb72e9 4654 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4656 break 2
4657 fi
4658done
5213506e
RW
4659 done
4660IFS=$as_save_IFS
55ffb5ed 4661
c3a86da9
DJ
4662fi
4663fi
4664CXX=$ac_cv_prog_CXX
4665if test -n "$CXX"; then
5213506e
RW
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4667$as_echo "$CXX" >&6; }
c3a86da9 4668else
5213506e
RW
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670$as_echo "no" >&6; }
c3a86da9
DJ
4671fi
4672
5213506e 4673
c3a86da9
DJ
4674 test -n "$CXX" && break
4675 done
4676fi
4677if test -z "$CXX"; then
4678 ac_ct_CXX=$CXX
5213506e 4679 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4680do
4681 # Extract the first word of "$ac_prog", so it can be a program name with args.
4682set dummy $ac_prog; ac_word=$2
5213506e
RW
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4684$as_echo_n "checking for $ac_word... " >&6; }
4685if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4686 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4687else
4688 if test -n "$ac_ct_CXX"; then
4689 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4690else
4691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692for as_dir in $PATH
4693do
4694 IFS=$as_save_IFS
4695 test -z "$as_dir" && as_dir=.
5213506e
RW
4696 for ac_exec_ext in '' $ac_executable_extensions; do
4697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c3a86da9 4698 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4700 break 2
4701 fi
4702done
5213506e
RW
4703 done
4704IFS=$as_save_IFS
c3a86da9
DJ
4705
4706fi
4707fi
4708ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4709if test -n "$ac_ct_CXX"; then
5213506e
RW
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4711$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4712else
5213506e
RW
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4714$as_echo "no" >&6; }
c3a86da9
DJ
4715fi
4716
5213506e 4717
c3a86da9
DJ
4718 test -n "$ac_ct_CXX" && break
4719done
c3a86da9 4720
5213506e
RW
4721 if test "x$ac_ct_CXX" = x; then
4722 CXX="g++"
4723 else
4724 case $cross_compiling:$ac_tool_warned in
4725yes:)
4726{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4727$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4728ac_tool_warned=yes ;;
4729esac
4730 CXX=$ac_ct_CXX
4731 fi
c3a86da9
DJ
4732fi
4733
5213506e
RW
4734 fi
4735fi
c3a86da9 4736# Provide some information about the compiler.
5213506e
RW
4737$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4738set X $ac_compile
4739ac_compiler=$2
4740for ac_option in --version -v -V -qversion; do
4741 { { ac_try="$ac_compiler $ac_option >&5"
4742case "(($ac_try" in
4743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4744 *) ac_try_echo=$ac_try;;
4745esac
4746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4747$as_echo "$ac_try_echo"; } >&5
4748 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 4749 ac_status=$?
5213506e
RW
4750 if test -s conftest.err; then
4751 sed '10a\
4752... rest of stderr output deleted ...
4753 10q' conftest.err >conftest.er1
4754 cat conftest.er1 >&5
4755 rm -f conftest.er1 conftest.err
4756 fi
4757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4758 test $ac_status = 0; }
4759done
c3a86da9 4760
5213506e
RW
4761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4762$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4763if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4764 $as_echo_n "(cached) " >&6
c3a86da9 4765else
5213506e 4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4767/* end confdefs.h. */
4768
4769int
4770main ()
4771{
4772#ifndef __GNUC__
4773 choke me
4774#endif
4775
4776 ;
4777 return 0;
4778}
4779_ACEOF
5213506e 4780if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4781 ac_compiler_gnu=yes
4782else
5213506e 4783 ac_compiler_gnu=no
c3a86da9 4784fi
5213506e 4785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4786ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4787
4788fi
5213506e
RW
4789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4790$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4791if test $ac_compiler_gnu = yes; then
4792 GXX=yes
4793else
4794 GXX=
4795fi
c3a86da9
DJ
4796ac_test_CXXFLAGS=${CXXFLAGS+set}
4797ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
4798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4799$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4800if test "${ac_cv_prog_cxx_g+set}" = set; then :
4801 $as_echo_n "(cached) " >&6
4802else
4803 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4804 ac_cxx_werror_flag=yes
4805 ac_cv_prog_cxx_g=no
4806 CXXFLAGS="-g"
4807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4808/* end confdefs.h. */
4809
4810int
4811main ()
4812{
4813
4814 ;
4815 return 0;
4816}
4817_ACEOF
5213506e 4818if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4819 ac_cv_prog_cxx_g=yes
4820else
5213506e
RW
4821 CXXFLAGS=""
4822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4823/* end confdefs.h. */
5213506e 4824
c3a86da9
DJ
4825int
4826main ()
4827{
5213506e 4828
c3a86da9
DJ
4829 ;
4830 return 0;
4831}
4832_ACEOF
5213506e 4833if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 4834
5213506e
RW
4835else
4836 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4837 CXXFLAGS="-g"
4838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4839/* end confdefs.h. */
5213506e 4840
c3a86da9
DJ
4841int
4842main ()
4843{
5213506e 4844
c3a86da9
DJ
4845 ;
4846 return 0;
4847}
4848_ACEOF
5213506e
RW
4849if ac_fn_cxx_try_compile "$LINENO"; then :
4850 ac_cv_prog_cxx_g=yes
11a67599 4851fi
5213506e
RW
4852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4853fi
4854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4855fi
4856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4857 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4858fi
4859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4860$as_echo "$ac_cv_prog_cxx_g" >&6; }
4861if test "$ac_test_CXXFLAGS" = set; then
4862 CXXFLAGS=$ac_save_CXXFLAGS
4863elif test $ac_cv_prog_cxx_g = yes; then
4864 if test "$GXX" = yes; then
4865 CXXFLAGS="-g -O2"
4866 else
4867 CXXFLAGS="-g"
4868 fi
4869else
4870 if test "$GXX" = yes; then
4871 CXXFLAGS="-O2"
4872 else
4873 CXXFLAGS=
4874 fi
c3a86da9 4875fi
c3a86da9
DJ
4876ac_ext=c
4877ac_cpp='$CPP $CPPFLAGS'
4878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4880ac_compiler_gnu=$ac_cv_c_compiler_gnu
4881
4882
4883# We must set the default linker to the linker used by gcc for the correct
4884# operation of libtool. If LD is not defined and we are using gcc, try to
4885# set the LD default to the ld used by gcc.
4886if test -z "$LD"; then
4887 if test "$GCC" = yes; then
4888 case $build in
4889 *-*-mingw*)
4890 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4891 *)
4892 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4893 esac
4894 case $gcc_prog_ld in
4895 # Accept absolute paths.
4896 [\\/]* | [A-Za-z]:[\\/]*)
4897 LD="$gcc_prog_ld" ;;
4898 esac
4899 fi
23f6b2f9
PB
4900fi
4901
0b21f5d3
EB
4902# Check whether -static-libstdc++ -static-libgcc is supported.
4903have_static_libs=no
4904if test "$GCC" = yes; then
4905 saved_LDFLAGS="$LDFLAGS"
4906
4907 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
4909$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
4910 ac_ext=cpp
4911ac_cpp='$CXXCPP $CPPFLAGS'
4912ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4913ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4914ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4915
4916
4917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4918/* end confdefs.h. */
0d6414b2
EB
4919
4920#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
4921#error -static-libstdc++ not implemented
4922#endif
0b21f5d3
EB
4923int main() {}
4924_ACEOF
4925if ac_fn_cxx_try_link "$LINENO"; then :
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4927$as_echo "yes" >&6; }; have_static_libs=yes
4928else
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4930$as_echo "no" >&6; }
4931fi
4932rm -f core conftest.err conftest.$ac_objext \
4933 conftest$ac_exeext conftest.$ac_ext
4934 ac_ext=c
4935ac_cpp='$CPP $CPPFLAGS'
4936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4938ac_compiler_gnu=$ac_cv_c_compiler_gnu
4939
4940
4941 LDFLAGS="$saved_LDFLAGS"
4942fi
4943
23f6b2f9
PB
4944
4945
55ffb5ed 4946
1c710c3c
DJ
4947if test -n "$ac_tool_prefix"; then
4948 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 4949set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
4950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4951$as_echo_n "checking for $ac_word... " >&6; }
4952if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4953 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4954else
4955 if test -n "$GNATBIND"; then
4956 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4957else
1c710c3c
DJ
4958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959for as_dir in $PATH
4960do
4961 IFS=$as_save_IFS
4962 test -z "$as_dir" && as_dir=.
5213506e
RW
4963 for ac_exec_ext in '' $ac_executable_extensions; do
4964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4965 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 4966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4967 break 2
4968 fi
4969done
5213506e
RW
4970 done
4971IFS=$as_save_IFS
1c710c3c 4972
55ffb5ed
NN
4973fi
4974fi
1c710c3c 4975GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 4976if test -n "$GNATBIND"; then
5213506e
RW
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4978$as_echo "$GNATBIND" >&6; }
55ffb5ed 4979else
5213506e
RW
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4981$as_echo "no" >&6; }
55ffb5ed
NN
4982fi
4983
5213506e 4984
1c710c3c 4985fi
55ffb5ed 4986if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 4987 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
4988 # Extract the first word of "gnatbind", so it can be a program name with args.
4989set dummy gnatbind; ac_word=$2
5213506e
RW
4990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4991$as_echo_n "checking for $ac_word... " >&6; }
4992if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4993 $as_echo_n "(cached) " >&6
55ffb5ed 4994else
1c710c3c
DJ
4995 if test -n "$ac_ct_GNATBIND"; then
4996 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 4997else
1c710c3c
DJ
4998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999for as_dir in $PATH
5000do
5001 IFS=$as_save_IFS
5002 test -z "$as_dir" && as_dir=.
5213506e
RW
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5005 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5007 break 2
5008 fi
5009done
5213506e
RW
5010 done
5011IFS=$as_save_IFS
1c710c3c 5012
55ffb5ed
NN
5013fi
5014fi
1c710c3c
DJ
5015ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5016if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5018$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5019else
5213506e
RW
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5021$as_echo "no" >&6; }
55ffb5ed
NN
5022fi
5023
5213506e
RW
5024 if test "x$ac_ct_GNATBIND" = x; then
5025 GNATBIND="no"
5026 else
5027 case $cross_compiling:$ac_tool_warned in
5028yes:)
5029{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5030$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5031ac_tool_warned=yes ;;
5032esac
5033 GNATBIND=$ac_ct_GNATBIND
5034 fi
55ffb5ed 5035else
1c710c3c 5036 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5037fi
5038
1c710c3c
DJ
5039if test -n "$ac_tool_prefix"; then
5040 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5041set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5043$as_echo_n "checking for $ac_word... " >&6; }
5044if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5045 $as_echo_n "(cached) " >&6
5305be7e
RG
5046else
5047 if test -n "$GNATMAKE"; then
5048 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5049else
1c710c3c
DJ
5050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051for as_dir in $PATH
5052do
5053 IFS=$as_save_IFS
5054 test -z "$as_dir" && as_dir=.
5213506e
RW
5055 for ac_exec_ext in '' $ac_executable_extensions; do
5056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5057 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5059 break 2
5060 fi
5061done
5213506e
RW
5062 done
5063IFS=$as_save_IFS
1c710c3c 5064
5305be7e
RG
5065fi
5066fi
1c710c3c 5067GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5068if test -n "$GNATMAKE"; then
5213506e
RW
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5070$as_echo "$GNATMAKE" >&6; }
5305be7e 5071else
5213506e
RW
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073$as_echo "no" >&6; }
5305be7e
RG
5074fi
5075
5213506e 5076
1c710c3c 5077fi
5305be7e 5078if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5079 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5080 # Extract the first word of "gnatmake", so it can be a program name with args.
5081set dummy gnatmake; ac_word=$2
5213506e
RW
5082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5083$as_echo_n "checking for $ac_word... " >&6; }
5084if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5085 $as_echo_n "(cached) " >&6
5305be7e 5086else
1c710c3c
DJ
5087 if test -n "$ac_ct_GNATMAKE"; then
5088 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5089else
1c710c3c
DJ
5090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091for as_dir in $PATH
5092do
5093 IFS=$as_save_IFS
5094 test -z "$as_dir" && as_dir=.
5213506e
RW
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5097 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5099 break 2
5100 fi
5101done
5213506e
RW
5102 done
5103IFS=$as_save_IFS
1c710c3c 5104
5305be7e
RG
5105fi
5106fi
1c710c3c
DJ
5107ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5108if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5110$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5111else
5213506e
RW
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113$as_echo "no" >&6; }
5305be7e
RG
5114fi
5115
5213506e
RW
5116 if test "x$ac_ct_GNATMAKE" = x; then
5117 GNATMAKE="no"
5118 else
5119 case $cross_compiling:$ac_tool_warned in
5120yes:)
5121{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5122$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5123ac_tool_warned=yes ;;
5124esac
5125 GNATMAKE=$ac_ct_GNATMAKE
5126 fi
5305be7e 5127else
1c710c3c 5128 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5129fi
5130
5213506e
RW
5131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5132$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5133if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5134 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5135else
5136 cat >conftest.adb <<EOF
5137procedure conftest is begin null; end conftest;
5138EOF
5139acx_cv_cc_gcc_supports_ada=no
5140# There is a bug in old released versions of GCC which causes the
5141# driver to exit successfully when the appropriate language module
5142# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5143# Therefore we must check for the error message as well as an
5144# unsuccessful exit.
1db673ca
RO
5145# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5146# given a .adb file, but produce no object file. So we must check
5147# if an object file was really produced to guard against this.
55ffb5ed 5148errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5149if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5150 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5151fi
5152rm -f conftest.*
5153fi
5213506e
RW
5154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5155$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5156
7cb62ef1 5157if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5158 have_gnat=yes
5159else
5160 have_gnat=no
5161fi
5162
5213506e
RW
5163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5164$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5165if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5166 $as_echo_n "(cached) " >&6
a76494aa
PB
5167else
5168 echo abfoo >t1
5169 echo cdfoo >t2
5170 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5171 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5172 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5173 :
5174 else
5175 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5176 fi
5177 fi
a76494aa
PB
5178 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5179 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5180 :
a76494aa
PB
5181 else
5182 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5183 fi
5184 fi
5185 rm t1 t2
5186
5187fi
5213506e
RW
5188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5189$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5190do_compare="$gcc_cv_prog_cmp_skip"
5191
5192
55ffb5ed 5193
ff3ac0f4
ILT
5194# Check whether --enable-bootstrap was given.
5195if test "${enable_bootstrap+set}" = set; then :
5196 enableval=$enable_bootstrap;
5197else
5198 enable_bootstrap=default
5199fi
5200
5201
5202# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5203if test -r $srcdir/gcc/configure; then
5204 have_compiler=yes
5205else
5206 have_compiler=no
5207fi
ff3ac0f4
ILT
5208
5209case "$have_compiler:$host:$target:$enable_bootstrap" in
5210 *:*:*:no) ;;
5211
5212 # Default behavior. Enable bootstrap if we have a compiler
5213 # and we are in a native configuration.
5214 yes:$build:$build:default)
5215 enable_bootstrap=yes ;;
5216
5217 *:*:*:default)
5218 enable_bootstrap=no ;;
5219
5220 # We have a compiler and we are in a native configuration, bootstrap is ok
5221 yes:$build:$build:yes)
5222 ;;
5223
5224 # Other configurations, but we have a compiler. Assume the user knows
5225 # what he's doing.
5226 yes:*:*:yes)
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5228$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5229 ;;
5230
5231 # No compiler: if they passed --enable-bootstrap explicitly, fail
5232 no:*:*:yes)
5233 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5234
5235 # Fail if wrong command line
5236 *)
5237 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5238 ;;
5239esac
5240
592c90ff
KG
5241# Used for setting $lt_cv_objdir
5242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5243$as_echo_n "checking for objdir... " >&6; }
5244if test "${lt_cv_objdir+set}" = set; then :
5245 $as_echo_n "(cached) " >&6
5246else
5247 rm -f .libs 2>/dev/null
5248mkdir .libs 2>/dev/null
5249if test -d .libs; then
5250 lt_cv_objdir=.libs
5251else
5252 # MS-DOS does not allow filenames that begin with a dot.
5253 lt_cv_objdir=_libs
5254fi
5255rmdir .libs 2>/dev/null
5256fi
5257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5258$as_echo "$lt_cv_objdir" >&6; }
5259objdir=$lt_cv_objdir
5260
5261
5262
5263
5264
5265cat >>confdefs.h <<_ACEOF
5266#define LT_OBJDIR "$lt_cv_objdir/"
5267_ACEOF
5268
5269
5270
acd26225 5271# Check for GMP, MPFR and MPC
3a5729ea 5272gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 5273gmpinc=
e69bf64b 5274have_gmp=no
acd26225
KG
5275
5276# Specify a location for mpc
5277# check for this first so it ends up on the link line before mpfr.
5278
5213506e
RW
5279# Check whether --with-mpc was given.
5280if test "${with_mpc+set}" = set; then :
5281 withval=$with_mpc;
5282fi
acd26225 5283
acd26225 5284
9965e3cd 5285# Check whether --with-mpc-include was given.
5213506e
RW
5286if test "${with_mpc_include+set}" = set; then :
5287 withval=$with_mpc_include;
5288fi
acd26225 5289
acd26225 5290
9965e3cd 5291# Check whether --with-mpc-lib was given.
5213506e
RW
5292if test "${with_mpc_lib+set}" = set; then :
5293 withval=$with_mpc_lib;
5294fi
acd26225 5295
acd26225
KG
5296
5297if test "x$with_mpc" != x; then
3a5729ea
KG
5298 gmplibs="-L$with_mpc/lib $gmplibs"
5299 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
5300fi
5301if test "x$with_mpc_include" != x; then
3a5729ea 5302 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
5303fi
5304if test "x$with_mpc_lib" != x; then
3a5729ea 5305 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
5306fi
5307if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 5308 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 5309 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5310 # Do not test the mpc version. Assume that it is sufficient, since
5311 # it is in the source tree, and the library has not been built yet
5312 # but it would be included on the link line in the version check below
5313 # hence making the test fail.
3a5729ea 5314 have_gmp=yes
acd26225 5315fi
e69bf64b 5316
bebf829d
PB
5317# Specify a location for mpfr
5318# check for this first so it ends up on the link line before gmp.
1c710c3c 5319
5213506e
RW
5320# Check whether --with-mpfr-dir was given.
5321if test "${with_mpfr_dir+set}" = set; then :
5322 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5323Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5324fi
5325
bebf829d
PB
5326
5327
5213506e
RW
5328# Check whether --with-mpfr was given.
5329if test "${with_mpfr+set}" = set; then :
5330 withval=$with_mpfr;
5331fi
1c710c3c 5332
bebf829d 5333
9965e3cd 5334# Check whether --with-mpfr-include was given.
5213506e
RW
5335if test "${with_mpfr_include+set}" = set; then :
5336 withval=$with_mpfr_include;
5337fi
1c710c3c 5338
8a877c9c 5339
9965e3cd 5340# Check whether --with-mpfr-lib was given.
5213506e
RW
5341if test "${with_mpfr_lib+set}" = set; then :
5342 withval=$with_mpfr_lib;
5343fi
8a877c9c 5344
bebf829d
PB
5345
5346if test "x$with_mpfr" != x; then
5347 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5348 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5349fi
8a877c9c 5350if test "x$with_mpfr_include" != x; then
3a5729ea 5351 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5352fi
5353if test "x$with_mpfr_lib" != x; then
5354 gmplibs="-L$with_mpfr_lib $gmplibs"
5355fi
e69bf64b 5356if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5b0d38e4
NC
5357 # MPFR v3.1.0 moved the sources into a src sub-directory.
5358 if test -d ${srcdir}/mpfr/src; then
5359 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5360 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5361 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5362 else
5363 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5364 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5365 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5366 fi
e69bf64b
PB
5367 # Do not test the mpfr version. Assume that it is sufficient, since
5368 # it is in the source tree, and the library has not been built yet
5369 # but it would be included on the link line in the version check below
5370 # hence making the test fail.
5371 have_gmp=yes
5372fi
bebf829d 5373
6de9cd9a 5374# Specify a location for gmp
1c710c3c 5375
5213506e
RW
5376# Check whether --with-gmp-dir was given.
5377if test "${with_gmp_dir+set}" = set; then :
5378 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5379Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5380fi
5381
6de9cd9a 5382
6de9cd9a 5383
5213506e
RW
5384# Check whether --with-gmp was given.
5385if test "${with_gmp+set}" = set; then :
5386 withval=$with_gmp;
5387fi
1c710c3c 5388
6de9cd9a 5389
9965e3cd 5390# Check whether --with-gmp-include was given.
5213506e
RW
5391if test "${with_gmp_include+set}" = set; then :
5392 withval=$with_gmp_include;
5393fi
1c710c3c 5394
8a877c9c 5395
9965e3cd 5396# Check whether --with-gmp-lib was given.
5213506e
RW
5397if test "${with_gmp_lib+set}" = set; then :
5398 withval=$with_gmp_lib;
5399fi
8a877c9c
KG
5400
5401
6de9cd9a 5402
bebf829d
PB
5403if test "x$with_gmp" != x; then
5404 gmplibs="-L$with_gmp/lib $gmplibs"
5405 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5406fi
8a877c9c
KG
5407if test "x$with_gmp_include" != x; then
5408 gmpinc="-I$with_gmp_include $gmpinc"
5409fi
5410if test "x$with_gmp_lib" != x; then
5411 gmplibs="-L$with_gmp_lib $gmplibs"
5412fi
e69bf64b 5413if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5414 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5415 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 5416 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 5417 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 5418 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
5419 # Do not test the gmp version. Assume that it is sufficient, since
5420 # it is in the source tree, and the library has not been built yet
5421 # but it would be included on the link line in the version check below
5422 # hence making the test fail.
5423 have_gmp=yes
5424fi
6de9cd9a 5425
d943d7c4 5426if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5427 have_gmp=yes
5428 saved_CFLAGS="$CFLAGS"
5429 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5430 # Check for the recommended and required versions of GMP.
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5432$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5433
5434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5435/* end confdefs.h. */
5436#include "gmp.h"
5437int
5438main ()
5439{
5440
5441 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5442 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 5443 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
5444 choke me
5445 #endif
5446
5447 ;
5448 return 0;
5449}
5450_ACEOF
5451if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5453/* end confdefs.h. */
362c6d2f 5454#include <gmp.h>
1c710c3c
DJ
5455int
5456main ()
5457{
6de9cd9a 5458
362c6d2f
KG
5459 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5460 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5461 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5462 choke me
5463 #endif
1c710c3c
DJ
5464
5465 ;
5466 return 0;
5467}
5468_ACEOF
5213506e
RW
5469if ac_fn_c_try_compile "$LINENO"; then :
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5471$as_echo "yes" >&6; }
362c6d2f
KG
5472else
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5474$as_echo "buggy but acceptable" >&6; }
5475fi
5476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5477else
5213506e
RW
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5480fi
5213506e 5481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5482
acd26225 5483 # If we have GMP, check the MPFR version.
e69bf64b 5484 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5485 # Check for the recommended and required versions of MPFR.
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5487$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5489/* end confdefs.h. */
70ec446f 5490#include <gmp.h>
e69bf64b 5491 #include <mpfr.h>
1c710c3c
DJ
5492int
5493main ()
5494{
e48d66a9 5495
f7d6bc01 5496 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
e69bf64b
PB
5497 choke me
5498 #endif
1c710c3c
DJ
5499
5500 ;
5501 return 0;
5502}
5503_ACEOF
5213506e
RW
5504if ac_fn_c_try_compile "$LINENO"; then :
5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5506/* end confdefs.h. */
a3993f33 5507#include <gmp.h>
e69bf64b 5508 #include <mpfr.h>
1c710c3c
DJ
5509int
5510main ()
5511{
a3993f33 5512
362c6d2f 5513 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
e69bf64b
PB
5514 choke me
5515 #endif
acd26225
KG
5516
5517 ;
5518 return 0;
5519}
5520_ACEOF
5213506e
RW
5521if ac_fn_c_try_compile "$LINENO"; then :
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5523$as_echo "yes" >&6; }
acd26225 5524else
5213506e
RW
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5526$as_echo "buggy but acceptable" >&6; }
acd26225 5527fi
5213506e 5528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5529else
5213506e
RW
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5531$as_echo "no" >&6; }; have_gmp=no
acd26225 5532fi
5213506e 5533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5534 fi
5535
5536 # Check for the MPC header version.
3a5729ea 5537 if test x"$have_gmp" = xyes ; then
362c6d2f 5538 # Check for the recommended and required versions of MPC.
5213506e
RW
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5540$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5542/* end confdefs.h. */
5543#include <mpc.h>
5544int
5545main ()
5546{
5547
362c6d2f
KG
5548 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5549 choke me
5550 #endif
5551
5552 ;
5553 return 0;
5554}
5555_ACEOF
5556if ac_fn_c_try_compile "$LINENO"; then :
5557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5558/* end confdefs.h. */
5559#include <mpc.h>
5560int
5561main ()
5562{
5563
5564 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5565 choke me
5566 #endif
5567
5568 ;
5569 return 0;
5570}
5571_ACEOF
5213506e
RW
5572if ac_fn_c_try_compile "$LINENO"; then :
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5574$as_echo "yes" >&6; }
362c6d2f
KG
5575else
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5577$as_echo "buggy but acceptable" >&6; }
5578fi
5579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5580else
5213506e 5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5582$as_echo "no" >&6; }; have_gmp=no
acd26225 5583fi
5213506e 5584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5585 fi
5586
5587 # Now check the MPFR library.
5588 if test x"$have_gmp" = xyes; then
5589 saved_LIBS="$LIBS"
5590 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5592$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5594/* end confdefs.h. */
3a5729ea 5595#include <mpc.h>
acd26225
KG
5596int
5597main ()
5598{
5599
5600 mpfr_t n;
5601 mpfr_t x;
3a5729ea 5602 mpc_t c;
acd26225
KG
5603 int t;
5604 mpfr_init (n);
5605 mpfr_init (x);
5606 mpfr_atan2 (n, n, x, GMP_RNDN);
5607 mpfr_erfc (n, x, GMP_RNDN);
5608 mpfr_subnormalize (x, t, GMP_RNDN);
3a5729ea
KG
5609 mpfr_clear(n);
5610 mpfr_clear(x);
5611 mpc_init2 (c, 53);
5612 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5613 mpc_cosh (c, c, MPC_RNDNN);
5614 mpc_pow (c, c, c, MPC_RNDNN);
5615 mpc_acosh (c, c, MPC_RNDNN);
5616 mpc_clear (c);
1c710c3c
DJ
5617
5618 ;
5619 return 0;
5620}
5621_ACEOF
5213506e
RW
5622if ac_fn_c_try_link "$LINENO"; then :
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5624$as_echo "yes" >&6; }
1c710c3c 5625else
5213506e
RW
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5627$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5628fi
5213506e
RW
5629rm -f core conftest.err conftest.$ac_objext \
5630 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5631 LIBS="$saved_LIBS"
5632 fi
5633
e69bf64b 5634 CFLAGS="$saved_CFLAGS"
6de9cd9a 5635
362c6d2f
KG
5636# The library versions listed in the error message below should match
5637# the HARD-minimums enforced above.
e69bf64b 5638 if test x$have_gmp != xyes; then
f7d6bc01 5639 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
3a5729ea
KG
5640Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5641their locations. Source code for these libraries can be found at
5642their respective hosting sites as well as at
5643ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5644http://gcc.gnu.org/install/prerequisites.html for additional info. If
5645you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5646make sure that you have installed both the libraries and the header
5647files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5648 fi
70ec446f
KG
5649fi
5650
acd26225
KG
5651# Flags needed for both GMP, MPFR and/or MPC.
5652
5653
6de9cd9a
DN
5654
5655
5656
9e3eba15 5657
0ff2d841 5658
f38095f3
JM
5659# Allow host libstdc++ to be specified for static linking with PPL.
5660
5213506e
RW
5661# Check whether --with-host-libstdcxx was given.
5662if test "${with_host_libstdcxx+set}" = set; then :
5663 withval=$with_host_libstdcxx;
5664fi
f38095f3 5665
f38095f3
JM
5666
5667case $with_host_libstdcxx in
5668 no|yes)
5213506e 5669 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
f38095f3
JM
5670 ;;
5671esac
f8bf9252 5672
0b21f5d3 5673# Libraries to use for stage1 or when not bootstrapping.
00020c16 5674
0b21f5d3
EB
5675# Check whether --with-stage1-libs was given.
5676if test "${with_stage1_libs+set}" = set; then :
5677 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5678 stage1_libs=
00020c16 5679 else
0b21f5d3 5680 stage1_libs=$withval
00020c16
ILT
5681 fi
5682else
0b21f5d3 5683 stage1_libs=$with_host_libstdcxx
5213506e
RW
5684fi
5685
00020c16
ILT
5686
5687
0b21f5d3 5688# Linker flags to use for stage1 or when not bootstrapping.
00020c16 5689
0b21f5d3
EB
5690# Check whether --with-stage1-ldflags was given.
5691if test "${with_stage1_ldflags+set}" = set; then :
5692 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5693 stage1_ldflags=
00020c16 5694 else
0b21f5d3 5695 stage1_ldflags=$withval
00020c16
ILT
5696 fi
5697else
0b21f5d3
EB
5698 stage1_ldflags=
5699 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5700 # if supported. But if the user explicitly specified the libraries to use,
5701 # trust that they are doing what they want.
5702 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5703 stage1_ldflags="-static-libstdc++ -static-libgcc"
5704 fi
5213506e
RW
5705fi
5706
00020c16
ILT
5707
5708
00020c16
ILT
5709# Libraries to use for stage2 and later builds. This defaults to the
5710# argument passed to --with-host-libstdcxx.
5711
5213506e
RW
5712# Check whether --with-boot-libs was given.
5713if test "${with_boot_libs+set}" = set; then :
5714 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
5715 poststage1_libs=
5716 else
5717 poststage1_libs=$withval
5718 fi
5719else
00020c16 5720 poststage1_libs=$with_host_libstdcxx
5213506e
RW
5721fi
5722
00020c16
ILT
5723
5724
ed2eaa9f
ILT
5725# Linker flags to use for stage2 and later builds.
5726
5727# Check whether --with-boot-ldflags was given.
5728if test "${with_boot_ldflags+set}" = set; then :
5729 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5730 poststage1_ldflags=
5731 else
5732 poststage1_ldflags=$withval
5733 fi
5734else
5735 poststage1_ldflags=
bec93d73
ILT
5736 # In stages 2 and 3, default to linking libstdc++ and libgcc
5737 # statically. But if the user explicitly specified the libraries to
5738 # use, trust that they are doing what they want.
5739 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
5740 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5741 fi
5742fi
5743
5744
5745
625afa23
RG
5746# GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
5747# Basic setup is inlined here, actual checks are in config/cloog.m4 and
5748# config/isl.m4
5749
5750
5751# Check whether --with-cloog was given.
5752if test "${with_cloog+set}" = set; then :
5753 withval=$with_cloog;
5754fi
f8bf9252
SP
5755
5756
33ad93b9
RG
5757# Check whether --with-isl was given.
5758if test "${with_isl+set}" = set; then :
5759 withval=$with_isl;
5213506e 5760fi
f8bf9252 5761
f8bf9252 5762
625afa23
RG
5763# Treat either --without-cloog or --without-isl as a request to disable
5764# GRAPHITE support and skip all following checks.
5765if test "x$with_isl" != "xno" &&
5766 test "x$with_cloog" != "xno"; then
5767 # Check for ISL
5768
5769
33ad93b9
RG
5770# Check whether --with-isl-include was given.
5771if test "${with_isl_include+set}" = set; then :
5772 withval=$with_isl_include;
5213506e
RW
5773fi
5774
f8bf9252 5775
33ad93b9
RG
5776# Check whether --with-isl-lib was given.
5777if test "${with_isl_lib+set}" = set; then :
5778 withval=$with_isl_lib;
5213506e 5779fi
f8bf9252 5780
f8bf9252 5781
33ad93b9
RG
5782 # Check whether --enable-isl-version-check was given.
5783if test "${enable_isl_version_check+set}" = set; then :
5784 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5785else
5786 ENABLE_ISL_CHECK=yes
7d32a440
SP
5787fi
5788
5789
33ad93b9
RG
5790 # Initialize isllibs and islinc.
5791 case $with_isl in
5792 no)
5793 isllibs=
5794 islinc=
5795 ;;
5796 "" | yes)
5797 ;;
5798 *)
5799 isllibs="-L$with_isl/lib"
5800 islinc="-I$with_isl/include"
5801 ;;
5802 esac
5803 if test "x${with_isl_include}" != x ; then
5804 islinc="-I$with_isl_include"
5805 fi
5806 if test "x${with_isl_lib}" != x; then
5807 isllibs="-L$with_isl_lib"
5808 fi
5809 if test "x${islinc}" = x && test "x${isllibs}" = x \
5810 && test -d ${srcdir}/isl; then
5811 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5812 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5813 ENABLE_ISL_CHECK=no
5814 fi
7d32a440 5815
7d32a440 5816
7d32a440 5817
33ad93b9
RG
5818 if test "${ENABLE_ISL_CHECK}" = yes ; then
5819 _isl_saved_CFLAGS=$CFLAGS
5820 _isl_saved_LDFLAGS=$LDFLAGS
90d4f233 5821 _isl_saved_LIBS=$LIBS
33ad93b9
RG
5822
5823 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
90d4f233
RO
5824 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5825 LIBS="${_isl_saved_LIBS} -lisl"
33ad93b9
RG
5826 echo $CFLAGS
5827
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5829$as_echo_n "checking for version 0.10 of ISL... " >&6; }
5830if test "${gcc_cv_isl+set}" = set; then :
7d32a440
SP
5831 $as_echo_n "(cached) " >&6
5832else
33ad93b9 5833 if test "$cross_compiling" = yes; then :
2b2d7c53 5834 gcc_cv_isl=yes
33ad93b9
RG
5835else
5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7d32a440 5837/* end confdefs.h. */
33ad93b9
RG
5838#include <isl/version.h>
5839 #include <string.h>
7d32a440
SP
5840int
5841main ()
5842{
8247e8b2
RG
5843if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
5844 return 1;
5845
7d32a440
SP
5846 ;
5847 return 0;
5848}
5849_ACEOF
33ad93b9
RG
5850if ac_fn_c_try_run "$LINENO"; then :
5851 gcc_cv_isl=yes
d789184e 5852else
33ad93b9 5853 gcc_cv_isl=no
7d32a440 5854fi
33ad93b9
RG
5855rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5856 conftest.$ac_objext conftest.beam conftest.$ac_ext
7d32a440 5857fi
33ad93b9 5858
5213506e 5859fi
33ad93b9
RG
5860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5861$as_echo "$gcc_cv_isl" >&6; }
5213506e 5862
33ad93b9
RG
5863 CFLAGS=$_isl_saved_CFLAGS
5864 LDFLAGS=$_isl_saved_LDFLAGS
90d4f233 5865 LIBS=$_isl_saved_LIBS
7d32a440 5866 fi
f8bf9252 5867
7d32a440 5868
f8bf9252 5869
f8bf9252 5870
33ad93b9
RG
5871
5872
33ad93b9
RG
5873 if test "x${with_isl}" = xno; then
5874 graphite_requested=no
5875 elif test "x${with_isl}" != x \
5876 || test "x${with_isl_include}" != x \
5877 || test "x${with_isl_lib}" != x ; then
5878 graphite_requested=yes
5879 else
5880 graphite_requested=no
7d32a440 5881 fi
d789184e 5882
d789184e
SP
5883
5884
33ad93b9
RG
5885 if test "${gcc_cv_isl}" = no ; then
5886 isllibs=
5887 islinc=
5888 fi
5889
5890 if test "${graphite_requested}" = yes \
5891 && test "x${isllibs}" = x \
5892 && test "x${islinc}" = x ; then
f8bf9252 5893
33ad93b9
RG
5894 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
5895 fi
f8bf9252 5896
d32ef397 5897
d789184e 5898
625afa23
RG
5899 if test "x$gcc_cv_isl" != "xno"; then
5900 # Check for CLOOG
5213506e 5901
d789184e 5902
9965e3cd 5903# Check whether --with-cloog-include was given.
5213506e
RW
5904if test "${with_cloog_include+set}" = set; then :
5905 withval=$with_cloog_include;
5906fi
d789184e 5907
d789184e 5908
9965e3cd 5909# Check whether --with-cloog-lib was given.
5213506e
RW
5910if test "${with_cloog_lib+set}" = set; then :
5911 withval=$with_cloog_lib;
5912fi
d789184e 5913
d789184e 5914
d32ef397
AS
5915 # Check whether --enable-cloog-version-check was given.
5916if test "${enable_cloog_version_check+set}" = set; then :
5917 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5918else
5919 ENABLE_CLOOG_CHECK=yes
5920fi
5921
5922
5923 # Initialize clooglibs and clooginc.
5924 case $with_cloog in
5925 no)
5926 clooglibs=
5927 clooginc=
5928 ;;
5929 "" | yes)
5930 ;;
5931 *)
5932 clooglibs="-L$with_cloog/lib"
5933 clooginc="-I$with_cloog/include"
5934 ;;
5935 esac
5936 if test "x${with_cloog_include}" != x ; then
5937 clooginc="-I$with_cloog_include"
5938 fi
5939 if test "x${with_cloog_lib}" != x; then
5940 clooglibs="-L$with_cloog_lib"
5941 fi
14fbeb6c 5942 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
33ad93b9 5943 && test -d ${srcdir}/cloog; then
33ad93b9
RG
5944 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5945 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
ab4173cf 5946 fi
ad0abd3c 5947
33ad93b9 5948 clooginc="-DCLOOG_INT_GMP ${clooginc}"
625afa23 5949 clooglibs="${clooglibs} -lcloog-isl ${isllibs} -lisl"
d32ef397
AS
5950
5951
5952
5953
5954
5955 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5956 _cloog_saved_CFLAGS=$CFLAGS
5957 _cloog_saved_LDFLAGS=$LDFLAGS
5958
33ad93b9
RG
5959 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
5960 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
d32ef397 5961
6886e444
RG
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
5963$as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
5964if test "${gcc_cv_cloog+set}" = set; then :
d32ef397
AS
5965 $as_echo_n "(cached) " >&6
5966else
5213506e 5967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f8bf9252 5968/* end confdefs.h. */
33ad93b9 5969#include "cloog/version.h"
f8bf9252
SP
5970int
5971main ()
5972{
d32ef397 5973#if CLOOG_VERSION_MAJOR != 0 \
6886e444
RG
5974 || CLOOG_VERSION_MINOR != 17 \
5975 || CLOOG_VERSION_REVISION < 0
d32ef397
AS
5976 choke me
5977 #endif
f8bf9252
SP
5978 ;
5979 return 0;
5980}
5981_ACEOF
0333b9a6 5982if ac_fn_c_try_compile "$LINENO"; then :
6886e444 5983 gcc_cv_cloog=yes
f8bf9252 5984else
6886e444 5985 gcc_cv_cloog=no
f8bf9252 5986fi
5213506e 5987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d789184e 5988fi
6886e444
RG
5989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
5990$as_echo "$gcc_cv_cloog" >&6; }
d32ef397
AS
5991
5992 CFLAGS=$_cloog_saved_CFLAGS
5993 LDFLAGS=$_cloog_saved_LDFLAGS
5994 fi
f8bf9252 5995
f8bf9252
SP
5996
5997
5998
d32ef397
AS
5999
6000
6001
6be7b668
JJ
6002 if test "x${with_cloog}" = xno; then
6003 graphite_requested=no
6004 elif test "x${with_cloog}" != x \
d32ef397
AS
6005 || test "x${with_cloog_include}" != x \
6006 || test "x${with_cloog_lib}" != x ; then
6007 graphite_requested=yes
6008 else
6009 graphite_requested=no
6010 fi
6011
6012
6013
6886e444 6014 if test "${gcc_cv_cloog}" = no ; then
d32ef397
AS
6015 clooglibs=
6016 clooginc=
6017 fi
6018
6019 if test "${graphite_requested}" = yes \
6020 && test "x${clooglibs}" = x \
6021 && test "x${clooginc}" = x ; then
6022
625afa23 6023 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
d32ef397
AS
6024 fi
6025
6026
625afa23 6027 fi
d32ef397
AS
6028fi
6029
32d024bf
RG
6030# If either the ISL or the CLooG check failed, disable builds of in-tree
6031# variants of both
625afa23
RG
6032if test "x$with_isl" = xno ||
6033 test "x$with_cloog" = xno ||
6034 test "x$gcc_cv_cloog" = xno ||
6035 test "x$gcc_cv_isl" = xno; then
32d024bf 6036 noconfigdirs="$noconfigdirs cloog isl"
625afa23
RG
6037 islinc=
6038 clooginc=
6039 clooglibs=
32d024bf
RG
6040fi
6041
625afa23
RG
6042
6043
6044
6045
6046
d7f09764
DN
6047# Check for LTO support.
6048# Check whether --enable-lto was given.
6049if test "${enable_lto+set}" = set; then :
6050 enableval=$enable_lto; enable_lto=$enableval
6051else
6052 enable_lto=yes; default_enable_lto=yes
6053fi
6054
6055
7413962d 6056
9a02962b
DK
6057
6058
6059target_elf=no
6060case $target in
6061 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 6062 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
9a02962b
DK
6063 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6064 target_elf=no
6065 ;;
6066 *)
6067 target_elf=yes
6068 ;;
6069esac
6070
6071if test $target_elf = yes; then :
48215350
DK
6072 # ELF platforms build the lto-plugin always.
6073 build_lto_plugin=yes
9a02962b 6074
9a02962b
DK
6075else
6076 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 6077 case $target in
2cd815e7 6078 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
48215350 6079 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
6080 *) enable_lto=no ;;
6081 esac
9a02962b 6082 else
db50fe7d
IS
6083 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6084 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
6085 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6086 # warn during gcc/ subconfigure; unless you're bootstrapping with
6087 # -flto it won't be needed until after installation anyway.
6088 case $target in
1cd0b716 6089 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
9a02962b
DK
6090 *) if test x"$enable_lto" = x"yes"; then
6091 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6092 fi
6093 ;;
6094 esac
6095 fi
1cd0b716 6096 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 6097 # Build it unless LTO was explicitly disabled.
1cd0b716 6098 case $target in
48215350 6099 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
6100 *) ;;
6101 esac
48215350 6102
9a02962b
DK
6103fi
6104
d7f09764 6105
f8bf9252 6106
0823efed 6107# By default, C and C++ are the only stage 1 languages.
e1888513 6108stage1_languages=,c,
2805b53a 6109
00020c16 6110# Target libraries that we bootstrap.
ad1e5170 6111bootstrap_target_libs=,target-libgcc,
00020c16 6112
55ffb5ed
NN
6113# Figure out what language subdirectories are present.
6114# Look if the user specified --enable-languages="..."; if not, use
6115# the environment variable $LANGUAGES if defined. $LANGUAGES might
6116# go away some day.
6117# NB: embedded tabs in this IF block -- do not untabify
6118if test -d ${srcdir}/gcc; then
6119 if test x"${enable_languages+set}" != xset; then
6120 if test x"${LANGUAGES+set}" = xset; then
6121 enable_languages="${LANGUAGES}"
6122 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6123 else
6124 enable_languages=all
6125 fi
6126 else
6127 if test x"${enable_languages}" = x ||
6128 test x"${enable_languages}" = xyes;
6129 then
6130 echo configure.in: --enable-languages needs at least one language argument 1>&2
6131 exit 1
6132 fi
6133 fi
6134 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6135
7f26dfa3
FXC
6136 # 'f95' is the old name for the 'fortran' language. We issue a warning
6137 # and make the substitution.
6138 case ,${enable_languages}, in
6139 *,f95,*)
6140 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6141 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6142 ;;
6143 esac
6144
0823efed
DN
6145 # If bootstrapping, C++ must be enabled.
6146 case ",$enable_languages,:$enable_bootstrap" in
6147 *,c++,*:*) ;;
6148 *:yes)
ff3ac0f4
ILT
6149 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6150 enable_languages="${enable_languages},c++"
6151 else
0823efed 6152 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
6153 fi
6154 ;;
6155 esac
6156
55ffb5ed
NN
6157 # First scan to see if an enabled language requires some other language.
6158 # We assume that a given config-lang.in will list all the language
6159 # front ends it requires, even if some are required indirectly.
6160 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6161 case ${lang_frag} in
6162 ..) ;;
6163 # The odd quoting in the next line works around
6164 # an apparent bug in bash 1.12 on linux.
6165 ${srcdir}/gcc/[*]/config-lang.in) ;;
6166 *)
69ecd18f
ILT
6167 # From the config-lang.in, get $language, $lang_requires, and
6168 # $lang_requires_boot_languages.
55ffb5ed
NN
6169 language=
6170 lang_requires=
69ecd18f 6171 lang_requires_boot_languages=
55ffb5ed 6172 . ${lang_frag}
69ecd18f 6173 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
6174 case ,${enable_languages}, in
6175 *,$other,*) ;;
6176 *,all,*) ;;
6177 *,$language,*)
6178 echo " \`$other' language required by \`$language'; enabling" 1>&2
6179 enable_languages="${enable_languages},${other}"
6180 ;;
6181 esac
6182 done
69ecd18f
ILT
6183 for other in ${lang_requires_boot_languages} ; do
6184 if test "$other" != "c"; then
6185 case ,${enable_stage1_languages}, in
6186 *,$other,*) ;;
6187 *,all,*) ;;
6188 *)
6189 case ,${enable_languages}, in
6190 *,$language,*)
6191 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6192 enable_stage1_languages="$enable_stage1_languages,${other}"
6193 ;;
6194 esac
6195 ;;
6196 esac
6197 fi
6198 done
55ffb5ed
NN
6199 ;;
6200 esac
6201 done
6202
e1888513 6203 new_enable_languages=,c,
d7f09764
DN
6204
6205 # If LTO is enabled, add the LTO front end.
6206 extra_host_libiberty_configure_flags=
6207 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6208 case ,${enable_languages}, in
6209 *,lto,*) ;;
6210 *) enable_languages="${enable_languages},lto" ;;
6211 esac
1cd0b716 6212 if test "${build_lto_plugin}" = "yes" ; then
d7f09764
DN
6213 configdirs="$configdirs lto-plugin"
6214 extra_host_libiberty_configure_flags=--enable-shared
6215 fi
6216 fi
6217
6218
55ffb5ed 6219 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6220 potential_languages=,c,
55ffb5ed 6221
4da3b0f8
ILT
6222 enabled_target_libs=
6223 disabled_target_libs=
6224
55ffb5ed
NN
6225 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6226 case ${lang_frag} in
6227 ..) ;;
6228 # The odd quoting in the next line works around
6229 # an apparent bug in bash 1.12 on linux.
6230 ${srcdir}/gcc/[*]/config-lang.in) ;;
6231 *)
1c710c3c 6232 # From the config-lang.in, get $language, $target_libs,
2805b53a 6233 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6234 language=
6235 target_libs=
6236 lang_dirs=
1546bb64 6237 subdir_requires=
e1888513
PB
6238 boot_language=no
6239 build_by_default=yes
55ffb5ed 6240 . ${lang_frag}
e1888513
PB
6241 if test x${language} = x; then
6242 echo "${lang_frag} doesn't set \$language." 1>&2
6243 exit 1
6244 fi
6245
78767fd9 6246 if test "$language" = "c++"; then
0823efed 6247 boot_language=yes
00020c16
ILT
6248 fi
6249
178f875a 6250 add_this_lang=no
e1888513
PB
6251 case ,${enable_languages}, in
6252 *,${language},*)
d4a10d0a
SB
6253 # Language was explicitly selected; include it
6254 # unless it is C, which is enabled by default.
6255 if test "$language" != "c"; then
6256 add_this_lang=yes
6257 fi
55ffb5ed 6258 ;;
e1888513
PB
6259 *,all,*)
6260 # 'all' was selected, select it if it is a default language
178f875a
JM
6261 if test "$language" != "c"; then
6262 add_this_lang=${build_by_default}
6263 fi
55ffb5ed
NN
6264 ;;
6265 esac
6de9cd9a 6266
1546bb64 6267 # Disable languages that need other directories if these aren't available.
95695ad3 6268 for i in $subdir_requires; do
b6348cb3 6269 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
6270 case ,${enable_languages}, in
6271 *,${language},*)
6272 # Specifically requested language; tell them.
5213506e 6273 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64
PB
6274 ;;
6275 *)
6276 # Silently disable.
e1888513 6277 add_this_lang=unsupported
1546bb64
PB
6278 ;;
6279 esac
6280 done
6281
e1888513
PB
6282 # Disable Ada if no preexisting GNAT is available.
6283 case ,${enable_languages},:${language}:${have_gnat} in
6284 *,${language},*:ada:no)
6285 # Specifically requested language; tell them.
5213506e 6286 as_fn_error "GNAT is required to build $language" "$LINENO" 5
e1888513
PB
6287 ;;
6288 *:ada:no)
6289 # Silently disable.
6290 add_this_lang=unsupported
6291 ;;
6292 esac
6293
4fab7234
HPN
6294 # Disable a language that is unsupported by the target.
6295 case " $unsupported_languages " in
6296 *" $language "*)
e1888513 6297 add_this_lang=unsupported
4fab7234
HPN
6298 ;;
6299 esac
6300
6de9cd9a 6301 case $add_this_lang in
e1888513 6302 unsupported)
55ffb5ed 6303 # Remove language-dependent dirs.
4da3b0f8
ILT
6304 disabled_target_libs="$disabled_target_libs $target_libs"
6305 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 6306 ;;
e1888513
PB
6307 no)
6308 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
6309 disabled_target_libs="$disabled_target_libs $target_libs"
6310 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
6311 potential_languages="${potential_languages}${language},"
6312 ;;
6313 yes)
6314 new_enable_languages="${new_enable_languages}${language},"
6315 potential_languages="${potential_languages}${language},"
2805b53a 6316 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 6317 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
6318 case "${boot_language}:,$enable_stage1_languages," in
6319 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6320 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6321 case ",$stage1_languages," in
6322 *,$language,* | ,yes, | ,all,) ;;
6323 *) stage1_languages="${stage1_languages}${language}," ;;
6324 esac
00020c16
ILT
6325 # We need to bootstrap any supporting libraries.
6326 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6327 ;;
6328 esac
6329 ;;
55ffb5ed
NN
6330 esac
6331 ;;
6332 esac
6333 done
6334
4da3b0f8
ILT
6335 # Add target libraries which are only needed for disabled languages
6336 # to noconfigdirs.
6337 if test -n "$disabled_target_libs"; then
6338 for dir in $disabled_target_libs; do
6339 case " $enabled_target_libs " in
6340 *" ${dir} "*) ;;
6341 *) noconfigdirs="$noconfigdirs $dir" ;;
6342 esac
6343 done
6344 fi
6345
5213506e
RW
6346 # Check whether --enable-stage1-languages was given.
6347if test "${enable_stage1_languages+set}" = set; then :
6348 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6349 ,no,|,,)
6350 # Set it to something that will have no effect in the loop below
6351 enable_stage1_languages=c ;;
6352 ,yes,)
6353 enable_stage1_languages=`echo $new_enable_languages | \
6354 sed -e "s/^,//" -e "s/,$//" ` ;;
6355 *,all,*)
6356 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6357 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6358 esac
6359
6360 # Add "good" languages from enable_stage1_languages to stage1_languages,
6361 # while "bad" languages go in missing_languages. Leave no duplicates.
6362 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6363 case $potential_languages in
6364 *,$i,*)
6365 case $stage1_languages in
6366 *,$i,*) ;;
6367 *) stage1_languages="$stage1_languages$i," ;;
6368 esac ;;
6369 *)
6370 case $missing_languages in
6371 *,$i,*) ;;
6372 *) missing_languages="$missing_languages$i," ;;
6373 esac ;;
6374 esac
6375 done
5213506e
RW
6376fi
6377
e1888513
PB
6378
6379 # Remove leading/trailing commas that were added for simplicity
6380 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6381 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6382 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6383 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6384
55ffb5ed 6385 if test "x$missing_languages" != x; then
5213506e 6386 as_fn_error "
0cf085e4 6387The following requested languages could not be built: ${missing_languages}
5213506e 6388Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6389 fi
55ffb5ed
NN
6390 if test "x$new_enable_languages" != "x$enable_languages"; then
6391 echo The following languages will be built: ${new_enable_languages}
e1888513 6392 enable_languages="$new_enable_languages"
55ffb5ed 6393 fi
e1888513 6394
1c710c3c 6395
b2eaac4a 6396 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6397fi
6398
27079765
AH
6399# Handle --disable-<component> generically.
6400for dir in $configdirs $build_configdirs $target_configdirs ; do
6401 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6402 varname=`echo $dirname | sed -e s/+/_/g`
6403 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6404 noconfigdirs="$noconfigdirs $dir"
6405 fi
6406done
6407
7cd0cf9c 6408# Check for Boehm's garbage collector
5213506e
RW
6409# Check whether --enable-objc-gc was given.
6410if test "${enable_objc_gc+set}" = set; then :
6411 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 6412 *,objc,*:*:yes:*target-boehm-gc*)
5213506e 6413 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
7cd0cf9c
DA
6414 ;;
6415esac
5213506e
RW
6416fi
6417
7cd0cf9c
DA
6418
6419# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
6420case ,${enable_languages},:${enable_objc_gc} in
6421 *,objc,*:yes)
7cd0cf9c
DA
6422 # Keep target-boehm-gc if requested for Objective-C.
6423 ;;
7cd0cf9c 6424 *)
2a79fd67
DA
6425 # Otherwise remove target-boehm-gc depending on target-libjava.
6426 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6427 noconfigdirs="$noconfigdirs target-boehm-gc"
6428 fi
7cd0cf9c
DA
6429 ;;
6430esac
6431
99776ebd
RH
6432# Disable libitm if we're not building C++
6433case ,${enable_languages}, in
9696698a 6434 *,c++,*) ;;
99776ebd
RH
6435 *)
6436 noconfigdirs="$noconfigdirs target-libitm"
6437 ;;
6438esac
6439
ee6a22df
L
6440# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6441# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6442# If we have the source for $noconfigdirs entries, add them to $notsupp.
6443
6444notsupp=""
6445for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6446 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6447 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6448 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6449 if test -r $srcdir/$dirname/configure ; then
6450 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6451 true
6452 else
6453 notsupp="$notsupp $dir"
6454 fi
6455 fi
6456 fi
ee6a22df
L
6457 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6458 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6459 if test -r $srcdir/$dirname/configure ; then
6460 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6461 true
6462 else
6463 notsupp="$notsupp $dir"
6464 fi
6465 fi
6466 fi
55ffb5ed
NN
6467 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6468 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6469 if test -r $srcdir/$dirname/configure ; then
6470 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6471 true
6472 else
6473 notsupp="$notsupp $dir"
6474 fi
6475 fi
6476 fi
6477done
6478
55ffb5ed
NN
6479# Quietly strip out all directories which aren't configurable in this tree.
6480# This relies on all configurable subdirectories being autoconfiscated, which
6481# is now the case.
23f6b2f9
PB
6482build_configdirs_all="$build_configdirs"
6483build_configdirs=
6484for i in ${build_configdirs_all} ; do
1c710c3c 6485 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
6486 if test -f ${srcdir}/$j/configure ; then
6487 build_configdirs="${build_configdirs} $i"
6488 fi
6489done
6490
55ffb5ed
NN
6491configdirs_all="$configdirs"
6492configdirs=
6493for i in ${configdirs_all} ; do
6494 if test -f ${srcdir}/$i/configure ; then
6495 configdirs="${configdirs} $i"
6496 fi
6497done
23f6b2f9 6498
55ffb5ed
NN
6499target_configdirs_all="$target_configdirs"
6500target_configdirs=
6501for i in ${target_configdirs_all} ; do
1c710c3c 6502 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
6503 if test -f ${srcdir}/$j/configure ; then
6504 target_configdirs="${target_configdirs} $i"
6505 fi
6506done
6507
6508# Produce a warning message for the subdirs we can't configure.
6509# This isn't especially interesting in the Cygnus tree, but in the individual
6510# FSF releases, it's important to let people know when their machine isn't
6511# supported by the one or two programs in a package.
6512
6513if test -n "${notsupp}" && test -z "${norecursion}" ; then
6514 # If $appdirs is non-empty, at least one of those directories must still
6515 # be configured, or we error out. (E.g., if the gas release supports a
6516 # specified target in some subdirs but not the gas subdir, we shouldn't
6517 # pretend that all is well.)
6518 if test -n "$appdirs" ; then
6519 for dir in $appdirs ; do
6520 if test -r $dir/Makefile.in ; then
6521 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6522 appdirs=""
6523 break
6524 fi
23f6b2f9 6525 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
6526 appdirs=""
6527 break
6528 fi
6529 fi
6530 done
6531 if test -n "$appdirs" ; then
6532 echo "*** This configuration is not supported by this package." 1>&2
6533 exit 1
6534 fi
6535 fi
6536 # Okay, some application will build, or we don't care to check. Still
6537 # notify of subdirs not getting built.
6538 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6539 echo " ${notsupp}" 1>&2
6540 echo " (Any other directories should still work fine.)" 1>&2
6541fi
6542
6543case "$host" in
6544 *msdosdjgpp*)
6545 enable_gdbtk=no ;;
6546esac
6547
c3a86da9
DJ
6548# To find our prefix, in gcc_cv_tool_prefix.
6549
6550# The user is always right.
6551if test "${PATH_SEPARATOR+set}" != set; then
6552 echo "#! /bin/sh" >conf$$.sh
6553 echo "exit 0" >>conf$$.sh
6554 chmod +x conf$$.sh
6555 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6556 PATH_SEPARATOR=';'
6557 else
6558 PATH_SEPARATOR=:
6559 fi
6560 rm -f conf$$.sh
6561fi
6562
6563
6564
6565if test "x$exec_prefix" = xNONE; then
6566 if test "x$prefix" = xNONE; then
6567 gcc_cv_tool_prefix=$ac_default_prefix
6568 else
6569 gcc_cv_tool_prefix=$prefix
6570 fi
6571else
6572 gcc_cv_tool_prefix=$exec_prefix
6573fi
6574
6575# If there is no compiler in the tree, use the PATH only. In any
6576# case, if there is no compiler in the tree nobody should use
6577# AS_FOR_TARGET and LD_FOR_TARGET.
6578if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6579 gcc_version=`cat $srcdir/gcc/BASE-VER`
6580 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6581 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6582 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6583 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6584 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6585 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6586else
6587 gcc_cv_tool_dirs=
6588fi
6589
6590if test x$build = x$target && test -n "$md_exec_prefix"; then
6591 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6592fi
6593
6594
6595
55ffb5ed
NN
6596copy_dirs=
6597
1c710c3c 6598
5213506e
RW
6599# Check whether --with-build-sysroot was given.
6600if test "${with_build_sysroot+set}" = set; then :
6601 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
6602 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6603 fi
6604else
6605 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 6606fi
526635cb
MM
6607
6608
c8aea42c 6609
5213506e
RW
6610
6611# Check whether --with-debug-prefix-map was given.
6612if test "${with_debug_prefix_map+set}" = set; then :
6613 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
6614 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6615 for debug_map in $withval; do
6616 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6617 done
6618 fi
6619else
6620 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
6621fi
6622
c8aea42c
PB
6623
6624
1c8bd6a3
PB
6625# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6626# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6627# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6628# We want to ensure that TARGET libraries (which we know are built with
6629# gcc) are built with "-O2 -g", so include those options when setting
6630# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6631if test "x$CFLAGS_FOR_TARGET" = x; then
6632 CFLAGS_FOR_TARGET=$CFLAGS
6633 case " $CFLAGS " in
6634 *" -O2 "*) ;;
bd8e704f 6635 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6636 esac
6637 case " $CFLAGS " in
6638 *" -g "* | *" -g3 "*) ;;
bd8e704f 6639 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6640 esac
6641fi
6642
6643
6644if test "x$CXXFLAGS_FOR_TARGET" = x; then
6645 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6646 case " $CXXFLAGS " in
6647 *" -O2 "*) ;;
bd8e704f 6648 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6649 esac
6650 case " $CXXFLAGS " in
6651 *" -g "* | *" -g3 "*) ;;
bd8e704f 6652 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6653 esac
6654fi
6655
6656
6f57bdf6
DK
6657
6658
55ffb5ed
NN
6659# Handle --with-headers=XXX. If the value is not "yes", the contents of
6660# the named directory are copied to $(tooldir)/sys-include.
6661if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6662 if test x${is_cross_compiler} = xno ; then
6663 echo 1>&2 '***' --with-headers is only supported when cross compiling
6664 exit 1
6665 fi
6666 if test x"${with_headers}" != xyes ; then
c3a86da9 6667 x=${gcc_cv_tool_prefix}
1c710c3c 6668 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
6669 fi
6670fi
6671
6672# Handle --with-libs=XXX. If the value is not "yes", the contents of
6673# the name directories are copied to $(tooldir)/lib. Multiple directories
6674# are permitted.
6675if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6676 if test x${is_cross_compiler} = xno ; then
6677 echo 1>&2 '***' --with-libs is only supported when cross compiling
6678 exit 1
6679 fi
6680 if test x"${with_libs}" != xyes ; then
6681 # Copy the libraries in reverse order, so that files in the first named
6682 # library override files in subsequent libraries.
c3a86da9 6683 x=${gcc_cv_tool_prefix}
55ffb5ed 6684 for l in ${with_libs}; do
1c710c3c 6685 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
6686 done
6687 fi
6688fi
6689
d7f09764 6690# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
6691#
6692# This is done by determining whether or not the appropriate directory
6693# is available, and by checking whether or not specific configurations
6694# have requested that this magic not happen.
1c710c3c
DJ
6695#
6696# The command line options always override the explicit settings in
e8b05380
PB
6697# configure.in, and the settings in configure.in override this magic.
6698#
1c710c3c 6699# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 6700# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
6701# --without-gnu-ld options for the configure script. Similarly, if
6702# the default is to use the included zlib and you don't want to do that,
6703# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
6704
6705if test x${use_gnu_as} = x &&
6706 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6707 with_gnu_as=yes
6708 extra_host_args="$extra_host_args --with-gnu-as"
6709fi
6710
6711if test x${use_gnu_ld} = x &&
5afab7ad 6712 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
6713 with_gnu_ld=yes
6714 extra_host_args="$extra_host_args --with-gnu-ld"
6715fi
6716
d7f09764
DN
6717if test x${use_included_zlib} = x &&
6718 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6719 :
6720else
6721 with_system_zlib=yes
6722 extra_host_args="$extra_host_args --with-system-zlib"
6723fi
6724
e8b05380
PB
6725# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6726# can detect this case.
6727
6728if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6729 with_newlib=yes
6730 extra_host_args="$extra_host_args --with-newlib"
6731fi
6732
55ffb5ed
NN
6733# Handle ${copy_dirs}
6734set fnord ${copy_dirs}
6735shift
6736while test $# != 0 ; do
6737 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6738 :
6739 else
6740 echo Copying $1 to $2
6741
6742 # Use the install script to create the directory and all required
6743 # parent directories.
6744 if test -d $2 ; then
6745 :
6746 else
6747 echo >config.temp
6748 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6749 fi
6750
6751 # Copy the directory, assuming we have tar.
6752 # FIXME: Should we use B in the second tar? Not all systems support it.
6753 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6754
6755 # It is the responsibility of the user to correctly adjust all
6756 # symlinks. If somebody can figure out how to handle them correctly
6757 # here, feel free to add the code.
6758
6759 echo $1 > $2/COPIED
6760 fi
6761 shift; shift
6762done
6763
e8b05380
PB
6764# Determine a target-dependent exec_prefix that the installed
6765# gcc will search in. Keep this list sorted by triplet, with
6766# the *-*-osname triplets last.
6767md_exec_prefix=
6768case "${target}" in
30b74385 6769 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
6770 md_exec_prefix=/dev/env/DJDIR/bin
6771 ;;
e8b05380 6772 *-*-hpux* | \
e8b05380 6773 *-*-nto-qnx* | \
6de66370 6774 *-*-solaris2*)
e8b05380
PB
6775 md_exec_prefix=/usr/ccs/bin
6776 ;;
6777esac
6778
671aa708
NN
6779extra_arflags_for_target=
6780extra_nmflags_for_target=
6781extra_ranlibflags_for_target=
6782target_makefile_frag=/dev/null
6783case "${target}" in
58e24147
AM
6784 spu-*-*)
6785 target_makefile_frag="config/mt-spu"
6786 ;;
d91491e5 6787 mips*-sde-elf* | mips*-mti-elf*)
4bf6c438
RS
6788 target_makefile_frag="config/mt-sde"
6789 ;;
1ec3b87b
RS
6790 mipsisa*-*-elfoabi*)
6791 target_makefile_frag="config/mt-mips-elfoabi"
6792 ;;
08d0963a
RS
6793 mips*-*-*linux* | mips*-*-gnu*)
6794 target_makefile_frag="config/mt-mips-gnu"
6795 ;;
416ac4d4 6796 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 6797 target_makefile_frag="config/mt-gnu"
671aa708
NN
6798 ;;
6799 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 6800 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
6801 # commands to handle both 32-bit and 64-bit objects. These flags are
6802 # harmless if we're using GNU nm or ar.
6803 extra_arflags_for_target=" -X32_64"
6804 extra_nmflags_for_target=" -B -X32_64"
6805 ;;
671aa708
NN
6806esac
6807
6808alphaieee_frag=/dev/null
6809case $target in
6810 alpha*-*-*)
6811 # This just makes sure to use the -mieee option to build target libs.
6812 # This should probably be set individually by each library.
6813 alphaieee_frag="config/mt-alphaieee"
6814 ;;
6815esac
6816
6817# If --enable-target-optspace always use -Os instead of -O2 to build
6818# the target libraries, similarly if it is not specified, use -Os
6819# on selected platforms.
6820ospace_frag=/dev/null
6821case "${enable_target_optspace}:${target}" in
6822 yes:*)
6823 ospace_frag="config/mt-ospace"
6824 ;;
6825 :d30v-*)
6826 ospace_frag="config/mt-d30v"
6827 ;;
6828 :m32r-* | :d10v-* | :fr30-*)
6829 ospace_frag="config/mt-ospace"
6830 ;;
6831 no:* | :*)
6832 ;;
6833 *)
6834 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6835 ;;
6836esac
6837
671aa708
NN
6838# Some systems (e.g., one of the i386-aix systems the gas testers are
6839# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 6840tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
6841build_tooldir=${tooldir}
6842
671aa708
NN
6843# Create a .gdbinit file which runs the one in srcdir
6844# and tells GDB to look there for source files.
6845
6846if test -r ${srcdir}/.gdbinit ; then
6847 case ${srcdir} in
6848 .) ;;
6849 *) cat > ./.gdbinit <<EOF
6850# ${NO_EDIT}
6851dir ${srcdir}
6852dir .
6853source ${srcdir}/.gdbinit
6854EOF
6855 ;;
6856 esac
6857fi
6858
671aa708
NN
6859# Make sure that the compiler is able to generate an executable. If it
6860# can't, we are probably in trouble. We don't care whether we can run the
6861# executable--we might be using a cross compiler--we only care whether it
6862# can be created. At this point the main configure script has set CC.
6863we_are_ok=no
6864echo "int main () { return 0; }" > conftest.c
6865${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6866if test $? = 0 ; then
6867 if test -s conftest || test -s conftest.exe ; then
6868 we_are_ok=yes
6869 fi
1c710c3c 6870fi
671aa708
NN
6871case $we_are_ok in
6872 no)
6873 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6874 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6875 rm -f conftest*
6876 exit 1
6877 ;;
6878esac
6879rm -f conftest*
6880
d89f0ad6 6881# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
6882case "${host}" in
6883 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 6884 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 6885 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
6886 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6887esac
6888
d89f0ad6
AL
6889# On systems where the dynamic library environment variable is PATH,
6890# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6891# built executables to PATH.
6892if test "$RPATH_ENVVAR" = PATH; then
6893 GCC_SHLIB_SUBDIR=/shlib
6894else
6895 GCC_SHLIB_SUBDIR=
6896fi
6897
671aa708
NN
6898# Record target_configdirs and the configure arguments for target and
6899# build configuration in Makefile.
6900target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 6901build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 6902
ad1e5170
JR
6903# If we are building libgomp, bootstrap it.
6904if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6905 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6906fi
6907
671aa708
NN
6908# Determine whether gdb needs tk/tcl or not.
6909# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6910# and in that case we want gdb to be built without tk. Ugh!
6911# In fact I believe gdb is the *only* package directly dependent on tk,
6912# so we should be able to put the 'maybe's in unconditionally and
6913# leave out the maybe dependencies when enable_gdbtk is false. I'm not
6914# 100% sure that that's safe though.
e914a571 6915
b4f96efe 6916gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
6917case "$enable_gdbtk" in
6918 no)
6919 GDB_TK="" ;;
e914a571
AC
6920 yes)
6921 GDB_TK="${gdb_tk}" ;;
671aa708 6922 *)
e914a571
AC
6923 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6924 # distro. Eventually someone will fix this and move Insight, nee
6925 # gdbtk to a separate directory.
6926 if test -d ${srcdir}/gdb/gdbtk ; then
6927 GDB_TK="${gdb_tk}"
6928 else
6929 GDB_TK=""
6930 fi
6931 ;;
671aa708 6932esac
ef9db8d5
DJ
6933CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6934INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 6935
60975492 6936# Strip out unwanted targets.
8b87bb96
NN
6937
6938# While at that, we remove Makefiles if we were started for recursive
6939# configuration, so that the top-level Makefile reconfigures them,
6940# like we used to do when configure itself was recursive.
8b87bb96 6941
3e54529c
RW
6942# Loop over modules. We used to use the "$extrasub" feature from Autoconf
6943# but now we're fixing up the Makefile ourselves with the additional
6944# commands passed to AC_CONFIG_FILES. Use separate variables
6945# extrasub-{build,host,target} not because there is any reason to split
6946# the substitutions up that way, but only to remain below the limit of
6947# 99 commands in a script, for HP-UX sed.
6948# Do not nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 6949
79cd2b23
RW
6950case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6951 yes:yes:*\ gold\ *:*,c++,*) ;;
6952 yes:yes:*\ gold\ *:*)
6953 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
6954 ;;
6955esac
6956
ce521a9c 6957# Adjust the toplevel makefile according to whether bootstrap was selected.
e12c4094 6958case $enable_bootstrap in
f516a7da 6959 yes)
e12c4094
AO
6960 bootstrap_suffix=bootstrap
6961 BUILD_CONFIG=bootstrap-debug
6962 ;;
f516a7da 6963 no)
e12c4094
AO
6964 bootstrap_suffix=no-bootstrap
6965 BUILD_CONFIG=
6966 ;;
f516a7da
PB
6967esac
6968
e12c4094
AO
6969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6970$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
5646b7b9
AO
6971
6972
6973# Check whether --with-build-config was given.
6974if test "${with_build_config+set}" = set; then :
6975 withval=$with_build_config; case $with_build_config in
6976 yes) with_build_config= ;;
6977 no) with_build_config= BUILD_CONFIG= ;;
6978 esac
6979fi
6980
6981
e12c4094
AO
6982if test "x${with_build_config}" != x; then
6983 BUILD_CONFIG=$with_build_config
6984else
6985 case $BUILD_CONFIG in
6986 bootstrap-debug)
6987 if echo "int f (void) { return 0; }" > conftest.c &&
6988 ${CC} -c conftest.c &&
6989 mv conftest.o conftest.o.g0 &&
6990 ${CC} -c -g conftest.c &&
6991 mv conftest.o conftest.o.g &&
615c8ffa 6992 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
e12c4094
AO
6993 :
6994 else
6995 BUILD_CONFIG=
6996 fi
6997 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6998 ;;
6999 esac
7000fi
7001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7002$as_echo "$BUILD_CONFIG" >&6; }
7003
7004
3e54529c 7005extrasub_build=
23f6b2f9 7006for module in ${build_configdirs} ; do
5607edfd
PB
7007 if test -z "${no_recursion}" \
7008 && test -f ${build_subdir}/${module}/Makefile; then
7009 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7010 rm -f ${build_subdir}/${module}/Makefile
7011 fi
3e54529c 7012 extrasub_build="$extrasub_build
5607edfd
PB
7013/^@if build-$module\$/d
7014/^@endif build-$module\$/d
7015/^@if build-$module-$bootstrap_suffix\$/d
7016/^@endif build-$module-$bootstrap_suffix\$/d"
7017done
3e54529c 7018extrasub_host=
5607edfd 7019for module in ${configdirs} ; do
a6fbc1e2 7020 if test -z "${no_recursion}"; then
f063a9ed 7021 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
7022 if test -f ${file}; then
7023 echo 1>&2 "*** removing ${file} to force reconfigure"
7024 rm -f ${file}
7025 fi
7026 done
5607edfd 7027 fi
3e54529c 7028 extrasub_host="$extrasub_host
5607edfd
PB
7029/^@if $module\$/d
7030/^@endif $module\$/d
7031/^@if $module-$bootstrap_suffix\$/d
7032/^@endif $module-$bootstrap_suffix\$/d"
7033done
3e54529c 7034extrasub_target=
5607edfd
PB
7035for module in ${target_configdirs} ; do
7036 if test -z "${no_recursion}" \
7037 && test -f ${target_subdir}/${module}/Makefile; then
7038 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7039 rm -f ${target_subdir}/${module}/Makefile
7040 fi
00020c16
ILT
7041
7042 # We only bootstrap target libraries listed in bootstrap_target_libs.
7043 case $bootstrap_target_libs in
7044 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7045 *) target_bootstrap_suffix=no-bootstrap ;;
7046 esac
7047
3e54529c 7048 extrasub_target="$extrasub_target
5607edfd
PB
7049/^@if target-$module\$/d
7050/^@endif target-$module\$/d
00020c16
ILT
7051/^@if target-$module-$target_bootstrap_suffix\$/d
7052/^@endif target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
7053done
7054
3e54529c
RW
7055# Do the final fixup along with target modules.
7056extrasub_target="$extrasub_target
60975492 7057/^@if /,/^@endif /d"
671aa708
NN
7058
7059# Create the serialization dependencies. This uses a temporary file.
7060
5213506e
RW
7061# Check whether --enable-serial-configure was given.
7062if test "${enable_serial_configure+set}" = set; then :
7063 enableval=$enable_serial_configure;
7064fi
ade82b16
AO
7065
7066
bf1d3e81
NN
7067case ${enable_serial_configure} in
7068 yes)
7069 enable_serial_build_configure=yes
7070 enable_serial_host_configure=yes
7071 enable_serial_target_configure=yes
7072 ;;
7073esac
7074
671aa708
NN
7075# These force 'configure's to be done one at a time, to avoid problems
7076# with contention over a shared config.cache.
7077rm -f serdep.tmp
ade82b16 7078echo '# serdep.tmp' > serdep.tmp
671aa708 7079olditem=
bf1d3e81 7080test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
7081for item in ${build_configdirs} ; do
7082 case ${olditem} in
7083 "") ;;
ade82b16 7084 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
7085 esac
7086 olditem=${item}
7087done
7088olditem=
bf1d3e81 7089test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
7090for item in ${configdirs} ; do
7091 case ${olditem} in
7092 "") ;;
ade82b16 7093 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
7094 esac
7095 olditem=${item}
7096done
7097olditem=
bf1d3e81 7098test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
7099for item in ${target_configdirs} ; do
7100 case ${olditem} in
7101 "") ;;
ade82b16 7102 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
7103 esac
7104 olditem=${item}
7105done
7106serialization_dependencies=serdep.tmp
7107
7108
ade82b16 7109# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 7110# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
7111# might not want to pass down to subconfigures. The exception being
7112# --cache-file=/dev/null, which is used to turn off the use of cache
7113# files altogether, and which should be passed on to subconfigures.
7114# Also strip program-prefix, program-suffix, and program-transform-name,
7115# so that we can pass down a consistent program-transform-name.
1c710c3c 7116baseargs=
29a63921 7117tbaseargs=
1c710c3c
DJ
7118keep_next=no
7119skip_next=no
7120eval "set -- $ac_configure_args"
44bfc3ac
DJ
7121for ac_arg
7122do
1c710c3c
DJ
7123 if test X"$skip_next" = X"yes"; then
7124 skip_next=no
7125 continue
7126 fi
7127 if test X"$keep_next" = X"yes"; then
7128 case $ac_arg in
7129 *\'*)
7130 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7131 esac
7132 baseargs="$baseargs '$ac_arg'"
29a63921 7133 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
7134 keep_next=no
7135 continue
7136 fi
7137
7138 # Handle separated arguments. Based on the logic generated by
7139 # autoconf 2.59.
7140 case $ac_arg in
7141 *=* | --config-cache | -C | -disable-* | --disable-* \
7142 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7143 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7144 | -with-* | --with-* | -without-* | --without-* | --x)
7145 separate_arg=no
7146 ;;
7147 -*)
7148 separate_arg=yes
7149 ;;
7150 *)
7151 separate_arg=no
7152 ;;
7153 esac
7154
29a63921
AO
7155 skip_targ=no
7156 case $ac_arg in
7157
7158 --with-* | --without-*)
7159 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7160
7161 case $libopt in
7162 *[-_]include)
7163 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7164 ;;
7165 *[-_]lib)
7166 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7167 ;;
7168 *)
7169 lib=$libopt
7170 ;;
7171 esac
7172
7173
7174 case $lib in
33ad93b9 7175 mpc | mpfr | gmp | cloog)
29a63921
AO
7176 # If we're processing --with-$lib, --with-$lib-include or
7177 # --with-$lib-lib, for one of the libs above, and target is
7178 # different from host, don't pass the current argument to any
7179 # target library's configure.
7180 if test x$is_cross_compiler = xyes; then
7181 skip_targ=yes
7182 fi
7183 ;;
7184 esac
7185 ;;
7186 esac
7187
1c710c3c 7188 case "$ac_arg" in
f1a036e4
NC
7189 --cache-file=/dev/null | \
7190 -cache-file=/dev/null )
7191 # Handled here to avoid the test to skip args below.
7192 baseargs="$baseargs '$ac_arg'"
29a63921 7193 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
7194 # Assert: $separate_arg should always be no.
7195 keep_next=$separate_arg
7196 ;;
1c710c3c
DJ
7197 --no*)
7198 continue
7199 ;;
7200 --c* | \
7201 --sr* | \
7202 --ho* | \
7203 --bu* | \
7204 --t* | \
7205 --program-* | \
7206 -cache_file* | \
7207 -srcdir* | \
7208 -host* | \
7209 -build* | \
7210 -target* | \
7211 -program-prefix* | \
7212 -program-suffix* | \
7213 -program-transform-name* )
7214 skip_next=$separate_arg
7215 continue
7216 ;;
7217 -*)
7218 # An option. Add it.
7219 case $ac_arg in
7220 *\'*)
7221 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7222 esac
7223 baseargs="$baseargs '$ac_arg'"
29a63921
AO
7224 if test X"$skip_targ" = Xno; then
7225 tbaseargs="$tbaseargs '$ac_arg'"
7226 fi
1c710c3c
DJ
7227 keep_next=$separate_arg
7228 ;;
7229 *)
7230 # Either a variable assignment, or a nonopt (triplet). Don't
7231 # pass it down; let the Makefile handle this.
7232 continue
7233 ;;
7234 esac
7235done
7236# Remove the initial space we just introduced and, as these will be
7237# expanded by make, quote '$'.
7238baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7239
43bb47c2
DJ
7240# Add in --program-transform-name, after --program-prefix and
7241# --program-suffix have been applied to it. Autoconf has already
7242# doubled dollar signs and backslashes in program_transform_name; we want
7243# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7244# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7245# Also, because we want to override the logic in subdir configure scripts to
7246# choose program_transform_name, replace any s,x,x, with s,y,y,.
7247sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7248${program_transform_name}
7249EOF_SED
7250gcc_transform_name=`cat conftestsed.out`
7251rm -f conftestsed.out
7252baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 7253tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7254if test "$silent" = yes; then
7255 baseargs="$baseargs --silent"
29a63921 7256 tbaseargs="$tbaseargs --silent"
d9acb717 7257fi
0115d4a3 7258baseargs="$baseargs --disable-option-checking"
29a63921 7259tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 7260
ffedf511
RW
7261# Record and document user additions to sub configure arguments.
7262
7263
7264
7265
671aa708
NN
7266# For the build-side libraries, we just need to pretend we're native,
7267# and not use the same cache file. Multilibs are neither needed nor
7268# desired.
ffedf511 7269build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
671aa708
NN
7270
7271# For host modules, accept cache file option, or specification as blank.
7272case "${cache_file}" in
7273"") # empty
7274 cache_file_option="" ;;
7275/* | [A-Za-z]:[\\/]* ) # absolute path
7276 cache_file_option="--cache-file=${cache_file}" ;;
7277*) # relative path
7278 cache_file_option="--cache-file=../${cache_file}" ;;
7279esac
7280
09438bde
NN
7281# Host dirs don't like to share a cache file either, horribly enough.
7282# This seems to be due to autoconf 2.5x stupidity.
ffedf511 7283host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 7284
29a63921 7285target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
7286
7287# Passing a --with-cross-host argument lets the target libraries know
7288# whether they are being built with a cross-compiler or being built
7289# native. However, it would be better to use other mechanisms to make the
7290# sorts of decisions they want to make on this basis. Please consider
7291# this option to be deprecated. FIXME.
7292if test x${is_cross_compiler} = xyes ; then
1c710c3c 7293 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7294fi
7295
dc683a3f
RW
7296# Default to --enable-multilib.
7297if test x${enable_multilib} = x ; then
671aa708 7298 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 7299fi
671aa708
NN
7300
7301# Pass --with-newlib if appropriate. Note that target_configdirs has
7302# changed from the earlier setting of with_newlib.
7303if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7304 target_configargs="--with-newlib ${target_configargs}"
7305fi
7306
6b9eb62c
NN
7307# Different target subdirs use different values of certain variables
7308# (notably CXX). Worse, multilibs use *lots* of different values.
7309# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7310# it doesn't automatically accept command-line overrides of them.
7311# This means it's not safe for target subdirs to share a cache file,
7312# which is disgusting, but there you have it. Hopefully this can be
7313# fixed in future. It's still worthwhile to use a cache file for each
7314# directory. I think.
7315
bebcd931
MS
7316# Pass the appropriate --build, --host, --target and --cache-file arguments.
7317# We need to pass --target, as newer autoconf's requires consistency
7318# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7319target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7320
671aa708
NN
7321FLAGS_FOR_TARGET=
7322case " $target_configdirs " in
7323 *" newlib "*)
7324 case " $target_configargs " in
7325 *" --with-newlib "*)
7326 case "$target" in
5d571eaa 7327 *-cygwin*)
443e6238 7328 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5d571eaa 7329 ;;
671aa708
NN
7330 esac
7331
7332 # If we're not building GCC, don't discard standard headers.
7333 if test -d ${srcdir}/gcc; then
7334 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7335
7336 if test "${build}" != "${host}"; then
7337 # On Canadian crosses, CC_FOR_TARGET will have already been set
7338 # by `configure', so we won't have an opportunity to add -Bgcc/
7339 # to it. This is right: we don't want to search that directory
7340 # for binaries, but we want the header files in there, so add
7341 # them explicitly.
0463992b 7342 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
7343
7344 # Someone might think of using the pre-installed headers on
7345 # Canadian crosses, in case the installed compiler is not fully
7346 # compatible with the compiler being built. In this case, it
7347 # would be better to flag an error than risking having
7348 # incompatible object files being constructed. We can't
7349 # guarantee that an error will be flagged, but let's hope the
7350 # compiler will do it, when presented with incompatible header
7351 # files.
7352 fi
7353 fi
7354
7355 case "${target}-${is_cross_compiler}" in
f2a0e225 7356 i[3456789]86-*-linux*-no)
671aa708
NN
7357 # Here host == target, so we don't need to build gcc,
7358 # so we don't want to discard standard headers.
7359 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7360 ;;
7361 *)
7362 # If we're building newlib, use its generic headers last, but search
7363 # for any libc-related directories first (so make it the last -B
7364 # switch).
7365 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
7366
7367 # If we're building libgloss, find the startup file, simulator library
7368 # and linker script.
7369 case " $target_configdirs " in
7370 *" libgloss "*)
7371 # Look for startup file, simulator library and maybe linker script.
7372 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7373 # Look for libnosys.a in case the target needs it.
7374 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7375 # Most targets have the linker script in the source directory.
7376 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7377 ;;
7378 esac
671aa708
NN
7379 ;;
7380 esac
7381 ;;
7382 esac
7383 ;;
7384esac
5d571eaa 7385
b91f0a41 7386case "$target" in
5d571eaa
OS
7387 x86_64-*mingw* | *-w64-mingw*)
7388 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7389 # however, use a symlink named 'mingw' in ${prefix} .
7390 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7391 ;;
7392 *-mingw*)
7393 # MinGW can't be handled as Cygwin above since it does not use newlib.
7394 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'
7395 ;;
b91f0a41 7396esac
671aa708 7397
6691a79e
ME
7398# Allow the user to override the flags for
7399# our build compiler if desired.
f019adc1
MF
7400if test x"${build}" = x"${host}" ; then
7401 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7402 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7403 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7404fi
6691a79e 7405
671aa708
NN
7406# On Canadian crosses, we'll be searching the right directories for
7407# the previously-installed cross compiler, so don't bother to add
7408# flags for directories within the install tree of the compiler
7409# being built; programs in there won't even run.
7410if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7411 # Search for pre-installed headers if nothing else fits.
9124bc53 7412 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
7413fi
7414
7415if test "x${use_gnu_ld}" = x &&
7416 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7417 # Arrange for us to find uninstalled linker scripts.
215c351a 7418 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
7419fi
7420
e88a2c09
DD
7421# Search for other target-specific linker scripts and such.
7422case "${target}" in
3e19841a
PB
7423 mep*)
7424 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7425 ;;
e88a2c09
DD
7426esac
7427
671aa708 7428# Makefile fragments.
7b61653a
PE
7429for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7430do
7431 eval fragval=\$$frag
7432 if test $fragval != /dev/null; then
7433 eval $frag=${srcdir}/$fragval
7434 fi
7435done
671aa708
NN
7436
7437
7438
7439
7440
7441# Miscellanea: directories, flags, etc.
7442
7443
7444
7445
7446
7447
7448
d89f0ad6 7449
23f6b2f9 7450# Build module lists & subconfigure args.
671aa708
NN
7451
7452
7453
2abefe3d
PB
7454# Host module lists & subconfigure args.
7455
7456
7457
aae29963 7458
2abefe3d
PB
7459# Target module lists & subconfigure args.
7460
7461
7462
7463# Build tools.
7464
7465
7466
0999159b
PB
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
2abefe3d
PB
7481# Generate default definitions for YACC, M4, LEX and other programs that run
7482# on the build machine. These are used if the Makefile can't locate these
7483# programs in objdir.
7484MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7485
7486for ac_prog in 'bison -y' byacc yacc
7487do
1c710c3c 7488 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7489set dummy $ac_prog; ac_word=$2
5213506e
RW
7490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7491$as_echo_n "checking for $ac_word... " >&6; }
7492if test "${ac_cv_prog_YACC+set}" = set; then :
7493 $as_echo_n "(cached) " >&6
2abefe3d
PB
7494else
7495 if test -n "$YACC"; then
7496 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7497else
1c710c3c
DJ
7498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499for as_dir in $PATH
7500do
7501 IFS=$as_save_IFS
7502 test -z "$as_dir" && as_dir=.
5213506e
RW
7503 for ac_exec_ext in '' $ac_executable_extensions; do
7504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7505 ac_cv_prog_YACC="$ac_prog"
5213506e 7506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7507 break 2
7508 fi
7509done
5213506e
RW
7510 done
7511IFS=$as_save_IFS
1c710c3c 7512
2abefe3d
PB
7513fi
7514fi
1c710c3c 7515YACC=$ac_cv_prog_YACC
2abefe3d 7516if test -n "$YACC"; then
5213506e
RW
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7518$as_echo "$YACC" >&6; }
2abefe3d 7519else
5213506e
RW
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7521$as_echo "no" >&6; }
2abefe3d
PB
7522fi
7523
5213506e 7524
1c710c3c 7525 test -n "$YACC" && break
2abefe3d
PB
7526done
7527test -n "$YACC" || YACC="$MISSING bison -y"
7528
7529case " $build_configdirs " in
7530 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
7531esac
7532
7533for ac_prog in bison
7534do
1c710c3c 7535 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7536set dummy $ac_prog; ac_word=$2
5213506e
RW
7537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7538$as_echo_n "checking for $ac_word... " >&6; }
7539if test "${ac_cv_prog_BISON+set}" = set; then :
7540 $as_echo_n "(cached) " >&6
2abefe3d
PB
7541else
7542 if test -n "$BISON"; then
7543 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7544else
1c710c3c
DJ
7545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546for as_dir in $PATH
7547do
7548 IFS=$as_save_IFS
7549 test -z "$as_dir" && as_dir=.
5213506e
RW
7550 for ac_exec_ext in '' $ac_executable_extensions; do
7551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7552 ac_cv_prog_BISON="$ac_prog"
5213506e 7553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7554 break 2
7555 fi
7556done
5213506e
RW
7557 done
7558IFS=$as_save_IFS
1c710c3c 7559
2abefe3d
PB
7560fi
7561fi
1c710c3c 7562BISON=$ac_cv_prog_BISON
2abefe3d 7563if test -n "$BISON"; then
5213506e
RW
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7565$as_echo "$BISON" >&6; }
2abefe3d 7566else
5213506e
RW
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7568$as_echo "no" >&6; }
2abefe3d
PB
7569fi
7570
5213506e 7571
1c710c3c 7572 test -n "$BISON" && break
2abefe3d
PB
7573done
7574test -n "$BISON" || BISON="$MISSING bison"
7575
7576case " $build_configdirs " in
7577 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7578esac
7579
7580for ac_prog in gm4 gnum4 m4
7581do
1c710c3c 7582 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7583set dummy $ac_prog; ac_word=$2
5213506e
RW
7584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7585$as_echo_n "checking for $ac_word... " >&6; }
7586if test "${ac_cv_prog_M4+set}" = set; then :
7587 $as_echo_n "(cached) " >&6
2abefe3d
PB
7588else
7589 if test -n "$M4"; then
7590 ac_cv_prog_M4="$M4" # Let the user override the test.
7591else
1c710c3c
DJ
7592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593for as_dir in $PATH
7594do
7595 IFS=$as_save_IFS
7596 test -z "$as_dir" && as_dir=.
5213506e
RW
7597 for ac_exec_ext in '' $ac_executable_extensions; do
7598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7599 ac_cv_prog_M4="$ac_prog"
5213506e 7600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7601 break 2
7602 fi
7603done
5213506e
RW
7604 done
7605IFS=$as_save_IFS
1c710c3c 7606
2abefe3d
PB
7607fi
7608fi
1c710c3c 7609M4=$ac_cv_prog_M4
2abefe3d 7610if test -n "$M4"; then
5213506e
RW
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7612$as_echo "$M4" >&6; }
2abefe3d 7613else
5213506e
RW
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7615$as_echo "no" >&6; }
2abefe3d
PB
7616fi
7617
5213506e 7618
1c710c3c 7619 test -n "$M4" && break
2abefe3d
PB
7620done
7621test -n "$M4" || M4="$MISSING m4"
7622
7623case " $build_configdirs " in
7624 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7625esac
7626
7627for ac_prog in flex lex
7628do
1c710c3c 7629 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7630set dummy $ac_prog; ac_word=$2
5213506e
RW
7631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7632$as_echo_n "checking for $ac_word... " >&6; }
7633if test "${ac_cv_prog_LEX+set}" = set; then :
7634 $as_echo_n "(cached) " >&6
2abefe3d
PB
7635else
7636 if test -n "$LEX"; then
7637 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7638else
1c710c3c
DJ
7639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640for as_dir in $PATH
7641do
7642 IFS=$as_save_IFS
7643 test -z "$as_dir" && as_dir=.
5213506e
RW
7644 for ac_exec_ext in '' $ac_executable_extensions; do
7645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7646 ac_cv_prog_LEX="$ac_prog"
5213506e 7647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7648 break 2
7649 fi
7650done
5213506e
RW
7651 done
7652IFS=$as_save_IFS
1c710c3c 7653
2abefe3d
PB
7654fi
7655fi
1c710c3c 7656LEX=$ac_cv_prog_LEX
2abefe3d 7657if test -n "$LEX"; then
5213506e
RW
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7659$as_echo "$LEX" >&6; }
2abefe3d 7660else
5213506e
RW
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662$as_echo "no" >&6; }
2abefe3d
PB
7663fi
7664
5213506e 7665
1c710c3c 7666 test -n "$LEX" && break
2abefe3d
PB
7667done
7668test -n "$LEX" || LEX="$MISSING flex"
7669
7670case " $build_configdirs " in
7671 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7672 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7673esac
7674
7675for ac_prog in flex
7676do
1c710c3c 7677 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7678set dummy $ac_prog; ac_word=$2
5213506e
RW
7679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7680$as_echo_n "checking for $ac_word... " >&6; }
7681if test "${ac_cv_prog_FLEX+set}" = set; then :
7682 $as_echo_n "(cached) " >&6
2abefe3d
PB
7683else
7684 if test -n "$FLEX"; then
7685 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7686else
1c710c3c
DJ
7687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688for as_dir in $PATH
7689do
7690 IFS=$as_save_IFS
7691 test -z "$as_dir" && as_dir=.
5213506e
RW
7692 for ac_exec_ext in '' $ac_executable_extensions; do
7693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7694 ac_cv_prog_FLEX="$ac_prog"
5213506e 7695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7696 break 2
7697 fi
7698done
5213506e
RW
7699 done
7700IFS=$as_save_IFS
1c710c3c 7701
2abefe3d
PB
7702fi
7703fi
1c710c3c 7704FLEX=$ac_cv_prog_FLEX
2abefe3d 7705if test -n "$FLEX"; then
5213506e
RW
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7707$as_echo "$FLEX" >&6; }
2abefe3d 7708else
5213506e
RW
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710$as_echo "no" >&6; }
2abefe3d
PB
7711fi
7712
5213506e 7713
1c710c3c 7714 test -n "$FLEX" && break
2abefe3d
PB
7715done
7716test -n "$FLEX" || FLEX="$MISSING flex"
7717
7718case " $build_configdirs " in
7719 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7720esac
7721
7722for ac_prog in makeinfo
7723do
1c710c3c 7724 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7725set dummy $ac_prog; ac_word=$2
5213506e
RW
7726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7727$as_echo_n "checking for $ac_word... " >&6; }
7728if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7729 $as_echo_n "(cached) " >&6
2abefe3d
PB
7730else
7731 if test -n "$MAKEINFO"; then
7732 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7733else
1c710c3c
DJ
7734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7735for as_dir in $PATH
7736do
7737 IFS=$as_save_IFS
7738 test -z "$as_dir" && as_dir=.
5213506e
RW
7739 for ac_exec_ext in '' $ac_executable_extensions; do
7740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7741 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 7742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7743 break 2
7744 fi
7745done
5213506e
RW
7746 done
7747IFS=$as_save_IFS
1c710c3c 7748
2abefe3d
PB
7749fi
7750fi
1c710c3c 7751MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 7752if test -n "$MAKEINFO"; then
5213506e
RW
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7754$as_echo "$MAKEINFO" >&6; }
2abefe3d 7755else
5213506e
RW
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7757$as_echo "no" >&6; }
2abefe3d
PB
7758fi
7759
5213506e 7760
1c710c3c 7761 test -n "$MAKEINFO" && break
2abefe3d
PB
7762done
7763test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7764
7765case " $build_configdirs " in
7766 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7767 *)
7768
d18ff35a 7769 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
7770 # higher, else we use the "missing" dummy.
7771 if ${MAKEINFO} --version \
d18ff35a 7772 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
7773 :
7774 else
7775 MAKEINFO="$MISSING makeinfo"
7776 fi
7777 ;;
7778
7779esac
671aa708 7780
2abefe3d 7781# FIXME: expect and dejagnu may become build tools?
671aa708 7782
2abefe3d
PB
7783for ac_prog in expect
7784do
1c710c3c 7785 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7786set dummy $ac_prog; ac_word=$2
5213506e
RW
7787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7788$as_echo_n "checking for $ac_word... " >&6; }
7789if test "${ac_cv_prog_EXPECT+set}" = set; then :
7790 $as_echo_n "(cached) " >&6
2abefe3d
PB
7791else
7792 if test -n "$EXPECT"; then
7793 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7794else
1c710c3c
DJ
7795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796for as_dir in $PATH
7797do
7798 IFS=$as_save_IFS
7799 test -z "$as_dir" && as_dir=.
5213506e
RW
7800 for ac_exec_ext in '' $ac_executable_extensions; do
7801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7802 ac_cv_prog_EXPECT="$ac_prog"
5213506e 7803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7804 break 2
7805 fi
7806done
5213506e
RW
7807 done
7808IFS=$as_save_IFS
1c710c3c 7809
2abefe3d
PB
7810fi
7811fi
1c710c3c 7812EXPECT=$ac_cv_prog_EXPECT
2abefe3d 7813if test -n "$EXPECT"; then
5213506e
RW
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7815$as_echo "$EXPECT" >&6; }
2abefe3d 7816else
5213506e
RW
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818$as_echo "no" >&6; }
2abefe3d 7819fi
671aa708 7820
5213506e 7821
1c710c3c 7822 test -n "$EXPECT" && break
2abefe3d
PB
7823done
7824test -n "$EXPECT" || EXPECT="expect"
671aa708 7825
2abefe3d
PB
7826case " $configdirs " in
7827 *" expect "*)
7828 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7829 ;;
7830esac
671aa708 7831
2abefe3d
PB
7832for ac_prog in runtest
7833do
1c710c3c 7834 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7835set dummy $ac_prog; ac_word=$2
5213506e
RW
7836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7837$as_echo_n "checking for $ac_word... " >&6; }
7838if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7839 $as_echo_n "(cached) " >&6
2abefe3d
PB
7840else
7841 if test -n "$RUNTEST"; then
7842 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 7843else
1c710c3c
DJ
7844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845for as_dir in $PATH
7846do
7847 IFS=$as_save_IFS
7848 test -z "$as_dir" && as_dir=.
5213506e
RW
7849 for ac_exec_ext in '' $ac_executable_extensions; do
7850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7851 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 7852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7853 break 2
7854 fi
7855done
5213506e
RW
7856 done
7857IFS=$as_save_IFS
1c710c3c 7858
2abefe3d
PB
7859fi
7860fi
1c710c3c 7861RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 7862if test -n "$RUNTEST"; then
5213506e
RW
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7864$as_echo "$RUNTEST" >&6; }
2abefe3d 7865else
5213506e
RW
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7867$as_echo "no" >&6; }
2abefe3d 7868fi
671aa708 7869
5213506e 7870
1c710c3c 7871 test -n "$RUNTEST" && break
2abefe3d
PB
7872done
7873test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 7874
2abefe3d
PB
7875case " $configdirs " in
7876 *" dejagnu "*)
c394e891 7877 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
7878 ;;
7879esac
671aa708
NN
7880
7881
671aa708 7882# Host tools.
ca9f4b81
AO
7883ncn_tool_prefix=
7884test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7885ncn_target_tool_prefix=
7886test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7887
278a7a38
AO
7888
7889
7890if test -n "$AR"; then
7891 ac_cv_prog_AR=$AR
7892elif test -n "$ac_cv_prog_AR"; then
7893 AR=$ac_cv_prog_AR
7894fi
7895
7896if test -n "$ac_cv_prog_AR"; then
7897 for ncn_progname in ar; do
7898 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7899set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
7900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7901$as_echo_n "checking for $ac_word... " >&6; }
7902if test "${ac_cv_prog_AR+set}" = set; then :
7903 $as_echo_n "(cached) " >&6
278a7a38
AO
7904else
7905 if test -n "$AR"; then
7906 ac_cv_prog_AR="$AR" # Let the user override the test.
7907else
7908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909for as_dir in $PATH
7910do
7911 IFS=$as_save_IFS
7912 test -z "$as_dir" && as_dir=.
5213506e
RW
7913 for ac_exec_ext in '' $ac_executable_extensions; do
7914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 7915 ac_cv_prog_AR="${ncn_progname}"
5213506e 7916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
7917 break 2
7918 fi
7919done
5213506e
RW
7920 done
7921IFS=$as_save_IFS
278a7a38
AO
7922
7923fi
7924fi
7925AR=$ac_cv_prog_AR
7926if test -n "$AR"; then
5213506e
RW
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7928$as_echo "$AR" >&6; }
278a7a38 7929else
5213506e
RW
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7931$as_echo "no" >&6; }
278a7a38
AO
7932fi
7933
5213506e 7934
278a7a38
AO
7935 done
7936fi
7937
7938for ncn_progname in ar; do
2693c0b0
PB
7939 if test -n "$ncn_tool_prefix"; then
7940 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7941set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
7942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7943$as_echo_n "checking for $ac_word... " >&6; }
7944if test "${ac_cv_prog_AR+set}" = set; then :
7945 $as_echo_n "(cached) " >&6
ca9f4b81
AO
7946else
7947 if test -n "$AR"; then
7948 ac_cv_prog_AR="$AR" # Let the user override the test.
7949else
1c710c3c
DJ
7950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951for as_dir in $PATH
7952do
7953 IFS=$as_save_IFS
7954 test -z "$as_dir" && as_dir=.
5213506e
RW
7955 for ac_exec_ext in '' $ac_executable_extensions; do
7956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7957 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 7958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7959 break 2
7960 fi
7961done
5213506e
RW
7962 done
7963IFS=$as_save_IFS
1c710c3c 7964
ca9f4b81
AO
7965fi
7966fi
1c710c3c 7967AR=$ac_cv_prog_AR
ca9f4b81 7968if test -n "$AR"; then
5213506e
RW
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7970$as_echo "$AR" >&6; }
ca9f4b81 7971else
5213506e
RW
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7973$as_echo "no" >&6; }
ca9f4b81
AO
7974fi
7975
5213506e 7976
2693c0b0
PB
7977 fi
7978 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7979 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7980set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
7981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7982$as_echo_n "checking for $ac_word... " >&6; }
7983if test "${ac_cv_prog_AR+set}" = set; then :
7984 $as_echo_n "(cached) " >&6
ca9f4b81 7985else
2693c0b0 7986 if test -n "$AR"; then
af71363e
AS
7987 ac_cv_prog_AR="$AR" # Let the user override the test.
7988else
1c710c3c
DJ
7989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7990for as_dir in $PATH
7991do
7992 IFS=$as_save_IFS
7993 test -z "$as_dir" && as_dir=.
5213506e
RW
7994 for ac_exec_ext in '' $ac_executable_extensions; do
7995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7996 ac_cv_prog_AR="${ncn_progname}"
5213506e 7997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7998 break 2
7999 fi
8000done
5213506e
RW
8001 done
8002IFS=$as_save_IFS
1c710c3c 8003
ca9f4b81
AO
8004fi
8005fi
1c710c3c 8006AR=$ac_cv_prog_AR
2693c0b0 8007if test -n "$AR"; then
5213506e
RW
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8009$as_echo "$AR" >&6; }
ca9f4b81 8010else
5213506e
RW
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012$as_echo "no" >&6; }
ca9f4b81 8013fi
1c710c3c 8014
5213506e 8015
2693c0b0
PB
8016 fi
8017 test -n "$ac_cv_prog_AR" && break
8018done
8019
8020if test -z "$ac_cv_prog_AR" ; then
8021 set dummy ar
8022 if test $build = $host ; then
8023 AR="$2"
ca9f4b81 8024 else
2693c0b0 8025 AR="${ncn_tool_prefix}$2"
ca9f4b81 8026 fi
ca9f4b81
AO
8027fi
8028
278a7a38
AO
8029
8030
8031if test -n "$AS"; then
8032 ac_cv_prog_AS=$AS
8033elif test -n "$ac_cv_prog_AS"; then
8034 AS=$ac_cv_prog_AS
8035fi
8036
8037if test -n "$ac_cv_prog_AS"; then
8038 for ncn_progname in as; do
8039 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8040set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8042$as_echo_n "checking for $ac_word... " >&6; }
8043if test "${ac_cv_prog_AS+set}" = set; then :
8044 $as_echo_n "(cached) " >&6
278a7a38
AO
8045else
8046 if test -n "$AS"; then
8047 ac_cv_prog_AS="$AS" # Let the user override the test.
8048else
8049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8050for as_dir in $PATH
8051do
8052 IFS=$as_save_IFS
8053 test -z "$as_dir" && as_dir=.
5213506e
RW
8054 for ac_exec_ext in '' $ac_executable_extensions; do
8055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8056 ac_cv_prog_AS="${ncn_progname}"
5213506e 8057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8058 break 2
8059 fi
8060done
5213506e
RW
8061 done
8062IFS=$as_save_IFS
278a7a38
AO
8063
8064fi
8065fi
8066AS=$ac_cv_prog_AS
8067if test -n "$AS"; then
5213506e
RW
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8069$as_echo "$AS" >&6; }
278a7a38 8070else
5213506e
RW
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8072$as_echo "no" >&6; }
278a7a38
AO
8073fi
8074
5213506e 8075
278a7a38
AO
8076 done
8077fi
8078
8079for ncn_progname in as; do
2693c0b0
PB
8080 if test -n "$ncn_tool_prefix"; then
8081 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8082set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8084$as_echo_n "checking for $ac_word... " >&6; }
8085if test "${ac_cv_prog_AS+set}" = set; then :
8086 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8087else
8088 if test -n "$AS"; then
8089 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 8090else
1c710c3c
DJ
8091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8092for as_dir in $PATH
8093do
8094 IFS=$as_save_IFS
8095 test -z "$as_dir" && as_dir=.
5213506e
RW
8096 for ac_exec_ext in '' $ac_executable_extensions; do
8097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8098 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 8099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8100 break 2
8101 fi
8102done
5213506e
RW
8103 done
8104IFS=$as_save_IFS
1c710c3c 8105
ca9f4b81
AO
8106fi
8107fi
1c710c3c 8108AS=$ac_cv_prog_AS
ca9f4b81 8109if test -n "$AS"; then
5213506e
RW
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8111$as_echo "$AS" >&6; }
ca9f4b81 8112else
5213506e
RW
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8114$as_echo "no" >&6; }
ca9f4b81
AO
8115fi
8116
5213506e 8117
2693c0b0
PB
8118 fi
8119 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8120 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8121set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8123$as_echo_n "checking for $ac_word... " >&6; }
8124if test "${ac_cv_prog_AS+set}" = set; then :
8125 $as_echo_n "(cached) " >&6
ca9f4b81 8126else
2693c0b0
PB
8127 if test -n "$AS"; then
8128 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 8129else
1c710c3c
DJ
8130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8131for as_dir in $PATH
8132do
8133 IFS=$as_save_IFS
8134 test -z "$as_dir" && as_dir=.
5213506e
RW
8135 for ac_exec_ext in '' $ac_executable_extensions; do
8136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8137 ac_cv_prog_AS="${ncn_progname}"
5213506e 8138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8139 break 2
8140 fi
8141done
5213506e
RW
8142 done
8143IFS=$as_save_IFS
1c710c3c 8144
ca9f4b81
AO
8145fi
8146fi
1c710c3c 8147AS=$ac_cv_prog_AS
2693c0b0 8148if test -n "$AS"; then
5213506e
RW
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8150$as_echo "$AS" >&6; }
ca9f4b81 8151else
5213506e
RW
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8153$as_echo "no" >&6; }
ca9f4b81 8154fi
1c710c3c 8155
5213506e 8156
2693c0b0
PB
8157 fi
8158 test -n "$ac_cv_prog_AS" && break
8159done
8160
8161if test -z "$ac_cv_prog_AS" ; then
8162 set dummy as
8163 if test $build = $host ; then
8164 AS="$2"
ca9f4b81 8165 else
2693c0b0 8166 AS="${ncn_tool_prefix}$2"
ca9f4b81 8167 fi
ca9f4b81
AO
8168fi
8169
278a7a38
AO
8170
8171
8172if test -n "$DLLTOOL"; then
8173 ac_cv_prog_DLLTOOL=$DLLTOOL
8174elif test -n "$ac_cv_prog_DLLTOOL"; then
8175 DLLTOOL=$ac_cv_prog_DLLTOOL
8176fi
8177
8178if test -n "$ac_cv_prog_DLLTOOL"; then
8179 for ncn_progname in dlltool; do
8180 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8181set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8183$as_echo_n "checking for $ac_word... " >&6; }
8184if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8185 $as_echo_n "(cached) " >&6
278a7a38
AO
8186else
8187 if test -n "$DLLTOOL"; then
8188 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8189else
8190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8191for as_dir in $PATH
8192do
8193 IFS=$as_save_IFS
8194 test -z "$as_dir" && as_dir=.
5213506e
RW
8195 for ac_exec_ext in '' $ac_executable_extensions; do
8196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8197 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8199 break 2
8200 fi
8201done
5213506e
RW
8202 done
8203IFS=$as_save_IFS
278a7a38
AO
8204
8205fi
8206fi
8207DLLTOOL=$ac_cv_prog_DLLTOOL
8208if test -n "$DLLTOOL"; then
5213506e
RW
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8210$as_echo "$DLLTOOL" >&6; }
278a7a38 8211else
5213506e
RW
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8213$as_echo "no" >&6; }
278a7a38
AO
8214fi
8215
5213506e 8216
278a7a38
AO
8217 done
8218fi
8219
8220for ncn_progname in dlltool; do
2693c0b0
PB
8221 if test -n "$ncn_tool_prefix"; then
8222 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8223set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8225$as_echo_n "checking for $ac_word... " >&6; }
8226if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8227 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8228else
8229 if test -n "$DLLTOOL"; then
8230 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8231else
1c710c3c
DJ
8232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233for as_dir in $PATH
8234do
8235 IFS=$as_save_IFS
8236 test -z "$as_dir" && as_dir=.
5213506e
RW
8237 for ac_exec_ext in '' $ac_executable_extensions; do
8238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8239 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8241 break 2
8242 fi
8243done
5213506e
RW
8244 done
8245IFS=$as_save_IFS
1c710c3c 8246
ca9f4b81
AO
8247fi
8248fi
1c710c3c 8249DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8250if test -n "$DLLTOOL"; then
5213506e
RW
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8252$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8253else
5213506e
RW
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8255$as_echo "no" >&6; }
ca9f4b81
AO
8256fi
8257
5213506e 8258
2693c0b0
PB
8259 fi
8260 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8261 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8262set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8264$as_echo_n "checking for $ac_word... " >&6; }
8265if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8266 $as_echo_n "(cached) " >&6
ca9f4b81 8267else
2693c0b0
PB
8268 if test -n "$DLLTOOL"; then
8269 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8270else
1c710c3c
DJ
8271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272for as_dir in $PATH
8273do
8274 IFS=$as_save_IFS
8275 test -z "$as_dir" && as_dir=.
5213506e
RW
8276 for ac_exec_ext in '' $ac_executable_extensions; do
8277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8278 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8280 break 2
8281 fi
8282done
5213506e
RW
8283 done
8284IFS=$as_save_IFS
1c710c3c 8285
ca9f4b81
AO
8286fi
8287fi
1c710c3c 8288DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8289if test -n "$DLLTOOL"; then
5213506e
RW
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8291$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8292else
5213506e
RW
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294$as_echo "no" >&6; }
ca9f4b81 8295fi
1c710c3c 8296
5213506e 8297
2693c0b0
PB
8298 fi
8299 test -n "$ac_cv_prog_DLLTOOL" && break
8300done
8301
8302if test -z "$ac_cv_prog_DLLTOOL" ; then
8303 set dummy dlltool
8304 if test $build = $host ; then
8305 DLLTOOL="$2"
ca9f4b81 8306 else
2693c0b0 8307 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8308 fi
ca9f4b81
AO
8309fi
8310
278a7a38
AO
8311
8312
8313if test -n "$LD"; then
8314 ac_cv_prog_LD=$LD
8315elif test -n "$ac_cv_prog_LD"; then
8316 LD=$ac_cv_prog_LD
8317fi
8318
8319if test -n "$ac_cv_prog_LD"; then
8320 for ncn_progname in ld; do
8321 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8322set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8324$as_echo_n "checking for $ac_word... " >&6; }
8325if test "${ac_cv_prog_LD+set}" = set; then :
8326 $as_echo_n "(cached) " >&6
278a7a38
AO
8327else
8328 if test -n "$LD"; then
8329 ac_cv_prog_LD="$LD" # Let the user override the test.
8330else
8331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8332for as_dir in $PATH
8333do
8334 IFS=$as_save_IFS
8335 test -z "$as_dir" && as_dir=.
5213506e
RW
8336 for ac_exec_ext in '' $ac_executable_extensions; do
8337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8338 ac_cv_prog_LD="${ncn_progname}"
5213506e 8339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8340 break 2
8341 fi
8342done
5213506e
RW
8343 done
8344IFS=$as_save_IFS
278a7a38
AO
8345
8346fi
8347fi
8348LD=$ac_cv_prog_LD
8349if test -n "$LD"; then
5213506e
RW
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8351$as_echo "$LD" >&6; }
278a7a38 8352else
5213506e
RW
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8354$as_echo "no" >&6; }
278a7a38
AO
8355fi
8356
5213506e 8357
278a7a38
AO
8358 done
8359fi
8360
8361for ncn_progname in ld; do
2693c0b0
PB
8362 if test -n "$ncn_tool_prefix"; then
8363 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8364set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8366$as_echo_n "checking for $ac_word... " >&6; }
8367if test "${ac_cv_prog_LD+set}" = set; then :
8368 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8369else
8370 if test -n "$LD"; then
8371 ac_cv_prog_LD="$LD" # Let the user override the test.
8372else
1c710c3c
DJ
8373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8374for as_dir in $PATH
8375do
8376 IFS=$as_save_IFS
8377 test -z "$as_dir" && as_dir=.
5213506e
RW
8378 for ac_exec_ext in '' $ac_executable_extensions; do
8379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8380 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 8381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8382 break 2
8383 fi
8384done
5213506e
RW
8385 done
8386IFS=$as_save_IFS
1c710c3c 8387
ca9f4b81
AO
8388fi
8389fi
1c710c3c 8390LD=$ac_cv_prog_LD
ca9f4b81 8391if test -n "$LD"; then
5213506e
RW
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8393$as_echo "$LD" >&6; }
ca9f4b81 8394else
5213506e
RW
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8396$as_echo "no" >&6; }
ca9f4b81
AO
8397fi
8398
5213506e 8399
2693c0b0
PB
8400 fi
8401 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8402 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8403set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8405$as_echo_n "checking for $ac_word... " >&6; }
8406if test "${ac_cv_prog_LD+set}" = set; then :
8407 $as_echo_n "(cached) " >&6
ca9f4b81 8408else
2693c0b0
PB
8409 if test -n "$LD"; then
8410 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 8411else
1c710c3c
DJ
8412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8413for as_dir in $PATH
8414do
8415 IFS=$as_save_IFS
8416 test -z "$as_dir" && as_dir=.
5213506e
RW
8417 for ac_exec_ext in '' $ac_executable_extensions; do
8418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8419 ac_cv_prog_LD="${ncn_progname}"
5213506e 8420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8421 break 2
8422 fi
8423done
5213506e
RW
8424 done
8425IFS=$as_save_IFS
1c710c3c 8426
ca9f4b81
AO
8427fi
8428fi
1c710c3c 8429LD=$ac_cv_prog_LD
2693c0b0 8430if test -n "$LD"; then
5213506e
RW
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8432$as_echo "$LD" >&6; }
ca9f4b81 8433else
5213506e
RW
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435$as_echo "no" >&6; }
ca9f4b81 8436fi
1c710c3c 8437
5213506e 8438
2693c0b0
PB
8439 fi
8440 test -n "$ac_cv_prog_LD" && break
8441done
8442
8443if test -z "$ac_cv_prog_LD" ; then
8444 set dummy ld
8445 if test $build = $host ; then
8446 LD="$2"
ca9f4b81 8447 else
2693c0b0 8448 LD="${ncn_tool_prefix}$2"
ca9f4b81 8449 fi
ca9f4b81
AO
8450fi
8451
278a7a38
AO
8452
8453
8454if test -n "$LIPO"; then
8455 ac_cv_prog_LIPO=$LIPO
8456elif test -n "$ac_cv_prog_LIPO"; then
8457 LIPO=$ac_cv_prog_LIPO
8458fi
8459
8460if test -n "$ac_cv_prog_LIPO"; then
8461 for ncn_progname in lipo; do
8462 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8463set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8465$as_echo_n "checking for $ac_word... " >&6; }
8466if test "${ac_cv_prog_LIPO+set}" = set; then :
8467 $as_echo_n "(cached) " >&6
278a7a38
AO
8468else
8469 if test -n "$LIPO"; then
8470 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8471else
8472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8473for as_dir in $PATH
8474do
8475 IFS=$as_save_IFS
8476 test -z "$as_dir" && as_dir=.
5213506e
RW
8477 for ac_exec_ext in '' $ac_executable_extensions; do
8478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8479 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8481 break 2
8482 fi
8483done
5213506e
RW
8484 done
8485IFS=$as_save_IFS
278a7a38
AO
8486
8487fi
8488fi
8489LIPO=$ac_cv_prog_LIPO
8490if test -n "$LIPO"; then
5213506e
RW
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8492$as_echo "$LIPO" >&6; }
278a7a38 8493else
5213506e
RW
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8495$as_echo "no" >&6; }
278a7a38
AO
8496fi
8497
5213506e 8498
278a7a38
AO
8499 done
8500fi
8501
8502for ncn_progname in lipo; do
2abefe3d
PB
8503 if test -n "$ncn_tool_prefix"; then
8504 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8505set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8507$as_echo_n "checking for $ac_word... " >&6; }
8508if test "${ac_cv_prog_LIPO+set}" = set; then :
8509 $as_echo_n "(cached) " >&6
2abefe3d
PB
8510else
8511 if test -n "$LIPO"; then
8512 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8513else
1c710c3c
DJ
8514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8515for as_dir in $PATH
8516do
8517 IFS=$as_save_IFS
8518 test -z "$as_dir" && as_dir=.
5213506e
RW
8519 for ac_exec_ext in '' $ac_executable_extensions; do
8520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8521 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 8522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8523 break 2
8524 fi
8525done
5213506e
RW
8526 done
8527IFS=$as_save_IFS
1c710c3c 8528
2abefe3d
PB
8529fi
8530fi
1c710c3c 8531LIPO=$ac_cv_prog_LIPO
2abefe3d 8532if test -n "$LIPO"; then
5213506e
RW
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8534$as_echo "$LIPO" >&6; }
2abefe3d 8535else
5213506e
RW
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8537$as_echo "no" >&6; }
2abefe3d
PB
8538fi
8539
5213506e 8540
2abefe3d
PB
8541 fi
8542 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8543 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8544set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8546$as_echo_n "checking for $ac_word... " >&6; }
8547if test "${ac_cv_prog_LIPO+set}" = set; then :
8548 $as_echo_n "(cached) " >&6
2abefe3d
PB
8549else
8550 if test -n "$LIPO"; then
8551 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8552else
1c710c3c
DJ
8553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8554for as_dir in $PATH
8555do
8556 IFS=$as_save_IFS
8557 test -z "$as_dir" && as_dir=.
5213506e
RW
8558 for ac_exec_ext in '' $ac_executable_extensions; do
8559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8560 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8562 break 2
8563 fi
8564done
5213506e
RW
8565 done
8566IFS=$as_save_IFS
1c710c3c 8567
2abefe3d
PB
8568fi
8569fi
1c710c3c 8570LIPO=$ac_cv_prog_LIPO
2abefe3d 8571if test -n "$LIPO"; then
5213506e
RW
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8573$as_echo "$LIPO" >&6; }
2abefe3d 8574else
5213506e
RW
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8576$as_echo "no" >&6; }
2abefe3d 8577fi
1c710c3c 8578
5213506e 8579
2abefe3d
PB
8580 fi
8581 test -n "$ac_cv_prog_LIPO" && break
8582done
8583
8584if test -z "$ac_cv_prog_LIPO" ; then
8585 set dummy lipo
8586 if test $build = $host ; then
8587 LIPO="$2"
8588 else
8589 LIPO="${ncn_tool_prefix}$2"
8590 fi
8591fi
8592
278a7a38
AO
8593
8594
8595if test -n "$NM"; then
8596 ac_cv_prog_NM=$NM
8597elif test -n "$ac_cv_prog_NM"; then
8598 NM=$ac_cv_prog_NM
8599fi
8600
8601if test -n "$ac_cv_prog_NM"; then
8602 for ncn_progname in nm; do
8603 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8604set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8606$as_echo_n "checking for $ac_word... " >&6; }
8607if test "${ac_cv_prog_NM+set}" = set; then :
8608 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8609else
8610 if test -n "$NM"; then
8611 ac_cv_prog_NM="$NM" # Let the user override the test.
8612else
1c710c3c
DJ
8613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8614for as_dir in $PATH
8615do
8616 IFS=$as_save_IFS
8617 test -z "$as_dir" && as_dir=.
5213506e
RW
8618 for ac_exec_ext in '' $ac_executable_extensions; do
8619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8620 ac_cv_prog_NM="${ncn_progname}"
5213506e 8621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8622 break 2
8623 fi
8624done
5213506e
RW
8625 done
8626IFS=$as_save_IFS
1c710c3c 8627
ca9f4b81
AO
8628fi
8629fi
1c710c3c 8630NM=$ac_cv_prog_NM
ca9f4b81 8631if test -n "$NM"; then
5213506e
RW
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8633$as_echo "$NM" >&6; }
ca9f4b81 8634else
5213506e
RW
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8636$as_echo "no" >&6; }
ca9f4b81
AO
8637fi
8638
5213506e 8639
278a7a38
AO
8640 done
8641fi
8642
8643for ncn_progname in nm; do
8644 if test -n "$ncn_tool_prefix"; then
8645 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8646set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8648$as_echo_n "checking for $ac_word... " >&6; }
8649if test "${ac_cv_prog_NM+set}" = set; then :
8650 $as_echo_n "(cached) " >&6
ca9f4b81 8651else
2693c0b0
PB
8652 if test -n "$NM"; then
8653 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 8654else
1c710c3c
DJ
8655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8656for as_dir in $PATH
8657do
8658 IFS=$as_save_IFS
8659 test -z "$as_dir" && as_dir=.
5213506e
RW
8660 for ac_exec_ext in '' $ac_executable_extensions; do
8661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8662 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 8663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8664 break 2
8665 fi
8666done
5213506e
RW
8667 done
8668IFS=$as_save_IFS
1c710c3c 8669
ca9f4b81
AO
8670fi
8671fi
1c710c3c 8672NM=$ac_cv_prog_NM
2693c0b0 8673if test -n "$NM"; then
5213506e
RW
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8675$as_echo "$NM" >&6; }
ca9f4b81 8676else
5213506e
RW
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8678$as_echo "no" >&6; }
ca9f4b81 8679fi
1c710c3c 8680
5213506e 8681
2693c0b0 8682 fi
278a7a38
AO
8683 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8684 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8685set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8687$as_echo_n "checking for $ac_word... " >&6; }
8688if test "${ac_cv_prog_NM+set}" = set; then :
8689 $as_echo_n "(cached) " >&6
278a7a38
AO
8690else
8691 if test -n "$NM"; then
8692 ac_cv_prog_NM="$NM" # Let the user override the test.
8693else
8694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8695for as_dir in $PATH
8696do
8697 IFS=$as_save_IFS
8698 test -z "$as_dir" && as_dir=.
5213506e
RW
8699 for ac_exec_ext in '' $ac_executable_extensions; do
8700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8701 ac_cv_prog_NM="${ncn_progname}"
5213506e 8702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8703 break 2
8704 fi
8705done
5213506e
RW
8706 done
8707IFS=$as_save_IFS
278a7a38
AO
8708
8709fi
8710fi
8711NM=$ac_cv_prog_NM
8712if test -n "$NM"; then
5213506e
RW
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8714$as_echo "$NM" >&6; }
278a7a38 8715else
5213506e
RW
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8717$as_echo "no" >&6; }
278a7a38
AO
8718fi
8719
5213506e 8720
278a7a38
AO
8721 fi
8722 test -n "$ac_cv_prog_NM" && break
8723done
8724
8725if test -z "$ac_cv_prog_NM" ; then
8726 set dummy nm
8727 if test $build = $host ; then
8728 NM="$2"
8729 else
8730 NM="${ncn_tool_prefix}$2"
8731 fi
8732fi
8733
8734
8735
8736if test -n "$RANLIB"; then
8737 ac_cv_prog_RANLIB=$RANLIB
8738elif test -n "$ac_cv_prog_RANLIB"; then
8739 RANLIB=$ac_cv_prog_RANLIB
8740fi
8741
8742if test -n "$ac_cv_prog_RANLIB"; then
8743 for ncn_progname in ranlib; do
8744 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8745set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8747$as_echo_n "checking for $ac_word... " >&6; }
8748if test "${ac_cv_prog_RANLIB+set}" = set; then :
8749 $as_echo_n "(cached) " >&6
278a7a38
AO
8750else
8751 if test -n "$RANLIB"; then
8752 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8753else
8754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8755for as_dir in $PATH
8756do
8757 IFS=$as_save_IFS
8758 test -z "$as_dir" && as_dir=.
5213506e
RW
8759 for ac_exec_ext in '' $ac_executable_extensions; do
8760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8761 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8763 break 2
8764 fi
8765done
5213506e
RW
8766 done
8767IFS=$as_save_IFS
278a7a38
AO
8768
8769fi
8770fi
8771RANLIB=$ac_cv_prog_RANLIB
8772if test -n "$RANLIB"; then
5213506e
RW
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8774$as_echo "$RANLIB" >&6; }
278a7a38 8775else
5213506e
RW
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8777$as_echo "no" >&6; }
278a7a38
AO
8778fi
8779
5213506e 8780
278a7a38
AO
8781 done
8782fi
ca9f4b81 8783
278a7a38 8784for ncn_progname in ranlib; do
2693c0b0
PB
8785 if test -n "$ncn_tool_prefix"; then
8786 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8787set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8789$as_echo_n "checking for $ac_word... " >&6; }
8790if test "${ac_cv_prog_RANLIB+set}" = set; then :
8791 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8792else
8793 if test -n "$RANLIB"; then
8794 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8795else
1c710c3c
DJ
8796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8797for as_dir in $PATH
8798do
8799 IFS=$as_save_IFS
8800 test -z "$as_dir" && as_dir=.
5213506e
RW
8801 for ac_exec_ext in '' $ac_executable_extensions; do
8802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8803 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 8804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8805 break 2
8806 fi
8807done
5213506e
RW
8808 done
8809IFS=$as_save_IFS
1c710c3c 8810
ca9f4b81
AO
8811fi
8812fi
1c710c3c 8813RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 8814if test -n "$RANLIB"; then
5213506e
RW
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8816$as_echo "$RANLIB" >&6; }
ca9f4b81 8817else
5213506e
RW
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8819$as_echo "no" >&6; }
ca9f4b81
AO
8820fi
8821
5213506e 8822
2693c0b0
PB
8823 fi
8824 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8825 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8826set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8828$as_echo_n "checking for $ac_word... " >&6; }
8829if test "${ac_cv_prog_RANLIB+set}" = set; then :
8830 $as_echo_n "(cached) " >&6
ca9f4b81 8831else
2693c0b0
PB
8832 if test -n "$RANLIB"; then
8833 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 8834else
1c710c3c
DJ
8835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8836for as_dir in $PATH
8837do
8838 IFS=$as_save_IFS
8839 test -z "$as_dir" && as_dir=.
5213506e
RW
8840 for ac_exec_ext in '' $ac_executable_extensions; do
8841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8842 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8844 break 2
8845 fi
8846done
5213506e
RW
8847 done
8848IFS=$as_save_IFS
1c710c3c 8849
ca9f4b81
AO
8850fi
8851fi
1c710c3c 8852RANLIB=$ac_cv_prog_RANLIB
2693c0b0 8853if test -n "$RANLIB"; then
5213506e
RW
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8855$as_echo "$RANLIB" >&6; }
ca9f4b81 8856else
5213506e
RW
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8858$as_echo "no" >&6; }
ca9f4b81 8859fi
1c710c3c 8860
5213506e 8861
ca9f4b81 8862 fi
2693c0b0
PB
8863 test -n "$ac_cv_prog_RANLIB" && break
8864done
8865
8866if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 8867 RANLIB="true"
ca9f4b81
AO
8868fi
8869
278a7a38
AO
8870
8871
8872if test -n "$STRIP"; then
8873 ac_cv_prog_STRIP=$STRIP
8874elif test -n "$ac_cv_prog_STRIP"; then
8875 STRIP=$ac_cv_prog_STRIP
8876fi
8877
8878if test -n "$ac_cv_prog_STRIP"; then
8879 for ncn_progname in strip; do
8880 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8881set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8883$as_echo_n "checking for $ac_word... " >&6; }
8884if test "${ac_cv_prog_STRIP+set}" = set; then :
8885 $as_echo_n "(cached) " >&6
278a7a38
AO
8886else
8887 if test -n "$STRIP"; then
8888 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8889else
8890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8891for as_dir in $PATH
8892do
8893 IFS=$as_save_IFS
8894 test -z "$as_dir" && as_dir=.
5213506e
RW
8895 for ac_exec_ext in '' $ac_executable_extensions; do
8896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8897 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 8898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8899 break 2
8900 fi
8901done
5213506e
RW
8902 done
8903IFS=$as_save_IFS
278a7a38
AO
8904
8905fi
8906fi
8907STRIP=$ac_cv_prog_STRIP
8908if test -n "$STRIP"; then
5213506e
RW
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8910$as_echo "$STRIP" >&6; }
278a7a38 8911else
5213506e
RW
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8913$as_echo "no" >&6; }
278a7a38
AO
8914fi
8915
5213506e 8916
278a7a38
AO
8917 done
8918fi
8919
8920for ncn_progname in strip; do
2abefe3d
PB
8921 if test -n "$ncn_tool_prefix"; then
8922 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8923set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8925$as_echo_n "checking for $ac_word... " >&6; }
8926if test "${ac_cv_prog_STRIP+set}" = set; then :
8927 $as_echo_n "(cached) " >&6
2abefe3d
PB
8928else
8929 if test -n "$STRIP"; then
8930 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8931else
1c710c3c
DJ
8932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8933for as_dir in $PATH
8934do
8935 IFS=$as_save_IFS
8936 test -z "$as_dir" && as_dir=.
5213506e
RW
8937 for ac_exec_ext in '' $ac_executable_extensions; do
8938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8939 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 8940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8941 break 2
8942 fi
8943done
5213506e
RW
8944 done
8945IFS=$as_save_IFS
1c710c3c 8946
2abefe3d
PB
8947fi
8948fi
1c710c3c 8949STRIP=$ac_cv_prog_STRIP
2abefe3d 8950if test -n "$STRIP"; then
5213506e
RW
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8952$as_echo "$STRIP" >&6; }
2abefe3d 8953else
5213506e
RW
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8955$as_echo "no" >&6; }
2abefe3d
PB
8956fi
8957
5213506e 8958
2abefe3d
PB
8959 fi
8960 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8961 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8962set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8964$as_echo_n "checking for $ac_word... " >&6; }
8965if test "${ac_cv_prog_STRIP+set}" = set; then :
8966 $as_echo_n "(cached) " >&6
2abefe3d
PB
8967else
8968 if test -n "$STRIP"; then
8969 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8970else
1c710c3c
DJ
8971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8972for as_dir in $PATH
8973do
8974 IFS=$as_save_IFS
8975 test -z "$as_dir" && as_dir=.
5213506e
RW
8976 for ac_exec_ext in '' $ac_executable_extensions; do
8977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8978 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 8979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8980 break 2
8981 fi
8982done
5213506e
RW
8983 done
8984IFS=$as_save_IFS
1c710c3c 8985
2abefe3d
PB
8986fi
8987fi
1c710c3c 8988STRIP=$ac_cv_prog_STRIP
2abefe3d 8989if test -n "$STRIP"; then
5213506e
RW
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8991$as_echo "$STRIP" >&6; }
2abefe3d 8992else
5213506e
RW
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8994$as_echo "no" >&6; }
2abefe3d 8995fi
1c710c3c 8996
5213506e 8997
2abefe3d
PB
8998 fi
8999 test -n "$ac_cv_prog_STRIP" && break
9000done
9001
9002if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 9003 STRIP="true"
2abefe3d
PB
9004fi
9005
278a7a38
AO
9006
9007
9008if test -n "$WINDRES"; then
9009 ac_cv_prog_WINDRES=$WINDRES
9010elif test -n "$ac_cv_prog_WINDRES"; then
9011 WINDRES=$ac_cv_prog_WINDRES
9012fi
9013
9014if test -n "$ac_cv_prog_WINDRES"; then
9015 for ncn_progname in windres; do
9016 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9017set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9019$as_echo_n "checking for $ac_word... " >&6; }
9020if test "${ac_cv_prog_WINDRES+set}" = set; then :
9021 $as_echo_n "(cached) " >&6
278a7a38
AO
9022else
9023 if test -n "$WINDRES"; then
9024 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9025else
9026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9027for as_dir in $PATH
9028do
9029 IFS=$as_save_IFS
9030 test -z "$as_dir" && as_dir=.
5213506e
RW
9031 for ac_exec_ext in '' $ac_executable_extensions; do
9032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9033 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9035 break 2
9036 fi
9037done
5213506e
RW
9038 done
9039IFS=$as_save_IFS
278a7a38
AO
9040
9041fi
9042fi
9043WINDRES=$ac_cv_prog_WINDRES
9044if test -n "$WINDRES"; then
5213506e
RW
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9046$as_echo "$WINDRES" >&6; }
278a7a38 9047else
5213506e
RW
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9049$as_echo "no" >&6; }
278a7a38
AO
9050fi
9051
5213506e 9052
278a7a38
AO
9053 done
9054fi
9055
9056for ncn_progname in windres; do
2693c0b0
PB
9057 if test -n "$ncn_tool_prefix"; then
9058 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9059set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9061$as_echo_n "checking for $ac_word... " >&6; }
9062if test "${ac_cv_prog_WINDRES+set}" = set; then :
9063 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9064else
9065 if test -n "$WINDRES"; then
9066 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9067else
1c710c3c
DJ
9068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9069for as_dir in $PATH
9070do
9071 IFS=$as_save_IFS
9072 test -z "$as_dir" && as_dir=.
5213506e
RW
9073 for ac_exec_ext in '' $ac_executable_extensions; do
9074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9075 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 9076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9077 break 2
9078 fi
9079done
5213506e
RW
9080 done
9081IFS=$as_save_IFS
1c710c3c 9082
ca9f4b81
AO
9083fi
9084fi
1c710c3c 9085WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 9086if test -n "$WINDRES"; then
5213506e
RW
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9088$as_echo "$WINDRES" >&6; }
ca9f4b81 9089else
5213506e
RW
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9091$as_echo "no" >&6; }
ca9f4b81
AO
9092fi
9093
5213506e 9094
2693c0b0
PB
9095 fi
9096 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9097 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9098set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9100$as_echo_n "checking for $ac_word... " >&6; }
9101if test "${ac_cv_prog_WINDRES+set}" = set; then :
9102 $as_echo_n "(cached) " >&6
ca9f4b81 9103else
2693c0b0
PB
9104 if test -n "$WINDRES"; then
9105 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 9106else
1c710c3c
DJ
9107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9108for as_dir in $PATH
9109do
9110 IFS=$as_save_IFS
9111 test -z "$as_dir" && as_dir=.
5213506e
RW
9112 for ac_exec_ext in '' $ac_executable_extensions; do
9113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9114 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9116 break 2
9117 fi
9118done
5213506e
RW
9119 done
9120IFS=$as_save_IFS
1c710c3c 9121
ca9f4b81
AO
9122fi
9123fi
1c710c3c 9124WINDRES=$ac_cv_prog_WINDRES
2693c0b0 9125if test -n "$WINDRES"; then
5213506e
RW
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9127$as_echo "$WINDRES" >&6; }
ca9f4b81 9128else
5213506e
RW
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9130$as_echo "no" >&6; }
ca9f4b81 9131fi
1c710c3c 9132
5213506e 9133
2693c0b0
PB
9134 fi
9135 test -n "$ac_cv_prog_WINDRES" && break
9136done
9137
9138if test -z "$ac_cv_prog_WINDRES" ; then
9139 set dummy windres
9140 if test $build = $host ; then
9141 WINDRES="$2"
ca9f4b81 9142 else
2693c0b0 9143 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9144 fi
ca9f4b81
AO
9145fi
9146
278a7a38
AO
9147
9148
901119ae
KT
9149if test -n "$WINDMC"; then
9150 ac_cv_prog_WINDMC=$WINDMC
9151elif test -n "$ac_cv_prog_WINDMC"; then
9152 WINDMC=$ac_cv_prog_WINDMC
9153fi
9154
9155if test -n "$ac_cv_prog_WINDMC"; then
9156 for ncn_progname in windmc; do
9157 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9158set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9160$as_echo_n "checking for $ac_word... " >&6; }
9161if test "${ac_cv_prog_WINDMC+set}" = set; then :
9162 $as_echo_n "(cached) " >&6
901119ae
KT
9163else
9164 if test -n "$WINDMC"; then
9165 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9166else
9167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9168for as_dir in $PATH
9169do
9170 IFS=$as_save_IFS
9171 test -z "$as_dir" && as_dir=.
5213506e
RW
9172 for ac_exec_ext in '' $ac_executable_extensions; do
9173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9174 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9176 break 2
9177 fi
9178done
5213506e
RW
9179 done
9180IFS=$as_save_IFS
901119ae
KT
9181
9182fi
9183fi
9184WINDMC=$ac_cv_prog_WINDMC
9185if test -n "$WINDMC"; then
5213506e
RW
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9187$as_echo "$WINDMC" >&6; }
901119ae 9188else
5213506e
RW
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9190$as_echo "no" >&6; }
901119ae
KT
9191fi
9192
5213506e 9193
901119ae
KT
9194 done
9195fi
9196
9197for ncn_progname in windmc; do
9198 if test -n "$ncn_tool_prefix"; then
9199 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9200set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9202$as_echo_n "checking for $ac_word... " >&6; }
9203if test "${ac_cv_prog_WINDMC+set}" = set; then :
9204 $as_echo_n "(cached) " >&6
901119ae
KT
9205else
9206 if test -n "$WINDMC"; then
9207 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9208else
9209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9210for as_dir in $PATH
9211do
9212 IFS=$as_save_IFS
9213 test -z "$as_dir" && as_dir=.
5213506e
RW
9214 for ac_exec_ext in '' $ac_executable_extensions; do
9215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9216 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9218 break 2
9219 fi
9220done
5213506e
RW
9221 done
9222IFS=$as_save_IFS
901119ae
KT
9223
9224fi
9225fi
9226WINDMC=$ac_cv_prog_WINDMC
9227if test -n "$WINDMC"; then
5213506e
RW
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9229$as_echo "$WINDMC" >&6; }
901119ae 9230else
5213506e
RW
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9232$as_echo "no" >&6; }
901119ae
KT
9233fi
9234
5213506e 9235
901119ae
KT
9236 fi
9237 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9238 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9239set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9241$as_echo_n "checking for $ac_word... " >&6; }
9242if test "${ac_cv_prog_WINDMC+set}" = set; then :
9243 $as_echo_n "(cached) " >&6
901119ae
KT
9244else
9245 if test -n "$WINDMC"; then
9246 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9247else
9248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9249for as_dir in $PATH
9250do
9251 IFS=$as_save_IFS
9252 test -z "$as_dir" && as_dir=.
5213506e
RW
9253 for ac_exec_ext in '' $ac_executable_extensions; do
9254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9255 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9257 break 2
9258 fi
9259done
5213506e
RW
9260 done
9261IFS=$as_save_IFS
901119ae
KT
9262
9263fi
9264fi
9265WINDMC=$ac_cv_prog_WINDMC
9266if test -n "$WINDMC"; then
5213506e
RW
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9268$as_echo "$WINDMC" >&6; }
901119ae 9269else
5213506e
RW
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9271$as_echo "no" >&6; }
901119ae
KT
9272fi
9273
5213506e 9274
901119ae
KT
9275 fi
9276 test -n "$ac_cv_prog_WINDMC" && break
9277done
9278
9279if test -z "$ac_cv_prog_WINDMC" ; then
9280 set dummy windmc
9281 if test $build = $host ; then
9282 WINDMC="$2"
9283 else
9284 WINDMC="${ncn_tool_prefix}$2"
9285 fi
9286fi
9287
9288
9289
278a7a38
AO
9290if test -n "$OBJCOPY"; then
9291 ac_cv_prog_OBJCOPY=$OBJCOPY
9292elif test -n "$ac_cv_prog_OBJCOPY"; then
9293 OBJCOPY=$ac_cv_prog_OBJCOPY
9294fi
9295
9296if test -n "$ac_cv_prog_OBJCOPY"; then
9297 for ncn_progname in objcopy; do
9298 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9299set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9301$as_echo_n "checking for $ac_word... " >&6; }
9302if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9303 $as_echo_n "(cached) " >&6
278a7a38
AO
9304else
9305 if test -n "$OBJCOPY"; then
9306 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9307else
9308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9309for as_dir in $PATH
9310do
9311 IFS=$as_save_IFS
9312 test -z "$as_dir" && as_dir=.
5213506e
RW
9313 for ac_exec_ext in '' $ac_executable_extensions; do
9314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9315 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9317 break 2
9318 fi
9319done
5213506e
RW
9320 done
9321IFS=$as_save_IFS
278a7a38
AO
9322
9323fi
9324fi
9325OBJCOPY=$ac_cv_prog_OBJCOPY
9326if test -n "$OBJCOPY"; then
5213506e
RW
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9328$as_echo "$OBJCOPY" >&6; }
278a7a38 9329else
5213506e
RW
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9331$as_echo "no" >&6; }
278a7a38
AO
9332fi
9333
5213506e 9334
278a7a38
AO
9335 done
9336fi
9337
9338for ncn_progname in objcopy; do
2693c0b0
PB
9339 if test -n "$ncn_tool_prefix"; then
9340 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9341set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9343$as_echo_n "checking for $ac_word... " >&6; }
9344if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9345 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9346else
9347 if test -n "$OBJCOPY"; then
9348 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9349else
1c710c3c
DJ
9350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9351for as_dir in $PATH
9352do
9353 IFS=$as_save_IFS
9354 test -z "$as_dir" && as_dir=.
5213506e
RW
9355 for ac_exec_ext in '' $ac_executable_extensions; do
9356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9357 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9359 break 2
9360 fi
9361done
5213506e
RW
9362 done
9363IFS=$as_save_IFS
1c710c3c 9364
ca9f4b81
AO
9365fi
9366fi
1c710c3c 9367OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 9368if test -n "$OBJCOPY"; then
5213506e
RW
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9370$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9371else
5213506e
RW
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9373$as_echo "no" >&6; }
ca9f4b81
AO
9374fi
9375
5213506e 9376
2693c0b0
PB
9377 fi
9378 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9379 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9380set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9382$as_echo_n "checking for $ac_word... " >&6; }
9383if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9384 $as_echo_n "(cached) " >&6
ca9f4b81 9385else
2693c0b0
PB
9386 if test -n "$OBJCOPY"; then
9387 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 9388else
1c710c3c
DJ
9389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9390for as_dir in $PATH
9391do
9392 IFS=$as_save_IFS
9393 test -z "$as_dir" && as_dir=.
5213506e
RW
9394 for ac_exec_ext in '' $ac_executable_extensions; do
9395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9396 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9398 break 2
9399 fi
9400done
5213506e
RW
9401 done
9402IFS=$as_save_IFS
1c710c3c 9403
ca9f4b81
AO
9404fi
9405fi
1c710c3c 9406OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 9407if test -n "$OBJCOPY"; then
5213506e
RW
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9409$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9410else
5213506e
RW
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9412$as_echo "no" >&6; }
ca9f4b81 9413fi
1c710c3c 9414
5213506e 9415
2693c0b0
PB
9416 fi
9417 test -n "$ac_cv_prog_OBJCOPY" && break
9418done
9419
9420if test -z "$ac_cv_prog_OBJCOPY" ; then
9421 set dummy objcopy
9422 if test $build = $host ; then
9423 OBJCOPY="$2"
ca9f4b81 9424 else
2693c0b0 9425 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 9426 fi
ca9f4b81
AO
9427fi
9428
278a7a38
AO
9429
9430
9431if test -n "$OBJDUMP"; then
9432 ac_cv_prog_OBJDUMP=$OBJDUMP
9433elif test -n "$ac_cv_prog_OBJDUMP"; then
9434 OBJDUMP=$ac_cv_prog_OBJDUMP
9435fi
9436
9437if test -n "$ac_cv_prog_OBJDUMP"; then
9438 for ncn_progname in objdump; do
9439 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9440set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9442$as_echo_n "checking for $ac_word... " >&6; }
9443if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9444 $as_echo_n "(cached) " >&6
278a7a38
AO
9445else
9446 if test -n "$OBJDUMP"; then
9447 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9448else
9449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9450for as_dir in $PATH
9451do
9452 IFS=$as_save_IFS
9453 test -z "$as_dir" && as_dir=.
5213506e
RW
9454 for ac_exec_ext in '' $ac_executable_extensions; do
9455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9456 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9458 break 2
9459 fi
9460done
5213506e
RW
9461 done
9462IFS=$as_save_IFS
278a7a38
AO
9463
9464fi
9465fi
9466OBJDUMP=$ac_cv_prog_OBJDUMP
9467if test -n "$OBJDUMP"; then
5213506e
RW
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9469$as_echo "$OBJDUMP" >&6; }
278a7a38 9470else
5213506e
RW
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9472$as_echo "no" >&6; }
278a7a38
AO
9473fi
9474
5213506e 9475
278a7a38
AO
9476 done
9477fi
9478
9479for ncn_progname in objdump; do
2693c0b0
PB
9480 if test -n "$ncn_tool_prefix"; then
9481 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9482set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9484$as_echo_n "checking for $ac_word... " >&6; }
9485if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9486 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9487else
9488 if test -n "$OBJDUMP"; then
9489 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9490else
1c710c3c
DJ
9491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9492for as_dir in $PATH
9493do
9494 IFS=$as_save_IFS
9495 test -z "$as_dir" && as_dir=.
5213506e
RW
9496 for ac_exec_ext in '' $ac_executable_extensions; do
9497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9498 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9500 break 2
9501 fi
9502done
5213506e
RW
9503 done
9504IFS=$as_save_IFS
1c710c3c 9505
ca9f4b81
AO
9506fi
9507fi
1c710c3c 9508OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 9509if test -n "$OBJDUMP"; then
5213506e
RW
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9511$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9512else
5213506e
RW
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9514$as_echo "no" >&6; }
ca9f4b81
AO
9515fi
9516
5213506e 9517
2693c0b0
PB
9518 fi
9519 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9520 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9521set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9523$as_echo_n "checking for $ac_word... " >&6; }
9524if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9525 $as_echo_n "(cached) " >&6
ca9f4b81 9526else
2693c0b0
PB
9527 if test -n "$OBJDUMP"; then
9528 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 9529else
1c710c3c
DJ
9530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9531for as_dir in $PATH
9532do
9533 IFS=$as_save_IFS
9534 test -z "$as_dir" && as_dir=.
5213506e
RW
9535 for ac_exec_ext in '' $ac_executable_extensions; do
9536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9537 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9539 break 2
9540 fi
9541done
5213506e
RW
9542 done
9543IFS=$as_save_IFS
1c710c3c 9544
ca9f4b81
AO
9545fi
9546fi
1c710c3c 9547OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 9548if test -n "$OBJDUMP"; then
5213506e
RW
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9550$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9551else
5213506e
RW
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9553$as_echo "no" >&6; }
ca9f4b81 9554fi
1c710c3c 9555
5213506e 9556
2693c0b0
PB
9557 fi
9558 test -n "$ac_cv_prog_OBJDUMP" && break
9559done
9560
9561if test -z "$ac_cv_prog_OBJDUMP" ; then
9562 set dummy objdump
9563 if test $build = $host ; then
9564 OBJDUMP="$2"
ca9f4b81 9565 else
2693c0b0 9566 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 9567 fi
ca9f4b81
AO
9568fi
9569
671aa708
NN
9570
9571
e7a82751
RM
9572if test -n "$READELF"; then
9573 ac_cv_prog_READELF=$READELF
9574elif test -n "$ac_cv_prog_READELF"; then
9575 READELF=$ac_cv_prog_READELF
9576fi
9577
9578if test -n "$ac_cv_prog_READELF"; then
9579 for ncn_progname in readelf; do
9580 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9581set dummy ${ncn_progname}; ac_word=$2
9582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9583$as_echo_n "checking for $ac_word... " >&6; }
9584if test "${ac_cv_prog_READELF+set}" = set; then :
9585 $as_echo_n "(cached) " >&6
9586else
9587 if test -n "$READELF"; then
9588 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9589else
9590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9591for as_dir in $PATH
9592do
9593 IFS=$as_save_IFS
9594 test -z "$as_dir" && as_dir=.
9595 for ac_exec_ext in '' $ac_executable_extensions; do
9596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9597 ac_cv_prog_READELF="${ncn_progname}"
9598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9599 break 2
9600 fi
9601done
9602 done
9603IFS=$as_save_IFS
9604
9605fi
9606fi
9607READELF=$ac_cv_prog_READELF
9608if test -n "$READELF"; then
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9610$as_echo "$READELF" >&6; }
9611else
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9613$as_echo "no" >&6; }
9614fi
9615
9616
9617 done
9618fi
9619
9620for ncn_progname in readelf; do
9621 if test -n "$ncn_tool_prefix"; then
9622 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9623set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9625$as_echo_n "checking for $ac_word... " >&6; }
9626if test "${ac_cv_prog_READELF+set}" = set; then :
9627 $as_echo_n "(cached) " >&6
9628else
9629 if test -n "$READELF"; then
9630 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9631else
9632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9633for as_dir in $PATH
9634do
9635 IFS=$as_save_IFS
9636 test -z "$as_dir" && as_dir=.
9637 for ac_exec_ext in '' $ac_executable_extensions; do
9638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9639 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9641 break 2
9642 fi
9643done
9644 done
9645IFS=$as_save_IFS
9646
9647fi
9648fi
9649READELF=$ac_cv_prog_READELF
9650if test -n "$READELF"; then
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9652$as_echo "$READELF" >&6; }
9653else
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9655$as_echo "no" >&6; }
9656fi
9657
9658
9659 fi
9660 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9661 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9662set dummy ${ncn_progname}; ac_word=$2
9663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9664$as_echo_n "checking for $ac_word... " >&6; }
9665if test "${ac_cv_prog_READELF+set}" = set; then :
9666 $as_echo_n "(cached) " >&6
9667else
9668 if test -n "$READELF"; then
9669 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9670else
9671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9672for as_dir in $PATH
9673do
9674 IFS=$as_save_IFS
9675 test -z "$as_dir" && as_dir=.
9676 for ac_exec_ext in '' $ac_executable_extensions; do
9677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9678 ac_cv_prog_READELF="${ncn_progname}"
9679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9680 break 2
9681 fi
9682done
9683 done
9684IFS=$as_save_IFS
9685
9686fi
9687fi
9688READELF=$ac_cv_prog_READELF
9689if test -n "$READELF"; then
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9691$as_echo "$READELF" >&6; }
9692else
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9694$as_echo "no" >&6; }
9695fi
9696
9697
9698 fi
9699 test -n "$ac_cv_prog_READELF" && break
9700done
9701
9702if test -z "$ac_cv_prog_READELF" ; then
9703 set dummy readelf
9704 if test $build = $host ; then
9705 READELF="$2"
9706 else
9707 READELF="${ncn_tool_prefix}$2"
9708 fi
9709fi
9710
9711
9712
671aa708
NN
9713
9714
9715
2abefe3d 9716# Target tools.
1c710c3c 9717
5213506e
RW
9718# Check whether --with-build-time-tools was given.
9719if test "${with_build_time_tools+set}" = set; then :
9720 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
9721 x/*) ;;
9722 *)
9723 with_build_time_tools=
5213506e
RW
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9725$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
9726 ;;
9727 esac
ca9f4b81 9728else
e8b05380 9729 with_build_time_tools=
5213506e
RW
9730fi
9731
ca9f4b81 9732
278a7a38
AO
9733
9734
9735if test -n "$CC_FOR_TARGET"; then
9736 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9737elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9738 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9739fi
9740
9741if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9742 for ncn_progname in cc gcc; do
9743 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9744set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9746$as_echo_n "checking for $ac_word... " >&6; }
9747if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9748 $as_echo_n "(cached) " >&6
278a7a38
AO
9749else
9750 if test -n "$CC_FOR_TARGET"; then
9751 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9752else
9753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9754for as_dir in $PATH
9755do
9756 IFS=$as_save_IFS
9757 test -z "$as_dir" && as_dir=.
5213506e
RW
9758 for ac_exec_ext in '' $ac_executable_extensions; do
9759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9760 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9762 break 2
9763 fi
9764done
5213506e
RW
9765 done
9766IFS=$as_save_IFS
278a7a38
AO
9767
9768fi
9769fi
9770CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9771if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9773$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 9774else
5213506e
RW
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9776$as_echo "no" >&6; }
278a7a38
AO
9777fi
9778
5213506e 9779
278a7a38
AO
9780 done
9781fi
9782
9783if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9784 for ncn_progname in cc gcc; do
5213506e
RW
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9786$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9787 if test -x $with_build_time_tools/${ncn_progname}; then
9788 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9790$as_echo "yes" >&6; }
72a7ab82 9791 break
e8b05380 9792 else
5213506e
RW
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9794$as_echo "no" >&6; }
72a7ab82
AP
9795 fi
9796 done
4de997d1
PB
9797fi
9798
e8b05380
PB
9799if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9800 for ncn_progname in cc gcc; do
9801 if test -n "$ncn_target_tool_prefix"; then
9802 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9803set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9805$as_echo_n "checking for $ac_word... " >&6; }
9806if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9807 $as_echo_n "(cached) " >&6
4de997d1
PB
9808else
9809 if test -n "$CC_FOR_TARGET"; then
9810 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9811else
1c710c3c
DJ
9812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9813for as_dir in $PATH
9814do
9815 IFS=$as_save_IFS
9816 test -z "$as_dir" && as_dir=.
5213506e
RW
9817 for ac_exec_ext in '' $ac_executable_extensions; do
9818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9819 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9821 break 2
9822 fi
9823done
5213506e
RW
9824 done
9825IFS=$as_save_IFS
1c710c3c 9826
4de997d1
PB
9827fi
9828fi
1c710c3c 9829CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 9830if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9832$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9833else
5213506e
RW
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9835$as_echo "no" >&6; }
4de997d1
PB
9836fi
9837
5213506e 9838
e8b05380
PB
9839 fi
9840 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9841 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9842set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9844$as_echo_n "checking for $ac_word... " >&6; }
9845if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9846 $as_echo_n "(cached) " >&6
4de997d1 9847else
2693c0b0
PB
9848 if test -n "$CC_FOR_TARGET"; then
9849 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 9850else
1c710c3c
DJ
9851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9852for as_dir in $PATH
9853do
9854 IFS=$as_save_IFS
9855 test -z "$as_dir" && as_dir=.
5213506e
RW
9856 for ac_exec_ext in '' $ac_executable_extensions; do
9857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9858 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9860 break 2
9861 fi
9862done
5213506e
RW
9863 done
9864IFS=$as_save_IFS
1c710c3c 9865
4de997d1
PB
9866fi
9867fi
1c710c3c 9868CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 9869if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9871$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9872else
5213506e
RW
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9874$as_echo "no" >&6; }
4de997d1 9875fi
1c710c3c 9876
5213506e 9877
e8b05380
PB
9878 fi
9879 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9880 done
9881fi
1c710c3c 9882
2693c0b0
PB
9883if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9884 set dummy cc gcc
9885 if test $build = $target ; then
9886 CC_FOR_TARGET="$2"
4de997d1 9887 else
2693c0b0 9888 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9889 fi
1c00b503
PB
9890else
9891 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
9892fi
9893
278a7a38
AO
9894
9895
9896if test -n "$CXX_FOR_TARGET"; then
9897 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9898elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9899 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9900fi
9901
9902if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9903 for ncn_progname in c++ g++ cxx gxx; do
9904 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9905set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9907$as_echo_n "checking for $ac_word... " >&6; }
9908if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9909 $as_echo_n "(cached) " >&6
278a7a38
AO
9910else
9911 if test -n "$CXX_FOR_TARGET"; then
9912 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9913else
9914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9915for as_dir in $PATH
9916do
9917 IFS=$as_save_IFS
9918 test -z "$as_dir" && as_dir=.
5213506e
RW
9919 for ac_exec_ext in '' $ac_executable_extensions; do
9920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9921 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 9922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9923 break 2
9924 fi
9925done
5213506e
RW
9926 done
9927IFS=$as_save_IFS
278a7a38
AO
9928
9929fi
9930fi
9931CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9932if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9934$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 9935else
5213506e
RW
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9937$as_echo "no" >&6; }
278a7a38
AO
9938fi
9939
5213506e 9940
278a7a38
AO
9941 done
9942fi
9943
9944if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9945 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9947$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9948 if test -x $with_build_time_tools/${ncn_progname}; then
9949 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9951$as_echo "yes" >&6; }
e8b05380
PB
9952 break
9953 else
5213506e
RW
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9955$as_echo "no" >&6; }
e8b05380
PB
9956 fi
9957 done
9958fi
9959
9960if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9961 for ncn_progname in c++ g++ cxx gxx; do
9962 if test -n "$ncn_target_tool_prefix"; then
9963 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9964set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9966$as_echo_n "checking for $ac_word... " >&6; }
9967if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9968 $as_echo_n "(cached) " >&6
4de997d1
PB
9969else
9970 if test -n "$CXX_FOR_TARGET"; then
9971 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9972else
1c710c3c
DJ
9973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9974for as_dir in $PATH
9975do
9976 IFS=$as_save_IFS
9977 test -z "$as_dir" && as_dir=.
5213506e
RW
9978 for ac_exec_ext in '' $ac_executable_extensions; do
9979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9980 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9982 break 2
9983 fi
9984done
5213506e
RW
9985 done
9986IFS=$as_save_IFS
1c710c3c 9987
4de997d1
PB
9988fi
9989fi
1c710c3c 9990CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 9991if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9993$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 9994else
5213506e
RW
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9996$as_echo "no" >&6; }
4de997d1
PB
9997fi
9998
5213506e 9999
e8b05380
PB
10000 fi
10001 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10002 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10003set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10005$as_echo_n "checking for $ac_word... " >&6; }
10006if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10007 $as_echo_n "(cached) " >&6
4de997d1 10008else
2693c0b0
PB
10009 if test -n "$CXX_FOR_TARGET"; then
10010 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 10011else
1c710c3c
DJ
10012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10013for as_dir in $PATH
10014do
10015 IFS=$as_save_IFS
10016 test -z "$as_dir" && as_dir=.
5213506e
RW
10017 for ac_exec_ext in '' $ac_executable_extensions; do
10018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10019 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10021 break 2
10022 fi
10023done
5213506e
RW
10024 done
10025IFS=$as_save_IFS
1c710c3c 10026
4de997d1
PB
10027fi
10028fi
1c710c3c 10029CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 10030if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10032$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10033else
5213506e
RW
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10035$as_echo "no" >&6; }
4de997d1 10036fi
1c710c3c 10037
5213506e 10038
e8b05380
PB
10039 fi
10040 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10041 done
10042fi
1c710c3c 10043
2693c0b0
PB
10044if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10045 set dummy c++ g++ cxx gxx
10046 if test $build = $target ; then
10047 CXX_FOR_TARGET="$2"
4de997d1 10048 else
2693c0b0 10049 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10050 fi
1c00b503
PB
10051else
10052 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
10053fi
10054
278a7a38
AO
10055
10056
10057if test -n "$GCC_FOR_TARGET"; then
10058 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10059elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10060 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10061fi
10062
10063if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10064 for ncn_progname in gcc; do
10065 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10066set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10068$as_echo_n "checking for $ac_word... " >&6; }
10069if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10070 $as_echo_n "(cached) " >&6
278a7a38
AO
10071else
10072 if test -n "$GCC_FOR_TARGET"; then
10073 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10074else
10075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10076for as_dir in $PATH
10077do
10078 IFS=$as_save_IFS
10079 test -z "$as_dir" && as_dir=.
5213506e
RW
10080 for ac_exec_ext in '' $ac_executable_extensions; do
10081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10082 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10084 break 2
10085 fi
10086done
5213506e
RW
10087 done
10088IFS=$as_save_IFS
278a7a38
AO
10089
10090fi
10091fi
10092GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10093if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10095$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 10096else
5213506e
RW
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10098$as_echo "no" >&6; }
278a7a38
AO
10099fi
10100
5213506e 10101
278a7a38
AO
10102 done
10103fi
10104
10105if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10106 for ncn_progname in gcc; do
5213506e
RW
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10108$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10109 if test -x $with_build_time_tools/${ncn_progname}; then
10110 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10112$as_echo "yes" >&6; }
e8b05380
PB
10113 break
10114 else
5213506e
RW
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10116$as_echo "no" >&6; }
e8b05380
PB
10117 fi
10118 done
10119fi
10120
10121if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10122 for ncn_progname in gcc; do
10123 if test -n "$ncn_target_tool_prefix"; then
10124 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10125set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10127$as_echo_n "checking for $ac_word... " >&6; }
10128if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10129 $as_echo_n "(cached) " >&6
ca9f4b81 10130else
e8b05380
PB
10131 if test -n "$GCC_FOR_TARGET"; then
10132 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10133else
1c710c3c
DJ
10134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10135for as_dir in $PATH
10136do
10137 IFS=$as_save_IFS
10138 test -z "$as_dir" && as_dir=.
5213506e
RW
10139 for ac_exec_ext in '' $ac_executable_extensions; do
10140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10141 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10143 break 2
10144 fi
10145done
5213506e
RW
10146 done
10147IFS=$as_save_IFS
1c710c3c 10148
ca9f4b81
AO
10149fi
10150fi
1c710c3c 10151GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10152if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10154$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10155else
5213506e
RW
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10157$as_echo "no" >&6; }
ca9f4b81
AO
10158fi
10159
5213506e 10160
e8b05380
PB
10161 fi
10162 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10163 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10164set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10166$as_echo_n "checking for $ac_word... " >&6; }
10167if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10168 $as_echo_n "(cached) " >&6
ca9f4b81 10169else
e8b05380
PB
10170 if test -n "$GCC_FOR_TARGET"; then
10171 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10172else
1c710c3c
DJ
10173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10174for as_dir in $PATH
10175do
10176 IFS=$as_save_IFS
10177 test -z "$as_dir" && as_dir=.
5213506e
RW
10178 for ac_exec_ext in '' $ac_executable_extensions; do
10179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10180 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10182 break 2
10183 fi
10184done
5213506e
RW
10185 done
10186IFS=$as_save_IFS
1c710c3c 10187
ca9f4b81
AO
10188fi
10189fi
1c710c3c 10190GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10191if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10193$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10194else
5213506e
RW
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10196$as_echo "no" >&6; }
ca9f4b81 10197fi
1c710c3c 10198
5213506e 10199
e8b05380
PB
10200 fi
10201 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10202 done
10203fi
1c710c3c 10204
e8b05380
PB
10205if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10206 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10207else
10208 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10209fi
10210
278a7a38
AO
10211
10212
10213if test -n "$GCJ_FOR_TARGET"; then
10214 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10215elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10216 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10217fi
10218
10219if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10220 for ncn_progname in gcj; do
10221 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10222set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10224$as_echo_n "checking for $ac_word... " >&6; }
10225if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10226 $as_echo_n "(cached) " >&6
278a7a38
AO
10227else
10228 if test -n "$GCJ_FOR_TARGET"; then
10229 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10230else
10231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10232for as_dir in $PATH
10233do
10234 IFS=$as_save_IFS
10235 test -z "$as_dir" && as_dir=.
5213506e
RW
10236 for ac_exec_ext in '' $ac_executable_extensions; do
10237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10238 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10240 break 2
10241 fi
10242done
5213506e
RW
10243 done
10244IFS=$as_save_IFS
278a7a38
AO
10245
10246fi
10247fi
10248GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10249if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10251$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10252else
5213506e
RW
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10254$as_echo "no" >&6; }
278a7a38
AO
10255fi
10256
5213506e 10257
278a7a38
AO
10258 done
10259fi
10260
10261if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10262 for ncn_progname in gcj; do
5213506e
RW
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10264$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10265 if test -x $with_build_time_tools/${ncn_progname}; then
10266 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10268$as_echo "yes" >&6; }
e8b05380
PB
10269 break
10270 else
5213506e
RW
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10272$as_echo "no" >&6; }
e8b05380
PB
10273 fi
10274 done
10275fi
10276
10277if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10278 for ncn_progname in gcj; do
10279 if test -n "$ncn_target_tool_prefix"; then
10280 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10281set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10283$as_echo_n "checking for $ac_word... " >&6; }
10284if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10285 $as_echo_n "(cached) " >&6
e8b05380 10286else
fb0103e5
RG
10287 if test -n "$GCJ_FOR_TARGET"; then
10288 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10289else
1c710c3c
DJ
10290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10291for as_dir in $PATH
10292do
10293 IFS=$as_save_IFS
10294 test -z "$as_dir" && as_dir=.
5213506e
RW
10295 for ac_exec_ext in '' $ac_executable_extensions; do
10296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10297 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10299 break 2
10300 fi
10301done
5213506e
RW
10302 done
10303IFS=$as_save_IFS
1c710c3c 10304
e8b05380
PB
10305fi
10306fi
278a7a38
AO
10307GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10308if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10310$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10311else
5213506e
RW
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10313$as_echo "no" >&6; }
278a7a38
AO
10314fi
10315
5213506e 10316
278a7a38
AO
10317 fi
10318 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10319 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10320set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10322$as_echo_n "checking for $ac_word... " >&6; }
10323if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10324 $as_echo_n "(cached) " >&6
278a7a38
AO
10325else
10326 if test -n "$GCJ_FOR_TARGET"; then
10327 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10328else
10329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10330for as_dir in $PATH
10331do
10332 IFS=$as_save_IFS
10333 test -z "$as_dir" && as_dir=.
5213506e
RW
10334 for ac_exec_ext in '' $ac_executable_extensions; do
10335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10336 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10338 break 2
10339 fi
10340done
5213506e
RW
10341 done
10342IFS=$as_save_IFS
278a7a38
AO
10343
10344fi
10345fi
10346GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10347if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10349$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10350else
5213506e
RW
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10352$as_echo "no" >&6; }
278a7a38
AO
10353fi
10354
5213506e 10355
278a7a38
AO
10356 fi
10357 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10358 done
10359fi
10360
10361if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10362 set dummy gcj
10363 if test $build = $target ; then
10364 GCJ_FOR_TARGET="$2"
10365 else
10366 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10367 fi
1c00b503
PB
10368else
10369 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
10370fi
10371
10372
10373
10374if test -n "$GFORTRAN_FOR_TARGET"; then
10375 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10376elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10377 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10378fi
10379
278a7a38
AO
10380if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10381 for ncn_progname in gfortran; do
10382 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10383set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10385$as_echo_n "checking for $ac_word... " >&6; }
10386if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10387 $as_echo_n "(cached) " >&6
e8b05380 10388else
278a7a38
AO
10389 if test -n "$GFORTRAN_FOR_TARGET"; then
10390 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10391else
1c710c3c
DJ
10392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10393for as_dir in $PATH
10394do
10395 IFS=$as_save_IFS
10396 test -z "$as_dir" && as_dir=.
5213506e
RW
10397 for ac_exec_ext in '' $ac_executable_extensions; do
10398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10399 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10401 break 2
10402 fi
10403done
5213506e
RW
10404 done
10405IFS=$as_save_IFS
1c710c3c 10406
e8b05380
PB
10407fi
10408fi
278a7a38
AO
10409GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10410if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10412$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10413else
5213506e
RW
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10415$as_echo "no" >&6; }
e8b05380 10416fi
1c710c3c 10417
5213506e 10418
e8b05380
PB
10419 done
10420fi
1c710c3c 10421
278a7a38 10422if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10423 for ncn_progname in gfortran; do
5213506e
RW
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10425$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10426 if test -x $with_build_time_tools/${ncn_progname}; then
10427 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10429$as_echo "yes" >&6; }
e8b05380
PB
10430 break
10431 else
5213506e
RW
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10433$as_echo "no" >&6; }
e8b05380
PB
10434 fi
10435 done
10436fi
10437
10438if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10439 for ncn_progname in gfortran; do
10440 if test -n "$ncn_target_tool_prefix"; then
10441 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10442set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10444$as_echo_n "checking for $ac_word... " >&6; }
10445if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10446 $as_echo_n "(cached) " >&6
e8b05380
PB
10447else
10448 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10449 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10450else
10451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10452for as_dir in $PATH
10453do
10454 IFS=$as_save_IFS
10455 test -z "$as_dir" && as_dir=.
5213506e
RW
10456 for ac_exec_ext in '' $ac_executable_extensions; do
10457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10458 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10460 break 2
10461 fi
10462done
5213506e
RW
10463 done
10464IFS=$as_save_IFS
1c710c3c 10465
e8b05380
PB
10466fi
10467fi
1c710c3c 10468GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10469if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10471$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10472else
5213506e
RW
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10474$as_echo "no" >&6; }
e8b05380
PB
10475fi
10476
5213506e 10477
e8b05380
PB
10478 fi
10479 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10480 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10481set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10483$as_echo_n "checking for $ac_word... " >&6; }
10484if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10485 $as_echo_n "(cached) " >&6
e8b05380
PB
10486else
10487 if test -n "$GFORTRAN_FOR_TARGET"; then
10488 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10489else
1c710c3c
DJ
10490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10491for as_dir in $PATH
10492do
10493 IFS=$as_save_IFS
10494 test -z "$as_dir" && as_dir=.
5213506e
RW
10495 for ac_exec_ext in '' $ac_executable_extensions; do
10496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10497 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10499 break 2
10500 fi
10501done
5213506e
RW
10502 done
10503IFS=$as_save_IFS
1c710c3c 10504
e8b05380
PB
10505fi
10506fi
1c710c3c 10507GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10508if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10510$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10511else
5213506e
RW
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10513$as_echo "no" >&6; }
e8b05380 10514fi
1c710c3c 10515
5213506e 10516
e8b05380
PB
10517 fi
10518 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10519 done
10520fi
1c710c3c 10521
e8b05380
PB
10522if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10523 set dummy gfortran
2693c0b0 10524 if test $build = $target ; then
e8b05380 10525 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 10526 else
e8b05380
PB
10527 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10528 fi
1c00b503
PB
10529else
10530 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
10531fi
10532
10533
10534
632e2a07
ILT
10535if test -n "$GOC_FOR_TARGET"; then
10536 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10537elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10538 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10539fi
10540
10541if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10542 for ncn_progname in gccgo; do
10543 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10544set dummy ${ncn_progname}; ac_word=$2
10545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10546$as_echo_n "checking for $ac_word... " >&6; }
10547if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10548 $as_echo_n "(cached) " >&6
10549else
10550 if test -n "$GOC_FOR_TARGET"; then
10551 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10552else
10553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10554for as_dir in $PATH
10555do
10556 IFS=$as_save_IFS
10557 test -z "$as_dir" && as_dir=.
10558 for ac_exec_ext in '' $ac_executable_extensions; do
10559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10560 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10562 break 2
10563 fi
10564done
10565 done
10566IFS=$as_save_IFS
10567
10568fi
10569fi
10570GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10571if test -n "$GOC_FOR_TARGET"; then
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10573$as_echo "$GOC_FOR_TARGET" >&6; }
10574else
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10576$as_echo "no" >&6; }
10577fi
10578
10579
10580 done
10581fi
10582
10583if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10584 for ncn_progname in gccgo; do
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10586$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10587 if test -x $with_build_time_tools/${ncn_progname}; then
10588 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10590$as_echo "yes" >&6; }
10591 break
10592 else
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10594$as_echo "no" >&6; }
10595 fi
10596 done
10597fi
10598
10599if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10600 for ncn_progname in gccgo; do
10601 if test -n "$ncn_target_tool_prefix"; then
10602 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10603set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10605$as_echo_n "checking for $ac_word... " >&6; }
10606if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10607 $as_echo_n "(cached) " >&6
10608else
10609 if test -n "$GOC_FOR_TARGET"; then
10610 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10611else
10612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10613for as_dir in $PATH
10614do
10615 IFS=$as_save_IFS
10616 test -z "$as_dir" && as_dir=.
10617 for ac_exec_ext in '' $ac_executable_extensions; do
10618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10619 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10621 break 2
10622 fi
10623done
10624 done
10625IFS=$as_save_IFS
10626
10627fi
10628fi
10629GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10630if test -n "$GOC_FOR_TARGET"; then
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10632$as_echo "$GOC_FOR_TARGET" >&6; }
10633else
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10635$as_echo "no" >&6; }
10636fi
10637
10638
10639 fi
10640 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10641 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10642set dummy ${ncn_progname}; ac_word=$2
10643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10644$as_echo_n "checking for $ac_word... " >&6; }
10645if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10646 $as_echo_n "(cached) " >&6
10647else
10648 if test -n "$GOC_FOR_TARGET"; then
10649 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10650else
10651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10652for as_dir in $PATH
10653do
10654 IFS=$as_save_IFS
10655 test -z "$as_dir" && as_dir=.
10656 for ac_exec_ext in '' $ac_executable_extensions; do
10657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10658 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10660 break 2
10661 fi
10662done
10663 done
10664IFS=$as_save_IFS
10665
10666fi
10667fi
10668GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10669if test -n "$GOC_FOR_TARGET"; then
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10671$as_echo "$GOC_FOR_TARGET" >&6; }
10672else
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10674$as_echo "no" >&6; }
10675fi
10676
10677
10678 fi
10679 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10680 done
10681fi
10682
10683if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10684 set dummy gccgo
10685 if test $build = $target ; then
10686 GOC_FOR_TARGET="$2"
10687 else
10688 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10689 fi
10690else
10691 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10692fi
10693
10694
10695
e8b05380
PB
10696cat > conftest.c << \EOF
10697#ifdef __GNUC__
10698 gcc_yay;
10699#endif
10700EOF
10701if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10702 have_gcc_for_target=yes
10703else
10704 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10705 have_gcc_for_target=no
10706fi
10707rm conftest.c
10708
10709
10710
10711
10712if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10713 if test -n "$with_build_time_tools"; then
5213506e
RW
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10715$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10716 if test -x $with_build_time_tools/ar; then
10717 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10718 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10720$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 10721 else
5213506e
RW
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10723$as_echo "no" >&6; }
d1f8db0c 10724 fi
e8b05380
PB
10725 elif test $build != $host && test $have_gcc_for_target = yes; then
10726 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
10727 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10728 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
10729 fi
10730fi
3e19841a 10731if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10732 # Extract the first word of "ar", so it can be a program name with args.
10733set dummy ar; ac_word=$2
5213506e
RW
10734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10735$as_echo_n "checking for $ac_word... " >&6; }
10736if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10737 $as_echo_n "(cached) " >&6
e8b05380 10738else
1c710c3c
DJ
10739 case $AR_FOR_TARGET in
10740 [\\/]* | ?:[\\/]*)
e8b05380
PB
10741 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10742 ;;
e8b05380 10743 *)
1c710c3c
DJ
10744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10745for as_dir in $gcc_cv_tool_dirs
10746do
10747 IFS=$as_save_IFS
10748 test -z "$as_dir" && as_dir=.
5213506e
RW
10749 for ac_exec_ext in '' $ac_executable_extensions; do
10750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10751 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10753 break 2
10754 fi
10755done
5213506e
RW
10756 done
10757IFS=$as_save_IFS
1c710c3c 10758
e8b05380
PB
10759 ;;
10760esac
10761fi
1c710c3c 10762AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 10763if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10765$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10766else
5213506e
RW
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10768$as_echo "no" >&6; }
4de997d1
PB
10769fi
10770
5213506e 10771
e8b05380
PB
10772fi
10773if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
10774
10775
10776if test -n "$AR_FOR_TARGET"; then
10777 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10778elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10779 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10780fi
10781
10782if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10783 for ncn_progname in ar; do
10784 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10785set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10787$as_echo_n "checking for $ac_word... " >&6; }
10788if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10789 $as_echo_n "(cached) " >&6
278a7a38
AO
10790else
10791 if test -n "$AR_FOR_TARGET"; then
10792 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10793else
10794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10795for as_dir in $PATH
10796do
10797 IFS=$as_save_IFS
10798 test -z "$as_dir" && as_dir=.
5213506e
RW
10799 for ac_exec_ext in '' $ac_executable_extensions; do
10800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10801 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10803 break 2
10804 fi
10805done
5213506e
RW
10806 done
10807IFS=$as_save_IFS
278a7a38
AO
10808
10809fi
10810fi
10811AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10812if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10814$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 10815else
5213506e
RW
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10817$as_echo "no" >&6; }
278a7a38
AO
10818fi
10819
5213506e 10820
278a7a38
AO
10821 done
10822fi
10823
10824if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10825 for ncn_progname in ar; do
5213506e
RW
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10827$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10828 if test -x $with_build_time_tools/${ncn_progname}; then
10829 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10831$as_echo "yes" >&6; }
e8b05380
PB
10832 break
10833 else
5213506e
RW
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10835$as_echo "no" >&6; }
e8b05380
PB
10836 fi
10837 done
10838fi
10839
10840if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10841 for ncn_progname in ar; do
10842 if test -n "$ncn_target_tool_prefix"; then
10843 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10844set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10846$as_echo_n "checking for $ac_word... " >&6; }
10847if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10848 $as_echo_n "(cached) " >&6
4de997d1 10849else
e8b05380
PB
10850 if test -n "$AR_FOR_TARGET"; then
10851 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 10852else
1c710c3c
DJ
10853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10854for as_dir in $PATH
10855do
10856 IFS=$as_save_IFS
10857 test -z "$as_dir" && as_dir=.
5213506e
RW
10858 for ac_exec_ext in '' $ac_executable_extensions; do
10859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10860 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10862 break 2
10863 fi
10864done
5213506e
RW
10865 done
10866IFS=$as_save_IFS
1c710c3c 10867
4de997d1
PB
10868fi
10869fi
1c710c3c 10870AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10871if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10873$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 10874else
5213506e
RW
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10876$as_echo "no" >&6; }
4de997d1
PB
10877fi
10878
5213506e 10879
e8b05380
PB
10880 fi
10881 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10882 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10883set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10885$as_echo_n "checking for $ac_word... " >&6; }
10886if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10887 $as_echo_n "(cached) " >&6
e8b05380
PB
10888else
10889 if test -n "$AR_FOR_TARGET"; then
10890 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10891else
1c710c3c
DJ
10892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10893for as_dir in $PATH
10894do
10895 IFS=$as_save_IFS
10896 test -z "$as_dir" && as_dir=.
5213506e
RW
10897 for ac_exec_ext in '' $ac_executable_extensions; do
10898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10899 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10901 break 2
10902 fi
10903done
5213506e
RW
10904 done
10905IFS=$as_save_IFS
1c710c3c 10906
e8b05380
PB
10907fi
10908fi
1c710c3c 10909AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10910if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10912$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10913else
5213506e
RW
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10915$as_echo "no" >&6; }
e8b05380 10916fi
1c710c3c 10917
5213506e 10918
e8b05380
PB
10919 fi
10920 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10921 done
10922fi
1c710c3c 10923
e8b05380
PB
10924if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10925 set dummy ar
10926 if test $build = $target ; then
10927 AR_FOR_TARGET="$2"
10928 else
10929 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 10930 fi
1c00b503
PB
10931else
10932 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
10933fi
10934
d1f8db0c
PB
10935else
10936 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
10937fi
10938
10939
10940
10941
10942if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10943 if test -n "$with_build_time_tools"; then
5213506e
RW
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10945$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10946 if test -x $with_build_time_tools/as; then
10947 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10948 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10950$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 10951 else
5213506e
RW
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10953$as_echo "no" >&6; }
d1f8db0c 10954 fi
e8b05380
PB
10955 elif test $build != $host && test $have_gcc_for_target = yes; then
10956 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
10957 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10958 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
10959 fi
10960fi
3e19841a 10961if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10962 # Extract the first word of "as", so it can be a program name with args.
10963set dummy as; ac_word=$2
5213506e
RW
10964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10965$as_echo_n "checking for $ac_word... " >&6; }
10966if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10967 $as_echo_n "(cached) " >&6
e8b05380 10968else
1c710c3c
DJ
10969 case $AS_FOR_TARGET in
10970 [\\/]* | ?:[\\/]*)
e8b05380
PB
10971 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10972 ;;
e8b05380 10973 *)
1c710c3c
DJ
10974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10975for as_dir in $gcc_cv_tool_dirs
10976do
10977 IFS=$as_save_IFS
10978 test -z "$as_dir" && as_dir=.
5213506e
RW
10979 for ac_exec_ext in '' $ac_executable_extensions; do
10980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10981 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10983 break 2
10984 fi
10985done
5213506e
RW
10986 done
10987IFS=$as_save_IFS
1c710c3c 10988
e8b05380
PB
10989 ;;
10990esac
10991fi
1c710c3c 10992AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 10993if test -n "$AS_FOR_TARGET"; then
5213506e
RW
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10995$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 10996else
5213506e
RW
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10998$as_echo "no" >&6; }
e8b05380
PB
10999fi
11000
5213506e 11001
e8b05380
PB
11002fi
11003if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
11004
11005
11006if test -n "$AS_FOR_TARGET"; then
11007 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11008elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11009 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11010fi
11011
11012if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11013 for ncn_progname in as; do
11014 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11015set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11017$as_echo_n "checking for $ac_word... " >&6; }
11018if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11019 $as_echo_n "(cached) " >&6
278a7a38
AO
11020else
11021 if test -n "$AS_FOR_TARGET"; then
11022 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11023else
11024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11025for as_dir in $PATH
11026do
11027 IFS=$as_save_IFS
11028 test -z "$as_dir" && as_dir=.
5213506e
RW
11029 for ac_exec_ext in '' $ac_executable_extensions; do
11030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11031 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11033 break 2
11034 fi
11035done
5213506e
RW
11036 done
11037IFS=$as_save_IFS
278a7a38
AO
11038
11039fi
11040fi
11041AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11042if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11044$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 11045else
5213506e
RW
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11047$as_echo "no" >&6; }
278a7a38
AO
11048fi
11049
5213506e 11050
278a7a38
AO
11051 done
11052fi
11053
11054if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11055 for ncn_progname in as; do
5213506e
RW
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11057$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11058 if test -x $with_build_time_tools/${ncn_progname}; then
11059 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11061$as_echo "yes" >&6; }
e8b05380
PB
11062 break
11063 else
5213506e
RW
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11065$as_echo "no" >&6; }
e8b05380
PB
11066 fi
11067 done
11068fi
11069
11070if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11071 for ncn_progname in as; do
11072 if test -n "$ncn_target_tool_prefix"; then
11073 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11074set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11076$as_echo_n "checking for $ac_word... " >&6; }
11077if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11078 $as_echo_n "(cached) " >&6
e8b05380
PB
11079else
11080 if test -n "$AS_FOR_TARGET"; then
11081 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11082else
1c710c3c
DJ
11083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11084for as_dir in $PATH
11085do
11086 IFS=$as_save_IFS
11087 test -z "$as_dir" && as_dir=.
5213506e
RW
11088 for ac_exec_ext in '' $ac_executable_extensions; do
11089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11090 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11092 break 2
11093 fi
11094done
5213506e
RW
11095 done
11096IFS=$as_save_IFS
1c710c3c 11097
e8b05380
PB
11098fi
11099fi
1c710c3c 11100AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11101if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11103$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11104else
5213506e
RW
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11106$as_echo "no" >&6; }
e8b05380
PB
11107fi
11108
5213506e 11109
e8b05380
PB
11110 fi
11111 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11112 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11113set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11115$as_echo_n "checking for $ac_word... " >&6; }
11116if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11117 $as_echo_n "(cached) " >&6
4de997d1 11118else
e8b05380
PB
11119 if test -n "$AS_FOR_TARGET"; then
11120 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 11121else
1c710c3c
DJ
11122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11123for as_dir in $PATH
11124do
11125 IFS=$as_save_IFS
11126 test -z "$as_dir" && as_dir=.
5213506e
RW
11127 for ac_exec_ext in '' $ac_executable_extensions; do
11128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11129 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11131 break 2
11132 fi
11133done
5213506e
RW
11134 done
11135IFS=$as_save_IFS
1c710c3c 11136
4de997d1
PB
11137fi
11138fi
1c710c3c 11139AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11140if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11142$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 11143else
5213506e
RW
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11145$as_echo "no" >&6; }
4de997d1 11146fi
1c710c3c 11147
5213506e 11148
e8b05380
PB
11149 fi
11150 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11151 done
11152fi
1c710c3c 11153
e8b05380
PB
11154if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11155 set dummy as
11156 if test $build = $target ; then
11157 AS_FOR_TARGET="$2"
11158 else
11159 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 11160 fi
1c00b503
PB
11161else
11162 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 11163fi
2693c0b0 11164
d1f8db0c
PB
11165else
11166 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
11167fi
11168
e8b05380
PB
11169
11170
11171
11172if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11173 if test -n "$with_build_time_tools"; then
5213506e
RW
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11175$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11176 if test -x $with_build_time_tools/dlltool; then
11177 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11178 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11180$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 11181 else
5213506e
RW
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11183$as_echo "no" >&6; }
d1f8db0c 11184 fi
e8b05380
PB
11185 elif test $build != $host && test $have_gcc_for_target = yes; then
11186 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
11187 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11188 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
11189 fi
11190fi
3e19841a 11191if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11192 # Extract the first word of "dlltool", so it can be a program name with args.
11193set dummy dlltool; ac_word=$2
5213506e
RW
11194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11195$as_echo_n "checking for $ac_word... " >&6; }
11196if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11197 $as_echo_n "(cached) " >&6
4de997d1 11198else
1c710c3c
DJ
11199 case $DLLTOOL_FOR_TARGET in
11200 [\\/]* | ?:[\\/]*)
e8b05380
PB
11201 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11202 ;;
e8b05380 11203 *)
1c710c3c
DJ
11204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11205for as_dir in $gcc_cv_tool_dirs
11206do
11207 IFS=$as_save_IFS
11208 test -z "$as_dir" && as_dir=.
5213506e
RW
11209 for ac_exec_ext in '' $ac_executable_extensions; do
11210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11211 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11213 break 2
11214 fi
11215done
5213506e
RW
11216 done
11217IFS=$as_save_IFS
1c710c3c 11218
e8b05380
PB
11219 ;;
11220esac
4de997d1 11221fi
1c710c3c 11222DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 11223if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11225$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11226else
5213506e
RW
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11228$as_echo "no" >&6; }
4de997d1
PB
11229fi
11230
5213506e 11231
e8b05380
PB
11232fi
11233if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
11234
11235
11236if test -n "$DLLTOOL_FOR_TARGET"; then
11237 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11238elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11239 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11240fi
11241
11242if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11243 for ncn_progname in dlltool; do
11244 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11245set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11247$as_echo_n "checking for $ac_word... " >&6; }
11248if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11249 $as_echo_n "(cached) " >&6
278a7a38
AO
11250else
11251 if test -n "$DLLTOOL_FOR_TARGET"; then
11252 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11253else
11254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11255for as_dir in $PATH
11256do
11257 IFS=$as_save_IFS
11258 test -z "$as_dir" && as_dir=.
5213506e
RW
11259 for ac_exec_ext in '' $ac_executable_extensions; do
11260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11261 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11263 break 2
11264 fi
11265done
5213506e
RW
11266 done
11267IFS=$as_save_IFS
278a7a38
AO
11268
11269fi
11270fi
11271DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11272if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11274$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11275else
5213506e
RW
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11277$as_echo "no" >&6; }
278a7a38
AO
11278fi
11279
5213506e 11280
278a7a38
AO
11281 done
11282fi
11283
11284if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11285 for ncn_progname in dlltool; do
5213506e
RW
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11287$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11288 if test -x $with_build_time_tools/${ncn_progname}; then
11289 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11291$as_echo "yes" >&6; }
e8b05380
PB
11292 break
11293 else
5213506e
RW
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11295$as_echo "no" >&6; }
e8b05380
PB
11296 fi
11297 done
11298fi
11299
11300if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11301 for ncn_progname in dlltool; do
11302 if test -n "$ncn_target_tool_prefix"; then
11303 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11304set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11306$as_echo_n "checking for $ac_word... " >&6; }
11307if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11308 $as_echo_n "(cached) " >&6
4de997d1 11309else
e8b05380
PB
11310 if test -n "$DLLTOOL_FOR_TARGET"; then
11311 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11312else
1c710c3c
DJ
11313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11314for as_dir in $PATH
11315do
11316 IFS=$as_save_IFS
11317 test -z "$as_dir" && as_dir=.
5213506e
RW
11318 for ac_exec_ext in '' $ac_executable_extensions; do
11319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11320 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11322 break 2
11323 fi
11324done
5213506e
RW
11325 done
11326IFS=$as_save_IFS
1c710c3c 11327
4de997d1
PB
11328fi
11329fi
1c710c3c 11330DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11331if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11333$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11334else
5213506e
RW
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11336$as_echo "no" >&6; }
4de997d1 11337fi
4de997d1 11338
5213506e 11339
e8b05380
PB
11340 fi
11341 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11342 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11343set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11345$as_echo_n "checking for $ac_word... " >&6; }
11346if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11347 $as_echo_n "(cached) " >&6
4de997d1 11348else
e8b05380
PB
11349 if test -n "$DLLTOOL_FOR_TARGET"; then
11350 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11351else
1c710c3c
DJ
11352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11353for as_dir in $PATH
11354do
11355 IFS=$as_save_IFS
11356 test -z "$as_dir" && as_dir=.
5213506e
RW
11357 for ac_exec_ext in '' $ac_executable_extensions; do
11358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11359 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11361 break 2
11362 fi
11363done
5213506e
RW
11364 done
11365IFS=$as_save_IFS
1c710c3c 11366
4de997d1
PB
11367fi
11368fi
1c710c3c 11369DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11370if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11372$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11373else
5213506e
RW
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11375$as_echo "no" >&6; }
4de997d1 11376fi
1c710c3c 11377
5213506e 11378
e8b05380
PB
11379 fi
11380 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11381 done
11382fi
1c710c3c 11383
e8b05380
PB
11384if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11385 set dummy dlltool
11386 if test $build = $target ; then
11387 DLLTOOL_FOR_TARGET="$2"
11388 else
11389 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11390 fi
1c00b503
PB
11391else
11392 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
11393fi
11394
d1f8db0c
PB
11395else
11396 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
11397fi
11398
4de997d1 11399
e8b05380
PB
11400
11401
11402if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11403 if test -n "$with_build_time_tools"; then
5213506e
RW
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11405$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11406 if test -x $with_build_time_tools/ld; then
11407 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11408 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11410$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 11411 else
5213506e
RW
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11413$as_echo "no" >&6; }
d1f8db0c 11414 fi
e8b05380
PB
11415 elif test $build != $host && test $have_gcc_for_target = yes; then
11416 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
11417 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11418 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 11419 fi
e8b05380 11420fi
3e19841a 11421if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11422 # Extract the first word of "ld", so it can be a program name with args.
11423set dummy ld; ac_word=$2
5213506e
RW
11424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11425$as_echo_n "checking for $ac_word... " >&6; }
11426if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11427 $as_echo_n "(cached) " >&6
4de997d1 11428else
1c710c3c
DJ
11429 case $LD_FOR_TARGET in
11430 [\\/]* | ?:[\\/]*)
e8b05380
PB
11431 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11432 ;;
e8b05380 11433 *)
1c710c3c
DJ
11434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11435for as_dir in $gcc_cv_tool_dirs
11436do
11437 IFS=$as_save_IFS
11438 test -z "$as_dir" && as_dir=.
5213506e
RW
11439 for ac_exec_ext in '' $ac_executable_extensions; do
11440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11441 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11443 break 2
11444 fi
11445done
5213506e
RW
11446 done
11447IFS=$as_save_IFS
1c710c3c 11448
e8b05380
PB
11449 ;;
11450esac
4de997d1 11451fi
1c710c3c 11452LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 11453if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11455$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 11456else
5213506e
RW
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11458$as_echo "no" >&6; }
4de997d1 11459fi
2693c0b0 11460
5213506e 11461
e8b05380
PB
11462fi
11463if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
11464
11465
11466if test -n "$LD_FOR_TARGET"; then
11467 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11468elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11469 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11470fi
11471
11472if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11473 for ncn_progname in ld; do
11474 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11475set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11477$as_echo_n "checking for $ac_word... " >&6; }
11478if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11479 $as_echo_n "(cached) " >&6
278a7a38
AO
11480else
11481 if test -n "$LD_FOR_TARGET"; then
11482 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11483else
11484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11485for as_dir in $PATH
11486do
11487 IFS=$as_save_IFS
11488 test -z "$as_dir" && as_dir=.
5213506e
RW
11489 for ac_exec_ext in '' $ac_executable_extensions; do
11490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11491 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11493 break 2
11494 fi
11495done
5213506e
RW
11496 done
11497IFS=$as_save_IFS
278a7a38
AO
11498
11499fi
11500fi
11501LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11502if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11504$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 11505else
5213506e
RW
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11507$as_echo "no" >&6; }
278a7a38
AO
11508fi
11509
5213506e 11510
278a7a38
AO
11511 done
11512fi
11513
11514if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11515 for ncn_progname in ld; do
5213506e
RW
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11517$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11518 if test -x $with_build_time_tools/${ncn_progname}; then
11519 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11521$as_echo "yes" >&6; }
e8b05380
PB
11522 break
11523 else
5213506e
RW
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11525$as_echo "no" >&6; }
e8b05380
PB
11526 fi
11527 done
ca9f4b81
AO
11528fi
11529
e8b05380
PB
11530if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11531 for ncn_progname in ld; do
11532 if test -n "$ncn_target_tool_prefix"; then
11533 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11534set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11536$as_echo_n "checking for $ac_word... " >&6; }
11537if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11538 $as_echo_n "(cached) " >&6
ca9f4b81 11539else
4de997d1
PB
11540 if test -n "$LD_FOR_TARGET"; then
11541 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11542else
1c710c3c
DJ
11543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11544for as_dir in $PATH
11545do
11546 IFS=$as_save_IFS
11547 test -z "$as_dir" && as_dir=.
5213506e
RW
11548 for ac_exec_ext in '' $ac_executable_extensions; do
11549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11550 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11552 break 2
11553 fi
11554done
5213506e
RW
11555 done
11556IFS=$as_save_IFS
1c710c3c 11557
ca9f4b81
AO
11558fi
11559fi
1c710c3c 11560LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 11561if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11563$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11564else
5213506e
RW
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11566$as_echo "no" >&6; }
ca9f4b81
AO
11567fi
11568
5213506e 11569
e8b05380
PB
11570 fi
11571 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11572 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11573set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11575$as_echo_n "checking for $ac_word... " >&6; }
11576if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11577 $as_echo_n "(cached) " >&6
ca9f4b81 11578else
2693c0b0
PB
11579 if test -n "$LD_FOR_TARGET"; then
11580 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11581else
1c710c3c
DJ
11582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11583for as_dir in $PATH
11584do
11585 IFS=$as_save_IFS
11586 test -z "$as_dir" && as_dir=.
5213506e
RW
11587 for ac_exec_ext in '' $ac_executable_extensions; do
11588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11589 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11591 break 2
11592 fi
11593done
5213506e
RW
11594 done
11595IFS=$as_save_IFS
1c710c3c 11596
ca9f4b81
AO
11597fi
11598fi
1c710c3c 11599LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 11600if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11602$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11603else
5213506e
RW
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11605$as_echo "no" >&6; }
ca9f4b81 11606fi
1c710c3c 11607
5213506e 11608
e8b05380
PB
11609 fi
11610 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11611 done
11612fi
1c710c3c 11613
2693c0b0
PB
11614if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11615 set dummy ld
11616 if test $build = $target ; then
11617 LD_FOR_TARGET="$2"
ca9f4b81 11618 else
2693c0b0 11619 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11620 fi
1c00b503
PB
11621else
11622 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
11623fi
11624
d1f8db0c
PB
11625else
11626 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
11627fi
11628
11629
11630
11631
11632if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11633 if test -n "$with_build_time_tools"; then
5213506e
RW
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11635$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11636 if test -x $with_build_time_tools/lipo; then
11637 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11638 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11640$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 11641 else
5213506e
RW
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11643$as_echo "no" >&6; }
d1f8db0c 11644 fi
e8b05380
PB
11645 elif test $build != $host && test $have_gcc_for_target = yes; then
11646 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
11647 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11648 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
11649 fi
11650fi
278a7a38
AO
11651if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11652 # Extract the first word of "lipo", so it can be a program name with args.
11653set dummy lipo; ac_word=$2
5213506e
RW
11654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11655$as_echo_n "checking for $ac_word... " >&6; }
11656if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11657 $as_echo_n "(cached) " >&6
278a7a38
AO
11658else
11659 case $LIPO_FOR_TARGET in
11660 [\\/]* | ?:[\\/]*)
11661 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11662 ;;
11663 *)
11664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11665for as_dir in $gcc_cv_tool_dirs
11666do
11667 IFS=$as_save_IFS
11668 test -z "$as_dir" && as_dir=.
5213506e
RW
11669 for ac_exec_ext in '' $ac_executable_extensions; do
11670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11671 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11673 break 2
11674 fi
11675done
5213506e
RW
11676 done
11677IFS=$as_save_IFS
278a7a38
AO
11678
11679 ;;
11680esac
11681fi
11682LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 11683if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11685$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 11686else
5213506e
RW
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11688$as_echo "no" >&6; }
278a7a38
AO
11689fi
11690
5213506e 11691
278a7a38
AO
11692fi
11693if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11694
11695
11696if test -n "$LIPO_FOR_TARGET"; then
11697 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11698elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11699 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11700fi
11701
11702if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11703 for ncn_progname in lipo; do
11704 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11705set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11707$as_echo_n "checking for $ac_word... " >&6; }
11708if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11709 $as_echo_n "(cached) " >&6
e8b05380 11710else
278a7a38
AO
11711 if test -n "$LIPO_FOR_TARGET"; then
11712 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11713else
11714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11715for as_dir in $PATH
1c710c3c
DJ
11716do
11717 IFS=$as_save_IFS
11718 test -z "$as_dir" && as_dir=.
5213506e
RW
11719 for ac_exec_ext in '' $ac_executable_extensions; do
11720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11721 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11723 break 2
11724 fi
11725done
5213506e
RW
11726 done
11727IFS=$as_save_IFS
1c710c3c 11728
e8b05380 11729fi
278a7a38
AO
11730fi
11731LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 11732if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11734$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 11735else
5213506e
RW
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11737$as_echo "no" >&6; }
e8b05380
PB
11738fi
11739
5213506e 11740
278a7a38 11741 done
e8b05380 11742fi
278a7a38
AO
11743
11744if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11745 for ncn_progname in lipo; do
5213506e
RW
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11747$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11748 if test -x $with_build_time_tools/${ncn_progname}; then
11749 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11751$as_echo "yes" >&6; }
e8b05380
PB
11752 break
11753 else
5213506e
RW
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11755$as_echo "no" >&6; }
e8b05380
PB
11756 fi
11757 done
11758fi
11759
11760if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11761 for ncn_progname in lipo; do
11762 if test -n "$ncn_target_tool_prefix"; then
11763 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11764set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11766$as_echo_n "checking for $ac_word... " >&6; }
11767if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11768 $as_echo_n "(cached) " >&6
040b1c5a
GK
11769else
11770 if test -n "$LIPO_FOR_TARGET"; then
11771 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11772else
1c710c3c
DJ
11773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11774for as_dir in $PATH
11775do
11776 IFS=$as_save_IFS
11777 test -z "$as_dir" && as_dir=.
5213506e
RW
11778 for ac_exec_ext in '' $ac_executable_extensions; do
11779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11780 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11782 break 2
11783 fi
11784done
5213506e
RW
11785 done
11786IFS=$as_save_IFS
1c710c3c 11787
040b1c5a
GK
11788fi
11789fi
1c710c3c 11790LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11791if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11793$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11794else
5213506e
RW
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796$as_echo "no" >&6; }
040b1c5a
GK
11797fi
11798
5213506e 11799
e8b05380
PB
11800 fi
11801 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 11803set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11805$as_echo_n "checking for $ac_word... " >&6; }
11806if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11807 $as_echo_n "(cached) " >&6
040b1c5a
GK
11808else
11809 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
11810 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11811else
1c710c3c
DJ
11812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11813for as_dir in $PATH
11814do
11815 IFS=$as_save_IFS
11816 test -z "$as_dir" && as_dir=.
5213506e
RW
11817 for ac_exec_ext in '' $ac_executable_extensions; do
11818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11819 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11821 break 2
11822 fi
11823done
5213506e
RW
11824 done
11825IFS=$as_save_IFS
1c710c3c 11826
040b1c5a
GK
11827fi
11828fi
1c710c3c 11829LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11830if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11832$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11833else
5213506e
RW
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11835$as_echo "no" >&6; }
040b1c5a 11836fi
1c710c3c 11837
5213506e 11838
e8b05380
PB
11839 fi
11840 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11841 done
11842fi
1c710c3c 11843
040b1c5a
GK
11844if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11845 set dummy lipo
11846 if test $build = $target ; then
11847 LIPO_FOR_TARGET="$2"
11848 else
11849 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11850 fi
1c00b503
PB
11851else
11852 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
11853fi
11854
d1f8db0c
PB
11855else
11856 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
11857fi
11858
11859
11860
11861
11862if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11863 if test -n "$with_build_time_tools"; then
5213506e
RW
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11865$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11866 if test -x $with_build_time_tools/nm; then
11867 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11868 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11870$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 11871 else
5213506e
RW
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11873$as_echo "no" >&6; }
d1f8db0c 11874 fi
e8b05380
PB
11875 elif test $build != $host && test $have_gcc_for_target = yes; then
11876 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
11877 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11878 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
11879 fi
11880fi
3e19841a 11881if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11882 # Extract the first word of "nm", so it can be a program name with args.
11883set dummy nm; ac_word=$2
5213506e
RW
11884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11885$as_echo_n "checking for $ac_word... " >&6; }
11886if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11887 $as_echo_n "(cached) " >&6
e8b05380 11888else
1c710c3c
DJ
11889 case $NM_FOR_TARGET in
11890 [\\/]* | ?:[\\/]*)
e8b05380
PB
11891 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11892 ;;
e8b05380 11893 *)
1c710c3c
DJ
11894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11895for as_dir in $gcc_cv_tool_dirs
11896do
11897 IFS=$as_save_IFS
11898 test -z "$as_dir" && as_dir=.
5213506e
RW
11899 for ac_exec_ext in '' $ac_executable_extensions; do
11900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11901 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11903 break 2
11904 fi
11905done
5213506e
RW
11906 done
11907IFS=$as_save_IFS
1c710c3c 11908
e8b05380
PB
11909 ;;
11910esac
11911fi
1c710c3c 11912NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 11913if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11915$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 11916else
5213506e
RW
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11918$as_echo "no" >&6; }
e8b05380
PB
11919fi
11920
5213506e 11921
e8b05380
PB
11922fi
11923if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
11924
11925
11926if test -n "$NM_FOR_TARGET"; then
11927 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11928elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11929 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11930fi
11931
11932if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11933 for ncn_progname in nm; do
11934 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11935set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11937$as_echo_n "checking for $ac_word... " >&6; }
11938if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11939 $as_echo_n "(cached) " >&6
278a7a38
AO
11940else
11941 if test -n "$NM_FOR_TARGET"; then
11942 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11943else
11944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11945for as_dir in $PATH
11946do
11947 IFS=$as_save_IFS
11948 test -z "$as_dir" && as_dir=.
5213506e
RW
11949 for ac_exec_ext in '' $ac_executable_extensions; do
11950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11951 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 11952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11953 break 2
11954 fi
11955done
5213506e
RW
11956 done
11957IFS=$as_save_IFS
278a7a38
AO
11958
11959fi
11960fi
11961NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11962if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11964$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 11965else
5213506e
RW
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11967$as_echo "no" >&6; }
278a7a38
AO
11968fi
11969
5213506e 11970
278a7a38
AO
11971 done
11972fi
11973
11974if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11975 for ncn_progname in nm; do
5213506e
RW
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11977$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11978 if test -x $with_build_time_tools/${ncn_progname}; then
11979 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11981$as_echo "yes" >&6; }
e8b05380
PB
11982 break
11983 else
5213506e
RW
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11985$as_echo "no" >&6; }
e8b05380
PB
11986 fi
11987 done
11988fi
11989
11990if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11991 for ncn_progname in nm; do
11992 if test -n "$ncn_target_tool_prefix"; then
11993 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 11994set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11996$as_echo_n "checking for $ac_word... " >&6; }
11997if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11998 $as_echo_n "(cached) " >&6
ca9f4b81 11999else
4de997d1
PB
12000 if test -n "$NM_FOR_TARGET"; then
12001 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12002else
1c710c3c
DJ
12003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12004for as_dir in $PATH
12005do
12006 IFS=$as_save_IFS
12007 test -z "$as_dir" && as_dir=.
5213506e
RW
12008 for ac_exec_ext in '' $ac_executable_extensions; do
12009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12010 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12012 break 2
12013 fi
12014done
5213506e
RW
12015 done
12016IFS=$as_save_IFS
1c710c3c 12017
ca9f4b81
AO
12018fi
12019fi
1c710c3c 12020NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 12021if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12023$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12024else
5213506e
RW
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12026$as_echo "no" >&6; }
ca9f4b81
AO
12027fi
12028
5213506e 12029
e8b05380
PB
12030 fi
12031 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12032 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12033set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12035$as_echo_n "checking for $ac_word... " >&6; }
12036if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12037 $as_echo_n "(cached) " >&6
ca9f4b81 12038else
2693c0b0
PB
12039 if test -n "$NM_FOR_TARGET"; then
12040 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12041else
1c710c3c
DJ
12042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12043for as_dir in $PATH
12044do
12045 IFS=$as_save_IFS
12046 test -z "$as_dir" && as_dir=.
5213506e
RW
12047 for ac_exec_ext in '' $ac_executable_extensions; do
12048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12049 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12051 break 2
12052 fi
12053done
5213506e
RW
12054 done
12055IFS=$as_save_IFS
1c710c3c 12056
ca9f4b81
AO
12057fi
12058fi
1c710c3c 12059NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 12060if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12062$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12063else
5213506e
RW
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12065$as_echo "no" >&6; }
ca9f4b81 12066fi
1c710c3c 12067
5213506e 12068
e8b05380
PB
12069 fi
12070 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12071 done
12072fi
1c710c3c 12073
2693c0b0
PB
12074if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12075 set dummy nm
12076 if test $build = $target ; then
12077 NM_FOR_TARGET="$2"
ca9f4b81 12078 else
2693c0b0 12079 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12080 fi
1c00b503
PB
12081else
12082 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
12083fi
12084
d1f8db0c
PB
12085else
12086 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
12087fi
12088
12089
12090
12091
12092if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12093 if test -n "$with_build_time_tools"; then
5213506e
RW
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12095$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12096 if test -x $with_build_time_tools/objdump; then
12097 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12098 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12100$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 12101 else
5213506e
RW
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12103$as_echo "no" >&6; }
d1f8db0c 12104 fi
e8b05380
PB
12105 elif test $build != $host && test $have_gcc_for_target = yes; then
12106 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
12107 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12108 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
12109 fi
12110fi
3e19841a 12111if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12112 # Extract the first word of "objdump", so it can be a program name with args.
12113set dummy objdump; ac_word=$2
5213506e
RW
12114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12115$as_echo_n "checking for $ac_word... " >&6; }
12116if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12117 $as_echo_n "(cached) " >&6
e8b05380 12118else
1c710c3c
DJ
12119 case $OBJDUMP_FOR_TARGET in
12120 [\\/]* | ?:[\\/]*)
e8b05380
PB
12121 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12122 ;;
e8b05380 12123 *)
1c710c3c
DJ
12124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12125for as_dir in $gcc_cv_tool_dirs
12126do
12127 IFS=$as_save_IFS
12128 test -z "$as_dir" && as_dir=.
5213506e
RW
12129 for ac_exec_ext in '' $ac_executable_extensions; do
12130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12131 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12133 break 2
12134 fi
12135done
5213506e
RW
12136 done
12137IFS=$as_save_IFS
1c710c3c 12138
e8b05380
PB
12139 ;;
12140esac
12141fi
1c710c3c 12142OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 12143if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12145$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 12146else
5213506e
RW
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12148$as_echo "no" >&6; }
e8b05380
PB
12149fi
12150
5213506e 12151
e8b05380
PB
12152fi
12153if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
12154
12155
12156if test -n "$OBJDUMP_FOR_TARGET"; then
12157 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12158elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12159 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12160fi
12161
12162if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12163 for ncn_progname in objdump; do
12164 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12165set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12167$as_echo_n "checking for $ac_word... " >&6; }
12168if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12169 $as_echo_n "(cached) " >&6
278a7a38
AO
12170else
12171 if test -n "$OBJDUMP_FOR_TARGET"; then
12172 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12173else
12174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12175for as_dir in $PATH
12176do
12177 IFS=$as_save_IFS
12178 test -z "$as_dir" && as_dir=.
5213506e
RW
12179 for ac_exec_ext in '' $ac_executable_extensions; do
12180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12181 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12183 break 2
12184 fi
12185done
5213506e
RW
12186 done
12187IFS=$as_save_IFS
278a7a38
AO
12188
12189fi
12190fi
12191OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12192if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12194$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 12195else
5213506e
RW
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12197$as_echo "no" >&6; }
278a7a38
AO
12198fi
12199
5213506e 12200
278a7a38
AO
12201 done
12202fi
12203
12204if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12205 for ncn_progname in objdump; do
5213506e
RW
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12207$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12208 if test -x $with_build_time_tools/${ncn_progname}; then
12209 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12211$as_echo "yes" >&6; }
e8b05380
PB
12212 break
12213 else
5213506e
RW
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12215$as_echo "no" >&6; }
e8b05380
PB
12216 fi
12217 done
12218fi
12219
12220if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12221 for ncn_progname in objdump; do
12222 if test -n "$ncn_target_tool_prefix"; then
12223 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12224set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12226$as_echo_n "checking for $ac_word... " >&6; }
12227if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12228 $as_echo_n "(cached) " >&6
d739199a
DJ
12229else
12230 if test -n "$OBJDUMP_FOR_TARGET"; then
12231 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12232else
1c710c3c
DJ
12233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12234for as_dir in $PATH
12235do
12236 IFS=$as_save_IFS
12237 test -z "$as_dir" && as_dir=.
5213506e
RW
12238 for ac_exec_ext in '' $ac_executable_extensions; do
12239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12240 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12242 break 2
12243 fi
12244done
5213506e
RW
12245 done
12246IFS=$as_save_IFS
1c710c3c 12247
d739199a
DJ
12248fi
12249fi
1c710c3c 12250OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12251if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12253$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12254else
5213506e
RW
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12256$as_echo "no" >&6; }
d739199a
DJ
12257fi
12258
5213506e 12259
e8b05380
PB
12260 fi
12261 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12262 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 12263set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12265$as_echo_n "checking for $ac_word... " >&6; }
12266if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12267 $as_echo_n "(cached) " >&6
d739199a
DJ
12268else
12269 if test -n "$OBJDUMP_FOR_TARGET"; then
12270 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12271else
1c710c3c
DJ
12272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12273for as_dir in $PATH
12274do
12275 IFS=$as_save_IFS
12276 test -z "$as_dir" && as_dir=.
5213506e
RW
12277 for ac_exec_ext in '' $ac_executable_extensions; do
12278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12279 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12281 break 2
12282 fi
12283done
5213506e
RW
12284 done
12285IFS=$as_save_IFS
1c710c3c 12286
d739199a
DJ
12287fi
12288fi
1c710c3c 12289OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12290if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12292$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12293else
5213506e
RW
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12295$as_echo "no" >&6; }
d739199a 12296fi
1c710c3c 12297
5213506e 12298
e8b05380
PB
12299 fi
12300 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12301 done
12302fi
1c710c3c 12303
d739199a
DJ
12304if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12305 set dummy objdump
12306 if test $build = $target ; then
12307 OBJDUMP_FOR_TARGET="$2"
12308 else
12309 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12310 fi
1c00b503
PB
12311else
12312 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
12313fi
12314
d1f8db0c
PB
12315else
12316 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
12317fi
12318
12319
12320
12321
12322if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12323 if test -n "$with_build_time_tools"; then
5213506e
RW
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12325$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12326 if test -x $with_build_time_tools/ranlib; then
12327 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12328 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12330$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 12331 else
5213506e
RW
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12333$as_echo "no" >&6; }
d1f8db0c 12334 fi
e8b05380
PB
12335 elif test $build != $host && test $have_gcc_for_target = yes; then
12336 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
12337 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12338 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
12339 fi
12340fi
3e19841a 12341if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12342 # Extract the first word of "ranlib", so it can be a program name with args.
12343set dummy ranlib; ac_word=$2
5213506e
RW
12344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12345$as_echo_n "checking for $ac_word... " >&6; }
12346if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12347 $as_echo_n "(cached) " >&6
e8b05380 12348else
1c710c3c
DJ
12349 case $RANLIB_FOR_TARGET in
12350 [\\/]* | ?:[\\/]*)
e8b05380
PB
12351 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12352 ;;
e8b05380 12353 *)
1c710c3c
DJ
12354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12355for as_dir in $gcc_cv_tool_dirs
12356do
12357 IFS=$as_save_IFS
12358 test -z "$as_dir" && as_dir=.
5213506e
RW
12359 for ac_exec_ext in '' $ac_executable_extensions; do
12360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12361 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12363 break 2
12364 fi
12365done
5213506e
RW
12366 done
12367IFS=$as_save_IFS
1c710c3c 12368
e8b05380
PB
12369 ;;
12370esac
12371fi
1c710c3c 12372RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 12373if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12375$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 12376else
5213506e
RW
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12378$as_echo "no" >&6; }
e8b05380
PB
12379fi
12380
5213506e 12381
e8b05380
PB
12382fi
12383if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
12384
12385
12386if test -n "$RANLIB_FOR_TARGET"; then
12387 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12388elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12389 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12390fi
12391
12392if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12393 for ncn_progname in ranlib; do
12394 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12395set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12397$as_echo_n "checking for $ac_word... " >&6; }
12398if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12399 $as_echo_n "(cached) " >&6
278a7a38
AO
12400else
12401 if test -n "$RANLIB_FOR_TARGET"; then
12402 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12403else
12404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12405for as_dir in $PATH
12406do
12407 IFS=$as_save_IFS
12408 test -z "$as_dir" && as_dir=.
5213506e
RW
12409 for ac_exec_ext in '' $ac_executable_extensions; do
12410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12411 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12413 break 2
12414 fi
12415done
5213506e
RW
12416 done
12417IFS=$as_save_IFS
278a7a38
AO
12418
12419fi
12420fi
12421RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12422if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12424$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 12425else
5213506e
RW
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12427$as_echo "no" >&6; }
278a7a38
AO
12428fi
12429
5213506e 12430
278a7a38
AO
12431 done
12432fi
12433
12434if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12435 for ncn_progname in ranlib; do
5213506e
RW
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12437$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12438 if test -x $with_build_time_tools/${ncn_progname}; then
12439 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12441$as_echo "yes" >&6; }
e8b05380
PB
12442 break
12443 else
5213506e
RW
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12445$as_echo "no" >&6; }
e8b05380
PB
12446 fi
12447 done
12448fi
12449
12450if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12451 for ncn_progname in ranlib; do
12452 if test -n "$ncn_target_tool_prefix"; then
12453 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 12454set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12456$as_echo_n "checking for $ac_word... " >&6; }
12457if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12458 $as_echo_n "(cached) " >&6
ca9f4b81 12459else
4de997d1
PB
12460 if test -n "$RANLIB_FOR_TARGET"; then
12461 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12462else
1c710c3c
DJ
12463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12464for as_dir in $PATH
12465do
12466 IFS=$as_save_IFS
12467 test -z "$as_dir" && as_dir=.
5213506e
RW
12468 for ac_exec_ext in '' $ac_executable_extensions; do
12469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12470 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12472 break 2
12473 fi
12474done
5213506e
RW
12475 done
12476IFS=$as_save_IFS
1c710c3c 12477
ca9f4b81
AO
12478fi
12479fi
1c710c3c 12480RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 12481if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12483$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12484else
5213506e
RW
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12486$as_echo "no" >&6; }
ca9f4b81
AO
12487fi
12488
5213506e 12489
e8b05380
PB
12490 fi
12491 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12492 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12493set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12495$as_echo_n "checking for $ac_word... " >&6; }
12496if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12497 $as_echo_n "(cached) " >&6
ca9f4b81 12498else
2693c0b0
PB
12499 if test -n "$RANLIB_FOR_TARGET"; then
12500 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12501else
1c710c3c
DJ
12502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12503for as_dir in $PATH
12504do
12505 IFS=$as_save_IFS
12506 test -z "$as_dir" && as_dir=.
5213506e
RW
12507 for ac_exec_ext in '' $ac_executable_extensions; do
12508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12509 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12511 break 2
12512 fi
12513done
5213506e
RW
12514 done
12515IFS=$as_save_IFS
1c710c3c 12516
ca9f4b81
AO
12517fi
12518fi
1c710c3c 12519RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 12520if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12522$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12523else
5213506e
RW
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12525$as_echo "no" >&6; }
ca9f4b81 12526fi
1c710c3c 12527
5213506e 12528
e8b05380
PB
12529 fi
12530 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12531 done
12532fi
1c710c3c 12533
e8b05380
PB
12534if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12535 set dummy ranlib
12536 if test $build = $target ; then
12537 RANLIB_FOR_TARGET="$2"
12538 else
12539 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12540 fi
1c00b503
PB
12541else
12542 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 12543fi
2693c0b0 12544
d1f8db0c
PB
12545else
12546 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
12547fi
12548
e8b05380
PB
12549
12550
12551
e7a82751
RM
12552if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12553 if test -n "$with_build_time_tools"; then
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12555$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12556 if test -x $with_build_time_tools/readelf; then
12557 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12558 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12560$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12561 else
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12563$as_echo "no" >&6; }
12564 fi
12565 elif test $build != $host && test $have_gcc_for_target = yes; then
12566 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12567 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12568 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12569 fi
12570fi
12571if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12572 # Extract the first word of "readelf", so it can be a program name with args.
12573set dummy readelf; ac_word=$2
12574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12575$as_echo_n "checking for $ac_word... " >&6; }
12576if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12577 $as_echo_n "(cached) " >&6
12578else
12579 case $READELF_FOR_TARGET in
12580 [\\/]* | ?:[\\/]*)
12581 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12582 ;;
12583 *)
12584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12585for as_dir in $gcc_cv_tool_dirs
12586do
12587 IFS=$as_save_IFS
12588 test -z "$as_dir" && as_dir=.
12589 for ac_exec_ext in '' $ac_executable_extensions; do
12590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12591 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12593 break 2
12594 fi
12595done
12596 done
12597IFS=$as_save_IFS
12598
12599 ;;
12600esac
12601fi
12602READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12603if test -n "$READELF_FOR_TARGET"; then
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12605$as_echo "$READELF_FOR_TARGET" >&6; }
12606else
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12608$as_echo "no" >&6; }
12609fi
12610
12611
12612fi
12613if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12614
12615
12616if test -n "$READELF_FOR_TARGET"; then
12617 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12618elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12619 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12620fi
12621
12622if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12623 for ncn_progname in readelf; do
12624 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12625set dummy ${ncn_progname}; ac_word=$2
12626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12627$as_echo_n "checking for $ac_word... " >&6; }
12628if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12629 $as_echo_n "(cached) " >&6
12630else
12631 if test -n "$READELF_FOR_TARGET"; then
12632 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12633else
12634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12635for as_dir in $PATH
12636do
12637 IFS=$as_save_IFS
12638 test -z "$as_dir" && as_dir=.
12639 for ac_exec_ext in '' $ac_executable_extensions; do
12640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12641 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12643 break 2
12644 fi
12645done
12646 done
12647IFS=$as_save_IFS
12648
12649fi
12650fi
12651READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12652if test -n "$READELF_FOR_TARGET"; then
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12654$as_echo "$READELF_FOR_TARGET" >&6; }
12655else
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12657$as_echo "no" >&6; }
12658fi
12659
12660
12661 done
12662fi
12663
12664if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12665 for ncn_progname in readelf; do
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12667$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12668 if test -x $with_build_time_tools/${ncn_progname}; then
12669 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12671$as_echo "yes" >&6; }
12672 break
12673 else
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12675$as_echo "no" >&6; }
12676 fi
12677 done
12678fi
12679
12680if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12681 for ncn_progname in readelf; do
12682 if test -n "$ncn_target_tool_prefix"; then
12683 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12684set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12686$as_echo_n "checking for $ac_word... " >&6; }
12687if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12688 $as_echo_n "(cached) " >&6
12689else
12690 if test -n "$READELF_FOR_TARGET"; then
12691 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12692else
12693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12694for as_dir in $PATH
12695do
12696 IFS=$as_save_IFS
12697 test -z "$as_dir" && as_dir=.
12698 for ac_exec_ext in '' $ac_executable_extensions; do
12699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12700 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12702 break 2
12703 fi
12704done
12705 done
12706IFS=$as_save_IFS
12707
12708fi
12709fi
12710READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12711if test -n "$READELF_FOR_TARGET"; then
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12713$as_echo "$READELF_FOR_TARGET" >&6; }
12714else
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12716$as_echo "no" >&6; }
12717fi
12718
12719
12720 fi
12721 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12722 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12723set dummy ${ncn_progname}; ac_word=$2
12724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12725$as_echo_n "checking for $ac_word... " >&6; }
12726if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12727 $as_echo_n "(cached) " >&6
12728else
12729 if test -n "$READELF_FOR_TARGET"; then
12730 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12731else
12732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12733for as_dir in $PATH
12734do
12735 IFS=$as_save_IFS
12736 test -z "$as_dir" && as_dir=.
12737 for ac_exec_ext in '' $ac_executable_extensions; do
12738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12739 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12741 break 2
12742 fi
12743done
12744 done
12745IFS=$as_save_IFS
12746
12747fi
12748fi
12749READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12750if test -n "$READELF_FOR_TARGET"; then
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12752$as_echo "$READELF_FOR_TARGET" >&6; }
12753else
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12755$as_echo "no" >&6; }
12756fi
12757
12758
12759 fi
12760 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12761 done
12762fi
12763
12764if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12765 set dummy readelf
12766 if test $build = $target ; then
12767 READELF_FOR_TARGET="$2"
12768 else
12769 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12770 fi
12771else
12772 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12773fi
12774
12775else
12776 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12777fi
12778
12779
12780
12781
e8b05380
PB
12782if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12783 if test -n "$with_build_time_tools"; then
5213506e
RW
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12785$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12786 if test -x $with_build_time_tools/strip; then
12787 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12788 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12790$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 12791 else
5213506e
RW
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12793$as_echo "no" >&6; }
d1f8db0c 12794 fi
e8b05380
PB
12795 elif test $build != $host && test $have_gcc_for_target = yes; then
12796 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
12797 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12798 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
12799 fi
12800fi
3e19841a 12801if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12802 # Extract the first word of "strip", so it can be a program name with args.
12803set dummy strip; ac_word=$2
5213506e
RW
12804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12805$as_echo_n "checking for $ac_word... " >&6; }
12806if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12807 $as_echo_n "(cached) " >&6
e8b05380 12808else
1c710c3c
DJ
12809 case $STRIP_FOR_TARGET in
12810 [\\/]* | ?:[\\/]*)
e8b05380
PB
12811 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12812 ;;
e8b05380 12813 *)
1c710c3c
DJ
12814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12815for as_dir in $gcc_cv_tool_dirs
12816do
12817 IFS=$as_save_IFS
12818 test -z "$as_dir" && as_dir=.
5213506e
RW
12819 for ac_exec_ext in '' $ac_executable_extensions; do
12820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12821 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12823 break 2
12824 fi
12825done
5213506e
RW
12826 done
12827IFS=$as_save_IFS
1c710c3c 12828
e8b05380
PB
12829 ;;
12830esac
12831fi
1c710c3c 12832STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 12833if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12835$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 12836else
5213506e
RW
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12838$as_echo "no" >&6; }
e8b05380
PB
12839fi
12840
5213506e 12841
e8b05380
PB
12842fi
12843if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
12844
12845
12846if test -n "$STRIP_FOR_TARGET"; then
12847 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12848elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12849 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12850fi
12851
12852if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12853 for ncn_progname in strip; do
12854 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12855set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12857$as_echo_n "checking for $ac_word... " >&6; }
12858if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12859 $as_echo_n "(cached) " >&6
278a7a38
AO
12860else
12861 if test -n "$STRIP_FOR_TARGET"; then
12862 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12863else
12864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12865for as_dir in $PATH
12866do
12867 IFS=$as_save_IFS
12868 test -z "$as_dir" && as_dir=.
5213506e
RW
12869 for ac_exec_ext in '' $ac_executable_extensions; do
12870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12871 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 12872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12873 break 2
12874 fi
12875done
5213506e
RW
12876 done
12877IFS=$as_save_IFS
278a7a38
AO
12878
12879fi
12880fi
12881STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12882if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12884$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 12885else
5213506e
RW
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12887$as_echo "no" >&6; }
278a7a38
AO
12888fi
12889
5213506e 12890
278a7a38
AO
12891 done
12892fi
12893
12894if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12895 for ncn_progname in strip; do
5213506e
RW
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12897$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12898 if test -x $with_build_time_tools/${ncn_progname}; then
12899 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12901$as_echo "yes" >&6; }
e8b05380
PB
12902 break
12903 else
5213506e
RW
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12905$as_echo "no" >&6; }
e8b05380
PB
12906 fi
12907 done
12908fi
12909
12910if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12911 for ncn_progname in strip; do
12912 if test -n "$ncn_target_tool_prefix"; then
12913 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12914set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12916$as_echo_n "checking for $ac_word... " >&6; }
12917if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12918 $as_echo_n "(cached) " >&6
af71363e
AS
12919else
12920 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
12921 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12922else
12923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12924for as_dir in $PATH
12925do
12926 IFS=$as_save_IFS
12927 test -z "$as_dir" && as_dir=.
5213506e
RW
12928 for ac_exec_ext in '' $ac_executable_extensions; do
12929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12930 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12932 break 2
12933 fi
12934done
5213506e
RW
12935 done
12936IFS=$as_save_IFS
1c710c3c 12937
040b1c5a
GK
12938fi
12939fi
1c710c3c 12940STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 12941if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12943$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 12944else
5213506e
RW
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12946$as_echo "no" >&6; }
040b1c5a
GK
12947fi
12948
5213506e 12949
e8b05380
PB
12950 fi
12951 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12952 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 12953set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12955$as_echo_n "checking for $ac_word... " >&6; }
12956if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12957 $as_echo_n "(cached) " >&6
040b1c5a
GK
12958else
12959 if test -n "$STRIP_FOR_TARGET"; then
12960 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12961else
1c710c3c
DJ
12962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12963for as_dir in $PATH
12964do
12965 IFS=$as_save_IFS
12966 test -z "$as_dir" && as_dir=.
5213506e
RW
12967 for ac_exec_ext in '' $ac_executable_extensions; do
12968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12969 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 12970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12971 break 2
12972 fi
12973done
5213506e
RW
12974 done
12975IFS=$as_save_IFS
1c710c3c 12976
040b1c5a
GK
12977fi
12978fi
1c710c3c 12979STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 12980if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12982$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 12983else
5213506e
RW
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12985$as_echo "no" >&6; }
040b1c5a 12986fi
1c710c3c 12987
5213506e 12988
e8b05380
PB
12989 fi
12990 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12991 done
12992fi
1c710c3c 12993
040b1c5a
GK
12994if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12995 set dummy strip
12996 if test $build = $target ; then
12997 STRIP_FOR_TARGET="$2"
12998 else
12999 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13000 fi
1c00b503
PB
13001else
13002 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
13003fi
13004
d1f8db0c
PB
13005else
13006 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
13007fi
13008
13009
13010
13011
13012if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13013 if test -n "$with_build_time_tools"; then
5213506e
RW
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13015$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13016 if test -x $with_build_time_tools/windres; then
13017 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13018 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13020$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 13021 else
5213506e
RW
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13023$as_echo "no" >&6; }
d1f8db0c 13024 fi
e8b05380
PB
13025 elif test $build != $host && test $have_gcc_for_target = yes; then
13026 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
13027 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13028 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
13029 fi
13030fi
3e19841a 13031if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13032 # Extract the first word of "windres", so it can be a program name with args.
13033set dummy windres; ac_word=$2
5213506e
RW
13034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13035$as_echo_n "checking for $ac_word... " >&6; }
13036if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13037 $as_echo_n "(cached) " >&6
e8b05380 13038else
1c710c3c
DJ
13039 case $WINDRES_FOR_TARGET in
13040 [\\/]* | ?:[\\/]*)
e8b05380
PB
13041 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13042 ;;
e8b05380 13043 *)
1c710c3c
DJ
13044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13045for as_dir in $gcc_cv_tool_dirs
13046do
13047 IFS=$as_save_IFS
13048 test -z "$as_dir" && as_dir=.
5213506e
RW
13049 for ac_exec_ext in '' $ac_executable_extensions; do
13050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13051 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13053 break 2
13054 fi
13055done
5213506e
RW
13056 done
13057IFS=$as_save_IFS
1c710c3c 13058
e8b05380
PB
13059 ;;
13060esac
13061fi
1c710c3c 13062WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 13063if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13065$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 13066else
5213506e
RW
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13068$as_echo "no" >&6; }
e8b05380
PB
13069fi
13070
5213506e 13071
e8b05380
PB
13072fi
13073if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
13074
13075
13076if test -n "$WINDRES_FOR_TARGET"; then
13077 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13078elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13079 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13080fi
13081
13082if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13083 for ncn_progname in windres; do
13084 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13085set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13087$as_echo_n "checking for $ac_word... " >&6; }
13088if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13089 $as_echo_n "(cached) " >&6
278a7a38
AO
13090else
13091 if test -n "$WINDRES_FOR_TARGET"; then
13092 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13093else
13094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13095for as_dir in $PATH
13096do
13097 IFS=$as_save_IFS
13098 test -z "$as_dir" && as_dir=.
5213506e
RW
13099 for ac_exec_ext in '' $ac_executable_extensions; do
13100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 13101 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13103 break 2
13104 fi
13105done
5213506e
RW
13106 done
13107IFS=$as_save_IFS
278a7a38
AO
13108
13109fi
13110fi
13111WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13112if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13114$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 13115else
5213506e
RW
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13117$as_echo "no" >&6; }
278a7a38
AO
13118fi
13119
5213506e 13120
278a7a38
AO
13121 done
13122fi
13123
13124if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13125 for ncn_progname in windres; do
5213506e
RW
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13127$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13128 if test -x $with_build_time_tools/${ncn_progname}; then
13129 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13131$as_echo "yes" >&6; }
e8b05380
PB
13132 break
13133 else
5213506e
RW
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13135$as_echo "no" >&6; }
e8b05380
PB
13136 fi
13137 done
13138fi
13139
13140if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13141 for ncn_progname in windres; do
13142 if test -n "$ncn_target_tool_prefix"; then
13143 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13144set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13146$as_echo_n "checking for $ac_word... " >&6; }
13147if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13148 $as_echo_n "(cached) " >&6
ca9f4b81 13149else
4de997d1
PB
13150 if test -n "$WINDRES_FOR_TARGET"; then
13151 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13152else
1c710c3c
DJ
13153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13154for as_dir in $PATH
13155do
13156 IFS=$as_save_IFS
13157 test -z "$as_dir" && as_dir=.
5213506e
RW
13158 for ac_exec_ext in '' $ac_executable_extensions; do
13159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13160 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13162 break 2
13163 fi
13164done
5213506e
RW
13165 done
13166IFS=$as_save_IFS
1c710c3c 13167
ca9f4b81
AO
13168fi
13169fi
1c710c3c 13170WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 13171if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13173$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13174else
5213506e
RW
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13176$as_echo "no" >&6; }
ca9f4b81
AO
13177fi
13178
5213506e 13179
e8b05380
PB
13180 fi
13181 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13182 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13183set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13185$as_echo_n "checking for $ac_word... " >&6; }
13186if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13187 $as_echo_n "(cached) " >&6
ca9f4b81 13188else
2693c0b0
PB
13189 if test -n "$WINDRES_FOR_TARGET"; then
13190 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13191else
1c710c3c
DJ
13192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13193for as_dir in $PATH
13194do
13195 IFS=$as_save_IFS
13196 test -z "$as_dir" && as_dir=.
5213506e
RW
13197 for ac_exec_ext in '' $ac_executable_extensions; do
13198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13199 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13201 break 2
13202 fi
13203done
5213506e
RW
13204 done
13205IFS=$as_save_IFS
1c710c3c 13206
ca9f4b81
AO
13207fi
13208fi
1c710c3c 13209WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 13210if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13212$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13213else
5213506e
RW
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13215$as_echo "no" >&6; }
ca9f4b81 13216fi
1c710c3c 13217
5213506e 13218
e8b05380
PB
13219 fi
13220 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13221 done
13222fi
1c710c3c 13223
2693c0b0
PB
13224if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13225 set dummy windres
13226 if test $build = $target ; then
13227 WINDRES_FOR_TARGET="$2"
ca9f4b81 13228 else
2693c0b0 13229 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 13230 fi
1c00b503
PB
13231else
13232 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
13233fi
13234
d1f8db0c
PB
13235else
13236 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
13237fi
13238
4977bab6 13239
901119ae
KT
13240
13241
13242if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13243 if test -n "$with_build_time_tools"; then
5213506e
RW
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13245$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
13246 if test -x $with_build_time_tools/windmc; then
13247 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13248 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13250$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 13251 else
5213506e
RW
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13253$as_echo "no" >&6; }
901119ae
KT
13254 fi
13255 elif test $build != $host && test $have_gcc_for_target = yes; then
13256 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
13257 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13258 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
13259 fi
13260fi
13261if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13262 # Extract the first word of "windmc", so it can be a program name with args.
13263set dummy windmc; ac_word=$2
5213506e
RW
13264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13265$as_echo_n "checking for $ac_word... " >&6; }
13266if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13267 $as_echo_n "(cached) " >&6
901119ae
KT
13268else
13269 case $WINDMC_FOR_TARGET in
13270 [\\/]* | ?:[\\/]*)
13271 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13272 ;;
13273 *)
13274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13275for as_dir in $gcc_cv_tool_dirs
13276do
13277 IFS=$as_save_IFS
13278 test -z "$as_dir" && as_dir=.
5213506e
RW
13279 for ac_exec_ext in '' $ac_executable_extensions; do
13280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13281 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13283 break 2
13284 fi
13285done
5213506e
RW
13286 done
13287IFS=$as_save_IFS
901119ae
KT
13288
13289 ;;
13290esac
13291fi
13292WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 13293if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13295$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13296else
5213506e
RW
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13298$as_echo "no" >&6; }
901119ae
KT
13299fi
13300
5213506e 13301
901119ae
KT
13302fi
13303if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13304
13305
13306if test -n "$WINDMC_FOR_TARGET"; then
13307 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13308elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13309 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13310fi
13311
13312if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13313 for ncn_progname in windmc; do
13314 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13315set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13317$as_echo_n "checking for $ac_word... " >&6; }
13318if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13319 $as_echo_n "(cached) " >&6
901119ae
KT
13320else
13321 if test -n "$WINDMC_FOR_TARGET"; then
13322 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13323else
13324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13325for as_dir in $PATH
13326do
13327 IFS=$as_save_IFS
13328 test -z "$as_dir" && as_dir=.
5213506e
RW
13329 for ac_exec_ext in '' $ac_executable_extensions; do
13330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13331 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13333 break 2
13334 fi
13335done
5213506e
RW
13336 done
13337IFS=$as_save_IFS
901119ae
KT
13338
13339fi
13340fi
13341WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13342if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13344$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13345else
5213506e
RW
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13347$as_echo "no" >&6; }
901119ae
KT
13348fi
13349
5213506e 13350
901119ae
KT
13351 done
13352fi
13353
13354if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13355 for ncn_progname in windmc; do
5213506e
RW
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13357$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
13358 if test -x $with_build_time_tools/${ncn_progname}; then
13359 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13361$as_echo "yes" >&6; }
901119ae
KT
13362 break
13363 else
5213506e
RW
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13365$as_echo "no" >&6; }
901119ae
KT
13366 fi
13367 done
13368fi
13369
13370if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13371 for ncn_progname in windmc; do
13372 if test -n "$ncn_target_tool_prefix"; then
13373 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13374set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13376$as_echo_n "checking for $ac_word... " >&6; }
13377if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13378 $as_echo_n "(cached) " >&6
901119ae
KT
13379else
13380 if test -n "$WINDMC_FOR_TARGET"; then
13381 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13382else
13383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13384for as_dir in $PATH
13385do
13386 IFS=$as_save_IFS
13387 test -z "$as_dir" && as_dir=.
5213506e
RW
13388 for ac_exec_ext in '' $ac_executable_extensions; do
13389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13390 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13392 break 2
13393 fi
13394done
5213506e
RW
13395 done
13396IFS=$as_save_IFS
901119ae
KT
13397
13398fi
13399fi
13400WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13401if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13403$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13404else
5213506e
RW
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13406$as_echo "no" >&6; }
901119ae
KT
13407fi
13408
5213506e 13409
901119ae
KT
13410 fi
13411 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13412 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13413set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13415$as_echo_n "checking for $ac_word... " >&6; }
13416if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13417 $as_echo_n "(cached) " >&6
901119ae
KT
13418else
13419 if test -n "$WINDMC_FOR_TARGET"; then
13420 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13421else
13422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13423for as_dir in $PATH
13424do
13425 IFS=$as_save_IFS
13426 test -z "$as_dir" && as_dir=.
5213506e
RW
13427 for ac_exec_ext in '' $ac_executable_extensions; do
13428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13429 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13431 break 2
13432 fi
13433done
5213506e
RW
13434 done
13435IFS=$as_save_IFS
901119ae
KT
13436
13437fi
13438fi
13439WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13440if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13442$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13443else
5213506e
RW
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13445$as_echo "no" >&6; }
901119ae
KT
13446fi
13447
5213506e 13448
901119ae
KT
13449 fi
13450 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13451 done
13452fi
13453
13454if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13455 set dummy windmc
13456 if test $build = $target ; then
13457 WINDMC_FOR_TARGET="$2"
13458 else
13459 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13460 fi
1c00b503
PB
13461else
13462 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
13463fi
13464
13465else
13466 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13467fi
13468
13469
2abefe3d
PB
13470RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13471
5213506e
RW
13472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13473$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 13474if test "x${build}" != "x${host}" ; then
e8b05380
PB
13475 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13476 # We already found the complete path
172e41aa 13477 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13479$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13480 else
13481 # Canadian cross, just use what we found
5213506e
RW
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13483$as_echo "pre-installed" >&6; }
e8b05380 13484 fi
2abefe3d
PB
13485else
13486 ok=yes
13487 case " ${configdirs} " in
13488 *" binutils "*) ;;
13489 *) ok=no ;;
13490 esac
1c710c3c 13491
2abefe3d
PB
13492 if test $ok = yes; then
13493 # An in-tree tool is available and we can use it
13494 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13496$as_echo "just compiled" >&6; }
e8b05380
PB
13497 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13498 # We already found the complete path
172e41aa 13499 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13501$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13502 elif test "x$target" = "x$host"; then
13503 # We can use an host tool
13504 AR_FOR_TARGET='$(AR)'
5213506e
RW
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13506$as_echo "host tool" >&6; }
2abefe3d
PB
13507 else
13508 # We need a cross tool
5213506e
RW
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13510$as_echo "pre-installed" >&6; }
2abefe3d
PB
13511 fi
13512fi
0b0dc272 13513
5213506e
RW
13514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13515$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 13516if test "x${build}" != "x${host}" ; then
e8b05380
PB
13517 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13518 # We already found the complete path
172e41aa 13519 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13521$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13522 else
13523 # Canadian cross, just use what we found
5213506e
RW
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13525$as_echo "pre-installed" >&6; }
e8b05380 13526 fi
2abefe3d
PB
13527else
13528 ok=yes
13529 case " ${configdirs} " in
13530 *" gas "*) ;;
13531 *) ok=no ;;
13532 esac
1c710c3c 13533
2abefe3d
PB
13534 if test $ok = yes; then
13535 # An in-tree tool is available and we can use it
13536 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13538$as_echo "just compiled" >&6; }
e8b05380
PB
13539 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13540 # We already found the complete path
172e41aa 13541 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13543$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13544 elif test "x$target" = "x$host"; then
13545 # We can use an host tool
13546 AS_FOR_TARGET='$(AS)'
5213506e
RW
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13548$as_echo "host tool" >&6; }
2abefe3d
PB
13549 else
13550 # We need a cross tool
5213506e
RW
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13552$as_echo "pre-installed" >&6; }
2abefe3d
PB
13553 fi
13554fi
0b0dc272 13555
5213506e
RW
13556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13557$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 13558if test "x${build}" != "x${host}" ; then
e8b05380
PB
13559 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13560 # We already found the complete path
172e41aa 13561 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13563$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13564 else
13565 # Canadian cross, just use what we found
5213506e
RW
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13567$as_echo "pre-installed" >&6; }
e8b05380 13568 fi
2abefe3d
PB
13569else
13570 ok=yes
13571 case " ${configdirs} " in
13572 *" gcc "*) ;;
13573 *) ok=no ;;
13574 esac
1c710c3c 13575
2abefe3d
PB
13576 if test $ok = yes; then
13577 # An in-tree tool is available and we can use it
13578 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13580$as_echo "just compiled" >&6; }
e8b05380
PB
13581 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13582 # We already found the complete path
172e41aa 13583 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13585$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13586 elif test "x$target" = "x$host"; then
13587 # We can use an host tool
13588 CC_FOR_TARGET='$(CC)'
5213506e
RW
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13590$as_echo "host tool" >&6; }
2abefe3d
PB
13591 else
13592 # We need a cross tool
5213506e
RW
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13594$as_echo "pre-installed" >&6; }
2abefe3d
PB
13595 fi
13596fi
0b0dc272 13597
5213506e
RW
13598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13599$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 13600if test "x${build}" != "x${host}" ; then
e8b05380
PB
13601 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13602 # We already found the complete path
172e41aa 13603 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13605$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13606 else
13607 # Canadian cross, just use what we found
5213506e
RW
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13609$as_echo "pre-installed" >&6; }
e8b05380 13610 fi
2abefe3d
PB
13611else
13612 ok=yes
13613 case " ${configdirs} " in
13614 *" gcc "*) ;;
13615 *) ok=no ;;
13616 esac
13617 case ,${enable_languages}, in
13618 *,c++,*) ;;
13619 *) ok=no ;;
13620 esac
13621 if test $ok = yes; then
13622 # An in-tree tool is available and we can use it
9aff220f 13623 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -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
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13625$as_echo "just compiled" >&6; }
e8b05380
PB
13626 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13627 # We already found the complete path
172e41aa 13628 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13630$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13631 elif test "x$target" = "x$host"; then
13632 # We can use an host tool
13633 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13635$as_echo "host tool" >&6; }
2abefe3d
PB
13636 else
13637 # We need a cross tool
5213506e
RW
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13639$as_echo "pre-installed" >&6; }
2abefe3d
PB
13640 fi
13641fi
0b0dc272 13642
5213506e
RW
13643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13644$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 13645if test "x${build}" != "x${host}" ; then
e8b05380
PB
13646 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13647 # We already found the complete path
172e41aa 13648 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13650$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13651 else
13652 # Canadian cross, just use what we found
5213506e
RW
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13654$as_echo "pre-installed" >&6; }
e8b05380 13655 fi
2abefe3d
PB
13656else
13657 ok=yes
13658 case " ${configdirs} " in
13659 *" gcc "*) ;;
13660 *) ok=no ;;
13661 esac
13662 case ,${enable_languages}, in
13663 *,c++,*) ;;
13664 *) ok=no ;;
13665 esac
13666 if test $ok = yes; then
13667 # An in-tree tool is available and we can use it
13668 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
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13670$as_echo "just compiled" >&6; }
e8b05380
PB
13671 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13672 # We already found the complete path
172e41aa 13673 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13675$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13676 elif test "x$target" = "x$host"; then
13677 # We can use an host tool
13678 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13680$as_echo "host tool" >&6; }
2abefe3d
PB
13681 else
13682 # We need a cross tool
5213506e
RW
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13684$as_echo "pre-installed" >&6; }
2abefe3d
PB
13685 fi
13686fi
0b0dc272 13687
5213506e
RW
13688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13689$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 13690if test "x${build}" != "x${host}" ; then
e8b05380
PB
13691 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13692 # We already found the complete path
172e41aa 13693 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13695$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13696 else
13697 # Canadian cross, just use what we found
5213506e
RW
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13699$as_echo "pre-installed" >&6; }
e8b05380 13700 fi
2abefe3d
PB
13701else
13702 ok=yes
13703 case " ${configdirs} " in
13704 *" binutils "*) ;;
13705 *) ok=no ;;
13706 esac
1c710c3c 13707
2abefe3d
PB
13708 if test $ok = yes; then
13709 # An in-tree tool is available and we can use it
13710 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13712$as_echo "just compiled" >&6; }
e8b05380
PB
13713 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13714 # We already found the complete path
172e41aa 13715 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13717$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13718 elif test "x$target" = "x$host"; then
13719 # We can use an host tool
13720 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13722$as_echo "host tool" >&6; }
2abefe3d
PB
13723 else
13724 # We need a cross tool
5213506e
RW
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13726$as_echo "pre-installed" >&6; }
2abefe3d
PB
13727 fi
13728fi
0b0dc272 13729
5213506e
RW
13730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13731$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 13732if test "x${build}" != "x${host}" ; then
e8b05380
PB
13733 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13734 # We already found the complete path
172e41aa 13735 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13737$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13738 else
13739 # Canadian cross, just use what we found
5213506e
RW
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13741$as_echo "pre-installed" >&6; }
e8b05380 13742 fi
2abefe3d
PB
13743else
13744 ok=yes
13745 case " ${configdirs} " in
13746 *" gcc "*) ;;
13747 *) ok=no ;;
13748 esac
1c710c3c 13749
2abefe3d
PB
13750 if test $ok = yes; then
13751 # An in-tree tool is available and we can use it
13752 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13754$as_echo "just compiled" >&6; }
e8b05380
PB
13755 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13756 # We already found the complete path
172e41aa 13757 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13759$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13760 elif test "x$target" = "x$host"; then
13761 # We can use an host tool
13762 GCC_FOR_TARGET='$()'
5213506e
RW
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13764$as_echo "host tool" >&6; }
2abefe3d
PB
13765 else
13766 # We need a cross tool
5213506e
RW
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13768$as_echo "pre-installed" >&6; }
2abefe3d
PB
13769 fi
13770fi
0b0dc272 13771
5213506e
RW
13772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13773$as_echo_n "checking where to find the target gcj... " >&6; }
2abefe3d 13774if test "x${build}" != "x${host}" ; then
e8b05380
PB
13775 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13776 # We already found the complete path
172e41aa 13777 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13779$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13780 else
13781 # Canadian cross, just use what we found
5213506e
RW
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13783$as_echo "pre-installed" >&6; }
e8b05380 13784 fi
2abefe3d
PB
13785else
13786 ok=yes
13787 case " ${configdirs} " in
13788 *" gcc "*) ;;
13789 *) ok=no ;;
13790 esac
13791 case ,${enable_languages}, in
13792 *,java,*) ;;
13793 *) ok=no ;;
13794 esac
13795 if test $ok = yes; then
13796 # An in-tree tool is available and we can use it
13797 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13799$as_echo "just compiled" >&6; }
e8b05380
PB
13800 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13801 # We already found the complete path
172e41aa 13802 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13804$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13805 elif test "x$target" = "x$host"; then
13806 # We can use an host tool
13807 GCJ_FOR_TARGET='$(GCJ)'
5213506e
RW
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13809$as_echo "host tool" >&6; }
2abefe3d
PB
13810 else
13811 # We need a cross tool
5213506e
RW
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13813$as_echo "pre-installed" >&6; }
2abefe3d
PB
13814 fi
13815fi
0b0dc272 13816
5213506e
RW
13817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13818$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 13819if test "x${build}" != "x${host}" ; then
e8b05380
PB
13820 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13821 # We already found the complete path
172e41aa 13822 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13824$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13825 else
13826 # Canadian cross, just use what we found
5213506e
RW
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13828$as_echo "pre-installed" >&6; }
e8b05380 13829 fi
2abefe3d
PB
13830else
13831 ok=yes
13832 case " ${configdirs} " in
13833 *" gcc "*) ;;
13834 *) ok=no ;;
13835 esac
13836 case ,${enable_languages}, in
13837 *,fortran,*) ;;
13838 *) ok=no ;;
13839 esac
13840 if test $ok = yes; then
13841 # An in-tree tool is available and we can use it
13842 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13844$as_echo "just compiled" >&6; }
e8b05380
PB
13845 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13846 # We already found the complete path
172e41aa 13847 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13849$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13850 elif test "x$target" = "x$host"; then
13851 # We can use an host tool
13852 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13854$as_echo "host tool" >&6; }
2abefe3d
PB
13855 else
13856 # We need a cross tool
5213506e
RW
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13858$as_echo "pre-installed" >&6; }
2abefe3d
PB
13859 fi
13860fi
0b0dc272 13861
632e2a07
ILT
13862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13863$as_echo_n "checking where to find the target gccgo... " >&6; }
13864if test "x${build}" != "x${host}" ; then
13865 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13866 # We already found the complete path
13867 ac_dir=`dirname $GOC_FOR_TARGET`
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13869$as_echo "pre-installed in $ac_dir" >&6; }
13870 else
13871 # Canadian cross, just use what we found
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13873$as_echo "pre-installed" >&6; }
13874 fi
13875else
13876 ok=yes
13877 case " ${configdirs} " in
13878 *" gcc "*) ;;
13879 *) ok=no ;;
13880 esac
13881 case ,${enable_languages}, in
13882 *,go,*) ;;
13883 *) ok=no ;;
13884 esac
13885 if test $ok = yes; then
13886 # An in-tree tool is available and we can use it
13887 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13889$as_echo "just compiled" >&6; }
13890 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13891 # We already found the complete path
13892 ac_dir=`dirname $GOC_FOR_TARGET`
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13894$as_echo "pre-installed in $ac_dir" >&6; }
13895 elif test "x$target" = "x$host"; then
13896 # We can use an host tool
13897 GOC_FOR_TARGET='$(GOC)'
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13899$as_echo "host tool" >&6; }
13900 else
13901 # We need a cross tool
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13903$as_echo "pre-installed" >&6; }
13904 fi
13905fi
13906
5213506e
RW
13907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13908$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 13909if test "x${build}" != "x${host}" ; then
e8b05380
PB
13910 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13911 # We already found the complete path
172e41aa 13912 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13914$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13915 else
13916 # Canadian cross, just use what we found
5213506e
RW
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13918$as_echo "pre-installed" >&6; }
e8b05380 13919 fi
2abefe3d
PB
13920else
13921 ok=yes
13922 case " ${configdirs} " in
13923 *" ld "*) ;;
13924 *) ok=no ;;
13925 esac
1c710c3c 13926
2abefe3d
PB
13927 if test $ok = yes; then
13928 # An in-tree tool is available and we can use it
13929 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13931$as_echo "just compiled" >&6; }
e8b05380
PB
13932 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13933 # We already found the complete path
172e41aa 13934 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13936$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13937 elif test "x$target" = "x$host"; then
13938 # We can use an host tool
13939 LD_FOR_TARGET='$(LD)'
5213506e
RW
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13941$as_echo "host tool" >&6; }
2abefe3d
PB
13942 else
13943 # We need a cross tool
5213506e
RW
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13945$as_echo "pre-installed" >&6; }
2abefe3d
PB
13946 fi
13947fi
0b0dc272 13948
5213506e
RW
13949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13950$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 13951if test "x${build}" != "x${host}" ; then
e8b05380
PB
13952 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13953 # We already found the complete path
172e41aa 13954 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13956$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13957 else
13958 # Canadian cross, just use what we found
5213506e
RW
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13960$as_echo "pre-installed" >&6; }
e8b05380 13961 fi
2abefe3d 13962else
e8b05380
PB
13963 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13964 # We already found the complete path
172e41aa 13965 ac_dir=`dirname $LIPO_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; }
e8b05380 13968 elif test "x$target" = "x$host"; then
2abefe3d
PB
13969 # We can use an host tool
13970 LIPO_FOR_TARGET='$(LIPO)'
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
5213506e
RW
13980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13981$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 13982if test "x${build}" != "x${host}" ; then
e8b05380
PB
13983 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13984 # We already found the complete path
172e41aa 13985 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13987$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13988 else
13989 # Canadian cross, just use what we found
5213506e
RW
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13991$as_echo "pre-installed" >&6; }
e8b05380 13992 fi
2abefe3d
PB
13993else
13994 ok=yes
13995 case " ${configdirs} " in
13996 *" binutils "*) ;;
13997 *) ok=no ;;
13998 esac
1c710c3c 13999
2abefe3d
PB
14000 if test $ok = yes; then
14001 # An in-tree tool is available and we can use it
14002 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14004$as_echo "just compiled" >&6; }
e8b05380
PB
14005 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14006 # We already found the complete path
172e41aa 14007 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14009$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14010 elif test "x$target" = "x$host"; then
14011 # We can use an host tool
14012 NM_FOR_TARGET='$(NM)'
5213506e
RW
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14014$as_echo "host tool" >&6; }
2abefe3d
PB
14015 else
14016 # We need a cross tool
5213506e
RW
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14018$as_echo "pre-installed" >&6; }
2abefe3d
PB
14019 fi
14020fi
0b0dc272 14021
5213506e
RW
14022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14023$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 14024if test "x${build}" != "x${host}" ; then
e8b05380
PB
14025 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14026 # We already found the complete path
172e41aa 14027 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14029$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14030 else
14031 # Canadian cross, just use what we found
5213506e
RW
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14033$as_echo "pre-installed" >&6; }
e8b05380 14034 fi
2abefe3d
PB
14035else
14036 ok=yes
14037 case " ${configdirs} " in
14038 *" binutils "*) ;;
14039 *) ok=no ;;
14040 esac
1c710c3c 14041
2abefe3d
PB
14042 if test $ok = yes; then
14043 # An in-tree tool is available and we can use it
14044 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14046$as_echo "just compiled" >&6; }
e8b05380
PB
14047 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14048 # We already found the complete path
172e41aa 14049 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14051$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14052 elif test "x$target" = "x$host"; then
14053 # We can use an host tool
14054 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14056$as_echo "host tool" >&6; }
2abefe3d
PB
14057 else
14058 # We need a cross tool
5213506e
RW
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14060$as_echo "pre-installed" >&6; }
2abefe3d
PB
14061 fi
14062fi
0b0dc272 14063
5213506e
RW
14064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14065$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 14066if test "x${build}" != "x${host}" ; then
e8b05380
PB
14067 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14068 # We already found the complete path
172e41aa 14069 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14071$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14072 else
14073 # Canadian cross, just use what we found
5213506e
RW
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14075$as_echo "pre-installed" >&6; }
e8b05380 14076 fi
2abefe3d
PB
14077else
14078 ok=yes
14079 case " ${configdirs} " in
14080 *" binutils "*) ;;
14081 *) ok=no ;;
14082 esac
1c710c3c 14083
2abefe3d
PB
14084 if test $ok = yes; then
14085 # An in-tree tool is available and we can use it
14086 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14088$as_echo "just compiled" >&6; }
e8b05380
PB
14089 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14090 # We already found the complete path
172e41aa 14091 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14093$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14094 elif test "x$target" = "x$host"; then
14095 # We can use an host tool
14096 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14098$as_echo "host tool" >&6; }
2abefe3d
PB
14099 else
14100 # We need a cross tool
5213506e
RW
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14102$as_echo "pre-installed" >&6; }
2abefe3d
PB
14103 fi
14104fi
0b0dc272 14105
e7a82751
RM
14106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14107$as_echo_n "checking where to find the target readelf... " >&6; }
14108if test "x${build}" != "x${host}" ; then
14109 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14110 # We already found the complete path
14111 ac_dir=`dirname $READELF_FOR_TARGET`
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14113$as_echo "pre-installed in $ac_dir" >&6; }
14114 else
14115 # Canadian cross, just use what we found
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14117$as_echo "pre-installed" >&6; }
14118 fi
14119else
14120 ok=yes
14121 case " ${configdirs} " in
14122 *" binutils "*) ;;
14123 *) ok=no ;;
14124 esac
14125
14126 if test $ok = yes; then
14127 # An in-tree tool is available and we can use it
14128 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14130$as_echo "just compiled" >&6; }
14131 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14132 # We already found the complete path
14133 ac_dir=`dirname $READELF_FOR_TARGET`
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14135$as_echo "pre-installed in $ac_dir" >&6; }
14136 elif test "x$target" = "x$host"; then
14137 # We can use an host tool
14138 READELF_FOR_TARGET='$(READELF)'
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14140$as_echo "host tool" >&6; }
14141 else
14142 # We need a cross tool
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14144$as_echo "pre-installed" >&6; }
14145 fi
14146fi
14147
5213506e
RW
14148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14149$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 14150if test "x${build}" != "x${host}" ; then
e8b05380
PB
14151 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14152 # We already found the complete path
172e41aa 14153 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14155$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14156 else
14157 # Canadian cross, just use what we found
5213506e
RW
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14159$as_echo "pre-installed" >&6; }
e8b05380 14160 fi
2abefe3d
PB
14161else
14162 ok=yes
14163 case " ${configdirs} " in
14164 *" binutils "*) ;;
14165 *) ok=no ;;
14166 esac
1c710c3c 14167
2abefe3d
PB
14168 if test $ok = yes; then
14169 # An in-tree tool is available and we can use it
455c8f48 14170 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14172$as_echo "just compiled" >&6; }
e8b05380
PB
14173 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14174 # We already found the complete path
172e41aa 14175 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14177$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14178 elif test "x$target" = "x$host"; then
14179 # We can use an host tool
14180 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14182$as_echo "host tool" >&6; }
2abefe3d
PB
14183 else
14184 # We need a cross tool
5213506e
RW
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14186$as_echo "pre-installed" >&6; }
2abefe3d
PB
14187 fi
14188fi
0b0dc272 14189
5213506e
RW
14190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14191$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 14192if test "x${build}" != "x${host}" ; then
e8b05380
PB
14193 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14194 # We already found the complete path
172e41aa 14195 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14197$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14198 else
14199 # Canadian cross, just use what we found
5213506e
RW
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14201$as_echo "pre-installed" >&6; }
e8b05380 14202 fi
2abefe3d
PB
14203else
14204 ok=yes
14205 case " ${configdirs} " in
14206 *" binutils "*) ;;
14207 *) ok=no ;;
14208 esac
1c710c3c 14209
2abefe3d
PB
14210 if test $ok = yes; then
14211 # An in-tree tool is available and we can use it
14212 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14214$as_echo "just compiled" >&6; }
e8b05380
PB
14215 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14216 # We already found the complete path
172e41aa 14217 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14219$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14220 elif test "x$target" = "x$host"; then
14221 # We can use an host tool
14222 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14224$as_echo "host tool" >&6; }
2abefe3d
PB
14225 else
14226 # We need a cross tool
5213506e
RW
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14228$as_echo "pre-installed" >&6; }
2abefe3d 14229 fi
671aa708 14230fi
be912515 14231
5213506e
RW
14232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14233$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
14234if test "x${build}" != "x${host}" ; then
14235 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14236 # We already found the complete path
14237 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14239$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14240 else
14241 # Canadian cross, just use what we found
5213506e
RW
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14243$as_echo "pre-installed" >&6; }
901119ae
KT
14244 fi
14245else
14246 ok=yes
14247 case " ${configdirs} " in
14248 *" binutils "*) ;;
14249 *) ok=no ;;
14250 esac
14251
14252 if test $ok = yes; then
14253 # An in-tree tool is available and we can use it
14254 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14256$as_echo "just compiled" >&6; }
901119ae
KT
14257 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14258 # We already found the complete path
14259 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14261$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14262 elif test "x$target" = "x$host"; then
14263 # We can use an host tool
14264 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14266$as_echo "host tool" >&6; }
901119ae
KT
14267 else
14268 # We need a cross tool
5213506e
RW
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14270$as_echo "pre-installed" >&6; }
901119ae
KT
14271 fi
14272fi
14273
be912515
NN
14274
14275
2abefe3d 14276
0b0dc272 14277
671aa708
NN
14278# Certain tools may need extra flags.
14279AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14280RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14281NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14282
2abefe3d
PB
14283# When building target libraries, except in a Canadian cross, we use
14284# the same toolchain as the compiler we just built.
14285COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14286COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14287COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14288if test $host = $build; then
14289 case " $configdirs " in
14290 *" gcc "*)
14291 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14292 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14293 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14294 ;;
14295 esac
14296fi
14297
14298
14299
14300
14301
5213506e
RW
14302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14303$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14304# Check whether --enable-maintainer-mode was given.
14305if test "${enable_maintainer_mode+set}" = set; then :
14306 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
14307else
14308 USE_MAINTAINER_MODE=no
5213506e
RW
14309fi
14310
14311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14312$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
14313
14314
14315if test "$USE_MAINTAINER_MODE" = yes; then
14316 MAINTAINER_MODE_TRUE=
14317 MAINTAINER_MODE_FALSE='#'
14318else
14319 MAINTAINER_MODE_TRUE='#'
14320 MAINTAINER_MODE_FALSE=
1c710c3c 14321fi
ee03dc5e
AO
14322MAINT=$MAINTAINER_MODE_TRUE
14323
2805b53a
NN
14324# ---------------------
14325# GCC bootstrap support
14326# ---------------------
14327
14328# Stage specific cflags for build.
14329stage1_cflags="-g"
14330case $build in
14331 vax-*-*)
14332 case ${GCC} in
14333 yes) stage1_cflags="-g -Wa,-J" ;;
14334 *) stage1_cflags="-g -J" ;;
14335 esac ;;
2805b53a
NN
14336esac
14337
0b50988a 14338
2805b53a 14339
8efea775 14340# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
14341# Check whether --enable-stage1-checking was given.
14342if test "${enable_stage1_checking+set}" = set; then :
14343 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 14344else
e643dc23 14345 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
7e98624c 14346 stage1_checking=--enable-checking=yes,types
8efea775 14347else
e643dc23 14348 stage1_checking=--enable-checking=$enable_checking,types
8efea775 14349fi
5213506e 14350fi
8efea775
PB
14351
14352
2aeb72e9 14353
5213506e
RW
14354# Enable -Werror in bootstrap stage2 and later.
14355# Check whether --enable-werror was given.
14356if test "${enable_werror+set}" = set; then :
14357 enableval=$enable_werror;
2805b53a 14358else
416cfb5e 14359 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 14360 enable_werror=yes
88fceb68
PB
14361else
14362 enable_werror=no
14363fi
5213506e
RW
14364fi
14365
09a9c095
NN
14366case ${enable_werror} in
14367 yes) stage2_werror_flag="--enable-werror-always" ;;
14368 *) stage2_werror_flag="" ;;
2805b53a
NN
14369esac
14370
14371
f2689b09
SE
14372# Specify what files to not compare during bootstrap.
14373
14374compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14375case "$target" in
14376 hppa*64*-*-hpux*) ;;
14377 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
d91491e5 14378 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
f2689b09
SE
14379esac
14380
14381
5213506e
RW
14382ac_config_files="$ac_config_files Makefile"
14383
1c710c3c 14384cat >confcache <<\_ACEOF
671aa708
NN
14385# This file is a shell script that caches the results of configure
14386# tests run on this system so they can be shared between configure
1c710c3c
DJ
14387# scripts and configure runs, see configure's option --config-cache.
14388# It is not useful on other systems. If it contains results you don't
14389# want to keep, you may remove or edit it.
671aa708 14390#
1c710c3c
DJ
14391# config.status only pays attention to the cache file if you give it
14392# the --recheck option to rerun configure.
671aa708 14393#
1c710c3c
DJ
14394# `ac_cv_env_foo' variables (set or unset) will be overridden when
14395# loading this file, other *unset* `ac_cv_foo' will be assigned the
14396# following values.
14397
14398_ACEOF
14399
671aa708
NN
14400# The following way of writing the cache mishandles newlines in values,
14401# but we know of no workaround that is simple, portable, and efficient.
5213506e 14402# So, we kill variables containing newlines.
671aa708
NN
14403# Ultrix sh set writes to stderr and can't be redirected directly,
14404# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
14405(
14406 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14407 eval ac_val=\$$ac_var
14408 case $ac_val in #(
14409 *${as_nl}*)
14410 case $ac_var in #(
14411 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14412$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14413 esac
14414 case $ac_var in #(
14415 _ | IFS | as_nl) ;; #(
14416 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14417 *) { eval $ac_var=; unset $ac_var;} ;;
14418 esac ;;
14419 esac
14420 done
14421
1c710c3c 14422 (set) 2>&1 |
5213506e
RW
14423 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14424 *${as_nl}ac_space=\ *)
14425 # `set' does not quote correctly, so add quotes: double-quote
14426 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
14427 sed -n \
14428 "s/'/'\\\\''/g;
14429 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 14430 ;; #(
1c710c3c
DJ
14431 *)
14432 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 14433 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 14434 ;;
5213506e
RW
14435 esac |
14436 sort
14437) |
1c710c3c 14438 sed '
5213506e 14439 /^ac_cv_env_/b end
1c710c3c 14440 t clear
5213506e 14441 :clear
1c710c3c
DJ
14442 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14443 t end
5213506e
RW
14444 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14445 :end' >>confcache
14446if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14447 if test -w "$cache_file"; then
14448 test "x$cache_file" != "x/dev/null" &&
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14450$as_echo "$as_me: updating cache $cache_file" >&6;}
1c710c3c 14451 cat confcache >$cache_file
671aa708 14452 else
5213506e
RW
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14454$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 14455 fi
4977bab6 14456fi
671aa708 14457rm -f confcache
79c06341 14458
671aa708
NN
14459test "x$prefix" = xNONE && prefix=$ac_default_prefix
14460# Let make expand exec_prefix.
14461test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 14462
671aa708
NN
14463# Transform confdefs.h into DEFS.
14464# Protect against shell expansion while executing Makefile rules.
14465# Protect against Makefile macro expansion.
1c710c3c
DJ
14466#
14467# If the first sed substitution is executed (which looks for macros that
5213506e 14468# take arguments), then branch to the quote section. Otherwise,
1c710c3c 14469# look for a macro that doesn't take arguments.
5213506e
RW
14470ac_script='
14471:mline
14472/\\$/{
14473 N
14474 s,\\\n,,
14475 b mline
14476}
1c710c3c 14477t clear
5213506e
RW
14478:clear
14479s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14480t quote
5213506e 14481s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14482t quote
5213506e
RW
14483b any
14484:quote
14485s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14486s/\[/\\&/g
14487s/\]/\\&/g
14488s/\$/$$/g
14489H
14490:any
14491${
14492 g
14493 s/^\n//
14494 s/\n/ /g
14495 p
14496}
14497'
14498DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
14499
14500
14501ac_libobjs=
14502ac_ltlibobjs=
14503for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14504 # 1. Remove the extension, and $U if already installed.
5213506e
RW
14505 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14506 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14507 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14508 # will be set to the directory where LIBOBJS objects are built.
14509 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14510 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
14511done
14512LIBOBJS=$ac_libobjs
fb0103e5 14513
1c710c3c 14514LTLIBOBJS=$ac_ltlibobjs
0b0dc272 14515
af71363e 14516
1c710c3c
DJ
14517
14518: ${CONFIG_STATUS=./config.status}
5213506e 14519ac_write_fail=0
1c710c3c
DJ
14520ac_clean_files_save=$ac_clean_files
14521ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
14522{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14523$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14524as_write_fail=0
14525cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
14526#! $SHELL
14527# Generated by $as_me.
671aa708 14528# Run this file to recreate the current configuration.
671aa708 14529# Compiler output produced by configure, useful for debugging
1c710c3c 14530# configure, is in config.log if it exists.
0b0dc272 14531
1c710c3c
DJ
14532debug=false
14533ac_cs_recheck=false
14534ac_cs_silent=false
1c710c3c 14535
5213506e
RW
14536SHELL=\${CONFIG_SHELL-$SHELL}
14537export SHELL
14538_ASEOF
14539cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14540## -------------------- ##
14541## M4sh Initialization. ##
14542## -------------------- ##
14543
14544# Be more Bourne compatible
14545DUALCASE=1; export DUALCASE # for MKS sh
14546if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
14547 emulate sh
14548 NULLCMD=:
5213506e 14549 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
14550 # is contrary to our usage. Disable this feature.
14551 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
14552 setopt NO_GLOB_SUBST
14553else
14554 case `(set -o) 2>/dev/null` in #(
14555 *posix*) :
14556 set -o posix ;; #(
14557 *) :
14558 ;;
14559esac
1c710c3c 14560fi
1c710c3c 14561
5213506e
RW
14562
14563as_nl='
14564'
14565export as_nl
14566# Printing a long string crashes Solaris 7 /usr/bin/printf.
14567as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14568as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14569as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14570# Prefer a ksh shell builtin over an external printf program on Solaris,
14571# but without wasting forks for bash or zsh.
14572if test -z "$BASH_VERSION$ZSH_VERSION" \
14573 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14574 as_echo='print -r --'
14575 as_echo_n='print -rn --'
14576elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14577 as_echo='printf %s\n'
14578 as_echo_n='printf %s'
14579else
14580 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14581 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14582 as_echo_n='/usr/ucb/echo -n'
14583 else
14584 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14585 as_echo_n_body='eval
14586 arg=$1;
14587 case $arg in #(
14588 *"$as_nl"*)
14589 expr "X$arg" : "X\\(.*\\)$as_nl";
14590 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14591 esac;
14592 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14593 '
14594 export as_echo_n_body
14595 as_echo_n='sh -c $as_echo_n_body as_echo'
14596 fi
14597 export as_echo_body
14598 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
14599fi
14600
5213506e
RW
14601# The user is always right.
14602if test "${PATH_SEPARATOR+set}" != set; then
14603 PATH_SEPARATOR=:
14604 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14605 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14606 PATH_SEPARATOR=';'
14607 }
14608fi
14609
14610
14611# IFS
14612# We need space, tab and new line, in precisely that order. Quoting is
14613# there to prevent editors from complaining about space-tab.
14614# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14615# splitting by setting IFS to empty value.)
14616IFS=" "" $as_nl"
14617
14618# Find who we are. Look in the path if we contain no directory separator.
14619case $0 in #((
14620 *[\\/]* ) as_myself=$0 ;;
14621 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14622for as_dir in $PATH
14623do
14624 IFS=$as_save_IFS
14625 test -z "$as_dir" && as_dir=.
14626 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14627 done
14628IFS=$as_save_IFS
14629
14630 ;;
14631esac
14632# We did not find ourselves, most probably we were run as `sh COMMAND'
14633# in which case we are not to be found in the path.
14634if test "x$as_myself" = x; then
14635 as_myself=$0
14636fi
14637if test ! -f "$as_myself"; then
14638 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14639 exit 1
14640fi
1c710c3c 14641
5213506e
RW
14642# Unset variables that we do not need and which cause bugs (e.g. in
14643# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14644# suppresses any "Segmentation fault" message there. '((' could
14645# trigger a bug in pdksh 5.2.14.
14646for as_var in BASH_ENV ENV MAIL MAILPATH
14647do eval test x\${$as_var+set} = xset \
14648 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14649done
1c710c3c
DJ
14650PS1='$ '
14651PS2='> '
14652PS4='+ '
14653
14654# NLS nuisances.
5213506e
RW
14655LC_ALL=C
14656export LC_ALL
14657LANGUAGE=C
14658export LANGUAGE
14659
14660# CDPATH.
14661(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14662
14663
14664# as_fn_error ERROR [LINENO LOG_FD]
14665# ---------------------------------
14666# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14667# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14668# script with status $?, using 1 if that was 0.
14669as_fn_error ()
14670{
14671 as_status=$?; test $as_status -eq 0 && as_status=1
14672 if test "$3"; then
14673 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14674 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1c710c3c 14675 fi
5213506e
RW
14676 $as_echo "$as_me: error: $1" >&2
14677 as_fn_exit $as_status
14678} # as_fn_error
14679
14680
14681# as_fn_set_status STATUS
14682# -----------------------
14683# Set $? to STATUS, without forking.
14684as_fn_set_status ()
14685{
14686 return $1
14687} # as_fn_set_status
14688
14689# as_fn_exit STATUS
14690# -----------------
14691# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14692as_fn_exit ()
14693{
14694 set +e
14695 as_fn_set_status $1
14696 exit $1
14697} # as_fn_exit
14698
14699# as_fn_unset VAR
14700# ---------------
14701# Portably unset VAR.
14702as_fn_unset ()
14703{
14704 { eval $1=; unset $1;}
14705}
14706as_unset=as_fn_unset
14707# as_fn_append VAR VALUE
14708# ----------------------
14709# Append the text in VALUE to the end of the definition contained in VAR. Take
14710# advantage of any shell optimizations that allow amortized linear growth over
14711# repeated appends, instead of the typical quadratic growth present in naive
14712# implementations.
14713if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14714 eval 'as_fn_append ()
14715 {
14716 eval $1+=\$2
14717 }'
14718else
14719 as_fn_append ()
14720 {
14721 eval $1=\$$1\$2
14722 }
14723fi # as_fn_append
14724
14725# as_fn_arith ARG...
14726# ------------------
14727# Perform arithmetic evaluation on the ARGs, and store the result in the
14728# global $as_val. Take advantage of shells that can avoid forks. The arguments
14729# must be portable across $(()) and expr.
14730if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14731 eval 'as_fn_arith ()
14732 {
14733 as_val=$(( $* ))
14734 }'
14735else
14736 as_fn_arith ()
14737 {
14738 as_val=`expr "$@" || test $? -eq 1`
14739 }
14740fi # as_fn_arith
14741
1c710c3c 14742
5213506e
RW
14743if expr a : '\(a\)' >/dev/null 2>&1 &&
14744 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
14745 as_expr=expr
14746else
14747 as_expr=false
14748fi
14749
5213506e 14750if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
14751 as_basename=basename
14752else
14753 as_basename=false
14754fi
14755
5213506e
RW
14756if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14757 as_dirname=dirname
14758else
14759 as_dirname=false
14760fi
1c710c3c 14761
5213506e 14762as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
14763$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14764 X"$0" : 'X\(//\)$' \| \
5213506e
RW
14765 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14766$as_echo X/"$0" |
14767 sed '/^.*\/\([^/][^/]*\)\/*$/{
14768 s//\1/
14769 q
14770 }
14771 /^X\/\(\/\/\)$/{
14772 s//\1/
14773 q
14774 }
14775 /^X\/\(\/\).*/{
14776 s//\1/
14777 q
14778 }
14779 s/.*/./; q'`
2aeb72e9 14780
2aeb72e9
DD
14781# Avoid depending upon Character Ranges.
14782as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14783as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14784as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14785as_cr_digits='0123456789'
14786as_cr_alnum=$as_cr_Letters$as_cr_digits
14787
5213506e
RW
14788ECHO_C= ECHO_N= ECHO_T=
14789case `echo -n x` in #(((((
14790-n*)
14791 case `echo 'xy\c'` in
14792 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14793 xy) ECHO_C='\c';;
14794 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14795 ECHO_T=' ';;
14796 esac;;
14797*)
14798 ECHO_N='-n';;
1c710c3c
DJ
14799esac
14800
5213506e
RW
14801rm -f conf$$ conf$$.exe conf$$.file
14802if test -d conf$$.dir; then
14803 rm -f conf$$.dir/conf$$.file
1c710c3c 14804else
5213506e
RW
14805 rm -f conf$$.dir
14806 mkdir conf$$.dir 2>/dev/null
1c710c3c 14807fi
5213506e
RW
14808if (echo >conf$$.file) 2>/dev/null; then
14809 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 14810 as_ln_s='ln -s'
5213506e
RW
14811 # ... but there are two gotchas:
14812 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14813 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14814 # In both cases, we have to default to `cp -p'.
14815 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14816 as_ln_s='cp -p'
14817 elif ln conf$$.file conf$$ 2>/dev/null; then
14818 as_ln_s=ln
14819 else
14820 as_ln_s='cp -p'
2aeb72e9 14821 fi
1c710c3c
DJ
14822else
14823 as_ln_s='cp -p'
14824fi
5213506e
RW
14825rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14826rmdir conf$$.dir 2>/dev/null
14827
14828
14829# as_fn_mkdir_p
14830# -------------
14831# Create "$as_dir" as a directory, including parents if necessary.
14832as_fn_mkdir_p ()
14833{
14834
14835 case $as_dir in #(
14836 -*) as_dir=./$as_dir;;
14837 esac
14838 test -d "$as_dir" || eval $as_mkdir_p || {
14839 as_dirs=
14840 while :; do
14841 case $as_dir in #(
14842 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14843 *) as_qdir=$as_dir;;
14844 esac
14845 as_dirs="'$as_qdir' $as_dirs"
14846 as_dir=`$as_dirname -- "$as_dir" ||
14847$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14848 X"$as_dir" : 'X\(//\)[^/]' \| \
14849 X"$as_dir" : 'X\(//\)$' \| \
14850 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14851$as_echo X"$as_dir" |
14852 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14853 s//\1/
14854 q
14855 }
14856 /^X\(\/\/\)[^/].*/{
14857 s//\1/
14858 q
14859 }
14860 /^X\(\/\/\)$/{
14861 s//\1/
14862 q
14863 }
14864 /^X\(\/\).*/{
14865 s//\1/
14866 q
14867 }
14868 s/.*/./; q'`
14869 test -d "$as_dir" && break
14870 done
14871 test -z "$as_dirs" || eval "mkdir $as_dirs"
14872 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14873
1c710c3c 14874
5213506e 14875} # as_fn_mkdir_p
1c710c3c 14876if mkdir -p . 2>/dev/null; then
5213506e 14877 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
14878else
14879 test -d ./-p && rmdir ./-p
14880 as_mkdir_p=false
14881fi
14882
5213506e
RW
14883if test -x / >/dev/null 2>&1; then
14884 as_test_x='test -x'
14885else
14886 if ls -dL / >/dev/null 2>&1; then
14887 as_ls_L_option=L
14888 else
14889 as_ls_L_option=
14890 fi
14891 as_test_x='
14892 eval sh -c '\''
14893 if test -d "$1"; then
14894 test -d "$1/.";
14895 else
14896 case $1 in #(
14897 -*)set "./$1";;
14898 esac;
14899 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14900 ???[sx]*):;;*)false;;esac;fi
14901 '\'' sh
14902 '
14903fi
14904as_executable_p=$as_test_x
1c710c3c
DJ
14905
14906# Sed expression to map a string onto a valid CPP name.
14907as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14908
14909# Sed expression to map a string onto a valid variable name.
14910as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14911
14912
1c710c3c 14913exec 6>&1
5213506e
RW
14914## ----------------------------------- ##
14915## Main body of $CONFIG_STATUS script. ##
14916## ----------------------------------- ##
14917_ASEOF
14918test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14919
14920cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14921# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 14922# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
14923# values after options handling.
14924ac_log="
1c710c3c 14925This file was extended by $as_me, which was
5213506e 14926generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
14927
14928 CONFIG_FILES = $CONFIG_FILES
14929 CONFIG_HEADERS = $CONFIG_HEADERS
14930 CONFIG_LINKS = $CONFIG_LINKS
14931 CONFIG_COMMANDS = $CONFIG_COMMANDS
14932 $ $0 $@
14933
5213506e
RW
14934on `(hostname || uname -n) 2>/dev/null | sed 1q`
14935"
14936
1c710c3c
DJ
14937_ACEOF
14938
5213506e
RW
14939case $ac_config_files in *"
14940"*) set x $ac_config_files; shift; ac_config_files=$*;;
14941esac
1c710c3c 14942
2aeb72e9 14943
2aeb72e9 14944
5213506e
RW
14945cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14946# Files that config.status was made for.
14947config_files="$ac_config_files"
1c710c3c 14948
5213506e 14949_ACEOF
2aeb72e9 14950
5213506e 14951cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 14952ac_cs_usage="\
5213506e
RW
14953\`$as_me' instantiates files and other configuration actions
14954from templates according to the current configuration. Unless the files
14955and actions are specified as TAGs, all are instantiated by default.
1c710c3c 14956
5213506e 14957Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
14958
14959 -h, --help print this help, then exit
5213506e
RW
14960 -V, --version print version number and configuration settings, then exit
14961 -q, --quiet, --silent
14962 do not print progress messages
1c710c3c
DJ
14963 -d, --debug don't remove temporary files
14964 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
14965 --file=FILE[:TEMPLATE]
14966 instantiate the configuration file FILE
1c710c3c
DJ
14967
14968Configuration files:
14969$config_files
14970
5213506e 14971Report bugs to the package provider."
2aeb72e9 14972
5213506e
RW
14973_ACEOF
14974cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c
DJ
14975ac_cs_version="\\
14976config.status
5213506e
RW
14977configured by $0, generated by GNU Autoconf 2.64,
14978 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 14979
5213506e 14980Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
14981This config.status script is free software; the Free Software Foundation
14982gives unlimited permission to copy, distribute and modify it."
5213506e
RW
14983
14984ac_pwd='$ac_pwd'
14985srcdir='$srcdir'
14986INSTALL='$INSTALL'
87264276 14987AWK='$AWK'
5213506e 14988test -n "\$AWK" || AWK=awk
1c710c3c
DJ
14989_ACEOF
14990
5213506e
RW
14991cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14992# The default lists apply if the user does not specify any file.
1c710c3c
DJ
14993ac_need_defaults=:
14994while test $# != 0
a4b9e93e 14995do
1c710c3c
DJ
14996 case $1 in
14997 --*=*)
5213506e
RW
14998 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14999 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
15000 ac_shift=:
15001 ;;
5213506e 15002 *)
1c710c3c
DJ
15003 ac_option=$1
15004 ac_optarg=$2
15005 ac_shift=shift
15006 ;;
1c710c3c
DJ
15007 esac
15008
15009 case $ac_option in
15010 # Handling of the options.
671aa708 15011 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 15012 ac_cs_recheck=: ;;
5213506e
RW
15013 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15014 $as_echo "$ac_cs_version"; exit ;;
15015 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
15016 debug=: ;;
15017 --file | --fil | --fi | --f )
15018 $ac_shift
5213506e
RW
15019 case $ac_optarg in
15020 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15021 esac
15022 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 15023 ac_need_defaults=false;;
5213506e
RW
15024 --he | --h | --help | --hel | -h )
15025 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
15026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15027 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15028 ac_cs_silent=: ;;
15029
15030 # This is an error.
5213506e
RW
15031 -*) as_fn_error "unrecognized option: \`$1'
15032Try \`$0 --help' for more information." ;;
1c710c3c 15033
5213506e
RW
15034 *) as_fn_append ac_config_targets " $1"
15035 ac_need_defaults=false ;;
1c710c3c 15036
0b0dc272 15037 esac
1c710c3c 15038 shift
0b0dc272
AM
15039done
15040
1c710c3c 15041ac_configure_extra_args=
0b0dc272 15042
1c710c3c
DJ
15043if $ac_cs_silent; then
15044 exec 6>/dev/null
15045 ac_configure_extra_args="$ac_configure_extra_args --silent"
15046fi
0b0dc272 15047
1c710c3c 15048_ACEOF
5213506e 15049cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 15050if \$ac_cs_recheck; then
5213506e
RW
15051 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15052 shift
15053 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15054 CONFIG_SHELL='$SHELL'
15055 export CONFIG_SHELL
15056 exec "\$@"
1c710c3c
DJ
15057fi
15058
15059_ACEOF
5213506e
RW
15060cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15061exec 5>>config.log
15062{
15063 echo
15064 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15065## Running $as_me. ##
15066_ASBOX
15067 $as_echo "$ac_log"
15068} >&5
1c710c3c 15069
5213506e
RW
15070_ACEOF
15071cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
15072#
15073# INIT-COMMANDS
15074#
15075extrasub_build="$extrasub_build"
15076 extrasub_host="$extrasub_host"
15077 extrasub_target="$extrasub_target"
15078
5213506e 15079_ACEOF
1c710c3c 15080
5213506e 15081cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 15082
5213506e 15083# Handling of arguments.
1c710c3c
DJ
15084for ac_config_target in $ac_config_targets
15085do
5213506e
RW
15086 case $ac_config_target in
15087 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15088
15089 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
15090 esac
15091done
15092
5213506e 15093
1c710c3c
DJ
15094# If the user did not use the arguments to specify the items to instantiate,
15095# then the envvar interface is used. Set only those that are not.
15096# We use the long form for the default assignment because of an extremely
15097# bizarre bug on SunOS 4.1.3.
15098if $ac_need_defaults; then
15099 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15100fi
15101
15102# Have a temporary directory for convenience. Make it in the build tree
5213506e 15103# simply because there is no reason against having it here, and in addition,
1c710c3c 15104# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
15105# Hook for its removal unless debugging.
15106# Note that there is a small window in which the directory will not be cleaned:
15107# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
15108$debug ||
15109{
5213506e
RW
15110 tmp=
15111 trap 'exit_status=$?
15112 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15113' 0
15114 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 15115}
1c710c3c
DJ
15116# Create a (secure) tmp directory for tmp files.
15117
15118{
5213506e 15119 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
15120 test -n "$tmp" && test -d "$tmp"
15121} ||
15122{
5213506e
RW
15123 tmp=./conf$$-$RANDOM
15124 (umask 077 && mkdir "$tmp")
15125} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15126
15127# Set up the scripts for CONFIG_FILES section.
15128# No need to generate them if there are no CONFIG_FILES.
15129# This happens for instance with `./config.status config.h'.
15130if test -n "$CONFIG_FILES"; then
15131
15132if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15133 ac_cs_awk_getline=:
15134 ac_cs_awk_pipe_init=
15135 ac_cs_awk_read_file='
15136 while ((getline aline < (F[key])) > 0)
15137 print(aline)
15138 close(F[key])'
15139 ac_cs_awk_pipe_fini=
15140else
15141 ac_cs_awk_getline=false
15142 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15143 ac_cs_awk_read_file='
15144 print "|#_!!_#|"
15145 print "cat " F[key] " &&"
15146 '$ac_cs_awk_pipe_init
15147 # The final `:' finishes the AND list.
15148 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15149fi
15150ac_cr=`echo X | tr X '\015'`
15151# On cygwin, bash can eat \r inside `` if the user requested igncr.
15152# But we know of no other shell where ac_cr would be empty at this
15153# point, so we can use a bashism as a fallback.
15154if test "x$ac_cr" = x; then
15155 eval ac_cr=\$\'\\r\'
15156fi
15157ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15158if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15159 ac_cs_awk_cr='\r'
15160else
15161 ac_cs_awk_cr=$ac_cr
15162fi
15163
15164echo 'BEGIN {' >"$tmp/subs1.awk" &&
15165_ACEOF
15166
15167# Create commands to substitute file output variables.
1c710c3c 15168{
5213506e
RW
15169 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15170 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15171 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15172 echo "_ACAWK" &&
15173 echo "_ACEOF"
15174} >conf$$files.sh &&
15175. ./conf$$files.sh ||
15176 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15177rm -f conf$$files.sh
1c710c3c 15178
5213506e
RW
15179{
15180 echo "cat >conf$$subs.awk <<_ACEOF" &&
15181 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15182 echo "_ACEOF"
15183} >conf$$subs.sh ||
15184 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15185ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15186ac_delim='%!_!# '
15187for ac_last_try in false false false false false :; do
15188 . ./conf$$subs.sh ||
15189 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15190
15191 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15192 if test $ac_delim_n = $ac_delim_num; then
15193 break
15194 elif $ac_last_try; then
15195 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15196 else
15197 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15198 fi
15199done
15200rm -f conf$$subs.sh
15201
15202cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15203cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 15204_ACEOF
5213506e
RW
15205sed -n '
15206h
15207s/^/S["/; s/!.*/"]=/
15208p
15209g
15210s/^[^!]*!//
15211:repl
15212t repl
15213s/'"$ac_delim"'$//
15214t delim
15215:nl
15216h
15217s/\(.\{148\}\).*/\1/
15218t more1
15219s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15220p
15221n
15222b repl
15223:more1
15224s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15225p
15226g
15227s/.\{148\}//
15228t nl
15229:delim
15230h
15231s/\(.\{148\}\).*/\1/
15232t more2
15233s/["\\]/\\&/g; s/^/"/; s/$/"/
15234p
15235b
15236:more2
15237s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15238p
15239g
15240s/.\{148\}//
15241t delim
15242' <conf$$subs.awk | sed '
15243/^[^""]/{
15244 N
15245 s/\n//
15246}
15247' >>$CONFIG_STATUS || ac_write_fail=1
15248rm -f conf$$subs.awk
15249cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15250_ACAWK
15251cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15252 for (key in S) S_is_set[key] = 1
15253 FS = "\a"
15254 \$ac_cs_awk_pipe_init
15255}
15256{
15257 line = $ 0
15258 nfields = split(line, field, "@")
15259 substed = 0
15260 len = length(field[1])
15261 for (i = 2; i < nfields; i++) {
15262 key = field[i]
15263 keylen = length(key)
15264 if (S_is_set[key]) {
15265 value = S[key]
15266 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15267 len += length(value) + length(field[++i])
15268 substed = 1
15269 } else
15270 len += 1 + keylen
15271 }
15272 if (nfields == 3 && !substed) {
15273 key = field[2]
15274 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15275 \$ac_cs_awk_read_file
15276 next
15277 }
15278 }
15279 print line
15280}
15281\$ac_cs_awk_pipe_fini
15282_ACAWK
15283_ACEOF
15284cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15285if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15286 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15287else
15288 cat
15289fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15290 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15291_ACEOF
15292
15293# VPATH may cause trouble with some makes, so we remove $(srcdir),
15294# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15295# trailing colons and then remove the whole line if VPATH becomes empty
15296# (actually we leave an empty line to preserve line numbers).
15297if test "x$srcdir" = x.; then
15298 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15299s/:*\$(srcdir):*/:/
15300s/:*\${srcdir}:*/:/
15301s/:*@srcdir@:*/:/
15302s/^\([^=]*=[ ]*\):*/\1/
15303s/:*$//
15304s/^[^=]*=[ ]*$//
15305}'
15306fi
2aeb72e9 15307
5213506e
RW
15308cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15309fi # test -n "$CONFIG_FILES"
2aeb72e9 15310
1c710c3c 15311
5213506e
RW
15312eval set X " :F $CONFIG_FILES "
15313shift
15314for ac_tag
15315do
15316 case $ac_tag in
15317 :[FHLC]) ac_mode=$ac_tag; continue;;
15318 esac
15319 case $ac_mode$ac_tag in
15320 :[FHL]*:*);;
15321 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15322 :[FH]-) ac_tag=-:-;;
15323 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15324 esac
15325 ac_save_IFS=$IFS
15326 IFS=:
15327 set x $ac_tag
15328 IFS=$ac_save_IFS
15329 shift
15330 ac_file=$1
15331 shift
79c06341 15332
5213506e
RW
15333 case $ac_mode in
15334 :L) ac_source=$1;;
15335 :[FH])
15336 ac_file_inputs=
15337 for ac_f
15338 do
15339 case $ac_f in
15340 -) ac_f="$tmp/stdin";;
15341 *) # Look for the file first in the build tree, then in the source tree
15342 # (if the path is not absolute). The absolute path cannot be DOS-style,
15343 # because $ac_f cannot contain `:'.
15344 test -f "$ac_f" ||
15345 case $ac_f in
15346 [\\/$]*) false;;
15347 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15348 esac ||
15349 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15350 esac
15351 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15352 as_fn_append ac_file_inputs " '$ac_f'"
15353 done
1c710c3c 15354
5213506e
RW
15355 # Let's still pretend it is `configure' which instantiates (i.e., don't
15356 # use $as_me), people would be surprised to read:
15357 # /* config.h. Generated by config.status. */
15358 configure_input='Generated from '`
15359 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15360 `' by configure.'
15361 if test x"$ac_file" != x-; then
15362 configure_input="$ac_file. $configure_input"
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15364$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 15365 fi
5213506e
RW
15366 # Neutralize special characters interpreted by sed in replacement strings.
15367 case $configure_input in #(
15368 *\&* | *\|* | *\\* )
15369 ac_sed_conf_input=`$as_echo "$configure_input" |
15370 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15371 *) ac_sed_conf_input=$configure_input;;
15372 esac
11a67599 15373
5213506e
RW
15374 case $ac_tag in
15375 *:-:* | *:-) cat >"$tmp/stdin" \
15376 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15377 esac
15378 ;;
11a67599
ZW
15379 esac
15380
5213506e 15381 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
15382$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15383 X"$ac_file" : 'X\(//\)[^/]' \| \
15384 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
15385 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15386$as_echo X"$ac_file" |
15387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15388 s//\1/
15389 q
15390 }
15391 /^X\(\/\/\)[^/].*/{
15392 s//\1/
15393 q
15394 }
15395 /^X\(\/\/\)$/{
15396 s//\1/
15397 q
15398 }
15399 /^X\(\/\).*/{
15400 s//\1/
15401 q
15402 }
15403 s/.*/./; q'`
15404 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 15405 ac_builddir=.
0b0dc272 15406
5213506e
RW
15407case "$ac_dir" in
15408.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15409*)
15410 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15411 # A ".." for each directory in $ac_dir_suffix.
15412 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15413 case $ac_top_builddir_sub in
15414 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15415 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15416 esac ;;
15417esac
15418ac_abs_top_builddir=$ac_pwd
15419ac_abs_builddir=$ac_pwd$ac_dir_suffix
15420# for backward compatibility:
15421ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
15422
15423case $srcdir in
5213506e 15424 .) # We are building in place.
1c710c3c 15425 ac_srcdir=.
5213506e
RW
15426 ac_top_srcdir=$ac_top_builddir_sub
15427 ac_abs_top_srcdir=$ac_pwd ;;
15428 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 15429 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
15430 ac_top_srcdir=$srcdir
15431 ac_abs_top_srcdir=$srcdir ;;
15432 *) # Relative name.
15433 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15434 ac_top_srcdir=$ac_top_build_prefix$srcdir
15435 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 15436esac
5213506e 15437ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 15438
0b0dc272 15439
5213506e
RW
15440 case $ac_mode in
15441 :F)
15442 #
15443 # CONFIG_FILE
15444 #
1c710c3c
DJ
15445
15446 case $INSTALL in
15447 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 15448 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 15449 esac
5213506e 15450_ACEOF
11a67599 15451
5213506e
RW
15452cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15453# If the template does not know about datarootdir, expand it.
15454# FIXME: This hack should be removed a few years after 2.60.
15455ac_datarootdir_hack=; ac_datarootdir_seen=
15456ac_sed_dataroot='
15457/datarootdir/ {
15458 p
15459 q
15460}
15461/@datadir@/p
15462/@docdir@/p
15463/@infodir@/p
15464/@localedir@/p
15465/@mandir@/p'
15466case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15467*datarootdir*) ac_datarootdir_seen=yes;;
15468*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15470$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 15471_ACEOF
5213506e
RW
15472cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15473 ac_datarootdir_hack='
15474 s&@datadir@&$datadir&g
15475 s&@docdir@&$docdir&g
15476 s&@infodir@&$infodir&g
15477 s&@localedir@&$localedir&g
15478 s&@mandir@&$mandir&g
15479 s&\\\${datarootdir}&$datarootdir&g' ;;
15480esac
15481_ACEOF
15482
15483# Neutralize VPATH when `$srcdir' = `.'.
15484# Shell code in configure.ac might set extrasub.
15485# FIXME: do we really want to maintain this feature?
15486cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15487ac_sed_extra="$ac_vpsub
1c710c3c
DJ
15488$extrasub
15489_ACEOF
5213506e 15490cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
15491:t
15492/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
15493s|@configure_input@|$ac_sed_conf_input|;t t
15494s&@top_builddir@&$ac_top_builddir_sub&;t t
15495s&@top_build_prefix@&$ac_top_build_prefix&;t t
15496s&@srcdir@&$ac_srcdir&;t t
15497s&@abs_srcdir@&$ac_abs_srcdir&;t t
15498s&@top_srcdir@&$ac_top_srcdir&;t t
15499s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15500s&@builddir@&$ac_builddir&;t t
15501s&@abs_builddir@&$ac_abs_builddir&;t t
15502s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15503s&@INSTALL@&$ac_INSTALL&;t t
15504$ac_datarootdir_hack
15505"
15506eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15507if $ac_cs_awk_getline; then
15508 $AWK -f "$tmp/subs.awk"
15509else
15510 $AWK -f "$tmp/subs.awk" | $SHELL
15511fi >$tmp/out \
15512 || as_fn_error "could not create $ac_file" "$LINENO" 5
15513
15514test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15515 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15516 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15518which seems to be undefined. Please make sure it is defined." >&5
15519$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15520which seems to be undefined. Please make sure it is defined." >&2;}
15521
15522 rm -f "$tmp/stdin"
15523 case $ac_file in
15524 -) cat "$tmp/out" && rm -f "$tmp/out";;
15525 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15526 esac \
15527 || as_fn_error "could not create $ac_file" "$LINENO" 5
15528 ;;
11a67599 15529
11a67599 15530
79c06341 15531
5213506e
RW
15532 esac
15533
3e54529c
RW
15534
15535 case $ac_file$ac_mode in
15536 "Makefile":F) sed "$extrasub_build" Makefile |
15537 sed "$extrasub_host" |
15538 sed "$extrasub_target" > mf$$
15539 mv -f mf$$ Makefile ;;
15540
15541 esac
5213506e
RW
15542done # for ac_tag
15543
15544
15545as_fn_exit 0
1c710c3c 15546_ACEOF
1c710c3c
DJ
15547ac_clean_files=$ac_clean_files_save
15548
5213506e
RW
15549test $ac_write_fail = 0 ||
15550 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15551
1c710c3c
DJ
15552
15553# configure is writing to config.log, and then calls config.status.
15554# config.status does its own redirection, appending to config.log.
15555# Unfortunately, on DOS this fails, as config.log is still kept open
15556# by configure, so config.status won't be able to write to it; its
15557# output is simply discarded. So we exec the FD to /dev/null,
15558# effectively closing config.log, so it can be properly (re)opened and
15559# appended to by config.status. When coming back to configure, we
15560# need to make the FD available again.
15561if test "$no_create" != yes; then
15562 ac_cs_success=:
15563 ac_config_status_args=
15564 test "$silent" = yes &&
15565 ac_config_status_args="$ac_config_status_args --quiet"
15566 exec 5>/dev/null
15567 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15568 exec 5>>config.log
15569 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15570 # would make configure fail if this is the last instruction.
5213506e
RW
15571 $ac_cs_success || as_fn_exit $?
15572fi
15573if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15575$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 15576fi
79c06341 15577