]> gcc.gnu.org Git - gcc.git/blame - configure
Daily bump.
[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
3c36aa6b 644get_gcc_base_ver
1c01ebf6 645extra_host_zlib_configure_flags
d7f09764 646extra_host_libiberty_configure_flags
fca38047 647stage1_languages
45b3824d
TS
648extra_linker_plugin_flags
649extra_linker_plugin_configure_flags
33ad93b9 650islinc
eae1a5d4 651isllibs
1e050c90 652islver
5213506e 653poststage1_ldflags
ed2eaa9f 654poststage1_libs
5213506e 655stage1_ldflags
0b21f5d3 656stage1_libs
0ff2d841 657extra_isl_gmp_configure_flags
5213506e
RW
658extra_mpc_mpfr_configure_flags
659extra_mpc_gmp_configure_flags
660extra_mpfr_configure_flags
661gmpinc
662gmplibs
663do_compare
664GNATMAKE
665GNATBIND
666ac_ct_CXX
667CXXFLAGS
668CXX
669OBJEXT
670EXEEXT
671ac_ct_CC
672CPPFLAGS
673LDFLAGS
674CFLAGS
675CC
5f520819 676extra_liboffloadmic_configure_flags
5213506e
RW
677target_subdir
678host_subdir
679build_subdir
680build_libsubdir
87264276
PB
681AWK
682SED
5213506e
RW
683LN_S
684LN
685INSTALL_DATA
686INSTALL_SCRIPT
687INSTALL_PROGRAM
688target_os
689target_vendor
690target_cpu
691target
692host_os
693host_vendor
694host_cpu
695host
696target_noncanonical
697host_noncanonical
698build_noncanonical
699build_os
700build_vendor
701build_cpu
702build
703TOPLEVEL_CONFIGURE_ARGUMENTS
704target_alias
705host_alias
706build_alias
707LIBS
708ECHO_T
709ECHO_N
710ECHO_C
711DEFS
712mandir
713localedir
714libdir
715psdir
716pdfdir
717dvidir
718htmldir
719infodir
720docdir
721oldincludedir
722includedir
723localstatedir
724sharedstatedir
725sysconfdir
726datadir
727datarootdir
728libexecdir
729sbindir
730bindir
731program_transform_name
732prefix
733exec_prefix
734PACKAGE_URL
735PACKAGE_BUGREPORT
736PACKAGE_STRING
737PACKAGE_VERSION
738PACKAGE_TARNAME
739PACKAGE_NAME
740PATH_SEPARATOR
741SHELL'
742ac_subst_files='serialization_dependencies
743host_makefile_frag
744target_makefile_frag
745alphaieee_frag
746ospace_frag'
747ac_user_opts='
748enable_option_checking
749with_build_libsubdir
a05c2c75 750with_system_zlib
85c64bbe
BS
751enable_as_accelerator_for
752enable_offload_targets
5213506e 753enable_gold
21539e2e 754enable_ld
78edb32f 755enable_compressed_debug_sections
87e6d9dc
TB
756enable_libquadmath
757enable_libquadmath_support
5213506e
RW
758enable_libada
759enable_libssp
1873ec0c 760enable_libstdcxx
5f520819 761enable_liboffloadmic
ff3ac0f4 762enable_bootstrap
5213506e
RW
763with_mpc
764with_mpc_include
765with_mpc_lib
766with_mpfr_dir
767with_mpfr
768with_mpfr_include
769with_mpfr_lib
770with_gmp_dir
771with_gmp
772with_gmp_include
773with_gmp_lib
5213506e 774with_stage1_libs
0b21f5d3 775with_stage1_ldflags
5213506e 776with_boot_libs
ed2eaa9f 777with_boot_ldflags
33ad93b9
RG
778with_isl
779with_isl_include
780with_isl_lib
781enable_isl_version_check
d7f09764 782enable_lto
45b3824d
TS
783enable_linker_plugin_configure_flags
784enable_linker_plugin_flags
5213506e 785enable_stage1_languages
43c40f3e 786enable_objc_gc
114bf3f1
MK
787with_target_bdw_gc
788with_target_bdw_gc_include
789with_target_bdw_gc_lib
3c36aa6b 790with_gcc_major_version_only
5213506e
RW
791with_build_sysroot
792with_debug_prefix_map
5646b7b9 793with_build_config
beeda1d9 794enable_vtable_verify
5213506e
RW
795enable_serial_configure
796with_build_time_tools
797enable_maintainer_mode
798enable_stage1_checking
799enable_werror
459260ec 800enable_host_shared
5213506e
RW
801'
802 ac_precious_vars='build_alias
803host_alias
804target_alias
805CC
806CFLAGS
807LDFLAGS
808LIBS
809CPPFLAGS
810CXX
811CXXFLAGS
812CCC
ffedf511
RW
813build_configargs
814host_configargs
815target_configargs
5213506e
RW
816AR
817AS
818DLLTOOL
819LD
820LIPO
821NM
822RANLIB
823STRIP
824WINDRES
825WINDMC
826OBJCOPY
827OBJDUMP
e7a82751 828READELF
5213506e
RW
829CC_FOR_TARGET
830CXX_FOR_TARGET
831GCC_FOR_TARGET
5213506e 832GFORTRAN_FOR_TARGET
632e2a07 833GOC_FOR_TARGET
5213506e
RW
834AR_FOR_TARGET
835AS_FOR_TARGET
836DLLTOOL_FOR_TARGET
837LD_FOR_TARGET
838LIPO_FOR_TARGET
839NM_FOR_TARGET
9bccfdf5 840OBJCOPY_FOR_TARGET
5213506e
RW
841OBJDUMP_FOR_TARGET
842RANLIB_FOR_TARGET
e7a82751 843READELF_FOR_TARGET
5213506e
RW
844STRIP_FOR_TARGET
845WINDRES_FOR_TARGET
846WINDMC_FOR_TARGET'
847
671aa708
NN
848
849# Initialize some variables set by options.
1c710c3c
DJ
850ac_init_help=
851ac_init_version=false
5213506e
RW
852ac_unrecognized_opts=
853ac_unrecognized_sep=
671aa708
NN
854# The variables have the same names as the options, with
855# dashes changed to underlines.
1c710c3c 856cache_file=/dev/null
671aa708 857exec_prefix=NONE
671aa708 858no_create=
671aa708
NN
859no_recursion=
860prefix=NONE
861program_prefix=NONE
862program_suffix=NONE
863program_transform_name=s,x,x,
864silent=
865site=
866srcdir=
671aa708
NN
867verbose=
868x_includes=NONE
869x_libraries=NONE
1c710c3c
DJ
870
871# Installation directory options.
872# These are left unexpanded so users can "make install exec_prefix=/foo"
873# and all the variables that are supposed to be based on exec_prefix
874# by default will actually change.
875# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 876# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
877bindir='${exec_prefix}/bin'
878sbindir='${exec_prefix}/sbin'
879libexecdir='${exec_prefix}/libexec'
5213506e
RW
880datarootdir='${prefix}/share'
881datadir='${datarootdir}'
671aa708
NN
882sysconfdir='${prefix}/etc'
883sharedstatedir='${prefix}/com'
884localstatedir='${prefix}/var'
671aa708
NN
885includedir='${prefix}/include'
886oldincludedir='/usr/include'
5213506e
RW
887docdir='${datarootdir}/doc/${PACKAGE}'
888infodir='${datarootdir}/info'
889htmldir='${docdir}'
890dvidir='${docdir}'
891pdfdir='${docdir}'
892psdir='${docdir}'
893libdir='${exec_prefix}/lib'
894localedir='${datarootdir}/locale'
895mandir='${datarootdir}/man'
79c06341 896
671aa708 897ac_prev=
5213506e 898ac_dashdash=
671aa708
NN
899for ac_option
900do
671aa708
NN
901 # If the previous option needs an argument, assign it.
902 if test -n "$ac_prev"; then
5213506e 903 eval $ac_prev=\$ac_option
671aa708
NN
904 ac_prev=
905 continue
906 fi
79c06341 907
5213506e
RW
908 case $ac_option in
909 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
910 *) ac_optarg=yes ;;
911 esac
671aa708
NN
912
913 # Accept the important Cygnus configure options, so we can diagnose typos.
914
5213506e
RW
915 case $ac_dashdash$ac_option in
916 --)
917 ac_dashdash=yes ;;
671aa708
NN
918
919 -bindir | --bindir | --bindi | --bind | --bin | --bi)
920 ac_prev=bindir ;;
921 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 922 bindir=$ac_optarg ;;
671aa708
NN
923
924 -build | --build | --buil | --bui | --bu)
1c710c3c 925 ac_prev=build_alias ;;
671aa708 926 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 927 build_alias=$ac_optarg ;;
671aa708
NN
928
929 -cache-file | --cache-file | --cache-fil | --cache-fi \
930 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
931 ac_prev=cache_file ;;
932 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
933 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
934 cache_file=$ac_optarg ;;
935
936 --config-cache | -C)
937 cache_file=config.cache ;;
671aa708 938
5213506e 939 -datadir | --datadir | --datadi | --datad)
671aa708 940 ac_prev=datadir ;;
5213506e 941 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 942 datadir=$ac_optarg ;;
671aa708 943
5213506e
RW
944 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
945 | --dataroo | --dataro | --datar)
946 ac_prev=datarootdir ;;
947 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
948 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
949 datarootdir=$ac_optarg ;;
950
671aa708 951 -disable-* | --disable-*)
5213506e 952 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 953 # Reject names that are not valid shell variable names.
5213506e
RW
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 as_fn_error "invalid feature name: $ac_useropt"
956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
959 *"
960"enable_$ac_useropt"
961"*) ;;
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
964 esac
965 eval enable_$ac_useropt=no ;;
966
967 -docdir | --docdir | --docdi | --doc | --do)
968 ac_prev=docdir ;;
969 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
970 docdir=$ac_optarg ;;
971
972 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
973 ac_prev=dvidir ;;
974 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
975 dvidir=$ac_optarg ;;
671aa708
NN
976
977 -enable-* | --enable-*)
5213506e 978 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 979 # Reject names that are not valid shell variable names.
5213506e
RW
980 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
981 as_fn_error "invalid feature name: $ac_useropt"
982 ac_useropt_orig=$ac_useropt
983 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984 case $ac_user_opts in
985 *"
986"enable_$ac_useropt"
987"*) ;;
988 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
989 ac_unrecognized_sep=', ';;
2aeb72e9 990 esac
5213506e 991 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
992
993 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
994 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
995 | --exec | --exe | --ex)
996 ac_prev=exec_prefix ;;
997 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
998 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
999 | --exec=* | --exe=* | --ex=*)
1c710c3c 1000 exec_prefix=$ac_optarg ;;
671aa708
NN
1001
1002 -gas | --gas | --ga | --g)
1003 # Obsolete; use --with-gas.
1004 with_gas=yes ;;
1005
1c710c3c
DJ
1006 -help | --help | --hel | --he | -h)
1007 ac_init_help=long ;;
1008 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1009 ac_init_help=recursive ;;
1010 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1011 ac_init_help=short ;;
671aa708
NN
1012
1013 -host | --host | --hos | --ho)
1c710c3c 1014 ac_prev=host_alias ;;
671aa708 1015 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1016 host_alias=$ac_optarg ;;
671aa708 1017
5213506e
RW
1018 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1019 ac_prev=htmldir ;;
1020 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1021 | --ht=*)
1022 htmldir=$ac_optarg ;;
1023
671aa708
NN
1024 -includedir | --includedir | --includedi | --included | --include \
1025 | --includ | --inclu | --incl | --inc)
1026 ac_prev=includedir ;;
1027 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1028 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1029 includedir=$ac_optarg ;;
671aa708
NN
1030
1031 -infodir | --infodir | --infodi | --infod | --info | --inf)
1032 ac_prev=infodir ;;
1033 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1034 infodir=$ac_optarg ;;
671aa708
NN
1035
1036 -libdir | --libdir | --libdi | --libd)
1037 ac_prev=libdir ;;
1038 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1039 libdir=$ac_optarg ;;
671aa708
NN
1040
1041 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1042 | --libexe | --libex | --libe)
1043 ac_prev=libexecdir ;;
1044 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1045 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1046 libexecdir=$ac_optarg ;;
671aa708 1047
5213506e
RW
1048 -localedir | --localedir | --localedi | --localed | --locale)
1049 ac_prev=localedir ;;
1050 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1051 localedir=$ac_optarg ;;
1052
671aa708 1053 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1054 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1055 ac_prev=localstatedir ;;
1056 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1057 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1058 localstatedir=$ac_optarg ;;
671aa708
NN
1059
1060 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1061 ac_prev=mandir ;;
1062 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1063 mandir=$ac_optarg ;;
671aa708
NN
1064
1065 -nfp | --nfp | --nf)
1066 # Obsolete; use --without-fp.
1067 with_fp=no ;;
1068
1069 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1070 | --no-cr | --no-c | -n)
671aa708
NN
1071 no_create=yes ;;
1072
1073 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1074 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1075 no_recursion=yes ;;
1076
1077 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1078 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1079 | --oldin | --oldi | --old | --ol | --o)
1080 ac_prev=oldincludedir ;;
1081 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1082 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1083 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1084 oldincludedir=$ac_optarg ;;
671aa708
NN
1085
1086 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1087 ac_prev=prefix ;;
1088 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1089 prefix=$ac_optarg ;;
671aa708
NN
1090
1091 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1092 | --program-pre | --program-pr | --program-p)
1093 ac_prev=program_prefix ;;
1094 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1095 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1096 program_prefix=$ac_optarg ;;
671aa708
NN
1097
1098 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1099 | --program-suf | --program-su | --program-s)
1100 ac_prev=program_suffix ;;
1101 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1102 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1103 program_suffix=$ac_optarg ;;
671aa708
NN
1104
1105 -program-transform-name | --program-transform-name \
1106 | --program-transform-nam | --program-transform-na \
1107 | --program-transform-n | --program-transform- \
1108 | --program-transform | --program-transfor \
1109 | --program-transfo | --program-transf \
1110 | --program-trans | --program-tran \
1111 | --progr-tra | --program-tr | --program-t)
1112 ac_prev=program_transform_name ;;
1113 -program-transform-name=* | --program-transform-name=* \
1114 | --program-transform-nam=* | --program-transform-na=* \
1115 | --program-transform-n=* | --program-transform-=* \
1116 | --program-transform=* | --program-transfor=* \
1117 | --program-transfo=* | --program-transf=* \
1118 | --program-trans=* | --program-tran=* \
1119 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1120 program_transform_name=$ac_optarg ;;
671aa708 1121
5213506e
RW
1122 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1123 ac_prev=pdfdir ;;
1124 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1125 pdfdir=$ac_optarg ;;
1126
1127 -psdir | --psdir | --psdi | --psd | --ps)
1128 ac_prev=psdir ;;
1129 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1130 psdir=$ac_optarg ;;
1131
671aa708
NN
1132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1133 | -silent | --silent | --silen | --sile | --sil)
1134 silent=yes ;;
1135
1136 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1137 ac_prev=sbindir ;;
1138 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1139 | --sbi=* | --sb=*)
1c710c3c 1140 sbindir=$ac_optarg ;;
671aa708
NN
1141
1142 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1143 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1144 | --sharedst | --shareds | --shared | --share | --shar \
1145 | --sha | --sh)
1146 ac_prev=sharedstatedir ;;
1147 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1148 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1149 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1150 | --sha=* | --sh=*)
1c710c3c 1151 sharedstatedir=$ac_optarg ;;
671aa708
NN
1152
1153 -site | --site | --sit)
1154 ac_prev=site ;;
1155 -site=* | --site=* | --sit=*)
1c710c3c 1156 site=$ac_optarg ;;
671aa708
NN
1157
1158 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1159 ac_prev=srcdir ;;
1160 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1161 srcdir=$ac_optarg ;;
671aa708
NN
1162
1163 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1164 | --syscon | --sysco | --sysc | --sys | --sy)
1165 ac_prev=sysconfdir ;;
1166 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1167 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1168 sysconfdir=$ac_optarg ;;
671aa708
NN
1169
1170 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1171 ac_prev=target_alias ;;
671aa708 1172 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1173 target_alias=$ac_optarg ;;
671aa708
NN
1174
1175 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1176 verbose=yes ;;
1177
1c710c3c
DJ
1178 -version | --version | --versio | --versi | --vers | -V)
1179 ac_init_version=: ;;
671aa708
NN
1180
1181 -with-* | --with-*)
5213506e 1182 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1183 # Reject names that are not valid shell variable names.
5213506e
RW
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 as_fn_error "invalid package name: $ac_useropt"
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1189 *"
1190"with_$ac_useropt"
1191"*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
2aeb72e9 1194 esac
5213506e 1195 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1196
1197 -without-* | --without-*)
5213506e 1198 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1199 # Reject names that are not valid shell variable names.
5213506e
RW
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 as_fn_error "invalid package name: $ac_useropt"
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1205 *"
1206"with_$ac_useropt"
1207"*) ;;
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1210 esac
1211 eval with_$ac_useropt=no ;;
671aa708
NN
1212
1213 --x)
1214 # Obsolete; use --with-x.
1215 with_x=yes ;;
1216
1217 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1218 | --x-incl | --x-inc | --x-in | --x-i)
1219 ac_prev=x_includes ;;
1220 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1221 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1222 x_includes=$ac_optarg ;;
671aa708
NN
1223
1224 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1225 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1226 ac_prev=x_libraries ;;
1227 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1228 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1229 x_libraries=$ac_optarg ;;
671aa708 1230
5213506e
RW
1231 -*) as_fn_error "unrecognized option: \`$ac_option'
1232Try \`$0 --help' for more information."
671aa708
NN
1233 ;;
1234
1c710c3c
DJ
1235 *=*)
1236 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1237 # Reject names that are not valid shell variable names.
5213506e
RW
1238 case $ac_envvar in #(
1239 '' | [0-9]* | *[!_$as_cr_alnum]* )
1240 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1241 esac
1242 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1243 export $ac_envvar ;;
1244
671aa708 1245 *)
1c710c3c 1246 # FIXME: should be removed in autoconf 3.0.
5213506e 1247 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1248 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1249 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1c710c3c 1250 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
1251 ;;
1252
1253 esac
1254done
1255
1256if test -n "$ac_prev"; then
1c710c3c 1257 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1258 as_fn_error "missing argument to $ac_option"
af71363e 1259fi
af71363e 1260
5213506e
RW
1261if test -n "$ac_unrecognized_opts"; then
1262 case $enable_option_checking in
1263 no) ;;
1264 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1265 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1266 esac
5213506e 1267fi
2aeb72e9 1268
5213506e
RW
1269# Check all directory arguments for consistency.
1270for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1271 datadir sysconfdir sharedstatedir localstatedir includedir \
1272 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1273 libdir localedir mandir
2aeb72e9 1274do
5213506e
RW
1275 eval ac_val=\$$ac_var
1276 # Remove trailing slashes.
1277 case $ac_val in
1278 */ )
1279 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1280 eval $ac_var=\$ac_val;;
1281 esac
1282 # Be sure to have absolute directory names.
2aeb72e9 1283 case $ac_val in
5213506e
RW
1284 [\\/$]* | ?:[\\/]* ) continue;;
1285 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1286 esac
5213506e 1287 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1288done
1289
1c710c3c
DJ
1290# There might be people who depend on the old broken behavior: `$host'
1291# used to hold the argument of --host etc.
1292# FIXME: To remove some day.
1293build=$build_alias
1294host=$host_alias
1295target=$target_alias
0b0dc272 1296
1c710c3c
DJ
1297# FIXME: To remove some day.
1298if test "x$host_alias" != x; then
1299 if test "x$build_alias" = x; then
1300 cross_compiling=maybe
5213506e 1301 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1c710c3c
DJ
1302 If a cross compiler is detected then cross compile mode will be used." >&2
1303 elif test "x$build_alias" != "x$host_alias"; then
1304 cross_compiling=yes
1305 fi
1306fi
1307
1308ac_tool_prefix=
1309test -n "$host_alias" && ac_tool_prefix=$host_alias-
1310
1311test "$silent" = yes && exec 6>/dev/null
671aa708 1312
671aa708 1313
5213506e
RW
1314ac_pwd=`pwd` && test -n "$ac_pwd" &&
1315ac_ls_di=`ls -di .` &&
1316ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1317 as_fn_error "working directory cannot be determined"
1318test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1319 as_fn_error "pwd does not report name of working directory"
1320
1321
671aa708
NN
1322# Find the source files, if location was not specified.
1323if test -z "$srcdir"; then
1324 ac_srcdir_defaulted=yes
5213506e
RW
1325 # Try the directory containing this script, then the parent directory.
1326 ac_confdir=`$as_dirname -- "$as_myself" ||
1327$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1328 X"$as_myself" : 'X\(//\)[^/]' \| \
1329 X"$as_myself" : 'X\(//\)$' \| \
1330 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1331$as_echo X"$as_myself" |
1332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1333 s//\1/
1334 q
1335 }
1336 /^X\(\/\/\)[^/].*/{
1337 s//\1/
1338 q
1339 }
1340 /^X\(\/\/\)$/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\).*/{
1345 s//\1/
1346 q
1347 }
1348 s/.*/./; q'`
671aa708 1349 srcdir=$ac_confdir
5213506e 1350 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1351 srcdir=..
1352 fi
1353else
1354 ac_srcdir_defaulted=no
1355fi
5213506e
RW
1356if test ! -r "$srcdir/$ac_unique_file"; then
1357 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1358 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1359fi
1360ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1361ac_abs_confdir=`(
1362 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1363 pwd)`
1364# When building in place, set srcdir=.
1365if test "$ac_abs_confdir" = "$ac_pwd"; then
1366 srcdir=.
1367fi
1368# Remove unnecessary trailing slashes from srcdir.
1369# Double slashes in file names in object file debugging info
1370# mess up M-x gdb in Emacs.
1371case $srcdir in
1372*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1373esac
87841584
AM
1374case $srcdir in
1375 *" "*)
1376 as_fn_error "path to source, $srcdir, contains spaces"
1377 ;;
1378esac
ac9e6043
RW
1379ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1380
5213506e
RW
1381for ac_var in $ac_precious_vars; do
1382 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_env_${ac_var}_value=\$${ac_var}
1384 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386done
1c710c3c
DJ
1387
1388#
1389# Report the --help message.
1390#
1391if test "$ac_init_help" = "long"; then
1392 # Omit some internal or obsolete options to make the list less imposing.
1393 # This message is too long to be a string in the A/UX 3.1 sh.
1394 cat <<_ACEOF
1395\`configure' configures this package to adapt to many kinds of systems.
1396
1397Usage: $0 [OPTION]... [VAR=VALUE]...
1398
1399To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400VAR=VALUE. See below for descriptions of some of the useful variables.
1401
1402Defaults for the options are specified in brackets.
1403
1404Configuration:
1405 -h, --help display this help and exit
1406 --help=short display options specific to this package
1407 --help=recursive display the short help of all the included packages
1408 -V, --version display version information and exit
1409 -q, --quiet, --silent do not print \`checking...' messages
1410 --cache-file=FILE cache test results in FILE [disabled]
1411 -C, --config-cache alias for \`--cache-file=config.cache'
1412 -n, --no-create do not create output files
1413 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1414
1c710c3c
DJ
1415Installation directories:
1416 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1417 [$ac_default_prefix]
1c710c3c 1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1419 [PREFIX]
1c710c3c
DJ
1420
1421By default, \`make install' will install all the files in
1422\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1423an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424for instance \`--prefix=\$HOME'.
1425
1426For better control, use the options below.
1427
1428Fine tuning of the installation directories:
5213506e
RW
1429 --bindir=DIR user executables [EPREFIX/bin]
1430 --sbindir=DIR system admin executables [EPREFIX/sbin]
1431 --libexecdir=DIR program executables [EPREFIX/libexec]
1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1435 --libdir=DIR object code libraries [EPREFIX/lib]
1436 --includedir=DIR C header files [PREFIX/include]
1437 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1440 --infodir=DIR info documentation [DATAROOTDIR/info]
1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1442 --mandir=DIR man documentation [DATAROOTDIR/man]
1443 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1444 --htmldir=DIR html documentation [DOCDIR]
1445 --dvidir=DIR dvi documentation [DOCDIR]
1446 --pdfdir=DIR pdf documentation [DOCDIR]
1447 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1448_ACEOF
1449
1450 cat <<\_ACEOF
1451
1452Program names:
1453 --program-prefix=PREFIX prepend PREFIX to installed program names
1454 --program-suffix=SUFFIX append SUFFIX to installed program names
1455 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1456
1457System types:
1458 --build=BUILD configure for building on BUILD [guessed]
1459 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1460 --target=TARGET configure for building compilers for TARGET [HOST]
1461_ACEOF
1462fi
1463
1464if test -n "$ac_init_help"; then
1465
1466 cat <<\_ACEOF
1467
1468Optional Features:
5213506e 1469 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1470 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1471 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85c64bbe
BS
1472 --enable-as-accelerator-for=ARG
1473 build as offload target compiler. Specify offload
1474 host triple by ARG
1475 --enable-offload-targets=LIST
1476 enable offloading to devices from comma-separated
1477 LIST of TARGET[=DIR]. Use optional path to find
1478 offload target compiler during the build
21539e2e 1479 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1480 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
324402a0 1481 --enable-compressed-debug-sections={all,gas,gold,ld,none}
78edb32f
L
1482 Enable compressed debug sections for gas, gold or ld
1483 by default
87e6d9dc
TB
1484 --disable-libquadmath do not build libquadmath directory
1485 --disable-libquadmath-support
1486 disable libquadmath support for Fortran
30b74385
RW
1487 --enable-libada build libada directory
1488 --enable-libssp build libssp directory
1873ec0c 1489 --disable-libstdcxx do not build libstdc++-v3 directory
5f520819
KY
1490 --enable-liboffloadmic=ARG
1491 build liboffloadmic [ARG={no,host,target}]
ff3ac0f4 1492 --enable-bootstrap enable bootstrapping [yes if native build]
33ad93b9 1493 --disable-isl-version-check
560d18d3 1494 disable check for isl version
d7f09764 1495 --enable-lto enable link time optimization support
45b3824d
TS
1496 --enable-linker-plugin-configure-flags=FLAGS
1497 additional flags for configuring linker plugins
1498 [none]
1499 --enable-linker-plugin-flags=FLAGS
1500 additional flags for configuring and building linker
1501 plugins [none]
33e39b66
AS
1502 --enable-stage1-languages[=all]
1503 choose additional languages to build during stage1.
1504 Mostly useful for compiler development
43c40f3e
RO
1505 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1506 Objective-C runtime
318a4e6d 1507 --enable-vtable-verify Enable vtable verification feature
30b74385 1508 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1509 force sequential configuration of sub-packages for
1510 the host, target or build machine, or all
1511 sub-packages
1512 --enable-maintainer-mode
1513 enable make rules and dependencies not useful (and
1514 sometimes confusing) to the casual installer
1515 --enable-stage1-checking[=all]
1516 choose additional checking for stage1 of the
1517 compiler
1c710c3c 1518 --enable-werror enable -Werror in bootstrap stage2 and later
459260ec 1519 --enable-host-shared build host code as shared libraries
1c710c3c
DJ
1520
1521Optional Packages:
1522 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1523 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1524 --with-build-libsubdir=DIR Directory where to find libraries for build system
a05c2c75 1525 --with-system-zlib use installed libz
33e39b66
AS
1526 --with-mpc=PATH specify prefix directory for installed MPC package.
1527 Equivalent to --with-mpc-include=PATH/include plus
1528 --with-mpc-lib=PATH/lib
1529 --with-mpc-include=PATH specify directory for installed MPC include files
1530 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1531 --with-mpfr-dir=PATH this option has been REMOVED
1532 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1533 Equivalent to --with-mpfr-include=PATH/include plus
1534 --with-mpfr-lib=PATH/lib
1c710c3c 1535 --with-mpfr-include=PATH
30b74385
RW
1536 specify directory for installed MPFR include files
1537 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1538 --with-gmp-dir=PATH this option has been REMOVED
33e39b66
AS
1539 --with-gmp=PATH specify prefix directory for the installed GMP
1540 package. Equivalent to
1541 --with-gmp-include=PATH/include plus
1542 --with-gmp-lib=PATH/lib
30b74385
RW
1543 --with-gmp-include=PATH specify directory for installed GMP include files
1544 --with-gmp-lib=PATH specify directory for the installed GMP library
0b21f5d3 1545 --with-stage1-libs=LIBS libraries for stage1
33e39b66
AS
1546 --with-stage1-ldflags=FLAGS
1547 linker flags for stage1
33e39b66
AS
1548 --with-boot-libs=LIBS libraries for stage2 and later
1549 --with-boot-ldflags=FLAGS
1550 linker flags for stage2 and later
e357a5e0 1551 --with-isl=PATH Specify prefix directory for the installed isl
33e39b66 1552 package. Equivalent to
33ad93b9
RG
1553 --with-isl-include=PATH/include plus
1554 --with-isl-lib=PATH/lib
560d18d3
AK
1555 --with-isl-include=PATH Specify directory for installed isl include files
1556 --with-isl-lib=PATH Specify the directory for the installed isl library
114bf3f1
MK
1557 --with-target-bdw-gc=PATHLIST
1558 specify prefix directory for installed bdw-gc
1559 package. Equivalent to
1560 --with-target-bdw-gc-include=PATH/include plus
1561 --with-target-bdw-gc-lib=PATH/lib
1562 --with-target-bdw-gc-include=PATHLIST
1563 specify directories for installed bdw-gc include
1564 files
1565 --with-target-bdw-gc-lib=PATHLIST
1566 specify directories for installed bdw-gc library
3c36aa6b
JJ
1567 --with-gcc-major-version-only
1568 use only GCC major number in filesystem paths
30b74385 1569 --with-build-sysroot=SYSROOT
1c710c3c 1570 use sysroot as the system root during the build
c8aea42c 1571 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1572 map A to B, C to D ... in debug information
1573 --with-build-config='NAME NAME2...'
1574 use config/NAME.mk build configuration
30b74385 1575 --with-build-time-tools=PATH
1c710c3c 1576 use given path to find target tools during the build
1c710c3c
DJ
1577
1578Some influential environment variables:
1579 CC C compiler command
1580 CFLAGS C compiler flags
1581 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1582 nonstandard directory <lib dir>
5213506e
RW
1583 LIBS libraries to pass to the linker, e.g. -l<library>
1584 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1585 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1586 CXX C++ compiler command
1587 CXXFLAGS C++ compiler flags
ffedf511
RW
1588 build_configargs
1589 additional configure arguments for build directories
1590 host_configargs
1591 additional configure arguments for host directories
1592 target_configargs
1593 additional configure arguments for target directories
278a7a38
AO
1594 AR AR for the host
1595 AS AS for the host
1596 DLLTOOL DLLTOOL for the host
1597 LD LD for the host
1598 LIPO LIPO for the host
1599 NM NM for the host
1600 RANLIB RANLIB for the host
1601 STRIP STRIP for the host
1602 WINDRES WINDRES for the host
901119ae 1603 WINDMC WINDMC for the host
278a7a38
AO
1604 OBJCOPY OBJCOPY for the host
1605 OBJDUMP OBJDUMP for the host
e7a82751 1606 READELF READELF for the host
278a7a38
AO
1607 CC_FOR_TARGET
1608 CC for the target
1609 CXX_FOR_TARGET
1610 CXX for the target
1611 GCC_FOR_TARGET
1612 GCC for the target
278a7a38
AO
1613 GFORTRAN_FOR_TARGET
1614 GFORTRAN for the target
632e2a07
ILT
1615 GOC_FOR_TARGET
1616 GOC for the target
278a7a38
AO
1617 AR_FOR_TARGET
1618 AR for the target
1619 AS_FOR_TARGET
1620 AS for the target
1621 DLLTOOL_FOR_TARGET
1622 DLLTOOL for the target
1623 LD_FOR_TARGET
1624 LD for the target
1625 LIPO_FOR_TARGET
1626 LIPO for the target
1627 NM_FOR_TARGET
1628 NM for the target
9bccfdf5
AP
1629 OBJCOPY_FOR_TARGET
1630 OBJCOPY for the target
278a7a38
AO
1631 OBJDUMP_FOR_TARGET
1632 OBJDUMP for the target
1633 RANLIB_FOR_TARGET
1634 RANLIB for the target
e7a82751
RM
1635 READELF_FOR_TARGET
1636 READELF for the target
278a7a38
AO
1637 STRIP_FOR_TARGET
1638 STRIP for the target
1639 WINDRES_FOR_TARGET
1640 WINDRES for the target
901119ae
KT
1641 WINDMC_FOR_TARGET
1642 WINDMC for the target
1c710c3c
DJ
1643
1644Use these variables to override the choices made by `configure' or to help
1645it to find libraries and programs with nonstandard names/locations.
1646
5213506e 1647Report bugs to the package provider.
1c710c3c 1648_ACEOF
5213506e 1649ac_status=$?
1c710c3c
DJ
1650fi
1651
1652if test "$ac_init_help" = "recursive"; then
1653 # If there are subdirs, report their specific --help.
1c710c3c 1654 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1655 test -d "$ac_dir" ||
1656 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1657 continue
1c710c3c
DJ
1658 ac_builddir=.
1659
5213506e
RW
1660case "$ac_dir" in
1661.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662*)
1663 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1664 # A ".." for each directory in $ac_dir_suffix.
1665 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1666 case $ac_top_builddir_sub in
1667 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1668 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1669 esac ;;
1670esac
1671ac_abs_top_builddir=$ac_pwd
1672ac_abs_builddir=$ac_pwd$ac_dir_suffix
1673# for backward compatibility:
1674ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1675
1676case $srcdir in
5213506e 1677 .) # We are building in place.
1c710c3c 1678 ac_srcdir=.
5213506e
RW
1679 ac_top_srcdir=$ac_top_builddir_sub
1680 ac_abs_top_srcdir=$ac_pwd ;;
1681 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1682 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1683 ac_top_srcdir=$srcdir
1684 ac_abs_top_srcdir=$srcdir ;;
1685 *) # Relative name.
1686 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1687 ac_top_srcdir=$ac_top_build_prefix$srcdir
1688 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1689esac
5213506e
RW
1690ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1691
1692 cd "$ac_dir" || { ac_status=$?; continue; }
1693 # Check for guested configure.
1694 if test -f "$ac_srcdir/configure.gnu"; then
1695 echo &&
1696 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1697 elif test -f "$ac_srcdir/configure"; then
1698 echo &&
1699 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1700 else
5213506e
RW
1701 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1702 fi || ac_status=$?
1703 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1704 done
1705fi
1706
5213506e 1707test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1708if $ac_init_version; then
1709 cat <<\_ACEOF
5213506e
RW
1710configure
1711generated by GNU Autoconf 2.64
1c710c3c 1712
5213506e 1713Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
1714This configure script is free software; the Free Software Foundation
1715gives unlimited permission to copy, distribute and modify it.
1716_ACEOF
5213506e 1717 exit
0b0dc272 1718fi
5213506e
RW
1719
1720## ------------------------ ##
1721## Autoconf initialization. ##
1722## ------------------------ ##
1723
1724# ac_fn_c_try_compile LINENO
1725# --------------------------
1726# Try to compile conftest.$ac_ext, and return whether this succeeded.
1727ac_fn_c_try_compile ()
1728{
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 rm -f conftest.$ac_objext
1731 if { { ac_try="$ac_compile"
1732case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735esac
1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737$as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_compile") 2>conftest.err
1739 ac_status=$?
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1744 fi
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && {
1747 test -z "$ac_c_werror_flag" ||
1748 test ! -s conftest.err
1749 } && test -s conftest.$ac_objext; then :
1750 ac_retval=0
1751else
1752 $as_echo "$as_me: failed program was:" >&5
1753sed 's/^/| /' conftest.$ac_ext >&5
1754
1755 ac_retval=1
1756fi
1757 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758 return $ac_retval
1759
1760} # ac_fn_c_try_compile
1761
1762# ac_fn_cxx_try_compile LINENO
1763# ----------------------------
1764# Try to compile conftest.$ac_ext, and return whether this succeeded.
1765ac_fn_cxx_try_compile ()
1766{
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 rm -f conftest.$ac_objext
1769 if { { ac_try="$ac_compile"
1770case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773esac
1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775$as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_compile") 2>conftest.err
1777 ac_status=$?
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1782 fi
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && {
1785 test -z "$ac_cxx_werror_flag" ||
1786 test ! -s conftest.err
1787 } && test -s conftest.$ac_objext; then :
1788 ac_retval=0
1789else
1790 $as_echo "$as_me: failed program was:" >&5
1791sed 's/^/| /' conftest.$ac_ext >&5
1792
1793 ac_retval=1
1794fi
1795 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1796 return $ac_retval
1797
1798} # ac_fn_cxx_try_compile
1799
0b21f5d3
EB
1800# ac_fn_cxx_try_link LINENO
1801# -------------------------
1802# Try to link conftest.$ac_ext, and return whether this succeeded.
1803ac_fn_cxx_try_link ()
1804{
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 rm -f conftest.$ac_objext conftest$ac_exeext
1807 if { { ac_try="$ac_link"
1808case "(($ac_try" in
1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810 *) ac_try_echo=$ac_try;;
1811esac
1812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813$as_echo "$ac_try_echo"; } >&5
1814 (eval "$ac_link") 2>conftest.err
1815 ac_status=$?
1816 if test -s conftest.err; then
1817 grep -v '^ *+' conftest.err >conftest.er1
1818 cat conftest.er1 >&5
1819 mv -f conftest.er1 conftest.err
1820 fi
1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822 test $ac_status = 0; } && {
1823 test -z "$ac_cxx_werror_flag" ||
1824 test ! -s conftest.err
1825 } && test -s conftest$ac_exeext && {
1826 test "$cross_compiling" = yes ||
1827 $as_test_x conftest$ac_exeext
1828 }; then :
1829 ac_retval=0
1830else
1831 $as_echo "$as_me: failed program was:" >&5
1832sed 's/^/| /' conftest.$ac_ext >&5
1833
1834 ac_retval=1
1835fi
1836 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1837 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1838 # interfere with the next link command; also delete a directory that is
1839 # left behind by Apple's compiler. We do this before executing the actions.
1840 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1841 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1842 return $ac_retval
1843
1844} # ac_fn_cxx_try_link
1845
5213506e
RW
1846# ac_fn_c_try_link LINENO
1847# -----------------------
1848# Try to link conftest.$ac_ext, and return whether this succeeded.
1849ac_fn_c_try_link ()
1850{
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 rm -f conftest.$ac_objext conftest$ac_exeext
1853 if { { ac_try="$ac_link"
1854case "(($ac_try" in
1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1857esac
1858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859$as_echo "$ac_try_echo"; } >&5
1860 (eval "$ac_link") 2>conftest.err
1861 ac_status=$?
1862 if test -s conftest.err; then
1863 grep -v '^ *+' conftest.err >conftest.er1
1864 cat conftest.er1 >&5
1865 mv -f conftest.er1 conftest.err
1866 fi
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } && {
1869 test -z "$ac_c_werror_flag" ||
1870 test ! -s conftest.err
1871 } && test -s conftest$ac_exeext && {
1872 test "$cross_compiling" = yes ||
1873 $as_test_x conftest$ac_exeext
1874 }; then :
1875 ac_retval=0
1876else
1877 $as_echo "$as_me: failed program was:" >&5
1878sed 's/^/| /' conftest.$ac_ext >&5
1879
1880 ac_retval=1
1881fi
1882 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1883 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1884 # interfere with the next link command; also delete a directory that is
1885 # left behind by Apple's compiler. We do this before executing the actions.
1886 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1887 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1888 return $ac_retval
1889
1890} # ac_fn_c_try_link
1891cat >config.log <<_ACEOF
1c710c3c
DJ
1892This file contains any messages produced by compilers while
1893running configure, to aid debugging if configure makes a mistake.
1894
1895It was created by $as_me, which was
5213506e 1896generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
1897
1898 $ $0 $@
1899
1900_ACEOF
5213506e 1901exec 5>>config.log
1c710c3c
DJ
1902{
1903cat <<_ASUNAME
1904## --------- ##
1905## Platform. ##
1906## --------- ##
1907
1908hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1909uname -m = `(uname -m) 2>/dev/null || echo unknown`
1910uname -r = `(uname -r) 2>/dev/null || echo unknown`
1911uname -s = `(uname -s) 2>/dev/null || echo unknown`
1912uname -v = `(uname -v) 2>/dev/null || echo unknown`
1913
1914/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1915/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1916
1917/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1918/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1919/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1920/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1921/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1922/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1923/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1924
1925_ASUNAME
1926
1927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928for as_dir in $PATH
1929do
1930 IFS=$as_save_IFS
1931 test -z "$as_dir" && as_dir=.
5213506e
RW
1932 $as_echo "PATH: $as_dir"
1933 done
1934IFS=$as_save_IFS
1c710c3c
DJ
1935
1936} >&5
1937
1938cat >&5 <<_ACEOF
1939
1940
1941## ----------- ##
1942## Core tests. ##
1943## ----------- ##
1944
1945_ACEOF
1946
1947
1948# Keep a trace of the command line.
1949# Strip out --no-create and --no-recursion so they do not pile up.
1950# Strip out --silent because we don't want to record it for future runs.
1951# Also quote any args containing shell meta-characters.
1952# Make two passes to allow for proper duplicate-argument suppression.
1953ac_configure_args=
1954ac_configure_args0=
1955ac_configure_args1=
1c710c3c
DJ
1956ac_must_keep_next=false
1957for ac_pass in 1 2
1958do
1959 for ac_arg
1960 do
1961 case $ac_arg in
1962 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1963 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1964 | -silent | --silent | --silen | --sile | --sil)
1965 continue ;;
5213506e
RW
1966 *\'*)
1967 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1968 esac
1969 case $ac_pass in
5213506e 1970 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 1971 2)
5213506e 1972 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
1973 if test $ac_must_keep_next = true; then
1974 ac_must_keep_next=false # Got value, back to normal.
1975 else
1976 case $ac_arg in
1977 *=* | --config-cache | -C | -disable-* | --disable-* \
1978 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1979 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1980 | -with-* | --with-* | -without-* | --without-* | --x)
1981 case "$ac_configure_args0 " in
1982 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1983 esac
1984 ;;
1985 -* ) ac_must_keep_next=true ;;
1986 esac
1987 fi
5213506e 1988 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
1989 ;;
1990 esac
1991 done
1992done
5213506e
RW
1993{ ac_configure_args0=; unset ac_configure_args0;}
1994{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
1995
1996# When interrupted or exit'd, cleanup temporary files, and complete
1997# config.log. We remove comments because anyway the quotes in there
1998# would cause problems or look ugly.
5213506e
RW
1999# WARNING: Use '\'' to represent an apostrophe within the trap.
2000# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
2001trap 'exit_status=$?
2002 # Save into config.log some information that might help in debugging.
2003 {
2004 echo
2005
2006 cat <<\_ASBOX
2007## ---------------- ##
2008## Cache variables. ##
2009## ---------------- ##
2010_ASBOX
2011 echo
2012 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2013(
2014 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2015 eval ac_val=\$$ac_var
2016 case $ac_val in #(
2017 *${as_nl}*)
2018 case $ac_var in #(
2019 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2020$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2021 esac
2022 case $ac_var in #(
2023 _ | IFS | as_nl) ;; #(
2024 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2025 *) { eval $ac_var=; unset $ac_var;} ;;
2026 esac ;;
2027 esac
2028 done
1c710c3c 2029 (set) 2>&1 |
5213506e
RW
2030 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2031 *${as_nl}ac_space=\ *)
1c710c3c 2032 sed -n \
5213506e
RW
2033 "s/'\''/'\''\\\\'\'''\''/g;
2034 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2035 ;; #(
1c710c3c 2036 *)
5213506e 2037 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 2038 ;;
5213506e
RW
2039 esac |
2040 sort
2041)
1c710c3c
DJ
2042 echo
2043
2044 cat <<\_ASBOX
2045## ----------------- ##
2046## Output variables. ##
2047## ----------------- ##
2048_ASBOX
2049 echo
2050 for ac_var in $ac_subst_vars
2051 do
5213506e
RW
2052 eval ac_val=\$$ac_var
2053 case $ac_val in
2054 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2055 esac
2056 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2057 done | sort
2058 echo
2059
2060 if test -n "$ac_subst_files"; then
2061 cat <<\_ASBOX
5213506e
RW
2062## ------------------- ##
2063## File substitutions. ##
2064## ------------------- ##
1c710c3c
DJ
2065_ASBOX
2066 echo
2067 for ac_var in $ac_subst_files
2068 do
5213506e
RW
2069 eval ac_val=\$$ac_var
2070 case $ac_val in
2071 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2072 esac
2073 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2074 done | sort
2075 echo
2076 fi
2077
2078 if test -s confdefs.h; then
2079 cat <<\_ASBOX
2080## ----------- ##
2081## confdefs.h. ##
2082## ----------- ##
2083_ASBOX
2084 echo
5213506e 2085 cat confdefs.h
1c710c3c
DJ
2086 echo
2087 fi
2088 test "$ac_signal" != 0 &&
5213506e
RW
2089 $as_echo "$as_me: caught signal $ac_signal"
2090 $as_echo "$as_me: exit $exit_status"
1c710c3c 2091 } >&5
5213506e
RW
2092 rm -f core *.core core.conftest.* &&
2093 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2094 exit $exit_status
5213506e 2095' 0
1c710c3c 2096for ac_signal in 1 2 13 15; do
5213506e 2097 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2098done
2099ac_signal=0
2100
2101# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2102rm -f -r conftest* confdefs.h
2103
2104$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2105
2106# Predefined preprocessor variables.
2107
2108cat >>confdefs.h <<_ACEOF
2109#define PACKAGE_NAME "$PACKAGE_NAME"
2110_ACEOF
2111
1c710c3c
DJ
2112cat >>confdefs.h <<_ACEOF
2113#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2114_ACEOF
2115
1c710c3c
DJ
2116cat >>confdefs.h <<_ACEOF
2117#define PACKAGE_VERSION "$PACKAGE_VERSION"
2118_ACEOF
0b0dc272 2119
1c710c3c
DJ
2120cat >>confdefs.h <<_ACEOF
2121#define PACKAGE_STRING "$PACKAGE_STRING"
2122_ACEOF
2123
1c710c3c
DJ
2124cat >>confdefs.h <<_ACEOF
2125#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2126_ACEOF
2127
5213506e
RW
2128cat >>confdefs.h <<_ACEOF
2129#define PACKAGE_URL "$PACKAGE_URL"
2130_ACEOF
2131
1c710c3c
DJ
2132
2133# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2134# Prefer an explicitly selected file to automatically selected ones.
2135ac_site_file1=NONE
2136ac_site_file2=NONE
2137if test -n "$CONFIG_SITE"; then
2138 ac_site_file1=$CONFIG_SITE
2139elif test "x$prefix" != xNONE; then
2140 ac_site_file1=$prefix/share/config.site
2141 ac_site_file2=$prefix/etc/config.site
2142else
2143 ac_site_file1=$ac_default_prefix/share/config.site
2144 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2145fi
5213506e
RW
2146for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2147do
2148 test "x$ac_site_file" = xNONE && continue
671aa708 2149 if test -r "$ac_site_file"; then
5213506e
RW
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2151$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2152 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
2153 . "$ac_site_file"
2154 fi
2155done
2156
2157if test -r "$cache_file"; then
1c710c3c
DJ
2158 # Some versions of bash will fail to source /dev/null (special
2159 # files actually), so we avoid doing that.
2160 if test -f "$cache_file"; then
5213506e
RW
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2162$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2163 case $cache_file in
5213506e
RW
2164 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2165 *) . "./$cache_file";;
1c710c3c
DJ
2166 esac
2167 fi
671aa708 2168else
5213506e
RW
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2170$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2171 >$cache_file
2172fi
2173
2174# Check that the precious variables saved in the cache have kept the same
2175# value.
2176ac_cache_corrupted=false
5213506e 2177for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2178 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2179 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2180 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2181 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2182 case $ac_old_set,$ac_new_set in
2183 set,)
5213506e
RW
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2185$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2186 ac_cache_corrupted=: ;;
2187 ,set)
5213506e
RW
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2189$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2190 ac_cache_corrupted=: ;;
2191 ,);;
2192 *)
2193 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2194 # differences in whitespace do not lead to failure.
2195 ac_old_val_w=`echo x $ac_old_val`
2196 ac_new_val_w=`echo x $ac_new_val`
2197 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2199$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2200 ac_cache_corrupted=:
2201 else
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2203$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2204 eval $ac_var=\$ac_old_val
2205 fi
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2207$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2209$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2210 fi;;
2211 esac
2212 # Pass precious variables to config.status.
2213 if test "$ac_new_set" = set; then
2214 case $ac_new_val in
5213506e 2215 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2216 *) ac_arg=$ac_var=$ac_new_val ;;
2217 esac
2218 case " $ac_configure_args " in
2219 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2220 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2221 esac
2222 fi
2223done
2224if $ac_cache_corrupted; then
5213506e
RW
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2226$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2228$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2229 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2230fi
5213506e
RW
2231## -------------------- ##
2232## Main body of script. ##
2233## -------------------- ##
671aa708 2234
2aeb72e9
DD
2235ac_ext=c
2236ac_cpp='$CPP $CPPFLAGS'
2237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2239ac_compiler_gnu=$ac_cv_c_compiler_gnu
2240
1c710c3c
DJ
2241
2242
2243
1c710c3c
DJ
2244
2245
0115d4a3 2246
1c710c3c 2247
ad33ff57
RW
2248
2249progname=$0
2250# if PWD already has a value, it is probably wrong.
2251if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2252
2253# Export original configure arguments for use by sub-configures.
2254# Quote arguments with shell meta charatcers.
2255TOPLEVEL_CONFIGURE_ARGUMENTS=
2256set -- "$progname" "$@"
2257for ac_arg
2258do
2259 case "$ac_arg" in
2260 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2261 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2262 # if the argument is of the form -foo=baz, quote the baz part only
2263 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2264 *) ;;
2265 esac
2266 # Add the quoted argument to the list.
2267 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2268done
2269if test "$silent" = yes; then
2270 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2271fi
2272# Remove the initial space we just introduced and, as these will be
2273# expanded by make, quote '$'.
2274TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2275
1c710c3c
DJ
2276
2277# Find the build, host, and target systems.
671aa708 2278ac_aux_dir=
5213506e
RW
2279for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2280 for ac_t in install-sh install.sh shtool; do
2281 if test -f "$ac_dir/$ac_t"; then
2282 ac_aux_dir=$ac_dir
2283 ac_install_sh="$ac_aux_dir/$ac_t -c"
2284 break 2
2285 fi
2286 done
671aa708
NN
2287done
2288if test -z "$ac_aux_dir"; then
5213506e 2289 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2290fi
5213506e
RW
2291
2292# These three variables are undocumented and unsupported,
2293# and are intended to be withdrawn in a future Autoconf release.
2294# They can cause serious problems if a builder's source tree is in a directory
2295# whose full name contains unusual characters.
2296ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2297ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2298ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2299
671aa708 2300
1c710c3c 2301# Make sure we can run config.sub.
5213506e
RW
2302$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2303 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2304
2305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2306$as_echo_n "checking build system type... " >&6; }
2307if test "${ac_cv_build+set}" = set; then :
2308 $as_echo_n "(cached) " >&6
2309else
2310 ac_build_alias=$build_alias
2311test "x$ac_build_alias" = x &&
2312 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2313test "x$ac_build_alias" = x &&
2314 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2315ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2316 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2317
2318fi
2319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2320$as_echo "$ac_cv_build" >&6; }
2321case $ac_cv_build in
2322*-*-*) ;;
2323*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2324esac
1c710c3c 2325build=$ac_cv_build
5213506e
RW
2326ac_save_IFS=$IFS; IFS='-'
2327set x $ac_cv_build
2328shift
2329build_cpu=$1
2330build_vendor=$2
2331shift; shift
2332# Remember, the first character of IFS is used to create $*,
2333# except with old shells:
2334build_os=$*
2335IFS=$ac_save_IFS
2336case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2337
671aa708 2338
1c710c3c
DJ
2339 case ${build_alias} in
2340 "") build_noncanonical=${build} ;;
2341 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2342esac
2343
2344
af71363e 2345
1c710c3c
DJ
2346 case ${host_alias} in
2347 "") host_noncanonical=${build_noncanonical} ;;
2348 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2349esac
2350
af71363e 2351
1c710c3c
DJ
2352
2353 case ${target_alias} in
2354 "") target_noncanonical=${host_noncanonical} ;;
2355 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2356esac
2357
af71363e 2358
1c710c3c
DJ
2359
2360
2361test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2362 test "$program_prefix$program_suffix$program_transform_name" = \
2363 NONENONEs,x,x, &&
1c710c3c 2364 program_transform_name=s,y,y,
af71363e 2365
5213506e
RW
2366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2367$as_echo_n "checking host system type... " >&6; }
2368if test "${ac_cv_host+set}" = set; then :
2369 $as_echo_n "(cached) " >&6
af71363e 2370else
5213506e
RW
2371 if test "x$host_alias" = x; then
2372 ac_cv_host=$ac_cv_build
2373else
2374 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2375 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2376fi
1c710c3c 2377
af71363e 2378fi
5213506e
RW
2379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2380$as_echo "$ac_cv_host" >&6; }
2381case $ac_cv_host in
2382*-*-*) ;;
2383*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2384esac
1c710c3c 2385host=$ac_cv_host
5213506e
RW
2386ac_save_IFS=$IFS; IFS='-'
2387set x $ac_cv_host
2388shift
2389host_cpu=$1
2390host_vendor=$2
2391shift; shift
2392# Remember, the first character of IFS is used to create $*,
2393# except with old shells:
2394host_os=$*
2395IFS=$ac_save_IFS
2396case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2397
2398
5213506e
RW
2399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2400$as_echo_n "checking target system type... " >&6; }
2401if test "${ac_cv_target+set}" = set; then :
2402 $as_echo_n "(cached) " >&6
1c710c3c 2403else
5213506e
RW
2404 if test "x$target_alias" = x; then
2405 ac_cv_target=$ac_cv_host
2406else
2407 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2408 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2409fi
1c710c3c
DJ
2410
2411fi
5213506e
RW
2412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2413$as_echo "$ac_cv_target" >&6; }
2414case $ac_cv_target in
2415*-*-*) ;;
2416*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2417esac
1c710c3c 2418target=$ac_cv_target
5213506e
RW
2419ac_save_IFS=$IFS; IFS='-'
2420set x $ac_cv_target
2421shift
2422target_cpu=$1
2423target_vendor=$2
2424shift; shift
2425# Remember, the first character of IFS is used to create $*,
2426# except with old shells:
2427target_os=$*
2428IFS=$ac_save_IFS
2429case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2430
2431
2432# The aliases save the names the user supplied, while $host etc.
2433# will get canonicalized.
2434test -n "$target_alias" &&
2435 test "$program_prefix$program_suffix$program_transform_name" = \
2436 NONENONEs,x,x, &&
2437 program_prefix=${target_alias}-
5213506e 2438
671aa708 2439test "$program_prefix" != NONE &&
5213506e 2440 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2441# Use a double $ so make ignores it.
2442test "$program_suffix" != NONE &&
5213506e
RW
2443 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2444# Double any \ or $.
1c710c3c 2445# By default was `s,x,x', remove it if useless.
5213506e
RW
2446ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2447program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2448
671aa708
NN
2449
2450
775956d0
NN
2451# Get 'install' or 'install-sh' and its variants.
2452# Find a good install program. We prefer a C program (faster),
2453# so one script is as good as another. But avoid the broken or
2454# incompatible versions:
2455# SysV /etc/install, /usr/sbin/install
2456# SunOS /usr/etc/install
2457# IRIX /sbin/install
2458# AIX /bin/install
1c710c3c 2459# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2460# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2461# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2462# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2463# OS/2's system install, which has a completely different semantic
775956d0 2464# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2465# Reject install programs that cannot install multiple files.
5213506e
RW
2466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2467$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2468if test -z "$INSTALL"; then
5213506e
RW
2469if test "${ac_cv_path_install+set}" = set; then :
2470 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2471else
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473for as_dir in $PATH
2474do
2475 IFS=$as_save_IFS
2476 test -z "$as_dir" && as_dir=.
5213506e
RW
2477 # Account for people who put trailing slashes in PATH elements.
2478case $as_dir/ in #((
2479 ./ | .// | /[cC]/* | \
1c710c3c 2480 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2481 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2482 /usr/ucb/* ) ;;
2483 *)
2484 # OSF1 and SCO ODT 3.0 have their own names for install.
2485 # Don't use installbsd from OSF since it installs stuff as root
2486 # by default.
2487 for ac_prog in ginstall scoinst install; do
2488 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2489 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
775956d0 2490 if test $ac_prog = install &&
1c710c3c 2491 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2492 # AIX install. It has an incompatible calling convention.
2493 :
1c710c3c
DJ
2494 elif test $ac_prog = install &&
2495 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2496 # program-specific install script used by HP pwplus--don't use.
2497 :
775956d0 2498 else
38d24731
RW
2499 rm -rf conftest.one conftest.two conftest.dir
2500 echo one > conftest.one
2501 echo two > conftest.two
2502 mkdir conftest.dir
2503 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2504 test -s conftest.one && test -s conftest.two &&
2505 test -s conftest.dir/conftest.one &&
2506 test -s conftest.dir/conftest.two
2507 then
2508 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2509 break 3
2510 fi
775956d0
NN
2511 fi
2512 fi
2513 done
1c710c3c
DJ
2514 done
2515 ;;
2516esac
5213506e
RW
2517
2518 done
2519IFS=$as_save_IFS
1c710c3c 2520
38d24731 2521rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2522
2523fi
2524 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2525 INSTALL=$ac_cv_path_install
775956d0 2526 else
38d24731
RW
2527 # As a last resort, use the slow shell script. Don't cache a
2528 # value for INSTALL within a source directory, because that will
775956d0 2529 # break other packages using the cache if that directory is
38d24731 2530 # removed, or if the value is a relative name.
1c710c3c 2531 INSTALL=$ac_install_sh
775956d0
NN
2532 fi
2533fi
5213506e
RW
2534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2535$as_echo "$INSTALL" >&6; }
775956d0
NN
2536
2537# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2538# It thinks the first close brace ends the variable substitution.
2539test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2540
1c710c3c 2541test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2542
2543test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2544
5213506e
RW
2545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2546$as_echo_n "checking whether ln works... " >&6; }
2547if test "${acx_cv_prog_LN+set}" = set; then :
2548 $as_echo_n "(cached) " >&6
ad6717df
PB
2549else
2550 rm -f conftestdata_t
2551echo >conftestdata_f
2552if ln conftestdata_f conftestdata_t 2>/dev/null
2553then
2554 acx_cv_prog_LN=ln
2555else
2556 acx_cv_prog_LN=no
2557fi
2558rm -f conftestdata_f conftestdata_t
2559
2560fi
2561if test $acx_cv_prog_LN = no; then
2562 LN="cp"
5213506e
RW
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2564$as_echo "no, using $LN" >&6; }
ad6717df
PB
2565else
2566 LN="$acx_cv_prog_LN"
5213506e
RW
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2568$as_echo "yes" >&6; }
ad6717df
PB
2569fi
2570
5213506e
RW
2571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2572$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2573LN_S=$as_ln_s
2574if test "$LN_S" = "ln -s"; then
5213506e
RW
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2576$as_echo "yes" >&6; }
fb0103e5 2577else
5213506e
RW
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2579$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2580fi
2581
87264276
PB
2582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2583$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2584if test "${ac_cv_path_SED+set}" = set; then :
2585 $as_echo_n "(cached) " >&6
2586else
2587 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2588 for ac_i in 1 2 3 4 5 6 7; do
2589 ac_script="$ac_script$as_nl$ac_script"
2590 done
2591 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2592 { ac_script=; unset ac_script;}
2593 if test -z "$SED"; then
2594 ac_path_SED_found=false
2595 # Loop through the user's path and test for each of PROGNAME-LIST
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597for as_dir in $PATH
2598do
2599 IFS=$as_save_IFS
2600 test -z "$as_dir" && as_dir=.
2601 for ac_prog in sed gsed; do
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2604 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2605# Check for GNU ac_path_SED and select it if it is found.
2606 # Check for GNU $ac_path_SED
2607case `"$ac_path_SED" --version 2>&1` in
2608*GNU*)
2609 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2610*)
2611 ac_count=0
2612 $as_echo_n 0123456789 >"conftest.in"
2613 while :
2614 do
2615 cat "conftest.in" "conftest.in" >"conftest.tmp"
2616 mv "conftest.tmp" "conftest.in"
2617 cp "conftest.in" "conftest.nl"
2618 $as_echo '' >> "conftest.nl"
2619 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2620 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2621 as_fn_arith $ac_count + 1 && ac_count=$as_val
2622 if test $ac_count -gt ${ac_path_SED_max-0}; then
2623 # Best one so far, save it but keep looking for a better one
2624 ac_cv_path_SED="$ac_path_SED"
2625 ac_path_SED_max=$ac_count
2626 fi
2627 # 10*(2^10) chars as input seems more than enough
2628 test $ac_count -gt 10 && break
2629 done
2630 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2631esac
2632
2633 $ac_path_SED_found && break 3
2634 done
2635 done
2636 done
2637IFS=$as_save_IFS
2638 if test -z "$ac_cv_path_SED"; then
2639 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2640 fi
2641else
2642 ac_cv_path_SED=$SED
2643fi
2644
2645fi
2646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2647$as_echo "$ac_cv_path_SED" >&6; }
2648 SED="$ac_cv_path_SED"
2649 rm -f conftest.sed
2650
2651for ac_prog in gawk mawk nawk awk
2652do
2653 # Extract the first word of "$ac_prog", so it can be a program name with args.
2654set dummy $ac_prog; ac_word=$2
2655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2656$as_echo_n "checking for $ac_word... " >&6; }
2657if test "${ac_cv_prog_AWK+set}" = set; then :
2658 $as_echo_n "(cached) " >&6
2659else
2660 if test -n "$AWK"; then
2661 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2662else
2663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664for as_dir in $PATH
2665do
2666 IFS=$as_save_IFS
2667 test -z "$as_dir" && as_dir=.
2668 for ac_exec_ext in '' $ac_executable_extensions; do
2669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2670 ac_cv_prog_AWK="$ac_prog"
2671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2672 break 2
2673 fi
2674done
2675 done
2676IFS=$as_save_IFS
2677
2678fi
2679fi
2680AWK=$ac_cv_prog_AWK
2681if test -n "$AWK"; then
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2683$as_echo "$AWK" >&6; }
2684else
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2686$as_echo "no" >&6; }
2687fi
2688
2689
2690 test -n "$AWK" && break
2691done
2692
775956d0 2693
ee6a22df
L
2694srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2695
2696# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2697# a relative path.
2698if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2699 INSTALL="${srcpwd}/install-sh -c"
2700fi
2701
671aa708
NN
2702# Set srcdir to "." if that's what it is.
2703# This is important for multilib support.
2704pwd=`${PWDCMD-pwd}`
671aa708
NN
2705if test "${pwd}" = "${srcpwd}" ; then
2706 srcdir=.
79c06341
JL
2707fi
2708
671aa708 2709topsrcdir=$srcpwd
5d4a5ee6 2710
671aa708 2711extra_host_args=
afabd8e6 2712
671aa708
NN
2713### To add a new directory to the tree, first choose whether it is a target
2714### or a host dependent tool. Then put it into the appropriate list
2715### (library or tools, host or target), doing a dependency sort.
79c06341 2716
1c710c3c 2717# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2718# configdirs, or target_configdirs; see the serialization section below.
79c06341 2719
1c710c3c
DJ
2720# Dependency sorting is only needed when *configuration* must be done in
2721# a particular order. In all cases a dependency should be specified in
671aa708 2722# the Makefile, whether or not it's implicitly specified here.
79c06341 2723
671aa708
NN
2724# Double entries in build_configdirs, configdirs, or target_configdirs may
2725# cause circular dependencies and break everything horribly.
79c06341 2726
23f6b2f9
PB
2727# these library is used by various programs built for the build
2728# environment
2729#
929315a9 2730build_libs="build-libiberty build-libcpp"
23f6b2f9
PB
2731
2732# these tools are built for the build environment
85bfb75e 2733build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2734
671aa708 2735# these libraries are used by various programs built for the host environment
eae1a5d4 2736#f
4a9bb2aa 2737host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
671aa708 2738
671aa708
NN
2739# these tools are built for the host environment
2740# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2741# know that we are building the simulator.
2742# binutils, gas and ld appear in that order because it makes sense to run
2743# "make check" in that particular order.
38e3d868 2744# If --enable-gold is used, "gold" may replace "ld".
bf1de3f0 2745host_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 2746
671aa708
NN
2747# these libraries are built for the target environment, and are built after
2748# the host libraries and the host tools (which may be a cross compiler)
8499116a 2749# Note that libiberty is not a target library.
291f172e 2750target_libraries="target-libgcc \
eff02e4f 2751 target-libbacktrace \
671aa708
NN
2752 target-libgloss \
2753 target-newlib \
6d3b5aea 2754 target-libgomp \
3038054c 2755 target-libcilkrts \
5f520819 2756 target-liboffloadmic \
5fd1486c 2757 target-libhsail-rt \
48310492 2758 target-libatomic \
0a35513e 2759 target-libitm \
cb543528 2760 target-libstdc++-v3 \
f35db108 2761 target-libsanitizer \
2077db1b 2762 target-libvtv \
5373cd33 2763 target-libmpx \
77008252 2764 target-libssp \
1ec601bf 2765 target-libquadmath \
6de9cd9a 2766 target-libgfortran \
012447ea 2767 target-libffi \
d9cdb878 2768 target-libobjc \
632e2a07
ILT
2769 target-libada \
2770 target-libgo"
671aa708 2771
4dbda6f0
NN
2772# these tools are built using the target libraries, and are intended to
2773# run only in the target environment
671aa708 2774#
4dbda6f0 2775# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2776# list belongs in this list.
671aa708 2777#
85bfb75e 2778target_tools="target-rda"
79c06341 2779
671aa708 2780################################################################################
79c06341 2781
671aa708
NN
2782## All tools belong in one of the four categories, and are assigned above
2783## We assign ${configdirs} this way to remove all embedded newlines. This
2784## is important because configure will choke if they ever get through.
2785## ${configdirs} is directories we build using the host tools.
2786## ${target_configdirs} is directories we build using the target tools.
671aa708 2787configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2788target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2789build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2790
ac9e6043
RW
2791
2792
671aa708 2793################################################################################
79c06341 2794
671aa708 2795srcname="gnu development package"
79c06341 2796
671aa708
NN
2797# This gets set non-empty for some net releases of packages.
2798appdirs=""
79c06341 2799
671aa708
NN
2800# Define is_cross_compiler to save on calls to 'test'.
2801is_cross_compiler=
2802if test x"${host}" = x"${target}" ; then
2803 is_cross_compiler=no
79c06341 2804else
671aa708 2805 is_cross_compiler=yes
1c710c3c 2806fi
79c06341 2807
b4acb5ef 2808# Find the build and target subdir names.
8b87bb96 2809
2e9e6f68
DJ
2810# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2811# have matching libraries, they should use host libraries: Makefile.tpl
2812# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2813# However, they still use the build modules, because the corresponding
2814# host modules (e.g. bison) are only built for the host when bootstrap
2815# finishes. So:
2816# - build_subdir is where we find build modules, and never changes.
2817# - build_libsubdir is where we find build libraries, and can be overridden.
2818
2819# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2820build_subdir="build-${build_noncanonical}"
1c710c3c 2821
5213506e
RW
2822# Check whether --with-build-libsubdir was given.
2823if test "${with_build_libsubdir+set}" = set; then :
2824 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2825else
2826 build_libsubdir="$build_subdir"
5213506e
RW
2827fi
2828
215c351a
PB
2829# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2830if ( test $srcdir = . && test -d gcc ) \
2831 || test -d $srcdir/../host-${host_noncanonical}; then
2832 host_subdir="host-${host_noncanonical}"
2833else
2834 host_subdir=.
2835fi
8b87bb96
NN
2836# No prefix.
2837target_subdir=${target_noncanonical}
1c710c3c 2838
0db770bd
RW
2839# Be sure to cover against remnants of an in-tree build.
2840if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2841 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2842Use a pristine source tree when building in a separate tree" "$LINENO" 5
2843fi
79c06341 2844
671aa708
NN
2845# Skipdirs are removed silently.
2846skipdirs=
2847# Noconfigdirs are removed loudly.
2848noconfigdirs=""
79c06341 2849
671aa708
NN
2850use_gnu_ld=
2851# Make sure we don't let GNU ld be added if we didn't want it.
2852if test x$with_gnu_ld = xno ; then
2853 use_gnu_ld=no
5afab7ad 2854 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2855fi
2856
671aa708
NN
2857use_gnu_as=
2858# Make sure we don't let GNU as be added if we didn't want it.
2859if test x$with_gnu_as = xno ; then
2860 use_gnu_as=no
2861 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2862fi
2863
d7f09764 2864use_included_zlib=
a05c2c75
L
2865
2866# Check whether --with-system-zlib was given.
2867if test "${with_system_zlib+set}" = set; then :
2868 withval=$with_system_zlib;
2869fi
2870
d7f09764
DN
2871# Make sure we don't let ZLIB be added if we didn't want it.
2872if test x$with_system_zlib = xyes ; then
2873 use_included_zlib=no
2874 noconfigdirs="$noconfigdirs zlib"
2875fi
2876
1c710c3c 2877# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2878# it's not even worth trying to configure, much less build, that tool.
79c06341 2879
671aa708
NN
2880case ${with_x} in
2881 yes | "") ;; # the default value for this tree is that X11 is available
2882 no)
b4f96efe 2883 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2884 # We won't be able to build gdbtk without X.
1c710c3c 2885 enable_gdbtk=no
671aa708
NN
2886 ;;
2887 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2888esac
79c06341 2889
1bcce263 2890# Some are only suitable for cross toolchains.
671aa708
NN
2891# Remove these if host=target.
2892cross_only="target-libgloss target-newlib target-opcodes"
2893
2894case $is_cross_compiler in
2895 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 2896esac
79c06341 2897
671aa708
NN
2898# If both --with-headers and --with-libs are specified, default to
2899# --without-newlib.
ee6a22df
L
2900if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2901 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2902 if test x"${with_newlib}" = x ; then
2903 with_newlib=no
2904 fi
79c06341
JL
2905fi
2906
671aa708
NN
2907# Recognize --with-newlib/--without-newlib.
2908case ${with_newlib} in
2909 no) skipdirs="${skipdirs} target-newlib" ;;
2910 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2911esac
79c06341 2912
85c64bbe
BS
2913# Check whether --enable-as-accelerator-for was given.
2914if test "${enable_as_accelerator_for+set}" = set; then :
4b4f2e35 2915 enableval=$enable_as_accelerator_for;
85c64bbe
BS
2916fi
2917
2918
2919# Check whether --enable-offload-targets was given.
2920if test "${enable_offload_targets+set}" = set; then :
2921 enableval=$enable_offload_targets;
2922 if test x"$enable_offload_targets" = x; then
2923 as_fn_error "no offload targets specified" "$LINENO" 5
2924 fi
2925
2926else
2927 enable_offload_targets=
2928fi
2929
2930
21539e2e
MK
2931# Handle --enable-gold, --enable-ld.
2932# --disable-gold [--enable-ld]
2933# Build only ld. Default option.
9580395f
L
2934# --enable-gold [--enable-ld]
2935# Build both gold and ld. Install gold as "ld.gold", install ld
2936# as "ld.bfd" and "ld".
2937# --enable-gold=default [--enable-ld]
21539e2e
MK
2938# Build both gold and ld. Install gold as "ld.gold" and "ld",
2939# install ld as "ld.bfd".
2940# --enable-gold[=default] --disable-ld
2941# Build only gold, which is then installed as both "ld.gold" and "ld".
2942# --enable-gold --enable-ld=default
9580395f
L
2943# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2944# and ld.bfd).
21539e2e
MK
2945# In other words, ld is default
2946# --enable-gold=default --enable-ld=default
2947# Error.
2948
2949default_ld=
5213506e
RW
2950# Check whether --enable-gold was given.
2951if test "${enable_gold+set}" = set; then :
2952 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
2953else
2954 ENABLE_GOLD=no
5213506e
RW
2955fi
2956
21539e2e
MK
2957case "${ENABLE_GOLD}" in
2958 yes|default)
38e3d868
RM
2959 # Check for ELF target.
2960 is_elf=no
2961 case "${target}" in
2962 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
0e76460f 2963 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a 2964 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
ff4b7a7e 2965 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
38e3d868
RM
2966 case "${target}" in
2967 *-*-linux*aout* | *-*-linux*oldld*)
2968 ;;
2969 *)
2970 is_elf=yes
2971 ;;
2972 esac
2973 esac
2974
2975 if test "$is_elf" = "yes"; then
2976 # Check for target supported by gold.
5afab7ad 2977 case "${target}" in
7705dfd1 2978 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
1b858e76 2979 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
21539e2e
MK
2980 configdirs="$configdirs gold"
2981 if test x${ENABLE_GOLD} = xdefault; then
2982 default_ld=gold
2983 fi
38e3d868 2984 ENABLE_GOLD=yes
5afab7ad
ILT
2985 ;;
2986 esac
38e3d868
RM
2987 fi
2988 ;;
2989 no)
2990 ;;
2991 *)
2992 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2993 ;;
21539e2e
MK
2994esac
2995
2996# Check whether --enable-ld was given.
2997if test "${enable_ld+set}" = set; then :
2998 enableval=$enable_ld; ENABLE_LD=$enableval
2999else
3000 ENABLE_LD=yes
3001fi
3002
3003
3004case "${ENABLE_LD}" in
3005 default)
9580395f 3006 if test x${default_ld} != x; then
21539e2e
MK
3007 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3008 fi
3009 ;;
3010 yes)
3011 ;;
3012 no)
3013 if test x${ENABLE_GOLD} != xyes; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3015$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3016 fi
3017 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3018 ;;
3019 *)
3020 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3021 ;;
3022esac
5afab7ad 3023
78edb32f
L
3024# PR gas/19109
3025# Decide the default method for compressing debug sections.
3026# Provide a configure time option to override our default.
3027# Check whether --enable-compressed_debug_sections was given.
3028if test "${enable_compressed_debug_sections+set}" = set; then :
3029 enableval=$enable_compressed_debug_sections;
3030 if test x"$enable_compressed_debug_sections" = xyes; then
3031 as_fn_error "no program with compressed debug sections specified" "$LINENO" 5
3032 fi
3033
3034else
3035 enable_compressed_debug_sections=
3036fi
3037
3038
671aa708 3039# Configure extra directories which are host specific
79c06341 3040
671aa708
NN
3041case "${host}" in
3042 *-cygwin*)
3043 configdirs="$configdirs libtermcap" ;;
3044esac
79c06341 3045
4fab7234
HPN
3046# A target can indicate whether a language isn't supported for some reason.
3047# Only spaces may be used in this macro; not newlines or tabs.
3048unsupported_languages=
3049
1c710c3c 3050# Remove more programs from consideration, based on the host or
671aa708
NN
3051# target this usually means that a port of the program doesn't
3052# exist yet.
ec8d6ddc 3053
671aa708 3054case "${host}" in
111eeb6e 3055 i[3456789]86-*-msdosdjgpp*)
c9bdb152 3056 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 3057 ;;
671aa708 3058esac
ec8d6ddc 3059
6de9cd9a 3060
87e6d9dc
TB
3061# Check whether --enable-libquadmath was given.
3062if test "${enable_libquadmath+set}" = set; then :
3063 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3064else
3065 ENABLE_LIBQUADMATH=yes
3066fi
3067
3068if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3069 noconfigdirs="$noconfigdirs target-libquadmath"
3070fi
3071
3072
3073# Check whether --enable-libquadmath-support was given.
3074if test "${enable_libquadmath_support+set}" = set; then :
3075 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3076else
3077 ENABLE_LIBQUADMATH_SUPPORT=yes
3078fi
3079
3080enable_libquadmath_support=
3081if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3082 enable_libquadmath_support=no
3083fi
3084
3085
5213506e
RW
3086# Check whether --enable-libada was given.
3087if test "${enable_libada+set}" = set; then :
3088 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3089else
3090 ENABLE_LIBADA=yes
5213506e
RW
3091fi
3092
d9cdb878 3093if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3094 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3095fi
3096
5213506e
RW
3097# Check whether --enable-libssp was given.
3098if test "${enable_libssp+set}" = set; then :
3099 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3100else
3101 ENABLE_LIBSSP=yes
5213506e
RW
3102fi
3103
ef0087a7 3104
1873ec0c
L
3105# Check whether --enable-libstdcxx was given.
3106if test "${enable_libstdcxx+set}" = set; then :
3107 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3108else
3109 ENABLE_LIBSTDCXX=default
3110fi
3111
3112if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1007a55c 3113 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1873ec0c
L
3114fi
3115
5f520819
KY
3116# If this is accelerator compiler and its target is intelmic we enable
3117# target liboffloadmic by default. If this is compiler with offloading
3118# for intelmic we enable host liboffloadmic by default. Otherwise
3119# liboffloadmic is disabled by default.
3120# Check whether --enable-liboffloadmic was given.
3121if test "${enable_liboffloadmic+set}" = set; then :
3122 enableval=$enable_liboffloadmic; case "$enableval" in
3123 no | host | target)
3124 enable_liboffloadmic=$enableval ;;
3125 *)
3126 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3127esac
3128else
4b4f2e35 3129 if test x"$enable_as_accelerator_for" != x; then
5f520819
KY
3130 case "${target}" in
3131 *-intelmic-* | *-intelmicemul-*)
3132 enable_liboffloadmic=target
3133 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3134 ;;
3135 *)
3136 enable_liboffloadmic=no
3137 ;;
3138 esac
3139else
3140 case "${enable_offload_targets}" in
3141 *-intelmic-* | *-intelmicemul-*)
3142 enable_liboffloadmic=host
3143 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3144 ;;
3145 *)
3146 enable_liboffloadmic=no
3147 ;;
3148 esac
3149fi
3150fi
3151
3152
3153
44a7d18d 3154# Enable libgomp by default on hosted POSIX systems, and a few others.
27079765 3155if test x$enable_libgomp = x ; then
953ff289 3156 case "${target}" in
416ac4d4 3157 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3158 ;;
8c6d158a 3159 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3160 ;;
b24513a1 3161 *-*-solaris2* | *-*-hpux11*)
953ff289 3162 ;;
cac90078 3163 *-*-darwin* | *-*-aix*)
953ff289 3164 ;;
44a7d18d
TS
3165 nvptx*-*-*)
3166 ;;
953ff289
DN
3167 *)
3168 noconfigdirs="$noconfigdirs target-libgomp"
3169 ;;
3170 esac
27079765 3171fi
953ff289 3172
48310492
RH
3173# Disable libatomic on unsupported systems.
3174if test -d ${srcdir}/libatomic; then
3175 if test x$enable_libatomic = x; then
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3177$as_echo_n "checking for libatomic support... " >&6; }
3178 if (srcdir=${srcdir}/libatomic; \
3179 . ${srcdir}/configure.tgt; \
3180 test -n "$UNSUPPORTED")
3181 then
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183$as_echo "no" >&6; }
3184 noconfigdirs="$noconfigdirs target-libatomic"
3185 else
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3187$as_echo "yes" >&6; }
3188 fi
3189 fi
3190fi
3191
3038054c
BI
3192# Disable libcilkrts on unsupported systems.
3193if test -d ${srcdir}/libcilkrts; then
3194 if test x$enable_libcilkrts = x; then
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3196$as_echo_n "checking for libcilkrts support... " >&6; }
3197 if (srcdir=${srcdir}/libcilkrts; \
3198 . ${srcdir}/configure.tgt; \
3199 test -n "$UNSUPPORTED")
3200 then
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202$as_echo "no" >&6; }
3203 noconfigdirs="$noconfigdirs target-libcilkrts"
3204 else
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3206$as_echo "yes" >&6; }
3207 fi
3208 fi
3209fi
3210
5f520819
KY
3211# Disable liboffloadmic on unsupported systems.
3212if test -d ${srcdir}/liboffloadmic; then
3213 if test x$enable_liboffloadmic != xno; then
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3215$as_echo_n "checking for liboffloadmic support... " >&6; }
3216 if (srcdir=${srcdir}/liboffloadmic; \
3217 . ${srcdir}/configure.tgt; \
3218 test -n "$UNSUPPORTED")
3219 then
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221$as_echo "no" >&6; }
3222 noconfigdirs="$noconfigdirs target-liboffloadmic"
3223 else
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3225$as_echo "yes" >&6; }
3226 fi
3227 fi
3228fi
3229
e948157d
RH
3230# Disable libitm on unsupported systems.
3231if test -d ${srcdir}/libitm; then
3232 if test x$enable_libitm = x; then
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
01f3428c 3234$as_echo_n "checking for libitm support... " >&6; }
e948157d
RH
3235 if (srcdir=${srcdir}/libitm; \
3236 . ${srcdir}/configure.tgt; \
3237 test -n "$UNSUPPORTED")
3238 then
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
01f3428c 3240$as_echo "no" >&6; }
e948157d
RH
3241 noconfigdirs="$noconfigdirs target-libitm"
3242 else
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
01f3428c 3244$as_echo "yes" >&6; }
e948157d
RH
3245 fi
3246 fi
0a35513e
AH
3247fi
3248
93bf5390
RH
3249# Disable libsanitizer on unsupported systems.
3250if test -d ${srcdir}/libsanitizer; then
3251 if test x$enable_libsanitizer = x; then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3253$as_echo_n "checking for libsanitizer support... " >&6; }
3254 if (srcdir=${srcdir}/libsanitizer; \
3255 . ${srcdir}/configure.tgt; \
3256 test -n "$UNSUPPORTED")
3257 then
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259$as_echo "no" >&6; }
3260 noconfigdirs="$noconfigdirs target-libsanitizer"
3261 else
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3263$as_echo "yes" >&6; }
3264 fi
3265 fi
3266fi
3267
2077db1b
CT
3268# Disable libvtv on unsupported systems.
3269if test -d ${srcdir}/libvtv; then
3270 if test x$enable_libvtv = x; then
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3272$as_echo_n "checking for libvtv support... " >&6; }
3273 if (srcdir=${srcdir}/libvtv; \
3274 . ${srcdir}/configure.tgt; \
1e74b850 3275 test "$VTV_SUPPORTED" != "yes")
2077db1b
CT
3276 then
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278$as_echo "no" >&6; }
3279 noconfigdirs="$noconfigdirs target-libvtv"
3280 else
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3282$as_echo "yes" >&6; }
3283 fi
3284 fi
3285fi
3286
5373cd33
IE
3287
3288# Enable libmpx on supported systems by request.
3289if test -d ${srcdir}/libmpx; then
54985c70 3290 if test x$enable_libmpx = x; then
5373cd33
IE
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3292$as_echo_n "checking for libmpx support... " >&6; }
3293 if (srcdir=${srcdir}/libmpx; \
3294 . ${srcdir}/configure.tgt; \
3295 test "$LIBMPX_SUPPORTED" != "yes")
3296 then
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298$as_echo "no" >&6; }
3299 noconfigdirs="$noconfigdirs target-libmpx"
3300 else
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3302$as_echo "yes" >&6; }
3303 fi
5373cd33
IE
3304 fi
3305fi
3306
f6a24a94
MJ
3307# Disable libhsail-rt on unsupported systems.
3308if test -d ${srcdir}/libhsail-rt; then
3309 if test x$enable_libhsail_rt = x; then
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3311$as_echo_n "checking for libhsail-rt support... " >&6; }
3312 if (srcdir=${srcdir}/libhsail-rt; \
3313 . ${srcdir}/configure.tgt; \
3314 test -n "$UNSUPPORTED")
3315 then
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3317$as_echo "no" >&6; }
3318 unsupported_languages="$unsupported_languages brig"
3319 # This implicitly disables also target-libhsail-rt as it won't
3320 # get added to the build without BRIG FE.
3321 else
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3323$as_echo "yes" >&6; }
3324 fi
3325 fi
3326fi
5373cd33
IE
3327
3328
d91491e5
SE
3329# Disable libquadmath for some systems.
3330case "${target}" in
e7fae550
DE
3331 avr-*-*)
3332 noconfigdirs="$noconfigdirs target-libquadmath"
3333 ;;
d91491e5
SE
3334 # libquadmath is unused on AIX and libquadmath build process use of
3335 # LD_LIBRARY_PATH can break AIX bootstrap.
3336 powerpc-*-aix* | rs6000-*-aix*)
3337 noconfigdirs="$noconfigdirs target-libquadmath"
3338 ;;
3339esac
3340
1e9e0e23
JM
3341# Disable libssp for some systems.
3342case "${target}" in
3343 avr-*-*)
b318fb4b 3344 # No hosted I/O support.
1e9e0e23
JM
3345 noconfigdirs="$noconfigdirs target-libssp"
3346 ;;
3347 powerpc-*-aix* | rs6000-*-aix*)
3348 noconfigdirs="$noconfigdirs target-libssp"
85b8555e
DD
3349 ;;
3350 rl78-*-*)
7cb62ef1
EB
3351 # libssp uses a misaligned load to trigger a fault, but the RL78
3352 # doesn't fault for those - instead, it gives a build-time error
3353 # for explicit misaligned loads.
85b8555e 3354 noconfigdirs="$noconfigdirs target-libssp"
1e9e0e23 3355 ;;
0969ec7d
EB
3356 visium-*-*)
3357 # No hosted I/O support.
3358 noconfigdirs="$noconfigdirs target-libssp"
3359 ;;
1e9e0e23
JM
3360esac
3361
1e9e0e23 3362# Disable libstdc++-v3 for some systems.
1873ec0c
L
3363# Allow user to override this if they pass --enable-libstdc++-v3
3364if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3365 case "${target}" in
3366 *-*-vxworks*)
3367 # VxWorks uses the Dinkumware C++ library.
3368 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3369 ;;
3370 arm*-wince-pe*)
3371 # the C++ libraries don't build on top of CE's C libraries
3372 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3373 ;;
3374 avr-*-*)
3375 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3376 ;;
fef939d6
JB
3377 ft32-*-*)
3378 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3379 ;;
1873ec0c
L
3380 esac
3381fi
1e9e0e23
JM
3382
3383# Disable Fortran for some systems.
3384case "${target}" in
3385 mmix-*-*)
3386 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3387 unsupported_languages="$unsupported_languages fortran"
3388 ;;
3389esac
3390
012447ea
JJ
3391# Disable libffi for some systems.
3392case "${target}" in
3393 powerpc-*-darwin*)
3394 ;;
3395 i[3456789]86-*-darwin*)
3396 ;;
3397 x86_64-*-darwin[912]*)
3398 ;;
3399 *-*-darwin*)
3400 noconfigdirs="$noconfigdirs target-libffi"
3401 ;;
3402 *-*-netware*)
3403 noconfigdirs="$noconfigdirs target-libffi"
3404 ;;
3405 *-*-phoenix*)
3406 noconfigdirs="$noconfigdirs target-libffi"
3407 ;;
3408 *-*-rtems*)
3409 noconfigdirs="$noconfigdirs target-libffi"
3410 ;;
3411 *-*-tpf*)
3412 noconfigdirs="$noconfigdirs target-libffi"
3413 ;;
3414 *-*-uclinux*)
3415 noconfigdirs="$noconfigdirs target-libffi"
3416 ;;
3417 *-*-vxworks*)
3418 noconfigdirs="$noconfigdirs target-libffi"
3419 ;;
b20e7532
AT
3420 aarch64*-*-freebsd*)
3421 noconfigdirs="$noconfigdirs target-libffi"
3422 ;;
012447ea
JJ
3423 alpha*-*-*vms*)
3424 noconfigdirs="$noconfigdirs target-libffi"
3425 ;;
3426 arm*-*-freebsd*)
3427 noconfigdirs="$noconfigdirs target-libffi"
3428 ;;
3429 arm-wince-pe)
3430 noconfigdirs="$noconfigdirs target-libffi"
3431 ;;
3432 arm*-*-symbianelf*)
3433 noconfigdirs="$noconfigdirs target-libffi"
3434 ;;
3435 cris-*-* | crisv32-*-*)
3436 case "${target}" in
3437 *-*-linux*)
3438 ;;
3439 *) # See PR46792 regarding target-libffi.
3440 noconfigdirs="$noconfigdirs target-libffi";;
3441 esac
3442 ;;
3443 hppa*64*-*-hpux*)
3444 noconfigdirs="$noconfigdirs target-libffi"
3445 ;;
3446 hppa*-hp-hpux11*)
3447 ;;
3448 hppa*-*-hpux*)
3449 noconfigdirs="$noconfigdirs target-libffi"
3450 ;;
3451 ia64*-*-*vms*)
3452 noconfigdirs="$noconfigdirs target-libffi"
3453 ;;
3454 i[3456789]86-w64-mingw*)
3455 noconfigdirs="$noconfigdirs target-libffi"
3456 ;;
3457 i[3456789]86-*-mingw*)
3458 noconfigdirs="$noconfigdirs target-libffi"
3459 ;;
3460 x86_64-*-mingw*)
3461 noconfigdirs="$noconfigdirs target-libffi"
3462 ;;
3463 mmix-*-*)
3464 noconfigdirs="$noconfigdirs target-libffi"
3465 ;;
3466 powerpc-*-aix*)
3467 # copied from rs6000-*-* entry
3468 noconfigdirs="$noconfigdirs target-libffi"
3469 ;;
3470 rs6000-*-aix*)
3471 noconfigdirs="$noconfigdirs target-libffi"
3472 ;;
3473 ft32-*-*)
3474 noconfigdirs="$noconfigdirs target-libffi"
3475 ;;
3476 *-*-lynxos*)
3477 noconfigdirs="$noconfigdirs target-libffi"
3478 ;;
3479esac
3480
3481# Disable the go frontend on systems where it is known to not work. Please keep
3482# this in sync with contrib/config-list.mk.
3483case "${target}" in
3484*-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3485 unsupported_languages="$unsupported_languages go"
3486 ;;
3487esac
3488
cdbc9e92
ILT
3489# Disable libgo for some systems where it is known to not work.
3490# For testing, you can easily override this with --enable-libgo.
3491if test x$enable_libgo = x; then
3492 case "${target}" in
3493 *-*-darwin*)
3494 # PR 46986
3495 noconfigdirs="$noconfigdirs target-libgo"
3496 ;;
3497 *-*-cygwin* | *-*-mingw*)
3498 noconfigdirs="$noconfigdirs target-libgo"
3499 ;;
3500 *-*-aix*)
3501 noconfigdirs="$noconfigdirs target-libgo"
3502 ;;
3503 esac
3504fi
3505
c03353e2
RIL
3506# Default libgloss CPU subdirectory.
3507libgloss_dir="$target_cpu"
6de9cd9a 3508
fbcf0dca
JM
3509case "${target}" in
3510 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3511 libgloss_dir=wince
3512 ;;
4dddfc74
YZ
3513 aarch64*-*-* )
3514 libgloss_dir=aarch64
3515 ;;
fbcf0dca
JM
3516 arm*-*-*)
3517 libgloss_dir=arm
3518 ;;
3519 cris-*-* | crisv32-*-*)
3520 libgloss_dir=cris
3521 ;;
3522 hppa*-*-*)
3523 libgloss_dir=pa
3524 ;;
3525 i[3456789]86-*-*)
3526 libgloss_dir=i386
3527 ;;
3528 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3529 libgloss_dir=m68hc11
3530 ;;
3531 m68*-*-* | fido-*-*)
3532 libgloss_dir=m68k
3533 ;;
3534 mips*-*-*)
3535 libgloss_dir=mips
3536 ;;
3537 powerpc*-*-*)
3538 libgloss_dir=rs6000
3539 ;;
3540 sparc*-*-*)
3541 libgloss_dir=sparc
3542 ;;
3543esac
3544
6a789d5e 3545# Disable newlib and libgloss for various target OSes.
671aa708 3546case "${target}" in
6a789d5e
JM
3547 alpha*-dec-osf*)
3548 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3549 ;;
3550 i[3456789]86-*-linux*)
3551 # This section makes it possible to build newlib natively on linux.
3552 # If we are using a cross compiler then don't configure newlib.
3553 if test x${is_cross_compiler} != xno ; then
3554 noconfigdirs="$noconfigdirs target-newlib"
3555 fi
3556 noconfigdirs="$noconfigdirs target-libgloss"
3557 # If we are not using a cross compiler, do configure newlib.
3558 # Note however, that newlib will only be configured in this situation
3559 # if the --with-newlib option has been given, because otherwise
3560 # 'target-newlib' will appear in skipdirs.
3561 ;;
3562 i[3456789]86-*-rdos*)
3563 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3564 ;;
3565 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3566 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3567 ;;
3568 sparc-*-sunos4*)
3569 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3570 ;;
3571 *-*-aix*)
3572 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3573 ;;
3574 *-*-beos*)
3575 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3576 ;;
671aa708 3577 *-*-chorusos)
0036370f 3578 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3579 ;;
6a789d5e
JM
3580 *-*-dragonfly*)
3581 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3582 ;;
3583 *-*-freebsd*)
3584 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3585 ;;
3586 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3587 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3588 ;;
3589 *-*-lynxos*)
3590 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3591 ;;
3592 *-*-mingw*)
3593 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3594 ;;
3595 *-*-netbsd*)
3596 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3597 ;;
3598 *-*-netware*)
3599 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3600 ;;
3601 *-*-tpf*)
3602 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3603 ;;
3604 *-*-uclinux*)
3605 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3606 ;;
3607 *-*-vxworks*)
3608 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3609 ;;
3610esac
3611
3612case "${target}" in
3613 *-*-chorusos)
3614 ;;
3be96231
TG
3615 aarch64-*-darwin*)
3616 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3617 noconfigdirs="$noconfigdirs sim target-rda"
3618 ;;
3619 arm-*-darwin*)
3620 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3621 noconfigdirs="$noconfigdirs sim target-rda"
3622 ;;
75eeae1a 3623 powerpc-*-darwin*)
e1514c3f 3624 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3625 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3626 ;;
354ebf88
RW
3627 i[3456789]86-*-darwin*)
3628 noconfigdirs="$noconfigdirs ld gprof"
3629 noconfigdirs="$noconfigdirs sim target-rda"
3630 ;;
3631 x86_64-*-darwin[912]*)
0db3a858
TG
3632 noconfigdirs="$noconfigdirs ld gas gprof"
3633 noconfigdirs="$noconfigdirs sim target-rda"
3634 ;;
42c1cd8a
AT
3635 *-*-darwin*)
3636 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3637 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3638 ;;
8c6d158a 3639 *-*-dragonfly*)
8c6d158a 3640 ;;
c3f84f61 3641 *-*-freebsd*)
6de9cd9a
DN
3642 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3643 && test -f /usr/local/include/gmp.h; then
3644 with_gmp=/usr/local
3645 fi
6de9cd9a 3646 ;;
ef4e7569
US
3647 *-*-kaos*)
3648 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3649 noconfigdirs="$noconfigdirs target-libgloss"
3650 ;;
671aa708 3651 *-*-netbsd*)
671aa708 3652 ;;
61fec9ff 3653 *-*-netware*)
671aa708 3654 ;;
fd6487af
JS
3655 *-*-phoenix*)
3656 noconfigdirs="$noconfigdirs target-libgloss"
3657 ;;
671aa708 3658 *-*-rtems*)
2909494b 3659 noconfigdirs="$noconfigdirs target-libgloss"
d896cc4d
JBG
3660 # this is not caught below because this stanza matches earlier
3661 case $target in
3662 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3663 esac
671aa708 3664 ;;
a8ba31f2
EC
3665 # The tpf target doesn't support gdb yet.
3666 *-*-tpf*)
6a789d5e 3667 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3668 ;;
5785c0ed 3669 *-*-uclinux*)
6a789d5e 3670 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3671 ;;
671aa708 3672 *-*-vxworks*)
671aa708
NN
3673 ;;
3674 alpha*-dec-osf*)
3675 # ld works, but does not support shared libraries.
671aa708 3676 # gas doesn't generate exception information.
6a789d5e 3677 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3678 ;;
3679 alpha*-*-*vms*)
2909494b 3680 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3681 ;;
671aa708
NN
3682 alpha*-*-*)
3683 # newlib is not 64 bit ready
2909494b 3684 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3685 ;;
671aa708 3686 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3687 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708 3688 ;;
2fd88f4f
AK
3689 arc*-*-*)
3690 noconfigdirs="$noconfigdirs sim"
3691 ;;
671aa708 3692 arm-*-pe*)
2909494b 3693 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3694 ;;
671aa708 3695 arm-*-riscix*)
0036370f 3696 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3697 ;;
b588ae30
GJL
3698 avr-*-*)
3699 if test x${with_avrlibc} != xno; then
3700 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3701 fi
3702 ;;
671aa708 3703 c4x-*-* | tic4x-*-*)
0036370f 3704 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3705 ;;
0036370f
JM
3706 tic54x-*-*)
3707 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3708 ;;
671aa708 3709 d10v-*-*)
0036370f 3710 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3711 ;;
3712 d30v-*-*)
0036370f 3713 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3714 ;;
3715 fr30-*-elf*)
2909494b 3716 noconfigdirs="$noconfigdirs gdb"
671aa708 3717 ;;
a05c2c75
L
3718 ft32-*-*)
3719 noconfigdirs="$noconfigdirs target-rda gprof"
3720 ;;
55f2d967 3721 moxie-*-*)
a05c2c75 3722 noconfigdirs="$noconfigdirs"
55f2d967 3723 ;;
671aa708 3724 h8300*-*-*)
2909494b 3725 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3726 ;;
3727 h8500-*-*)
0036370f 3728 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3729 ;;
ee6a22df 3730 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3731 ;;
a05c2c75
L
3732 hppa*64*-*-hpux*)
3733 noconfigdirs="$noconfigdirs gdb"
3734 ;;
3735 hppa*-*-hpux11*)
3736 noconfigdirs="$noconfigdirs gdb ld"
3737 ;;
4569f85e 3738 hppa*64*-*-linux*)
671aa708 3739 ;;
56f8587a 3740 hppa*-*-linux*)
3e732ba0 3741 ;;
671aa708 3742 hppa*-*-*elf* | \
671aa708
NN
3743 hppa*-*-lites* | \
3744 hppa*-*-openbsd* | \
3745 hppa*64*-*-*)
671aa708 3746 ;;
c03353e2 3747 hppa*-*-pro*)
c03353e2 3748 ;;
671aa708 3749 hppa*-*-*)
2909494b 3750 noconfigdirs="$noconfigdirs ld"
671aa708 3751 ;;
fb87ad5d 3752 i960-*-*)
0036370f 3753 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3754 ;;
671aa708
NN
3755 ia64*-*-elf*)
3756 # No gdb support yet.
1bcce263 3757 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3758 ;;
3759 ia64*-**-hpux*)
5a2931d1 3760 # No ld support yet.
a05c2c75 3761 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
671aa708 3762 ;;
52535a64 3763 ia64*-*-*vms*)
091fe9ca
TG
3764 # No ld support yet.
3765 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3766 ;;
ef4c4300 3767 i[3456789]86-w64-mingw*)
ef4c4300
KT
3768 ;;
3769 i[3456789]86-*-mingw*)
b91f0a41 3770 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3771 ;;
671aa708
NN
3772 *-*-cygwin*)
3773 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3774 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3775 # always build newlib if winsup directory is present.
b91f0a41 3776 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3777 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3778 elif test -d "$srcdir/newlib"; then
b91f0a41 3779 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3780 fi
1c710c3c 3781 ;;
f2a0e225 3782 i[3456789]86-*-pe)
ebb9f8b0 3783 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3784 ;;
f2a0e225 3785 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3786 # The linker does not yet know about weak symbols in COFF,
3787 # and is not configured to handle mixed ELF and COFF.
0036370f 3788 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3789 ;;
f2a0e225 3790 i[3456789]86-*-sco*)
0036370f 3791 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3792 ;;
fbdd5d87 3793 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3794 noconfigdirs="$noconfigdirs target-libgloss"
3795 ;;
f2a0e225 3796 i[3456789]86-*-sysv4*)
0036370f 3797 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3798 ;;
f2a0e225 3799 i[3456789]86-*-beos*)
6a789d5e 3800 noconfigdirs="$noconfigdirs gdb"
3aa83176 3801 ;;
d1f8db0c 3802 i[3456789]86-*-rdos*)
6a789d5e 3803 noconfigdirs="$noconfigdirs gdb"
c03353e2 3804 ;;
671aa708 3805 mmix-*-*)
2909494b 3806 noconfigdirs="$noconfigdirs gdb"
671aa708 3807 ;;
ab34901f 3808 mt-*-*)
79dd769c
AH
3809 noconfigdirs="$noconfigdirs sim"
3810 ;;
671aa708
NN
3811 powerpc-*-aix*)
3812 # copied from rs6000-*-* entry
6a789d5e 3813 noconfigdirs="$noconfigdirs gprof"
671aa708 3814 ;;
4569f85e 3815 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3816 target_configdirs="$target_configdirs target-winsup"
0036370f 3817 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3818 # always build newlib.
3819 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3820 ;;
3821 # This is temporary until we can link against shared libraries
3822 powerpcle-*-solaris*)
0036370f 3823 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3824 ;;
3825 powerpc-*-beos*)
6a789d5e 3826 noconfigdirs="$noconfigdirs gdb"
671aa708 3827 ;;
671aa708 3828 rs6000-*-lynxos*)
6a789d5e 3829 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3830 ;;
3831 rs6000-*-aix*)
6a789d5e 3832 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3833 ;;
3834 rs6000-*-*)
2909494b 3835 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3836 ;;
3837 m68k-apollo-*)
0036370f 3838 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3839 ;;
ca9fe997 3840 microblaze*)
2909494b 3841 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3842 ;;
d896cc4d 3843 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
d9dced13
RS
3844 if test x$with_newlib = xyes; then
3845 noconfigdirs="$noconfigdirs gprof"
3846 fi
d9dced13 3847 ;;
671aa708 3848 mips*-*-irix5*)
0036370f 3849 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3850 ;;
3851 mips*-*-irix6*)
2909494b 3852 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3853 ;;
671aa708 3854 mips*-*-bsd*)
bc98bcc4 3855 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
671aa708 3856 ;;
671aa708 3857 mips*-*-linux*)
671aa708 3858 ;;
bc98bcc4
JBG
3859 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3860 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3861 noconfigdirs="$noconfigdirs ld gas gprof"
3862 ;;
671aa708 3863 mips*-*-*)
2909494b 3864 noconfigdirs="$noconfigdirs gprof"
671aa708 3865 ;;
738f2522 3866 nvptx*-*-*)
738f2522
BS
3867 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3868 ;;
d896cc4d
JBG
3869 or1k*-*-*)
3870 noconfigdirs="$noconfigdirs gdb"
3871 ;;
bc6d9014 3872 sh-*-*)
ea2002ba
CB
3873 case "${target}" in
3874 sh*-*-elf)
2909494b 3875 ;;
ea2002ba 3876 *)
2909494b 3877 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 3878 esac
671aa708 3879 ;;
671aa708 3880 sparc-*-sunos4*)
6a789d5e 3881 if test x${is_cross_compiler} = xno ; then
671aa708
NN
3882 use_gnu_ld=no
3883 fi
3884 ;;
b42f0d7e 3885 tic6x-*-*)
0d557ff8 3886 noconfigdirs="$noconfigdirs sim"
b42f0d7e 3887 ;;
341c653c 3888 tilepro*-*-* | tilegx*-*-*)
db1d217c
WL
3889 noconfigdirs="$noconfigdirs sim"
3890 ;;
671aa708 3891 v810-*-*)
0036370f 3892 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
3893 ;;
3894 vax-*-*)
2909494b 3895 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3896 ;;
671aa708 3897esac
79c06341 3898
671aa708
NN
3899# If we aren't building newlib, then don't build libgloss, since libgloss
3900# depends upon some newlib header files.
3901case "${noconfigdirs}" in
3902 *target-libgloss*) ;;
3903 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3904esac
3905
671aa708 3906# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
3907host_makefile_frag=/dev/null
3908if test -d ${srcdir}/config ; then
3909case "${host}" in
f2a0e225 3910 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
3911 host_makefile_frag="config/mh-djgpp"
3912 ;;
3913 *-cygwin*)
2a79c47f 3914
5213506e
RW
3915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3916$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 3917echo a >cygwin-cat-check
e25a8c82 3918if test `cat cygwin-cat-check` = a ; then
2a79c47f 3919 rm cygwin-cat-check
5213506e
RW
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3921$as_echo "yes" >&6; }
2a79c47f
NC
3922else
3923 rm cygwin-cat-check
5213506e
RW
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925$as_echo "no" >&6; }
3926 as_fn_error "The cat command does not ignore carriage return characters.
2a79c47f
NC
3927 Please either mount the build directory in binary mode or run the following
3928 commands before running any configure script:
3929set -o igncr
3930export SHELLOPTS
5213506e 3931 " "$LINENO" 5
2a79c47f
NC
3932fi
3933
671aa708
NN
3934 host_makefile_frag="config/mh-cygwin"
3935 ;;
c53a18d3 3936 *-mingw*)
1f5a6b84 3937 host_makefile_frag="config/mh-mingw"
95af8923 3938 ;;
cabb9d59 3939 alpha*-linux*)
13be44ed
UB
3940 host_makefile_frag="config/mh-alpha-linux"
3941 ;;
efd41714 3942 hppa*-hp-hpux10*)
efd41714 3943 host_makefile_frag="config/mh-pa-hpux10"
671aa708 3944 ;;
111eeb6e 3945 hppa*-hp-hpux*)
efd41714
PB
3946 host_makefile_frag="config/mh-pa"
3947 ;;
3948 hppa*-*)
3949 host_makefile_frag="config/mh-pa"
3950 ;;
d8ed14ce
IS
3951 *-*-darwin*)
3952 host_makefile_frag="config/mh-darwin"
be8fff81 3953 ;;
d19bca38
PB
3954 powerpc-*-aix*)
3955 host_makefile_frag="config/mh-ppc-aix"
3956 ;;
3957 rs6000-*-aix*)
3958 host_makefile_frag="config/mh-ppc-aix"
3959 ;;
671aa708
NN
3960esac
3961fi
3962
55ffb5ed 3963if test "${build}" != "${host}" ; then
0999159b
PB
3964 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3965 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 3966 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b 3967 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
0999159b 3968 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 3969 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
0999159b
PB
3970 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3971 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3972 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3973 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3974 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3975 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3976else
3977 AR_FOR_BUILD="\$(AR)"
3978 AS_FOR_BUILD="\$(AS)"
fb0103e5 3979 CC_FOR_BUILD="\$(CC)"
0999159b 3980 CXX_FOR_BUILD="\$(CXX)"
0999159b 3981 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 3982 GOC_FOR_BUILD="\$(GOC)"
0999159b
PB
3983 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3984 LD_FOR_BUILD="\$(LD)"
3985 NM_FOR_BUILD="\$(NM)"
3986 RANLIB_FOR_BUILD="\$(RANLIB)"
3987 WINDRES_FOR_BUILD="\$(WINDRES)"
3988 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
3989fi
3990
3991ac_ext=c
1c710c3c
DJ
3992ac_cpp='$CPP $CPPFLAGS'
3993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3995ac_compiler_gnu=$ac_cv_c_compiler_gnu
3996if test -n "$ac_tool_prefix"; then
3997 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3998set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4000$as_echo_n "checking for $ac_word... " >&6; }
4001if test "${ac_cv_prog_CC+set}" = set; then :
4002 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4003else
4004 if test -n "$CC"; then
4005 ac_cv_prog_CC="$CC" # Let the user override the test.
4006else
4007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008for as_dir in $PATH
4009do
4010 IFS=$as_save_IFS
4011 test -z "$as_dir" && as_dir=.
5213506e
RW
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4014 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 4015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4016 break 2
4017 fi
4018done
5213506e
RW
4019 done
4020IFS=$as_save_IFS
1c710c3c
DJ
4021
4022fi
4023fi
4024CC=$ac_cv_prog_CC
4025if test -n "$CC"; then
5213506e
RW
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4027$as_echo "$CC" >&6; }
1c710c3c 4028else
5213506e
RW
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030$as_echo "no" >&6; }
1c710c3c
DJ
4031fi
4032
5213506e 4033
1c710c3c
DJ
4034fi
4035if test -z "$ac_cv_prog_CC"; then
4036 ac_ct_CC=$CC
fb0103e5
RG
4037 # Extract the first word of "gcc", so it can be a program name with args.
4038set dummy gcc; ac_word=$2
5213506e
RW
4039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4040$as_echo_n "checking for $ac_word... " >&6; }
4041if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4042 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4043else
4044 if test -n "$ac_ct_CC"; then
4045 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4046else
4047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048for as_dir in $PATH
4049do
4050 IFS=$as_save_IFS
4051 test -z "$as_dir" && as_dir=.
5213506e
RW
4052 for ac_exec_ext in '' $ac_executable_extensions; do
4053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4054 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4056 break 2
4057 fi
4058done
5213506e
RW
4059 done
4060IFS=$as_save_IFS
1c710c3c
DJ
4061
4062fi
4063fi
4064ac_ct_CC=$ac_cv_prog_ac_ct_CC
4065if test -n "$ac_ct_CC"; then
5213506e
RW
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4067$as_echo "$ac_ct_CC" >&6; }
1c710c3c 4068else
5213506e
RW
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4070$as_echo "no" >&6; }
1c710c3c
DJ
4071fi
4072
5213506e
RW
4073 if test "x$ac_ct_CC" = x; then
4074 CC=""
4075 else
4076 case $cross_compiling:$ac_tool_warned in
4077yes:)
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4079$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4080ac_tool_warned=yes ;;
4081esac
4082 CC=$ac_ct_CC
4083 fi
1c710c3c
DJ
4084else
4085 CC="$ac_cv_prog_CC"
4086fi
4087
4088if test -z "$CC"; then
5213506e
RW
4089 if test -n "$ac_tool_prefix"; then
4090 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4091set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4093$as_echo_n "checking for $ac_word... " >&6; }
4094if test "${ac_cv_prog_CC+set}" = set; then :
4095 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4096else
4097 if test -n "$CC"; then
4098 ac_cv_prog_CC="$CC" # Let the user override the test.
4099else
1c710c3c
DJ
4100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101for as_dir in $PATH
4102do
4103 IFS=$as_save_IFS
4104 test -z "$as_dir" && as_dir=.
5213506e
RW
4105 for ac_exec_ext in '' $ac_executable_extensions; do
4106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4107 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4109 break 2
4110 fi
4111done
5213506e
RW
4112 done
4113IFS=$as_save_IFS
1c710c3c 4114
0b0dc272 4115fi
0b0dc272 4116fi
1c710c3c 4117CC=$ac_cv_prog_CC
af71363e 4118if test -n "$CC"; then
5213506e
RW
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4120$as_echo "$CC" >&6; }
2aeb72e9 4121else
5213506e
RW
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4123$as_echo "no" >&6; }
2aeb72e9
DD
4124fi
4125
2aeb72e9 4126
5213506e 4127 fi
1c710c3c 4128fi
55ffb5ed
NN
4129if test -z "$CC"; then
4130 # Extract the first word of "cc", so it can be a program name with args.
4131set dummy cc; ac_word=$2
5213506e
RW
4132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4133$as_echo_n "checking for $ac_word... " >&6; }
4134if test "${ac_cv_prog_CC+set}" = set; then :
4135 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4136else
4137 if test -n "$CC"; then
4138 ac_cv_prog_CC="$CC" # Let the user override the test.
4139else
0b0dc272 4140 ac_prog_rejected=no
1c710c3c
DJ
4141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142for as_dir in $PATH
4143do
4144 IFS=$as_save_IFS
4145 test -z "$as_dir" && as_dir=.
5213506e
RW
4146 for ac_exec_ext in '' $ac_executable_extensions; do
4147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
4148 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4149 ac_prog_rejected=yes
4150 continue
4151 fi
4152 ac_cv_prog_CC="cc"
5213506e 4153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4154 break 2
4155 fi
4156done
5213506e
RW
4157 done
4158IFS=$as_save_IFS
1c710c3c 4159
55ffb5ed
NN
4160if test $ac_prog_rejected = yes; then
4161 # We found a bogon in the path, so make sure we never use it.
4162 set dummy $ac_cv_prog_CC
4163 shift
1c710c3c 4164 if test $# != 0; then
55ffb5ed
NN
4165 # We chose a different compiler from the bogus one.
4166 # However, it has the same basename, so the bogon will be chosen
4167 # first if we set CC to just the basename; use the full file name.
4168 shift
1c710c3c 4169 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4170 fi
4171fi
4172fi
4173fi
1c710c3c 4174CC=$ac_cv_prog_CC
55ffb5ed 4175if test -n "$CC"; then
5213506e
RW
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4177$as_echo "$CC" >&6; }
55ffb5ed 4178else
5213506e
RW
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4180$as_echo "no" >&6; }
55ffb5ed
NN
4181fi
4182
5213506e 4183
1c710c3c
DJ
4184fi
4185if test -z "$CC"; then
4186 if test -n "$ac_tool_prefix"; then
5213506e 4187 for ac_prog in cl.exe
1c710c3c
DJ
4188 do
4189 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4190set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4192$as_echo_n "checking for $ac_word... " >&6; }
4193if test "${ac_cv_prog_CC+set}" = set; then :
4194 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4195else
4196 if test -n "$CC"; then
4197 ac_cv_prog_CC="$CC" # Let the user override the test.
4198else
1c710c3c
DJ
4199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200for as_dir in $PATH
4201do
4202 IFS=$as_save_IFS
4203 test -z "$as_dir" && as_dir=.
5213506e
RW
4204 for ac_exec_ext in '' $ac_executable_extensions; do
4205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4206 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4208 break 2
4209 fi
4210done
5213506e
RW
4211 done
4212IFS=$as_save_IFS
1c710c3c 4213
55ffb5ed
NN
4214fi
4215fi
1c710c3c 4216CC=$ac_cv_prog_CC
55ffb5ed 4217if test -n "$CC"; then
5213506e
RW
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4219$as_echo "$CC" >&6; }
a4b9e93e 4220else
5213506e
RW
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4222$as_echo "no" >&6; }
fb0103e5 4223fi
af71363e 4224
5213506e 4225
1c710c3c
DJ
4226 test -n "$CC" && break
4227 done
af71363e 4228fi
1c710c3c
DJ
4229if test -z "$CC"; then
4230 ac_ct_CC=$CC
5213506e 4231 for ac_prog in cl.exe
1c710c3c
DJ
4232do
4233 # Extract the first word of "$ac_prog", so it can be a program name with args.
4234set dummy $ac_prog; ac_word=$2
5213506e
RW
4235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4236$as_echo_n "checking for $ac_word... " >&6; }
4237if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4238 $as_echo_n "(cached) " >&6
0b0dc272 4239else
1c710c3c
DJ
4240 if test -n "$ac_ct_CC"; then
4241 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4242else
1c710c3c
DJ
4243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244for as_dir in $PATH
4245do
4246 IFS=$as_save_IFS
4247 test -z "$as_dir" && as_dir=.
5213506e
RW
4248 for ac_exec_ext in '' $ac_executable_extensions; do
4249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4250 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4252 break 2
4253 fi
4254done
5213506e
RW
4255 done
4256IFS=$as_save_IFS
1c710c3c 4257
af71363e
AS
4258fi
4259fi
1c710c3c
DJ
4260ac_ct_CC=$ac_cv_prog_ac_ct_CC
4261if test -n "$ac_ct_CC"; then
5213506e
RW
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4263$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4264else
5213506e
RW
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266$as_echo "no" >&6; }
af71363e 4267fi
0b0dc272 4268
5213506e 4269
1c710c3c
DJ
4270 test -n "$ac_ct_CC" && break
4271done
4272
5213506e
RW
4273 if test "x$ac_ct_CC" = x; then
4274 CC=""
4275 else
4276 case $cross_compiling:$ac_tool_warned in
4277yes:)
4278{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4279$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4280ac_tool_warned=yes ;;
4281esac
4282 CC=$ac_ct_CC
4283 fi
1c710c3c
DJ
4284fi
4285
4286fi
4287
4288
5213506e
RW
4289test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4290$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4291as_fn_error "no acceptable C compiler found in \$PATH
4292See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4293
4294# Provide some information about the compiler.
5213506e
RW
4295$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4296set X $ac_compile
4297ac_compiler=$2
4298for ac_option in --version -v -V -qversion; do
4299 { { ac_try="$ac_compiler $ac_option >&5"
4300case "(($ac_try" in
4301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4302 *) ac_try_echo=$ac_try;;
4303esac
4304eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4305$as_echo "$ac_try_echo"; } >&5
4306 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4307 ac_status=$?
5213506e
RW
4308 if test -s conftest.err; then
4309 sed '10a\
4310... rest of stderr output deleted ...
4311 10q' conftest.err >conftest.er1
4312 cat conftest.er1 >&5
4313 rm -f conftest.er1 conftest.err
4314 fi
4315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4316 test $ac_status = 0; }
4317done
1c710c3c 4318
5213506e 4319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4320/* end confdefs.h. */
4321
4322int
4323main ()
4324{
4325
4326 ;
4327 return 0;
4328}
4329_ACEOF
4330ac_clean_files_save=$ac_clean_files
5213506e 4331ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
1c710c3c
DJ
4332# Try to create an executable without -o first, disregard a.out.
4333# It will help us diagnose broken compilers, and finding out an intuition
4334# of exeext.
5213506e
RW
4335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4336$as_echo_n "checking for C compiler default output file name... " >&6; }
4337ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4338
4339# The possible output files:
4340ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4341
4342ac_rmfiles=
4343for ac_file in $ac_files
4344do
4345 case $ac_file in
4346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4347 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4348 esac
4349done
4350rm -f $ac_rmfiles
4351
4352if { { ac_try="$ac_link_default"
4353case "(($ac_try" in
4354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4355 *) ac_try_echo=$ac_try;;
4356esac
4357eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4358$as_echo "$ac_try_echo"; } >&5
4359 (eval "$ac_link_default") 2>&5
1c710c3c 4360 ac_status=$?
5213506e
RW
4361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4362 test $ac_status = 0; }; then :
4363 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4364# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4365# in a Makefile. We should not override ac_cv_exeext if it was cached,
4366# so that the user can short-circuit this test for compilers unknown to
4367# Autoconf.
4368for ac_file in $ac_files ''
1c710c3c
DJ
4369do
4370 test -f "$ac_file" || continue
4371 case $ac_file in
5213506e 4372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4373 ;;
4374 [ab].out )
4375 # We found the default executable, but exeext='' is most
4376 # certainly right.
4377 break;;
4378 *.* )
5213506e
RW
4379 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4380 then :; else
4381 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4382 fi
4383 # We set ac_cv_exeext here because the later test for it is not
4384 # safe: cross compilers may not add the suffix if given an `-o'
4385 # argument, so we may need to know it at that point already.
4386 # Even if this section looks crufty: it has the advantage of
4387 # actually working.
1c710c3c
DJ
4388 break;;
4389 * )
4390 break;;
4391 esac
4392done
5213506e
RW
4393test "$ac_cv_exeext" = no && ac_cv_exeext=
4394
1c710c3c 4395else
5213506e
RW
4396 ac_file=''
4397fi
4398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4399$as_echo "$ac_file" >&6; }
4400if test -z "$ac_file"; then :
4401 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4402sed 's/^/| /' conftest.$ac_ext >&5
4403
5213506e
RW
4404{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4405$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4406{ as_fn_set_status 77
4407as_fn_error "C compiler cannot create executables
4408See \`config.log' for more details." "$LINENO" 5; }; }
1c710c3c 4409fi
1c710c3c 4410ac_exeext=$ac_cv_exeext
1c710c3c 4411
5213506e 4412# Check that the compiler produces executables we can run. If not, either
1c710c3c 4413# the compiler is broken, or we cross compile.
5213506e
RW
4414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4415$as_echo_n "checking whether the C compiler works... " >&6; }
1c710c3c
DJ
4416# If not cross compiling, check that we can run a simple program.
4417if test "$cross_compiling" != yes; then
4418 if { ac_try='./$ac_file'
5213506e
RW
4419 { { case "(($ac_try" in
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4422esac
4423eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4424$as_echo "$ac_try_echo"; } >&5
4425 (eval "$ac_try") 2>&5
1c710c3c 4426 ac_status=$?
5213506e
RW
4427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4428 test $ac_status = 0; }; }; then
1c710c3c
DJ
4429 cross_compiling=no
4430 else
4431 if test "$cross_compiling" = maybe; then
4432 cross_compiling=yes
4433 else
5213506e
RW
4434 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4435$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4436as_fn_error "cannot run C compiled programs.
1c710c3c 4437If you meant to cross compile, use \`--host'.
5213506e 4438See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4439 fi
4440 fi
4441fi
5213506e
RW
4442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4443$as_echo "yes" >&6; }
1c710c3c 4444
5213506e 4445rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
1c710c3c 4446ac_clean_files=$ac_clean_files_save
5213506e 4447# Check that the compiler produces executables we can run. If not, either
1c710c3c 4448# the compiler is broken, or we cross compile.
5213506e
RW
4449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4450$as_echo_n "checking whether we are cross compiling... " >&6; }
4451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4452$as_echo "$cross_compiling" >&6; }
4453
4454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4455$as_echo_n "checking for suffix of executables... " >&6; }
4456if { { ac_try="$ac_link"
4457case "(($ac_try" in
4458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459 *) ac_try_echo=$ac_try;;
4460esac
4461eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4462$as_echo "$ac_try_echo"; } >&5
4463 (eval "$ac_link") 2>&5
1c710c3c 4464 ac_status=$?
5213506e
RW
4465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4466 test $ac_status = 0; }; then :
1c710c3c
DJ
4467 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4468# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4469# work properly (i.e., refer to `conftest.exe'), while it won't with
4470# `rm'.
4471for ac_file in conftest.exe conftest conftest.*; do
4472 test -f "$ac_file" || continue
4473 case $ac_file in
5213506e 4474 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4475 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4476 break;;
4477 * ) break;;
4478 esac
4479done
af71363e 4480else
5213506e
RW
4481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4482$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4483as_fn_error "cannot compute suffix of executables: cannot compile and link
4484See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4485fi
1c710c3c 4486rm -f conftest$ac_cv_exeext
5213506e
RW
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4488$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4489
4490rm -f conftest.$ac_ext
4491EXEEXT=$ac_cv_exeext
4492ac_exeext=$EXEEXT
5213506e
RW
4493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4494$as_echo_n "checking for suffix of object files... " >&6; }
4495if test "${ac_cv_objext+set}" = set; then :
4496 $as_echo_n "(cached) " >&6
1c710c3c 4497else
5213506e 4498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4499/* end confdefs.h. */
4500
4501int
4502main ()
4503{
4504
4505 ;
4506 return 0;
4507}
4508_ACEOF
4509rm -f conftest.o conftest.obj
5213506e
RW
4510if { { ac_try="$ac_compile"
4511case "(($ac_try" in
4512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4513 *) ac_try_echo=$ac_try;;
4514esac
4515eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4516$as_echo "$ac_try_echo"; } >&5
4517 (eval "$ac_compile") 2>&5
1c710c3c 4518 ac_status=$?
5213506e
RW
4519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4520 test $ac_status = 0; }; then :
4521 for ac_file in conftest.o conftest.obj conftest.*; do
4522 test -f "$ac_file" || continue;
1c710c3c 4523 case $ac_file in
5213506e 4524 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4525 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4526 break;;
4527 esac
4528done
4529else
5213506e 4530 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4531sed 's/^/| /' conftest.$ac_ext >&5
4532
5213506e
RW
4533{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4534$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4535as_fn_error "cannot compute suffix of object files: cannot compile
4536See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4537fi
1c710c3c
DJ
4538rm -f conftest.$ac_cv_objext conftest.$ac_ext
4539fi
5213506e
RW
4540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4541$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4542OBJEXT=$ac_cv_objext
4543ac_objext=$OBJEXT
5213506e
RW
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4545$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4546if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4547 $as_echo_n "(cached) " >&6
1c710c3c 4548else
5213506e 4549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4550/* end confdefs.h. */
4551
4552int
4553main ()
4554{
4555#ifndef __GNUC__
4556 choke me
4557#endif
4558
4559 ;
4560 return 0;
4561}
4562_ACEOF
5213506e 4563if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4564 ac_compiler_gnu=yes
4565else
5213506e 4566 ac_compiler_gnu=no
1c710c3c 4567fi
5213506e 4568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4569ac_cv_c_compiler_gnu=$ac_compiler_gnu
4570
4571fi
5213506e
RW
4572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4573$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4574if test $ac_compiler_gnu = yes; then
4575 GCC=yes
4576else
4577 GCC=
4578fi
1c710c3c
DJ
4579ac_test_CFLAGS=${CFLAGS+set}
4580ac_save_CFLAGS=$CFLAGS
5213506e
RW
4581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4582$as_echo_n "checking whether $CC accepts -g... " >&6; }
4583if test "${ac_cv_prog_cc_g+set}" = set; then :
4584 $as_echo_n "(cached) " >&6
4585else
4586 ac_save_c_werror_flag=$ac_c_werror_flag
4587 ac_c_werror_flag=yes
4588 ac_cv_prog_cc_g=no
4589 CFLAGS="-g"
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4591/* end confdefs.h. */
4592
4593int
4594main ()
4595{
4596
4597 ;
4598 return 0;
4599}
4600_ACEOF
5213506e 4601if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4602 ac_cv_prog_cc_g=yes
4603else
5213506e
RW
4604 CFLAGS=""
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606/* end confdefs.h. */
4607
4608int
4609main ()
4610{
4611
4612 ;
4613 return 0;
4614}
4615_ACEOF
4616if ac_fn_c_try_compile "$LINENO"; then :
4617
4618else
4619 ac_c_werror_flag=$ac_save_c_werror_flag
4620 CFLAGS="-g"
4621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4622/* end confdefs.h. */
af71363e 4623
5213506e
RW
4624int
4625main ()
4626{
4627
4628 ;
4629 return 0;
4630}
4631_ACEOF
4632if ac_fn_c_try_compile "$LINENO"; then :
4633 ac_cv_prog_cc_g=yes
4634fi
4635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4636fi
5213506e 4637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4638fi
5213506e
RW
4639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640 ac_c_werror_flag=$ac_save_c_werror_flag
4641fi
4642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4643$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4644if test "$ac_test_CFLAGS" = set; then
1c710c3c 4645 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4646elif test $ac_cv_prog_cc_g = yes; then
4647 if test "$GCC" = yes; then
4648 CFLAGS="-g -O2"
4649 else
4650 CFLAGS="-g"
4651 fi
4652else
4653 if test "$GCC" = yes; then
4654 CFLAGS="-O2"
4655 else
4656 CFLAGS=
4657 fi
4658fi
5213506e
RW
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4660$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4661if test "${ac_cv_prog_cc_c89+set}" = set; then :
4662 $as_echo_n "(cached) " >&6
1c710c3c 4663else
5213506e 4664 ac_cv_prog_cc_c89=no
1c710c3c 4665ac_save_CC=$CC
5213506e 4666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4667/* end confdefs.h. */
4668#include <stdarg.h>
4669#include <stdio.h>
4670#include <sys/types.h>
4671#include <sys/stat.h>
4672/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4673struct buf { int x; };
4674FILE * (*rcsopen) (struct buf *, struct stat *, int);
4675static char *e (p, i)
4676 char **p;
4677 int i;
4678{
4679 return p[i];
4680}
4681static char *f (char * (*g) (char **, int), char **p, ...)
4682{
4683 char *s;
4684 va_list v;
4685 va_start (v,p);
4686 s = g (p, va_arg (v,int));
4687 va_end (v);
4688 return s;
4689}
4690
4691/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4692 function prototypes and stuff, but not '\xHH' hex character constants.
4693 These don't provoke an error unfortunately, instead are silently treated
5213506e 4694 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4695 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4696 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4697 that's true only with -std. */
1c710c3c
DJ
4698int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4699
5213506e
RW
4700/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4701 inside strings and character constants. */
4702#define FOO(x) 'x'
4703int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4704
1c710c3c
DJ
4705int test (int i, double x);
4706struct s1 {int (*f) (int a);};
4707struct s2 {int (*f) (double a);};
4708int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4709int argc;
4710char **argv;
4711int
4712main ()
4713{
4714return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4715 ;
4716 return 0;
4717}
4718_ACEOF
5213506e
RW
4719for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4720 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4721do
4722 CC="$ac_save_CC $ac_arg"
5213506e
RW
4723 if ac_fn_c_try_compile "$LINENO"; then :
4724 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4725fi
5213506e
RW
4726rm -f core conftest.err conftest.$ac_objext
4727 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4728done
5213506e 4729rm -f conftest.$ac_ext
1c710c3c
DJ
4730CC=$ac_save_CC
4731
4732fi
5213506e
RW
4733# AC_CACHE_VAL
4734case "x$ac_cv_prog_cc_c89" in
4735 x)
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4737$as_echo "none needed" >&6; } ;;
4738 xno)
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4740$as_echo "unsupported" >&6; } ;;
1c710c3c 4741 *)
5213506e
RW
4742 CC="$CC $ac_cv_prog_cc_c89"
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4744$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4745esac
5213506e 4746if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4747
2aeb72e9
DD
4748fi
4749
2aeb72e9
DD
4750ac_ext=c
4751ac_cpp='$CPP $CPPFLAGS'
4752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4754ac_compiler_gnu=$ac_cv_c_compiler_gnu
4755
5213506e 4756ac_ext=cpp
2aeb72e9
DD
4757ac_cpp='$CXXCPP $CPPFLAGS'
4758ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4759ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4760ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4761if test -z "$CXX"; then
4762 if test -n "$CCC"; then
4763 CXX=$CCC
4764 else
4765 if test -n "$ac_tool_prefix"; then
4766 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4767 do
4768 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4769set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4771$as_echo_n "checking for $ac_word... " >&6; }
4772if test "${ac_cv_prog_CXX+set}" = set; then :
4773 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4774else
4775 if test -n "$CXX"; then
4776 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4777else
4778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779for as_dir in $PATH
4780do
4781 IFS=$as_save_IFS
4782 test -z "$as_dir" && as_dir=.
5213506e
RW
4783 for ac_exec_ext in '' $ac_executable_extensions; do
4784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2aeb72e9 4785 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4787 break 2
4788 fi
4789done
5213506e
RW
4790 done
4791IFS=$as_save_IFS
55ffb5ed 4792
c3a86da9
DJ
4793fi
4794fi
4795CXX=$ac_cv_prog_CXX
4796if test -n "$CXX"; then
5213506e
RW
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4798$as_echo "$CXX" >&6; }
c3a86da9 4799else
5213506e
RW
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4801$as_echo "no" >&6; }
c3a86da9
DJ
4802fi
4803
5213506e 4804
c3a86da9
DJ
4805 test -n "$CXX" && break
4806 done
4807fi
4808if test -z "$CXX"; then
4809 ac_ct_CXX=$CXX
5213506e 4810 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4811do
4812 # Extract the first word of "$ac_prog", so it can be a program name with args.
4813set dummy $ac_prog; ac_word=$2
5213506e
RW
4814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4815$as_echo_n "checking for $ac_word... " >&6; }
4816if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4817 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4818else
4819 if test -n "$ac_ct_CXX"; then
4820 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4821else
4822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823for as_dir in $PATH
4824do
4825 IFS=$as_save_IFS
4826 test -z "$as_dir" && as_dir=.
5213506e
RW
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c3a86da9 4829 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4831 break 2
4832 fi
4833done
5213506e
RW
4834 done
4835IFS=$as_save_IFS
c3a86da9
DJ
4836
4837fi
4838fi
4839ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4840if test -n "$ac_ct_CXX"; then
5213506e
RW
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4842$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4843else
5213506e
RW
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4845$as_echo "no" >&6; }
c3a86da9
DJ
4846fi
4847
5213506e 4848
c3a86da9
DJ
4849 test -n "$ac_ct_CXX" && break
4850done
c3a86da9 4851
5213506e
RW
4852 if test "x$ac_ct_CXX" = x; then
4853 CXX="g++"
4854 else
4855 case $cross_compiling:$ac_tool_warned in
4856yes:)
4857{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4858$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4859ac_tool_warned=yes ;;
4860esac
4861 CXX=$ac_ct_CXX
4862 fi
c3a86da9
DJ
4863fi
4864
5213506e
RW
4865 fi
4866fi
c3a86da9 4867# Provide some information about the compiler.
5213506e
RW
4868$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4869set X $ac_compile
4870ac_compiler=$2
4871for ac_option in --version -v -V -qversion; do
4872 { { ac_try="$ac_compiler $ac_option >&5"
4873case "(($ac_try" in
4874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875 *) ac_try_echo=$ac_try;;
4876esac
4877eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4878$as_echo "$ac_try_echo"; } >&5
4879 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 4880 ac_status=$?
5213506e
RW
4881 if test -s conftest.err; then
4882 sed '10a\
4883... rest of stderr output deleted ...
4884 10q' conftest.err >conftest.er1
4885 cat conftest.er1 >&5
4886 rm -f conftest.er1 conftest.err
4887 fi
4888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4889 test $ac_status = 0; }
4890done
c3a86da9 4891
5213506e
RW
4892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4893$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4894if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4895 $as_echo_n "(cached) " >&6
c3a86da9 4896else
5213506e 4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4898/* end confdefs.h. */
4899
4900int
4901main ()
4902{
4903#ifndef __GNUC__
4904 choke me
4905#endif
4906
4907 ;
4908 return 0;
4909}
4910_ACEOF
5213506e 4911if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4912 ac_compiler_gnu=yes
4913else
5213506e 4914 ac_compiler_gnu=no
c3a86da9 4915fi
5213506e 4916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4917ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4918
4919fi
5213506e
RW
4920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4921$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4922if test $ac_compiler_gnu = yes; then
4923 GXX=yes
4924else
4925 GXX=
4926fi
c3a86da9
DJ
4927ac_test_CXXFLAGS=${CXXFLAGS+set}
4928ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4930$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4931if test "${ac_cv_prog_cxx_g+set}" = set; then :
4932 $as_echo_n "(cached) " >&6
4933else
4934 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4935 ac_cxx_werror_flag=yes
4936 ac_cv_prog_cxx_g=no
4937 CXXFLAGS="-g"
4938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4939/* end confdefs.h. */
4940
4941int
4942main ()
4943{
4944
4945 ;
4946 return 0;
4947}
4948_ACEOF
5213506e 4949if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4950 ac_cv_prog_cxx_g=yes
4951else
5213506e
RW
4952 CXXFLAGS=""
4953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4954/* end confdefs.h. */
5213506e 4955
c3a86da9
DJ
4956int
4957main ()
4958{
5213506e 4959
c3a86da9
DJ
4960 ;
4961 return 0;
4962}
4963_ACEOF
5213506e 4964if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 4965
5213506e
RW
4966else
4967 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4968 CXXFLAGS="-g"
4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4970/* end confdefs.h. */
5213506e 4971
c3a86da9
DJ
4972int
4973main ()
4974{
5213506e 4975
c3a86da9
DJ
4976 ;
4977 return 0;
4978}
4979_ACEOF
5213506e
RW
4980if ac_fn_cxx_try_compile "$LINENO"; then :
4981 ac_cv_prog_cxx_g=yes
11a67599 4982fi
5213506e
RW
4983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4984fi
4985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4986fi
4987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4988 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4989fi
4990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4991$as_echo "$ac_cv_prog_cxx_g" >&6; }
4992if test "$ac_test_CXXFLAGS" = set; then
4993 CXXFLAGS=$ac_save_CXXFLAGS
4994elif test $ac_cv_prog_cxx_g = yes; then
4995 if test "$GXX" = yes; then
4996 CXXFLAGS="-g -O2"
4997 else
4998 CXXFLAGS="-g"
4999 fi
5000else
5001 if test "$GXX" = yes; then
5002 CXXFLAGS="-O2"
5003 else
5004 CXXFLAGS=
5005 fi
c3a86da9 5006fi
c3a86da9
DJ
5007ac_ext=c
5008ac_cpp='$CPP $CPPFLAGS'
5009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5011ac_compiler_gnu=$ac_cv_c_compiler_gnu
5012
5013
5014# We must set the default linker to the linker used by gcc for the correct
5015# operation of libtool. If LD is not defined and we are using gcc, try to
5016# set the LD default to the ld used by gcc.
5017if test -z "$LD"; then
5018 if test "$GCC" = yes; then
5019 case $build in
5020 *-*-mingw*)
5021 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5022 *)
5023 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5024 esac
5025 case $gcc_prog_ld in
5026 # Accept absolute paths.
5027 [\\/]* | [A-Za-z]:[\\/]*)
5028 LD="$gcc_prog_ld" ;;
5029 esac
5030 fi
23f6b2f9
PB
5031fi
5032
0b21f5d3
EB
5033# Check whether -static-libstdc++ -static-libgcc is supported.
5034have_static_libs=no
5035if test "$GCC" = yes; then
5036 saved_LDFLAGS="$LDFLAGS"
5037
5038 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5040$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5041 ac_ext=cpp
5042ac_cpp='$CXXCPP $CPPFLAGS'
5043ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5044ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5045ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5046
5047
5048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049/* end confdefs.h. */
0d6414b2
EB
5050
5051#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5052#error -static-libstdc++ not implemented
5053#endif
0b21f5d3
EB
5054int main() {}
5055_ACEOF
5056if ac_fn_cxx_try_link "$LINENO"; then :
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5058$as_echo "yes" >&6; }; have_static_libs=yes
5059else
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5061$as_echo "no" >&6; }
5062fi
5063rm -f core conftest.err conftest.$ac_objext \
5064 conftest$ac_exeext conftest.$ac_ext
5065 ac_ext=c
5066ac_cpp='$CPP $CPPFLAGS'
5067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5069ac_compiler_gnu=$ac_cv_c_compiler_gnu
5070
5071
5072 LDFLAGS="$saved_LDFLAGS"
5073fi
5074
23f6b2f9
PB
5075
5076
55ffb5ed 5077
1c710c3c
DJ
5078if test -n "$ac_tool_prefix"; then
5079 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 5080set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
5081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5082$as_echo_n "checking for $ac_word... " >&6; }
5083if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5084 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5085else
5086 if test -n "$GNATBIND"; then
5087 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5088else
1c710c3c
DJ
5089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090for as_dir in $PATH
5091do
5092 IFS=$as_save_IFS
5093 test -z "$as_dir" && as_dir=.
5213506e
RW
5094 for ac_exec_ext in '' $ac_executable_extensions; do
5095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5096 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5098 break 2
5099 fi
5100done
5213506e
RW
5101 done
5102IFS=$as_save_IFS
1c710c3c 5103
55ffb5ed
NN
5104fi
5105fi
1c710c3c 5106GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5107if test -n "$GNATBIND"; then
5213506e
RW
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5109$as_echo "$GNATBIND" >&6; }
55ffb5ed 5110else
5213506e
RW
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5112$as_echo "no" >&6; }
55ffb5ed
NN
5113fi
5114
5213506e 5115
1c710c3c 5116fi
55ffb5ed 5117if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5118 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5119 # Extract the first word of "gnatbind", so it can be a program name with args.
5120set dummy gnatbind; ac_word=$2
5213506e
RW
5121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5122$as_echo_n "checking for $ac_word... " >&6; }
5123if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5124 $as_echo_n "(cached) " >&6
55ffb5ed 5125else
1c710c3c
DJ
5126 if test -n "$ac_ct_GNATBIND"; then
5127 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5128else
1c710c3c
DJ
5129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130for as_dir in $PATH
5131do
5132 IFS=$as_save_IFS
5133 test -z "$as_dir" && as_dir=.
5213506e
RW
5134 for ac_exec_ext in '' $ac_executable_extensions; do
5135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5136 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5138 break 2
5139 fi
5140done
5213506e
RW
5141 done
5142IFS=$as_save_IFS
1c710c3c 5143
55ffb5ed
NN
5144fi
5145fi
1c710c3c
DJ
5146ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5147if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5149$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5150else
5213506e
RW
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5152$as_echo "no" >&6; }
55ffb5ed
NN
5153fi
5154
5213506e
RW
5155 if test "x$ac_ct_GNATBIND" = x; then
5156 GNATBIND="no"
5157 else
5158 case $cross_compiling:$ac_tool_warned in
5159yes:)
5160{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5161$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5162ac_tool_warned=yes ;;
5163esac
5164 GNATBIND=$ac_ct_GNATBIND
5165 fi
55ffb5ed 5166else
1c710c3c 5167 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5168fi
5169
1c710c3c
DJ
5170if test -n "$ac_tool_prefix"; then
5171 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5172set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5174$as_echo_n "checking for $ac_word... " >&6; }
5175if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5176 $as_echo_n "(cached) " >&6
5305be7e
RG
5177else
5178 if test -n "$GNATMAKE"; then
5179 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5180else
1c710c3c
DJ
5181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182for as_dir in $PATH
5183do
5184 IFS=$as_save_IFS
5185 test -z "$as_dir" && as_dir=.
5213506e
RW
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5188 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5190 break 2
5191 fi
5192done
5213506e
RW
5193 done
5194IFS=$as_save_IFS
1c710c3c 5195
5305be7e
RG
5196fi
5197fi
1c710c3c 5198GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5199if test -n "$GNATMAKE"; then
5213506e
RW
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5201$as_echo "$GNATMAKE" >&6; }
5305be7e 5202else
5213506e
RW
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5204$as_echo "no" >&6; }
5305be7e
RG
5205fi
5206
5213506e 5207
1c710c3c 5208fi
5305be7e 5209if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5210 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5211 # Extract the first word of "gnatmake", so it can be a program name with args.
5212set dummy gnatmake; ac_word=$2
5213506e
RW
5213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5214$as_echo_n "checking for $ac_word... " >&6; }
5215if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5216 $as_echo_n "(cached) " >&6
5305be7e 5217else
1c710c3c
DJ
5218 if test -n "$ac_ct_GNATMAKE"; then
5219 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5220else
1c710c3c
DJ
5221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222for as_dir in $PATH
5223do
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5213506e
RW
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5228 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5230 break 2
5231 fi
5232done
5213506e
RW
5233 done
5234IFS=$as_save_IFS
1c710c3c 5235
5305be7e
RG
5236fi
5237fi
1c710c3c
DJ
5238ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5239if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5241$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5242else
5213506e
RW
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5244$as_echo "no" >&6; }
5305be7e
RG
5245fi
5246
5213506e
RW
5247 if test "x$ac_ct_GNATMAKE" = x; then
5248 GNATMAKE="no"
5249 else
5250 case $cross_compiling:$ac_tool_warned in
5251yes:)
5252{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5253$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5254ac_tool_warned=yes ;;
5255esac
5256 GNATMAKE=$ac_ct_GNATMAKE
5257 fi
5305be7e 5258else
1c710c3c 5259 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5260fi
5261
5213506e
RW
5262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5263$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5264if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5265 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5266else
5267 cat >conftest.adb <<EOF
5268procedure conftest is begin null; end conftest;
5269EOF
5270acx_cv_cc_gcc_supports_ada=no
5271# There is a bug in old released versions of GCC which causes the
5272# driver to exit successfully when the appropriate language module
5273# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5274# Therefore we must check for the error message as well as an
5275# unsuccessful exit.
1db673ca
RO
5276# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5277# given a .adb file, but produce no object file. So we must check
5278# if an object file was really produced to guard against this.
55ffb5ed 5279errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5280if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5281 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5282fi
5283rm -f conftest.*
5284fi
5213506e
RW
5285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5286$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5287
7cb62ef1 5288if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5289 have_gnat=yes
5290else
5291 have_gnat=no
5292fi
5293
5213506e
RW
5294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5295$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5296if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5297 $as_echo_n "(cached) " >&6
a76494aa
PB
5298else
5299 echo abfoo >t1
5300 echo cdfoo >t2
b55e6680 5301 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5302 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5303 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5304 :
5305 else
5306 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5307 fi
5308 fi
a76494aa
PB
5309 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5310 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5311 :
a76494aa
PB
5312 else
5313 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5314 fi
5315 fi
5316 rm t1 t2
5317
5318fi
5213506e
RW
5319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5320$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5321do_compare="$gcc_cv_prog_cmp_skip"
5322
5323
55ffb5ed 5324
ff3ac0f4
ILT
5325# Check whether --enable-bootstrap was given.
5326if test "${enable_bootstrap+set}" = set; then :
5327 enableval=$enable_bootstrap;
5328else
5329 enable_bootstrap=default
5330fi
5331
5332
5333# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5334if test -r $srcdir/gcc/configure; then
5335 have_compiler=yes
5336else
5337 have_compiler=no
5338fi
ff3ac0f4
ILT
5339
5340case "$have_compiler:$host:$target:$enable_bootstrap" in
5341 *:*:*:no) ;;
5342
5343 # Default behavior. Enable bootstrap if we have a compiler
5344 # and we are in a native configuration.
5345 yes:$build:$build:default)
5346 enable_bootstrap=yes ;;
5347
5348 *:*:*:default)
5349 enable_bootstrap=no ;;
5350
5351 # We have a compiler and we are in a native configuration, bootstrap is ok
5352 yes:$build:$build:yes)
5353 ;;
5354
5355 # Other configurations, but we have a compiler. Assume the user knows
5356 # what he's doing.
5357 yes:*:*:yes)
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5359$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5360 ;;
5361
5362 # No compiler: if they passed --enable-bootstrap explicitly, fail
5363 no:*:*:yes)
5364 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5365
5366 # Fail if wrong command line
5367 *)
5368 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5369 ;;
5370esac
5371
46070488
JM
5372# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5373# C++98 compiler can still start the bootstrap.
5374if test "$enable_bootstrap:$GXX" = "yes:yes"; then
8ca528d9 5375 CXX="$CXX -std=gnu++98"
46070488
JM
5376fi
5377
592c90ff
KG
5378# Used for setting $lt_cv_objdir
5379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5380$as_echo_n "checking for objdir... " >&6; }
5381if test "${lt_cv_objdir+set}" = set; then :
5382 $as_echo_n "(cached) " >&6
5383else
5384 rm -f .libs 2>/dev/null
5385mkdir .libs 2>/dev/null
5386if test -d .libs; then
5387 lt_cv_objdir=.libs
5388else
5389 # MS-DOS does not allow filenames that begin with a dot.
5390 lt_cv_objdir=_libs
5391fi
5392rmdir .libs 2>/dev/null
5393fi
5394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5395$as_echo "$lt_cv_objdir" >&6; }
5396objdir=$lt_cv_objdir
5397
5398
5399
5400
5401
5402cat >>confdefs.h <<_ACEOF
5403#define LT_OBJDIR "$lt_cv_objdir/"
5404_ACEOF
5405
5406
5407
acd26225 5408# Check for GMP, MPFR and MPC
3a5729ea 5409gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 5410gmpinc=
e69bf64b 5411have_gmp=no
acd26225
KG
5412
5413# Specify a location for mpc
5414# check for this first so it ends up on the link line before mpfr.
5415
5213506e
RW
5416# Check whether --with-mpc was given.
5417if test "${with_mpc+set}" = set; then :
5418 withval=$with_mpc;
5419fi
acd26225 5420
acd26225 5421
9965e3cd 5422# Check whether --with-mpc-include was given.
5213506e
RW
5423if test "${with_mpc_include+set}" = set; then :
5424 withval=$with_mpc_include;
5425fi
acd26225 5426
acd26225 5427
9965e3cd 5428# Check whether --with-mpc-lib was given.
5213506e
RW
5429if test "${with_mpc_lib+set}" = set; then :
5430 withval=$with_mpc_lib;
5431fi
acd26225 5432
acd26225
KG
5433
5434if test "x$with_mpc" != x; then
3a5729ea
KG
5435 gmplibs="-L$with_mpc/lib $gmplibs"
5436 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
5437fi
5438if test "x$with_mpc_include" != x; then
3a5729ea 5439 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
5440fi
5441if test "x$with_mpc_lib" != x; then
3a5729ea 5442 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
5443fi
5444if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 5445 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 5446 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5447 # Do not test the mpc version. Assume that it is sufficient, since
5448 # it is in the source tree, and the library has not been built yet
5449 # but it would be included on the link line in the version check below
5450 # hence making the test fail.
3a5729ea 5451 have_gmp=yes
acd26225 5452fi
e69bf64b 5453
bebf829d
PB
5454# Specify a location for mpfr
5455# check for this first so it ends up on the link line before gmp.
1c710c3c 5456
5213506e
RW
5457# Check whether --with-mpfr-dir was given.
5458if test "${with_mpfr_dir+set}" = set; then :
5459 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5460Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5461fi
5462
bebf829d
PB
5463
5464
5213506e
RW
5465# Check whether --with-mpfr was given.
5466if test "${with_mpfr+set}" = set; then :
5467 withval=$with_mpfr;
5468fi
1c710c3c 5469
bebf829d 5470
9965e3cd 5471# Check whether --with-mpfr-include was given.
5213506e
RW
5472if test "${with_mpfr_include+set}" = set; then :
5473 withval=$with_mpfr_include;
5474fi
1c710c3c 5475
8a877c9c 5476
9965e3cd 5477# Check whether --with-mpfr-lib was given.
5213506e
RW
5478if test "${with_mpfr_lib+set}" = set; then :
5479 withval=$with_mpfr_lib;
5480fi
8a877c9c 5481
bebf829d
PB
5482
5483if test "x$with_mpfr" != x; then
5484 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5485 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5486fi
8a877c9c 5487if test "x$with_mpfr_include" != x; then
3a5729ea 5488 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5489fi
5490if test "x$with_mpfr_lib" != x; then
5491 gmplibs="-L$with_mpfr_lib $gmplibs"
5492fi
e69bf64b 5493if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8f3675f8
MR
5494 # MPFR v3.1.0 moved the sources into a src sub-directory.
5495 if ! test -d ${srcdir}/mpfr/src; then
5496 as_fn_error "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5497 fi
00f35794
BE
5498 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5499 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5500 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
e69bf64b
PB
5501 # Do not test the mpfr version. Assume that it is sufficient, since
5502 # it is in the source tree, and the library has not been built yet
5503 # but it would be included on the link line in the version check below
5504 # hence making the test fail.
5505 have_gmp=yes
5506fi
bebf829d 5507
6de9cd9a 5508# Specify a location for gmp
1c710c3c 5509
5213506e
RW
5510# Check whether --with-gmp-dir was given.
5511if test "${with_gmp_dir+set}" = set; then :
5512 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5513Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5514fi
5515
6de9cd9a 5516
6de9cd9a 5517
5213506e
RW
5518# Check whether --with-gmp was given.
5519if test "${with_gmp+set}" = set; then :
5520 withval=$with_gmp;
5521fi
1c710c3c 5522
6de9cd9a 5523
9965e3cd 5524# Check whether --with-gmp-include was given.
5213506e
RW
5525if test "${with_gmp_include+set}" = set; then :
5526 withval=$with_gmp_include;
5527fi
1c710c3c 5528
8a877c9c 5529
9965e3cd 5530# Check whether --with-gmp-lib was given.
5213506e
RW
5531if test "${with_gmp_lib+set}" = set; then :
5532 withval=$with_gmp_lib;
5533fi
8a877c9c
KG
5534
5535
6de9cd9a 5536
bebf829d
PB
5537if test "x$with_gmp" != x; then
5538 gmplibs="-L$with_gmp/lib $gmplibs"
5539 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5540fi
8a877c9c
KG
5541if test "x$with_gmp_include" != x; then
5542 gmpinc="-I$with_gmp_include $gmpinc"
5543fi
5544if test "x$with_gmp_lib" != x; then
5545 gmplibs="-L$with_gmp_lib $gmplibs"
5546fi
e69bf64b 5547if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5548 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5549 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 5550 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 5551 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 5552 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
5553 # Do not test the gmp version. Assume that it is sufficient, since
5554 # it is in the source tree, and the library has not been built yet
5555 # but it would be included on the link line in the version check below
5556 # hence making the test fail.
5557 have_gmp=yes
5558fi
6de9cd9a 5559
d943d7c4 5560if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5561 have_gmp=yes
5562 saved_CFLAGS="$CFLAGS"
5563 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5564 # Check for the recommended and required versions of GMP.
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5566$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5567
5568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5569/* end confdefs.h. */
5570#include "gmp.h"
5571int
5572main ()
5573{
5574
5575 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5576 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 5577 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
5578 choke me
5579 #endif
5580
5581 ;
5582 return 0;
5583}
5584_ACEOF
5585if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5587/* end confdefs.h. */
362c6d2f 5588#include <gmp.h>
1c710c3c
DJ
5589int
5590main ()
5591{
6de9cd9a 5592
362c6d2f
KG
5593 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5594 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5595 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5596 choke me
5597 #endif
1c710c3c
DJ
5598
5599 ;
5600 return 0;
5601}
5602_ACEOF
5213506e
RW
5603if ac_fn_c_try_compile "$LINENO"; then :
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5605$as_echo "yes" >&6; }
362c6d2f
KG
5606else
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5608$as_echo "buggy but acceptable" >&6; }
5609fi
5610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5611else
5213506e
RW
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5613$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5614fi
5213506e 5615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5616
acd26225 5617 # If we have GMP, check the MPFR version.
e69bf64b 5618 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5619 # Check for the recommended and required versions of MPFR.
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5621$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5623/* end confdefs.h. */
70ec446f 5624#include <gmp.h>
e69bf64b 5625 #include <mpfr.h>
1c710c3c
DJ
5626int
5627main ()
5628{
e48d66a9 5629
f7d6bc01 5630 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
e69bf64b
PB
5631 choke me
5632 #endif
1c710c3c
DJ
5633
5634 ;
5635 return 0;
5636}
5637_ACEOF
5213506e
RW
5638if ac_fn_c_try_compile "$LINENO"; then :
5639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5640/* end confdefs.h. */
a3993f33 5641#include <gmp.h>
e69bf64b 5642 #include <mpfr.h>
1c710c3c
DJ
5643int
5644main ()
5645{
a3993f33 5646
362c6d2f 5647 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
e69bf64b
PB
5648 choke me
5649 #endif
acd26225
KG
5650
5651 ;
5652 return 0;
5653}
5654_ACEOF
5213506e
RW
5655if ac_fn_c_try_compile "$LINENO"; then :
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5657$as_echo "yes" >&6; }
acd26225 5658else
5213506e
RW
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5660$as_echo "buggy but acceptable" >&6; }
acd26225 5661fi
5213506e 5662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5663else
5213506e
RW
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5665$as_echo "no" >&6; }; have_gmp=no
acd26225 5666fi
5213506e 5667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5668 fi
5669
5670 # Check for the MPC header version.
3a5729ea 5671 if test x"$have_gmp" = xyes ; then
362c6d2f 5672 # Check for the recommended and required versions of MPC.
5213506e
RW
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5674$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5676/* end confdefs.h. */
5677#include <mpc.h>
5678int
5679main ()
5680{
5681
362c6d2f
KG
5682 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5683 choke me
5684 #endif
5685
5686 ;
5687 return 0;
5688}
5689_ACEOF
5690if ac_fn_c_try_compile "$LINENO"; then :
5691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692/* end confdefs.h. */
5693#include <mpc.h>
5694int
5695main ()
5696{
5697
5698 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5699 choke me
5700 #endif
5701
5702 ;
5703 return 0;
5704}
5705_ACEOF
5213506e
RW
5706if ac_fn_c_try_compile "$LINENO"; then :
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5708$as_echo "yes" >&6; }
362c6d2f
KG
5709else
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5711$as_echo "buggy but acceptable" >&6; }
5712fi
5713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5714else
5213506e 5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5716$as_echo "no" >&6; }; have_gmp=no
acd26225 5717fi
5213506e 5718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5719 fi
5720
5721 # Now check the MPFR library.
5722 if test x"$have_gmp" = xyes; then
5723 saved_LIBS="$LIBS"
5724 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5726$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5728/* end confdefs.h. */
3a5729ea 5729#include <mpc.h>
acd26225
KG
5730int
5731main ()
5732{
5733
5734 mpfr_t n;
5735 mpfr_t x;
3a5729ea 5736 mpc_t c;
acd26225
KG
5737 int t;
5738 mpfr_init (n);
5739 mpfr_init (x);
5740 mpfr_atan2 (n, n, x, GMP_RNDN);
5741 mpfr_erfc (n, x, GMP_RNDN);
5742 mpfr_subnormalize (x, t, GMP_RNDN);
3a5729ea
KG
5743 mpfr_clear(n);
5744 mpfr_clear(x);
5745 mpc_init2 (c, 53);
5746 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5747 mpc_cosh (c, c, MPC_RNDNN);
5748 mpc_pow (c, c, c, MPC_RNDNN);
5749 mpc_acosh (c, c, MPC_RNDNN);
5750 mpc_clear (c);
1c710c3c
DJ
5751
5752 ;
5753 return 0;
5754}
5755_ACEOF
5213506e
RW
5756if ac_fn_c_try_link "$LINENO"; then :
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5758$as_echo "yes" >&6; }
1c710c3c 5759else
5213506e
RW
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5761$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5762fi
5213506e
RW
5763rm -f core conftest.err conftest.$ac_objext \
5764 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5765 LIBS="$saved_LIBS"
5766 fi
5767
e69bf64b 5768 CFLAGS="$saved_CFLAGS"
6de9cd9a 5769
362c6d2f
KG
5770# The library versions listed in the error message below should match
5771# the HARD-minimums enforced above.
e69bf64b 5772 if test x$have_gmp != xyes; then
f7d6bc01 5773 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
3a5729ea
KG
5774Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5775their locations. Source code for these libraries can be found at
5776their respective hosting sites as well as at
5777ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5778http://gcc.gnu.org/install/prerequisites.html for additional info. If
5779you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5780make sure that you have installed both the libraries and the header
5781files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5782 fi
70ec446f
KG
5783fi
5784
acd26225
KG
5785# Flags needed for both GMP, MPFR and/or MPC.
5786
5787
6de9cd9a
DN
5788
5789
5790
9e3eba15 5791
0ff2d841 5792
0b21f5d3 5793# Libraries to use for stage1 or when not bootstrapping.
00020c16 5794
0b21f5d3
EB
5795# Check whether --with-stage1-libs was given.
5796if test "${with_stage1_libs+set}" = set; then :
5797 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5798 stage1_libs=
00020c16 5799 else
0b21f5d3 5800 stage1_libs=$withval
00020c16
ILT
5801 fi
5802else
5dc85f7e 5803 stage1_libs=
5213506e
RW
5804fi
5805
00020c16
ILT
5806
5807
0b21f5d3 5808# Linker flags to use for stage1 or when not bootstrapping.
00020c16 5809
0b21f5d3
EB
5810# Check whether --with-stage1-ldflags was given.
5811if test "${with_stage1_ldflags+set}" = set; then :
5812 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5813 stage1_ldflags=
00020c16 5814 else
0b21f5d3 5815 stage1_ldflags=$withval
00020c16
ILT
5816 fi
5817else
0b21f5d3
EB
5818 stage1_ldflags=
5819 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5820 # if supported. But if the user explicitly specified the libraries to use,
5821 # trust that they are doing what they want.
5822 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5823 stage1_ldflags="-static-libstdc++ -static-libgcc"
5824 fi
5213506e
RW
5825fi
5826
00020c16
ILT
5827
5828
5dc85f7e 5829# Libraries to use for stage2 and later builds.
00020c16 5830
5213506e
RW
5831# Check whether --with-boot-libs was given.
5832if test "${with_boot_libs+set}" = set; then :
5833 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
5834 poststage1_libs=
5835 else
5836 poststage1_libs=$withval
5837 fi
5838else
5dc85f7e 5839 poststage1_libs=
5213506e
RW
5840fi
5841
00020c16
ILT
5842
5843
ed2eaa9f
ILT
5844# Linker flags to use for stage2 and later builds.
5845
5846# Check whether --with-boot-ldflags was given.
5847if test "${with_boot_ldflags+set}" = set; then :
5848 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5849 poststage1_ldflags=
5850 else
5851 poststage1_ldflags=$withval
5852 fi
5853else
5854 poststage1_ldflags=
bec93d73
ILT
5855 # In stages 2 and 3, default to linking libstdc++ and libgcc
5856 # statically. But if the user explicitly specified the libraries to
5857 # use, trust that they are doing what they want.
5858 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
5859 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5860 fi
5861fi
5862
5863
5864
e357a5e0 5865# GCC GRAPHITE dependency isl.
4a9bb2aa 5866# Basic setup is inlined here, actual checks are in config/isl.m4
f8bf9252
SP
5867
5868
33ad93b9
RG
5869# Check whether --with-isl was given.
5870if test "${with_isl+set}" = set; then :
5871 withval=$with_isl;
5213506e 5872fi
f8bf9252 5873
f8bf9252 5874
eae1a5d4 5875# Treat --without-isl as a request to disable
625afa23 5876# GRAPHITE support and skip all following checks.
eae1a5d4 5877if test "x$with_isl" != "xno"; then
e357a5e0 5878 # Check for isl
625afa23
RG
5879
5880
33ad93b9
RG
5881# Check whether --with-isl-include was given.
5882if test "${with_isl_include+set}" = set; then :
5883 withval=$with_isl_include;
5213506e
RW
5884fi
5885
f8bf9252 5886
33ad93b9
RG
5887# Check whether --with-isl-lib was given.
5888if test "${with_isl_lib+set}" = set; then :
5889 withval=$with_isl_lib;
5213506e 5890fi
f8bf9252 5891
f8bf9252 5892
33ad93b9
RG
5893 # Check whether --enable-isl-version-check was given.
5894if test "${enable_isl_version_check+set}" = set; then :
5895 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5896else
5897 ENABLE_ISL_CHECK=yes
7d32a440
SP
5898fi
5899
5900
33ad93b9
RG
5901 # Initialize isllibs and islinc.
5902 case $with_isl in
5903 no)
5904 isllibs=
5905 islinc=
5906 ;;
5907 "" | yes)
5908 ;;
5909 *)
5910 isllibs="-L$with_isl/lib"
5911 islinc="-I$with_isl/include"
5912 ;;
5913 esac
5914 if test "x${with_isl_include}" != x ; then
5915 islinc="-I$with_isl_include"
5916 fi
5917 if test "x${with_isl_lib}" != x; then
5918 isllibs="-L$with_isl_lib"
5919 fi
5920 if test "x${islinc}" = x && test "x${isllibs}" = x \
5921 && test -d ${srcdir}/isl; then
5922 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5923 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5924 ENABLE_ISL_CHECK=no
560d18d3
AK
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5926$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
33ad93b9 5927 fi
7d32a440 5928
eae1a5d4
RG
5929 isllibs="${isllibs} -lisl"
5930
7d32a440 5931
7d32a440 5932
9847828b
RB
5933 if test "${ENABLE_ISL_CHECK}" = yes ; then
5934 _isl_saved_CFLAGS=$CFLAGS
5935 _isl_saved_LDFLAGS=$LDFLAGS
5936 _isl_saved_LIBS=$LIBS
5937
5938 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
70decafb
NS
5939 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
5940 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
9847828b 5941
c661a43d
SP
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5
5943$as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; }
e0c0c325 5944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
622dbadf 5945/* end confdefs.h. */
560d18d3 5946#include <isl/ctx.h>
622dbadf
BC
5947int
5948main ()
5949{
560d18d3 5950isl_ctx_get_max_operations (isl_ctx_alloc ());
622dbadf
BC
5951 ;
5952 return 0;
5953}
5954_ACEOF
5955if ac_fn_c_try_link "$LINENO"; then :
9847828b 5956 gcc_cv_isl=yes
622dbadf
BC
5957else
5958 gcc_cv_isl=no
5959fi
5960rm -f core conftest.err conftest.$ac_objext \
5961 conftest$ac_exeext conftest.$ac_ext
9847828b
RB
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5963$as_echo "$gcc_cv_isl" >&6; }
5964
560d18d3 5965 if test "${gcc_cv_isl}" = no ; then
c661a43d
SP
5966 { $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
5967$as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; }
560d18d3
AK
5968 fi
5969
c661a43d
SP
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5
5971$as_echo_n "checking for isl 0.16 or 0.15... " >&6; }
1e050c90
AK
5972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5973/* end confdefs.h. */
5974#include <isl/schedule.h>
5975int
5976main ()
5977{
5978isl_options_set_schedule_serialize_sccs (NULL, 0);
5979 ;
5980 return 0;
5981}
5982_ACEOF
5983if ac_fn_c_try_link "$LINENO"; then :
5984 ac_has_isl_options_set_schedule_serialize_sccs=yes
5985else
5986 ac_has_isl_options_set_schedule_serialize_sccs=no
5987fi
5988rm -f core conftest.err conftest.$ac_objext \
5989 conftest$ac_exeext conftest.$ac_ext
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
5991$as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
5992
5993 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
5994 islver="0.15"
5995
5996 fi
5997
9847828b
RB
5998 CFLAGS=$_isl_saved_CFLAGS
5999 LDFLAGS=$_isl_saved_LDFLAGS
6000 LIBS=$_isl_saved_LIBS
6001 fi
6002
6003
f8bf9252 6004
f8bf9252 6005
33ad93b9
RG
6006
6007
33ad93b9
RG
6008 if test "x${with_isl}" = xno; then
6009 graphite_requested=no
6010 elif test "x${with_isl}" != x \
6011 || test "x${with_isl_include}" != x \
6012 || test "x${with_isl_lib}" != x ; then
6013 graphite_requested=yes
6014 else
6015 graphite_requested=no
7d32a440 6016 fi
d789184e 6017
d789184e
SP
6018
6019
33ad93b9
RG
6020 if test "${gcc_cv_isl}" = no ; then
6021 isllibs=
6022 islinc=
6023 fi
6024
6025 if test "${graphite_requested}" = yes \
6026 && test "x${isllibs}" = x \
6027 && test "x${islinc}" = x ; then
f8bf9252 6028
e357a5e0 6029 as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5
33ad93b9 6030 fi
f8bf9252 6031
d32ef397 6032
d32ef397
AS
6033fi
6034
e357a5e0 6035# If the isl check failed, disable builds of in-tree variant of isl
625afa23 6036if test "x$with_isl" = xno ||
625afa23 6037 test "x$gcc_cv_isl" = xno; then
4a9bb2aa 6038 noconfigdirs="$noconfigdirs isl"
625afa23 6039 islinc=
32d024bf
RG
6040fi
6041
625afa23
RG
6042
6043
6044
d7f09764
DN
6045# Check for LTO support.
6046# Check whether --enable-lto was given.
6047if test "${enable_lto+set}" = set; then :
6048 enableval=$enable_lto; enable_lto=$enableval
6049else
6050 enable_lto=yes; default_enable_lto=yes
6051fi
6052
6053
7413962d 6054
9a02962b
DK
6055
6056
6057target_elf=no
6058case $target in
6059 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 6060 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8f56cb51 6061 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8ae12d71 6062 nvptx-*-none)
9a02962b
DK
6063 target_elf=no
6064 ;;
6065 *)
6066 target_elf=yes
6067 ;;
6068esac
6069
6070if test $target_elf = yes; then :
48215350
DK
6071 # ELF platforms build the lto-plugin always.
6072 build_lto_plugin=yes
9a02962b 6073
9a02962b
DK
6074else
6075 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 6076 case $target in
9e530bcd 6077 *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
48215350 6078 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
6079 *) enable_lto=no ;;
6080 esac
9a02962b 6081 else
db50fe7d
IS
6082 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6083 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
6084 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6085 # warn during gcc/ subconfigure; unless you're bootstrapping with
6086 # -flto it won't be needed until after installation anyway.
6087 case $target in
9e530bcd 6088 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9a02962b
DK
6089 *) if test x"$enable_lto" = x"yes"; then
6090 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6091 fi
6092 ;;
6093 esac
6094 fi
1cd0b716 6095 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 6096 # Build it unless LTO was explicitly disabled.
1cd0b716 6097 case $target in
48215350 6098 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
6099 *) ;;
6100 esac
48215350 6101
9a02962b
DK
6102fi
6103
d7f09764 6104
45b3824d
TS
6105# Check whether --enable-linker-plugin-configure-flags was given.
6106if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6107 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6108else
6109 extra_linker_plugin_configure_flags=
6110fi
6111
6112
6113# Check whether --enable-linker-plugin-flags was given.
6114if test "${enable_linker_plugin_flags+set}" = set; then :
6115 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6116else
6117 extra_linker_plugin_flags=
6118fi
6119
6120
6121
f8bf9252 6122
0823efed 6123# By default, C and C++ are the only stage 1 languages.
e1888513 6124stage1_languages=,c,
2805b53a 6125
00020c16 6126# Target libraries that we bootstrap.
ad1e5170 6127bootstrap_target_libs=,target-libgcc,
00020c16 6128
55ffb5ed
NN
6129# Figure out what language subdirectories are present.
6130# Look if the user specified --enable-languages="..."; if not, use
6131# the environment variable $LANGUAGES if defined. $LANGUAGES might
6132# go away some day.
6133# NB: embedded tabs in this IF block -- do not untabify
6134if test -d ${srcdir}/gcc; then
6135 if test x"${enable_languages+set}" != xset; then
6136 if test x"${LANGUAGES+set}" = xset; then
6137 enable_languages="${LANGUAGES}"
6b1786aa 6138 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
55ffb5ed
NN
6139 else
6140 enable_languages=all
6141 fi
6142 else
6143 if test x"${enable_languages}" = x ||
6144 test x"${enable_languages}" = xyes;
6145 then
6b1786aa 6146 echo configure.ac: --enable-languages needs at least one language argument 1>&2
55ffb5ed
NN
6147 exit 1
6148 fi
6149 fi
6150 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6151
7f26dfa3
FXC
6152 # 'f95' is the old name for the 'fortran' language. We issue a warning
6153 # and make the substitution.
6154 case ,${enable_languages}, in
6155 *,f95,*)
6b1786aa 6156 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
7f26dfa3
FXC
6157 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6158 ;;
6159 esac
6160
0823efed
DN
6161 # If bootstrapping, C++ must be enabled.
6162 case ",$enable_languages,:$enable_bootstrap" in
6163 *,c++,*:*) ;;
6164 *:yes)
ff3ac0f4
ILT
6165 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6166 enable_languages="${enable_languages},c++"
6167 else
0823efed 6168 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
6169 fi
6170 ;;
6171 esac
6172
55ffb5ed
NN
6173 # First scan to see if an enabled language requires some other language.
6174 # We assume that a given config-lang.in will list all the language
6175 # front ends it requires, even if some are required indirectly.
6176 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6177 case ${lang_frag} in
6178 ..) ;;
6179 # The odd quoting in the next line works around
6180 # an apparent bug in bash 1.12 on linux.
6181 ${srcdir}/gcc/[*]/config-lang.in) ;;
6182 *)
69ecd18f
ILT
6183 # From the config-lang.in, get $language, $lang_requires, and
6184 # $lang_requires_boot_languages.
55ffb5ed
NN
6185 language=
6186 lang_requires=
69ecd18f 6187 lang_requires_boot_languages=
55ffb5ed 6188 . ${lang_frag}
69ecd18f 6189 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
6190 case ,${enable_languages}, in
6191 *,$other,*) ;;
6192 *,all,*) ;;
6193 *,$language,*)
6194 echo " \`$other' language required by \`$language'; enabling" 1>&2
6195 enable_languages="${enable_languages},${other}"
6196 ;;
6197 esac
6198 done
69ecd18f
ILT
6199 for other in ${lang_requires_boot_languages} ; do
6200 if test "$other" != "c"; then
6201 case ,${enable_stage1_languages}, in
6202 *,$other,*) ;;
6203 *,all,*) ;;
6204 *)
6205 case ,${enable_languages}, in
6206 *,$language,*)
6207 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6208 enable_stage1_languages="$enable_stage1_languages,${other}"
6209 ;;
6210 esac
6211 ;;
6212 esac
6213 fi
6214 done
55ffb5ed
NN
6215 ;;
6216 esac
6217 done
6218
e1888513 6219 new_enable_languages=,c,
d7f09764
DN
6220
6221 # If LTO is enabled, add the LTO front end.
d7f09764 6222 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6223 case ,${enable_languages}, in
6224 *,lto,*) ;;
6225 *) enable_languages="${enable_languages},lto" ;;
6226 esac
1cd0b716 6227 if test "${build_lto_plugin}" = "yes" ; then
d7f09764 6228 configdirs="$configdirs lto-plugin"
d7f09764
DN
6229 fi
6230 fi
6231
426c1eb0
TS
6232 # If we're building an offloading compiler, add the LTO front end.
6233 if test x"$enable_as_accelerator_for" != x ; then
6234 case ,${enable_languages}, in
6235 *,lto,*) ;;
6236 *) enable_languages="${enable_languages},lto" ;;
6237 esac
6238 fi
6239
55ffb5ed 6240 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6241 potential_languages=,c,
55ffb5ed 6242
4da3b0f8
ILT
6243 enabled_target_libs=
6244 disabled_target_libs=
6245
55ffb5ed
NN
6246 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6247 case ${lang_frag} in
6248 ..) ;;
6249 # The odd quoting in the next line works around
6250 # an apparent bug in bash 1.12 on linux.
6251 ${srcdir}/gcc/[*]/config-lang.in) ;;
6252 *)
1c710c3c 6253 # From the config-lang.in, get $language, $target_libs,
2805b53a 6254 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6255 language=
6256 target_libs=
6257 lang_dirs=
1546bb64 6258 subdir_requires=
e1888513
PB
6259 boot_language=no
6260 build_by_default=yes
55ffb5ed 6261 . ${lang_frag}
e1888513
PB
6262 if test x${language} = x; then
6263 echo "${lang_frag} doesn't set \$language." 1>&2
6264 exit 1
6265 fi
6266
78767fd9 6267 if test "$language" = "c++"; then
0823efed 6268 boot_language=yes
00020c16
ILT
6269 fi
6270
178f875a 6271 add_this_lang=no
e1888513
PB
6272 case ,${enable_languages}, in
6273 *,${language},*)
d4a10d0a
SB
6274 # Language was explicitly selected; include it
6275 # unless it is C, which is enabled by default.
6276 if test "$language" != "c"; then
6277 add_this_lang=yes
6278 fi
55ffb5ed 6279 ;;
e1888513
PB
6280 *,all,*)
6281 # 'all' was selected, select it if it is a default language
178f875a
JM
6282 if test "$language" != "c"; then
6283 add_this_lang=${build_by_default}
6284 fi
55ffb5ed
NN
6285 ;;
6286 esac
6de9cd9a 6287
1546bb64 6288 # Disable languages that need other directories if these aren't available.
95695ad3 6289 for i in $subdir_requires; do
b6348cb3 6290 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
6291 case ,${enable_languages}, in
6292 *,${language},*)
6293 # Specifically requested language; tell them.
5213506e 6294 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64
PB
6295 ;;
6296 *)
6297 # Silently disable.
e1888513 6298 add_this_lang=unsupported
1546bb64
PB
6299 ;;
6300 esac
6301 done
6302
e1888513
PB
6303 # Disable Ada if no preexisting GNAT is available.
6304 case ,${enable_languages},:${language}:${have_gnat} in
6305 *,${language},*:ada:no)
6306 # Specifically requested language; tell them.
5213506e 6307 as_fn_error "GNAT is required to build $language" "$LINENO" 5
e1888513
PB
6308 ;;
6309 *:ada:no)
6310 # Silently disable.
6311 add_this_lang=unsupported
6312 ;;
6313 esac
6314
4fab7234
HPN
6315 # Disable a language that is unsupported by the target.
6316 case " $unsupported_languages " in
6317 *" $language "*)
e1888513 6318 add_this_lang=unsupported
4fab7234
HPN
6319 ;;
6320 esac
6321
6de9cd9a 6322 case $add_this_lang in
e1888513 6323 unsupported)
55ffb5ed 6324 # Remove language-dependent dirs.
4da3b0f8
ILT
6325 disabled_target_libs="$disabled_target_libs $target_libs"
6326 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 6327 ;;
e1888513
PB
6328 no)
6329 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
6330 disabled_target_libs="$disabled_target_libs $target_libs"
6331 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
6332 potential_languages="${potential_languages}${language},"
6333 ;;
6334 yes)
6335 new_enable_languages="${new_enable_languages}${language},"
6336 potential_languages="${potential_languages}${language},"
2805b53a 6337 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 6338 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
6339 case "${boot_language}:,$enable_stage1_languages," in
6340 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6341 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6342 case ",$stage1_languages," in
6343 *,$language,* | ,yes, | ,all,) ;;
6344 *) stage1_languages="${stage1_languages}${language}," ;;
6345 esac
00020c16
ILT
6346 # We need to bootstrap any supporting libraries.
6347 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6348 ;;
6349 esac
6350 ;;
55ffb5ed
NN
6351 esac
6352 ;;
6353 esac
6354 done
6355
4da3b0f8
ILT
6356 # Add target libraries which are only needed for disabled languages
6357 # to noconfigdirs.
6358 if test -n "$disabled_target_libs"; then
6359 for dir in $disabled_target_libs; do
6360 case " $enabled_target_libs " in
6361 *" ${dir} "*) ;;
6362 *) noconfigdirs="$noconfigdirs $dir" ;;
6363 esac
6364 done
6365 fi
6366
5213506e
RW
6367 # Check whether --enable-stage1-languages was given.
6368if test "${enable_stage1_languages+set}" = set; then :
6369 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6370 ,no,|,,)
6371 # Set it to something that will have no effect in the loop below
6372 enable_stage1_languages=c ;;
6373 ,yes,)
6374 enable_stage1_languages=`echo $new_enable_languages | \
6375 sed -e "s/^,//" -e "s/,$//" ` ;;
6376 *,all,*)
6377 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6378 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6379 esac
6380
6381 # Add "good" languages from enable_stage1_languages to stage1_languages,
6382 # while "bad" languages go in missing_languages. Leave no duplicates.
6383 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6384 case $potential_languages in
6385 *,$i,*)
6386 case $stage1_languages in
6387 *,$i,*) ;;
6388 *) stage1_languages="$stage1_languages$i," ;;
6389 esac ;;
6390 *)
6391 case $missing_languages in
6392 *,$i,*) ;;
6393 *) missing_languages="$missing_languages$i," ;;
6394 esac ;;
6395 esac
6396 done
5213506e
RW
6397fi
6398
e1888513
PB
6399
6400 # Remove leading/trailing commas that were added for simplicity
6401 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6402 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6403 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6404 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6405
55ffb5ed 6406 if test "x$missing_languages" != x; then
5213506e 6407 as_fn_error "
0cf085e4 6408The following requested languages could not be built: ${missing_languages}
5213506e 6409Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6410 fi
55ffb5ed
NN
6411 if test "x$new_enable_languages" != "x$enable_languages"; then
6412 echo The following languages will be built: ${new_enable_languages}
e1888513 6413 enable_languages="$new_enable_languages"
55ffb5ed 6414 fi
e1888513 6415
1c710c3c 6416
b2eaac4a 6417 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6418fi
6419
27079765
AH
6420# Handle --disable-<component> generically.
6421for dir in $configdirs $build_configdirs $target_configdirs ; do
6422 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6423 varname=`echo $dirname | sed -e s/+/_/g`
6424 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6425 noconfigdirs="$noconfigdirs $dir"
6426 fi
6427done
6428
43c40f3e
RO
6429# Check for Boehm's garbage collector
6430# Check whether --enable-objc-gc was given.
6431if test "${enable_objc_gc+set}" = set; then :
114bf3f1
MK
6432 enableval=$enable_objc_gc;
6433fi
6434
6435
6436# Check whether --with-target-bdw-gc was given.
6437if test "${with_target_bdw_gc+set}" = set; then :
6438 withval=$with_target_bdw_gc;
6439fi
6440
6441
6442# Check whether --with-target-bdw-gc-include was given.
6443if test "${with_target_bdw_gc_include+set}" = set; then :
6444 withval=$with_target_bdw_gc_include;
6445fi
6446
6447
6448# Check whether --with-target-bdw-gc-lib was given.
6449if test "${with_target_bdw_gc_lib+set}" = set; then :
6450 withval=$with_target_bdw_gc_lib;
6451fi
6452
6453
6454case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6456$as_echo_n "checking for bdw garbage collector... " >&6; }
6457 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
825fba52
MK
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6459$as_echo "using bdw-gc in default locations" >&6; }
114bf3f1
MK
6460 else
6461 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
6462 as_fn_error "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6463 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
6464 as_fn_error "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6465 else
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6467$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6468 fi
6469 fi
43c40f3e
RO
6470esac
6471
5f520819 6472# Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
99776ebd 6473case ,${enable_languages}, in
1007a55c
JW
6474 *,c++,*)
6475 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6476 case "${noconfigdirs}" in
6477 *target-libstdc++-v3*)
6478 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6479 ;;
6480 *) ;;
6481 esac
6482 ;;
99776ebd 6483 *)
5f520819 6484 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
99776ebd
RH
6485 ;;
6486esac
6487
ee6a22df
L
6488# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6489# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6490# If we have the source for $noconfigdirs entries, add them to $notsupp.
6491
6492notsupp=""
6493for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6494 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6495 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6496 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6497 if test -r $srcdir/$dirname/configure ; then
6498 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6499 true
6500 else
6501 notsupp="$notsupp $dir"
6502 fi
6503 fi
6504 fi
ee6a22df
L
6505 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6506 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6507 if test -r $srcdir/$dirname/configure ; then
6508 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6509 true
6510 else
6511 notsupp="$notsupp $dir"
6512 fi
6513 fi
6514 fi
55ffb5ed
NN
6515 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6516 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6517 if test -r $srcdir/$dirname/configure ; then
6518 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6519 true
6520 else
6521 notsupp="$notsupp $dir"
6522 fi
6523 fi
6524 fi
6525done
6526
55ffb5ed
NN
6527# Quietly strip out all directories which aren't configurable in this tree.
6528# This relies on all configurable subdirectories being autoconfiscated, which
6529# is now the case.
23f6b2f9
PB
6530build_configdirs_all="$build_configdirs"
6531build_configdirs=
6532for i in ${build_configdirs_all} ; do
1c710c3c 6533 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
6534 if test -f ${srcdir}/$j/configure ; then
6535 build_configdirs="${build_configdirs} $i"
6536 fi
6537done
6538
55ffb5ed
NN
6539configdirs_all="$configdirs"
6540configdirs=
6541for i in ${configdirs_all} ; do
6542 if test -f ${srcdir}/$i/configure ; then
6543 configdirs="${configdirs} $i"
6544 fi
6545done
23f6b2f9 6546
55ffb5ed
NN
6547target_configdirs_all="$target_configdirs"
6548target_configdirs=
6549for i in ${target_configdirs_all} ; do
1c710c3c 6550 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
6551 if test -f ${srcdir}/$j/configure ; then
6552 target_configdirs="${target_configdirs} $i"
6553 fi
6554done
6555
45b3824d
TS
6556# libiberty-linker-plugin is special: it doesn't have its own source directory,
6557# so we have to add it after the preceding checks.
6558if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6559then
6560 case " $configdirs " in
6561 *" libiberty "*)
6562 # If we can build libiberty, we can also build libiberty-linker-plugin.
6563 configdirs="$configdirs libiberty-linker-plugin"
6564 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6565 --with-libiberty=../libiberty-linker-plugin";;
6566 *)
6567 as_fn_error "libiberty missing" "$LINENO" 5;;
6568 esac
6569fi
6570
fca38047
TS
6571# Sometimes we have special requirements for the host libiberty.
6572extra_host_libiberty_configure_flags=
1c01ebf6 6573extra_host_zlib_configure_flags=
fca38047
TS
6574case " $configdirs " in
6575 *" lto-plugin "* | *" libcc1 "*)
6576 # When these are to be built as shared libraries, the same applies to
6577 # libiberty.
6578 extra_host_libiberty_configure_flags=--enable-shared
6579 ;;
1c01ebf6
L
6580 *" bfd "*)
6581 # When bfd is to be built as a shared library, the same applies to
6582 # zlib.
6583 if test "$enable_shared" = "yes"; then
6584 extra_host_zlib_configure_flags=--enable-host-shared
6585 fi
6586 ;;
fca38047
TS
6587esac
6588
6589
1c01ebf6 6590
55ffb5ed
NN
6591# Produce a warning message for the subdirs we can't configure.
6592# This isn't especially interesting in the Cygnus tree, but in the individual
6593# FSF releases, it's important to let people know when their machine isn't
6594# supported by the one or two programs in a package.
6595
6596if test -n "${notsupp}" && test -z "${norecursion}" ; then
6597 # If $appdirs is non-empty, at least one of those directories must still
6598 # be configured, or we error out. (E.g., if the gas release supports a
6599 # specified target in some subdirs but not the gas subdir, we shouldn't
6600 # pretend that all is well.)
6601 if test -n "$appdirs" ; then
6602 for dir in $appdirs ; do
6603 if test -r $dir/Makefile.in ; then
6604 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6605 appdirs=""
6606 break
6607 fi
23f6b2f9 6608 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
6609 appdirs=""
6610 break
6611 fi
6612 fi
6613 done
6614 if test -n "$appdirs" ; then
6615 echo "*** This configuration is not supported by this package." 1>&2
6616 exit 1
6617 fi
6618 fi
6619 # Okay, some application will build, or we don't care to check. Still
6620 # notify of subdirs not getting built.
6621 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6622 echo " ${notsupp}" 1>&2
6623 echo " (Any other directories should still work fine.)" 1>&2
6624fi
6625
6626case "$host" in
6627 *msdosdjgpp*)
6628 enable_gdbtk=no ;;
6629esac
6630
c3a86da9
DJ
6631# To find our prefix, in gcc_cv_tool_prefix.
6632
6633# The user is always right.
6634if test "${PATH_SEPARATOR+set}" != set; then
6635 echo "#! /bin/sh" >conf$$.sh
6636 echo "exit 0" >>conf$$.sh
6637 chmod +x conf$$.sh
6638 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6639 PATH_SEPARATOR=';'
6640 else
6641 PATH_SEPARATOR=:
6642 fi
6643 rm -f conf$$.sh
6644fi
6645
6646
3c36aa6b
JJ
6647 get_gcc_base_ver="cat"
6648
6649# Check whether --with-gcc-major-version-only was given.
6650if test "${with_gcc_major_version_only+set}" = set; then :
6651 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
6652 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
6653 fi
6654
6655fi
6656
6657
6658
6659
6660
c3a86da9
DJ
6661
6662if test "x$exec_prefix" = xNONE; then
6663 if test "x$prefix" = xNONE; then
6664 gcc_cv_tool_prefix=$ac_default_prefix
6665 else
6666 gcc_cv_tool_prefix=$prefix
6667 fi
6668else
6669 gcc_cv_tool_prefix=$exec_prefix
6670fi
6671
6672# If there is no compiler in the tree, use the PATH only. In any
6673# case, if there is no compiler in the tree nobody should use
6674# AS_FOR_TARGET and LD_FOR_TARGET.
6675if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
3c36aa6b
JJ
6676 if test x$with_gcc_major_version_only = xyes ; then
6677 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6678 else
6679 gcc_version=`cat $srcdir/gcc/BASE-VER`
6680 fi
c3a86da9
DJ
6681 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6682 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6683 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6684 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6685 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6686 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6687else
6688 gcc_cv_tool_dirs=
6689fi
6690
6691if test x$build = x$target && test -n "$md_exec_prefix"; then
6692 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6693fi
6694
6695
6696
55ffb5ed
NN
6697copy_dirs=
6698
1c710c3c 6699
5213506e
RW
6700# Check whether --with-build-sysroot was given.
6701if test "${with_build_sysroot+set}" = set; then :
6702 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
6703 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6704 fi
6705else
6706 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 6707fi
526635cb
MM
6708
6709
c8aea42c 6710
5213506e
RW
6711
6712# Check whether --with-debug-prefix-map was given.
6713if test "${with_debug_prefix_map+set}" = set; then :
6714 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
6715 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6716 for debug_map in $withval; do
6717 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6718 done
6719 fi
6720else
6721 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
6722fi
6723
c8aea42c
PB
6724
6725
1c8bd6a3
PB
6726# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6727# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6728# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6729# We want to ensure that TARGET libraries (which we know are built with
6730# gcc) are built with "-O2 -g", so include those options when setting
6731# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6732if test "x$CFLAGS_FOR_TARGET" = x; then
fc30054e
AH
6733 if test "x${is_cross_compiler}" = xyes; then
6734 CFLAGS_FOR_TARGET="-g -O2"
6735 else
6736 CFLAGS_FOR_TARGET=$CFLAGS
6737 case " $CFLAGS " in
6738 *" -O2 "*) ;;
6739 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6740 esac
6741 case " $CFLAGS " in
6742 *" -g "* | *" -g3 "*) ;;
6743 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6744 esac
6745 fi
1c8bd6a3
PB
6746fi
6747
6748
6749if test "x$CXXFLAGS_FOR_TARGET" = x; then
fc30054e
AH
6750 if test "x${is_cross_compiler}" = xyes; then
6751 CXXFLAGS_FOR_TARGET="-g -O2"
6752 else
6753 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6754 case " $CXXFLAGS " in
6755 *" -O2 "*) ;;
6756 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6757 esac
6758 case " $CXXFLAGS " in
6759 *" -g "* | *" -g3 "*) ;;
6760 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6761 esac
6762 fi
1c8bd6a3
PB
6763fi
6764
6765
6f57bdf6
DK
6766
6767
55ffb5ed
NN
6768# Handle --with-headers=XXX. If the value is not "yes", the contents of
6769# the named directory are copied to $(tooldir)/sys-include.
6770if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6771 if test x${is_cross_compiler} = xno ; then
6772 echo 1>&2 '***' --with-headers is only supported when cross compiling
6773 exit 1
6774 fi
6775 if test x"${with_headers}" != xyes ; then
c3a86da9 6776 x=${gcc_cv_tool_prefix}
1c710c3c 6777 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
6778 fi
6779fi
6780
6781# Handle --with-libs=XXX. If the value is not "yes", the contents of
6782# the name directories are copied to $(tooldir)/lib. Multiple directories
6783# are permitted.
6784if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6785 if test x${is_cross_compiler} = xno ; then
6786 echo 1>&2 '***' --with-libs is only supported when cross compiling
6787 exit 1
6788 fi
6789 if test x"${with_libs}" != xyes ; then
6790 # Copy the libraries in reverse order, so that files in the first named
6791 # library override files in subsequent libraries.
c3a86da9 6792 x=${gcc_cv_tool_prefix}
55ffb5ed 6793 for l in ${with_libs}; do
1c710c3c 6794 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
6795 done
6796 fi
6797fi
6798
d7f09764 6799# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
6800#
6801# This is done by determining whether or not the appropriate directory
6802# is available, and by checking whether or not specific configurations
6803# have requested that this magic not happen.
1c710c3c
DJ
6804#
6805# The command line options always override the explicit settings in
6b1786aa 6806# configure.ac, and the settings in configure.ac override this magic.
e8b05380 6807#
1c710c3c 6808# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 6809# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
6810# --without-gnu-ld options for the configure script. Similarly, if
6811# the default is to use the included zlib and you don't want to do that,
6812# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
6813
6814if test x${use_gnu_as} = x &&
6815 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6816 with_gnu_as=yes
6817 extra_host_args="$extra_host_args --with-gnu-as"
6818fi
6819
6820if test x${use_gnu_ld} = x &&
5afab7ad 6821 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
6822 with_gnu_ld=yes
6823 extra_host_args="$extra_host_args --with-gnu-ld"
6824fi
6825
d7f09764
DN
6826if test x${use_included_zlib} = x &&
6827 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6828 :
6829else
6830 with_system_zlib=yes
6831 extra_host_args="$extra_host_args --with-system-zlib"
6832fi
6833
e8b05380
PB
6834# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6835# can detect this case.
6836
6837if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6838 with_newlib=yes
6839 extra_host_args="$extra_host_args --with-newlib"
6840fi
6841
55ffb5ed
NN
6842# Handle ${copy_dirs}
6843set fnord ${copy_dirs}
6844shift
6845while test $# != 0 ; do
6846 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6847 :
6848 else
6849 echo Copying $1 to $2
6850
6851 # Use the install script to create the directory and all required
6852 # parent directories.
6853 if test -d $2 ; then
6854 :
6855 else
6856 echo >config.temp
6857 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6858 fi
6859
6860 # Copy the directory, assuming we have tar.
6861 # FIXME: Should we use B in the second tar? Not all systems support it.
6862 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6863
6864 # It is the responsibility of the user to correctly adjust all
6865 # symlinks. If somebody can figure out how to handle them correctly
6866 # here, feel free to add the code.
6867
6868 echo $1 > $2/COPIED
6869 fi
6870 shift; shift
6871done
6872
e8b05380
PB
6873# Determine a target-dependent exec_prefix that the installed
6874# gcc will search in. Keep this list sorted by triplet, with
6875# the *-*-osname triplets last.
6876md_exec_prefix=
6877case "${target}" in
30b74385 6878 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
6879 md_exec_prefix=/dev/env/DJDIR/bin
6880 ;;
e8b05380 6881 *-*-hpux* | \
e8b05380 6882 *-*-nto-qnx* | \
6de66370 6883 *-*-solaris2*)
e8b05380
PB
6884 md_exec_prefix=/usr/ccs/bin
6885 ;;
6886esac
6887
671aa708
NN
6888extra_arflags_for_target=
6889extra_nmflags_for_target=
6890extra_ranlibflags_for_target=
6891target_makefile_frag=/dev/null
6892case "${target}" in
58e24147
AM
6893 spu-*-*)
6894 target_makefile_frag="config/mt-spu"
6895 ;;
d896cc4d 6896 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4bf6c438
RS
6897 target_makefile_frag="config/mt-sde"
6898 ;;
1ec3b87b
RS
6899 mipsisa*-*-elfoabi*)
6900 target_makefile_frag="config/mt-mips-elfoabi"
6901 ;;
08d0963a
RS
6902 mips*-*-*linux* | mips*-*-gnu*)
6903 target_makefile_frag="config/mt-mips-gnu"
6904 ;;
707f1839
SL
6905 nios2-*-elf*)
6906 target_makefile_frag="config/mt-nios2-elf"
6907 ;;
416ac4d4 6908 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 6909 target_makefile_frag="config/mt-gnu"
671aa708
NN
6910 ;;
6911 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 6912 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
6913 # commands to handle both 32-bit and 64-bit objects. These flags are
6914 # harmless if we're using GNU nm or ar.
6915 extra_arflags_for_target=" -X32_64"
6916 extra_nmflags_for_target=" -B -X32_64"
6917 ;;
671aa708
NN
6918esac
6919
6920alphaieee_frag=/dev/null
6921case $target in
6922 alpha*-*-*)
6923 # This just makes sure to use the -mieee option to build target libs.
6924 # This should probably be set individually by each library.
6925 alphaieee_frag="config/mt-alphaieee"
6926 ;;
6927esac
6928
6929# If --enable-target-optspace always use -Os instead of -O2 to build
6930# the target libraries, similarly if it is not specified, use -Os
6931# on selected platforms.
6932ospace_frag=/dev/null
6933case "${enable_target_optspace}:${target}" in
6934 yes:*)
6935 ospace_frag="config/mt-ospace"
6936 ;;
6937 :d30v-*)
6938 ospace_frag="config/mt-d30v"
6939 ;;
d9063947 6940 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
671aa708
NN
6941 ospace_frag="config/mt-ospace"
6942 ;;
6943 no:* | :*)
6944 ;;
6945 *)
6946 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6947 ;;
6948esac
6949
671aa708
NN
6950# Some systems (e.g., one of the i386-aix systems the gas testers are
6951# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 6952tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
6953build_tooldir=${tooldir}
6954
671aa708
NN
6955# Create a .gdbinit file which runs the one in srcdir
6956# and tells GDB to look there for source files.
6957
6958if test -r ${srcdir}/.gdbinit ; then
6959 case ${srcdir} in
6960 .) ;;
6961 *) cat > ./.gdbinit <<EOF
6962# ${NO_EDIT}
6963dir ${srcdir}
6964dir .
6965source ${srcdir}/.gdbinit
6966EOF
6967 ;;
6968 esac
6969fi
6970
671aa708
NN
6971# Make sure that the compiler is able to generate an executable. If it
6972# can't, we are probably in trouble. We don't care whether we can run the
6973# executable--we might be using a cross compiler--we only care whether it
6974# can be created. At this point the main configure script has set CC.
6975we_are_ok=no
6976echo "int main () { return 0; }" > conftest.c
6977${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6978if test $? = 0 ; then
6979 if test -s conftest || test -s conftest.exe ; then
6980 we_are_ok=yes
6981 fi
1c710c3c 6982fi
671aa708
NN
6983case $we_are_ok in
6984 no)
6985 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6986 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6987 rm -f conftest*
6988 exit 1
6989 ;;
6990esac
6991rm -f conftest*
6992
d89f0ad6 6993# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
6994case "${host}" in
6995 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 6996 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 6997 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
6998 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6999esac
7000
d89f0ad6
AL
7001# On systems where the dynamic library environment variable is PATH,
7002# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7003# built executables to PATH.
7004if test "$RPATH_ENVVAR" = PATH; then
7005 GCC_SHLIB_SUBDIR=/shlib
7006else
7007 GCC_SHLIB_SUBDIR=
7008fi
7009
beeda1d9
JJ
7010# Adjust the toplevel makefile according to whether bootstrap was selected.
7011case $enable_bootstrap in
7012 yes)
7013 bootstrap_suffix=bootstrap
7014 BUILD_CONFIG=bootstrap-debug
7015 ;;
7016 no)
7017 bootstrap_suffix=no-bootstrap
7018 BUILD_CONFIG=
7019 ;;
7020esac
7021
7022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7023$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7024
7025
7026# Check whether --with-build-config was given.
7027if test "${with_build_config+set}" = set; then :
7028 withval=$with_build_config; case $with_build_config in
7029 yes) with_build_config= ;;
7030 no) with_build_config= BUILD_CONFIG= ;;
7031 esac
7032fi
7033
7034
7035if test "x${with_build_config}" != x; then
7036 BUILD_CONFIG=$with_build_config
7037else
7038 case $BUILD_CONFIG in
7039 bootstrap-debug)
7040 if echo "int f (void) { return 0; }" > conftest.c &&
7041 ${CC} -c conftest.c &&
7042 mv conftest.o conftest.o.g0 &&
7043 ${CC} -c -g conftest.c &&
7044 mv conftest.o conftest.o.g &&
7045 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7046 :
7047 else
7048 BUILD_CONFIG=
7049 fi
7050 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7051 ;;
7052 esac
7053fi
7054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7055$as_echo "$BUILD_CONFIG" >&6; }
7056
7057
7058# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7060$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7061# Check whether --enable-vtable-verify was given.
7062if test "${enable_vtable_verify+set}" = set; then :
7063 enableval=$enable_vtable_verify; case "$enableval" in
7064 yes) enable_vtable_verify=yes ;;
7065 no) enable_vtable_verify=no ;;
7066 *) enable_vtable_verify=no;;
7067 esac
7068else
7069 enable_vtable_verify=no
7070fi
7071
7072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7073$as_echo "$enable_vtable_verify" >&6; }
7074
671aa708
NN
7075# Record target_configdirs and the configure arguments for target and
7076# build configuration in Makefile.
7077target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 7078build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9e1c8fc1 7079bootstrap_fixincludes=no
671aa708 7080
ad1e5170
JR
7081# If we are building libgomp, bootstrap it.
7082if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7083 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7084fi
7085
beeda1d9
JJ
7086# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7087# or bootstrap-ubsan, bootstrap it.
7088if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7089 case "$BUILD_CONFIG" in
7090 *bootstrap-asan* | *bootstrap-ubsan* )
7091 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9e1c8fc1 7092 bootstrap_fixincludes=yes
beeda1d9
JJ
7093 ;;
7094 esac
ac8701fe
L
7095fi
7096
beeda1d9
JJ
7097# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7098if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7099 test "$enable_vtable_verify" != no; then
2077db1b
CT
7100 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7101fi
7102
c21fdaa1
JJ
7103# If we are building libmpx and $BUILD_CONFIG contains bootstrap-mpx,
7104# bootstrap it.
5373cd33 7105if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
c21fdaa1
JJ
7106 case "$BUILD_CONFIG" in
7107 *bootstrap-mpx* )
7108 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7109 ;;
7110 esac
5373cd33
IE
7111fi
7112
671aa708
NN
7113# Determine whether gdb needs tk/tcl or not.
7114# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7115# and in that case we want gdb to be built without tk. Ugh!
7116# In fact I believe gdb is the *only* package directly dependent on tk,
7117# so we should be able to put the 'maybe's in unconditionally and
7118# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7119# 100% sure that that's safe though.
e914a571 7120
b4f96efe 7121gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
7122case "$enable_gdbtk" in
7123 no)
7124 GDB_TK="" ;;
e914a571
AC
7125 yes)
7126 GDB_TK="${gdb_tk}" ;;
671aa708 7127 *)
e914a571
AC
7128 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7129 # distro. Eventually someone will fix this and move Insight, nee
7130 # gdbtk to a separate directory.
7131 if test -d ${srcdir}/gdb/gdbtk ; then
7132 GDB_TK="${gdb_tk}"
7133 else
7134 GDB_TK=""
7135 fi
7136 ;;
671aa708 7137esac
ef9db8d5
DJ
7138CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7139INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 7140
60975492 7141# Strip out unwanted targets.
8b87bb96
NN
7142
7143# While at that, we remove Makefiles if we were started for recursive
7144# configuration, so that the top-level Makefile reconfigures them,
7145# like we used to do when configure itself was recursive.
8b87bb96 7146
3e54529c
RW
7147# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7148# but now we're fixing up the Makefile ourselves with the additional
7149# commands passed to AC_CONFIG_FILES. Use separate variables
7150# extrasub-{build,host,target} not because there is any reason to split
7151# the substitutions up that way, but only to remain below the limit of
7152# 99 commands in a script, for HP-UX sed.
7153# Do not nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 7154
79cd2b23
RW
7155case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7156 yes:yes:*\ gold\ *:*,c++,*) ;;
7157 yes:yes:*\ gold\ *:*)
7158 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7159 ;;
7160esac
7161
3e54529c 7162extrasub_build=
23f6b2f9 7163for module in ${build_configdirs} ; do
5607edfd
PB
7164 if test -z "${no_recursion}" \
7165 && test -f ${build_subdir}/${module}/Makefile; then
7166 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7167 rm -f ${build_subdir}/${module}/Makefile
7168 fi
3e54529c 7169 extrasub_build="$extrasub_build
5607edfd
PB
7170/^@if build-$module\$/d
7171/^@endif build-$module\$/d
7172/^@if build-$module-$bootstrap_suffix\$/d
7173/^@endif build-$module-$bootstrap_suffix\$/d"
7174done
3e54529c 7175extrasub_host=
5607edfd 7176for module in ${configdirs} ; do
a6fbc1e2 7177 if test -z "${no_recursion}"; then
f063a9ed 7178 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
7179 if test -f ${file}; then
7180 echo 1>&2 "*** removing ${file} to force reconfigure"
7181 rm -f ${file}
7182 fi
7183 done
5607edfd 7184 fi
9e1c8fc1
JJ
7185 case ${module},${bootstrap_fixincludes} in
7186 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7187 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7188 esac
3e54529c 7189 extrasub_host="$extrasub_host
5607edfd
PB
7190/^@if $module\$/d
7191/^@endif $module\$/d
9e1c8fc1
JJ
7192/^@if $module-$host_bootstrap_suffix\$/d
7193/^@endif $module-$host_bootstrap_suffix\$/d"
5607edfd 7194done
3e54529c 7195extrasub_target=
5607edfd
PB
7196for module in ${target_configdirs} ; do
7197 if test -z "${no_recursion}" \
7198 && test -f ${target_subdir}/${module}/Makefile; then
7199 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7200 rm -f ${target_subdir}/${module}/Makefile
7201 fi
00020c16
ILT
7202
7203 # We only bootstrap target libraries listed in bootstrap_target_libs.
7204 case $bootstrap_target_libs in
7205 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7206 *) target_bootstrap_suffix=no-bootstrap ;;
7207 esac
7208
3e54529c 7209 extrasub_target="$extrasub_target
5607edfd
PB
7210/^@if target-$module\$/d
7211/^@endif target-$module\$/d
00020c16
ILT
7212/^@if target-$module-$target_bootstrap_suffix\$/d
7213/^@endif target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
7214done
7215
3e54529c
RW
7216# Do the final fixup along with target modules.
7217extrasub_target="$extrasub_target
60975492 7218/^@if /,/^@endif /d"
671aa708
NN
7219
7220# Create the serialization dependencies. This uses a temporary file.
7221
5213506e
RW
7222# Check whether --enable-serial-configure was given.
7223if test "${enable_serial_configure+set}" = set; then :
7224 enableval=$enable_serial_configure;
7225fi
ade82b16
AO
7226
7227
bf1d3e81
NN
7228case ${enable_serial_configure} in
7229 yes)
7230 enable_serial_build_configure=yes
7231 enable_serial_host_configure=yes
7232 enable_serial_target_configure=yes
7233 ;;
7234esac
7235
671aa708
NN
7236# These force 'configure's to be done one at a time, to avoid problems
7237# with contention over a shared config.cache.
7238rm -f serdep.tmp
ade82b16 7239echo '# serdep.tmp' > serdep.tmp
671aa708 7240olditem=
bf1d3e81 7241test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
7242for item in ${build_configdirs} ; do
7243 case ${olditem} in
7244 "") ;;
ade82b16 7245 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
7246 esac
7247 olditem=${item}
7248done
7249olditem=
bf1d3e81 7250test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
7251for item in ${configdirs} ; do
7252 case ${olditem} in
7253 "") ;;
ade82b16 7254 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
7255 esac
7256 olditem=${item}
7257done
7258olditem=
bf1d3e81 7259test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
7260for item in ${target_configdirs} ; do
7261 case ${olditem} in
7262 "") ;;
ade82b16 7263 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
7264 esac
7265 olditem=${item}
7266done
7267serialization_dependencies=serdep.tmp
7268
7269
ade82b16 7270# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 7271# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
7272# might not want to pass down to subconfigures. The exception being
7273# --cache-file=/dev/null, which is used to turn off the use of cache
7274# files altogether, and which should be passed on to subconfigures.
7275# Also strip program-prefix, program-suffix, and program-transform-name,
7276# so that we can pass down a consistent program-transform-name.
1c710c3c 7277baseargs=
29a63921 7278tbaseargs=
1c710c3c
DJ
7279keep_next=no
7280skip_next=no
7281eval "set -- $ac_configure_args"
44bfc3ac
DJ
7282for ac_arg
7283do
1c710c3c
DJ
7284 if test X"$skip_next" = X"yes"; then
7285 skip_next=no
7286 continue
7287 fi
7288 if test X"$keep_next" = X"yes"; then
7289 case $ac_arg in
7290 *\'*)
7291 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7292 esac
7293 baseargs="$baseargs '$ac_arg'"
29a63921 7294 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
7295 keep_next=no
7296 continue
7297 fi
7298
7299 # Handle separated arguments. Based on the logic generated by
7300 # autoconf 2.59.
7301 case $ac_arg in
7302 *=* | --config-cache | -C | -disable-* | --disable-* \
7303 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7304 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7305 | -with-* | --with-* | -without-* | --without-* | --x)
7306 separate_arg=no
7307 ;;
7308 -*)
7309 separate_arg=yes
7310 ;;
7311 *)
7312 separate_arg=no
7313 ;;
7314 esac
7315
29a63921
AO
7316 skip_targ=no
7317 case $ac_arg in
7318
7319 --with-* | --without-*)
7320 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7321
7322 case $libopt in
7323 *[-_]include)
7324 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7325 ;;
7326 *[-_]lib)
7327 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7328 ;;
7329 *)
7330 lib=$libopt
7331 ;;
7332 esac
7333
7334
7335 case $lib in
4a9bb2aa 7336 mpc | mpfr | gmp | isl)
29a63921
AO
7337 # If we're processing --with-$lib, --with-$lib-include or
7338 # --with-$lib-lib, for one of the libs above, and target is
7339 # different from host, don't pass the current argument to any
7340 # target library's configure.
7341 if test x$is_cross_compiler = xyes; then
7342 skip_targ=yes
7343 fi
7344 ;;
7345 esac
7346 ;;
7347 esac
7348
1c710c3c 7349 case "$ac_arg" in
f1a036e4
NC
7350 --cache-file=/dev/null | \
7351 -cache-file=/dev/null )
7352 # Handled here to avoid the test to skip args below.
7353 baseargs="$baseargs '$ac_arg'"
29a63921 7354 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
7355 # Assert: $separate_arg should always be no.
7356 keep_next=$separate_arg
7357 ;;
1c710c3c
DJ
7358 --no*)
7359 continue
7360 ;;
7361 --c* | \
7362 --sr* | \
7363 --ho* | \
7364 --bu* | \
7365 --t* | \
7366 --program-* | \
7367 -cache_file* | \
7368 -srcdir* | \
7369 -host* | \
7370 -build* | \
7371 -target* | \
7372 -program-prefix* | \
7373 -program-suffix* | \
7374 -program-transform-name* )
7375 skip_next=$separate_arg
7376 continue
7377 ;;
7378 -*)
7379 # An option. Add it.
7380 case $ac_arg in
7381 *\'*)
7382 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7383 esac
7384 baseargs="$baseargs '$ac_arg'"
29a63921
AO
7385 if test X"$skip_targ" = Xno; then
7386 tbaseargs="$tbaseargs '$ac_arg'"
7387 fi
1c710c3c
DJ
7388 keep_next=$separate_arg
7389 ;;
7390 *)
7391 # Either a variable assignment, or a nonopt (triplet). Don't
7392 # pass it down; let the Makefile handle this.
7393 continue
7394 ;;
7395 esac
7396done
7397# Remove the initial space we just introduced and, as these will be
7398# expanded by make, quote '$'.
7399baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7400
43bb47c2
DJ
7401# Add in --program-transform-name, after --program-prefix and
7402# --program-suffix have been applied to it. Autoconf has already
7403# doubled dollar signs and backslashes in program_transform_name; we want
7404# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7405# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7406# Also, because we want to override the logic in subdir configure scripts to
7407# choose program_transform_name, replace any s,x,x, with s,y,y,.
7408sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7409${program_transform_name}
7410EOF_SED
7411gcc_transform_name=`cat conftestsed.out`
7412rm -f conftestsed.out
7413baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 7414tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7415if test "$silent" = yes; then
7416 baseargs="$baseargs --silent"
29a63921 7417 tbaseargs="$tbaseargs --silent"
d9acb717 7418fi
0115d4a3 7419baseargs="$baseargs --disable-option-checking"
29a63921 7420tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 7421
ffedf511
RW
7422# Record and document user additions to sub configure arguments.
7423
7424
7425
7426
671aa708
NN
7427# For the build-side libraries, we just need to pretend we're native,
7428# and not use the same cache file. Multilibs are neither needed nor
3d96b0d0
HPN
7429# desired. We can't even use the same cache file for all build-side
7430# libraries, as they're compiled differently; some with C, some with
7431# C++ or with different feature-enabling options.
7432build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
671aa708
NN
7433
7434# For host modules, accept cache file option, or specification as blank.
7435case "${cache_file}" in
7436"") # empty
7437 cache_file_option="" ;;
7438/* | [A-Za-z]:[\\/]* ) # absolute path
7439 cache_file_option="--cache-file=${cache_file}" ;;
7440*) # relative path
7441 cache_file_option="--cache-file=../${cache_file}" ;;
7442esac
7443
09438bde
NN
7444# Host dirs don't like to share a cache file either, horribly enough.
7445# This seems to be due to autoconf 2.5x stupidity.
ffedf511 7446host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 7447
29a63921 7448target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
7449
7450# Passing a --with-cross-host argument lets the target libraries know
7451# whether they are being built with a cross-compiler or being built
7452# native. However, it would be better to use other mechanisms to make the
7453# sorts of decisions they want to make on this basis. Please consider
7454# this option to be deprecated. FIXME.
7455if test x${is_cross_compiler} = xyes ; then
1c710c3c 7456 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7457fi
7458
79e0604d
FXC
7459# Special user-friendly check for native x86_64-linux build, if
7460# multilib is not explicitly enabled.
7461case "$target:$have_compiler:$host:$target:$enable_multilib" in
7462 x86_64-*linux*:yes:$build:$build:)
e640447c 7463 # Make sure we have a development environment that handles 32-bit
79e0604d
FXC
7464 dev64=no
7465 echo "int main () { return 0; }" > conftest.c
7466 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7467 if test $? = 0 ; then
7468 if test -s conftest || test -s conftest.exe ; then
7469 dev64=yes
7470 fi
7471 fi
7472 rm -f conftest*
7473 if test x${dev64} != xyes ; then
e640447c 7474 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
7475 fi
7476 ;;
7477esac
7478
dc683a3f
RW
7479# Default to --enable-multilib.
7480if test x${enable_multilib} = x ; then
671aa708 7481 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 7482fi
671aa708
NN
7483
7484# Pass --with-newlib if appropriate. Note that target_configdirs has
7485# changed from the earlier setting of with_newlib.
7486if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7487 target_configargs="--with-newlib ${target_configargs}"
7488fi
7489
6b9eb62c
NN
7490# Different target subdirs use different values of certain variables
7491# (notably CXX). Worse, multilibs use *lots* of different values.
7492# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7493# it doesn't automatically accept command-line overrides of them.
7494# This means it's not safe for target subdirs to share a cache file,
7495# which is disgusting, but there you have it. Hopefully this can be
7496# fixed in future. It's still worthwhile to use a cache file for each
7497# directory. I think.
7498
bebcd931
MS
7499# Pass the appropriate --build, --host, --target and --cache-file arguments.
7500# We need to pass --target, as newer autoconf's requires consistency
7501# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7502target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7503
671aa708
NN
7504FLAGS_FOR_TARGET=
7505case " $target_configdirs " in
7506 *" newlib "*)
7507 case " $target_configargs " in
7508 *" --with-newlib "*)
7509 case "$target" in
5d571eaa 7510 *-cygwin*)
443e6238 7511 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5d571eaa 7512 ;;
671aa708
NN
7513 esac
7514
7515 # If we're not building GCC, don't discard standard headers.
7516 if test -d ${srcdir}/gcc; then
7517 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7518
7519 if test "${build}" != "${host}"; then
7520 # On Canadian crosses, CC_FOR_TARGET will have already been set
7521 # by `configure', so we won't have an opportunity to add -Bgcc/
7522 # to it. This is right: we don't want to search that directory
7523 # for binaries, but we want the header files in there, so add
7524 # them explicitly.
0463992b 7525 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
7526
7527 # Someone might think of using the pre-installed headers on
7528 # Canadian crosses, in case the installed compiler is not fully
7529 # compatible with the compiler being built. In this case, it
7530 # would be better to flag an error than risking having
7531 # incompatible object files being constructed. We can't
7532 # guarantee that an error will be flagged, but let's hope the
7533 # compiler will do it, when presented with incompatible header
7534 # files.
7535 fi
7536 fi
7537
7538 case "${target}-${is_cross_compiler}" in
f2a0e225 7539 i[3456789]86-*-linux*-no)
671aa708
NN
7540 # Here host == target, so we don't need to build gcc,
7541 # so we don't want to discard standard headers.
7542 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7543 ;;
7544 *)
7545 # If we're building newlib, use its generic headers last, but search
7546 # for any libc-related directories first (so make it the last -B
7547 # switch).
7548 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
7549
7550 # If we're building libgloss, find the startup file, simulator library
7551 # and linker script.
7552 case " $target_configdirs " in
7553 *" libgloss "*)
7554 # Look for startup file, simulator library and maybe linker script.
7555 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7556 # Look for libnosys.a in case the target needs it.
7557 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7558 # Most targets have the linker script in the source directory.
7559 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7560 ;;
7561 esac
671aa708
NN
7562 ;;
7563 esac
7564 ;;
7565 esac
7566 ;;
7567esac
5d571eaa 7568
b91f0a41 7569case "$target" in
5d571eaa
OS
7570 x86_64-*mingw* | *-w64-mingw*)
7571 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7572 # however, use a symlink named 'mingw' in ${prefix} .
7573 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7574 ;;
7575 *-mingw*)
7576 # MinGW can't be handled as Cygwin above since it does not use newlib.
7577 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'
7578 ;;
b91f0a41 7579esac
671aa708 7580
6691a79e
ME
7581# Allow the user to override the flags for
7582# our build compiler if desired.
f019adc1
MF
7583if test x"${build}" = x"${host}" ; then
7584 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7585 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7586 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7587fi
6691a79e 7588
671aa708
NN
7589# On Canadian crosses, we'll be searching the right directories for
7590# the previously-installed cross compiler, so don't bother to add
7591# flags for directories within the install tree of the compiler
7592# being built; programs in there won't even run.
7593if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7594 # Search for pre-installed headers if nothing else fits.
9124bc53 7595 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
7596fi
7597
7598if test "x${use_gnu_ld}" = x &&
7599 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7600 # Arrange for us to find uninstalled linker scripts.
215c351a 7601 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
7602fi
7603
e88a2c09
DD
7604# Search for other target-specific linker scripts and such.
7605case "${target}" in
3e19841a
PB
7606 mep*)
7607 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7608 ;;
e88a2c09
DD
7609esac
7610
671aa708 7611# Makefile fragments.
7b61653a
PE
7612for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7613do
7614 eval fragval=\$$frag
7615 if test $fragval != /dev/null; then
7616 eval $frag=${srcdir}/$fragval
7617 fi
7618done
671aa708
NN
7619
7620
7621
7622
7623
7624# Miscellanea: directories, flags, etc.
7625
7626
7627
7628
7629
7630
7631
d89f0ad6 7632
23f6b2f9 7633# Build module lists & subconfigure args.
671aa708
NN
7634
7635
7636
2abefe3d
PB
7637# Host module lists & subconfigure args.
7638
7639
7640
aae29963 7641
2abefe3d
PB
7642# Target module lists & subconfigure args.
7643
7644
7645
7646# Build tools.
7647
7648
7649
0999159b
PB
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
2abefe3d
PB
7663# Generate default definitions for YACC, M4, LEX and other programs that run
7664# on the build machine. These are used if the Makefile can't locate these
7665# programs in objdir.
7666MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7667
7668for ac_prog in 'bison -y' byacc yacc
7669do
1c710c3c 7670 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7671set dummy $ac_prog; ac_word=$2
5213506e
RW
7672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7673$as_echo_n "checking for $ac_word... " >&6; }
7674if test "${ac_cv_prog_YACC+set}" = set; then :
7675 $as_echo_n "(cached) " >&6
2abefe3d
PB
7676else
7677 if test -n "$YACC"; then
7678 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7679else
1c710c3c
DJ
7680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681for as_dir in $PATH
7682do
7683 IFS=$as_save_IFS
7684 test -z "$as_dir" && as_dir=.
5213506e
RW
7685 for ac_exec_ext in '' $ac_executable_extensions; do
7686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7687 ac_cv_prog_YACC="$ac_prog"
5213506e 7688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7689 break 2
7690 fi
7691done
5213506e
RW
7692 done
7693IFS=$as_save_IFS
1c710c3c 7694
2abefe3d
PB
7695fi
7696fi
1c710c3c 7697YACC=$ac_cv_prog_YACC
2abefe3d 7698if test -n "$YACC"; then
5213506e
RW
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7700$as_echo "$YACC" >&6; }
2abefe3d 7701else
5213506e
RW
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7703$as_echo "no" >&6; }
2abefe3d
PB
7704fi
7705
5213506e 7706
1c710c3c 7707 test -n "$YACC" && break
2abefe3d
PB
7708done
7709test -n "$YACC" || YACC="$MISSING bison -y"
7710
7711case " $build_configdirs " in
7712 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
7713esac
7714
7715for ac_prog in bison
7716do
1c710c3c 7717 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7718set dummy $ac_prog; ac_word=$2
5213506e
RW
7719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720$as_echo_n "checking for $ac_word... " >&6; }
7721if test "${ac_cv_prog_BISON+set}" = set; then :
7722 $as_echo_n "(cached) " >&6
2abefe3d
PB
7723else
7724 if test -n "$BISON"; then
7725 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7726else
1c710c3c
DJ
7727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728for as_dir in $PATH
7729do
7730 IFS=$as_save_IFS
7731 test -z "$as_dir" && as_dir=.
5213506e
RW
7732 for ac_exec_ext in '' $ac_executable_extensions; do
7733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7734 ac_cv_prog_BISON="$ac_prog"
5213506e 7735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7736 break 2
7737 fi
7738done
5213506e
RW
7739 done
7740IFS=$as_save_IFS
1c710c3c 7741
2abefe3d
PB
7742fi
7743fi
1c710c3c 7744BISON=$ac_cv_prog_BISON
2abefe3d 7745if test -n "$BISON"; then
5213506e
RW
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7747$as_echo "$BISON" >&6; }
2abefe3d 7748else
5213506e
RW
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750$as_echo "no" >&6; }
2abefe3d
PB
7751fi
7752
5213506e 7753
1c710c3c 7754 test -n "$BISON" && break
2abefe3d
PB
7755done
7756test -n "$BISON" || BISON="$MISSING bison"
7757
7758case " $build_configdirs " in
7759 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7760esac
7761
7762for ac_prog in gm4 gnum4 m4
7763do
1c710c3c 7764 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7765set dummy $ac_prog; ac_word=$2
5213506e
RW
7766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7767$as_echo_n "checking for $ac_word... " >&6; }
7768if test "${ac_cv_prog_M4+set}" = set; then :
7769 $as_echo_n "(cached) " >&6
2abefe3d
PB
7770else
7771 if test -n "$M4"; then
7772 ac_cv_prog_M4="$M4" # Let the user override the test.
7773else
1c710c3c
DJ
7774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775for as_dir in $PATH
7776do
7777 IFS=$as_save_IFS
7778 test -z "$as_dir" && as_dir=.
5213506e
RW
7779 for ac_exec_ext in '' $ac_executable_extensions; do
7780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7781 ac_cv_prog_M4="$ac_prog"
5213506e 7782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7783 break 2
7784 fi
7785done
5213506e
RW
7786 done
7787IFS=$as_save_IFS
1c710c3c 7788
2abefe3d
PB
7789fi
7790fi
1c710c3c 7791M4=$ac_cv_prog_M4
2abefe3d 7792if test -n "$M4"; then
5213506e
RW
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7794$as_echo "$M4" >&6; }
2abefe3d 7795else
5213506e
RW
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797$as_echo "no" >&6; }
2abefe3d
PB
7798fi
7799
5213506e 7800
1c710c3c 7801 test -n "$M4" && break
2abefe3d
PB
7802done
7803test -n "$M4" || M4="$MISSING m4"
7804
7805case " $build_configdirs " in
7806 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7807esac
7808
7809for ac_prog in flex lex
7810do
1c710c3c 7811 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7812set dummy $ac_prog; ac_word=$2
5213506e
RW
7813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7814$as_echo_n "checking for $ac_word... " >&6; }
7815if test "${ac_cv_prog_LEX+set}" = set; then :
7816 $as_echo_n "(cached) " >&6
2abefe3d
PB
7817else
7818 if test -n "$LEX"; then
7819 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7820else
1c710c3c
DJ
7821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822for as_dir in $PATH
7823do
7824 IFS=$as_save_IFS
7825 test -z "$as_dir" && as_dir=.
5213506e
RW
7826 for ac_exec_ext in '' $ac_executable_extensions; do
7827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7828 ac_cv_prog_LEX="$ac_prog"
5213506e 7829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7830 break 2
7831 fi
7832done
5213506e
RW
7833 done
7834IFS=$as_save_IFS
1c710c3c 7835
2abefe3d
PB
7836fi
7837fi
1c710c3c 7838LEX=$ac_cv_prog_LEX
2abefe3d 7839if test -n "$LEX"; then
5213506e
RW
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7841$as_echo "$LEX" >&6; }
2abefe3d 7842else
5213506e
RW
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844$as_echo "no" >&6; }
2abefe3d
PB
7845fi
7846
5213506e 7847
1c710c3c 7848 test -n "$LEX" && break
2abefe3d
PB
7849done
7850test -n "$LEX" || LEX="$MISSING flex"
7851
7852case " $build_configdirs " in
7853 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7854 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7855esac
7856
7857for ac_prog in flex
7858do
1c710c3c 7859 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7860set dummy $ac_prog; ac_word=$2
5213506e
RW
7861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7862$as_echo_n "checking for $ac_word... " >&6; }
7863if test "${ac_cv_prog_FLEX+set}" = set; then :
7864 $as_echo_n "(cached) " >&6
2abefe3d
PB
7865else
7866 if test -n "$FLEX"; then
7867 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7868else
1c710c3c
DJ
7869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870for as_dir in $PATH
7871do
7872 IFS=$as_save_IFS
7873 test -z "$as_dir" && as_dir=.
5213506e
RW
7874 for ac_exec_ext in '' $ac_executable_extensions; do
7875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7876 ac_cv_prog_FLEX="$ac_prog"
5213506e 7877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7878 break 2
7879 fi
7880done
5213506e
RW
7881 done
7882IFS=$as_save_IFS
1c710c3c 7883
2abefe3d
PB
7884fi
7885fi
1c710c3c 7886FLEX=$ac_cv_prog_FLEX
2abefe3d 7887if test -n "$FLEX"; then
5213506e
RW
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7889$as_echo "$FLEX" >&6; }
2abefe3d 7890else
5213506e
RW
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7892$as_echo "no" >&6; }
2abefe3d
PB
7893fi
7894
5213506e 7895
1c710c3c 7896 test -n "$FLEX" && break
2abefe3d
PB
7897done
7898test -n "$FLEX" || FLEX="$MISSING flex"
7899
7900case " $build_configdirs " in
7901 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7902esac
7903
7904for ac_prog in makeinfo
7905do
1c710c3c 7906 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7907set dummy $ac_prog; ac_word=$2
5213506e
RW
7908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909$as_echo_n "checking for $ac_word... " >&6; }
7910if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7911 $as_echo_n "(cached) " >&6
2abefe3d
PB
7912else
7913 if test -n "$MAKEINFO"; then
7914 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7915else
1c710c3c
DJ
7916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917for as_dir in $PATH
7918do
7919 IFS=$as_save_IFS
7920 test -z "$as_dir" && as_dir=.
5213506e
RW
7921 for ac_exec_ext in '' $ac_executable_extensions; do
7922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7923 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 7924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7925 break 2
7926 fi
7927done
5213506e
RW
7928 done
7929IFS=$as_save_IFS
1c710c3c 7930
2abefe3d
PB
7931fi
7932fi
1c710c3c 7933MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 7934if test -n "$MAKEINFO"; then
5213506e
RW
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7936$as_echo "$MAKEINFO" >&6; }
2abefe3d 7937else
5213506e
RW
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7939$as_echo "no" >&6; }
2abefe3d
PB
7940fi
7941
5213506e 7942
1c710c3c 7943 test -n "$MAKEINFO" && break
2abefe3d
PB
7944done
7945test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7946
7947case " $build_configdirs " in
7948 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7949 *)
7950
d18ff35a 7951 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
7952 # higher, else we use the "missing" dummy.
7953 if ${MAKEINFO} --version \
d18ff35a 7954 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
7955 :
7956 else
7957 MAKEINFO="$MISSING makeinfo"
7958 fi
7959 ;;
7960
7961esac
671aa708 7962
2abefe3d 7963# FIXME: expect and dejagnu may become build tools?
671aa708 7964
2abefe3d
PB
7965for ac_prog in expect
7966do
1c710c3c 7967 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7968set dummy $ac_prog; ac_word=$2
5213506e
RW
7969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7970$as_echo_n "checking for $ac_word... " >&6; }
7971if test "${ac_cv_prog_EXPECT+set}" = set; then :
7972 $as_echo_n "(cached) " >&6
2abefe3d
PB
7973else
7974 if test -n "$EXPECT"; then
7975 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7976else
1c710c3c
DJ
7977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7978for as_dir in $PATH
7979do
7980 IFS=$as_save_IFS
7981 test -z "$as_dir" && as_dir=.
5213506e
RW
7982 for ac_exec_ext in '' $ac_executable_extensions; do
7983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7984 ac_cv_prog_EXPECT="$ac_prog"
5213506e 7985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7986 break 2
7987 fi
7988done
5213506e
RW
7989 done
7990IFS=$as_save_IFS
1c710c3c 7991
2abefe3d
PB
7992fi
7993fi
1c710c3c 7994EXPECT=$ac_cv_prog_EXPECT
2abefe3d 7995if test -n "$EXPECT"; then
5213506e
RW
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7997$as_echo "$EXPECT" >&6; }
2abefe3d 7998else
5213506e
RW
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8000$as_echo "no" >&6; }
2abefe3d 8001fi
671aa708 8002
5213506e 8003
1c710c3c 8004 test -n "$EXPECT" && break
2abefe3d
PB
8005done
8006test -n "$EXPECT" || EXPECT="expect"
671aa708 8007
2abefe3d
PB
8008case " $configdirs " in
8009 *" expect "*)
8010 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8011 ;;
8012esac
671aa708 8013
2abefe3d
PB
8014for ac_prog in runtest
8015do
1c710c3c 8016 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8017set dummy $ac_prog; ac_word=$2
5213506e
RW
8018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8019$as_echo_n "checking for $ac_word... " >&6; }
8020if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8021 $as_echo_n "(cached) " >&6
2abefe3d
PB
8022else
8023 if test -n "$RUNTEST"; then
8024 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 8025else
1c710c3c
DJ
8026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027for as_dir in $PATH
8028do
8029 IFS=$as_save_IFS
8030 test -z "$as_dir" && as_dir=.
5213506e
RW
8031 for ac_exec_ext in '' $ac_executable_extensions; do
8032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8033 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 8034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8035 break 2
8036 fi
8037done
5213506e
RW
8038 done
8039IFS=$as_save_IFS
1c710c3c 8040
2abefe3d
PB
8041fi
8042fi
1c710c3c 8043RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 8044if test -n "$RUNTEST"; then
5213506e
RW
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8046$as_echo "$RUNTEST" >&6; }
2abefe3d 8047else
5213506e
RW
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049$as_echo "no" >&6; }
2abefe3d 8050fi
671aa708 8051
5213506e 8052
1c710c3c 8053 test -n "$RUNTEST" && break
2abefe3d
PB
8054done
8055test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 8056
2abefe3d
PB
8057case " $configdirs " in
8058 *" dejagnu "*)
c394e891 8059 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
8060 ;;
8061esac
671aa708
NN
8062
8063
671aa708 8064# Host tools.
ca9f4b81
AO
8065ncn_tool_prefix=
8066test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8067ncn_target_tool_prefix=
8068test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8069
278a7a38
AO
8070
8071
8072if test -n "$AR"; then
8073 ac_cv_prog_AR=$AR
8074elif test -n "$ac_cv_prog_AR"; then
8075 AR=$ac_cv_prog_AR
8076fi
8077
8078if test -n "$ac_cv_prog_AR"; then
8079 for ncn_progname in ar; do
8080 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8081set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8083$as_echo_n "checking for $ac_word... " >&6; }
8084if test "${ac_cv_prog_AR+set}" = set; then :
8085 $as_echo_n "(cached) " >&6
278a7a38
AO
8086else
8087 if test -n "$AR"; then
8088 ac_cv_prog_AR="$AR" # Let the user override the test.
8089else
8090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8091for as_dir in $PATH
8092do
8093 IFS=$as_save_IFS
8094 test -z "$as_dir" && as_dir=.
5213506e
RW
8095 for ac_exec_ext in '' $ac_executable_extensions; do
8096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8097 ac_cv_prog_AR="${ncn_progname}"
5213506e 8098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8099 break 2
8100 fi
8101done
5213506e
RW
8102 done
8103IFS=$as_save_IFS
278a7a38
AO
8104
8105fi
8106fi
8107AR=$ac_cv_prog_AR
8108if test -n "$AR"; then
5213506e
RW
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8110$as_echo "$AR" >&6; }
278a7a38 8111else
5213506e
RW
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8113$as_echo "no" >&6; }
278a7a38
AO
8114fi
8115
5213506e 8116
278a7a38
AO
8117 done
8118fi
8119
8120for ncn_progname in ar; do
2693c0b0
PB
8121 if test -n "$ncn_tool_prefix"; then
8122 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8123set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8125$as_echo_n "checking for $ac_word... " >&6; }
8126if test "${ac_cv_prog_AR+set}" = set; then :
8127 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8128else
8129 if test -n "$AR"; then
8130 ac_cv_prog_AR="$AR" # Let the user override the test.
8131else
1c710c3c
DJ
8132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8133for as_dir in $PATH
8134do
8135 IFS=$as_save_IFS
8136 test -z "$as_dir" && as_dir=.
5213506e
RW
8137 for ac_exec_ext in '' $ac_executable_extensions; do
8138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8139 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 8140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8141 break 2
8142 fi
8143done
5213506e
RW
8144 done
8145IFS=$as_save_IFS
1c710c3c 8146
ca9f4b81
AO
8147fi
8148fi
1c710c3c 8149AR=$ac_cv_prog_AR
ca9f4b81 8150if test -n "$AR"; then
5213506e
RW
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8152$as_echo "$AR" >&6; }
ca9f4b81 8153else
5213506e
RW
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8155$as_echo "no" >&6; }
ca9f4b81
AO
8156fi
8157
5213506e 8158
2693c0b0
PB
8159 fi
8160 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8161 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8162set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8164$as_echo_n "checking for $ac_word... " >&6; }
8165if test "${ac_cv_prog_AR+set}" = set; then :
8166 $as_echo_n "(cached) " >&6
ca9f4b81 8167else
2693c0b0 8168 if test -n "$AR"; then
af71363e
AS
8169 ac_cv_prog_AR="$AR" # Let the user override the test.
8170else
1c710c3c
DJ
8171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8172for as_dir in $PATH
8173do
8174 IFS=$as_save_IFS
8175 test -z "$as_dir" && as_dir=.
5213506e
RW
8176 for ac_exec_ext in '' $ac_executable_extensions; do
8177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8178 ac_cv_prog_AR="${ncn_progname}"
5213506e 8179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8180 break 2
8181 fi
8182done
5213506e
RW
8183 done
8184IFS=$as_save_IFS
1c710c3c 8185
ca9f4b81
AO
8186fi
8187fi
1c710c3c 8188AR=$ac_cv_prog_AR
2693c0b0 8189if test -n "$AR"; then
5213506e
RW
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8191$as_echo "$AR" >&6; }
ca9f4b81 8192else
5213506e
RW
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8194$as_echo "no" >&6; }
ca9f4b81 8195fi
1c710c3c 8196
5213506e 8197
2693c0b0
PB
8198 fi
8199 test -n "$ac_cv_prog_AR" && break
8200done
8201
8202if test -z "$ac_cv_prog_AR" ; then
8203 set dummy ar
8204 if test $build = $host ; then
8205 AR="$2"
ca9f4b81 8206 else
2693c0b0 8207 AR="${ncn_tool_prefix}$2"
ca9f4b81 8208 fi
ca9f4b81
AO
8209fi
8210
278a7a38
AO
8211
8212
8213if test -n "$AS"; then
8214 ac_cv_prog_AS=$AS
8215elif test -n "$ac_cv_prog_AS"; then
8216 AS=$ac_cv_prog_AS
8217fi
8218
8219if test -n "$ac_cv_prog_AS"; then
8220 for ncn_progname in as; do
8221 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8222set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8224$as_echo_n "checking for $ac_word... " >&6; }
8225if test "${ac_cv_prog_AS+set}" = set; then :
8226 $as_echo_n "(cached) " >&6
278a7a38
AO
8227else
8228 if test -n "$AS"; then
8229 ac_cv_prog_AS="$AS" # Let the user override the test.
8230else
8231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8232for as_dir in $PATH
8233do
8234 IFS=$as_save_IFS
8235 test -z "$as_dir" && as_dir=.
5213506e
RW
8236 for ac_exec_ext in '' $ac_executable_extensions; do
8237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8238 ac_cv_prog_AS="${ncn_progname}"
5213506e 8239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8240 break 2
8241 fi
8242done
5213506e
RW
8243 done
8244IFS=$as_save_IFS
278a7a38
AO
8245
8246fi
8247fi
8248AS=$ac_cv_prog_AS
8249if test -n "$AS"; then
5213506e
RW
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8251$as_echo "$AS" >&6; }
278a7a38 8252else
5213506e
RW
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8254$as_echo "no" >&6; }
278a7a38
AO
8255fi
8256
5213506e 8257
278a7a38
AO
8258 done
8259fi
8260
8261for ncn_progname in as; do
2693c0b0
PB
8262 if test -n "$ncn_tool_prefix"; then
8263 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8264set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8266$as_echo_n "checking for $ac_word... " >&6; }
8267if test "${ac_cv_prog_AS+set}" = set; then :
8268 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8269else
8270 if test -n "$AS"; then
8271 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 8272else
1c710c3c
DJ
8273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8274for as_dir in $PATH
8275do
8276 IFS=$as_save_IFS
8277 test -z "$as_dir" && as_dir=.
5213506e
RW
8278 for ac_exec_ext in '' $ac_executable_extensions; do
8279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8280 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 8281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8282 break 2
8283 fi
8284done
5213506e
RW
8285 done
8286IFS=$as_save_IFS
1c710c3c 8287
ca9f4b81
AO
8288fi
8289fi
1c710c3c 8290AS=$ac_cv_prog_AS
ca9f4b81 8291if test -n "$AS"; then
5213506e
RW
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8293$as_echo "$AS" >&6; }
ca9f4b81 8294else
5213506e
RW
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296$as_echo "no" >&6; }
ca9f4b81
AO
8297fi
8298
5213506e 8299
2693c0b0
PB
8300 fi
8301 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8302 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8303set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8305$as_echo_n "checking for $ac_word... " >&6; }
8306if test "${ac_cv_prog_AS+set}" = set; then :
8307 $as_echo_n "(cached) " >&6
ca9f4b81 8308else
2693c0b0
PB
8309 if test -n "$AS"; then
8310 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 8311else
1c710c3c
DJ
8312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8313for as_dir in $PATH
8314do
8315 IFS=$as_save_IFS
8316 test -z "$as_dir" && as_dir=.
5213506e
RW
8317 for ac_exec_ext in '' $ac_executable_extensions; do
8318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8319 ac_cv_prog_AS="${ncn_progname}"
5213506e 8320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8321 break 2
8322 fi
8323done
5213506e
RW
8324 done
8325IFS=$as_save_IFS
1c710c3c 8326
ca9f4b81
AO
8327fi
8328fi
1c710c3c 8329AS=$ac_cv_prog_AS
2693c0b0 8330if test -n "$AS"; then
5213506e
RW
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8332$as_echo "$AS" >&6; }
ca9f4b81 8333else
5213506e
RW
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8335$as_echo "no" >&6; }
ca9f4b81 8336fi
1c710c3c 8337
5213506e 8338
2693c0b0
PB
8339 fi
8340 test -n "$ac_cv_prog_AS" && break
8341done
8342
8343if test -z "$ac_cv_prog_AS" ; then
8344 set dummy as
8345 if test $build = $host ; then
8346 AS="$2"
ca9f4b81 8347 else
2693c0b0 8348 AS="${ncn_tool_prefix}$2"
ca9f4b81 8349 fi
ca9f4b81
AO
8350fi
8351
278a7a38
AO
8352
8353
8354if test -n "$DLLTOOL"; then
8355 ac_cv_prog_DLLTOOL=$DLLTOOL
8356elif test -n "$ac_cv_prog_DLLTOOL"; then
8357 DLLTOOL=$ac_cv_prog_DLLTOOL
8358fi
8359
8360if test -n "$ac_cv_prog_DLLTOOL"; then
8361 for ncn_progname in dlltool; do
8362 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8363set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8365$as_echo_n "checking for $ac_word... " >&6; }
8366if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8367 $as_echo_n "(cached) " >&6
278a7a38
AO
8368else
8369 if test -n "$DLLTOOL"; then
8370 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8371else
8372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8373for as_dir in $PATH
8374do
8375 IFS=$as_save_IFS
8376 test -z "$as_dir" && as_dir=.
5213506e
RW
8377 for ac_exec_ext in '' $ac_executable_extensions; do
8378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8379 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8381 break 2
8382 fi
8383done
5213506e
RW
8384 done
8385IFS=$as_save_IFS
278a7a38
AO
8386
8387fi
8388fi
8389DLLTOOL=$ac_cv_prog_DLLTOOL
8390if test -n "$DLLTOOL"; then
5213506e
RW
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8392$as_echo "$DLLTOOL" >&6; }
278a7a38 8393else
5213506e
RW
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395$as_echo "no" >&6; }
278a7a38
AO
8396fi
8397
5213506e 8398
278a7a38
AO
8399 done
8400fi
8401
8402for ncn_progname in dlltool; do
2693c0b0
PB
8403 if test -n "$ncn_tool_prefix"; then
8404 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8405set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8407$as_echo_n "checking for $ac_word... " >&6; }
8408if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8409 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8410else
8411 if test -n "$DLLTOOL"; then
8412 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8413else
1c710c3c
DJ
8414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8415for as_dir in $PATH
8416do
8417 IFS=$as_save_IFS
8418 test -z "$as_dir" && as_dir=.
5213506e
RW
8419 for ac_exec_ext in '' $ac_executable_extensions; do
8420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8421 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8423 break 2
8424 fi
8425done
5213506e
RW
8426 done
8427IFS=$as_save_IFS
1c710c3c 8428
ca9f4b81
AO
8429fi
8430fi
1c710c3c 8431DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8432if test -n "$DLLTOOL"; then
5213506e
RW
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8434$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8435else
5213506e
RW
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8437$as_echo "no" >&6; }
ca9f4b81
AO
8438fi
8439
5213506e 8440
2693c0b0
PB
8441 fi
8442 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8443 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8444set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8446$as_echo_n "checking for $ac_word... " >&6; }
8447if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8448 $as_echo_n "(cached) " >&6
ca9f4b81 8449else
2693c0b0
PB
8450 if test -n "$DLLTOOL"; then
8451 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8452else
1c710c3c
DJ
8453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8454for as_dir in $PATH
8455do
8456 IFS=$as_save_IFS
8457 test -z "$as_dir" && as_dir=.
5213506e
RW
8458 for ac_exec_ext in '' $ac_executable_extensions; do
8459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8460 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8462 break 2
8463 fi
8464done
5213506e
RW
8465 done
8466IFS=$as_save_IFS
1c710c3c 8467
ca9f4b81
AO
8468fi
8469fi
1c710c3c 8470DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8471if test -n "$DLLTOOL"; then
5213506e
RW
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8473$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8474else
5213506e
RW
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8476$as_echo "no" >&6; }
ca9f4b81 8477fi
1c710c3c 8478
5213506e 8479
2693c0b0
PB
8480 fi
8481 test -n "$ac_cv_prog_DLLTOOL" && break
8482done
8483
8484if test -z "$ac_cv_prog_DLLTOOL" ; then
8485 set dummy dlltool
8486 if test $build = $host ; then
8487 DLLTOOL="$2"
ca9f4b81 8488 else
2693c0b0 8489 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8490 fi
ca9f4b81
AO
8491fi
8492
278a7a38
AO
8493
8494
8495if test -n "$LD"; then
8496 ac_cv_prog_LD=$LD
8497elif test -n "$ac_cv_prog_LD"; then
8498 LD=$ac_cv_prog_LD
8499fi
8500
8501if test -n "$ac_cv_prog_LD"; then
8502 for ncn_progname in ld; do
8503 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8504set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8506$as_echo_n "checking for $ac_word... " >&6; }
8507if test "${ac_cv_prog_LD+set}" = set; then :
8508 $as_echo_n "(cached) " >&6
278a7a38
AO
8509else
8510 if test -n "$LD"; then
8511 ac_cv_prog_LD="$LD" # Let the user override the test.
8512else
8513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8514for as_dir in $PATH
8515do
8516 IFS=$as_save_IFS
8517 test -z "$as_dir" && as_dir=.
5213506e
RW
8518 for ac_exec_ext in '' $ac_executable_extensions; do
8519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8520 ac_cv_prog_LD="${ncn_progname}"
5213506e 8521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8522 break 2
8523 fi
8524done
5213506e
RW
8525 done
8526IFS=$as_save_IFS
278a7a38
AO
8527
8528fi
8529fi
8530LD=$ac_cv_prog_LD
8531if test -n "$LD"; then
5213506e
RW
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8533$as_echo "$LD" >&6; }
278a7a38 8534else
5213506e
RW
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8536$as_echo "no" >&6; }
278a7a38
AO
8537fi
8538
5213506e 8539
278a7a38
AO
8540 done
8541fi
8542
8543for ncn_progname in ld; do
2693c0b0
PB
8544 if test -n "$ncn_tool_prefix"; then
8545 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8546set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8548$as_echo_n "checking for $ac_word... " >&6; }
8549if test "${ac_cv_prog_LD+set}" = set; then :
8550 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8551else
8552 if test -n "$LD"; then
8553 ac_cv_prog_LD="$LD" # Let the user override the test.
8554else
1c710c3c
DJ
8555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8556for as_dir in $PATH
8557do
8558 IFS=$as_save_IFS
8559 test -z "$as_dir" && as_dir=.
5213506e
RW
8560 for ac_exec_ext in '' $ac_executable_extensions; do
8561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8562 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 8563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8564 break 2
8565 fi
8566done
5213506e
RW
8567 done
8568IFS=$as_save_IFS
1c710c3c 8569
ca9f4b81
AO
8570fi
8571fi
1c710c3c 8572LD=$ac_cv_prog_LD
ca9f4b81 8573if test -n "$LD"; then
5213506e
RW
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8575$as_echo "$LD" >&6; }
ca9f4b81 8576else
5213506e
RW
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8578$as_echo "no" >&6; }
ca9f4b81
AO
8579fi
8580
5213506e 8581
2693c0b0
PB
8582 fi
8583 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8584 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8585set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8587$as_echo_n "checking for $ac_word... " >&6; }
8588if test "${ac_cv_prog_LD+set}" = set; then :
8589 $as_echo_n "(cached) " >&6
ca9f4b81 8590else
2693c0b0
PB
8591 if test -n "$LD"; then
8592 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 8593else
1c710c3c
DJ
8594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8595for as_dir in $PATH
8596do
8597 IFS=$as_save_IFS
8598 test -z "$as_dir" && as_dir=.
5213506e
RW
8599 for ac_exec_ext in '' $ac_executable_extensions; do
8600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8601 ac_cv_prog_LD="${ncn_progname}"
5213506e 8602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8603 break 2
8604 fi
8605done
5213506e
RW
8606 done
8607IFS=$as_save_IFS
1c710c3c 8608
ca9f4b81
AO
8609fi
8610fi
1c710c3c 8611LD=$ac_cv_prog_LD
2693c0b0 8612if test -n "$LD"; then
5213506e
RW
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8614$as_echo "$LD" >&6; }
ca9f4b81 8615else
5213506e
RW
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8617$as_echo "no" >&6; }
ca9f4b81 8618fi
1c710c3c 8619
5213506e 8620
2693c0b0
PB
8621 fi
8622 test -n "$ac_cv_prog_LD" && break
8623done
8624
8625if test -z "$ac_cv_prog_LD" ; then
8626 set dummy ld
8627 if test $build = $host ; then
8628 LD="$2"
ca9f4b81 8629 else
2693c0b0 8630 LD="${ncn_tool_prefix}$2"
ca9f4b81 8631 fi
ca9f4b81
AO
8632fi
8633
278a7a38
AO
8634
8635
8636if test -n "$LIPO"; then
8637 ac_cv_prog_LIPO=$LIPO
8638elif test -n "$ac_cv_prog_LIPO"; then
8639 LIPO=$ac_cv_prog_LIPO
8640fi
8641
8642if test -n "$ac_cv_prog_LIPO"; then
8643 for ncn_progname in lipo; do
8644 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8645set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8647$as_echo_n "checking for $ac_word... " >&6; }
8648if test "${ac_cv_prog_LIPO+set}" = set; then :
8649 $as_echo_n "(cached) " >&6
278a7a38
AO
8650else
8651 if test -n "$LIPO"; then
8652 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8653else
8654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8655for as_dir in $PATH
8656do
8657 IFS=$as_save_IFS
8658 test -z "$as_dir" && as_dir=.
5213506e
RW
8659 for ac_exec_ext in '' $ac_executable_extensions; do
8660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8661 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8663 break 2
8664 fi
8665done
5213506e
RW
8666 done
8667IFS=$as_save_IFS
278a7a38
AO
8668
8669fi
8670fi
8671LIPO=$ac_cv_prog_LIPO
8672if test -n "$LIPO"; then
5213506e
RW
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8674$as_echo "$LIPO" >&6; }
278a7a38 8675else
5213506e
RW
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8677$as_echo "no" >&6; }
278a7a38
AO
8678fi
8679
5213506e 8680
278a7a38
AO
8681 done
8682fi
8683
8684for ncn_progname in lipo; do
2abefe3d
PB
8685 if test -n "$ncn_tool_prefix"; then
8686 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8687set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8689$as_echo_n "checking for $ac_word... " >&6; }
8690if test "${ac_cv_prog_LIPO+set}" = set; then :
8691 $as_echo_n "(cached) " >&6
2abefe3d
PB
8692else
8693 if test -n "$LIPO"; then
8694 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8695else
1c710c3c
DJ
8696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8697for as_dir in $PATH
8698do
8699 IFS=$as_save_IFS
8700 test -z "$as_dir" && as_dir=.
5213506e
RW
8701 for ac_exec_ext in '' $ac_executable_extensions; do
8702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8703 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 8704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8705 break 2
8706 fi
8707done
5213506e
RW
8708 done
8709IFS=$as_save_IFS
1c710c3c 8710
2abefe3d
PB
8711fi
8712fi
1c710c3c 8713LIPO=$ac_cv_prog_LIPO
2abefe3d 8714if test -n "$LIPO"; then
5213506e
RW
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8716$as_echo "$LIPO" >&6; }
2abefe3d 8717else
5213506e
RW
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8719$as_echo "no" >&6; }
2abefe3d
PB
8720fi
8721
5213506e 8722
2abefe3d
PB
8723 fi
8724 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8725 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8726set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8728$as_echo_n "checking for $ac_word... " >&6; }
8729if test "${ac_cv_prog_LIPO+set}" = set; then :
8730 $as_echo_n "(cached) " >&6
2abefe3d
PB
8731else
8732 if test -n "$LIPO"; then
8733 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8734else
1c710c3c
DJ
8735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8736for as_dir in $PATH
8737do
8738 IFS=$as_save_IFS
8739 test -z "$as_dir" && as_dir=.
5213506e
RW
8740 for ac_exec_ext in '' $ac_executable_extensions; do
8741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8742 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8744 break 2
8745 fi
8746done
5213506e
RW
8747 done
8748IFS=$as_save_IFS
1c710c3c 8749
2abefe3d
PB
8750fi
8751fi
1c710c3c 8752LIPO=$ac_cv_prog_LIPO
2abefe3d 8753if test -n "$LIPO"; then
5213506e
RW
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8755$as_echo "$LIPO" >&6; }
2abefe3d 8756else
5213506e
RW
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8758$as_echo "no" >&6; }
2abefe3d 8759fi
1c710c3c 8760
5213506e 8761
2abefe3d
PB
8762 fi
8763 test -n "$ac_cv_prog_LIPO" && break
8764done
8765
8766if test -z "$ac_cv_prog_LIPO" ; then
8767 set dummy lipo
8768 if test $build = $host ; then
8769 LIPO="$2"
8770 else
8771 LIPO="${ncn_tool_prefix}$2"
8772 fi
8773fi
8774
278a7a38
AO
8775
8776
8777if test -n "$NM"; then
8778 ac_cv_prog_NM=$NM
8779elif test -n "$ac_cv_prog_NM"; then
8780 NM=$ac_cv_prog_NM
8781fi
8782
8783if test -n "$ac_cv_prog_NM"; then
8784 for ncn_progname in nm; do
8785 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8786set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8788$as_echo_n "checking for $ac_word... " >&6; }
8789if test "${ac_cv_prog_NM+set}" = set; then :
8790 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8791else
8792 if test -n "$NM"; then
8793 ac_cv_prog_NM="$NM" # Let the user override the test.
8794else
1c710c3c
DJ
8795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8796for as_dir in $PATH
8797do
8798 IFS=$as_save_IFS
8799 test -z "$as_dir" && as_dir=.
5213506e
RW
8800 for ac_exec_ext in '' $ac_executable_extensions; do
8801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8802 ac_cv_prog_NM="${ncn_progname}"
5213506e 8803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8804 break 2
8805 fi
8806done
5213506e
RW
8807 done
8808IFS=$as_save_IFS
1c710c3c 8809
ca9f4b81
AO
8810fi
8811fi
1c710c3c 8812NM=$ac_cv_prog_NM
ca9f4b81 8813if test -n "$NM"; then
5213506e
RW
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8815$as_echo "$NM" >&6; }
ca9f4b81 8816else
5213506e
RW
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8818$as_echo "no" >&6; }
ca9f4b81
AO
8819fi
8820
5213506e 8821
278a7a38
AO
8822 done
8823fi
8824
8825for ncn_progname in nm; do
8826 if test -n "$ncn_tool_prefix"; then
8827 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8828set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8830$as_echo_n "checking for $ac_word... " >&6; }
8831if test "${ac_cv_prog_NM+set}" = set; then :
8832 $as_echo_n "(cached) " >&6
ca9f4b81 8833else
2693c0b0
PB
8834 if test -n "$NM"; then
8835 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 8836else
1c710c3c
DJ
8837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8838for as_dir in $PATH
8839do
8840 IFS=$as_save_IFS
8841 test -z "$as_dir" && as_dir=.
5213506e
RW
8842 for ac_exec_ext in '' $ac_executable_extensions; do
8843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8844 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 8845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8846 break 2
8847 fi
8848done
5213506e
RW
8849 done
8850IFS=$as_save_IFS
1c710c3c 8851
ca9f4b81
AO
8852fi
8853fi
1c710c3c 8854NM=$ac_cv_prog_NM
2693c0b0 8855if test -n "$NM"; then
5213506e
RW
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8857$as_echo "$NM" >&6; }
ca9f4b81 8858else
5213506e
RW
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8860$as_echo "no" >&6; }
ca9f4b81 8861fi
1c710c3c 8862
5213506e 8863
2693c0b0 8864 fi
278a7a38
AO
8865 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8866 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8867set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8869$as_echo_n "checking for $ac_word... " >&6; }
8870if test "${ac_cv_prog_NM+set}" = set; then :
8871 $as_echo_n "(cached) " >&6
278a7a38
AO
8872else
8873 if test -n "$NM"; then
8874 ac_cv_prog_NM="$NM" # Let the user override the test.
8875else
8876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8877for as_dir in $PATH
8878do
8879 IFS=$as_save_IFS
8880 test -z "$as_dir" && as_dir=.
5213506e
RW
8881 for ac_exec_ext in '' $ac_executable_extensions; do
8882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8883 ac_cv_prog_NM="${ncn_progname}"
5213506e 8884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8885 break 2
8886 fi
8887done
5213506e
RW
8888 done
8889IFS=$as_save_IFS
278a7a38
AO
8890
8891fi
8892fi
8893NM=$ac_cv_prog_NM
8894if test -n "$NM"; then
5213506e
RW
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8896$as_echo "$NM" >&6; }
278a7a38 8897else
5213506e
RW
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8899$as_echo "no" >&6; }
278a7a38
AO
8900fi
8901
5213506e 8902
278a7a38
AO
8903 fi
8904 test -n "$ac_cv_prog_NM" && break
8905done
8906
8907if test -z "$ac_cv_prog_NM" ; then
8908 set dummy nm
8909 if test $build = $host ; then
8910 NM="$2"
8911 else
8912 NM="${ncn_tool_prefix}$2"
8913 fi
8914fi
8915
8916
8917
8918if test -n "$RANLIB"; then
8919 ac_cv_prog_RANLIB=$RANLIB
8920elif test -n "$ac_cv_prog_RANLIB"; then
8921 RANLIB=$ac_cv_prog_RANLIB
8922fi
8923
8924if test -n "$ac_cv_prog_RANLIB"; then
8925 for ncn_progname in ranlib; do
8926 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8927set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8929$as_echo_n "checking for $ac_word... " >&6; }
8930if test "${ac_cv_prog_RANLIB+set}" = set; then :
8931 $as_echo_n "(cached) " >&6
278a7a38
AO
8932else
8933 if test -n "$RANLIB"; then
8934 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8935else
8936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8937for as_dir in $PATH
8938do
8939 IFS=$as_save_IFS
8940 test -z "$as_dir" && as_dir=.
5213506e
RW
8941 for ac_exec_ext in '' $ac_executable_extensions; do
8942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8943 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8945 break 2
8946 fi
8947done
5213506e
RW
8948 done
8949IFS=$as_save_IFS
278a7a38
AO
8950
8951fi
8952fi
8953RANLIB=$ac_cv_prog_RANLIB
8954if test -n "$RANLIB"; then
5213506e
RW
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8956$as_echo "$RANLIB" >&6; }
278a7a38 8957else
5213506e
RW
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8959$as_echo "no" >&6; }
278a7a38
AO
8960fi
8961
5213506e 8962
278a7a38
AO
8963 done
8964fi
ca9f4b81 8965
278a7a38 8966for ncn_progname in ranlib; do
2693c0b0
PB
8967 if test -n "$ncn_tool_prefix"; then
8968 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8969set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8971$as_echo_n "checking for $ac_word... " >&6; }
8972if test "${ac_cv_prog_RANLIB+set}" = set; then :
8973 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8974else
8975 if test -n "$RANLIB"; then
8976 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8977else
1c710c3c
DJ
8978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8979for as_dir in $PATH
8980do
8981 IFS=$as_save_IFS
8982 test -z "$as_dir" && as_dir=.
5213506e
RW
8983 for ac_exec_ext in '' $ac_executable_extensions; do
8984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8985 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 8986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8987 break 2
8988 fi
8989done
5213506e
RW
8990 done
8991IFS=$as_save_IFS
1c710c3c 8992
ca9f4b81
AO
8993fi
8994fi
1c710c3c 8995RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 8996if test -n "$RANLIB"; then
5213506e
RW
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8998$as_echo "$RANLIB" >&6; }
ca9f4b81 8999else
5213506e
RW
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9001$as_echo "no" >&6; }
ca9f4b81
AO
9002fi
9003
5213506e 9004
2693c0b0
PB
9005 fi
9006 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9007 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9008set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9010$as_echo_n "checking for $ac_word... " >&6; }
9011if test "${ac_cv_prog_RANLIB+set}" = set; then :
9012 $as_echo_n "(cached) " >&6
ca9f4b81 9013else
2693c0b0
PB
9014 if test -n "$RANLIB"; then
9015 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 9016else
1c710c3c
DJ
9017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9018for as_dir in $PATH
9019do
9020 IFS=$as_save_IFS
9021 test -z "$as_dir" && as_dir=.
5213506e
RW
9022 for ac_exec_ext in '' $ac_executable_extensions; do
9023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9024 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 9025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9026 break 2
9027 fi
9028done
5213506e
RW
9029 done
9030IFS=$as_save_IFS
1c710c3c 9031
ca9f4b81
AO
9032fi
9033fi
1c710c3c 9034RANLIB=$ac_cv_prog_RANLIB
2693c0b0 9035if test -n "$RANLIB"; then
5213506e
RW
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9037$as_echo "$RANLIB" >&6; }
ca9f4b81 9038else
5213506e
RW
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9040$as_echo "no" >&6; }
ca9f4b81 9041fi
1c710c3c 9042
5213506e 9043
ca9f4b81 9044 fi
2693c0b0
PB
9045 test -n "$ac_cv_prog_RANLIB" && break
9046done
9047
9048if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 9049 RANLIB="true"
ca9f4b81
AO
9050fi
9051
278a7a38
AO
9052
9053
9054if test -n "$STRIP"; then
9055 ac_cv_prog_STRIP=$STRIP
9056elif test -n "$ac_cv_prog_STRIP"; then
9057 STRIP=$ac_cv_prog_STRIP
9058fi
9059
9060if test -n "$ac_cv_prog_STRIP"; then
9061 for ncn_progname in strip; do
9062 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9063set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9065$as_echo_n "checking for $ac_word... " >&6; }
9066if test "${ac_cv_prog_STRIP+set}" = set; then :
9067 $as_echo_n "(cached) " >&6
278a7a38
AO
9068else
9069 if test -n "$STRIP"; then
9070 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9071else
9072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9073for as_dir in $PATH
9074do
9075 IFS=$as_save_IFS
9076 test -z "$as_dir" && as_dir=.
5213506e
RW
9077 for ac_exec_ext in '' $ac_executable_extensions; do
9078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9079 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9081 break 2
9082 fi
9083done
5213506e
RW
9084 done
9085IFS=$as_save_IFS
278a7a38
AO
9086
9087fi
9088fi
9089STRIP=$ac_cv_prog_STRIP
9090if test -n "$STRIP"; then
5213506e
RW
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9092$as_echo "$STRIP" >&6; }
278a7a38 9093else
5213506e
RW
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9095$as_echo "no" >&6; }
278a7a38
AO
9096fi
9097
5213506e 9098
278a7a38
AO
9099 done
9100fi
9101
9102for ncn_progname in strip; do
2abefe3d
PB
9103 if test -n "$ncn_tool_prefix"; then
9104 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9105set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9107$as_echo_n "checking for $ac_word... " >&6; }
9108if test "${ac_cv_prog_STRIP+set}" = set; then :
9109 $as_echo_n "(cached) " >&6
2abefe3d
PB
9110else
9111 if test -n "$STRIP"; then
9112 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9113else
1c710c3c
DJ
9114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9115for as_dir in $PATH
9116do
9117 IFS=$as_save_IFS
9118 test -z "$as_dir" && as_dir=.
5213506e
RW
9119 for ac_exec_ext in '' $ac_executable_extensions; do
9120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9121 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9123 break 2
9124 fi
9125done
5213506e
RW
9126 done
9127IFS=$as_save_IFS
1c710c3c 9128
2abefe3d
PB
9129fi
9130fi
1c710c3c 9131STRIP=$ac_cv_prog_STRIP
2abefe3d 9132if test -n "$STRIP"; then
5213506e
RW
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9134$as_echo "$STRIP" >&6; }
2abefe3d 9135else
5213506e
RW
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9137$as_echo "no" >&6; }
2abefe3d
PB
9138fi
9139
5213506e 9140
2abefe3d
PB
9141 fi
9142 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9143 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9144set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9146$as_echo_n "checking for $ac_word... " >&6; }
9147if test "${ac_cv_prog_STRIP+set}" = set; then :
9148 $as_echo_n "(cached) " >&6
2abefe3d
PB
9149else
9150 if test -n "$STRIP"; then
9151 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9152else
1c710c3c
DJ
9153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9154for as_dir in $PATH
9155do
9156 IFS=$as_save_IFS
9157 test -z "$as_dir" && as_dir=.
5213506e
RW
9158 for ac_exec_ext in '' $ac_executable_extensions; do
9159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9160 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9162 break 2
9163 fi
9164done
5213506e
RW
9165 done
9166IFS=$as_save_IFS
1c710c3c 9167
2abefe3d
PB
9168fi
9169fi
1c710c3c 9170STRIP=$ac_cv_prog_STRIP
2abefe3d 9171if test -n "$STRIP"; then
5213506e
RW
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9173$as_echo "$STRIP" >&6; }
2abefe3d 9174else
5213506e
RW
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9176$as_echo "no" >&6; }
2abefe3d 9177fi
1c710c3c 9178
5213506e 9179
2abefe3d
PB
9180 fi
9181 test -n "$ac_cv_prog_STRIP" && break
9182done
9183
9184if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 9185 STRIP="true"
2abefe3d
PB
9186fi
9187
278a7a38
AO
9188
9189
9190if test -n "$WINDRES"; then
9191 ac_cv_prog_WINDRES=$WINDRES
9192elif test -n "$ac_cv_prog_WINDRES"; then
9193 WINDRES=$ac_cv_prog_WINDRES
9194fi
9195
9196if test -n "$ac_cv_prog_WINDRES"; then
9197 for ncn_progname in windres; do
9198 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9199set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9201$as_echo_n "checking for $ac_word... " >&6; }
9202if test "${ac_cv_prog_WINDRES+set}" = set; then :
9203 $as_echo_n "(cached) " >&6
278a7a38
AO
9204else
9205 if test -n "$WINDRES"; then
9206 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9207else
9208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9209for as_dir in $PATH
9210do
9211 IFS=$as_save_IFS
9212 test -z "$as_dir" && as_dir=.
5213506e
RW
9213 for ac_exec_ext in '' $ac_executable_extensions; do
9214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9215 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9217 break 2
9218 fi
9219done
5213506e
RW
9220 done
9221IFS=$as_save_IFS
278a7a38
AO
9222
9223fi
9224fi
9225WINDRES=$ac_cv_prog_WINDRES
9226if test -n "$WINDRES"; then
5213506e
RW
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9228$as_echo "$WINDRES" >&6; }
278a7a38 9229else
5213506e
RW
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9231$as_echo "no" >&6; }
278a7a38
AO
9232fi
9233
5213506e 9234
278a7a38
AO
9235 done
9236fi
9237
9238for ncn_progname in windres; do
2693c0b0
PB
9239 if test -n "$ncn_tool_prefix"; then
9240 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9241set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9243$as_echo_n "checking for $ac_word... " >&6; }
9244if test "${ac_cv_prog_WINDRES+set}" = set; then :
9245 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9246else
9247 if test -n "$WINDRES"; then
9248 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9249else
1c710c3c
DJ
9250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9251for as_dir in $PATH
9252do
9253 IFS=$as_save_IFS
9254 test -z "$as_dir" && as_dir=.
5213506e
RW
9255 for ac_exec_ext in '' $ac_executable_extensions; do
9256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9257 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 9258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9259 break 2
9260 fi
9261done
5213506e
RW
9262 done
9263IFS=$as_save_IFS
1c710c3c 9264
ca9f4b81
AO
9265fi
9266fi
1c710c3c 9267WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 9268if test -n "$WINDRES"; then
5213506e
RW
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9270$as_echo "$WINDRES" >&6; }
ca9f4b81 9271else
5213506e
RW
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9273$as_echo "no" >&6; }
ca9f4b81
AO
9274fi
9275
5213506e 9276
2693c0b0
PB
9277 fi
9278 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9279 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9280set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9282$as_echo_n "checking for $ac_word... " >&6; }
9283if test "${ac_cv_prog_WINDRES+set}" = set; then :
9284 $as_echo_n "(cached) " >&6
ca9f4b81 9285else
2693c0b0
PB
9286 if test -n "$WINDRES"; then
9287 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 9288else
1c710c3c
DJ
9289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9290for as_dir in $PATH
9291do
9292 IFS=$as_save_IFS
9293 test -z "$as_dir" && as_dir=.
5213506e
RW
9294 for ac_exec_ext in '' $ac_executable_extensions; do
9295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9296 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9298 break 2
9299 fi
9300done
5213506e
RW
9301 done
9302IFS=$as_save_IFS
1c710c3c 9303
ca9f4b81
AO
9304fi
9305fi
1c710c3c 9306WINDRES=$ac_cv_prog_WINDRES
2693c0b0 9307if test -n "$WINDRES"; then
5213506e
RW
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9309$as_echo "$WINDRES" >&6; }
ca9f4b81 9310else
5213506e
RW
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9312$as_echo "no" >&6; }
ca9f4b81 9313fi
1c710c3c 9314
5213506e 9315
2693c0b0
PB
9316 fi
9317 test -n "$ac_cv_prog_WINDRES" && break
9318done
9319
9320if test -z "$ac_cv_prog_WINDRES" ; then
9321 set dummy windres
9322 if test $build = $host ; then
9323 WINDRES="$2"
ca9f4b81 9324 else
2693c0b0 9325 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9326 fi
ca9f4b81
AO
9327fi
9328
278a7a38
AO
9329
9330
901119ae
KT
9331if test -n "$WINDMC"; then
9332 ac_cv_prog_WINDMC=$WINDMC
9333elif test -n "$ac_cv_prog_WINDMC"; then
9334 WINDMC=$ac_cv_prog_WINDMC
9335fi
9336
9337if test -n "$ac_cv_prog_WINDMC"; then
9338 for ncn_progname in windmc; do
9339 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9340set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9342$as_echo_n "checking for $ac_word... " >&6; }
9343if test "${ac_cv_prog_WINDMC+set}" = set; then :
9344 $as_echo_n "(cached) " >&6
901119ae
KT
9345else
9346 if test -n "$WINDMC"; then
9347 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9348else
9349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9350for as_dir in $PATH
9351do
9352 IFS=$as_save_IFS
9353 test -z "$as_dir" && as_dir=.
5213506e
RW
9354 for ac_exec_ext in '' $ac_executable_extensions; do
9355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9356 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9358 break 2
9359 fi
9360done
5213506e
RW
9361 done
9362IFS=$as_save_IFS
901119ae
KT
9363
9364fi
9365fi
9366WINDMC=$ac_cv_prog_WINDMC
9367if test -n "$WINDMC"; then
5213506e
RW
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9369$as_echo "$WINDMC" >&6; }
901119ae 9370else
5213506e
RW
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9372$as_echo "no" >&6; }
901119ae
KT
9373fi
9374
5213506e 9375
901119ae
KT
9376 done
9377fi
9378
9379for ncn_progname in windmc; do
9380 if test -n "$ncn_tool_prefix"; then
9381 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9382set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9384$as_echo_n "checking for $ac_word... " >&6; }
9385if test "${ac_cv_prog_WINDMC+set}" = set; then :
9386 $as_echo_n "(cached) " >&6
901119ae
KT
9387else
9388 if test -n "$WINDMC"; then
9389 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9390else
9391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9392for as_dir in $PATH
9393do
9394 IFS=$as_save_IFS
9395 test -z "$as_dir" && as_dir=.
5213506e
RW
9396 for ac_exec_ext in '' $ac_executable_extensions; do
9397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9398 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9400 break 2
9401 fi
9402done
5213506e
RW
9403 done
9404IFS=$as_save_IFS
901119ae
KT
9405
9406fi
9407fi
9408WINDMC=$ac_cv_prog_WINDMC
9409if test -n "$WINDMC"; then
5213506e
RW
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9411$as_echo "$WINDMC" >&6; }
901119ae 9412else
5213506e
RW
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9414$as_echo "no" >&6; }
901119ae
KT
9415fi
9416
5213506e 9417
901119ae
KT
9418 fi
9419 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9420 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9421set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9423$as_echo_n "checking for $ac_word... " >&6; }
9424if test "${ac_cv_prog_WINDMC+set}" = set; then :
9425 $as_echo_n "(cached) " >&6
901119ae
KT
9426else
9427 if test -n "$WINDMC"; then
9428 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9429else
9430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9431for as_dir in $PATH
9432do
9433 IFS=$as_save_IFS
9434 test -z "$as_dir" && as_dir=.
5213506e
RW
9435 for ac_exec_ext in '' $ac_executable_extensions; do
9436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9437 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9439 break 2
9440 fi
9441done
5213506e
RW
9442 done
9443IFS=$as_save_IFS
901119ae
KT
9444
9445fi
9446fi
9447WINDMC=$ac_cv_prog_WINDMC
9448if test -n "$WINDMC"; then
5213506e
RW
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9450$as_echo "$WINDMC" >&6; }
901119ae 9451else
5213506e
RW
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9453$as_echo "no" >&6; }
901119ae
KT
9454fi
9455
5213506e 9456
901119ae
KT
9457 fi
9458 test -n "$ac_cv_prog_WINDMC" && break
9459done
9460
9461if test -z "$ac_cv_prog_WINDMC" ; then
9462 set dummy windmc
9463 if test $build = $host ; then
9464 WINDMC="$2"
9465 else
9466 WINDMC="${ncn_tool_prefix}$2"
9467 fi
9468fi
9469
9470
9471
278a7a38
AO
9472if test -n "$OBJCOPY"; then
9473 ac_cv_prog_OBJCOPY=$OBJCOPY
9474elif test -n "$ac_cv_prog_OBJCOPY"; then
9475 OBJCOPY=$ac_cv_prog_OBJCOPY
9476fi
9477
9478if test -n "$ac_cv_prog_OBJCOPY"; then
9479 for ncn_progname in objcopy; do
9480 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9481set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9483$as_echo_n "checking for $ac_word... " >&6; }
9484if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9485 $as_echo_n "(cached) " >&6
278a7a38
AO
9486else
9487 if test -n "$OBJCOPY"; then
9488 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9489else
9490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9491for as_dir in $PATH
9492do
9493 IFS=$as_save_IFS
9494 test -z "$as_dir" && as_dir=.
5213506e
RW
9495 for ac_exec_ext in '' $ac_executable_extensions; do
9496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9497 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9499 break 2
9500 fi
9501done
5213506e
RW
9502 done
9503IFS=$as_save_IFS
278a7a38
AO
9504
9505fi
9506fi
9507OBJCOPY=$ac_cv_prog_OBJCOPY
9508if test -n "$OBJCOPY"; then
5213506e
RW
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9510$as_echo "$OBJCOPY" >&6; }
278a7a38 9511else
5213506e
RW
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9513$as_echo "no" >&6; }
278a7a38
AO
9514fi
9515
5213506e 9516
278a7a38
AO
9517 done
9518fi
9519
9520for ncn_progname in objcopy; do
2693c0b0
PB
9521 if test -n "$ncn_tool_prefix"; then
9522 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9523set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9525$as_echo_n "checking for $ac_word... " >&6; }
9526if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9527 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9528else
9529 if test -n "$OBJCOPY"; then
9530 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9531else
1c710c3c
DJ
9532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9533for as_dir in $PATH
9534do
9535 IFS=$as_save_IFS
9536 test -z "$as_dir" && as_dir=.
5213506e
RW
9537 for ac_exec_ext in '' $ac_executable_extensions; do
9538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9539 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9541 break 2
9542 fi
9543done
5213506e
RW
9544 done
9545IFS=$as_save_IFS
1c710c3c 9546
ca9f4b81
AO
9547fi
9548fi
1c710c3c 9549OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 9550if test -n "$OBJCOPY"; then
5213506e
RW
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9552$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9553else
5213506e
RW
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9555$as_echo "no" >&6; }
ca9f4b81
AO
9556fi
9557
5213506e 9558
2693c0b0
PB
9559 fi
9560 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9561 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9562set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9564$as_echo_n "checking for $ac_word... " >&6; }
9565if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9566 $as_echo_n "(cached) " >&6
ca9f4b81 9567else
2693c0b0
PB
9568 if test -n "$OBJCOPY"; then
9569 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 9570else
1c710c3c
DJ
9571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9572for as_dir in $PATH
9573do
9574 IFS=$as_save_IFS
9575 test -z "$as_dir" && as_dir=.
5213506e
RW
9576 for ac_exec_ext in '' $ac_executable_extensions; do
9577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9578 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9580 break 2
9581 fi
9582done
5213506e
RW
9583 done
9584IFS=$as_save_IFS
1c710c3c 9585
ca9f4b81
AO
9586fi
9587fi
1c710c3c 9588OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 9589if test -n "$OBJCOPY"; then
5213506e
RW
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9591$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9592else
5213506e
RW
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9594$as_echo "no" >&6; }
ca9f4b81 9595fi
1c710c3c 9596
5213506e 9597
2693c0b0
PB
9598 fi
9599 test -n "$ac_cv_prog_OBJCOPY" && break
9600done
9601
9602if test -z "$ac_cv_prog_OBJCOPY" ; then
9603 set dummy objcopy
9604 if test $build = $host ; then
9605 OBJCOPY="$2"
ca9f4b81 9606 else
2693c0b0 9607 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 9608 fi
ca9f4b81
AO
9609fi
9610
278a7a38
AO
9611
9612
9613if test -n "$OBJDUMP"; then
9614 ac_cv_prog_OBJDUMP=$OBJDUMP
9615elif test -n "$ac_cv_prog_OBJDUMP"; then
9616 OBJDUMP=$ac_cv_prog_OBJDUMP
9617fi
9618
9619if test -n "$ac_cv_prog_OBJDUMP"; then
9620 for ncn_progname in objdump; do
9621 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9622set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9624$as_echo_n "checking for $ac_word... " >&6; }
9625if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9626 $as_echo_n "(cached) " >&6
278a7a38
AO
9627else
9628 if test -n "$OBJDUMP"; then
9629 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9630else
9631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9632for as_dir in $PATH
9633do
9634 IFS=$as_save_IFS
9635 test -z "$as_dir" && as_dir=.
5213506e
RW
9636 for ac_exec_ext in '' $ac_executable_extensions; do
9637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9638 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9640 break 2
9641 fi
9642done
5213506e
RW
9643 done
9644IFS=$as_save_IFS
278a7a38
AO
9645
9646fi
9647fi
9648OBJDUMP=$ac_cv_prog_OBJDUMP
9649if test -n "$OBJDUMP"; then
5213506e
RW
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9651$as_echo "$OBJDUMP" >&6; }
278a7a38 9652else
5213506e
RW
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9654$as_echo "no" >&6; }
278a7a38
AO
9655fi
9656
5213506e 9657
278a7a38
AO
9658 done
9659fi
9660
9661for ncn_progname in objdump; do
2693c0b0
PB
9662 if test -n "$ncn_tool_prefix"; then
9663 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9664set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9666$as_echo_n "checking for $ac_word... " >&6; }
9667if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9668 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9669else
9670 if test -n "$OBJDUMP"; then
9671 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9672else
1c710c3c
DJ
9673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9674for as_dir in $PATH
9675do
9676 IFS=$as_save_IFS
9677 test -z "$as_dir" && as_dir=.
5213506e
RW
9678 for ac_exec_ext in '' $ac_executable_extensions; do
9679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9680 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9682 break 2
9683 fi
9684done
5213506e
RW
9685 done
9686IFS=$as_save_IFS
1c710c3c 9687
ca9f4b81
AO
9688fi
9689fi
1c710c3c 9690OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 9691if test -n "$OBJDUMP"; then
5213506e
RW
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9693$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9694else
5213506e
RW
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9696$as_echo "no" >&6; }
ca9f4b81
AO
9697fi
9698
5213506e 9699
2693c0b0
PB
9700 fi
9701 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9702 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9703set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9705$as_echo_n "checking for $ac_word... " >&6; }
9706if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9707 $as_echo_n "(cached) " >&6
ca9f4b81 9708else
2693c0b0
PB
9709 if test -n "$OBJDUMP"; then
9710 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 9711else
1c710c3c
DJ
9712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9713for as_dir in $PATH
9714do
9715 IFS=$as_save_IFS
9716 test -z "$as_dir" && as_dir=.
5213506e
RW
9717 for ac_exec_ext in '' $ac_executable_extensions; do
9718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9719 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9721 break 2
9722 fi
9723done
5213506e
RW
9724 done
9725IFS=$as_save_IFS
1c710c3c 9726
ca9f4b81
AO
9727fi
9728fi
1c710c3c 9729OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 9730if test -n "$OBJDUMP"; then
5213506e
RW
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9732$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9733else
5213506e
RW
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9735$as_echo "no" >&6; }
ca9f4b81 9736fi
1c710c3c 9737
5213506e 9738
2693c0b0
PB
9739 fi
9740 test -n "$ac_cv_prog_OBJDUMP" && break
9741done
9742
9743if test -z "$ac_cv_prog_OBJDUMP" ; then
9744 set dummy objdump
9745 if test $build = $host ; then
9746 OBJDUMP="$2"
ca9f4b81 9747 else
2693c0b0 9748 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 9749 fi
ca9f4b81
AO
9750fi
9751
671aa708
NN
9752
9753
e7a82751
RM
9754if test -n "$READELF"; then
9755 ac_cv_prog_READELF=$READELF
9756elif test -n "$ac_cv_prog_READELF"; then
9757 READELF=$ac_cv_prog_READELF
9758fi
9759
9760if test -n "$ac_cv_prog_READELF"; then
9761 for ncn_progname in readelf; do
9762 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9763set dummy ${ncn_progname}; ac_word=$2
9764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9765$as_echo_n "checking for $ac_word... " >&6; }
9766if test "${ac_cv_prog_READELF+set}" = set; then :
9767 $as_echo_n "(cached) " >&6
9768else
9769 if test -n "$READELF"; then
9770 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9771else
9772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9773for as_dir in $PATH
9774do
9775 IFS=$as_save_IFS
9776 test -z "$as_dir" && as_dir=.
9777 for ac_exec_ext in '' $ac_executable_extensions; do
9778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9779 ac_cv_prog_READELF="${ncn_progname}"
9780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9781 break 2
9782 fi
9783done
9784 done
9785IFS=$as_save_IFS
9786
9787fi
9788fi
9789READELF=$ac_cv_prog_READELF
9790if test -n "$READELF"; then
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9792$as_echo "$READELF" >&6; }
9793else
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9795$as_echo "no" >&6; }
9796fi
9797
9798
9799 done
9800fi
9801
9802for ncn_progname in readelf; do
9803 if test -n "$ncn_tool_prefix"; then
9804 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9805set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9807$as_echo_n "checking for $ac_word... " >&6; }
9808if test "${ac_cv_prog_READELF+set}" = set; then :
9809 $as_echo_n "(cached) " >&6
9810else
9811 if test -n "$READELF"; then
9812 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9813else
9814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9815for as_dir in $PATH
9816do
9817 IFS=$as_save_IFS
9818 test -z "$as_dir" && as_dir=.
9819 for ac_exec_ext in '' $ac_executable_extensions; do
9820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9821 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9823 break 2
9824 fi
9825done
9826 done
9827IFS=$as_save_IFS
9828
9829fi
9830fi
9831READELF=$ac_cv_prog_READELF
9832if test -n "$READELF"; then
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9834$as_echo "$READELF" >&6; }
9835else
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9837$as_echo "no" >&6; }
9838fi
9839
9840
9841 fi
9842 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9843 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9844set dummy ${ncn_progname}; ac_word=$2
9845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9846$as_echo_n "checking for $ac_word... " >&6; }
9847if test "${ac_cv_prog_READELF+set}" = set; then :
9848 $as_echo_n "(cached) " >&6
9849else
9850 if test -n "$READELF"; then
9851 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9852else
9853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9854for as_dir in $PATH
9855do
9856 IFS=$as_save_IFS
9857 test -z "$as_dir" && as_dir=.
9858 for ac_exec_ext in '' $ac_executable_extensions; do
9859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9860 ac_cv_prog_READELF="${ncn_progname}"
9861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9862 break 2
9863 fi
9864done
9865 done
9866IFS=$as_save_IFS
9867
9868fi
9869fi
9870READELF=$ac_cv_prog_READELF
9871if test -n "$READELF"; then
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9873$as_echo "$READELF" >&6; }
9874else
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9876$as_echo "no" >&6; }
9877fi
9878
9879
9880 fi
9881 test -n "$ac_cv_prog_READELF" && break
9882done
9883
9884if test -z "$ac_cv_prog_READELF" ; then
9885 set dummy readelf
9886 if test $build = $host ; then
9887 READELF="$2"
9888 else
9889 READELF="${ncn_tool_prefix}$2"
9890 fi
9891fi
9892
9893
9894
671aa708
NN
9895
9896
9897
2abefe3d 9898# Target tools.
1c710c3c 9899
5213506e
RW
9900# Check whether --with-build-time-tools was given.
9901if test "${with_build_time_tools+set}" = set; then :
9902 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
9903 x/*) ;;
9904 *)
9905 with_build_time_tools=
5213506e
RW
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9907$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
9908 ;;
9909 esac
ca9f4b81 9910else
e8b05380 9911 with_build_time_tools=
5213506e
RW
9912fi
9913
ca9f4b81 9914
278a7a38
AO
9915
9916
9917if test -n "$CC_FOR_TARGET"; then
9918 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9919elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9920 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9921fi
9922
9923if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9924 for ncn_progname in cc gcc; do
9925 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9926set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9928$as_echo_n "checking for $ac_word... " >&6; }
9929if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9930 $as_echo_n "(cached) " >&6
278a7a38
AO
9931else
9932 if test -n "$CC_FOR_TARGET"; then
9933 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9934else
9935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9936for as_dir in $PATH
9937do
9938 IFS=$as_save_IFS
9939 test -z "$as_dir" && as_dir=.
5213506e
RW
9940 for ac_exec_ext in '' $ac_executable_extensions; do
9941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9942 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9944 break 2
9945 fi
9946done
5213506e
RW
9947 done
9948IFS=$as_save_IFS
278a7a38
AO
9949
9950fi
9951fi
9952CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9953if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9955$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 9956else
5213506e
RW
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9958$as_echo "no" >&6; }
278a7a38
AO
9959fi
9960
5213506e 9961
278a7a38
AO
9962 done
9963fi
9964
9965if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9966 for ncn_progname in cc gcc; do
5213506e
RW
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9968$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9969 if test -x $with_build_time_tools/${ncn_progname}; then
9970 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9972$as_echo "yes" >&6; }
72a7ab82 9973 break
e8b05380 9974 else
5213506e
RW
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9976$as_echo "no" >&6; }
72a7ab82
AP
9977 fi
9978 done
4de997d1
PB
9979fi
9980
e8b05380
PB
9981if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9982 for ncn_progname in cc gcc; do
9983 if test -n "$ncn_target_tool_prefix"; then
9984 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9985set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9987$as_echo_n "checking for $ac_word... " >&6; }
9988if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9989 $as_echo_n "(cached) " >&6
4de997d1
PB
9990else
9991 if test -n "$CC_FOR_TARGET"; then
9992 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9993else
1c710c3c
DJ
9994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9995for as_dir in $PATH
9996do
9997 IFS=$as_save_IFS
9998 test -z "$as_dir" && as_dir=.
5213506e
RW
9999 for ac_exec_ext in '' $ac_executable_extensions; do
10000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10001 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10003 break 2
10004 fi
10005done
5213506e
RW
10006 done
10007IFS=$as_save_IFS
1c710c3c 10008
4de997d1
PB
10009fi
10010fi
1c710c3c 10011CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 10012if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10014$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 10015else
5213506e
RW
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10017$as_echo "no" >&6; }
4de997d1
PB
10018fi
10019
5213506e 10020
e8b05380
PB
10021 fi
10022 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10023 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10024set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10026$as_echo_n "checking for $ac_word... " >&6; }
10027if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10028 $as_echo_n "(cached) " >&6
4de997d1 10029else
2693c0b0
PB
10030 if test -n "$CC_FOR_TARGET"; then
10031 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 10032else
1c710c3c
DJ
10033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10034for as_dir in $PATH
10035do
10036 IFS=$as_save_IFS
10037 test -z "$as_dir" && as_dir=.
5213506e
RW
10038 for ac_exec_ext in '' $ac_executable_extensions; do
10039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10040 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 10041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10042 break 2
10043 fi
10044done
5213506e
RW
10045 done
10046IFS=$as_save_IFS
1c710c3c 10047
4de997d1
PB
10048fi
10049fi
1c710c3c 10050CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 10051if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10053$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 10054else
5213506e
RW
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10056$as_echo "no" >&6; }
4de997d1 10057fi
1c710c3c 10058
5213506e 10059
e8b05380
PB
10060 fi
10061 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10062 done
10063fi
1c710c3c 10064
2693c0b0
PB
10065if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10066 set dummy cc gcc
10067 if test $build = $target ; then
10068 CC_FOR_TARGET="$2"
4de997d1 10069 else
2693c0b0 10070 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10071 fi
1c00b503
PB
10072else
10073 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
10074fi
10075
278a7a38
AO
10076
10077
10078if test -n "$CXX_FOR_TARGET"; then
10079 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10080elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10081 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10082fi
10083
10084if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10085 for ncn_progname in c++ g++ cxx gxx; do
10086 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10087set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10089$as_echo_n "checking for $ac_word... " >&6; }
10090if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10091 $as_echo_n "(cached) " >&6
278a7a38
AO
10092else
10093 if test -n "$CXX_FOR_TARGET"; then
10094 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10095else
10096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10097for as_dir in $PATH
10098do
10099 IFS=$as_save_IFS
10100 test -z "$as_dir" && as_dir=.
5213506e
RW
10101 for ac_exec_ext in '' $ac_executable_extensions; do
10102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10103 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10105 break 2
10106 fi
10107done
5213506e
RW
10108 done
10109IFS=$as_save_IFS
278a7a38
AO
10110
10111fi
10112fi
10113CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10114if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10116$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 10117else
5213506e
RW
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10119$as_echo "no" >&6; }
278a7a38
AO
10120fi
10121
5213506e 10122
278a7a38
AO
10123 done
10124fi
10125
10126if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10127 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10129$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10130 if test -x $with_build_time_tools/${ncn_progname}; then
10131 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10133$as_echo "yes" >&6; }
e8b05380
PB
10134 break
10135 else
5213506e
RW
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10137$as_echo "no" >&6; }
e8b05380
PB
10138 fi
10139 done
10140fi
10141
10142if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10143 for ncn_progname in c++ g++ cxx gxx; do
10144 if test -n "$ncn_target_tool_prefix"; then
10145 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10146set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10148$as_echo_n "checking for $ac_word... " >&6; }
10149if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10150 $as_echo_n "(cached) " >&6
4de997d1
PB
10151else
10152 if test -n "$CXX_FOR_TARGET"; then
10153 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10154else
1c710c3c
DJ
10155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10156for as_dir in $PATH
10157do
10158 IFS=$as_save_IFS
10159 test -z "$as_dir" && as_dir=.
5213506e
RW
10160 for ac_exec_ext in '' $ac_executable_extensions; do
10161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10162 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10164 break 2
10165 fi
10166done
5213506e
RW
10167 done
10168IFS=$as_save_IFS
1c710c3c 10169
4de997d1
PB
10170fi
10171fi
1c710c3c 10172CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 10173if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10175$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10176else
5213506e
RW
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10178$as_echo "no" >&6; }
4de997d1
PB
10179fi
10180
5213506e 10181
e8b05380
PB
10182 fi
10183 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10184 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10185set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10187$as_echo_n "checking for $ac_word... " >&6; }
10188if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10189 $as_echo_n "(cached) " >&6
4de997d1 10190else
2693c0b0
PB
10191 if test -n "$CXX_FOR_TARGET"; then
10192 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 10193else
1c710c3c
DJ
10194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10195for as_dir in $PATH
10196do
10197 IFS=$as_save_IFS
10198 test -z "$as_dir" && as_dir=.
5213506e
RW
10199 for ac_exec_ext in '' $ac_executable_extensions; do
10200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10201 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10203 break 2
10204 fi
10205done
5213506e
RW
10206 done
10207IFS=$as_save_IFS
1c710c3c 10208
4de997d1
PB
10209fi
10210fi
1c710c3c 10211CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 10212if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10214$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10215else
5213506e
RW
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10217$as_echo "no" >&6; }
4de997d1 10218fi
1c710c3c 10219
5213506e 10220
e8b05380
PB
10221 fi
10222 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10223 done
10224fi
1c710c3c 10225
2693c0b0
PB
10226if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10227 set dummy c++ g++ cxx gxx
10228 if test $build = $target ; then
10229 CXX_FOR_TARGET="$2"
4de997d1 10230 else
2693c0b0 10231 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10232 fi
1c00b503
PB
10233else
10234 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
10235fi
10236
278a7a38
AO
10237
10238
10239if test -n "$GCC_FOR_TARGET"; then
10240 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10241elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10242 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10243fi
10244
10245if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10246 for ncn_progname in gcc; do
10247 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10248set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10250$as_echo_n "checking for $ac_word... " >&6; }
10251if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10252 $as_echo_n "(cached) " >&6
278a7a38
AO
10253else
10254 if test -n "$GCC_FOR_TARGET"; then
10255 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10256else
10257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10258for as_dir in $PATH
10259do
10260 IFS=$as_save_IFS
10261 test -z "$as_dir" && as_dir=.
5213506e
RW
10262 for ac_exec_ext in '' $ac_executable_extensions; do
10263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10264 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10266 break 2
10267 fi
10268done
5213506e
RW
10269 done
10270IFS=$as_save_IFS
278a7a38
AO
10271
10272fi
10273fi
10274GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10275if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10277$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 10278else
5213506e
RW
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10280$as_echo "no" >&6; }
278a7a38
AO
10281fi
10282
5213506e 10283
278a7a38
AO
10284 done
10285fi
10286
10287if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10288 for ncn_progname in gcc; do
5213506e
RW
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10290$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10291 if test -x $with_build_time_tools/${ncn_progname}; then
10292 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10294$as_echo "yes" >&6; }
e8b05380
PB
10295 break
10296 else
5213506e
RW
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10298$as_echo "no" >&6; }
e8b05380
PB
10299 fi
10300 done
10301fi
10302
10303if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10304 for ncn_progname in gcc; do
10305 if test -n "$ncn_target_tool_prefix"; then
10306 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10307set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10309$as_echo_n "checking for $ac_word... " >&6; }
10310if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10311 $as_echo_n "(cached) " >&6
ca9f4b81 10312else
e8b05380
PB
10313 if test -n "$GCC_FOR_TARGET"; then
10314 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10315else
1c710c3c
DJ
10316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10317for as_dir in $PATH
10318do
10319 IFS=$as_save_IFS
10320 test -z "$as_dir" && as_dir=.
5213506e
RW
10321 for ac_exec_ext in '' $ac_executable_extensions; do
10322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10323 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10325 break 2
10326 fi
10327done
5213506e
RW
10328 done
10329IFS=$as_save_IFS
1c710c3c 10330
ca9f4b81
AO
10331fi
10332fi
1c710c3c 10333GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10334if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10336$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10337else
5213506e
RW
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10339$as_echo "no" >&6; }
ca9f4b81
AO
10340fi
10341
5213506e 10342
e8b05380
PB
10343 fi
10344 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10345 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10346set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10348$as_echo_n "checking for $ac_word... " >&6; }
10349if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10350 $as_echo_n "(cached) " >&6
ca9f4b81 10351else
e8b05380
PB
10352 if test -n "$GCC_FOR_TARGET"; then
10353 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10354else
1c710c3c
DJ
10355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10356for as_dir in $PATH
10357do
10358 IFS=$as_save_IFS
10359 test -z "$as_dir" && as_dir=.
5213506e
RW
10360 for ac_exec_ext in '' $ac_executable_extensions; do
10361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10362 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10364 break 2
10365 fi
10366done
5213506e
RW
10367 done
10368IFS=$as_save_IFS
1c710c3c 10369
ca9f4b81
AO
10370fi
10371fi
1c710c3c 10372GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10373if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10375$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10376else
5213506e
RW
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10378$as_echo "no" >&6; }
ca9f4b81 10379fi
1c710c3c 10380
5213506e 10381
e8b05380
PB
10382 fi
10383 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10384 done
10385fi
1c710c3c 10386
e8b05380
PB
10387if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10388 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10389else
10390 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10391fi
10392
278a7a38
AO
10393
10394
278a7a38
AO
10395if test -n "$GFORTRAN_FOR_TARGET"; then
10396 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10397elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10398 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10399fi
10400
278a7a38
AO
10401if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10402 for ncn_progname in gfortran; do
10403 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10404set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10406$as_echo_n "checking for $ac_word... " >&6; }
10407if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10408 $as_echo_n "(cached) " >&6
e8b05380 10409else
278a7a38
AO
10410 if test -n "$GFORTRAN_FOR_TARGET"; then
10411 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10412else
1c710c3c
DJ
10413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10414for as_dir in $PATH
10415do
10416 IFS=$as_save_IFS
10417 test -z "$as_dir" && as_dir=.
5213506e
RW
10418 for ac_exec_ext in '' $ac_executable_extensions; do
10419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10420 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10422 break 2
10423 fi
10424done
5213506e
RW
10425 done
10426IFS=$as_save_IFS
1c710c3c 10427
e8b05380
PB
10428fi
10429fi
278a7a38
AO
10430GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10431if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10433$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10434else
5213506e
RW
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10436$as_echo "no" >&6; }
e8b05380 10437fi
1c710c3c 10438
5213506e 10439
e8b05380
PB
10440 done
10441fi
1c710c3c 10442
278a7a38 10443if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10444 for ncn_progname in gfortran; do
5213506e
RW
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10446$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10447 if test -x $with_build_time_tools/${ncn_progname}; then
10448 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10450$as_echo "yes" >&6; }
e8b05380
PB
10451 break
10452 else
5213506e
RW
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10454$as_echo "no" >&6; }
e8b05380
PB
10455 fi
10456 done
10457fi
10458
10459if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10460 for ncn_progname in gfortran; do
10461 if test -n "$ncn_target_tool_prefix"; then
10462 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10463set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10465$as_echo_n "checking for $ac_word... " >&6; }
10466if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10467 $as_echo_n "(cached) " >&6
e8b05380
PB
10468else
10469 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10470 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10471else
10472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10473for as_dir in $PATH
10474do
10475 IFS=$as_save_IFS
10476 test -z "$as_dir" && as_dir=.
5213506e
RW
10477 for ac_exec_ext in '' $ac_executable_extensions; do
10478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10479 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10481 break 2
10482 fi
10483done
5213506e
RW
10484 done
10485IFS=$as_save_IFS
1c710c3c 10486
e8b05380
PB
10487fi
10488fi
1c710c3c 10489GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10490if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10492$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10493else
5213506e
RW
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10495$as_echo "no" >&6; }
e8b05380
PB
10496fi
10497
5213506e 10498
e8b05380
PB
10499 fi
10500 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10501 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10502set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10504$as_echo_n "checking for $ac_word... " >&6; }
10505if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10506 $as_echo_n "(cached) " >&6
e8b05380
PB
10507else
10508 if test -n "$GFORTRAN_FOR_TARGET"; then
10509 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10510else
1c710c3c
DJ
10511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10512for as_dir in $PATH
10513do
10514 IFS=$as_save_IFS
10515 test -z "$as_dir" && as_dir=.
5213506e
RW
10516 for ac_exec_ext in '' $ac_executable_extensions; do
10517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10518 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10520 break 2
10521 fi
10522done
5213506e
RW
10523 done
10524IFS=$as_save_IFS
1c710c3c 10525
e8b05380
PB
10526fi
10527fi
1c710c3c 10528GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10529if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10531$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10532else
5213506e
RW
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10534$as_echo "no" >&6; }
e8b05380 10535fi
1c710c3c 10536
5213506e 10537
e8b05380
PB
10538 fi
10539 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10540 done
10541fi
1c710c3c 10542
e8b05380
PB
10543if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10544 set dummy gfortran
2693c0b0 10545 if test $build = $target ; then
e8b05380 10546 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 10547 else
e8b05380
PB
10548 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10549 fi
1c00b503
PB
10550else
10551 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
10552fi
10553
10554
10555
632e2a07
ILT
10556if test -n "$GOC_FOR_TARGET"; then
10557 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10558elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10559 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10560fi
10561
10562if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10563 for ncn_progname in gccgo; do
10564 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10565set dummy ${ncn_progname}; ac_word=$2
10566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10567$as_echo_n "checking for $ac_word... " >&6; }
10568if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10569 $as_echo_n "(cached) " >&6
10570else
10571 if test -n "$GOC_FOR_TARGET"; then
10572 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10573else
10574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10575for as_dir in $PATH
10576do
10577 IFS=$as_save_IFS
10578 test -z "$as_dir" && as_dir=.
10579 for ac_exec_ext in '' $ac_executable_extensions; do
10580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10581 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10583 break 2
10584 fi
10585done
10586 done
10587IFS=$as_save_IFS
10588
10589fi
10590fi
10591GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10592if test -n "$GOC_FOR_TARGET"; then
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10594$as_echo "$GOC_FOR_TARGET" >&6; }
10595else
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10597$as_echo "no" >&6; }
10598fi
10599
10600
10601 done
10602fi
10603
10604if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10605 for ncn_progname in gccgo; do
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10607$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10608 if test -x $with_build_time_tools/${ncn_progname}; then
10609 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10611$as_echo "yes" >&6; }
10612 break
10613 else
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10615$as_echo "no" >&6; }
10616 fi
10617 done
10618fi
10619
10620if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10621 for ncn_progname in gccgo; do
10622 if test -n "$ncn_target_tool_prefix"; then
10623 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10624set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10626$as_echo_n "checking for $ac_word... " >&6; }
10627if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10628 $as_echo_n "(cached) " >&6
10629else
10630 if test -n "$GOC_FOR_TARGET"; then
10631 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10632else
10633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10634for as_dir in $PATH
10635do
10636 IFS=$as_save_IFS
10637 test -z "$as_dir" && as_dir=.
10638 for ac_exec_ext in '' $ac_executable_extensions; do
10639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10640 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10642 break 2
10643 fi
10644done
10645 done
10646IFS=$as_save_IFS
10647
10648fi
10649fi
10650GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10651if test -n "$GOC_FOR_TARGET"; then
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10653$as_echo "$GOC_FOR_TARGET" >&6; }
10654else
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10656$as_echo "no" >&6; }
10657fi
10658
10659
10660 fi
10661 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10662 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10663set dummy ${ncn_progname}; ac_word=$2
10664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10665$as_echo_n "checking for $ac_word... " >&6; }
10666if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10667 $as_echo_n "(cached) " >&6
10668else
10669 if test -n "$GOC_FOR_TARGET"; then
10670 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10671else
10672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10673for as_dir in $PATH
10674do
10675 IFS=$as_save_IFS
10676 test -z "$as_dir" && as_dir=.
10677 for ac_exec_ext in '' $ac_executable_extensions; do
10678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10679 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10681 break 2
10682 fi
10683done
10684 done
10685IFS=$as_save_IFS
10686
10687fi
10688fi
10689GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10690if test -n "$GOC_FOR_TARGET"; then
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10692$as_echo "$GOC_FOR_TARGET" >&6; }
10693else
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10695$as_echo "no" >&6; }
10696fi
10697
10698
10699 fi
10700 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10701 done
10702fi
10703
10704if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10705 set dummy gccgo
10706 if test $build = $target ; then
10707 GOC_FOR_TARGET="$2"
10708 else
10709 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10710 fi
10711else
10712 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10713fi
10714
10715
10716
e8b05380
PB
10717cat > conftest.c << \EOF
10718#ifdef __GNUC__
10719 gcc_yay;
10720#endif
10721EOF
10722if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10723 have_gcc_for_target=yes
10724else
10725 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10726 have_gcc_for_target=no
10727fi
10728rm conftest.c
10729
10730
10731
10732
10733if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10734 if test -n "$with_build_time_tools"; then
5213506e
RW
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10736$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10737 if test -x $with_build_time_tools/ar; then
10738 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10739 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10741$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 10742 else
5213506e
RW
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10744$as_echo "no" >&6; }
d1f8db0c 10745 fi
e8b05380
PB
10746 elif test $build != $host && test $have_gcc_for_target = yes; then
10747 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
10748 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10749 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
10750 fi
10751fi
3e19841a 10752if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10753 # Extract the first word of "ar", so it can be a program name with args.
10754set dummy ar; ac_word=$2
5213506e
RW
10755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10756$as_echo_n "checking for $ac_word... " >&6; }
10757if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10758 $as_echo_n "(cached) " >&6
e8b05380 10759else
1c710c3c
DJ
10760 case $AR_FOR_TARGET in
10761 [\\/]* | ?:[\\/]*)
e8b05380
PB
10762 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10763 ;;
e8b05380 10764 *)
1c710c3c
DJ
10765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10766for as_dir in $gcc_cv_tool_dirs
10767do
10768 IFS=$as_save_IFS
10769 test -z "$as_dir" && as_dir=.
5213506e
RW
10770 for ac_exec_ext in '' $ac_executable_extensions; do
10771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10772 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10774 break 2
10775 fi
10776done
5213506e
RW
10777 done
10778IFS=$as_save_IFS
1c710c3c 10779
e8b05380
PB
10780 ;;
10781esac
10782fi
1c710c3c 10783AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 10784if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10786$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10787else
5213506e
RW
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10789$as_echo "no" >&6; }
4de997d1
PB
10790fi
10791
5213506e 10792
e8b05380
PB
10793fi
10794if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
10795
10796
10797if test -n "$AR_FOR_TARGET"; then
10798 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10799elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10800 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10801fi
10802
10803if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10804 for ncn_progname in ar; do
10805 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10806set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10808$as_echo_n "checking for $ac_word... " >&6; }
10809if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10810 $as_echo_n "(cached) " >&6
278a7a38
AO
10811else
10812 if test -n "$AR_FOR_TARGET"; then
10813 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10814else
10815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10816for as_dir in $PATH
10817do
10818 IFS=$as_save_IFS
10819 test -z "$as_dir" && as_dir=.
5213506e
RW
10820 for ac_exec_ext in '' $ac_executable_extensions; do
10821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10822 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10824 break 2
10825 fi
10826done
5213506e
RW
10827 done
10828IFS=$as_save_IFS
278a7a38
AO
10829
10830fi
10831fi
10832AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10833if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10835$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 10836else
5213506e
RW
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10838$as_echo "no" >&6; }
278a7a38
AO
10839fi
10840
5213506e 10841
278a7a38
AO
10842 done
10843fi
10844
10845if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10846 for ncn_progname in ar; do
5213506e
RW
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10848$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10849 if test -x $with_build_time_tools/${ncn_progname}; then
10850 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10852$as_echo "yes" >&6; }
e8b05380
PB
10853 break
10854 else
5213506e
RW
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10856$as_echo "no" >&6; }
e8b05380
PB
10857 fi
10858 done
10859fi
10860
10861if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10862 for ncn_progname in ar; do
10863 if test -n "$ncn_target_tool_prefix"; then
10864 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10865set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10867$as_echo_n "checking for $ac_word... " >&6; }
10868if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10869 $as_echo_n "(cached) " >&6
4de997d1 10870else
e8b05380
PB
10871 if test -n "$AR_FOR_TARGET"; then
10872 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 10873else
1c710c3c
DJ
10874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10875for as_dir in $PATH
10876do
10877 IFS=$as_save_IFS
10878 test -z "$as_dir" && as_dir=.
5213506e
RW
10879 for ac_exec_ext in '' $ac_executable_extensions; do
10880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10881 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10883 break 2
10884 fi
10885done
5213506e
RW
10886 done
10887IFS=$as_save_IFS
1c710c3c 10888
4de997d1
PB
10889fi
10890fi
1c710c3c 10891AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10892if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10894$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 10895else
5213506e
RW
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10897$as_echo "no" >&6; }
4de997d1
PB
10898fi
10899
5213506e 10900
e8b05380
PB
10901 fi
10902 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10903 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10904set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10906$as_echo_n "checking for $ac_word... " >&6; }
10907if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10908 $as_echo_n "(cached) " >&6
e8b05380
PB
10909else
10910 if test -n "$AR_FOR_TARGET"; then
10911 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10912else
1c710c3c
DJ
10913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10914for as_dir in $PATH
10915do
10916 IFS=$as_save_IFS
10917 test -z "$as_dir" && as_dir=.
5213506e
RW
10918 for ac_exec_ext in '' $ac_executable_extensions; do
10919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10920 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10922 break 2
10923 fi
10924done
5213506e
RW
10925 done
10926IFS=$as_save_IFS
1c710c3c 10927
e8b05380
PB
10928fi
10929fi
1c710c3c 10930AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10931if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10933$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10934else
5213506e
RW
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10936$as_echo "no" >&6; }
e8b05380 10937fi
1c710c3c 10938
5213506e 10939
e8b05380
PB
10940 fi
10941 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10942 done
10943fi
1c710c3c 10944
e8b05380
PB
10945if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10946 set dummy ar
10947 if test $build = $target ; then
10948 AR_FOR_TARGET="$2"
10949 else
10950 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 10951 fi
1c00b503
PB
10952else
10953 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
10954fi
10955
d1f8db0c
PB
10956else
10957 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
10958fi
10959
10960
10961
10962
10963if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10964 if test -n "$with_build_time_tools"; then
5213506e
RW
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10966$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10967 if test -x $with_build_time_tools/as; then
10968 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10969 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10971$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 10972 else
5213506e
RW
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10974$as_echo "no" >&6; }
d1f8db0c 10975 fi
e8b05380
PB
10976 elif test $build != $host && test $have_gcc_for_target = yes; then
10977 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
10978 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10979 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
10980 fi
10981fi
3e19841a 10982if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10983 # Extract the first word of "as", so it can be a program name with args.
10984set dummy as; ac_word=$2
5213506e
RW
10985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10986$as_echo_n "checking for $ac_word... " >&6; }
10987if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10988 $as_echo_n "(cached) " >&6
e8b05380 10989else
1c710c3c
DJ
10990 case $AS_FOR_TARGET in
10991 [\\/]* | ?:[\\/]*)
e8b05380
PB
10992 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10993 ;;
e8b05380 10994 *)
1c710c3c
DJ
10995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10996for as_dir in $gcc_cv_tool_dirs
10997do
10998 IFS=$as_save_IFS
10999 test -z "$as_dir" && as_dir=.
5213506e
RW
11000 for ac_exec_ext in '' $ac_executable_extensions; do
11001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11002 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11004 break 2
11005 fi
11006done
5213506e
RW
11007 done
11008IFS=$as_save_IFS
1c710c3c 11009
e8b05380
PB
11010 ;;
11011esac
11012fi
1c710c3c 11013AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 11014if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11016$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11017else
5213506e
RW
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11019$as_echo "no" >&6; }
e8b05380
PB
11020fi
11021
5213506e 11022
e8b05380
PB
11023fi
11024if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
11025
11026
11027if test -n "$AS_FOR_TARGET"; then
11028 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11029elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11030 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11031fi
11032
11033if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11034 for ncn_progname in as; do
11035 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11036set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11038$as_echo_n "checking for $ac_word... " >&6; }
11039if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11040 $as_echo_n "(cached) " >&6
278a7a38
AO
11041else
11042 if test -n "$AS_FOR_TARGET"; then
11043 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11044else
11045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11046for as_dir in $PATH
11047do
11048 IFS=$as_save_IFS
11049 test -z "$as_dir" && as_dir=.
5213506e
RW
11050 for ac_exec_ext in '' $ac_executable_extensions; do
11051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11052 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11054 break 2
11055 fi
11056done
5213506e
RW
11057 done
11058IFS=$as_save_IFS
278a7a38
AO
11059
11060fi
11061fi
11062AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11063if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11065$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 11066else
5213506e
RW
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11068$as_echo "no" >&6; }
278a7a38
AO
11069fi
11070
5213506e 11071
278a7a38
AO
11072 done
11073fi
11074
11075if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11076 for ncn_progname in as; do
5213506e
RW
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11078$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11079 if test -x $with_build_time_tools/${ncn_progname}; then
11080 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11082$as_echo "yes" >&6; }
e8b05380
PB
11083 break
11084 else
5213506e
RW
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11086$as_echo "no" >&6; }
e8b05380
PB
11087 fi
11088 done
11089fi
11090
11091if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11092 for ncn_progname in as; do
11093 if test -n "$ncn_target_tool_prefix"; then
11094 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11095set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11097$as_echo_n "checking for $ac_word... " >&6; }
11098if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11099 $as_echo_n "(cached) " >&6
e8b05380
PB
11100else
11101 if test -n "$AS_FOR_TARGET"; then
11102 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11103else
1c710c3c
DJ
11104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11105for as_dir in $PATH
11106do
11107 IFS=$as_save_IFS
11108 test -z "$as_dir" && as_dir=.
5213506e
RW
11109 for ac_exec_ext in '' $ac_executable_extensions; do
11110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11111 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11113 break 2
11114 fi
11115done
5213506e
RW
11116 done
11117IFS=$as_save_IFS
1c710c3c 11118
e8b05380
PB
11119fi
11120fi
1c710c3c 11121AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11122if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11124$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11125else
5213506e
RW
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11127$as_echo "no" >&6; }
e8b05380
PB
11128fi
11129
5213506e 11130
e8b05380
PB
11131 fi
11132 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11133 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11134set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11136$as_echo_n "checking for $ac_word... " >&6; }
11137if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11138 $as_echo_n "(cached) " >&6
4de997d1 11139else
e8b05380
PB
11140 if test -n "$AS_FOR_TARGET"; then
11141 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 11142else
1c710c3c
DJ
11143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11144for as_dir in $PATH
11145do
11146 IFS=$as_save_IFS
11147 test -z "$as_dir" && as_dir=.
5213506e
RW
11148 for ac_exec_ext in '' $ac_executable_extensions; do
11149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11150 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11152 break 2
11153 fi
11154done
5213506e
RW
11155 done
11156IFS=$as_save_IFS
1c710c3c 11157
4de997d1
PB
11158fi
11159fi
1c710c3c 11160AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11161if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11163$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 11164else
5213506e
RW
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11166$as_echo "no" >&6; }
4de997d1 11167fi
1c710c3c 11168
5213506e 11169
e8b05380
PB
11170 fi
11171 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11172 done
11173fi
1c710c3c 11174
e8b05380
PB
11175if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11176 set dummy as
11177 if test $build = $target ; then
11178 AS_FOR_TARGET="$2"
11179 else
11180 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 11181 fi
1c00b503
PB
11182else
11183 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 11184fi
2693c0b0 11185
d1f8db0c
PB
11186else
11187 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
11188fi
11189
e8b05380
PB
11190
11191
11192
11193if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11194 if test -n "$with_build_time_tools"; then
5213506e
RW
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11196$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11197 if test -x $with_build_time_tools/dlltool; then
11198 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11199 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11201$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 11202 else
5213506e
RW
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11204$as_echo "no" >&6; }
d1f8db0c 11205 fi
e8b05380
PB
11206 elif test $build != $host && test $have_gcc_for_target = yes; then
11207 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
11208 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11209 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
11210 fi
11211fi
3e19841a 11212if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11213 # Extract the first word of "dlltool", so it can be a program name with args.
11214set dummy dlltool; ac_word=$2
5213506e
RW
11215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11216$as_echo_n "checking for $ac_word... " >&6; }
11217if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11218 $as_echo_n "(cached) " >&6
4de997d1 11219else
1c710c3c
DJ
11220 case $DLLTOOL_FOR_TARGET in
11221 [\\/]* | ?:[\\/]*)
e8b05380
PB
11222 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11223 ;;
e8b05380 11224 *)
1c710c3c
DJ
11225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11226for as_dir in $gcc_cv_tool_dirs
11227do
11228 IFS=$as_save_IFS
11229 test -z "$as_dir" && as_dir=.
5213506e
RW
11230 for ac_exec_ext in '' $ac_executable_extensions; do
11231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11232 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11234 break 2
11235 fi
11236done
5213506e
RW
11237 done
11238IFS=$as_save_IFS
1c710c3c 11239
e8b05380
PB
11240 ;;
11241esac
4de997d1 11242fi
1c710c3c 11243DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 11244if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11246$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11247else
5213506e
RW
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11249$as_echo "no" >&6; }
4de997d1
PB
11250fi
11251
5213506e 11252
e8b05380
PB
11253fi
11254if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
11255
11256
11257if test -n "$DLLTOOL_FOR_TARGET"; then
11258 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11259elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11260 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11261fi
11262
11263if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11264 for ncn_progname in dlltool; do
11265 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11266set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11268$as_echo_n "checking for $ac_word... " >&6; }
11269if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11270 $as_echo_n "(cached) " >&6
278a7a38
AO
11271else
11272 if test -n "$DLLTOOL_FOR_TARGET"; then
11273 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11274else
11275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11276for as_dir in $PATH
11277do
11278 IFS=$as_save_IFS
11279 test -z "$as_dir" && as_dir=.
5213506e
RW
11280 for ac_exec_ext in '' $ac_executable_extensions; do
11281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11282 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11284 break 2
11285 fi
11286done
5213506e
RW
11287 done
11288IFS=$as_save_IFS
278a7a38
AO
11289
11290fi
11291fi
11292DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11293if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11295$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11296else
5213506e
RW
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11298$as_echo "no" >&6; }
278a7a38
AO
11299fi
11300
5213506e 11301
278a7a38
AO
11302 done
11303fi
11304
11305if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11306 for ncn_progname in dlltool; do
5213506e
RW
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11308$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11309 if test -x $with_build_time_tools/${ncn_progname}; then
11310 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11312$as_echo "yes" >&6; }
e8b05380
PB
11313 break
11314 else
5213506e
RW
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11316$as_echo "no" >&6; }
e8b05380
PB
11317 fi
11318 done
11319fi
11320
11321if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11322 for ncn_progname in dlltool; do
11323 if test -n "$ncn_target_tool_prefix"; then
11324 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11325set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11327$as_echo_n "checking for $ac_word... " >&6; }
11328if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11329 $as_echo_n "(cached) " >&6
4de997d1 11330else
e8b05380
PB
11331 if test -n "$DLLTOOL_FOR_TARGET"; then
11332 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11333else
1c710c3c
DJ
11334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11335for as_dir in $PATH
11336do
11337 IFS=$as_save_IFS
11338 test -z "$as_dir" && as_dir=.
5213506e
RW
11339 for ac_exec_ext in '' $ac_executable_extensions; do
11340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11341 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11343 break 2
11344 fi
11345done
5213506e
RW
11346 done
11347IFS=$as_save_IFS
1c710c3c 11348
4de997d1
PB
11349fi
11350fi
1c710c3c 11351DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11352if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11354$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11355else
5213506e
RW
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11357$as_echo "no" >&6; }
4de997d1 11358fi
4de997d1 11359
5213506e 11360
e8b05380
PB
11361 fi
11362 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11363 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11364set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11366$as_echo_n "checking for $ac_word... " >&6; }
11367if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11368 $as_echo_n "(cached) " >&6
4de997d1 11369else
e8b05380
PB
11370 if test -n "$DLLTOOL_FOR_TARGET"; then
11371 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11372else
1c710c3c
DJ
11373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11374for as_dir in $PATH
11375do
11376 IFS=$as_save_IFS
11377 test -z "$as_dir" && as_dir=.
5213506e
RW
11378 for ac_exec_ext in '' $ac_executable_extensions; do
11379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11380 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11382 break 2
11383 fi
11384done
5213506e
RW
11385 done
11386IFS=$as_save_IFS
1c710c3c 11387
4de997d1
PB
11388fi
11389fi
1c710c3c 11390DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11391if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11393$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11394else
5213506e
RW
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11396$as_echo "no" >&6; }
4de997d1 11397fi
1c710c3c 11398
5213506e 11399
e8b05380
PB
11400 fi
11401 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11402 done
11403fi
1c710c3c 11404
e8b05380
PB
11405if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11406 set dummy dlltool
11407 if test $build = $target ; then
11408 DLLTOOL_FOR_TARGET="$2"
11409 else
11410 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11411 fi
1c00b503
PB
11412else
11413 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
11414fi
11415
d1f8db0c
PB
11416else
11417 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
11418fi
11419
4de997d1 11420
e8b05380
PB
11421
11422
11423if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11424 if test -n "$with_build_time_tools"; then
5213506e
RW
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11426$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11427 if test -x $with_build_time_tools/ld; then
11428 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11429 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11431$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 11432 else
5213506e
RW
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11434$as_echo "no" >&6; }
d1f8db0c 11435 fi
e8b05380
PB
11436 elif test $build != $host && test $have_gcc_for_target = yes; then
11437 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
11438 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11439 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 11440 fi
e8b05380 11441fi
3e19841a 11442if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11443 # Extract the first word of "ld", so it can be a program name with args.
11444set dummy ld; ac_word=$2
5213506e
RW
11445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11446$as_echo_n "checking for $ac_word... " >&6; }
11447if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11448 $as_echo_n "(cached) " >&6
4de997d1 11449else
1c710c3c
DJ
11450 case $LD_FOR_TARGET in
11451 [\\/]* | ?:[\\/]*)
e8b05380
PB
11452 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11453 ;;
e8b05380 11454 *)
1c710c3c
DJ
11455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11456for as_dir in $gcc_cv_tool_dirs
11457do
11458 IFS=$as_save_IFS
11459 test -z "$as_dir" && as_dir=.
5213506e
RW
11460 for ac_exec_ext in '' $ac_executable_extensions; do
11461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11462 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11464 break 2
11465 fi
11466done
5213506e
RW
11467 done
11468IFS=$as_save_IFS
1c710c3c 11469
e8b05380
PB
11470 ;;
11471esac
4de997d1 11472fi
1c710c3c 11473LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 11474if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11476$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 11477else
5213506e
RW
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11479$as_echo "no" >&6; }
4de997d1 11480fi
2693c0b0 11481
5213506e 11482
e8b05380
PB
11483fi
11484if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
11485
11486
11487if test -n "$LD_FOR_TARGET"; then
11488 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11489elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11490 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11491fi
11492
11493if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11494 for ncn_progname in ld; do
11495 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11496set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11498$as_echo_n "checking for $ac_word... " >&6; }
11499if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11500 $as_echo_n "(cached) " >&6
278a7a38
AO
11501else
11502 if test -n "$LD_FOR_TARGET"; then
11503 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11504else
11505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11506for as_dir in $PATH
11507do
11508 IFS=$as_save_IFS
11509 test -z "$as_dir" && as_dir=.
5213506e
RW
11510 for ac_exec_ext in '' $ac_executable_extensions; do
11511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11512 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11514 break 2
11515 fi
11516done
5213506e
RW
11517 done
11518IFS=$as_save_IFS
278a7a38
AO
11519
11520fi
11521fi
11522LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11523if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11525$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 11526else
5213506e
RW
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11528$as_echo "no" >&6; }
278a7a38
AO
11529fi
11530
5213506e 11531
278a7a38
AO
11532 done
11533fi
11534
11535if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11536 for ncn_progname in ld; do
5213506e
RW
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11538$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11539 if test -x $with_build_time_tools/${ncn_progname}; then
11540 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11542$as_echo "yes" >&6; }
e8b05380
PB
11543 break
11544 else
5213506e
RW
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11546$as_echo "no" >&6; }
e8b05380
PB
11547 fi
11548 done
ca9f4b81
AO
11549fi
11550
e8b05380
PB
11551if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11552 for ncn_progname in ld; do
11553 if test -n "$ncn_target_tool_prefix"; then
11554 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11555set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11557$as_echo_n "checking for $ac_word... " >&6; }
11558if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11559 $as_echo_n "(cached) " >&6
ca9f4b81 11560else
4de997d1
PB
11561 if test -n "$LD_FOR_TARGET"; then
11562 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11563else
1c710c3c
DJ
11564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11565for as_dir in $PATH
11566do
11567 IFS=$as_save_IFS
11568 test -z "$as_dir" && as_dir=.
5213506e
RW
11569 for ac_exec_ext in '' $ac_executable_extensions; do
11570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11571 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11573 break 2
11574 fi
11575done
5213506e
RW
11576 done
11577IFS=$as_save_IFS
1c710c3c 11578
ca9f4b81
AO
11579fi
11580fi
1c710c3c 11581LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 11582if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11584$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11585else
5213506e
RW
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11587$as_echo "no" >&6; }
ca9f4b81
AO
11588fi
11589
5213506e 11590
e8b05380
PB
11591 fi
11592 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11593 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11594set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11596$as_echo_n "checking for $ac_word... " >&6; }
11597if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11598 $as_echo_n "(cached) " >&6
ca9f4b81 11599else
2693c0b0
PB
11600 if test -n "$LD_FOR_TARGET"; then
11601 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11602else
1c710c3c
DJ
11603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11604for as_dir in $PATH
11605do
11606 IFS=$as_save_IFS
11607 test -z "$as_dir" && as_dir=.
5213506e
RW
11608 for ac_exec_ext in '' $ac_executable_extensions; do
11609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11610 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11612 break 2
11613 fi
11614done
5213506e
RW
11615 done
11616IFS=$as_save_IFS
1c710c3c 11617
ca9f4b81
AO
11618fi
11619fi
1c710c3c 11620LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 11621if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11623$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11624else
5213506e
RW
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11626$as_echo "no" >&6; }
ca9f4b81 11627fi
1c710c3c 11628
5213506e 11629
e8b05380
PB
11630 fi
11631 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11632 done
11633fi
1c710c3c 11634
2693c0b0
PB
11635if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11636 set dummy ld
11637 if test $build = $target ; then
11638 LD_FOR_TARGET="$2"
ca9f4b81 11639 else
2693c0b0 11640 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11641 fi
1c00b503
PB
11642else
11643 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
11644fi
11645
d1f8db0c
PB
11646else
11647 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
11648fi
11649
11650
11651
11652
11653if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11654 if test -n "$with_build_time_tools"; then
5213506e
RW
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11656$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11657 if test -x $with_build_time_tools/lipo; then
11658 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11659 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11661$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 11662 else
5213506e
RW
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11664$as_echo "no" >&6; }
d1f8db0c 11665 fi
e8b05380
PB
11666 elif test $build != $host && test $have_gcc_for_target = yes; then
11667 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
11668 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11669 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
11670 fi
11671fi
278a7a38
AO
11672if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11673 # Extract the first word of "lipo", so it can be a program name with args.
11674set dummy lipo; ac_word=$2
5213506e
RW
11675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11676$as_echo_n "checking for $ac_word... " >&6; }
11677if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11678 $as_echo_n "(cached) " >&6
278a7a38
AO
11679else
11680 case $LIPO_FOR_TARGET in
11681 [\\/]* | ?:[\\/]*)
11682 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11683 ;;
11684 *)
11685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686for as_dir in $gcc_cv_tool_dirs
11687do
11688 IFS=$as_save_IFS
11689 test -z "$as_dir" && as_dir=.
5213506e
RW
11690 for ac_exec_ext in '' $ac_executable_extensions; do
11691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11692 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11694 break 2
11695 fi
11696done
5213506e
RW
11697 done
11698IFS=$as_save_IFS
278a7a38
AO
11699
11700 ;;
11701esac
11702fi
11703LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 11704if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11706$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 11707else
5213506e
RW
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11709$as_echo "no" >&6; }
278a7a38
AO
11710fi
11711
5213506e 11712
278a7a38
AO
11713fi
11714if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11715
11716
11717if test -n "$LIPO_FOR_TARGET"; then
11718 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11719elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11720 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11721fi
11722
11723if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11724 for ncn_progname in lipo; do
11725 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11726set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11728$as_echo_n "checking for $ac_word... " >&6; }
11729if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11730 $as_echo_n "(cached) " >&6
e8b05380 11731else
278a7a38
AO
11732 if test -n "$LIPO_FOR_TARGET"; then
11733 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11734else
11735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11736for as_dir in $PATH
1c710c3c
DJ
11737do
11738 IFS=$as_save_IFS
11739 test -z "$as_dir" && as_dir=.
5213506e
RW
11740 for ac_exec_ext in '' $ac_executable_extensions; do
11741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11742 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11744 break 2
11745 fi
11746done
5213506e
RW
11747 done
11748IFS=$as_save_IFS
1c710c3c 11749
e8b05380 11750fi
278a7a38
AO
11751fi
11752LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 11753if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11755$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 11756else
5213506e
RW
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11758$as_echo "no" >&6; }
e8b05380
PB
11759fi
11760
5213506e 11761
278a7a38 11762 done
e8b05380 11763fi
278a7a38
AO
11764
11765if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11766 for ncn_progname in lipo; do
5213506e
RW
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11768$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11769 if test -x $with_build_time_tools/${ncn_progname}; then
11770 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11772$as_echo "yes" >&6; }
e8b05380
PB
11773 break
11774 else
5213506e
RW
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11776$as_echo "no" >&6; }
e8b05380
PB
11777 fi
11778 done
11779fi
11780
11781if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11782 for ncn_progname in lipo; do
11783 if test -n "$ncn_target_tool_prefix"; then
11784 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11785set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11787$as_echo_n "checking for $ac_word... " >&6; }
11788if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11789 $as_echo_n "(cached) " >&6
040b1c5a
GK
11790else
11791 if test -n "$LIPO_FOR_TARGET"; then
11792 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11793else
1c710c3c
DJ
11794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11795for as_dir in $PATH
11796do
11797 IFS=$as_save_IFS
11798 test -z "$as_dir" && as_dir=.
5213506e
RW
11799 for ac_exec_ext in '' $ac_executable_extensions; do
11800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11801 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11803 break 2
11804 fi
11805done
5213506e
RW
11806 done
11807IFS=$as_save_IFS
1c710c3c 11808
040b1c5a
GK
11809fi
11810fi
1c710c3c 11811LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11812if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11814$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11815else
5213506e
RW
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11817$as_echo "no" >&6; }
040b1c5a
GK
11818fi
11819
5213506e 11820
e8b05380
PB
11821 fi
11822 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11823 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 11824set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11826$as_echo_n "checking for $ac_word... " >&6; }
11827if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11828 $as_echo_n "(cached) " >&6
040b1c5a
GK
11829else
11830 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
11831 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11832else
1c710c3c
DJ
11833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11834for as_dir in $PATH
11835do
11836 IFS=$as_save_IFS
11837 test -z "$as_dir" && as_dir=.
5213506e
RW
11838 for ac_exec_ext in '' $ac_executable_extensions; do
11839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11840 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11842 break 2
11843 fi
11844done
5213506e
RW
11845 done
11846IFS=$as_save_IFS
1c710c3c 11847
040b1c5a
GK
11848fi
11849fi
1c710c3c 11850LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11851if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11853$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11854else
5213506e
RW
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11856$as_echo "no" >&6; }
040b1c5a 11857fi
1c710c3c 11858
5213506e 11859
e8b05380
PB
11860 fi
11861 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11862 done
11863fi
1c710c3c 11864
040b1c5a
GK
11865if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11866 set dummy lipo
11867 if test $build = $target ; then
11868 LIPO_FOR_TARGET="$2"
11869 else
11870 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11871 fi
1c00b503
PB
11872else
11873 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
11874fi
11875
d1f8db0c
PB
11876else
11877 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
11878fi
11879
11880
11881
11882
11883if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11884 if test -n "$with_build_time_tools"; then
5213506e
RW
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11886$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11887 if test -x $with_build_time_tools/nm; then
11888 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11889 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11891$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 11892 else
5213506e
RW
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11894$as_echo "no" >&6; }
d1f8db0c 11895 fi
e8b05380
PB
11896 elif test $build != $host && test $have_gcc_for_target = yes; then
11897 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
11898 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11899 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
11900 fi
11901fi
3e19841a 11902if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11903 # Extract the first word of "nm", so it can be a program name with args.
11904set dummy nm; ac_word=$2
5213506e
RW
11905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11906$as_echo_n "checking for $ac_word... " >&6; }
11907if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11908 $as_echo_n "(cached) " >&6
e8b05380 11909else
1c710c3c
DJ
11910 case $NM_FOR_TARGET in
11911 [\\/]* | ?:[\\/]*)
e8b05380
PB
11912 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11913 ;;
e8b05380 11914 *)
1c710c3c
DJ
11915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11916for as_dir in $gcc_cv_tool_dirs
11917do
11918 IFS=$as_save_IFS
11919 test -z "$as_dir" && as_dir=.
5213506e
RW
11920 for ac_exec_ext in '' $ac_executable_extensions; do
11921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11922 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11924 break 2
11925 fi
11926done
5213506e
RW
11927 done
11928IFS=$as_save_IFS
1c710c3c 11929
e8b05380
PB
11930 ;;
11931esac
11932fi
1c710c3c 11933NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 11934if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11936$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 11937else
5213506e
RW
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11939$as_echo "no" >&6; }
e8b05380
PB
11940fi
11941
5213506e 11942
e8b05380
PB
11943fi
11944if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
11945
11946
11947if test -n "$NM_FOR_TARGET"; then
11948 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11949elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11950 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11951fi
11952
11953if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11954 for ncn_progname in nm; do
11955 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11956set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11958$as_echo_n "checking for $ac_word... " >&6; }
11959if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11960 $as_echo_n "(cached) " >&6
278a7a38
AO
11961else
11962 if test -n "$NM_FOR_TARGET"; then
11963 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11964else
11965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11966for as_dir in $PATH
11967do
11968 IFS=$as_save_IFS
11969 test -z "$as_dir" && as_dir=.
5213506e
RW
11970 for ac_exec_ext in '' $ac_executable_extensions; do
11971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11972 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 11973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11974 break 2
11975 fi
11976done
5213506e
RW
11977 done
11978IFS=$as_save_IFS
278a7a38
AO
11979
11980fi
11981fi
11982NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11983if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11985$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 11986else
5213506e
RW
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11988$as_echo "no" >&6; }
278a7a38
AO
11989fi
11990
5213506e 11991
278a7a38
AO
11992 done
11993fi
11994
11995if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11996 for ncn_progname in nm; do
5213506e
RW
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11998$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11999 if test -x $with_build_time_tools/${ncn_progname}; then
12000 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12002$as_echo "yes" >&6; }
e8b05380
PB
12003 break
12004 else
5213506e
RW
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12006$as_echo "no" >&6; }
e8b05380
PB
12007 fi
12008 done
12009fi
12010
12011if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12012 for ncn_progname in nm; do
12013 if test -n "$ncn_target_tool_prefix"; then
12014 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12015set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12017$as_echo_n "checking for $ac_word... " >&6; }
12018if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12019 $as_echo_n "(cached) " >&6
ca9f4b81 12020else
4de997d1
PB
12021 if test -n "$NM_FOR_TARGET"; then
12022 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12023else
1c710c3c
DJ
12024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12025for as_dir in $PATH
12026do
12027 IFS=$as_save_IFS
12028 test -z "$as_dir" && as_dir=.
5213506e
RW
12029 for ac_exec_ext in '' $ac_executable_extensions; do
12030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12031 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12033 break 2
12034 fi
12035done
5213506e
RW
12036 done
12037IFS=$as_save_IFS
1c710c3c 12038
ca9f4b81
AO
12039fi
12040fi
1c710c3c 12041NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 12042if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12044$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12045else
5213506e
RW
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12047$as_echo "no" >&6; }
ca9f4b81
AO
12048fi
12049
5213506e 12050
e8b05380
PB
12051 fi
12052 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12053 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12054set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12056$as_echo_n "checking for $ac_word... " >&6; }
12057if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12058 $as_echo_n "(cached) " >&6
ca9f4b81 12059else
2693c0b0
PB
12060 if test -n "$NM_FOR_TARGET"; then
12061 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12062else
1c710c3c
DJ
12063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12064for as_dir in $PATH
12065do
12066 IFS=$as_save_IFS
12067 test -z "$as_dir" && as_dir=.
5213506e
RW
12068 for ac_exec_ext in '' $ac_executable_extensions; do
12069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12070 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12072 break 2
12073 fi
12074done
5213506e
RW
12075 done
12076IFS=$as_save_IFS
1c710c3c 12077
ca9f4b81
AO
12078fi
12079fi
1c710c3c 12080NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 12081if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12083$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12084else
5213506e
RW
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12086$as_echo "no" >&6; }
ca9f4b81 12087fi
1c710c3c 12088
5213506e 12089
e8b05380
PB
12090 fi
12091 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12092 done
12093fi
1c710c3c 12094
2693c0b0
PB
12095if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12096 set dummy nm
12097 if test $build = $target ; then
12098 NM_FOR_TARGET="$2"
ca9f4b81 12099 else
2693c0b0 12100 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12101 fi
1c00b503
PB
12102else
12103 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
12104fi
12105
d1f8db0c
PB
12106else
12107 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
12108fi
12109
12110
12111
12112
9bccfdf5
AP
12113if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12114 if test -n "$with_build_time_tools"; then
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12116$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12117 if test -x $with_build_time_tools/objcopy; then
12118 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12119 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12121$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12122 else
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12124$as_echo "no" >&6; }
12125 fi
12126 elif test $build != $host && test $have_gcc_for_target = yes; then
12127 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12128 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12129 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12130 fi
12131fi
12132if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12133 # Extract the first word of "objcopy", so it can be a program name with args.
12134set dummy objcopy; ac_word=$2
12135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12136$as_echo_n "checking for $ac_word... " >&6; }
12137if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12138 $as_echo_n "(cached) " >&6
12139else
12140 case $OBJCOPY_FOR_TARGET in
12141 [\\/]* | ?:[\\/]*)
12142 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12143 ;;
12144 *)
12145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12146for as_dir in $gcc_cv_tool_dirs
12147do
12148 IFS=$as_save_IFS
12149 test -z "$as_dir" && as_dir=.
12150 for ac_exec_ext in '' $ac_executable_extensions; do
12151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12152 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12154 break 2
12155 fi
12156done
12157 done
12158IFS=$as_save_IFS
12159
12160 ;;
12161esac
12162fi
12163OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12164if test -n "$OBJCOPY_FOR_TARGET"; then
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12166$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12167else
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12169$as_echo "no" >&6; }
12170fi
12171
12172
12173fi
12174if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12175
12176
12177if test -n "$OBJCOPY_FOR_TARGET"; then
12178 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12179elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12180 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12181fi
12182
12183if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12184 for ncn_progname in objcopy; do
12185 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12186set dummy ${ncn_progname}; ac_word=$2
12187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12188$as_echo_n "checking for $ac_word... " >&6; }
12189if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12190 $as_echo_n "(cached) " >&6
12191else
12192 if test -n "$OBJCOPY_FOR_TARGET"; then
12193 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12194else
12195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12196for as_dir in $PATH
12197do
12198 IFS=$as_save_IFS
12199 test -z "$as_dir" && as_dir=.
12200 for ac_exec_ext in '' $ac_executable_extensions; do
12201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12202 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12204 break 2
12205 fi
12206done
12207 done
12208IFS=$as_save_IFS
12209
12210fi
12211fi
12212OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12213if test -n "$OBJCOPY_FOR_TARGET"; then
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12215$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12216else
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12218$as_echo "no" >&6; }
12219fi
12220
12221
12222 done
12223fi
12224
12225if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12226 for ncn_progname in objcopy; do
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12228$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12229 if test -x $with_build_time_tools/${ncn_progname}; then
12230 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12232$as_echo "yes" >&6; }
12233 break
12234 else
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12236$as_echo "no" >&6; }
12237 fi
12238 done
12239fi
12240
12241if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12242 for ncn_progname in objcopy; do
12243 if test -n "$ncn_target_tool_prefix"; then
12244 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12245set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12247$as_echo_n "checking for $ac_word... " >&6; }
12248if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12249 $as_echo_n "(cached) " >&6
12250else
12251 if test -n "$OBJCOPY_FOR_TARGET"; then
12252 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12253else
12254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12255for as_dir in $PATH
12256do
12257 IFS=$as_save_IFS
12258 test -z "$as_dir" && as_dir=.
12259 for ac_exec_ext in '' $ac_executable_extensions; do
12260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12261 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12263 break 2
12264 fi
12265done
12266 done
12267IFS=$as_save_IFS
12268
12269fi
12270fi
12271OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12272if test -n "$OBJCOPY_FOR_TARGET"; then
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12274$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12275else
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12277$as_echo "no" >&6; }
12278fi
12279
12280
12281 fi
12282 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12283 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12284set dummy ${ncn_progname}; ac_word=$2
12285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12286$as_echo_n "checking for $ac_word... " >&6; }
12287if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12288 $as_echo_n "(cached) " >&6
12289else
12290 if test -n "$OBJCOPY_FOR_TARGET"; then
12291 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12292else
12293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12294for as_dir in $PATH
12295do
12296 IFS=$as_save_IFS
12297 test -z "$as_dir" && as_dir=.
12298 for ac_exec_ext in '' $ac_executable_extensions; do
12299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12300 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12302 break 2
12303 fi
12304done
12305 done
12306IFS=$as_save_IFS
12307
12308fi
12309fi
12310OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12311if test -n "$OBJCOPY_FOR_TARGET"; then
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12313$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12314else
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12316$as_echo "no" >&6; }
12317fi
12318
12319
12320 fi
12321 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12322 done
12323fi
12324
12325if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12326 set dummy objcopy
12327 if test $build = $target ; then
12328 OBJCOPY_FOR_TARGET="$2"
12329 else
12330 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12331 fi
12332else
12333 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12334fi
12335
12336else
12337 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12338fi
12339
12340
12341
12342
e8b05380
PB
12343if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12344 if test -n "$with_build_time_tools"; then
5213506e
RW
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12346$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12347 if test -x $with_build_time_tools/objdump; then
12348 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12349 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12351$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 12352 else
5213506e
RW
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12354$as_echo "no" >&6; }
d1f8db0c 12355 fi
e8b05380
PB
12356 elif test $build != $host && test $have_gcc_for_target = yes; then
12357 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
12358 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12359 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
12360 fi
12361fi
3e19841a 12362if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12363 # Extract the first word of "objdump", so it can be a program name with args.
12364set dummy objdump; ac_word=$2
5213506e
RW
12365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12366$as_echo_n "checking for $ac_word... " >&6; }
12367if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12368 $as_echo_n "(cached) " >&6
e8b05380 12369else
1c710c3c
DJ
12370 case $OBJDUMP_FOR_TARGET in
12371 [\\/]* | ?:[\\/]*)
e8b05380
PB
12372 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12373 ;;
e8b05380 12374 *)
1c710c3c
DJ
12375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12376for as_dir in $gcc_cv_tool_dirs
12377do
12378 IFS=$as_save_IFS
12379 test -z "$as_dir" && as_dir=.
5213506e
RW
12380 for ac_exec_ext in '' $ac_executable_extensions; do
12381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12382 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12384 break 2
12385 fi
12386done
5213506e
RW
12387 done
12388IFS=$as_save_IFS
1c710c3c 12389
e8b05380
PB
12390 ;;
12391esac
12392fi
1c710c3c 12393OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 12394if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12396$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 12397else
5213506e
RW
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12399$as_echo "no" >&6; }
e8b05380
PB
12400fi
12401
5213506e 12402
e8b05380
PB
12403fi
12404if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
12405
12406
12407if test -n "$OBJDUMP_FOR_TARGET"; then
12408 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12409elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12410 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12411fi
12412
12413if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12414 for ncn_progname in objdump; do
12415 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12416set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12418$as_echo_n "checking for $ac_word... " >&6; }
12419if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12420 $as_echo_n "(cached) " >&6
278a7a38
AO
12421else
12422 if test -n "$OBJDUMP_FOR_TARGET"; then
12423 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12424else
12425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12426for as_dir in $PATH
12427do
12428 IFS=$as_save_IFS
12429 test -z "$as_dir" && as_dir=.
5213506e
RW
12430 for ac_exec_ext in '' $ac_executable_extensions; do
12431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12432 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12434 break 2
12435 fi
12436done
5213506e
RW
12437 done
12438IFS=$as_save_IFS
278a7a38
AO
12439
12440fi
12441fi
12442OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12443if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12445$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 12446else
5213506e
RW
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12448$as_echo "no" >&6; }
278a7a38
AO
12449fi
12450
5213506e 12451
278a7a38
AO
12452 done
12453fi
12454
12455if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12456 for ncn_progname in objdump; do
5213506e
RW
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12458$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12459 if test -x $with_build_time_tools/${ncn_progname}; then
12460 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12462$as_echo "yes" >&6; }
e8b05380
PB
12463 break
12464 else
5213506e
RW
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12466$as_echo "no" >&6; }
e8b05380
PB
12467 fi
12468 done
12469fi
12470
12471if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12472 for ncn_progname in objdump; do
12473 if test -n "$ncn_target_tool_prefix"; then
12474 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12475set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12477$as_echo_n "checking for $ac_word... " >&6; }
12478if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12479 $as_echo_n "(cached) " >&6
d739199a
DJ
12480else
12481 if test -n "$OBJDUMP_FOR_TARGET"; then
12482 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12483else
1c710c3c
DJ
12484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12485for as_dir in $PATH
12486do
12487 IFS=$as_save_IFS
12488 test -z "$as_dir" && as_dir=.
5213506e
RW
12489 for ac_exec_ext in '' $ac_executable_extensions; do
12490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12491 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12493 break 2
12494 fi
12495done
5213506e
RW
12496 done
12497IFS=$as_save_IFS
1c710c3c 12498
d739199a
DJ
12499fi
12500fi
1c710c3c 12501OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12502if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12504$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12505else
5213506e
RW
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12507$as_echo "no" >&6; }
d739199a
DJ
12508fi
12509
5213506e 12510
e8b05380
PB
12511 fi
12512 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12513 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 12514set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12516$as_echo_n "checking for $ac_word... " >&6; }
12517if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12518 $as_echo_n "(cached) " >&6
d739199a
DJ
12519else
12520 if test -n "$OBJDUMP_FOR_TARGET"; then
12521 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12522else
1c710c3c
DJ
12523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12524for as_dir in $PATH
12525do
12526 IFS=$as_save_IFS
12527 test -z "$as_dir" && as_dir=.
5213506e
RW
12528 for ac_exec_ext in '' $ac_executable_extensions; do
12529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12530 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12532 break 2
12533 fi
12534done
5213506e
RW
12535 done
12536IFS=$as_save_IFS
1c710c3c 12537
d739199a
DJ
12538fi
12539fi
1c710c3c 12540OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12541if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12543$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12544else
5213506e
RW
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12546$as_echo "no" >&6; }
d739199a 12547fi
1c710c3c 12548
5213506e 12549
e8b05380
PB
12550 fi
12551 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12552 done
12553fi
1c710c3c 12554
d739199a
DJ
12555if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12556 set dummy objdump
12557 if test $build = $target ; then
12558 OBJDUMP_FOR_TARGET="$2"
12559 else
12560 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12561 fi
1c00b503
PB
12562else
12563 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
12564fi
12565
d1f8db0c
PB
12566else
12567 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
12568fi
12569
12570
12571
12572
12573if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12574 if test -n "$with_build_time_tools"; then
5213506e
RW
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12576$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12577 if test -x $with_build_time_tools/ranlib; then
12578 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12579 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12581$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 12582 else
5213506e
RW
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12584$as_echo "no" >&6; }
d1f8db0c 12585 fi
e8b05380
PB
12586 elif test $build != $host && test $have_gcc_for_target = yes; then
12587 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
12588 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12589 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
12590 fi
12591fi
3e19841a 12592if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12593 # Extract the first word of "ranlib", so it can be a program name with args.
12594set dummy ranlib; ac_word=$2
5213506e
RW
12595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12596$as_echo_n "checking for $ac_word... " >&6; }
12597if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12598 $as_echo_n "(cached) " >&6
e8b05380 12599else
1c710c3c
DJ
12600 case $RANLIB_FOR_TARGET in
12601 [\\/]* | ?:[\\/]*)
e8b05380
PB
12602 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12603 ;;
e8b05380 12604 *)
1c710c3c
DJ
12605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12606for as_dir in $gcc_cv_tool_dirs
12607do
12608 IFS=$as_save_IFS
12609 test -z "$as_dir" && as_dir=.
5213506e
RW
12610 for ac_exec_ext in '' $ac_executable_extensions; do
12611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12612 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12614 break 2
12615 fi
12616done
5213506e
RW
12617 done
12618IFS=$as_save_IFS
1c710c3c 12619
e8b05380
PB
12620 ;;
12621esac
12622fi
1c710c3c 12623RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 12624if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12626$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 12627else
5213506e
RW
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12629$as_echo "no" >&6; }
e8b05380
PB
12630fi
12631
5213506e 12632
e8b05380
PB
12633fi
12634if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
12635
12636
12637if test -n "$RANLIB_FOR_TARGET"; then
12638 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12639elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12640 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12641fi
12642
12643if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12644 for ncn_progname in ranlib; do
12645 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12646set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12648$as_echo_n "checking for $ac_word... " >&6; }
12649if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12650 $as_echo_n "(cached) " >&6
278a7a38
AO
12651else
12652 if test -n "$RANLIB_FOR_TARGET"; then
12653 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12654else
12655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12656for as_dir in $PATH
12657do
12658 IFS=$as_save_IFS
12659 test -z "$as_dir" && as_dir=.
5213506e
RW
12660 for ac_exec_ext in '' $ac_executable_extensions; do
12661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12662 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12664 break 2
12665 fi
12666done
5213506e
RW
12667 done
12668IFS=$as_save_IFS
278a7a38
AO
12669
12670fi
12671fi
12672RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12673if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12675$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 12676else
5213506e
RW
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12678$as_echo "no" >&6; }
278a7a38
AO
12679fi
12680
5213506e 12681
278a7a38
AO
12682 done
12683fi
12684
12685if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12686 for ncn_progname in ranlib; do
5213506e
RW
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12688$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12689 if test -x $with_build_time_tools/${ncn_progname}; then
12690 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12692$as_echo "yes" >&6; }
e8b05380
PB
12693 break
12694 else
5213506e
RW
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12696$as_echo "no" >&6; }
e8b05380
PB
12697 fi
12698 done
12699fi
12700
12701if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12702 for ncn_progname in ranlib; do
12703 if test -n "$ncn_target_tool_prefix"; then
12704 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 12705set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12707$as_echo_n "checking for $ac_word... " >&6; }
12708if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12709 $as_echo_n "(cached) " >&6
ca9f4b81 12710else
4de997d1
PB
12711 if test -n "$RANLIB_FOR_TARGET"; then
12712 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12713else
1c710c3c
DJ
12714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12715for as_dir in $PATH
12716do
12717 IFS=$as_save_IFS
12718 test -z "$as_dir" && as_dir=.
5213506e
RW
12719 for ac_exec_ext in '' $ac_executable_extensions; do
12720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12721 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12723 break 2
12724 fi
12725done
5213506e
RW
12726 done
12727IFS=$as_save_IFS
1c710c3c 12728
ca9f4b81
AO
12729fi
12730fi
1c710c3c 12731RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 12732if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12734$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12735else
5213506e
RW
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12737$as_echo "no" >&6; }
ca9f4b81
AO
12738fi
12739
5213506e 12740
e8b05380
PB
12741 fi
12742 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12743 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12744set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12746$as_echo_n "checking for $ac_word... " >&6; }
12747if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12748 $as_echo_n "(cached) " >&6
ca9f4b81 12749else
2693c0b0
PB
12750 if test -n "$RANLIB_FOR_TARGET"; then
12751 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12752else
1c710c3c
DJ
12753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12754for as_dir in $PATH
12755do
12756 IFS=$as_save_IFS
12757 test -z "$as_dir" && as_dir=.
5213506e
RW
12758 for ac_exec_ext in '' $ac_executable_extensions; do
12759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12760 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12762 break 2
12763 fi
12764done
5213506e
RW
12765 done
12766IFS=$as_save_IFS
1c710c3c 12767
ca9f4b81
AO
12768fi
12769fi
1c710c3c 12770RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 12771if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12773$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12774else
5213506e
RW
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12776$as_echo "no" >&6; }
ca9f4b81 12777fi
1c710c3c 12778
5213506e 12779
e8b05380
PB
12780 fi
12781 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12782 done
12783fi
1c710c3c 12784
e8b05380
PB
12785if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12786 set dummy ranlib
12787 if test $build = $target ; then
12788 RANLIB_FOR_TARGET="$2"
12789 else
12790 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12791 fi
1c00b503
PB
12792else
12793 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 12794fi
2693c0b0 12795
d1f8db0c
PB
12796else
12797 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
12798fi
12799
e8b05380
PB
12800
12801
12802
e7a82751
RM
12803if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12804 if test -n "$with_build_time_tools"; then
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12806$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12807 if test -x $with_build_time_tools/readelf; then
12808 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12809 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12811$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12812 else
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12814$as_echo "no" >&6; }
12815 fi
12816 elif test $build != $host && test $have_gcc_for_target = yes; then
12817 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12818 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12819 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12820 fi
12821fi
12822if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12823 # Extract the first word of "readelf", so it can be a program name with args.
12824set dummy readelf; ac_word=$2
12825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12826$as_echo_n "checking for $ac_word... " >&6; }
12827if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12828 $as_echo_n "(cached) " >&6
12829else
12830 case $READELF_FOR_TARGET in
12831 [\\/]* | ?:[\\/]*)
12832 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12833 ;;
12834 *)
12835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12836for as_dir in $gcc_cv_tool_dirs
12837do
12838 IFS=$as_save_IFS
12839 test -z "$as_dir" && as_dir=.
12840 for ac_exec_ext in '' $ac_executable_extensions; do
12841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12842 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12844 break 2
12845 fi
12846done
12847 done
12848IFS=$as_save_IFS
12849
12850 ;;
12851esac
12852fi
12853READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12854if test -n "$READELF_FOR_TARGET"; then
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12856$as_echo "$READELF_FOR_TARGET" >&6; }
12857else
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12859$as_echo "no" >&6; }
12860fi
12861
12862
12863fi
12864if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12865
12866
12867if test -n "$READELF_FOR_TARGET"; then
12868 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12869elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12870 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12871fi
12872
12873if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12874 for ncn_progname in readelf; do
12875 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12876set dummy ${ncn_progname}; ac_word=$2
12877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12878$as_echo_n "checking for $ac_word... " >&6; }
12879if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12880 $as_echo_n "(cached) " >&6
12881else
12882 if test -n "$READELF_FOR_TARGET"; then
12883 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12884else
12885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12886for as_dir in $PATH
12887do
12888 IFS=$as_save_IFS
12889 test -z "$as_dir" && as_dir=.
12890 for ac_exec_ext in '' $ac_executable_extensions; do
12891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12892 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12894 break 2
12895 fi
12896done
12897 done
12898IFS=$as_save_IFS
12899
12900fi
12901fi
12902READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12903if test -n "$READELF_FOR_TARGET"; then
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12905$as_echo "$READELF_FOR_TARGET" >&6; }
12906else
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12908$as_echo "no" >&6; }
12909fi
12910
12911
12912 done
12913fi
12914
12915if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12916 for ncn_progname in readelf; do
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12918$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12919 if test -x $with_build_time_tools/${ncn_progname}; then
12920 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12922$as_echo "yes" >&6; }
12923 break
12924 else
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12926$as_echo "no" >&6; }
12927 fi
12928 done
12929fi
12930
12931if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12932 for ncn_progname in readelf; do
12933 if test -n "$ncn_target_tool_prefix"; then
12934 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12935set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12937$as_echo_n "checking for $ac_word... " >&6; }
12938if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12939 $as_echo_n "(cached) " >&6
12940else
12941 if test -n "$READELF_FOR_TARGET"; then
12942 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12943else
12944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12945for as_dir in $PATH
12946do
12947 IFS=$as_save_IFS
12948 test -z "$as_dir" && as_dir=.
12949 for ac_exec_ext in '' $ac_executable_extensions; do
12950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12951 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12953 break 2
12954 fi
12955done
12956 done
12957IFS=$as_save_IFS
12958
12959fi
12960fi
12961READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12962if test -n "$READELF_FOR_TARGET"; then
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12964$as_echo "$READELF_FOR_TARGET" >&6; }
12965else
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12967$as_echo "no" >&6; }
12968fi
12969
12970
12971 fi
12972 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12973 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12974set dummy ${ncn_progname}; ac_word=$2
12975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12976$as_echo_n "checking for $ac_word... " >&6; }
12977if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12978 $as_echo_n "(cached) " >&6
12979else
12980 if test -n "$READELF_FOR_TARGET"; then
12981 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12982else
12983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12984for as_dir in $PATH
12985do
12986 IFS=$as_save_IFS
12987 test -z "$as_dir" && as_dir=.
12988 for ac_exec_ext in '' $ac_executable_extensions; do
12989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12990 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12992 break 2
12993 fi
12994done
12995 done
12996IFS=$as_save_IFS
12997
12998fi
12999fi
13000READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13001if test -n "$READELF_FOR_TARGET"; then
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13003$as_echo "$READELF_FOR_TARGET" >&6; }
13004else
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13006$as_echo "no" >&6; }
13007fi
13008
13009
13010 fi
13011 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13012 done
13013fi
13014
13015if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13016 set dummy readelf
13017 if test $build = $target ; then
13018 READELF_FOR_TARGET="$2"
13019 else
13020 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13021 fi
13022else
13023 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13024fi
13025
13026else
13027 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13028fi
13029
13030
13031
13032
e8b05380
PB
13033if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13034 if test -n "$with_build_time_tools"; then
5213506e
RW
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13036$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13037 if test -x $with_build_time_tools/strip; then
13038 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13039 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13041$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 13042 else
5213506e
RW
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13044$as_echo "no" >&6; }
d1f8db0c 13045 fi
e8b05380
PB
13046 elif test $build != $host && test $have_gcc_for_target = yes; then
13047 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
13048 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13049 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
13050 fi
13051fi
3e19841a 13052if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13053 # Extract the first word of "strip", so it can be a program name with args.
13054set dummy strip; ac_word=$2
5213506e
RW
13055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13056$as_echo_n "checking for $ac_word... " >&6; }
13057if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13058 $as_echo_n "(cached) " >&6
e8b05380 13059else
1c710c3c
DJ
13060 case $STRIP_FOR_TARGET in
13061 [\\/]* | ?:[\\/]*)
e8b05380
PB
13062 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13063 ;;
e8b05380 13064 *)
1c710c3c
DJ
13065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13066for as_dir in $gcc_cv_tool_dirs
13067do
13068 IFS=$as_save_IFS
13069 test -z "$as_dir" && as_dir=.
5213506e
RW
13070 for ac_exec_ext in '' $ac_executable_extensions; do
13071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13072 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13074 break 2
13075 fi
13076done
5213506e
RW
13077 done
13078IFS=$as_save_IFS
1c710c3c 13079
e8b05380
PB
13080 ;;
13081esac
13082fi
1c710c3c 13083STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 13084if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13086$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 13087else
5213506e
RW
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13089$as_echo "no" >&6; }
e8b05380
PB
13090fi
13091
5213506e 13092
e8b05380
PB
13093fi
13094if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
13095
13096
13097if test -n "$STRIP_FOR_TARGET"; then
13098 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13099elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13100 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13101fi
13102
13103if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13104 for ncn_progname in strip; do
13105 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13106set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13108$as_echo_n "checking for $ac_word... " >&6; }
13109if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13110 $as_echo_n "(cached) " >&6
278a7a38
AO
13111else
13112 if test -n "$STRIP_FOR_TARGET"; then
13113 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13114else
13115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13116for as_dir in $PATH
13117do
13118 IFS=$as_save_IFS
13119 test -z "$as_dir" && as_dir=.
5213506e
RW
13120 for ac_exec_ext in '' $ac_executable_extensions; do
13121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 13122 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13124 break 2
13125 fi
13126done
5213506e
RW
13127 done
13128IFS=$as_save_IFS
278a7a38
AO
13129
13130fi
13131fi
13132STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13133if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13135$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 13136else
5213506e
RW
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13138$as_echo "no" >&6; }
278a7a38
AO
13139fi
13140
5213506e 13141
278a7a38
AO
13142 done
13143fi
13144
13145if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13146 for ncn_progname in strip; do
5213506e
RW
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13148$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13149 if test -x $with_build_time_tools/${ncn_progname}; then
13150 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13152$as_echo "yes" >&6; }
e8b05380
PB
13153 break
13154 else
5213506e
RW
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13156$as_echo "no" >&6; }
e8b05380
PB
13157 fi
13158 done
13159fi
13160
13161if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13162 for ncn_progname in strip; do
13163 if test -n "$ncn_target_tool_prefix"; then
13164 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 13165set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13167$as_echo_n "checking for $ac_word... " >&6; }
13168if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13169 $as_echo_n "(cached) " >&6
af71363e
AS
13170else
13171 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
13172 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13173else
13174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13175for as_dir in $PATH
13176do
13177 IFS=$as_save_IFS
13178 test -z "$as_dir" && as_dir=.
5213506e
RW
13179 for ac_exec_ext in '' $ac_executable_extensions; do
13180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13181 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13183 break 2
13184 fi
13185done
5213506e
RW
13186 done
13187IFS=$as_save_IFS
1c710c3c 13188
040b1c5a
GK
13189fi
13190fi
1c710c3c 13191STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13192if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13194$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13195else
5213506e
RW
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13197$as_echo "no" >&6; }
040b1c5a
GK
13198fi
13199
5213506e 13200
e8b05380
PB
13201 fi
13202 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13203 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 13204set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13206$as_echo_n "checking for $ac_word... " >&6; }
13207if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13208 $as_echo_n "(cached) " >&6
040b1c5a
GK
13209else
13210 if test -n "$STRIP_FOR_TARGET"; then
13211 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13212else
1c710c3c
DJ
13213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13214for as_dir in $PATH
13215do
13216 IFS=$as_save_IFS
13217 test -z "$as_dir" && as_dir=.
5213506e
RW
13218 for ac_exec_ext in '' $ac_executable_extensions; do
13219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13220 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13222 break 2
13223 fi
13224done
5213506e
RW
13225 done
13226IFS=$as_save_IFS
1c710c3c 13227
040b1c5a
GK
13228fi
13229fi
1c710c3c 13230STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13231if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13233$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13234else
5213506e
RW
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13236$as_echo "no" >&6; }
040b1c5a 13237fi
1c710c3c 13238
5213506e 13239
e8b05380
PB
13240 fi
13241 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13242 done
13243fi
1c710c3c 13244
040b1c5a
GK
13245if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13246 set dummy strip
13247 if test $build = $target ; then
13248 STRIP_FOR_TARGET="$2"
13249 else
13250 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13251 fi
1c00b503
PB
13252else
13253 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
13254fi
13255
d1f8db0c
PB
13256else
13257 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
13258fi
13259
13260
13261
13262
13263if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13264 if test -n "$with_build_time_tools"; then
5213506e
RW
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13266$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13267 if test -x $with_build_time_tools/windres; then
13268 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13269 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13271$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 13272 else
5213506e
RW
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13274$as_echo "no" >&6; }
d1f8db0c 13275 fi
e8b05380
PB
13276 elif test $build != $host && test $have_gcc_for_target = yes; then
13277 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
13278 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13279 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
13280 fi
13281fi
3e19841a 13282if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13283 # Extract the first word of "windres", so it can be a program name with args.
13284set dummy windres; ac_word=$2
5213506e
RW
13285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13286$as_echo_n "checking for $ac_word... " >&6; }
13287if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13288 $as_echo_n "(cached) " >&6
e8b05380 13289else
1c710c3c
DJ
13290 case $WINDRES_FOR_TARGET in
13291 [\\/]* | ?:[\\/]*)
e8b05380
PB
13292 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13293 ;;
e8b05380 13294 *)
1c710c3c
DJ
13295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13296for as_dir in $gcc_cv_tool_dirs
13297do
13298 IFS=$as_save_IFS
13299 test -z "$as_dir" && as_dir=.
5213506e
RW
13300 for ac_exec_ext in '' $ac_executable_extensions; do
13301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13302 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13304 break 2
13305 fi
13306done
5213506e
RW
13307 done
13308IFS=$as_save_IFS
1c710c3c 13309
e8b05380
PB
13310 ;;
13311esac
13312fi
1c710c3c 13313WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 13314if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13316$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 13317else
5213506e
RW
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13319$as_echo "no" >&6; }
e8b05380
PB
13320fi
13321
5213506e 13322
e8b05380
PB
13323fi
13324if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
13325
13326
13327if test -n "$WINDRES_FOR_TARGET"; then
13328 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13329elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13330 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13331fi
13332
13333if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13334 for ncn_progname in windres; do
13335 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13336set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13338$as_echo_n "checking for $ac_word... " >&6; }
13339if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13340 $as_echo_n "(cached) " >&6
278a7a38
AO
13341else
13342 if test -n "$WINDRES_FOR_TARGET"; then
13343 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13344else
13345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13346for as_dir in $PATH
13347do
13348 IFS=$as_save_IFS
13349 test -z "$as_dir" && as_dir=.
5213506e
RW
13350 for ac_exec_ext in '' $ac_executable_extensions; do
13351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 13352 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13354 break 2
13355 fi
13356done
5213506e
RW
13357 done
13358IFS=$as_save_IFS
278a7a38
AO
13359
13360fi
13361fi
13362WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13363if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13365$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 13366else
5213506e
RW
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13368$as_echo "no" >&6; }
278a7a38
AO
13369fi
13370
5213506e 13371
278a7a38
AO
13372 done
13373fi
13374
13375if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13376 for ncn_progname in windres; do
5213506e
RW
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13378$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13379 if test -x $with_build_time_tools/${ncn_progname}; then
13380 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13382$as_echo "yes" >&6; }
e8b05380
PB
13383 break
13384 else
5213506e
RW
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13386$as_echo "no" >&6; }
e8b05380
PB
13387 fi
13388 done
13389fi
13390
13391if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13392 for ncn_progname in windres; do
13393 if test -n "$ncn_target_tool_prefix"; then
13394 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13395set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13397$as_echo_n "checking for $ac_word... " >&6; }
13398if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13399 $as_echo_n "(cached) " >&6
ca9f4b81 13400else
4de997d1
PB
13401 if test -n "$WINDRES_FOR_TARGET"; then
13402 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13403else
1c710c3c
DJ
13404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13405for as_dir in $PATH
13406do
13407 IFS=$as_save_IFS
13408 test -z "$as_dir" && as_dir=.
5213506e
RW
13409 for ac_exec_ext in '' $ac_executable_extensions; do
13410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13411 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13413 break 2
13414 fi
13415done
5213506e
RW
13416 done
13417IFS=$as_save_IFS
1c710c3c 13418
ca9f4b81
AO
13419fi
13420fi
1c710c3c 13421WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 13422if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13424$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13425else
5213506e
RW
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13427$as_echo "no" >&6; }
ca9f4b81
AO
13428fi
13429
5213506e 13430
e8b05380
PB
13431 fi
13432 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13433 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13434set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13436$as_echo_n "checking for $ac_word... " >&6; }
13437if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13438 $as_echo_n "(cached) " >&6
ca9f4b81 13439else
2693c0b0
PB
13440 if test -n "$WINDRES_FOR_TARGET"; then
13441 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13442else
1c710c3c
DJ
13443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13444for as_dir in $PATH
13445do
13446 IFS=$as_save_IFS
13447 test -z "$as_dir" && as_dir=.
5213506e
RW
13448 for ac_exec_ext in '' $ac_executable_extensions; do
13449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13450 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13452 break 2
13453 fi
13454done
5213506e
RW
13455 done
13456IFS=$as_save_IFS
1c710c3c 13457
ca9f4b81
AO
13458fi
13459fi
1c710c3c 13460WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 13461if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13463$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13464else
5213506e
RW
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13466$as_echo "no" >&6; }
ca9f4b81 13467fi
1c710c3c 13468
5213506e 13469
e8b05380
PB
13470 fi
13471 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13472 done
13473fi
1c710c3c 13474
2693c0b0
PB
13475if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13476 set dummy windres
13477 if test $build = $target ; then
13478 WINDRES_FOR_TARGET="$2"
ca9f4b81 13479 else
2693c0b0 13480 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 13481 fi
1c00b503
PB
13482else
13483 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
13484fi
13485
d1f8db0c
PB
13486else
13487 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
13488fi
13489
4977bab6 13490
901119ae
KT
13491
13492
13493if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13494 if test -n "$with_build_time_tools"; then
5213506e
RW
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13496$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
13497 if test -x $with_build_time_tools/windmc; then
13498 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13499 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13501$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 13502 else
5213506e
RW
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13504$as_echo "no" >&6; }
901119ae
KT
13505 fi
13506 elif test $build != $host && test $have_gcc_for_target = yes; then
13507 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
13508 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13509 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
13510 fi
13511fi
13512if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13513 # Extract the first word of "windmc", so it can be a program name with args.
13514set dummy windmc; ac_word=$2
5213506e
RW
13515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13516$as_echo_n "checking for $ac_word... " >&6; }
13517if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13518 $as_echo_n "(cached) " >&6
901119ae
KT
13519else
13520 case $WINDMC_FOR_TARGET in
13521 [\\/]* | ?:[\\/]*)
13522 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13523 ;;
13524 *)
13525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13526for as_dir in $gcc_cv_tool_dirs
13527do
13528 IFS=$as_save_IFS
13529 test -z "$as_dir" && as_dir=.
5213506e
RW
13530 for ac_exec_ext in '' $ac_executable_extensions; do
13531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13532 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13534 break 2
13535 fi
13536done
5213506e
RW
13537 done
13538IFS=$as_save_IFS
901119ae
KT
13539
13540 ;;
13541esac
13542fi
13543WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 13544if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13546$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13547else
5213506e
RW
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13549$as_echo "no" >&6; }
901119ae
KT
13550fi
13551
5213506e 13552
901119ae
KT
13553fi
13554if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13555
13556
13557if test -n "$WINDMC_FOR_TARGET"; then
13558 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13559elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13560 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13561fi
13562
13563if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13564 for ncn_progname in windmc; do
13565 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13566set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13568$as_echo_n "checking for $ac_word... " >&6; }
13569if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13570 $as_echo_n "(cached) " >&6
901119ae
KT
13571else
13572 if test -n "$WINDMC_FOR_TARGET"; then
13573 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13574else
13575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13576for as_dir in $PATH
13577do
13578 IFS=$as_save_IFS
13579 test -z "$as_dir" && as_dir=.
5213506e
RW
13580 for ac_exec_ext in '' $ac_executable_extensions; do
13581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13582 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13584 break 2
13585 fi
13586done
5213506e
RW
13587 done
13588IFS=$as_save_IFS
901119ae
KT
13589
13590fi
13591fi
13592WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13593if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13595$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13596else
5213506e
RW
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13598$as_echo "no" >&6; }
901119ae
KT
13599fi
13600
5213506e 13601
901119ae
KT
13602 done
13603fi
13604
13605if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13606 for ncn_progname in windmc; do
5213506e
RW
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13608$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
13609 if test -x $with_build_time_tools/${ncn_progname}; then
13610 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13612$as_echo "yes" >&6; }
901119ae
KT
13613 break
13614 else
5213506e
RW
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13616$as_echo "no" >&6; }
901119ae
KT
13617 fi
13618 done
13619fi
13620
13621if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13622 for ncn_progname in windmc; do
13623 if test -n "$ncn_target_tool_prefix"; then
13624 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13625set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13627$as_echo_n "checking for $ac_word... " >&6; }
13628if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13629 $as_echo_n "(cached) " >&6
901119ae
KT
13630else
13631 if test -n "$WINDMC_FOR_TARGET"; then
13632 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13633else
13634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13635for as_dir in $PATH
13636do
13637 IFS=$as_save_IFS
13638 test -z "$as_dir" && as_dir=.
5213506e
RW
13639 for ac_exec_ext in '' $ac_executable_extensions; do
13640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13641 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13643 break 2
13644 fi
13645done
5213506e
RW
13646 done
13647IFS=$as_save_IFS
901119ae
KT
13648
13649fi
13650fi
13651WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13652if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13654$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13655else
5213506e
RW
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13657$as_echo "no" >&6; }
901119ae
KT
13658fi
13659
5213506e 13660
901119ae
KT
13661 fi
13662 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13663 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13664set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13666$as_echo_n "checking for $ac_word... " >&6; }
13667if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13668 $as_echo_n "(cached) " >&6
901119ae
KT
13669else
13670 if test -n "$WINDMC_FOR_TARGET"; then
13671 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13672else
13673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13674for as_dir in $PATH
13675do
13676 IFS=$as_save_IFS
13677 test -z "$as_dir" && as_dir=.
5213506e
RW
13678 for ac_exec_ext in '' $ac_executable_extensions; do
13679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13680 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13682 break 2
13683 fi
13684done
5213506e
RW
13685 done
13686IFS=$as_save_IFS
901119ae
KT
13687
13688fi
13689fi
13690WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13691if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13693$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13694else
5213506e
RW
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13696$as_echo "no" >&6; }
901119ae
KT
13697fi
13698
5213506e 13699
901119ae
KT
13700 fi
13701 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13702 done
13703fi
13704
13705if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13706 set dummy windmc
13707 if test $build = $target ; then
13708 WINDMC_FOR_TARGET="$2"
13709 else
13710 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13711 fi
1c00b503
PB
13712else
13713 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
13714fi
13715
13716else
13717 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13718fi
13719
13720
2abefe3d
PB
13721RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13722
5213506e
RW
13723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13724$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 13725if test "x${build}" != "x${host}" ; then
e8b05380
PB
13726 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13727 # We already found the complete path
172e41aa 13728 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13730$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13731 else
13732 # Canadian cross, just use what we found
5213506e
RW
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13734$as_echo "pre-installed" >&6; }
e8b05380 13735 fi
2abefe3d
PB
13736else
13737 ok=yes
13738 case " ${configdirs} " in
13739 *" binutils "*) ;;
13740 *) ok=no ;;
13741 esac
1c710c3c 13742
2abefe3d
PB
13743 if test $ok = yes; then
13744 # An in-tree tool is available and we can use it
13745 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13747$as_echo "just compiled" >&6; }
e8b05380
PB
13748 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13749 # We already found the complete path
172e41aa 13750 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13752$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13753 elif test "x$target" = "x$host"; then
13754 # We can use an host tool
13755 AR_FOR_TARGET='$(AR)'
5213506e
RW
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13757$as_echo "host tool" >&6; }
2abefe3d
PB
13758 else
13759 # We need a cross tool
5213506e
RW
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13761$as_echo "pre-installed" >&6; }
2abefe3d
PB
13762 fi
13763fi
0b0dc272 13764
5213506e
RW
13765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13766$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 13767if test "x${build}" != "x${host}" ; then
e8b05380
PB
13768 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13769 # We already found the complete path
172e41aa 13770 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13772$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13773 else
13774 # Canadian cross, just use what we found
5213506e
RW
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13776$as_echo "pre-installed" >&6; }
e8b05380 13777 fi
2abefe3d
PB
13778else
13779 ok=yes
13780 case " ${configdirs} " in
13781 *" gas "*) ;;
13782 *) ok=no ;;
13783 esac
1c710c3c 13784
2abefe3d
PB
13785 if test $ok = yes; then
13786 # An in-tree tool is available and we can use it
13787 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13789$as_echo "just compiled" >&6; }
e8b05380
PB
13790 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13791 # We already found the complete path
172e41aa 13792 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13794$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13795 elif test "x$target" = "x$host"; then
13796 # We can use an host tool
13797 AS_FOR_TARGET='$(AS)'
5213506e
RW
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13799$as_echo "host tool" >&6; }
2abefe3d
PB
13800 else
13801 # We need a cross tool
5213506e
RW
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13803$as_echo "pre-installed" >&6; }
2abefe3d
PB
13804 fi
13805fi
0b0dc272 13806
5213506e
RW
13807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13808$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 13809if test "x${build}" != "x${host}" ; then
e8b05380
PB
13810 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13811 # We already found the complete path
172e41aa 13812 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13814$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13815 else
13816 # Canadian cross, just use what we found
5213506e
RW
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13818$as_echo "pre-installed" >&6; }
e8b05380 13819 fi
2abefe3d
PB
13820else
13821 ok=yes
13822 case " ${configdirs} " in
13823 *" gcc "*) ;;
13824 *) ok=no ;;
13825 esac
1c710c3c 13826
2abefe3d
PB
13827 if test $ok = yes; then
13828 # An in-tree tool is available and we can use it
13829 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13831$as_echo "just compiled" >&6; }
e8b05380
PB
13832 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13833 # We already found the complete path
172e41aa 13834 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13836$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13837 elif test "x$target" = "x$host"; then
13838 # We can use an host tool
13839 CC_FOR_TARGET='$(CC)'
5213506e
RW
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13841$as_echo "host tool" >&6; }
2abefe3d
PB
13842 else
13843 # We need a cross tool
5213506e
RW
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13845$as_echo "pre-installed" >&6; }
2abefe3d
PB
13846 fi
13847fi
0b0dc272 13848
5213506e
RW
13849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13850$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 13851if test "x${build}" != "x${host}" ; then
e8b05380
PB
13852 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13853 # We already found the complete path
172e41aa 13854 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13856$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13857 else
13858 # Canadian cross, just use what we found
5213506e
RW
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13860$as_echo "pre-installed" >&6; }
e8b05380 13861 fi
2abefe3d
PB
13862else
13863 ok=yes
13864 case " ${configdirs} " in
13865 *" gcc "*) ;;
13866 *) ok=no ;;
13867 esac
13868 case ,${enable_languages}, in
13869 *,c++,*) ;;
13870 *) ok=no ;;
13871 esac
13872 if test $ok = yes; then
13873 # An in-tree tool is available and we can use it
2077db1b 13874 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
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13876$as_echo "just compiled" >&6; }
e8b05380
PB
13877 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13878 # We already found the complete path
172e41aa 13879 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13881$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13882 elif test "x$target" = "x$host"; then
13883 # We can use an host tool
13884 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13886$as_echo "host tool" >&6; }
2abefe3d
PB
13887 else
13888 # We need a cross tool
5213506e
RW
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13890$as_echo "pre-installed" >&6; }
2abefe3d
PB
13891 fi
13892fi
0b0dc272 13893
5213506e
RW
13894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13895$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 13896if test "x${build}" != "x${host}" ; then
e8b05380
PB
13897 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13898 # We already found the complete path
172e41aa 13899 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13901$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13902 else
13903 # Canadian cross, just use what we found
5213506e
RW
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13905$as_echo "pre-installed" >&6; }
e8b05380 13906 fi
2abefe3d
PB
13907else
13908 ok=yes
13909 case " ${configdirs} " in
13910 *" gcc "*) ;;
13911 *) ok=no ;;
13912 esac
13913 case ,${enable_languages}, in
13914 *,c++,*) ;;
13915 *) ok=no ;;
13916 esac
13917 if test $ok = yes; then
13918 # An in-tree tool is available and we can use it
2077db1b 13919 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
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13921$as_echo "just compiled" >&6; }
e8b05380
PB
13922 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13923 # We already found the complete path
172e41aa 13924 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13926$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13927 elif test "x$target" = "x$host"; then
13928 # We can use an host tool
13929 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13931$as_echo "host tool" >&6; }
2abefe3d
PB
13932 else
13933 # We need a cross tool
5213506e
RW
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13935$as_echo "pre-installed" >&6; }
2abefe3d
PB
13936 fi
13937fi
0b0dc272 13938
5213506e
RW
13939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13940$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 13941if test "x${build}" != "x${host}" ; then
e8b05380
PB
13942 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13943 # We already found the complete path
172e41aa 13944 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13946$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13947 else
13948 # Canadian cross, just use what we found
5213506e
RW
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13950$as_echo "pre-installed" >&6; }
e8b05380 13951 fi
2abefe3d
PB
13952else
13953 ok=yes
13954 case " ${configdirs} " in
13955 *" binutils "*) ;;
13956 *) ok=no ;;
13957 esac
1c710c3c 13958
2abefe3d
PB
13959 if test $ok = yes; then
13960 # An in-tree tool is available and we can use it
13961 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13963$as_echo "just compiled" >&6; }
e8b05380
PB
13964 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13965 # We already found the complete path
172e41aa 13966 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13968$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13969 elif test "x$target" = "x$host"; then
13970 # We can use an host tool
13971 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13973$as_echo "host tool" >&6; }
2abefe3d
PB
13974 else
13975 # We need a cross tool
5213506e
RW
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13977$as_echo "pre-installed" >&6; }
2abefe3d
PB
13978 fi
13979fi
0b0dc272 13980
5213506e
RW
13981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13982$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 13983if test "x${build}" != "x${host}" ; then
e8b05380
PB
13984 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13985 # We already found the complete path
172e41aa 13986 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13988$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13989 else
13990 # Canadian cross, just use what we found
5213506e
RW
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13992$as_echo "pre-installed" >&6; }
e8b05380 13993 fi
2abefe3d
PB
13994else
13995 ok=yes
13996 case " ${configdirs} " in
13997 *" gcc "*) ;;
13998 *) ok=no ;;
13999 esac
1c710c3c 14000
2abefe3d
PB
14001 if test $ok = yes; then
14002 # An in-tree tool is available and we can use it
14003 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14005$as_echo "just compiled" >&6; }
e8b05380
PB
14006 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14007 # We already found the complete path
172e41aa 14008 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14010$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14011 elif test "x$target" = "x$host"; then
14012 # We can use an host tool
14013 GCC_FOR_TARGET='$()'
5213506e
RW
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14015$as_echo "host tool" >&6; }
2abefe3d
PB
14016 else
14017 # We need a cross tool
5213506e
RW
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14019$as_echo "pre-installed" >&6; }
2abefe3d
PB
14020 fi
14021fi
0b0dc272 14022
5213506e
RW
14023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14024$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 14025if test "x${build}" != "x${host}" ; then
e8b05380
PB
14026 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14027 # We already found the complete path
172e41aa 14028 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14030$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14031 else
14032 # Canadian cross, just use what we found
5213506e
RW
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14034$as_echo "pre-installed" >&6; }
e8b05380 14035 fi
2abefe3d
PB
14036else
14037 ok=yes
14038 case " ${configdirs} " in
14039 *" gcc "*) ;;
14040 *) ok=no ;;
14041 esac
14042 case ,${enable_languages}, in
14043 *,fortran,*) ;;
14044 *) ok=no ;;
14045 esac
14046 if test $ok = yes; then
14047 # An in-tree tool is available and we can use it
14048 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14050$as_echo "just compiled" >&6; }
e8b05380
PB
14051 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14052 # We already found the complete path
172e41aa 14053 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14055$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14056 elif test "x$target" = "x$host"; then
14057 # We can use an host tool
14058 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14060$as_echo "host tool" >&6; }
2abefe3d
PB
14061 else
14062 # We need a cross tool
5213506e
RW
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14064$as_echo "pre-installed" >&6; }
2abefe3d
PB
14065 fi
14066fi
0b0dc272 14067
632e2a07
ILT
14068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14069$as_echo_n "checking where to find the target gccgo... " >&6; }
14070if test "x${build}" != "x${host}" ; then
14071 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14072 # We already found the complete path
14073 ac_dir=`dirname $GOC_FOR_TARGET`
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14075$as_echo "pre-installed in $ac_dir" >&6; }
14076 else
14077 # Canadian cross, just use what we found
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14079$as_echo "pre-installed" >&6; }
14080 fi
14081else
14082 ok=yes
14083 case " ${configdirs} " in
14084 *" gcc "*) ;;
14085 *) ok=no ;;
14086 esac
14087 case ,${enable_languages}, in
14088 *,go,*) ;;
14089 *) ok=no ;;
14090 esac
14091 if test $ok = yes; then
14092 # An in-tree tool is available and we can use it
14093 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14095$as_echo "just compiled" >&6; }
14096 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14097 # We already found the complete path
14098 ac_dir=`dirname $GOC_FOR_TARGET`
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14100$as_echo "pre-installed in $ac_dir" >&6; }
14101 elif test "x$target" = "x$host"; then
14102 # We can use an host tool
14103 GOC_FOR_TARGET='$(GOC)'
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14105$as_echo "host tool" >&6; }
14106 else
14107 # We need a cross tool
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14109$as_echo "pre-installed" >&6; }
14110 fi
14111fi
14112
5213506e
RW
14113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14114$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 14115if test "x${build}" != "x${host}" ; then
e8b05380
PB
14116 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14117 # We already found the complete path
172e41aa 14118 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14120$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14121 else
14122 # Canadian cross, just use what we found
5213506e
RW
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14124$as_echo "pre-installed" >&6; }
e8b05380 14125 fi
2abefe3d
PB
14126else
14127 ok=yes
14128 case " ${configdirs} " in
14129 *" ld "*) ;;
14130 *) ok=no ;;
14131 esac
1c710c3c 14132
2abefe3d
PB
14133 if test $ok = yes; then
14134 # An in-tree tool is available and we can use it
14135 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14137$as_echo "just compiled" >&6; }
e8b05380
PB
14138 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14139 # We already found the complete path
172e41aa 14140 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14142$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14143 elif test "x$target" = "x$host"; then
14144 # We can use an host tool
14145 LD_FOR_TARGET='$(LD)'
5213506e
RW
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14147$as_echo "host tool" >&6; }
2abefe3d
PB
14148 else
14149 # We need a cross tool
5213506e
RW
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14151$as_echo "pre-installed" >&6; }
2abefe3d
PB
14152 fi
14153fi
0b0dc272 14154
5213506e
RW
14155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14156$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 14157if test "x${build}" != "x${host}" ; then
e8b05380
PB
14158 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14159 # We already found the complete path
172e41aa 14160 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14162$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14163 else
14164 # Canadian cross, just use what we found
5213506e
RW
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14166$as_echo "pre-installed" >&6; }
e8b05380 14167 fi
2abefe3d 14168else
e8b05380
PB
14169 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14170 # We already found the complete path
172e41aa 14171 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14173$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 14174 elif test "x$target" = "x$host"; then
2abefe3d
PB
14175 # We can use an host tool
14176 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14178$as_echo "host tool" >&6; }
2abefe3d
PB
14179 else
14180 # We need a cross tool
5213506e
RW
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14182$as_echo "pre-installed" >&6; }
2abefe3d
PB
14183 fi
14184fi
0b0dc272 14185
5213506e
RW
14186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14187$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 14188if test "x${build}" != "x${host}" ; then
e8b05380
PB
14189 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14190 # We already found the complete path
172e41aa 14191 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14193$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14194 else
14195 # Canadian cross, just use what we found
5213506e
RW
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14197$as_echo "pre-installed" >&6; }
e8b05380 14198 fi
2abefe3d
PB
14199else
14200 ok=yes
14201 case " ${configdirs} " in
14202 *" binutils "*) ;;
14203 *) ok=no ;;
14204 esac
1c710c3c 14205
2abefe3d
PB
14206 if test $ok = yes; then
14207 # An in-tree tool is available and we can use it
14208 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14210$as_echo "just compiled" >&6; }
e8b05380
PB
14211 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14212 # We already found the complete path
172e41aa 14213 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14215$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14216 elif test "x$target" = "x$host"; then
14217 # We can use an host tool
14218 NM_FOR_TARGET='$(NM)'
5213506e
RW
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14220$as_echo "host tool" >&6; }
2abefe3d
PB
14221 else
14222 # We need a cross tool
5213506e
RW
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14224$as_echo "pre-installed" >&6; }
2abefe3d
PB
14225 fi
14226fi
0b0dc272 14227
9bccfdf5
AP
14228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14229$as_echo_n "checking where to find the target objcopy... " >&6; }
14230if test "x${build}" != "x${host}" ; then
14231 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14232 # We already found the complete path
14233 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14235$as_echo "pre-installed in $ac_dir" >&6; }
14236 else
14237 # Canadian cross, just use what we found
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14239$as_echo "pre-installed" >&6; }
14240 fi
14241else
14242 ok=yes
14243 case " ${configdirs} " in
14244 *" binutils "*) ;;
14245 *) ok=no ;;
14246 esac
14247
14248 if test $ok = yes; then
14249 # An in-tree tool is available and we can use it
14250 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14252$as_echo "just compiled" >&6; }
14253 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14254 # We already found the complete path
14255 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14257$as_echo "pre-installed in $ac_dir" >&6; }
14258 elif test "x$target" = "x$host"; then
14259 # We can use an host tool
ec8fd1c0 14260 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
9bccfdf5
AP
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14262$as_echo "host tool" >&6; }
14263 else
14264 # We need a cross tool
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14266$as_echo "pre-installed" >&6; }
14267 fi
14268fi
14269
5213506e
RW
14270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14271$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 14272if test "x${build}" != "x${host}" ; then
e8b05380
PB
14273 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14274 # We already found the complete path
172e41aa 14275 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14277$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14278 else
14279 # Canadian cross, just use what we found
5213506e
RW
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14281$as_echo "pre-installed" >&6; }
e8b05380 14282 fi
2abefe3d
PB
14283else
14284 ok=yes
14285 case " ${configdirs} " in
14286 *" binutils "*) ;;
14287 *) ok=no ;;
14288 esac
1c710c3c 14289
2abefe3d
PB
14290 if test $ok = yes; then
14291 # An in-tree tool is available and we can use it
14292 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14294$as_echo "just compiled" >&6; }
e8b05380
PB
14295 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14296 # We already found the complete path
172e41aa 14297 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14299$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14300 elif test "x$target" = "x$host"; then
14301 # We can use an host tool
14302 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14304$as_echo "host tool" >&6; }
2abefe3d
PB
14305 else
14306 # We need a cross tool
5213506e
RW
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14308$as_echo "pre-installed" >&6; }
2abefe3d
PB
14309 fi
14310fi
0b0dc272 14311
5213506e
RW
14312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14313$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 14314if test "x${build}" != "x${host}" ; then
e8b05380
PB
14315 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14316 # We already found the complete path
172e41aa 14317 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14319$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14320 else
14321 # Canadian cross, just use what we found
5213506e
RW
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14323$as_echo "pre-installed" >&6; }
e8b05380 14324 fi
2abefe3d
PB
14325else
14326 ok=yes
14327 case " ${configdirs} " in
14328 *" binutils "*) ;;
14329 *) ok=no ;;
14330 esac
1c710c3c 14331
2abefe3d
PB
14332 if test $ok = yes; then
14333 # An in-tree tool is available and we can use it
14334 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14336$as_echo "just compiled" >&6; }
e8b05380
PB
14337 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14338 # We already found the complete path
172e41aa 14339 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14341$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14342 elif test "x$target" = "x$host"; then
14343 # We can use an host tool
14344 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14346$as_echo "host tool" >&6; }
2abefe3d
PB
14347 else
14348 # We need a cross tool
5213506e
RW
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14350$as_echo "pre-installed" >&6; }
2abefe3d
PB
14351 fi
14352fi
0b0dc272 14353
e7a82751
RM
14354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14355$as_echo_n "checking where to find the target readelf... " >&6; }
14356if test "x${build}" != "x${host}" ; then
14357 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14358 # We already found the complete path
14359 ac_dir=`dirname $READELF_FOR_TARGET`
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14361$as_echo "pre-installed in $ac_dir" >&6; }
14362 else
14363 # Canadian cross, just use what we found
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14365$as_echo "pre-installed" >&6; }
14366 fi
14367else
14368 ok=yes
14369 case " ${configdirs} " in
14370 *" binutils "*) ;;
14371 *) ok=no ;;
14372 esac
14373
14374 if test $ok = yes; then
14375 # An in-tree tool is available and we can use it
14376 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14378$as_echo "just compiled" >&6; }
14379 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14380 # We already found the complete path
14381 ac_dir=`dirname $READELF_FOR_TARGET`
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14383$as_echo "pre-installed in $ac_dir" >&6; }
14384 elif test "x$target" = "x$host"; then
14385 # We can use an host tool
14386 READELF_FOR_TARGET='$(READELF)'
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14388$as_echo "host tool" >&6; }
14389 else
14390 # We need a cross tool
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14392$as_echo "pre-installed" >&6; }
14393 fi
14394fi
14395
5213506e
RW
14396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14397$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 14398if test "x${build}" != "x${host}" ; then
e8b05380
PB
14399 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14400 # We already found the complete path
172e41aa 14401 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14403$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14404 else
14405 # Canadian cross, just use what we found
5213506e
RW
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14407$as_echo "pre-installed" >&6; }
e8b05380 14408 fi
2abefe3d
PB
14409else
14410 ok=yes
14411 case " ${configdirs} " in
14412 *" binutils "*) ;;
14413 *) ok=no ;;
14414 esac
1c710c3c 14415
2abefe3d
PB
14416 if test $ok = yes; then
14417 # An in-tree tool is available and we can use it
455c8f48 14418 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14420$as_echo "just compiled" >&6; }
e8b05380
PB
14421 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14422 # We already found the complete path
172e41aa 14423 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14425$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14426 elif test "x$target" = "x$host"; then
14427 # We can use an host tool
14428 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14430$as_echo "host tool" >&6; }
2abefe3d
PB
14431 else
14432 # We need a cross tool
5213506e
RW
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14434$as_echo "pre-installed" >&6; }
2abefe3d
PB
14435 fi
14436fi
0b0dc272 14437
5213506e
RW
14438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14439$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 14440if test "x${build}" != "x${host}" ; then
e8b05380
PB
14441 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14442 # We already found the complete path
172e41aa 14443 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14445$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14446 else
14447 # Canadian cross, just use what we found
5213506e
RW
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14449$as_echo "pre-installed" >&6; }
e8b05380 14450 fi
2abefe3d
PB
14451else
14452 ok=yes
14453 case " ${configdirs} " in
14454 *" binutils "*) ;;
14455 *) ok=no ;;
14456 esac
1c710c3c 14457
2abefe3d
PB
14458 if test $ok = yes; then
14459 # An in-tree tool is available and we can use it
14460 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14462$as_echo "just compiled" >&6; }
e8b05380
PB
14463 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14464 # We already found the complete path
172e41aa 14465 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14467$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14468 elif test "x$target" = "x$host"; then
14469 # We can use an host tool
14470 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14472$as_echo "host tool" >&6; }
2abefe3d
PB
14473 else
14474 # We need a cross tool
5213506e
RW
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14476$as_echo "pre-installed" >&6; }
2abefe3d 14477 fi
671aa708 14478fi
be912515 14479
5213506e
RW
14480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14481$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
14482if test "x${build}" != "x${host}" ; then
14483 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14484 # We already found the complete path
14485 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14487$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14488 else
14489 # Canadian cross, just use what we found
5213506e
RW
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14491$as_echo "pre-installed" >&6; }
901119ae
KT
14492 fi
14493else
14494 ok=yes
14495 case " ${configdirs} " in
14496 *" binutils "*) ;;
14497 *) ok=no ;;
14498 esac
14499
14500 if test $ok = yes; then
14501 # An in-tree tool is available and we can use it
14502 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14504$as_echo "just compiled" >&6; }
901119ae
KT
14505 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14506 # We already found the complete path
14507 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14509$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14510 elif test "x$target" = "x$host"; then
14511 # We can use an host tool
14512 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14514$as_echo "host tool" >&6; }
901119ae
KT
14515 else
14516 # We need a cross tool
5213506e
RW
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14518$as_echo "pre-installed" >&6; }
901119ae
KT
14519 fi
14520fi
14521
be912515
NN
14522
14523
2abefe3d 14524
0b0dc272 14525
671aa708
NN
14526# Certain tools may need extra flags.
14527AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14528RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14529NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14530
2abefe3d
PB
14531# When building target libraries, except in a Canadian cross, we use
14532# the same toolchain as the compiler we just built.
14533COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14534COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14535COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14536if test $host = $build; then
14537 case " $configdirs " in
14538 *" gcc "*)
14539 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14540 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14541 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14542 ;;
14543 esac
14544fi
14545
14546
14547
14548
14549
5213506e
RW
14550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14551$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14552# Check whether --enable-maintainer-mode was given.
14553if test "${enable_maintainer_mode+set}" = set; then :
14554 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
14555else
14556 USE_MAINTAINER_MODE=no
5213506e
RW
14557fi
14558
14559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14560$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
14561
14562
14563if test "$USE_MAINTAINER_MODE" = yes; then
14564 MAINTAINER_MODE_TRUE=
14565 MAINTAINER_MODE_FALSE='#'
14566else
14567 MAINTAINER_MODE_TRUE='#'
14568 MAINTAINER_MODE_FALSE=
1c710c3c 14569fi
ee03dc5e
AO
14570MAINT=$MAINTAINER_MODE_TRUE
14571
2805b53a
NN
14572# ---------------------
14573# GCC bootstrap support
14574# ---------------------
14575
14576# Stage specific cflags for build.
14577stage1_cflags="-g"
14578case $build in
14579 vax-*-*)
14580 case ${GCC} in
14581 yes) stage1_cflags="-g -Wa,-J" ;;
14582 *) stage1_cflags="-g -J" ;;
14583 esac ;;
2805b53a
NN
14584esac
14585
0b50988a 14586
2805b53a 14587
8efea775 14588# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
14589# Check whether --enable-stage1-checking was given.
14590if test "${enable_stage1_checking+set}" = set; then :
14591 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 14592else
e643dc23 14593 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
c10b5ea0
JJ
14594 # For --disable-checking or implicit --enable-checking=release, avoid
14595 # setting --enable-checking=gc in the default stage1 checking for LTO
14596 # bootstraps. See PR62077.
c10b5ea0
JJ
14597 case $BUILD_CONFIG in
14598 *lto*)
7db11a5a
JJ
14599 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14600 *)
14601 stage1_checking=--enable-checking=yes,types;;
c10b5ea0 14602 esac
7db11a5a
JJ
14603 if test "x$enable_checking" = x && \
14604 test -d ${srcdir}/gcc && \
14605 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
c100769b 14606 stage1_checking=--enable-checking=yes,types,extra
7db11a5a 14607 fi
8efea775 14608else
e643dc23 14609 stage1_checking=--enable-checking=$enable_checking,types
8efea775 14610fi
5213506e 14611fi
8efea775
PB
14612
14613
2aeb72e9 14614
5213506e
RW
14615# Enable -Werror in bootstrap stage2 and later.
14616# Check whether --enable-werror was given.
14617if test "${enable_werror+set}" = set; then :
14618 enableval=$enable_werror;
2805b53a 14619else
416cfb5e 14620 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 14621 enable_werror=yes
88fceb68
PB
14622else
14623 enable_werror=no
14624fi
5213506e
RW
14625fi
14626
09a9c095
NN
14627case ${enable_werror} in
14628 yes) stage2_werror_flag="--enable-werror-always" ;;
14629 *) stage2_werror_flag="" ;;
2805b53a
NN
14630esac
14631
14632
459260ec
DM
14633# Enable --enable-host-shared.
14634# Check whether --enable-host-shared was given.
14635if test "${enable_host_shared+set}" = set; then :
14636 enableval=$enable_host_shared; host_shared=$enableval
14637else
14638 host_shared=no
14639fi
14640
14641
14642
231d020b
DM
14643# PR jit/64780: Require the user to explicitly specify
14644# --enable-host-shared if the jit is enabled, hinting
14645# that they might want to do a separate configure/build of
14646# the jit, to avoid users from slowing down the rest of the
14647# compiler by enabling the jit.
14648if test ${host_shared} = "no" ; then
14649 case "${enable_languages}" in
14650 *jit*)
14651 as_fn_error "
14652Enabling language \"jit\" requires --enable-host-shared.
14653
14654--enable-host-shared typically slows the rest of the compiler down by
14655a few %, so you must explicitly enable it.
14656
14657If you want to build both the jit and the regular compiler, it is often
14658best to do this via two separate configure/builds, in separate
14659directories, to avoid imposing the performance cost of
14660--enable-host-shared on the regular compiler." "$LINENO" 5
14661 ;;
14662 *)
14663 ;;
14664 esac
14665fi
14666
f2689b09
SE
14667# Specify what files to not compare during bootstrap.
14668
14669compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14670case "$target" in
14671 hppa*64*-*-hpux*) ;;
510555e0 14672 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
d91491e5 14673 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
f2689b09
SE
14674esac
14675
14676
5213506e
RW
14677ac_config_files="$ac_config_files Makefile"
14678
1c710c3c 14679cat >confcache <<\_ACEOF
671aa708
NN
14680# This file is a shell script that caches the results of configure
14681# tests run on this system so they can be shared between configure
1c710c3c
DJ
14682# scripts and configure runs, see configure's option --config-cache.
14683# It is not useful on other systems. If it contains results you don't
14684# want to keep, you may remove or edit it.
671aa708 14685#
1c710c3c
DJ
14686# config.status only pays attention to the cache file if you give it
14687# the --recheck option to rerun configure.
671aa708 14688#
1c710c3c
DJ
14689# `ac_cv_env_foo' variables (set or unset) will be overridden when
14690# loading this file, other *unset* `ac_cv_foo' will be assigned the
14691# following values.
14692
14693_ACEOF
14694
671aa708
NN
14695# The following way of writing the cache mishandles newlines in values,
14696# but we know of no workaround that is simple, portable, and efficient.
5213506e 14697# So, we kill variables containing newlines.
671aa708
NN
14698# Ultrix sh set writes to stderr and can't be redirected directly,
14699# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
14700(
14701 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14702 eval ac_val=\$$ac_var
14703 case $ac_val in #(
14704 *${as_nl}*)
14705 case $ac_var in #(
14706 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14707$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14708 esac
14709 case $ac_var in #(
14710 _ | IFS | as_nl) ;; #(
14711 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14712 *) { eval $ac_var=; unset $ac_var;} ;;
14713 esac ;;
14714 esac
14715 done
14716
1c710c3c 14717 (set) 2>&1 |
5213506e
RW
14718 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14719 *${as_nl}ac_space=\ *)
14720 # `set' does not quote correctly, so add quotes: double-quote
14721 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
14722 sed -n \
14723 "s/'/'\\\\''/g;
14724 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 14725 ;; #(
1c710c3c
DJ
14726 *)
14727 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 14728 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 14729 ;;
5213506e
RW
14730 esac |
14731 sort
14732) |
1c710c3c 14733 sed '
5213506e 14734 /^ac_cv_env_/b end
1c710c3c 14735 t clear
5213506e 14736 :clear
1c710c3c
DJ
14737 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14738 t end
5213506e
RW
14739 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14740 :end' >>confcache
14741if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14742 if test -w "$cache_file"; then
14743 test "x$cache_file" != "x/dev/null" &&
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14745$as_echo "$as_me: updating cache $cache_file" >&6;}
1c710c3c 14746 cat confcache >$cache_file
671aa708 14747 else
5213506e
RW
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14749$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 14750 fi
4977bab6 14751fi
671aa708 14752rm -f confcache
79c06341 14753
671aa708
NN
14754test "x$prefix" = xNONE && prefix=$ac_default_prefix
14755# Let make expand exec_prefix.
14756test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 14757
671aa708
NN
14758# Transform confdefs.h into DEFS.
14759# Protect against shell expansion while executing Makefile rules.
14760# Protect against Makefile macro expansion.
1c710c3c
DJ
14761#
14762# If the first sed substitution is executed (which looks for macros that
5213506e 14763# take arguments), then branch to the quote section. Otherwise,
1c710c3c 14764# look for a macro that doesn't take arguments.
5213506e
RW
14765ac_script='
14766:mline
14767/\\$/{
14768 N
14769 s,\\\n,,
14770 b mline
14771}
1c710c3c 14772t clear
5213506e
RW
14773:clear
14774s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14775t quote
5213506e 14776s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14777t quote
5213506e
RW
14778b any
14779:quote
14780s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14781s/\[/\\&/g
14782s/\]/\\&/g
14783s/\$/$$/g
14784H
14785:any
14786${
14787 g
14788 s/^\n//
14789 s/\n/ /g
14790 p
14791}
14792'
14793DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
14794
14795
14796ac_libobjs=
14797ac_ltlibobjs=
14798for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14799 # 1. Remove the extension, and $U if already installed.
5213506e
RW
14800 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14801 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14802 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14803 # will be set to the directory where LIBOBJS objects are built.
14804 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14805 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
14806done
14807LIBOBJS=$ac_libobjs
fb0103e5 14808
1c710c3c 14809LTLIBOBJS=$ac_ltlibobjs
0b0dc272 14810
af71363e 14811
1c710c3c
DJ
14812
14813: ${CONFIG_STATUS=./config.status}
5213506e 14814ac_write_fail=0
1c710c3c
DJ
14815ac_clean_files_save=$ac_clean_files
14816ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
14817{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14818$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14819as_write_fail=0
14820cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
14821#! $SHELL
14822# Generated by $as_me.
671aa708 14823# Run this file to recreate the current configuration.
671aa708 14824# Compiler output produced by configure, useful for debugging
1c710c3c 14825# configure, is in config.log if it exists.
0b0dc272 14826
1c710c3c
DJ
14827debug=false
14828ac_cs_recheck=false
14829ac_cs_silent=false
1c710c3c 14830
5213506e
RW
14831SHELL=\${CONFIG_SHELL-$SHELL}
14832export SHELL
14833_ASEOF
14834cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14835## -------------------- ##
14836## M4sh Initialization. ##
14837## -------------------- ##
14838
14839# Be more Bourne compatible
14840DUALCASE=1; export DUALCASE # for MKS sh
14841if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
14842 emulate sh
14843 NULLCMD=:
5213506e 14844 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
14845 # is contrary to our usage. Disable this feature.
14846 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
14847 setopt NO_GLOB_SUBST
14848else
14849 case `(set -o) 2>/dev/null` in #(
14850 *posix*) :
14851 set -o posix ;; #(
14852 *) :
14853 ;;
14854esac
1c710c3c 14855fi
1c710c3c 14856
5213506e
RW
14857
14858as_nl='
14859'
14860export as_nl
14861# Printing a long string crashes Solaris 7 /usr/bin/printf.
14862as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14863as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14864as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14865# Prefer a ksh shell builtin over an external printf program on Solaris,
14866# but without wasting forks for bash or zsh.
14867if test -z "$BASH_VERSION$ZSH_VERSION" \
14868 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14869 as_echo='print -r --'
14870 as_echo_n='print -rn --'
14871elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14872 as_echo='printf %s\n'
14873 as_echo_n='printf %s'
14874else
14875 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14876 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14877 as_echo_n='/usr/ucb/echo -n'
14878 else
14879 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14880 as_echo_n_body='eval
14881 arg=$1;
14882 case $arg in #(
14883 *"$as_nl"*)
14884 expr "X$arg" : "X\\(.*\\)$as_nl";
14885 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14886 esac;
14887 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14888 '
14889 export as_echo_n_body
14890 as_echo_n='sh -c $as_echo_n_body as_echo'
14891 fi
14892 export as_echo_body
14893 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
14894fi
14895
5213506e
RW
14896# The user is always right.
14897if test "${PATH_SEPARATOR+set}" != set; then
14898 PATH_SEPARATOR=:
14899 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14900 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14901 PATH_SEPARATOR=';'
14902 }
14903fi
14904
14905
14906# IFS
14907# We need space, tab and new line, in precisely that order. Quoting is
14908# there to prevent editors from complaining about space-tab.
14909# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14910# splitting by setting IFS to empty value.)
14911IFS=" "" $as_nl"
14912
14913# Find who we are. Look in the path if we contain no directory separator.
14914case $0 in #((
14915 *[\\/]* ) as_myself=$0 ;;
14916 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14917for as_dir in $PATH
14918do
14919 IFS=$as_save_IFS
14920 test -z "$as_dir" && as_dir=.
14921 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14922 done
14923IFS=$as_save_IFS
14924
14925 ;;
14926esac
14927# We did not find ourselves, most probably we were run as `sh COMMAND'
14928# in which case we are not to be found in the path.
14929if test "x$as_myself" = x; then
14930 as_myself=$0
14931fi
14932if test ! -f "$as_myself"; then
14933 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14934 exit 1
14935fi
1c710c3c 14936
5213506e
RW
14937# Unset variables that we do not need and which cause bugs (e.g. in
14938# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14939# suppresses any "Segmentation fault" message there. '((' could
14940# trigger a bug in pdksh 5.2.14.
14941for as_var in BASH_ENV ENV MAIL MAILPATH
14942do eval test x\${$as_var+set} = xset \
14943 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14944done
1c710c3c
DJ
14945PS1='$ '
14946PS2='> '
14947PS4='+ '
14948
14949# NLS nuisances.
5213506e
RW
14950LC_ALL=C
14951export LC_ALL
14952LANGUAGE=C
14953export LANGUAGE
14954
14955# CDPATH.
14956(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14957
14958
14959# as_fn_error ERROR [LINENO LOG_FD]
14960# ---------------------------------
14961# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14962# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14963# script with status $?, using 1 if that was 0.
14964as_fn_error ()
14965{
14966 as_status=$?; test $as_status -eq 0 && as_status=1
14967 if test "$3"; then
14968 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14969 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1c710c3c 14970 fi
5213506e
RW
14971 $as_echo "$as_me: error: $1" >&2
14972 as_fn_exit $as_status
14973} # as_fn_error
14974
14975
14976# as_fn_set_status STATUS
14977# -----------------------
14978# Set $? to STATUS, without forking.
14979as_fn_set_status ()
14980{
14981 return $1
14982} # as_fn_set_status
14983
14984# as_fn_exit STATUS
14985# -----------------
14986# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14987as_fn_exit ()
14988{
14989 set +e
14990 as_fn_set_status $1
14991 exit $1
14992} # as_fn_exit
14993
14994# as_fn_unset VAR
14995# ---------------
14996# Portably unset VAR.
14997as_fn_unset ()
14998{
14999 { eval $1=; unset $1;}
15000}
15001as_unset=as_fn_unset
15002# as_fn_append VAR VALUE
15003# ----------------------
15004# Append the text in VALUE to the end of the definition contained in VAR. Take
15005# advantage of any shell optimizations that allow amortized linear growth over
15006# repeated appends, instead of the typical quadratic growth present in naive
15007# implementations.
15008if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15009 eval 'as_fn_append ()
15010 {
15011 eval $1+=\$2
15012 }'
15013else
15014 as_fn_append ()
15015 {
15016 eval $1=\$$1\$2
15017 }
15018fi # as_fn_append
15019
15020# as_fn_arith ARG...
15021# ------------------
15022# Perform arithmetic evaluation on the ARGs, and store the result in the
15023# global $as_val. Take advantage of shells that can avoid forks. The arguments
15024# must be portable across $(()) and expr.
15025if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15026 eval 'as_fn_arith ()
15027 {
15028 as_val=$(( $* ))
15029 }'
15030else
15031 as_fn_arith ()
15032 {
15033 as_val=`expr "$@" || test $? -eq 1`
15034 }
15035fi # as_fn_arith
15036
1c710c3c 15037
5213506e
RW
15038if expr a : '\(a\)' >/dev/null 2>&1 &&
15039 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
15040 as_expr=expr
15041else
15042 as_expr=false
15043fi
15044
5213506e 15045if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
15046 as_basename=basename
15047else
15048 as_basename=false
15049fi
15050
5213506e
RW
15051if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15052 as_dirname=dirname
15053else
15054 as_dirname=false
15055fi
1c710c3c 15056
5213506e 15057as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
15058$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15059 X"$0" : 'X\(//\)$' \| \
5213506e
RW
15060 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15061$as_echo X/"$0" |
15062 sed '/^.*\/\([^/][^/]*\)\/*$/{
15063 s//\1/
15064 q
15065 }
15066 /^X\/\(\/\/\)$/{
15067 s//\1/
15068 q
15069 }
15070 /^X\/\(\/\).*/{
15071 s//\1/
15072 q
15073 }
15074 s/.*/./; q'`
2aeb72e9 15075
2aeb72e9
DD
15076# Avoid depending upon Character Ranges.
15077as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15078as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15079as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15080as_cr_digits='0123456789'
15081as_cr_alnum=$as_cr_Letters$as_cr_digits
15082
5213506e
RW
15083ECHO_C= ECHO_N= ECHO_T=
15084case `echo -n x` in #(((((
15085-n*)
15086 case `echo 'xy\c'` in
15087 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15088 xy) ECHO_C='\c';;
15089 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15090 ECHO_T=' ';;
15091 esac;;
15092*)
15093 ECHO_N='-n';;
1c710c3c
DJ
15094esac
15095
5213506e
RW
15096rm -f conf$$ conf$$.exe conf$$.file
15097if test -d conf$$.dir; then
15098 rm -f conf$$.dir/conf$$.file
1c710c3c 15099else
5213506e
RW
15100 rm -f conf$$.dir
15101 mkdir conf$$.dir 2>/dev/null
1c710c3c 15102fi
5213506e
RW
15103if (echo >conf$$.file) 2>/dev/null; then
15104 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 15105 as_ln_s='ln -s'
5213506e
RW
15106 # ... but there are two gotchas:
15107 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15108 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15109 # In both cases, we have to default to `cp -p'.
15110 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15111 as_ln_s='cp -p'
15112 elif ln conf$$.file conf$$ 2>/dev/null; then
15113 as_ln_s=ln
15114 else
15115 as_ln_s='cp -p'
2aeb72e9 15116 fi
1c710c3c
DJ
15117else
15118 as_ln_s='cp -p'
15119fi
5213506e
RW
15120rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15121rmdir conf$$.dir 2>/dev/null
15122
15123
15124# as_fn_mkdir_p
15125# -------------
15126# Create "$as_dir" as a directory, including parents if necessary.
15127as_fn_mkdir_p ()
15128{
15129
15130 case $as_dir in #(
15131 -*) as_dir=./$as_dir;;
15132 esac
15133 test -d "$as_dir" || eval $as_mkdir_p || {
15134 as_dirs=
15135 while :; do
15136 case $as_dir in #(
15137 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15138 *) as_qdir=$as_dir;;
15139 esac
15140 as_dirs="'$as_qdir' $as_dirs"
15141 as_dir=`$as_dirname -- "$as_dir" ||
15142$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15143 X"$as_dir" : 'X\(//\)[^/]' \| \
15144 X"$as_dir" : 'X\(//\)$' \| \
15145 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15146$as_echo X"$as_dir" |
15147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15148 s//\1/
15149 q
15150 }
15151 /^X\(\/\/\)[^/].*/{
15152 s//\1/
15153 q
15154 }
15155 /^X\(\/\/\)$/{
15156 s//\1/
15157 q
15158 }
15159 /^X\(\/\).*/{
15160 s//\1/
15161 q
15162 }
15163 s/.*/./; q'`
15164 test -d "$as_dir" && break
15165 done
15166 test -z "$as_dirs" || eval "mkdir $as_dirs"
15167 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15168
1c710c3c 15169
5213506e 15170} # as_fn_mkdir_p
1c710c3c 15171if mkdir -p . 2>/dev/null; then
5213506e 15172 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
15173else
15174 test -d ./-p && rmdir ./-p
15175 as_mkdir_p=false
15176fi
15177
5213506e
RW
15178if test -x / >/dev/null 2>&1; then
15179 as_test_x='test -x'
15180else
15181 if ls -dL / >/dev/null 2>&1; then
15182 as_ls_L_option=L
15183 else
15184 as_ls_L_option=
15185 fi
15186 as_test_x='
15187 eval sh -c '\''
15188 if test -d "$1"; then
15189 test -d "$1/.";
15190 else
15191 case $1 in #(
15192 -*)set "./$1";;
15193 esac;
15194 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15195 ???[sx]*):;;*)false;;esac;fi
15196 '\'' sh
15197 '
15198fi
15199as_executable_p=$as_test_x
1c710c3c
DJ
15200
15201# Sed expression to map a string onto a valid CPP name.
15202as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15203
15204# Sed expression to map a string onto a valid variable name.
15205as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15206
15207
1c710c3c 15208exec 6>&1
5213506e
RW
15209## ----------------------------------- ##
15210## Main body of $CONFIG_STATUS script. ##
15211## ----------------------------------- ##
15212_ASEOF
15213test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15214
15215cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15216# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 15217# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
15218# values after options handling.
15219ac_log="
1c710c3c 15220This file was extended by $as_me, which was
5213506e 15221generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
15222
15223 CONFIG_FILES = $CONFIG_FILES
15224 CONFIG_HEADERS = $CONFIG_HEADERS
15225 CONFIG_LINKS = $CONFIG_LINKS
15226 CONFIG_COMMANDS = $CONFIG_COMMANDS
15227 $ $0 $@
15228
5213506e
RW
15229on `(hostname || uname -n) 2>/dev/null | sed 1q`
15230"
15231
1c710c3c
DJ
15232_ACEOF
15233
5213506e
RW
15234case $ac_config_files in *"
15235"*) set x $ac_config_files; shift; ac_config_files=$*;;
15236esac
1c710c3c 15237
2aeb72e9 15238
2aeb72e9 15239
5213506e
RW
15240cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15241# Files that config.status was made for.
15242config_files="$ac_config_files"
1c710c3c 15243
5213506e 15244_ACEOF
2aeb72e9 15245
5213506e 15246cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 15247ac_cs_usage="\
5213506e
RW
15248\`$as_me' instantiates files and other configuration actions
15249from templates according to the current configuration. Unless the files
15250and actions are specified as TAGs, all are instantiated by default.
1c710c3c 15251
5213506e 15252Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
15253
15254 -h, --help print this help, then exit
5213506e
RW
15255 -V, --version print version number and configuration settings, then exit
15256 -q, --quiet, --silent
15257 do not print progress messages
1c710c3c
DJ
15258 -d, --debug don't remove temporary files
15259 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
15260 --file=FILE[:TEMPLATE]
15261 instantiate the configuration file FILE
1c710c3c
DJ
15262
15263Configuration files:
15264$config_files
15265
5213506e 15266Report bugs to the package provider."
2aeb72e9 15267
5213506e
RW
15268_ACEOF
15269cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c
DJ
15270ac_cs_version="\\
15271config.status
5213506e
RW
15272configured by $0, generated by GNU Autoconf 2.64,
15273 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 15274
5213506e 15275Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
15276This config.status script is free software; the Free Software Foundation
15277gives unlimited permission to copy, distribute and modify it."
5213506e
RW
15278
15279ac_pwd='$ac_pwd'
15280srcdir='$srcdir'
15281INSTALL='$INSTALL'
87264276 15282AWK='$AWK'
5213506e 15283test -n "\$AWK" || AWK=awk
1c710c3c
DJ
15284_ACEOF
15285
5213506e
RW
15286cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15287# The default lists apply if the user does not specify any file.
1c710c3c
DJ
15288ac_need_defaults=:
15289while test $# != 0
a4b9e93e 15290do
1c710c3c
DJ
15291 case $1 in
15292 --*=*)
5213506e
RW
15293 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15294 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
15295 ac_shift=:
15296 ;;
5213506e 15297 *)
1c710c3c
DJ
15298 ac_option=$1
15299 ac_optarg=$2
15300 ac_shift=shift
15301 ;;
1c710c3c
DJ
15302 esac
15303
15304 case $ac_option in
15305 # Handling of the options.
671aa708 15306 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 15307 ac_cs_recheck=: ;;
5213506e
RW
15308 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15309 $as_echo "$ac_cs_version"; exit ;;
15310 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
15311 debug=: ;;
15312 --file | --fil | --fi | --f )
15313 $ac_shift
5213506e
RW
15314 case $ac_optarg in
15315 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15316 esac
15317 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 15318 ac_need_defaults=false;;
5213506e
RW
15319 --he | --h | --help | --hel | -h )
15320 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
15321 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15322 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15323 ac_cs_silent=: ;;
15324
15325 # This is an error.
5213506e
RW
15326 -*) as_fn_error "unrecognized option: \`$1'
15327Try \`$0 --help' for more information." ;;
1c710c3c 15328
5213506e
RW
15329 *) as_fn_append ac_config_targets " $1"
15330 ac_need_defaults=false ;;
1c710c3c 15331
0b0dc272 15332 esac
1c710c3c 15333 shift
0b0dc272
AM
15334done
15335
1c710c3c 15336ac_configure_extra_args=
0b0dc272 15337
1c710c3c
DJ
15338if $ac_cs_silent; then
15339 exec 6>/dev/null
15340 ac_configure_extra_args="$ac_configure_extra_args --silent"
15341fi
0b0dc272 15342
1c710c3c 15343_ACEOF
5213506e 15344cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 15345if \$ac_cs_recheck; then
5213506e
RW
15346 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15347 shift
15348 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15349 CONFIG_SHELL='$SHELL'
15350 export CONFIG_SHELL
15351 exec "\$@"
1c710c3c
DJ
15352fi
15353
15354_ACEOF
5213506e
RW
15355cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15356exec 5>>config.log
15357{
15358 echo
15359 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15360## Running $as_me. ##
15361_ASBOX
15362 $as_echo "$ac_log"
15363} >&5
1c710c3c 15364
5213506e
RW
15365_ACEOF
15366cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
15367#
15368# INIT-COMMANDS
15369#
15370extrasub_build="$extrasub_build"
15371 extrasub_host="$extrasub_host"
15372 extrasub_target="$extrasub_target"
15373
5213506e 15374_ACEOF
1c710c3c 15375
5213506e 15376cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 15377
5213506e 15378# Handling of arguments.
1c710c3c
DJ
15379for ac_config_target in $ac_config_targets
15380do
5213506e
RW
15381 case $ac_config_target in
15382 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15383
15384 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
15385 esac
15386done
15387
5213506e 15388
1c710c3c
DJ
15389# If the user did not use the arguments to specify the items to instantiate,
15390# then the envvar interface is used. Set only those that are not.
15391# We use the long form for the default assignment because of an extremely
15392# bizarre bug on SunOS 4.1.3.
15393if $ac_need_defaults; then
15394 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15395fi
15396
15397# Have a temporary directory for convenience. Make it in the build tree
5213506e 15398# simply because there is no reason against having it here, and in addition,
1c710c3c 15399# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
15400# Hook for its removal unless debugging.
15401# Note that there is a small window in which the directory will not be cleaned:
15402# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
15403$debug ||
15404{
5213506e
RW
15405 tmp=
15406 trap 'exit_status=$?
15407 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15408' 0
15409 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 15410}
1c710c3c
DJ
15411# Create a (secure) tmp directory for tmp files.
15412
15413{
5213506e 15414 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
15415 test -n "$tmp" && test -d "$tmp"
15416} ||
15417{
5213506e
RW
15418 tmp=./conf$$-$RANDOM
15419 (umask 077 && mkdir "$tmp")
15420} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15421
15422# Set up the scripts for CONFIG_FILES section.
15423# No need to generate them if there are no CONFIG_FILES.
15424# This happens for instance with `./config.status config.h'.
15425if test -n "$CONFIG_FILES"; then
15426
15427if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15428 ac_cs_awk_getline=:
15429 ac_cs_awk_pipe_init=
15430 ac_cs_awk_read_file='
15431 while ((getline aline < (F[key])) > 0)
15432 print(aline)
15433 close(F[key])'
15434 ac_cs_awk_pipe_fini=
15435else
15436 ac_cs_awk_getline=false
15437 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15438 ac_cs_awk_read_file='
15439 print "|#_!!_#|"
15440 print "cat " F[key] " &&"
15441 '$ac_cs_awk_pipe_init
15442 # The final `:' finishes the AND list.
15443 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15444fi
15445ac_cr=`echo X | tr X '\015'`
15446# On cygwin, bash can eat \r inside `` if the user requested igncr.
15447# But we know of no other shell where ac_cr would be empty at this
15448# point, so we can use a bashism as a fallback.
15449if test "x$ac_cr" = x; then
15450 eval ac_cr=\$\'\\r\'
15451fi
15452ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15453if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15454 ac_cs_awk_cr='\r'
15455else
15456 ac_cs_awk_cr=$ac_cr
15457fi
15458
15459echo 'BEGIN {' >"$tmp/subs1.awk" &&
15460_ACEOF
15461
15462# Create commands to substitute file output variables.
1c710c3c 15463{
5213506e
RW
15464 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15465 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15466 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15467 echo "_ACAWK" &&
15468 echo "_ACEOF"
15469} >conf$$files.sh &&
15470. ./conf$$files.sh ||
15471 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15472rm -f conf$$files.sh
1c710c3c 15473
5213506e
RW
15474{
15475 echo "cat >conf$$subs.awk <<_ACEOF" &&
15476 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15477 echo "_ACEOF"
15478} >conf$$subs.sh ||
15479 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15480ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15481ac_delim='%!_!# '
15482for ac_last_try in false false false false false :; do
15483 . ./conf$$subs.sh ||
15484 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15485
15486 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15487 if test $ac_delim_n = $ac_delim_num; then
15488 break
15489 elif $ac_last_try; then
15490 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15491 else
15492 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15493 fi
15494done
15495rm -f conf$$subs.sh
15496
15497cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15498cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 15499_ACEOF
5213506e
RW
15500sed -n '
15501h
15502s/^/S["/; s/!.*/"]=/
15503p
15504g
15505s/^[^!]*!//
15506:repl
15507t repl
15508s/'"$ac_delim"'$//
15509t delim
15510:nl
15511h
15512s/\(.\{148\}\).*/\1/
15513t more1
15514s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15515p
15516n
15517b repl
15518:more1
15519s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15520p
15521g
15522s/.\{148\}//
15523t nl
15524:delim
15525h
15526s/\(.\{148\}\).*/\1/
15527t more2
15528s/["\\]/\\&/g; s/^/"/; s/$/"/
15529p
15530b
15531:more2
15532s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15533p
15534g
15535s/.\{148\}//
15536t delim
15537' <conf$$subs.awk | sed '
15538/^[^""]/{
15539 N
15540 s/\n//
15541}
15542' >>$CONFIG_STATUS || ac_write_fail=1
15543rm -f conf$$subs.awk
15544cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15545_ACAWK
15546cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15547 for (key in S) S_is_set[key] = 1
15548 FS = "\a"
15549 \$ac_cs_awk_pipe_init
15550}
15551{
15552 line = $ 0
15553 nfields = split(line, field, "@")
15554 substed = 0
15555 len = length(field[1])
15556 for (i = 2; i < nfields; i++) {
15557 key = field[i]
15558 keylen = length(key)
15559 if (S_is_set[key]) {
15560 value = S[key]
15561 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15562 len += length(value) + length(field[++i])
15563 substed = 1
15564 } else
15565 len += 1 + keylen
15566 }
15567 if (nfields == 3 && !substed) {
15568 key = field[2]
15569 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15570 \$ac_cs_awk_read_file
15571 next
15572 }
15573 }
15574 print line
15575}
15576\$ac_cs_awk_pipe_fini
15577_ACAWK
15578_ACEOF
15579cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15580if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15581 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15582else
15583 cat
15584fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15585 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15586_ACEOF
15587
15588# VPATH may cause trouble with some makes, so we remove $(srcdir),
15589# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15590# trailing colons and then remove the whole line if VPATH becomes empty
15591# (actually we leave an empty line to preserve line numbers).
15592if test "x$srcdir" = x.; then
15593 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15594s/:*\$(srcdir):*/:/
15595s/:*\${srcdir}:*/:/
15596s/:*@srcdir@:*/:/
15597s/^\([^=]*=[ ]*\):*/\1/
15598s/:*$//
15599s/^[^=]*=[ ]*$//
15600}'
15601fi
2aeb72e9 15602
5213506e
RW
15603cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15604fi # test -n "$CONFIG_FILES"
2aeb72e9 15605
1c710c3c 15606
5213506e
RW
15607eval set X " :F $CONFIG_FILES "
15608shift
15609for ac_tag
15610do
15611 case $ac_tag in
15612 :[FHLC]) ac_mode=$ac_tag; continue;;
15613 esac
15614 case $ac_mode$ac_tag in
15615 :[FHL]*:*);;
15616 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15617 :[FH]-) ac_tag=-:-;;
15618 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15619 esac
15620 ac_save_IFS=$IFS
15621 IFS=:
15622 set x $ac_tag
15623 IFS=$ac_save_IFS
15624 shift
15625 ac_file=$1
15626 shift
79c06341 15627
5213506e
RW
15628 case $ac_mode in
15629 :L) ac_source=$1;;
15630 :[FH])
15631 ac_file_inputs=
15632 for ac_f
15633 do
15634 case $ac_f in
15635 -) ac_f="$tmp/stdin";;
15636 *) # Look for the file first in the build tree, then in the source tree
15637 # (if the path is not absolute). The absolute path cannot be DOS-style,
15638 # because $ac_f cannot contain `:'.
15639 test -f "$ac_f" ||
15640 case $ac_f in
15641 [\\/$]*) false;;
15642 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15643 esac ||
15644 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15645 esac
15646 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15647 as_fn_append ac_file_inputs " '$ac_f'"
15648 done
1c710c3c 15649
5213506e
RW
15650 # Let's still pretend it is `configure' which instantiates (i.e., don't
15651 # use $as_me), people would be surprised to read:
15652 # /* config.h. Generated by config.status. */
15653 configure_input='Generated from '`
15654 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15655 `' by configure.'
15656 if test x"$ac_file" != x-; then
15657 configure_input="$ac_file. $configure_input"
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15659$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 15660 fi
5213506e
RW
15661 # Neutralize special characters interpreted by sed in replacement strings.
15662 case $configure_input in #(
15663 *\&* | *\|* | *\\* )
15664 ac_sed_conf_input=`$as_echo "$configure_input" |
15665 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15666 *) ac_sed_conf_input=$configure_input;;
15667 esac
11a67599 15668
5213506e
RW
15669 case $ac_tag in
15670 *:-:* | *:-) cat >"$tmp/stdin" \
15671 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15672 esac
15673 ;;
11a67599
ZW
15674 esac
15675
5213506e 15676 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
15677$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15678 X"$ac_file" : 'X\(//\)[^/]' \| \
15679 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
15680 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15681$as_echo X"$ac_file" |
15682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15683 s//\1/
15684 q
15685 }
15686 /^X\(\/\/\)[^/].*/{
15687 s//\1/
15688 q
15689 }
15690 /^X\(\/\/\)$/{
15691 s//\1/
15692 q
15693 }
15694 /^X\(\/\).*/{
15695 s//\1/
15696 q
15697 }
15698 s/.*/./; q'`
15699 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 15700 ac_builddir=.
0b0dc272 15701
5213506e
RW
15702case "$ac_dir" in
15703.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15704*)
15705 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15706 # A ".." for each directory in $ac_dir_suffix.
15707 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15708 case $ac_top_builddir_sub in
15709 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15710 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15711 esac ;;
15712esac
15713ac_abs_top_builddir=$ac_pwd
15714ac_abs_builddir=$ac_pwd$ac_dir_suffix
15715# for backward compatibility:
15716ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
15717
15718case $srcdir in
5213506e 15719 .) # We are building in place.
1c710c3c 15720 ac_srcdir=.
5213506e
RW
15721 ac_top_srcdir=$ac_top_builddir_sub
15722 ac_abs_top_srcdir=$ac_pwd ;;
15723 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 15724 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
15725 ac_top_srcdir=$srcdir
15726 ac_abs_top_srcdir=$srcdir ;;
15727 *) # Relative name.
15728 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15729 ac_top_srcdir=$ac_top_build_prefix$srcdir
15730 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 15731esac
5213506e 15732ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 15733
0b0dc272 15734
5213506e
RW
15735 case $ac_mode in
15736 :F)
15737 #
15738 # CONFIG_FILE
15739 #
1c710c3c
DJ
15740
15741 case $INSTALL in
15742 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 15743 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 15744 esac
5213506e 15745_ACEOF
11a67599 15746
5213506e
RW
15747cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15748# If the template does not know about datarootdir, expand it.
15749# FIXME: This hack should be removed a few years after 2.60.
15750ac_datarootdir_hack=; ac_datarootdir_seen=
15751ac_sed_dataroot='
15752/datarootdir/ {
15753 p
15754 q
15755}
15756/@datadir@/p
15757/@docdir@/p
15758/@infodir@/p
15759/@localedir@/p
15760/@mandir@/p'
15761case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15762*datarootdir*) ac_datarootdir_seen=yes;;
15763*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15765$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 15766_ACEOF
5213506e
RW
15767cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15768 ac_datarootdir_hack='
15769 s&@datadir@&$datadir&g
15770 s&@docdir@&$docdir&g
15771 s&@infodir@&$infodir&g
15772 s&@localedir@&$localedir&g
15773 s&@mandir@&$mandir&g
15774 s&\\\${datarootdir}&$datarootdir&g' ;;
15775esac
15776_ACEOF
15777
15778# Neutralize VPATH when `$srcdir' = `.'.
15779# Shell code in configure.ac might set extrasub.
15780# FIXME: do we really want to maintain this feature?
15781cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15782ac_sed_extra="$ac_vpsub
1c710c3c
DJ
15783$extrasub
15784_ACEOF
5213506e 15785cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
15786:t
15787/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
15788s|@configure_input@|$ac_sed_conf_input|;t t
15789s&@top_builddir@&$ac_top_builddir_sub&;t t
15790s&@top_build_prefix@&$ac_top_build_prefix&;t t
15791s&@srcdir@&$ac_srcdir&;t t
15792s&@abs_srcdir@&$ac_abs_srcdir&;t t
15793s&@top_srcdir@&$ac_top_srcdir&;t t
15794s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15795s&@builddir@&$ac_builddir&;t t
15796s&@abs_builddir@&$ac_abs_builddir&;t t
15797s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15798s&@INSTALL@&$ac_INSTALL&;t t
15799$ac_datarootdir_hack
15800"
15801eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15802if $ac_cs_awk_getline; then
15803 $AWK -f "$tmp/subs.awk"
15804else
15805 $AWK -f "$tmp/subs.awk" | $SHELL
15806fi >$tmp/out \
15807 || as_fn_error "could not create $ac_file" "$LINENO" 5
15808
15809test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15810 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15811 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15813which seems to be undefined. Please make sure it is defined." >&5
15814$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15815which seems to be undefined. Please make sure it is defined." >&2;}
15816
15817 rm -f "$tmp/stdin"
15818 case $ac_file in
15819 -) cat "$tmp/out" && rm -f "$tmp/out";;
15820 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15821 esac \
15822 || as_fn_error "could not create $ac_file" "$LINENO" 5
15823 ;;
11a67599 15824
11a67599 15825
79c06341 15826
5213506e
RW
15827 esac
15828
3e54529c
RW
15829
15830 case $ac_file$ac_mode in
15831 "Makefile":F) sed "$extrasub_build" Makefile |
15832 sed "$extrasub_host" |
15833 sed "$extrasub_target" > mf$$
15834 mv -f mf$$ Makefile ;;
15835
15836 esac
5213506e
RW
15837done # for ac_tag
15838
15839
15840as_fn_exit 0
1c710c3c 15841_ACEOF
1c710c3c
DJ
15842ac_clean_files=$ac_clean_files_save
15843
5213506e
RW
15844test $ac_write_fail = 0 ||
15845 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15846
1c710c3c
DJ
15847
15848# configure is writing to config.log, and then calls config.status.
15849# config.status does its own redirection, appending to config.log.
15850# Unfortunately, on DOS this fails, as config.log is still kept open
15851# by configure, so config.status won't be able to write to it; its
15852# output is simply discarded. So we exec the FD to /dev/null,
15853# effectively closing config.log, so it can be properly (re)opened and
15854# appended to by config.status. When coming back to configure, we
15855# need to make the FD available again.
15856if test "$no_create" != yes; then
15857 ac_cs_success=:
15858 ac_config_status_args=
15859 test "$silent" = yes &&
15860 ac_config_status_args="$ac_config_status_args --quiet"
15861 exec 5>/dev/null
15862 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15863 exec 5>>config.log
15864 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15865 # would make configure fail if this is the last instruction.
5213506e
RW
15866 $ac_cs_success || as_fn_exit $?
15867fi
15868if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15870$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 15871fi
79c06341 15872
This page took 4.306808 seconds and 5 git commands to generate.