]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
Update configure deps, remove stray \xA0 in picflag.m4, regenerate
[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
459260ec 559host_shared
5213506e
RW
560stage2_werror_flag
561stage1_checking
562stage1_cflags
563MAINT
564MAINTAINER_MODE_FALSE
565MAINTAINER_MODE_TRUE
566COMPILER_NM_FOR_TARGET
567COMPILER_LD_FOR_TARGET
568COMPILER_AS_FOR_TARGET
569FLAGS_FOR_TARGET
570RAW_CXX_FOR_TARGET
571WINDMC_FOR_TARGET
572WINDRES_FOR_TARGET
573STRIP_FOR_TARGET
e7a82751 574READELF_FOR_TARGET
5213506e
RW
575RANLIB_FOR_TARGET
576OBJDUMP_FOR_TARGET
9bccfdf5 577OBJCOPY_FOR_TARGET
5213506e
RW
578NM_FOR_TARGET
579LIPO_FOR_TARGET
580LD_FOR_TARGET
581DLLTOOL_FOR_TARGET
582AS_FOR_TARGET
583AR_FOR_TARGET
632e2a07 584GOC_FOR_TARGET
5213506e 585GFORTRAN_FOR_TARGET
5213506e
RW
586GCC_FOR_TARGET
587CXX_FOR_TARGET
588CC_FOR_TARGET
e7a82751 589READELF
5213506e
RW
590OBJDUMP
591OBJCOPY
592WINDMC
593WINDRES
594STRIP
595RANLIB
596NM
597LIPO
598LD
599DLLTOOL
600AS
601AR
602RUNTEST
603EXPECT
604MAKEINFO
605FLEX
606LEX
607M4
608BISON
609YACC
5213506e
RW
610WINDRES_FOR_BUILD
611WINDMC_FOR_BUILD
612RANLIB_FOR_BUILD
613NM_FOR_BUILD
614LD_FOR_BUILD
615LDFLAGS_FOR_BUILD
632e2a07 616GOC_FOR_BUILD
5213506e 617GFORTRAN_FOR_BUILD
5213506e
RW
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
1c01ebf6 644extra_host_zlib_configure_flags
d7f09764 645extra_host_libiberty_configure_flags
fca38047 646stage1_languages
45b3824d
TS
647extra_linker_plugin_flags
648extra_linker_plugin_configure_flags
33ad93b9 649islinc
eae1a5d4 650isllibs
1e050c90 651islver
5213506e 652poststage1_ldflags
ed2eaa9f 653poststage1_libs
5213506e 654stage1_ldflags
0b21f5d3 655stage1_libs
0ff2d841 656extra_isl_gmp_configure_flags
5213506e
RW
657extra_mpc_mpfr_configure_flags
658extra_mpc_gmp_configure_flags
659extra_mpfr_configure_flags
660gmpinc
661gmplibs
662do_compare
663GNATMAKE
664GNATBIND
665ac_ct_CXX
666CXXFLAGS
667CXX
668OBJEXT
669EXEEXT
670ac_ct_CC
671CPPFLAGS
672LDFLAGS
673CFLAGS
674CC
5f520819 675extra_liboffloadmic_configure_flags
5213506e
RW
676target_subdir
677host_subdir
678build_subdir
679build_libsubdir
87264276
PB
680AWK
681SED
5213506e
RW
682LN_S
683LN
684INSTALL_DATA
685INSTALL_SCRIPT
686INSTALL_PROGRAM
687target_os
688target_vendor
689target_cpu
690target
691host_os
692host_vendor
693host_cpu
694host
695target_noncanonical
696host_noncanonical
697build_noncanonical
698build_os
699build_vendor
700build_cpu
701build
702TOPLEVEL_CONFIGURE_ARGUMENTS
703target_alias
704host_alias
705build_alias
706LIBS
707ECHO_T
708ECHO_N
709ECHO_C
710DEFS
711mandir
712localedir
713libdir
714psdir
715pdfdir
716dvidir
717htmldir
718infodir
719docdir
720oldincludedir
721includedir
722localstatedir
723sharedstatedir
724sysconfdir
725datadir
726datarootdir
727libexecdir
728sbindir
729bindir
730program_transform_name
731prefix
732exec_prefix
733PACKAGE_URL
734PACKAGE_BUGREPORT
735PACKAGE_STRING
736PACKAGE_VERSION
737PACKAGE_TARNAME
738PACKAGE_NAME
739PATH_SEPARATOR
740SHELL'
741ac_subst_files='serialization_dependencies
742host_makefile_frag
743target_makefile_frag
744alphaieee_frag
745ospace_frag'
746ac_user_opts='
747enable_option_checking
748with_build_libsubdir
a05c2c75 749with_system_zlib
85c64bbe
BS
750enable_as_accelerator_for
751enable_offload_targets
5213506e 752enable_gold
21539e2e 753enable_ld
78edb32f 754enable_compressed_debug_sections
87e6d9dc
TB
755enable_libquadmath
756enable_libquadmath_support
5213506e
RW
757enable_libada
758enable_libssp
1873ec0c 759enable_libstdcxx
5f520819 760enable_liboffloadmic
ff3ac0f4 761enable_bootstrap
5213506e
RW
762with_mpc
763with_mpc_include
764with_mpc_lib
765with_mpfr_dir
766with_mpfr
767with_mpfr_include
768with_mpfr_lib
769with_gmp_dir
770with_gmp
771with_gmp_include
772with_gmp_lib
5213506e 773with_stage1_libs
0b21f5d3 774with_stage1_ldflags
5213506e 775with_boot_libs
ed2eaa9f 776with_boot_ldflags
33ad93b9
RG
777with_isl
778with_isl_include
779with_isl_lib
780enable_isl_version_check
d7f09764 781enable_lto
45b3824d
TS
782enable_linker_plugin_configure_flags
783enable_linker_plugin_flags
5213506e 784enable_stage1_languages
43c40f3e 785enable_objc_gc
114bf3f1
MK
786with_target_bdw_gc
787with_target_bdw_gc_include
788with_target_bdw_gc_lib
5213506e
RW
789with_build_sysroot
790with_debug_prefix_map
5646b7b9 791with_build_config
beeda1d9 792enable_vtable_verify
5213506e
RW
793enable_serial_configure
794with_build_time_tools
795enable_maintainer_mode
796enable_stage1_checking
797enable_werror
459260ec 798enable_host_shared
5213506e
RW
799'
800 ac_precious_vars='build_alias
801host_alias
802target_alias
803CC
804CFLAGS
805LDFLAGS
806LIBS
807CPPFLAGS
808CXX
809CXXFLAGS
810CCC
ffedf511
RW
811build_configargs
812host_configargs
813target_configargs
5213506e
RW
814AR
815AS
816DLLTOOL
817LD
818LIPO
819NM
820RANLIB
821STRIP
822WINDRES
823WINDMC
824OBJCOPY
825OBJDUMP
e7a82751 826READELF
5213506e
RW
827CC_FOR_TARGET
828CXX_FOR_TARGET
829GCC_FOR_TARGET
5213506e 830GFORTRAN_FOR_TARGET
632e2a07 831GOC_FOR_TARGET
5213506e
RW
832AR_FOR_TARGET
833AS_FOR_TARGET
834DLLTOOL_FOR_TARGET
835LD_FOR_TARGET
836LIPO_FOR_TARGET
837NM_FOR_TARGET
9bccfdf5 838OBJCOPY_FOR_TARGET
5213506e
RW
839OBJDUMP_FOR_TARGET
840RANLIB_FOR_TARGET
e7a82751 841READELF_FOR_TARGET
5213506e
RW
842STRIP_FOR_TARGET
843WINDRES_FOR_TARGET
844WINDMC_FOR_TARGET'
845
671aa708
NN
846
847# Initialize some variables set by options.
1c710c3c
DJ
848ac_init_help=
849ac_init_version=false
5213506e
RW
850ac_unrecognized_opts=
851ac_unrecognized_sep=
671aa708
NN
852# The variables have the same names as the options, with
853# dashes changed to underlines.
1c710c3c 854cache_file=/dev/null
671aa708 855exec_prefix=NONE
671aa708 856no_create=
671aa708
NN
857no_recursion=
858prefix=NONE
859program_prefix=NONE
860program_suffix=NONE
861program_transform_name=s,x,x,
862silent=
863site=
864srcdir=
671aa708
NN
865verbose=
866x_includes=NONE
867x_libraries=NONE
1c710c3c
DJ
868
869# Installation directory options.
870# These are left unexpanded so users can "make install exec_prefix=/foo"
871# and all the variables that are supposed to be based on exec_prefix
872# by default will actually change.
873# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 874# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
875bindir='${exec_prefix}/bin'
876sbindir='${exec_prefix}/sbin'
877libexecdir='${exec_prefix}/libexec'
5213506e
RW
878datarootdir='${prefix}/share'
879datadir='${datarootdir}'
671aa708
NN
880sysconfdir='${prefix}/etc'
881sharedstatedir='${prefix}/com'
882localstatedir='${prefix}/var'
671aa708
NN
883includedir='${prefix}/include'
884oldincludedir='/usr/include'
5213506e
RW
885docdir='${datarootdir}/doc/${PACKAGE}'
886infodir='${datarootdir}/info'
887htmldir='${docdir}'
888dvidir='${docdir}'
889pdfdir='${docdir}'
890psdir='${docdir}'
891libdir='${exec_prefix}/lib'
892localedir='${datarootdir}/locale'
893mandir='${datarootdir}/man'
79c06341 894
671aa708 895ac_prev=
5213506e 896ac_dashdash=
671aa708
NN
897for ac_option
898do
671aa708
NN
899 # If the previous option needs an argument, assign it.
900 if test -n "$ac_prev"; then
5213506e 901 eval $ac_prev=\$ac_option
671aa708
NN
902 ac_prev=
903 continue
904 fi
79c06341 905
5213506e
RW
906 case $ac_option in
907 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
908 *) ac_optarg=yes ;;
909 esac
671aa708
NN
910
911 # Accept the important Cygnus configure options, so we can diagnose typos.
912
5213506e
RW
913 case $ac_dashdash$ac_option in
914 --)
915 ac_dashdash=yes ;;
671aa708
NN
916
917 -bindir | --bindir | --bindi | --bind | --bin | --bi)
918 ac_prev=bindir ;;
919 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 920 bindir=$ac_optarg ;;
671aa708
NN
921
922 -build | --build | --buil | --bui | --bu)
1c710c3c 923 ac_prev=build_alias ;;
671aa708 924 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 925 build_alias=$ac_optarg ;;
671aa708
NN
926
927 -cache-file | --cache-file | --cache-fil | --cache-fi \
928 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929 ac_prev=cache_file ;;
930 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
932 cache_file=$ac_optarg ;;
933
934 --config-cache | -C)
935 cache_file=config.cache ;;
671aa708 936
5213506e 937 -datadir | --datadir | --datadi | --datad)
671aa708 938 ac_prev=datadir ;;
5213506e 939 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 940 datadir=$ac_optarg ;;
671aa708 941
5213506e
RW
942 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943 | --dataroo | --dataro | --datar)
944 ac_prev=datarootdir ;;
945 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947 datarootdir=$ac_optarg ;;
948
671aa708 949 -disable-* | --disable-*)
5213506e 950 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 951 # Reject names that are not valid shell variable names.
5213506e
RW
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 as_fn_error "invalid feature name: $ac_useropt"
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
957 *"
958"enable_$ac_useropt"
959"*) ;;
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
962 esac
963 eval enable_$ac_useropt=no ;;
964
965 -docdir | --docdir | --docdi | --doc | --do)
966 ac_prev=docdir ;;
967 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968 docdir=$ac_optarg ;;
969
970 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971 ac_prev=dvidir ;;
972 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973 dvidir=$ac_optarg ;;
671aa708
NN
974
975 -enable-* | --enable-*)
5213506e 976 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 977 # Reject names that are not valid shell variable names.
5213506e
RW
978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979 as_fn_error "invalid feature name: $ac_useropt"
980 ac_useropt_orig=$ac_useropt
981 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982 case $ac_user_opts in
983 *"
984"enable_$ac_useropt"
985"*) ;;
986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
987 ac_unrecognized_sep=', ';;
2aeb72e9 988 esac
5213506e 989 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
990
991 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993 | --exec | --exe | --ex)
994 ac_prev=exec_prefix ;;
995 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997 | --exec=* | --exe=* | --ex=*)
1c710c3c 998 exec_prefix=$ac_optarg ;;
671aa708
NN
999
1000 -gas | --gas | --ga | --g)
1001 # Obsolete; use --with-gas.
1002 with_gas=yes ;;
1003
1c710c3c
DJ
1004 -help | --help | --hel | --he | -h)
1005 ac_init_help=long ;;
1006 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007 ac_init_help=recursive ;;
1008 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009 ac_init_help=short ;;
671aa708
NN
1010
1011 -host | --host | --hos | --ho)
1c710c3c 1012 ac_prev=host_alias ;;
671aa708 1013 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1014 host_alias=$ac_optarg ;;
671aa708 1015
5213506e
RW
1016 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017 ac_prev=htmldir ;;
1018 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019 | --ht=*)
1020 htmldir=$ac_optarg ;;
1021
671aa708
NN
1022 -includedir | --includedir | --includedi | --included | --include \
1023 | --includ | --inclu | --incl | --inc)
1024 ac_prev=includedir ;;
1025 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1027 includedir=$ac_optarg ;;
671aa708
NN
1028
1029 -infodir | --infodir | --infodi | --infod | --info | --inf)
1030 ac_prev=infodir ;;
1031 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1032 infodir=$ac_optarg ;;
671aa708
NN
1033
1034 -libdir | --libdir | --libdi | --libd)
1035 ac_prev=libdir ;;
1036 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1037 libdir=$ac_optarg ;;
671aa708
NN
1038
1039 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040 | --libexe | --libex | --libe)
1041 ac_prev=libexecdir ;;
1042 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1044 libexecdir=$ac_optarg ;;
671aa708 1045
5213506e
RW
1046 -localedir | --localedir | --localedi | --localed | --locale)
1047 ac_prev=localedir ;;
1048 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049 localedir=$ac_optarg ;;
1050
671aa708 1051 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1052 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1053 ac_prev=localstatedir ;;
1054 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1055 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1056 localstatedir=$ac_optarg ;;
671aa708
NN
1057
1058 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059 ac_prev=mandir ;;
1060 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1061 mandir=$ac_optarg ;;
671aa708
NN
1062
1063 -nfp | --nfp | --nf)
1064 # Obsolete; use --without-fp.
1065 with_fp=no ;;
1066
1067 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1068 | --no-cr | --no-c | -n)
671aa708
NN
1069 no_create=yes ;;
1070
1071 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073 no_recursion=yes ;;
1074
1075 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077 | --oldin | --oldi | --old | --ol | --o)
1078 ac_prev=oldincludedir ;;
1079 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1082 oldincludedir=$ac_optarg ;;
671aa708
NN
1083
1084 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085 ac_prev=prefix ;;
1086 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1087 prefix=$ac_optarg ;;
671aa708
NN
1088
1089 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090 | --program-pre | --program-pr | --program-p)
1091 ac_prev=program_prefix ;;
1092 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1094 program_prefix=$ac_optarg ;;
671aa708
NN
1095
1096 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097 | --program-suf | --program-su | --program-s)
1098 ac_prev=program_suffix ;;
1099 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1101 program_suffix=$ac_optarg ;;
671aa708
NN
1102
1103 -program-transform-name | --program-transform-name \
1104 | --program-transform-nam | --program-transform-na \
1105 | --program-transform-n | --program-transform- \
1106 | --program-transform | --program-transfor \
1107 | --program-transfo | --program-transf \
1108 | --program-trans | --program-tran \
1109 | --progr-tra | --program-tr | --program-t)
1110 ac_prev=program_transform_name ;;
1111 -program-transform-name=* | --program-transform-name=* \
1112 | --program-transform-nam=* | --program-transform-na=* \
1113 | --program-transform-n=* | --program-transform-=* \
1114 | --program-transform=* | --program-transfor=* \
1115 | --program-transfo=* | --program-transf=* \
1116 | --program-trans=* | --program-tran=* \
1117 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1118 program_transform_name=$ac_optarg ;;
671aa708 1119
5213506e
RW
1120 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121 ac_prev=pdfdir ;;
1122 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123 pdfdir=$ac_optarg ;;
1124
1125 -psdir | --psdir | --psdi | --psd | --ps)
1126 ac_prev=psdir ;;
1127 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128 psdir=$ac_optarg ;;
1129
671aa708
NN
1130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131 | -silent | --silent | --silen | --sile | --sil)
1132 silent=yes ;;
1133
1134 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1135 ac_prev=sbindir ;;
1136 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1137 | --sbi=* | --sb=*)
1c710c3c 1138 sbindir=$ac_optarg ;;
671aa708
NN
1139
1140 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1141 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1142 | --sharedst | --shareds | --shared | --share | --shar \
1143 | --sha | --sh)
1144 ac_prev=sharedstatedir ;;
1145 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1146 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1147 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1148 | --sha=* | --sh=*)
1c710c3c 1149 sharedstatedir=$ac_optarg ;;
671aa708
NN
1150
1151 -site | --site | --sit)
1152 ac_prev=site ;;
1153 -site=* | --site=* | --sit=*)
1c710c3c 1154 site=$ac_optarg ;;
671aa708
NN
1155
1156 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1157 ac_prev=srcdir ;;
1158 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1159 srcdir=$ac_optarg ;;
671aa708
NN
1160
1161 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1162 | --syscon | --sysco | --sysc | --sys | --sy)
1163 ac_prev=sysconfdir ;;
1164 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1165 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1166 sysconfdir=$ac_optarg ;;
671aa708
NN
1167
1168 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1169 ac_prev=target_alias ;;
671aa708 1170 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1171 target_alias=$ac_optarg ;;
671aa708
NN
1172
1173 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174 verbose=yes ;;
1175
1c710c3c
DJ
1176 -version | --version | --versio | --versi | --vers | -V)
1177 ac_init_version=: ;;
671aa708
NN
1178
1179 -with-* | --with-*)
5213506e 1180 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1181 # Reject names that are not valid shell variable names.
5213506e
RW
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 as_fn_error "invalid package name: $ac_useropt"
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1187 *"
1188"with_$ac_useropt"
1189"*) ;;
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
2aeb72e9 1192 esac
5213506e 1193 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1194
1195 -without-* | --without-*)
5213506e 1196 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1197 # Reject names that are not valid shell variable names.
5213506e
RW
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 as_fn_error "invalid package name: $ac_useropt"
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1203 *"
1204"with_$ac_useropt"
1205"*) ;;
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1208 esac
1209 eval with_$ac_useropt=no ;;
671aa708
NN
1210
1211 --x)
1212 # Obsolete; use --with-x.
1213 with_x=yes ;;
1214
1215 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1216 | --x-incl | --x-inc | --x-in | --x-i)
1217 ac_prev=x_includes ;;
1218 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1219 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1220 x_includes=$ac_optarg ;;
671aa708
NN
1221
1222 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1223 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1224 ac_prev=x_libraries ;;
1225 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1226 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1227 x_libraries=$ac_optarg ;;
671aa708 1228
5213506e
RW
1229 -*) as_fn_error "unrecognized option: \`$ac_option'
1230Try \`$0 --help' for more information."
671aa708
NN
1231 ;;
1232
1c710c3c
DJ
1233 *=*)
1234 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1235 # Reject names that are not valid shell variable names.
5213506e
RW
1236 case $ac_envvar in #(
1237 '' | [0-9]* | *[!_$as_cr_alnum]* )
1238 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1239 esac
1240 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1241 export $ac_envvar ;;
1242
671aa708 1243 *)
1c710c3c 1244 # FIXME: should be removed in autoconf 3.0.
5213506e 1245 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1246 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1247 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1c710c3c 1248 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
1249 ;;
1250
1251 esac
1252done
1253
1254if test -n "$ac_prev"; then
1c710c3c 1255 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1256 as_fn_error "missing argument to $ac_option"
af71363e 1257fi
af71363e 1258
5213506e
RW
1259if test -n "$ac_unrecognized_opts"; then
1260 case $enable_option_checking in
1261 no) ;;
1262 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1263 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1264 esac
5213506e 1265fi
2aeb72e9 1266
5213506e
RW
1267# Check all directory arguments for consistency.
1268for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269 datadir sysconfdir sharedstatedir localstatedir includedir \
1270 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271 libdir localedir mandir
2aeb72e9 1272do
5213506e
RW
1273 eval ac_val=\$$ac_var
1274 # Remove trailing slashes.
1275 case $ac_val in
1276 */ )
1277 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278 eval $ac_var=\$ac_val;;
1279 esac
1280 # Be sure to have absolute directory names.
2aeb72e9 1281 case $ac_val in
5213506e
RW
1282 [\\/$]* | ?:[\\/]* ) continue;;
1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1284 esac
5213506e 1285 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1286done
1287
1c710c3c
DJ
1288# There might be people who depend on the old broken behavior: `$host'
1289# used to hold the argument of --host etc.
1290# FIXME: To remove some day.
1291build=$build_alias
1292host=$host_alias
1293target=$target_alias
0b0dc272 1294
1c710c3c
DJ
1295# FIXME: To remove some day.
1296if test "x$host_alias" != x; then
1297 if test "x$build_alias" = x; then
1298 cross_compiling=maybe
5213506e 1299 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1c710c3c
DJ
1300 If a cross compiler is detected then cross compile mode will be used." >&2
1301 elif test "x$build_alias" != "x$host_alias"; then
1302 cross_compiling=yes
1303 fi
1304fi
1305
1306ac_tool_prefix=
1307test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308
1309test "$silent" = yes && exec 6>/dev/null
671aa708 1310
671aa708 1311
5213506e
RW
1312ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313ac_ls_di=`ls -di .` &&
1314ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315 as_fn_error "working directory cannot be determined"
1316test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317 as_fn_error "pwd does not report name of working directory"
1318
1319
671aa708
NN
1320# Find the source files, if location was not specified.
1321if test -z "$srcdir"; then
1322 ac_srcdir_defaulted=yes
5213506e
RW
1323 # Try the directory containing this script, then the parent directory.
1324 ac_confdir=`$as_dirname -- "$as_myself" ||
1325$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326 X"$as_myself" : 'X\(//\)[^/]' \| \
1327 X"$as_myself" : 'X\(//\)$' \| \
1328 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1329$as_echo X"$as_myself" |
1330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\/\)[^/].*/{
1335 s//\1/
1336 q
1337 }
1338 /^X\(\/\/\)$/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\).*/{
1343 s//\1/
1344 q
1345 }
1346 s/.*/./; q'`
671aa708 1347 srcdir=$ac_confdir
5213506e 1348 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1349 srcdir=..
1350 fi
1351else
1352 ac_srcdir_defaulted=no
1353fi
5213506e
RW
1354if test ! -r "$srcdir/$ac_unique_file"; then
1355 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1356 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1357fi
1358ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1359ac_abs_confdir=`(
1360 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1361 pwd)`
1362# When building in place, set srcdir=.
1363if test "$ac_abs_confdir" = "$ac_pwd"; then
1364 srcdir=.
1365fi
1366# Remove unnecessary trailing slashes from srcdir.
1367# Double slashes in file names in object file debugging info
1368# mess up M-x gdb in Emacs.
1369case $srcdir in
1370*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371esac
87841584
AM
1372case $srcdir in
1373 *" "*)
1374 as_fn_error "path to source, $srcdir, contains spaces"
1375 ;;
1376esac
ac9e6043
RW
1377ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1378
5213506e
RW
1379for ac_var in $ac_precious_vars; do
1380 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_env_${ac_var}_value=\$${ac_var}
1382 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384done
1c710c3c
DJ
1385
1386#
1387# Report the --help message.
1388#
1389if test "$ac_init_help" = "long"; then
1390 # Omit some internal or obsolete options to make the list less imposing.
1391 # This message is too long to be a string in the A/UX 3.1 sh.
1392 cat <<_ACEOF
1393\`configure' configures this package to adapt to many kinds of systems.
1394
1395Usage: $0 [OPTION]... [VAR=VALUE]...
1396
1397To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398VAR=VALUE. See below for descriptions of some of the useful variables.
1399
1400Defaults for the options are specified in brackets.
1401
1402Configuration:
1403 -h, --help display this help and exit
1404 --help=short display options specific to this package
1405 --help=recursive display the short help of all the included packages
1406 -V, --version display version information and exit
1407 -q, --quiet, --silent do not print \`checking...' messages
1408 --cache-file=FILE cache test results in FILE [disabled]
1409 -C, --config-cache alias for \`--cache-file=config.cache'
1410 -n, --no-create do not create output files
1411 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1412
1c710c3c
DJ
1413Installation directories:
1414 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1415 [$ac_default_prefix]
1c710c3c 1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1417 [PREFIX]
1c710c3c
DJ
1418
1419By default, \`make install' will install all the files in
1420\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1421an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422for instance \`--prefix=\$HOME'.
1423
1424For better control, use the options below.
1425
1426Fine tuning of the installation directories:
5213506e
RW
1427 --bindir=DIR user executables [EPREFIX/bin]
1428 --sbindir=DIR system admin executables [EPREFIX/sbin]
1429 --libexecdir=DIR program executables [EPREFIX/libexec]
1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1433 --libdir=DIR object code libraries [EPREFIX/lib]
1434 --includedir=DIR C header files [PREFIX/include]
1435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1438 --infodir=DIR info documentation [DATAROOTDIR/info]
1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1440 --mandir=DIR man documentation [DATAROOTDIR/man]
1441 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1442 --htmldir=DIR html documentation [DOCDIR]
1443 --dvidir=DIR dvi documentation [DOCDIR]
1444 --pdfdir=DIR pdf documentation [DOCDIR]
1445 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1446_ACEOF
1447
1448 cat <<\_ACEOF
1449
1450Program names:
1451 --program-prefix=PREFIX prepend PREFIX to installed program names
1452 --program-suffix=SUFFIX append SUFFIX to installed program names
1453 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1454
1455System types:
1456 --build=BUILD configure for building on BUILD [guessed]
1457 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1458 --target=TARGET configure for building compilers for TARGET [HOST]
1459_ACEOF
1460fi
1461
1462if test -n "$ac_init_help"; then
1463
1464 cat <<\_ACEOF
1465
1466Optional Features:
5213506e 1467 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1468 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1469 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85c64bbe
BS
1470 --enable-as-accelerator-for=ARG
1471 build as offload target compiler. Specify offload
1472 host triple by ARG
1473 --enable-offload-targets=LIST
1474 enable offloading to devices from comma-separated
1475 LIST of TARGET[=DIR]. Use optional path to find
1476 offload target compiler during the build
21539e2e 1477 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1478 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
324402a0 1479 --enable-compressed-debug-sections={all,gas,gold,ld,none}
78edb32f
L
1480 Enable compressed debug sections for gas, gold or ld
1481 by default
87e6d9dc
TB
1482 --disable-libquadmath do not build libquadmath directory
1483 --disable-libquadmath-support
1484 disable libquadmath support for Fortran
30b74385
RW
1485 --enable-libada build libada directory
1486 --enable-libssp build libssp directory
1873ec0c 1487 --disable-libstdcxx do not build libstdc++-v3 directory
5f520819
KY
1488 --enable-liboffloadmic=ARG
1489 build liboffloadmic [ARG={no,host,target}]
ff3ac0f4 1490 --enable-bootstrap enable bootstrapping [yes if native build]
33ad93b9 1491 --disable-isl-version-check
560d18d3 1492 disable check for isl version
d7f09764 1493 --enable-lto enable link time optimization support
45b3824d
TS
1494 --enable-linker-plugin-configure-flags=FLAGS
1495 additional flags for configuring linker plugins
1496 [none]
1497 --enable-linker-plugin-flags=FLAGS
1498 additional flags for configuring and building linker
1499 plugins [none]
33e39b66
AS
1500 --enable-stage1-languages[=all]
1501 choose additional languages to build during stage1.
1502 Mostly useful for compiler development
43c40f3e
RO
1503 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1504 Objective-C runtime
318a4e6d 1505 --enable-vtable-verify Enable vtable verification feature
30b74385 1506 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1507 force sequential configuration of sub-packages for
1508 the host, target or build machine, or all
1509 sub-packages
1510 --enable-maintainer-mode
1511 enable make rules and dependencies not useful (and
1512 sometimes confusing) to the casual installer
1513 --enable-stage1-checking[=all]
1514 choose additional checking for stage1 of the
1515 compiler
1c710c3c 1516 --enable-werror enable -Werror in bootstrap stage2 and later
459260ec 1517 --enable-host-shared build host code as shared libraries
1c710c3c
DJ
1518
1519Optional Packages:
1520 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1521 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1522 --with-build-libsubdir=DIR Directory where to find libraries for build system
a05c2c75 1523 --with-system-zlib use installed libz
33e39b66
AS
1524 --with-mpc=PATH specify prefix directory for installed MPC package.
1525 Equivalent to --with-mpc-include=PATH/include plus
1526 --with-mpc-lib=PATH/lib
1527 --with-mpc-include=PATH specify directory for installed MPC include files
1528 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1529 --with-mpfr-dir=PATH this option has been REMOVED
1530 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1531 Equivalent to --with-mpfr-include=PATH/include plus
1532 --with-mpfr-lib=PATH/lib
1c710c3c 1533 --with-mpfr-include=PATH
30b74385
RW
1534 specify directory for installed MPFR include files
1535 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1536 --with-gmp-dir=PATH this option has been REMOVED
33e39b66
AS
1537 --with-gmp=PATH specify prefix directory for the installed GMP
1538 package. Equivalent to
1539 --with-gmp-include=PATH/include plus
1540 --with-gmp-lib=PATH/lib
30b74385
RW
1541 --with-gmp-include=PATH specify directory for installed GMP include files
1542 --with-gmp-lib=PATH specify directory for the installed GMP library
0b21f5d3 1543 --with-stage1-libs=LIBS libraries for stage1
33e39b66
AS
1544 --with-stage1-ldflags=FLAGS
1545 linker flags for stage1
33e39b66
AS
1546 --with-boot-libs=LIBS libraries for stage2 and later
1547 --with-boot-ldflags=FLAGS
1548 linker flags for stage2 and later
e357a5e0 1549 --with-isl=PATH Specify prefix directory for the installed isl
33e39b66 1550 package. Equivalent to
33ad93b9
RG
1551 --with-isl-include=PATH/include plus
1552 --with-isl-lib=PATH/lib
560d18d3
AK
1553 --with-isl-include=PATH Specify directory for installed isl include files
1554 --with-isl-lib=PATH Specify the directory for the installed isl library
114bf3f1
MK
1555 --with-target-bdw-gc=PATHLIST
1556 specify prefix directory for installed bdw-gc
1557 package. Equivalent to
1558 --with-target-bdw-gc-include=PATH/include plus
1559 --with-target-bdw-gc-lib=PATH/lib
1560 --with-target-bdw-gc-include=PATHLIST
1561 specify directories for installed bdw-gc include
1562 files
1563 --with-target-bdw-gc-lib=PATHLIST
1564 specify directories for installed bdw-gc library
30b74385 1565 --with-build-sysroot=SYSROOT
1c710c3c 1566 use sysroot as the system root during the build
c8aea42c 1567 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1568 map A to B, C to D ... in debug information
1569 --with-build-config='NAME NAME2...'
1570 use config/NAME.mk build configuration
30b74385 1571 --with-build-time-tools=PATH
1c710c3c 1572 use given path to find target tools during the build
1c710c3c
DJ
1573
1574Some influential environment variables:
1575 CC C compiler command
1576 CFLAGS C compiler flags
1577 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1578 nonstandard directory <lib dir>
5213506e
RW
1579 LIBS libraries to pass to the linker, e.g. -l<library>
1580 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1581 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1582 CXX C++ compiler command
1583 CXXFLAGS C++ compiler flags
ffedf511
RW
1584 build_configargs
1585 additional configure arguments for build directories
1586 host_configargs
1587 additional configure arguments for host directories
1588 target_configargs
1589 additional configure arguments for target directories
278a7a38
AO
1590 AR AR for the host
1591 AS AS for the host
1592 DLLTOOL DLLTOOL for the host
1593 LD LD for the host
1594 LIPO LIPO for the host
1595 NM NM for the host
1596 RANLIB RANLIB for the host
1597 STRIP STRIP for the host
1598 WINDRES WINDRES for the host
901119ae 1599 WINDMC WINDMC for the host
278a7a38
AO
1600 OBJCOPY OBJCOPY for the host
1601 OBJDUMP OBJDUMP for the host
e7a82751 1602 READELF READELF for the host
278a7a38
AO
1603 CC_FOR_TARGET
1604 CC for the target
1605 CXX_FOR_TARGET
1606 CXX for the target
1607 GCC_FOR_TARGET
1608 GCC for the target
278a7a38
AO
1609 GFORTRAN_FOR_TARGET
1610 GFORTRAN for the target
632e2a07
ILT
1611 GOC_FOR_TARGET
1612 GOC for the target
278a7a38
AO
1613 AR_FOR_TARGET
1614 AR for the target
1615 AS_FOR_TARGET
1616 AS for the target
1617 DLLTOOL_FOR_TARGET
1618 DLLTOOL for the target
1619 LD_FOR_TARGET
1620 LD for the target
1621 LIPO_FOR_TARGET
1622 LIPO for the target
1623 NM_FOR_TARGET
1624 NM for the target
9bccfdf5
AP
1625 OBJCOPY_FOR_TARGET
1626 OBJCOPY for the target
278a7a38
AO
1627 OBJDUMP_FOR_TARGET
1628 OBJDUMP for the target
1629 RANLIB_FOR_TARGET
1630 RANLIB for the target
e7a82751
RM
1631 READELF_FOR_TARGET
1632 READELF for the target
278a7a38
AO
1633 STRIP_FOR_TARGET
1634 STRIP for the target
1635 WINDRES_FOR_TARGET
1636 WINDRES for the target
901119ae
KT
1637 WINDMC_FOR_TARGET
1638 WINDMC for the target
1c710c3c
DJ
1639
1640Use these variables to override the choices made by `configure' or to help
1641it to find libraries and programs with nonstandard names/locations.
1642
5213506e 1643Report bugs to the package provider.
1c710c3c 1644_ACEOF
5213506e 1645ac_status=$?
1c710c3c
DJ
1646fi
1647
1648if test "$ac_init_help" = "recursive"; then
1649 # If there are subdirs, report their specific --help.
1c710c3c 1650 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1651 test -d "$ac_dir" ||
1652 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1653 continue
1c710c3c
DJ
1654 ac_builddir=.
1655
5213506e
RW
1656case "$ac_dir" in
1657.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1658*)
1659 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1660 # A ".." for each directory in $ac_dir_suffix.
1661 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1662 case $ac_top_builddir_sub in
1663 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1664 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1665 esac ;;
1666esac
1667ac_abs_top_builddir=$ac_pwd
1668ac_abs_builddir=$ac_pwd$ac_dir_suffix
1669# for backward compatibility:
1670ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1671
1672case $srcdir in
5213506e 1673 .) # We are building in place.
1c710c3c 1674 ac_srcdir=.
5213506e
RW
1675 ac_top_srcdir=$ac_top_builddir_sub
1676 ac_abs_top_srcdir=$ac_pwd ;;
1677 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1678 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1679 ac_top_srcdir=$srcdir
1680 ac_abs_top_srcdir=$srcdir ;;
1681 *) # Relative name.
1682 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1683 ac_top_srcdir=$ac_top_build_prefix$srcdir
1684 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1685esac
5213506e
RW
1686ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1687
1688 cd "$ac_dir" || { ac_status=$?; continue; }
1689 # Check for guested configure.
1690 if test -f "$ac_srcdir/configure.gnu"; then
1691 echo &&
1692 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1693 elif test -f "$ac_srcdir/configure"; then
1694 echo &&
1695 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1696 else
5213506e
RW
1697 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1698 fi || ac_status=$?
1699 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1700 done
1701fi
1702
5213506e 1703test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1704if $ac_init_version; then
1705 cat <<\_ACEOF
5213506e
RW
1706configure
1707generated by GNU Autoconf 2.64
1c710c3c 1708
5213506e 1709Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
1710This configure script is free software; the Free Software Foundation
1711gives unlimited permission to copy, distribute and modify it.
1712_ACEOF
5213506e 1713 exit
0b0dc272 1714fi
5213506e
RW
1715
1716## ------------------------ ##
1717## Autoconf initialization. ##
1718## ------------------------ ##
1719
1720# ac_fn_c_try_compile LINENO
1721# --------------------------
1722# Try to compile conftest.$ac_ext, and return whether this succeeded.
1723ac_fn_c_try_compile ()
1724{
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 rm -f conftest.$ac_objext
1727 if { { ac_try="$ac_compile"
1728case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731esac
1732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733$as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_compile") 2>conftest.err
1735 ac_status=$?
1736 if test -s conftest.err; then
1737 grep -v '^ *+' conftest.err >conftest.er1
1738 cat conftest.er1 >&5
1739 mv -f conftest.er1 conftest.err
1740 fi
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && {
1743 test -z "$ac_c_werror_flag" ||
1744 test ! -s conftest.err
1745 } && test -s conftest.$ac_objext; then :
1746 ac_retval=0
1747else
1748 $as_echo "$as_me: failed program was:" >&5
1749sed 's/^/| /' conftest.$ac_ext >&5
1750
1751 ac_retval=1
1752fi
1753 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1754 return $ac_retval
1755
1756} # ac_fn_c_try_compile
1757
1758# ac_fn_cxx_try_compile LINENO
1759# ----------------------------
1760# Try to compile conftest.$ac_ext, and return whether this succeeded.
1761ac_fn_cxx_try_compile ()
1762{
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 rm -f conftest.$ac_objext
1765 if { { ac_try="$ac_compile"
1766case "(($ac_try" in
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1769esac
1770eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771$as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_compile") 2>conftest.err
1773 ac_status=$?
1774 if test -s conftest.err; then
1775 grep -v '^ *+' conftest.err >conftest.er1
1776 cat conftest.er1 >&5
1777 mv -f conftest.er1 conftest.err
1778 fi
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; } && {
1781 test -z "$ac_cxx_werror_flag" ||
1782 test ! -s conftest.err
1783 } && test -s conftest.$ac_objext; then :
1784 ac_retval=0
1785else
1786 $as_echo "$as_me: failed program was:" >&5
1787sed 's/^/| /' conftest.$ac_ext >&5
1788
1789 ac_retval=1
1790fi
1791 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1792 return $ac_retval
1793
1794} # ac_fn_cxx_try_compile
1795
0b21f5d3
EB
1796# ac_fn_cxx_try_link LINENO
1797# -------------------------
1798# Try to link conftest.$ac_ext, and return whether this succeeded.
1799ac_fn_cxx_try_link ()
1800{
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 rm -f conftest.$ac_objext conftest$ac_exeext
1803 if { { ac_try="$ac_link"
1804case "(($ac_try" in
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1807esac
1808eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809$as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_link") 2>conftest.err
1811 ac_status=$?
1812 if test -s conftest.err; then
1813 grep -v '^ *+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1816 fi
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } && {
1819 test -z "$ac_cxx_werror_flag" ||
1820 test ! -s conftest.err
1821 } && test -s conftest$ac_exeext && {
1822 test "$cross_compiling" = yes ||
1823 $as_test_x conftest$ac_exeext
1824 }; then :
1825 ac_retval=0
1826else
1827 $as_echo "$as_me: failed program was:" >&5
1828sed 's/^/| /' conftest.$ac_ext >&5
1829
1830 ac_retval=1
1831fi
1832 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1833 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1834 # interfere with the next link command; also delete a directory that is
1835 # left behind by Apple's compiler. We do this before executing the actions.
1836 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1837 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1838 return $ac_retval
1839
1840} # ac_fn_cxx_try_link
1841
5213506e
RW
1842# ac_fn_c_try_link LINENO
1843# -----------------------
1844# Try to link conftest.$ac_ext, and return whether this succeeded.
1845ac_fn_c_try_link ()
1846{
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 rm -f conftest.$ac_objext conftest$ac_exeext
1849 if { { ac_try="$ac_link"
1850case "(($ac_try" in
1851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1852 *) ac_try_echo=$ac_try;;
1853esac
1854eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855$as_echo "$ac_try_echo"; } >&5
1856 (eval "$ac_link") 2>conftest.err
1857 ac_status=$?
1858 if test -s conftest.err; then
1859 grep -v '^ *+' conftest.err >conftest.er1
1860 cat conftest.er1 >&5
1861 mv -f conftest.er1 conftest.err
1862 fi
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; } && {
1865 test -z "$ac_c_werror_flag" ||
1866 test ! -s conftest.err
1867 } && test -s conftest$ac_exeext && {
1868 test "$cross_compiling" = yes ||
1869 $as_test_x conftest$ac_exeext
1870 }; then :
1871 ac_retval=0
1872else
1873 $as_echo "$as_me: failed program was:" >&5
1874sed 's/^/| /' conftest.$ac_ext >&5
1875
1876 ac_retval=1
1877fi
1878 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1879 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1880 # interfere with the next link command; also delete a directory that is
1881 # left behind by Apple's compiler. We do this before executing the actions.
1882 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1884 return $ac_retval
1885
1886} # ac_fn_c_try_link
1887cat >config.log <<_ACEOF
1c710c3c
DJ
1888This file contains any messages produced by compilers while
1889running configure, to aid debugging if configure makes a mistake.
1890
1891It was created by $as_me, which was
5213506e 1892generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
1893
1894 $ $0 $@
1895
1896_ACEOF
5213506e 1897exec 5>>config.log
1c710c3c
DJ
1898{
1899cat <<_ASUNAME
1900## --------- ##
1901## Platform. ##
1902## --------- ##
1903
1904hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1905uname -m = `(uname -m) 2>/dev/null || echo unknown`
1906uname -r = `(uname -r) 2>/dev/null || echo unknown`
1907uname -s = `(uname -s) 2>/dev/null || echo unknown`
1908uname -v = `(uname -v) 2>/dev/null || echo unknown`
1909
1910/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1911/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1912
1913/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1914/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1915/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1916/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1917/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1918/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1919/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1920
1921_ASUNAME
1922
1923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924for as_dir in $PATH
1925do
1926 IFS=$as_save_IFS
1927 test -z "$as_dir" && as_dir=.
5213506e
RW
1928 $as_echo "PATH: $as_dir"
1929 done
1930IFS=$as_save_IFS
1c710c3c
DJ
1931
1932} >&5
1933
1934cat >&5 <<_ACEOF
1935
1936
1937## ----------- ##
1938## Core tests. ##
1939## ----------- ##
1940
1941_ACEOF
1942
1943
1944# Keep a trace of the command line.
1945# Strip out --no-create and --no-recursion so they do not pile up.
1946# Strip out --silent because we don't want to record it for future runs.
1947# Also quote any args containing shell meta-characters.
1948# Make two passes to allow for proper duplicate-argument suppression.
1949ac_configure_args=
1950ac_configure_args0=
1951ac_configure_args1=
1c710c3c
DJ
1952ac_must_keep_next=false
1953for ac_pass in 1 2
1954do
1955 for ac_arg
1956 do
1957 case $ac_arg in
1958 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1959 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1960 | -silent | --silent | --silen | --sile | --sil)
1961 continue ;;
5213506e
RW
1962 *\'*)
1963 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1964 esac
1965 case $ac_pass in
5213506e 1966 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 1967 2)
5213506e 1968 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
1969 if test $ac_must_keep_next = true; then
1970 ac_must_keep_next=false # Got value, back to normal.
1971 else
1972 case $ac_arg in
1973 *=* | --config-cache | -C | -disable-* | --disable-* \
1974 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1975 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1976 | -with-* | --with-* | -without-* | --without-* | --x)
1977 case "$ac_configure_args0 " in
1978 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1979 esac
1980 ;;
1981 -* ) ac_must_keep_next=true ;;
1982 esac
1983 fi
5213506e 1984 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
1985 ;;
1986 esac
1987 done
1988done
5213506e
RW
1989{ ac_configure_args0=; unset ac_configure_args0;}
1990{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
1991
1992# When interrupted or exit'd, cleanup temporary files, and complete
1993# config.log. We remove comments because anyway the quotes in there
1994# would cause problems or look ugly.
5213506e
RW
1995# WARNING: Use '\'' to represent an apostrophe within the trap.
1996# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
1997trap 'exit_status=$?
1998 # Save into config.log some information that might help in debugging.
1999 {
2000 echo
2001
2002 cat <<\_ASBOX
2003## ---------------- ##
2004## Cache variables. ##
2005## ---------------- ##
2006_ASBOX
2007 echo
2008 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2009(
2010 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2011 eval ac_val=\$$ac_var
2012 case $ac_val in #(
2013 *${as_nl}*)
2014 case $ac_var in #(
2015 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2016$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2017 esac
2018 case $ac_var in #(
2019 _ | IFS | as_nl) ;; #(
2020 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2021 *) { eval $ac_var=; unset $ac_var;} ;;
2022 esac ;;
2023 esac
2024 done
1c710c3c 2025 (set) 2>&1 |
5213506e
RW
2026 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2027 *${as_nl}ac_space=\ *)
1c710c3c 2028 sed -n \
5213506e
RW
2029 "s/'\''/'\''\\\\'\'''\''/g;
2030 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2031 ;; #(
1c710c3c 2032 *)
5213506e 2033 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 2034 ;;
5213506e
RW
2035 esac |
2036 sort
2037)
1c710c3c
DJ
2038 echo
2039
2040 cat <<\_ASBOX
2041## ----------------- ##
2042## Output variables. ##
2043## ----------------- ##
2044_ASBOX
2045 echo
2046 for ac_var in $ac_subst_vars
2047 do
5213506e
RW
2048 eval ac_val=\$$ac_var
2049 case $ac_val in
2050 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2051 esac
2052 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2053 done | sort
2054 echo
2055
2056 if test -n "$ac_subst_files"; then
2057 cat <<\_ASBOX
5213506e
RW
2058## ------------------- ##
2059## File substitutions. ##
2060## ------------------- ##
1c710c3c
DJ
2061_ASBOX
2062 echo
2063 for ac_var in $ac_subst_files
2064 do
5213506e
RW
2065 eval ac_val=\$$ac_var
2066 case $ac_val in
2067 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2068 esac
2069 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2070 done | sort
2071 echo
2072 fi
2073
2074 if test -s confdefs.h; then
2075 cat <<\_ASBOX
2076## ----------- ##
2077## confdefs.h. ##
2078## ----------- ##
2079_ASBOX
2080 echo
5213506e 2081 cat confdefs.h
1c710c3c
DJ
2082 echo
2083 fi
2084 test "$ac_signal" != 0 &&
5213506e
RW
2085 $as_echo "$as_me: caught signal $ac_signal"
2086 $as_echo "$as_me: exit $exit_status"
1c710c3c 2087 } >&5
5213506e
RW
2088 rm -f core *.core core.conftest.* &&
2089 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2090 exit $exit_status
5213506e 2091' 0
1c710c3c 2092for ac_signal in 1 2 13 15; do
5213506e 2093 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2094done
2095ac_signal=0
2096
2097# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2098rm -f -r conftest* confdefs.h
2099
2100$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2101
2102# Predefined preprocessor variables.
2103
2104cat >>confdefs.h <<_ACEOF
2105#define PACKAGE_NAME "$PACKAGE_NAME"
2106_ACEOF
2107
1c710c3c
DJ
2108cat >>confdefs.h <<_ACEOF
2109#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2110_ACEOF
2111
1c710c3c
DJ
2112cat >>confdefs.h <<_ACEOF
2113#define PACKAGE_VERSION "$PACKAGE_VERSION"
2114_ACEOF
0b0dc272 2115
1c710c3c
DJ
2116cat >>confdefs.h <<_ACEOF
2117#define PACKAGE_STRING "$PACKAGE_STRING"
2118_ACEOF
2119
1c710c3c
DJ
2120cat >>confdefs.h <<_ACEOF
2121#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2122_ACEOF
2123
5213506e
RW
2124cat >>confdefs.h <<_ACEOF
2125#define PACKAGE_URL "$PACKAGE_URL"
2126_ACEOF
2127
1c710c3c
DJ
2128
2129# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2130# Prefer an explicitly selected file to automatically selected ones.
2131ac_site_file1=NONE
2132ac_site_file2=NONE
2133if test -n "$CONFIG_SITE"; then
2134 ac_site_file1=$CONFIG_SITE
2135elif test "x$prefix" != xNONE; then
2136 ac_site_file1=$prefix/share/config.site
2137 ac_site_file2=$prefix/etc/config.site
2138else
2139 ac_site_file1=$ac_default_prefix/share/config.site
2140 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2141fi
5213506e
RW
2142for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2143do
2144 test "x$ac_site_file" = xNONE && continue
671aa708 2145 if test -r "$ac_site_file"; then
5213506e
RW
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2147$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2148 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
2149 . "$ac_site_file"
2150 fi
2151done
2152
2153if test -r "$cache_file"; then
1c710c3c
DJ
2154 # Some versions of bash will fail to source /dev/null (special
2155 # files actually), so we avoid doing that.
2156 if test -f "$cache_file"; then
5213506e
RW
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2158$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2159 case $cache_file in
5213506e
RW
2160 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2161 *) . "./$cache_file";;
1c710c3c
DJ
2162 esac
2163 fi
671aa708 2164else
5213506e
RW
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2166$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2167 >$cache_file
2168fi
2169
2170# Check that the precious variables saved in the cache have kept the same
2171# value.
2172ac_cache_corrupted=false
5213506e 2173for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2174 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2175 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2176 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2177 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2178 case $ac_old_set,$ac_new_set in
2179 set,)
5213506e
RW
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2181$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2182 ac_cache_corrupted=: ;;
2183 ,set)
5213506e
RW
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2185$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2186 ac_cache_corrupted=: ;;
2187 ,);;
2188 *)
2189 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2190 # differences in whitespace do not lead to failure.
2191 ac_old_val_w=`echo x $ac_old_val`
2192 ac_new_val_w=`echo x $ac_new_val`
2193 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2195$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2196 ac_cache_corrupted=:
2197 else
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2199$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2200 eval $ac_var=\$ac_old_val
2201 fi
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2203$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2205$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2206 fi;;
2207 esac
2208 # Pass precious variables to config.status.
2209 if test "$ac_new_set" = set; then
2210 case $ac_new_val in
5213506e 2211 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2212 *) ac_arg=$ac_var=$ac_new_val ;;
2213 esac
2214 case " $ac_configure_args " in
2215 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2216 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2217 esac
2218 fi
2219done
2220if $ac_cache_corrupted; then
5213506e
RW
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2222$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2224$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2225 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2226fi
5213506e
RW
2227## -------------------- ##
2228## Main body of script. ##
2229## -------------------- ##
671aa708 2230
2aeb72e9
DD
2231ac_ext=c
2232ac_cpp='$CPP $CPPFLAGS'
2233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2235ac_compiler_gnu=$ac_cv_c_compiler_gnu
2236
1c710c3c
DJ
2237
2238
2239
1c710c3c
DJ
2240
2241
0115d4a3 2242
1c710c3c 2243
ad33ff57
RW
2244
2245progname=$0
2246# if PWD already has a value, it is probably wrong.
2247if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2248
2249# Export original configure arguments for use by sub-configures.
2250# Quote arguments with shell meta charatcers.
2251TOPLEVEL_CONFIGURE_ARGUMENTS=
2252set -- "$progname" "$@"
2253for ac_arg
2254do
2255 case "$ac_arg" in
2256 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2257 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2258 # if the argument is of the form -foo=baz, quote the baz part only
2259 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2260 *) ;;
2261 esac
2262 # Add the quoted argument to the list.
2263 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2264done
2265if test "$silent" = yes; then
2266 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2267fi
2268# Remove the initial space we just introduced and, as these will be
2269# expanded by make, quote '$'.
2270TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2271
1c710c3c
DJ
2272
2273# Find the build, host, and target systems.
671aa708 2274ac_aux_dir=
5213506e
RW
2275for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2276 for ac_t in install-sh install.sh shtool; do
2277 if test -f "$ac_dir/$ac_t"; then
2278 ac_aux_dir=$ac_dir
2279 ac_install_sh="$ac_aux_dir/$ac_t -c"
2280 break 2
2281 fi
2282 done
671aa708
NN
2283done
2284if test -z "$ac_aux_dir"; then
5213506e 2285 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2286fi
5213506e
RW
2287
2288# These three variables are undocumented and unsupported,
2289# and are intended to be withdrawn in a future Autoconf release.
2290# They can cause serious problems if a builder's source tree is in a directory
2291# whose full name contains unusual characters.
2292ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2293ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2294ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2295
671aa708 2296
1c710c3c 2297# Make sure we can run config.sub.
5213506e
RW
2298$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2299 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2300
2301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2302$as_echo_n "checking build system type... " >&6; }
2303if test "${ac_cv_build+set}" = set; then :
2304 $as_echo_n "(cached) " >&6
2305else
2306 ac_build_alias=$build_alias
2307test "x$ac_build_alias" = x &&
2308 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2309test "x$ac_build_alias" = x &&
2310 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2311ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2312 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2313
2314fi
2315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2316$as_echo "$ac_cv_build" >&6; }
2317case $ac_cv_build in
2318*-*-*) ;;
2319*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2320esac
1c710c3c 2321build=$ac_cv_build
5213506e
RW
2322ac_save_IFS=$IFS; IFS='-'
2323set x $ac_cv_build
2324shift
2325build_cpu=$1
2326build_vendor=$2
2327shift; shift
2328# Remember, the first character of IFS is used to create $*,
2329# except with old shells:
2330build_os=$*
2331IFS=$ac_save_IFS
2332case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2333
671aa708 2334
1c710c3c
DJ
2335 case ${build_alias} in
2336 "") build_noncanonical=${build} ;;
2337 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2338esac
2339
2340
af71363e 2341
1c710c3c
DJ
2342 case ${host_alias} in
2343 "") host_noncanonical=${build_noncanonical} ;;
2344 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2345esac
2346
af71363e 2347
1c710c3c
DJ
2348
2349 case ${target_alias} in
2350 "") target_noncanonical=${host_noncanonical} ;;
2351 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2352esac
2353
af71363e 2354
1c710c3c
DJ
2355
2356
2357test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2358 test "$program_prefix$program_suffix$program_transform_name" = \
2359 NONENONEs,x,x, &&
1c710c3c 2360 program_transform_name=s,y,y,
af71363e 2361
5213506e
RW
2362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2363$as_echo_n "checking host system type... " >&6; }
2364if test "${ac_cv_host+set}" = set; then :
2365 $as_echo_n "(cached) " >&6
af71363e 2366else
5213506e
RW
2367 if test "x$host_alias" = x; then
2368 ac_cv_host=$ac_cv_build
2369else
2370 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2371 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2372fi
1c710c3c 2373
af71363e 2374fi
5213506e
RW
2375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2376$as_echo "$ac_cv_host" >&6; }
2377case $ac_cv_host in
2378*-*-*) ;;
2379*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2380esac
1c710c3c 2381host=$ac_cv_host
5213506e
RW
2382ac_save_IFS=$IFS; IFS='-'
2383set x $ac_cv_host
2384shift
2385host_cpu=$1
2386host_vendor=$2
2387shift; shift
2388# Remember, the first character of IFS is used to create $*,
2389# except with old shells:
2390host_os=$*
2391IFS=$ac_save_IFS
2392case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2393
2394
5213506e
RW
2395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2396$as_echo_n "checking target system type... " >&6; }
2397if test "${ac_cv_target+set}" = set; then :
2398 $as_echo_n "(cached) " >&6
1c710c3c 2399else
5213506e
RW
2400 if test "x$target_alias" = x; then
2401 ac_cv_target=$ac_cv_host
2402else
2403 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2404 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2405fi
1c710c3c
DJ
2406
2407fi
5213506e
RW
2408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2409$as_echo "$ac_cv_target" >&6; }
2410case $ac_cv_target in
2411*-*-*) ;;
2412*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2413esac
1c710c3c 2414target=$ac_cv_target
5213506e
RW
2415ac_save_IFS=$IFS; IFS='-'
2416set x $ac_cv_target
2417shift
2418target_cpu=$1
2419target_vendor=$2
2420shift; shift
2421# Remember, the first character of IFS is used to create $*,
2422# except with old shells:
2423target_os=$*
2424IFS=$ac_save_IFS
2425case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2426
2427
2428# The aliases save the names the user supplied, while $host etc.
2429# will get canonicalized.
2430test -n "$target_alias" &&
2431 test "$program_prefix$program_suffix$program_transform_name" = \
2432 NONENONEs,x,x, &&
2433 program_prefix=${target_alias}-
5213506e 2434
671aa708 2435test "$program_prefix" != NONE &&
5213506e 2436 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2437# Use a double $ so make ignores it.
2438test "$program_suffix" != NONE &&
5213506e
RW
2439 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2440# Double any \ or $.
1c710c3c 2441# By default was `s,x,x', remove it if useless.
5213506e
RW
2442ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2443program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2444
671aa708
NN
2445
2446
775956d0
NN
2447# Get 'install' or 'install-sh' and its variants.
2448# Find a good install program. We prefer a C program (faster),
2449# so one script is as good as another. But avoid the broken or
2450# incompatible versions:
2451# SysV /etc/install, /usr/sbin/install
2452# SunOS /usr/etc/install
2453# IRIX /sbin/install
2454# AIX /bin/install
1c710c3c 2455# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2456# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2457# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2458# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2459# OS/2's system install, which has a completely different semantic
775956d0 2460# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2461# Reject install programs that cannot install multiple files.
5213506e
RW
2462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2463$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2464if test -z "$INSTALL"; then
5213506e
RW
2465if test "${ac_cv_path_install+set}" = set; then :
2466 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2467else
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469for as_dir in $PATH
2470do
2471 IFS=$as_save_IFS
2472 test -z "$as_dir" && as_dir=.
5213506e
RW
2473 # Account for people who put trailing slashes in PATH elements.
2474case $as_dir/ in #((
2475 ./ | .// | /[cC]/* | \
1c710c3c 2476 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2477 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2478 /usr/ucb/* ) ;;
2479 *)
2480 # OSF1 and SCO ODT 3.0 have their own names for install.
2481 # Don't use installbsd from OSF since it installs stuff as root
2482 # by default.
2483 for ac_prog in ginstall scoinst install; do
2484 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2485 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
775956d0 2486 if test $ac_prog = install &&
1c710c3c 2487 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2488 # AIX install. It has an incompatible calling convention.
2489 :
1c710c3c
DJ
2490 elif test $ac_prog = install &&
2491 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2492 # program-specific install script used by HP pwplus--don't use.
2493 :
775956d0 2494 else
38d24731
RW
2495 rm -rf conftest.one conftest.two conftest.dir
2496 echo one > conftest.one
2497 echo two > conftest.two
2498 mkdir conftest.dir
2499 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2500 test -s conftest.one && test -s conftest.two &&
2501 test -s conftest.dir/conftest.one &&
2502 test -s conftest.dir/conftest.two
2503 then
2504 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2505 break 3
2506 fi
775956d0
NN
2507 fi
2508 fi
2509 done
1c710c3c
DJ
2510 done
2511 ;;
2512esac
5213506e
RW
2513
2514 done
2515IFS=$as_save_IFS
1c710c3c 2516
38d24731 2517rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2518
2519fi
2520 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2521 INSTALL=$ac_cv_path_install
775956d0 2522 else
38d24731
RW
2523 # As a last resort, use the slow shell script. Don't cache a
2524 # value for INSTALL within a source directory, because that will
775956d0 2525 # break other packages using the cache if that directory is
38d24731 2526 # removed, or if the value is a relative name.
1c710c3c 2527 INSTALL=$ac_install_sh
775956d0
NN
2528 fi
2529fi
5213506e
RW
2530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2531$as_echo "$INSTALL" >&6; }
775956d0
NN
2532
2533# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2534# It thinks the first close brace ends the variable substitution.
2535test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2536
1c710c3c 2537test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2538
2539test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2540
5213506e
RW
2541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2542$as_echo_n "checking whether ln works... " >&6; }
2543if test "${acx_cv_prog_LN+set}" = set; then :
2544 $as_echo_n "(cached) " >&6
ad6717df
PB
2545else
2546 rm -f conftestdata_t
2547echo >conftestdata_f
2548if ln conftestdata_f conftestdata_t 2>/dev/null
2549then
2550 acx_cv_prog_LN=ln
2551else
2552 acx_cv_prog_LN=no
2553fi
2554rm -f conftestdata_f conftestdata_t
2555
2556fi
2557if test $acx_cv_prog_LN = no; then
2558 LN="cp"
5213506e
RW
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2560$as_echo "no, using $LN" >&6; }
ad6717df
PB
2561else
2562 LN="$acx_cv_prog_LN"
5213506e
RW
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2564$as_echo "yes" >&6; }
ad6717df
PB
2565fi
2566
5213506e
RW
2567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2568$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2569LN_S=$as_ln_s
2570if test "$LN_S" = "ln -s"; then
5213506e
RW
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2572$as_echo "yes" >&6; }
fb0103e5 2573else
5213506e
RW
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2575$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2576fi
2577
87264276
PB
2578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2579$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2580if test "${ac_cv_path_SED+set}" = set; then :
2581 $as_echo_n "(cached) " >&6
2582else
2583 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2584 for ac_i in 1 2 3 4 5 6 7; do
2585 ac_script="$ac_script$as_nl$ac_script"
2586 done
2587 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2588 { ac_script=; unset ac_script;}
2589 if test -z "$SED"; then
2590 ac_path_SED_found=false
2591 # Loop through the user's path and test for each of PROGNAME-LIST
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593for as_dir in $PATH
2594do
2595 IFS=$as_save_IFS
2596 test -z "$as_dir" && as_dir=.
2597 for ac_prog in sed gsed; do
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2600 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2601# Check for GNU ac_path_SED and select it if it is found.
2602 # Check for GNU $ac_path_SED
2603case `"$ac_path_SED" --version 2>&1` in
2604*GNU*)
2605 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2606*)
2607 ac_count=0
2608 $as_echo_n 0123456789 >"conftest.in"
2609 while :
2610 do
2611 cat "conftest.in" "conftest.in" >"conftest.tmp"
2612 mv "conftest.tmp" "conftest.in"
2613 cp "conftest.in" "conftest.nl"
2614 $as_echo '' >> "conftest.nl"
2615 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2616 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2617 as_fn_arith $ac_count + 1 && ac_count=$as_val
2618 if test $ac_count -gt ${ac_path_SED_max-0}; then
2619 # Best one so far, save it but keep looking for a better one
2620 ac_cv_path_SED="$ac_path_SED"
2621 ac_path_SED_max=$ac_count
2622 fi
2623 # 10*(2^10) chars as input seems more than enough
2624 test $ac_count -gt 10 && break
2625 done
2626 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2627esac
2628
2629 $ac_path_SED_found && break 3
2630 done
2631 done
2632 done
2633IFS=$as_save_IFS
2634 if test -z "$ac_cv_path_SED"; then
2635 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2636 fi
2637else
2638 ac_cv_path_SED=$SED
2639fi
2640
2641fi
2642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2643$as_echo "$ac_cv_path_SED" >&6; }
2644 SED="$ac_cv_path_SED"
2645 rm -f conftest.sed
2646
2647for ac_prog in gawk mawk nawk awk
2648do
2649 # Extract the first word of "$ac_prog", so it can be a program name with args.
2650set dummy $ac_prog; ac_word=$2
2651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652$as_echo_n "checking for $ac_word... " >&6; }
2653if test "${ac_cv_prog_AWK+set}" = set; then :
2654 $as_echo_n "(cached) " >&6
2655else
2656 if test -n "$AWK"; then
2657 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2658else
2659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660for as_dir in $PATH
2661do
2662 IFS=$as_save_IFS
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666 ac_cv_prog_AWK="$ac_prog"
2667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 break 2
2669 fi
2670done
2671 done
2672IFS=$as_save_IFS
2673
2674fi
2675fi
2676AWK=$ac_cv_prog_AWK
2677if test -n "$AWK"; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2679$as_echo "$AWK" >&6; }
2680else
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682$as_echo "no" >&6; }
2683fi
2684
2685
2686 test -n "$AWK" && break
2687done
2688
775956d0 2689
ee6a22df
L
2690srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2691
2692# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2693# a relative path.
2694if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2695 INSTALL="${srcpwd}/install-sh -c"
2696fi
2697
671aa708
NN
2698# Set srcdir to "." if that's what it is.
2699# This is important for multilib support.
2700pwd=`${PWDCMD-pwd}`
671aa708
NN
2701if test "${pwd}" = "${srcpwd}" ; then
2702 srcdir=.
79c06341
JL
2703fi
2704
671aa708 2705topsrcdir=$srcpwd
5d4a5ee6 2706
671aa708 2707extra_host_args=
afabd8e6 2708
671aa708
NN
2709### To add a new directory to the tree, first choose whether it is a target
2710### or a host dependent tool. Then put it into the appropriate list
2711### (library or tools, host or target), doing a dependency sort.
79c06341 2712
1c710c3c 2713# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2714# configdirs, or target_configdirs; see the serialization section below.
79c06341 2715
1c710c3c
DJ
2716# Dependency sorting is only needed when *configuration* must be done in
2717# a particular order. In all cases a dependency should be specified in
671aa708 2718# the Makefile, whether or not it's implicitly specified here.
79c06341 2719
671aa708
NN
2720# Double entries in build_configdirs, configdirs, or target_configdirs may
2721# cause circular dependencies and break everything horribly.
79c06341 2722
23f6b2f9
PB
2723# these library is used by various programs built for the build
2724# environment
2725#
929315a9 2726build_libs="build-libiberty build-libcpp"
23f6b2f9
PB
2727
2728# these tools are built for the build environment
85bfb75e 2729build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2730
671aa708 2731# these libraries are used by various programs built for the host environment
eae1a5d4 2732#f
4a9bb2aa 2733host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
671aa708 2734
671aa708
NN
2735# these tools are built for the host environment
2736# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2737# know that we are building the simulator.
2738# binutils, gas and ld appear in that order because it makes sense to run
2739# "make check" in that particular order.
38e3d868 2740# If --enable-gold is used, "gold" may replace "ld".
bf1de3f0 2741host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
671aa708 2742
671aa708
NN
2743# these libraries are built for the target environment, and are built after
2744# the host libraries and the host tools (which may be a cross compiler)
8499116a 2745# Note that libiberty is not a target library.
291f172e 2746target_libraries="target-libgcc \
eff02e4f 2747 target-libbacktrace \
671aa708
NN
2748 target-libgloss \
2749 target-newlib \
6d3b5aea 2750 target-libgomp \
3038054c 2751 target-libcilkrts \
5f520819 2752 target-liboffloadmic \
48310492 2753 target-libatomic \
0a35513e 2754 target-libitm \
cb543528 2755 target-libstdc++-v3 \
f35db108 2756 target-libsanitizer \
2077db1b 2757 target-libvtv \
5373cd33 2758 target-libmpx \
77008252 2759 target-libssp \
1ec601bf 2760 target-libquadmath \
6de9cd9a 2761 target-libgfortran \
012447ea 2762 target-libffi \
d9cdb878 2763 target-libobjc \
632e2a07
ILT
2764 target-libada \
2765 target-libgo"
671aa708 2766
4dbda6f0
NN
2767# these tools are built using the target libraries, and are intended to
2768# run only in the target environment
671aa708 2769#
4dbda6f0 2770# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2771# list belongs in this list.
671aa708 2772#
85bfb75e 2773target_tools="target-rda"
79c06341 2774
671aa708 2775################################################################################
79c06341 2776
671aa708
NN
2777## All tools belong in one of the four categories, and are assigned above
2778## We assign ${configdirs} this way to remove all embedded newlines. This
2779## is important because configure will choke if they ever get through.
2780## ${configdirs} is directories we build using the host tools.
2781## ${target_configdirs} is directories we build using the target tools.
671aa708 2782configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2783target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2784build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2785
ac9e6043
RW
2786
2787
671aa708 2788################################################################################
79c06341 2789
671aa708 2790srcname="gnu development package"
79c06341 2791
671aa708
NN
2792# This gets set non-empty for some net releases of packages.
2793appdirs=""
79c06341 2794
671aa708
NN
2795# Define is_cross_compiler to save on calls to 'test'.
2796is_cross_compiler=
2797if test x"${host}" = x"${target}" ; then
2798 is_cross_compiler=no
79c06341 2799else
671aa708 2800 is_cross_compiler=yes
1c710c3c 2801fi
79c06341 2802
b4acb5ef 2803# Find the build and target subdir names.
8b87bb96 2804
2e9e6f68
DJ
2805# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2806# have matching libraries, they should use host libraries: Makefile.tpl
2807# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2808# However, they still use the build modules, because the corresponding
2809# host modules (e.g. bison) are only built for the host when bootstrap
2810# finishes. So:
2811# - build_subdir is where we find build modules, and never changes.
2812# - build_libsubdir is where we find build libraries, and can be overridden.
2813
2814# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2815build_subdir="build-${build_noncanonical}"
1c710c3c 2816
5213506e
RW
2817# Check whether --with-build-libsubdir was given.
2818if test "${with_build_libsubdir+set}" = set; then :
2819 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2820else
2821 build_libsubdir="$build_subdir"
5213506e
RW
2822fi
2823
215c351a
PB
2824# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2825if ( test $srcdir = . && test -d gcc ) \
2826 || test -d $srcdir/../host-${host_noncanonical}; then
2827 host_subdir="host-${host_noncanonical}"
2828else
2829 host_subdir=.
2830fi
8b87bb96
NN
2831# No prefix.
2832target_subdir=${target_noncanonical}
1c710c3c 2833
0db770bd
RW
2834# Be sure to cover against remnants of an in-tree build.
2835if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2836 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2837Use a pristine source tree when building in a separate tree" "$LINENO" 5
2838fi
79c06341 2839
671aa708
NN
2840# Skipdirs are removed silently.
2841skipdirs=
2842# Noconfigdirs are removed loudly.
2843noconfigdirs=""
79c06341 2844
671aa708
NN
2845use_gnu_ld=
2846# Make sure we don't let GNU ld be added if we didn't want it.
2847if test x$with_gnu_ld = xno ; then
2848 use_gnu_ld=no
5afab7ad 2849 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2850fi
2851
671aa708
NN
2852use_gnu_as=
2853# Make sure we don't let GNU as be added if we didn't want it.
2854if test x$with_gnu_as = xno ; then
2855 use_gnu_as=no
2856 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2857fi
2858
d7f09764 2859use_included_zlib=
a05c2c75
L
2860
2861# Check whether --with-system-zlib was given.
2862if test "${with_system_zlib+set}" = set; then :
2863 withval=$with_system_zlib;
2864fi
2865
d7f09764
DN
2866# Make sure we don't let ZLIB be added if we didn't want it.
2867if test x$with_system_zlib = xyes ; then
2868 use_included_zlib=no
2869 noconfigdirs="$noconfigdirs zlib"
2870fi
2871
1c710c3c 2872# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2873# it's not even worth trying to configure, much less build, that tool.
79c06341 2874
671aa708
NN
2875case ${with_x} in
2876 yes | "") ;; # the default value for this tree is that X11 is available
2877 no)
b4f96efe 2878 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2879 # We won't be able to build gdbtk without X.
1c710c3c 2880 enable_gdbtk=no
671aa708
NN
2881 ;;
2882 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2883esac
79c06341 2884
1bcce263 2885# Some are only suitable for cross toolchains.
671aa708
NN
2886# Remove these if host=target.
2887cross_only="target-libgloss target-newlib target-opcodes"
2888
2889case $is_cross_compiler in
2890 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 2891esac
79c06341 2892
671aa708
NN
2893# If both --with-headers and --with-libs are specified, default to
2894# --without-newlib.
ee6a22df
L
2895if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2896 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2897 if test x"${with_newlib}" = x ; then
2898 with_newlib=no
2899 fi
79c06341
JL
2900fi
2901
671aa708
NN
2902# Recognize --with-newlib/--without-newlib.
2903case ${with_newlib} in
2904 no) skipdirs="${skipdirs} target-newlib" ;;
2905 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2906esac
79c06341 2907
85c64bbe
BS
2908# Check whether --enable-as-accelerator-for was given.
2909if test "${enable_as_accelerator_for+set}" = set; then :
4b4f2e35 2910 enableval=$enable_as_accelerator_for;
85c64bbe
BS
2911fi
2912
2913
2914# Check whether --enable-offload-targets was given.
2915if test "${enable_offload_targets+set}" = set; then :
2916 enableval=$enable_offload_targets;
2917 if test x"$enable_offload_targets" = x; then
2918 as_fn_error "no offload targets specified" "$LINENO" 5
2919 fi
2920
2921else
2922 enable_offload_targets=
2923fi
2924
2925
21539e2e
MK
2926# Handle --enable-gold, --enable-ld.
2927# --disable-gold [--enable-ld]
2928# Build only ld. Default option.
9580395f
L
2929# --enable-gold [--enable-ld]
2930# Build both gold and ld. Install gold as "ld.gold", install ld
2931# as "ld.bfd" and "ld".
2932# --enable-gold=default [--enable-ld]
21539e2e
MK
2933# Build both gold and ld. Install gold as "ld.gold" and "ld",
2934# install ld as "ld.bfd".
2935# --enable-gold[=default] --disable-ld
2936# Build only gold, which is then installed as both "ld.gold" and "ld".
2937# --enable-gold --enable-ld=default
9580395f
L
2938# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2939# and ld.bfd).
21539e2e
MK
2940# In other words, ld is default
2941# --enable-gold=default --enable-ld=default
2942# Error.
2943
2944default_ld=
5213506e
RW
2945# Check whether --enable-gold was given.
2946if test "${enable_gold+set}" = set; then :
2947 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
2948else
2949 ENABLE_GOLD=no
5213506e
RW
2950fi
2951
21539e2e
MK
2952case "${ENABLE_GOLD}" in
2953 yes|default)
38e3d868
RM
2954 # Check for ELF target.
2955 is_elf=no
2956 case "${target}" in
2957 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
0e76460f 2958 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a 2959 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
ff4b7a7e 2960 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
38e3d868
RM
2961 case "${target}" in
2962 *-*-linux*aout* | *-*-linux*oldld*)
2963 ;;
2964 *)
2965 is_elf=yes
2966 ;;
2967 esac
2968 esac
2969
2970 if test "$is_elf" = "yes"; then
2971 # Check for target supported by gold.
5afab7ad 2972 case "${target}" in
7705dfd1 2973 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
1b858e76 2974 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
21539e2e
MK
2975 configdirs="$configdirs gold"
2976 if test x${ENABLE_GOLD} = xdefault; then
2977 default_ld=gold
2978 fi
38e3d868 2979 ENABLE_GOLD=yes
5afab7ad
ILT
2980 ;;
2981 esac
38e3d868
RM
2982 fi
2983 ;;
2984 no)
2985 ;;
2986 *)
2987 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2988 ;;
21539e2e
MK
2989esac
2990
2991# Check whether --enable-ld was given.
2992if test "${enable_ld+set}" = set; then :
2993 enableval=$enable_ld; ENABLE_LD=$enableval
2994else
2995 ENABLE_LD=yes
2996fi
2997
2998
2999case "${ENABLE_LD}" in
3000 default)
9580395f 3001 if test x${default_ld} != x; then
21539e2e
MK
3002 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3003 fi
3004 ;;
3005 yes)
3006 ;;
3007 no)
3008 if test x${ENABLE_GOLD} != xyes; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3010$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3011 fi
3012 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3013 ;;
3014 *)
3015 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3016 ;;
3017esac
5afab7ad 3018
78edb32f
L
3019# PR gas/19109
3020# Decide the default method for compressing debug sections.
3021# Provide a configure time option to override our default.
3022# Check whether --enable-compressed_debug_sections was given.
3023if test "${enable_compressed_debug_sections+set}" = set; then :
3024 enableval=$enable_compressed_debug_sections;
3025 if test x"$enable_compressed_debug_sections" = xyes; then
3026 as_fn_error "no program with compressed debug sections specified" "$LINENO" 5
3027 fi
3028
3029else
3030 enable_compressed_debug_sections=
3031fi
3032
3033
671aa708 3034# Configure extra directories which are host specific
79c06341 3035
671aa708
NN
3036case "${host}" in
3037 *-cygwin*)
3038 configdirs="$configdirs libtermcap" ;;
3039esac
79c06341 3040
4fab7234
HPN
3041# A target can indicate whether a language isn't supported for some reason.
3042# Only spaces may be used in this macro; not newlines or tabs.
3043unsupported_languages=
3044
1c710c3c 3045# Remove more programs from consideration, based on the host or
671aa708
NN
3046# target this usually means that a port of the program doesn't
3047# exist yet.
ec8d6ddc 3048
671aa708 3049case "${host}" in
111eeb6e 3050 i[3456789]86-*-msdosdjgpp*)
c9bdb152 3051 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 3052 ;;
671aa708 3053esac
ec8d6ddc 3054
6de9cd9a 3055
87e6d9dc
TB
3056# Check whether --enable-libquadmath was given.
3057if test "${enable_libquadmath+set}" = set; then :
3058 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3059else
3060 ENABLE_LIBQUADMATH=yes
3061fi
3062
3063if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3064 noconfigdirs="$noconfigdirs target-libquadmath"
3065fi
3066
3067
3068# Check whether --enable-libquadmath-support was given.
3069if test "${enable_libquadmath_support+set}" = set; then :
3070 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3071else
3072 ENABLE_LIBQUADMATH_SUPPORT=yes
3073fi
3074
3075enable_libquadmath_support=
3076if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3077 enable_libquadmath_support=no
3078fi
3079
3080
5213506e
RW
3081# Check whether --enable-libada was given.
3082if test "${enable_libada+set}" = set; then :
3083 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3084else
3085 ENABLE_LIBADA=yes
5213506e
RW
3086fi
3087
d9cdb878 3088if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3089 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3090fi
3091
5213506e
RW
3092# Check whether --enable-libssp was given.
3093if test "${enable_libssp+set}" = set; then :
3094 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3095else
3096 ENABLE_LIBSSP=yes
5213506e
RW
3097fi
3098
ef0087a7 3099
1873ec0c
L
3100# Check whether --enable-libstdcxx was given.
3101if test "${enable_libstdcxx+set}" = set; then :
3102 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3103else
3104 ENABLE_LIBSTDCXX=default
3105fi
3106
3107if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1007a55c 3108 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1873ec0c
L
3109fi
3110
5f520819
KY
3111# If this is accelerator compiler and its target is intelmic we enable
3112# target liboffloadmic by default. If this is compiler with offloading
3113# for intelmic we enable host liboffloadmic by default. Otherwise
3114# liboffloadmic is disabled by default.
3115# Check whether --enable-liboffloadmic was given.
3116if test "${enable_liboffloadmic+set}" = set; then :
3117 enableval=$enable_liboffloadmic; case "$enableval" in
3118 no | host | target)
3119 enable_liboffloadmic=$enableval ;;
3120 *)
3121 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3122esac
3123else
4b4f2e35 3124 if test x"$enable_as_accelerator_for" != x; then
5f520819
KY
3125 case "${target}" in
3126 *-intelmic-* | *-intelmicemul-*)
3127 enable_liboffloadmic=target
3128 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3129 ;;
3130 *)
3131 enable_liboffloadmic=no
3132 ;;
3133 esac
3134else
3135 case "${enable_offload_targets}" in
3136 *-intelmic-* | *-intelmicemul-*)
3137 enable_liboffloadmic=host
3138 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3139 ;;
3140 *)
3141 enable_liboffloadmic=no
3142 ;;
3143 esac
3144fi
3145fi
3146
3147
3148
44a7d18d 3149# Enable libgomp by default on hosted POSIX systems, and a few others.
27079765 3150if test x$enable_libgomp = x ; then
953ff289 3151 case "${target}" in
416ac4d4 3152 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3153 ;;
8c6d158a 3154 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3155 ;;
b24513a1 3156 *-*-solaris2* | *-*-hpux11*)
953ff289 3157 ;;
cac90078 3158 *-*-darwin* | *-*-aix*)
953ff289 3159 ;;
44a7d18d
TS
3160 nvptx*-*-*)
3161 ;;
953ff289
DN
3162 *)
3163 noconfigdirs="$noconfigdirs target-libgomp"
3164 ;;
3165 esac
27079765 3166fi
953ff289 3167
48310492
RH
3168# Disable libatomic on unsupported systems.
3169if test -d ${srcdir}/libatomic; then
3170 if test x$enable_libatomic = x; then
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3172$as_echo_n "checking for libatomic support... " >&6; }
3173 if (srcdir=${srcdir}/libatomic; \
3174 . ${srcdir}/configure.tgt; \
3175 test -n "$UNSUPPORTED")
3176 then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178$as_echo "no" >&6; }
3179 noconfigdirs="$noconfigdirs target-libatomic"
3180 else
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3182$as_echo "yes" >&6; }
3183 fi
3184 fi
3185fi
3186
3038054c
BI
3187# Disable libcilkrts on unsupported systems.
3188if test -d ${srcdir}/libcilkrts; then
3189 if test x$enable_libcilkrts = x; then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3191$as_echo_n "checking for libcilkrts support... " >&6; }
3192 if (srcdir=${srcdir}/libcilkrts; \
3193 . ${srcdir}/configure.tgt; \
3194 test -n "$UNSUPPORTED")
3195 then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197$as_echo "no" >&6; }
3198 noconfigdirs="$noconfigdirs target-libcilkrts"
3199 else
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3201$as_echo "yes" >&6; }
3202 fi
3203 fi
3204fi
3205
5f520819
KY
3206# Disable liboffloadmic on unsupported systems.
3207if test -d ${srcdir}/liboffloadmic; then
3208 if test x$enable_liboffloadmic != xno; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3210$as_echo_n "checking for liboffloadmic support... " >&6; }
3211 if (srcdir=${srcdir}/liboffloadmic; \
3212 . ${srcdir}/configure.tgt; \
3213 test -n "$UNSUPPORTED")
3214 then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216$as_echo "no" >&6; }
3217 noconfigdirs="$noconfigdirs target-liboffloadmic"
3218 else
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3220$as_echo "yes" >&6; }
3221 fi
3222 fi
3223fi
3224
e948157d
RH
3225# Disable libitm on unsupported systems.
3226if test -d ${srcdir}/libitm; then
3227 if test x$enable_libitm = x; then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
01f3428c 3229$as_echo_n "checking for libitm support... " >&6; }
e948157d
RH
3230 if (srcdir=${srcdir}/libitm; \
3231 . ${srcdir}/configure.tgt; \
3232 test -n "$UNSUPPORTED")
3233 then
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
01f3428c 3235$as_echo "no" >&6; }
e948157d
RH
3236 noconfigdirs="$noconfigdirs target-libitm"
3237 else
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
01f3428c 3239$as_echo "yes" >&6; }
e948157d
RH
3240 fi
3241 fi
0a35513e
AH
3242fi
3243
93bf5390
RH
3244# Disable libsanitizer on unsupported systems.
3245if test -d ${srcdir}/libsanitizer; then
3246 if test x$enable_libsanitizer = x; then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3248$as_echo_n "checking for libsanitizer support... " >&6; }
3249 if (srcdir=${srcdir}/libsanitizer; \
3250 . ${srcdir}/configure.tgt; \
3251 test -n "$UNSUPPORTED")
3252 then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254$as_echo "no" >&6; }
3255 noconfigdirs="$noconfigdirs target-libsanitizer"
3256 else
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3258$as_echo "yes" >&6; }
3259 fi
3260 fi
3261fi
3262
2077db1b
CT
3263# Disable libvtv on unsupported systems.
3264if test -d ${srcdir}/libvtv; then
3265 if test x$enable_libvtv = x; then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3267$as_echo_n "checking for libvtv support... " >&6; }
3268 if (srcdir=${srcdir}/libvtv; \
3269 . ${srcdir}/configure.tgt; \
1e74b850 3270 test "$VTV_SUPPORTED" != "yes")
2077db1b
CT
3271 then
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273$as_echo "no" >&6; }
3274 noconfigdirs="$noconfigdirs target-libvtv"
3275 else
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3277$as_echo "yes" >&6; }
3278 fi
3279 fi
3280fi
3281
5373cd33
IE
3282
3283# Enable libmpx on supported systems by request.
3284if test -d ${srcdir}/libmpx; then
54985c70 3285 if test x$enable_libmpx = x; then
5373cd33
IE
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3287$as_echo_n "checking for libmpx support... " >&6; }
3288 if (srcdir=${srcdir}/libmpx; \
3289 . ${srcdir}/configure.tgt; \
3290 test "$LIBMPX_SUPPORTED" != "yes")
3291 then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293$as_echo "no" >&6; }
3294 noconfigdirs="$noconfigdirs target-libmpx"
3295 else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3297$as_echo "yes" >&6; }
3298 fi
5373cd33
IE
3299 fi
3300fi
3301
3302
3303
d91491e5
SE
3304# Disable libquadmath for some systems.
3305case "${target}" in
e7fae550
DE
3306 avr-*-*)
3307 noconfigdirs="$noconfigdirs target-libquadmath"
3308 ;;
d91491e5
SE
3309 # libquadmath is unused on AIX and libquadmath build process use of
3310 # LD_LIBRARY_PATH can break AIX bootstrap.
3311 powerpc-*-aix* | rs6000-*-aix*)
3312 noconfigdirs="$noconfigdirs target-libquadmath"
3313 ;;
3314esac
3315
1e9e0e23
JM
3316# Disable libssp for some systems.
3317case "${target}" in
3318 avr-*-*)
b318fb4b 3319 # No hosted I/O support.
1e9e0e23
JM
3320 noconfigdirs="$noconfigdirs target-libssp"
3321 ;;
3322 powerpc-*-aix* | rs6000-*-aix*)
3323 noconfigdirs="$noconfigdirs target-libssp"
85b8555e
DD
3324 ;;
3325 rl78-*-*)
7cb62ef1
EB
3326 # libssp uses a misaligned load to trigger a fault, but the RL78
3327 # doesn't fault for those - instead, it gives a build-time error
3328 # for explicit misaligned loads.
85b8555e 3329 noconfigdirs="$noconfigdirs target-libssp"
1e9e0e23 3330 ;;
0969ec7d
EB
3331 visium-*-*)
3332 # No hosted I/O support.
3333 noconfigdirs="$noconfigdirs target-libssp"
3334 ;;
1e9e0e23
JM
3335esac
3336
1e9e0e23 3337# Disable libstdc++-v3 for some systems.
1873ec0c
L
3338# Allow user to override this if they pass --enable-libstdc++-v3
3339if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3340 case "${target}" in
3341 *-*-vxworks*)
3342 # VxWorks uses the Dinkumware C++ library.
3343 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3344 ;;
3345 arm*-wince-pe*)
3346 # the C++ libraries don't build on top of CE's C libraries
3347 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3348 ;;
3349 avr-*-*)
3350 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3351 ;;
fef939d6
JB
3352 ft32-*-*)
3353 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3354 ;;
1873ec0c
L
3355 esac
3356fi
1e9e0e23
JM
3357
3358# Disable Fortran for some systems.
3359case "${target}" in
3360 mmix-*-*)
3361 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3362 unsupported_languages="$unsupported_languages fortran"
3363 ;;
3364esac
3365
012447ea
JJ
3366# Disable libffi for some systems.
3367case "${target}" in
3368 powerpc-*-darwin*)
3369 ;;
3370 i[3456789]86-*-darwin*)
3371 ;;
3372 x86_64-*-darwin[912]*)
3373 ;;
3374 *-*-darwin*)
3375 noconfigdirs="$noconfigdirs target-libffi"
3376 ;;
3377 *-*-netware*)
3378 noconfigdirs="$noconfigdirs target-libffi"
3379 ;;
3380 *-*-phoenix*)
3381 noconfigdirs="$noconfigdirs target-libffi"
3382 ;;
3383 *-*-rtems*)
3384 noconfigdirs="$noconfigdirs target-libffi"
3385 ;;
3386 *-*-tpf*)
3387 noconfigdirs="$noconfigdirs target-libffi"
3388 ;;
3389 *-*-uclinux*)
3390 noconfigdirs="$noconfigdirs target-libffi"
3391 ;;
3392 *-*-vxworks*)
3393 noconfigdirs="$noconfigdirs target-libffi"
3394 ;;
b20e7532
AT
3395 aarch64*-*-freebsd*)
3396 noconfigdirs="$noconfigdirs target-libffi"
3397 ;;
012447ea
JJ
3398 alpha*-*-*vms*)
3399 noconfigdirs="$noconfigdirs target-libffi"
3400 ;;
3401 arm*-*-freebsd*)
3402 noconfigdirs="$noconfigdirs target-libffi"
3403 ;;
3404 arm-wince-pe)
3405 noconfigdirs="$noconfigdirs target-libffi"
3406 ;;
3407 arm*-*-symbianelf*)
3408 noconfigdirs="$noconfigdirs target-libffi"
3409 ;;
3410 cris-*-* | crisv32-*-*)
3411 case "${target}" in
3412 *-*-linux*)
3413 ;;
3414 *) # See PR46792 regarding target-libffi.
3415 noconfigdirs="$noconfigdirs target-libffi";;
3416 esac
3417 ;;
3418 hppa*64*-*-hpux*)
3419 noconfigdirs="$noconfigdirs target-libffi"
3420 ;;
3421 hppa*-hp-hpux11*)
3422 ;;
3423 hppa*-*-hpux*)
3424 noconfigdirs="$noconfigdirs target-libffi"
3425 ;;
3426 ia64*-*-*vms*)
3427 noconfigdirs="$noconfigdirs target-libffi"
3428 ;;
3429 i[3456789]86-w64-mingw*)
3430 noconfigdirs="$noconfigdirs target-libffi"
3431 ;;
3432 i[3456789]86-*-mingw*)
3433 noconfigdirs="$noconfigdirs target-libffi"
3434 ;;
3435 x86_64-*-mingw*)
3436 noconfigdirs="$noconfigdirs target-libffi"
3437 ;;
3438 mmix-*-*)
3439 noconfigdirs="$noconfigdirs target-libffi"
3440 ;;
3441 powerpc-*-aix*)
3442 # copied from rs6000-*-* entry
3443 noconfigdirs="$noconfigdirs target-libffi"
3444 ;;
3445 rs6000-*-aix*)
3446 noconfigdirs="$noconfigdirs target-libffi"
3447 ;;
3448 ft32-*-*)
3449 noconfigdirs="$noconfigdirs target-libffi"
3450 ;;
3451 *-*-lynxos*)
3452 noconfigdirs="$noconfigdirs target-libffi"
3453 ;;
3454esac
3455
3456# Disable the go frontend on systems where it is known to not work. Please keep
3457# this in sync with contrib/config-list.mk.
3458case "${target}" in
3459*-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3460 unsupported_languages="$unsupported_languages go"
3461 ;;
3462esac
3463
cdbc9e92
ILT
3464# Disable libgo for some systems where it is known to not work.
3465# For testing, you can easily override this with --enable-libgo.
3466if test x$enable_libgo = x; then
3467 case "${target}" in
3468 *-*-darwin*)
3469 # PR 46986
3470 noconfigdirs="$noconfigdirs target-libgo"
3471 ;;
3472 *-*-cygwin* | *-*-mingw*)
3473 noconfigdirs="$noconfigdirs target-libgo"
3474 ;;
3475 *-*-aix*)
3476 noconfigdirs="$noconfigdirs target-libgo"
3477 ;;
3478 esac
3479fi
3480
c03353e2
RIL
3481# Default libgloss CPU subdirectory.
3482libgloss_dir="$target_cpu"
6de9cd9a 3483
fbcf0dca
JM
3484case "${target}" in
3485 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3486 libgloss_dir=wince
3487 ;;
4dddfc74
YZ
3488 aarch64*-*-* )
3489 libgloss_dir=aarch64
3490 ;;
fbcf0dca
JM
3491 arm*-*-*)
3492 libgloss_dir=arm
3493 ;;
3494 cris-*-* | crisv32-*-*)
3495 libgloss_dir=cris
3496 ;;
3497 hppa*-*-*)
3498 libgloss_dir=pa
3499 ;;
3500 i[3456789]86-*-*)
3501 libgloss_dir=i386
3502 ;;
3503 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3504 libgloss_dir=m68hc11
3505 ;;
3506 m68*-*-* | fido-*-*)
3507 libgloss_dir=m68k
3508 ;;
3509 mips*-*-*)
3510 libgloss_dir=mips
3511 ;;
3512 powerpc*-*-*)
3513 libgloss_dir=rs6000
3514 ;;
3515 sparc*-*-*)
3516 libgloss_dir=sparc
3517 ;;
3518esac
3519
6a789d5e 3520# Disable newlib and libgloss for various target OSes.
671aa708 3521case "${target}" in
6a789d5e
JM
3522 alpha*-dec-osf*)
3523 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3524 ;;
3525 i[3456789]86-*-linux*)
3526 # This section makes it possible to build newlib natively on linux.
3527 # If we are using a cross compiler then don't configure newlib.
3528 if test x${is_cross_compiler} != xno ; then
3529 noconfigdirs="$noconfigdirs target-newlib"
3530 fi
3531 noconfigdirs="$noconfigdirs target-libgloss"
3532 # If we are not using a cross compiler, do configure newlib.
3533 # Note however, that newlib will only be configured in this situation
3534 # if the --with-newlib option has been given, because otherwise
3535 # 'target-newlib' will appear in skipdirs.
3536 ;;
3537 i[3456789]86-*-rdos*)
3538 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3539 ;;
3540 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3541 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3542 ;;
3543 sparc-*-sunos4*)
3544 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3545 ;;
3546 *-*-aix*)
3547 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3548 ;;
3549 *-*-beos*)
3550 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3551 ;;
671aa708 3552 *-*-chorusos)
0036370f 3553 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3554 ;;
6a789d5e
JM
3555 *-*-dragonfly*)
3556 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3557 ;;
3558 *-*-freebsd*)
3559 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3560 ;;
3561 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3562 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3563 ;;
3564 *-*-lynxos*)
3565 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3566 ;;
3567 *-*-mingw*)
3568 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3569 ;;
3570 *-*-netbsd*)
3571 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3572 ;;
3573 *-*-netware*)
3574 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3575 ;;
3576 *-*-tpf*)
3577 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3578 ;;
3579 *-*-uclinux*)
3580 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3581 ;;
3582 *-*-vxworks*)
3583 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3584 ;;
3585esac
3586
3587case "${target}" in
3588 *-*-chorusos)
3589 ;;
3be96231
TG
3590 aarch64-*-darwin*)
3591 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3592 noconfigdirs="$noconfigdirs sim target-rda"
3593 ;;
3594 arm-*-darwin*)
3595 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3596 noconfigdirs="$noconfigdirs sim target-rda"
3597 ;;
75eeae1a 3598 powerpc-*-darwin*)
e1514c3f 3599 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3600 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3601 ;;
354ebf88
RW
3602 i[3456789]86-*-darwin*)
3603 noconfigdirs="$noconfigdirs ld gprof"
3604 noconfigdirs="$noconfigdirs sim target-rda"
3605 ;;
3606 x86_64-*-darwin[912]*)
0db3a858
TG
3607 noconfigdirs="$noconfigdirs ld gas gprof"
3608 noconfigdirs="$noconfigdirs sim target-rda"
3609 ;;
42c1cd8a
AT
3610 *-*-darwin*)
3611 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3612 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3613 ;;
8c6d158a 3614 *-*-dragonfly*)
8c6d158a 3615 ;;
c3f84f61 3616 *-*-freebsd*)
6de9cd9a
DN
3617 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3618 && test -f /usr/local/include/gmp.h; then
3619 with_gmp=/usr/local
3620 fi
6de9cd9a 3621 ;;
ef4e7569
US
3622 *-*-kaos*)
3623 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3624 noconfigdirs="$noconfigdirs target-libgloss"
3625 ;;
671aa708 3626 *-*-netbsd*)
671aa708 3627 ;;
61fec9ff 3628 *-*-netware*)
671aa708 3629 ;;
fd6487af
JS
3630 *-*-phoenix*)
3631 noconfigdirs="$noconfigdirs target-libgloss"
3632 ;;
671aa708 3633 *-*-rtems*)
2909494b 3634 noconfigdirs="$noconfigdirs target-libgloss"
d896cc4d
JBG
3635 # this is not caught below because this stanza matches earlier
3636 case $target in
3637 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3638 esac
671aa708 3639 ;;
a8ba31f2
EC
3640 # The tpf target doesn't support gdb yet.
3641 *-*-tpf*)
6a789d5e 3642 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3643 ;;
5785c0ed 3644 *-*-uclinux*)
6a789d5e 3645 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3646 ;;
671aa708 3647 *-*-vxworks*)
671aa708
NN
3648 ;;
3649 alpha*-dec-osf*)
3650 # ld works, but does not support shared libraries.
671aa708 3651 # gas doesn't generate exception information.
6a789d5e 3652 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3653 ;;
3654 alpha*-*-*vms*)
2909494b 3655 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3656 ;;
671aa708
NN
3657 alpha*-*-*)
3658 # newlib is not 64 bit ready
2909494b 3659 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3660 ;;
671aa708 3661 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3662 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708 3663 ;;
2fd88f4f
AK
3664 arc*-*-*)
3665 noconfigdirs="$noconfigdirs sim"
3666 ;;
671aa708 3667 arm-*-pe*)
2909494b 3668 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3669 ;;
671aa708 3670 arm-*-riscix*)
0036370f 3671 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3672 ;;
b588ae30
GJL
3673 avr-*-*)
3674 if test x${with_avrlibc} != xno; then
3675 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3676 fi
3677 ;;
671aa708 3678 c4x-*-* | tic4x-*-*)
0036370f 3679 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3680 ;;
0036370f
JM
3681 tic54x-*-*)
3682 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3683 ;;
671aa708 3684 d10v-*-*)
0036370f 3685 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3686 ;;
3687 d30v-*-*)
0036370f 3688 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3689 ;;
3690 fr30-*-elf*)
2909494b 3691 noconfigdirs="$noconfigdirs gdb"
671aa708 3692 ;;
a05c2c75
L
3693 ft32-*-*)
3694 noconfigdirs="$noconfigdirs target-rda gprof"
3695 ;;
55f2d967 3696 moxie-*-*)
a05c2c75 3697 noconfigdirs="$noconfigdirs"
55f2d967 3698 ;;
671aa708 3699 h8300*-*-*)
2909494b 3700 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3701 ;;
3702 h8500-*-*)
0036370f 3703 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3704 ;;
ee6a22df 3705 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3706 ;;
a05c2c75
L
3707 hppa*64*-*-hpux*)
3708 noconfigdirs="$noconfigdirs gdb"
3709 ;;
3710 hppa*-*-hpux11*)
3711 noconfigdirs="$noconfigdirs gdb ld"
3712 ;;
4569f85e 3713 hppa*64*-*-linux*)
671aa708 3714 ;;
56f8587a 3715 hppa*-*-linux*)
3e732ba0 3716 ;;
671aa708 3717 hppa*-*-*elf* | \
671aa708
NN
3718 hppa*-*-lites* | \
3719 hppa*-*-openbsd* | \
3720 hppa*64*-*-*)
671aa708 3721 ;;
c03353e2 3722 hppa*-*-pro*)
c03353e2 3723 ;;
671aa708 3724 hppa*-*-*)
2909494b 3725 noconfigdirs="$noconfigdirs ld"
671aa708 3726 ;;
fb87ad5d 3727 i960-*-*)
0036370f 3728 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3729 ;;
671aa708
NN
3730 ia64*-*-elf*)
3731 # No gdb support yet.
1bcce263 3732 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3733 ;;
3734 ia64*-**-hpux*)
5a2931d1 3735 # No ld support yet.
a05c2c75 3736 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
671aa708 3737 ;;
52535a64 3738 ia64*-*-*vms*)
091fe9ca
TG
3739 # No ld support yet.
3740 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3741 ;;
ef4c4300 3742 i[3456789]86-w64-mingw*)
ef4c4300
KT
3743 ;;
3744 i[3456789]86-*-mingw*)
b91f0a41 3745 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3746 ;;
671aa708
NN
3747 *-*-cygwin*)
3748 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3749 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3750 # always build newlib if winsup directory is present.
b91f0a41 3751 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3752 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3753 elif test -d "$srcdir/newlib"; then
b91f0a41 3754 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3755 fi
1c710c3c 3756 ;;
f2a0e225 3757 i[3456789]86-*-pe)
ebb9f8b0 3758 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3759 ;;
f2a0e225 3760 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3761 # The linker does not yet know about weak symbols in COFF,
3762 # and is not configured to handle mixed ELF and COFF.
0036370f 3763 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3764 ;;
f2a0e225 3765 i[3456789]86-*-sco*)
0036370f 3766 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3767 ;;
fbdd5d87 3768 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3769 noconfigdirs="$noconfigdirs target-libgloss"
3770 ;;
f2a0e225 3771 i[3456789]86-*-sysv4*)
0036370f 3772 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3773 ;;
f2a0e225 3774 i[3456789]86-*-beos*)
6a789d5e 3775 noconfigdirs="$noconfigdirs gdb"
3aa83176 3776 ;;
d1f8db0c 3777 i[3456789]86-*-rdos*)
6a789d5e 3778 noconfigdirs="$noconfigdirs gdb"
c03353e2 3779 ;;
671aa708 3780 mmix-*-*)
2909494b 3781 noconfigdirs="$noconfigdirs gdb"
671aa708 3782 ;;
ab34901f 3783 mt-*-*)
79dd769c
AH
3784 noconfigdirs="$noconfigdirs sim"
3785 ;;
671aa708
NN
3786 powerpc-*-aix*)
3787 # copied from rs6000-*-* entry
6a789d5e 3788 noconfigdirs="$noconfigdirs gprof"
671aa708 3789 ;;
4569f85e 3790 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3791 target_configdirs="$target_configdirs target-winsup"
0036370f 3792 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3793 # always build newlib.
3794 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3795 ;;
3796 # This is temporary until we can link against shared libraries
3797 powerpcle-*-solaris*)
0036370f 3798 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3799 ;;
3800 powerpc-*-beos*)
6a789d5e 3801 noconfigdirs="$noconfigdirs gdb"
671aa708 3802 ;;
671aa708 3803 rs6000-*-lynxos*)
6a789d5e 3804 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3805 ;;
3806 rs6000-*-aix*)
6a789d5e 3807 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3808 ;;
3809 rs6000-*-*)
2909494b 3810 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3811 ;;
3812 m68k-apollo-*)
0036370f 3813 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3814 ;;
ca9fe997 3815 microblaze*)
2909494b 3816 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3817 ;;
d896cc4d 3818 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
d9dced13
RS
3819 if test x$with_newlib = xyes; then
3820 noconfigdirs="$noconfigdirs gprof"
3821 fi
d9dced13 3822 ;;
671aa708 3823 mips*-*-irix5*)
0036370f 3824 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3825 ;;
3826 mips*-*-irix6*)
2909494b 3827 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3828 ;;
671aa708 3829 mips*-*-bsd*)
bc98bcc4 3830 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
671aa708 3831 ;;
671aa708 3832 mips*-*-linux*)
671aa708 3833 ;;
bc98bcc4
JBG
3834 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3835 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3836 noconfigdirs="$noconfigdirs ld gas gprof"
3837 ;;
671aa708 3838 mips*-*-*)
2909494b 3839 noconfigdirs="$noconfigdirs gprof"
671aa708 3840 ;;
738f2522 3841 nvptx*-*-*)
738f2522
BS
3842 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3843 ;;
d896cc4d
JBG
3844 or1k*-*-*)
3845 noconfigdirs="$noconfigdirs gdb"
3846 ;;
bc6d9014 3847 sh-*-*)
ea2002ba
CB
3848 case "${target}" in
3849 sh*-*-elf)
2909494b 3850 ;;
ea2002ba 3851 *)
2909494b 3852 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 3853 esac
671aa708 3854 ;;
671aa708 3855 sparc-*-sunos4*)
6a789d5e 3856 if test x${is_cross_compiler} = xno ; then
671aa708
NN
3857 use_gnu_ld=no
3858 fi
3859 ;;
b42f0d7e 3860 tic6x-*-*)
0d557ff8 3861 noconfigdirs="$noconfigdirs sim"
b42f0d7e 3862 ;;
341c653c 3863 tilepro*-*-* | tilegx*-*-*)
db1d217c
WL
3864 noconfigdirs="$noconfigdirs sim"
3865 ;;
671aa708 3866 v810-*-*)
0036370f 3867 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
3868 ;;
3869 vax-*-*)
2909494b 3870 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3871 ;;
671aa708 3872esac
79c06341 3873
671aa708
NN
3874# If we aren't building newlib, then don't build libgloss, since libgloss
3875# depends upon some newlib header files.
3876case "${noconfigdirs}" in
3877 *target-libgloss*) ;;
3878 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3879esac
3880
671aa708 3881# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
3882host_makefile_frag=/dev/null
3883if test -d ${srcdir}/config ; then
3884case "${host}" in
f2a0e225 3885 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
3886 host_makefile_frag="config/mh-djgpp"
3887 ;;
3888 *-cygwin*)
2a79c47f 3889
5213506e
RW
3890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3891$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 3892echo a >cygwin-cat-check
e25a8c82 3893if test `cat cygwin-cat-check` = a ; then
2a79c47f 3894 rm cygwin-cat-check
5213506e
RW
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3896$as_echo "yes" >&6; }
2a79c47f
NC
3897else
3898 rm cygwin-cat-check
5213506e
RW
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900$as_echo "no" >&6; }
3901 as_fn_error "The cat command does not ignore carriage return characters.
2a79c47f
NC
3902 Please either mount the build directory in binary mode or run the following
3903 commands before running any configure script:
3904set -o igncr
3905export SHELLOPTS
5213506e 3906 " "$LINENO" 5
2a79c47f
NC
3907fi
3908
671aa708
NN
3909 host_makefile_frag="config/mh-cygwin"
3910 ;;
c53a18d3 3911 *-mingw*)
1f5a6b84 3912 host_makefile_frag="config/mh-mingw"
95af8923 3913 ;;
cabb9d59 3914 alpha*-linux*)
13be44ed
UB
3915 host_makefile_frag="config/mh-alpha-linux"
3916 ;;
efd41714 3917 hppa*-hp-hpux10*)
efd41714 3918 host_makefile_frag="config/mh-pa-hpux10"
671aa708 3919 ;;
111eeb6e 3920 hppa*-hp-hpux*)
efd41714
PB
3921 host_makefile_frag="config/mh-pa"
3922 ;;
3923 hppa*-*)
3924 host_makefile_frag="config/mh-pa"
3925 ;;
d8ed14ce
IS
3926 *-*-darwin*)
3927 host_makefile_frag="config/mh-darwin"
be8fff81 3928 ;;
d19bca38
PB
3929 powerpc-*-aix*)
3930 host_makefile_frag="config/mh-ppc-aix"
3931 ;;
3932 rs6000-*-aix*)
3933 host_makefile_frag="config/mh-ppc-aix"
3934 ;;
671aa708
NN
3935esac
3936fi
3937
55ffb5ed 3938if test "${build}" != "${host}" ; then
0999159b
PB
3939 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3940 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 3941 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b 3942 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
0999159b 3943 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 3944 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
0999159b
PB
3945 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3946 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3947 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3948 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3949 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3950 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3951else
3952 AR_FOR_BUILD="\$(AR)"
3953 AS_FOR_BUILD="\$(AS)"
fb0103e5 3954 CC_FOR_BUILD="\$(CC)"
0999159b 3955 CXX_FOR_BUILD="\$(CXX)"
0999159b 3956 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 3957 GOC_FOR_BUILD="\$(GOC)"
0999159b
PB
3958 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3959 LD_FOR_BUILD="\$(LD)"
3960 NM_FOR_BUILD="\$(NM)"
3961 RANLIB_FOR_BUILD="\$(RANLIB)"
3962 WINDRES_FOR_BUILD="\$(WINDRES)"
3963 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
3964fi
3965
3966ac_ext=c
1c710c3c
DJ
3967ac_cpp='$CPP $CPPFLAGS'
3968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3970ac_compiler_gnu=$ac_cv_c_compiler_gnu
3971if test -n "$ac_tool_prefix"; then
3972 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3973set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3975$as_echo_n "checking for $ac_word... " >&6; }
3976if test "${ac_cv_prog_CC+set}" = set; then :
3977 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3978else
3979 if test -n "$CC"; then
3980 ac_cv_prog_CC="$CC" # Let the user override the test.
3981else
3982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983for as_dir in $PATH
3984do
3985 IFS=$as_save_IFS
3986 test -z "$as_dir" && as_dir=.
5213506e
RW
3987 for ac_exec_ext in '' $ac_executable_extensions; do
3988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3989 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3991 break 2
3992 fi
3993done
5213506e
RW
3994 done
3995IFS=$as_save_IFS
1c710c3c
DJ
3996
3997fi
3998fi
3999CC=$ac_cv_prog_CC
4000if test -n "$CC"; then
5213506e
RW
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4002$as_echo "$CC" >&6; }
1c710c3c 4003else
5213506e
RW
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4005$as_echo "no" >&6; }
1c710c3c
DJ
4006fi
4007
5213506e 4008
1c710c3c
DJ
4009fi
4010if test -z "$ac_cv_prog_CC"; then
4011 ac_ct_CC=$CC
fb0103e5
RG
4012 # Extract the first word of "gcc", so it can be a program name with args.
4013set dummy gcc; ac_word=$2
5213506e
RW
4014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4015$as_echo_n "checking for $ac_word... " >&6; }
4016if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4017 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4018else
4019 if test -n "$ac_ct_CC"; then
4020 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4021else
4022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023for as_dir in $PATH
4024do
4025 IFS=$as_save_IFS
4026 test -z "$as_dir" && as_dir=.
5213506e
RW
4027 for ac_exec_ext in '' $ac_executable_extensions; do
4028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4029 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4031 break 2
4032 fi
4033done
5213506e
RW
4034 done
4035IFS=$as_save_IFS
1c710c3c
DJ
4036
4037fi
4038fi
4039ac_ct_CC=$ac_cv_prog_ac_ct_CC
4040if test -n "$ac_ct_CC"; then
5213506e
RW
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4042$as_echo "$ac_ct_CC" >&6; }
1c710c3c 4043else
5213506e
RW
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4045$as_echo "no" >&6; }
1c710c3c
DJ
4046fi
4047
5213506e
RW
4048 if test "x$ac_ct_CC" = x; then
4049 CC=""
4050 else
4051 case $cross_compiling:$ac_tool_warned in
4052yes:)
4053{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4054$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4055ac_tool_warned=yes ;;
4056esac
4057 CC=$ac_ct_CC
4058 fi
1c710c3c
DJ
4059else
4060 CC="$ac_cv_prog_CC"
4061fi
4062
4063if test -z "$CC"; then
5213506e
RW
4064 if test -n "$ac_tool_prefix"; then
4065 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4066set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4068$as_echo_n "checking for $ac_word... " >&6; }
4069if test "${ac_cv_prog_CC+set}" = set; then :
4070 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4071else
4072 if test -n "$CC"; then
4073 ac_cv_prog_CC="$CC" # Let the user override the test.
4074else
1c710c3c
DJ
4075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076for as_dir in $PATH
4077do
4078 IFS=$as_save_IFS
4079 test -z "$as_dir" && as_dir=.
5213506e
RW
4080 for ac_exec_ext in '' $ac_executable_extensions; do
4081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4082 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4084 break 2
4085 fi
4086done
5213506e
RW
4087 done
4088IFS=$as_save_IFS
1c710c3c 4089
0b0dc272 4090fi
0b0dc272 4091fi
1c710c3c 4092CC=$ac_cv_prog_CC
af71363e 4093if test -n "$CC"; then
5213506e
RW
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4095$as_echo "$CC" >&6; }
2aeb72e9 4096else
5213506e
RW
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4098$as_echo "no" >&6; }
2aeb72e9
DD
4099fi
4100
2aeb72e9 4101
5213506e 4102 fi
1c710c3c 4103fi
55ffb5ed
NN
4104if test -z "$CC"; then
4105 # Extract the first word of "cc", so it can be a program name with args.
4106set dummy cc; ac_word=$2
5213506e
RW
4107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4108$as_echo_n "checking for $ac_word... " >&6; }
4109if test "${ac_cv_prog_CC+set}" = set; then :
4110 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4111else
4112 if test -n "$CC"; then
4113 ac_cv_prog_CC="$CC" # Let the user override the test.
4114else
0b0dc272 4115 ac_prog_rejected=no
1c710c3c
DJ
4116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117for as_dir in $PATH
4118do
4119 IFS=$as_save_IFS
4120 test -z "$as_dir" && as_dir=.
5213506e
RW
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
4123 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4124 ac_prog_rejected=yes
4125 continue
4126 fi
4127 ac_cv_prog_CC="cc"
5213506e 4128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4129 break 2
4130 fi
4131done
5213506e
RW
4132 done
4133IFS=$as_save_IFS
1c710c3c 4134
55ffb5ed
NN
4135if test $ac_prog_rejected = yes; then
4136 # We found a bogon in the path, so make sure we never use it.
4137 set dummy $ac_cv_prog_CC
4138 shift
1c710c3c 4139 if test $# != 0; then
55ffb5ed
NN
4140 # We chose a different compiler from the bogus one.
4141 # However, it has the same basename, so the bogon will be chosen
4142 # first if we set CC to just the basename; use the full file name.
4143 shift
1c710c3c 4144 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4145 fi
4146fi
4147fi
4148fi
1c710c3c 4149CC=$ac_cv_prog_CC
55ffb5ed 4150if test -n "$CC"; then
5213506e
RW
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4152$as_echo "$CC" >&6; }
55ffb5ed 4153else
5213506e
RW
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4155$as_echo "no" >&6; }
55ffb5ed
NN
4156fi
4157
5213506e 4158
1c710c3c
DJ
4159fi
4160if test -z "$CC"; then
4161 if test -n "$ac_tool_prefix"; then
5213506e 4162 for ac_prog in cl.exe
1c710c3c
DJ
4163 do
4164 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4165set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4167$as_echo_n "checking for $ac_word... " >&6; }
4168if test "${ac_cv_prog_CC+set}" = set; then :
4169 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4170else
4171 if test -n "$CC"; then
4172 ac_cv_prog_CC="$CC" # Let the user override the test.
4173else
1c710c3c
DJ
4174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175for as_dir in $PATH
4176do
4177 IFS=$as_save_IFS
4178 test -z "$as_dir" && as_dir=.
5213506e
RW
4179 for ac_exec_ext in '' $ac_executable_extensions; do
4180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4181 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4183 break 2
4184 fi
4185done
5213506e
RW
4186 done
4187IFS=$as_save_IFS
1c710c3c 4188
55ffb5ed
NN
4189fi
4190fi
1c710c3c 4191CC=$ac_cv_prog_CC
55ffb5ed 4192if test -n "$CC"; then
5213506e
RW
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4194$as_echo "$CC" >&6; }
a4b9e93e 4195else
5213506e
RW
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4197$as_echo "no" >&6; }
fb0103e5 4198fi
af71363e 4199
5213506e 4200
1c710c3c
DJ
4201 test -n "$CC" && break
4202 done
af71363e 4203fi
1c710c3c
DJ
4204if test -z "$CC"; then
4205 ac_ct_CC=$CC
5213506e 4206 for ac_prog in cl.exe
1c710c3c
DJ
4207do
4208 # Extract the first word of "$ac_prog", so it can be a program name with args.
4209set dummy $ac_prog; ac_word=$2
5213506e
RW
4210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4211$as_echo_n "checking for $ac_word... " >&6; }
4212if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4213 $as_echo_n "(cached) " >&6
0b0dc272 4214else
1c710c3c
DJ
4215 if test -n "$ac_ct_CC"; then
4216 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4217else
1c710c3c
DJ
4218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219for as_dir in $PATH
4220do
4221 IFS=$as_save_IFS
4222 test -z "$as_dir" && as_dir=.
5213506e
RW
4223 for ac_exec_ext in '' $ac_executable_extensions; do
4224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4225 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4227 break 2
4228 fi
4229done
5213506e
RW
4230 done
4231IFS=$as_save_IFS
1c710c3c 4232
af71363e
AS
4233fi
4234fi
1c710c3c
DJ
4235ac_ct_CC=$ac_cv_prog_ac_ct_CC
4236if test -n "$ac_ct_CC"; then
5213506e
RW
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4238$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4239else
5213506e
RW
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4241$as_echo "no" >&6; }
af71363e 4242fi
0b0dc272 4243
5213506e 4244
1c710c3c
DJ
4245 test -n "$ac_ct_CC" && break
4246done
4247
5213506e
RW
4248 if test "x$ac_ct_CC" = x; then
4249 CC=""
4250 else
4251 case $cross_compiling:$ac_tool_warned in
4252yes:)
4253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4255ac_tool_warned=yes ;;
4256esac
4257 CC=$ac_ct_CC
4258 fi
1c710c3c
DJ
4259fi
4260
4261fi
4262
4263
5213506e
RW
4264test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4265$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4266as_fn_error "no acceptable C compiler found in \$PATH
4267See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4268
4269# Provide some information about the compiler.
5213506e
RW
4270$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4271set X $ac_compile
4272ac_compiler=$2
4273for ac_option in --version -v -V -qversion; do
4274 { { ac_try="$ac_compiler $ac_option >&5"
4275case "(($ac_try" in
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4278esac
4279eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4280$as_echo "$ac_try_echo"; } >&5
4281 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4282 ac_status=$?
5213506e
RW
4283 if test -s conftest.err; then
4284 sed '10a\
4285... rest of stderr output deleted ...
4286 10q' conftest.err >conftest.er1
4287 cat conftest.er1 >&5
4288 rm -f conftest.er1 conftest.err
4289 fi
4290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291 test $ac_status = 0; }
4292done
1c710c3c 4293
5213506e 4294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4295/* end confdefs.h. */
4296
4297int
4298main ()
4299{
4300
4301 ;
4302 return 0;
4303}
4304_ACEOF
4305ac_clean_files_save=$ac_clean_files
5213506e 4306ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
1c710c3c
DJ
4307# Try to create an executable without -o first, disregard a.out.
4308# It will help us diagnose broken compilers, and finding out an intuition
4309# of exeext.
5213506e
RW
4310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4311$as_echo_n "checking for C compiler default output file name... " >&6; }
4312ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4313
4314# The possible output files:
4315ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4316
4317ac_rmfiles=
4318for ac_file in $ac_files
4319do
4320 case $ac_file in
4321 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4322 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4323 esac
4324done
4325rm -f $ac_rmfiles
4326
4327if { { ac_try="$ac_link_default"
4328case "(($ac_try" in
4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330 *) ac_try_echo=$ac_try;;
4331esac
4332eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4333$as_echo "$ac_try_echo"; } >&5
4334 (eval "$ac_link_default") 2>&5
1c710c3c 4335 ac_status=$?
5213506e
RW
4336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4337 test $ac_status = 0; }; then :
4338 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4339# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4340# in a Makefile. We should not override ac_cv_exeext if it was cached,
4341# so that the user can short-circuit this test for compilers unknown to
4342# Autoconf.
4343for ac_file in $ac_files ''
1c710c3c
DJ
4344do
4345 test -f "$ac_file" || continue
4346 case $ac_file in
5213506e 4347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4348 ;;
4349 [ab].out )
4350 # We found the default executable, but exeext='' is most
4351 # certainly right.
4352 break;;
4353 *.* )
5213506e
RW
4354 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4355 then :; else
4356 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4357 fi
4358 # We set ac_cv_exeext here because the later test for it is not
4359 # safe: cross compilers may not add the suffix if given an `-o'
4360 # argument, so we may need to know it at that point already.
4361 # Even if this section looks crufty: it has the advantage of
4362 # actually working.
1c710c3c
DJ
4363 break;;
4364 * )
4365 break;;
4366 esac
4367done
5213506e
RW
4368test "$ac_cv_exeext" = no && ac_cv_exeext=
4369
1c710c3c 4370else
5213506e
RW
4371 ac_file=''
4372fi
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4374$as_echo "$ac_file" >&6; }
4375if test -z "$ac_file"; then :
4376 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4377sed 's/^/| /' conftest.$ac_ext >&5
4378
5213506e
RW
4379{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4380$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4381{ as_fn_set_status 77
4382as_fn_error "C compiler cannot create executables
4383See \`config.log' for more details." "$LINENO" 5; }; }
1c710c3c 4384fi
1c710c3c 4385ac_exeext=$ac_cv_exeext
1c710c3c 4386
5213506e 4387# Check that the compiler produces executables we can run. If not, either
1c710c3c 4388# the compiler is broken, or we cross compile.
5213506e
RW
4389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4390$as_echo_n "checking whether the C compiler works... " >&6; }
1c710c3c
DJ
4391# If not cross compiling, check that we can run a simple program.
4392if test "$cross_compiling" != yes; then
4393 if { ac_try='./$ac_file'
5213506e
RW
4394 { { case "(($ac_try" in
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4397esac
4398eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4399$as_echo "$ac_try_echo"; } >&5
4400 (eval "$ac_try") 2>&5
1c710c3c 4401 ac_status=$?
5213506e
RW
4402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4403 test $ac_status = 0; }; }; then
1c710c3c
DJ
4404 cross_compiling=no
4405 else
4406 if test "$cross_compiling" = maybe; then
4407 cross_compiling=yes
4408 else
5213506e
RW
4409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4410$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4411as_fn_error "cannot run C compiled programs.
1c710c3c 4412If you meant to cross compile, use \`--host'.
5213506e 4413See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4414 fi
4415 fi
4416fi
5213506e
RW
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4418$as_echo "yes" >&6; }
1c710c3c 4419
5213506e 4420rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
1c710c3c 4421ac_clean_files=$ac_clean_files_save
5213506e 4422# Check that the compiler produces executables we can run. If not, either
1c710c3c 4423# the compiler is broken, or we cross compile.
5213506e
RW
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4425$as_echo_n "checking whether we are cross compiling... " >&6; }
4426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4427$as_echo "$cross_compiling" >&6; }
4428
4429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4430$as_echo_n "checking for suffix of executables... " >&6; }
4431if { { ac_try="$ac_link"
4432case "(($ac_try" in
4433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434 *) ac_try_echo=$ac_try;;
4435esac
4436eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4437$as_echo "$ac_try_echo"; } >&5
4438 (eval "$ac_link") 2>&5
1c710c3c 4439 ac_status=$?
5213506e
RW
4440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4441 test $ac_status = 0; }; then :
1c710c3c
DJ
4442 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4443# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4444# work properly (i.e., refer to `conftest.exe'), while it won't with
4445# `rm'.
4446for ac_file in conftest.exe conftest conftest.*; do
4447 test -f "$ac_file" || continue
4448 case $ac_file in
5213506e 4449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4450 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4451 break;;
4452 * ) break;;
4453 esac
4454done
af71363e 4455else
5213506e
RW
4456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4457$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4458as_fn_error "cannot compute suffix of executables: cannot compile and link
4459See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4460fi
1c710c3c 4461rm -f conftest$ac_cv_exeext
5213506e
RW
4462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4463$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4464
4465rm -f conftest.$ac_ext
4466EXEEXT=$ac_cv_exeext
4467ac_exeext=$EXEEXT
5213506e
RW
4468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4469$as_echo_n "checking for suffix of object files... " >&6; }
4470if test "${ac_cv_objext+set}" = set; then :
4471 $as_echo_n "(cached) " >&6
1c710c3c 4472else
5213506e 4473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4474/* end confdefs.h. */
4475
4476int
4477main ()
4478{
4479
4480 ;
4481 return 0;
4482}
4483_ACEOF
4484rm -f conftest.o conftest.obj
5213506e
RW
4485if { { ac_try="$ac_compile"
4486case "(($ac_try" in
4487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488 *) ac_try_echo=$ac_try;;
4489esac
4490eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4491$as_echo "$ac_try_echo"; } >&5
4492 (eval "$ac_compile") 2>&5
1c710c3c 4493 ac_status=$?
5213506e
RW
4494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4495 test $ac_status = 0; }; then :
4496 for ac_file in conftest.o conftest.obj conftest.*; do
4497 test -f "$ac_file" || continue;
1c710c3c 4498 case $ac_file in
5213506e 4499 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4500 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4501 break;;
4502 esac
4503done
4504else
5213506e 4505 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4506sed 's/^/| /' conftest.$ac_ext >&5
4507
5213506e
RW
4508{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4510as_fn_error "cannot compute suffix of object files: cannot compile
4511See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4512fi
1c710c3c
DJ
4513rm -f conftest.$ac_cv_objext conftest.$ac_ext
4514fi
5213506e
RW
4515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4516$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4517OBJEXT=$ac_cv_objext
4518ac_objext=$OBJEXT
5213506e
RW
4519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4520$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4521if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4522 $as_echo_n "(cached) " >&6
1c710c3c 4523else
5213506e 4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4525/* end confdefs.h. */
4526
4527int
4528main ()
4529{
4530#ifndef __GNUC__
4531 choke me
4532#endif
4533
4534 ;
4535 return 0;
4536}
4537_ACEOF
5213506e 4538if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4539 ac_compiler_gnu=yes
4540else
5213506e 4541 ac_compiler_gnu=no
1c710c3c 4542fi
5213506e 4543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4544ac_cv_c_compiler_gnu=$ac_compiler_gnu
4545
4546fi
5213506e
RW
4547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4548$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4549if test $ac_compiler_gnu = yes; then
4550 GCC=yes
4551else
4552 GCC=
4553fi
1c710c3c
DJ
4554ac_test_CFLAGS=${CFLAGS+set}
4555ac_save_CFLAGS=$CFLAGS
5213506e
RW
4556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4557$as_echo_n "checking whether $CC accepts -g... " >&6; }
4558if test "${ac_cv_prog_cc_g+set}" = set; then :
4559 $as_echo_n "(cached) " >&6
4560else
4561 ac_save_c_werror_flag=$ac_c_werror_flag
4562 ac_c_werror_flag=yes
4563 ac_cv_prog_cc_g=no
4564 CFLAGS="-g"
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4566/* end confdefs.h. */
4567
4568int
4569main ()
4570{
4571
4572 ;
4573 return 0;
4574}
4575_ACEOF
5213506e 4576if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4577 ac_cv_prog_cc_g=yes
4578else
5213506e
RW
4579 CFLAGS=""
4580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581/* end confdefs.h. */
4582
4583int
4584main ()
4585{
4586
4587 ;
4588 return 0;
4589}
4590_ACEOF
4591if ac_fn_c_try_compile "$LINENO"; then :
4592
4593else
4594 ac_c_werror_flag=$ac_save_c_werror_flag
4595 CFLAGS="-g"
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597/* end confdefs.h. */
af71363e 4598
5213506e
RW
4599int
4600main ()
4601{
4602
4603 ;
4604 return 0;
4605}
4606_ACEOF
4607if ac_fn_c_try_compile "$LINENO"; then :
4608 ac_cv_prog_cc_g=yes
4609fi
4610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4611fi
5213506e 4612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4613fi
5213506e
RW
4614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 ac_c_werror_flag=$ac_save_c_werror_flag
4616fi
4617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4618$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4619if test "$ac_test_CFLAGS" = set; then
1c710c3c 4620 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4621elif test $ac_cv_prog_cc_g = yes; then
4622 if test "$GCC" = yes; then
4623 CFLAGS="-g -O2"
4624 else
4625 CFLAGS="-g"
4626 fi
4627else
4628 if test "$GCC" = yes; then
4629 CFLAGS="-O2"
4630 else
4631 CFLAGS=
4632 fi
4633fi
5213506e
RW
4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4635$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4636if test "${ac_cv_prog_cc_c89+set}" = set; then :
4637 $as_echo_n "(cached) " >&6
1c710c3c 4638else
5213506e 4639 ac_cv_prog_cc_c89=no
1c710c3c 4640ac_save_CC=$CC
5213506e 4641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4642/* end confdefs.h. */
4643#include <stdarg.h>
4644#include <stdio.h>
4645#include <sys/types.h>
4646#include <sys/stat.h>
4647/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4648struct buf { int x; };
4649FILE * (*rcsopen) (struct buf *, struct stat *, int);
4650static char *e (p, i)
4651 char **p;
4652 int i;
4653{
4654 return p[i];
4655}
4656static char *f (char * (*g) (char **, int), char **p, ...)
4657{
4658 char *s;
4659 va_list v;
4660 va_start (v,p);
4661 s = g (p, va_arg (v,int));
4662 va_end (v);
4663 return s;
4664}
4665
4666/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4667 function prototypes and stuff, but not '\xHH' hex character constants.
4668 These don't provoke an error unfortunately, instead are silently treated
5213506e 4669 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4670 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4671 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4672 that's true only with -std. */
1c710c3c
DJ
4673int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4674
5213506e
RW
4675/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4676 inside strings and character constants. */
4677#define FOO(x) 'x'
4678int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4679
1c710c3c
DJ
4680int test (int i, double x);
4681struct s1 {int (*f) (int a);};
4682struct s2 {int (*f) (double a);};
4683int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4684int argc;
4685char **argv;
4686int
4687main ()
4688{
4689return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4690 ;
4691 return 0;
4692}
4693_ACEOF
5213506e
RW
4694for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4695 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4696do
4697 CC="$ac_save_CC $ac_arg"
5213506e
RW
4698 if ac_fn_c_try_compile "$LINENO"; then :
4699 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4700fi
5213506e
RW
4701rm -f core conftest.err conftest.$ac_objext
4702 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4703done
5213506e 4704rm -f conftest.$ac_ext
1c710c3c
DJ
4705CC=$ac_save_CC
4706
4707fi
5213506e
RW
4708# AC_CACHE_VAL
4709case "x$ac_cv_prog_cc_c89" in
4710 x)
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4712$as_echo "none needed" >&6; } ;;
4713 xno)
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4715$as_echo "unsupported" >&6; } ;;
1c710c3c 4716 *)
5213506e
RW
4717 CC="$CC $ac_cv_prog_cc_c89"
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4719$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4720esac
5213506e 4721if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4722
2aeb72e9
DD
4723fi
4724
2aeb72e9
DD
4725ac_ext=c
4726ac_cpp='$CPP $CPPFLAGS'
4727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4729ac_compiler_gnu=$ac_cv_c_compiler_gnu
4730
5213506e 4731ac_ext=cpp
2aeb72e9
DD
4732ac_cpp='$CXXCPP $CPPFLAGS'
4733ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4734ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4735ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4736if test -z "$CXX"; then
4737 if test -n "$CCC"; then
4738 CXX=$CCC
4739 else
4740 if test -n "$ac_tool_prefix"; then
4741 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4742 do
4743 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4744set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4746$as_echo_n "checking for $ac_word... " >&6; }
4747if test "${ac_cv_prog_CXX+set}" = set; then :
4748 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4749else
4750 if test -n "$CXX"; then
4751 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4752else
4753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754for as_dir in $PATH
4755do
4756 IFS=$as_save_IFS
4757 test -z "$as_dir" && as_dir=.
5213506e
RW
4758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2aeb72e9 4760 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4762 break 2
4763 fi
4764done
5213506e
RW
4765 done
4766IFS=$as_save_IFS
55ffb5ed 4767
c3a86da9
DJ
4768fi
4769fi
4770CXX=$ac_cv_prog_CXX
4771if test -n "$CXX"; then
5213506e
RW
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4773$as_echo "$CXX" >&6; }
c3a86da9 4774else
5213506e
RW
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4776$as_echo "no" >&6; }
c3a86da9
DJ
4777fi
4778
5213506e 4779
c3a86da9
DJ
4780 test -n "$CXX" && break
4781 done
4782fi
4783if test -z "$CXX"; then
4784 ac_ct_CXX=$CXX
5213506e 4785 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4786do
4787 # Extract the first word of "$ac_prog", so it can be a program name with args.
4788set dummy $ac_prog; ac_word=$2
5213506e
RW
4789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4790$as_echo_n "checking for $ac_word... " >&6; }
4791if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4792 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4793else
4794 if test -n "$ac_ct_CXX"; then
4795 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4796else
4797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798for as_dir in $PATH
4799do
4800 IFS=$as_save_IFS
4801 test -z "$as_dir" && as_dir=.
5213506e
RW
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c3a86da9 4804 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4806 break 2
4807 fi
4808done
5213506e
RW
4809 done
4810IFS=$as_save_IFS
c3a86da9
DJ
4811
4812fi
4813fi
4814ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4815if test -n "$ac_ct_CXX"; then
5213506e
RW
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4817$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4818else
5213506e
RW
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820$as_echo "no" >&6; }
c3a86da9
DJ
4821fi
4822
5213506e 4823
c3a86da9
DJ
4824 test -n "$ac_ct_CXX" && break
4825done
c3a86da9 4826
5213506e
RW
4827 if test "x$ac_ct_CXX" = x; then
4828 CXX="g++"
4829 else
4830 case $cross_compiling:$ac_tool_warned in
4831yes:)
4832{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4833$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4834ac_tool_warned=yes ;;
4835esac
4836 CXX=$ac_ct_CXX
4837 fi
c3a86da9
DJ
4838fi
4839
5213506e
RW
4840 fi
4841fi
c3a86da9 4842# Provide some information about the compiler.
5213506e
RW
4843$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4844set X $ac_compile
4845ac_compiler=$2
4846for ac_option in --version -v -V -qversion; do
4847 { { ac_try="$ac_compiler $ac_option >&5"
4848case "(($ac_try" in
4849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850 *) ac_try_echo=$ac_try;;
4851esac
4852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4853$as_echo "$ac_try_echo"; } >&5
4854 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 4855 ac_status=$?
5213506e
RW
4856 if test -s conftest.err; then
4857 sed '10a\
4858... rest of stderr output deleted ...
4859 10q' conftest.err >conftest.er1
4860 cat conftest.er1 >&5
4861 rm -f conftest.er1 conftest.err
4862 fi
4863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4864 test $ac_status = 0; }
4865done
c3a86da9 4866
5213506e
RW
4867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4868$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4869if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4870 $as_echo_n "(cached) " >&6
c3a86da9 4871else
5213506e 4872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4873/* end confdefs.h. */
4874
4875int
4876main ()
4877{
4878#ifndef __GNUC__
4879 choke me
4880#endif
4881
4882 ;
4883 return 0;
4884}
4885_ACEOF
5213506e 4886if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4887 ac_compiler_gnu=yes
4888else
5213506e 4889 ac_compiler_gnu=no
c3a86da9 4890fi
5213506e 4891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4892ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4893
4894fi
5213506e
RW
4895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4896$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4897if test $ac_compiler_gnu = yes; then
4898 GXX=yes
4899else
4900 GXX=
4901fi
c3a86da9
DJ
4902ac_test_CXXFLAGS=${CXXFLAGS+set}
4903ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
4904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4905$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4906if test "${ac_cv_prog_cxx_g+set}" = set; then :
4907 $as_echo_n "(cached) " >&6
4908else
4909 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4910 ac_cxx_werror_flag=yes
4911 ac_cv_prog_cxx_g=no
4912 CXXFLAGS="-g"
4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4914/* end confdefs.h. */
4915
4916int
4917main ()
4918{
4919
4920 ;
4921 return 0;
4922}
4923_ACEOF
5213506e 4924if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4925 ac_cv_prog_cxx_g=yes
4926else
5213506e
RW
4927 CXXFLAGS=""
4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4929/* end confdefs.h. */
5213506e 4930
c3a86da9
DJ
4931int
4932main ()
4933{
5213506e 4934
c3a86da9
DJ
4935 ;
4936 return 0;
4937}
4938_ACEOF
5213506e 4939if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 4940
5213506e
RW
4941else
4942 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4943 CXXFLAGS="-g"
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4945/* end confdefs.h. */
5213506e 4946
c3a86da9
DJ
4947int
4948main ()
4949{
5213506e 4950
c3a86da9
DJ
4951 ;
4952 return 0;
4953}
4954_ACEOF
5213506e
RW
4955if ac_fn_cxx_try_compile "$LINENO"; then :
4956 ac_cv_prog_cxx_g=yes
11a67599 4957fi
5213506e
RW
4958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4959fi
4960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4961fi
4962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4963 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4964fi
4965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4966$as_echo "$ac_cv_prog_cxx_g" >&6; }
4967if test "$ac_test_CXXFLAGS" = set; then
4968 CXXFLAGS=$ac_save_CXXFLAGS
4969elif test $ac_cv_prog_cxx_g = yes; then
4970 if test "$GXX" = yes; then
4971 CXXFLAGS="-g -O2"
4972 else
4973 CXXFLAGS="-g"
4974 fi
4975else
4976 if test "$GXX" = yes; then
4977 CXXFLAGS="-O2"
4978 else
4979 CXXFLAGS=
4980 fi
c3a86da9 4981fi
c3a86da9
DJ
4982ac_ext=c
4983ac_cpp='$CPP $CPPFLAGS'
4984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4986ac_compiler_gnu=$ac_cv_c_compiler_gnu
4987
4988
4989# We must set the default linker to the linker used by gcc for the correct
4990# operation of libtool. If LD is not defined and we are using gcc, try to
4991# set the LD default to the ld used by gcc.
4992if test -z "$LD"; then
4993 if test "$GCC" = yes; then
4994 case $build in
4995 *-*-mingw*)
4996 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4997 *)
4998 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4999 esac
5000 case $gcc_prog_ld in
5001 # Accept absolute paths.
5002 [\\/]* | [A-Za-z]:[\\/]*)
5003 LD="$gcc_prog_ld" ;;
5004 esac
5005 fi
23f6b2f9
PB
5006fi
5007
0b21f5d3
EB
5008# Check whether -static-libstdc++ -static-libgcc is supported.
5009have_static_libs=no
5010if test "$GCC" = yes; then
5011 saved_LDFLAGS="$LDFLAGS"
5012
5013 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5015$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5016 ac_ext=cpp
5017ac_cpp='$CXXCPP $CPPFLAGS'
5018ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5019ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5020ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5021
5022
5023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024/* end confdefs.h. */
0d6414b2
EB
5025
5026#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5027#error -static-libstdc++ not implemented
5028#endif
0b21f5d3
EB
5029int main() {}
5030_ACEOF
5031if ac_fn_cxx_try_link "$LINENO"; then :
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5033$as_echo "yes" >&6; }; have_static_libs=yes
5034else
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5036$as_echo "no" >&6; }
5037fi
5038rm -f core conftest.err conftest.$ac_objext \
5039 conftest$ac_exeext conftest.$ac_ext
5040 ac_ext=c
5041ac_cpp='$CPP $CPPFLAGS'
5042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5044ac_compiler_gnu=$ac_cv_c_compiler_gnu
5045
5046
5047 LDFLAGS="$saved_LDFLAGS"
5048fi
5049
23f6b2f9
PB
5050
5051
55ffb5ed 5052
1c710c3c
DJ
5053if test -n "$ac_tool_prefix"; then
5054 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 5055set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
5056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5057$as_echo_n "checking for $ac_word... " >&6; }
5058if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5059 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5060else
5061 if test -n "$GNATBIND"; then
5062 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5063else
1c710c3c
DJ
5064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065for as_dir in $PATH
5066do
5067 IFS=$as_save_IFS
5068 test -z "$as_dir" && as_dir=.
5213506e
RW
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5071 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5073 break 2
5074 fi
5075done
5213506e
RW
5076 done
5077IFS=$as_save_IFS
1c710c3c 5078
55ffb5ed
NN
5079fi
5080fi
1c710c3c 5081GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5082if test -n "$GNATBIND"; then
5213506e
RW
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5084$as_echo "$GNATBIND" >&6; }
55ffb5ed 5085else
5213506e
RW
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087$as_echo "no" >&6; }
55ffb5ed
NN
5088fi
5089
5213506e 5090
1c710c3c 5091fi
55ffb5ed 5092if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5093 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5094 # Extract the first word of "gnatbind", so it can be a program name with args.
5095set dummy gnatbind; ac_word=$2
5213506e
RW
5096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5097$as_echo_n "checking for $ac_word... " >&6; }
5098if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5099 $as_echo_n "(cached) " >&6
55ffb5ed 5100else
1c710c3c
DJ
5101 if test -n "$ac_ct_GNATBIND"; then
5102 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5103else
1c710c3c
DJ
5104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105for as_dir in $PATH
5106do
5107 IFS=$as_save_IFS
5108 test -z "$as_dir" && as_dir=.
5213506e
RW
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5111 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5113 break 2
5114 fi
5115done
5213506e
RW
5116 done
5117IFS=$as_save_IFS
1c710c3c 5118
55ffb5ed
NN
5119fi
5120fi
1c710c3c
DJ
5121ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5122if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5124$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5125else
5213506e
RW
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127$as_echo "no" >&6; }
55ffb5ed
NN
5128fi
5129
5213506e
RW
5130 if test "x$ac_ct_GNATBIND" = x; then
5131 GNATBIND="no"
5132 else
5133 case $cross_compiling:$ac_tool_warned in
5134yes:)
5135{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5136$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5137ac_tool_warned=yes ;;
5138esac
5139 GNATBIND=$ac_ct_GNATBIND
5140 fi
55ffb5ed 5141else
1c710c3c 5142 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5143fi
5144
1c710c3c
DJ
5145if test -n "$ac_tool_prefix"; then
5146 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5147set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5149$as_echo_n "checking for $ac_word... " >&6; }
5150if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5151 $as_echo_n "(cached) " >&6
5305be7e
RG
5152else
5153 if test -n "$GNATMAKE"; then
5154 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5155else
1c710c3c
DJ
5156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157for as_dir in $PATH
5158do
5159 IFS=$as_save_IFS
5160 test -z "$as_dir" && as_dir=.
5213506e
RW
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5163 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5165 break 2
5166 fi
5167done
5213506e
RW
5168 done
5169IFS=$as_save_IFS
1c710c3c 5170
5305be7e
RG
5171fi
5172fi
1c710c3c 5173GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5174if test -n "$GNATMAKE"; then
5213506e
RW
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5176$as_echo "$GNATMAKE" >&6; }
5305be7e 5177else
5213506e
RW
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179$as_echo "no" >&6; }
5305be7e
RG
5180fi
5181
5213506e 5182
1c710c3c 5183fi
5305be7e 5184if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5185 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5186 # Extract the first word of "gnatmake", so it can be a program name with args.
5187set dummy gnatmake; ac_word=$2
5213506e
RW
5188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5189$as_echo_n "checking for $ac_word... " >&6; }
5190if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5191 $as_echo_n "(cached) " >&6
5305be7e 5192else
1c710c3c
DJ
5193 if test -n "$ac_ct_GNATMAKE"; then
5194 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5195else
1c710c3c
DJ
5196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197for as_dir in $PATH
5198do
5199 IFS=$as_save_IFS
5200 test -z "$as_dir" && as_dir=.
5213506e
RW
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5203 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5205 break 2
5206 fi
5207done
5213506e
RW
5208 done
5209IFS=$as_save_IFS
1c710c3c 5210
5305be7e
RG
5211fi
5212fi
1c710c3c
DJ
5213ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5214if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5216$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5217else
5213506e
RW
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219$as_echo "no" >&6; }
5305be7e
RG
5220fi
5221
5213506e
RW
5222 if test "x$ac_ct_GNATMAKE" = x; then
5223 GNATMAKE="no"
5224 else
5225 case $cross_compiling:$ac_tool_warned in
5226yes:)
5227{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5228$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5229ac_tool_warned=yes ;;
5230esac
5231 GNATMAKE=$ac_ct_GNATMAKE
5232 fi
5305be7e 5233else
1c710c3c 5234 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5235fi
5236
5213506e
RW
5237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5238$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5239if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5240 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5241else
5242 cat >conftest.adb <<EOF
5243procedure conftest is begin null; end conftest;
5244EOF
5245acx_cv_cc_gcc_supports_ada=no
5246# There is a bug in old released versions of GCC which causes the
5247# driver to exit successfully when the appropriate language module
5248# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5249# Therefore we must check for the error message as well as an
5250# unsuccessful exit.
1db673ca
RO
5251# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5252# given a .adb file, but produce no object file. So we must check
5253# if an object file was really produced to guard against this.
55ffb5ed 5254errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5255if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5256 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5257fi
5258rm -f conftest.*
5259fi
5213506e
RW
5260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5261$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5262
7cb62ef1 5263if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5264 have_gnat=yes
5265else
5266 have_gnat=no
5267fi
5268
5213506e
RW
5269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5270$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5271if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5272 $as_echo_n "(cached) " >&6
a76494aa
PB
5273else
5274 echo abfoo >t1
5275 echo cdfoo >t2
b55e6680 5276 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5277 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5278 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5279 :
5280 else
5281 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5282 fi
5283 fi
a76494aa
PB
5284 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5285 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5286 :
a76494aa
PB
5287 else
5288 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5289 fi
5290 fi
5291 rm t1 t2
5292
5293fi
5213506e
RW
5294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5295$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5296do_compare="$gcc_cv_prog_cmp_skip"
5297
5298
55ffb5ed 5299
ff3ac0f4
ILT
5300# Check whether --enable-bootstrap was given.
5301if test "${enable_bootstrap+set}" = set; then :
5302 enableval=$enable_bootstrap;
5303else
5304 enable_bootstrap=default
5305fi
5306
5307
5308# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5309if test -r $srcdir/gcc/configure; then
5310 have_compiler=yes
5311else
5312 have_compiler=no
5313fi
ff3ac0f4
ILT
5314
5315case "$have_compiler:$host:$target:$enable_bootstrap" in
5316 *:*:*:no) ;;
5317
5318 # Default behavior. Enable bootstrap if we have a compiler
5319 # and we are in a native configuration.
5320 yes:$build:$build:default)
5321 enable_bootstrap=yes ;;
5322
5323 *:*:*:default)
5324 enable_bootstrap=no ;;
5325
5326 # We have a compiler and we are in a native configuration, bootstrap is ok
5327 yes:$build:$build:yes)
5328 ;;
5329
5330 # Other configurations, but we have a compiler. Assume the user knows
5331 # what he's doing.
5332 yes:*:*:yes)
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5334$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5335 ;;
5336
5337 # No compiler: if they passed --enable-bootstrap explicitly, fail
5338 no:*:*:yes)
5339 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5340
5341 # Fail if wrong command line
5342 *)
5343 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5344 ;;
5345esac
5346
46070488
JM
5347# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5348# C++98 compiler can still start the bootstrap.
5349if test "$enable_bootstrap:$GXX" = "yes:yes"; then
8ca528d9 5350 CXX="$CXX -std=gnu++98"
46070488
JM
5351fi
5352
592c90ff
KG
5353# Used for setting $lt_cv_objdir
5354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5355$as_echo_n "checking for objdir... " >&6; }
5356if test "${lt_cv_objdir+set}" = set; then :
5357 $as_echo_n "(cached) " >&6
5358else
5359 rm -f .libs 2>/dev/null
5360mkdir .libs 2>/dev/null
5361if test -d .libs; then
5362 lt_cv_objdir=.libs
5363else
5364 # MS-DOS does not allow filenames that begin with a dot.
5365 lt_cv_objdir=_libs
5366fi
5367rmdir .libs 2>/dev/null
5368fi
5369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5370$as_echo "$lt_cv_objdir" >&6; }
5371objdir=$lt_cv_objdir
5372
5373
5374
5375
5376
5377cat >>confdefs.h <<_ACEOF
5378#define LT_OBJDIR "$lt_cv_objdir/"
5379_ACEOF
5380
5381
5382
acd26225 5383# Check for GMP, MPFR and MPC
3a5729ea 5384gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 5385gmpinc=
e69bf64b 5386have_gmp=no
acd26225
KG
5387
5388# Specify a location for mpc
5389# check for this first so it ends up on the link line before mpfr.
5390
5213506e
RW
5391# Check whether --with-mpc was given.
5392if test "${with_mpc+set}" = set; then :
5393 withval=$with_mpc;
5394fi
acd26225 5395
acd26225 5396
9965e3cd 5397# Check whether --with-mpc-include was given.
5213506e
RW
5398if test "${with_mpc_include+set}" = set; then :
5399 withval=$with_mpc_include;
5400fi
acd26225 5401
acd26225 5402
9965e3cd 5403# Check whether --with-mpc-lib was given.
5213506e
RW
5404if test "${with_mpc_lib+set}" = set; then :
5405 withval=$with_mpc_lib;
5406fi
acd26225 5407
acd26225
KG
5408
5409if test "x$with_mpc" != x; then
3a5729ea
KG
5410 gmplibs="-L$with_mpc/lib $gmplibs"
5411 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
5412fi
5413if test "x$with_mpc_include" != x; then
3a5729ea 5414 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
5415fi
5416if test "x$with_mpc_lib" != x; then
3a5729ea 5417 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
5418fi
5419if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 5420 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 5421 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5422 # Do not test the mpc version. Assume that it is sufficient, since
5423 # it is in the source tree, and the library has not been built yet
5424 # but it would be included on the link line in the version check below
5425 # hence making the test fail.
3a5729ea 5426 have_gmp=yes
acd26225 5427fi
e69bf64b 5428
bebf829d
PB
5429# Specify a location for mpfr
5430# check for this first so it ends up on the link line before gmp.
1c710c3c 5431
5213506e
RW
5432# Check whether --with-mpfr-dir was given.
5433if test "${with_mpfr_dir+set}" = set; then :
5434 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5435Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5436fi
5437
bebf829d
PB
5438
5439
5213506e
RW
5440# Check whether --with-mpfr was given.
5441if test "${with_mpfr+set}" = set; then :
5442 withval=$with_mpfr;
5443fi
1c710c3c 5444
bebf829d 5445
9965e3cd 5446# Check whether --with-mpfr-include was given.
5213506e
RW
5447if test "${with_mpfr_include+set}" = set; then :
5448 withval=$with_mpfr_include;
5449fi
1c710c3c 5450
8a877c9c 5451
9965e3cd 5452# Check whether --with-mpfr-lib was given.
5213506e
RW
5453if test "${with_mpfr_lib+set}" = set; then :
5454 withval=$with_mpfr_lib;
5455fi
8a877c9c 5456
bebf829d
PB
5457
5458if test "x$with_mpfr" != x; then
5459 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5460 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5461fi
8a877c9c 5462if test "x$with_mpfr_include" != x; then
3a5729ea 5463 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5464fi
5465if test "x$with_mpfr_lib" != x; then
5466 gmplibs="-L$with_mpfr_lib $gmplibs"
5467fi
e69bf64b 5468if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8f3675f8
MR
5469 # MPFR v3.1.0 moved the sources into a src sub-directory.
5470 if ! test -d ${srcdir}/mpfr/src; then
5471 as_fn_error "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5472 fi
00f35794
BE
5473 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5474 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5475 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
e69bf64b
PB
5476 # Do not test the mpfr version. Assume that it is sufficient, since
5477 # it is in the source tree, and the library has not been built yet
5478 # but it would be included on the link line in the version check below
5479 # hence making the test fail.
5480 have_gmp=yes
5481fi
bebf829d 5482
6de9cd9a 5483# Specify a location for gmp
1c710c3c 5484
5213506e
RW
5485# Check whether --with-gmp-dir was given.
5486if test "${with_gmp_dir+set}" = set; then :
5487 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5488Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5489fi
5490
6de9cd9a 5491
6de9cd9a 5492
5213506e
RW
5493# Check whether --with-gmp was given.
5494if test "${with_gmp+set}" = set; then :
5495 withval=$with_gmp;
5496fi
1c710c3c 5497
6de9cd9a 5498
9965e3cd 5499# Check whether --with-gmp-include was given.
5213506e
RW
5500if test "${with_gmp_include+set}" = set; then :
5501 withval=$with_gmp_include;
5502fi
1c710c3c 5503
8a877c9c 5504
9965e3cd 5505# Check whether --with-gmp-lib was given.
5213506e
RW
5506if test "${with_gmp_lib+set}" = set; then :
5507 withval=$with_gmp_lib;
5508fi
8a877c9c
KG
5509
5510
6de9cd9a 5511
bebf829d
PB
5512if test "x$with_gmp" != x; then
5513 gmplibs="-L$with_gmp/lib $gmplibs"
5514 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5515fi
8a877c9c
KG
5516if test "x$with_gmp_include" != x; then
5517 gmpinc="-I$with_gmp_include $gmpinc"
5518fi
5519if test "x$with_gmp_lib" != x; then
5520 gmplibs="-L$with_gmp_lib $gmplibs"
5521fi
e69bf64b 5522if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5523 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5524 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 5525 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 5526 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 5527 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
5528 # Do not test the gmp version. Assume that it is sufficient, since
5529 # it is in the source tree, and the library has not been built yet
5530 # but it would be included on the link line in the version check below
5531 # hence making the test fail.
5532 have_gmp=yes
5533fi
6de9cd9a 5534
d943d7c4 5535if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5536 have_gmp=yes
5537 saved_CFLAGS="$CFLAGS"
5538 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5539 # Check for the recommended and required versions of GMP.
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5541$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5542
5543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5544/* end confdefs.h. */
5545#include "gmp.h"
5546int
5547main ()
5548{
5549
5550 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5551 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 5552 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
5553 choke me
5554 #endif
5555
5556 ;
5557 return 0;
5558}
5559_ACEOF
5560if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5562/* end confdefs.h. */
362c6d2f 5563#include <gmp.h>
1c710c3c
DJ
5564int
5565main ()
5566{
6de9cd9a 5567
362c6d2f
KG
5568 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5569 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5570 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5571 choke me
5572 #endif
1c710c3c
DJ
5573
5574 ;
5575 return 0;
5576}
5577_ACEOF
5213506e
RW
5578if ac_fn_c_try_compile "$LINENO"; then :
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5580$as_echo "yes" >&6; }
362c6d2f
KG
5581else
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5583$as_echo "buggy but acceptable" >&6; }
5584fi
5585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5586else
5213506e
RW
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5588$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5589fi
5213506e 5590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5591
acd26225 5592 # If we have GMP, check the MPFR version.
e69bf64b 5593 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5594 # Check for the recommended and required versions of MPFR.
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5596$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5598/* end confdefs.h. */
70ec446f 5599#include <gmp.h>
e69bf64b 5600 #include <mpfr.h>
1c710c3c
DJ
5601int
5602main ()
5603{
e48d66a9 5604
f7d6bc01 5605 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
e69bf64b
PB
5606 choke me
5607 #endif
1c710c3c
DJ
5608
5609 ;
5610 return 0;
5611}
5612_ACEOF
5213506e
RW
5613if ac_fn_c_try_compile "$LINENO"; then :
5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5615/* end confdefs.h. */
a3993f33 5616#include <gmp.h>
e69bf64b 5617 #include <mpfr.h>
1c710c3c
DJ
5618int
5619main ()
5620{
a3993f33 5621
362c6d2f 5622 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
e69bf64b
PB
5623 choke me
5624 #endif
acd26225
KG
5625
5626 ;
5627 return 0;
5628}
5629_ACEOF
5213506e
RW
5630if ac_fn_c_try_compile "$LINENO"; then :
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5632$as_echo "yes" >&6; }
acd26225 5633else
5213506e
RW
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5635$as_echo "buggy but acceptable" >&6; }
acd26225 5636fi
5213506e 5637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5638else
5213506e
RW
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640$as_echo "no" >&6; }; have_gmp=no
acd26225 5641fi
5213506e 5642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5643 fi
5644
5645 # Check for the MPC header version.
3a5729ea 5646 if test x"$have_gmp" = xyes ; then
362c6d2f 5647 # Check for the recommended and required versions of MPC.
5213506e
RW
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5649$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5651/* end confdefs.h. */
5652#include <mpc.h>
5653int
5654main ()
5655{
5656
362c6d2f
KG
5657 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5658 choke me
5659 #endif
5660
5661 ;
5662 return 0;
5663}
5664_ACEOF
5665if ac_fn_c_try_compile "$LINENO"; then :
5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667/* end confdefs.h. */
5668#include <mpc.h>
5669int
5670main ()
5671{
5672
5673 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5674 choke me
5675 #endif
5676
5677 ;
5678 return 0;
5679}
5680_ACEOF
5213506e
RW
5681if ac_fn_c_try_compile "$LINENO"; then :
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5683$as_echo "yes" >&6; }
362c6d2f
KG
5684else
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5686$as_echo "buggy but acceptable" >&6; }
5687fi
5688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5689else
5213506e 5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5691$as_echo "no" >&6; }; have_gmp=no
acd26225 5692fi
5213506e 5693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5694 fi
5695
5696 # Now check the MPFR library.
5697 if test x"$have_gmp" = xyes; then
5698 saved_LIBS="$LIBS"
5699 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5701$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5703/* end confdefs.h. */
3a5729ea 5704#include <mpc.h>
acd26225
KG
5705int
5706main ()
5707{
5708
5709 mpfr_t n;
5710 mpfr_t x;
3a5729ea 5711 mpc_t c;
acd26225
KG
5712 int t;
5713 mpfr_init (n);
5714 mpfr_init (x);
5715 mpfr_atan2 (n, n, x, GMP_RNDN);
5716 mpfr_erfc (n, x, GMP_RNDN);
5717 mpfr_subnormalize (x, t, GMP_RNDN);
3a5729ea
KG
5718 mpfr_clear(n);
5719 mpfr_clear(x);
5720 mpc_init2 (c, 53);
5721 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5722 mpc_cosh (c, c, MPC_RNDNN);
5723 mpc_pow (c, c, c, MPC_RNDNN);
5724 mpc_acosh (c, c, MPC_RNDNN);
5725 mpc_clear (c);
1c710c3c
DJ
5726
5727 ;
5728 return 0;
5729}
5730_ACEOF
5213506e
RW
5731if ac_fn_c_try_link "$LINENO"; then :
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5733$as_echo "yes" >&6; }
1c710c3c 5734else
5213506e
RW
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5737fi
5213506e
RW
5738rm -f core conftest.err conftest.$ac_objext \
5739 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5740 LIBS="$saved_LIBS"
5741 fi
5742
e69bf64b 5743 CFLAGS="$saved_CFLAGS"
6de9cd9a 5744
362c6d2f
KG
5745# The library versions listed in the error message below should match
5746# the HARD-minimums enforced above.
e69bf64b 5747 if test x$have_gmp != xyes; then
f7d6bc01 5748 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
3a5729ea
KG
5749Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5750their locations. Source code for these libraries can be found at
5751their respective hosting sites as well as at
5752ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5753http://gcc.gnu.org/install/prerequisites.html for additional info. If
5754you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5755make sure that you have installed both the libraries and the header
5756files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5757 fi
70ec446f
KG
5758fi
5759
acd26225
KG
5760# Flags needed for both GMP, MPFR and/or MPC.
5761
5762
6de9cd9a
DN
5763
5764
5765
9e3eba15 5766
0ff2d841 5767
0b21f5d3 5768# Libraries to use for stage1 or when not bootstrapping.
00020c16 5769
0b21f5d3
EB
5770# Check whether --with-stage1-libs was given.
5771if test "${with_stage1_libs+set}" = set; then :
5772 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5773 stage1_libs=
00020c16 5774 else
0b21f5d3 5775 stage1_libs=$withval
00020c16
ILT
5776 fi
5777else
5dc85f7e 5778 stage1_libs=
5213506e
RW
5779fi
5780
00020c16
ILT
5781
5782
0b21f5d3 5783# Linker flags to use for stage1 or when not bootstrapping.
00020c16 5784
0b21f5d3
EB
5785# Check whether --with-stage1-ldflags was given.
5786if test "${with_stage1_ldflags+set}" = set; then :
5787 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5788 stage1_ldflags=
00020c16 5789 else
0b21f5d3 5790 stage1_ldflags=$withval
00020c16
ILT
5791 fi
5792else
0b21f5d3
EB
5793 stage1_ldflags=
5794 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5795 # if supported. But if the user explicitly specified the libraries to use,
5796 # trust that they are doing what they want.
5797 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5798 stage1_ldflags="-static-libstdc++ -static-libgcc"
5799 fi
5213506e
RW
5800fi
5801
00020c16
ILT
5802
5803
5dc85f7e 5804# Libraries to use for stage2 and later builds.
00020c16 5805
5213506e
RW
5806# Check whether --with-boot-libs was given.
5807if test "${with_boot_libs+set}" = set; then :
5808 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
5809 poststage1_libs=
5810 else
5811 poststage1_libs=$withval
5812 fi
5813else
5dc85f7e 5814 poststage1_libs=
5213506e
RW
5815fi
5816
00020c16
ILT
5817
5818
ed2eaa9f
ILT
5819# Linker flags to use for stage2 and later builds.
5820
5821# Check whether --with-boot-ldflags was given.
5822if test "${with_boot_ldflags+set}" = set; then :
5823 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5824 poststage1_ldflags=
5825 else
5826 poststage1_ldflags=$withval
5827 fi
5828else
5829 poststage1_ldflags=
bec93d73
ILT
5830 # In stages 2 and 3, default to linking libstdc++ and libgcc
5831 # statically. But if the user explicitly specified the libraries to
5832 # use, trust that they are doing what they want.
5833 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
5834 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5835 fi
5836fi
5837
5838
5839
e357a5e0 5840# GCC GRAPHITE dependency isl.
4a9bb2aa 5841# Basic setup is inlined here, actual checks are in config/isl.m4
f8bf9252
SP
5842
5843
33ad93b9
RG
5844# Check whether --with-isl was given.
5845if test "${with_isl+set}" = set; then :
5846 withval=$with_isl;
5213506e 5847fi
f8bf9252 5848
f8bf9252 5849
eae1a5d4 5850# Treat --without-isl as a request to disable
625afa23 5851# GRAPHITE support and skip all following checks.
eae1a5d4 5852if test "x$with_isl" != "xno"; then
e357a5e0 5853 # Check for isl
625afa23
RG
5854
5855
33ad93b9
RG
5856# Check whether --with-isl-include was given.
5857if test "${with_isl_include+set}" = set; then :
5858 withval=$with_isl_include;
5213506e
RW
5859fi
5860
f8bf9252 5861
33ad93b9
RG
5862# Check whether --with-isl-lib was given.
5863if test "${with_isl_lib+set}" = set; then :
5864 withval=$with_isl_lib;
5213506e 5865fi
f8bf9252 5866
f8bf9252 5867
33ad93b9
RG
5868 # Check whether --enable-isl-version-check was given.
5869if test "${enable_isl_version_check+set}" = set; then :
5870 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5871else
5872 ENABLE_ISL_CHECK=yes
7d32a440
SP
5873fi
5874
5875
33ad93b9
RG
5876 # Initialize isllibs and islinc.
5877 case $with_isl in
5878 no)
5879 isllibs=
5880 islinc=
5881 ;;
5882 "" | yes)
5883 ;;
5884 *)
5885 isllibs="-L$with_isl/lib"
5886 islinc="-I$with_isl/include"
5887 ;;
5888 esac
5889 if test "x${with_isl_include}" != x ; then
5890 islinc="-I$with_isl_include"
5891 fi
5892 if test "x${with_isl_lib}" != x; then
5893 isllibs="-L$with_isl_lib"
5894 fi
5895 if test "x${islinc}" = x && test "x${isllibs}" = x \
5896 && test -d ${srcdir}/isl; then
5897 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5898 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5899 ENABLE_ISL_CHECK=no
560d18d3
AK
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5901$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
33ad93b9 5902 fi
7d32a440 5903
eae1a5d4
RG
5904 isllibs="${isllibs} -lisl"
5905
7d32a440 5906
7d32a440 5907
9847828b
RB
5908 if test "${ENABLE_ISL_CHECK}" = yes ; then
5909 _isl_saved_CFLAGS=$CFLAGS
5910 _isl_saved_LDFLAGS=$LDFLAGS
5911 _isl_saved_LIBS=$LIBS
5912
5913 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
70decafb
NS
5914 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
5915 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
9847828b 5916
c661a43d
SP
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5
5918$as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; }
e0c0c325 5919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
622dbadf 5920/* end confdefs.h. */
560d18d3 5921#include <isl/ctx.h>
622dbadf
BC
5922int
5923main ()
5924{
560d18d3 5925isl_ctx_get_max_operations (isl_ctx_alloc ());
622dbadf
BC
5926 ;
5927 return 0;
5928}
5929_ACEOF
5930if ac_fn_c_try_link "$LINENO"; then :
9847828b 5931 gcc_cv_isl=yes
622dbadf
BC
5932else
5933 gcc_cv_isl=no
5934fi
5935rm -f core conftest.err conftest.$ac_objext \
5936 conftest$ac_exeext conftest.$ac_ext
9847828b
RB
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5938$as_echo "$gcc_cv_isl" >&6; }
5939
560d18d3 5940 if test "${gcc_cv_isl}" = no ; then
c661a43d
SP
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&5
5942$as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; }
560d18d3
AK
5943 fi
5944
c661a43d
SP
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5
5946$as_echo_n "checking for isl 0.16 or 0.15... " >&6; }
1e050c90
AK
5947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5948/* end confdefs.h. */
5949#include <isl/schedule.h>
5950int
5951main ()
5952{
5953isl_options_set_schedule_serialize_sccs (NULL, 0);
5954 ;
5955 return 0;
5956}
5957_ACEOF
5958if ac_fn_c_try_link "$LINENO"; then :
5959 ac_has_isl_options_set_schedule_serialize_sccs=yes
5960else
5961 ac_has_isl_options_set_schedule_serialize_sccs=no
5962fi
5963rm -f core conftest.err conftest.$ac_objext \
5964 conftest$ac_exeext conftest.$ac_ext
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
5966$as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
5967
5968 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
5969 islver="0.15"
5970
5971 fi
5972
9847828b
RB
5973 CFLAGS=$_isl_saved_CFLAGS
5974 LDFLAGS=$_isl_saved_LDFLAGS
5975 LIBS=$_isl_saved_LIBS
5976 fi
5977
5978
f8bf9252 5979
f8bf9252 5980
33ad93b9
RG
5981
5982
33ad93b9
RG
5983 if test "x${with_isl}" = xno; then
5984 graphite_requested=no
5985 elif test "x${with_isl}" != x \
5986 || test "x${with_isl_include}" != x \
5987 || test "x${with_isl_lib}" != x ; then
5988 graphite_requested=yes
5989 else
5990 graphite_requested=no
7d32a440 5991 fi
d789184e 5992
d789184e
SP
5993
5994
33ad93b9
RG
5995 if test "${gcc_cv_isl}" = no ; then
5996 isllibs=
5997 islinc=
5998 fi
5999
6000 if test "${graphite_requested}" = yes \
6001 && test "x${isllibs}" = x \
6002 && test "x${islinc}" = x ; then
f8bf9252 6003
e357a5e0 6004 as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5
33ad93b9 6005 fi
f8bf9252 6006
d32ef397 6007
d32ef397
AS
6008fi
6009
e357a5e0 6010# If the isl check failed, disable builds of in-tree variant of isl
625afa23 6011if test "x$with_isl" = xno ||
625afa23 6012 test "x$gcc_cv_isl" = xno; then
4a9bb2aa 6013 noconfigdirs="$noconfigdirs isl"
625afa23 6014 islinc=
32d024bf
RG
6015fi
6016
625afa23
RG
6017
6018
6019
d7f09764
DN
6020# Check for LTO support.
6021# Check whether --enable-lto was given.
6022if test "${enable_lto+set}" = set; then :
6023 enableval=$enable_lto; enable_lto=$enableval
6024else
6025 enable_lto=yes; default_enable_lto=yes
6026fi
6027
6028
7413962d 6029
9a02962b
DK
6030
6031
6032target_elf=no
6033case $target in
6034 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 6035 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8f56cb51 6036 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8ae12d71 6037 nvptx-*-none)
9a02962b
DK
6038 target_elf=no
6039 ;;
6040 *)
6041 target_elf=yes
6042 ;;
6043esac
6044
6045if test $target_elf = yes; then :
48215350
DK
6046 # ELF platforms build the lto-plugin always.
6047 build_lto_plugin=yes
9a02962b 6048
9a02962b
DK
6049else
6050 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 6051 case $target in
9e530bcd 6052 *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
48215350 6053 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
6054 *) enable_lto=no ;;
6055 esac
9a02962b 6056 else
db50fe7d
IS
6057 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6058 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
6059 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6060 # warn during gcc/ subconfigure; unless you're bootstrapping with
6061 # -flto it won't be needed until after installation anyway.
6062 case $target in
9e530bcd 6063 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9a02962b
DK
6064 *) if test x"$enable_lto" = x"yes"; then
6065 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6066 fi
6067 ;;
6068 esac
6069 fi
1cd0b716 6070 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 6071 # Build it unless LTO was explicitly disabled.
1cd0b716 6072 case $target in
48215350 6073 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
6074 *) ;;
6075 esac
48215350 6076
9a02962b
DK
6077fi
6078
d7f09764 6079
45b3824d
TS
6080# Check whether --enable-linker-plugin-configure-flags was given.
6081if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6082 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6083else
6084 extra_linker_plugin_configure_flags=
6085fi
6086
6087
6088# Check whether --enable-linker-plugin-flags was given.
6089if test "${enable_linker_plugin_flags+set}" = set; then :
6090 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6091else
6092 extra_linker_plugin_flags=
6093fi
6094
6095
6096
f8bf9252 6097
0823efed 6098# By default, C and C++ are the only stage 1 languages.
e1888513 6099stage1_languages=,c,
2805b53a 6100
00020c16 6101# Target libraries that we bootstrap.
ad1e5170 6102bootstrap_target_libs=,target-libgcc,
00020c16 6103
55ffb5ed
NN
6104# Figure out what language subdirectories are present.
6105# Look if the user specified --enable-languages="..."; if not, use
6106# the environment variable $LANGUAGES if defined. $LANGUAGES might
6107# go away some day.
6108# NB: embedded tabs in this IF block -- do not untabify
6109if test -d ${srcdir}/gcc; then
6110 if test x"${enable_languages+set}" != xset; then
6111 if test x"${LANGUAGES+set}" = xset; then
6112 enable_languages="${LANGUAGES}"
6b1786aa 6113 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
55ffb5ed
NN
6114 else
6115 enable_languages=all
6116 fi
6117 else
6118 if test x"${enable_languages}" = x ||
6119 test x"${enable_languages}" = xyes;
6120 then
6b1786aa 6121 echo configure.ac: --enable-languages needs at least one language argument 1>&2
55ffb5ed
NN
6122 exit 1
6123 fi
6124 fi
6125 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6126
7f26dfa3
FXC
6127 # 'f95' is the old name for the 'fortran' language. We issue a warning
6128 # and make the substitution.
6129 case ,${enable_languages}, in
6130 *,f95,*)
6b1786aa 6131 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
7f26dfa3
FXC
6132 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6133 ;;
6134 esac
6135
0823efed
DN
6136 # If bootstrapping, C++ must be enabled.
6137 case ",$enable_languages,:$enable_bootstrap" in
6138 *,c++,*:*) ;;
6139 *:yes)
ff3ac0f4
ILT
6140 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6141 enable_languages="${enable_languages},c++"
6142 else
0823efed 6143 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
6144 fi
6145 ;;
6146 esac
6147
55ffb5ed
NN
6148 # First scan to see if an enabled language requires some other language.
6149 # We assume that a given config-lang.in will list all the language
6150 # front ends it requires, even if some are required indirectly.
6151 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6152 case ${lang_frag} in
6153 ..) ;;
6154 # The odd quoting in the next line works around
6155 # an apparent bug in bash 1.12 on linux.
6156 ${srcdir}/gcc/[*]/config-lang.in) ;;
6157 *)
69ecd18f
ILT
6158 # From the config-lang.in, get $language, $lang_requires, and
6159 # $lang_requires_boot_languages.
55ffb5ed
NN
6160 language=
6161 lang_requires=
69ecd18f 6162 lang_requires_boot_languages=
55ffb5ed 6163 . ${lang_frag}
69ecd18f 6164 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
6165 case ,${enable_languages}, in
6166 *,$other,*) ;;
6167 *,all,*) ;;
6168 *,$language,*)
6169 echo " \`$other' language required by \`$language'; enabling" 1>&2
6170 enable_languages="${enable_languages},${other}"
6171 ;;
6172 esac
6173 done
69ecd18f
ILT
6174 for other in ${lang_requires_boot_languages} ; do
6175 if test "$other" != "c"; then
6176 case ,${enable_stage1_languages}, in
6177 *,$other,*) ;;
6178 *,all,*) ;;
6179 *)
6180 case ,${enable_languages}, in
6181 *,$language,*)
6182 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6183 enable_stage1_languages="$enable_stage1_languages,${other}"
6184 ;;
6185 esac
6186 ;;
6187 esac
6188 fi
6189 done
55ffb5ed
NN
6190 ;;
6191 esac
6192 done
6193
e1888513 6194 new_enable_languages=,c,
d7f09764
DN
6195
6196 # If LTO is enabled, add the LTO front end.
d7f09764 6197 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6198 case ,${enable_languages}, in
6199 *,lto,*) ;;
6200 *) enable_languages="${enable_languages},lto" ;;
6201 esac
1cd0b716 6202 if test "${build_lto_plugin}" = "yes" ; then
d7f09764 6203 configdirs="$configdirs lto-plugin"
d7f09764
DN
6204 fi
6205 fi
6206
426c1eb0
TS
6207 # If we're building an offloading compiler, add the LTO front end.
6208 if test x"$enable_as_accelerator_for" != x ; then
6209 case ,${enable_languages}, in
6210 *,lto,*) ;;
6211 *) enable_languages="${enable_languages},lto" ;;
6212 esac
6213 fi
6214
55ffb5ed 6215 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6216 potential_languages=,c,
55ffb5ed 6217
4da3b0f8
ILT
6218 enabled_target_libs=
6219 disabled_target_libs=
6220
55ffb5ed
NN
6221 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6222 case ${lang_frag} in
6223 ..) ;;
6224 # The odd quoting in the next line works around
6225 # an apparent bug in bash 1.12 on linux.
6226 ${srcdir}/gcc/[*]/config-lang.in) ;;
6227 *)
1c710c3c 6228 # From the config-lang.in, get $language, $target_libs,
2805b53a 6229 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6230 language=
6231 target_libs=
6232 lang_dirs=
1546bb64 6233 subdir_requires=
e1888513
PB
6234 boot_language=no
6235 build_by_default=yes
55ffb5ed 6236 . ${lang_frag}
e1888513
PB
6237 if test x${language} = x; then
6238 echo "${lang_frag} doesn't set \$language." 1>&2
6239 exit 1
6240 fi
6241
78767fd9 6242 if test "$language" = "c++"; then
0823efed 6243 boot_language=yes
00020c16
ILT
6244 fi
6245
178f875a 6246 add_this_lang=no
e1888513
PB
6247 case ,${enable_languages}, in
6248 *,${language},*)
d4a10d0a
SB
6249 # Language was explicitly selected; include it
6250 # unless it is C, which is enabled by default.
6251 if test "$language" != "c"; then
6252 add_this_lang=yes
6253 fi
55ffb5ed 6254 ;;
e1888513
PB
6255 *,all,*)
6256 # 'all' was selected, select it if it is a default language
178f875a
JM
6257 if test "$language" != "c"; then
6258 add_this_lang=${build_by_default}
6259 fi
55ffb5ed
NN
6260 ;;
6261 esac
6de9cd9a 6262
1546bb64 6263 # Disable languages that need other directories if these aren't available.
95695ad3 6264 for i in $subdir_requires; do
b6348cb3 6265 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
6266 case ,${enable_languages}, in
6267 *,${language},*)
6268 # Specifically requested language; tell them.
5213506e 6269 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64
PB
6270 ;;
6271 *)
6272 # Silently disable.
e1888513 6273 add_this_lang=unsupported
1546bb64
PB
6274 ;;
6275 esac
6276 done
6277
e1888513
PB
6278 # Disable Ada if no preexisting GNAT is available.
6279 case ,${enable_languages},:${language}:${have_gnat} in
6280 *,${language},*:ada:no)
6281 # Specifically requested language; tell them.
5213506e 6282 as_fn_error "GNAT is required to build $language" "$LINENO" 5
e1888513
PB
6283 ;;
6284 *:ada:no)
6285 # Silently disable.
6286 add_this_lang=unsupported
6287 ;;
6288 esac
6289
4fab7234
HPN
6290 # Disable a language that is unsupported by the target.
6291 case " $unsupported_languages " in
6292 *" $language "*)
e1888513 6293 add_this_lang=unsupported
4fab7234
HPN
6294 ;;
6295 esac
6296
6de9cd9a 6297 case $add_this_lang in
e1888513 6298 unsupported)
55ffb5ed 6299 # Remove language-dependent dirs.
4da3b0f8
ILT
6300 disabled_target_libs="$disabled_target_libs $target_libs"
6301 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 6302 ;;
e1888513
PB
6303 no)
6304 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
6305 disabled_target_libs="$disabled_target_libs $target_libs"
6306 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
6307 potential_languages="${potential_languages}${language},"
6308 ;;
6309 yes)
6310 new_enable_languages="${new_enable_languages}${language},"
6311 potential_languages="${potential_languages}${language},"
2805b53a 6312 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 6313 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
6314 case "${boot_language}:,$enable_stage1_languages," in
6315 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6316 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6317 case ",$stage1_languages," in
6318 *,$language,* | ,yes, | ,all,) ;;
6319 *) stage1_languages="${stage1_languages}${language}," ;;
6320 esac
00020c16
ILT
6321 # We need to bootstrap any supporting libraries.
6322 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6323 ;;
6324 esac
6325 ;;
55ffb5ed
NN
6326 esac
6327 ;;
6328 esac
6329 done
6330
4da3b0f8
ILT
6331 # Add target libraries which are only needed for disabled languages
6332 # to noconfigdirs.
6333 if test -n "$disabled_target_libs"; then
6334 for dir in $disabled_target_libs; do
6335 case " $enabled_target_libs " in
6336 *" ${dir} "*) ;;
6337 *) noconfigdirs="$noconfigdirs $dir" ;;
6338 esac
6339 done
6340 fi
6341
5213506e
RW
6342 # Check whether --enable-stage1-languages was given.
6343if test "${enable_stage1_languages+set}" = set; then :
6344 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6345 ,no,|,,)
6346 # Set it to something that will have no effect in the loop below
6347 enable_stage1_languages=c ;;
6348 ,yes,)
6349 enable_stage1_languages=`echo $new_enable_languages | \
6350 sed -e "s/^,//" -e "s/,$//" ` ;;
6351 *,all,*)
6352 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6353 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6354 esac
6355
6356 # Add "good" languages from enable_stage1_languages to stage1_languages,
6357 # while "bad" languages go in missing_languages. Leave no duplicates.
6358 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6359 case $potential_languages in
6360 *,$i,*)
6361 case $stage1_languages in
6362 *,$i,*) ;;
6363 *) stage1_languages="$stage1_languages$i," ;;
6364 esac ;;
6365 *)
6366 case $missing_languages in
6367 *,$i,*) ;;
6368 *) missing_languages="$missing_languages$i," ;;
6369 esac ;;
6370 esac
6371 done
5213506e
RW
6372fi
6373
e1888513
PB
6374
6375 # Remove leading/trailing commas that were added for simplicity
6376 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6377 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6378 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6379 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6380
55ffb5ed 6381 if test "x$missing_languages" != x; then
5213506e 6382 as_fn_error "
0cf085e4 6383The following requested languages could not be built: ${missing_languages}
5213506e 6384Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6385 fi
55ffb5ed
NN
6386 if test "x$new_enable_languages" != "x$enable_languages"; then
6387 echo The following languages will be built: ${new_enable_languages}
e1888513 6388 enable_languages="$new_enable_languages"
55ffb5ed 6389 fi
e1888513 6390
1c710c3c 6391
b2eaac4a 6392 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6393fi
6394
27079765
AH
6395# Handle --disable-<component> generically.
6396for dir in $configdirs $build_configdirs $target_configdirs ; do
6397 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6398 varname=`echo $dirname | sed -e s/+/_/g`
6399 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6400 noconfigdirs="$noconfigdirs $dir"
6401 fi
6402done
6403
43c40f3e
RO
6404# Check for Boehm's garbage collector
6405# Check whether --enable-objc-gc was given.
6406if test "${enable_objc_gc+set}" = set; then :
114bf3f1
MK
6407 enableval=$enable_objc_gc;
6408fi
6409
6410
6411# Check whether --with-target-bdw-gc was given.
6412if test "${with_target_bdw_gc+set}" = set; then :
6413 withval=$with_target_bdw_gc;
6414fi
6415
6416
6417# Check whether --with-target-bdw-gc-include was given.
6418if test "${with_target_bdw_gc_include+set}" = set; then :
6419 withval=$with_target_bdw_gc_include;
6420fi
6421
6422
6423# Check whether --with-target-bdw-gc-lib was given.
6424if test "${with_target_bdw_gc_lib+set}" = set; then :
6425 withval=$with_target_bdw_gc_lib;
6426fi
6427
6428
6429case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6431$as_echo_n "checking for bdw garbage collector... " >&6; }
6432 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
825fba52
MK
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6434$as_echo "using bdw-gc in default locations" >&6; }
114bf3f1
MK
6435 else
6436 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
6437 as_fn_error "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6438 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
6439 as_fn_error "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6440 else
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6442$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6443 fi
6444 fi
43c40f3e
RO
6445esac
6446
5f520819 6447# Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
99776ebd 6448case ,${enable_languages}, in
1007a55c
JW
6449 *,c++,*)
6450 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6451 case "${noconfigdirs}" in
6452 *target-libstdc++-v3*)
6453 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6454 ;;
6455 *) ;;
6456 esac
6457 ;;
99776ebd 6458 *)
5f520819 6459 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
99776ebd
RH
6460 ;;
6461esac
6462
ee6a22df
L
6463# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6464# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6465# If we have the source for $noconfigdirs entries, add them to $notsupp.
6466
6467notsupp=""
6468for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6469 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6470 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6471 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6472 if test -r $srcdir/$dirname/configure ; then
6473 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6474 true
6475 else
6476 notsupp="$notsupp $dir"
6477 fi
6478 fi
6479 fi
ee6a22df
L
6480 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6481 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6482 if test -r $srcdir/$dirname/configure ; then
6483 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6484 true
6485 else
6486 notsupp="$notsupp $dir"
6487 fi
6488 fi
6489 fi
55ffb5ed
NN
6490 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6491 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6492 if test -r $srcdir/$dirname/configure ; then
6493 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6494 true
6495 else
6496 notsupp="$notsupp $dir"
6497 fi
6498 fi
6499 fi
6500done
6501
55ffb5ed
NN
6502# Quietly strip out all directories which aren't configurable in this tree.
6503# This relies on all configurable subdirectories being autoconfiscated, which
6504# is now the case.
23f6b2f9
PB
6505build_configdirs_all="$build_configdirs"
6506build_configdirs=
6507for i in ${build_configdirs_all} ; do
1c710c3c 6508 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
6509 if test -f ${srcdir}/$j/configure ; then
6510 build_configdirs="${build_configdirs} $i"
6511 fi
6512done
6513
55ffb5ed
NN
6514configdirs_all="$configdirs"
6515configdirs=
6516for i in ${configdirs_all} ; do
6517 if test -f ${srcdir}/$i/configure ; then
6518 configdirs="${configdirs} $i"
6519 fi
6520done
23f6b2f9 6521
55ffb5ed
NN
6522target_configdirs_all="$target_configdirs"
6523target_configdirs=
6524for i in ${target_configdirs_all} ; do
1c710c3c 6525 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
6526 if test -f ${srcdir}/$j/configure ; then
6527 target_configdirs="${target_configdirs} $i"
6528 fi
6529done
6530
45b3824d
TS
6531# libiberty-linker-plugin is special: it doesn't have its own source directory,
6532# so we have to add it after the preceding checks.
6533if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6534then
6535 case " $configdirs " in
6536 *" libiberty "*)
6537 # If we can build libiberty, we can also build libiberty-linker-plugin.
6538 configdirs="$configdirs libiberty-linker-plugin"
6539 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6540 --with-libiberty=../libiberty-linker-plugin";;
6541 *)
6542 as_fn_error "libiberty missing" "$LINENO" 5;;
6543 esac
6544fi
6545
fca38047
TS
6546# Sometimes we have special requirements for the host libiberty.
6547extra_host_libiberty_configure_flags=
1c01ebf6 6548extra_host_zlib_configure_flags=
fca38047
TS
6549case " $configdirs " in
6550 *" lto-plugin "* | *" libcc1 "*)
6551 # When these are to be built as shared libraries, the same applies to
6552 # libiberty.
6553 extra_host_libiberty_configure_flags=--enable-shared
6554 ;;
1c01ebf6
L
6555 *" bfd "*)
6556 # When bfd is to be built as a shared library, the same applies to
6557 # zlib.
6558 if test "$enable_shared" = "yes"; then
6559 extra_host_zlib_configure_flags=--enable-host-shared
6560 fi
6561 ;;
fca38047
TS
6562esac
6563
6564
1c01ebf6 6565
55ffb5ed
NN
6566# Produce a warning message for the subdirs we can't configure.
6567# This isn't especially interesting in the Cygnus tree, but in the individual
6568# FSF releases, it's important to let people know when their machine isn't
6569# supported by the one or two programs in a package.
6570
6571if test -n "${notsupp}" && test -z "${norecursion}" ; then
6572 # If $appdirs is non-empty, at least one of those directories must still
6573 # be configured, or we error out. (E.g., if the gas release supports a
6574 # specified target in some subdirs but not the gas subdir, we shouldn't
6575 # pretend that all is well.)
6576 if test -n "$appdirs" ; then
6577 for dir in $appdirs ; do
6578 if test -r $dir/Makefile.in ; then
6579 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6580 appdirs=""
6581 break
6582 fi
23f6b2f9 6583 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
6584 appdirs=""
6585 break
6586 fi
6587 fi
6588 done
6589 if test -n "$appdirs" ; then
6590 echo "*** This configuration is not supported by this package." 1>&2
6591 exit 1
6592 fi
6593 fi
6594 # Okay, some application will build, or we don't care to check. Still
6595 # notify of subdirs not getting built.
6596 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6597 echo " ${notsupp}" 1>&2
6598 echo " (Any other directories should still work fine.)" 1>&2
6599fi
6600
6601case "$host" in
6602 *msdosdjgpp*)
6603 enable_gdbtk=no ;;
6604esac
6605
c3a86da9
DJ
6606# To find our prefix, in gcc_cv_tool_prefix.
6607
6608# The user is always right.
6609if test "${PATH_SEPARATOR+set}" != set; then
6610 echo "#! /bin/sh" >conf$$.sh
6611 echo "exit 0" >>conf$$.sh
6612 chmod +x conf$$.sh
6613 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6614 PATH_SEPARATOR=';'
6615 else
6616 PATH_SEPARATOR=:
6617 fi
6618 rm -f conf$$.sh
6619fi
6620
6621
6622
6623if test "x$exec_prefix" = xNONE; then
6624 if test "x$prefix" = xNONE; then
6625 gcc_cv_tool_prefix=$ac_default_prefix
6626 else
6627 gcc_cv_tool_prefix=$prefix
6628 fi
6629else
6630 gcc_cv_tool_prefix=$exec_prefix
6631fi
6632
6633# If there is no compiler in the tree, use the PATH only. In any
6634# case, if there is no compiler in the tree nobody should use
6635# AS_FOR_TARGET and LD_FOR_TARGET.
6636if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6637 gcc_version=`cat $srcdir/gcc/BASE-VER`
6638 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6639 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6640 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6641 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6642 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6643 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6644else
6645 gcc_cv_tool_dirs=
6646fi
6647
6648if test x$build = x$target && test -n "$md_exec_prefix"; then
6649 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6650fi
6651
6652
6653
55ffb5ed
NN
6654copy_dirs=
6655
1c710c3c 6656
5213506e
RW
6657# Check whether --with-build-sysroot was given.
6658if test "${with_build_sysroot+set}" = set; then :
6659 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
6660 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6661 fi
6662else
6663 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 6664fi
526635cb
MM
6665
6666
c8aea42c 6667
5213506e
RW
6668
6669# Check whether --with-debug-prefix-map was given.
6670if test "${with_debug_prefix_map+set}" = set; then :
6671 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
6672 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6673 for debug_map in $withval; do
6674 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6675 done
6676 fi
6677else
6678 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
6679fi
6680
c8aea42c
PB
6681
6682
1c8bd6a3
PB
6683# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6684# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6685# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6686# We want to ensure that TARGET libraries (which we know are built with
6687# gcc) are built with "-O2 -g", so include those options when setting
6688# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6689if test "x$CFLAGS_FOR_TARGET" = x; then
fc30054e
AH
6690 if test "x${is_cross_compiler}" = xyes; then
6691 CFLAGS_FOR_TARGET="-g -O2"
6692 else
6693 CFLAGS_FOR_TARGET=$CFLAGS
6694 case " $CFLAGS " in
6695 *" -O2 "*) ;;
6696 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6697 esac
6698 case " $CFLAGS " in
6699 *" -g "* | *" -g3 "*) ;;
6700 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6701 esac
6702 fi
1c8bd6a3
PB
6703fi
6704
6705
6706if test "x$CXXFLAGS_FOR_TARGET" = x; then
fc30054e
AH
6707 if test "x${is_cross_compiler}" = xyes; then
6708 CXXFLAGS_FOR_TARGET="-g -O2"
6709 else
6710 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6711 case " $CXXFLAGS " in
6712 *" -O2 "*) ;;
6713 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6714 esac
6715 case " $CXXFLAGS " in
6716 *" -g "* | *" -g3 "*) ;;
6717 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6718 esac
6719 fi
1c8bd6a3
PB
6720fi
6721
6722
6f57bdf6
DK
6723
6724
55ffb5ed
NN
6725# Handle --with-headers=XXX. If the value is not "yes", the contents of
6726# the named directory are copied to $(tooldir)/sys-include.
6727if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6728 if test x${is_cross_compiler} = xno ; then
6729 echo 1>&2 '***' --with-headers is only supported when cross compiling
6730 exit 1
6731 fi
6732 if test x"${with_headers}" != xyes ; then
c3a86da9 6733 x=${gcc_cv_tool_prefix}
1c710c3c 6734 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
6735 fi
6736fi
6737
6738# Handle --with-libs=XXX. If the value is not "yes", the contents of
6739# the name directories are copied to $(tooldir)/lib. Multiple directories
6740# are permitted.
6741if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6742 if test x${is_cross_compiler} = xno ; then
6743 echo 1>&2 '***' --with-libs is only supported when cross compiling
6744 exit 1
6745 fi
6746 if test x"${with_libs}" != xyes ; then
6747 # Copy the libraries in reverse order, so that files in the first named
6748 # library override files in subsequent libraries.
c3a86da9 6749 x=${gcc_cv_tool_prefix}
55ffb5ed 6750 for l in ${with_libs}; do
1c710c3c 6751 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
6752 done
6753 fi
6754fi
6755
d7f09764 6756# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
6757#
6758# This is done by determining whether or not the appropriate directory
6759# is available, and by checking whether or not specific configurations
6760# have requested that this magic not happen.
1c710c3c
DJ
6761#
6762# The command line options always override the explicit settings in
6b1786aa 6763# configure.ac, and the settings in configure.ac override this magic.
e8b05380 6764#
1c710c3c 6765# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 6766# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
6767# --without-gnu-ld options for the configure script. Similarly, if
6768# the default is to use the included zlib and you don't want to do that,
6769# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
6770
6771if test x${use_gnu_as} = x &&
6772 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6773 with_gnu_as=yes
6774 extra_host_args="$extra_host_args --with-gnu-as"
6775fi
6776
6777if test x${use_gnu_ld} = x &&
5afab7ad 6778 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
6779 with_gnu_ld=yes
6780 extra_host_args="$extra_host_args --with-gnu-ld"
6781fi
6782
d7f09764
DN
6783if test x${use_included_zlib} = x &&
6784 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6785 :
6786else
6787 with_system_zlib=yes
6788 extra_host_args="$extra_host_args --with-system-zlib"
6789fi
6790
e8b05380
PB
6791# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6792# can detect this case.
6793
6794if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6795 with_newlib=yes
6796 extra_host_args="$extra_host_args --with-newlib"
6797fi
6798
55ffb5ed
NN
6799# Handle ${copy_dirs}
6800set fnord ${copy_dirs}
6801shift
6802while test $# != 0 ; do
6803 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6804 :
6805 else
6806 echo Copying $1 to $2
6807
6808 # Use the install script to create the directory and all required
6809 # parent directories.
6810 if test -d $2 ; then
6811 :
6812 else
6813 echo >config.temp
6814 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6815 fi
6816
6817 # Copy the directory, assuming we have tar.
6818 # FIXME: Should we use B in the second tar? Not all systems support it.
6819 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6820
6821 # It is the responsibility of the user to correctly adjust all
6822 # symlinks. If somebody can figure out how to handle them correctly
6823 # here, feel free to add the code.
6824
6825 echo $1 > $2/COPIED
6826 fi
6827 shift; shift
6828done
6829
e8b05380
PB
6830# Determine a target-dependent exec_prefix that the installed
6831# gcc will search in. Keep this list sorted by triplet, with
6832# the *-*-osname triplets last.
6833md_exec_prefix=
6834case "${target}" in
30b74385 6835 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
6836 md_exec_prefix=/dev/env/DJDIR/bin
6837 ;;
e8b05380 6838 *-*-hpux* | \
e8b05380 6839 *-*-nto-qnx* | \
6de66370 6840 *-*-solaris2*)
e8b05380
PB
6841 md_exec_prefix=/usr/ccs/bin
6842 ;;
6843esac
6844
671aa708
NN
6845extra_arflags_for_target=
6846extra_nmflags_for_target=
6847extra_ranlibflags_for_target=
6848target_makefile_frag=/dev/null
6849case "${target}" in
58e24147
AM
6850 spu-*-*)
6851 target_makefile_frag="config/mt-spu"
6852 ;;
d896cc4d 6853 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4bf6c438
RS
6854 target_makefile_frag="config/mt-sde"
6855 ;;
1ec3b87b
RS
6856 mipsisa*-*-elfoabi*)
6857 target_makefile_frag="config/mt-mips-elfoabi"
6858 ;;
08d0963a
RS
6859 mips*-*-*linux* | mips*-*-gnu*)
6860 target_makefile_frag="config/mt-mips-gnu"
6861 ;;
707f1839
SL
6862 nios2-*-elf*)
6863 target_makefile_frag="config/mt-nios2-elf"
6864 ;;
416ac4d4 6865 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 6866 target_makefile_frag="config/mt-gnu"
671aa708
NN
6867 ;;
6868 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 6869 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
6870 # commands to handle both 32-bit and 64-bit objects. These flags are
6871 # harmless if we're using GNU nm or ar.
6872 extra_arflags_for_target=" -X32_64"
6873 extra_nmflags_for_target=" -B -X32_64"
6874 ;;
671aa708
NN
6875esac
6876
6877alphaieee_frag=/dev/null
6878case $target in
6879 alpha*-*-*)
6880 # This just makes sure to use the -mieee option to build target libs.
6881 # This should probably be set individually by each library.
6882 alphaieee_frag="config/mt-alphaieee"
6883 ;;
6884esac
6885
6886# If --enable-target-optspace always use -Os instead of -O2 to build
6887# the target libraries, similarly if it is not specified, use -Os
6888# on selected platforms.
6889ospace_frag=/dev/null
6890case "${enable_target_optspace}:${target}" in
6891 yes:*)
6892 ospace_frag="config/mt-ospace"
6893 ;;
6894 :d30v-*)
6895 ospace_frag="config/mt-d30v"
6896 ;;
d9063947 6897 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
671aa708
NN
6898 ospace_frag="config/mt-ospace"
6899 ;;
6900 no:* | :*)
6901 ;;
6902 *)
6903 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6904 ;;
6905esac
6906
671aa708
NN
6907# Some systems (e.g., one of the i386-aix systems the gas testers are
6908# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 6909tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
6910build_tooldir=${tooldir}
6911
671aa708
NN
6912# Create a .gdbinit file which runs the one in srcdir
6913# and tells GDB to look there for source files.
6914
6915if test -r ${srcdir}/.gdbinit ; then
6916 case ${srcdir} in
6917 .) ;;
6918 *) cat > ./.gdbinit <<EOF
6919# ${NO_EDIT}
6920dir ${srcdir}
6921dir .
6922source ${srcdir}/.gdbinit
6923EOF
6924 ;;
6925 esac
6926fi
6927
671aa708
NN
6928# Make sure that the compiler is able to generate an executable. If it
6929# can't, we are probably in trouble. We don't care whether we can run the
6930# executable--we might be using a cross compiler--we only care whether it
6931# can be created. At this point the main configure script has set CC.
6932we_are_ok=no
6933echo "int main () { return 0; }" > conftest.c
6934${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6935if test $? = 0 ; then
6936 if test -s conftest || test -s conftest.exe ; then
6937 we_are_ok=yes
6938 fi
1c710c3c 6939fi
671aa708
NN
6940case $we_are_ok in
6941 no)
6942 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6943 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6944 rm -f conftest*
6945 exit 1
6946 ;;
6947esac
6948rm -f conftest*
6949
d89f0ad6 6950# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
6951case "${host}" in
6952 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 6953 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 6954 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
6955 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6956esac
6957
d89f0ad6
AL
6958# On systems where the dynamic library environment variable is PATH,
6959# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6960# built executables to PATH.
6961if test "$RPATH_ENVVAR" = PATH; then
6962 GCC_SHLIB_SUBDIR=/shlib
6963else
6964 GCC_SHLIB_SUBDIR=
6965fi
6966
beeda1d9
JJ
6967# Adjust the toplevel makefile according to whether bootstrap was selected.
6968case $enable_bootstrap in
6969 yes)
6970 bootstrap_suffix=bootstrap
6971 BUILD_CONFIG=bootstrap-debug
6972 ;;
6973 no)
6974 bootstrap_suffix=no-bootstrap
6975 BUILD_CONFIG=
6976 ;;
6977esac
6978
6979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6980$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6981
6982
6983# Check whether --with-build-config was given.
6984if test "${with_build_config+set}" = set; then :
6985 withval=$with_build_config; case $with_build_config in
6986 yes) with_build_config= ;;
6987 no) with_build_config= BUILD_CONFIG= ;;
6988 esac
6989fi
6990
6991
6992if test "x${with_build_config}" != x; then
6993 BUILD_CONFIG=$with_build_config
6994else
6995 case $BUILD_CONFIG in
6996 bootstrap-debug)
6997 if echo "int f (void) { return 0; }" > conftest.c &&
6998 ${CC} -c conftest.c &&
6999 mv conftest.o conftest.o.g0 &&
7000 ${CC} -c -g conftest.c &&
7001 mv conftest.o conftest.o.g &&
7002 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7003 :
7004 else
7005 BUILD_CONFIG=
7006 fi
7007 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7008 ;;
7009 esac
7010fi
7011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7012$as_echo "$BUILD_CONFIG" >&6; }
7013
7014
7015# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7017$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7018# Check whether --enable-vtable-verify was given.
7019if test "${enable_vtable_verify+set}" = set; then :
7020 enableval=$enable_vtable_verify; case "$enableval" in
7021 yes) enable_vtable_verify=yes ;;
7022 no) enable_vtable_verify=no ;;
7023 *) enable_vtable_verify=no;;
7024 esac
7025else
7026 enable_vtable_verify=no
7027fi
7028
7029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7030$as_echo "$enable_vtable_verify" >&6; }
7031
671aa708
NN
7032# Record target_configdirs and the configure arguments for target and
7033# build configuration in Makefile.
7034target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 7035build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9e1c8fc1 7036bootstrap_fixincludes=no
671aa708 7037
ad1e5170
JR
7038# If we are building libgomp, bootstrap it.
7039if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7040 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7041fi
7042
beeda1d9
JJ
7043# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7044# or bootstrap-ubsan, bootstrap it.
7045if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7046 case "$BUILD_CONFIG" in
7047 *bootstrap-asan* | *bootstrap-ubsan* )
7048 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9e1c8fc1 7049 bootstrap_fixincludes=yes
beeda1d9
JJ
7050 ;;
7051 esac
ac8701fe
L
7052fi
7053
beeda1d9
JJ
7054# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7055if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7056 test "$enable_vtable_verify" != no; then
2077db1b
CT
7057 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7058fi
7059
c21fdaa1
JJ
7060# If we are building libmpx and $BUILD_CONFIG contains bootstrap-mpx,
7061# bootstrap it.
5373cd33 7062if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
c21fdaa1
JJ
7063 case "$BUILD_CONFIG" in
7064 *bootstrap-mpx* )
7065 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7066 ;;
7067 esac
5373cd33
IE
7068fi
7069
671aa708
NN
7070# Determine whether gdb needs tk/tcl or not.
7071# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7072# and in that case we want gdb to be built without tk. Ugh!
7073# In fact I believe gdb is the *only* package directly dependent on tk,
7074# so we should be able to put the 'maybe's in unconditionally and
7075# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7076# 100% sure that that's safe though.
e914a571 7077
b4f96efe 7078gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
7079case "$enable_gdbtk" in
7080 no)
7081 GDB_TK="" ;;
e914a571
AC
7082 yes)
7083 GDB_TK="${gdb_tk}" ;;
671aa708 7084 *)
e914a571
AC
7085 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7086 # distro. Eventually someone will fix this and move Insight, nee
7087 # gdbtk to a separate directory.
7088 if test -d ${srcdir}/gdb/gdbtk ; then
7089 GDB_TK="${gdb_tk}"
7090 else
7091 GDB_TK=""
7092 fi
7093 ;;
671aa708 7094esac
ef9db8d5
DJ
7095CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7096INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 7097
60975492 7098# Strip out unwanted targets.
8b87bb96
NN
7099
7100# While at that, we remove Makefiles if we were started for recursive
7101# configuration, so that the top-level Makefile reconfigures them,
7102# like we used to do when configure itself was recursive.
8b87bb96 7103
3e54529c
RW
7104# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7105# but now we're fixing up the Makefile ourselves with the additional
7106# commands passed to AC_CONFIG_FILES. Use separate variables
7107# extrasub-{build,host,target} not because there is any reason to split
7108# the substitutions up that way, but only to remain below the limit of
7109# 99 commands in a script, for HP-UX sed.
7110# Do not nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 7111
79cd2b23
RW
7112case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7113 yes:yes:*\ gold\ *:*,c++,*) ;;
7114 yes:yes:*\ gold\ *:*)
7115 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7116 ;;
7117esac
7118
3e54529c 7119extrasub_build=
23f6b2f9 7120for module in ${build_configdirs} ; do
5607edfd
PB
7121 if test -z "${no_recursion}" \
7122 && test -f ${build_subdir}/${module}/Makefile; then
7123 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7124 rm -f ${build_subdir}/${module}/Makefile
7125 fi
3e54529c 7126 extrasub_build="$extrasub_build
5607edfd
PB
7127/^@if build-$module\$/d
7128/^@endif build-$module\$/d
7129/^@if build-$module-$bootstrap_suffix\$/d
7130/^@endif build-$module-$bootstrap_suffix\$/d"
7131done
3e54529c 7132extrasub_host=
5607edfd 7133for module in ${configdirs} ; do
a6fbc1e2 7134 if test -z "${no_recursion}"; then
f063a9ed 7135 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
7136 if test -f ${file}; then
7137 echo 1>&2 "*** removing ${file} to force reconfigure"
7138 rm -f ${file}
7139 fi
7140 done
5607edfd 7141 fi
9e1c8fc1
JJ
7142 case ${module},${bootstrap_fixincludes} in
7143 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7144 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7145 esac
3e54529c 7146 extrasub_host="$extrasub_host
5607edfd
PB
7147/^@if $module\$/d
7148/^@endif $module\$/d
9e1c8fc1
JJ
7149/^@if $module-$host_bootstrap_suffix\$/d
7150/^@endif $module-$host_bootstrap_suffix\$/d"
5607edfd 7151done
3e54529c 7152extrasub_target=
5607edfd
PB
7153for module in ${target_configdirs} ; do
7154 if test -z "${no_recursion}" \
7155 && test -f ${target_subdir}/${module}/Makefile; then
7156 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7157 rm -f ${target_subdir}/${module}/Makefile
7158 fi
00020c16
ILT
7159
7160 # We only bootstrap target libraries listed in bootstrap_target_libs.
7161 case $bootstrap_target_libs in
7162 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7163 *) target_bootstrap_suffix=no-bootstrap ;;
7164 esac
7165
3e54529c 7166 extrasub_target="$extrasub_target
5607edfd
PB
7167/^@if target-$module\$/d
7168/^@endif target-$module\$/d
00020c16
ILT
7169/^@if target-$module-$target_bootstrap_suffix\$/d
7170/^@endif target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
7171done
7172
3e54529c
RW
7173# Do the final fixup along with target modules.
7174extrasub_target="$extrasub_target
60975492 7175/^@if /,/^@endif /d"
671aa708
NN
7176
7177# Create the serialization dependencies. This uses a temporary file.
7178
5213506e
RW
7179# Check whether --enable-serial-configure was given.
7180if test "${enable_serial_configure+set}" = set; then :
7181 enableval=$enable_serial_configure;
7182fi
ade82b16
AO
7183
7184
bf1d3e81
NN
7185case ${enable_serial_configure} in
7186 yes)
7187 enable_serial_build_configure=yes
7188 enable_serial_host_configure=yes
7189 enable_serial_target_configure=yes
7190 ;;
7191esac
7192
671aa708
NN
7193# These force 'configure's to be done one at a time, to avoid problems
7194# with contention over a shared config.cache.
7195rm -f serdep.tmp
ade82b16 7196echo '# serdep.tmp' > serdep.tmp
671aa708 7197olditem=
bf1d3e81 7198test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
7199for item in ${build_configdirs} ; do
7200 case ${olditem} in
7201 "") ;;
ade82b16 7202 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
7203 esac
7204 olditem=${item}
7205done
7206olditem=
bf1d3e81 7207test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
7208for item in ${configdirs} ; do
7209 case ${olditem} in
7210 "") ;;
ade82b16 7211 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
7212 esac
7213 olditem=${item}
7214done
7215olditem=
bf1d3e81 7216test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
7217for item in ${target_configdirs} ; do
7218 case ${olditem} in
7219 "") ;;
ade82b16 7220 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
7221 esac
7222 olditem=${item}
7223done
7224serialization_dependencies=serdep.tmp
7225
7226
ade82b16 7227# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 7228# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
7229# might not want to pass down to subconfigures. The exception being
7230# --cache-file=/dev/null, which is used to turn off the use of cache
7231# files altogether, and which should be passed on to subconfigures.
7232# Also strip program-prefix, program-suffix, and program-transform-name,
7233# so that we can pass down a consistent program-transform-name.
1c710c3c 7234baseargs=
29a63921 7235tbaseargs=
1c710c3c
DJ
7236keep_next=no
7237skip_next=no
7238eval "set -- $ac_configure_args"
44bfc3ac
DJ
7239for ac_arg
7240do
1c710c3c
DJ
7241 if test X"$skip_next" = X"yes"; then
7242 skip_next=no
7243 continue
7244 fi
7245 if test X"$keep_next" = X"yes"; then
7246 case $ac_arg in
7247 *\'*)
7248 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7249 esac
7250 baseargs="$baseargs '$ac_arg'"
29a63921 7251 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
7252 keep_next=no
7253 continue
7254 fi
7255
7256 # Handle separated arguments. Based on the logic generated by
7257 # autoconf 2.59.
7258 case $ac_arg in
7259 *=* | --config-cache | -C | -disable-* | --disable-* \
7260 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7261 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7262 | -with-* | --with-* | -without-* | --without-* | --x)
7263 separate_arg=no
7264 ;;
7265 -*)
7266 separate_arg=yes
7267 ;;
7268 *)
7269 separate_arg=no
7270 ;;
7271 esac
7272
29a63921
AO
7273 skip_targ=no
7274 case $ac_arg in
7275
7276 --with-* | --without-*)
7277 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7278
7279 case $libopt in
7280 *[-_]include)
7281 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7282 ;;
7283 *[-_]lib)
7284 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7285 ;;
7286 *)
7287 lib=$libopt
7288 ;;
7289 esac
7290
7291
7292 case $lib in
4a9bb2aa 7293 mpc | mpfr | gmp | isl)
29a63921
AO
7294 # If we're processing --with-$lib, --with-$lib-include or
7295 # --with-$lib-lib, for one of the libs above, and target is
7296 # different from host, don't pass the current argument to any
7297 # target library's configure.
7298 if test x$is_cross_compiler = xyes; then
7299 skip_targ=yes
7300 fi
7301 ;;
7302 esac
7303 ;;
7304 esac
7305
1c710c3c 7306 case "$ac_arg" in
f1a036e4
NC
7307 --cache-file=/dev/null | \
7308 -cache-file=/dev/null )
7309 # Handled here to avoid the test to skip args below.
7310 baseargs="$baseargs '$ac_arg'"
29a63921 7311 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
7312 # Assert: $separate_arg should always be no.
7313 keep_next=$separate_arg
7314 ;;
1c710c3c
DJ
7315 --no*)
7316 continue
7317 ;;
7318 --c* | \
7319 --sr* | \
7320 --ho* | \
7321 --bu* | \
7322 --t* | \
7323 --program-* | \
7324 -cache_file* | \
7325 -srcdir* | \
7326 -host* | \
7327 -build* | \
7328 -target* | \
7329 -program-prefix* | \
7330 -program-suffix* | \
7331 -program-transform-name* )
7332 skip_next=$separate_arg
7333 continue
7334 ;;
7335 -*)
7336 # An option. Add it.
7337 case $ac_arg in
7338 *\'*)
7339 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7340 esac
7341 baseargs="$baseargs '$ac_arg'"
29a63921
AO
7342 if test X"$skip_targ" = Xno; then
7343 tbaseargs="$tbaseargs '$ac_arg'"
7344 fi
1c710c3c
DJ
7345 keep_next=$separate_arg
7346 ;;
7347 *)
7348 # Either a variable assignment, or a nonopt (triplet). Don't
7349 # pass it down; let the Makefile handle this.
7350 continue
7351 ;;
7352 esac
7353done
7354# Remove the initial space we just introduced and, as these will be
7355# expanded by make, quote '$'.
7356baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7357
43bb47c2
DJ
7358# Add in --program-transform-name, after --program-prefix and
7359# --program-suffix have been applied to it. Autoconf has already
7360# doubled dollar signs and backslashes in program_transform_name; we want
7361# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7362# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7363# Also, because we want to override the logic in subdir configure scripts to
7364# choose program_transform_name, replace any s,x,x, with s,y,y,.
7365sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7366${program_transform_name}
7367EOF_SED
7368gcc_transform_name=`cat conftestsed.out`
7369rm -f conftestsed.out
7370baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 7371tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7372if test "$silent" = yes; then
7373 baseargs="$baseargs --silent"
29a63921 7374 tbaseargs="$tbaseargs --silent"
d9acb717 7375fi
0115d4a3 7376baseargs="$baseargs --disable-option-checking"
29a63921 7377tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 7378
ffedf511
RW
7379# Record and document user additions to sub configure arguments.
7380
7381
7382
7383
671aa708
NN
7384# For the build-side libraries, we just need to pretend we're native,
7385# and not use the same cache file. Multilibs are neither needed nor
3d96b0d0
HPN
7386# desired. We can't even use the same cache file for all build-side
7387# libraries, as they're compiled differently; some with C, some with
7388# C++ or with different feature-enabling options.
7389build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
671aa708
NN
7390
7391# For host modules, accept cache file option, or specification as blank.
7392case "${cache_file}" in
7393"") # empty
7394 cache_file_option="" ;;
7395/* | [A-Za-z]:[\\/]* ) # absolute path
7396 cache_file_option="--cache-file=${cache_file}" ;;
7397*) # relative path
7398 cache_file_option="--cache-file=../${cache_file}" ;;
7399esac
7400
09438bde
NN
7401# Host dirs don't like to share a cache file either, horribly enough.
7402# This seems to be due to autoconf 2.5x stupidity.
ffedf511 7403host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 7404
29a63921 7405target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
7406
7407# Passing a --with-cross-host argument lets the target libraries know
7408# whether they are being built with a cross-compiler or being built
7409# native. However, it would be better to use other mechanisms to make the
7410# sorts of decisions they want to make on this basis. Please consider
7411# this option to be deprecated. FIXME.
7412if test x${is_cross_compiler} = xyes ; then
1c710c3c 7413 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7414fi
7415
79e0604d
FXC
7416# Special user-friendly check for native x86_64-linux build, if
7417# multilib is not explicitly enabled.
7418case "$target:$have_compiler:$host:$target:$enable_multilib" in
7419 x86_64-*linux*:yes:$build:$build:)
e640447c 7420 # Make sure we have a development environment that handles 32-bit
79e0604d
FXC
7421 dev64=no
7422 echo "int main () { return 0; }" > conftest.c
7423 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7424 if test $? = 0 ; then
7425 if test -s conftest || test -s conftest.exe ; then
7426 dev64=yes
7427 fi
7428 fi
7429 rm -f conftest*
7430 if test x${dev64} != xyes ; then
e640447c 7431 as_fn_error "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
79e0604d
FXC
7432 fi
7433 ;;
7434esac
7435
dc683a3f
RW
7436# Default to --enable-multilib.
7437if test x${enable_multilib} = x ; then
671aa708 7438 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 7439fi
671aa708
NN
7440
7441# Pass --with-newlib if appropriate. Note that target_configdirs has
7442# changed from the earlier setting of with_newlib.
7443if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7444 target_configargs="--with-newlib ${target_configargs}"
7445fi
7446
6b9eb62c
NN
7447# Different target subdirs use different values of certain variables
7448# (notably CXX). Worse, multilibs use *lots* of different values.
7449# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7450# it doesn't automatically accept command-line overrides of them.
7451# This means it's not safe for target subdirs to share a cache file,
7452# which is disgusting, but there you have it. Hopefully this can be
7453# fixed in future. It's still worthwhile to use a cache file for each
7454# directory. I think.
7455
bebcd931
MS
7456# Pass the appropriate --build, --host, --target and --cache-file arguments.
7457# We need to pass --target, as newer autoconf's requires consistency
7458# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7459target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7460
671aa708
NN
7461FLAGS_FOR_TARGET=
7462case " $target_configdirs " in
7463 *" newlib "*)
7464 case " $target_configargs " in
7465 *" --with-newlib "*)
7466 case "$target" in
5d571eaa 7467 *-cygwin*)
443e6238 7468 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5d571eaa 7469 ;;
671aa708
NN
7470 esac
7471
7472 # If we're not building GCC, don't discard standard headers.
7473 if test -d ${srcdir}/gcc; then
7474 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7475
7476 if test "${build}" != "${host}"; then
7477 # On Canadian crosses, CC_FOR_TARGET will have already been set
7478 # by `configure', so we won't have an opportunity to add -Bgcc/
7479 # to it. This is right: we don't want to search that directory
7480 # for binaries, but we want the header files in there, so add
7481 # them explicitly.
0463992b 7482 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
7483
7484 # Someone might think of using the pre-installed headers on
7485 # Canadian crosses, in case the installed compiler is not fully
7486 # compatible with the compiler being built. In this case, it
7487 # would be better to flag an error than risking having
7488 # incompatible object files being constructed. We can't
7489 # guarantee that an error will be flagged, but let's hope the
7490 # compiler will do it, when presented with incompatible header
7491 # files.
7492 fi
7493 fi
7494
7495 case "${target}-${is_cross_compiler}" in
f2a0e225 7496 i[3456789]86-*-linux*-no)
671aa708
NN
7497 # Here host == target, so we don't need to build gcc,
7498 # so we don't want to discard standard headers.
7499 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7500 ;;
7501 *)
7502 # If we're building newlib, use its generic headers last, but search
7503 # for any libc-related directories first (so make it the last -B
7504 # switch).
7505 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
7506
7507 # If we're building libgloss, find the startup file, simulator library
7508 # and linker script.
7509 case " $target_configdirs " in
7510 *" libgloss "*)
7511 # Look for startup file, simulator library and maybe linker script.
7512 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7513 # Look for libnosys.a in case the target needs it.
7514 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7515 # Most targets have the linker script in the source directory.
7516 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7517 ;;
7518 esac
671aa708
NN
7519 ;;
7520 esac
7521 ;;
7522 esac
7523 ;;
7524esac
5d571eaa 7525
b91f0a41 7526case "$target" in
5d571eaa
OS
7527 x86_64-*mingw* | *-w64-mingw*)
7528 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7529 # however, use a symlink named 'mingw' in ${prefix} .
7530 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7531 ;;
7532 *-mingw*)
7533 # MinGW can't be handled as Cygwin above since it does not use newlib.
7534 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'
7535 ;;
b91f0a41 7536esac
671aa708 7537
6691a79e
ME
7538# Allow the user to override the flags for
7539# our build compiler if desired.
f019adc1
MF
7540if test x"${build}" = x"${host}" ; then
7541 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7542 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7543 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7544fi
6691a79e 7545
671aa708
NN
7546# On Canadian crosses, we'll be searching the right directories for
7547# the previously-installed cross compiler, so don't bother to add
7548# flags for directories within the install tree of the compiler
7549# being built; programs in there won't even run.
7550if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7551 # Search for pre-installed headers if nothing else fits.
9124bc53 7552 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
7553fi
7554
7555if test "x${use_gnu_ld}" = x &&
7556 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7557 # Arrange for us to find uninstalled linker scripts.
215c351a 7558 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
7559fi
7560
e88a2c09
DD
7561# Search for other target-specific linker scripts and such.
7562case "${target}" in
3e19841a
PB
7563 mep*)
7564 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7565 ;;
e88a2c09
DD
7566esac
7567
671aa708 7568# Makefile fragments.
7b61653a
PE
7569for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7570do
7571 eval fragval=\$$frag
7572 if test $fragval != /dev/null; then
7573 eval $frag=${srcdir}/$fragval
7574 fi
7575done
671aa708
NN
7576
7577
7578
7579
7580
7581# Miscellanea: directories, flags, etc.
7582
7583
7584
7585
7586
7587
7588
d89f0ad6 7589
23f6b2f9 7590# Build module lists & subconfigure args.
671aa708
NN
7591
7592
7593
2abefe3d
PB
7594# Host module lists & subconfigure args.
7595
7596
7597
aae29963 7598
2abefe3d
PB
7599# Target module lists & subconfigure args.
7600
7601
7602
7603# Build tools.
7604
7605
7606
0999159b
PB
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
2abefe3d
PB
7620# Generate default definitions for YACC, M4, LEX and other programs that run
7621# on the build machine. These are used if the Makefile can't locate these
7622# programs in objdir.
7623MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7624
7625for ac_prog in 'bison -y' byacc yacc
7626do
1c710c3c 7627 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7628set dummy $ac_prog; ac_word=$2
5213506e
RW
7629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7630$as_echo_n "checking for $ac_word... " >&6; }
7631if test "${ac_cv_prog_YACC+set}" = set; then :
7632 $as_echo_n "(cached) " >&6
2abefe3d
PB
7633else
7634 if test -n "$YACC"; then
7635 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7636else
1c710c3c
DJ
7637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638for as_dir in $PATH
7639do
7640 IFS=$as_save_IFS
7641 test -z "$as_dir" && as_dir=.
5213506e
RW
7642 for ac_exec_ext in '' $ac_executable_extensions; do
7643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7644 ac_cv_prog_YACC="$ac_prog"
5213506e 7645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7646 break 2
7647 fi
7648done
5213506e
RW
7649 done
7650IFS=$as_save_IFS
1c710c3c 7651
2abefe3d
PB
7652fi
7653fi
1c710c3c 7654YACC=$ac_cv_prog_YACC
2abefe3d 7655if test -n "$YACC"; then
5213506e
RW
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7657$as_echo "$YACC" >&6; }
2abefe3d 7658else
5213506e
RW
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7660$as_echo "no" >&6; }
2abefe3d
PB
7661fi
7662
5213506e 7663
1c710c3c 7664 test -n "$YACC" && break
2abefe3d
PB
7665done
7666test -n "$YACC" || YACC="$MISSING bison -y"
7667
7668case " $build_configdirs " in
7669 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
7670esac
7671
7672for ac_prog in bison
7673do
1c710c3c 7674 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7675set dummy $ac_prog; ac_word=$2
5213506e
RW
7676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7677$as_echo_n "checking for $ac_word... " >&6; }
7678if test "${ac_cv_prog_BISON+set}" = set; then :
7679 $as_echo_n "(cached) " >&6
2abefe3d
PB
7680else
7681 if test -n "$BISON"; then
7682 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7683else
1c710c3c
DJ
7684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685for as_dir in $PATH
7686do
7687 IFS=$as_save_IFS
7688 test -z "$as_dir" && as_dir=.
5213506e
RW
7689 for ac_exec_ext in '' $ac_executable_extensions; do
7690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7691 ac_cv_prog_BISON="$ac_prog"
5213506e 7692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7693 break 2
7694 fi
7695done
5213506e
RW
7696 done
7697IFS=$as_save_IFS
1c710c3c 7698
2abefe3d
PB
7699fi
7700fi
1c710c3c 7701BISON=$ac_cv_prog_BISON
2abefe3d 7702if test -n "$BISON"; then
5213506e
RW
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7704$as_echo "$BISON" >&6; }
2abefe3d 7705else
5213506e
RW
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707$as_echo "no" >&6; }
2abefe3d
PB
7708fi
7709
5213506e 7710
1c710c3c 7711 test -n "$BISON" && break
2abefe3d
PB
7712done
7713test -n "$BISON" || BISON="$MISSING bison"
7714
7715case " $build_configdirs " in
7716 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7717esac
7718
7719for ac_prog in gm4 gnum4 m4
7720do
1c710c3c 7721 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7722set dummy $ac_prog; ac_word=$2
5213506e
RW
7723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7724$as_echo_n "checking for $ac_word... " >&6; }
7725if test "${ac_cv_prog_M4+set}" = set; then :
7726 $as_echo_n "(cached) " >&6
2abefe3d
PB
7727else
7728 if test -n "$M4"; then
7729 ac_cv_prog_M4="$M4" # Let the user override the test.
7730else
1c710c3c
DJ
7731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732for as_dir in $PATH
7733do
7734 IFS=$as_save_IFS
7735 test -z "$as_dir" && as_dir=.
5213506e
RW
7736 for ac_exec_ext in '' $ac_executable_extensions; do
7737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7738 ac_cv_prog_M4="$ac_prog"
5213506e 7739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7740 break 2
7741 fi
7742done
5213506e
RW
7743 done
7744IFS=$as_save_IFS
1c710c3c 7745
2abefe3d
PB
7746fi
7747fi
1c710c3c 7748M4=$ac_cv_prog_M4
2abefe3d 7749if test -n "$M4"; then
5213506e
RW
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7751$as_echo "$M4" >&6; }
2abefe3d 7752else
5213506e
RW
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754$as_echo "no" >&6; }
2abefe3d
PB
7755fi
7756
5213506e 7757
1c710c3c 7758 test -n "$M4" && break
2abefe3d
PB
7759done
7760test -n "$M4" || M4="$MISSING m4"
7761
7762case " $build_configdirs " in
7763 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7764esac
7765
7766for ac_prog in flex lex
7767do
1c710c3c 7768 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7769set dummy $ac_prog; ac_word=$2
5213506e
RW
7770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7771$as_echo_n "checking for $ac_word... " >&6; }
7772if test "${ac_cv_prog_LEX+set}" = set; then :
7773 $as_echo_n "(cached) " >&6
2abefe3d
PB
7774else
7775 if test -n "$LEX"; then
7776 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7777else
1c710c3c
DJ
7778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779for as_dir in $PATH
7780do
7781 IFS=$as_save_IFS
7782 test -z "$as_dir" && as_dir=.
5213506e
RW
7783 for ac_exec_ext in '' $ac_executable_extensions; do
7784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7785 ac_cv_prog_LEX="$ac_prog"
5213506e 7786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7787 break 2
7788 fi
7789done
5213506e
RW
7790 done
7791IFS=$as_save_IFS
1c710c3c 7792
2abefe3d
PB
7793fi
7794fi
1c710c3c 7795LEX=$ac_cv_prog_LEX
2abefe3d 7796if test -n "$LEX"; then
5213506e
RW
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7798$as_echo "$LEX" >&6; }
2abefe3d 7799else
5213506e
RW
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801$as_echo "no" >&6; }
2abefe3d
PB
7802fi
7803
5213506e 7804
1c710c3c 7805 test -n "$LEX" && break
2abefe3d
PB
7806done
7807test -n "$LEX" || LEX="$MISSING flex"
7808
7809case " $build_configdirs " in
7810 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7811 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7812esac
7813
7814for ac_prog in flex
7815do
1c710c3c 7816 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7817set dummy $ac_prog; ac_word=$2
5213506e
RW
7818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7819$as_echo_n "checking for $ac_word... " >&6; }
7820if test "${ac_cv_prog_FLEX+set}" = set; then :
7821 $as_echo_n "(cached) " >&6
2abefe3d
PB
7822else
7823 if test -n "$FLEX"; then
7824 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7825else
1c710c3c
DJ
7826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827for as_dir in $PATH
7828do
7829 IFS=$as_save_IFS
7830 test -z "$as_dir" && as_dir=.
5213506e
RW
7831 for ac_exec_ext in '' $ac_executable_extensions; do
7832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7833 ac_cv_prog_FLEX="$ac_prog"
5213506e 7834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7835 break 2
7836 fi
7837done
5213506e
RW
7838 done
7839IFS=$as_save_IFS
1c710c3c 7840
2abefe3d
PB
7841fi
7842fi
1c710c3c 7843FLEX=$ac_cv_prog_FLEX
2abefe3d 7844if test -n "$FLEX"; then
5213506e
RW
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7846$as_echo "$FLEX" >&6; }
2abefe3d 7847else
5213506e
RW
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849$as_echo "no" >&6; }
2abefe3d
PB
7850fi
7851
5213506e 7852
1c710c3c 7853 test -n "$FLEX" && break
2abefe3d
PB
7854done
7855test -n "$FLEX" || FLEX="$MISSING flex"
7856
7857case " $build_configdirs " in
7858 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7859esac
7860
7861for ac_prog in makeinfo
7862do
1c710c3c 7863 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7864set dummy $ac_prog; ac_word=$2
5213506e
RW
7865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7866$as_echo_n "checking for $ac_word... " >&6; }
7867if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7868 $as_echo_n "(cached) " >&6
2abefe3d
PB
7869else
7870 if test -n "$MAKEINFO"; then
7871 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7872else
1c710c3c
DJ
7873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874for as_dir in $PATH
7875do
7876 IFS=$as_save_IFS
7877 test -z "$as_dir" && as_dir=.
5213506e
RW
7878 for ac_exec_ext in '' $ac_executable_extensions; do
7879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7880 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 7881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7882 break 2
7883 fi
7884done
5213506e
RW
7885 done
7886IFS=$as_save_IFS
1c710c3c 7887
2abefe3d
PB
7888fi
7889fi
1c710c3c 7890MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 7891if test -n "$MAKEINFO"; then
5213506e
RW
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7893$as_echo "$MAKEINFO" >&6; }
2abefe3d 7894else
5213506e
RW
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7896$as_echo "no" >&6; }
2abefe3d
PB
7897fi
7898
5213506e 7899
1c710c3c 7900 test -n "$MAKEINFO" && break
2abefe3d
PB
7901done
7902test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7903
7904case " $build_configdirs " in
7905 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7906 *)
7907
d18ff35a 7908 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
7909 # higher, else we use the "missing" dummy.
7910 if ${MAKEINFO} --version \
d18ff35a 7911 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
7912 :
7913 else
7914 MAKEINFO="$MISSING makeinfo"
7915 fi
7916 ;;
7917
7918esac
671aa708 7919
2abefe3d 7920# FIXME: expect and dejagnu may become build tools?
671aa708 7921
2abefe3d
PB
7922for ac_prog in expect
7923do
1c710c3c 7924 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7925set dummy $ac_prog; ac_word=$2
5213506e
RW
7926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7927$as_echo_n "checking for $ac_word... " >&6; }
7928if test "${ac_cv_prog_EXPECT+set}" = set; then :
7929 $as_echo_n "(cached) " >&6
2abefe3d
PB
7930else
7931 if test -n "$EXPECT"; then
7932 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7933else
1c710c3c
DJ
7934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935for as_dir in $PATH
7936do
7937 IFS=$as_save_IFS
7938 test -z "$as_dir" && as_dir=.
5213506e
RW
7939 for ac_exec_ext in '' $ac_executable_extensions; do
7940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7941 ac_cv_prog_EXPECT="$ac_prog"
5213506e 7942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7943 break 2
7944 fi
7945done
5213506e
RW
7946 done
7947IFS=$as_save_IFS
1c710c3c 7948
2abefe3d
PB
7949fi
7950fi
1c710c3c 7951EXPECT=$ac_cv_prog_EXPECT
2abefe3d 7952if test -n "$EXPECT"; then
5213506e
RW
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7954$as_echo "$EXPECT" >&6; }
2abefe3d 7955else
5213506e
RW
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7957$as_echo "no" >&6; }
2abefe3d 7958fi
671aa708 7959
5213506e 7960
1c710c3c 7961 test -n "$EXPECT" && break
2abefe3d
PB
7962done
7963test -n "$EXPECT" || EXPECT="expect"
671aa708 7964
2abefe3d
PB
7965case " $configdirs " in
7966 *" expect "*)
7967 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7968 ;;
7969esac
671aa708 7970
2abefe3d
PB
7971for ac_prog in runtest
7972do
1c710c3c 7973 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7974set dummy $ac_prog; ac_word=$2
5213506e
RW
7975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7976$as_echo_n "checking for $ac_word... " >&6; }
7977if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7978 $as_echo_n "(cached) " >&6
2abefe3d
PB
7979else
7980 if test -n "$RUNTEST"; then
7981 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 7982else
1c710c3c
DJ
7983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984for as_dir in $PATH
7985do
7986 IFS=$as_save_IFS
7987 test -z "$as_dir" && as_dir=.
5213506e
RW
7988 for ac_exec_ext in '' $ac_executable_extensions; do
7989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7990 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 7991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7992 break 2
7993 fi
7994done
5213506e
RW
7995 done
7996IFS=$as_save_IFS
1c710c3c 7997
2abefe3d
PB
7998fi
7999fi
1c710c3c 8000RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 8001if test -n "$RUNTEST"; then
5213506e
RW
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8003$as_echo "$RUNTEST" >&6; }
2abefe3d 8004else
5213506e
RW
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006$as_echo "no" >&6; }
2abefe3d 8007fi
671aa708 8008
5213506e 8009
1c710c3c 8010 test -n "$RUNTEST" && break
2abefe3d
PB
8011done
8012test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 8013
2abefe3d
PB
8014case " $configdirs " in
8015 *" dejagnu "*)
c394e891 8016 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
8017 ;;
8018esac
671aa708
NN
8019
8020
671aa708 8021# Host tools.
ca9f4b81
AO
8022ncn_tool_prefix=
8023test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8024ncn_target_tool_prefix=
8025test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8026
278a7a38
AO
8027
8028
8029if test -n "$AR"; then
8030 ac_cv_prog_AR=$AR
8031elif test -n "$ac_cv_prog_AR"; then
8032 AR=$ac_cv_prog_AR
8033fi
8034
8035if test -n "$ac_cv_prog_AR"; then
8036 for ncn_progname in ar; do
8037 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8038set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8040$as_echo_n "checking for $ac_word... " >&6; }
8041if test "${ac_cv_prog_AR+set}" = set; then :
8042 $as_echo_n "(cached) " >&6
278a7a38
AO
8043else
8044 if test -n "$AR"; then
8045 ac_cv_prog_AR="$AR" # Let the user override the test.
8046else
8047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8048for as_dir in $PATH
8049do
8050 IFS=$as_save_IFS
8051 test -z "$as_dir" && as_dir=.
5213506e
RW
8052 for ac_exec_ext in '' $ac_executable_extensions; do
8053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8054 ac_cv_prog_AR="${ncn_progname}"
5213506e 8055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8056 break 2
8057 fi
8058done
5213506e
RW
8059 done
8060IFS=$as_save_IFS
278a7a38
AO
8061
8062fi
8063fi
8064AR=$ac_cv_prog_AR
8065if test -n "$AR"; then
5213506e
RW
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8067$as_echo "$AR" >&6; }
278a7a38 8068else
5213506e
RW
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8070$as_echo "no" >&6; }
278a7a38
AO
8071fi
8072
5213506e 8073
278a7a38
AO
8074 done
8075fi
8076
8077for ncn_progname in ar; do
2693c0b0
PB
8078 if test -n "$ncn_tool_prefix"; then
8079 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8080set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8082$as_echo_n "checking for $ac_word... " >&6; }
8083if test "${ac_cv_prog_AR+set}" = set; then :
8084 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8085else
8086 if test -n "$AR"; then
8087 ac_cv_prog_AR="$AR" # Let the user override the test.
8088else
1c710c3c
DJ
8089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090for as_dir in $PATH
8091do
8092 IFS=$as_save_IFS
8093 test -z "$as_dir" && as_dir=.
5213506e
RW
8094 for ac_exec_ext in '' $ac_executable_extensions; do
8095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8096 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 8097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8098 break 2
8099 fi
8100done
5213506e
RW
8101 done
8102IFS=$as_save_IFS
1c710c3c 8103
ca9f4b81
AO
8104fi
8105fi
1c710c3c 8106AR=$ac_cv_prog_AR
ca9f4b81 8107if test -n "$AR"; then
5213506e
RW
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8109$as_echo "$AR" >&6; }
ca9f4b81 8110else
5213506e
RW
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8112$as_echo "no" >&6; }
ca9f4b81
AO
8113fi
8114
5213506e 8115
2693c0b0
PB
8116 fi
8117 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8118 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8119set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8121$as_echo_n "checking for $ac_word... " >&6; }
8122if test "${ac_cv_prog_AR+set}" = set; then :
8123 $as_echo_n "(cached) " >&6
ca9f4b81 8124else
2693c0b0 8125 if test -n "$AR"; then
af71363e
AS
8126 ac_cv_prog_AR="$AR" # Let the user override the test.
8127else
1c710c3c
DJ
8128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8129for as_dir in $PATH
8130do
8131 IFS=$as_save_IFS
8132 test -z "$as_dir" && as_dir=.
5213506e
RW
8133 for ac_exec_ext in '' $ac_executable_extensions; do
8134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8135 ac_cv_prog_AR="${ncn_progname}"
5213506e 8136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8137 break 2
8138 fi
8139done
5213506e
RW
8140 done
8141IFS=$as_save_IFS
1c710c3c 8142
ca9f4b81
AO
8143fi
8144fi
1c710c3c 8145AR=$ac_cv_prog_AR
2693c0b0 8146if test -n "$AR"; then
5213506e
RW
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8148$as_echo "$AR" >&6; }
ca9f4b81 8149else
5213506e
RW
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8151$as_echo "no" >&6; }
ca9f4b81 8152fi
1c710c3c 8153
5213506e 8154
2693c0b0
PB
8155 fi
8156 test -n "$ac_cv_prog_AR" && break
8157done
8158
8159if test -z "$ac_cv_prog_AR" ; then
8160 set dummy ar
8161 if test $build = $host ; then
8162 AR="$2"
ca9f4b81 8163 else
2693c0b0 8164 AR="${ncn_tool_prefix}$2"
ca9f4b81 8165 fi
ca9f4b81
AO
8166fi
8167
278a7a38
AO
8168
8169
8170if test -n "$AS"; then
8171 ac_cv_prog_AS=$AS
8172elif test -n "$ac_cv_prog_AS"; then
8173 AS=$ac_cv_prog_AS
8174fi
8175
8176if test -n "$ac_cv_prog_AS"; then
8177 for ncn_progname in as; do
8178 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8179set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8181$as_echo_n "checking for $ac_word... " >&6; }
8182if test "${ac_cv_prog_AS+set}" = set; then :
8183 $as_echo_n "(cached) " >&6
278a7a38
AO
8184else
8185 if test -n "$AS"; then
8186 ac_cv_prog_AS="$AS" # Let the user override the test.
8187else
8188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8189for as_dir in $PATH
8190do
8191 IFS=$as_save_IFS
8192 test -z "$as_dir" && as_dir=.
5213506e
RW
8193 for ac_exec_ext in '' $ac_executable_extensions; do
8194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8195 ac_cv_prog_AS="${ncn_progname}"
5213506e 8196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8197 break 2
8198 fi
8199done
5213506e
RW
8200 done
8201IFS=$as_save_IFS
278a7a38
AO
8202
8203fi
8204fi
8205AS=$ac_cv_prog_AS
8206if test -n "$AS"; then
5213506e
RW
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8208$as_echo "$AS" >&6; }
278a7a38 8209else
5213506e
RW
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8211$as_echo "no" >&6; }
278a7a38
AO
8212fi
8213
5213506e 8214
278a7a38
AO
8215 done
8216fi
8217
8218for ncn_progname in as; do
2693c0b0
PB
8219 if test -n "$ncn_tool_prefix"; then
8220 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8221set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8223$as_echo_n "checking for $ac_word... " >&6; }
8224if test "${ac_cv_prog_AS+set}" = set; then :
8225 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8226else
8227 if test -n "$AS"; then
8228 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 8229else
1c710c3c
DJ
8230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8231for as_dir in $PATH
8232do
8233 IFS=$as_save_IFS
8234 test -z "$as_dir" && as_dir=.
5213506e
RW
8235 for ac_exec_ext in '' $ac_executable_extensions; do
8236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8237 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 8238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8239 break 2
8240 fi
8241done
5213506e
RW
8242 done
8243IFS=$as_save_IFS
1c710c3c 8244
ca9f4b81
AO
8245fi
8246fi
1c710c3c 8247AS=$ac_cv_prog_AS
ca9f4b81 8248if test -n "$AS"; then
5213506e
RW
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8250$as_echo "$AS" >&6; }
ca9f4b81 8251else
5213506e
RW
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8253$as_echo "no" >&6; }
ca9f4b81
AO
8254fi
8255
5213506e 8256
2693c0b0
PB
8257 fi
8258 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8259 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8260set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8262$as_echo_n "checking for $ac_word... " >&6; }
8263if test "${ac_cv_prog_AS+set}" = set; then :
8264 $as_echo_n "(cached) " >&6
ca9f4b81 8265else
2693c0b0
PB
8266 if test -n "$AS"; then
8267 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 8268else
1c710c3c
DJ
8269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270for as_dir in $PATH
8271do
8272 IFS=$as_save_IFS
8273 test -z "$as_dir" && as_dir=.
5213506e
RW
8274 for ac_exec_ext in '' $ac_executable_extensions; do
8275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8276 ac_cv_prog_AS="${ncn_progname}"
5213506e 8277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8278 break 2
8279 fi
8280done
5213506e
RW
8281 done
8282IFS=$as_save_IFS
1c710c3c 8283
ca9f4b81
AO
8284fi
8285fi
1c710c3c 8286AS=$ac_cv_prog_AS
2693c0b0 8287if test -n "$AS"; then
5213506e
RW
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8289$as_echo "$AS" >&6; }
ca9f4b81 8290else
5213506e
RW
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8292$as_echo "no" >&6; }
ca9f4b81 8293fi
1c710c3c 8294
5213506e 8295
2693c0b0
PB
8296 fi
8297 test -n "$ac_cv_prog_AS" && break
8298done
8299
8300if test -z "$ac_cv_prog_AS" ; then
8301 set dummy as
8302 if test $build = $host ; then
8303 AS="$2"
ca9f4b81 8304 else
2693c0b0 8305 AS="${ncn_tool_prefix}$2"
ca9f4b81 8306 fi
ca9f4b81
AO
8307fi
8308
278a7a38
AO
8309
8310
8311if test -n "$DLLTOOL"; then
8312 ac_cv_prog_DLLTOOL=$DLLTOOL
8313elif test -n "$ac_cv_prog_DLLTOOL"; then
8314 DLLTOOL=$ac_cv_prog_DLLTOOL
8315fi
8316
8317if test -n "$ac_cv_prog_DLLTOOL"; then
8318 for ncn_progname in dlltool; do
8319 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8320set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8322$as_echo_n "checking for $ac_word... " >&6; }
8323if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8324 $as_echo_n "(cached) " >&6
278a7a38
AO
8325else
8326 if test -n "$DLLTOOL"; then
8327 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8328else
8329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8330for as_dir in $PATH
8331do
8332 IFS=$as_save_IFS
8333 test -z "$as_dir" && as_dir=.
5213506e
RW
8334 for ac_exec_ext in '' $ac_executable_extensions; do
8335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8336 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8338 break 2
8339 fi
8340done
5213506e
RW
8341 done
8342IFS=$as_save_IFS
278a7a38
AO
8343
8344fi
8345fi
8346DLLTOOL=$ac_cv_prog_DLLTOOL
8347if test -n "$DLLTOOL"; then
5213506e
RW
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8349$as_echo "$DLLTOOL" >&6; }
278a7a38 8350else
5213506e
RW
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8352$as_echo "no" >&6; }
278a7a38
AO
8353fi
8354
5213506e 8355
278a7a38
AO
8356 done
8357fi
8358
8359for ncn_progname in dlltool; do
2693c0b0
PB
8360 if test -n "$ncn_tool_prefix"; then
8361 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8362set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8364$as_echo_n "checking for $ac_word... " >&6; }
8365if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8366 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8367else
8368 if test -n "$DLLTOOL"; then
8369 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8370else
1c710c3c
DJ
8371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8372for as_dir in $PATH
8373do
8374 IFS=$as_save_IFS
8375 test -z "$as_dir" && as_dir=.
5213506e
RW
8376 for ac_exec_ext in '' $ac_executable_extensions; do
8377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8378 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8380 break 2
8381 fi
8382done
5213506e
RW
8383 done
8384IFS=$as_save_IFS
1c710c3c 8385
ca9f4b81
AO
8386fi
8387fi
1c710c3c 8388DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8389if test -n "$DLLTOOL"; then
5213506e
RW
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8391$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8392else
5213506e
RW
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394$as_echo "no" >&6; }
ca9f4b81
AO
8395fi
8396
5213506e 8397
2693c0b0
PB
8398 fi
8399 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8400 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8401set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8403$as_echo_n "checking for $ac_word... " >&6; }
8404if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8405 $as_echo_n "(cached) " >&6
ca9f4b81 8406else
2693c0b0
PB
8407 if test -n "$DLLTOOL"; then
8408 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8409else
1c710c3c
DJ
8410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411for as_dir in $PATH
8412do
8413 IFS=$as_save_IFS
8414 test -z "$as_dir" && as_dir=.
5213506e
RW
8415 for ac_exec_ext in '' $ac_executable_extensions; do
8416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8417 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8419 break 2
8420 fi
8421done
5213506e
RW
8422 done
8423IFS=$as_save_IFS
1c710c3c 8424
ca9f4b81
AO
8425fi
8426fi
1c710c3c 8427DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8428if test -n "$DLLTOOL"; then
5213506e
RW
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8430$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8431else
5213506e
RW
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8433$as_echo "no" >&6; }
ca9f4b81 8434fi
1c710c3c 8435
5213506e 8436
2693c0b0
PB
8437 fi
8438 test -n "$ac_cv_prog_DLLTOOL" && break
8439done
8440
8441if test -z "$ac_cv_prog_DLLTOOL" ; then
8442 set dummy dlltool
8443 if test $build = $host ; then
8444 DLLTOOL="$2"
ca9f4b81 8445 else
2693c0b0 8446 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8447 fi
ca9f4b81
AO
8448fi
8449
278a7a38
AO
8450
8451
8452if test -n "$LD"; then
8453 ac_cv_prog_LD=$LD
8454elif test -n "$ac_cv_prog_LD"; then
8455 LD=$ac_cv_prog_LD
8456fi
8457
8458if test -n "$ac_cv_prog_LD"; then
8459 for ncn_progname in ld; do
8460 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8461set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8463$as_echo_n "checking for $ac_word... " >&6; }
8464if test "${ac_cv_prog_LD+set}" = set; then :
8465 $as_echo_n "(cached) " >&6
278a7a38
AO
8466else
8467 if test -n "$LD"; then
8468 ac_cv_prog_LD="$LD" # Let the user override the test.
8469else
8470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471for as_dir in $PATH
8472do
8473 IFS=$as_save_IFS
8474 test -z "$as_dir" && as_dir=.
5213506e
RW
8475 for ac_exec_ext in '' $ac_executable_extensions; do
8476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8477 ac_cv_prog_LD="${ncn_progname}"
5213506e 8478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8479 break 2
8480 fi
8481done
5213506e
RW
8482 done
8483IFS=$as_save_IFS
278a7a38
AO
8484
8485fi
8486fi
8487LD=$ac_cv_prog_LD
8488if test -n "$LD"; then
5213506e
RW
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8490$as_echo "$LD" >&6; }
278a7a38 8491else
5213506e
RW
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8493$as_echo "no" >&6; }
278a7a38
AO
8494fi
8495
5213506e 8496
278a7a38
AO
8497 done
8498fi
8499
8500for ncn_progname in ld; do
2693c0b0
PB
8501 if test -n "$ncn_tool_prefix"; then
8502 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8503set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8505$as_echo_n "checking for $ac_word... " >&6; }
8506if test "${ac_cv_prog_LD+set}" = set; then :
8507 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8508else
8509 if test -n "$LD"; then
8510 ac_cv_prog_LD="$LD" # Let the user override the test.
8511else
1c710c3c
DJ
8512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8513for as_dir in $PATH
8514do
8515 IFS=$as_save_IFS
8516 test -z "$as_dir" && as_dir=.
5213506e
RW
8517 for ac_exec_ext in '' $ac_executable_extensions; do
8518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8519 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 8520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8521 break 2
8522 fi
8523done
5213506e
RW
8524 done
8525IFS=$as_save_IFS
1c710c3c 8526
ca9f4b81
AO
8527fi
8528fi
1c710c3c 8529LD=$ac_cv_prog_LD
ca9f4b81 8530if test -n "$LD"; then
5213506e
RW
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8532$as_echo "$LD" >&6; }
ca9f4b81 8533else
5213506e
RW
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8535$as_echo "no" >&6; }
ca9f4b81
AO
8536fi
8537
5213506e 8538
2693c0b0
PB
8539 fi
8540 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8541 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8542set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8544$as_echo_n "checking for $ac_word... " >&6; }
8545if test "${ac_cv_prog_LD+set}" = set; then :
8546 $as_echo_n "(cached) " >&6
ca9f4b81 8547else
2693c0b0
PB
8548 if test -n "$LD"; then
8549 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 8550else
1c710c3c
DJ
8551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8552for as_dir in $PATH
8553do
8554 IFS=$as_save_IFS
8555 test -z "$as_dir" && as_dir=.
5213506e
RW
8556 for ac_exec_ext in '' $ac_executable_extensions; do
8557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8558 ac_cv_prog_LD="${ncn_progname}"
5213506e 8559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8560 break 2
8561 fi
8562done
5213506e
RW
8563 done
8564IFS=$as_save_IFS
1c710c3c 8565
ca9f4b81
AO
8566fi
8567fi
1c710c3c 8568LD=$ac_cv_prog_LD
2693c0b0 8569if test -n "$LD"; then
5213506e
RW
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8571$as_echo "$LD" >&6; }
ca9f4b81 8572else
5213506e
RW
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8574$as_echo "no" >&6; }
ca9f4b81 8575fi
1c710c3c 8576
5213506e 8577
2693c0b0
PB
8578 fi
8579 test -n "$ac_cv_prog_LD" && break
8580done
8581
8582if test -z "$ac_cv_prog_LD" ; then
8583 set dummy ld
8584 if test $build = $host ; then
8585 LD="$2"
ca9f4b81 8586 else
2693c0b0 8587 LD="${ncn_tool_prefix}$2"
ca9f4b81 8588 fi
ca9f4b81
AO
8589fi
8590
278a7a38
AO
8591
8592
8593if test -n "$LIPO"; then
8594 ac_cv_prog_LIPO=$LIPO
8595elif test -n "$ac_cv_prog_LIPO"; then
8596 LIPO=$ac_cv_prog_LIPO
8597fi
8598
8599if test -n "$ac_cv_prog_LIPO"; then
8600 for ncn_progname in lipo; do
8601 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8602set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8604$as_echo_n "checking for $ac_word... " >&6; }
8605if test "${ac_cv_prog_LIPO+set}" = set; then :
8606 $as_echo_n "(cached) " >&6
278a7a38
AO
8607else
8608 if test -n "$LIPO"; then
8609 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8610else
8611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8612for as_dir in $PATH
8613do
8614 IFS=$as_save_IFS
8615 test -z "$as_dir" && as_dir=.
5213506e
RW
8616 for ac_exec_ext in '' $ac_executable_extensions; do
8617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8618 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8620 break 2
8621 fi
8622done
5213506e
RW
8623 done
8624IFS=$as_save_IFS
278a7a38
AO
8625
8626fi
8627fi
8628LIPO=$ac_cv_prog_LIPO
8629if test -n "$LIPO"; then
5213506e
RW
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8631$as_echo "$LIPO" >&6; }
278a7a38 8632else
5213506e
RW
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8634$as_echo "no" >&6; }
278a7a38
AO
8635fi
8636
5213506e 8637
278a7a38
AO
8638 done
8639fi
8640
8641for ncn_progname in lipo; do
2abefe3d
PB
8642 if test -n "$ncn_tool_prefix"; then
8643 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8644set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8646$as_echo_n "checking for $ac_word... " >&6; }
8647if test "${ac_cv_prog_LIPO+set}" = set; then :
8648 $as_echo_n "(cached) " >&6
2abefe3d
PB
8649else
8650 if test -n "$LIPO"; then
8651 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8652else
1c710c3c
DJ
8653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8654for as_dir in $PATH
8655do
8656 IFS=$as_save_IFS
8657 test -z "$as_dir" && as_dir=.
5213506e
RW
8658 for ac_exec_ext in '' $ac_executable_extensions; do
8659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8660 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 8661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8662 break 2
8663 fi
8664done
5213506e
RW
8665 done
8666IFS=$as_save_IFS
1c710c3c 8667
2abefe3d
PB
8668fi
8669fi
1c710c3c 8670LIPO=$ac_cv_prog_LIPO
2abefe3d 8671if test -n "$LIPO"; then
5213506e
RW
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8673$as_echo "$LIPO" >&6; }
2abefe3d 8674else
5213506e
RW
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8676$as_echo "no" >&6; }
2abefe3d
PB
8677fi
8678
5213506e 8679
2abefe3d
PB
8680 fi
8681 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8682 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8683set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8685$as_echo_n "checking for $ac_word... " >&6; }
8686if test "${ac_cv_prog_LIPO+set}" = set; then :
8687 $as_echo_n "(cached) " >&6
2abefe3d
PB
8688else
8689 if test -n "$LIPO"; then
8690 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8691else
1c710c3c
DJ
8692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8693for as_dir in $PATH
8694do
8695 IFS=$as_save_IFS
8696 test -z "$as_dir" && as_dir=.
5213506e
RW
8697 for ac_exec_ext in '' $ac_executable_extensions; do
8698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8699 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8701 break 2
8702 fi
8703done
5213506e
RW
8704 done
8705IFS=$as_save_IFS
1c710c3c 8706
2abefe3d
PB
8707fi
8708fi
1c710c3c 8709LIPO=$ac_cv_prog_LIPO
2abefe3d 8710if test -n "$LIPO"; then
5213506e
RW
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8712$as_echo "$LIPO" >&6; }
2abefe3d 8713else
5213506e
RW
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8715$as_echo "no" >&6; }
2abefe3d 8716fi
1c710c3c 8717
5213506e 8718
2abefe3d
PB
8719 fi
8720 test -n "$ac_cv_prog_LIPO" && break
8721done
8722
8723if test -z "$ac_cv_prog_LIPO" ; then
8724 set dummy lipo
8725 if test $build = $host ; then
8726 LIPO="$2"
8727 else
8728 LIPO="${ncn_tool_prefix}$2"
8729 fi
8730fi
8731
278a7a38
AO
8732
8733
8734if test -n "$NM"; then
8735 ac_cv_prog_NM=$NM
8736elif test -n "$ac_cv_prog_NM"; then
8737 NM=$ac_cv_prog_NM
8738fi
8739
8740if test -n "$ac_cv_prog_NM"; then
8741 for ncn_progname in nm; do
8742 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8743set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8745$as_echo_n "checking for $ac_word... " >&6; }
8746if test "${ac_cv_prog_NM+set}" = set; then :
8747 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8748else
8749 if test -n "$NM"; then
8750 ac_cv_prog_NM="$NM" # Let the user override the test.
8751else
1c710c3c
DJ
8752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8753for as_dir in $PATH
8754do
8755 IFS=$as_save_IFS
8756 test -z "$as_dir" && as_dir=.
5213506e
RW
8757 for ac_exec_ext in '' $ac_executable_extensions; do
8758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8759 ac_cv_prog_NM="${ncn_progname}"
5213506e 8760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8761 break 2
8762 fi
8763done
5213506e
RW
8764 done
8765IFS=$as_save_IFS
1c710c3c 8766
ca9f4b81
AO
8767fi
8768fi
1c710c3c 8769NM=$ac_cv_prog_NM
ca9f4b81 8770if test -n "$NM"; then
5213506e
RW
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8772$as_echo "$NM" >&6; }
ca9f4b81 8773else
5213506e
RW
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8775$as_echo "no" >&6; }
ca9f4b81
AO
8776fi
8777
5213506e 8778
278a7a38
AO
8779 done
8780fi
8781
8782for ncn_progname in nm; do
8783 if test -n "$ncn_tool_prefix"; then
8784 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8785set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8787$as_echo_n "checking for $ac_word... " >&6; }
8788if test "${ac_cv_prog_NM+set}" = set; then :
8789 $as_echo_n "(cached) " >&6
ca9f4b81 8790else
2693c0b0
PB
8791 if test -n "$NM"; then
8792 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 8793else
1c710c3c
DJ
8794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8795for as_dir in $PATH
8796do
8797 IFS=$as_save_IFS
8798 test -z "$as_dir" && as_dir=.
5213506e
RW
8799 for ac_exec_ext in '' $ac_executable_extensions; do
8800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8801 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 8802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8803 break 2
8804 fi
8805done
5213506e
RW
8806 done
8807IFS=$as_save_IFS
1c710c3c 8808
ca9f4b81
AO
8809fi
8810fi
1c710c3c 8811NM=$ac_cv_prog_NM
2693c0b0 8812if test -n "$NM"; then
5213506e
RW
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8814$as_echo "$NM" >&6; }
ca9f4b81 8815else
5213506e
RW
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8817$as_echo "no" >&6; }
ca9f4b81 8818fi
1c710c3c 8819
5213506e 8820
2693c0b0 8821 fi
278a7a38
AO
8822 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8823 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8824set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8826$as_echo_n "checking for $ac_word... " >&6; }
8827if test "${ac_cv_prog_NM+set}" = set; then :
8828 $as_echo_n "(cached) " >&6
278a7a38
AO
8829else
8830 if test -n "$NM"; then
8831 ac_cv_prog_NM="$NM" # Let the user override the test.
8832else
8833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8834for as_dir in $PATH
8835do
8836 IFS=$as_save_IFS
8837 test -z "$as_dir" && as_dir=.
5213506e
RW
8838 for ac_exec_ext in '' $ac_executable_extensions; do
8839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8840 ac_cv_prog_NM="${ncn_progname}"
5213506e 8841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8842 break 2
8843 fi
8844done
5213506e
RW
8845 done
8846IFS=$as_save_IFS
278a7a38
AO
8847
8848fi
8849fi
8850NM=$ac_cv_prog_NM
8851if test -n "$NM"; then
5213506e
RW
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8853$as_echo "$NM" >&6; }
278a7a38 8854else
5213506e
RW
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8856$as_echo "no" >&6; }
278a7a38
AO
8857fi
8858
5213506e 8859
278a7a38
AO
8860 fi
8861 test -n "$ac_cv_prog_NM" && break
8862done
8863
8864if test -z "$ac_cv_prog_NM" ; then
8865 set dummy nm
8866 if test $build = $host ; then
8867 NM="$2"
8868 else
8869 NM="${ncn_tool_prefix}$2"
8870 fi
8871fi
8872
8873
8874
8875if test -n "$RANLIB"; then
8876 ac_cv_prog_RANLIB=$RANLIB
8877elif test -n "$ac_cv_prog_RANLIB"; then
8878 RANLIB=$ac_cv_prog_RANLIB
8879fi
8880
8881if test -n "$ac_cv_prog_RANLIB"; then
8882 for ncn_progname in ranlib; do
8883 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8884set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8886$as_echo_n "checking for $ac_word... " >&6; }
8887if test "${ac_cv_prog_RANLIB+set}" = set; then :
8888 $as_echo_n "(cached) " >&6
278a7a38
AO
8889else
8890 if test -n "$RANLIB"; then
8891 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8892else
8893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8894for as_dir in $PATH
8895do
8896 IFS=$as_save_IFS
8897 test -z "$as_dir" && as_dir=.
5213506e
RW
8898 for ac_exec_ext in '' $ac_executable_extensions; do
8899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8900 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8902 break 2
8903 fi
8904done
5213506e
RW
8905 done
8906IFS=$as_save_IFS
278a7a38
AO
8907
8908fi
8909fi
8910RANLIB=$ac_cv_prog_RANLIB
8911if test -n "$RANLIB"; then
5213506e
RW
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8913$as_echo "$RANLIB" >&6; }
278a7a38 8914else
5213506e
RW
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8916$as_echo "no" >&6; }
278a7a38
AO
8917fi
8918
5213506e 8919
278a7a38
AO
8920 done
8921fi
ca9f4b81 8922
278a7a38 8923for ncn_progname in ranlib; do
2693c0b0
PB
8924 if test -n "$ncn_tool_prefix"; then
8925 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8926set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8928$as_echo_n "checking for $ac_word... " >&6; }
8929if test "${ac_cv_prog_RANLIB+set}" = set; then :
8930 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8931else
8932 if test -n "$RANLIB"; then
8933 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8934else
1c710c3c
DJ
8935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8936for as_dir in $PATH
8937do
8938 IFS=$as_save_IFS
8939 test -z "$as_dir" && as_dir=.
5213506e
RW
8940 for ac_exec_ext in '' $ac_executable_extensions; do
8941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8942 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 8943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8944 break 2
8945 fi
8946done
5213506e
RW
8947 done
8948IFS=$as_save_IFS
1c710c3c 8949
ca9f4b81
AO
8950fi
8951fi
1c710c3c 8952RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 8953if test -n "$RANLIB"; then
5213506e
RW
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8955$as_echo "$RANLIB" >&6; }
ca9f4b81 8956else
5213506e
RW
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8958$as_echo "no" >&6; }
ca9f4b81
AO
8959fi
8960
5213506e 8961
2693c0b0
PB
8962 fi
8963 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8964 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8965set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8967$as_echo_n "checking for $ac_word... " >&6; }
8968if test "${ac_cv_prog_RANLIB+set}" = set; then :
8969 $as_echo_n "(cached) " >&6
ca9f4b81 8970else
2693c0b0
PB
8971 if test -n "$RANLIB"; then
8972 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 8973else
1c710c3c
DJ
8974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8975for as_dir in $PATH
8976do
8977 IFS=$as_save_IFS
8978 test -z "$as_dir" && as_dir=.
5213506e
RW
8979 for ac_exec_ext in '' $ac_executable_extensions; do
8980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8981 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8983 break 2
8984 fi
8985done
5213506e
RW
8986 done
8987IFS=$as_save_IFS
1c710c3c 8988
ca9f4b81
AO
8989fi
8990fi
1c710c3c 8991RANLIB=$ac_cv_prog_RANLIB
2693c0b0 8992if test -n "$RANLIB"; then
5213506e
RW
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8994$as_echo "$RANLIB" >&6; }
ca9f4b81 8995else
5213506e
RW
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8997$as_echo "no" >&6; }
ca9f4b81 8998fi
1c710c3c 8999
5213506e 9000
ca9f4b81 9001 fi
2693c0b0
PB
9002 test -n "$ac_cv_prog_RANLIB" && break
9003done
9004
9005if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 9006 RANLIB="true"
ca9f4b81
AO
9007fi
9008
278a7a38
AO
9009
9010
9011if test -n "$STRIP"; then
9012 ac_cv_prog_STRIP=$STRIP
9013elif test -n "$ac_cv_prog_STRIP"; then
9014 STRIP=$ac_cv_prog_STRIP
9015fi
9016
9017if test -n "$ac_cv_prog_STRIP"; then
9018 for ncn_progname in strip; do
9019 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9020set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9022$as_echo_n "checking for $ac_word... " >&6; }
9023if test "${ac_cv_prog_STRIP+set}" = set; then :
9024 $as_echo_n "(cached) " >&6
278a7a38
AO
9025else
9026 if test -n "$STRIP"; then
9027 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9028else
9029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9030for as_dir in $PATH
9031do
9032 IFS=$as_save_IFS
9033 test -z "$as_dir" && as_dir=.
5213506e
RW
9034 for ac_exec_ext in '' $ac_executable_extensions; do
9035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9036 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9038 break 2
9039 fi
9040done
5213506e
RW
9041 done
9042IFS=$as_save_IFS
278a7a38
AO
9043
9044fi
9045fi
9046STRIP=$ac_cv_prog_STRIP
9047if test -n "$STRIP"; then
5213506e
RW
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9049$as_echo "$STRIP" >&6; }
278a7a38 9050else
5213506e
RW
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9052$as_echo "no" >&6; }
278a7a38
AO
9053fi
9054
5213506e 9055
278a7a38
AO
9056 done
9057fi
9058
9059for ncn_progname in strip; do
2abefe3d
PB
9060 if test -n "$ncn_tool_prefix"; then
9061 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9062set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9064$as_echo_n "checking for $ac_word... " >&6; }
9065if test "${ac_cv_prog_STRIP+set}" = set; then :
9066 $as_echo_n "(cached) " >&6
2abefe3d
PB
9067else
9068 if test -n "$STRIP"; then
9069 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9070else
1c710c3c
DJ
9071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9072for as_dir in $PATH
9073do
9074 IFS=$as_save_IFS
9075 test -z "$as_dir" && as_dir=.
5213506e
RW
9076 for ac_exec_ext in '' $ac_executable_extensions; do
9077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9078 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9080 break 2
9081 fi
9082done
5213506e
RW
9083 done
9084IFS=$as_save_IFS
1c710c3c 9085
2abefe3d
PB
9086fi
9087fi
1c710c3c 9088STRIP=$ac_cv_prog_STRIP
2abefe3d 9089if test -n "$STRIP"; then
5213506e
RW
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9091$as_echo "$STRIP" >&6; }
2abefe3d 9092else
5213506e
RW
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9094$as_echo "no" >&6; }
2abefe3d
PB
9095fi
9096
5213506e 9097
2abefe3d
PB
9098 fi
9099 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9100 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9101set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9103$as_echo_n "checking for $ac_word... " >&6; }
9104if test "${ac_cv_prog_STRIP+set}" = set; then :
9105 $as_echo_n "(cached) " >&6
2abefe3d
PB
9106else
9107 if test -n "$STRIP"; then
9108 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9109else
1c710c3c
DJ
9110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9111for as_dir in $PATH
9112do
9113 IFS=$as_save_IFS
9114 test -z "$as_dir" && as_dir=.
5213506e
RW
9115 for ac_exec_ext in '' $ac_executable_extensions; do
9116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9117 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9119 break 2
9120 fi
9121done
5213506e
RW
9122 done
9123IFS=$as_save_IFS
1c710c3c 9124
2abefe3d
PB
9125fi
9126fi
1c710c3c 9127STRIP=$ac_cv_prog_STRIP
2abefe3d 9128if test -n "$STRIP"; then
5213506e
RW
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9130$as_echo "$STRIP" >&6; }
2abefe3d 9131else
5213506e
RW
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9133$as_echo "no" >&6; }
2abefe3d 9134fi
1c710c3c 9135
5213506e 9136
2abefe3d
PB
9137 fi
9138 test -n "$ac_cv_prog_STRIP" && break
9139done
9140
9141if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 9142 STRIP="true"
2abefe3d
PB
9143fi
9144
278a7a38
AO
9145
9146
9147if test -n "$WINDRES"; then
9148 ac_cv_prog_WINDRES=$WINDRES
9149elif test -n "$ac_cv_prog_WINDRES"; then
9150 WINDRES=$ac_cv_prog_WINDRES
9151fi
9152
9153if test -n "$ac_cv_prog_WINDRES"; then
9154 for ncn_progname in windres; do
9155 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9156set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9158$as_echo_n "checking for $ac_word... " >&6; }
9159if test "${ac_cv_prog_WINDRES+set}" = set; then :
9160 $as_echo_n "(cached) " >&6
278a7a38
AO
9161else
9162 if test -n "$WINDRES"; then
9163 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9164else
9165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9166for as_dir in $PATH
9167do
9168 IFS=$as_save_IFS
9169 test -z "$as_dir" && as_dir=.
5213506e
RW
9170 for ac_exec_ext in '' $ac_executable_extensions; do
9171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9172 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9174 break 2
9175 fi
9176done
5213506e
RW
9177 done
9178IFS=$as_save_IFS
278a7a38
AO
9179
9180fi
9181fi
9182WINDRES=$ac_cv_prog_WINDRES
9183if test -n "$WINDRES"; then
5213506e
RW
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9185$as_echo "$WINDRES" >&6; }
278a7a38 9186else
5213506e
RW
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9188$as_echo "no" >&6; }
278a7a38
AO
9189fi
9190
5213506e 9191
278a7a38
AO
9192 done
9193fi
9194
9195for ncn_progname in windres; do
2693c0b0
PB
9196 if test -n "$ncn_tool_prefix"; then
9197 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9198set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9200$as_echo_n "checking for $ac_word... " >&6; }
9201if test "${ac_cv_prog_WINDRES+set}" = set; then :
9202 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9203else
9204 if test -n "$WINDRES"; then
9205 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9206else
1c710c3c
DJ
9207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9208for as_dir in $PATH
9209do
9210 IFS=$as_save_IFS
9211 test -z "$as_dir" && as_dir=.
5213506e
RW
9212 for ac_exec_ext in '' $ac_executable_extensions; do
9213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9214 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 9215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9216 break 2
9217 fi
9218done
5213506e
RW
9219 done
9220IFS=$as_save_IFS
1c710c3c 9221
ca9f4b81
AO
9222fi
9223fi
1c710c3c 9224WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 9225if test -n "$WINDRES"; then
5213506e
RW
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9227$as_echo "$WINDRES" >&6; }
ca9f4b81 9228else
5213506e
RW
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9230$as_echo "no" >&6; }
ca9f4b81
AO
9231fi
9232
5213506e 9233
2693c0b0
PB
9234 fi
9235 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9236 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9237set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9239$as_echo_n "checking for $ac_word... " >&6; }
9240if test "${ac_cv_prog_WINDRES+set}" = set; then :
9241 $as_echo_n "(cached) " >&6
ca9f4b81 9242else
2693c0b0
PB
9243 if test -n "$WINDRES"; then
9244 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 9245else
1c710c3c
DJ
9246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9247for as_dir in $PATH
9248do
9249 IFS=$as_save_IFS
9250 test -z "$as_dir" && as_dir=.
5213506e
RW
9251 for ac_exec_ext in '' $ac_executable_extensions; do
9252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9253 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9255 break 2
9256 fi
9257done
5213506e
RW
9258 done
9259IFS=$as_save_IFS
1c710c3c 9260
ca9f4b81
AO
9261fi
9262fi
1c710c3c 9263WINDRES=$ac_cv_prog_WINDRES
2693c0b0 9264if test -n "$WINDRES"; then
5213506e
RW
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9266$as_echo "$WINDRES" >&6; }
ca9f4b81 9267else
5213506e
RW
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9269$as_echo "no" >&6; }
ca9f4b81 9270fi
1c710c3c 9271
5213506e 9272
2693c0b0
PB
9273 fi
9274 test -n "$ac_cv_prog_WINDRES" && break
9275done
9276
9277if test -z "$ac_cv_prog_WINDRES" ; then
9278 set dummy windres
9279 if test $build = $host ; then
9280 WINDRES="$2"
ca9f4b81 9281 else
2693c0b0 9282 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9283 fi
ca9f4b81
AO
9284fi
9285
278a7a38
AO
9286
9287
901119ae
KT
9288if test -n "$WINDMC"; then
9289 ac_cv_prog_WINDMC=$WINDMC
9290elif test -n "$ac_cv_prog_WINDMC"; then
9291 WINDMC=$ac_cv_prog_WINDMC
9292fi
9293
9294if test -n "$ac_cv_prog_WINDMC"; then
9295 for ncn_progname in windmc; do
9296 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9297set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9299$as_echo_n "checking for $ac_word... " >&6; }
9300if test "${ac_cv_prog_WINDMC+set}" = set; then :
9301 $as_echo_n "(cached) " >&6
901119ae
KT
9302else
9303 if test -n "$WINDMC"; then
9304 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9305else
9306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9307for as_dir in $PATH
9308do
9309 IFS=$as_save_IFS
9310 test -z "$as_dir" && as_dir=.
5213506e
RW
9311 for ac_exec_ext in '' $ac_executable_extensions; do
9312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9313 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9315 break 2
9316 fi
9317done
5213506e
RW
9318 done
9319IFS=$as_save_IFS
901119ae
KT
9320
9321fi
9322fi
9323WINDMC=$ac_cv_prog_WINDMC
9324if test -n "$WINDMC"; then
5213506e
RW
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9326$as_echo "$WINDMC" >&6; }
901119ae 9327else
5213506e
RW
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9329$as_echo "no" >&6; }
901119ae
KT
9330fi
9331
5213506e 9332
901119ae
KT
9333 done
9334fi
9335
9336for ncn_progname in windmc; do
9337 if test -n "$ncn_tool_prefix"; then
9338 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9339set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9341$as_echo_n "checking for $ac_word... " >&6; }
9342if test "${ac_cv_prog_WINDMC+set}" = set; then :
9343 $as_echo_n "(cached) " >&6
901119ae
KT
9344else
9345 if test -n "$WINDMC"; then
9346 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9347else
9348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9349for as_dir in $PATH
9350do
9351 IFS=$as_save_IFS
9352 test -z "$as_dir" && as_dir=.
5213506e
RW
9353 for ac_exec_ext in '' $ac_executable_extensions; do
9354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9355 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9357 break 2
9358 fi
9359done
5213506e
RW
9360 done
9361IFS=$as_save_IFS
901119ae
KT
9362
9363fi
9364fi
9365WINDMC=$ac_cv_prog_WINDMC
9366if test -n "$WINDMC"; then
5213506e
RW
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9368$as_echo "$WINDMC" >&6; }
901119ae 9369else
5213506e
RW
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9371$as_echo "no" >&6; }
901119ae
KT
9372fi
9373
5213506e 9374
901119ae
KT
9375 fi
9376 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9377 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9378set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9380$as_echo_n "checking for $ac_word... " >&6; }
9381if test "${ac_cv_prog_WINDMC+set}" = set; then :
9382 $as_echo_n "(cached) " >&6
901119ae
KT
9383else
9384 if test -n "$WINDMC"; then
9385 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9386else
9387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9388for as_dir in $PATH
9389do
9390 IFS=$as_save_IFS
9391 test -z "$as_dir" && as_dir=.
5213506e
RW
9392 for ac_exec_ext in '' $ac_executable_extensions; do
9393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9394 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9396 break 2
9397 fi
9398done
5213506e
RW
9399 done
9400IFS=$as_save_IFS
901119ae
KT
9401
9402fi
9403fi
9404WINDMC=$ac_cv_prog_WINDMC
9405if test -n "$WINDMC"; then
5213506e
RW
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9407$as_echo "$WINDMC" >&6; }
901119ae 9408else
5213506e
RW
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9410$as_echo "no" >&6; }
901119ae
KT
9411fi
9412
5213506e 9413
901119ae
KT
9414 fi
9415 test -n "$ac_cv_prog_WINDMC" && break
9416done
9417
9418if test -z "$ac_cv_prog_WINDMC" ; then
9419 set dummy windmc
9420 if test $build = $host ; then
9421 WINDMC="$2"
9422 else
9423 WINDMC="${ncn_tool_prefix}$2"
9424 fi
9425fi
9426
9427
9428
278a7a38
AO
9429if test -n "$OBJCOPY"; then
9430 ac_cv_prog_OBJCOPY=$OBJCOPY
9431elif test -n "$ac_cv_prog_OBJCOPY"; then
9432 OBJCOPY=$ac_cv_prog_OBJCOPY
9433fi
9434
9435if test -n "$ac_cv_prog_OBJCOPY"; then
9436 for ncn_progname in objcopy; do
9437 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9438set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9440$as_echo_n "checking for $ac_word... " >&6; }
9441if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9442 $as_echo_n "(cached) " >&6
278a7a38
AO
9443else
9444 if test -n "$OBJCOPY"; then
9445 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9446else
9447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9448for as_dir in $PATH
9449do
9450 IFS=$as_save_IFS
9451 test -z "$as_dir" && as_dir=.
5213506e
RW
9452 for ac_exec_ext in '' $ac_executable_extensions; do
9453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9454 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9456 break 2
9457 fi
9458done
5213506e
RW
9459 done
9460IFS=$as_save_IFS
278a7a38
AO
9461
9462fi
9463fi
9464OBJCOPY=$ac_cv_prog_OBJCOPY
9465if test -n "$OBJCOPY"; then
5213506e
RW
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9467$as_echo "$OBJCOPY" >&6; }
278a7a38 9468else
5213506e
RW
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9470$as_echo "no" >&6; }
278a7a38
AO
9471fi
9472
5213506e 9473
278a7a38
AO
9474 done
9475fi
9476
9477for ncn_progname in objcopy; do
2693c0b0
PB
9478 if test -n "$ncn_tool_prefix"; then
9479 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9480set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9482$as_echo_n "checking for $ac_word... " >&6; }
9483if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9484 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9485else
9486 if test -n "$OBJCOPY"; then
9487 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9488else
1c710c3c
DJ
9489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9490for as_dir in $PATH
9491do
9492 IFS=$as_save_IFS
9493 test -z "$as_dir" && as_dir=.
5213506e
RW
9494 for ac_exec_ext in '' $ac_executable_extensions; do
9495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9496 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9498 break 2
9499 fi
9500done
5213506e
RW
9501 done
9502IFS=$as_save_IFS
1c710c3c 9503
ca9f4b81
AO
9504fi
9505fi
1c710c3c 9506OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 9507if test -n "$OBJCOPY"; then
5213506e
RW
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9509$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9510else
5213506e
RW
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9512$as_echo "no" >&6; }
ca9f4b81
AO
9513fi
9514
5213506e 9515
2693c0b0
PB
9516 fi
9517 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9518 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9519set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9521$as_echo_n "checking for $ac_word... " >&6; }
9522if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9523 $as_echo_n "(cached) " >&6
ca9f4b81 9524else
2693c0b0
PB
9525 if test -n "$OBJCOPY"; then
9526 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 9527else
1c710c3c
DJ
9528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9529for as_dir in $PATH
9530do
9531 IFS=$as_save_IFS
9532 test -z "$as_dir" && as_dir=.
5213506e
RW
9533 for ac_exec_ext in '' $ac_executable_extensions; do
9534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9535 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9537 break 2
9538 fi
9539done
5213506e
RW
9540 done
9541IFS=$as_save_IFS
1c710c3c 9542
ca9f4b81
AO
9543fi
9544fi
1c710c3c 9545OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 9546if test -n "$OBJCOPY"; then
5213506e
RW
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9548$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9549else
5213506e
RW
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9551$as_echo "no" >&6; }
ca9f4b81 9552fi
1c710c3c 9553
5213506e 9554
2693c0b0
PB
9555 fi
9556 test -n "$ac_cv_prog_OBJCOPY" && break
9557done
9558
9559if test -z "$ac_cv_prog_OBJCOPY" ; then
9560 set dummy objcopy
9561 if test $build = $host ; then
9562 OBJCOPY="$2"
ca9f4b81 9563 else
2693c0b0 9564 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 9565 fi
ca9f4b81
AO
9566fi
9567
278a7a38
AO
9568
9569
9570if test -n "$OBJDUMP"; then
9571 ac_cv_prog_OBJDUMP=$OBJDUMP
9572elif test -n "$ac_cv_prog_OBJDUMP"; then
9573 OBJDUMP=$ac_cv_prog_OBJDUMP
9574fi
9575
9576if test -n "$ac_cv_prog_OBJDUMP"; then
9577 for ncn_progname in objdump; do
9578 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9579set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9581$as_echo_n "checking for $ac_word... " >&6; }
9582if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9583 $as_echo_n "(cached) " >&6
278a7a38
AO
9584else
9585 if test -n "$OBJDUMP"; then
9586 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9587else
9588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9589for as_dir in $PATH
9590do
9591 IFS=$as_save_IFS
9592 test -z "$as_dir" && as_dir=.
5213506e
RW
9593 for ac_exec_ext in '' $ac_executable_extensions; do
9594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9595 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9597 break 2
9598 fi
9599done
5213506e
RW
9600 done
9601IFS=$as_save_IFS
278a7a38
AO
9602
9603fi
9604fi
9605OBJDUMP=$ac_cv_prog_OBJDUMP
9606if test -n "$OBJDUMP"; then
5213506e
RW
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9608$as_echo "$OBJDUMP" >&6; }
278a7a38 9609else
5213506e
RW
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9611$as_echo "no" >&6; }
278a7a38
AO
9612fi
9613
5213506e 9614
278a7a38
AO
9615 done
9616fi
9617
9618for ncn_progname in objdump; do
2693c0b0
PB
9619 if test -n "$ncn_tool_prefix"; then
9620 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9621set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9623$as_echo_n "checking for $ac_word... " >&6; }
9624if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9625 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9626else
9627 if test -n "$OBJDUMP"; then
9628 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9629else
1c710c3c
DJ
9630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9631for as_dir in $PATH
9632do
9633 IFS=$as_save_IFS
9634 test -z "$as_dir" && as_dir=.
5213506e
RW
9635 for ac_exec_ext in '' $ac_executable_extensions; do
9636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9637 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9639 break 2
9640 fi
9641done
5213506e
RW
9642 done
9643IFS=$as_save_IFS
1c710c3c 9644
ca9f4b81
AO
9645fi
9646fi
1c710c3c 9647OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 9648if test -n "$OBJDUMP"; then
5213506e
RW
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9650$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9651else
5213506e
RW
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9653$as_echo "no" >&6; }
ca9f4b81
AO
9654fi
9655
5213506e 9656
2693c0b0
PB
9657 fi
9658 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9659 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9660set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9662$as_echo_n "checking for $ac_word... " >&6; }
9663if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9664 $as_echo_n "(cached) " >&6
ca9f4b81 9665else
2693c0b0
PB
9666 if test -n "$OBJDUMP"; then
9667 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 9668else
1c710c3c
DJ
9669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9670for as_dir in $PATH
9671do
9672 IFS=$as_save_IFS
9673 test -z "$as_dir" && as_dir=.
5213506e
RW
9674 for ac_exec_ext in '' $ac_executable_extensions; do
9675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9676 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9678 break 2
9679 fi
9680done
5213506e
RW
9681 done
9682IFS=$as_save_IFS
1c710c3c 9683
ca9f4b81
AO
9684fi
9685fi
1c710c3c 9686OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 9687if test -n "$OBJDUMP"; then
5213506e
RW
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9689$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9690else
5213506e
RW
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9692$as_echo "no" >&6; }
ca9f4b81 9693fi
1c710c3c 9694
5213506e 9695
2693c0b0
PB
9696 fi
9697 test -n "$ac_cv_prog_OBJDUMP" && break
9698done
9699
9700if test -z "$ac_cv_prog_OBJDUMP" ; then
9701 set dummy objdump
9702 if test $build = $host ; then
9703 OBJDUMP="$2"
ca9f4b81 9704 else
2693c0b0 9705 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 9706 fi
ca9f4b81
AO
9707fi
9708
671aa708
NN
9709
9710
e7a82751
RM
9711if test -n "$READELF"; then
9712 ac_cv_prog_READELF=$READELF
9713elif test -n "$ac_cv_prog_READELF"; then
9714 READELF=$ac_cv_prog_READELF
9715fi
9716
9717if test -n "$ac_cv_prog_READELF"; then
9718 for ncn_progname in readelf; do
9719 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9720set dummy ${ncn_progname}; ac_word=$2
9721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9722$as_echo_n "checking for $ac_word... " >&6; }
9723if test "${ac_cv_prog_READELF+set}" = set; then :
9724 $as_echo_n "(cached) " >&6
9725else
9726 if test -n "$READELF"; then
9727 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9728else
9729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9730for as_dir in $PATH
9731do
9732 IFS=$as_save_IFS
9733 test -z "$as_dir" && as_dir=.
9734 for ac_exec_ext in '' $ac_executable_extensions; do
9735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9736 ac_cv_prog_READELF="${ncn_progname}"
9737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9738 break 2
9739 fi
9740done
9741 done
9742IFS=$as_save_IFS
9743
9744fi
9745fi
9746READELF=$ac_cv_prog_READELF
9747if test -n "$READELF"; then
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9749$as_echo "$READELF" >&6; }
9750else
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9752$as_echo "no" >&6; }
9753fi
9754
9755
9756 done
9757fi
9758
9759for ncn_progname in readelf; do
9760 if test -n "$ncn_tool_prefix"; then
9761 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9762set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9764$as_echo_n "checking for $ac_word... " >&6; }
9765if test "${ac_cv_prog_READELF+set}" = set; then :
9766 $as_echo_n "(cached) " >&6
9767else
9768 if test -n "$READELF"; then
9769 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9770else
9771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9772for as_dir in $PATH
9773do
9774 IFS=$as_save_IFS
9775 test -z "$as_dir" && as_dir=.
9776 for ac_exec_ext in '' $ac_executable_extensions; do
9777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9778 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9780 break 2
9781 fi
9782done
9783 done
9784IFS=$as_save_IFS
9785
9786fi
9787fi
9788READELF=$ac_cv_prog_READELF
9789if test -n "$READELF"; then
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9791$as_echo "$READELF" >&6; }
9792else
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9794$as_echo "no" >&6; }
9795fi
9796
9797
9798 fi
9799 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9800 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9801set dummy ${ncn_progname}; ac_word=$2
9802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9803$as_echo_n "checking for $ac_word... " >&6; }
9804if test "${ac_cv_prog_READELF+set}" = set; then :
9805 $as_echo_n "(cached) " >&6
9806else
9807 if test -n "$READELF"; then
9808 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9809else
9810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9811for as_dir in $PATH
9812do
9813 IFS=$as_save_IFS
9814 test -z "$as_dir" && as_dir=.
9815 for ac_exec_ext in '' $ac_executable_extensions; do
9816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9817 ac_cv_prog_READELF="${ncn_progname}"
9818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9819 break 2
9820 fi
9821done
9822 done
9823IFS=$as_save_IFS
9824
9825fi
9826fi
9827READELF=$ac_cv_prog_READELF
9828if test -n "$READELF"; then
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9830$as_echo "$READELF" >&6; }
9831else
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9833$as_echo "no" >&6; }
9834fi
9835
9836
9837 fi
9838 test -n "$ac_cv_prog_READELF" && break
9839done
9840
9841if test -z "$ac_cv_prog_READELF" ; then
9842 set dummy readelf
9843 if test $build = $host ; then
9844 READELF="$2"
9845 else
9846 READELF="${ncn_tool_prefix}$2"
9847 fi
9848fi
9849
9850
9851
671aa708
NN
9852
9853
9854
2abefe3d 9855# Target tools.
1c710c3c 9856
5213506e
RW
9857# Check whether --with-build-time-tools was given.
9858if test "${with_build_time_tools+set}" = set; then :
9859 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
9860 x/*) ;;
9861 *)
9862 with_build_time_tools=
5213506e
RW
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9864$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
9865 ;;
9866 esac
ca9f4b81 9867else
e8b05380 9868 with_build_time_tools=
5213506e
RW
9869fi
9870
ca9f4b81 9871
278a7a38
AO
9872
9873
9874if test -n "$CC_FOR_TARGET"; then
9875 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9876elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9877 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9878fi
9879
9880if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9881 for ncn_progname in cc gcc; do
9882 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9883set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9885$as_echo_n "checking for $ac_word... " >&6; }
9886if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9887 $as_echo_n "(cached) " >&6
278a7a38
AO
9888else
9889 if test -n "$CC_FOR_TARGET"; then
9890 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9891else
9892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9893for as_dir in $PATH
9894do
9895 IFS=$as_save_IFS
9896 test -z "$as_dir" && as_dir=.
5213506e
RW
9897 for ac_exec_ext in '' $ac_executable_extensions; do
9898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9899 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9901 break 2
9902 fi
9903done
5213506e
RW
9904 done
9905IFS=$as_save_IFS
278a7a38
AO
9906
9907fi
9908fi
9909CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9910if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9912$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 9913else
5213506e
RW
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9915$as_echo "no" >&6; }
278a7a38
AO
9916fi
9917
5213506e 9918
278a7a38
AO
9919 done
9920fi
9921
9922if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9923 for ncn_progname in cc gcc; do
5213506e
RW
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9925$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9926 if test -x $with_build_time_tools/${ncn_progname}; then
9927 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9929$as_echo "yes" >&6; }
72a7ab82 9930 break
e8b05380 9931 else
5213506e
RW
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9933$as_echo "no" >&6; }
72a7ab82
AP
9934 fi
9935 done
4de997d1
PB
9936fi
9937
e8b05380
PB
9938if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9939 for ncn_progname in cc gcc; do
9940 if test -n "$ncn_target_tool_prefix"; then
9941 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9942set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9944$as_echo_n "checking for $ac_word... " >&6; }
9945if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9946 $as_echo_n "(cached) " >&6
4de997d1
PB
9947else
9948 if test -n "$CC_FOR_TARGET"; then
9949 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9950else
1c710c3c
DJ
9951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9952for as_dir in $PATH
9953do
9954 IFS=$as_save_IFS
9955 test -z "$as_dir" && as_dir=.
5213506e
RW
9956 for ac_exec_ext in '' $ac_executable_extensions; do
9957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9958 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9960 break 2
9961 fi
9962done
5213506e
RW
9963 done
9964IFS=$as_save_IFS
1c710c3c 9965
4de997d1
PB
9966fi
9967fi
1c710c3c 9968CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 9969if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9971$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9972else
5213506e
RW
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9974$as_echo "no" >&6; }
4de997d1
PB
9975fi
9976
5213506e 9977
e8b05380
PB
9978 fi
9979 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9980 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9981set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9983$as_echo_n "checking for $ac_word... " >&6; }
9984if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9985 $as_echo_n "(cached) " >&6
4de997d1 9986else
2693c0b0
PB
9987 if test -n "$CC_FOR_TARGET"; then
9988 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 9989else
1c710c3c
DJ
9990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9991for as_dir in $PATH
9992do
9993 IFS=$as_save_IFS
9994 test -z "$as_dir" && as_dir=.
5213506e
RW
9995 for ac_exec_ext in '' $ac_executable_extensions; do
9996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9997 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9999 break 2
10000 fi
10001done
5213506e
RW
10002 done
10003IFS=$as_save_IFS
1c710c3c 10004
4de997d1
PB
10005fi
10006fi
1c710c3c 10007CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 10008if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10010$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 10011else
5213506e
RW
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10013$as_echo "no" >&6; }
4de997d1 10014fi
1c710c3c 10015
5213506e 10016
e8b05380
PB
10017 fi
10018 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10019 done
10020fi
1c710c3c 10021
2693c0b0
PB
10022if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10023 set dummy cc gcc
10024 if test $build = $target ; then
10025 CC_FOR_TARGET="$2"
4de997d1 10026 else
2693c0b0 10027 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10028 fi
1c00b503
PB
10029else
10030 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
10031fi
10032
278a7a38
AO
10033
10034
10035if test -n "$CXX_FOR_TARGET"; then
10036 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10037elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10038 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10039fi
10040
10041if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10042 for ncn_progname in c++ g++ cxx gxx; do
10043 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10044set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10046$as_echo_n "checking for $ac_word... " >&6; }
10047if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10048 $as_echo_n "(cached) " >&6
278a7a38
AO
10049else
10050 if test -n "$CXX_FOR_TARGET"; then
10051 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10052else
10053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10054for as_dir in $PATH
10055do
10056 IFS=$as_save_IFS
10057 test -z "$as_dir" && as_dir=.
5213506e
RW
10058 for ac_exec_ext in '' $ac_executable_extensions; do
10059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10060 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10062 break 2
10063 fi
10064done
5213506e
RW
10065 done
10066IFS=$as_save_IFS
278a7a38
AO
10067
10068fi
10069fi
10070CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10071if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10073$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 10074else
5213506e
RW
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10076$as_echo "no" >&6; }
278a7a38
AO
10077fi
10078
5213506e 10079
278a7a38
AO
10080 done
10081fi
10082
10083if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10084 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10086$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10087 if test -x $with_build_time_tools/${ncn_progname}; then
10088 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10090$as_echo "yes" >&6; }
e8b05380
PB
10091 break
10092 else
5213506e
RW
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10094$as_echo "no" >&6; }
e8b05380
PB
10095 fi
10096 done
10097fi
10098
10099if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10100 for ncn_progname in c++ g++ cxx gxx; do
10101 if test -n "$ncn_target_tool_prefix"; then
10102 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10103set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10105$as_echo_n "checking for $ac_word... " >&6; }
10106if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10107 $as_echo_n "(cached) " >&6
4de997d1
PB
10108else
10109 if test -n "$CXX_FOR_TARGET"; then
10110 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10111else
1c710c3c
DJ
10112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10113for as_dir in $PATH
10114do
10115 IFS=$as_save_IFS
10116 test -z "$as_dir" && as_dir=.
5213506e
RW
10117 for ac_exec_ext in '' $ac_executable_extensions; do
10118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10119 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10121 break 2
10122 fi
10123done
5213506e
RW
10124 done
10125IFS=$as_save_IFS
1c710c3c 10126
4de997d1
PB
10127fi
10128fi
1c710c3c 10129CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 10130if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10132$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10133else
5213506e
RW
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10135$as_echo "no" >&6; }
4de997d1
PB
10136fi
10137
5213506e 10138
e8b05380
PB
10139 fi
10140 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10141 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10142set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10144$as_echo_n "checking for $ac_word... " >&6; }
10145if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10146 $as_echo_n "(cached) " >&6
4de997d1 10147else
2693c0b0
PB
10148 if test -n "$CXX_FOR_TARGET"; then
10149 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 10150else
1c710c3c
DJ
10151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10152for as_dir in $PATH
10153do
10154 IFS=$as_save_IFS
10155 test -z "$as_dir" && as_dir=.
5213506e
RW
10156 for ac_exec_ext in '' $ac_executable_extensions; do
10157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10158 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10160 break 2
10161 fi
10162done
5213506e
RW
10163 done
10164IFS=$as_save_IFS
1c710c3c 10165
4de997d1
PB
10166fi
10167fi
1c710c3c 10168CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 10169if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10171$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10172else
5213506e
RW
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10174$as_echo "no" >&6; }
4de997d1 10175fi
1c710c3c 10176
5213506e 10177
e8b05380
PB
10178 fi
10179 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10180 done
10181fi
1c710c3c 10182
2693c0b0
PB
10183if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10184 set dummy c++ g++ cxx gxx
10185 if test $build = $target ; then
10186 CXX_FOR_TARGET="$2"
4de997d1 10187 else
2693c0b0 10188 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10189 fi
1c00b503
PB
10190else
10191 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
10192fi
10193
278a7a38
AO
10194
10195
10196if test -n "$GCC_FOR_TARGET"; then
10197 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10198elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10199 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10200fi
10201
10202if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10203 for ncn_progname in gcc; do
10204 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10205set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10207$as_echo_n "checking for $ac_word... " >&6; }
10208if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10209 $as_echo_n "(cached) " >&6
278a7a38
AO
10210else
10211 if test -n "$GCC_FOR_TARGET"; then
10212 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10213else
10214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10215for as_dir in $PATH
10216do
10217 IFS=$as_save_IFS
10218 test -z "$as_dir" && as_dir=.
5213506e
RW
10219 for ac_exec_ext in '' $ac_executable_extensions; do
10220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10221 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10223 break 2
10224 fi
10225done
5213506e
RW
10226 done
10227IFS=$as_save_IFS
278a7a38
AO
10228
10229fi
10230fi
10231GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10232if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10234$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 10235else
5213506e
RW
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10237$as_echo "no" >&6; }
278a7a38
AO
10238fi
10239
5213506e 10240
278a7a38
AO
10241 done
10242fi
10243
10244if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10245 for ncn_progname in gcc; do
5213506e
RW
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10247$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10248 if test -x $with_build_time_tools/${ncn_progname}; then
10249 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10251$as_echo "yes" >&6; }
e8b05380
PB
10252 break
10253 else
5213506e
RW
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10255$as_echo "no" >&6; }
e8b05380
PB
10256 fi
10257 done
10258fi
10259
10260if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10261 for ncn_progname in gcc; do
10262 if test -n "$ncn_target_tool_prefix"; then
10263 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10264set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10266$as_echo_n "checking for $ac_word... " >&6; }
10267if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10268 $as_echo_n "(cached) " >&6
ca9f4b81 10269else
e8b05380
PB
10270 if test -n "$GCC_FOR_TARGET"; then
10271 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10272else
1c710c3c
DJ
10273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10274for as_dir in $PATH
10275do
10276 IFS=$as_save_IFS
10277 test -z "$as_dir" && as_dir=.
5213506e
RW
10278 for ac_exec_ext in '' $ac_executable_extensions; do
10279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10280 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10282 break 2
10283 fi
10284done
5213506e
RW
10285 done
10286IFS=$as_save_IFS
1c710c3c 10287
ca9f4b81
AO
10288fi
10289fi
1c710c3c 10290GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10291if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10293$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10294else
5213506e
RW
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10296$as_echo "no" >&6; }
ca9f4b81
AO
10297fi
10298
5213506e 10299
e8b05380
PB
10300 fi
10301 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10302 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10303set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10305$as_echo_n "checking for $ac_word... " >&6; }
10306if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10307 $as_echo_n "(cached) " >&6
ca9f4b81 10308else
e8b05380
PB
10309 if test -n "$GCC_FOR_TARGET"; then
10310 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10311else
1c710c3c
DJ
10312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10313for as_dir in $PATH
10314do
10315 IFS=$as_save_IFS
10316 test -z "$as_dir" && as_dir=.
5213506e
RW
10317 for ac_exec_ext in '' $ac_executable_extensions; do
10318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10319 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10321 break 2
10322 fi
10323done
5213506e
RW
10324 done
10325IFS=$as_save_IFS
1c710c3c 10326
ca9f4b81
AO
10327fi
10328fi
1c710c3c 10329GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10330if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10332$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10333else
5213506e
RW
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10335$as_echo "no" >&6; }
ca9f4b81 10336fi
1c710c3c 10337
5213506e 10338
e8b05380
PB
10339 fi
10340 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10341 done
10342fi
1c710c3c 10343
e8b05380
PB
10344if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10345 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10346else
10347 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10348fi
10349
278a7a38
AO
10350
10351
278a7a38
AO
10352if test -n "$GFORTRAN_FOR_TARGET"; then
10353 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10354elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10355 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10356fi
10357
278a7a38
AO
10358if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10359 for ncn_progname in gfortran; do
10360 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10361set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10363$as_echo_n "checking for $ac_word... " >&6; }
10364if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10365 $as_echo_n "(cached) " >&6
e8b05380 10366else
278a7a38
AO
10367 if test -n "$GFORTRAN_FOR_TARGET"; then
10368 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10369else
1c710c3c
DJ
10370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10371for as_dir in $PATH
10372do
10373 IFS=$as_save_IFS
10374 test -z "$as_dir" && as_dir=.
5213506e
RW
10375 for ac_exec_ext in '' $ac_executable_extensions; do
10376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10377 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10379 break 2
10380 fi
10381done
5213506e
RW
10382 done
10383IFS=$as_save_IFS
1c710c3c 10384
e8b05380
PB
10385fi
10386fi
278a7a38
AO
10387GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10388if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10390$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10391else
5213506e
RW
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10393$as_echo "no" >&6; }
e8b05380 10394fi
1c710c3c 10395
5213506e 10396
e8b05380
PB
10397 done
10398fi
1c710c3c 10399
278a7a38 10400if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10401 for ncn_progname in gfortran; do
5213506e
RW
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10403$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10404 if test -x $with_build_time_tools/${ncn_progname}; then
10405 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10407$as_echo "yes" >&6; }
e8b05380
PB
10408 break
10409 else
5213506e
RW
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10411$as_echo "no" >&6; }
e8b05380
PB
10412 fi
10413 done
10414fi
10415
10416if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10417 for ncn_progname in gfortran; do
10418 if test -n "$ncn_target_tool_prefix"; then
10419 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10420set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10422$as_echo_n "checking for $ac_word... " >&6; }
10423if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10424 $as_echo_n "(cached) " >&6
e8b05380
PB
10425else
10426 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10427 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10428else
10429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10430for as_dir in $PATH
10431do
10432 IFS=$as_save_IFS
10433 test -z "$as_dir" && as_dir=.
5213506e
RW
10434 for ac_exec_ext in '' $ac_executable_extensions; do
10435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10436 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10438 break 2
10439 fi
10440done
5213506e
RW
10441 done
10442IFS=$as_save_IFS
1c710c3c 10443
e8b05380
PB
10444fi
10445fi
1c710c3c 10446GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10447if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10449$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10450else
5213506e
RW
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10452$as_echo "no" >&6; }
e8b05380
PB
10453fi
10454
5213506e 10455
e8b05380
PB
10456 fi
10457 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10458 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10459set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10461$as_echo_n "checking for $ac_word... " >&6; }
10462if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10463 $as_echo_n "(cached) " >&6
e8b05380
PB
10464else
10465 if test -n "$GFORTRAN_FOR_TARGET"; then
10466 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10467else
1c710c3c
DJ
10468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10469for as_dir in $PATH
10470do
10471 IFS=$as_save_IFS
10472 test -z "$as_dir" && as_dir=.
5213506e
RW
10473 for ac_exec_ext in '' $ac_executable_extensions; do
10474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10475 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10477 break 2
10478 fi
10479done
5213506e
RW
10480 done
10481IFS=$as_save_IFS
1c710c3c 10482
e8b05380
PB
10483fi
10484fi
1c710c3c 10485GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10486if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10488$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10489else
5213506e
RW
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10491$as_echo "no" >&6; }
e8b05380 10492fi
1c710c3c 10493
5213506e 10494
e8b05380
PB
10495 fi
10496 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10497 done
10498fi
1c710c3c 10499
e8b05380
PB
10500if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10501 set dummy gfortran
2693c0b0 10502 if test $build = $target ; then
e8b05380 10503 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 10504 else
e8b05380
PB
10505 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10506 fi
1c00b503
PB
10507else
10508 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
10509fi
10510
10511
10512
632e2a07
ILT
10513if test -n "$GOC_FOR_TARGET"; then
10514 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10515elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10516 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10517fi
10518
10519if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10520 for ncn_progname in gccgo; do
10521 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10522set dummy ${ncn_progname}; ac_word=$2
10523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10524$as_echo_n "checking for $ac_word... " >&6; }
10525if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10526 $as_echo_n "(cached) " >&6
10527else
10528 if test -n "$GOC_FOR_TARGET"; then
10529 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10530else
10531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10532for as_dir in $PATH
10533do
10534 IFS=$as_save_IFS
10535 test -z "$as_dir" && as_dir=.
10536 for ac_exec_ext in '' $ac_executable_extensions; do
10537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10538 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10540 break 2
10541 fi
10542done
10543 done
10544IFS=$as_save_IFS
10545
10546fi
10547fi
10548GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10549if test -n "$GOC_FOR_TARGET"; then
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10551$as_echo "$GOC_FOR_TARGET" >&6; }
10552else
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10554$as_echo "no" >&6; }
10555fi
10556
10557
10558 done
10559fi
10560
10561if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10562 for ncn_progname in gccgo; do
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10564$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10565 if test -x $with_build_time_tools/${ncn_progname}; then
10566 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10568$as_echo "yes" >&6; }
10569 break
10570 else
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10572$as_echo "no" >&6; }
10573 fi
10574 done
10575fi
10576
10577if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10578 for ncn_progname in gccgo; do
10579 if test -n "$ncn_target_tool_prefix"; then
10580 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10581set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10583$as_echo_n "checking for $ac_word... " >&6; }
10584if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10585 $as_echo_n "(cached) " >&6
10586else
10587 if test -n "$GOC_FOR_TARGET"; then
10588 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10589else
10590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10591for as_dir in $PATH
10592do
10593 IFS=$as_save_IFS
10594 test -z "$as_dir" && as_dir=.
10595 for ac_exec_ext in '' $ac_executable_extensions; do
10596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10597 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10599 break 2
10600 fi
10601done
10602 done
10603IFS=$as_save_IFS
10604
10605fi
10606fi
10607GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10608if test -n "$GOC_FOR_TARGET"; then
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10610$as_echo "$GOC_FOR_TARGET" >&6; }
10611else
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10613$as_echo "no" >&6; }
10614fi
10615
10616
10617 fi
10618 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10619 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10620set dummy ${ncn_progname}; ac_word=$2
10621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10622$as_echo_n "checking for $ac_word... " >&6; }
10623if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10624 $as_echo_n "(cached) " >&6
10625else
10626 if test -n "$GOC_FOR_TARGET"; then
10627 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10628else
10629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10630for as_dir in $PATH
10631do
10632 IFS=$as_save_IFS
10633 test -z "$as_dir" && as_dir=.
10634 for ac_exec_ext in '' $ac_executable_extensions; do
10635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10636 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10638 break 2
10639 fi
10640done
10641 done
10642IFS=$as_save_IFS
10643
10644fi
10645fi
10646GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10647if test -n "$GOC_FOR_TARGET"; then
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10649$as_echo "$GOC_FOR_TARGET" >&6; }
10650else
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10652$as_echo "no" >&6; }
10653fi
10654
10655
10656 fi
10657 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10658 done
10659fi
10660
10661if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10662 set dummy gccgo
10663 if test $build = $target ; then
10664 GOC_FOR_TARGET="$2"
10665 else
10666 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10667 fi
10668else
10669 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10670fi
10671
10672
10673
e8b05380
PB
10674cat > conftest.c << \EOF
10675#ifdef __GNUC__
10676 gcc_yay;
10677#endif
10678EOF
10679if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10680 have_gcc_for_target=yes
10681else
10682 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10683 have_gcc_for_target=no
10684fi
10685rm conftest.c
10686
10687
10688
10689
10690if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10691 if test -n "$with_build_time_tools"; then
5213506e
RW
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10693$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10694 if test -x $with_build_time_tools/ar; then
10695 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10696 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10698$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 10699 else
5213506e
RW
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10701$as_echo "no" >&6; }
d1f8db0c 10702 fi
e8b05380
PB
10703 elif test $build != $host && test $have_gcc_for_target = yes; then
10704 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
10705 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10706 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
10707 fi
10708fi
3e19841a 10709if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10710 # Extract the first word of "ar", so it can be a program name with args.
10711set dummy ar; ac_word=$2
5213506e
RW
10712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10713$as_echo_n "checking for $ac_word... " >&6; }
10714if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10715 $as_echo_n "(cached) " >&6
e8b05380 10716else
1c710c3c
DJ
10717 case $AR_FOR_TARGET in
10718 [\\/]* | ?:[\\/]*)
e8b05380
PB
10719 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10720 ;;
e8b05380 10721 *)
1c710c3c
DJ
10722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10723for as_dir in $gcc_cv_tool_dirs
10724do
10725 IFS=$as_save_IFS
10726 test -z "$as_dir" && as_dir=.
5213506e
RW
10727 for ac_exec_ext in '' $ac_executable_extensions; do
10728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10729 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10731 break 2
10732 fi
10733done
5213506e
RW
10734 done
10735IFS=$as_save_IFS
1c710c3c 10736
e8b05380
PB
10737 ;;
10738esac
10739fi
1c710c3c 10740AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 10741if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10743$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10744else
5213506e
RW
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10746$as_echo "no" >&6; }
4de997d1
PB
10747fi
10748
5213506e 10749
e8b05380
PB
10750fi
10751if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
10752
10753
10754if test -n "$AR_FOR_TARGET"; then
10755 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10756elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10757 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10758fi
10759
10760if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10761 for ncn_progname in ar; do
10762 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10763set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10765$as_echo_n "checking for $ac_word... " >&6; }
10766if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10767 $as_echo_n "(cached) " >&6
278a7a38
AO
10768else
10769 if test -n "$AR_FOR_TARGET"; then
10770 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10771else
10772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10773for as_dir in $PATH
10774do
10775 IFS=$as_save_IFS
10776 test -z "$as_dir" && as_dir=.
5213506e
RW
10777 for ac_exec_ext in '' $ac_executable_extensions; do
10778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10779 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10781 break 2
10782 fi
10783done
5213506e
RW
10784 done
10785IFS=$as_save_IFS
278a7a38
AO
10786
10787fi
10788fi
10789AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10790if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10792$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 10793else
5213506e
RW
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10795$as_echo "no" >&6; }
278a7a38
AO
10796fi
10797
5213506e 10798
278a7a38
AO
10799 done
10800fi
10801
10802if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10803 for ncn_progname in ar; do
5213506e
RW
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10805$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10806 if test -x $with_build_time_tools/${ncn_progname}; then
10807 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10809$as_echo "yes" >&6; }
e8b05380
PB
10810 break
10811 else
5213506e
RW
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10813$as_echo "no" >&6; }
e8b05380
PB
10814 fi
10815 done
10816fi
10817
10818if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10819 for ncn_progname in ar; do
10820 if test -n "$ncn_target_tool_prefix"; then
10821 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10822set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10824$as_echo_n "checking for $ac_word... " >&6; }
10825if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10826 $as_echo_n "(cached) " >&6
4de997d1 10827else
e8b05380
PB
10828 if test -n "$AR_FOR_TARGET"; then
10829 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 10830else
1c710c3c
DJ
10831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10832for as_dir in $PATH
10833do
10834 IFS=$as_save_IFS
10835 test -z "$as_dir" && as_dir=.
5213506e
RW
10836 for ac_exec_ext in '' $ac_executable_extensions; do
10837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10838 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10840 break 2
10841 fi
10842done
5213506e
RW
10843 done
10844IFS=$as_save_IFS
1c710c3c 10845
4de997d1
PB
10846fi
10847fi
1c710c3c 10848AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10849if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10851$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 10852else
5213506e
RW
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10854$as_echo "no" >&6; }
4de997d1
PB
10855fi
10856
5213506e 10857
e8b05380
PB
10858 fi
10859 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10860 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10861set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10863$as_echo_n "checking for $ac_word... " >&6; }
10864if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10865 $as_echo_n "(cached) " >&6
e8b05380
PB
10866else
10867 if test -n "$AR_FOR_TARGET"; then
10868 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10869else
1c710c3c
DJ
10870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10871for as_dir in $PATH
10872do
10873 IFS=$as_save_IFS
10874 test -z "$as_dir" && as_dir=.
5213506e
RW
10875 for ac_exec_ext in '' $ac_executable_extensions; do
10876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10877 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10879 break 2
10880 fi
10881done
5213506e
RW
10882 done
10883IFS=$as_save_IFS
1c710c3c 10884
e8b05380
PB
10885fi
10886fi
1c710c3c 10887AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10888if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10890$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10891else
5213506e
RW
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10893$as_echo "no" >&6; }
e8b05380 10894fi
1c710c3c 10895
5213506e 10896
e8b05380
PB
10897 fi
10898 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10899 done
10900fi
1c710c3c 10901
e8b05380
PB
10902if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10903 set dummy ar
10904 if test $build = $target ; then
10905 AR_FOR_TARGET="$2"
10906 else
10907 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 10908 fi
1c00b503
PB
10909else
10910 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
10911fi
10912
d1f8db0c
PB
10913else
10914 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
10915fi
10916
10917
10918
10919
10920if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10921 if test -n "$with_build_time_tools"; then
5213506e
RW
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10923$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10924 if test -x $with_build_time_tools/as; then
10925 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10926 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10928$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 10929 else
5213506e
RW
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10931$as_echo "no" >&6; }
d1f8db0c 10932 fi
e8b05380
PB
10933 elif test $build != $host && test $have_gcc_for_target = yes; then
10934 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
10935 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10936 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
10937 fi
10938fi
3e19841a 10939if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10940 # Extract the first word of "as", so it can be a program name with args.
10941set dummy as; ac_word=$2
5213506e
RW
10942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10943$as_echo_n "checking for $ac_word... " >&6; }
10944if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10945 $as_echo_n "(cached) " >&6
e8b05380 10946else
1c710c3c
DJ
10947 case $AS_FOR_TARGET in
10948 [\\/]* | ?:[\\/]*)
e8b05380
PB
10949 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10950 ;;
e8b05380 10951 *)
1c710c3c
DJ
10952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10953for as_dir in $gcc_cv_tool_dirs
10954do
10955 IFS=$as_save_IFS
10956 test -z "$as_dir" && as_dir=.
5213506e
RW
10957 for ac_exec_ext in '' $ac_executable_extensions; do
10958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10959 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10961 break 2
10962 fi
10963done
5213506e
RW
10964 done
10965IFS=$as_save_IFS
1c710c3c 10966
e8b05380
PB
10967 ;;
10968esac
10969fi
1c710c3c 10970AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 10971if test -n "$AS_FOR_TARGET"; then
5213506e
RW
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10973$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 10974else
5213506e
RW
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10976$as_echo "no" >&6; }
e8b05380
PB
10977fi
10978
5213506e 10979
e8b05380
PB
10980fi
10981if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
10982
10983
10984if test -n "$AS_FOR_TARGET"; then
10985 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10986elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10987 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10988fi
10989
10990if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10991 for ncn_progname in as; do
10992 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10993set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10995$as_echo_n "checking for $ac_word... " >&6; }
10996if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10997 $as_echo_n "(cached) " >&6
278a7a38
AO
10998else
10999 if test -n "$AS_FOR_TARGET"; then
11000 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11001else
11002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11003for as_dir in $PATH
11004do
11005 IFS=$as_save_IFS
11006 test -z "$as_dir" && as_dir=.
5213506e
RW
11007 for ac_exec_ext in '' $ac_executable_extensions; do
11008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11009 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11011 break 2
11012 fi
11013done
5213506e
RW
11014 done
11015IFS=$as_save_IFS
278a7a38
AO
11016
11017fi
11018fi
11019AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11020if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11022$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 11023else
5213506e
RW
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11025$as_echo "no" >&6; }
278a7a38
AO
11026fi
11027
5213506e 11028
278a7a38
AO
11029 done
11030fi
11031
11032if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11033 for ncn_progname in as; do
5213506e
RW
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11035$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11036 if test -x $with_build_time_tools/${ncn_progname}; then
11037 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11039$as_echo "yes" >&6; }
e8b05380
PB
11040 break
11041 else
5213506e
RW
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11043$as_echo "no" >&6; }
e8b05380
PB
11044 fi
11045 done
11046fi
11047
11048if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11049 for ncn_progname in as; do
11050 if test -n "$ncn_target_tool_prefix"; then
11051 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11052set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11054$as_echo_n "checking for $ac_word... " >&6; }
11055if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11056 $as_echo_n "(cached) " >&6
e8b05380
PB
11057else
11058 if test -n "$AS_FOR_TARGET"; then
11059 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11060else
1c710c3c
DJ
11061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11062for as_dir in $PATH
11063do
11064 IFS=$as_save_IFS
11065 test -z "$as_dir" && as_dir=.
5213506e
RW
11066 for ac_exec_ext in '' $ac_executable_extensions; do
11067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11068 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11070 break 2
11071 fi
11072done
5213506e
RW
11073 done
11074IFS=$as_save_IFS
1c710c3c 11075
e8b05380
PB
11076fi
11077fi
1c710c3c 11078AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11079if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11081$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11082else
5213506e
RW
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11084$as_echo "no" >&6; }
e8b05380
PB
11085fi
11086
5213506e 11087
e8b05380
PB
11088 fi
11089 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11090 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11091set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11093$as_echo_n "checking for $ac_word... " >&6; }
11094if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11095 $as_echo_n "(cached) " >&6
4de997d1 11096else
e8b05380
PB
11097 if test -n "$AS_FOR_TARGET"; then
11098 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 11099else
1c710c3c
DJ
11100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11101for as_dir in $PATH
11102do
11103 IFS=$as_save_IFS
11104 test -z "$as_dir" && as_dir=.
5213506e
RW
11105 for ac_exec_ext in '' $ac_executable_extensions; do
11106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11107 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11109 break 2
11110 fi
11111done
5213506e
RW
11112 done
11113IFS=$as_save_IFS
1c710c3c 11114
4de997d1
PB
11115fi
11116fi
1c710c3c 11117AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11118if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11120$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 11121else
5213506e
RW
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11123$as_echo "no" >&6; }
4de997d1 11124fi
1c710c3c 11125
5213506e 11126
e8b05380
PB
11127 fi
11128 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11129 done
11130fi
1c710c3c 11131
e8b05380
PB
11132if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11133 set dummy as
11134 if test $build = $target ; then
11135 AS_FOR_TARGET="$2"
11136 else
11137 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 11138 fi
1c00b503
PB
11139else
11140 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 11141fi
2693c0b0 11142
d1f8db0c
PB
11143else
11144 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
11145fi
11146
e8b05380
PB
11147
11148
11149
11150if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11151 if test -n "$with_build_time_tools"; then
5213506e
RW
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11153$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11154 if test -x $with_build_time_tools/dlltool; then
11155 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11156 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11158$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 11159 else
5213506e
RW
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11161$as_echo "no" >&6; }
d1f8db0c 11162 fi
e8b05380
PB
11163 elif test $build != $host && test $have_gcc_for_target = yes; then
11164 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
11165 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11166 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
11167 fi
11168fi
3e19841a 11169if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11170 # Extract the first word of "dlltool", so it can be a program name with args.
11171set dummy dlltool; ac_word=$2
5213506e
RW
11172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11173$as_echo_n "checking for $ac_word... " >&6; }
11174if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11175 $as_echo_n "(cached) " >&6
4de997d1 11176else
1c710c3c
DJ
11177 case $DLLTOOL_FOR_TARGET in
11178 [\\/]* | ?:[\\/]*)
e8b05380
PB
11179 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11180 ;;
e8b05380 11181 *)
1c710c3c
DJ
11182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11183for as_dir in $gcc_cv_tool_dirs
11184do
11185 IFS=$as_save_IFS
11186 test -z "$as_dir" && as_dir=.
5213506e
RW
11187 for ac_exec_ext in '' $ac_executable_extensions; do
11188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11189 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11191 break 2
11192 fi
11193done
5213506e
RW
11194 done
11195IFS=$as_save_IFS
1c710c3c 11196
e8b05380
PB
11197 ;;
11198esac
4de997d1 11199fi
1c710c3c 11200DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 11201if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11203$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11204else
5213506e
RW
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11206$as_echo "no" >&6; }
4de997d1
PB
11207fi
11208
5213506e 11209
e8b05380
PB
11210fi
11211if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
11212
11213
11214if test -n "$DLLTOOL_FOR_TARGET"; then
11215 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11216elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11217 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11218fi
11219
11220if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11221 for ncn_progname in dlltool; do
11222 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11223set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11225$as_echo_n "checking for $ac_word... " >&6; }
11226if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11227 $as_echo_n "(cached) " >&6
278a7a38
AO
11228else
11229 if test -n "$DLLTOOL_FOR_TARGET"; then
11230 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11231else
11232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11233for as_dir in $PATH
11234do
11235 IFS=$as_save_IFS
11236 test -z "$as_dir" && as_dir=.
5213506e
RW
11237 for ac_exec_ext in '' $ac_executable_extensions; do
11238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11239 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11241 break 2
11242 fi
11243done
5213506e
RW
11244 done
11245IFS=$as_save_IFS
278a7a38
AO
11246
11247fi
11248fi
11249DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11250if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11252$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11253else
5213506e
RW
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11255$as_echo "no" >&6; }
278a7a38
AO
11256fi
11257
5213506e 11258
278a7a38
AO
11259 done
11260fi
11261
11262if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11263 for ncn_progname in dlltool; do
5213506e
RW
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11265$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11266 if test -x $with_build_time_tools/${ncn_progname}; then
11267 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11269$as_echo "yes" >&6; }
e8b05380
PB
11270 break
11271 else
5213506e
RW
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11273$as_echo "no" >&6; }
e8b05380
PB
11274 fi
11275 done
11276fi
11277
11278if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11279 for ncn_progname in dlltool; do
11280 if test -n "$ncn_target_tool_prefix"; then
11281 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11282set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11284$as_echo_n "checking for $ac_word... " >&6; }
11285if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11286 $as_echo_n "(cached) " >&6
4de997d1 11287else
e8b05380
PB
11288 if test -n "$DLLTOOL_FOR_TARGET"; then
11289 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11290else
1c710c3c
DJ
11291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11292for as_dir in $PATH
11293do
11294 IFS=$as_save_IFS
11295 test -z "$as_dir" && as_dir=.
5213506e
RW
11296 for ac_exec_ext in '' $ac_executable_extensions; do
11297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11298 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11300 break 2
11301 fi
11302done
5213506e
RW
11303 done
11304IFS=$as_save_IFS
1c710c3c 11305
4de997d1
PB
11306fi
11307fi
1c710c3c 11308DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11309if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11311$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11312else
5213506e
RW
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11314$as_echo "no" >&6; }
4de997d1 11315fi
4de997d1 11316
5213506e 11317
e8b05380
PB
11318 fi
11319 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11320 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11321set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11323$as_echo_n "checking for $ac_word... " >&6; }
11324if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11325 $as_echo_n "(cached) " >&6
4de997d1 11326else
e8b05380
PB
11327 if test -n "$DLLTOOL_FOR_TARGET"; then
11328 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11329else
1c710c3c
DJ
11330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11331for as_dir in $PATH
11332do
11333 IFS=$as_save_IFS
11334 test -z "$as_dir" && as_dir=.
5213506e
RW
11335 for ac_exec_ext in '' $ac_executable_extensions; do
11336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11337 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11339 break 2
11340 fi
11341done
5213506e
RW
11342 done
11343IFS=$as_save_IFS
1c710c3c 11344
4de997d1
PB
11345fi
11346fi
1c710c3c 11347DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11348if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11350$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11351else
5213506e
RW
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11353$as_echo "no" >&6; }
4de997d1 11354fi
1c710c3c 11355
5213506e 11356
e8b05380
PB
11357 fi
11358 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11359 done
11360fi
1c710c3c 11361
e8b05380
PB
11362if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11363 set dummy dlltool
11364 if test $build = $target ; then
11365 DLLTOOL_FOR_TARGET="$2"
11366 else
11367 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11368 fi
1c00b503
PB
11369else
11370 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
11371fi
11372
d1f8db0c
PB
11373else
11374 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
11375fi
11376
4de997d1 11377
e8b05380
PB
11378
11379
11380if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11381 if test -n "$with_build_time_tools"; then
5213506e
RW
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11383$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11384 if test -x $with_build_time_tools/ld; then
11385 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11386 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11388$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 11389 else
5213506e
RW
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11391$as_echo "no" >&6; }
d1f8db0c 11392 fi
e8b05380
PB
11393 elif test $build != $host && test $have_gcc_for_target = yes; then
11394 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
11395 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11396 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 11397 fi
e8b05380 11398fi
3e19841a 11399if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11400 # Extract the first word of "ld", so it can be a program name with args.
11401set dummy ld; ac_word=$2
5213506e
RW
11402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11403$as_echo_n "checking for $ac_word... " >&6; }
11404if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11405 $as_echo_n "(cached) " >&6
4de997d1 11406else
1c710c3c
DJ
11407 case $LD_FOR_TARGET in
11408 [\\/]* | ?:[\\/]*)
e8b05380
PB
11409 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11410 ;;
e8b05380 11411 *)
1c710c3c
DJ
11412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11413for as_dir in $gcc_cv_tool_dirs
11414do
11415 IFS=$as_save_IFS
11416 test -z "$as_dir" && as_dir=.
5213506e
RW
11417 for ac_exec_ext in '' $ac_executable_extensions; do
11418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11419 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11421 break 2
11422 fi
11423done
5213506e
RW
11424 done
11425IFS=$as_save_IFS
1c710c3c 11426
e8b05380
PB
11427 ;;
11428esac
4de997d1 11429fi
1c710c3c 11430LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 11431if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11433$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 11434else
5213506e
RW
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11436$as_echo "no" >&6; }
4de997d1 11437fi
2693c0b0 11438
5213506e 11439
e8b05380
PB
11440fi
11441if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
11442
11443
11444if test -n "$LD_FOR_TARGET"; then
11445 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11446elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11447 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11448fi
11449
11450if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11451 for ncn_progname in ld; do
11452 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11453set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11455$as_echo_n "checking for $ac_word... " >&6; }
11456if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11457 $as_echo_n "(cached) " >&6
278a7a38
AO
11458else
11459 if test -n "$LD_FOR_TARGET"; then
11460 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11461else
11462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11463for as_dir in $PATH
11464do
11465 IFS=$as_save_IFS
11466 test -z "$as_dir" && as_dir=.
5213506e
RW
11467 for ac_exec_ext in '' $ac_executable_extensions; do
11468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11469 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11471 break 2
11472 fi
11473done
5213506e
RW
11474 done
11475IFS=$as_save_IFS
278a7a38
AO
11476
11477fi
11478fi
11479LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11480if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11482$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 11483else
5213506e
RW
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11485$as_echo "no" >&6; }
278a7a38
AO
11486fi
11487
5213506e 11488
278a7a38
AO
11489 done
11490fi
11491
11492if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11493 for ncn_progname in ld; do
5213506e
RW
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11495$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11496 if test -x $with_build_time_tools/${ncn_progname}; then
11497 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11499$as_echo "yes" >&6; }
e8b05380
PB
11500 break
11501 else
5213506e
RW
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11503$as_echo "no" >&6; }
e8b05380
PB
11504 fi
11505 done
ca9f4b81
AO
11506fi
11507
e8b05380
PB
11508if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11509 for ncn_progname in ld; do
11510 if test -n "$ncn_target_tool_prefix"; then
11511 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11512set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11514$as_echo_n "checking for $ac_word... " >&6; }
11515if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11516 $as_echo_n "(cached) " >&6
ca9f4b81 11517else
4de997d1
PB
11518 if test -n "$LD_FOR_TARGET"; then
11519 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11520else
1c710c3c
DJ
11521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11522for as_dir in $PATH
11523do
11524 IFS=$as_save_IFS
11525 test -z "$as_dir" && as_dir=.
5213506e
RW
11526 for ac_exec_ext in '' $ac_executable_extensions; do
11527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11528 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11530 break 2
11531 fi
11532done
5213506e
RW
11533 done
11534IFS=$as_save_IFS
1c710c3c 11535
ca9f4b81
AO
11536fi
11537fi
1c710c3c 11538LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 11539if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11541$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11542else
5213506e
RW
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11544$as_echo "no" >&6; }
ca9f4b81
AO
11545fi
11546
5213506e 11547
e8b05380
PB
11548 fi
11549 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11550 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11551set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11553$as_echo_n "checking for $ac_word... " >&6; }
11554if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11555 $as_echo_n "(cached) " >&6
ca9f4b81 11556else
2693c0b0
PB
11557 if test -n "$LD_FOR_TARGET"; then
11558 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11559else
1c710c3c
DJ
11560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11561for as_dir in $PATH
11562do
11563 IFS=$as_save_IFS
11564 test -z "$as_dir" && as_dir=.
5213506e
RW
11565 for ac_exec_ext in '' $ac_executable_extensions; do
11566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11567 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11569 break 2
11570 fi
11571done
5213506e
RW
11572 done
11573IFS=$as_save_IFS
1c710c3c 11574
ca9f4b81
AO
11575fi
11576fi
1c710c3c 11577LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 11578if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11580$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11581else
5213506e
RW
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11583$as_echo "no" >&6; }
ca9f4b81 11584fi
1c710c3c 11585
5213506e 11586
e8b05380
PB
11587 fi
11588 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11589 done
11590fi
1c710c3c 11591
2693c0b0
PB
11592if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11593 set dummy ld
11594 if test $build = $target ; then
11595 LD_FOR_TARGET="$2"
ca9f4b81 11596 else
2693c0b0 11597 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11598 fi
1c00b503
PB
11599else
11600 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
11601fi
11602
d1f8db0c
PB
11603else
11604 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
11605fi
11606
11607
11608
11609
11610if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11611 if test -n "$with_build_time_tools"; then
5213506e
RW
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11613$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11614 if test -x $with_build_time_tools/lipo; then
11615 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11616 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11618$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 11619 else
5213506e
RW
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11621$as_echo "no" >&6; }
d1f8db0c 11622 fi
e8b05380
PB
11623 elif test $build != $host && test $have_gcc_for_target = yes; then
11624 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
11625 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11626 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
11627 fi
11628fi
278a7a38
AO
11629if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11630 # Extract the first word of "lipo", so it can be a program name with args.
11631set dummy lipo; ac_word=$2
5213506e
RW
11632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11633$as_echo_n "checking for $ac_word... " >&6; }
11634if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11635 $as_echo_n "(cached) " >&6
278a7a38
AO
11636else
11637 case $LIPO_FOR_TARGET in
11638 [\\/]* | ?:[\\/]*)
11639 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11640 ;;
11641 *)
11642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11643for as_dir in $gcc_cv_tool_dirs
11644do
11645 IFS=$as_save_IFS
11646 test -z "$as_dir" && as_dir=.
5213506e
RW
11647 for ac_exec_ext in '' $ac_executable_extensions; do
11648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11649 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11651 break 2
11652 fi
11653done
5213506e
RW
11654 done
11655IFS=$as_save_IFS
278a7a38
AO
11656
11657 ;;
11658esac
11659fi
11660LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 11661if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11663$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 11664else
5213506e
RW
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11666$as_echo "no" >&6; }
278a7a38
AO
11667fi
11668
5213506e 11669
278a7a38
AO
11670fi
11671if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11672
11673
11674if test -n "$LIPO_FOR_TARGET"; then
11675 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11676elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11677 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11678fi
11679
11680if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11681 for ncn_progname in lipo; do
11682 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11683set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11685$as_echo_n "checking for $ac_word... " >&6; }
11686if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11687 $as_echo_n "(cached) " >&6
e8b05380 11688else
278a7a38
AO
11689 if test -n "$LIPO_FOR_TARGET"; then
11690 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11691else
11692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11693for as_dir in $PATH
1c710c3c
DJ
11694do
11695 IFS=$as_save_IFS
11696 test -z "$as_dir" && as_dir=.
5213506e
RW
11697 for ac_exec_ext in '' $ac_executable_extensions; do
11698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11699 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11701 break 2
11702 fi
11703done
5213506e
RW
11704 done
11705IFS=$as_save_IFS
1c710c3c 11706
e8b05380 11707fi
278a7a38
AO
11708fi
11709LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 11710if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11712$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 11713else
5213506e
RW
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11715$as_echo "no" >&6; }
e8b05380
PB
11716fi
11717
5213506e 11718
278a7a38 11719 done
e8b05380 11720fi
278a7a38
AO
11721
11722if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11723 for ncn_progname in lipo; do
5213506e
RW
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11725$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11726 if test -x $with_build_time_tools/${ncn_progname}; then
11727 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11729$as_echo "yes" >&6; }
e8b05380
PB
11730 break
11731 else
5213506e
RW
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11733$as_echo "no" >&6; }
e8b05380
PB
11734 fi
11735 done
11736fi
11737
11738if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11739 for ncn_progname in lipo; do
11740 if test -n "$ncn_target_tool_prefix"; then
11741 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11742set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11744$as_echo_n "checking for $ac_word... " >&6; }
11745if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11746 $as_echo_n "(cached) " >&6
040b1c5a
GK
11747else
11748 if test -n "$LIPO_FOR_TARGET"; then
11749 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11750else
1c710c3c
DJ
11751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11752for as_dir in $PATH
11753do
11754 IFS=$as_save_IFS
11755 test -z "$as_dir" && as_dir=.
5213506e
RW
11756 for ac_exec_ext in '' $ac_executable_extensions; do
11757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11758 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11760 break 2
11761 fi
11762done
5213506e
RW
11763 done
11764IFS=$as_save_IFS
1c710c3c 11765
040b1c5a
GK
11766fi
11767fi
1c710c3c 11768LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11769if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11771$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11772else
5213506e
RW
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774$as_echo "no" >&6; }
040b1c5a
GK
11775fi
11776
5213506e 11777
e8b05380
PB
11778 fi
11779 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11780 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 11781set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11783$as_echo_n "checking for $ac_word... " >&6; }
11784if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11785 $as_echo_n "(cached) " >&6
040b1c5a
GK
11786else
11787 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
11788 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11789else
1c710c3c
DJ
11790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11791for as_dir in $PATH
11792do
11793 IFS=$as_save_IFS
11794 test -z "$as_dir" && as_dir=.
5213506e
RW
11795 for ac_exec_ext in '' $ac_executable_extensions; do
11796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11797 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11799 break 2
11800 fi
11801done
5213506e
RW
11802 done
11803IFS=$as_save_IFS
1c710c3c 11804
040b1c5a
GK
11805fi
11806fi
1c710c3c 11807LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11808if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11810$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11811else
5213506e
RW
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11813$as_echo "no" >&6; }
040b1c5a 11814fi
1c710c3c 11815
5213506e 11816
e8b05380
PB
11817 fi
11818 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11819 done
11820fi
1c710c3c 11821
040b1c5a
GK
11822if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11823 set dummy lipo
11824 if test $build = $target ; then
11825 LIPO_FOR_TARGET="$2"
11826 else
11827 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11828 fi
1c00b503
PB
11829else
11830 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
11831fi
11832
d1f8db0c
PB
11833else
11834 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
11835fi
11836
11837
11838
11839
11840if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11841 if test -n "$with_build_time_tools"; then
5213506e
RW
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11843$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11844 if test -x $with_build_time_tools/nm; then
11845 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11846 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11848$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 11849 else
5213506e
RW
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11851$as_echo "no" >&6; }
d1f8db0c 11852 fi
e8b05380
PB
11853 elif test $build != $host && test $have_gcc_for_target = yes; then
11854 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
11855 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11856 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
11857 fi
11858fi
3e19841a 11859if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11860 # Extract the first word of "nm", so it can be a program name with args.
11861set dummy nm; ac_word=$2
5213506e
RW
11862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11863$as_echo_n "checking for $ac_word... " >&6; }
11864if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11865 $as_echo_n "(cached) " >&6
e8b05380 11866else
1c710c3c
DJ
11867 case $NM_FOR_TARGET in
11868 [\\/]* | ?:[\\/]*)
e8b05380
PB
11869 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11870 ;;
e8b05380 11871 *)
1c710c3c
DJ
11872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11873for as_dir in $gcc_cv_tool_dirs
11874do
11875 IFS=$as_save_IFS
11876 test -z "$as_dir" && as_dir=.
5213506e
RW
11877 for ac_exec_ext in '' $ac_executable_extensions; do
11878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11879 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11881 break 2
11882 fi
11883done
5213506e
RW
11884 done
11885IFS=$as_save_IFS
1c710c3c 11886
e8b05380
PB
11887 ;;
11888esac
11889fi
1c710c3c 11890NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 11891if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11893$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 11894else
5213506e
RW
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11896$as_echo "no" >&6; }
e8b05380
PB
11897fi
11898
5213506e 11899
e8b05380
PB
11900fi
11901if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
11902
11903
11904if test -n "$NM_FOR_TARGET"; then
11905 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11906elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11907 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11908fi
11909
11910if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11911 for ncn_progname in nm; do
11912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11913set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11915$as_echo_n "checking for $ac_word... " >&6; }
11916if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11917 $as_echo_n "(cached) " >&6
278a7a38
AO
11918else
11919 if test -n "$NM_FOR_TARGET"; then
11920 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11921else
11922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11923for as_dir in $PATH
11924do
11925 IFS=$as_save_IFS
11926 test -z "$as_dir" && as_dir=.
5213506e
RW
11927 for ac_exec_ext in '' $ac_executable_extensions; do
11928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11929 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 11930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11931 break 2
11932 fi
11933done
5213506e
RW
11934 done
11935IFS=$as_save_IFS
278a7a38
AO
11936
11937fi
11938fi
11939NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11940if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11942$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 11943else
5213506e
RW
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11945$as_echo "no" >&6; }
278a7a38
AO
11946fi
11947
5213506e 11948
278a7a38
AO
11949 done
11950fi
11951
11952if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11953 for ncn_progname in nm; do
5213506e
RW
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11955$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11956 if test -x $with_build_time_tools/${ncn_progname}; then
11957 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11959$as_echo "yes" >&6; }
e8b05380
PB
11960 break
11961 else
5213506e
RW
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11963$as_echo "no" >&6; }
e8b05380
PB
11964 fi
11965 done
11966fi
11967
11968if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11969 for ncn_progname in nm; do
11970 if test -n "$ncn_target_tool_prefix"; then
11971 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 11972set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11974$as_echo_n "checking for $ac_word... " >&6; }
11975if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11976 $as_echo_n "(cached) " >&6
ca9f4b81 11977else
4de997d1
PB
11978 if test -n "$NM_FOR_TARGET"; then
11979 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 11980else
1c710c3c
DJ
11981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11982for as_dir in $PATH
11983do
11984 IFS=$as_save_IFS
11985 test -z "$as_dir" && as_dir=.
5213506e
RW
11986 for ac_exec_ext in '' $ac_executable_extensions; do
11987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11988 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11990 break 2
11991 fi
11992done
5213506e
RW
11993 done
11994IFS=$as_save_IFS
1c710c3c 11995
ca9f4b81
AO
11996fi
11997fi
1c710c3c 11998NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 11999if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12001$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12002else
5213506e
RW
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12004$as_echo "no" >&6; }
ca9f4b81
AO
12005fi
12006
5213506e 12007
e8b05380
PB
12008 fi
12009 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12010 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12011set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12013$as_echo_n "checking for $ac_word... " >&6; }
12014if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12015 $as_echo_n "(cached) " >&6
ca9f4b81 12016else
2693c0b0
PB
12017 if test -n "$NM_FOR_TARGET"; then
12018 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12019else
1c710c3c
DJ
12020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12021for as_dir in $PATH
12022do
12023 IFS=$as_save_IFS
12024 test -z "$as_dir" && as_dir=.
5213506e
RW
12025 for ac_exec_ext in '' $ac_executable_extensions; do
12026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12027 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12029 break 2
12030 fi
12031done
5213506e
RW
12032 done
12033IFS=$as_save_IFS
1c710c3c 12034
ca9f4b81
AO
12035fi
12036fi
1c710c3c 12037NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 12038if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12040$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12041else
5213506e
RW
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12043$as_echo "no" >&6; }
ca9f4b81 12044fi
1c710c3c 12045
5213506e 12046
e8b05380
PB
12047 fi
12048 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12049 done
12050fi
1c710c3c 12051
2693c0b0
PB
12052if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12053 set dummy nm
12054 if test $build = $target ; then
12055 NM_FOR_TARGET="$2"
ca9f4b81 12056 else
2693c0b0 12057 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12058 fi
1c00b503
PB
12059else
12060 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
12061fi
12062
d1f8db0c
PB
12063else
12064 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
12065fi
12066
12067
12068
12069
9bccfdf5
AP
12070if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12071 if test -n "$with_build_time_tools"; then
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12073$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12074 if test -x $with_build_time_tools/objcopy; then
12075 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12076 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12078$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12079 else
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12081$as_echo "no" >&6; }
12082 fi
12083 elif test $build != $host && test $have_gcc_for_target = yes; then
12084 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12085 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12086 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12087 fi
12088fi
12089if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12090 # Extract the first word of "objcopy", so it can be a program name with args.
12091set dummy objcopy; ac_word=$2
12092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12093$as_echo_n "checking for $ac_word... " >&6; }
12094if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12095 $as_echo_n "(cached) " >&6
12096else
12097 case $OBJCOPY_FOR_TARGET in
12098 [\\/]* | ?:[\\/]*)
12099 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12100 ;;
12101 *)
12102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12103for as_dir in $gcc_cv_tool_dirs
12104do
12105 IFS=$as_save_IFS
12106 test -z "$as_dir" && as_dir=.
12107 for ac_exec_ext in '' $ac_executable_extensions; do
12108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12109 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12111 break 2
12112 fi
12113done
12114 done
12115IFS=$as_save_IFS
12116
12117 ;;
12118esac
12119fi
12120OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12121if test -n "$OBJCOPY_FOR_TARGET"; then
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12123$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12124else
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12126$as_echo "no" >&6; }
12127fi
12128
12129
12130fi
12131if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12132
12133
12134if test -n "$OBJCOPY_FOR_TARGET"; then
12135 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12136elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12137 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12138fi
12139
12140if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12141 for ncn_progname in objcopy; do
12142 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12143set dummy ${ncn_progname}; ac_word=$2
12144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12145$as_echo_n "checking for $ac_word... " >&6; }
12146if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12147 $as_echo_n "(cached) " >&6
12148else
12149 if test -n "$OBJCOPY_FOR_TARGET"; then
12150 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12151else
12152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12153for as_dir in $PATH
12154do
12155 IFS=$as_save_IFS
12156 test -z "$as_dir" && as_dir=.
12157 for ac_exec_ext in '' $ac_executable_extensions; do
12158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12159 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12161 break 2
12162 fi
12163done
12164 done
12165IFS=$as_save_IFS
12166
12167fi
12168fi
12169OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12170if test -n "$OBJCOPY_FOR_TARGET"; then
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12172$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12173else
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12175$as_echo "no" >&6; }
12176fi
12177
12178
12179 done
12180fi
12181
12182if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12183 for ncn_progname in objcopy; do
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12185$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12186 if test -x $with_build_time_tools/${ncn_progname}; then
12187 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12189$as_echo "yes" >&6; }
12190 break
12191 else
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12193$as_echo "no" >&6; }
12194 fi
12195 done
12196fi
12197
12198if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12199 for ncn_progname in objcopy; do
12200 if test -n "$ncn_target_tool_prefix"; then
12201 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12202set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12204$as_echo_n "checking for $ac_word... " >&6; }
12205if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12206 $as_echo_n "(cached) " >&6
12207else
12208 if test -n "$OBJCOPY_FOR_TARGET"; then
12209 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12210else
12211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12212for as_dir in $PATH
12213do
12214 IFS=$as_save_IFS
12215 test -z "$as_dir" && as_dir=.
12216 for ac_exec_ext in '' $ac_executable_extensions; do
12217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12218 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12220 break 2
12221 fi
12222done
12223 done
12224IFS=$as_save_IFS
12225
12226fi
12227fi
12228OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12229if test -n "$OBJCOPY_FOR_TARGET"; then
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12231$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12232else
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12234$as_echo "no" >&6; }
12235fi
12236
12237
12238 fi
12239 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12240 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12241set dummy ${ncn_progname}; ac_word=$2
12242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12243$as_echo_n "checking for $ac_word... " >&6; }
12244if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12245 $as_echo_n "(cached) " >&6
12246else
12247 if test -n "$OBJCOPY_FOR_TARGET"; then
12248 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12249else
12250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12251for as_dir in $PATH
12252do
12253 IFS=$as_save_IFS
12254 test -z "$as_dir" && as_dir=.
12255 for ac_exec_ext in '' $ac_executable_extensions; do
12256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12257 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12259 break 2
12260 fi
12261done
12262 done
12263IFS=$as_save_IFS
12264
12265fi
12266fi
12267OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12268if test -n "$OBJCOPY_FOR_TARGET"; then
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12270$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12271else
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12273$as_echo "no" >&6; }
12274fi
12275
12276
12277 fi
12278 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12279 done
12280fi
12281
12282if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12283 set dummy objcopy
12284 if test $build = $target ; then
12285 OBJCOPY_FOR_TARGET="$2"
12286 else
12287 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12288 fi
12289else
12290 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12291fi
12292
12293else
12294 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12295fi
12296
12297
12298
12299
e8b05380
PB
12300if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12301 if test -n "$with_build_time_tools"; then
5213506e
RW
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12303$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12304 if test -x $with_build_time_tools/objdump; then
12305 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12306 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12308$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 12309 else
5213506e
RW
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12311$as_echo "no" >&6; }
d1f8db0c 12312 fi
e8b05380
PB
12313 elif test $build != $host && test $have_gcc_for_target = yes; then
12314 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
12315 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12316 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
12317 fi
12318fi
3e19841a 12319if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12320 # Extract the first word of "objdump", so it can be a program name with args.
12321set dummy objdump; ac_word=$2
5213506e
RW
12322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12323$as_echo_n "checking for $ac_word... " >&6; }
12324if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12325 $as_echo_n "(cached) " >&6
e8b05380 12326else
1c710c3c
DJ
12327 case $OBJDUMP_FOR_TARGET in
12328 [\\/]* | ?:[\\/]*)
e8b05380
PB
12329 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12330 ;;
e8b05380 12331 *)
1c710c3c
DJ
12332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12333for as_dir in $gcc_cv_tool_dirs
12334do
12335 IFS=$as_save_IFS
12336 test -z "$as_dir" && as_dir=.
5213506e
RW
12337 for ac_exec_ext in '' $ac_executable_extensions; do
12338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12339 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12341 break 2
12342 fi
12343done
5213506e
RW
12344 done
12345IFS=$as_save_IFS
1c710c3c 12346
e8b05380
PB
12347 ;;
12348esac
12349fi
1c710c3c 12350OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 12351if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12353$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 12354else
5213506e
RW
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12356$as_echo "no" >&6; }
e8b05380
PB
12357fi
12358
5213506e 12359
e8b05380
PB
12360fi
12361if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
12362
12363
12364if test -n "$OBJDUMP_FOR_TARGET"; then
12365 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12366elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12367 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12368fi
12369
12370if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12371 for ncn_progname in objdump; do
12372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12373set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12375$as_echo_n "checking for $ac_word... " >&6; }
12376if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12377 $as_echo_n "(cached) " >&6
278a7a38
AO
12378else
12379 if test -n "$OBJDUMP_FOR_TARGET"; then
12380 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12381else
12382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12383for as_dir in $PATH
12384do
12385 IFS=$as_save_IFS
12386 test -z "$as_dir" && as_dir=.
5213506e
RW
12387 for ac_exec_ext in '' $ac_executable_extensions; do
12388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12389 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12391 break 2
12392 fi
12393done
5213506e
RW
12394 done
12395IFS=$as_save_IFS
278a7a38
AO
12396
12397fi
12398fi
12399OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12400if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12402$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 12403else
5213506e
RW
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12405$as_echo "no" >&6; }
278a7a38
AO
12406fi
12407
5213506e 12408
278a7a38
AO
12409 done
12410fi
12411
12412if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12413 for ncn_progname in objdump; do
5213506e
RW
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12415$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12416 if test -x $with_build_time_tools/${ncn_progname}; then
12417 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12419$as_echo "yes" >&6; }
e8b05380
PB
12420 break
12421 else
5213506e
RW
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12423$as_echo "no" >&6; }
e8b05380
PB
12424 fi
12425 done
12426fi
12427
12428if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12429 for ncn_progname in objdump; do
12430 if test -n "$ncn_target_tool_prefix"; then
12431 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12432set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12434$as_echo_n "checking for $ac_word... " >&6; }
12435if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12436 $as_echo_n "(cached) " >&6
d739199a
DJ
12437else
12438 if test -n "$OBJDUMP_FOR_TARGET"; then
12439 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12440else
1c710c3c
DJ
12441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12442for as_dir in $PATH
12443do
12444 IFS=$as_save_IFS
12445 test -z "$as_dir" && as_dir=.
5213506e
RW
12446 for ac_exec_ext in '' $ac_executable_extensions; do
12447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12448 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12450 break 2
12451 fi
12452done
5213506e
RW
12453 done
12454IFS=$as_save_IFS
1c710c3c 12455
d739199a
DJ
12456fi
12457fi
1c710c3c 12458OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12459if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12461$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12462else
5213506e
RW
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12464$as_echo "no" >&6; }
d739199a
DJ
12465fi
12466
5213506e 12467
e8b05380
PB
12468 fi
12469 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12470 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 12471set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12473$as_echo_n "checking for $ac_word... " >&6; }
12474if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12475 $as_echo_n "(cached) " >&6
d739199a
DJ
12476else
12477 if test -n "$OBJDUMP_FOR_TARGET"; then
12478 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12479else
1c710c3c
DJ
12480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12481for as_dir in $PATH
12482do
12483 IFS=$as_save_IFS
12484 test -z "$as_dir" && as_dir=.
5213506e
RW
12485 for ac_exec_ext in '' $ac_executable_extensions; do
12486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12487 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12489 break 2
12490 fi
12491done
5213506e
RW
12492 done
12493IFS=$as_save_IFS
1c710c3c 12494
d739199a
DJ
12495fi
12496fi
1c710c3c 12497OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12498if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12500$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12501else
5213506e
RW
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12503$as_echo "no" >&6; }
d739199a 12504fi
1c710c3c 12505
5213506e 12506
e8b05380
PB
12507 fi
12508 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12509 done
12510fi
1c710c3c 12511
d739199a
DJ
12512if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12513 set dummy objdump
12514 if test $build = $target ; then
12515 OBJDUMP_FOR_TARGET="$2"
12516 else
12517 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12518 fi
1c00b503
PB
12519else
12520 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
12521fi
12522
d1f8db0c
PB
12523else
12524 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
12525fi
12526
12527
12528
12529
12530if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12531 if test -n "$with_build_time_tools"; then
5213506e
RW
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12533$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12534 if test -x $with_build_time_tools/ranlib; then
12535 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12536 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12538$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 12539 else
5213506e
RW
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12541$as_echo "no" >&6; }
d1f8db0c 12542 fi
e8b05380
PB
12543 elif test $build != $host && test $have_gcc_for_target = yes; then
12544 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
12545 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12546 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
12547 fi
12548fi
3e19841a 12549if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12550 # Extract the first word of "ranlib", so it can be a program name with args.
12551set dummy ranlib; ac_word=$2
5213506e
RW
12552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12553$as_echo_n "checking for $ac_word... " >&6; }
12554if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12555 $as_echo_n "(cached) " >&6
e8b05380 12556else
1c710c3c
DJ
12557 case $RANLIB_FOR_TARGET in
12558 [\\/]* | ?:[\\/]*)
e8b05380
PB
12559 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12560 ;;
e8b05380 12561 *)
1c710c3c
DJ
12562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12563for as_dir in $gcc_cv_tool_dirs
12564do
12565 IFS=$as_save_IFS
12566 test -z "$as_dir" && as_dir=.
5213506e
RW
12567 for ac_exec_ext in '' $ac_executable_extensions; do
12568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12569 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12571 break 2
12572 fi
12573done
5213506e
RW
12574 done
12575IFS=$as_save_IFS
1c710c3c 12576
e8b05380
PB
12577 ;;
12578esac
12579fi
1c710c3c 12580RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 12581if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12583$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 12584else
5213506e
RW
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12586$as_echo "no" >&6; }
e8b05380
PB
12587fi
12588
5213506e 12589
e8b05380
PB
12590fi
12591if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
12592
12593
12594if test -n "$RANLIB_FOR_TARGET"; then
12595 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12596elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12597 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12598fi
12599
12600if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12601 for ncn_progname in ranlib; do
12602 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12603set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12605$as_echo_n "checking for $ac_word... " >&6; }
12606if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12607 $as_echo_n "(cached) " >&6
278a7a38
AO
12608else
12609 if test -n "$RANLIB_FOR_TARGET"; then
12610 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12611else
12612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12613for as_dir in $PATH
12614do
12615 IFS=$as_save_IFS
12616 test -z "$as_dir" && as_dir=.
5213506e
RW
12617 for ac_exec_ext in '' $ac_executable_extensions; do
12618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12619 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12621 break 2
12622 fi
12623done
5213506e
RW
12624 done
12625IFS=$as_save_IFS
278a7a38
AO
12626
12627fi
12628fi
12629RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12630if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12632$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 12633else
5213506e
RW
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12635$as_echo "no" >&6; }
278a7a38
AO
12636fi
12637
5213506e 12638
278a7a38
AO
12639 done
12640fi
12641
12642if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12643 for ncn_progname in ranlib; do
5213506e
RW
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12645$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12646 if test -x $with_build_time_tools/${ncn_progname}; then
12647 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12649$as_echo "yes" >&6; }
e8b05380
PB
12650 break
12651 else
5213506e
RW
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12653$as_echo "no" >&6; }
e8b05380
PB
12654 fi
12655 done
12656fi
12657
12658if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12659 for ncn_progname in ranlib; do
12660 if test -n "$ncn_target_tool_prefix"; then
12661 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 12662set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12664$as_echo_n "checking for $ac_word... " >&6; }
12665if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12666 $as_echo_n "(cached) " >&6
ca9f4b81 12667else
4de997d1
PB
12668 if test -n "$RANLIB_FOR_TARGET"; then
12669 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12670else
1c710c3c
DJ
12671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12672for as_dir in $PATH
12673do
12674 IFS=$as_save_IFS
12675 test -z "$as_dir" && as_dir=.
5213506e
RW
12676 for ac_exec_ext in '' $ac_executable_extensions; do
12677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12678 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12680 break 2
12681 fi
12682done
5213506e
RW
12683 done
12684IFS=$as_save_IFS
1c710c3c 12685
ca9f4b81
AO
12686fi
12687fi
1c710c3c 12688RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 12689if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12691$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12692else
5213506e
RW
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12694$as_echo "no" >&6; }
ca9f4b81
AO
12695fi
12696
5213506e 12697
e8b05380
PB
12698 fi
12699 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12700 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12701set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12703$as_echo_n "checking for $ac_word... " >&6; }
12704if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12705 $as_echo_n "(cached) " >&6
ca9f4b81 12706else
2693c0b0
PB
12707 if test -n "$RANLIB_FOR_TARGET"; then
12708 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12709else
1c710c3c
DJ
12710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12711for as_dir in $PATH
12712do
12713 IFS=$as_save_IFS
12714 test -z "$as_dir" && as_dir=.
5213506e
RW
12715 for ac_exec_ext in '' $ac_executable_extensions; do
12716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12717 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12719 break 2
12720 fi
12721done
5213506e
RW
12722 done
12723IFS=$as_save_IFS
1c710c3c 12724
ca9f4b81
AO
12725fi
12726fi
1c710c3c 12727RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 12728if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12730$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12731else
5213506e
RW
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12733$as_echo "no" >&6; }
ca9f4b81 12734fi
1c710c3c 12735
5213506e 12736
e8b05380
PB
12737 fi
12738 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12739 done
12740fi
1c710c3c 12741
e8b05380
PB
12742if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12743 set dummy ranlib
12744 if test $build = $target ; then
12745 RANLIB_FOR_TARGET="$2"
12746 else
12747 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12748 fi
1c00b503
PB
12749else
12750 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 12751fi
2693c0b0 12752
d1f8db0c
PB
12753else
12754 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
12755fi
12756
e8b05380
PB
12757
12758
12759
e7a82751
RM
12760if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12761 if test -n "$with_build_time_tools"; then
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12763$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12764 if test -x $with_build_time_tools/readelf; then
12765 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12766 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12768$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12769 else
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12771$as_echo "no" >&6; }
12772 fi
12773 elif test $build != $host && test $have_gcc_for_target = yes; then
12774 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12775 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12776 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12777 fi
12778fi
12779if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12780 # Extract the first word of "readelf", so it can be a program name with args.
12781set dummy readelf; ac_word=$2
12782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12783$as_echo_n "checking for $ac_word... " >&6; }
12784if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12785 $as_echo_n "(cached) " >&6
12786else
12787 case $READELF_FOR_TARGET in
12788 [\\/]* | ?:[\\/]*)
12789 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12790 ;;
12791 *)
12792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12793for as_dir in $gcc_cv_tool_dirs
12794do
12795 IFS=$as_save_IFS
12796 test -z "$as_dir" && as_dir=.
12797 for ac_exec_ext in '' $ac_executable_extensions; do
12798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12799 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12801 break 2
12802 fi
12803done
12804 done
12805IFS=$as_save_IFS
12806
12807 ;;
12808esac
12809fi
12810READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12811if test -n "$READELF_FOR_TARGET"; then
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12813$as_echo "$READELF_FOR_TARGET" >&6; }
12814else
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12816$as_echo "no" >&6; }
12817fi
12818
12819
12820fi
12821if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12822
12823
12824if test -n "$READELF_FOR_TARGET"; then
12825 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12826elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12827 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12828fi
12829
12830if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12831 for ncn_progname in readelf; do
12832 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12833set dummy ${ncn_progname}; ac_word=$2
12834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12835$as_echo_n "checking for $ac_word... " >&6; }
12836if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12837 $as_echo_n "(cached) " >&6
12838else
12839 if test -n "$READELF_FOR_TARGET"; then
12840 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12841else
12842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12843for as_dir in $PATH
12844do
12845 IFS=$as_save_IFS
12846 test -z "$as_dir" && as_dir=.
12847 for ac_exec_ext in '' $ac_executable_extensions; do
12848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12849 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12851 break 2
12852 fi
12853done
12854 done
12855IFS=$as_save_IFS
12856
12857fi
12858fi
12859READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12860if test -n "$READELF_FOR_TARGET"; then
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12862$as_echo "$READELF_FOR_TARGET" >&6; }
12863else
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12865$as_echo "no" >&6; }
12866fi
12867
12868
12869 done
12870fi
12871
12872if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12873 for ncn_progname in readelf; do
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12875$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12876 if test -x $with_build_time_tools/${ncn_progname}; then
12877 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12879$as_echo "yes" >&6; }
12880 break
12881 else
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12883$as_echo "no" >&6; }
12884 fi
12885 done
12886fi
12887
12888if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12889 for ncn_progname in readelf; do
12890 if test -n "$ncn_target_tool_prefix"; then
12891 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12892set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12894$as_echo_n "checking for $ac_word... " >&6; }
12895if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12896 $as_echo_n "(cached) " >&6
12897else
12898 if test -n "$READELF_FOR_TARGET"; then
12899 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12900else
12901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12902for as_dir in $PATH
12903do
12904 IFS=$as_save_IFS
12905 test -z "$as_dir" && as_dir=.
12906 for ac_exec_ext in '' $ac_executable_extensions; do
12907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12908 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12910 break 2
12911 fi
12912done
12913 done
12914IFS=$as_save_IFS
12915
12916fi
12917fi
12918READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12919if test -n "$READELF_FOR_TARGET"; then
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12921$as_echo "$READELF_FOR_TARGET" >&6; }
12922else
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12924$as_echo "no" >&6; }
12925fi
12926
12927
12928 fi
12929 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12930 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12931set dummy ${ncn_progname}; ac_word=$2
12932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12933$as_echo_n "checking for $ac_word... " >&6; }
12934if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12935 $as_echo_n "(cached) " >&6
12936else
12937 if test -n "$READELF_FOR_TARGET"; then
12938 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12939else
12940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12941for as_dir in $PATH
12942do
12943 IFS=$as_save_IFS
12944 test -z "$as_dir" && as_dir=.
12945 for ac_exec_ext in '' $ac_executable_extensions; do
12946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12947 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12949 break 2
12950 fi
12951done
12952 done
12953IFS=$as_save_IFS
12954
12955fi
12956fi
12957READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12958if test -n "$READELF_FOR_TARGET"; then
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12960$as_echo "$READELF_FOR_TARGET" >&6; }
12961else
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12963$as_echo "no" >&6; }
12964fi
12965
12966
12967 fi
12968 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12969 done
12970fi
12971
12972if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12973 set dummy readelf
12974 if test $build = $target ; then
12975 READELF_FOR_TARGET="$2"
12976 else
12977 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12978 fi
12979else
12980 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12981fi
12982
12983else
12984 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12985fi
12986
12987
12988
12989
e8b05380
PB
12990if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12991 if test -n "$with_build_time_tools"; then
5213506e
RW
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12993$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12994 if test -x $with_build_time_tools/strip; then
12995 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12996 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12998$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 12999 else
5213506e
RW
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13001$as_echo "no" >&6; }
d1f8db0c 13002 fi
e8b05380
PB
13003 elif test $build != $host && test $have_gcc_for_target = yes; then
13004 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
13005 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13006 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
13007 fi
13008fi
3e19841a 13009if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13010 # Extract the first word of "strip", so it can be a program name with args.
13011set dummy strip; ac_word=$2
5213506e
RW
13012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13013$as_echo_n "checking for $ac_word... " >&6; }
13014if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13015 $as_echo_n "(cached) " >&6
e8b05380 13016else
1c710c3c
DJ
13017 case $STRIP_FOR_TARGET in
13018 [\\/]* | ?:[\\/]*)
e8b05380
PB
13019 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13020 ;;
e8b05380 13021 *)
1c710c3c
DJ
13022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13023for as_dir in $gcc_cv_tool_dirs
13024do
13025 IFS=$as_save_IFS
13026 test -z "$as_dir" && as_dir=.
5213506e
RW
13027 for ac_exec_ext in '' $ac_executable_extensions; do
13028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13029 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13031 break 2
13032 fi
13033done
5213506e
RW
13034 done
13035IFS=$as_save_IFS
1c710c3c 13036
e8b05380
PB
13037 ;;
13038esac
13039fi
1c710c3c 13040STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 13041if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13043$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 13044else
5213506e
RW
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13046$as_echo "no" >&6; }
e8b05380
PB
13047fi
13048
5213506e 13049
e8b05380
PB
13050fi
13051if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
13052
13053
13054if test -n "$STRIP_FOR_TARGET"; then
13055 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13056elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13057 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13058fi
13059
13060if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13061 for ncn_progname in strip; do
13062 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13063set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13065$as_echo_n "checking for $ac_word... " >&6; }
13066if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13067 $as_echo_n "(cached) " >&6
278a7a38
AO
13068else
13069 if test -n "$STRIP_FOR_TARGET"; then
13070 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13071else
13072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13073for as_dir in $PATH
13074do
13075 IFS=$as_save_IFS
13076 test -z "$as_dir" && as_dir=.
5213506e
RW
13077 for ac_exec_ext in '' $ac_executable_extensions; do
13078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 13079 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13081 break 2
13082 fi
13083done
5213506e
RW
13084 done
13085IFS=$as_save_IFS
278a7a38
AO
13086
13087fi
13088fi
13089STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13090if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13092$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 13093else
5213506e
RW
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13095$as_echo "no" >&6; }
278a7a38
AO
13096fi
13097
5213506e 13098
278a7a38
AO
13099 done
13100fi
13101
13102if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13103 for ncn_progname in strip; do
5213506e
RW
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13105$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13106 if test -x $with_build_time_tools/${ncn_progname}; then
13107 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13109$as_echo "yes" >&6; }
e8b05380
PB
13110 break
13111 else
5213506e
RW
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13113$as_echo "no" >&6; }
e8b05380
PB
13114 fi
13115 done
13116fi
13117
13118if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13119 for ncn_progname in strip; do
13120 if test -n "$ncn_target_tool_prefix"; then
13121 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 13122set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13124$as_echo_n "checking for $ac_word... " >&6; }
13125if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13126 $as_echo_n "(cached) " >&6
af71363e
AS
13127else
13128 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
13129 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13130else
13131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13132for as_dir in $PATH
13133do
13134 IFS=$as_save_IFS
13135 test -z "$as_dir" && as_dir=.
5213506e
RW
13136 for ac_exec_ext in '' $ac_executable_extensions; do
13137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13138 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13140 break 2
13141 fi
13142done
5213506e
RW
13143 done
13144IFS=$as_save_IFS
1c710c3c 13145
040b1c5a
GK
13146fi
13147fi
1c710c3c 13148STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13149if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13151$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13152else
5213506e
RW
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13154$as_echo "no" >&6; }
040b1c5a
GK
13155fi
13156
5213506e 13157
e8b05380
PB
13158 fi
13159 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13160 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 13161set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13163$as_echo_n "checking for $ac_word... " >&6; }
13164if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13165 $as_echo_n "(cached) " >&6
040b1c5a
GK
13166else
13167 if test -n "$STRIP_FOR_TARGET"; then
13168 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13169else
1c710c3c
DJ
13170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13171for as_dir in $PATH
13172do
13173 IFS=$as_save_IFS
13174 test -z "$as_dir" && as_dir=.
5213506e
RW
13175 for ac_exec_ext in '' $ac_executable_extensions; do
13176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13177 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13179 break 2
13180 fi
13181done
5213506e
RW
13182 done
13183IFS=$as_save_IFS
1c710c3c 13184
040b1c5a
GK
13185fi
13186fi
1c710c3c 13187STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13188if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13190$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13191else
5213506e
RW
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13193$as_echo "no" >&6; }
040b1c5a 13194fi
1c710c3c 13195
5213506e 13196
e8b05380
PB
13197 fi
13198 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13199 done
13200fi
1c710c3c 13201
040b1c5a
GK
13202if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13203 set dummy strip
13204 if test $build = $target ; then
13205 STRIP_FOR_TARGET="$2"
13206 else
13207 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13208 fi
1c00b503
PB
13209else
13210 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
13211fi
13212
d1f8db0c
PB
13213else
13214 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
13215fi
13216
13217
13218
13219
13220if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13221 if test -n "$with_build_time_tools"; then
5213506e
RW
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13223$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13224 if test -x $with_build_time_tools/windres; then
13225 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13226 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13228$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 13229 else
5213506e
RW
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13231$as_echo "no" >&6; }
d1f8db0c 13232 fi
e8b05380
PB
13233 elif test $build != $host && test $have_gcc_for_target = yes; then
13234 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
13235 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13236 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
13237 fi
13238fi
3e19841a 13239if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13240 # Extract the first word of "windres", so it can be a program name with args.
13241set dummy windres; ac_word=$2
5213506e
RW
13242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13243$as_echo_n "checking for $ac_word... " >&6; }
13244if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13245 $as_echo_n "(cached) " >&6
e8b05380 13246else
1c710c3c
DJ
13247 case $WINDRES_FOR_TARGET in
13248 [\\/]* | ?:[\\/]*)
e8b05380
PB
13249 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13250 ;;
e8b05380 13251 *)
1c710c3c
DJ
13252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13253for as_dir in $gcc_cv_tool_dirs
13254do
13255 IFS=$as_save_IFS
13256 test -z "$as_dir" && as_dir=.
5213506e
RW
13257 for ac_exec_ext in '' $ac_executable_extensions; do
13258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13259 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13261 break 2
13262 fi
13263done
5213506e
RW
13264 done
13265IFS=$as_save_IFS
1c710c3c 13266
e8b05380
PB
13267 ;;
13268esac
13269fi
1c710c3c 13270WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 13271if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13273$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 13274else
5213506e
RW
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13276$as_echo "no" >&6; }
e8b05380
PB
13277fi
13278
5213506e 13279
e8b05380
PB
13280fi
13281if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
13282
13283
13284if test -n "$WINDRES_FOR_TARGET"; then
13285 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13286elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13287 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13288fi
13289
13290if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13291 for ncn_progname in windres; do
13292 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13293set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13295$as_echo_n "checking for $ac_word... " >&6; }
13296if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13297 $as_echo_n "(cached) " >&6
278a7a38
AO
13298else
13299 if test -n "$WINDRES_FOR_TARGET"; then
13300 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13301else
13302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13303for as_dir in $PATH
13304do
13305 IFS=$as_save_IFS
13306 test -z "$as_dir" && as_dir=.
5213506e
RW
13307 for ac_exec_ext in '' $ac_executable_extensions; do
13308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 13309 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13311 break 2
13312 fi
13313done
5213506e
RW
13314 done
13315IFS=$as_save_IFS
278a7a38
AO
13316
13317fi
13318fi
13319WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13320if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13322$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 13323else
5213506e
RW
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13325$as_echo "no" >&6; }
278a7a38
AO
13326fi
13327
5213506e 13328
278a7a38
AO
13329 done
13330fi
13331
13332if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13333 for ncn_progname in windres; do
5213506e
RW
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13335$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13336 if test -x $with_build_time_tools/${ncn_progname}; then
13337 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13339$as_echo "yes" >&6; }
e8b05380
PB
13340 break
13341 else
5213506e
RW
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13343$as_echo "no" >&6; }
e8b05380
PB
13344 fi
13345 done
13346fi
13347
13348if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13349 for ncn_progname in windres; do
13350 if test -n "$ncn_target_tool_prefix"; then
13351 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13352set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13354$as_echo_n "checking for $ac_word... " >&6; }
13355if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13356 $as_echo_n "(cached) " >&6
ca9f4b81 13357else
4de997d1
PB
13358 if test -n "$WINDRES_FOR_TARGET"; then
13359 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13360else
1c710c3c
DJ
13361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13362for as_dir in $PATH
13363do
13364 IFS=$as_save_IFS
13365 test -z "$as_dir" && as_dir=.
5213506e
RW
13366 for ac_exec_ext in '' $ac_executable_extensions; do
13367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13368 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13370 break 2
13371 fi
13372done
5213506e
RW
13373 done
13374IFS=$as_save_IFS
1c710c3c 13375
ca9f4b81
AO
13376fi
13377fi
1c710c3c 13378WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 13379if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13381$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13382else
5213506e
RW
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13384$as_echo "no" >&6; }
ca9f4b81
AO
13385fi
13386
5213506e 13387
e8b05380
PB
13388 fi
13389 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13390 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13391set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13393$as_echo_n "checking for $ac_word... " >&6; }
13394if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13395 $as_echo_n "(cached) " >&6
ca9f4b81 13396else
2693c0b0
PB
13397 if test -n "$WINDRES_FOR_TARGET"; then
13398 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13399else
1c710c3c
DJ
13400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13401for as_dir in $PATH
13402do
13403 IFS=$as_save_IFS
13404 test -z "$as_dir" && as_dir=.
5213506e
RW
13405 for ac_exec_ext in '' $ac_executable_extensions; do
13406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13407 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13409 break 2
13410 fi
13411done
5213506e
RW
13412 done
13413IFS=$as_save_IFS
1c710c3c 13414
ca9f4b81
AO
13415fi
13416fi
1c710c3c 13417WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 13418if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13420$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13421else
5213506e
RW
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13423$as_echo "no" >&6; }
ca9f4b81 13424fi
1c710c3c 13425
5213506e 13426
e8b05380
PB
13427 fi
13428 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13429 done
13430fi
1c710c3c 13431
2693c0b0
PB
13432if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13433 set dummy windres
13434 if test $build = $target ; then
13435 WINDRES_FOR_TARGET="$2"
ca9f4b81 13436 else
2693c0b0 13437 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 13438 fi
1c00b503
PB
13439else
13440 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
13441fi
13442
d1f8db0c
PB
13443else
13444 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
13445fi
13446
4977bab6 13447
901119ae
KT
13448
13449
13450if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13451 if test -n "$with_build_time_tools"; then
5213506e
RW
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13453$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
13454 if test -x $with_build_time_tools/windmc; then
13455 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13456 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13458$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 13459 else
5213506e
RW
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13461$as_echo "no" >&6; }
901119ae
KT
13462 fi
13463 elif test $build != $host && test $have_gcc_for_target = yes; then
13464 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
13465 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13466 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
13467 fi
13468fi
13469if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13470 # Extract the first word of "windmc", so it can be a program name with args.
13471set dummy windmc; ac_word=$2
5213506e
RW
13472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13473$as_echo_n "checking for $ac_word... " >&6; }
13474if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13475 $as_echo_n "(cached) " >&6
901119ae
KT
13476else
13477 case $WINDMC_FOR_TARGET in
13478 [\\/]* | ?:[\\/]*)
13479 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13480 ;;
13481 *)
13482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13483for as_dir in $gcc_cv_tool_dirs
13484do
13485 IFS=$as_save_IFS
13486 test -z "$as_dir" && as_dir=.
5213506e
RW
13487 for ac_exec_ext in '' $ac_executable_extensions; do
13488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13489 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13491 break 2
13492 fi
13493done
5213506e
RW
13494 done
13495IFS=$as_save_IFS
901119ae
KT
13496
13497 ;;
13498esac
13499fi
13500WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 13501if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13503$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13504else
5213506e
RW
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13506$as_echo "no" >&6; }
901119ae
KT
13507fi
13508
5213506e 13509
901119ae
KT
13510fi
13511if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13512
13513
13514if test -n "$WINDMC_FOR_TARGET"; then
13515 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13516elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13517 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13518fi
13519
13520if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13521 for ncn_progname in windmc; do
13522 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13523set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13525$as_echo_n "checking for $ac_word... " >&6; }
13526if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13527 $as_echo_n "(cached) " >&6
901119ae
KT
13528else
13529 if test -n "$WINDMC_FOR_TARGET"; then
13530 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13531else
13532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13533for as_dir in $PATH
13534do
13535 IFS=$as_save_IFS
13536 test -z "$as_dir" && as_dir=.
5213506e
RW
13537 for ac_exec_ext in '' $ac_executable_extensions; do
13538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13539 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13541 break 2
13542 fi
13543done
5213506e
RW
13544 done
13545IFS=$as_save_IFS
901119ae
KT
13546
13547fi
13548fi
13549WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13550if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13552$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13553else
5213506e
RW
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13555$as_echo "no" >&6; }
901119ae
KT
13556fi
13557
5213506e 13558
901119ae
KT
13559 done
13560fi
13561
13562if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13563 for ncn_progname in windmc; do
5213506e
RW
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13565$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
13566 if test -x $with_build_time_tools/${ncn_progname}; then
13567 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13569$as_echo "yes" >&6; }
901119ae
KT
13570 break
13571 else
5213506e
RW
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13573$as_echo "no" >&6; }
901119ae
KT
13574 fi
13575 done
13576fi
13577
13578if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13579 for ncn_progname in windmc; do
13580 if test -n "$ncn_target_tool_prefix"; then
13581 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13582set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13584$as_echo_n "checking for $ac_word... " >&6; }
13585if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13586 $as_echo_n "(cached) " >&6
901119ae
KT
13587else
13588 if test -n "$WINDMC_FOR_TARGET"; then
13589 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13590else
13591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13592for as_dir in $PATH
13593do
13594 IFS=$as_save_IFS
13595 test -z "$as_dir" && as_dir=.
5213506e
RW
13596 for ac_exec_ext in '' $ac_executable_extensions; do
13597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13598 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13600 break 2
13601 fi
13602done
5213506e
RW
13603 done
13604IFS=$as_save_IFS
901119ae
KT
13605
13606fi
13607fi
13608WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13609if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13611$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13612else
5213506e
RW
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13614$as_echo "no" >&6; }
901119ae
KT
13615fi
13616
5213506e 13617
901119ae
KT
13618 fi
13619 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13620 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13621set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13623$as_echo_n "checking for $ac_word... " >&6; }
13624if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13625 $as_echo_n "(cached) " >&6
901119ae
KT
13626else
13627 if test -n "$WINDMC_FOR_TARGET"; then
13628 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13629else
13630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13631for as_dir in $PATH
13632do
13633 IFS=$as_save_IFS
13634 test -z "$as_dir" && as_dir=.
5213506e
RW
13635 for ac_exec_ext in '' $ac_executable_extensions; do
13636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13637 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13639 break 2
13640 fi
13641done
5213506e
RW
13642 done
13643IFS=$as_save_IFS
901119ae
KT
13644
13645fi
13646fi
13647WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13648if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13650$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13651else
5213506e
RW
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13653$as_echo "no" >&6; }
901119ae
KT
13654fi
13655
5213506e 13656
901119ae
KT
13657 fi
13658 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13659 done
13660fi
13661
13662if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13663 set dummy windmc
13664 if test $build = $target ; then
13665 WINDMC_FOR_TARGET="$2"
13666 else
13667 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13668 fi
1c00b503
PB
13669else
13670 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
13671fi
13672
13673else
13674 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13675fi
13676
13677
2abefe3d
PB
13678RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13679
5213506e
RW
13680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13681$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 13682if test "x${build}" != "x${host}" ; then
e8b05380
PB
13683 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13684 # We already found the complete path
172e41aa 13685 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13687$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13688 else
13689 # Canadian cross, just use what we found
5213506e
RW
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13691$as_echo "pre-installed" >&6; }
e8b05380 13692 fi
2abefe3d
PB
13693else
13694 ok=yes
13695 case " ${configdirs} " in
13696 *" binutils "*) ;;
13697 *) ok=no ;;
13698 esac
1c710c3c 13699
2abefe3d
PB
13700 if test $ok = yes; then
13701 # An in-tree tool is available and we can use it
13702 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13704$as_echo "just compiled" >&6; }
e8b05380
PB
13705 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13706 # We already found the complete path
172e41aa 13707 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13709$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13710 elif test "x$target" = "x$host"; then
13711 # We can use an host tool
13712 AR_FOR_TARGET='$(AR)'
5213506e
RW
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13714$as_echo "host tool" >&6; }
2abefe3d
PB
13715 else
13716 # We need a cross tool
5213506e
RW
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13718$as_echo "pre-installed" >&6; }
2abefe3d
PB
13719 fi
13720fi
0b0dc272 13721
5213506e
RW
13722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13723$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 13724if test "x${build}" != "x${host}" ; then
e8b05380
PB
13725 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13726 # We already found the complete path
172e41aa 13727 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13729$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13730 else
13731 # Canadian cross, just use what we found
5213506e
RW
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13733$as_echo "pre-installed" >&6; }
e8b05380 13734 fi
2abefe3d
PB
13735else
13736 ok=yes
13737 case " ${configdirs} " in
13738 *" gas "*) ;;
13739 *) ok=no ;;
13740 esac
1c710c3c 13741
2abefe3d
PB
13742 if test $ok = yes; then
13743 # An in-tree tool is available and we can use it
13744 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13746$as_echo "just compiled" >&6; }
e8b05380
PB
13747 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13748 # We already found the complete path
172e41aa 13749 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13751$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13752 elif test "x$target" = "x$host"; then
13753 # We can use an host tool
13754 AS_FOR_TARGET='$(AS)'
5213506e
RW
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13756$as_echo "host tool" >&6; }
2abefe3d
PB
13757 else
13758 # We need a cross tool
5213506e
RW
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13760$as_echo "pre-installed" >&6; }
2abefe3d
PB
13761 fi
13762fi
0b0dc272 13763
5213506e
RW
13764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13765$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 13766if test "x${build}" != "x${host}" ; then
e8b05380
PB
13767 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13768 # We already found the complete path
172e41aa 13769 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13771$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13772 else
13773 # Canadian cross, just use what we found
5213506e
RW
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13775$as_echo "pre-installed" >&6; }
e8b05380 13776 fi
2abefe3d
PB
13777else
13778 ok=yes
13779 case " ${configdirs} " in
13780 *" gcc "*) ;;
13781 *) ok=no ;;
13782 esac
1c710c3c 13783
2abefe3d
PB
13784 if test $ok = yes; then
13785 # An in-tree tool is available and we can use it
13786 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13788$as_echo "just compiled" >&6; }
e8b05380
PB
13789 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13790 # We already found the complete path
172e41aa 13791 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13793$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13794 elif test "x$target" = "x$host"; then
13795 # We can use an host tool
13796 CC_FOR_TARGET='$(CC)'
5213506e
RW
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13798$as_echo "host tool" >&6; }
2abefe3d
PB
13799 else
13800 # We need a cross tool
5213506e
RW
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13802$as_echo "pre-installed" >&6; }
2abefe3d
PB
13803 fi
13804fi
0b0dc272 13805
5213506e
RW
13806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13807$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 13808if test "x${build}" != "x${host}" ; then
e8b05380
PB
13809 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13810 # We already found the complete path
172e41aa 13811 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13813$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13814 else
13815 # Canadian cross, just use what we found
5213506e
RW
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13817$as_echo "pre-installed" >&6; }
e8b05380 13818 fi
2abefe3d
PB
13819else
13820 ok=yes
13821 case " ${configdirs} " in
13822 *" gcc "*) ;;
13823 *) ok=no ;;
13824 esac
13825 case ,${enable_languages}, in
13826 *,c++,*) ;;
13827 *) ok=no ;;
13828 esac
13829 if test $ok = yes; then
13830 # An in-tree tool is available and we can use it
2077db1b 13831 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
5213506e
RW
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13833$as_echo "just compiled" >&6; }
e8b05380
PB
13834 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13835 # We already found the complete path
172e41aa 13836 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13838$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13839 elif test "x$target" = "x$host"; then
13840 # We can use an host tool
13841 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13843$as_echo "host tool" >&6; }
2abefe3d
PB
13844 else
13845 # We need a cross tool
5213506e
RW
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13847$as_echo "pre-installed" >&6; }
2abefe3d
PB
13848 fi
13849fi
0b0dc272 13850
5213506e
RW
13851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13852$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 13853if test "x${build}" != "x${host}" ; then
e8b05380
PB
13854 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13855 # We already found the complete path
172e41aa 13856 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13858$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13859 else
13860 # Canadian cross, just use what we found
5213506e
RW
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13862$as_echo "pre-installed" >&6; }
e8b05380 13863 fi
2abefe3d
PB
13864else
13865 ok=yes
13866 case " ${configdirs} " in
13867 *" gcc "*) ;;
13868 *) ok=no ;;
13869 esac
13870 case ,${enable_languages}, in
13871 *,c++,*) ;;
13872 *) ok=no ;;
13873 esac
13874 if test $ok = yes; then
13875 # An in-tree tool is available and we can use it
2077db1b 13876 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
5213506e
RW
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13878$as_echo "just compiled" >&6; }
e8b05380
PB
13879 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13880 # We already found the complete path
172e41aa 13881 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13883$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13884 elif test "x$target" = "x$host"; then
13885 # We can use an host tool
13886 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13888$as_echo "host tool" >&6; }
2abefe3d
PB
13889 else
13890 # We need a cross tool
5213506e
RW
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13892$as_echo "pre-installed" >&6; }
2abefe3d
PB
13893 fi
13894fi
0b0dc272 13895
5213506e
RW
13896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13897$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 13898if test "x${build}" != "x${host}" ; then
e8b05380
PB
13899 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13900 # We already found the complete path
172e41aa 13901 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13903$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13904 else
13905 # Canadian cross, just use what we found
5213506e
RW
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13907$as_echo "pre-installed" >&6; }
e8b05380 13908 fi
2abefe3d
PB
13909else
13910 ok=yes
13911 case " ${configdirs} " in
13912 *" binutils "*) ;;
13913 *) ok=no ;;
13914 esac
1c710c3c 13915
2abefe3d
PB
13916 if test $ok = yes; then
13917 # An in-tree tool is available and we can use it
13918 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13920$as_echo "just compiled" >&6; }
e8b05380
PB
13921 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13922 # We already found the complete path
172e41aa 13923 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13925$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13926 elif test "x$target" = "x$host"; then
13927 # We can use an host tool
13928 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13930$as_echo "host tool" >&6; }
2abefe3d
PB
13931 else
13932 # We need a cross tool
5213506e
RW
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13934$as_echo "pre-installed" >&6; }
2abefe3d
PB
13935 fi
13936fi
0b0dc272 13937
5213506e
RW
13938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13939$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 13940if test "x${build}" != "x${host}" ; then
e8b05380
PB
13941 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13942 # We already found the complete path
172e41aa 13943 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13945$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13946 else
13947 # Canadian cross, just use what we found
5213506e
RW
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13949$as_echo "pre-installed" >&6; }
e8b05380 13950 fi
2abefe3d
PB
13951else
13952 ok=yes
13953 case " ${configdirs} " in
13954 *" gcc "*) ;;
13955 *) ok=no ;;
13956 esac
1c710c3c 13957
2abefe3d
PB
13958 if test $ok = yes; then
13959 # An in-tree tool is available and we can use it
13960 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13962$as_echo "just compiled" >&6; }
e8b05380
PB
13963 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13964 # We already found the complete path
172e41aa 13965 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13967$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13968 elif test "x$target" = "x$host"; then
13969 # We can use an host tool
13970 GCC_FOR_TARGET='$()'
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 gfortran" >&5
13981$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 13982if test "x${build}" != "x${host}" ; then
e8b05380
PB
13983 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13984 # We already found the complete path
172e41aa 13985 ac_dir=`dirname $GFORTRAN_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 *" gcc "*) ;;
13997 *) ok=no ;;
13998 esac
13999 case ,${enable_languages}, in
14000 *,fortran,*) ;;
14001 *) ok=no ;;
14002 esac
14003 if test $ok = yes; then
14004 # An in-tree tool is available and we can use it
14005 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14007$as_echo "just compiled" >&6; }
e8b05380
PB
14008 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14009 # We already found the complete path
172e41aa 14010 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14012$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14013 elif test "x$target" = "x$host"; then
14014 # We can use an host tool
14015 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14017$as_echo "host tool" >&6; }
2abefe3d
PB
14018 else
14019 # We need a cross tool
5213506e
RW
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14021$as_echo "pre-installed" >&6; }
2abefe3d
PB
14022 fi
14023fi
0b0dc272 14024
632e2a07
ILT
14025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14026$as_echo_n "checking where to find the target gccgo... " >&6; }
14027if test "x${build}" != "x${host}" ; then
14028 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14029 # We already found the complete path
14030 ac_dir=`dirname $GOC_FOR_TARGET`
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14032$as_echo "pre-installed in $ac_dir" >&6; }
14033 else
14034 # Canadian cross, just use what we found
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14036$as_echo "pre-installed" >&6; }
14037 fi
14038else
14039 ok=yes
14040 case " ${configdirs} " in
14041 *" gcc "*) ;;
14042 *) ok=no ;;
14043 esac
14044 case ,${enable_languages}, in
14045 *,go,*) ;;
14046 *) ok=no ;;
14047 esac
14048 if test $ok = yes; then
14049 # An in-tree tool is available and we can use it
14050 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14052$as_echo "just compiled" >&6; }
14053 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14054 # We already found the complete path
14055 ac_dir=`dirname $GOC_FOR_TARGET`
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14057$as_echo "pre-installed in $ac_dir" >&6; }
14058 elif test "x$target" = "x$host"; then
14059 # We can use an host tool
14060 GOC_FOR_TARGET='$(GOC)'
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14062$as_echo "host tool" >&6; }
14063 else
14064 # We need a cross tool
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14066$as_echo "pre-installed" >&6; }
14067 fi
14068fi
14069
5213506e
RW
14070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14071$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 14072if test "x${build}" != "x${host}" ; then
e8b05380
PB
14073 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14074 # We already found the complete path
172e41aa 14075 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14077$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14078 else
14079 # Canadian cross, just use what we found
5213506e
RW
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14081$as_echo "pre-installed" >&6; }
e8b05380 14082 fi
2abefe3d
PB
14083else
14084 ok=yes
14085 case " ${configdirs} " in
14086 *" ld "*) ;;
14087 *) ok=no ;;
14088 esac
1c710c3c 14089
2abefe3d
PB
14090 if test $ok = yes; then
14091 # An in-tree tool is available and we can use it
14092 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14094$as_echo "just compiled" >&6; }
e8b05380
PB
14095 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14096 # We already found the complete path
172e41aa 14097 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14099$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14100 elif test "x$target" = "x$host"; then
14101 # We can use an host tool
14102 LD_FOR_TARGET='$(LD)'
5213506e
RW
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14104$as_echo "host tool" >&6; }
2abefe3d
PB
14105 else
14106 # We need a cross tool
5213506e
RW
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14108$as_echo "pre-installed" >&6; }
2abefe3d
PB
14109 fi
14110fi
0b0dc272 14111
5213506e
RW
14112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14113$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 14114if test "x${build}" != "x${host}" ; then
e8b05380
PB
14115 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14116 # We already found the complete path
172e41aa 14117 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14119$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14120 else
14121 # Canadian cross, just use what we found
5213506e
RW
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14123$as_echo "pre-installed" >&6; }
e8b05380 14124 fi
2abefe3d 14125else
e8b05380
PB
14126 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14127 # We already found the complete path
172e41aa 14128 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14130$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 14131 elif test "x$target" = "x$host"; then
2abefe3d
PB
14132 # We can use an host tool
14133 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14135$as_echo "host tool" >&6; }
2abefe3d
PB
14136 else
14137 # We need a cross tool
5213506e
RW
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14139$as_echo "pre-installed" >&6; }
2abefe3d
PB
14140 fi
14141fi
0b0dc272 14142
5213506e
RW
14143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14144$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 14145if test "x${build}" != "x${host}" ; then
e8b05380
PB
14146 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14147 # We already found the complete path
172e41aa 14148 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14150$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14151 else
14152 # Canadian cross, just use what we found
5213506e
RW
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14154$as_echo "pre-installed" >&6; }
e8b05380 14155 fi
2abefe3d
PB
14156else
14157 ok=yes
14158 case " ${configdirs} " in
14159 *" binutils "*) ;;
14160 *) ok=no ;;
14161 esac
1c710c3c 14162
2abefe3d
PB
14163 if test $ok = yes; then
14164 # An in-tree tool is available and we can use it
14165 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14167$as_echo "just compiled" >&6; }
e8b05380
PB
14168 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14169 # We already found the complete path
172e41aa 14170 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14172$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14173 elif test "x$target" = "x$host"; then
14174 # We can use an host tool
14175 NM_FOR_TARGET='$(NM)'
5213506e
RW
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14177$as_echo "host tool" >&6; }
2abefe3d
PB
14178 else
14179 # We need a cross tool
5213506e
RW
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14181$as_echo "pre-installed" >&6; }
2abefe3d
PB
14182 fi
14183fi
0b0dc272 14184
9bccfdf5
AP
14185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14186$as_echo_n "checking where to find the target objcopy... " >&6; }
14187if test "x${build}" != "x${host}" ; then
14188 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14189 # We already found the complete path
14190 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14192$as_echo "pre-installed in $ac_dir" >&6; }
14193 else
14194 # Canadian cross, just use what we found
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14196$as_echo "pre-installed" >&6; }
14197 fi
14198else
14199 ok=yes
14200 case " ${configdirs} " in
14201 *" binutils "*) ;;
14202 *) ok=no ;;
14203 esac
14204
14205 if test $ok = yes; then
14206 # An in-tree tool is available and we can use it
14207 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14209$as_echo "just compiled" >&6; }
14210 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14211 # We already found the complete path
14212 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14214$as_echo "pre-installed in $ac_dir" >&6; }
14215 elif test "x$target" = "x$host"; then
14216 # We can use an host tool
ec8fd1c0 14217 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
9bccfdf5
AP
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14219$as_echo "host tool" >&6; }
14220 else
14221 # We need a cross tool
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14223$as_echo "pre-installed" >&6; }
14224 fi
14225fi
14226
5213506e
RW
14227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14228$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 14229if test "x${build}" != "x${host}" ; then
e8b05380
PB
14230 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14231 # We already found the complete path
172e41aa 14232 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14234$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14235 else
14236 # Canadian cross, just use what we found
5213506e
RW
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14238$as_echo "pre-installed" >&6; }
e8b05380 14239 fi
2abefe3d
PB
14240else
14241 ok=yes
14242 case " ${configdirs} " in
14243 *" binutils "*) ;;
14244 *) ok=no ;;
14245 esac
1c710c3c 14246
2abefe3d
PB
14247 if test $ok = yes; then
14248 # An in-tree tool is available and we can use it
14249 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14251$as_echo "just compiled" >&6; }
e8b05380
PB
14252 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14253 # We already found the complete path
172e41aa 14254 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14256$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14257 elif test "x$target" = "x$host"; then
14258 # We can use an host tool
14259 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14261$as_echo "host tool" >&6; }
2abefe3d
PB
14262 else
14263 # We need a cross tool
5213506e
RW
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14265$as_echo "pre-installed" >&6; }
2abefe3d
PB
14266 fi
14267fi
0b0dc272 14268
5213506e
RW
14269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14270$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 14271if test "x${build}" != "x${host}" ; then
e8b05380
PB
14272 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14273 # We already found the complete path
172e41aa 14274 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14276$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14277 else
14278 # Canadian cross, just use what we found
5213506e
RW
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14280$as_echo "pre-installed" >&6; }
e8b05380 14281 fi
2abefe3d
PB
14282else
14283 ok=yes
14284 case " ${configdirs} " in
14285 *" binutils "*) ;;
14286 *) ok=no ;;
14287 esac
1c710c3c 14288
2abefe3d
PB
14289 if test $ok = yes; then
14290 # An in-tree tool is available and we can use it
14291 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14293$as_echo "just compiled" >&6; }
e8b05380
PB
14294 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14295 # We already found the complete path
172e41aa 14296 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14298$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14299 elif test "x$target" = "x$host"; then
14300 # We can use an host tool
14301 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14303$as_echo "host tool" >&6; }
2abefe3d
PB
14304 else
14305 # We need a cross tool
5213506e
RW
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14307$as_echo "pre-installed" >&6; }
2abefe3d
PB
14308 fi
14309fi
0b0dc272 14310
e7a82751
RM
14311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14312$as_echo_n "checking where to find the target readelf... " >&6; }
14313if test "x${build}" != "x${host}" ; then
14314 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14315 # We already found the complete path
14316 ac_dir=`dirname $READELF_FOR_TARGET`
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14318$as_echo "pre-installed in $ac_dir" >&6; }
14319 else
14320 # Canadian cross, just use what we found
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14322$as_echo "pre-installed" >&6; }
14323 fi
14324else
14325 ok=yes
14326 case " ${configdirs} " in
14327 *" binutils "*) ;;
14328 *) ok=no ;;
14329 esac
14330
14331 if test $ok = yes; then
14332 # An in-tree tool is available and we can use it
14333 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14335$as_echo "just compiled" >&6; }
14336 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14337 # We already found the complete path
14338 ac_dir=`dirname $READELF_FOR_TARGET`
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14340$as_echo "pre-installed in $ac_dir" >&6; }
14341 elif test "x$target" = "x$host"; then
14342 # We can use an host tool
14343 READELF_FOR_TARGET='$(READELF)'
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14345$as_echo "host tool" >&6; }
14346 else
14347 # We need a cross tool
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14349$as_echo "pre-installed" >&6; }
14350 fi
14351fi
14352
5213506e
RW
14353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14354$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 14355if test "x${build}" != "x${host}" ; then
e8b05380
PB
14356 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14357 # We already found the complete path
172e41aa 14358 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14360$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14361 else
14362 # Canadian cross, just use what we found
5213506e
RW
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14364$as_echo "pre-installed" >&6; }
e8b05380 14365 fi
2abefe3d
PB
14366else
14367 ok=yes
14368 case " ${configdirs} " in
14369 *" binutils "*) ;;
14370 *) ok=no ;;
14371 esac
1c710c3c 14372
2abefe3d
PB
14373 if test $ok = yes; then
14374 # An in-tree tool is available and we can use it
455c8f48 14375 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14377$as_echo "just compiled" >&6; }
e8b05380
PB
14378 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14379 # We already found the complete path
172e41aa 14380 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14382$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14383 elif test "x$target" = "x$host"; then
14384 # We can use an host tool
14385 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14387$as_echo "host tool" >&6; }
2abefe3d
PB
14388 else
14389 # We need a cross tool
5213506e
RW
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14391$as_echo "pre-installed" >&6; }
2abefe3d
PB
14392 fi
14393fi
0b0dc272 14394
5213506e
RW
14395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14396$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 14397if test "x${build}" != "x${host}" ; then
e8b05380
PB
14398 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14399 # We already found the complete path
172e41aa 14400 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14402$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14403 else
14404 # Canadian cross, just use what we found
5213506e
RW
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14406$as_echo "pre-installed" >&6; }
e8b05380 14407 fi
2abefe3d
PB
14408else
14409 ok=yes
14410 case " ${configdirs} " in
14411 *" binutils "*) ;;
14412 *) ok=no ;;
14413 esac
1c710c3c 14414
2abefe3d
PB
14415 if test $ok = yes; then
14416 # An in-tree tool is available and we can use it
14417 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14419$as_echo "just compiled" >&6; }
e8b05380
PB
14420 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14421 # We already found the complete path
172e41aa 14422 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14424$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14425 elif test "x$target" = "x$host"; then
14426 # We can use an host tool
14427 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14429$as_echo "host tool" >&6; }
2abefe3d
PB
14430 else
14431 # We need a cross tool
5213506e
RW
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14433$as_echo "pre-installed" >&6; }
2abefe3d 14434 fi
671aa708 14435fi
be912515 14436
5213506e
RW
14437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14438$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
14439if test "x${build}" != "x${host}" ; then
14440 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14441 # We already found the complete path
14442 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14444$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14445 else
14446 # Canadian cross, just use what we found
5213506e
RW
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14448$as_echo "pre-installed" >&6; }
901119ae
KT
14449 fi
14450else
14451 ok=yes
14452 case " ${configdirs} " in
14453 *" binutils "*) ;;
14454 *) ok=no ;;
14455 esac
14456
14457 if test $ok = yes; then
14458 # An in-tree tool is available and we can use it
14459 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14461$as_echo "just compiled" >&6; }
901119ae
KT
14462 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14463 # We already found the complete path
14464 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14466$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14467 elif test "x$target" = "x$host"; then
14468 # We can use an host tool
14469 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14471$as_echo "host tool" >&6; }
901119ae
KT
14472 else
14473 # We need a cross tool
5213506e
RW
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14475$as_echo "pre-installed" >&6; }
901119ae
KT
14476 fi
14477fi
14478
be912515
NN
14479
14480
2abefe3d 14481
0b0dc272 14482
671aa708
NN
14483# Certain tools may need extra flags.
14484AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14485RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14486NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14487
2abefe3d
PB
14488# When building target libraries, except in a Canadian cross, we use
14489# the same toolchain as the compiler we just built.
14490COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14491COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14492COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14493if test $host = $build; then
14494 case " $configdirs " in
14495 *" gcc "*)
14496 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14497 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14498 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14499 ;;
14500 esac
14501fi
14502
14503
14504
14505
14506
5213506e
RW
14507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14508$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14509# Check whether --enable-maintainer-mode was given.
14510if test "${enable_maintainer_mode+set}" = set; then :
14511 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
14512else
14513 USE_MAINTAINER_MODE=no
5213506e
RW
14514fi
14515
14516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14517$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
14518
14519
14520if test "$USE_MAINTAINER_MODE" = yes; then
14521 MAINTAINER_MODE_TRUE=
14522 MAINTAINER_MODE_FALSE='#'
14523else
14524 MAINTAINER_MODE_TRUE='#'
14525 MAINTAINER_MODE_FALSE=
1c710c3c 14526fi
ee03dc5e
AO
14527MAINT=$MAINTAINER_MODE_TRUE
14528
2805b53a
NN
14529# ---------------------
14530# GCC bootstrap support
14531# ---------------------
14532
14533# Stage specific cflags for build.
14534stage1_cflags="-g"
14535case $build in
14536 vax-*-*)
14537 case ${GCC} in
14538 yes) stage1_cflags="-g -Wa,-J" ;;
14539 *) stage1_cflags="-g -J" ;;
14540 esac ;;
2805b53a
NN
14541esac
14542
0b50988a 14543
2805b53a 14544
8efea775 14545# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
14546# Check whether --enable-stage1-checking was given.
14547if test "${enable_stage1_checking+set}" = set; then :
14548 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 14549else
e643dc23 14550 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
c10b5ea0
JJ
14551 # For --disable-checking or implicit --enable-checking=release, avoid
14552 # setting --enable-checking=gc in the default stage1 checking for LTO
14553 # bootstraps. See PR62077.
c10b5ea0
JJ
14554 case $BUILD_CONFIG in
14555 *lto*)
7db11a5a
JJ
14556 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14557 *)
14558 stage1_checking=--enable-checking=yes,types;;
c10b5ea0 14559 esac
7db11a5a
JJ
14560 if test "x$enable_checking" = x && \
14561 test -d ${srcdir}/gcc && \
14562 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
c100769b 14563 stage1_checking=--enable-checking=yes,types,extra
7db11a5a 14564 fi
8efea775 14565else
e643dc23 14566 stage1_checking=--enable-checking=$enable_checking,types
8efea775 14567fi
5213506e 14568fi
8efea775
PB
14569
14570
2aeb72e9 14571
5213506e
RW
14572# Enable -Werror in bootstrap stage2 and later.
14573# Check whether --enable-werror was given.
14574if test "${enable_werror+set}" = set; then :
14575 enableval=$enable_werror;
2805b53a 14576else
416cfb5e 14577 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 14578 enable_werror=yes
88fceb68
PB
14579else
14580 enable_werror=no
14581fi
5213506e
RW
14582fi
14583
09a9c095
NN
14584case ${enable_werror} in
14585 yes) stage2_werror_flag="--enable-werror-always" ;;
14586 *) stage2_werror_flag="" ;;
2805b53a
NN
14587esac
14588
14589
459260ec
DM
14590# Enable --enable-host-shared.
14591# Check whether --enable-host-shared was given.
14592if test "${enable_host_shared+set}" = set; then :
14593 enableval=$enable_host_shared; host_shared=$enableval
14594else
14595 host_shared=no
14596fi
14597
14598
14599
231d020b
DM
14600# PR jit/64780: Require the user to explicitly specify
14601# --enable-host-shared if the jit is enabled, hinting
14602# that they might want to do a separate configure/build of
14603# the jit, to avoid users from slowing down the rest of the
14604# compiler by enabling the jit.
14605if test ${host_shared} = "no" ; then
14606 case "${enable_languages}" in
14607 *jit*)
14608 as_fn_error "
14609Enabling language \"jit\" requires --enable-host-shared.
14610
14611--enable-host-shared typically slows the rest of the compiler down by
14612a few %, so you must explicitly enable it.
14613
14614If you want to build both the jit and the regular compiler, it is often
14615best to do this via two separate configure/builds, in separate
14616directories, to avoid imposing the performance cost of
14617--enable-host-shared on the regular compiler." "$LINENO" 5
14618 ;;
14619 *)
14620 ;;
14621 esac
14622fi
14623
f2689b09
SE
14624# Specify what files to not compare during bootstrap.
14625
14626compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14627case "$target" in
14628 hppa*64*-*-hpux*) ;;
14629 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
d91491e5 14630 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
f2689b09
SE
14631esac
14632
14633
5213506e
RW
14634ac_config_files="$ac_config_files Makefile"
14635
1c710c3c 14636cat >confcache <<\_ACEOF
671aa708
NN
14637# This file is a shell script that caches the results of configure
14638# tests run on this system so they can be shared between configure
1c710c3c
DJ
14639# scripts and configure runs, see configure's option --config-cache.
14640# It is not useful on other systems. If it contains results you don't
14641# want to keep, you may remove or edit it.
671aa708 14642#
1c710c3c
DJ
14643# config.status only pays attention to the cache file if you give it
14644# the --recheck option to rerun configure.
671aa708 14645#
1c710c3c
DJ
14646# `ac_cv_env_foo' variables (set or unset) will be overridden when
14647# loading this file, other *unset* `ac_cv_foo' will be assigned the
14648# following values.
14649
14650_ACEOF
14651
671aa708
NN
14652# The following way of writing the cache mishandles newlines in values,
14653# but we know of no workaround that is simple, portable, and efficient.
5213506e 14654# So, we kill variables containing newlines.
671aa708
NN
14655# Ultrix sh set writes to stderr and can't be redirected directly,
14656# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
14657(
14658 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14659 eval ac_val=\$$ac_var
14660 case $ac_val in #(
14661 *${as_nl}*)
14662 case $ac_var in #(
14663 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14664$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14665 esac
14666 case $ac_var in #(
14667 _ | IFS | as_nl) ;; #(
14668 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14669 *) { eval $ac_var=; unset $ac_var;} ;;
14670 esac ;;
14671 esac
14672 done
14673
1c710c3c 14674 (set) 2>&1 |
5213506e
RW
14675 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14676 *${as_nl}ac_space=\ *)
14677 # `set' does not quote correctly, so add quotes: double-quote
14678 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
14679 sed -n \
14680 "s/'/'\\\\''/g;
14681 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 14682 ;; #(
1c710c3c
DJ
14683 *)
14684 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 14685 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 14686 ;;
5213506e
RW
14687 esac |
14688 sort
14689) |
1c710c3c 14690 sed '
5213506e 14691 /^ac_cv_env_/b end
1c710c3c 14692 t clear
5213506e 14693 :clear
1c710c3c
DJ
14694 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14695 t end
5213506e
RW
14696 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14697 :end' >>confcache
14698if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14699 if test -w "$cache_file"; then
14700 test "x$cache_file" != "x/dev/null" &&
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14702$as_echo "$as_me: updating cache $cache_file" >&6;}
1c710c3c 14703 cat confcache >$cache_file
671aa708 14704 else
5213506e
RW
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14706$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 14707 fi
4977bab6 14708fi
671aa708 14709rm -f confcache
79c06341 14710
671aa708
NN
14711test "x$prefix" = xNONE && prefix=$ac_default_prefix
14712# Let make expand exec_prefix.
14713test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 14714
671aa708
NN
14715# Transform confdefs.h into DEFS.
14716# Protect against shell expansion while executing Makefile rules.
14717# Protect against Makefile macro expansion.
1c710c3c
DJ
14718#
14719# If the first sed substitution is executed (which looks for macros that
5213506e 14720# take arguments), then branch to the quote section. Otherwise,
1c710c3c 14721# look for a macro that doesn't take arguments.
5213506e
RW
14722ac_script='
14723:mline
14724/\\$/{
14725 N
14726 s,\\\n,,
14727 b mline
14728}
1c710c3c 14729t clear
5213506e
RW
14730:clear
14731s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14732t quote
5213506e 14733s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14734t quote
5213506e
RW
14735b any
14736:quote
14737s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14738s/\[/\\&/g
14739s/\]/\\&/g
14740s/\$/$$/g
14741H
14742:any
14743${
14744 g
14745 s/^\n//
14746 s/\n/ /g
14747 p
14748}
14749'
14750DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
14751
14752
14753ac_libobjs=
14754ac_ltlibobjs=
14755for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14756 # 1. Remove the extension, and $U if already installed.
5213506e
RW
14757 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14758 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14759 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14760 # will be set to the directory where LIBOBJS objects are built.
14761 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14762 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
14763done
14764LIBOBJS=$ac_libobjs
fb0103e5 14765
1c710c3c 14766LTLIBOBJS=$ac_ltlibobjs
0b0dc272 14767
af71363e 14768
1c710c3c
DJ
14769
14770: ${CONFIG_STATUS=./config.status}
5213506e 14771ac_write_fail=0
1c710c3c
DJ
14772ac_clean_files_save=$ac_clean_files
14773ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
14774{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14775$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14776as_write_fail=0
14777cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
14778#! $SHELL
14779# Generated by $as_me.
671aa708 14780# Run this file to recreate the current configuration.
671aa708 14781# Compiler output produced by configure, useful for debugging
1c710c3c 14782# configure, is in config.log if it exists.
0b0dc272 14783
1c710c3c
DJ
14784debug=false
14785ac_cs_recheck=false
14786ac_cs_silent=false
1c710c3c 14787
5213506e
RW
14788SHELL=\${CONFIG_SHELL-$SHELL}
14789export SHELL
14790_ASEOF
14791cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14792## -------------------- ##
14793## M4sh Initialization. ##
14794## -------------------- ##
14795
14796# Be more Bourne compatible
14797DUALCASE=1; export DUALCASE # for MKS sh
14798if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
14799 emulate sh
14800 NULLCMD=:
5213506e 14801 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
14802 # is contrary to our usage. Disable this feature.
14803 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
14804 setopt NO_GLOB_SUBST
14805else
14806 case `(set -o) 2>/dev/null` in #(
14807 *posix*) :
14808 set -o posix ;; #(
14809 *) :
14810 ;;
14811esac
1c710c3c 14812fi
1c710c3c 14813
5213506e
RW
14814
14815as_nl='
14816'
14817export as_nl
14818# Printing a long string crashes Solaris 7 /usr/bin/printf.
14819as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14820as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14821as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14822# Prefer a ksh shell builtin over an external printf program on Solaris,
14823# but without wasting forks for bash or zsh.
14824if test -z "$BASH_VERSION$ZSH_VERSION" \
14825 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14826 as_echo='print -r --'
14827 as_echo_n='print -rn --'
14828elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14829 as_echo='printf %s\n'
14830 as_echo_n='printf %s'
14831else
14832 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14833 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14834 as_echo_n='/usr/ucb/echo -n'
14835 else
14836 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14837 as_echo_n_body='eval
14838 arg=$1;
14839 case $arg in #(
14840 *"$as_nl"*)
14841 expr "X$arg" : "X\\(.*\\)$as_nl";
14842 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14843 esac;
14844 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14845 '
14846 export as_echo_n_body
14847 as_echo_n='sh -c $as_echo_n_body as_echo'
14848 fi
14849 export as_echo_body
14850 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
14851fi
14852
5213506e
RW
14853# The user is always right.
14854if test "${PATH_SEPARATOR+set}" != set; then
14855 PATH_SEPARATOR=:
14856 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14857 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14858 PATH_SEPARATOR=';'
14859 }
14860fi
14861
14862
14863# IFS
14864# We need space, tab and new line, in precisely that order. Quoting is
14865# there to prevent editors from complaining about space-tab.
14866# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14867# splitting by setting IFS to empty value.)
14868IFS=" "" $as_nl"
14869
14870# Find who we are. Look in the path if we contain no directory separator.
14871case $0 in #((
14872 *[\\/]* ) as_myself=$0 ;;
14873 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14874for as_dir in $PATH
14875do
14876 IFS=$as_save_IFS
14877 test -z "$as_dir" && as_dir=.
14878 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14879 done
14880IFS=$as_save_IFS
14881
14882 ;;
14883esac
14884# We did not find ourselves, most probably we were run as `sh COMMAND'
14885# in which case we are not to be found in the path.
14886if test "x$as_myself" = x; then
14887 as_myself=$0
14888fi
14889if test ! -f "$as_myself"; then
14890 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14891 exit 1
14892fi
1c710c3c 14893
5213506e
RW
14894# Unset variables that we do not need and which cause bugs (e.g. in
14895# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14896# suppresses any "Segmentation fault" message there. '((' could
14897# trigger a bug in pdksh 5.2.14.
14898for as_var in BASH_ENV ENV MAIL MAILPATH
14899do eval test x\${$as_var+set} = xset \
14900 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14901done
1c710c3c
DJ
14902PS1='$ '
14903PS2='> '
14904PS4='+ '
14905
14906# NLS nuisances.
5213506e
RW
14907LC_ALL=C
14908export LC_ALL
14909LANGUAGE=C
14910export LANGUAGE
14911
14912# CDPATH.
14913(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14914
14915
14916# as_fn_error ERROR [LINENO LOG_FD]
14917# ---------------------------------
14918# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14919# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14920# script with status $?, using 1 if that was 0.
14921as_fn_error ()
14922{
14923 as_status=$?; test $as_status -eq 0 && as_status=1
14924 if test "$3"; then
14925 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14926 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1c710c3c 14927 fi
5213506e
RW
14928 $as_echo "$as_me: error: $1" >&2
14929 as_fn_exit $as_status
14930} # as_fn_error
14931
14932
14933# as_fn_set_status STATUS
14934# -----------------------
14935# Set $? to STATUS, without forking.
14936as_fn_set_status ()
14937{
14938 return $1
14939} # as_fn_set_status
14940
14941# as_fn_exit STATUS
14942# -----------------
14943# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14944as_fn_exit ()
14945{
14946 set +e
14947 as_fn_set_status $1
14948 exit $1
14949} # as_fn_exit
14950
14951# as_fn_unset VAR
14952# ---------------
14953# Portably unset VAR.
14954as_fn_unset ()
14955{
14956 { eval $1=; unset $1;}
14957}
14958as_unset=as_fn_unset
14959# as_fn_append VAR VALUE
14960# ----------------------
14961# Append the text in VALUE to the end of the definition contained in VAR. Take
14962# advantage of any shell optimizations that allow amortized linear growth over
14963# repeated appends, instead of the typical quadratic growth present in naive
14964# implementations.
14965if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14966 eval 'as_fn_append ()
14967 {
14968 eval $1+=\$2
14969 }'
14970else
14971 as_fn_append ()
14972 {
14973 eval $1=\$$1\$2
14974 }
14975fi # as_fn_append
14976
14977# as_fn_arith ARG...
14978# ------------------
14979# Perform arithmetic evaluation on the ARGs, and store the result in the
14980# global $as_val. Take advantage of shells that can avoid forks. The arguments
14981# must be portable across $(()) and expr.
14982if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14983 eval 'as_fn_arith ()
14984 {
14985 as_val=$(( $* ))
14986 }'
14987else
14988 as_fn_arith ()
14989 {
14990 as_val=`expr "$@" || test $? -eq 1`
14991 }
14992fi # as_fn_arith
14993
1c710c3c 14994
5213506e
RW
14995if expr a : '\(a\)' >/dev/null 2>&1 &&
14996 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
14997 as_expr=expr
14998else
14999 as_expr=false
15000fi
15001
5213506e 15002if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
15003 as_basename=basename
15004else
15005 as_basename=false
15006fi
15007
5213506e
RW
15008if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15009 as_dirname=dirname
15010else
15011 as_dirname=false
15012fi
1c710c3c 15013
5213506e 15014as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
15015$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15016 X"$0" : 'X\(//\)$' \| \
5213506e
RW
15017 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15018$as_echo X/"$0" |
15019 sed '/^.*\/\([^/][^/]*\)\/*$/{
15020 s//\1/
15021 q
15022 }
15023 /^X\/\(\/\/\)$/{
15024 s//\1/
15025 q
15026 }
15027 /^X\/\(\/\).*/{
15028 s//\1/
15029 q
15030 }
15031 s/.*/./; q'`
2aeb72e9 15032
2aeb72e9
DD
15033# Avoid depending upon Character Ranges.
15034as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15035as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15036as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15037as_cr_digits='0123456789'
15038as_cr_alnum=$as_cr_Letters$as_cr_digits
15039
5213506e
RW
15040ECHO_C= ECHO_N= ECHO_T=
15041case `echo -n x` in #(((((
15042-n*)
15043 case `echo 'xy\c'` in
15044 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15045 xy) ECHO_C='\c';;
15046 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15047 ECHO_T=' ';;
15048 esac;;
15049*)
15050 ECHO_N='-n';;
1c710c3c
DJ
15051esac
15052
5213506e
RW
15053rm -f conf$$ conf$$.exe conf$$.file
15054if test -d conf$$.dir; then
15055 rm -f conf$$.dir/conf$$.file
1c710c3c 15056else
5213506e
RW
15057 rm -f conf$$.dir
15058 mkdir conf$$.dir 2>/dev/null
1c710c3c 15059fi
5213506e
RW
15060if (echo >conf$$.file) 2>/dev/null; then
15061 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 15062 as_ln_s='ln -s'
5213506e
RW
15063 # ... but there are two gotchas:
15064 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15065 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15066 # In both cases, we have to default to `cp -p'.
15067 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15068 as_ln_s='cp -p'
15069 elif ln conf$$.file conf$$ 2>/dev/null; then
15070 as_ln_s=ln
15071 else
15072 as_ln_s='cp -p'
2aeb72e9 15073 fi
1c710c3c
DJ
15074else
15075 as_ln_s='cp -p'
15076fi
5213506e
RW
15077rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15078rmdir conf$$.dir 2>/dev/null
15079
15080
15081# as_fn_mkdir_p
15082# -------------
15083# Create "$as_dir" as a directory, including parents if necessary.
15084as_fn_mkdir_p ()
15085{
15086
15087 case $as_dir in #(
15088 -*) as_dir=./$as_dir;;
15089 esac
15090 test -d "$as_dir" || eval $as_mkdir_p || {
15091 as_dirs=
15092 while :; do
15093 case $as_dir in #(
15094 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15095 *) as_qdir=$as_dir;;
15096 esac
15097 as_dirs="'$as_qdir' $as_dirs"
15098 as_dir=`$as_dirname -- "$as_dir" ||
15099$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15100 X"$as_dir" : 'X\(//\)[^/]' \| \
15101 X"$as_dir" : 'X\(//\)$' \| \
15102 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15103$as_echo X"$as_dir" |
15104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15105 s//\1/
15106 q
15107 }
15108 /^X\(\/\/\)[^/].*/{
15109 s//\1/
15110 q
15111 }
15112 /^X\(\/\/\)$/{
15113 s//\1/
15114 q
15115 }
15116 /^X\(\/\).*/{
15117 s//\1/
15118 q
15119 }
15120 s/.*/./; q'`
15121 test -d "$as_dir" && break
15122 done
15123 test -z "$as_dirs" || eval "mkdir $as_dirs"
15124 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15125
1c710c3c 15126
5213506e 15127} # as_fn_mkdir_p
1c710c3c 15128if mkdir -p . 2>/dev/null; then
5213506e 15129 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
15130else
15131 test -d ./-p && rmdir ./-p
15132 as_mkdir_p=false
15133fi
15134
5213506e
RW
15135if test -x / >/dev/null 2>&1; then
15136 as_test_x='test -x'
15137else
15138 if ls -dL / >/dev/null 2>&1; then
15139 as_ls_L_option=L
15140 else
15141 as_ls_L_option=
15142 fi
15143 as_test_x='
15144 eval sh -c '\''
15145 if test -d "$1"; then
15146 test -d "$1/.";
15147 else
15148 case $1 in #(
15149 -*)set "./$1";;
15150 esac;
15151 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15152 ???[sx]*):;;*)false;;esac;fi
15153 '\'' sh
15154 '
15155fi
15156as_executable_p=$as_test_x
1c710c3c
DJ
15157
15158# Sed expression to map a string onto a valid CPP name.
15159as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15160
15161# Sed expression to map a string onto a valid variable name.
15162as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15163
15164
1c710c3c 15165exec 6>&1
5213506e
RW
15166## ----------------------------------- ##
15167## Main body of $CONFIG_STATUS script. ##
15168## ----------------------------------- ##
15169_ASEOF
15170test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15171
15172cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15173# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 15174# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
15175# values after options handling.
15176ac_log="
1c710c3c 15177This file was extended by $as_me, which was
5213506e 15178generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
15179
15180 CONFIG_FILES = $CONFIG_FILES
15181 CONFIG_HEADERS = $CONFIG_HEADERS
15182 CONFIG_LINKS = $CONFIG_LINKS
15183 CONFIG_COMMANDS = $CONFIG_COMMANDS
15184 $ $0 $@
15185
5213506e
RW
15186on `(hostname || uname -n) 2>/dev/null | sed 1q`
15187"
15188
1c710c3c
DJ
15189_ACEOF
15190
5213506e
RW
15191case $ac_config_files in *"
15192"*) set x $ac_config_files; shift; ac_config_files=$*;;
15193esac
1c710c3c 15194
2aeb72e9 15195
2aeb72e9 15196
5213506e
RW
15197cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15198# Files that config.status was made for.
15199config_files="$ac_config_files"
1c710c3c 15200
5213506e 15201_ACEOF
2aeb72e9 15202
5213506e 15203cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 15204ac_cs_usage="\
5213506e
RW
15205\`$as_me' instantiates files and other configuration actions
15206from templates according to the current configuration. Unless the files
15207and actions are specified as TAGs, all are instantiated by default.
1c710c3c 15208
5213506e 15209Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
15210
15211 -h, --help print this help, then exit
5213506e
RW
15212 -V, --version print version number and configuration settings, then exit
15213 -q, --quiet, --silent
15214 do not print progress messages
1c710c3c
DJ
15215 -d, --debug don't remove temporary files
15216 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
15217 --file=FILE[:TEMPLATE]
15218 instantiate the configuration file FILE
1c710c3c
DJ
15219
15220Configuration files:
15221$config_files
15222
5213506e 15223Report bugs to the package provider."
2aeb72e9 15224
5213506e
RW
15225_ACEOF
15226cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c
DJ
15227ac_cs_version="\\
15228config.status
5213506e
RW
15229configured by $0, generated by GNU Autoconf 2.64,
15230 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 15231
5213506e 15232Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
15233This config.status script is free software; the Free Software Foundation
15234gives unlimited permission to copy, distribute and modify it."
5213506e
RW
15235
15236ac_pwd='$ac_pwd'
15237srcdir='$srcdir'
15238INSTALL='$INSTALL'
87264276 15239AWK='$AWK'
5213506e 15240test -n "\$AWK" || AWK=awk
1c710c3c
DJ
15241_ACEOF
15242
5213506e
RW
15243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15244# The default lists apply if the user does not specify any file.
1c710c3c
DJ
15245ac_need_defaults=:
15246while test $# != 0
a4b9e93e 15247do
1c710c3c
DJ
15248 case $1 in
15249 --*=*)
5213506e
RW
15250 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15251 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
15252 ac_shift=:
15253 ;;
5213506e 15254 *)
1c710c3c
DJ
15255 ac_option=$1
15256 ac_optarg=$2
15257 ac_shift=shift
15258 ;;
1c710c3c
DJ
15259 esac
15260
15261 case $ac_option in
15262 # Handling of the options.
671aa708 15263 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 15264 ac_cs_recheck=: ;;
5213506e
RW
15265 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15266 $as_echo "$ac_cs_version"; exit ;;
15267 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
15268 debug=: ;;
15269 --file | --fil | --fi | --f )
15270 $ac_shift
5213506e
RW
15271 case $ac_optarg in
15272 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15273 esac
15274 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 15275 ac_need_defaults=false;;
5213506e
RW
15276 --he | --h | --help | --hel | -h )
15277 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
15278 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15279 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15280 ac_cs_silent=: ;;
15281
15282 # This is an error.
5213506e
RW
15283 -*) as_fn_error "unrecognized option: \`$1'
15284Try \`$0 --help' for more information." ;;
1c710c3c 15285
5213506e
RW
15286 *) as_fn_append ac_config_targets " $1"
15287 ac_need_defaults=false ;;
1c710c3c 15288
0b0dc272 15289 esac
1c710c3c 15290 shift
0b0dc272
AM
15291done
15292
1c710c3c 15293ac_configure_extra_args=
0b0dc272 15294
1c710c3c
DJ
15295if $ac_cs_silent; then
15296 exec 6>/dev/null
15297 ac_configure_extra_args="$ac_configure_extra_args --silent"
15298fi
0b0dc272 15299
1c710c3c 15300_ACEOF
5213506e 15301cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 15302if \$ac_cs_recheck; then
5213506e
RW
15303 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15304 shift
15305 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15306 CONFIG_SHELL='$SHELL'
15307 export CONFIG_SHELL
15308 exec "\$@"
1c710c3c
DJ
15309fi
15310
15311_ACEOF
5213506e
RW
15312cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15313exec 5>>config.log
15314{
15315 echo
15316 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15317## Running $as_me. ##
15318_ASBOX
15319 $as_echo "$ac_log"
15320} >&5
1c710c3c 15321
5213506e
RW
15322_ACEOF
15323cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
15324#
15325# INIT-COMMANDS
15326#
15327extrasub_build="$extrasub_build"
15328 extrasub_host="$extrasub_host"
15329 extrasub_target="$extrasub_target"
15330
5213506e 15331_ACEOF
1c710c3c 15332
5213506e 15333cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 15334
5213506e 15335# Handling of arguments.
1c710c3c
DJ
15336for ac_config_target in $ac_config_targets
15337do
5213506e
RW
15338 case $ac_config_target in
15339 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15340
15341 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
15342 esac
15343done
15344
5213506e 15345
1c710c3c
DJ
15346# If the user did not use the arguments to specify the items to instantiate,
15347# then the envvar interface is used. Set only those that are not.
15348# We use the long form for the default assignment because of an extremely
15349# bizarre bug on SunOS 4.1.3.
15350if $ac_need_defaults; then
15351 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15352fi
15353
15354# Have a temporary directory for convenience. Make it in the build tree
5213506e 15355# simply because there is no reason against having it here, and in addition,
1c710c3c 15356# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
15357# Hook for its removal unless debugging.
15358# Note that there is a small window in which the directory will not be cleaned:
15359# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
15360$debug ||
15361{
5213506e
RW
15362 tmp=
15363 trap 'exit_status=$?
15364 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15365' 0
15366 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 15367}
1c710c3c
DJ
15368# Create a (secure) tmp directory for tmp files.
15369
15370{
5213506e 15371 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
15372 test -n "$tmp" && test -d "$tmp"
15373} ||
15374{
5213506e
RW
15375 tmp=./conf$$-$RANDOM
15376 (umask 077 && mkdir "$tmp")
15377} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15378
15379# Set up the scripts for CONFIG_FILES section.
15380# No need to generate them if there are no CONFIG_FILES.
15381# This happens for instance with `./config.status config.h'.
15382if test -n "$CONFIG_FILES"; then
15383
15384if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15385 ac_cs_awk_getline=:
15386 ac_cs_awk_pipe_init=
15387 ac_cs_awk_read_file='
15388 while ((getline aline < (F[key])) > 0)
15389 print(aline)
15390 close(F[key])'
15391 ac_cs_awk_pipe_fini=
15392else
15393 ac_cs_awk_getline=false
15394 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15395 ac_cs_awk_read_file='
15396 print "|#_!!_#|"
15397 print "cat " F[key] " &&"
15398 '$ac_cs_awk_pipe_init
15399 # The final `:' finishes the AND list.
15400 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15401fi
15402ac_cr=`echo X | tr X '\015'`
15403# On cygwin, bash can eat \r inside `` if the user requested igncr.
15404# But we know of no other shell where ac_cr would be empty at this
15405# point, so we can use a bashism as a fallback.
15406if test "x$ac_cr" = x; then
15407 eval ac_cr=\$\'\\r\'
15408fi
15409ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15410if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15411 ac_cs_awk_cr='\r'
15412else
15413 ac_cs_awk_cr=$ac_cr
15414fi
15415
15416echo 'BEGIN {' >"$tmp/subs1.awk" &&
15417_ACEOF
15418
15419# Create commands to substitute file output variables.
1c710c3c 15420{
5213506e
RW
15421 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15422 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15423 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15424 echo "_ACAWK" &&
15425 echo "_ACEOF"
15426} >conf$$files.sh &&
15427. ./conf$$files.sh ||
15428 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15429rm -f conf$$files.sh
1c710c3c 15430
5213506e
RW
15431{
15432 echo "cat >conf$$subs.awk <<_ACEOF" &&
15433 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15434 echo "_ACEOF"
15435} >conf$$subs.sh ||
15436 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15437ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15438ac_delim='%!_!# '
15439for ac_last_try in false false false false false :; do
15440 . ./conf$$subs.sh ||
15441 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15442
15443 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15444 if test $ac_delim_n = $ac_delim_num; then
15445 break
15446 elif $ac_last_try; then
15447 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15448 else
15449 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15450 fi
15451done
15452rm -f conf$$subs.sh
15453
15454cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15455cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 15456_ACEOF
5213506e
RW
15457sed -n '
15458h
15459s/^/S["/; s/!.*/"]=/
15460p
15461g
15462s/^[^!]*!//
15463:repl
15464t repl
15465s/'"$ac_delim"'$//
15466t delim
15467:nl
15468h
15469s/\(.\{148\}\).*/\1/
15470t more1
15471s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15472p
15473n
15474b repl
15475:more1
15476s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15477p
15478g
15479s/.\{148\}//
15480t nl
15481:delim
15482h
15483s/\(.\{148\}\).*/\1/
15484t more2
15485s/["\\]/\\&/g; s/^/"/; s/$/"/
15486p
15487b
15488:more2
15489s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15490p
15491g
15492s/.\{148\}//
15493t delim
15494' <conf$$subs.awk | sed '
15495/^[^""]/{
15496 N
15497 s/\n//
15498}
15499' >>$CONFIG_STATUS || ac_write_fail=1
15500rm -f conf$$subs.awk
15501cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15502_ACAWK
15503cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15504 for (key in S) S_is_set[key] = 1
15505 FS = "\a"
15506 \$ac_cs_awk_pipe_init
15507}
15508{
15509 line = $ 0
15510 nfields = split(line, field, "@")
15511 substed = 0
15512 len = length(field[1])
15513 for (i = 2; i < nfields; i++) {
15514 key = field[i]
15515 keylen = length(key)
15516 if (S_is_set[key]) {
15517 value = S[key]
15518 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15519 len += length(value) + length(field[++i])
15520 substed = 1
15521 } else
15522 len += 1 + keylen
15523 }
15524 if (nfields == 3 && !substed) {
15525 key = field[2]
15526 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15527 \$ac_cs_awk_read_file
15528 next
15529 }
15530 }
15531 print line
15532}
15533\$ac_cs_awk_pipe_fini
15534_ACAWK
15535_ACEOF
15536cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15537if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15538 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15539else
15540 cat
15541fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15542 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15543_ACEOF
15544
15545# VPATH may cause trouble with some makes, so we remove $(srcdir),
15546# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15547# trailing colons and then remove the whole line if VPATH becomes empty
15548# (actually we leave an empty line to preserve line numbers).
15549if test "x$srcdir" = x.; then
15550 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15551s/:*\$(srcdir):*/:/
15552s/:*\${srcdir}:*/:/
15553s/:*@srcdir@:*/:/
15554s/^\([^=]*=[ ]*\):*/\1/
15555s/:*$//
15556s/^[^=]*=[ ]*$//
15557}'
15558fi
2aeb72e9 15559
5213506e
RW
15560cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15561fi # test -n "$CONFIG_FILES"
2aeb72e9 15562
1c710c3c 15563
5213506e
RW
15564eval set X " :F $CONFIG_FILES "
15565shift
15566for ac_tag
15567do
15568 case $ac_tag in
15569 :[FHLC]) ac_mode=$ac_tag; continue;;
15570 esac
15571 case $ac_mode$ac_tag in
15572 :[FHL]*:*);;
15573 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15574 :[FH]-) ac_tag=-:-;;
15575 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15576 esac
15577 ac_save_IFS=$IFS
15578 IFS=:
15579 set x $ac_tag
15580 IFS=$ac_save_IFS
15581 shift
15582 ac_file=$1
15583 shift
79c06341 15584
5213506e
RW
15585 case $ac_mode in
15586 :L) ac_source=$1;;
15587 :[FH])
15588 ac_file_inputs=
15589 for ac_f
15590 do
15591 case $ac_f in
15592 -) ac_f="$tmp/stdin";;
15593 *) # Look for the file first in the build tree, then in the source tree
15594 # (if the path is not absolute). The absolute path cannot be DOS-style,
15595 # because $ac_f cannot contain `:'.
15596 test -f "$ac_f" ||
15597 case $ac_f in
15598 [\\/$]*) false;;
15599 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15600 esac ||
15601 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15602 esac
15603 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15604 as_fn_append ac_file_inputs " '$ac_f'"
15605 done
1c710c3c 15606
5213506e
RW
15607 # Let's still pretend it is `configure' which instantiates (i.e., don't
15608 # use $as_me), people would be surprised to read:
15609 # /* config.h. Generated by config.status. */
15610 configure_input='Generated from '`
15611 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15612 `' by configure.'
15613 if test x"$ac_file" != x-; then
15614 configure_input="$ac_file. $configure_input"
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15616$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 15617 fi
5213506e
RW
15618 # Neutralize special characters interpreted by sed in replacement strings.
15619 case $configure_input in #(
15620 *\&* | *\|* | *\\* )
15621 ac_sed_conf_input=`$as_echo "$configure_input" |
15622 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15623 *) ac_sed_conf_input=$configure_input;;
15624 esac
11a67599 15625
5213506e
RW
15626 case $ac_tag in
15627 *:-:* | *:-) cat >"$tmp/stdin" \
15628 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15629 esac
15630 ;;
11a67599
ZW
15631 esac
15632
5213506e 15633 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
15634$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15635 X"$ac_file" : 'X\(//\)[^/]' \| \
15636 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
15637 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15638$as_echo X"$ac_file" |
15639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15640 s//\1/
15641 q
15642 }
15643 /^X\(\/\/\)[^/].*/{
15644 s//\1/
15645 q
15646 }
15647 /^X\(\/\/\)$/{
15648 s//\1/
15649 q
15650 }
15651 /^X\(\/\).*/{
15652 s//\1/
15653 q
15654 }
15655 s/.*/./; q'`
15656 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 15657 ac_builddir=.
0b0dc272 15658
5213506e
RW
15659case "$ac_dir" in
15660.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15661*)
15662 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15663 # A ".." for each directory in $ac_dir_suffix.
15664 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15665 case $ac_top_builddir_sub in
15666 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15667 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15668 esac ;;
15669esac
15670ac_abs_top_builddir=$ac_pwd
15671ac_abs_builddir=$ac_pwd$ac_dir_suffix
15672# for backward compatibility:
15673ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
15674
15675case $srcdir in
5213506e 15676 .) # We are building in place.
1c710c3c 15677 ac_srcdir=.
5213506e
RW
15678 ac_top_srcdir=$ac_top_builddir_sub
15679 ac_abs_top_srcdir=$ac_pwd ;;
15680 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 15681 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
15682 ac_top_srcdir=$srcdir
15683 ac_abs_top_srcdir=$srcdir ;;
15684 *) # Relative name.
15685 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15686 ac_top_srcdir=$ac_top_build_prefix$srcdir
15687 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 15688esac
5213506e 15689ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 15690
0b0dc272 15691
5213506e
RW
15692 case $ac_mode in
15693 :F)
15694 #
15695 # CONFIG_FILE
15696 #
1c710c3c
DJ
15697
15698 case $INSTALL in
15699 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 15700 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 15701 esac
5213506e 15702_ACEOF
11a67599 15703
5213506e
RW
15704cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15705# If the template does not know about datarootdir, expand it.
15706# FIXME: This hack should be removed a few years after 2.60.
15707ac_datarootdir_hack=; ac_datarootdir_seen=
15708ac_sed_dataroot='
15709/datarootdir/ {
15710 p
15711 q
15712}
15713/@datadir@/p
15714/@docdir@/p
15715/@infodir@/p
15716/@localedir@/p
15717/@mandir@/p'
15718case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15719*datarootdir*) ac_datarootdir_seen=yes;;
15720*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15722$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 15723_ACEOF
5213506e
RW
15724cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15725 ac_datarootdir_hack='
15726 s&@datadir@&$datadir&g
15727 s&@docdir@&$docdir&g
15728 s&@infodir@&$infodir&g
15729 s&@localedir@&$localedir&g
15730 s&@mandir@&$mandir&g
15731 s&\\\${datarootdir}&$datarootdir&g' ;;
15732esac
15733_ACEOF
15734
15735# Neutralize VPATH when `$srcdir' = `.'.
15736# Shell code in configure.ac might set extrasub.
15737# FIXME: do we really want to maintain this feature?
15738cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15739ac_sed_extra="$ac_vpsub
1c710c3c
DJ
15740$extrasub
15741_ACEOF
5213506e 15742cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
15743:t
15744/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
15745s|@configure_input@|$ac_sed_conf_input|;t t
15746s&@top_builddir@&$ac_top_builddir_sub&;t t
15747s&@top_build_prefix@&$ac_top_build_prefix&;t t
15748s&@srcdir@&$ac_srcdir&;t t
15749s&@abs_srcdir@&$ac_abs_srcdir&;t t
15750s&@top_srcdir@&$ac_top_srcdir&;t t
15751s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15752s&@builddir@&$ac_builddir&;t t
15753s&@abs_builddir@&$ac_abs_builddir&;t t
15754s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15755s&@INSTALL@&$ac_INSTALL&;t t
15756$ac_datarootdir_hack
15757"
15758eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15759if $ac_cs_awk_getline; then
15760 $AWK -f "$tmp/subs.awk"
15761else
15762 $AWK -f "$tmp/subs.awk" | $SHELL
15763fi >$tmp/out \
15764 || as_fn_error "could not create $ac_file" "$LINENO" 5
15765
15766test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15767 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15768 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15770which seems to be undefined. Please make sure it is defined." >&5
15771$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15772which seems to be undefined. Please make sure it is defined." >&2;}
15773
15774 rm -f "$tmp/stdin"
15775 case $ac_file in
15776 -) cat "$tmp/out" && rm -f "$tmp/out";;
15777 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15778 esac \
15779 || as_fn_error "could not create $ac_file" "$LINENO" 5
15780 ;;
11a67599 15781
11a67599 15782
79c06341 15783
5213506e
RW
15784 esac
15785
3e54529c
RW
15786
15787 case $ac_file$ac_mode in
15788 "Makefile":F) sed "$extrasub_build" Makefile |
15789 sed "$extrasub_host" |
15790 sed "$extrasub_target" > mf$$
15791 mv -f mf$$ Makefile ;;
15792
15793 esac
5213506e
RW
15794done # for ac_tag
15795
15796
15797as_fn_exit 0
1c710c3c 15798_ACEOF
1c710c3c
DJ
15799ac_clean_files=$ac_clean_files_save
15800
5213506e
RW
15801test $ac_write_fail = 0 ||
15802 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15803
1c710c3c
DJ
15804
15805# configure is writing to config.log, and then calls config.status.
15806# config.status does its own redirection, appending to config.log.
15807# Unfortunately, on DOS this fails, as config.log is still kept open
15808# by configure, so config.status won't be able to write to it; its
15809# output is simply discarded. So we exec the FD to /dev/null,
15810# effectively closing config.log, so it can be properly (re)opened and
15811# appended to by config.status. When coming back to configure, we
15812# need to make the FD available again.
15813if test "$no_create" != yes; then
15814 ac_cs_success=:
15815 ac_config_status_args=
15816 test "$silent" = yes &&
15817 ac_config_status_args="$ac_config_status_args --quiet"
15818 exec 5>/dev/null
15819 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15820 exec 5>>config.log
15821 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15822 # would make configure fail if this is the last instruction.
5213506e
RW
15823 $ac_cs_success || as_fn_exit $?
15824fi
15825if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15827$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 15828fi
79c06341 15829