]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
re PR tree-optimization/62112 (Optimize out malloc when block is unused or write...
[thirdparty/gcc.git] / configure
CommitLineData
671aa708 1#! /bin/sh
671aa708 2# Guess values for system-dependent variables and create Makefiles.
5213506e
RW
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
671aa708
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
5213506e
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
1c710c3c 14
5213506e
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
18 emulate sh
19 NULLCMD=:
5213506e 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
1c710c3c 31fi
1c710c3c 32
5213506e
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
1c710c3c
DJ
79fi
80
81
5213506e
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
1c710c3c
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
5213506e
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
87264276
PB
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
5213506e
RW
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1c710c3c 184do
5213506e
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
1c710c3c 228 else
5213506e
RW
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
1c710c3c 233 fi
5213506e
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
1c710c3c 263
5213506e
RW
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
375 as_expr=expr
376else
377 as_expr=false
378fi
379
5213506e 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
381 as_basename=basename
382else
383 as_basename=false
384fi
385
5213506e
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
1c710c3c 391
5213506e 392as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
5213506e
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
1c710c3c 410
2aeb72e9
DD
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
11a67599 417
1c710c3c 418
5213506e
RW
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
1c710c3c 428 sed '
5213506e
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
1c710c3c 433 N
5213506e
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1c710c3c 436 t loop
5213506e 437 s/-\n.*//
1c710c3c 438 ' >$as_me.lineno &&
5213506e
RW
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1c710c3c
DJ
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
5213506e
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
1c710c3c
DJ
446 # Exit status is that of the last command.
447 exit
448}
449
5213506e
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
1c710c3c
DJ
461esac
462
5213506e
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
1c710c3c 466else
5213506e
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
1c710c3c 469fi
5213506e
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 472 as_ln_s='ln -s'
5213506e
RW
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
2aeb72e9 483 fi
1c710c3c
DJ
484else
485 as_ln_s='cp -p'
486fi
5213506e
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
1c710c3c
DJ
489
490if mkdir -p . 2>/dev/null; then
5213506e 491 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
5213506e
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
0b0dc272 519
1c710c3c
DJ
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
5213506e 527exec 7<&0 </dev/null 6>&1
1c710c3c
DJ
528
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
1c710c3c
DJ
534#
535# Initializations.
536#
671aa708 537ac_default_prefix=/usr/local
5213506e 538ac_clean_files=
1c710c3c 539ac_config_libobj_dir=.
5213506e 540LIBOBJS=
1c710c3c
DJ
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
2aeb72e9 545
1c710c3c
DJ
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
5213506e 552PACKAGE_URL=
1c710c3c
DJ
553
554ac_unique_file="move-if-change"
5213506e
RW
555enable_option_checking=no
556ac_subst_vars='LTLIBOBJS
557LIBOBJS
558compare_exclusions
459260ec 559host_shared
5213506e
RW
560stage2_werror_flag
561stage1_checking
562stage1_cflags
563MAINT
564MAINTAINER_MODE_FALSE
565MAINTAINER_MODE_TRUE
566COMPILER_NM_FOR_TARGET
567COMPILER_LD_FOR_TARGET
568COMPILER_AS_FOR_TARGET
569FLAGS_FOR_TARGET
570RAW_CXX_FOR_TARGET
571WINDMC_FOR_TARGET
572WINDRES_FOR_TARGET
573STRIP_FOR_TARGET
e7a82751 574READELF_FOR_TARGET
5213506e
RW
575RANLIB_FOR_TARGET
576OBJDUMP_FOR_TARGET
577NM_FOR_TARGET
578LIPO_FOR_TARGET
579LD_FOR_TARGET
580DLLTOOL_FOR_TARGET
581AS_FOR_TARGET
582AR_FOR_TARGET
632e2a07 583GOC_FOR_TARGET
5213506e
RW
584GFORTRAN_FOR_TARGET
585GCJ_FOR_TARGET
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
RW
617GFORTRAN_FOR_BUILD
618GCJ_FOR_BUILD
619DLLTOOL_FOR_BUILD
620CXX_FOR_BUILD
621CXXFLAGS_FOR_BUILD
622CFLAGS_FOR_BUILD
623CC_FOR_BUILD
624AS_FOR_BUILD
625AR_FOR_BUILD
aae29963 626target_configdirs
5213506e 627configdirs
5213506e 628build_configdirs
5213506e
RW
629INSTALL_GDB_TK
630GDB_TK
631CONFIGURE_GDB_TK
632build_tooldir
633tooldir
634GCC_SHLIB_SUBDIR
635RPATH_ENVVAR
ffedf511
RW
636target_configargs
637host_configargs
638build_configargs
e12c4094 639BUILD_CONFIG
6f57bdf6 640LDFLAGS_FOR_TARGET
5213506e
RW
641CXXFLAGS_FOR_TARGET
642CFLAGS_FOR_TARGET
643DEBUG_PREFIX_CFLAGS_FOR_TARGET
644SYSROOT_CFLAGS_FOR_TARGET
645stage1_languages
d7f09764 646extra_host_libiberty_configure_flags
45b3824d
TS
647extra_linker_plugin_flags
648extra_linker_plugin_configure_flags
5213506e
RW
649clooginc
650clooglibs
33ad93b9 651islinc
eae1a5d4 652isllibs
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
a4a2c37d 676EXTRA_CONFIGARGS_LIBJAVA
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
750enable_gold
21539e2e 751enable_ld
87e6d9dc
TB
752enable_libquadmath
753enable_libquadmath_support
5213506e
RW
754enable_libada
755enable_libssp
1873ec0c 756enable_libstdcxx
a4a2c37d 757enable_static_libjava
ff3ac0f4 758enable_bootstrap
5213506e
RW
759with_mpc
760with_mpc_include
761with_mpc_lib
762with_mpfr_dir
763with_mpfr
764with_mpfr_include
765with_mpfr_lib
766with_gmp_dir
767with_gmp
768with_gmp_include
769with_gmp_lib
770with_host_libstdcxx
5213506e 771with_stage1_libs
0b21f5d3 772with_stage1_ldflags
5213506e 773with_boot_libs
ed2eaa9f 774with_boot_ldflags
625afa23 775with_cloog
33ad93b9
RG
776with_isl
777with_isl_include
778with_isl_lib
779enable_isl_version_check
5213506e
RW
780with_cloog_include
781with_cloog_lib
782enable_cloog_version_check
d7f09764 783enable_lto
45b3824d
TS
784enable_linker_plugin_configure_flags
785enable_linker_plugin_flags
5213506e
RW
786enable_stage1_languages
787enable_objc_gc
788with_build_sysroot
789with_debug_prefix_map
5646b7b9 790with_build_config
beeda1d9 791enable_vtable_verify
5213506e
RW
792enable_serial_configure
793with_build_time_tools
794enable_maintainer_mode
795enable_stage1_checking
796enable_werror
459260ec 797enable_host_shared
5213506e
RW
798'
799 ac_precious_vars='build_alias
800host_alias
801target_alias
802CC
803CFLAGS
804LDFLAGS
805LIBS
806CPPFLAGS
807CXX
808CXXFLAGS
809CCC
ffedf511
RW
810build_configargs
811host_configargs
812target_configargs
5213506e
RW
813AR
814AS
815DLLTOOL
816LD
817LIPO
818NM
819RANLIB
820STRIP
821WINDRES
822WINDMC
823OBJCOPY
824OBJDUMP
e7a82751 825READELF
5213506e
RW
826CC_FOR_TARGET
827CXX_FOR_TARGET
828GCC_FOR_TARGET
829GCJ_FOR_TARGET
830GFORTRAN_FOR_TARGET
632e2a07 831GOC_FOR_TARGET
5213506e
RW
832AR_FOR_TARGET
833AS_FOR_TARGET
834DLLTOOL_FOR_TARGET
835LD_FOR_TARGET
836LIPO_FOR_TARGET
837NM_FOR_TARGET
838OBJDUMP_FOR_TARGET
839RANLIB_FOR_TARGET
e7a82751 840READELF_FOR_TARGET
5213506e
RW
841STRIP_FOR_TARGET
842WINDRES_FOR_TARGET
843WINDMC_FOR_TARGET'
844
671aa708
NN
845
846# Initialize some variables set by options.
1c710c3c
DJ
847ac_init_help=
848ac_init_version=false
5213506e
RW
849ac_unrecognized_opts=
850ac_unrecognized_sep=
671aa708
NN
851# The variables have the same names as the options, with
852# dashes changed to underlines.
1c710c3c 853cache_file=/dev/null
671aa708 854exec_prefix=NONE
671aa708 855no_create=
671aa708
NN
856no_recursion=
857prefix=NONE
858program_prefix=NONE
859program_suffix=NONE
860program_transform_name=s,x,x,
861silent=
862site=
863srcdir=
671aa708
NN
864verbose=
865x_includes=NONE
866x_libraries=NONE
1c710c3c
DJ
867
868# Installation directory options.
869# These are left unexpanded so users can "make install exec_prefix=/foo"
870# and all the variables that are supposed to be based on exec_prefix
871# by default will actually change.
872# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 873# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
874bindir='${exec_prefix}/bin'
875sbindir='${exec_prefix}/sbin'
876libexecdir='${exec_prefix}/libexec'
5213506e
RW
877datarootdir='${prefix}/share'
878datadir='${datarootdir}'
671aa708
NN
879sysconfdir='${prefix}/etc'
880sharedstatedir='${prefix}/com'
881localstatedir='${prefix}/var'
671aa708
NN
882includedir='${prefix}/include'
883oldincludedir='/usr/include'
5213506e
RW
884docdir='${datarootdir}/doc/${PACKAGE}'
885infodir='${datarootdir}/info'
886htmldir='${docdir}'
887dvidir='${docdir}'
888pdfdir='${docdir}'
889psdir='${docdir}'
890libdir='${exec_prefix}/lib'
891localedir='${datarootdir}/locale'
892mandir='${datarootdir}/man'
79c06341 893
671aa708 894ac_prev=
5213506e 895ac_dashdash=
671aa708
NN
896for ac_option
897do
671aa708
NN
898 # If the previous option needs an argument, assign it.
899 if test -n "$ac_prev"; then
5213506e 900 eval $ac_prev=\$ac_option
671aa708
NN
901 ac_prev=
902 continue
903 fi
79c06341 904
5213506e
RW
905 case $ac_option in
906 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
907 *) ac_optarg=yes ;;
908 esac
671aa708
NN
909
910 # Accept the important Cygnus configure options, so we can diagnose typos.
911
5213506e
RW
912 case $ac_dashdash$ac_option in
913 --)
914 ac_dashdash=yes ;;
671aa708
NN
915
916 -bindir | --bindir | --bindi | --bind | --bin | --bi)
917 ac_prev=bindir ;;
918 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 919 bindir=$ac_optarg ;;
671aa708
NN
920
921 -build | --build | --buil | --bui | --bu)
1c710c3c 922 ac_prev=build_alias ;;
671aa708 923 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 924 build_alias=$ac_optarg ;;
671aa708
NN
925
926 -cache-file | --cache-file | --cache-fil | --cache-fi \
927 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
928 ac_prev=cache_file ;;
929 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
930 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
931 cache_file=$ac_optarg ;;
932
933 --config-cache | -C)
934 cache_file=config.cache ;;
671aa708 935
5213506e 936 -datadir | --datadir | --datadi | --datad)
671aa708 937 ac_prev=datadir ;;
5213506e 938 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 939 datadir=$ac_optarg ;;
671aa708 940
5213506e
RW
941 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
942 | --dataroo | --dataro | --datar)
943 ac_prev=datarootdir ;;
944 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
945 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
946 datarootdir=$ac_optarg ;;
947
671aa708 948 -disable-* | --disable-*)
5213506e 949 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 950 # Reject names that are not valid shell variable names.
5213506e
RW
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 as_fn_error "invalid feature name: $ac_useropt"
953 ac_useropt_orig=$ac_useropt
954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955 case $ac_user_opts in
956 *"
957"enable_$ac_useropt"
958"*) ;;
959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
960 ac_unrecognized_sep=', ';;
961 esac
962 eval enable_$ac_useropt=no ;;
963
964 -docdir | --docdir | --docdi | --doc | --do)
965 ac_prev=docdir ;;
966 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
967 docdir=$ac_optarg ;;
968
969 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
970 ac_prev=dvidir ;;
971 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
972 dvidir=$ac_optarg ;;
671aa708
NN
973
974 -enable-* | --enable-*)
5213506e 975 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 976 # Reject names that are not valid shell variable names.
5213506e
RW
977 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
978 as_fn_error "invalid feature name: $ac_useropt"
979 ac_useropt_orig=$ac_useropt
980 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
981 case $ac_user_opts in
982 *"
983"enable_$ac_useropt"
984"*) ;;
985 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
986 ac_unrecognized_sep=', ';;
2aeb72e9 987 esac
5213506e 988 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
989
990 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
991 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
992 | --exec | --exe | --ex)
993 ac_prev=exec_prefix ;;
994 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
995 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
996 | --exec=* | --exe=* | --ex=*)
1c710c3c 997 exec_prefix=$ac_optarg ;;
671aa708
NN
998
999 -gas | --gas | --ga | --g)
1000 # Obsolete; use --with-gas.
1001 with_gas=yes ;;
1002
1c710c3c
DJ
1003 -help | --help | --hel | --he | -h)
1004 ac_init_help=long ;;
1005 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1006 ac_init_help=recursive ;;
1007 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1008 ac_init_help=short ;;
671aa708
NN
1009
1010 -host | --host | --hos | --ho)
1c710c3c 1011 ac_prev=host_alias ;;
671aa708 1012 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1013 host_alias=$ac_optarg ;;
671aa708 1014
5213506e
RW
1015 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1016 ac_prev=htmldir ;;
1017 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1018 | --ht=*)
1019 htmldir=$ac_optarg ;;
1020
671aa708
NN
1021 -includedir | --includedir | --includedi | --included | --include \
1022 | --includ | --inclu | --incl | --inc)
1023 ac_prev=includedir ;;
1024 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1025 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1026 includedir=$ac_optarg ;;
671aa708
NN
1027
1028 -infodir | --infodir | --infodi | --infod | --info | --inf)
1029 ac_prev=infodir ;;
1030 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1031 infodir=$ac_optarg ;;
671aa708
NN
1032
1033 -libdir | --libdir | --libdi | --libd)
1034 ac_prev=libdir ;;
1035 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1036 libdir=$ac_optarg ;;
671aa708
NN
1037
1038 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1039 | --libexe | --libex | --libe)
1040 ac_prev=libexecdir ;;
1041 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1042 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1043 libexecdir=$ac_optarg ;;
671aa708 1044
5213506e
RW
1045 -localedir | --localedir | --localedi | --localed | --locale)
1046 ac_prev=localedir ;;
1047 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1048 localedir=$ac_optarg ;;
1049
671aa708 1050 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1051 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1052 ac_prev=localstatedir ;;
1053 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1054 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1055 localstatedir=$ac_optarg ;;
671aa708
NN
1056
1057 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1058 ac_prev=mandir ;;
1059 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1060 mandir=$ac_optarg ;;
671aa708
NN
1061
1062 -nfp | --nfp | --nf)
1063 # Obsolete; use --without-fp.
1064 with_fp=no ;;
1065
1066 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1067 | --no-cr | --no-c | -n)
671aa708
NN
1068 no_create=yes ;;
1069
1070 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1071 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1072 no_recursion=yes ;;
1073
1074 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1075 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1076 | --oldin | --oldi | --old | --ol | --o)
1077 ac_prev=oldincludedir ;;
1078 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1079 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1080 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1081 oldincludedir=$ac_optarg ;;
671aa708
NN
1082
1083 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1084 ac_prev=prefix ;;
1085 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1086 prefix=$ac_optarg ;;
671aa708
NN
1087
1088 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1089 | --program-pre | --program-pr | --program-p)
1090 ac_prev=program_prefix ;;
1091 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1092 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1093 program_prefix=$ac_optarg ;;
671aa708
NN
1094
1095 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1096 | --program-suf | --program-su | --program-s)
1097 ac_prev=program_suffix ;;
1098 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1099 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1100 program_suffix=$ac_optarg ;;
671aa708
NN
1101
1102 -program-transform-name | --program-transform-name \
1103 | --program-transform-nam | --program-transform-na \
1104 | --program-transform-n | --program-transform- \
1105 | --program-transform | --program-transfor \
1106 | --program-transfo | --program-transf \
1107 | --program-trans | --program-tran \
1108 | --progr-tra | --program-tr | --program-t)
1109 ac_prev=program_transform_name ;;
1110 -program-transform-name=* | --program-transform-name=* \
1111 | --program-transform-nam=* | --program-transform-na=* \
1112 | --program-transform-n=* | --program-transform-=* \
1113 | --program-transform=* | --program-transfor=* \
1114 | --program-transfo=* | --program-transf=* \
1115 | --program-trans=* | --program-tran=* \
1116 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1117 program_transform_name=$ac_optarg ;;
671aa708 1118
5213506e
RW
1119 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1120 ac_prev=pdfdir ;;
1121 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1122 pdfdir=$ac_optarg ;;
1123
1124 -psdir | --psdir | --psdi | --psd | --ps)
1125 ac_prev=psdir ;;
1126 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1127 psdir=$ac_optarg ;;
1128
671aa708
NN
1129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1130 | -silent | --silent | --silen | --sile | --sil)
1131 silent=yes ;;
1132
1133 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1134 ac_prev=sbindir ;;
1135 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1136 | --sbi=* | --sb=*)
1c710c3c 1137 sbindir=$ac_optarg ;;
671aa708
NN
1138
1139 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1140 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1141 | --sharedst | --shareds | --shared | --share | --shar \
1142 | --sha | --sh)
1143 ac_prev=sharedstatedir ;;
1144 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1145 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1146 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1147 | --sha=* | --sh=*)
1c710c3c 1148 sharedstatedir=$ac_optarg ;;
671aa708
NN
1149
1150 -site | --site | --sit)
1151 ac_prev=site ;;
1152 -site=* | --site=* | --sit=*)
1c710c3c 1153 site=$ac_optarg ;;
671aa708
NN
1154
1155 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1156 ac_prev=srcdir ;;
1157 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1158 srcdir=$ac_optarg ;;
671aa708
NN
1159
1160 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1161 | --syscon | --sysco | --sysc | --sys | --sy)
1162 ac_prev=sysconfdir ;;
1163 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1164 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1165 sysconfdir=$ac_optarg ;;
671aa708
NN
1166
1167 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1168 ac_prev=target_alias ;;
671aa708 1169 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1170 target_alias=$ac_optarg ;;
671aa708
NN
1171
1172 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1173 verbose=yes ;;
1174
1c710c3c
DJ
1175 -version | --version | --versio | --versi | --vers | -V)
1176 ac_init_version=: ;;
671aa708
NN
1177
1178 -with-* | --with-*)
5213506e 1179 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1180 # Reject names that are not valid shell variable names.
5213506e
RW
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 as_fn_error "invalid package name: $ac_useropt"
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1186 *"
1187"with_$ac_useropt"
1188"*) ;;
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
2aeb72e9 1191 esac
5213506e 1192 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1193
1194 -without-* | --without-*)
5213506e 1195 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1196 # Reject names that are not valid shell variable names.
5213506e
RW
1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198 as_fn_error "invalid package name: $ac_useropt"
1199 ac_useropt_orig=$ac_useropt
1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1202 *"
1203"with_$ac_useropt"
1204"*) ;;
1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1206 ac_unrecognized_sep=', ';;
1207 esac
1208 eval with_$ac_useropt=no ;;
671aa708
NN
1209
1210 --x)
1211 # Obsolete; use --with-x.
1212 with_x=yes ;;
1213
1214 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1215 | --x-incl | --x-inc | --x-in | --x-i)
1216 ac_prev=x_includes ;;
1217 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1218 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1219 x_includes=$ac_optarg ;;
671aa708
NN
1220
1221 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1222 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1223 ac_prev=x_libraries ;;
1224 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1225 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1226 x_libraries=$ac_optarg ;;
671aa708 1227
5213506e
RW
1228 -*) as_fn_error "unrecognized option: \`$ac_option'
1229Try \`$0 --help' for more information."
671aa708
NN
1230 ;;
1231
1c710c3c
DJ
1232 *=*)
1233 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1234 # Reject names that are not valid shell variable names.
5213506e
RW
1235 case $ac_envvar in #(
1236 '' | [0-9]* | *[!_$as_cr_alnum]* )
1237 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1238 esac
1239 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1240 export $ac_envvar ;;
1241
671aa708 1242 *)
1c710c3c 1243 # FIXME: should be removed in autoconf 3.0.
5213506e 1244 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1245 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1246 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1c710c3c 1247 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
1248 ;;
1249
1250 esac
1251done
1252
1253if test -n "$ac_prev"; then
1c710c3c 1254 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1255 as_fn_error "missing argument to $ac_option"
af71363e 1256fi
af71363e 1257
5213506e
RW
1258if test -n "$ac_unrecognized_opts"; then
1259 case $enable_option_checking in
1260 no) ;;
1261 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1262 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1263 esac
5213506e 1264fi
2aeb72e9 1265
5213506e
RW
1266# Check all directory arguments for consistency.
1267for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268 datadir sysconfdir sharedstatedir localstatedir includedir \
1269 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270 libdir localedir mandir
2aeb72e9 1271do
5213506e
RW
1272 eval ac_val=\$$ac_var
1273 # Remove trailing slashes.
1274 case $ac_val in
1275 */ )
1276 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1277 eval $ac_var=\$ac_val;;
1278 esac
1279 # Be sure to have absolute directory names.
2aeb72e9 1280 case $ac_val in
5213506e
RW
1281 [\\/$]* | ?:[\\/]* ) continue;;
1282 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1283 esac
5213506e 1284 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1285done
1286
1c710c3c
DJ
1287# There might be people who depend on the old broken behavior: `$host'
1288# used to hold the argument of --host etc.
1289# FIXME: To remove some day.
1290build=$build_alias
1291host=$host_alias
1292target=$target_alias
0b0dc272 1293
1c710c3c
DJ
1294# FIXME: To remove some day.
1295if test "x$host_alias" != x; then
1296 if test "x$build_alias" = x; then
1297 cross_compiling=maybe
5213506e 1298 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1c710c3c
DJ
1299 If a cross compiler is detected then cross compile mode will be used." >&2
1300 elif test "x$build_alias" != "x$host_alias"; then
1301 cross_compiling=yes
1302 fi
1303fi
1304
1305ac_tool_prefix=
1306test -n "$host_alias" && ac_tool_prefix=$host_alias-
1307
1308test "$silent" = yes && exec 6>/dev/null
671aa708 1309
671aa708 1310
5213506e
RW
1311ac_pwd=`pwd` && test -n "$ac_pwd" &&
1312ac_ls_di=`ls -di .` &&
1313ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1314 as_fn_error "working directory cannot be determined"
1315test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1316 as_fn_error "pwd does not report name of working directory"
1317
1318
671aa708
NN
1319# Find the source files, if location was not specified.
1320if test -z "$srcdir"; then
1321 ac_srcdir_defaulted=yes
5213506e
RW
1322 # Try the directory containing this script, then the parent directory.
1323 ac_confdir=`$as_dirname -- "$as_myself" ||
1324$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1325 X"$as_myself" : 'X\(//\)[^/]' \| \
1326 X"$as_myself" : 'X\(//\)$' \| \
1327 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1328$as_echo X"$as_myself" |
1329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\/\)[^/].*/{
1334 s//\1/
1335 q
1336 }
1337 /^X\(\/\/\)$/{
1338 s//\1/
1339 q
1340 }
1341 /^X\(\/\).*/{
1342 s//\1/
1343 q
1344 }
1345 s/.*/./; q'`
671aa708 1346 srcdir=$ac_confdir
5213506e 1347 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1348 srcdir=..
1349 fi
1350else
1351 ac_srcdir_defaulted=no
1352fi
5213506e
RW
1353if test ! -r "$srcdir/$ac_unique_file"; then
1354 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1355 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1356fi
1357ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1358ac_abs_confdir=`(
1359 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1360 pwd)`
1361# When building in place, set srcdir=.
1362if test "$ac_abs_confdir" = "$ac_pwd"; then
1363 srcdir=.
1364fi
1365# Remove unnecessary trailing slashes from srcdir.
1366# Double slashes in file names in object file debugging info
1367# mess up M-x gdb in Emacs.
1368case $srcdir in
1369*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1370esac
87841584
AM
1371case $srcdir in
1372 *" "*)
1373 as_fn_error "path to source, $srcdir, contains spaces"
1374 ;;
1375esac
ac9e6043
RW
1376ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1377
5213506e
RW
1378for ac_var in $ac_precious_vars; do
1379 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_env_${ac_var}_value=\$${ac_var}
1381 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383done
1c710c3c
DJ
1384
1385#
1386# Report the --help message.
1387#
1388if test "$ac_init_help" = "long"; then
1389 # Omit some internal or obsolete options to make the list less imposing.
1390 # This message is too long to be a string in the A/UX 3.1 sh.
1391 cat <<_ACEOF
1392\`configure' configures this package to adapt to many kinds of systems.
1393
1394Usage: $0 [OPTION]... [VAR=VALUE]...
1395
1396To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397VAR=VALUE. See below for descriptions of some of the useful variables.
1398
1399Defaults for the options are specified in brackets.
1400
1401Configuration:
1402 -h, --help display this help and exit
1403 --help=short display options specific to this package
1404 --help=recursive display the short help of all the included packages
1405 -V, --version display version information and exit
1406 -q, --quiet, --silent do not print \`checking...' messages
1407 --cache-file=FILE cache test results in FILE [disabled]
1408 -C, --config-cache alias for \`--cache-file=config.cache'
1409 -n, --no-create do not create output files
1410 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1411
1c710c3c
DJ
1412Installation directories:
1413 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1414 [$ac_default_prefix]
1c710c3c 1415 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1416 [PREFIX]
1c710c3c
DJ
1417
1418By default, \`make install' will install all the files in
1419\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1420an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421for instance \`--prefix=\$HOME'.
1422
1423For better control, use the options below.
1424
1425Fine tuning of the installation directories:
5213506e
RW
1426 --bindir=DIR user executables [EPREFIX/bin]
1427 --sbindir=DIR system admin executables [EPREFIX/sbin]
1428 --libexecdir=DIR program executables [EPREFIX/libexec]
1429 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1430 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1431 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1432 --libdir=DIR object code libraries [EPREFIX/lib]
1433 --includedir=DIR C header files [PREFIX/include]
1434 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1435 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1436 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1437 --infodir=DIR info documentation [DATAROOTDIR/info]
1438 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1439 --mandir=DIR man documentation [DATAROOTDIR/man]
1440 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1441 --htmldir=DIR html documentation [DOCDIR]
1442 --dvidir=DIR dvi documentation [DOCDIR]
1443 --pdfdir=DIR pdf documentation [DOCDIR]
1444 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1445_ACEOF
1446
1447 cat <<\_ACEOF
1448
1449Program names:
1450 --program-prefix=PREFIX prepend PREFIX to installed program names
1451 --program-suffix=SUFFIX append SUFFIX to installed program names
1452 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1453
1454System types:
1455 --build=BUILD configure for building on BUILD [guessed]
1456 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1457 --target=TARGET configure for building compilers for TARGET [HOST]
1458_ACEOF
1459fi
1460
1461if test -n "$ac_init_help"; then
1462
1463 cat <<\_ACEOF
1464
1465Optional Features:
5213506e 1466 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1467 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1468 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
21539e2e 1469 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1470 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
87e6d9dc
TB
1471 --disable-libquadmath do not build libquadmath directory
1472 --disable-libquadmath-support
1473 disable libquadmath support for Fortran
30b74385
RW
1474 --enable-libada build libada directory
1475 --enable-libssp build libssp directory
1873ec0c 1476 --disable-libstdcxx do not build libstdc++-v3 directory
a4a2c37d
MK
1477 --enable-static-libjava[=ARG]
1478 build static libjava [default=no]
ff3ac0f4 1479 --enable-bootstrap enable bootstrapping [yes if native build]
33ad93b9
RG
1480 --disable-isl-version-check
1481 disable check for ISL version
d32ef397
AS
1482 --disable-cloog-version-check
1483 disable check for CLooG version
d7f09764 1484 --enable-lto enable link time optimization support
45b3824d
TS
1485 --enable-linker-plugin-configure-flags=FLAGS
1486 additional flags for configuring linker plugins
1487 [none]
1488 --enable-linker-plugin-flags=FLAGS
1489 additional flags for configuring and building linker
1490 plugins [none]
33e39b66
AS
1491 --enable-stage1-languages[=all]
1492 choose additional languages to build during stage1.
1493 Mostly useful for compiler development
1494 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1495 Objective-C runtime
beeda1d9 1496 --enable-vtable-verify Enable vtable verification feature
30b74385 1497 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1498 force sequential configuration of sub-packages for
1499 the host, target or build machine, or all
1500 sub-packages
1501 --enable-maintainer-mode
1502 enable make rules and dependencies not useful (and
1503 sometimes confusing) to the casual installer
1504 --enable-stage1-checking[=all]
1505 choose additional checking for stage1 of the
1506 compiler
1c710c3c 1507 --enable-werror enable -Werror in bootstrap stage2 and later
459260ec 1508 --enable-host-shared build host code as shared libraries
1c710c3c
DJ
1509
1510Optional Packages:
1511 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1512 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1513 --with-build-libsubdir=DIR Directory where to find libraries for build system
33e39b66
AS
1514 --with-mpc=PATH specify prefix directory for installed MPC package.
1515 Equivalent to --with-mpc-include=PATH/include plus
1516 --with-mpc-lib=PATH/lib
1517 --with-mpc-include=PATH specify directory for installed MPC include files
1518 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1519 --with-mpfr-dir=PATH this option has been REMOVED
1520 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1521 Equivalent to --with-mpfr-include=PATH/include plus
1522 --with-mpfr-lib=PATH/lib
1c710c3c 1523 --with-mpfr-include=PATH
30b74385
RW
1524 specify directory for installed MPFR include files
1525 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1526 --with-gmp-dir=PATH this option has been REMOVED
33e39b66
AS
1527 --with-gmp=PATH specify prefix directory for the installed GMP
1528 package. Equivalent to
1529 --with-gmp-include=PATH/include plus
1530 --with-gmp-lib=PATH/lib
30b74385
RW
1531 --with-gmp-include=PATH specify directory for installed GMP include files
1532 --with-gmp-lib=PATH specify directory for the installed GMP library
33e39b66
AS
1533 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1534 linking with PPL
0b21f5d3 1535 --with-stage1-libs=LIBS libraries for stage1
33e39b66
AS
1536 --with-stage1-ldflags=FLAGS
1537 linker flags for stage1
33e39b66
AS
1538 --with-boot-libs=LIBS libraries for stage2 and later
1539 --with-boot-ldflags=FLAGS
1540 linker flags for stage2 and later
625afa23
RG
1541 --with-cloog=PATH Specify prefix directory for the installed CLooG-ISL
1542 package. Equivalent to
1543 --with-cloog-include=PATH/include plus
1544 --with-cloog-lib=PATH/lib
33ad93b9 1545 --with-isl=PATH Specify prefix directory for the installed ISL
33e39b66 1546 package. Equivalent to
33ad93b9
RG
1547 --with-isl-include=PATH/include plus
1548 --with-isl-lib=PATH/lib
1549 --with-isl-include=PATH Specify directory for installed ISL include files
1550 --with-isl-lib=PATH Specify the directory for the installed ISL library
d32ef397
AS
1551 --with-cloog-include=PATH
1552 Specify directory for installed CLooG include files
1553 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1554 library
30b74385 1555 --with-build-sysroot=SYSROOT
1c710c3c 1556 use sysroot as the system root during the build
c8aea42c 1557 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1558 map A to B, C to D ... in debug information
1559 --with-build-config='NAME NAME2...'
1560 use config/NAME.mk build configuration
30b74385 1561 --with-build-time-tools=PATH
1c710c3c 1562 use given path to find target tools during the build
1c710c3c
DJ
1563
1564Some influential environment variables:
1565 CC C compiler command
1566 CFLAGS C compiler flags
1567 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1568 nonstandard directory <lib dir>
5213506e
RW
1569 LIBS libraries to pass to the linker, e.g. -l<library>
1570 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1571 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1572 CXX C++ compiler command
1573 CXXFLAGS C++ compiler flags
ffedf511
RW
1574 build_configargs
1575 additional configure arguments for build directories
1576 host_configargs
1577 additional configure arguments for host directories
1578 target_configargs
1579 additional configure arguments for target directories
278a7a38
AO
1580 AR AR for the host
1581 AS AS for the host
1582 DLLTOOL DLLTOOL for the host
1583 LD LD for the host
1584 LIPO LIPO for the host
1585 NM NM for the host
1586 RANLIB RANLIB for the host
1587 STRIP STRIP for the host
1588 WINDRES WINDRES for the host
901119ae 1589 WINDMC WINDMC for the host
278a7a38
AO
1590 OBJCOPY OBJCOPY for the host
1591 OBJDUMP OBJDUMP for the host
e7a82751 1592 READELF READELF for the host
278a7a38
AO
1593 CC_FOR_TARGET
1594 CC for the target
1595 CXX_FOR_TARGET
1596 CXX for the target
1597 GCC_FOR_TARGET
1598 GCC for the target
1599 GCJ_FOR_TARGET
1600 GCJ for the target
1601 GFORTRAN_FOR_TARGET
1602 GFORTRAN for the target
632e2a07
ILT
1603 GOC_FOR_TARGET
1604 GOC for the target
278a7a38
AO
1605 AR_FOR_TARGET
1606 AR for the target
1607 AS_FOR_TARGET
1608 AS for the target
1609 DLLTOOL_FOR_TARGET
1610 DLLTOOL for the target
1611 LD_FOR_TARGET
1612 LD for the target
1613 LIPO_FOR_TARGET
1614 LIPO for the target
1615 NM_FOR_TARGET
1616 NM for the target
1617 OBJDUMP_FOR_TARGET
1618 OBJDUMP for the target
1619 RANLIB_FOR_TARGET
1620 RANLIB for the target
e7a82751
RM
1621 READELF_FOR_TARGET
1622 READELF for the target
278a7a38
AO
1623 STRIP_FOR_TARGET
1624 STRIP for the target
1625 WINDRES_FOR_TARGET
1626 WINDRES for the target
901119ae
KT
1627 WINDMC_FOR_TARGET
1628 WINDMC for the target
1c710c3c
DJ
1629
1630Use these variables to override the choices made by `configure' or to help
1631it to find libraries and programs with nonstandard names/locations.
1632
5213506e 1633Report bugs to the package provider.
1c710c3c 1634_ACEOF
5213506e 1635ac_status=$?
1c710c3c
DJ
1636fi
1637
1638if test "$ac_init_help" = "recursive"; then
1639 # If there are subdirs, report their specific --help.
1c710c3c 1640 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1641 test -d "$ac_dir" ||
1642 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1643 continue
1c710c3c
DJ
1644 ac_builddir=.
1645
5213506e
RW
1646case "$ac_dir" in
1647.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648*)
1649 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1650 # A ".." for each directory in $ac_dir_suffix.
1651 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1652 case $ac_top_builddir_sub in
1653 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1655 esac ;;
1656esac
1657ac_abs_top_builddir=$ac_pwd
1658ac_abs_builddir=$ac_pwd$ac_dir_suffix
1659# for backward compatibility:
1660ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1661
1662case $srcdir in
5213506e 1663 .) # We are building in place.
1c710c3c 1664 ac_srcdir=.
5213506e
RW
1665 ac_top_srcdir=$ac_top_builddir_sub
1666 ac_abs_top_srcdir=$ac_pwd ;;
1667 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1668 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1669 ac_top_srcdir=$srcdir
1670 ac_abs_top_srcdir=$srcdir ;;
1671 *) # Relative name.
1672 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1673 ac_top_srcdir=$ac_top_build_prefix$srcdir
1674 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1675esac
5213506e
RW
1676ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1677
1678 cd "$ac_dir" || { ac_status=$?; continue; }
1679 # Check for guested configure.
1680 if test -f "$ac_srcdir/configure.gnu"; then
1681 echo &&
1682 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1683 elif test -f "$ac_srcdir/configure"; then
1684 echo &&
1685 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1686 else
5213506e
RW
1687 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1688 fi || ac_status=$?
1689 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1690 done
1691fi
1692
5213506e 1693test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1694if $ac_init_version; then
1695 cat <<\_ACEOF
5213506e
RW
1696configure
1697generated by GNU Autoconf 2.64
1c710c3c 1698
5213506e 1699Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
1700This configure script is free software; the Free Software Foundation
1701gives unlimited permission to copy, distribute and modify it.
1702_ACEOF
5213506e 1703 exit
0b0dc272 1704fi
5213506e
RW
1705
1706## ------------------------ ##
1707## Autoconf initialization. ##
1708## ------------------------ ##
1709
1710# ac_fn_c_try_compile LINENO
1711# --------------------------
1712# Try to compile conftest.$ac_ext, and return whether this succeeded.
1713ac_fn_c_try_compile ()
1714{
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 rm -f conftest.$ac_objext
1717 if { { ac_try="$ac_compile"
1718case "(($ac_try" in
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1721esac
1722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723$as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_compile") 2>conftest.err
1725 ac_status=$?
1726 if test -s conftest.err; then
1727 grep -v '^ *+' conftest.err >conftest.er1
1728 cat conftest.er1 >&5
1729 mv -f conftest.er1 conftest.err
1730 fi
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } && {
1733 test -z "$ac_c_werror_flag" ||
1734 test ! -s conftest.err
1735 } && test -s conftest.$ac_objext; then :
1736 ac_retval=0
1737else
1738 $as_echo "$as_me: failed program was:" >&5
1739sed 's/^/| /' conftest.$ac_ext >&5
1740
1741 ac_retval=1
1742fi
1743 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1744 return $ac_retval
1745
1746} # ac_fn_c_try_compile
1747
1748# ac_fn_cxx_try_compile LINENO
1749# ----------------------------
1750# Try to compile conftest.$ac_ext, and return whether this succeeded.
1751ac_fn_cxx_try_compile ()
1752{
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 rm -f conftest.$ac_objext
1755 if { { ac_try="$ac_compile"
1756case "(($ac_try" in
1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1759esac
1760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761$as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_compile") 2>conftest.err
1763 ac_status=$?
1764 if test -s conftest.err; then
1765 grep -v '^ *+' conftest.err >conftest.er1
1766 cat conftest.er1 >&5
1767 mv -f conftest.er1 conftest.err
1768 fi
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; } && {
1771 test -z "$ac_cxx_werror_flag" ||
1772 test ! -s conftest.err
1773 } && test -s conftest.$ac_objext; then :
1774 ac_retval=0
1775else
1776 $as_echo "$as_me: failed program was:" >&5
1777sed 's/^/| /' conftest.$ac_ext >&5
1778
1779 ac_retval=1
1780fi
1781 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1782 return $ac_retval
1783
1784} # ac_fn_cxx_try_compile
1785
0b21f5d3
EB
1786# ac_fn_cxx_try_link LINENO
1787# -------------------------
1788# Try to link conftest.$ac_ext, and return whether this succeeded.
1789ac_fn_cxx_try_link ()
1790{
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 rm -f conftest.$ac_objext conftest$ac_exeext
1793 if { { ac_try="$ac_link"
1794case "(($ac_try" in
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1797esac
1798eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799$as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_link") 2>conftest.err
1801 ac_status=$?
1802 if test -s conftest.err; then
1803 grep -v '^ *+' conftest.err >conftest.er1
1804 cat conftest.er1 >&5
1805 mv -f conftest.er1 conftest.err
1806 fi
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; } && {
1809 test -z "$ac_cxx_werror_flag" ||
1810 test ! -s conftest.err
1811 } && test -s conftest$ac_exeext && {
1812 test "$cross_compiling" = yes ||
1813 $as_test_x conftest$ac_exeext
1814 }; then :
1815 ac_retval=0
1816else
1817 $as_echo "$as_me: failed program was:" >&5
1818sed 's/^/| /' conftest.$ac_ext >&5
1819
1820 ac_retval=1
1821fi
1822 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1823 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1824 # interfere with the next link command; also delete a directory that is
1825 # left behind by Apple's compiler. We do this before executing the actions.
1826 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1827 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1828 return $ac_retval
1829
1830} # ac_fn_cxx_try_link
1831
5213506e
RW
1832# ac_fn_c_try_link LINENO
1833# -----------------------
1834# Try to link conftest.$ac_ext, and return whether this succeeded.
1835ac_fn_c_try_link ()
1836{
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 rm -f conftest.$ac_objext conftest$ac_exeext
1839 if { { ac_try="$ac_link"
1840case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1843esac
1844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845$as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_link") 2>conftest.err
1847 ac_status=$?
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1852 fi
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && {
1855 test -z "$ac_c_werror_flag" ||
1856 test ! -s conftest.err
1857 } && test -s conftest$ac_exeext && {
1858 test "$cross_compiling" = yes ||
1859 $as_test_x conftest$ac_exeext
1860 }; then :
1861 ac_retval=0
1862else
1863 $as_echo "$as_me: failed program was:" >&5
1864sed 's/^/| /' conftest.$ac_ext >&5
1865
1866 ac_retval=1
1867fi
1868 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1869 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1870 # interfere with the next link command; also delete a directory that is
1871 # left behind by Apple's compiler. We do this before executing the actions.
1872 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1873 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1874 return $ac_retval
1875
1876} # ac_fn_c_try_link
33ad93b9
RG
1877
1878# ac_fn_c_try_run LINENO
1879# ----------------------
1880# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1881# that executables *can* be run.
1882ac_fn_c_try_run ()
1883{
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 if { { ac_try="$ac_link"
1886case "(($ac_try" in
1887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888 *) ac_try_echo=$ac_try;;
1889esac
1890eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891$as_echo "$ac_try_echo"; } >&5
1892 (eval "$ac_link") 2>&5
1893 ac_status=$?
1894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1896 { { case "(($ac_try" in
1897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1898 *) ac_try_echo=$ac_try;;
1899esac
1900eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1901$as_echo "$ac_try_echo"; } >&5
1902 (eval "$ac_try") 2>&5
1903 ac_status=$?
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; }; }; then :
1906 ac_retval=0
1907else
1908 $as_echo "$as_me: program exited with status $ac_status" >&5
1909 $as_echo "$as_me: failed program was:" >&5
1910sed 's/^/| /' conftest.$ac_ext >&5
1911
1912 ac_retval=$ac_status
1913fi
1914 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1915 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1916 return $ac_retval
1917
1918} # ac_fn_c_try_run
5213506e 1919cat >config.log <<_ACEOF
1c710c3c
DJ
1920This file contains any messages produced by compilers while
1921running configure, to aid debugging if configure makes a mistake.
1922
1923It was created by $as_me, which was
5213506e 1924generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
1925
1926 $ $0 $@
1927
1928_ACEOF
5213506e 1929exec 5>>config.log
1c710c3c
DJ
1930{
1931cat <<_ASUNAME
1932## --------- ##
1933## Platform. ##
1934## --------- ##
1935
1936hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1937uname -m = `(uname -m) 2>/dev/null || echo unknown`
1938uname -r = `(uname -r) 2>/dev/null || echo unknown`
1939uname -s = `(uname -s) 2>/dev/null || echo unknown`
1940uname -v = `(uname -v) 2>/dev/null || echo unknown`
1941
1942/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1943/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1944
1945/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1946/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1947/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1948/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1949/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1950/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1951/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1952
1953_ASUNAME
1954
1955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1956for as_dir in $PATH
1957do
1958 IFS=$as_save_IFS
1959 test -z "$as_dir" && as_dir=.
5213506e
RW
1960 $as_echo "PATH: $as_dir"
1961 done
1962IFS=$as_save_IFS
1c710c3c
DJ
1963
1964} >&5
1965
1966cat >&5 <<_ACEOF
1967
1968
1969## ----------- ##
1970## Core tests. ##
1971## ----------- ##
1972
1973_ACEOF
1974
1975
1976# Keep a trace of the command line.
1977# Strip out --no-create and --no-recursion so they do not pile up.
1978# Strip out --silent because we don't want to record it for future runs.
1979# Also quote any args containing shell meta-characters.
1980# Make two passes to allow for proper duplicate-argument suppression.
1981ac_configure_args=
1982ac_configure_args0=
1983ac_configure_args1=
1c710c3c
DJ
1984ac_must_keep_next=false
1985for ac_pass in 1 2
1986do
1987 for ac_arg
1988 do
1989 case $ac_arg in
1990 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1991 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1992 | -silent | --silent | --silen | --sile | --sil)
1993 continue ;;
5213506e
RW
1994 *\'*)
1995 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1996 esac
1997 case $ac_pass in
5213506e 1998 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 1999 2)
5213506e 2000 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
2001 if test $ac_must_keep_next = true; then
2002 ac_must_keep_next=false # Got value, back to normal.
2003 else
2004 case $ac_arg in
2005 *=* | --config-cache | -C | -disable-* | --disable-* \
2006 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2007 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2008 | -with-* | --with-* | -without-* | --without-* | --x)
2009 case "$ac_configure_args0 " in
2010 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2011 esac
2012 ;;
2013 -* ) ac_must_keep_next=true ;;
2014 esac
2015 fi
5213506e 2016 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
2017 ;;
2018 esac
2019 done
2020done
5213506e
RW
2021{ ac_configure_args0=; unset ac_configure_args0;}
2022{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
2023
2024# When interrupted or exit'd, cleanup temporary files, and complete
2025# config.log. We remove comments because anyway the quotes in there
2026# would cause problems or look ugly.
5213506e
RW
2027# WARNING: Use '\'' to represent an apostrophe within the trap.
2028# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
2029trap 'exit_status=$?
2030 # Save into config.log some information that might help in debugging.
2031 {
2032 echo
2033
2034 cat <<\_ASBOX
2035## ---------------- ##
2036## Cache variables. ##
2037## ---------------- ##
2038_ASBOX
2039 echo
2040 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2041(
2042 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2043 eval ac_val=\$$ac_var
2044 case $ac_val in #(
2045 *${as_nl}*)
2046 case $ac_var in #(
2047 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2048$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2049 esac
2050 case $ac_var in #(
2051 _ | IFS | as_nl) ;; #(
2052 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2053 *) { eval $ac_var=; unset $ac_var;} ;;
2054 esac ;;
2055 esac
2056 done
1c710c3c 2057 (set) 2>&1 |
5213506e
RW
2058 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2059 *${as_nl}ac_space=\ *)
1c710c3c 2060 sed -n \
5213506e
RW
2061 "s/'\''/'\''\\\\'\'''\''/g;
2062 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2063 ;; #(
1c710c3c 2064 *)
5213506e 2065 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 2066 ;;
5213506e
RW
2067 esac |
2068 sort
2069)
1c710c3c
DJ
2070 echo
2071
2072 cat <<\_ASBOX
2073## ----------------- ##
2074## Output variables. ##
2075## ----------------- ##
2076_ASBOX
2077 echo
2078 for ac_var in $ac_subst_vars
2079 do
5213506e
RW
2080 eval ac_val=\$$ac_var
2081 case $ac_val in
2082 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2083 esac
2084 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2085 done | sort
2086 echo
2087
2088 if test -n "$ac_subst_files"; then
2089 cat <<\_ASBOX
5213506e
RW
2090## ------------------- ##
2091## File substitutions. ##
2092## ------------------- ##
1c710c3c
DJ
2093_ASBOX
2094 echo
2095 for ac_var in $ac_subst_files
2096 do
5213506e
RW
2097 eval ac_val=\$$ac_var
2098 case $ac_val in
2099 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2100 esac
2101 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2102 done | sort
2103 echo
2104 fi
2105
2106 if test -s confdefs.h; then
2107 cat <<\_ASBOX
2108## ----------- ##
2109## confdefs.h. ##
2110## ----------- ##
2111_ASBOX
2112 echo
5213506e 2113 cat confdefs.h
1c710c3c
DJ
2114 echo
2115 fi
2116 test "$ac_signal" != 0 &&
5213506e
RW
2117 $as_echo "$as_me: caught signal $ac_signal"
2118 $as_echo "$as_me: exit $exit_status"
1c710c3c 2119 } >&5
5213506e
RW
2120 rm -f core *.core core.conftest.* &&
2121 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2122 exit $exit_status
5213506e 2123' 0
1c710c3c 2124for ac_signal in 1 2 13 15; do
5213506e 2125 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2126done
2127ac_signal=0
2128
2129# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2130rm -f -r conftest* confdefs.h
2131
2132$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2133
2134# Predefined preprocessor variables.
2135
2136cat >>confdefs.h <<_ACEOF
2137#define PACKAGE_NAME "$PACKAGE_NAME"
2138_ACEOF
2139
1c710c3c
DJ
2140cat >>confdefs.h <<_ACEOF
2141#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2142_ACEOF
2143
1c710c3c
DJ
2144cat >>confdefs.h <<_ACEOF
2145#define PACKAGE_VERSION "$PACKAGE_VERSION"
2146_ACEOF
0b0dc272 2147
1c710c3c
DJ
2148cat >>confdefs.h <<_ACEOF
2149#define PACKAGE_STRING "$PACKAGE_STRING"
2150_ACEOF
2151
1c710c3c
DJ
2152cat >>confdefs.h <<_ACEOF
2153#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2154_ACEOF
2155
5213506e
RW
2156cat >>confdefs.h <<_ACEOF
2157#define PACKAGE_URL "$PACKAGE_URL"
2158_ACEOF
2159
1c710c3c
DJ
2160
2161# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2162# Prefer an explicitly selected file to automatically selected ones.
2163ac_site_file1=NONE
2164ac_site_file2=NONE
2165if test -n "$CONFIG_SITE"; then
2166 ac_site_file1=$CONFIG_SITE
2167elif test "x$prefix" != xNONE; then
2168 ac_site_file1=$prefix/share/config.site
2169 ac_site_file2=$prefix/etc/config.site
2170else
2171 ac_site_file1=$ac_default_prefix/share/config.site
2172 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2173fi
5213506e
RW
2174for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2175do
2176 test "x$ac_site_file" = xNONE && continue
671aa708 2177 if test -r "$ac_site_file"; then
5213506e
RW
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2179$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2180 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
2181 . "$ac_site_file"
2182 fi
2183done
2184
2185if test -r "$cache_file"; then
1c710c3c
DJ
2186 # Some versions of bash will fail to source /dev/null (special
2187 # files actually), so we avoid doing that.
2188 if test -f "$cache_file"; then
5213506e
RW
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2190$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2191 case $cache_file in
5213506e
RW
2192 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2193 *) . "./$cache_file";;
1c710c3c
DJ
2194 esac
2195 fi
671aa708 2196else
5213506e
RW
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2198$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2199 >$cache_file
2200fi
2201
2202# Check that the precious variables saved in the cache have kept the same
2203# value.
2204ac_cache_corrupted=false
5213506e 2205for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2206 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2207 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2208 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2209 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2210 case $ac_old_set,$ac_new_set in
2211 set,)
5213506e
RW
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2213$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2214 ac_cache_corrupted=: ;;
2215 ,set)
5213506e
RW
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2217$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2218 ac_cache_corrupted=: ;;
2219 ,);;
2220 *)
2221 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2222 # differences in whitespace do not lead to failure.
2223 ac_old_val_w=`echo x $ac_old_val`
2224 ac_new_val_w=`echo x $ac_new_val`
2225 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2227$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2228 ac_cache_corrupted=:
2229 else
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2231$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2232 eval $ac_var=\$ac_old_val
2233 fi
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2235$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2237$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2238 fi;;
2239 esac
2240 # Pass precious variables to config.status.
2241 if test "$ac_new_set" = set; then
2242 case $ac_new_val in
5213506e 2243 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2244 *) ac_arg=$ac_var=$ac_new_val ;;
2245 esac
2246 case " $ac_configure_args " in
2247 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2248 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2249 esac
2250 fi
2251done
2252if $ac_cache_corrupted; then
5213506e
RW
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2254$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2256$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2257 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2258fi
5213506e
RW
2259## -------------------- ##
2260## Main body of script. ##
2261## -------------------- ##
671aa708 2262
2aeb72e9
DD
2263ac_ext=c
2264ac_cpp='$CPP $CPPFLAGS'
2265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2267ac_compiler_gnu=$ac_cv_c_compiler_gnu
2268
1c710c3c
DJ
2269
2270
2271
1c710c3c
DJ
2272
2273
0115d4a3 2274
1c710c3c 2275
ad33ff57
RW
2276
2277progname=$0
2278# if PWD already has a value, it is probably wrong.
2279if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2280
2281# Export original configure arguments for use by sub-configures.
2282# Quote arguments with shell meta charatcers.
2283TOPLEVEL_CONFIGURE_ARGUMENTS=
2284set -- "$progname" "$@"
2285for ac_arg
2286do
2287 case "$ac_arg" in
2288 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2289 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2290 # if the argument is of the form -foo=baz, quote the baz part only
2291 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2292 *) ;;
2293 esac
2294 # Add the quoted argument to the list.
2295 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2296done
2297if test "$silent" = yes; then
2298 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2299fi
2300# Remove the initial space we just introduced and, as these will be
2301# expanded by make, quote '$'.
2302TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2303
1c710c3c
DJ
2304
2305# Find the build, host, and target systems.
671aa708 2306ac_aux_dir=
5213506e
RW
2307for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2308 for ac_t in install-sh install.sh shtool; do
2309 if test -f "$ac_dir/$ac_t"; then
2310 ac_aux_dir=$ac_dir
2311 ac_install_sh="$ac_aux_dir/$ac_t -c"
2312 break 2
2313 fi
2314 done
671aa708
NN
2315done
2316if test -z "$ac_aux_dir"; then
5213506e 2317 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2318fi
5213506e
RW
2319
2320# These three variables are undocumented and unsupported,
2321# and are intended to be withdrawn in a future Autoconf release.
2322# They can cause serious problems if a builder's source tree is in a directory
2323# whose full name contains unusual characters.
2324ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2325ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2326ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2327
671aa708 2328
1c710c3c 2329# Make sure we can run config.sub.
5213506e
RW
2330$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2331 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2332
2333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2334$as_echo_n "checking build system type... " >&6; }
2335if test "${ac_cv_build+set}" = set; then :
2336 $as_echo_n "(cached) " >&6
2337else
2338 ac_build_alias=$build_alias
2339test "x$ac_build_alias" = x &&
2340 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2341test "x$ac_build_alias" = x &&
2342 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2343ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2344 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2345
2346fi
2347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2348$as_echo "$ac_cv_build" >&6; }
2349case $ac_cv_build in
2350*-*-*) ;;
2351*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2352esac
1c710c3c 2353build=$ac_cv_build
5213506e
RW
2354ac_save_IFS=$IFS; IFS='-'
2355set x $ac_cv_build
2356shift
2357build_cpu=$1
2358build_vendor=$2
2359shift; shift
2360# Remember, the first character of IFS is used to create $*,
2361# except with old shells:
2362build_os=$*
2363IFS=$ac_save_IFS
2364case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2365
671aa708 2366
1c710c3c
DJ
2367 case ${build_alias} in
2368 "") build_noncanonical=${build} ;;
2369 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2370esac
2371
2372
af71363e 2373
1c710c3c
DJ
2374 case ${host_alias} in
2375 "") host_noncanonical=${build_noncanonical} ;;
2376 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2377esac
2378
af71363e 2379
1c710c3c
DJ
2380
2381 case ${target_alias} in
2382 "") target_noncanonical=${host_noncanonical} ;;
2383 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2384esac
2385
af71363e 2386
1c710c3c
DJ
2387
2388
2389test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2390 test "$program_prefix$program_suffix$program_transform_name" = \
2391 NONENONEs,x,x, &&
1c710c3c 2392 program_transform_name=s,y,y,
af71363e 2393
5213506e
RW
2394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2395$as_echo_n "checking host system type... " >&6; }
2396if test "${ac_cv_host+set}" = set; then :
2397 $as_echo_n "(cached) " >&6
af71363e 2398else
5213506e
RW
2399 if test "x$host_alias" = x; then
2400 ac_cv_host=$ac_cv_build
2401else
2402 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2403 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2404fi
1c710c3c 2405
af71363e 2406fi
5213506e
RW
2407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2408$as_echo "$ac_cv_host" >&6; }
2409case $ac_cv_host in
2410*-*-*) ;;
2411*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2412esac
1c710c3c 2413host=$ac_cv_host
5213506e
RW
2414ac_save_IFS=$IFS; IFS='-'
2415set x $ac_cv_host
2416shift
2417host_cpu=$1
2418host_vendor=$2
2419shift; shift
2420# Remember, the first character of IFS is used to create $*,
2421# except with old shells:
2422host_os=$*
2423IFS=$ac_save_IFS
2424case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2425
2426
5213506e
RW
2427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2428$as_echo_n "checking target system type... " >&6; }
2429if test "${ac_cv_target+set}" = set; then :
2430 $as_echo_n "(cached) " >&6
1c710c3c 2431else
5213506e
RW
2432 if test "x$target_alias" = x; then
2433 ac_cv_target=$ac_cv_host
2434else
2435 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2436 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2437fi
1c710c3c
DJ
2438
2439fi
5213506e
RW
2440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2441$as_echo "$ac_cv_target" >&6; }
2442case $ac_cv_target in
2443*-*-*) ;;
2444*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2445esac
1c710c3c 2446target=$ac_cv_target
5213506e
RW
2447ac_save_IFS=$IFS; IFS='-'
2448set x $ac_cv_target
2449shift
2450target_cpu=$1
2451target_vendor=$2
2452shift; shift
2453# Remember, the first character of IFS is used to create $*,
2454# except with old shells:
2455target_os=$*
2456IFS=$ac_save_IFS
2457case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2458
2459
2460# The aliases save the names the user supplied, while $host etc.
2461# will get canonicalized.
2462test -n "$target_alias" &&
2463 test "$program_prefix$program_suffix$program_transform_name" = \
2464 NONENONEs,x,x, &&
2465 program_prefix=${target_alias}-
5213506e 2466
671aa708 2467test "$program_prefix" != NONE &&
5213506e 2468 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2469# Use a double $ so make ignores it.
2470test "$program_suffix" != NONE &&
5213506e
RW
2471 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2472# Double any \ or $.
1c710c3c 2473# By default was `s,x,x', remove it if useless.
5213506e
RW
2474ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2475program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2476
671aa708
NN
2477
2478
775956d0
NN
2479# Get 'install' or 'install-sh' and its variants.
2480# Find a good install program. We prefer a C program (faster),
2481# so one script is as good as another. But avoid the broken or
2482# incompatible versions:
2483# SysV /etc/install, /usr/sbin/install
2484# SunOS /usr/etc/install
2485# IRIX /sbin/install
2486# AIX /bin/install
1c710c3c 2487# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2488# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2489# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2490# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2491# OS/2's system install, which has a completely different semantic
775956d0 2492# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2493# Reject install programs that cannot install multiple files.
5213506e
RW
2494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2495$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2496if test -z "$INSTALL"; then
5213506e
RW
2497if test "${ac_cv_path_install+set}" = set; then :
2498 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2499else
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501for as_dir in $PATH
2502do
2503 IFS=$as_save_IFS
2504 test -z "$as_dir" && as_dir=.
5213506e
RW
2505 # Account for people who put trailing slashes in PATH elements.
2506case $as_dir/ in #((
2507 ./ | .// | /[cC]/* | \
1c710c3c 2508 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2509 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2510 /usr/ucb/* ) ;;
2511 *)
2512 # OSF1 and SCO ODT 3.0 have their own names for install.
2513 # Don't use installbsd from OSF since it installs stuff as root
2514 # by default.
2515 for ac_prog in ginstall scoinst install; do
2516 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2517 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
775956d0 2518 if test $ac_prog = install &&
1c710c3c 2519 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2520 # AIX install. It has an incompatible calling convention.
2521 :
1c710c3c
DJ
2522 elif test $ac_prog = install &&
2523 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2524 # program-specific install script used by HP pwplus--don't use.
2525 :
775956d0 2526 else
38d24731
RW
2527 rm -rf conftest.one conftest.two conftest.dir
2528 echo one > conftest.one
2529 echo two > conftest.two
2530 mkdir conftest.dir
2531 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2532 test -s conftest.one && test -s conftest.two &&
2533 test -s conftest.dir/conftest.one &&
2534 test -s conftest.dir/conftest.two
2535 then
2536 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2537 break 3
2538 fi
775956d0
NN
2539 fi
2540 fi
2541 done
1c710c3c
DJ
2542 done
2543 ;;
2544esac
5213506e
RW
2545
2546 done
2547IFS=$as_save_IFS
1c710c3c 2548
38d24731 2549rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2550
2551fi
2552 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2553 INSTALL=$ac_cv_path_install
775956d0 2554 else
38d24731
RW
2555 # As a last resort, use the slow shell script. Don't cache a
2556 # value for INSTALL within a source directory, because that will
775956d0 2557 # break other packages using the cache if that directory is
38d24731 2558 # removed, or if the value is a relative name.
1c710c3c 2559 INSTALL=$ac_install_sh
775956d0
NN
2560 fi
2561fi
5213506e
RW
2562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2563$as_echo "$INSTALL" >&6; }
775956d0
NN
2564
2565# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2566# It thinks the first close brace ends the variable substitution.
2567test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2568
1c710c3c 2569test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2570
2571test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2572
5213506e
RW
2573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2574$as_echo_n "checking whether ln works... " >&6; }
2575if test "${acx_cv_prog_LN+set}" = set; then :
2576 $as_echo_n "(cached) " >&6
ad6717df
PB
2577else
2578 rm -f conftestdata_t
2579echo >conftestdata_f
2580if ln conftestdata_f conftestdata_t 2>/dev/null
2581then
2582 acx_cv_prog_LN=ln
2583else
2584 acx_cv_prog_LN=no
2585fi
2586rm -f conftestdata_f conftestdata_t
2587
2588fi
2589if test $acx_cv_prog_LN = no; then
2590 LN="cp"
5213506e
RW
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2592$as_echo "no, using $LN" >&6; }
ad6717df
PB
2593else
2594 LN="$acx_cv_prog_LN"
5213506e
RW
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2596$as_echo "yes" >&6; }
ad6717df
PB
2597fi
2598
5213506e
RW
2599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2600$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2601LN_S=$as_ln_s
2602if test "$LN_S" = "ln -s"; then
5213506e
RW
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2604$as_echo "yes" >&6; }
fb0103e5 2605else
5213506e
RW
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2607$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2608fi
2609
87264276
PB
2610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2611$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2612if test "${ac_cv_path_SED+set}" = set; then :
2613 $as_echo_n "(cached) " >&6
2614else
2615 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2616 for ac_i in 1 2 3 4 5 6 7; do
2617 ac_script="$ac_script$as_nl$ac_script"
2618 done
2619 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2620 { ac_script=; unset ac_script;}
2621 if test -z "$SED"; then
2622 ac_path_SED_found=false
2623 # Loop through the user's path and test for each of PROGNAME-LIST
2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625for as_dir in $PATH
2626do
2627 IFS=$as_save_IFS
2628 test -z "$as_dir" && as_dir=.
2629 for ac_prog in sed gsed; do
2630 for ac_exec_ext in '' $ac_executable_extensions; do
2631 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2632 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2633# Check for GNU ac_path_SED and select it if it is found.
2634 # Check for GNU $ac_path_SED
2635case `"$ac_path_SED" --version 2>&1` in
2636*GNU*)
2637 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2638*)
2639 ac_count=0
2640 $as_echo_n 0123456789 >"conftest.in"
2641 while :
2642 do
2643 cat "conftest.in" "conftest.in" >"conftest.tmp"
2644 mv "conftest.tmp" "conftest.in"
2645 cp "conftest.in" "conftest.nl"
2646 $as_echo '' >> "conftest.nl"
2647 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2648 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2649 as_fn_arith $ac_count + 1 && ac_count=$as_val
2650 if test $ac_count -gt ${ac_path_SED_max-0}; then
2651 # Best one so far, save it but keep looking for a better one
2652 ac_cv_path_SED="$ac_path_SED"
2653 ac_path_SED_max=$ac_count
2654 fi
2655 # 10*(2^10) chars as input seems more than enough
2656 test $ac_count -gt 10 && break
2657 done
2658 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2659esac
2660
2661 $ac_path_SED_found && break 3
2662 done
2663 done
2664 done
2665IFS=$as_save_IFS
2666 if test -z "$ac_cv_path_SED"; then
2667 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2668 fi
2669else
2670 ac_cv_path_SED=$SED
2671fi
2672
2673fi
2674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2675$as_echo "$ac_cv_path_SED" >&6; }
2676 SED="$ac_cv_path_SED"
2677 rm -f conftest.sed
2678
2679for ac_prog in gawk mawk nawk awk
2680do
2681 # Extract the first word of "$ac_prog", so it can be a program name with args.
2682set dummy $ac_prog; ac_word=$2
2683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2684$as_echo_n "checking for $ac_word... " >&6; }
2685if test "${ac_cv_prog_AWK+set}" = set; then :
2686 $as_echo_n "(cached) " >&6
2687else
2688 if test -n "$AWK"; then
2689 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2690else
2691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692for as_dir in $PATH
2693do
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
2696 for ac_exec_ext in '' $ac_executable_extensions; do
2697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2698 ac_cv_prog_AWK="$ac_prog"
2699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2700 break 2
2701 fi
2702done
2703 done
2704IFS=$as_save_IFS
2705
2706fi
2707fi
2708AWK=$ac_cv_prog_AWK
2709if test -n "$AWK"; then
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2711$as_echo "$AWK" >&6; }
2712else
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2714$as_echo "no" >&6; }
2715fi
2716
2717
2718 test -n "$AWK" && break
2719done
2720
775956d0 2721
ee6a22df
L
2722srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2723
2724# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2725# a relative path.
2726if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2727 INSTALL="${srcpwd}/install-sh -c"
2728fi
2729
671aa708
NN
2730# Set srcdir to "." if that's what it is.
2731# This is important for multilib support.
2732pwd=`${PWDCMD-pwd}`
671aa708
NN
2733if test "${pwd}" = "${srcpwd}" ; then
2734 srcdir=.
79c06341
JL
2735fi
2736
671aa708 2737topsrcdir=$srcpwd
5d4a5ee6 2738
671aa708 2739extra_host_args=
afabd8e6 2740
671aa708
NN
2741### To add a new directory to the tree, first choose whether it is a target
2742### or a host dependent tool. Then put it into the appropriate list
2743### (library or tools, host or target), doing a dependency sort.
79c06341 2744
1c710c3c 2745# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2746# configdirs, or target_configdirs; see the serialization section below.
79c06341 2747
1c710c3c
DJ
2748# Dependency sorting is only needed when *configuration* must be done in
2749# a particular order. In all cases a dependency should be specified in
671aa708 2750# the Makefile, whether or not it's implicitly specified here.
79c06341 2751
671aa708
NN
2752# Double entries in build_configdirs, configdirs, or target_configdirs may
2753# cause circular dependencies and break everything horribly.
79c06341 2754
23f6b2f9
PB
2755# these library is used by various programs built for the build
2756# environment
2757#
2758build_libs="build-libiberty"
2759
2760# these tools are built for the build environment
85bfb75e 2761build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2762
671aa708 2763# these libraries are used by various programs built for the host environment
eae1a5d4 2764#f
eff02e4f 2765host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
671aa708 2766
671aa708
NN
2767# these tools are built for the host environment
2768# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2769# know that we are building the simulator.
2770# binutils, gas and ld appear in that order because it makes sense to run
2771# "make check" in that particular order.
38e3d868 2772# If --enable-gold is used, "gold" may replace "ld".
85bfb75e 2773host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
671aa708
NN
2774
2775# libgcj represents the runtime libraries only used by gcj.
2776libgcj="target-libffi \
671aa708 2777 target-zlib \
671aa708
NN
2778 target-libjava"
2779
2780# these libraries are built for the target environment, and are built after
2781# the host libraries and the host tools (which may be a cross compiler)
8499116a 2782# Note that libiberty is not a target library.
291f172e 2783target_libraries="target-libgcc \
eff02e4f 2784 target-libbacktrace \
671aa708
NN
2785 target-libgloss \
2786 target-newlib \
6d3b5aea 2787 target-libgomp \
3038054c 2788 target-libcilkrts \
48310492 2789 target-libatomic \
0a35513e 2790 target-libitm \
cb543528 2791 target-libstdc++-v3 \
f35db108 2792 target-libsanitizer \
2077db1b 2793 target-libvtv \
77008252 2794 target-libssp \
1ec601bf 2795 target-libquadmath \
6de9cd9a 2796 target-libgfortran \
7cd0cf9c 2797 target-boehm-gc \
77d187bc 2798 ${libgcj} \
d9cdb878 2799 target-libobjc \
632e2a07
ILT
2800 target-libada \
2801 target-libgo"
671aa708 2802
4dbda6f0
NN
2803# these tools are built using the target libraries, and are intended to
2804# run only in the target environment
671aa708 2805#
4dbda6f0 2806# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2807# list belongs in this list.
671aa708 2808#
85bfb75e 2809target_tools="target-rda"
79c06341 2810
671aa708 2811################################################################################
79c06341 2812
671aa708
NN
2813## All tools belong in one of the four categories, and are assigned above
2814## We assign ${configdirs} this way to remove all embedded newlines. This
2815## is important because configure will choke if they ever get through.
2816## ${configdirs} is directories we build using the host tools.
2817## ${target_configdirs} is directories we build using the target tools.
671aa708 2818configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2819target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2820build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2821
ac9e6043
RW
2822
2823
671aa708 2824################################################################################
79c06341 2825
671aa708 2826srcname="gnu development package"
79c06341 2827
671aa708
NN
2828# This gets set non-empty for some net releases of packages.
2829appdirs=""
79c06341 2830
671aa708
NN
2831# Define is_cross_compiler to save on calls to 'test'.
2832is_cross_compiler=
2833if test x"${host}" = x"${target}" ; then
2834 is_cross_compiler=no
79c06341 2835else
671aa708 2836 is_cross_compiler=yes
1c710c3c 2837fi
79c06341 2838
b4acb5ef 2839# Find the build and target subdir names.
8b87bb96 2840
2e9e6f68
DJ
2841# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2842# have matching libraries, they should use host libraries: Makefile.tpl
2843# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2844# However, they still use the build modules, because the corresponding
2845# host modules (e.g. bison) are only built for the host when bootstrap
2846# finishes. So:
2847# - build_subdir is where we find build modules, and never changes.
2848# - build_libsubdir is where we find build libraries, and can be overridden.
2849
2850# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2851build_subdir="build-${build_noncanonical}"
1c710c3c 2852
5213506e
RW
2853# Check whether --with-build-libsubdir was given.
2854if test "${with_build_libsubdir+set}" = set; then :
2855 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2856else
2857 build_libsubdir="$build_subdir"
5213506e
RW
2858fi
2859
215c351a
PB
2860# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2861if ( test $srcdir = . && test -d gcc ) \
2862 || test -d $srcdir/../host-${host_noncanonical}; then
2863 host_subdir="host-${host_noncanonical}"
2864else
2865 host_subdir=.
2866fi
8b87bb96
NN
2867# No prefix.
2868target_subdir=${target_noncanonical}
1c710c3c 2869
0db770bd
RW
2870# Be sure to cover against remnants of an in-tree build.
2871if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2872 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2873Use a pristine source tree when building in a separate tree" "$LINENO" 5
2874fi
79c06341 2875
671aa708
NN
2876# Skipdirs are removed silently.
2877skipdirs=
2878# Noconfigdirs are removed loudly.
2879noconfigdirs=""
79c06341 2880
671aa708
NN
2881use_gnu_ld=
2882# Make sure we don't let GNU ld be added if we didn't want it.
2883if test x$with_gnu_ld = xno ; then
2884 use_gnu_ld=no
5afab7ad 2885 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2886fi
2887
671aa708
NN
2888use_gnu_as=
2889# Make sure we don't let GNU as be added if we didn't want it.
2890if test x$with_gnu_as = xno ; then
2891 use_gnu_as=no
2892 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2893fi
2894
d7f09764
DN
2895use_included_zlib=
2896# Make sure we don't let ZLIB be added if we didn't want it.
2897if test x$with_system_zlib = xyes ; then
2898 use_included_zlib=no
2899 noconfigdirs="$noconfigdirs zlib"
2900fi
2901
1c710c3c 2902# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2903# it's not even worth trying to configure, much less build, that tool.
79c06341 2904
671aa708
NN
2905case ${with_x} in
2906 yes | "") ;; # the default value for this tree is that X11 is available
2907 no)
b4f96efe 2908 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2909 # We won't be able to build gdbtk without X.
1c710c3c 2910 enable_gdbtk=no
671aa708
NN
2911 ;;
2912 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2913esac
79c06341 2914
1bcce263 2915# Some are only suitable for cross toolchains.
671aa708
NN
2916# Remove these if host=target.
2917cross_only="target-libgloss target-newlib target-opcodes"
2918
2919case $is_cross_compiler in
2920 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 2921esac
79c06341 2922
671aa708
NN
2923# If both --with-headers and --with-libs are specified, default to
2924# --without-newlib.
ee6a22df
L
2925if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2926 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2927 if test x"${with_newlib}" = x ; then
2928 with_newlib=no
2929 fi
79c06341
JL
2930fi
2931
671aa708
NN
2932# Recognize --with-newlib/--without-newlib.
2933case ${with_newlib} in
2934 no) skipdirs="${skipdirs} target-newlib" ;;
2935 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2936esac
79c06341 2937
21539e2e
MK
2938# Handle --enable-gold, --enable-ld.
2939# --disable-gold [--enable-ld]
2940# Build only ld. Default option.
9580395f
L
2941# --enable-gold [--enable-ld]
2942# Build both gold and ld. Install gold as "ld.gold", install ld
2943# as "ld.bfd" and "ld".
2944# --enable-gold=default [--enable-ld]
21539e2e
MK
2945# Build both gold and ld. Install gold as "ld.gold" and "ld",
2946# install ld as "ld.bfd".
2947# --enable-gold[=default] --disable-ld
2948# Build only gold, which is then installed as both "ld.gold" and "ld".
2949# --enable-gold --enable-ld=default
9580395f
L
2950# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2951# and ld.bfd).
21539e2e
MK
2952# In other words, ld is default
2953# --enable-gold=default --enable-ld=default
2954# Error.
2955
2956default_ld=
5213506e
RW
2957# Check whether --enable-gold was given.
2958if test "${enable_gold+set}" = set; then :
2959 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
2960else
2961 ENABLE_GOLD=no
5213506e
RW
2962fi
2963
21539e2e
MK
2964case "${ENABLE_GOLD}" in
2965 yes|default)
38e3d868
RM
2966 # Check for ELF target.
2967 is_elf=no
2968 case "${target}" in
2969 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
0e76460f 2970 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a 2971 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
ff4b7a7e 2972 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
38e3d868
RM
2973 case "${target}" in
2974 *-*-linux*aout* | *-*-linux*oldld*)
2975 ;;
2976 *)
2977 is_elf=yes
2978 ;;
2979 esac
2980 esac
2981
2982 if test "$is_elf" = "yes"; then
2983 # Check for target supported by gold.
5afab7ad 2984 case "${target}" in
8750dfc5 2985 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* | tilegx*-*-*)
21539e2e
MK
2986 configdirs="$configdirs gold"
2987 if test x${ENABLE_GOLD} = xdefault; then
2988 default_ld=gold
2989 fi
38e3d868 2990 ENABLE_GOLD=yes
5afab7ad
ILT
2991 ;;
2992 esac
38e3d868
RM
2993 fi
2994 ;;
2995 no)
2996 ;;
2997 *)
2998 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2999 ;;
21539e2e
MK
3000esac
3001
3002# Check whether --enable-ld was given.
3003if test "${enable_ld+set}" = set; then :
3004 enableval=$enable_ld; ENABLE_LD=$enableval
3005else
3006 ENABLE_LD=yes
3007fi
3008
3009
3010case "${ENABLE_LD}" in
3011 default)
9580395f 3012 if test x${default_ld} != x; then
21539e2e
MK
3013 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3014 fi
3015 ;;
3016 yes)
3017 ;;
3018 no)
3019 if test x${ENABLE_GOLD} != xyes; then
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3021$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3022 fi
3023 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3024 ;;
3025 *)
3026 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3027 ;;
3028esac
5afab7ad 3029
671aa708 3030# Configure extra directories which are host specific
79c06341 3031
671aa708
NN
3032case "${host}" in
3033 *-cygwin*)
3034 configdirs="$configdirs libtermcap" ;;
3035esac
79c06341 3036
4fab7234
HPN
3037# A target can indicate whether a language isn't supported for some reason.
3038# Only spaces may be used in this macro; not newlines or tabs.
3039unsupported_languages=
3040
1c710c3c 3041# Remove more programs from consideration, based on the host or
671aa708
NN
3042# target this usually means that a port of the program doesn't
3043# exist yet.
ec8d6ddc 3044
671aa708 3045case "${host}" in
111eeb6e 3046 i[3456789]86-*-msdosdjgpp*)
c9bdb152 3047 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 3048 ;;
671aa708 3049esac
ec8d6ddc 3050
6de9cd9a 3051
87e6d9dc
TB
3052# Check whether --enable-libquadmath was given.
3053if test "${enable_libquadmath+set}" = set; then :
3054 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3055else
3056 ENABLE_LIBQUADMATH=yes
3057fi
3058
3059if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3060 noconfigdirs="$noconfigdirs target-libquadmath"
3061fi
3062
3063
3064# Check whether --enable-libquadmath-support was given.
3065if test "${enable_libquadmath_support+set}" = set; then :
3066 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3067else
3068 ENABLE_LIBQUADMATH_SUPPORT=yes
3069fi
3070
3071enable_libquadmath_support=
3072if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3073 enable_libquadmath_support=no
3074fi
3075
3076
5213506e
RW
3077# Check whether --enable-libada was given.
3078if test "${enable_libada+set}" = set; then :
3079 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3080else
3081 ENABLE_LIBADA=yes
5213506e
RW
3082fi
3083
d9cdb878 3084if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3085 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3086fi
3087
5213506e
RW
3088# Check whether --enable-libssp was given.
3089if test "${enable_libssp+set}" = set; then :
3090 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3091else
3092 ENABLE_LIBSSP=yes
5213506e
RW
3093fi
3094
ef0087a7 3095
1873ec0c
L
3096# Check whether --enable-libstdcxx was given.
3097if test "${enable_libstdcxx+set}" = set; then :
3098 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3099else
3100 ENABLE_LIBSTDCXX=default
3101fi
3102
3103if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1007a55c 3104 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1873ec0c
L
3105fi
3106
671aa708
NN
3107# Save it here so that, even in case of --enable-libgcj, if the Java
3108# front-end isn't enabled, we still get libgcj disabled.
3109libgcj_saved=$libgcj
3110case $enable_libgcj in
3111yes)
3112 # If we reset it here, it won't get added to noconfigdirs in the
3113 # target-specific build rules, so it will be forcibly enabled
3114 # (unless the Java language itself isn't enabled).
3115 libgcj=
3116 ;;
3117no)
3118 # Make sure we get it printed in the list of not supported target libs.
4da3b0f8
ILT
3119 # Don't disable libffi, though, other languages use it.
3120 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
d479b128
ILT
3121 # Clear libgcj_saved so that even if java is enabled libffi won't be
3122 # built.
3123 libgcj_saved=
671aa708
NN
3124 ;;
3125esac
ec8d6ddc 3126
a4a2c37d
MK
3127# Check whether --enable-static-libjava was given.
3128if test "${enable_static_libjava+set}" = set; then :
3129 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3130else
3131 ENABLE_STATIC_LIBJAVA=no
3132fi
3133
3134enable_static_libjava=
3135if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3136 enable_static_libjava=yes
3137fi
3138
3139if test x$enable_static_libjava != xyes ; then
3140 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3141fi
3142
6de9cd9a 3143
27079765
AH
3144# Disable libgomp on non POSIX hosted systems.
3145if test x$enable_libgomp = x ; then
953ff289
DN
3146 # Enable libgomp by default on hosted POSIX systems.
3147 case "${target}" in
416ac4d4 3148 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3149 ;;
8c6d158a 3150 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3151 ;;
b24513a1 3152 *-*-solaris2* | *-*-hpux11*)
953ff289 3153 ;;
cac90078 3154 *-*-darwin* | *-*-aix*)
953ff289
DN
3155 ;;
3156 *)
3157 noconfigdirs="$noconfigdirs target-libgomp"
3158 ;;
3159 esac
27079765 3160fi
953ff289 3161
48310492
RH
3162# Disable libatomic on unsupported systems.
3163if test -d ${srcdir}/libatomic; then
3164 if test x$enable_libatomic = x; then
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3166$as_echo_n "checking for libatomic support... " >&6; }
3167 if (srcdir=${srcdir}/libatomic; \
3168 . ${srcdir}/configure.tgt; \
3169 test -n "$UNSUPPORTED")
3170 then
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172$as_echo "no" >&6; }
3173 noconfigdirs="$noconfigdirs target-libatomic"
3174 else
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3176$as_echo "yes" >&6; }
3177 fi
3178 fi
3179fi
3180
3038054c
BI
3181# Disable libcilkrts on unsupported systems.
3182if test -d ${srcdir}/libcilkrts; then
3183 if test x$enable_libcilkrts = x; then
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3185$as_echo_n "checking for libcilkrts support... " >&6; }
3186 if (srcdir=${srcdir}/libcilkrts; \
3187 . ${srcdir}/configure.tgt; \
3188 test -n "$UNSUPPORTED")
3189 then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191$as_echo "no" >&6; }
3192 noconfigdirs="$noconfigdirs target-libcilkrts"
3193 else
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3195$as_echo "yes" >&6; }
3196 fi
3197 fi
3198fi
3199
e948157d
RH
3200# Disable libitm on unsupported systems.
3201if test -d ${srcdir}/libitm; then
3202 if test x$enable_libitm = x; then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
01f3428c 3204$as_echo_n "checking for libitm support... " >&6; }
e948157d
RH
3205 if (srcdir=${srcdir}/libitm; \
3206 . ${srcdir}/configure.tgt; \
3207 test -n "$UNSUPPORTED")
3208 then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
01f3428c 3210$as_echo "no" >&6; }
e948157d
RH
3211 noconfigdirs="$noconfigdirs target-libitm"
3212 else
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
01f3428c 3214$as_echo "yes" >&6; }
e948157d
RH
3215 fi
3216 fi
0a35513e
AH
3217fi
3218
93bf5390
RH
3219# Disable libsanitizer on unsupported systems.
3220if test -d ${srcdir}/libsanitizer; then
3221 if test x$enable_libsanitizer = x; then
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3223$as_echo_n "checking for libsanitizer support... " >&6; }
3224 if (srcdir=${srcdir}/libsanitizer; \
3225 . ${srcdir}/configure.tgt; \
3226 test -n "$UNSUPPORTED")
3227 then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229$as_echo "no" >&6; }
3230 noconfigdirs="$noconfigdirs target-libsanitizer"
3231 else
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3233$as_echo "yes" >&6; }
3234 fi
3235 fi
3236fi
3237
2077db1b
CT
3238# Disable libvtv on unsupported systems.
3239if test -d ${srcdir}/libvtv; then
3240 if test x$enable_libvtv = x; then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3242$as_echo_n "checking for libvtv support... " >&6; }
3243 if (srcdir=${srcdir}/libvtv; \
3244 . ${srcdir}/configure.tgt; \
1e74b850 3245 test "$VTV_SUPPORTED" != "yes")
2077db1b
CT
3246 then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248$as_echo "no" >&6; }
3249 noconfigdirs="$noconfigdirs target-libvtv"
3250 else
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3252$as_echo "yes" >&6; }
3253 fi
3254 fi
3255fi
3256
d91491e5
SE
3257# Disable libquadmath for some systems.
3258case "${target}" in
e7fae550
DE
3259 avr-*-*)
3260 noconfigdirs="$noconfigdirs target-libquadmath"
3261 ;;
d91491e5
SE
3262 # libquadmath is unused on AIX and libquadmath build process use of
3263 # LD_LIBRARY_PATH can break AIX bootstrap.
3264 powerpc-*-aix* | rs6000-*-aix*)
3265 noconfigdirs="$noconfigdirs target-libquadmath"
3266 ;;
3267esac
3268
1e9e0e23
JM
3269# Disable libssp for some systems.
3270case "${target}" in
3271 avr-*-*)
b318fb4b 3272 # No hosted I/O support.
1e9e0e23
JM
3273 noconfigdirs="$noconfigdirs target-libssp"
3274 ;;
3275 powerpc-*-aix* | rs6000-*-aix*)
3276 noconfigdirs="$noconfigdirs target-libssp"
85b8555e
DD
3277 ;;
3278 rl78-*-*)
7cb62ef1
EB
3279 # libssp uses a misaligned load to trigger a fault, but the RL78
3280 # doesn't fault for those - instead, it gives a build-time error
3281 # for explicit misaligned loads.
85b8555e 3282 noconfigdirs="$noconfigdirs target-libssp"
1e9e0e23 3283 ;;
1e9e0e23
JM
3284esac
3285
1e9e0e23 3286# Disable libstdc++-v3 for some systems.
1873ec0c
L
3287# Allow user to override this if they pass --enable-libstdc++-v3
3288if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3289 case "${target}" in
3290 *-*-vxworks*)
3291 # VxWorks uses the Dinkumware C++ library.
3292 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3293 ;;
3294 arm*-wince-pe*)
3295 # the C++ libraries don't build on top of CE's C libraries
3296 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3297 ;;
3298 avr-*-*)
3299 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3300 ;;
3301 esac
3302fi
1e9e0e23
JM
3303
3304# Disable Fortran for some systems.
3305case "${target}" in
3306 mmix-*-*)
3307 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3308 unsupported_languages="$unsupported_languages fortran"
3309 ;;
3310esac
3311
80f81134 3312# Disable Java if libffi is not supported.
2909494b 3313case "${target}" in
eb7062cf
AS
3314 aarch64-*-*)
3315 ;;
80f81134
JM
3316 alpha*-*-*)
3317 ;;
3318 arm*-*-*)
3319 ;;
3320 cris-*-*)
3321 ;;
3322 frv-*-*)
3323 ;;
3324 hppa*-*-linux*)
3325 ;;
3326 hppa*-*-hpux*)
3327 ;;
3328 i?86-*-*)
3329 ;;
3330 ia64*-*-*)
3331 ;;
3332 m32r*-*-*)
3333 ;;
3334 m68k-*-*)
3335 ;;
b24513a1 3336 mips*-*-rtems*)
80f81134
JM
3337 ;;
3338 mips*-*-linux*)
3339 ;;
3340 powerpc*-*-linux*)
3341 ;;
3342 powerpc-*-darwin*)
3343 ;;
3344 powerpc-*-aix* | rs6000-*-aix*)
3345 ;;
3346 powerpc-*-freebsd*)
3347 ;;
3348 powerpc64-*-freebsd*)
3349 ;;
3350 powerpc*-*-rtems*)
2909494b 3351 ;;
80f81134
JM
3352 s390-*-* | s390x-*-*)
3353 ;;
3354 sh-*-* | sh[34]*-*-*)
3355 ;;
3356 sh64-*-* | sh5*-*-*)
3357 ;;
3358 sparc*-*-*)
3359 ;;
3360 x86_64-*-*)
3361 ;;
3362 *-*-*)
3363 unsupported_languages="$unsupported_languages java"
3364 ;;
3365esac
3366
3367# Disable Java, libgcj or related libraries for some systems.
3368case "${target}" in
2909494b
JM
3369 powerpc-*-darwin*)
3370 ;;
3371 i[3456789]86-*-darwin*)
3372 ;;
3373 x86_64-*-darwin[912]*)
3374 ;;
3375 *-*-darwin*)
3376 noconfigdirs="$noconfigdirs ${libgcj}"
3377 ;;
2909494b
JM
3378 *-*-netware*)
3379 noconfigdirs="$noconfigdirs ${libgcj}"
3380 ;;
3381 *-*-rtems*)
3382 noconfigdirs="$noconfigdirs ${libgcj}"
3383 ;;
3384 *-*-tpf*)
3385 noconfigdirs="$noconfigdirs ${libgcj}"
3386 ;;
3387 *-*-uclinux*)
3388 noconfigdirs="$noconfigdirs ${libgcj}"
3389 ;;
3390 *-*-vxworks*)
3391 noconfigdirs="$noconfigdirs ${libgcj}"
3392 ;;
2909494b
JM
3393 alpha*-*-*vms*)
3394 noconfigdirs="$noconfigdirs ${libgcj}"
3395 ;;
80f81134 3396 arm-wince-pe)
2909494b
JM
3397 noconfigdirs="$noconfigdirs ${libgcj}"
3398 ;;
2909494b
JM
3399 arm*-*-symbianelf*)
3400 noconfigdirs="$noconfigdirs ${libgcj}"
3401 ;;
2909494b 3402 bfin-*-*)
2909494b
JM
3403 noconfigdirs="$noconfigdirs target-boehm-gc"
3404 ;;
2909494b
JM
3405 cris-*-* | crisv32-*-*)
3406 unsupported_languages="$unsupported_languages java"
3407 case "${target}" in
3408 *-*-linux*)
3409 ;;
3410 *) # See PR46792 regarding target-libffi.
3411 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3412 esac
3413 ;;
2909494b
JM
3414 hppa*64*-*-linux*)
3415 # In this case, it's because the hppa64-linux target is for
3416 # the kernel only at this point and has no libc, and thus no
3417 # headers, crt*.o, etc., all of which are needed by these.
fddf9ee7 3418 unsupported_languages="$unsupported_languages java"
2909494b 3419 ;;
fddf9ee7 3420 hppa*64*-*-hpux*)
2909494b
JM
3421 noconfigdirs="$noconfigdirs ${libgcj}"
3422 ;;
3423 hppa*-hp-hpux11*)
3424 ;;
fddf9ee7 3425 hppa*-*-hpux*)
2909494b
JM
3426 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3427 # build on HP-UX 10.20.
3428 noconfigdirs="$noconfigdirs ${libgcj}"
3429 ;;
2909494b
JM
3430 ia64*-*-*vms*)
3431 noconfigdirs="$noconfigdirs ${libgcj}"
3432 ;;
2909494b
JM
3433 i[3456789]86-w64-mingw*)
3434 noconfigdirs="$noconfigdirs ${libgcj}"
3435 ;;
3436 i[3456789]86-*-mingw*)
3437 noconfigdirs="$noconfigdirs ${libgcj}"
3438 ;;
3439 x86_64-*-mingw*)
3440 noconfigdirs="$noconfigdirs ${libgcj}"
3441 ;;
2909494b
JM
3442 mmix-*-*)
3443 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
2909494b
JM
3444 ;;
3445 powerpc-*-aix*)
3446 # copied from rs6000-*-* entry
3447 noconfigdirs="$noconfigdirs ${libgcj}"
3448 ;;
2909494b
JM
3449 rs6000-*-aix*)
3450 noconfigdirs="$noconfigdirs ${libgcj}"
3451 ;;
2909494b
JM
3452 *-*-lynxos*)
3453 noconfigdirs="$noconfigdirs ${libgcj}"
3454 ;;
2909494b
JM
3455esac
3456
cdbc9e92
ILT
3457# Disable libgo for some systems where it is known to not work.
3458# For testing, you can easily override this with --enable-libgo.
3459if test x$enable_libgo = x; then
3460 case "${target}" in
3461 *-*-darwin*)
3462 # PR 46986
3463 noconfigdirs="$noconfigdirs target-libgo"
3464 ;;
3465 *-*-cygwin* | *-*-mingw*)
3466 noconfigdirs="$noconfigdirs target-libgo"
3467 ;;
3468 *-*-aix*)
3469 noconfigdirs="$noconfigdirs target-libgo"
3470 ;;
3471 esac
3472fi
3473
c03353e2
RIL
3474# Default libgloss CPU subdirectory.
3475libgloss_dir="$target_cpu"
6de9cd9a 3476
fbcf0dca
JM
3477case "${target}" in
3478 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3479 libgloss_dir=wince
3480 ;;
4dddfc74
YZ
3481 aarch64*-*-* )
3482 libgloss_dir=aarch64
3483 ;;
fbcf0dca
JM
3484 arm*-*-*)
3485 libgloss_dir=arm
3486 ;;
3487 cris-*-* | crisv32-*-*)
3488 libgloss_dir=cris
3489 ;;
3490 hppa*-*-*)
3491 libgloss_dir=pa
3492 ;;
3493 i[3456789]86-*-*)
3494 libgloss_dir=i386
3495 ;;
3496 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3497 libgloss_dir=m68hc11
3498 ;;
3499 m68*-*-* | fido-*-*)
3500 libgloss_dir=m68k
3501 ;;
3502 mips*-*-*)
3503 libgloss_dir=mips
3504 ;;
3505 powerpc*-*-*)
3506 libgloss_dir=rs6000
3507 ;;
3508 sparc*-*-*)
3509 libgloss_dir=sparc
3510 ;;
3511esac
3512
6a789d5e 3513# Disable newlib and libgloss for various target OSes.
671aa708 3514case "${target}" in
6a789d5e
JM
3515 alpha*-dec-osf*)
3516 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3517 ;;
3518 i[3456789]86-*-linux*)
3519 # This section makes it possible to build newlib natively on linux.
3520 # If we are using a cross compiler then don't configure newlib.
3521 if test x${is_cross_compiler} != xno ; then
3522 noconfigdirs="$noconfigdirs target-newlib"
3523 fi
3524 noconfigdirs="$noconfigdirs target-libgloss"
3525 # If we are not using a cross compiler, do configure newlib.
3526 # Note however, that newlib will only be configured in this situation
3527 # if the --with-newlib option has been given, because otherwise
3528 # 'target-newlib' will appear in skipdirs.
3529 ;;
3530 i[3456789]86-*-rdos*)
3531 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3532 ;;
3533 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3534 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3535 ;;
3536 sparc-*-sunos4*)
3537 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3538 ;;
3539 *-*-aix*)
3540 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3541 ;;
3542 *-*-beos*)
3543 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3544 ;;
671aa708 3545 *-*-chorusos)
0036370f 3546 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3547 ;;
6a789d5e
JM
3548 *-*-dragonfly*)
3549 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3550 ;;
3551 *-*-freebsd*)
3552 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3553 ;;
3554 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3555 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3556 ;;
3557 *-*-lynxos*)
3558 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3559 ;;
3560 *-*-mingw*)
3561 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3562 ;;
3563 *-*-netbsd*)
3564 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3565 ;;
3566 *-*-netware*)
3567 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3568 ;;
3569 *-*-tpf*)
3570 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3571 ;;
3572 *-*-uclinux*)
3573 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3574 ;;
3575 *-*-vxworks*)
3576 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3577 ;;
3578esac
3579
3580case "${target}" in
3581 *-*-chorusos)
3582 ;;
75eeae1a 3583 powerpc-*-darwin*)
e1514c3f 3584 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3585 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3586 ;;
354ebf88
RW
3587 i[3456789]86-*-darwin*)
3588 noconfigdirs="$noconfigdirs ld gprof"
3589 noconfigdirs="$noconfigdirs sim target-rda"
3590 ;;
3591 x86_64-*-darwin[912]*)
0db3a858
TG
3592 noconfigdirs="$noconfigdirs ld gas gprof"
3593 noconfigdirs="$noconfigdirs sim target-rda"
3594 ;;
42c1cd8a
AT
3595 *-*-darwin*)
3596 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3597 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3598 ;;
8c6d158a 3599 *-*-dragonfly*)
8c6d158a 3600 ;;
c3f84f61 3601 *-*-freebsd*)
6de9cd9a
DN
3602 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3603 && test -f /usr/local/include/gmp.h; then
3604 with_gmp=/usr/local
3605 fi
6de9cd9a 3606 ;;
ef4e7569
US
3607 *-*-kaos*)
3608 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3609 noconfigdirs="$noconfigdirs target-libgloss"
3610 ;;
671aa708 3611 *-*-netbsd*)
671aa708 3612 ;;
61fec9ff 3613 *-*-netware*)
671aa708
NN
3614 ;;
3615 *-*-rtems*)
2909494b 3616 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3617 ;;
a8ba31f2
EC
3618 # The tpf target doesn't support gdb yet.
3619 *-*-tpf*)
6a789d5e 3620 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3621 ;;
5785c0ed 3622 *-*-uclinux*)
6a789d5e 3623 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3624 ;;
671aa708 3625 *-*-vxworks*)
671aa708
NN
3626 ;;
3627 alpha*-dec-osf*)
3628 # ld works, but does not support shared libraries.
671aa708 3629 # gas doesn't generate exception information.
6a789d5e 3630 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3631 ;;
3632 alpha*-*-*vms*)
2909494b 3633 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3634 ;;
671aa708
NN
3635 alpha*-*-*)
3636 # newlib is not 64 bit ready
2909494b 3637 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3638 ;;
671aa708 3639 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3640 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708 3641 ;;
53426f6c 3642 arc-*-*|arceb-*-*)
ebb9f8b0 3643 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3644 ;;
671aa708 3645 arm-*-pe*)
2909494b 3646 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3647 ;;
671aa708 3648 arm-*-riscix*)
0036370f 3649 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3650 ;;
b588ae30
GJL
3651 avr-*-rtems*)
3652 ;;
3653 avr-*-*)
3654 if test x${with_avrlibc} != xno; then
3655 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3656 fi
3657 ;;
671aa708 3658 c4x-*-* | tic4x-*-*)
0036370f 3659 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3660 ;;
0036370f
JM
3661 tic54x-*-*)
3662 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3663 ;;
671aa708 3664 d10v-*-*)
0036370f 3665 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3666 ;;
3667 d30v-*-*)
0036370f 3668 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3669 ;;
3670 fr30-*-elf*)
2909494b 3671 noconfigdirs="$noconfigdirs gdb"
671aa708 3672 ;;
55f2d967 3673 moxie-*-*)
55f2d967
AG
3674 noconfigdirs="$noconfigdirs gprof"
3675 ;;
671aa708 3676 h8300*-*-*)
2909494b 3677 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3678 ;;
3679 h8500-*-*)
0036370f 3680 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3681 ;;
ee6a22df 3682 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3683 ;;
4569f85e 3684 hppa*64*-*-linux*)
671aa708 3685 ;;
56f8587a 3686 hppa*-*-linux*)
3e732ba0 3687 ;;
671aa708 3688 hppa*-*-*elf* | \
671aa708
NN
3689 hppa*-*-lites* | \
3690 hppa*-*-openbsd* | \
3691 hppa*64*-*-*)
671aa708 3692 ;;
2a332582 3693 hppa*-hp-hpux11*)
1bcce263 3694 noconfigdirs="$noconfigdirs ld"
2a332582 3695 ;;
c03353e2 3696 hppa*-*-pro*)
c03353e2 3697 ;;
671aa708 3698 hppa*-*-*)
2909494b 3699 noconfigdirs="$noconfigdirs ld"
671aa708 3700 ;;
fb87ad5d 3701 i960-*-*)
0036370f 3702 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3703 ;;
671aa708
NN
3704 ia64*-*-elf*)
3705 # No gdb support yet.
1bcce263 3706 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3707 ;;
3708 ia64*-**-hpux*)
5a2931d1 3709 # No ld support yet.
2909494b 3710 noconfigdirs="$noconfigdirs libgui itcl ld"
671aa708 3711 ;;
52535a64 3712 ia64*-*-*vms*)
091fe9ca
TG
3713 # No ld support yet.
3714 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3715 ;;
ef4c4300 3716 i[3456789]86-w64-mingw*)
ef4c4300
KT
3717 ;;
3718 i[3456789]86-*-mingw*)
b91f0a41 3719 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3720 ;;
671aa708
NN
3721 *-*-cygwin*)
3722 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3723 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3724 # always build newlib if winsup directory is present.
b91f0a41 3725 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3726 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3727 elif test -d "$srcdir/newlib"; then
b91f0a41 3728 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3729 fi
1c710c3c 3730 ;;
f2a0e225 3731 i[3456789]86-*-pe)
ebb9f8b0 3732 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3733 ;;
f2a0e225 3734 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3735 # The linker does not yet know about weak symbols in COFF,
3736 # and is not configured to handle mixed ELF and COFF.
0036370f 3737 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3738 ;;
f2a0e225 3739 i[3456789]86-*-sco*)
0036370f 3740 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3741 ;;
fbdd5d87 3742 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3743 noconfigdirs="$noconfigdirs target-libgloss"
3744 ;;
f2a0e225 3745 i[3456789]86-*-sysv4*)
0036370f 3746 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3747 ;;
f2a0e225 3748 i[3456789]86-*-beos*)
6a789d5e 3749 noconfigdirs="$noconfigdirs gdb"
3aa83176 3750 ;;
d1f8db0c 3751 i[3456789]86-*-rdos*)
6a789d5e 3752 noconfigdirs="$noconfigdirs gdb"
c03353e2 3753 ;;
671aa708 3754 mmix-*-*)
2909494b 3755 noconfigdirs="$noconfigdirs gdb"
671aa708 3756 ;;
ab34901f 3757 mt-*-*)
79dd769c
AH
3758 noconfigdirs="$noconfigdirs sim"
3759 ;;
671aa708
NN
3760 powerpc-*-aix*)
3761 # copied from rs6000-*-* entry
6a789d5e 3762 noconfigdirs="$noconfigdirs gprof"
671aa708 3763 ;;
4569f85e 3764 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3765 target_configdirs="$target_configdirs target-winsup"
0036370f 3766 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3767 # always build newlib.
3768 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3769 ;;
3770 # This is temporary until we can link against shared libraries
3771 powerpcle-*-solaris*)
0036370f 3772 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3773 ;;
3774 powerpc-*-beos*)
6a789d5e 3775 noconfigdirs="$noconfigdirs gdb"
671aa708 3776 ;;
671aa708 3777 rs6000-*-lynxos*)
6a789d5e 3778 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3779 ;;
3780 rs6000-*-aix*)
6a789d5e 3781 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3782 ;;
3783 rs6000-*-*)
2909494b 3784 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3785 ;;
3786 m68k-apollo-*)
0036370f 3787 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3788 ;;
ca9fe997 3789 microblaze*)
2909494b 3790 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3791 ;;
d91491e5 3792 mips*-sde-elf* | mips*-mti-elf*)
d9dced13
RS
3793 if test x$with_newlib = xyes; then
3794 noconfigdirs="$noconfigdirs gprof"
3795 fi
d9dced13 3796 ;;
671aa708 3797 mips*-*-irix5*)
0036370f 3798 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3799 ;;
3800 mips*-*-irix6*)
2909494b 3801 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3802 ;;
671aa708 3803 mips*-*-bsd*)
bc98bcc4 3804 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
671aa708 3805 ;;
671aa708 3806 mips*-*-linux*)
671aa708 3807 ;;
bc98bcc4
JBG
3808 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3809 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3810 noconfigdirs="$noconfigdirs ld gas gprof"
3811 ;;
671aa708 3812 mips*-*-*)
2909494b 3813 noconfigdirs="$noconfigdirs gprof"
671aa708 3814 ;;
669f01d8 3815 sh-*-* | sh64-*-*)
ea2002ba
CB
3816 case "${target}" in
3817 sh*-*-elf)
2909494b 3818 ;;
ea2002ba 3819 *)
2909494b 3820 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 3821 esac
671aa708 3822 ;;
671aa708 3823 sparc-*-sunos4*)
6a789d5e 3824 if test x${is_cross_compiler} = xno ; then
671aa708
NN
3825 use_gnu_ld=no
3826 fi
3827 ;;
b42f0d7e 3828 tic6x-*-*)
0d557ff8 3829 noconfigdirs="$noconfigdirs sim"
b42f0d7e 3830 ;;
341c653c 3831 tilepro*-*-* | tilegx*-*-*)
db1d217c
WL
3832 noconfigdirs="$noconfigdirs sim"
3833 ;;
671aa708 3834 v810-*-*)
0036370f 3835 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
3836 ;;
3837 vax-*-*)
2909494b 3838 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3839 ;;
671aa708 3840esac
79c06341 3841
671aa708
NN
3842# If we aren't building newlib, then don't build libgloss, since libgloss
3843# depends upon some newlib header files.
3844case "${noconfigdirs}" in
3845 *target-libgloss*) ;;
3846 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3847esac
3848
671aa708 3849# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
3850host_makefile_frag=/dev/null
3851if test -d ${srcdir}/config ; then
3852case "${host}" in
f2a0e225 3853 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
3854 host_makefile_frag="config/mh-djgpp"
3855 ;;
3856 *-cygwin*)
2a79c47f 3857
5213506e
RW
3858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3859$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 3860echo a >cygwin-cat-check
e25a8c82 3861if test `cat cygwin-cat-check` = a ; then
2a79c47f 3862 rm cygwin-cat-check
5213506e
RW
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3864$as_echo "yes" >&6; }
2a79c47f
NC
3865else
3866 rm cygwin-cat-check
5213506e
RW
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3868$as_echo "no" >&6; }
3869 as_fn_error "The cat command does not ignore carriage return characters.
2a79c47f
NC
3870 Please either mount the build directory in binary mode or run the following
3871 commands before running any configure script:
3872set -o igncr
3873export SHELLOPTS
5213506e 3874 " "$LINENO" 5
2a79c47f
NC
3875fi
3876
671aa708
NN
3877 host_makefile_frag="config/mh-cygwin"
3878 ;;
c53a18d3 3879 *-mingw*)
1f5a6b84 3880 host_makefile_frag="config/mh-mingw"
95af8923 3881 ;;
7b7f941a
UB
3882 alpha*-*-linux*)
3883 host_makefile_frag="config/mh-alpha-linux"
3884 ;;
efd41714 3885 hppa*-hp-hpux10*)
efd41714 3886 host_makefile_frag="config/mh-pa-hpux10"
671aa708 3887 ;;
111eeb6e 3888 hppa*-hp-hpux*)
efd41714
PB
3889 host_makefile_frag="config/mh-pa"
3890 ;;
3891 hppa*-*)
3892 host_makefile_frag="config/mh-pa"
3893 ;;
d8ed14ce
IS
3894 *-*-darwin*)
3895 host_makefile_frag="config/mh-darwin"
be8fff81 3896 ;;
d19bca38
PB
3897 powerpc-*-aix*)
3898 host_makefile_frag="config/mh-ppc-aix"
3899 ;;
3900 rs6000-*-aix*)
3901 host_makefile_frag="config/mh-ppc-aix"
3902 ;;
671aa708
NN
3903esac
3904fi
3905
55ffb5ed 3906if test "${build}" != "${host}" ; then
0999159b
PB
3907 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3908 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 3909 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b
PB
3910 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3911 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3912 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 3913 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
0999159b
PB
3914 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3915 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3916 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3917 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3918 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3919 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3920else
3921 AR_FOR_BUILD="\$(AR)"
3922 AS_FOR_BUILD="\$(AS)"
fb0103e5 3923 CC_FOR_BUILD="\$(CC)"
0999159b
PB
3924 CXX_FOR_BUILD="\$(CXX)"
3925 GCJ_FOR_BUILD="\$(GCJ)"
3926 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 3927 GOC_FOR_BUILD="\$(GOC)"
0999159b
PB
3928 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3929 LD_FOR_BUILD="\$(LD)"
3930 NM_FOR_BUILD="\$(NM)"
3931 RANLIB_FOR_BUILD="\$(RANLIB)"
3932 WINDRES_FOR_BUILD="\$(WINDRES)"
3933 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
3934fi
3935
3936ac_ext=c
1c710c3c
DJ
3937ac_cpp='$CPP $CPPFLAGS'
3938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3940ac_compiler_gnu=$ac_cv_c_compiler_gnu
3941if test -n "$ac_tool_prefix"; then
3942 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3943set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3945$as_echo_n "checking for $ac_word... " >&6; }
3946if test "${ac_cv_prog_CC+set}" = set; then :
3947 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3948else
3949 if test -n "$CC"; then
3950 ac_cv_prog_CC="$CC" # Let the user override the test.
3951else
3952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953for as_dir in $PATH
3954do
3955 IFS=$as_save_IFS
3956 test -z "$as_dir" && as_dir=.
5213506e
RW
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3959 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3961 break 2
3962 fi
3963done
5213506e
RW
3964 done
3965IFS=$as_save_IFS
1c710c3c
DJ
3966
3967fi
3968fi
3969CC=$ac_cv_prog_CC
3970if test -n "$CC"; then
5213506e
RW
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3972$as_echo "$CC" >&6; }
1c710c3c 3973else
5213506e
RW
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975$as_echo "no" >&6; }
1c710c3c
DJ
3976fi
3977
5213506e 3978
1c710c3c
DJ
3979fi
3980if test -z "$ac_cv_prog_CC"; then
3981 ac_ct_CC=$CC
fb0103e5
RG
3982 # Extract the first word of "gcc", so it can be a program name with args.
3983set dummy gcc; ac_word=$2
5213506e
RW
3984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3985$as_echo_n "checking for $ac_word... " >&6; }
3986if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3987 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3988else
3989 if test -n "$ac_ct_CC"; then
3990 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3991else
3992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993for as_dir in $PATH
3994do
3995 IFS=$as_save_IFS
3996 test -z "$as_dir" && as_dir=.
5213506e
RW
3997 for ac_exec_ext in '' $ac_executable_extensions; do
3998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3999 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4001 break 2
4002 fi
4003done
5213506e
RW
4004 done
4005IFS=$as_save_IFS
1c710c3c
DJ
4006
4007fi
4008fi
4009ac_ct_CC=$ac_cv_prog_ac_ct_CC
4010if test -n "$ac_ct_CC"; then
5213506e
RW
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4012$as_echo "$ac_ct_CC" >&6; }
1c710c3c 4013else
5213506e
RW
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4015$as_echo "no" >&6; }
1c710c3c
DJ
4016fi
4017
5213506e
RW
4018 if test "x$ac_ct_CC" = x; then
4019 CC=""
4020 else
4021 case $cross_compiling:$ac_tool_warned in
4022yes:)
4023{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4024$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4025ac_tool_warned=yes ;;
4026esac
4027 CC=$ac_ct_CC
4028 fi
1c710c3c
DJ
4029else
4030 CC="$ac_cv_prog_CC"
4031fi
4032
4033if test -z "$CC"; then
5213506e
RW
4034 if test -n "$ac_tool_prefix"; then
4035 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4036set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4038$as_echo_n "checking for $ac_word... " >&6; }
4039if test "${ac_cv_prog_CC+set}" = set; then :
4040 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4041else
4042 if test -n "$CC"; then
4043 ac_cv_prog_CC="$CC" # Let the user override the test.
4044else
1c710c3c
DJ
4045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046for as_dir in $PATH
4047do
4048 IFS=$as_save_IFS
4049 test -z "$as_dir" && as_dir=.
5213506e
RW
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4052 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4054 break 2
4055 fi
4056done
5213506e
RW
4057 done
4058IFS=$as_save_IFS
1c710c3c 4059
0b0dc272 4060fi
0b0dc272 4061fi
1c710c3c 4062CC=$ac_cv_prog_CC
af71363e 4063if test -n "$CC"; then
5213506e
RW
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4065$as_echo "$CC" >&6; }
2aeb72e9 4066else
5213506e
RW
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4068$as_echo "no" >&6; }
2aeb72e9
DD
4069fi
4070
2aeb72e9 4071
5213506e 4072 fi
1c710c3c 4073fi
55ffb5ed
NN
4074if test -z "$CC"; then
4075 # Extract the first word of "cc", so it can be a program name with args.
4076set dummy cc; ac_word=$2
5213506e
RW
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4078$as_echo_n "checking for $ac_word... " >&6; }
4079if test "${ac_cv_prog_CC+set}" = set; then :
4080 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4081else
4082 if test -n "$CC"; then
4083 ac_cv_prog_CC="$CC" # Let the user override the test.
4084else
0b0dc272 4085 ac_prog_rejected=no
1c710c3c
DJ
4086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087for as_dir in $PATH
4088do
4089 IFS=$as_save_IFS
4090 test -z "$as_dir" && as_dir=.
5213506e
RW
4091 for ac_exec_ext in '' $ac_executable_extensions; do
4092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
4093 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4094 ac_prog_rejected=yes
4095 continue
4096 fi
4097 ac_cv_prog_CC="cc"
5213506e 4098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4099 break 2
4100 fi
4101done
5213506e
RW
4102 done
4103IFS=$as_save_IFS
1c710c3c 4104
55ffb5ed
NN
4105if test $ac_prog_rejected = yes; then
4106 # We found a bogon in the path, so make sure we never use it.
4107 set dummy $ac_cv_prog_CC
4108 shift
1c710c3c 4109 if test $# != 0; then
55ffb5ed
NN
4110 # We chose a different compiler from the bogus one.
4111 # However, it has the same basename, so the bogon will be chosen
4112 # first if we set CC to just the basename; use the full file name.
4113 shift
1c710c3c 4114 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4115 fi
4116fi
4117fi
4118fi
1c710c3c 4119CC=$ac_cv_prog_CC
55ffb5ed 4120if test -n "$CC"; then
5213506e
RW
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4122$as_echo "$CC" >&6; }
55ffb5ed 4123else
5213506e
RW
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4125$as_echo "no" >&6; }
55ffb5ed
NN
4126fi
4127
5213506e 4128
1c710c3c
DJ
4129fi
4130if test -z "$CC"; then
4131 if test -n "$ac_tool_prefix"; then
5213506e 4132 for ac_prog in cl.exe
1c710c3c
DJ
4133 do
4134 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4135set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4137$as_echo_n "checking for $ac_word... " >&6; }
4138if test "${ac_cv_prog_CC+set}" = set; then :
4139 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4140else
4141 if test -n "$CC"; then
4142 ac_cv_prog_CC="$CC" # Let the user override the test.
4143else
1c710c3c
DJ
4144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145for as_dir in $PATH
4146do
4147 IFS=$as_save_IFS
4148 test -z "$as_dir" && as_dir=.
5213506e
RW
4149 for ac_exec_ext in '' $ac_executable_extensions; do
4150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4151 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4153 break 2
4154 fi
4155done
5213506e
RW
4156 done
4157IFS=$as_save_IFS
1c710c3c 4158
55ffb5ed
NN
4159fi
4160fi
1c710c3c 4161CC=$ac_cv_prog_CC
55ffb5ed 4162if test -n "$CC"; then
5213506e
RW
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4164$as_echo "$CC" >&6; }
a4b9e93e 4165else
5213506e
RW
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4167$as_echo "no" >&6; }
fb0103e5 4168fi
af71363e 4169
5213506e 4170
1c710c3c
DJ
4171 test -n "$CC" && break
4172 done
af71363e 4173fi
1c710c3c
DJ
4174if test -z "$CC"; then
4175 ac_ct_CC=$CC
5213506e 4176 for ac_prog in cl.exe
1c710c3c
DJ
4177do
4178 # Extract the first word of "$ac_prog", so it can be a program name with args.
4179set dummy $ac_prog; ac_word=$2
5213506e
RW
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4181$as_echo_n "checking for $ac_word... " >&6; }
4182if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4183 $as_echo_n "(cached) " >&6
0b0dc272 4184else
1c710c3c
DJ
4185 if test -n "$ac_ct_CC"; then
4186 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4187else
1c710c3c
DJ
4188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189for as_dir in $PATH
4190do
4191 IFS=$as_save_IFS
4192 test -z "$as_dir" && as_dir=.
5213506e
RW
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4195 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4197 break 2
4198 fi
4199done
5213506e
RW
4200 done
4201IFS=$as_save_IFS
1c710c3c 4202
af71363e
AS
4203fi
4204fi
1c710c3c
DJ
4205ac_ct_CC=$ac_cv_prog_ac_ct_CC
4206if test -n "$ac_ct_CC"; then
5213506e
RW
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4208$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4209else
5213506e
RW
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211$as_echo "no" >&6; }
af71363e 4212fi
0b0dc272 4213
5213506e 4214
1c710c3c
DJ
4215 test -n "$ac_ct_CC" && break
4216done
4217
5213506e
RW
4218 if test "x$ac_ct_CC" = x; then
4219 CC=""
4220 else
4221 case $cross_compiling:$ac_tool_warned in
4222yes:)
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4224$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4225ac_tool_warned=yes ;;
4226esac
4227 CC=$ac_ct_CC
4228 fi
1c710c3c
DJ
4229fi
4230
4231fi
4232
4233
5213506e
RW
4234test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4235$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4236as_fn_error "no acceptable C compiler found in \$PATH
4237See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4238
4239# Provide some information about the compiler.
5213506e
RW
4240$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4241set X $ac_compile
4242ac_compiler=$2
4243for ac_option in --version -v -V -qversion; do
4244 { { ac_try="$ac_compiler $ac_option >&5"
4245case "(($ac_try" in
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4248esac
4249eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4250$as_echo "$ac_try_echo"; } >&5
4251 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4252 ac_status=$?
5213506e
RW
4253 if test -s conftest.err; then
4254 sed '10a\
4255... rest of stderr output deleted ...
4256 10q' conftest.err >conftest.er1
4257 cat conftest.er1 >&5
4258 rm -f conftest.er1 conftest.err
4259 fi
4260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4261 test $ac_status = 0; }
4262done
1c710c3c 4263
5213506e 4264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4265/* end confdefs.h. */
4266
4267int
4268main ()
4269{
4270
4271 ;
4272 return 0;
4273}
4274_ACEOF
4275ac_clean_files_save=$ac_clean_files
5213506e 4276ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
1c710c3c
DJ
4277# Try to create an executable without -o first, disregard a.out.
4278# It will help us diagnose broken compilers, and finding out an intuition
4279# of exeext.
5213506e
RW
4280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4281$as_echo_n "checking for C compiler default output file name... " >&6; }
4282ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4283
4284# The possible output files:
4285ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4286
4287ac_rmfiles=
4288for ac_file in $ac_files
4289do
4290 case $ac_file in
4291 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4292 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4293 esac
4294done
4295rm -f $ac_rmfiles
4296
4297if { { ac_try="$ac_link_default"
4298case "(($ac_try" in
4299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300 *) ac_try_echo=$ac_try;;
4301esac
4302eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4303$as_echo "$ac_try_echo"; } >&5
4304 (eval "$ac_link_default") 2>&5
1c710c3c 4305 ac_status=$?
5213506e
RW
4306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4307 test $ac_status = 0; }; then :
4308 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4309# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4310# in a Makefile. We should not override ac_cv_exeext if it was cached,
4311# so that the user can short-circuit this test for compilers unknown to
4312# Autoconf.
4313for ac_file in $ac_files ''
1c710c3c
DJ
4314do
4315 test -f "$ac_file" || continue
4316 case $ac_file in
5213506e 4317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4318 ;;
4319 [ab].out )
4320 # We found the default executable, but exeext='' is most
4321 # certainly right.
4322 break;;
4323 *.* )
5213506e
RW
4324 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4325 then :; else
4326 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4327 fi
4328 # We set ac_cv_exeext here because the later test for it is not
4329 # safe: cross compilers may not add the suffix if given an `-o'
4330 # argument, so we may need to know it at that point already.
4331 # Even if this section looks crufty: it has the advantage of
4332 # actually working.
1c710c3c
DJ
4333 break;;
4334 * )
4335 break;;
4336 esac
4337done
5213506e
RW
4338test "$ac_cv_exeext" = no && ac_cv_exeext=
4339
1c710c3c 4340else
5213506e
RW
4341 ac_file=''
4342fi
4343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4344$as_echo "$ac_file" >&6; }
4345if test -z "$ac_file"; then :
4346 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4347sed 's/^/| /' conftest.$ac_ext >&5
4348
5213506e
RW
4349{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4350$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4351{ as_fn_set_status 77
4352as_fn_error "C compiler cannot create executables
4353See \`config.log' for more details." "$LINENO" 5; }; }
1c710c3c 4354fi
1c710c3c 4355ac_exeext=$ac_cv_exeext
1c710c3c 4356
5213506e 4357# Check that the compiler produces executables we can run. If not, either
1c710c3c 4358# the compiler is broken, or we cross compile.
5213506e
RW
4359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4360$as_echo_n "checking whether the C compiler works... " >&6; }
1c710c3c
DJ
4361# If not cross compiling, check that we can run a simple program.
4362if test "$cross_compiling" != yes; then
4363 if { ac_try='./$ac_file'
5213506e
RW
4364 { { case "(($ac_try" in
4365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366 *) ac_try_echo=$ac_try;;
4367esac
4368eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4369$as_echo "$ac_try_echo"; } >&5
4370 (eval "$ac_try") 2>&5
1c710c3c 4371 ac_status=$?
5213506e
RW
4372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4373 test $ac_status = 0; }; }; then
1c710c3c
DJ
4374 cross_compiling=no
4375 else
4376 if test "$cross_compiling" = maybe; then
4377 cross_compiling=yes
4378 else
5213506e
RW
4379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4380$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4381as_fn_error "cannot run C compiled programs.
1c710c3c 4382If you meant to cross compile, use \`--host'.
5213506e 4383See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4384 fi
4385 fi
4386fi
5213506e
RW
4387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4388$as_echo "yes" >&6; }
1c710c3c 4389
5213506e 4390rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
1c710c3c 4391ac_clean_files=$ac_clean_files_save
5213506e 4392# Check that the compiler produces executables we can run. If not, either
1c710c3c 4393# the compiler is broken, or we cross compile.
5213506e
RW
4394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4395$as_echo_n "checking whether we are cross compiling... " >&6; }
4396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4397$as_echo "$cross_compiling" >&6; }
4398
4399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4400$as_echo_n "checking for suffix of executables... " >&6; }
4401if { { ac_try="$ac_link"
4402case "(($ac_try" in
4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404 *) ac_try_echo=$ac_try;;
4405esac
4406eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4407$as_echo "$ac_try_echo"; } >&5
4408 (eval "$ac_link") 2>&5
1c710c3c 4409 ac_status=$?
5213506e
RW
4410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4411 test $ac_status = 0; }; then :
1c710c3c
DJ
4412 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4413# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4414# work properly (i.e., refer to `conftest.exe'), while it won't with
4415# `rm'.
4416for ac_file in conftest.exe conftest conftest.*; do
4417 test -f "$ac_file" || continue
4418 case $ac_file in
5213506e 4419 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4420 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4421 break;;
4422 * ) break;;
4423 esac
4424done
af71363e 4425else
5213506e
RW
4426 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4427$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4428as_fn_error "cannot compute suffix of executables: cannot compile and link
4429See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4430fi
1c710c3c 4431rm -f conftest$ac_cv_exeext
5213506e
RW
4432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4433$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4434
4435rm -f conftest.$ac_ext
4436EXEEXT=$ac_cv_exeext
4437ac_exeext=$EXEEXT
5213506e
RW
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4439$as_echo_n "checking for suffix of object files... " >&6; }
4440if test "${ac_cv_objext+set}" = set; then :
4441 $as_echo_n "(cached) " >&6
1c710c3c 4442else
5213506e 4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4444/* end confdefs.h. */
4445
4446int
4447main ()
4448{
4449
4450 ;
4451 return 0;
4452}
4453_ACEOF
4454rm -f conftest.o conftest.obj
5213506e
RW
4455if { { ac_try="$ac_compile"
4456case "(($ac_try" in
4457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458 *) ac_try_echo=$ac_try;;
4459esac
4460eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4461$as_echo "$ac_try_echo"; } >&5
4462 (eval "$ac_compile") 2>&5
1c710c3c 4463 ac_status=$?
5213506e
RW
4464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4465 test $ac_status = 0; }; then :
4466 for ac_file in conftest.o conftest.obj conftest.*; do
4467 test -f "$ac_file" || continue;
1c710c3c 4468 case $ac_file in
5213506e 4469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4470 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4471 break;;
4472 esac
4473done
4474else
5213506e 4475 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4476sed 's/^/| /' conftest.$ac_ext >&5
4477
5213506e
RW
4478{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4480as_fn_error "cannot compute suffix of object files: cannot compile
4481See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4482fi
1c710c3c
DJ
4483rm -f conftest.$ac_cv_objext conftest.$ac_ext
4484fi
5213506e
RW
4485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4486$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4487OBJEXT=$ac_cv_objext
4488ac_objext=$OBJEXT
5213506e
RW
4489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4490$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4491if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4492 $as_echo_n "(cached) " >&6
1c710c3c 4493else
5213506e 4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4495/* end confdefs.h. */
4496
4497int
4498main ()
4499{
4500#ifndef __GNUC__
4501 choke me
4502#endif
4503
4504 ;
4505 return 0;
4506}
4507_ACEOF
5213506e 4508if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4509 ac_compiler_gnu=yes
4510else
5213506e 4511 ac_compiler_gnu=no
1c710c3c 4512fi
5213506e 4513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4514ac_cv_c_compiler_gnu=$ac_compiler_gnu
4515
4516fi
5213506e
RW
4517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4518$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4519if test $ac_compiler_gnu = yes; then
4520 GCC=yes
4521else
4522 GCC=
4523fi
1c710c3c
DJ
4524ac_test_CFLAGS=${CFLAGS+set}
4525ac_save_CFLAGS=$CFLAGS
5213506e
RW
4526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4527$as_echo_n "checking whether $CC accepts -g... " >&6; }
4528if test "${ac_cv_prog_cc_g+set}" = set; then :
4529 $as_echo_n "(cached) " >&6
4530else
4531 ac_save_c_werror_flag=$ac_c_werror_flag
4532 ac_c_werror_flag=yes
4533 ac_cv_prog_cc_g=no
4534 CFLAGS="-g"
4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4536/* end confdefs.h. */
4537
4538int
4539main ()
4540{
4541
4542 ;
4543 return 0;
4544}
4545_ACEOF
5213506e 4546if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4547 ac_cv_prog_cc_g=yes
4548else
5213506e
RW
4549 CFLAGS=""
4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551/* end confdefs.h. */
4552
4553int
4554main ()
4555{
4556
4557 ;
4558 return 0;
4559}
4560_ACEOF
4561if ac_fn_c_try_compile "$LINENO"; then :
4562
4563else
4564 ac_c_werror_flag=$ac_save_c_werror_flag
4565 CFLAGS="-g"
4566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567/* end confdefs.h. */
af71363e 4568
5213506e
RW
4569int
4570main ()
4571{
4572
4573 ;
4574 return 0;
4575}
4576_ACEOF
4577if ac_fn_c_try_compile "$LINENO"; then :
4578 ac_cv_prog_cc_g=yes
4579fi
4580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4581fi
5213506e 4582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4583fi
5213506e
RW
4584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4585 ac_c_werror_flag=$ac_save_c_werror_flag
4586fi
4587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4588$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4589if test "$ac_test_CFLAGS" = set; then
1c710c3c 4590 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4591elif test $ac_cv_prog_cc_g = yes; then
4592 if test "$GCC" = yes; then
4593 CFLAGS="-g -O2"
4594 else
4595 CFLAGS="-g"
4596 fi
4597else
4598 if test "$GCC" = yes; then
4599 CFLAGS="-O2"
4600 else
4601 CFLAGS=
4602 fi
4603fi
5213506e
RW
4604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4605$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4606if test "${ac_cv_prog_cc_c89+set}" = set; then :
4607 $as_echo_n "(cached) " >&6
1c710c3c 4608else
5213506e 4609 ac_cv_prog_cc_c89=no
1c710c3c 4610ac_save_CC=$CC
5213506e 4611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4612/* end confdefs.h. */
4613#include <stdarg.h>
4614#include <stdio.h>
4615#include <sys/types.h>
4616#include <sys/stat.h>
4617/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4618struct buf { int x; };
4619FILE * (*rcsopen) (struct buf *, struct stat *, int);
4620static char *e (p, i)
4621 char **p;
4622 int i;
4623{
4624 return p[i];
4625}
4626static char *f (char * (*g) (char **, int), char **p, ...)
4627{
4628 char *s;
4629 va_list v;
4630 va_start (v,p);
4631 s = g (p, va_arg (v,int));
4632 va_end (v);
4633 return s;
4634}
4635
4636/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4637 function prototypes and stuff, but not '\xHH' hex character constants.
4638 These don't provoke an error unfortunately, instead are silently treated
5213506e 4639 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4640 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4641 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4642 that's true only with -std. */
1c710c3c
DJ
4643int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4644
5213506e
RW
4645/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4646 inside strings and character constants. */
4647#define FOO(x) 'x'
4648int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4649
1c710c3c
DJ
4650int test (int i, double x);
4651struct s1 {int (*f) (int a);};
4652struct s2 {int (*f) (double a);};
4653int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4654int argc;
4655char **argv;
4656int
4657main ()
4658{
4659return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4660 ;
4661 return 0;
4662}
4663_ACEOF
5213506e
RW
4664for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4665 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4666do
4667 CC="$ac_save_CC $ac_arg"
5213506e
RW
4668 if ac_fn_c_try_compile "$LINENO"; then :
4669 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4670fi
5213506e
RW
4671rm -f core conftest.err conftest.$ac_objext
4672 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4673done
5213506e 4674rm -f conftest.$ac_ext
1c710c3c
DJ
4675CC=$ac_save_CC
4676
4677fi
5213506e
RW
4678# AC_CACHE_VAL
4679case "x$ac_cv_prog_cc_c89" in
4680 x)
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4682$as_echo "none needed" >&6; } ;;
4683 xno)
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4685$as_echo "unsupported" >&6; } ;;
1c710c3c 4686 *)
5213506e
RW
4687 CC="$CC $ac_cv_prog_cc_c89"
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4689$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4690esac
5213506e 4691if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4692
2aeb72e9
DD
4693fi
4694
2aeb72e9
DD
4695ac_ext=c
4696ac_cpp='$CPP $CPPFLAGS'
4697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4699ac_compiler_gnu=$ac_cv_c_compiler_gnu
4700
5213506e 4701ac_ext=cpp
2aeb72e9
DD
4702ac_cpp='$CXXCPP $CPPFLAGS'
4703ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4704ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4705ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4706if test -z "$CXX"; then
4707 if test -n "$CCC"; then
4708 CXX=$CCC
4709 else
4710 if test -n "$ac_tool_prefix"; then
4711 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4712 do
4713 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4714set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4716$as_echo_n "checking for $ac_word... " >&6; }
4717if test "${ac_cv_prog_CXX+set}" = set; then :
4718 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4719else
4720 if test -n "$CXX"; then
4721 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4722else
4723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724for as_dir in $PATH
4725do
4726 IFS=$as_save_IFS
4727 test -z "$as_dir" && as_dir=.
5213506e
RW
4728 for ac_exec_ext in '' $ac_executable_extensions; do
4729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2aeb72e9 4730 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4732 break 2
4733 fi
4734done
5213506e
RW
4735 done
4736IFS=$as_save_IFS
55ffb5ed 4737
c3a86da9
DJ
4738fi
4739fi
4740CXX=$ac_cv_prog_CXX
4741if test -n "$CXX"; then
5213506e
RW
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4743$as_echo "$CXX" >&6; }
c3a86da9 4744else
5213506e
RW
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4746$as_echo "no" >&6; }
c3a86da9
DJ
4747fi
4748
5213506e 4749
c3a86da9
DJ
4750 test -n "$CXX" && break
4751 done
4752fi
4753if test -z "$CXX"; then
4754 ac_ct_CXX=$CXX
5213506e 4755 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4756do
4757 # Extract the first word of "$ac_prog", so it can be a program name with args.
4758set dummy $ac_prog; ac_word=$2
5213506e
RW
4759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4760$as_echo_n "checking for $ac_word... " >&6; }
4761if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4762 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4763else
4764 if test -n "$ac_ct_CXX"; then
4765 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4766else
4767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768for as_dir in $PATH
4769do
4770 IFS=$as_save_IFS
4771 test -z "$as_dir" && as_dir=.
5213506e
RW
4772 for ac_exec_ext in '' $ac_executable_extensions; do
4773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c3a86da9 4774 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4776 break 2
4777 fi
4778done
5213506e
RW
4779 done
4780IFS=$as_save_IFS
c3a86da9
DJ
4781
4782fi
4783fi
4784ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4785if test -n "$ac_ct_CXX"; then
5213506e
RW
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4787$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4788else
5213506e
RW
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4790$as_echo "no" >&6; }
c3a86da9
DJ
4791fi
4792
5213506e 4793
c3a86da9
DJ
4794 test -n "$ac_ct_CXX" && break
4795done
c3a86da9 4796
5213506e
RW
4797 if test "x$ac_ct_CXX" = x; then
4798 CXX="g++"
4799 else
4800 case $cross_compiling:$ac_tool_warned in
4801yes:)
4802{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4803$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4804ac_tool_warned=yes ;;
4805esac
4806 CXX=$ac_ct_CXX
4807 fi
c3a86da9
DJ
4808fi
4809
5213506e
RW
4810 fi
4811fi
c3a86da9 4812# Provide some information about the compiler.
5213506e
RW
4813$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4814set X $ac_compile
4815ac_compiler=$2
4816for ac_option in --version -v -V -qversion; do
4817 { { ac_try="$ac_compiler $ac_option >&5"
4818case "(($ac_try" in
4819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4820 *) ac_try_echo=$ac_try;;
4821esac
4822eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4823$as_echo "$ac_try_echo"; } >&5
4824 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 4825 ac_status=$?
5213506e
RW
4826 if test -s conftest.err; then
4827 sed '10a\
4828... rest of stderr output deleted ...
4829 10q' conftest.err >conftest.er1
4830 cat conftest.er1 >&5
4831 rm -f conftest.er1 conftest.err
4832 fi
4833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4834 test $ac_status = 0; }
4835done
c3a86da9 4836
5213506e
RW
4837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4838$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4839if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4840 $as_echo_n "(cached) " >&6
c3a86da9 4841else
5213506e 4842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4843/* end confdefs.h. */
4844
4845int
4846main ()
4847{
4848#ifndef __GNUC__
4849 choke me
4850#endif
4851
4852 ;
4853 return 0;
4854}
4855_ACEOF
5213506e 4856if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4857 ac_compiler_gnu=yes
4858else
5213506e 4859 ac_compiler_gnu=no
c3a86da9 4860fi
5213506e 4861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4862ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4863
4864fi
5213506e
RW
4865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4866$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4867if test $ac_compiler_gnu = yes; then
4868 GXX=yes
4869else
4870 GXX=
4871fi
c3a86da9
DJ
4872ac_test_CXXFLAGS=${CXXFLAGS+set}
4873ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
4874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4875$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4876if test "${ac_cv_prog_cxx_g+set}" = set; then :
4877 $as_echo_n "(cached) " >&6
4878else
4879 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4880 ac_cxx_werror_flag=yes
4881 ac_cv_prog_cxx_g=no
4882 CXXFLAGS="-g"
4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4884/* end confdefs.h. */
4885
4886int
4887main ()
4888{
4889
4890 ;
4891 return 0;
4892}
4893_ACEOF
5213506e 4894if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4895 ac_cv_prog_cxx_g=yes
4896else
5213506e
RW
4897 CXXFLAGS=""
4898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4899/* end confdefs.h. */
5213506e 4900
c3a86da9
DJ
4901int
4902main ()
4903{
5213506e 4904
c3a86da9
DJ
4905 ;
4906 return 0;
4907}
4908_ACEOF
5213506e 4909if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 4910
5213506e
RW
4911else
4912 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4913 CXXFLAGS="-g"
4914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4915/* end confdefs.h. */
5213506e 4916
c3a86da9
DJ
4917int
4918main ()
4919{
5213506e 4920
c3a86da9
DJ
4921 ;
4922 return 0;
4923}
4924_ACEOF
5213506e
RW
4925if ac_fn_cxx_try_compile "$LINENO"; then :
4926 ac_cv_prog_cxx_g=yes
11a67599 4927fi
5213506e
RW
4928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4929fi
4930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4931fi
4932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4933 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4934fi
4935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4936$as_echo "$ac_cv_prog_cxx_g" >&6; }
4937if test "$ac_test_CXXFLAGS" = set; then
4938 CXXFLAGS=$ac_save_CXXFLAGS
4939elif test $ac_cv_prog_cxx_g = yes; then
4940 if test "$GXX" = yes; then
4941 CXXFLAGS="-g -O2"
4942 else
4943 CXXFLAGS="-g"
4944 fi
4945else
4946 if test "$GXX" = yes; then
4947 CXXFLAGS="-O2"
4948 else
4949 CXXFLAGS=
4950 fi
c3a86da9 4951fi
c3a86da9
DJ
4952ac_ext=c
4953ac_cpp='$CPP $CPPFLAGS'
4954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4956ac_compiler_gnu=$ac_cv_c_compiler_gnu
4957
4958
4959# We must set the default linker to the linker used by gcc for the correct
4960# operation of libtool. If LD is not defined and we are using gcc, try to
4961# set the LD default to the ld used by gcc.
4962if test -z "$LD"; then
4963 if test "$GCC" = yes; then
4964 case $build in
4965 *-*-mingw*)
4966 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4967 *)
4968 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4969 esac
4970 case $gcc_prog_ld in
4971 # Accept absolute paths.
4972 [\\/]* | [A-Za-z]:[\\/]*)
4973 LD="$gcc_prog_ld" ;;
4974 esac
4975 fi
23f6b2f9
PB
4976fi
4977
0b21f5d3
EB
4978# Check whether -static-libstdc++ -static-libgcc is supported.
4979have_static_libs=no
4980if test "$GCC" = yes; then
4981 saved_LDFLAGS="$LDFLAGS"
4982
4983 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
4985$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
4986 ac_ext=cpp
4987ac_cpp='$CXXCPP $CPPFLAGS'
4988ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4989ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4990ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4991
4992
4993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994/* end confdefs.h. */
0d6414b2
EB
4995
4996#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
4997#error -static-libstdc++ not implemented
4998#endif
0b21f5d3
EB
4999int main() {}
5000_ACEOF
5001if ac_fn_cxx_try_link "$LINENO"; then :
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5003$as_echo "yes" >&6; }; have_static_libs=yes
5004else
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5006$as_echo "no" >&6; }
5007fi
5008rm -f core conftest.err conftest.$ac_objext \
5009 conftest$ac_exeext conftest.$ac_ext
5010 ac_ext=c
5011ac_cpp='$CPP $CPPFLAGS'
5012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5014ac_compiler_gnu=$ac_cv_c_compiler_gnu
5015
5016
5017 LDFLAGS="$saved_LDFLAGS"
5018fi
5019
23f6b2f9
PB
5020
5021
55ffb5ed 5022
1c710c3c
DJ
5023if test -n "$ac_tool_prefix"; then
5024 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 5025set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
5026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5027$as_echo_n "checking for $ac_word... " >&6; }
5028if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5029 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5030else
5031 if test -n "$GNATBIND"; then
5032 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5033else
1c710c3c
DJ
5034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035for as_dir in $PATH
5036do
5037 IFS=$as_save_IFS
5038 test -z "$as_dir" && as_dir=.
5213506e
RW
5039 for ac_exec_ext in '' $ac_executable_extensions; do
5040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5041 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5043 break 2
5044 fi
5045done
5213506e
RW
5046 done
5047IFS=$as_save_IFS
1c710c3c 5048
55ffb5ed
NN
5049fi
5050fi
1c710c3c 5051GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5052if test -n "$GNATBIND"; then
5213506e
RW
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5054$as_echo "$GNATBIND" >&6; }
55ffb5ed 5055else
5213506e
RW
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5057$as_echo "no" >&6; }
55ffb5ed
NN
5058fi
5059
5213506e 5060
1c710c3c 5061fi
55ffb5ed 5062if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5063 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5064 # Extract the first word of "gnatbind", so it can be a program name with args.
5065set dummy gnatbind; ac_word=$2
5213506e
RW
5066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5067$as_echo_n "checking for $ac_word... " >&6; }
5068if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5069 $as_echo_n "(cached) " >&6
55ffb5ed 5070else
1c710c3c
DJ
5071 if test -n "$ac_ct_GNATBIND"; then
5072 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5073else
1c710c3c
DJ
5074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075for as_dir in $PATH
5076do
5077 IFS=$as_save_IFS
5078 test -z "$as_dir" && as_dir=.
5213506e
RW
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5081 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5083 break 2
5084 fi
5085done
5213506e
RW
5086 done
5087IFS=$as_save_IFS
1c710c3c 5088
55ffb5ed
NN
5089fi
5090fi
1c710c3c
DJ
5091ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5092if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5094$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5095else
5213506e
RW
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5097$as_echo "no" >&6; }
55ffb5ed
NN
5098fi
5099
5213506e
RW
5100 if test "x$ac_ct_GNATBIND" = x; then
5101 GNATBIND="no"
5102 else
5103 case $cross_compiling:$ac_tool_warned in
5104yes:)
5105{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5106$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5107ac_tool_warned=yes ;;
5108esac
5109 GNATBIND=$ac_ct_GNATBIND
5110 fi
55ffb5ed 5111else
1c710c3c 5112 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5113fi
5114
1c710c3c
DJ
5115if test -n "$ac_tool_prefix"; then
5116 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5117set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5119$as_echo_n "checking for $ac_word... " >&6; }
5120if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5121 $as_echo_n "(cached) " >&6
5305be7e
RG
5122else
5123 if test -n "$GNATMAKE"; then
5124 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5125else
1c710c3c
DJ
5126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127for as_dir in $PATH
5128do
5129 IFS=$as_save_IFS
5130 test -z "$as_dir" && as_dir=.
5213506e
RW
5131 for ac_exec_ext in '' $ac_executable_extensions; do
5132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5133 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5135 break 2
5136 fi
5137done
5213506e
RW
5138 done
5139IFS=$as_save_IFS
1c710c3c 5140
5305be7e
RG
5141fi
5142fi
1c710c3c 5143GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5144if test -n "$GNATMAKE"; then
5213506e
RW
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5146$as_echo "$GNATMAKE" >&6; }
5305be7e 5147else
5213506e
RW
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5149$as_echo "no" >&6; }
5305be7e
RG
5150fi
5151
5213506e 5152
1c710c3c 5153fi
5305be7e 5154if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5155 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5156 # Extract the first word of "gnatmake", so it can be a program name with args.
5157set dummy gnatmake; ac_word=$2
5213506e
RW
5158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5159$as_echo_n "checking for $ac_word... " >&6; }
5160if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5161 $as_echo_n "(cached) " >&6
5305be7e 5162else
1c710c3c
DJ
5163 if test -n "$ac_ct_GNATMAKE"; then
5164 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5165else
1c710c3c
DJ
5166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167for as_dir in $PATH
5168do
5169 IFS=$as_save_IFS
5170 test -z "$as_dir" && as_dir=.
5213506e
RW
5171 for ac_exec_ext in '' $ac_executable_extensions; do
5172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5173 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5175 break 2
5176 fi
5177done
5213506e
RW
5178 done
5179IFS=$as_save_IFS
1c710c3c 5180
5305be7e
RG
5181fi
5182fi
1c710c3c
DJ
5183ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5184if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5186$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5187else
5213506e
RW
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189$as_echo "no" >&6; }
5305be7e
RG
5190fi
5191
5213506e
RW
5192 if test "x$ac_ct_GNATMAKE" = x; then
5193 GNATMAKE="no"
5194 else
5195 case $cross_compiling:$ac_tool_warned in
5196yes:)
5197{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5198$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5199ac_tool_warned=yes ;;
5200esac
5201 GNATMAKE=$ac_ct_GNATMAKE
5202 fi
5305be7e 5203else
1c710c3c 5204 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5205fi
5206
5213506e
RW
5207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5208$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5209if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5210 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5211else
5212 cat >conftest.adb <<EOF
5213procedure conftest is begin null; end conftest;
5214EOF
5215acx_cv_cc_gcc_supports_ada=no
5216# There is a bug in old released versions of GCC which causes the
5217# driver to exit successfully when the appropriate language module
5218# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5219# Therefore we must check for the error message as well as an
5220# unsuccessful exit.
1db673ca
RO
5221# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5222# given a .adb file, but produce no object file. So we must check
5223# if an object file was really produced to guard against this.
55ffb5ed 5224errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5225if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5226 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5227fi
5228rm -f conftest.*
5229fi
5213506e
RW
5230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5231$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5232
7cb62ef1 5233if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5234 have_gnat=yes
5235else
5236 have_gnat=no
5237fi
5238
5213506e
RW
5239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5240$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5241if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5242 $as_echo_n "(cached) " >&6
a76494aa
PB
5243else
5244 echo abfoo >t1
5245 echo cdfoo >t2
5246 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5247 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5248 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5249 :
5250 else
5251 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5252 fi
5253 fi
a76494aa
PB
5254 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5255 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5256 :
a76494aa
PB
5257 else
5258 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5259 fi
5260 fi
5261 rm t1 t2
5262
5263fi
5213506e
RW
5264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5265$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5266do_compare="$gcc_cv_prog_cmp_skip"
5267
5268
55ffb5ed 5269
ff3ac0f4
ILT
5270# Check whether --enable-bootstrap was given.
5271if test "${enable_bootstrap+set}" = set; then :
5272 enableval=$enable_bootstrap;
5273else
5274 enable_bootstrap=default
5275fi
5276
5277
5278# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5279if test -r $srcdir/gcc/configure; then
5280 have_compiler=yes
5281else
5282 have_compiler=no
5283fi
ff3ac0f4
ILT
5284
5285case "$have_compiler:$host:$target:$enable_bootstrap" in
5286 *:*:*:no) ;;
5287
5288 # Default behavior. Enable bootstrap if we have a compiler
5289 # and we are in a native configuration.
5290 yes:$build:$build:default)
5291 enable_bootstrap=yes ;;
5292
5293 *:*:*:default)
5294 enable_bootstrap=no ;;
5295
5296 # We have a compiler and we are in a native configuration, bootstrap is ok
5297 yes:$build:$build:yes)
5298 ;;
5299
5300 # Other configurations, but we have a compiler. Assume the user knows
5301 # what he's doing.
5302 yes:*:*:yes)
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5304$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5305 ;;
5306
5307 # No compiler: if they passed --enable-bootstrap explicitly, fail
5308 no:*:*:yes)
5309 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5310
5311 # Fail if wrong command line
5312 *)
5313 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5314 ;;
5315esac
5316
592c90ff
KG
5317# Used for setting $lt_cv_objdir
5318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5319$as_echo_n "checking for objdir... " >&6; }
5320if test "${lt_cv_objdir+set}" = set; then :
5321 $as_echo_n "(cached) " >&6
5322else
5323 rm -f .libs 2>/dev/null
5324mkdir .libs 2>/dev/null
5325if test -d .libs; then
5326 lt_cv_objdir=.libs
5327else
5328 # MS-DOS does not allow filenames that begin with a dot.
5329 lt_cv_objdir=_libs
5330fi
5331rmdir .libs 2>/dev/null
5332fi
5333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5334$as_echo "$lt_cv_objdir" >&6; }
5335objdir=$lt_cv_objdir
5336
5337
5338
5339
5340
5341cat >>confdefs.h <<_ACEOF
5342#define LT_OBJDIR "$lt_cv_objdir/"
5343_ACEOF
5344
5345
5346
acd26225 5347# Check for GMP, MPFR and MPC
3a5729ea 5348gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 5349gmpinc=
e69bf64b 5350have_gmp=no
acd26225
KG
5351
5352# Specify a location for mpc
5353# check for this first so it ends up on the link line before mpfr.
5354
5213506e
RW
5355# Check whether --with-mpc was given.
5356if test "${with_mpc+set}" = set; then :
5357 withval=$with_mpc;
5358fi
acd26225 5359
acd26225 5360
9965e3cd 5361# Check whether --with-mpc-include was given.
5213506e
RW
5362if test "${with_mpc_include+set}" = set; then :
5363 withval=$with_mpc_include;
5364fi
acd26225 5365
acd26225 5366
9965e3cd 5367# Check whether --with-mpc-lib was given.
5213506e
RW
5368if test "${with_mpc_lib+set}" = set; then :
5369 withval=$with_mpc_lib;
5370fi
acd26225 5371
acd26225
KG
5372
5373if test "x$with_mpc" != x; then
3a5729ea
KG
5374 gmplibs="-L$with_mpc/lib $gmplibs"
5375 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
5376fi
5377if test "x$with_mpc_include" != x; then
3a5729ea 5378 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
5379fi
5380if test "x$with_mpc_lib" != x; then
3a5729ea 5381 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
5382fi
5383if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 5384 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 5385 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5386 # Do not test the mpc version. Assume that it is sufficient, since
5387 # it is in the source tree, and the library has not been built yet
5388 # but it would be included on the link line in the version check below
5389 # hence making the test fail.
3a5729ea 5390 have_gmp=yes
acd26225 5391fi
e69bf64b 5392
bebf829d
PB
5393# Specify a location for mpfr
5394# check for this first so it ends up on the link line before gmp.
1c710c3c 5395
5213506e
RW
5396# Check whether --with-mpfr-dir was given.
5397if test "${with_mpfr_dir+set}" = set; then :
5398 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5399Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5400fi
5401
bebf829d
PB
5402
5403
5213506e
RW
5404# Check whether --with-mpfr was given.
5405if test "${with_mpfr+set}" = set; then :
5406 withval=$with_mpfr;
5407fi
1c710c3c 5408
bebf829d 5409
9965e3cd 5410# Check whether --with-mpfr-include was given.
5213506e
RW
5411if test "${with_mpfr_include+set}" = set; then :
5412 withval=$with_mpfr_include;
5413fi
1c710c3c 5414
8a877c9c 5415
9965e3cd 5416# Check whether --with-mpfr-lib was given.
5213506e
RW
5417if test "${with_mpfr_lib+set}" = set; then :
5418 withval=$with_mpfr_lib;
5419fi
8a877c9c 5420
bebf829d
PB
5421
5422if test "x$with_mpfr" != x; then
5423 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5424 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5425fi
8a877c9c 5426if test "x$with_mpfr_include" != x; then
3a5729ea 5427 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5428fi
5429if test "x$with_mpfr_lib" != x; then
5430 gmplibs="-L$with_mpfr_lib $gmplibs"
5431fi
e69bf64b 5432if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5b0d38e4
NC
5433 # MPFR v3.1.0 moved the sources into a src sub-directory.
5434 if test -d ${srcdir}/mpfr/src; then
5435 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5436 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5437 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5438 else
5439 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5440 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5441 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5442 fi
e69bf64b
PB
5443 # Do not test the mpfr version. Assume that it is sufficient, since
5444 # it is in the source tree, and the library has not been built yet
5445 # but it would be included on the link line in the version check below
5446 # hence making the test fail.
5447 have_gmp=yes
5448fi
bebf829d 5449
6de9cd9a 5450# Specify a location for gmp
1c710c3c 5451
5213506e
RW
5452# Check whether --with-gmp-dir was given.
5453if test "${with_gmp_dir+set}" = set; then :
5454 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5455Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5456fi
5457
6de9cd9a 5458
6de9cd9a 5459
5213506e
RW
5460# Check whether --with-gmp was given.
5461if test "${with_gmp+set}" = set; then :
5462 withval=$with_gmp;
5463fi
1c710c3c 5464
6de9cd9a 5465
9965e3cd 5466# Check whether --with-gmp-include was given.
5213506e
RW
5467if test "${with_gmp_include+set}" = set; then :
5468 withval=$with_gmp_include;
5469fi
1c710c3c 5470
8a877c9c 5471
9965e3cd 5472# Check whether --with-gmp-lib was given.
5213506e
RW
5473if test "${with_gmp_lib+set}" = set; then :
5474 withval=$with_gmp_lib;
5475fi
8a877c9c
KG
5476
5477
6de9cd9a 5478
bebf829d
PB
5479if test "x$with_gmp" != x; then
5480 gmplibs="-L$with_gmp/lib $gmplibs"
5481 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5482fi
8a877c9c
KG
5483if test "x$with_gmp_include" != x; then
5484 gmpinc="-I$with_gmp_include $gmpinc"
5485fi
5486if test "x$with_gmp_lib" != x; then
5487 gmplibs="-L$with_gmp_lib $gmplibs"
5488fi
e69bf64b 5489if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5490 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5491 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 5492 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 5493 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 5494 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
5495 # Do not test the gmp version. Assume that it is sufficient, since
5496 # it is in the source tree, and the library has not been built yet
5497 # but it would be included on the link line in the version check below
5498 # hence making the test fail.
5499 have_gmp=yes
5500fi
6de9cd9a 5501
d943d7c4 5502if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5503 have_gmp=yes
5504 saved_CFLAGS="$CFLAGS"
5505 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5506 # Check for the recommended and required versions of GMP.
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5508$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5509
5510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5511/* end confdefs.h. */
5512#include "gmp.h"
5513int
5514main ()
5515{
5516
5517 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5518 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 5519 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
5520 choke me
5521 #endif
5522
5523 ;
5524 return 0;
5525}
5526_ACEOF
5527if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5529/* end confdefs.h. */
362c6d2f 5530#include <gmp.h>
1c710c3c
DJ
5531int
5532main ()
5533{
6de9cd9a 5534
362c6d2f
KG
5535 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5536 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5537 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5538 choke me
5539 #endif
1c710c3c
DJ
5540
5541 ;
5542 return 0;
5543}
5544_ACEOF
5213506e
RW
5545if ac_fn_c_try_compile "$LINENO"; then :
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5547$as_echo "yes" >&6; }
362c6d2f
KG
5548else
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5550$as_echo "buggy but acceptable" >&6; }
5551fi
5552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5553else
5213506e
RW
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5555$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5556fi
5213506e 5557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5558
acd26225 5559 # If we have GMP, check the MPFR version.
e69bf64b 5560 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5561 # Check for the recommended and required versions of MPFR.
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5563$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5565/* end confdefs.h. */
70ec446f 5566#include <gmp.h>
e69bf64b 5567 #include <mpfr.h>
1c710c3c
DJ
5568int
5569main ()
5570{
e48d66a9 5571
f7d6bc01 5572 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
e69bf64b
PB
5573 choke me
5574 #endif
1c710c3c
DJ
5575
5576 ;
5577 return 0;
5578}
5579_ACEOF
5213506e
RW
5580if ac_fn_c_try_compile "$LINENO"; then :
5581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5582/* end confdefs.h. */
a3993f33 5583#include <gmp.h>
e69bf64b 5584 #include <mpfr.h>
1c710c3c
DJ
5585int
5586main ()
5587{
a3993f33 5588
362c6d2f 5589 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
e69bf64b
PB
5590 choke me
5591 #endif
acd26225
KG
5592
5593 ;
5594 return 0;
5595}
5596_ACEOF
5213506e
RW
5597if ac_fn_c_try_compile "$LINENO"; then :
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5599$as_echo "yes" >&6; }
acd26225 5600else
5213506e
RW
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5602$as_echo "buggy but acceptable" >&6; }
acd26225 5603fi
5213506e 5604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5605else
5213506e
RW
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607$as_echo "no" >&6; }; have_gmp=no
acd26225 5608fi
5213506e 5609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5610 fi
5611
5612 # Check for the MPC header version.
3a5729ea 5613 if test x"$have_gmp" = xyes ; then
362c6d2f 5614 # Check for the recommended and required versions of MPC.
5213506e
RW
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5616$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5618/* end confdefs.h. */
5619#include <mpc.h>
5620int
5621main ()
5622{
5623
362c6d2f
KG
5624 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5625 choke me
5626 #endif
5627
5628 ;
5629 return 0;
5630}
5631_ACEOF
5632if ac_fn_c_try_compile "$LINENO"; then :
5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634/* end confdefs.h. */
5635#include <mpc.h>
5636int
5637main ()
5638{
5639
5640 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5641 choke me
5642 #endif
5643
5644 ;
5645 return 0;
5646}
5647_ACEOF
5213506e
RW
5648if ac_fn_c_try_compile "$LINENO"; then :
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5650$as_echo "yes" >&6; }
362c6d2f
KG
5651else
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5653$as_echo "buggy but acceptable" >&6; }
5654fi
5655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5656else
5213506e 5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5658$as_echo "no" >&6; }; have_gmp=no
acd26225 5659fi
5213506e 5660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5661 fi
5662
5663 # Now check the MPFR library.
5664 if test x"$have_gmp" = xyes; then
5665 saved_LIBS="$LIBS"
5666 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5668$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5670/* end confdefs.h. */
3a5729ea 5671#include <mpc.h>
acd26225
KG
5672int
5673main ()
5674{
5675
5676 mpfr_t n;
5677 mpfr_t x;
3a5729ea 5678 mpc_t c;
acd26225
KG
5679 int t;
5680 mpfr_init (n);
5681 mpfr_init (x);
5682 mpfr_atan2 (n, n, x, GMP_RNDN);
5683 mpfr_erfc (n, x, GMP_RNDN);
5684 mpfr_subnormalize (x, t, GMP_RNDN);
3a5729ea
KG
5685 mpfr_clear(n);
5686 mpfr_clear(x);
5687 mpc_init2 (c, 53);
5688 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5689 mpc_cosh (c, c, MPC_RNDNN);
5690 mpc_pow (c, c, c, MPC_RNDNN);
5691 mpc_acosh (c, c, MPC_RNDNN);
5692 mpc_clear (c);
1c710c3c
DJ
5693
5694 ;
5695 return 0;
5696}
5697_ACEOF
5213506e
RW
5698if ac_fn_c_try_link "$LINENO"; then :
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5700$as_echo "yes" >&6; }
1c710c3c 5701else
5213506e
RW
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5703$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5704fi
5213506e
RW
5705rm -f core conftest.err conftest.$ac_objext \
5706 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5707 LIBS="$saved_LIBS"
5708 fi
5709
e69bf64b 5710 CFLAGS="$saved_CFLAGS"
6de9cd9a 5711
362c6d2f
KG
5712# The library versions listed in the error message below should match
5713# the HARD-minimums enforced above.
e69bf64b 5714 if test x$have_gmp != xyes; then
f7d6bc01 5715 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
3a5729ea
KG
5716Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5717their locations. Source code for these libraries can be found at
5718their respective hosting sites as well as at
5719ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5720http://gcc.gnu.org/install/prerequisites.html for additional info. If
5721you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5722make sure that you have installed both the libraries and the header
5723files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5724 fi
70ec446f
KG
5725fi
5726
acd26225
KG
5727# Flags needed for both GMP, MPFR and/or MPC.
5728
5729
6de9cd9a
DN
5730
5731
5732
9e3eba15 5733
0ff2d841 5734
f38095f3
JM
5735# Allow host libstdc++ to be specified for static linking with PPL.
5736
5213506e
RW
5737# Check whether --with-host-libstdcxx was given.
5738if test "${with_host_libstdcxx+set}" = set; then :
5739 withval=$with_host_libstdcxx;
5740fi
f38095f3 5741
f38095f3
JM
5742
5743case $with_host_libstdcxx in
5744 no|yes)
5213506e 5745 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
f38095f3
JM
5746 ;;
5747esac
f8bf9252 5748
0b21f5d3 5749# Libraries to use for stage1 or when not bootstrapping.
00020c16 5750
0b21f5d3
EB
5751# Check whether --with-stage1-libs was given.
5752if test "${with_stage1_libs+set}" = set; then :
5753 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5754 stage1_libs=
00020c16 5755 else
0b21f5d3 5756 stage1_libs=$withval
00020c16
ILT
5757 fi
5758else
0b21f5d3 5759 stage1_libs=$with_host_libstdcxx
5213506e
RW
5760fi
5761
00020c16
ILT
5762
5763
0b21f5d3 5764# Linker flags to use for stage1 or when not bootstrapping.
00020c16 5765
0b21f5d3
EB
5766# Check whether --with-stage1-ldflags was given.
5767if test "${with_stage1_ldflags+set}" = set; then :
5768 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5769 stage1_ldflags=
00020c16 5770 else
0b21f5d3 5771 stage1_ldflags=$withval
00020c16
ILT
5772 fi
5773else
0b21f5d3
EB
5774 stage1_ldflags=
5775 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5776 # if supported. But if the user explicitly specified the libraries to use,
5777 # trust that they are doing what they want.
5778 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5779 stage1_ldflags="-static-libstdc++ -static-libgcc"
5780 fi
5213506e
RW
5781fi
5782
00020c16
ILT
5783
5784
00020c16
ILT
5785# Libraries to use for stage2 and later builds. This defaults to the
5786# argument passed to --with-host-libstdcxx.
5787
5213506e
RW
5788# Check whether --with-boot-libs was given.
5789if test "${with_boot_libs+set}" = set; then :
5790 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
5791 poststage1_libs=
5792 else
5793 poststage1_libs=$withval
5794 fi
5795else
00020c16 5796 poststage1_libs=$with_host_libstdcxx
5213506e
RW
5797fi
5798
00020c16
ILT
5799
5800
ed2eaa9f
ILT
5801# Linker flags to use for stage2 and later builds.
5802
5803# Check whether --with-boot-ldflags was given.
5804if test "${with_boot_ldflags+set}" = set; then :
5805 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5806 poststage1_ldflags=
5807 else
5808 poststage1_ldflags=$withval
5809 fi
5810else
5811 poststage1_ldflags=
bec93d73
ILT
5812 # In stages 2 and 3, default to linking libstdc++ and libgcc
5813 # statically. But if the user explicitly specified the libraries to
5814 # use, trust that they are doing what they want.
5815 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
5816 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5817 fi
5818fi
5819
5820
5821
625afa23
RG
5822# GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
5823# Basic setup is inlined here, actual checks are in config/cloog.m4 and
5824# config/isl.m4
5825
5826
5827# Check whether --with-cloog was given.
5828if test "${with_cloog+set}" = set; then :
5829 withval=$with_cloog;
5830fi
f8bf9252
SP
5831
5832
33ad93b9
RG
5833# Check whether --with-isl was given.
5834if test "${with_isl+set}" = set; then :
5835 withval=$with_isl;
5213506e 5836fi
f8bf9252 5837
f8bf9252 5838
eae1a5d4 5839# Treat --without-isl as a request to disable
625afa23 5840# GRAPHITE support and skip all following checks.
eae1a5d4 5841if test "x$with_isl" != "xno"; then
625afa23
RG
5842 # Check for ISL
5843
5844
33ad93b9
RG
5845# Check whether --with-isl-include was given.
5846if test "${with_isl_include+set}" = set; then :
5847 withval=$with_isl_include;
5213506e
RW
5848fi
5849
f8bf9252 5850
33ad93b9
RG
5851# Check whether --with-isl-lib was given.
5852if test "${with_isl_lib+set}" = set; then :
5853 withval=$with_isl_lib;
5213506e 5854fi
f8bf9252 5855
f8bf9252 5856
33ad93b9
RG
5857 # Check whether --enable-isl-version-check was given.
5858if test "${enable_isl_version_check+set}" = set; then :
5859 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5860else
5861 ENABLE_ISL_CHECK=yes
7d32a440
SP
5862fi
5863
5864
33ad93b9
RG
5865 # Initialize isllibs and islinc.
5866 case $with_isl in
5867 no)
5868 isllibs=
5869 islinc=
5870 ;;
5871 "" | yes)
5872 ;;
5873 *)
5874 isllibs="-L$with_isl/lib"
5875 islinc="-I$with_isl/include"
5876 ;;
5877 esac
5878 if test "x${with_isl_include}" != x ; then
5879 islinc="-I$with_isl_include"
5880 fi
5881 if test "x${with_isl_lib}" != x; then
5882 isllibs="-L$with_isl_lib"
5883 fi
5884 if test "x${islinc}" = x && test "x${isllibs}" = x \
5885 && test -d ${srcdir}/isl; then
5886 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5887 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5888 ENABLE_ISL_CHECK=no
2869f0ff
RB
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5890$as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
33ad93b9 5891 fi
7d32a440 5892
eae1a5d4
RG
5893 islinc="-DCLOOG_INT_GMP ${islinc}"
5894 isllibs="${isllibs} -lisl"
5895
7d32a440 5896
7d32a440 5897
9847828b
RB
5898 if test "${ENABLE_ISL_CHECK}" = yes ; then
5899 _isl_saved_CFLAGS=$CFLAGS
5900 _isl_saved_LDFLAGS=$LDFLAGS
5901 _isl_saved_LIBS=$LIBS
5902
5903 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5904 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5905 LIBS="${_isl_saved_LIBS} -lisl"
5906
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.12 of ISL" >&5
5908$as_echo_n "checking for version 0.12 of ISL... " >&6; }
5909 if test "$cross_compiling" = yes; then :
5910 gcc_cv_isl=yes
5911else
5912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913/* end confdefs.h. */
5914#include <isl/version.h>
5915 #include <string.h>
5916int
5917main ()
5918{
5919if (strncmp (isl_version (), "isl-0.12", strlen ("isl-0.12")) != 0)
5920 return 1;
5921
5922 ;
5923 return 0;
5924}
5925_ACEOF
5926if ac_fn_c_try_run "$LINENO"; then :
5927 gcc_cv_isl=yes
5928else
5929 gcc_cv_isl=no
5930fi
5931rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5932 conftest.$ac_objext conftest.beam conftest.$ac_ext
5933fi
5934
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5936$as_echo "$gcc_cv_isl" >&6; }
5937
5938 CFLAGS=$_isl_saved_CFLAGS
5939 LDFLAGS=$_isl_saved_LDFLAGS
5940 LIBS=$_isl_saved_LIBS
5941 fi
5942
5943
f8bf9252 5944
f8bf9252 5945
33ad93b9
RG
5946
5947
33ad93b9
RG
5948 if test "x${with_isl}" = xno; then
5949 graphite_requested=no
5950 elif test "x${with_isl}" != x \
5951 || test "x${with_isl_include}" != x \
5952 || test "x${with_isl_lib}" != x ; then
5953 graphite_requested=yes
5954 else
5955 graphite_requested=no
7d32a440 5956 fi
d789184e 5957
d789184e
SP
5958
5959
33ad93b9
RG
5960 if test "${gcc_cv_isl}" = no ; then
5961 isllibs=
5962 islinc=
5963 fi
5964
5965 if test "${graphite_requested}" = yes \
5966 && test "x${isllibs}" = x \
5967 && test "x${islinc}" = x ; then
f8bf9252 5968
33ad93b9
RG
5969 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
5970 fi
f8bf9252 5971
d32ef397 5972
d789184e 5973
625afa23
RG
5974 if test "x$gcc_cv_isl" != "xno"; then
5975 # Check for CLOOG
5213506e 5976
d789184e 5977
9965e3cd 5978# Check whether --with-cloog-include was given.
5213506e
RW
5979if test "${with_cloog_include+set}" = set; then :
5980 withval=$with_cloog_include;
5981fi
d789184e 5982
d789184e 5983
9965e3cd 5984# Check whether --with-cloog-lib was given.
5213506e
RW
5985if test "${with_cloog_lib+set}" = set; then :
5986 withval=$with_cloog_lib;
5987fi
d789184e 5988
d789184e 5989
d32ef397
AS
5990 # Check whether --enable-cloog-version-check was given.
5991if test "${enable_cloog_version_check+set}" = set; then :
5992 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5993else
5994 ENABLE_CLOOG_CHECK=yes
5995fi
5996
5997
5998 # Initialize clooglibs and clooginc.
5999 case $with_cloog in
6000 no)
6001 clooglibs=
6002 clooginc=
6003 ;;
6004 "" | yes)
6005 ;;
6006 *)
6007 clooglibs="-L$with_cloog/lib"
6008 clooginc="-I$with_cloog/include"
6009 ;;
6010 esac
6011 if test "x${with_cloog_include}" != x ; then
6012 clooginc="-I$with_cloog_include"
6013 fi
6014 if test "x${with_cloog_lib}" != x; then
6015 clooglibs="-L$with_cloog_lib"
6016 fi
2869f0ff 6017 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
33ad93b9 6018 && test -d ${srcdir}/cloog; then
33ad93b9 6019 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
c41f1c42 6020 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include'
2869f0ff
RB
6021 ENABLE_CLOOG_CHECK=no
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree CLooG, disabling version check" >&5
6023$as_echo "$as_me: WARNING: using in-tree CLooG, disabling version check" >&2;}
ab4173cf 6024 fi
ad0abd3c 6025
33ad93b9 6026 clooginc="-DCLOOG_INT_GMP ${clooginc}"
eae1a5d4 6027 clooglibs="${clooglibs} -lcloog-isl"
d32ef397
AS
6028
6029
6030
6031
6032
6033 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6034 _cloog_saved_CFLAGS=$CFLAGS
6035 _cloog_saved_LDFLAGS=$LDFLAGS
6036
33ad93b9
RG
6037 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6038 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
d32ef397 6039
09611faf
RG
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.18.1 of CLooG" >&5
6041$as_echo_n "checking for version 0.18.1 of CLooG... " >&6; }
2869f0ff 6042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0ad394c
RB
6043/* end confdefs.h. */
6044#include "cloog/version.h"
6045int
6046main ()
6047{
6048#if CLOOG_VERSION_MAJOR != 0 \
6049 || CLOOG_VERSION_MINOR != 18 \
09611faf 6050 || CLOOG_VERSION_REVISION < 1
d0ad394c
RB
6051 choke me
6052 #endif
6053 ;
6054 return 0;
6055}
6056_ACEOF
6057if ac_fn_c_try_compile "$LINENO"; then :
6058 gcc_cv_cloog=yes
6059else
6060 gcc_cv_cloog=no
6061fi
6062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2869f0ff 6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
d0ad394c
RB
6064$as_echo "$gcc_cv_cloog" >&6; }
6065
6066 CFLAGS=$_cloog_saved_CFLAGS
6067 LDFLAGS=$_cloog_saved_LDFLAGS
6068 fi
6069
6070
f8bf9252
SP
6071
6072
d32ef397
AS
6073
6074
6075
6be7b668
JJ
6076 if test "x${with_cloog}" = xno; then
6077 graphite_requested=no
6078 elif test "x${with_cloog}" != x \
d32ef397
AS
6079 || test "x${with_cloog_include}" != x \
6080 || test "x${with_cloog_lib}" != x ; then
6081 graphite_requested=yes
6082 else
6083 graphite_requested=no
6084 fi
6085
6086
6087
6886e444 6088 if test "${gcc_cv_cloog}" = no ; then
d32ef397
AS
6089 clooglibs=
6090 clooginc=
6091 fi
6092
6093 if test "${graphite_requested}" = yes \
6094 && test "x${clooglibs}" = x \
6095 && test "x${clooginc}" = x ; then
6096
625afa23 6097 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
d32ef397
AS
6098 fi
6099
6100
625afa23 6101 fi
d32ef397
AS
6102fi
6103
eae1a5d4
RG
6104# If the ISL check failed, disable builds of in-tree
6105# variants of both ISL and CLooG
625afa23 6106if test "x$with_isl" = xno ||
625afa23 6107 test "x$gcc_cv_isl" = xno; then
32d024bf 6108 noconfigdirs="$noconfigdirs cloog isl"
625afa23
RG
6109 islinc=
6110 clooginc=
6111 clooglibs=
32d024bf
RG
6112fi
6113
eae1a5d4
RG
6114# If the CLooG check failed, disable builds of in-tree
6115# variants of CLooG
6116if test "x$with_cloog" = xno ||
6117 test "x$gcc_cv_cloog" = xno; then
6118 noconfigdirs="$noconfigdirs cloog isl"
6119 clooginc=
6120 clooglibs=
6121fi
6122
625afa23
RG
6123
6124
6125
6126
6127
d7f09764
DN
6128# Check for LTO support.
6129# Check whether --enable-lto was given.
6130if test "${enable_lto+set}" = set; then :
6131 enableval=$enable_lto; enable_lto=$enableval
6132else
6133 enable_lto=yes; default_enable_lto=yes
6134fi
6135
6136
7413962d 6137
9a02962b
DK
6138
6139
6140target_elf=no
6141case $target in
6142 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 6143 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
9a02962b
DK
6144 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6145 target_elf=no
6146 ;;
6147 *)
6148 target_elf=yes
6149 ;;
6150esac
6151
6152if test $target_elf = yes; then :
48215350
DK
6153 # ELF platforms build the lto-plugin always.
6154 build_lto_plugin=yes
9a02962b 6155
9a02962b
DK
6156else
6157 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 6158 case $target in
2cd815e7 6159 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
48215350 6160 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
6161 *) enable_lto=no ;;
6162 esac
9a02962b 6163 else
db50fe7d
IS
6164 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6165 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
6166 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6167 # warn during gcc/ subconfigure; unless you're bootstrapping with
6168 # -flto it won't be needed until after installation anyway.
6169 case $target in
1cd0b716 6170 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
9a02962b
DK
6171 *) if test x"$enable_lto" = x"yes"; then
6172 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6173 fi
6174 ;;
6175 esac
6176 fi
1cd0b716 6177 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 6178 # Build it unless LTO was explicitly disabled.
1cd0b716 6179 case $target in
48215350 6180 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
6181 *) ;;
6182 esac
48215350 6183
9a02962b
DK
6184fi
6185
d7f09764 6186
45b3824d
TS
6187# Check whether --enable-linker-plugin-configure-flags was given.
6188if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6189 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6190else
6191 extra_linker_plugin_configure_flags=
6192fi
6193
6194
6195# Check whether --enable-linker-plugin-flags was given.
6196if test "${enable_linker_plugin_flags+set}" = set; then :
6197 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6198else
6199 extra_linker_plugin_flags=
6200fi
6201
6202
6203
f8bf9252 6204
0823efed 6205# By default, C and C++ are the only stage 1 languages.
e1888513 6206stage1_languages=,c,
2805b53a 6207
00020c16 6208# Target libraries that we bootstrap.
ad1e5170 6209bootstrap_target_libs=,target-libgcc,
00020c16 6210
55ffb5ed
NN
6211# Figure out what language subdirectories are present.
6212# Look if the user specified --enable-languages="..."; if not, use
6213# the environment variable $LANGUAGES if defined. $LANGUAGES might
6214# go away some day.
6215# NB: embedded tabs in this IF block -- do not untabify
6216if test -d ${srcdir}/gcc; then
6217 if test x"${enable_languages+set}" != xset; then
6218 if test x"${LANGUAGES+set}" = xset; then
6219 enable_languages="${LANGUAGES}"
6220 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6221 else
6222 enable_languages=all
6223 fi
6224 else
6225 if test x"${enable_languages}" = x ||
6226 test x"${enable_languages}" = xyes;
6227 then
6228 echo configure.in: --enable-languages needs at least one language argument 1>&2
6229 exit 1
6230 fi
6231 fi
6232 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6233
7f26dfa3
FXC
6234 # 'f95' is the old name for the 'fortran' language. We issue a warning
6235 # and make the substitution.
6236 case ,${enable_languages}, in
6237 *,f95,*)
6238 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6239 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6240 ;;
6241 esac
6242
0823efed
DN
6243 # If bootstrapping, C++ must be enabled.
6244 case ",$enable_languages,:$enable_bootstrap" in
6245 *,c++,*:*) ;;
6246 *:yes)
ff3ac0f4
ILT
6247 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6248 enable_languages="${enable_languages},c++"
6249 else
0823efed 6250 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
6251 fi
6252 ;;
6253 esac
6254
55ffb5ed
NN
6255 # First scan to see if an enabled language requires some other language.
6256 # We assume that a given config-lang.in will list all the language
6257 # front ends it requires, even if some are required indirectly.
6258 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6259 case ${lang_frag} in
6260 ..) ;;
6261 # The odd quoting in the next line works around
6262 # an apparent bug in bash 1.12 on linux.
6263 ${srcdir}/gcc/[*]/config-lang.in) ;;
6264 *)
69ecd18f
ILT
6265 # From the config-lang.in, get $language, $lang_requires, and
6266 # $lang_requires_boot_languages.
55ffb5ed
NN
6267 language=
6268 lang_requires=
69ecd18f 6269 lang_requires_boot_languages=
55ffb5ed 6270 . ${lang_frag}
69ecd18f 6271 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
6272 case ,${enable_languages}, in
6273 *,$other,*) ;;
6274 *,all,*) ;;
6275 *,$language,*)
6276 echo " \`$other' language required by \`$language'; enabling" 1>&2
6277 enable_languages="${enable_languages},${other}"
6278 ;;
6279 esac
6280 done
69ecd18f
ILT
6281 for other in ${lang_requires_boot_languages} ; do
6282 if test "$other" != "c"; then
6283 case ,${enable_stage1_languages}, in
6284 *,$other,*) ;;
6285 *,all,*) ;;
6286 *)
6287 case ,${enable_languages}, in
6288 *,$language,*)
6289 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6290 enable_stage1_languages="$enable_stage1_languages,${other}"
6291 ;;
6292 esac
6293 ;;
6294 esac
6295 fi
6296 done
55ffb5ed
NN
6297 ;;
6298 esac
6299 done
6300
e1888513 6301 new_enable_languages=,c,
d7f09764
DN
6302
6303 # If LTO is enabled, add the LTO front end.
6304 extra_host_libiberty_configure_flags=
6305 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6306 case ,${enable_languages}, in
6307 *,lto,*) ;;
6308 *) enable_languages="${enable_languages},lto" ;;
6309 esac
1cd0b716 6310 if test "${build_lto_plugin}" = "yes" ; then
d7f09764
DN
6311 configdirs="$configdirs lto-plugin"
6312 extra_host_libiberty_configure_flags=--enable-shared
6313 fi
6314 fi
6315
6316
55ffb5ed 6317 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6318 potential_languages=,c,
55ffb5ed 6319
4da3b0f8
ILT
6320 enabled_target_libs=
6321 disabled_target_libs=
6322
55ffb5ed
NN
6323 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6324 case ${lang_frag} in
6325 ..) ;;
6326 # The odd quoting in the next line works around
6327 # an apparent bug in bash 1.12 on linux.
6328 ${srcdir}/gcc/[*]/config-lang.in) ;;
6329 *)
1c710c3c 6330 # From the config-lang.in, get $language, $target_libs,
2805b53a 6331 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6332 language=
6333 target_libs=
6334 lang_dirs=
1546bb64 6335 subdir_requires=
e1888513
PB
6336 boot_language=no
6337 build_by_default=yes
55ffb5ed 6338 . ${lang_frag}
e1888513
PB
6339 if test x${language} = x; then
6340 echo "${lang_frag} doesn't set \$language." 1>&2
6341 exit 1
6342 fi
6343
78767fd9 6344 if test "$language" = "c++"; then
0823efed 6345 boot_language=yes
00020c16
ILT
6346 fi
6347
178f875a 6348 add_this_lang=no
e1888513
PB
6349 case ,${enable_languages}, in
6350 *,${language},*)
d4a10d0a
SB
6351 # Language was explicitly selected; include it
6352 # unless it is C, which is enabled by default.
6353 if test "$language" != "c"; then
6354 add_this_lang=yes
6355 fi
55ffb5ed 6356 ;;
e1888513
PB
6357 *,all,*)
6358 # 'all' was selected, select it if it is a default language
178f875a
JM
6359 if test "$language" != "c"; then
6360 add_this_lang=${build_by_default}
6361 fi
55ffb5ed
NN
6362 ;;
6363 esac
6de9cd9a 6364
1546bb64 6365 # Disable languages that need other directories if these aren't available.
95695ad3 6366 for i in $subdir_requires; do
b6348cb3 6367 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
6368 case ,${enable_languages}, in
6369 *,${language},*)
6370 # Specifically requested language; tell them.
5213506e 6371 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64
PB
6372 ;;
6373 *)
6374 # Silently disable.
e1888513 6375 add_this_lang=unsupported
1546bb64
PB
6376 ;;
6377 esac
6378 done
6379
e1888513
PB
6380 # Disable Ada if no preexisting GNAT is available.
6381 case ,${enable_languages},:${language}:${have_gnat} in
6382 *,${language},*:ada:no)
6383 # Specifically requested language; tell them.
5213506e 6384 as_fn_error "GNAT is required to build $language" "$LINENO" 5
e1888513
PB
6385 ;;
6386 *:ada:no)
6387 # Silently disable.
6388 add_this_lang=unsupported
6389 ;;
6390 esac
6391
4fab7234
HPN
6392 # Disable a language that is unsupported by the target.
6393 case " $unsupported_languages " in
6394 *" $language "*)
e1888513 6395 add_this_lang=unsupported
4fab7234
HPN
6396 ;;
6397 esac
6398
6de9cd9a 6399 case $add_this_lang in
e1888513 6400 unsupported)
55ffb5ed 6401 # Remove language-dependent dirs.
4da3b0f8
ILT
6402 disabled_target_libs="$disabled_target_libs $target_libs"
6403 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 6404 ;;
e1888513
PB
6405 no)
6406 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
6407 disabled_target_libs="$disabled_target_libs $target_libs"
6408 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
6409 potential_languages="${potential_languages}${language},"
6410 ;;
6411 yes)
6412 new_enable_languages="${new_enable_languages}${language},"
6413 potential_languages="${potential_languages}${language},"
2805b53a 6414 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 6415 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
6416 case "${boot_language}:,$enable_stage1_languages," in
6417 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6418 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6419 case ",$stage1_languages," in
6420 *,$language,* | ,yes, | ,all,) ;;
6421 *) stage1_languages="${stage1_languages}${language}," ;;
6422 esac
00020c16
ILT
6423 # We need to bootstrap any supporting libraries.
6424 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6425 ;;
6426 esac
6427 ;;
55ffb5ed
NN
6428 esac
6429 ;;
6430 esac
6431 done
6432
4da3b0f8
ILT
6433 # Add target libraries which are only needed for disabled languages
6434 # to noconfigdirs.
6435 if test -n "$disabled_target_libs"; then
6436 for dir in $disabled_target_libs; do
6437 case " $enabled_target_libs " in
6438 *" ${dir} "*) ;;
6439 *) noconfigdirs="$noconfigdirs $dir" ;;
6440 esac
6441 done
6442 fi
6443
5213506e
RW
6444 # Check whether --enable-stage1-languages was given.
6445if test "${enable_stage1_languages+set}" = set; then :
6446 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6447 ,no,|,,)
6448 # Set it to something that will have no effect in the loop below
6449 enable_stage1_languages=c ;;
6450 ,yes,)
6451 enable_stage1_languages=`echo $new_enable_languages | \
6452 sed -e "s/^,//" -e "s/,$//" ` ;;
6453 *,all,*)
6454 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6455 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6456 esac
6457
6458 # Add "good" languages from enable_stage1_languages to stage1_languages,
6459 # while "bad" languages go in missing_languages. Leave no duplicates.
6460 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6461 case $potential_languages in
6462 *,$i,*)
6463 case $stage1_languages in
6464 *,$i,*) ;;
6465 *) stage1_languages="$stage1_languages$i," ;;
6466 esac ;;
6467 *)
6468 case $missing_languages in
6469 *,$i,*) ;;
6470 *) missing_languages="$missing_languages$i," ;;
6471 esac ;;
6472 esac
6473 done
5213506e
RW
6474fi
6475
e1888513
PB
6476
6477 # Remove leading/trailing commas that were added for simplicity
6478 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6479 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6480 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6481 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6482
55ffb5ed 6483 if test "x$missing_languages" != x; then
5213506e 6484 as_fn_error "
0cf085e4 6485The following requested languages could not be built: ${missing_languages}
5213506e 6486Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6487 fi
55ffb5ed
NN
6488 if test "x$new_enable_languages" != "x$enable_languages"; then
6489 echo The following languages will be built: ${new_enable_languages}
e1888513 6490 enable_languages="$new_enable_languages"
55ffb5ed 6491 fi
e1888513 6492
1c710c3c 6493
b2eaac4a 6494 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6495fi
6496
27079765
AH
6497# Handle --disable-<component> generically.
6498for dir in $configdirs $build_configdirs $target_configdirs ; do
6499 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6500 varname=`echo $dirname | sed -e s/+/_/g`
6501 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6502 noconfigdirs="$noconfigdirs $dir"
6503 fi
6504done
6505
7cd0cf9c 6506# Check for Boehm's garbage collector
5213506e
RW
6507# Check whether --enable-objc-gc was given.
6508if test "${enable_objc_gc+set}" = set; then :
6509 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 6510 *,objc,*:*:yes:*target-boehm-gc*)
5213506e 6511 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
7cd0cf9c
DA
6512 ;;
6513esac
5213506e
RW
6514fi
6515
7cd0cf9c
DA
6516
6517# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
6518case ,${enable_languages},:${enable_objc_gc} in
6519 *,objc,*:yes)
7cd0cf9c
DA
6520 # Keep target-boehm-gc if requested for Objective-C.
6521 ;;
7cd0cf9c 6522 *)
2a79fd67
DA
6523 # Otherwise remove target-boehm-gc depending on target-libjava.
6524 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6525 noconfigdirs="$noconfigdirs target-boehm-gc"
6526 fi
7cd0cf9c
DA
6527 ;;
6528esac
6529
1007a55c 6530# Disable libcilkrts, libitm, libsanitizer, libvtv if we're not building C++
99776ebd 6531case ,${enable_languages}, in
1007a55c
JW
6532 *,c++,*)
6533 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6534 case "${noconfigdirs}" in
6535 *target-libstdc++-v3*)
6536 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6537 ;;
6538 *) ;;
6539 esac
6540 ;;
99776ebd 6541 *)
186bc287 6542 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer target-libvtv"
99776ebd
RH
6543 ;;
6544esac
6545
ee6a22df
L
6546# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6547# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6548# If we have the source for $noconfigdirs entries, add them to $notsupp.
6549
6550notsupp=""
6551for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6552 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6553 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6554 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6555 if test -r $srcdir/$dirname/configure ; then
6556 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6557 true
6558 else
6559 notsupp="$notsupp $dir"
6560 fi
6561 fi
6562 fi
ee6a22df
L
6563 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6564 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6565 if test -r $srcdir/$dirname/configure ; then
6566 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6567 true
6568 else
6569 notsupp="$notsupp $dir"
6570 fi
6571 fi
6572 fi
55ffb5ed
NN
6573 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6574 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6575 if test -r $srcdir/$dirname/configure ; then
6576 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6577 true
6578 else
6579 notsupp="$notsupp $dir"
6580 fi
6581 fi
6582 fi
6583done
6584
55ffb5ed
NN
6585# Quietly strip out all directories which aren't configurable in this tree.
6586# This relies on all configurable subdirectories being autoconfiscated, which
6587# is now the case.
23f6b2f9
PB
6588build_configdirs_all="$build_configdirs"
6589build_configdirs=
6590for i in ${build_configdirs_all} ; do
1c710c3c 6591 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
6592 if test -f ${srcdir}/$j/configure ; then
6593 build_configdirs="${build_configdirs} $i"
6594 fi
6595done
6596
55ffb5ed
NN
6597configdirs_all="$configdirs"
6598configdirs=
6599for i in ${configdirs_all} ; do
6600 if test -f ${srcdir}/$i/configure ; then
6601 configdirs="${configdirs} $i"
6602 fi
6603done
23f6b2f9 6604
55ffb5ed
NN
6605target_configdirs_all="$target_configdirs"
6606target_configdirs=
6607for i in ${target_configdirs_all} ; do
1c710c3c 6608 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
6609 if test -f ${srcdir}/$j/configure ; then
6610 target_configdirs="${target_configdirs} $i"
6611 fi
6612done
6613
45b3824d
TS
6614# libiberty-linker-plugin is special: it doesn't have its own source directory,
6615# so we have to add it after the preceding checks.
6616if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6617then
6618 case " $configdirs " in
6619 *" libiberty "*)
6620 # If we can build libiberty, we can also build libiberty-linker-plugin.
6621 configdirs="$configdirs libiberty-linker-plugin"
6622 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6623 --with-libiberty=../libiberty-linker-plugin";;
6624 *)
6625 as_fn_error "libiberty missing" "$LINENO" 5;;
6626 esac
6627fi
6628
55ffb5ed
NN
6629# Produce a warning message for the subdirs we can't configure.
6630# This isn't especially interesting in the Cygnus tree, but in the individual
6631# FSF releases, it's important to let people know when their machine isn't
6632# supported by the one or two programs in a package.
6633
6634if test -n "${notsupp}" && test -z "${norecursion}" ; then
6635 # If $appdirs is non-empty, at least one of those directories must still
6636 # be configured, or we error out. (E.g., if the gas release supports a
6637 # specified target in some subdirs but not the gas subdir, we shouldn't
6638 # pretend that all is well.)
6639 if test -n "$appdirs" ; then
6640 for dir in $appdirs ; do
6641 if test -r $dir/Makefile.in ; then
6642 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6643 appdirs=""
6644 break
6645 fi
23f6b2f9 6646 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
6647 appdirs=""
6648 break
6649 fi
6650 fi
6651 done
6652 if test -n "$appdirs" ; then
6653 echo "*** This configuration is not supported by this package." 1>&2
6654 exit 1
6655 fi
6656 fi
6657 # Okay, some application will build, or we don't care to check. Still
6658 # notify of subdirs not getting built.
6659 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6660 echo " ${notsupp}" 1>&2
6661 echo " (Any other directories should still work fine.)" 1>&2
6662fi
6663
6664case "$host" in
6665 *msdosdjgpp*)
6666 enable_gdbtk=no ;;
6667esac
6668
c3a86da9
DJ
6669# To find our prefix, in gcc_cv_tool_prefix.
6670
6671# The user is always right.
6672if test "${PATH_SEPARATOR+set}" != set; then
6673 echo "#! /bin/sh" >conf$$.sh
6674 echo "exit 0" >>conf$$.sh
6675 chmod +x conf$$.sh
6676 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6677 PATH_SEPARATOR=';'
6678 else
6679 PATH_SEPARATOR=:
6680 fi
6681 rm -f conf$$.sh
6682fi
6683
6684
6685
6686if test "x$exec_prefix" = xNONE; then
6687 if test "x$prefix" = xNONE; then
6688 gcc_cv_tool_prefix=$ac_default_prefix
6689 else
6690 gcc_cv_tool_prefix=$prefix
6691 fi
6692else
6693 gcc_cv_tool_prefix=$exec_prefix
6694fi
6695
6696# If there is no compiler in the tree, use the PATH only. In any
6697# case, if there is no compiler in the tree nobody should use
6698# AS_FOR_TARGET and LD_FOR_TARGET.
6699if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6700 gcc_version=`cat $srcdir/gcc/BASE-VER`
6701 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6702 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6703 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6704 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6705 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6706 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6707else
6708 gcc_cv_tool_dirs=
6709fi
6710
6711if test x$build = x$target && test -n "$md_exec_prefix"; then
6712 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6713fi
6714
6715
6716
55ffb5ed
NN
6717copy_dirs=
6718
1c710c3c 6719
5213506e
RW
6720# Check whether --with-build-sysroot was given.
6721if test "${with_build_sysroot+set}" = set; then :
6722 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
6723 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6724 fi
6725else
6726 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 6727fi
526635cb
MM
6728
6729
c8aea42c 6730
5213506e
RW
6731
6732# Check whether --with-debug-prefix-map was given.
6733if test "${with_debug_prefix_map+set}" = set; then :
6734 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
6735 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6736 for debug_map in $withval; do
6737 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6738 done
6739 fi
6740else
6741 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
6742fi
6743
c8aea42c
PB
6744
6745
1c8bd6a3
PB
6746# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6747# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6748# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6749# We want to ensure that TARGET libraries (which we know are built with
6750# gcc) are built with "-O2 -g", so include those options when setting
6751# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6752if test "x$CFLAGS_FOR_TARGET" = x; then
6753 CFLAGS_FOR_TARGET=$CFLAGS
6754 case " $CFLAGS " in
6755 *" -O2 "*) ;;
bd8e704f 6756 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6757 esac
6758 case " $CFLAGS " in
6759 *" -g "* | *" -g3 "*) ;;
bd8e704f 6760 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6761 esac
6762fi
6763
6764
6765if test "x$CXXFLAGS_FOR_TARGET" = x; then
6766 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6767 case " $CXXFLAGS " in
6768 *" -O2 "*) ;;
bd8e704f 6769 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6770 esac
6771 case " $CXXFLAGS " in
6772 *" -g "* | *" -g3 "*) ;;
bd8e704f 6773 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6774 esac
6775fi
6776
6777
6f57bdf6
DK
6778
6779
55ffb5ed
NN
6780# Handle --with-headers=XXX. If the value is not "yes", the contents of
6781# the named directory are copied to $(tooldir)/sys-include.
6782if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6783 if test x${is_cross_compiler} = xno ; then
6784 echo 1>&2 '***' --with-headers is only supported when cross compiling
6785 exit 1
6786 fi
6787 if test x"${with_headers}" != xyes ; then
c3a86da9 6788 x=${gcc_cv_tool_prefix}
1c710c3c 6789 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
6790 fi
6791fi
6792
6793# Handle --with-libs=XXX. If the value is not "yes", the contents of
6794# the name directories are copied to $(tooldir)/lib. Multiple directories
6795# are permitted.
6796if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6797 if test x${is_cross_compiler} = xno ; then
6798 echo 1>&2 '***' --with-libs is only supported when cross compiling
6799 exit 1
6800 fi
6801 if test x"${with_libs}" != xyes ; then
6802 # Copy the libraries in reverse order, so that files in the first named
6803 # library override files in subsequent libraries.
c3a86da9 6804 x=${gcc_cv_tool_prefix}
55ffb5ed 6805 for l in ${with_libs}; do
1c710c3c 6806 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
6807 done
6808 fi
6809fi
6810
d7f09764 6811# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
6812#
6813# This is done by determining whether or not the appropriate directory
6814# is available, and by checking whether or not specific configurations
6815# have requested that this magic not happen.
1c710c3c
DJ
6816#
6817# The command line options always override the explicit settings in
e8b05380
PB
6818# configure.in, and the settings in configure.in override this magic.
6819#
1c710c3c 6820# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 6821# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
6822# --without-gnu-ld options for the configure script. Similarly, if
6823# the default is to use the included zlib and you don't want to do that,
6824# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
6825
6826if test x${use_gnu_as} = x &&
6827 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6828 with_gnu_as=yes
6829 extra_host_args="$extra_host_args --with-gnu-as"
6830fi
6831
6832if test x${use_gnu_ld} = x &&
5afab7ad 6833 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
6834 with_gnu_ld=yes
6835 extra_host_args="$extra_host_args --with-gnu-ld"
6836fi
6837
d7f09764
DN
6838if test x${use_included_zlib} = x &&
6839 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6840 :
6841else
6842 with_system_zlib=yes
6843 extra_host_args="$extra_host_args --with-system-zlib"
6844fi
6845
e8b05380
PB
6846# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6847# can detect this case.
6848
6849if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6850 with_newlib=yes
6851 extra_host_args="$extra_host_args --with-newlib"
6852fi
6853
55ffb5ed
NN
6854# Handle ${copy_dirs}
6855set fnord ${copy_dirs}
6856shift
6857while test $# != 0 ; do
6858 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6859 :
6860 else
6861 echo Copying $1 to $2
6862
6863 # Use the install script to create the directory and all required
6864 # parent directories.
6865 if test -d $2 ; then
6866 :
6867 else
6868 echo >config.temp
6869 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6870 fi
6871
6872 # Copy the directory, assuming we have tar.
6873 # FIXME: Should we use B in the second tar? Not all systems support it.
6874 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6875
6876 # It is the responsibility of the user to correctly adjust all
6877 # symlinks. If somebody can figure out how to handle them correctly
6878 # here, feel free to add the code.
6879
6880 echo $1 > $2/COPIED
6881 fi
6882 shift; shift
6883done
6884
e8b05380
PB
6885# Determine a target-dependent exec_prefix that the installed
6886# gcc will search in. Keep this list sorted by triplet, with
6887# the *-*-osname triplets last.
6888md_exec_prefix=
6889case "${target}" in
30b74385 6890 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
6891 md_exec_prefix=/dev/env/DJDIR/bin
6892 ;;
e8b05380 6893 *-*-hpux* | \
e8b05380 6894 *-*-nto-qnx* | \
6de66370 6895 *-*-solaris2*)
e8b05380
PB
6896 md_exec_prefix=/usr/ccs/bin
6897 ;;
6898esac
6899
671aa708
NN
6900extra_arflags_for_target=
6901extra_nmflags_for_target=
6902extra_ranlibflags_for_target=
6903target_makefile_frag=/dev/null
6904case "${target}" in
58e24147
AM
6905 spu-*-*)
6906 target_makefile_frag="config/mt-spu"
6907 ;;
d91491e5 6908 mips*-sde-elf* | mips*-mti-elf*)
4bf6c438
RS
6909 target_makefile_frag="config/mt-sde"
6910 ;;
1ec3b87b
RS
6911 mipsisa*-*-elfoabi*)
6912 target_makefile_frag="config/mt-mips-elfoabi"
6913 ;;
08d0963a
RS
6914 mips*-*-*linux* | mips*-*-gnu*)
6915 target_makefile_frag="config/mt-mips-gnu"
6916 ;;
707f1839
SL
6917 nios2-*-elf*)
6918 target_makefile_frag="config/mt-nios2-elf"
6919 ;;
416ac4d4 6920 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 6921 target_makefile_frag="config/mt-gnu"
671aa708
NN
6922 ;;
6923 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 6924 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
6925 # commands to handle both 32-bit and 64-bit objects. These flags are
6926 # harmless if we're using GNU nm or ar.
6927 extra_arflags_for_target=" -X32_64"
6928 extra_nmflags_for_target=" -B -X32_64"
6929 ;;
671aa708
NN
6930esac
6931
6932alphaieee_frag=/dev/null
6933case $target in
6934 alpha*-*-*)
6935 # This just makes sure to use the -mieee option to build target libs.
6936 # This should probably be set individually by each library.
6937 alphaieee_frag="config/mt-alphaieee"
6938 ;;
6939esac
6940
6941# If --enable-target-optspace always use -Os instead of -O2 to build
6942# the target libraries, similarly if it is not specified, use -Os
6943# on selected platforms.
6944ospace_frag=/dev/null
6945case "${enable_target_optspace}:${target}" in
6946 yes:*)
6947 ospace_frag="config/mt-ospace"
6948 ;;
6949 :d30v-*)
6950 ospace_frag="config/mt-d30v"
6951 ;;
6952 :m32r-* | :d10v-* | :fr30-*)
6953 ospace_frag="config/mt-ospace"
6954 ;;
6955 no:* | :*)
6956 ;;
6957 *)
6958 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6959 ;;
6960esac
6961
671aa708
NN
6962# Some systems (e.g., one of the i386-aix systems the gas testers are
6963# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 6964tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
6965build_tooldir=${tooldir}
6966
671aa708
NN
6967# Create a .gdbinit file which runs the one in srcdir
6968# and tells GDB to look there for source files.
6969
6970if test -r ${srcdir}/.gdbinit ; then
6971 case ${srcdir} in
6972 .) ;;
6973 *) cat > ./.gdbinit <<EOF
6974# ${NO_EDIT}
6975dir ${srcdir}
6976dir .
6977source ${srcdir}/.gdbinit
6978EOF
6979 ;;
6980 esac
6981fi
6982
671aa708
NN
6983# Make sure that the compiler is able to generate an executable. If it
6984# can't, we are probably in trouble. We don't care whether we can run the
6985# executable--we might be using a cross compiler--we only care whether it
6986# can be created. At this point the main configure script has set CC.
6987we_are_ok=no
6988echo "int main () { return 0; }" > conftest.c
6989${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6990if test $? = 0 ; then
6991 if test -s conftest || test -s conftest.exe ; then
6992 we_are_ok=yes
6993 fi
1c710c3c 6994fi
671aa708
NN
6995case $we_are_ok in
6996 no)
6997 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6998 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6999 rm -f conftest*
7000 exit 1
7001 ;;
7002esac
7003rm -f conftest*
7004
d89f0ad6 7005# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
7006case "${host}" in
7007 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 7008 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 7009 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
7010 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7011esac
7012
d89f0ad6
AL
7013# On systems where the dynamic library environment variable is PATH,
7014# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7015# built executables to PATH.
7016if test "$RPATH_ENVVAR" = PATH; then
7017 GCC_SHLIB_SUBDIR=/shlib
7018else
7019 GCC_SHLIB_SUBDIR=
7020fi
7021
beeda1d9
JJ
7022# Adjust the toplevel makefile according to whether bootstrap was selected.
7023case $enable_bootstrap in
7024 yes)
7025 bootstrap_suffix=bootstrap
7026 BUILD_CONFIG=bootstrap-debug
7027 ;;
7028 no)
7029 bootstrap_suffix=no-bootstrap
7030 BUILD_CONFIG=
7031 ;;
7032esac
7033
7034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7035$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7036
7037
7038# Check whether --with-build-config was given.
7039if test "${with_build_config+set}" = set; then :
7040 withval=$with_build_config; case $with_build_config in
7041 yes) with_build_config= ;;
7042 no) with_build_config= BUILD_CONFIG= ;;
7043 esac
7044fi
7045
7046
7047if test "x${with_build_config}" != x; then
7048 BUILD_CONFIG=$with_build_config
7049else
7050 case $BUILD_CONFIG in
7051 bootstrap-debug)
7052 if echo "int f (void) { return 0; }" > conftest.c &&
7053 ${CC} -c conftest.c &&
7054 mv conftest.o conftest.o.g0 &&
7055 ${CC} -c -g conftest.c &&
7056 mv conftest.o conftest.o.g &&
7057 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7058 :
7059 else
7060 BUILD_CONFIG=
7061 fi
7062 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7063 ;;
7064 esac
7065fi
7066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7067$as_echo "$BUILD_CONFIG" >&6; }
7068
7069
7070# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7072$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7073# Check whether --enable-vtable-verify was given.
7074if test "${enable_vtable_verify+set}" = set; then :
7075 enableval=$enable_vtable_verify; case "$enableval" in
7076 yes) enable_vtable_verify=yes ;;
7077 no) enable_vtable_verify=no ;;
7078 *) enable_vtable_verify=no;;
7079 esac
7080else
7081 enable_vtable_verify=no
7082fi
7083
7084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7085$as_echo "$enable_vtable_verify" >&6; }
7086
671aa708
NN
7087# Record target_configdirs and the configure arguments for target and
7088# build configuration in Makefile.
7089target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 7090build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9e1c8fc1 7091bootstrap_fixincludes=no
671aa708 7092
ad1e5170
JR
7093# If we are building libgomp, bootstrap it.
7094if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7095 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7096fi
7097
beeda1d9
JJ
7098# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7099# or bootstrap-ubsan, bootstrap it.
7100if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7101 case "$BUILD_CONFIG" in
7102 *bootstrap-asan* | *bootstrap-ubsan* )
7103 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9e1c8fc1 7104 bootstrap_fixincludes=yes
beeda1d9
JJ
7105 ;;
7106 esac
ac8701fe
L
7107fi
7108
beeda1d9
JJ
7109# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7110if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7111 test "$enable_vtable_verify" != no; then
2077db1b
CT
7112 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7113fi
7114
671aa708
NN
7115# Determine whether gdb needs tk/tcl or not.
7116# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7117# and in that case we want gdb to be built without tk. Ugh!
7118# In fact I believe gdb is the *only* package directly dependent on tk,
7119# so we should be able to put the 'maybe's in unconditionally and
7120# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7121# 100% sure that that's safe though.
e914a571 7122
b4f96efe 7123gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
7124case "$enable_gdbtk" in
7125 no)
7126 GDB_TK="" ;;
e914a571
AC
7127 yes)
7128 GDB_TK="${gdb_tk}" ;;
671aa708 7129 *)
e914a571
AC
7130 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7131 # distro. Eventually someone will fix this and move Insight, nee
7132 # gdbtk to a separate directory.
7133 if test -d ${srcdir}/gdb/gdbtk ; then
7134 GDB_TK="${gdb_tk}"
7135 else
7136 GDB_TK=""
7137 fi
7138 ;;
671aa708 7139esac
ef9db8d5
DJ
7140CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7141INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 7142
60975492 7143# Strip out unwanted targets.
8b87bb96
NN
7144
7145# While at that, we remove Makefiles if we were started for recursive
7146# configuration, so that the top-level Makefile reconfigures them,
7147# like we used to do when configure itself was recursive.
8b87bb96 7148
3e54529c
RW
7149# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7150# but now we're fixing up the Makefile ourselves with the additional
7151# commands passed to AC_CONFIG_FILES. Use separate variables
7152# extrasub-{build,host,target} not because there is any reason to split
7153# the substitutions up that way, but only to remain below the limit of
7154# 99 commands in a script, for HP-UX sed.
7155# Do not nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 7156
79cd2b23
RW
7157case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7158 yes:yes:*\ gold\ *:*,c++,*) ;;
7159 yes:yes:*\ gold\ *:*)
7160 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7161 ;;
7162esac
7163
3e54529c 7164extrasub_build=
23f6b2f9 7165for module in ${build_configdirs} ; do
5607edfd
PB
7166 if test -z "${no_recursion}" \
7167 && test -f ${build_subdir}/${module}/Makefile; then
7168 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7169 rm -f ${build_subdir}/${module}/Makefile
7170 fi
3e54529c 7171 extrasub_build="$extrasub_build
5607edfd
PB
7172/^@if build-$module\$/d
7173/^@endif build-$module\$/d
7174/^@if build-$module-$bootstrap_suffix\$/d
7175/^@endif build-$module-$bootstrap_suffix\$/d"
7176done
3e54529c 7177extrasub_host=
5607edfd 7178for module in ${configdirs} ; do
a6fbc1e2 7179 if test -z "${no_recursion}"; then
f063a9ed 7180 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
7181 if test -f ${file}; then
7182 echo 1>&2 "*** removing ${file} to force reconfigure"
7183 rm -f ${file}
7184 fi
7185 done
5607edfd 7186 fi
9e1c8fc1
JJ
7187 case ${module},${bootstrap_fixincludes} in
7188 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7189 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7190 esac
3e54529c 7191 extrasub_host="$extrasub_host
5607edfd
PB
7192/^@if $module\$/d
7193/^@endif $module\$/d
9e1c8fc1
JJ
7194/^@if $module-$host_bootstrap_suffix\$/d
7195/^@endif $module-$host_bootstrap_suffix\$/d"
5607edfd 7196done
3e54529c 7197extrasub_target=
5607edfd
PB
7198for module in ${target_configdirs} ; do
7199 if test -z "${no_recursion}" \
7200 && test -f ${target_subdir}/${module}/Makefile; then
7201 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7202 rm -f ${target_subdir}/${module}/Makefile
7203 fi
00020c16
ILT
7204
7205 # We only bootstrap target libraries listed in bootstrap_target_libs.
7206 case $bootstrap_target_libs in
7207 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7208 *) target_bootstrap_suffix=no-bootstrap ;;
7209 esac
7210
3e54529c 7211 extrasub_target="$extrasub_target
5607edfd
PB
7212/^@if target-$module\$/d
7213/^@endif target-$module\$/d
00020c16
ILT
7214/^@if target-$module-$target_bootstrap_suffix\$/d
7215/^@endif target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
7216done
7217
3e54529c
RW
7218# Do the final fixup along with target modules.
7219extrasub_target="$extrasub_target
60975492 7220/^@if /,/^@endif /d"
671aa708
NN
7221
7222# Create the serialization dependencies. This uses a temporary file.
7223
5213506e
RW
7224# Check whether --enable-serial-configure was given.
7225if test "${enable_serial_configure+set}" = set; then :
7226 enableval=$enable_serial_configure;
7227fi
ade82b16
AO
7228
7229
bf1d3e81
NN
7230case ${enable_serial_configure} in
7231 yes)
7232 enable_serial_build_configure=yes
7233 enable_serial_host_configure=yes
7234 enable_serial_target_configure=yes
7235 ;;
7236esac
7237
671aa708
NN
7238# These force 'configure's to be done one at a time, to avoid problems
7239# with contention over a shared config.cache.
7240rm -f serdep.tmp
ade82b16 7241echo '# serdep.tmp' > serdep.tmp
671aa708 7242olditem=
bf1d3e81 7243test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
7244for item in ${build_configdirs} ; do
7245 case ${olditem} in
7246 "") ;;
ade82b16 7247 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
7248 esac
7249 olditem=${item}
7250done
7251olditem=
bf1d3e81 7252test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
7253for item in ${configdirs} ; do
7254 case ${olditem} in
7255 "") ;;
ade82b16 7256 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
7257 esac
7258 olditem=${item}
7259done
7260olditem=
bf1d3e81 7261test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
7262for item in ${target_configdirs} ; do
7263 case ${olditem} in
7264 "") ;;
ade82b16 7265 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
7266 esac
7267 olditem=${item}
7268done
7269serialization_dependencies=serdep.tmp
7270
7271
ade82b16 7272# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 7273# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
7274# might not want to pass down to subconfigures. The exception being
7275# --cache-file=/dev/null, which is used to turn off the use of cache
7276# files altogether, and which should be passed on to subconfigures.
7277# Also strip program-prefix, program-suffix, and program-transform-name,
7278# so that we can pass down a consistent program-transform-name.
1c710c3c 7279baseargs=
29a63921 7280tbaseargs=
1c710c3c
DJ
7281keep_next=no
7282skip_next=no
7283eval "set -- $ac_configure_args"
44bfc3ac
DJ
7284for ac_arg
7285do
1c710c3c
DJ
7286 if test X"$skip_next" = X"yes"; then
7287 skip_next=no
7288 continue
7289 fi
7290 if test X"$keep_next" = X"yes"; then
7291 case $ac_arg in
7292 *\'*)
7293 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7294 esac
7295 baseargs="$baseargs '$ac_arg'"
29a63921 7296 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
7297 keep_next=no
7298 continue
7299 fi
7300
7301 # Handle separated arguments. Based on the logic generated by
7302 # autoconf 2.59.
7303 case $ac_arg in
7304 *=* | --config-cache | -C | -disable-* | --disable-* \
7305 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7306 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7307 | -with-* | --with-* | -without-* | --without-* | --x)
7308 separate_arg=no
7309 ;;
7310 -*)
7311 separate_arg=yes
7312 ;;
7313 *)
7314 separate_arg=no
7315 ;;
7316 esac
7317
29a63921
AO
7318 skip_targ=no
7319 case $ac_arg in
7320
7321 --with-* | --without-*)
7322 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7323
7324 case $libopt in
7325 *[-_]include)
7326 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7327 ;;
7328 *[-_]lib)
7329 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7330 ;;
7331 *)
7332 lib=$libopt
7333 ;;
7334 esac
7335
7336
7337 case $lib in
eae1a5d4 7338 mpc | mpfr | gmp | isl | cloog)
29a63921
AO
7339 # If we're processing --with-$lib, --with-$lib-include or
7340 # --with-$lib-lib, for one of the libs above, and target is
7341 # different from host, don't pass the current argument to any
7342 # target library's configure.
7343 if test x$is_cross_compiler = xyes; then
7344 skip_targ=yes
7345 fi
7346 ;;
7347 esac
7348 ;;
7349 esac
7350
1c710c3c 7351 case "$ac_arg" in
f1a036e4
NC
7352 --cache-file=/dev/null | \
7353 -cache-file=/dev/null )
7354 # Handled here to avoid the test to skip args below.
7355 baseargs="$baseargs '$ac_arg'"
29a63921 7356 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
7357 # Assert: $separate_arg should always be no.
7358 keep_next=$separate_arg
7359 ;;
1c710c3c
DJ
7360 --no*)
7361 continue
7362 ;;
7363 --c* | \
7364 --sr* | \
7365 --ho* | \
7366 --bu* | \
7367 --t* | \
7368 --program-* | \
7369 -cache_file* | \
7370 -srcdir* | \
7371 -host* | \
7372 -build* | \
7373 -target* | \
7374 -program-prefix* | \
7375 -program-suffix* | \
7376 -program-transform-name* )
7377 skip_next=$separate_arg
7378 continue
7379 ;;
7380 -*)
7381 # An option. Add it.
7382 case $ac_arg in
7383 *\'*)
7384 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7385 esac
7386 baseargs="$baseargs '$ac_arg'"
29a63921
AO
7387 if test X"$skip_targ" = Xno; then
7388 tbaseargs="$tbaseargs '$ac_arg'"
7389 fi
1c710c3c
DJ
7390 keep_next=$separate_arg
7391 ;;
7392 *)
7393 # Either a variable assignment, or a nonopt (triplet). Don't
7394 # pass it down; let the Makefile handle this.
7395 continue
7396 ;;
7397 esac
7398done
7399# Remove the initial space we just introduced and, as these will be
7400# expanded by make, quote '$'.
7401baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7402
43bb47c2
DJ
7403# Add in --program-transform-name, after --program-prefix and
7404# --program-suffix have been applied to it. Autoconf has already
7405# doubled dollar signs and backslashes in program_transform_name; we want
7406# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7407# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7408# Also, because we want to override the logic in subdir configure scripts to
7409# choose program_transform_name, replace any s,x,x, with s,y,y,.
7410sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7411${program_transform_name}
7412EOF_SED
7413gcc_transform_name=`cat conftestsed.out`
7414rm -f conftestsed.out
7415baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 7416tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7417if test "$silent" = yes; then
7418 baseargs="$baseargs --silent"
29a63921 7419 tbaseargs="$tbaseargs --silent"
d9acb717 7420fi
0115d4a3 7421baseargs="$baseargs --disable-option-checking"
29a63921 7422tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 7423
ffedf511
RW
7424# Record and document user additions to sub configure arguments.
7425
7426
7427
7428
671aa708
NN
7429# For the build-side libraries, we just need to pretend we're native,
7430# and not use the same cache file. Multilibs are neither needed nor
7431# desired.
ffedf511 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:)
7463 # Make sure we have a developement environment that handles 32-bit
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
7474 as_fn_error "I suspect your system does not have 32-bit developement libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
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
7663
2abefe3d
PB
7664# Generate default definitions for YACC, M4, LEX and other programs that run
7665# on the build machine. These are used if the Makefile can't locate these
7666# programs in objdir.
7667MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7668
7669for ac_prog in 'bison -y' byacc yacc
7670do
1c710c3c 7671 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7672set dummy $ac_prog; ac_word=$2
5213506e
RW
7673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7674$as_echo_n "checking for $ac_word... " >&6; }
7675if test "${ac_cv_prog_YACC+set}" = set; then :
7676 $as_echo_n "(cached) " >&6
2abefe3d
PB
7677else
7678 if test -n "$YACC"; then
7679 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7680else
1c710c3c
DJ
7681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682for as_dir in $PATH
7683do
7684 IFS=$as_save_IFS
7685 test -z "$as_dir" && as_dir=.
5213506e
RW
7686 for ac_exec_ext in '' $ac_executable_extensions; do
7687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7688 ac_cv_prog_YACC="$ac_prog"
5213506e 7689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7690 break 2
7691 fi
7692done
5213506e
RW
7693 done
7694IFS=$as_save_IFS
1c710c3c 7695
2abefe3d
PB
7696fi
7697fi
1c710c3c 7698YACC=$ac_cv_prog_YACC
2abefe3d 7699if test -n "$YACC"; then
5213506e
RW
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7701$as_echo "$YACC" >&6; }
2abefe3d 7702else
5213506e
RW
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7704$as_echo "no" >&6; }
2abefe3d
PB
7705fi
7706
5213506e 7707
1c710c3c 7708 test -n "$YACC" && break
2abefe3d
PB
7709done
7710test -n "$YACC" || YACC="$MISSING bison -y"
7711
7712case " $build_configdirs " in
7713 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
7714esac
7715
7716for ac_prog in bison
7717do
1c710c3c 7718 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7719set dummy $ac_prog; ac_word=$2
5213506e
RW
7720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7721$as_echo_n "checking for $ac_word... " >&6; }
7722if test "${ac_cv_prog_BISON+set}" = set; then :
7723 $as_echo_n "(cached) " >&6
2abefe3d
PB
7724else
7725 if test -n "$BISON"; then
7726 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7727else
1c710c3c
DJ
7728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729for as_dir in $PATH
7730do
7731 IFS=$as_save_IFS
7732 test -z "$as_dir" && as_dir=.
5213506e
RW
7733 for ac_exec_ext in '' $ac_executable_extensions; do
7734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7735 ac_cv_prog_BISON="$ac_prog"
5213506e 7736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7737 break 2
7738 fi
7739done
5213506e
RW
7740 done
7741IFS=$as_save_IFS
1c710c3c 7742
2abefe3d
PB
7743fi
7744fi
1c710c3c 7745BISON=$ac_cv_prog_BISON
2abefe3d 7746if test -n "$BISON"; then
5213506e
RW
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7748$as_echo "$BISON" >&6; }
2abefe3d 7749else
5213506e
RW
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7751$as_echo "no" >&6; }
2abefe3d
PB
7752fi
7753
5213506e 7754
1c710c3c 7755 test -n "$BISON" && break
2abefe3d
PB
7756done
7757test -n "$BISON" || BISON="$MISSING bison"
7758
7759case " $build_configdirs " in
7760 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7761esac
7762
7763for ac_prog in gm4 gnum4 m4
7764do
1c710c3c 7765 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7766set dummy $ac_prog; ac_word=$2
5213506e
RW
7767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7768$as_echo_n "checking for $ac_word... " >&6; }
7769if test "${ac_cv_prog_M4+set}" = set; then :
7770 $as_echo_n "(cached) " >&6
2abefe3d
PB
7771else
7772 if test -n "$M4"; then
7773 ac_cv_prog_M4="$M4" # Let the user override the test.
7774else
1c710c3c
DJ
7775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776for as_dir in $PATH
7777do
7778 IFS=$as_save_IFS
7779 test -z "$as_dir" && as_dir=.
5213506e
RW
7780 for ac_exec_ext in '' $ac_executable_extensions; do
7781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7782 ac_cv_prog_M4="$ac_prog"
5213506e 7783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7784 break 2
7785 fi
7786done
5213506e
RW
7787 done
7788IFS=$as_save_IFS
1c710c3c 7789
2abefe3d
PB
7790fi
7791fi
1c710c3c 7792M4=$ac_cv_prog_M4
2abefe3d 7793if test -n "$M4"; then
5213506e
RW
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7795$as_echo "$M4" >&6; }
2abefe3d 7796else
5213506e
RW
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798$as_echo "no" >&6; }
2abefe3d
PB
7799fi
7800
5213506e 7801
1c710c3c 7802 test -n "$M4" && break
2abefe3d
PB
7803done
7804test -n "$M4" || M4="$MISSING m4"
7805
7806case " $build_configdirs " in
7807 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7808esac
7809
7810for ac_prog in flex lex
7811do
1c710c3c 7812 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7813set dummy $ac_prog; ac_word=$2
5213506e
RW
7814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7815$as_echo_n "checking for $ac_word... " >&6; }
7816if test "${ac_cv_prog_LEX+set}" = set; then :
7817 $as_echo_n "(cached) " >&6
2abefe3d
PB
7818else
7819 if test -n "$LEX"; then
7820 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7821else
1c710c3c
DJ
7822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823for as_dir in $PATH
7824do
7825 IFS=$as_save_IFS
7826 test -z "$as_dir" && as_dir=.
5213506e
RW
7827 for ac_exec_ext in '' $ac_executable_extensions; do
7828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7829 ac_cv_prog_LEX="$ac_prog"
5213506e 7830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7831 break 2
7832 fi
7833done
5213506e
RW
7834 done
7835IFS=$as_save_IFS
1c710c3c 7836
2abefe3d
PB
7837fi
7838fi
1c710c3c 7839LEX=$ac_cv_prog_LEX
2abefe3d 7840if test -n "$LEX"; then
5213506e
RW
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7842$as_echo "$LEX" >&6; }
2abefe3d 7843else
5213506e
RW
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845$as_echo "no" >&6; }
2abefe3d
PB
7846fi
7847
5213506e 7848
1c710c3c 7849 test -n "$LEX" && break
2abefe3d
PB
7850done
7851test -n "$LEX" || LEX="$MISSING flex"
7852
7853case " $build_configdirs " in
7854 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7855 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7856esac
7857
7858for ac_prog in flex
7859do
1c710c3c 7860 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7861set dummy $ac_prog; ac_word=$2
5213506e
RW
7862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7863$as_echo_n "checking for $ac_word... " >&6; }
7864if test "${ac_cv_prog_FLEX+set}" = set; then :
7865 $as_echo_n "(cached) " >&6
2abefe3d
PB
7866else
7867 if test -n "$FLEX"; then
7868 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7869else
1c710c3c
DJ
7870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871for as_dir in $PATH
7872do
7873 IFS=$as_save_IFS
7874 test -z "$as_dir" && as_dir=.
5213506e
RW
7875 for ac_exec_ext in '' $ac_executable_extensions; do
7876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7877 ac_cv_prog_FLEX="$ac_prog"
5213506e 7878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7879 break 2
7880 fi
7881done
5213506e
RW
7882 done
7883IFS=$as_save_IFS
1c710c3c 7884
2abefe3d
PB
7885fi
7886fi
1c710c3c 7887FLEX=$ac_cv_prog_FLEX
2abefe3d 7888if test -n "$FLEX"; then
5213506e
RW
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7890$as_echo "$FLEX" >&6; }
2abefe3d 7891else
5213506e
RW
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7893$as_echo "no" >&6; }
2abefe3d
PB
7894fi
7895
5213506e 7896
1c710c3c 7897 test -n "$FLEX" && break
2abefe3d
PB
7898done
7899test -n "$FLEX" || FLEX="$MISSING flex"
7900
7901case " $build_configdirs " in
7902 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7903esac
7904
7905for ac_prog in makeinfo
7906do
1c710c3c 7907 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7908set dummy $ac_prog; ac_word=$2
5213506e
RW
7909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7910$as_echo_n "checking for $ac_word... " >&6; }
7911if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7912 $as_echo_n "(cached) " >&6
2abefe3d
PB
7913else
7914 if test -n "$MAKEINFO"; then
7915 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7916else
1c710c3c
DJ
7917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7918for as_dir in $PATH
7919do
7920 IFS=$as_save_IFS
7921 test -z "$as_dir" && as_dir=.
5213506e
RW
7922 for ac_exec_ext in '' $ac_executable_extensions; do
7923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7924 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 7925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7926 break 2
7927 fi
7928done
5213506e
RW
7929 done
7930IFS=$as_save_IFS
1c710c3c 7931
2abefe3d
PB
7932fi
7933fi
1c710c3c 7934MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 7935if test -n "$MAKEINFO"; then
5213506e
RW
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7937$as_echo "$MAKEINFO" >&6; }
2abefe3d 7938else
5213506e
RW
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7940$as_echo "no" >&6; }
2abefe3d
PB
7941fi
7942
5213506e 7943
1c710c3c 7944 test -n "$MAKEINFO" && break
2abefe3d
PB
7945done
7946test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7947
7948case " $build_configdirs " in
7949 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7950 *)
7951
d18ff35a 7952 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
7953 # higher, else we use the "missing" dummy.
7954 if ${MAKEINFO} --version \
d18ff35a 7955 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
7956 :
7957 else
7958 MAKEINFO="$MISSING makeinfo"
7959 fi
7960 ;;
7961
7962esac
671aa708 7963
2abefe3d 7964# FIXME: expect and dejagnu may become build tools?
671aa708 7965
2abefe3d
PB
7966for ac_prog in expect
7967do
1c710c3c 7968 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7969set dummy $ac_prog; ac_word=$2
5213506e
RW
7970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7971$as_echo_n "checking for $ac_word... " >&6; }
7972if test "${ac_cv_prog_EXPECT+set}" = set; then :
7973 $as_echo_n "(cached) " >&6
2abefe3d
PB
7974else
7975 if test -n "$EXPECT"; then
7976 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7977else
1c710c3c
DJ
7978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7979for as_dir in $PATH
7980do
7981 IFS=$as_save_IFS
7982 test -z "$as_dir" && as_dir=.
5213506e
RW
7983 for ac_exec_ext in '' $ac_executable_extensions; do
7984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7985 ac_cv_prog_EXPECT="$ac_prog"
5213506e 7986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7987 break 2
7988 fi
7989done
5213506e
RW
7990 done
7991IFS=$as_save_IFS
1c710c3c 7992
2abefe3d
PB
7993fi
7994fi
1c710c3c 7995EXPECT=$ac_cv_prog_EXPECT
2abefe3d 7996if test -n "$EXPECT"; then
5213506e
RW
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7998$as_echo "$EXPECT" >&6; }
2abefe3d 7999else
5213506e
RW
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001$as_echo "no" >&6; }
2abefe3d 8002fi
671aa708 8003
5213506e 8004
1c710c3c 8005 test -n "$EXPECT" && break
2abefe3d
PB
8006done
8007test -n "$EXPECT" || EXPECT="expect"
671aa708 8008
2abefe3d
PB
8009case " $configdirs " in
8010 *" expect "*)
8011 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8012 ;;
8013esac
671aa708 8014
2abefe3d
PB
8015for ac_prog in runtest
8016do
1c710c3c 8017 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8018set dummy $ac_prog; ac_word=$2
5213506e
RW
8019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8020$as_echo_n "checking for $ac_word... " >&6; }
8021if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8022 $as_echo_n "(cached) " >&6
2abefe3d
PB
8023else
8024 if test -n "$RUNTEST"; then
8025 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 8026else
1c710c3c
DJ
8027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8028for as_dir in $PATH
8029do
8030 IFS=$as_save_IFS
8031 test -z "$as_dir" && as_dir=.
5213506e
RW
8032 for ac_exec_ext in '' $ac_executable_extensions; do
8033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8034 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 8035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8036 break 2
8037 fi
8038done
5213506e
RW
8039 done
8040IFS=$as_save_IFS
1c710c3c 8041
2abefe3d
PB
8042fi
8043fi
1c710c3c 8044RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 8045if test -n "$RUNTEST"; then
5213506e
RW
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8047$as_echo "$RUNTEST" >&6; }
2abefe3d 8048else
5213506e
RW
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8050$as_echo "no" >&6; }
2abefe3d 8051fi
671aa708 8052
5213506e 8053
1c710c3c 8054 test -n "$RUNTEST" && break
2abefe3d
PB
8055done
8056test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 8057
2abefe3d
PB
8058case " $configdirs " in
8059 *" dejagnu "*)
c394e891 8060 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
8061 ;;
8062esac
671aa708
NN
8063
8064
671aa708 8065# Host tools.
ca9f4b81
AO
8066ncn_tool_prefix=
8067test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8068ncn_target_tool_prefix=
8069test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8070
278a7a38
AO
8071
8072
8073if test -n "$AR"; then
8074 ac_cv_prog_AR=$AR
8075elif test -n "$ac_cv_prog_AR"; then
8076 AR=$ac_cv_prog_AR
8077fi
8078
8079if test -n "$ac_cv_prog_AR"; then
8080 for ncn_progname in ar; do
8081 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8082set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8084$as_echo_n "checking for $ac_word... " >&6; }
8085if test "${ac_cv_prog_AR+set}" = set; then :
8086 $as_echo_n "(cached) " >&6
278a7a38
AO
8087else
8088 if test -n "$AR"; then
8089 ac_cv_prog_AR="$AR" # Let the user override the test.
8090else
8091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8092for as_dir in $PATH
8093do
8094 IFS=$as_save_IFS
8095 test -z "$as_dir" && as_dir=.
5213506e
RW
8096 for ac_exec_ext in '' $ac_executable_extensions; do
8097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8098 ac_cv_prog_AR="${ncn_progname}"
5213506e 8099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8100 break 2
8101 fi
8102done
5213506e
RW
8103 done
8104IFS=$as_save_IFS
278a7a38
AO
8105
8106fi
8107fi
8108AR=$ac_cv_prog_AR
8109if test -n "$AR"; then
5213506e
RW
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8111$as_echo "$AR" >&6; }
278a7a38 8112else
5213506e
RW
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8114$as_echo "no" >&6; }
278a7a38
AO
8115fi
8116
5213506e 8117
278a7a38
AO
8118 done
8119fi
8120
8121for ncn_progname in ar; do
2693c0b0
PB
8122 if test -n "$ncn_tool_prefix"; then
8123 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8124set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8126$as_echo_n "checking for $ac_word... " >&6; }
8127if test "${ac_cv_prog_AR+set}" = set; then :
8128 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8129else
8130 if test -n "$AR"; then
8131 ac_cv_prog_AR="$AR" # Let the user override the test.
8132else
1c710c3c
DJ
8133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8134for as_dir in $PATH
8135do
8136 IFS=$as_save_IFS
8137 test -z "$as_dir" && as_dir=.
5213506e
RW
8138 for ac_exec_ext in '' $ac_executable_extensions; do
8139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8140 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 8141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8142 break 2
8143 fi
8144done
5213506e
RW
8145 done
8146IFS=$as_save_IFS
1c710c3c 8147
ca9f4b81
AO
8148fi
8149fi
1c710c3c 8150AR=$ac_cv_prog_AR
ca9f4b81 8151if test -n "$AR"; then
5213506e
RW
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8153$as_echo "$AR" >&6; }
ca9f4b81 8154else
5213506e
RW
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156$as_echo "no" >&6; }
ca9f4b81
AO
8157fi
8158
5213506e 8159
2693c0b0
PB
8160 fi
8161 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8162 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8163set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8165$as_echo_n "checking for $ac_word... " >&6; }
8166if test "${ac_cv_prog_AR+set}" = set; then :
8167 $as_echo_n "(cached) " >&6
ca9f4b81 8168else
2693c0b0 8169 if test -n "$AR"; then
af71363e
AS
8170 ac_cv_prog_AR="$AR" # Let the user override the test.
8171else
1c710c3c
DJ
8172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8173for as_dir in $PATH
8174do
8175 IFS=$as_save_IFS
8176 test -z "$as_dir" && as_dir=.
5213506e
RW
8177 for ac_exec_ext in '' $ac_executable_extensions; do
8178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8179 ac_cv_prog_AR="${ncn_progname}"
5213506e 8180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8181 break 2
8182 fi
8183done
5213506e
RW
8184 done
8185IFS=$as_save_IFS
1c710c3c 8186
ca9f4b81
AO
8187fi
8188fi
1c710c3c 8189AR=$ac_cv_prog_AR
2693c0b0 8190if test -n "$AR"; then
5213506e
RW
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8192$as_echo "$AR" >&6; }
ca9f4b81 8193else
5213506e
RW
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8195$as_echo "no" >&6; }
ca9f4b81 8196fi
1c710c3c 8197
5213506e 8198
2693c0b0
PB
8199 fi
8200 test -n "$ac_cv_prog_AR" && break
8201done
8202
8203if test -z "$ac_cv_prog_AR" ; then
8204 set dummy ar
8205 if test $build = $host ; then
8206 AR="$2"
ca9f4b81 8207 else
2693c0b0 8208 AR="${ncn_tool_prefix}$2"
ca9f4b81 8209 fi
ca9f4b81
AO
8210fi
8211
278a7a38
AO
8212
8213
8214if test -n "$AS"; then
8215 ac_cv_prog_AS=$AS
8216elif test -n "$ac_cv_prog_AS"; then
8217 AS=$ac_cv_prog_AS
8218fi
8219
8220if test -n "$ac_cv_prog_AS"; then
8221 for ncn_progname in as; do
8222 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8223set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8225$as_echo_n "checking for $ac_word... " >&6; }
8226if test "${ac_cv_prog_AS+set}" = set; then :
8227 $as_echo_n "(cached) " >&6
278a7a38
AO
8228else
8229 if test -n "$AS"; then
8230 ac_cv_prog_AS="$AS" # Let the user override the test.
8231else
8232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233for as_dir in $PATH
8234do
8235 IFS=$as_save_IFS
8236 test -z "$as_dir" && as_dir=.
5213506e
RW
8237 for ac_exec_ext in '' $ac_executable_extensions; do
8238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8239 ac_cv_prog_AS="${ncn_progname}"
5213506e 8240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8241 break 2
8242 fi
8243done
5213506e
RW
8244 done
8245IFS=$as_save_IFS
278a7a38
AO
8246
8247fi
8248fi
8249AS=$ac_cv_prog_AS
8250if test -n "$AS"; then
5213506e
RW
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8252$as_echo "$AS" >&6; }
278a7a38 8253else
5213506e
RW
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8255$as_echo "no" >&6; }
278a7a38
AO
8256fi
8257
5213506e 8258
278a7a38
AO
8259 done
8260fi
8261
8262for ncn_progname in as; do
2693c0b0
PB
8263 if test -n "$ncn_tool_prefix"; then
8264 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8265set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8267$as_echo_n "checking for $ac_word... " >&6; }
8268if test "${ac_cv_prog_AS+set}" = set; then :
8269 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8270else
8271 if test -n "$AS"; then
8272 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 8273else
1c710c3c
DJ
8274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8275for as_dir in $PATH
8276do
8277 IFS=$as_save_IFS
8278 test -z "$as_dir" && as_dir=.
5213506e
RW
8279 for ac_exec_ext in '' $ac_executable_extensions; do
8280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8281 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 8282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8283 break 2
8284 fi
8285done
5213506e
RW
8286 done
8287IFS=$as_save_IFS
1c710c3c 8288
ca9f4b81
AO
8289fi
8290fi
1c710c3c 8291AS=$ac_cv_prog_AS
ca9f4b81 8292if test -n "$AS"; then
5213506e
RW
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8294$as_echo "$AS" >&6; }
ca9f4b81 8295else
5213506e
RW
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297$as_echo "no" >&6; }
ca9f4b81
AO
8298fi
8299
5213506e 8300
2693c0b0
PB
8301 fi
8302 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8303 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8304set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8306$as_echo_n "checking for $ac_word... " >&6; }
8307if test "${ac_cv_prog_AS+set}" = set; then :
8308 $as_echo_n "(cached) " >&6
ca9f4b81 8309else
2693c0b0
PB
8310 if test -n "$AS"; then
8311 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 8312else
1c710c3c
DJ
8313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8314for as_dir in $PATH
8315do
8316 IFS=$as_save_IFS
8317 test -z "$as_dir" && as_dir=.
5213506e
RW
8318 for ac_exec_ext in '' $ac_executable_extensions; do
8319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8320 ac_cv_prog_AS="${ncn_progname}"
5213506e 8321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8322 break 2
8323 fi
8324done
5213506e
RW
8325 done
8326IFS=$as_save_IFS
1c710c3c 8327
ca9f4b81
AO
8328fi
8329fi
1c710c3c 8330AS=$ac_cv_prog_AS
2693c0b0 8331if test -n "$AS"; then
5213506e
RW
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8333$as_echo "$AS" >&6; }
ca9f4b81 8334else
5213506e
RW
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8336$as_echo "no" >&6; }
ca9f4b81 8337fi
1c710c3c 8338
5213506e 8339
2693c0b0
PB
8340 fi
8341 test -n "$ac_cv_prog_AS" && break
8342done
8343
8344if test -z "$ac_cv_prog_AS" ; then
8345 set dummy as
8346 if test $build = $host ; then
8347 AS="$2"
ca9f4b81 8348 else
2693c0b0 8349 AS="${ncn_tool_prefix}$2"
ca9f4b81 8350 fi
ca9f4b81
AO
8351fi
8352
278a7a38
AO
8353
8354
8355if test -n "$DLLTOOL"; then
8356 ac_cv_prog_DLLTOOL=$DLLTOOL
8357elif test -n "$ac_cv_prog_DLLTOOL"; then
8358 DLLTOOL=$ac_cv_prog_DLLTOOL
8359fi
8360
8361if test -n "$ac_cv_prog_DLLTOOL"; then
8362 for ncn_progname in dlltool; do
8363 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8364set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8366$as_echo_n "checking for $ac_word... " >&6; }
8367if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8368 $as_echo_n "(cached) " >&6
278a7a38
AO
8369else
8370 if test -n "$DLLTOOL"; then
8371 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8372else
8373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8374for as_dir in $PATH
8375do
8376 IFS=$as_save_IFS
8377 test -z "$as_dir" && as_dir=.
5213506e
RW
8378 for ac_exec_ext in '' $ac_executable_extensions; do
8379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8380 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8382 break 2
8383 fi
8384done
5213506e
RW
8385 done
8386IFS=$as_save_IFS
278a7a38
AO
8387
8388fi
8389fi
8390DLLTOOL=$ac_cv_prog_DLLTOOL
8391if test -n "$DLLTOOL"; then
5213506e
RW
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8393$as_echo "$DLLTOOL" >&6; }
278a7a38 8394else
5213506e
RW
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8396$as_echo "no" >&6; }
278a7a38
AO
8397fi
8398
5213506e 8399
278a7a38
AO
8400 done
8401fi
8402
8403for ncn_progname in dlltool; do
2693c0b0
PB
8404 if test -n "$ncn_tool_prefix"; then
8405 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8406set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8408$as_echo_n "checking for $ac_word... " >&6; }
8409if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8410 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8411else
8412 if test -n "$DLLTOOL"; then
8413 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8414else
1c710c3c
DJ
8415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416for as_dir in $PATH
8417do
8418 IFS=$as_save_IFS
8419 test -z "$as_dir" && as_dir=.
5213506e
RW
8420 for ac_exec_ext in '' $ac_executable_extensions; do
8421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8422 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8424 break 2
8425 fi
8426done
5213506e
RW
8427 done
8428IFS=$as_save_IFS
1c710c3c 8429
ca9f4b81
AO
8430fi
8431fi
1c710c3c 8432DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8433if test -n "$DLLTOOL"; then
5213506e
RW
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8435$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8436else
5213506e
RW
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438$as_echo "no" >&6; }
ca9f4b81
AO
8439fi
8440
5213506e 8441
2693c0b0
PB
8442 fi
8443 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8444 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8445set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8447$as_echo_n "checking for $ac_word... " >&6; }
8448if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8449 $as_echo_n "(cached) " >&6
ca9f4b81 8450else
2693c0b0
PB
8451 if test -n "$DLLTOOL"; then
8452 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8453else
1c710c3c
DJ
8454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8455for as_dir in $PATH
8456do
8457 IFS=$as_save_IFS
8458 test -z "$as_dir" && as_dir=.
5213506e
RW
8459 for ac_exec_ext in '' $ac_executable_extensions; do
8460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8461 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8463 break 2
8464 fi
8465done
5213506e
RW
8466 done
8467IFS=$as_save_IFS
1c710c3c 8468
ca9f4b81
AO
8469fi
8470fi
1c710c3c 8471DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8472if test -n "$DLLTOOL"; then
5213506e
RW
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8474$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8475else
5213506e
RW
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8477$as_echo "no" >&6; }
ca9f4b81 8478fi
1c710c3c 8479
5213506e 8480
2693c0b0
PB
8481 fi
8482 test -n "$ac_cv_prog_DLLTOOL" && break
8483done
8484
8485if test -z "$ac_cv_prog_DLLTOOL" ; then
8486 set dummy dlltool
8487 if test $build = $host ; then
8488 DLLTOOL="$2"
ca9f4b81 8489 else
2693c0b0 8490 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8491 fi
ca9f4b81
AO
8492fi
8493
278a7a38
AO
8494
8495
8496if test -n "$LD"; then
8497 ac_cv_prog_LD=$LD
8498elif test -n "$ac_cv_prog_LD"; then
8499 LD=$ac_cv_prog_LD
8500fi
8501
8502if test -n "$ac_cv_prog_LD"; then
8503 for ncn_progname in ld; do
8504 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8505set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8507$as_echo_n "checking for $ac_word... " >&6; }
8508if test "${ac_cv_prog_LD+set}" = set; then :
8509 $as_echo_n "(cached) " >&6
278a7a38
AO
8510else
8511 if test -n "$LD"; then
8512 ac_cv_prog_LD="$LD" # Let the user override the test.
8513else
8514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8515for as_dir in $PATH
8516do
8517 IFS=$as_save_IFS
8518 test -z "$as_dir" && as_dir=.
5213506e
RW
8519 for ac_exec_ext in '' $ac_executable_extensions; do
8520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8521 ac_cv_prog_LD="${ncn_progname}"
5213506e 8522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8523 break 2
8524 fi
8525done
5213506e
RW
8526 done
8527IFS=$as_save_IFS
278a7a38
AO
8528
8529fi
8530fi
8531LD=$ac_cv_prog_LD
8532if test -n "$LD"; then
5213506e
RW
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8534$as_echo "$LD" >&6; }
278a7a38 8535else
5213506e
RW
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8537$as_echo "no" >&6; }
278a7a38
AO
8538fi
8539
5213506e 8540
278a7a38
AO
8541 done
8542fi
8543
8544for ncn_progname in ld; do
2693c0b0
PB
8545 if test -n "$ncn_tool_prefix"; then
8546 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8547set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8549$as_echo_n "checking for $ac_word... " >&6; }
8550if test "${ac_cv_prog_LD+set}" = set; then :
8551 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8552else
8553 if test -n "$LD"; then
8554 ac_cv_prog_LD="$LD" # Let the user override the test.
8555else
1c710c3c
DJ
8556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8557for as_dir in $PATH
8558do
8559 IFS=$as_save_IFS
8560 test -z "$as_dir" && as_dir=.
5213506e
RW
8561 for ac_exec_ext in '' $ac_executable_extensions; do
8562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8563 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 8564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8565 break 2
8566 fi
8567done
5213506e
RW
8568 done
8569IFS=$as_save_IFS
1c710c3c 8570
ca9f4b81
AO
8571fi
8572fi
1c710c3c 8573LD=$ac_cv_prog_LD
ca9f4b81 8574if test -n "$LD"; then
5213506e
RW
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8576$as_echo "$LD" >&6; }
ca9f4b81 8577else
5213506e
RW
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8579$as_echo "no" >&6; }
ca9f4b81
AO
8580fi
8581
5213506e 8582
2693c0b0
PB
8583 fi
8584 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8585 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8586set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8588$as_echo_n "checking for $ac_word... " >&6; }
8589if test "${ac_cv_prog_LD+set}" = set; then :
8590 $as_echo_n "(cached) " >&6
ca9f4b81 8591else
2693c0b0
PB
8592 if test -n "$LD"; then
8593 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 8594else
1c710c3c
DJ
8595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8596for as_dir in $PATH
8597do
8598 IFS=$as_save_IFS
8599 test -z "$as_dir" && as_dir=.
5213506e
RW
8600 for ac_exec_ext in '' $ac_executable_extensions; do
8601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8602 ac_cv_prog_LD="${ncn_progname}"
5213506e 8603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8604 break 2
8605 fi
8606done
5213506e
RW
8607 done
8608IFS=$as_save_IFS
1c710c3c 8609
ca9f4b81
AO
8610fi
8611fi
1c710c3c 8612LD=$ac_cv_prog_LD
2693c0b0 8613if test -n "$LD"; then
5213506e
RW
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8615$as_echo "$LD" >&6; }
ca9f4b81 8616else
5213506e
RW
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8618$as_echo "no" >&6; }
ca9f4b81 8619fi
1c710c3c 8620
5213506e 8621
2693c0b0
PB
8622 fi
8623 test -n "$ac_cv_prog_LD" && break
8624done
8625
8626if test -z "$ac_cv_prog_LD" ; then
8627 set dummy ld
8628 if test $build = $host ; then
8629 LD="$2"
ca9f4b81 8630 else
2693c0b0 8631 LD="${ncn_tool_prefix}$2"
ca9f4b81 8632 fi
ca9f4b81
AO
8633fi
8634
278a7a38
AO
8635
8636
8637if test -n "$LIPO"; then
8638 ac_cv_prog_LIPO=$LIPO
8639elif test -n "$ac_cv_prog_LIPO"; then
8640 LIPO=$ac_cv_prog_LIPO
8641fi
8642
8643if test -n "$ac_cv_prog_LIPO"; then
8644 for ncn_progname in lipo; do
8645 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8646set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8648$as_echo_n "checking for $ac_word... " >&6; }
8649if test "${ac_cv_prog_LIPO+set}" = set; then :
8650 $as_echo_n "(cached) " >&6
278a7a38
AO
8651else
8652 if test -n "$LIPO"; then
8653 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8654else
8655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8656for as_dir in $PATH
8657do
8658 IFS=$as_save_IFS
8659 test -z "$as_dir" && as_dir=.
5213506e
RW
8660 for ac_exec_ext in '' $ac_executable_extensions; do
8661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8662 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8664 break 2
8665 fi
8666done
5213506e
RW
8667 done
8668IFS=$as_save_IFS
278a7a38
AO
8669
8670fi
8671fi
8672LIPO=$ac_cv_prog_LIPO
8673if test -n "$LIPO"; then
5213506e
RW
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8675$as_echo "$LIPO" >&6; }
278a7a38 8676else
5213506e
RW
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8678$as_echo "no" >&6; }
278a7a38
AO
8679fi
8680
5213506e 8681
278a7a38
AO
8682 done
8683fi
8684
8685for ncn_progname in lipo; do
2abefe3d
PB
8686 if test -n "$ncn_tool_prefix"; then
8687 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8688set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8690$as_echo_n "checking for $ac_word... " >&6; }
8691if test "${ac_cv_prog_LIPO+set}" = set; then :
8692 $as_echo_n "(cached) " >&6
2abefe3d
PB
8693else
8694 if test -n "$LIPO"; then
8695 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8696else
1c710c3c
DJ
8697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8698for as_dir in $PATH
8699do
8700 IFS=$as_save_IFS
8701 test -z "$as_dir" && as_dir=.
5213506e
RW
8702 for ac_exec_ext in '' $ac_executable_extensions; do
8703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8704 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 8705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8706 break 2
8707 fi
8708done
5213506e
RW
8709 done
8710IFS=$as_save_IFS
1c710c3c 8711
2abefe3d
PB
8712fi
8713fi
1c710c3c 8714LIPO=$ac_cv_prog_LIPO
2abefe3d 8715if test -n "$LIPO"; then
5213506e
RW
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8717$as_echo "$LIPO" >&6; }
2abefe3d 8718else
5213506e
RW
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8720$as_echo "no" >&6; }
2abefe3d
PB
8721fi
8722
5213506e 8723
2abefe3d
PB
8724 fi
8725 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8726 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8727set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8729$as_echo_n "checking for $ac_word... " >&6; }
8730if test "${ac_cv_prog_LIPO+set}" = set; then :
8731 $as_echo_n "(cached) " >&6
2abefe3d
PB
8732else
8733 if test -n "$LIPO"; then
8734 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8735else
1c710c3c
DJ
8736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8737for as_dir in $PATH
8738do
8739 IFS=$as_save_IFS
8740 test -z "$as_dir" && as_dir=.
5213506e
RW
8741 for ac_exec_ext in '' $ac_executable_extensions; do
8742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8743 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8745 break 2
8746 fi
8747done
5213506e
RW
8748 done
8749IFS=$as_save_IFS
1c710c3c 8750
2abefe3d
PB
8751fi
8752fi
1c710c3c 8753LIPO=$ac_cv_prog_LIPO
2abefe3d 8754if test -n "$LIPO"; then
5213506e
RW
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8756$as_echo "$LIPO" >&6; }
2abefe3d 8757else
5213506e
RW
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8759$as_echo "no" >&6; }
2abefe3d 8760fi
1c710c3c 8761
5213506e 8762
2abefe3d
PB
8763 fi
8764 test -n "$ac_cv_prog_LIPO" && break
8765done
8766
8767if test -z "$ac_cv_prog_LIPO" ; then
8768 set dummy lipo
8769 if test $build = $host ; then
8770 LIPO="$2"
8771 else
8772 LIPO="${ncn_tool_prefix}$2"
8773 fi
8774fi
8775
278a7a38
AO
8776
8777
8778if test -n "$NM"; then
8779 ac_cv_prog_NM=$NM
8780elif test -n "$ac_cv_prog_NM"; then
8781 NM=$ac_cv_prog_NM
8782fi
8783
8784if test -n "$ac_cv_prog_NM"; then
8785 for ncn_progname in nm; do
8786 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8787set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8789$as_echo_n "checking for $ac_word... " >&6; }
8790if test "${ac_cv_prog_NM+set}" = set; then :
8791 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8792else
8793 if test -n "$NM"; then
8794 ac_cv_prog_NM="$NM" # Let the user override the test.
8795else
1c710c3c
DJ
8796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8797for as_dir in $PATH
8798do
8799 IFS=$as_save_IFS
8800 test -z "$as_dir" && as_dir=.
5213506e
RW
8801 for ac_exec_ext in '' $ac_executable_extensions; do
8802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8803 ac_cv_prog_NM="${ncn_progname}"
5213506e 8804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8805 break 2
8806 fi
8807done
5213506e
RW
8808 done
8809IFS=$as_save_IFS
1c710c3c 8810
ca9f4b81
AO
8811fi
8812fi
1c710c3c 8813NM=$ac_cv_prog_NM
ca9f4b81 8814if test -n "$NM"; then
5213506e
RW
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8816$as_echo "$NM" >&6; }
ca9f4b81 8817else
5213506e
RW
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8819$as_echo "no" >&6; }
ca9f4b81
AO
8820fi
8821
5213506e 8822
278a7a38
AO
8823 done
8824fi
8825
8826for ncn_progname in nm; do
8827 if test -n "$ncn_tool_prefix"; then
8828 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8829set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8831$as_echo_n "checking for $ac_word... " >&6; }
8832if test "${ac_cv_prog_NM+set}" = set; then :
8833 $as_echo_n "(cached) " >&6
ca9f4b81 8834else
2693c0b0
PB
8835 if test -n "$NM"; then
8836 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 8837else
1c710c3c
DJ
8838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8839for as_dir in $PATH
8840do
8841 IFS=$as_save_IFS
8842 test -z "$as_dir" && as_dir=.
5213506e
RW
8843 for ac_exec_ext in '' $ac_executable_extensions; do
8844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8845 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 8846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8847 break 2
8848 fi
8849done
5213506e
RW
8850 done
8851IFS=$as_save_IFS
1c710c3c 8852
ca9f4b81
AO
8853fi
8854fi
1c710c3c 8855NM=$ac_cv_prog_NM
2693c0b0 8856if test -n "$NM"; then
5213506e
RW
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8858$as_echo "$NM" >&6; }
ca9f4b81 8859else
5213506e
RW
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8861$as_echo "no" >&6; }
ca9f4b81 8862fi
1c710c3c 8863
5213506e 8864
2693c0b0 8865 fi
278a7a38
AO
8866 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8867 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8868set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8870$as_echo_n "checking for $ac_word... " >&6; }
8871if test "${ac_cv_prog_NM+set}" = set; then :
8872 $as_echo_n "(cached) " >&6
278a7a38
AO
8873else
8874 if test -n "$NM"; then
8875 ac_cv_prog_NM="$NM" # Let the user override the test.
8876else
8877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8878for as_dir in $PATH
8879do
8880 IFS=$as_save_IFS
8881 test -z "$as_dir" && as_dir=.
5213506e
RW
8882 for ac_exec_ext in '' $ac_executable_extensions; do
8883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8884 ac_cv_prog_NM="${ncn_progname}"
5213506e 8885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8886 break 2
8887 fi
8888done
5213506e
RW
8889 done
8890IFS=$as_save_IFS
278a7a38
AO
8891
8892fi
8893fi
8894NM=$ac_cv_prog_NM
8895if test -n "$NM"; then
5213506e
RW
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8897$as_echo "$NM" >&6; }
278a7a38 8898else
5213506e
RW
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8900$as_echo "no" >&6; }
278a7a38
AO
8901fi
8902
5213506e 8903
278a7a38
AO
8904 fi
8905 test -n "$ac_cv_prog_NM" && break
8906done
8907
8908if test -z "$ac_cv_prog_NM" ; then
8909 set dummy nm
8910 if test $build = $host ; then
8911 NM="$2"
8912 else
8913 NM="${ncn_tool_prefix}$2"
8914 fi
8915fi
8916
8917
8918
8919if test -n "$RANLIB"; then
8920 ac_cv_prog_RANLIB=$RANLIB
8921elif test -n "$ac_cv_prog_RANLIB"; then
8922 RANLIB=$ac_cv_prog_RANLIB
8923fi
8924
8925if test -n "$ac_cv_prog_RANLIB"; then
8926 for ncn_progname in ranlib; do
8927 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8928set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8930$as_echo_n "checking for $ac_word... " >&6; }
8931if test "${ac_cv_prog_RANLIB+set}" = set; then :
8932 $as_echo_n "(cached) " >&6
278a7a38
AO
8933else
8934 if test -n "$RANLIB"; then
8935 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8936else
8937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8938for as_dir in $PATH
8939do
8940 IFS=$as_save_IFS
8941 test -z "$as_dir" && as_dir=.
5213506e
RW
8942 for ac_exec_ext in '' $ac_executable_extensions; do
8943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8944 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8946 break 2
8947 fi
8948done
5213506e
RW
8949 done
8950IFS=$as_save_IFS
278a7a38
AO
8951
8952fi
8953fi
8954RANLIB=$ac_cv_prog_RANLIB
8955if test -n "$RANLIB"; then
5213506e
RW
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8957$as_echo "$RANLIB" >&6; }
278a7a38 8958else
5213506e
RW
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8960$as_echo "no" >&6; }
278a7a38
AO
8961fi
8962
5213506e 8963
278a7a38
AO
8964 done
8965fi
ca9f4b81 8966
278a7a38 8967for ncn_progname in ranlib; do
2693c0b0
PB
8968 if test -n "$ncn_tool_prefix"; then
8969 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8970set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8972$as_echo_n "checking for $ac_word... " >&6; }
8973if test "${ac_cv_prog_RANLIB+set}" = set; then :
8974 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8975else
8976 if test -n "$RANLIB"; then
8977 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8978else
1c710c3c
DJ
8979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8980for as_dir in $PATH
8981do
8982 IFS=$as_save_IFS
8983 test -z "$as_dir" && as_dir=.
5213506e
RW
8984 for ac_exec_ext in '' $ac_executable_extensions; do
8985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8986 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 8987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8988 break 2
8989 fi
8990done
5213506e
RW
8991 done
8992IFS=$as_save_IFS
1c710c3c 8993
ca9f4b81
AO
8994fi
8995fi
1c710c3c 8996RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 8997if test -n "$RANLIB"; then
5213506e
RW
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8999$as_echo "$RANLIB" >&6; }
ca9f4b81 9000else
5213506e
RW
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9002$as_echo "no" >&6; }
ca9f4b81
AO
9003fi
9004
5213506e 9005
2693c0b0
PB
9006 fi
9007 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9008 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9009set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9011$as_echo_n "checking for $ac_word... " >&6; }
9012if test "${ac_cv_prog_RANLIB+set}" = set; then :
9013 $as_echo_n "(cached) " >&6
ca9f4b81 9014else
2693c0b0
PB
9015 if test -n "$RANLIB"; then
9016 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 9017else
1c710c3c
DJ
9018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9019for as_dir in $PATH
9020do
9021 IFS=$as_save_IFS
9022 test -z "$as_dir" && as_dir=.
5213506e
RW
9023 for ac_exec_ext in '' $ac_executable_extensions; do
9024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9025 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 9026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9027 break 2
9028 fi
9029done
5213506e
RW
9030 done
9031IFS=$as_save_IFS
1c710c3c 9032
ca9f4b81
AO
9033fi
9034fi
1c710c3c 9035RANLIB=$ac_cv_prog_RANLIB
2693c0b0 9036if test -n "$RANLIB"; then
5213506e
RW
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9038$as_echo "$RANLIB" >&6; }
ca9f4b81 9039else
5213506e
RW
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9041$as_echo "no" >&6; }
ca9f4b81 9042fi
1c710c3c 9043
5213506e 9044
ca9f4b81 9045 fi
2693c0b0
PB
9046 test -n "$ac_cv_prog_RANLIB" && break
9047done
9048
9049if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 9050 RANLIB="true"
ca9f4b81
AO
9051fi
9052
278a7a38
AO
9053
9054
9055if test -n "$STRIP"; then
9056 ac_cv_prog_STRIP=$STRIP
9057elif test -n "$ac_cv_prog_STRIP"; then
9058 STRIP=$ac_cv_prog_STRIP
9059fi
9060
9061if test -n "$ac_cv_prog_STRIP"; then
9062 for ncn_progname in strip; do
9063 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9064set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9066$as_echo_n "checking for $ac_word... " >&6; }
9067if test "${ac_cv_prog_STRIP+set}" = set; then :
9068 $as_echo_n "(cached) " >&6
278a7a38
AO
9069else
9070 if test -n "$STRIP"; then
9071 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9072else
9073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9074for as_dir in $PATH
9075do
9076 IFS=$as_save_IFS
9077 test -z "$as_dir" && as_dir=.
5213506e
RW
9078 for ac_exec_ext in '' $ac_executable_extensions; do
9079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9080 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9082 break 2
9083 fi
9084done
5213506e
RW
9085 done
9086IFS=$as_save_IFS
278a7a38
AO
9087
9088fi
9089fi
9090STRIP=$ac_cv_prog_STRIP
9091if test -n "$STRIP"; then
5213506e
RW
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9093$as_echo "$STRIP" >&6; }
278a7a38 9094else
5213506e
RW
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9096$as_echo "no" >&6; }
278a7a38
AO
9097fi
9098
5213506e 9099
278a7a38
AO
9100 done
9101fi
9102
9103for ncn_progname in strip; do
2abefe3d
PB
9104 if test -n "$ncn_tool_prefix"; then
9105 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9106set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9108$as_echo_n "checking for $ac_word... " >&6; }
9109if test "${ac_cv_prog_STRIP+set}" = set; then :
9110 $as_echo_n "(cached) " >&6
2abefe3d
PB
9111else
9112 if test -n "$STRIP"; then
9113 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9114else
1c710c3c
DJ
9115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9116for as_dir in $PATH
9117do
9118 IFS=$as_save_IFS
9119 test -z "$as_dir" && as_dir=.
5213506e
RW
9120 for ac_exec_ext in '' $ac_executable_extensions; do
9121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9122 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9124 break 2
9125 fi
9126done
5213506e
RW
9127 done
9128IFS=$as_save_IFS
1c710c3c 9129
2abefe3d
PB
9130fi
9131fi
1c710c3c 9132STRIP=$ac_cv_prog_STRIP
2abefe3d 9133if test -n "$STRIP"; then
5213506e
RW
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9135$as_echo "$STRIP" >&6; }
2abefe3d 9136else
5213506e
RW
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9138$as_echo "no" >&6; }
2abefe3d
PB
9139fi
9140
5213506e 9141
2abefe3d
PB
9142 fi
9143 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9144 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9145set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9147$as_echo_n "checking for $ac_word... " >&6; }
9148if test "${ac_cv_prog_STRIP+set}" = set; then :
9149 $as_echo_n "(cached) " >&6
2abefe3d
PB
9150else
9151 if test -n "$STRIP"; then
9152 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9153else
1c710c3c
DJ
9154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9155for as_dir in $PATH
9156do
9157 IFS=$as_save_IFS
9158 test -z "$as_dir" && as_dir=.
5213506e
RW
9159 for ac_exec_ext in '' $ac_executable_extensions; do
9160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9161 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9163 break 2
9164 fi
9165done
5213506e
RW
9166 done
9167IFS=$as_save_IFS
1c710c3c 9168
2abefe3d
PB
9169fi
9170fi
1c710c3c 9171STRIP=$ac_cv_prog_STRIP
2abefe3d 9172if test -n "$STRIP"; then
5213506e
RW
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9174$as_echo "$STRIP" >&6; }
2abefe3d 9175else
5213506e
RW
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9177$as_echo "no" >&6; }
2abefe3d 9178fi
1c710c3c 9179
5213506e 9180
2abefe3d
PB
9181 fi
9182 test -n "$ac_cv_prog_STRIP" && break
9183done
9184
9185if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 9186 STRIP="true"
2abefe3d
PB
9187fi
9188
278a7a38
AO
9189
9190
9191if test -n "$WINDRES"; then
9192 ac_cv_prog_WINDRES=$WINDRES
9193elif test -n "$ac_cv_prog_WINDRES"; then
9194 WINDRES=$ac_cv_prog_WINDRES
9195fi
9196
9197if test -n "$ac_cv_prog_WINDRES"; then
9198 for ncn_progname in windres; do
9199 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9200set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9202$as_echo_n "checking for $ac_word... " >&6; }
9203if test "${ac_cv_prog_WINDRES+set}" = set; then :
9204 $as_echo_n "(cached) " >&6
278a7a38
AO
9205else
9206 if test -n "$WINDRES"; then
9207 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9208else
9209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9210for as_dir in $PATH
9211do
9212 IFS=$as_save_IFS
9213 test -z "$as_dir" && as_dir=.
5213506e
RW
9214 for ac_exec_ext in '' $ac_executable_extensions; do
9215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9216 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9218 break 2
9219 fi
9220done
5213506e
RW
9221 done
9222IFS=$as_save_IFS
278a7a38
AO
9223
9224fi
9225fi
9226WINDRES=$ac_cv_prog_WINDRES
9227if test -n "$WINDRES"; then
5213506e
RW
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9229$as_echo "$WINDRES" >&6; }
278a7a38 9230else
5213506e
RW
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9232$as_echo "no" >&6; }
278a7a38
AO
9233fi
9234
5213506e 9235
278a7a38
AO
9236 done
9237fi
9238
9239for ncn_progname in windres; do
2693c0b0
PB
9240 if test -n "$ncn_tool_prefix"; then
9241 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9242set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9244$as_echo_n "checking for $ac_word... " >&6; }
9245if test "${ac_cv_prog_WINDRES+set}" = set; then :
9246 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9247else
9248 if test -n "$WINDRES"; then
9249 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9250else
1c710c3c
DJ
9251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9252for as_dir in $PATH
9253do
9254 IFS=$as_save_IFS
9255 test -z "$as_dir" && as_dir=.
5213506e
RW
9256 for ac_exec_ext in '' $ac_executable_extensions; do
9257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9258 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 9259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9260 break 2
9261 fi
9262done
5213506e
RW
9263 done
9264IFS=$as_save_IFS
1c710c3c 9265
ca9f4b81
AO
9266fi
9267fi
1c710c3c 9268WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 9269if test -n "$WINDRES"; then
5213506e
RW
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9271$as_echo "$WINDRES" >&6; }
ca9f4b81 9272else
5213506e
RW
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9274$as_echo "no" >&6; }
ca9f4b81
AO
9275fi
9276
5213506e 9277
2693c0b0
PB
9278 fi
9279 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9280 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9281set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9283$as_echo_n "checking for $ac_word... " >&6; }
9284if test "${ac_cv_prog_WINDRES+set}" = set; then :
9285 $as_echo_n "(cached) " >&6
ca9f4b81 9286else
2693c0b0
PB
9287 if test -n "$WINDRES"; then
9288 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 9289else
1c710c3c
DJ
9290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9291for as_dir in $PATH
9292do
9293 IFS=$as_save_IFS
9294 test -z "$as_dir" && as_dir=.
5213506e
RW
9295 for ac_exec_ext in '' $ac_executable_extensions; do
9296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9297 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9299 break 2
9300 fi
9301done
5213506e
RW
9302 done
9303IFS=$as_save_IFS
1c710c3c 9304
ca9f4b81
AO
9305fi
9306fi
1c710c3c 9307WINDRES=$ac_cv_prog_WINDRES
2693c0b0 9308if test -n "$WINDRES"; then
5213506e
RW
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9310$as_echo "$WINDRES" >&6; }
ca9f4b81 9311else
5213506e
RW
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9313$as_echo "no" >&6; }
ca9f4b81 9314fi
1c710c3c 9315
5213506e 9316
2693c0b0
PB
9317 fi
9318 test -n "$ac_cv_prog_WINDRES" && break
9319done
9320
9321if test -z "$ac_cv_prog_WINDRES" ; then
9322 set dummy windres
9323 if test $build = $host ; then
9324 WINDRES="$2"
ca9f4b81 9325 else
2693c0b0 9326 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9327 fi
ca9f4b81
AO
9328fi
9329
278a7a38
AO
9330
9331
901119ae
KT
9332if test -n "$WINDMC"; then
9333 ac_cv_prog_WINDMC=$WINDMC
9334elif test -n "$ac_cv_prog_WINDMC"; then
9335 WINDMC=$ac_cv_prog_WINDMC
9336fi
9337
9338if test -n "$ac_cv_prog_WINDMC"; then
9339 for ncn_progname in windmc; do
9340 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9341set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9343$as_echo_n "checking for $ac_word... " >&6; }
9344if test "${ac_cv_prog_WINDMC+set}" = set; then :
9345 $as_echo_n "(cached) " >&6
901119ae
KT
9346else
9347 if test -n "$WINDMC"; then
9348 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9349else
9350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9351for as_dir in $PATH
9352do
9353 IFS=$as_save_IFS
9354 test -z "$as_dir" && as_dir=.
5213506e
RW
9355 for ac_exec_ext in '' $ac_executable_extensions; do
9356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9357 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9359 break 2
9360 fi
9361done
5213506e
RW
9362 done
9363IFS=$as_save_IFS
901119ae
KT
9364
9365fi
9366fi
9367WINDMC=$ac_cv_prog_WINDMC
9368if test -n "$WINDMC"; then
5213506e
RW
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9370$as_echo "$WINDMC" >&6; }
901119ae 9371else
5213506e
RW
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9373$as_echo "no" >&6; }
901119ae
KT
9374fi
9375
5213506e 9376
901119ae
KT
9377 done
9378fi
9379
9380for ncn_progname in windmc; do
9381 if test -n "$ncn_tool_prefix"; then
9382 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9383set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9385$as_echo_n "checking for $ac_word... " >&6; }
9386if test "${ac_cv_prog_WINDMC+set}" = set; then :
9387 $as_echo_n "(cached) " >&6
901119ae
KT
9388else
9389 if test -n "$WINDMC"; then
9390 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9391else
9392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9393for as_dir in $PATH
9394do
9395 IFS=$as_save_IFS
9396 test -z "$as_dir" && as_dir=.
5213506e
RW
9397 for ac_exec_ext in '' $ac_executable_extensions; do
9398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9399 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9401 break 2
9402 fi
9403done
5213506e
RW
9404 done
9405IFS=$as_save_IFS
901119ae
KT
9406
9407fi
9408fi
9409WINDMC=$ac_cv_prog_WINDMC
9410if test -n "$WINDMC"; then
5213506e
RW
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9412$as_echo "$WINDMC" >&6; }
901119ae 9413else
5213506e
RW
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9415$as_echo "no" >&6; }
901119ae
KT
9416fi
9417
5213506e 9418
901119ae
KT
9419 fi
9420 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9421 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9422set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9424$as_echo_n "checking for $ac_word... " >&6; }
9425if test "${ac_cv_prog_WINDMC+set}" = set; then :
9426 $as_echo_n "(cached) " >&6
901119ae
KT
9427else
9428 if test -n "$WINDMC"; then
9429 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9430else
9431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9432for as_dir in $PATH
9433do
9434 IFS=$as_save_IFS
9435 test -z "$as_dir" && as_dir=.
5213506e
RW
9436 for ac_exec_ext in '' $ac_executable_extensions; do
9437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9438 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9440 break 2
9441 fi
9442done
5213506e
RW
9443 done
9444IFS=$as_save_IFS
901119ae
KT
9445
9446fi
9447fi
9448WINDMC=$ac_cv_prog_WINDMC
9449if test -n "$WINDMC"; then
5213506e
RW
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9451$as_echo "$WINDMC" >&6; }
901119ae 9452else
5213506e
RW
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9454$as_echo "no" >&6; }
901119ae
KT
9455fi
9456
5213506e 9457
901119ae
KT
9458 fi
9459 test -n "$ac_cv_prog_WINDMC" && break
9460done
9461
9462if test -z "$ac_cv_prog_WINDMC" ; then
9463 set dummy windmc
9464 if test $build = $host ; then
9465 WINDMC="$2"
9466 else
9467 WINDMC="${ncn_tool_prefix}$2"
9468 fi
9469fi
9470
9471
9472
278a7a38
AO
9473if test -n "$OBJCOPY"; then
9474 ac_cv_prog_OBJCOPY=$OBJCOPY
9475elif test -n "$ac_cv_prog_OBJCOPY"; then
9476 OBJCOPY=$ac_cv_prog_OBJCOPY
9477fi
9478
9479if test -n "$ac_cv_prog_OBJCOPY"; then
9480 for ncn_progname in objcopy; do
9481 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9482set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9484$as_echo_n "checking for $ac_word... " >&6; }
9485if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9486 $as_echo_n "(cached) " >&6
278a7a38
AO
9487else
9488 if test -n "$OBJCOPY"; then
9489 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9490else
9491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9492for as_dir in $PATH
9493do
9494 IFS=$as_save_IFS
9495 test -z "$as_dir" && as_dir=.
5213506e
RW
9496 for ac_exec_ext in '' $ac_executable_extensions; do
9497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9498 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9500 break 2
9501 fi
9502done
5213506e
RW
9503 done
9504IFS=$as_save_IFS
278a7a38
AO
9505
9506fi
9507fi
9508OBJCOPY=$ac_cv_prog_OBJCOPY
9509if test -n "$OBJCOPY"; then
5213506e
RW
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9511$as_echo "$OBJCOPY" >&6; }
278a7a38 9512else
5213506e
RW
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9514$as_echo "no" >&6; }
278a7a38
AO
9515fi
9516
5213506e 9517
278a7a38
AO
9518 done
9519fi
9520
9521for ncn_progname in objcopy; do
2693c0b0
PB
9522 if test -n "$ncn_tool_prefix"; then
9523 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9524set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9526$as_echo_n "checking for $ac_word... " >&6; }
9527if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9528 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9529else
9530 if test -n "$OBJCOPY"; then
9531 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9532else
1c710c3c
DJ
9533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9534for as_dir in $PATH
9535do
9536 IFS=$as_save_IFS
9537 test -z "$as_dir" && as_dir=.
5213506e
RW
9538 for ac_exec_ext in '' $ac_executable_extensions; do
9539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9540 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9542 break 2
9543 fi
9544done
5213506e
RW
9545 done
9546IFS=$as_save_IFS
1c710c3c 9547
ca9f4b81
AO
9548fi
9549fi
1c710c3c 9550OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 9551if test -n "$OBJCOPY"; then
5213506e
RW
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9553$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9554else
5213506e
RW
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9556$as_echo "no" >&6; }
ca9f4b81
AO
9557fi
9558
5213506e 9559
2693c0b0
PB
9560 fi
9561 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9562 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9563set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9565$as_echo_n "checking for $ac_word... " >&6; }
9566if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9567 $as_echo_n "(cached) " >&6
ca9f4b81 9568else
2693c0b0
PB
9569 if test -n "$OBJCOPY"; then
9570 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 9571else
1c710c3c
DJ
9572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9573for as_dir in $PATH
9574do
9575 IFS=$as_save_IFS
9576 test -z "$as_dir" && as_dir=.
5213506e
RW
9577 for ac_exec_ext in '' $ac_executable_extensions; do
9578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9579 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9581 break 2
9582 fi
9583done
5213506e
RW
9584 done
9585IFS=$as_save_IFS
1c710c3c 9586
ca9f4b81
AO
9587fi
9588fi
1c710c3c 9589OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 9590if test -n "$OBJCOPY"; then
5213506e
RW
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9592$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9593else
5213506e
RW
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9595$as_echo "no" >&6; }
ca9f4b81 9596fi
1c710c3c 9597
5213506e 9598
2693c0b0
PB
9599 fi
9600 test -n "$ac_cv_prog_OBJCOPY" && break
9601done
9602
9603if test -z "$ac_cv_prog_OBJCOPY" ; then
9604 set dummy objcopy
9605 if test $build = $host ; then
9606 OBJCOPY="$2"
ca9f4b81 9607 else
2693c0b0 9608 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 9609 fi
ca9f4b81
AO
9610fi
9611
278a7a38
AO
9612
9613
9614if test -n "$OBJDUMP"; then
9615 ac_cv_prog_OBJDUMP=$OBJDUMP
9616elif test -n "$ac_cv_prog_OBJDUMP"; then
9617 OBJDUMP=$ac_cv_prog_OBJDUMP
9618fi
9619
9620if test -n "$ac_cv_prog_OBJDUMP"; then
9621 for ncn_progname in objdump; do
9622 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9623set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9625$as_echo_n "checking for $ac_word... " >&6; }
9626if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9627 $as_echo_n "(cached) " >&6
278a7a38
AO
9628else
9629 if test -n "$OBJDUMP"; then
9630 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9631else
9632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9633for as_dir in $PATH
9634do
9635 IFS=$as_save_IFS
9636 test -z "$as_dir" && as_dir=.
5213506e
RW
9637 for ac_exec_ext in '' $ac_executable_extensions; do
9638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9639 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9641 break 2
9642 fi
9643done
5213506e
RW
9644 done
9645IFS=$as_save_IFS
278a7a38
AO
9646
9647fi
9648fi
9649OBJDUMP=$ac_cv_prog_OBJDUMP
9650if test -n "$OBJDUMP"; then
5213506e
RW
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9652$as_echo "$OBJDUMP" >&6; }
278a7a38 9653else
5213506e
RW
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9655$as_echo "no" >&6; }
278a7a38
AO
9656fi
9657
5213506e 9658
278a7a38
AO
9659 done
9660fi
9661
9662for ncn_progname in objdump; do
2693c0b0
PB
9663 if test -n "$ncn_tool_prefix"; then
9664 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9665set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9667$as_echo_n "checking for $ac_word... " >&6; }
9668if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9669 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9670else
9671 if test -n "$OBJDUMP"; then
9672 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9673else
1c710c3c
DJ
9674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9675for as_dir in $PATH
9676do
9677 IFS=$as_save_IFS
9678 test -z "$as_dir" && as_dir=.
5213506e
RW
9679 for ac_exec_ext in '' $ac_executable_extensions; do
9680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9681 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9683 break 2
9684 fi
9685done
5213506e
RW
9686 done
9687IFS=$as_save_IFS
1c710c3c 9688
ca9f4b81
AO
9689fi
9690fi
1c710c3c 9691OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 9692if test -n "$OBJDUMP"; then
5213506e
RW
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9694$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9695else
5213506e
RW
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9697$as_echo "no" >&6; }
ca9f4b81
AO
9698fi
9699
5213506e 9700
2693c0b0
PB
9701 fi
9702 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9703 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9704set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9706$as_echo_n "checking for $ac_word... " >&6; }
9707if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9708 $as_echo_n "(cached) " >&6
ca9f4b81 9709else
2693c0b0
PB
9710 if test -n "$OBJDUMP"; then
9711 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 9712else
1c710c3c
DJ
9713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9714for as_dir in $PATH
9715do
9716 IFS=$as_save_IFS
9717 test -z "$as_dir" && as_dir=.
5213506e
RW
9718 for ac_exec_ext in '' $ac_executable_extensions; do
9719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9720 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9722 break 2
9723 fi
9724done
5213506e
RW
9725 done
9726IFS=$as_save_IFS
1c710c3c 9727
ca9f4b81
AO
9728fi
9729fi
1c710c3c 9730OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 9731if test -n "$OBJDUMP"; then
5213506e
RW
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9733$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9734else
5213506e
RW
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9736$as_echo "no" >&6; }
ca9f4b81 9737fi
1c710c3c 9738
5213506e 9739
2693c0b0
PB
9740 fi
9741 test -n "$ac_cv_prog_OBJDUMP" && break
9742done
9743
9744if test -z "$ac_cv_prog_OBJDUMP" ; then
9745 set dummy objdump
9746 if test $build = $host ; then
9747 OBJDUMP="$2"
ca9f4b81 9748 else
2693c0b0 9749 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 9750 fi
ca9f4b81
AO
9751fi
9752
671aa708
NN
9753
9754
e7a82751
RM
9755if test -n "$READELF"; then
9756 ac_cv_prog_READELF=$READELF
9757elif test -n "$ac_cv_prog_READELF"; then
9758 READELF=$ac_cv_prog_READELF
9759fi
9760
9761if test -n "$ac_cv_prog_READELF"; then
9762 for ncn_progname in readelf; do
9763 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9764set dummy ${ncn_progname}; ac_word=$2
9765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9766$as_echo_n "checking for $ac_word... " >&6; }
9767if test "${ac_cv_prog_READELF+set}" = set; then :
9768 $as_echo_n "(cached) " >&6
9769else
9770 if test -n "$READELF"; then
9771 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9772else
9773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9774for as_dir in $PATH
9775do
9776 IFS=$as_save_IFS
9777 test -z "$as_dir" && as_dir=.
9778 for ac_exec_ext in '' $ac_executable_extensions; do
9779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9780 ac_cv_prog_READELF="${ncn_progname}"
9781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9782 break 2
9783 fi
9784done
9785 done
9786IFS=$as_save_IFS
9787
9788fi
9789fi
9790READELF=$ac_cv_prog_READELF
9791if test -n "$READELF"; then
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9793$as_echo "$READELF" >&6; }
9794else
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9796$as_echo "no" >&6; }
9797fi
9798
9799
9800 done
9801fi
9802
9803for ncn_progname in readelf; do
9804 if test -n "$ncn_tool_prefix"; then
9805 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9806set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9808$as_echo_n "checking for $ac_word... " >&6; }
9809if test "${ac_cv_prog_READELF+set}" = set; then :
9810 $as_echo_n "(cached) " >&6
9811else
9812 if test -n "$READELF"; then
9813 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9814else
9815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9816for as_dir in $PATH
9817do
9818 IFS=$as_save_IFS
9819 test -z "$as_dir" && as_dir=.
9820 for ac_exec_ext in '' $ac_executable_extensions; do
9821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9822 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9824 break 2
9825 fi
9826done
9827 done
9828IFS=$as_save_IFS
9829
9830fi
9831fi
9832READELF=$ac_cv_prog_READELF
9833if test -n "$READELF"; then
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9835$as_echo "$READELF" >&6; }
9836else
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9838$as_echo "no" >&6; }
9839fi
9840
9841
9842 fi
9843 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9844 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9845set dummy ${ncn_progname}; ac_word=$2
9846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9847$as_echo_n "checking for $ac_word... " >&6; }
9848if test "${ac_cv_prog_READELF+set}" = set; then :
9849 $as_echo_n "(cached) " >&6
9850else
9851 if test -n "$READELF"; then
9852 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9853else
9854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9855for as_dir in $PATH
9856do
9857 IFS=$as_save_IFS
9858 test -z "$as_dir" && as_dir=.
9859 for ac_exec_ext in '' $ac_executable_extensions; do
9860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9861 ac_cv_prog_READELF="${ncn_progname}"
9862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9863 break 2
9864 fi
9865done
9866 done
9867IFS=$as_save_IFS
9868
9869fi
9870fi
9871READELF=$ac_cv_prog_READELF
9872if test -n "$READELF"; then
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9874$as_echo "$READELF" >&6; }
9875else
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9877$as_echo "no" >&6; }
9878fi
9879
9880
9881 fi
9882 test -n "$ac_cv_prog_READELF" && break
9883done
9884
9885if test -z "$ac_cv_prog_READELF" ; then
9886 set dummy readelf
9887 if test $build = $host ; then
9888 READELF="$2"
9889 else
9890 READELF="${ncn_tool_prefix}$2"
9891 fi
9892fi
9893
9894
9895
671aa708
NN
9896
9897
9898
2abefe3d 9899# Target tools.
1c710c3c 9900
5213506e
RW
9901# Check whether --with-build-time-tools was given.
9902if test "${with_build_time_tools+set}" = set; then :
9903 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
9904 x/*) ;;
9905 *)
9906 with_build_time_tools=
5213506e
RW
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9908$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
9909 ;;
9910 esac
ca9f4b81 9911else
e8b05380 9912 with_build_time_tools=
5213506e
RW
9913fi
9914
ca9f4b81 9915
278a7a38
AO
9916
9917
9918if test -n "$CC_FOR_TARGET"; then
9919 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9920elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9921 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9922fi
9923
9924if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9925 for ncn_progname in cc gcc; do
9926 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9927set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9929$as_echo_n "checking for $ac_word... " >&6; }
9930if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9931 $as_echo_n "(cached) " >&6
278a7a38
AO
9932else
9933 if test -n "$CC_FOR_TARGET"; then
9934 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9935else
9936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9937for as_dir in $PATH
9938do
9939 IFS=$as_save_IFS
9940 test -z "$as_dir" && as_dir=.
5213506e
RW
9941 for ac_exec_ext in '' $ac_executable_extensions; do
9942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9943 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9945 break 2
9946 fi
9947done
5213506e
RW
9948 done
9949IFS=$as_save_IFS
278a7a38
AO
9950
9951fi
9952fi
9953CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9954if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9956$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 9957else
5213506e
RW
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9959$as_echo "no" >&6; }
278a7a38
AO
9960fi
9961
5213506e 9962
278a7a38
AO
9963 done
9964fi
9965
9966if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9967 for ncn_progname in cc gcc; do
5213506e
RW
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9969$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9970 if test -x $with_build_time_tools/${ncn_progname}; then
9971 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9973$as_echo "yes" >&6; }
72a7ab82 9974 break
e8b05380 9975 else
5213506e
RW
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9977$as_echo "no" >&6; }
72a7ab82
AP
9978 fi
9979 done
4de997d1
PB
9980fi
9981
e8b05380
PB
9982if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9983 for ncn_progname in cc gcc; do
9984 if test -n "$ncn_target_tool_prefix"; then
9985 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9986set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9988$as_echo_n "checking for $ac_word... " >&6; }
9989if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9990 $as_echo_n "(cached) " >&6
4de997d1
PB
9991else
9992 if test -n "$CC_FOR_TARGET"; then
9993 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9994else
1c710c3c
DJ
9995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9996for as_dir in $PATH
9997do
9998 IFS=$as_save_IFS
9999 test -z "$as_dir" && as_dir=.
5213506e
RW
10000 for ac_exec_ext in '' $ac_executable_extensions; do
10001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10002 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10004 break 2
10005 fi
10006done
5213506e
RW
10007 done
10008IFS=$as_save_IFS
1c710c3c 10009
4de997d1
PB
10010fi
10011fi
1c710c3c 10012CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 10013if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10015$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 10016else
5213506e
RW
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10018$as_echo "no" >&6; }
4de997d1
PB
10019fi
10020
5213506e 10021
e8b05380
PB
10022 fi
10023 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10024 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10025set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10027$as_echo_n "checking for $ac_word... " >&6; }
10028if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10029 $as_echo_n "(cached) " >&6
4de997d1 10030else
2693c0b0
PB
10031 if test -n "$CC_FOR_TARGET"; then
10032 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 10033else
1c710c3c
DJ
10034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10035for as_dir in $PATH
10036do
10037 IFS=$as_save_IFS
10038 test -z "$as_dir" && as_dir=.
5213506e
RW
10039 for ac_exec_ext in '' $ac_executable_extensions; do
10040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10041 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 10042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10043 break 2
10044 fi
10045done
5213506e
RW
10046 done
10047IFS=$as_save_IFS
1c710c3c 10048
4de997d1
PB
10049fi
10050fi
1c710c3c 10051CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 10052if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10054$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 10055else
5213506e
RW
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10057$as_echo "no" >&6; }
4de997d1 10058fi
1c710c3c 10059
5213506e 10060
e8b05380
PB
10061 fi
10062 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10063 done
10064fi
1c710c3c 10065
2693c0b0
PB
10066if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10067 set dummy cc gcc
10068 if test $build = $target ; then
10069 CC_FOR_TARGET="$2"
4de997d1 10070 else
2693c0b0 10071 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10072 fi
1c00b503
PB
10073else
10074 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
10075fi
10076
278a7a38
AO
10077
10078
10079if test -n "$CXX_FOR_TARGET"; then
10080 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10081elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10082 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10083fi
10084
10085if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10086 for ncn_progname in c++ g++ cxx gxx; do
10087 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10088set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10090$as_echo_n "checking for $ac_word... " >&6; }
10091if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10092 $as_echo_n "(cached) " >&6
278a7a38
AO
10093else
10094 if test -n "$CXX_FOR_TARGET"; then
10095 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10096else
10097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10098for as_dir in $PATH
10099do
10100 IFS=$as_save_IFS
10101 test -z "$as_dir" && as_dir=.
5213506e
RW
10102 for ac_exec_ext in '' $ac_executable_extensions; do
10103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10104 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10106 break 2
10107 fi
10108done
5213506e
RW
10109 done
10110IFS=$as_save_IFS
278a7a38
AO
10111
10112fi
10113fi
10114CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10115if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10117$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 10118else
5213506e
RW
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10120$as_echo "no" >&6; }
278a7a38
AO
10121fi
10122
5213506e 10123
278a7a38
AO
10124 done
10125fi
10126
10127if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10128 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10130$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10131 if test -x $with_build_time_tools/${ncn_progname}; then
10132 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10134$as_echo "yes" >&6; }
e8b05380
PB
10135 break
10136 else
5213506e
RW
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10138$as_echo "no" >&6; }
e8b05380
PB
10139 fi
10140 done
10141fi
10142
10143if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10144 for ncn_progname in c++ g++ cxx gxx; do
10145 if test -n "$ncn_target_tool_prefix"; then
10146 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10147set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10149$as_echo_n "checking for $ac_word... " >&6; }
10150if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10151 $as_echo_n "(cached) " >&6
4de997d1
PB
10152else
10153 if test -n "$CXX_FOR_TARGET"; then
10154 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10155else
1c710c3c
DJ
10156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10157for as_dir in $PATH
10158do
10159 IFS=$as_save_IFS
10160 test -z "$as_dir" && as_dir=.
5213506e
RW
10161 for ac_exec_ext in '' $ac_executable_extensions; do
10162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10163 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10165 break 2
10166 fi
10167done
5213506e
RW
10168 done
10169IFS=$as_save_IFS
1c710c3c 10170
4de997d1
PB
10171fi
10172fi
1c710c3c 10173CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 10174if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10176$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10177else
5213506e
RW
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10179$as_echo "no" >&6; }
4de997d1
PB
10180fi
10181
5213506e 10182
e8b05380
PB
10183 fi
10184 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10185 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10186set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10188$as_echo_n "checking for $ac_word... " >&6; }
10189if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10190 $as_echo_n "(cached) " >&6
4de997d1 10191else
2693c0b0
PB
10192 if test -n "$CXX_FOR_TARGET"; then
10193 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 10194else
1c710c3c
DJ
10195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10196for as_dir in $PATH
10197do
10198 IFS=$as_save_IFS
10199 test -z "$as_dir" && as_dir=.
5213506e
RW
10200 for ac_exec_ext in '' $ac_executable_extensions; do
10201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10202 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10204 break 2
10205 fi
10206done
5213506e
RW
10207 done
10208IFS=$as_save_IFS
1c710c3c 10209
4de997d1
PB
10210fi
10211fi
1c710c3c 10212CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 10213if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10215$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10216else
5213506e
RW
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10218$as_echo "no" >&6; }
4de997d1 10219fi
1c710c3c 10220
5213506e 10221
e8b05380
PB
10222 fi
10223 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10224 done
10225fi
1c710c3c 10226
2693c0b0
PB
10227if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10228 set dummy c++ g++ cxx gxx
10229 if test $build = $target ; then
10230 CXX_FOR_TARGET="$2"
4de997d1 10231 else
2693c0b0 10232 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10233 fi
1c00b503
PB
10234else
10235 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
10236fi
10237
278a7a38
AO
10238
10239
10240if test -n "$GCC_FOR_TARGET"; then
10241 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10242elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10243 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10244fi
10245
10246if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10247 for ncn_progname in gcc; do
10248 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10249set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10251$as_echo_n "checking for $ac_word... " >&6; }
10252if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10253 $as_echo_n "(cached) " >&6
278a7a38
AO
10254else
10255 if test -n "$GCC_FOR_TARGET"; then
10256 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10257else
10258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10259for as_dir in $PATH
10260do
10261 IFS=$as_save_IFS
10262 test -z "$as_dir" && as_dir=.
5213506e
RW
10263 for ac_exec_ext in '' $ac_executable_extensions; do
10264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10265 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10267 break 2
10268 fi
10269done
5213506e
RW
10270 done
10271IFS=$as_save_IFS
278a7a38
AO
10272
10273fi
10274fi
10275GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10276if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10278$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 10279else
5213506e
RW
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10281$as_echo "no" >&6; }
278a7a38
AO
10282fi
10283
5213506e 10284
278a7a38
AO
10285 done
10286fi
10287
10288if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10289 for ncn_progname in gcc; do
5213506e
RW
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10291$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10292 if test -x $with_build_time_tools/${ncn_progname}; then
10293 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10295$as_echo "yes" >&6; }
e8b05380
PB
10296 break
10297 else
5213506e
RW
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10299$as_echo "no" >&6; }
e8b05380
PB
10300 fi
10301 done
10302fi
10303
10304if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10305 for ncn_progname in gcc; do
10306 if test -n "$ncn_target_tool_prefix"; then
10307 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10308set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10310$as_echo_n "checking for $ac_word... " >&6; }
10311if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10312 $as_echo_n "(cached) " >&6
ca9f4b81 10313else
e8b05380
PB
10314 if test -n "$GCC_FOR_TARGET"; then
10315 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10316else
1c710c3c
DJ
10317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10318for as_dir in $PATH
10319do
10320 IFS=$as_save_IFS
10321 test -z "$as_dir" && as_dir=.
5213506e
RW
10322 for ac_exec_ext in '' $ac_executable_extensions; do
10323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10324 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10326 break 2
10327 fi
10328done
5213506e
RW
10329 done
10330IFS=$as_save_IFS
1c710c3c 10331
ca9f4b81
AO
10332fi
10333fi
1c710c3c 10334GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10335if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10337$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10338else
5213506e
RW
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10340$as_echo "no" >&6; }
ca9f4b81
AO
10341fi
10342
5213506e 10343
e8b05380
PB
10344 fi
10345 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10346 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10347set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10349$as_echo_n "checking for $ac_word... " >&6; }
10350if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10351 $as_echo_n "(cached) " >&6
ca9f4b81 10352else
e8b05380
PB
10353 if test -n "$GCC_FOR_TARGET"; then
10354 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10355else
1c710c3c
DJ
10356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10357for as_dir in $PATH
10358do
10359 IFS=$as_save_IFS
10360 test -z "$as_dir" && as_dir=.
5213506e
RW
10361 for ac_exec_ext in '' $ac_executable_extensions; do
10362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10363 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10365 break 2
10366 fi
10367done
5213506e
RW
10368 done
10369IFS=$as_save_IFS
1c710c3c 10370
ca9f4b81
AO
10371fi
10372fi
1c710c3c 10373GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10374if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10376$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10377else
5213506e
RW
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10379$as_echo "no" >&6; }
ca9f4b81 10380fi
1c710c3c 10381
5213506e 10382
e8b05380
PB
10383 fi
10384 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10385 done
10386fi
1c710c3c 10387
e8b05380
PB
10388if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10389 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10390else
10391 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10392fi
10393
278a7a38
AO
10394
10395
10396if test -n "$GCJ_FOR_TARGET"; then
10397 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10398elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10399 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10400fi
10401
10402if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10403 for ncn_progname in gcj; do
10404 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10405set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10407$as_echo_n "checking for $ac_word... " >&6; }
10408if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10409 $as_echo_n "(cached) " >&6
278a7a38
AO
10410else
10411 if test -n "$GCJ_FOR_TARGET"; then
10412 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10413else
10414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10415for as_dir in $PATH
10416do
10417 IFS=$as_save_IFS
10418 test -z "$as_dir" && as_dir=.
5213506e
RW
10419 for ac_exec_ext in '' $ac_executable_extensions; do
10420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10421 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10423 break 2
10424 fi
10425done
5213506e
RW
10426 done
10427IFS=$as_save_IFS
278a7a38
AO
10428
10429fi
10430fi
10431GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10432if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10434$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10435else
5213506e
RW
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10437$as_echo "no" >&6; }
278a7a38
AO
10438fi
10439
5213506e 10440
278a7a38
AO
10441 done
10442fi
10443
10444if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10445 for ncn_progname in gcj; do
5213506e
RW
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10447$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10448 if test -x $with_build_time_tools/${ncn_progname}; then
10449 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10451$as_echo "yes" >&6; }
e8b05380
PB
10452 break
10453 else
5213506e
RW
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10455$as_echo "no" >&6; }
e8b05380
PB
10456 fi
10457 done
10458fi
10459
10460if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10461 for ncn_progname in gcj; do
10462 if test -n "$ncn_target_tool_prefix"; then
10463 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10464set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10466$as_echo_n "checking for $ac_word... " >&6; }
10467if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10468 $as_echo_n "(cached) " >&6
e8b05380 10469else
fb0103e5
RG
10470 if test -n "$GCJ_FOR_TARGET"; then
10471 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10472else
1c710c3c
DJ
10473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10474for as_dir in $PATH
10475do
10476 IFS=$as_save_IFS
10477 test -z "$as_dir" && as_dir=.
5213506e
RW
10478 for ac_exec_ext in '' $ac_executable_extensions; do
10479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10480 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10482 break 2
10483 fi
10484done
5213506e
RW
10485 done
10486IFS=$as_save_IFS
1c710c3c 10487
e8b05380
PB
10488fi
10489fi
278a7a38
AO
10490GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10491if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10493$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10494else
5213506e
RW
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10496$as_echo "no" >&6; }
278a7a38
AO
10497fi
10498
5213506e 10499
278a7a38
AO
10500 fi
10501 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10502 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10503set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10505$as_echo_n "checking for $ac_word... " >&6; }
10506if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10507 $as_echo_n "(cached) " >&6
278a7a38
AO
10508else
10509 if test -n "$GCJ_FOR_TARGET"; then
10510 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10511else
10512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10513for as_dir in $PATH
10514do
10515 IFS=$as_save_IFS
10516 test -z "$as_dir" && as_dir=.
5213506e
RW
10517 for ac_exec_ext in '' $ac_executable_extensions; do
10518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10519 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10521 break 2
10522 fi
10523done
5213506e
RW
10524 done
10525IFS=$as_save_IFS
278a7a38
AO
10526
10527fi
10528fi
10529GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10530if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10532$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10533else
5213506e
RW
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10535$as_echo "no" >&6; }
278a7a38
AO
10536fi
10537
5213506e 10538
278a7a38
AO
10539 fi
10540 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10541 done
10542fi
10543
10544if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10545 set dummy gcj
10546 if test $build = $target ; then
10547 GCJ_FOR_TARGET="$2"
10548 else
10549 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10550 fi
1c00b503
PB
10551else
10552 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
10553fi
10554
10555
10556
10557if test -n "$GFORTRAN_FOR_TARGET"; then
10558 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10559elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10560 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10561fi
10562
278a7a38
AO
10563if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10564 for ncn_progname in gfortran; do
10565 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10566set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10568$as_echo_n "checking for $ac_word... " >&6; }
10569if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10570 $as_echo_n "(cached) " >&6
e8b05380 10571else
278a7a38
AO
10572 if test -n "$GFORTRAN_FOR_TARGET"; then
10573 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10574else
1c710c3c
DJ
10575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10576for as_dir in $PATH
10577do
10578 IFS=$as_save_IFS
10579 test -z "$as_dir" && as_dir=.
5213506e
RW
10580 for ac_exec_ext in '' $ac_executable_extensions; do
10581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10582 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10584 break 2
10585 fi
10586done
5213506e
RW
10587 done
10588IFS=$as_save_IFS
1c710c3c 10589
e8b05380
PB
10590fi
10591fi
278a7a38
AO
10592GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10593if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10595$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10596else
5213506e
RW
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10598$as_echo "no" >&6; }
e8b05380 10599fi
1c710c3c 10600
5213506e 10601
e8b05380
PB
10602 done
10603fi
1c710c3c 10604
278a7a38 10605if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10606 for ncn_progname in gfortran; do
5213506e
RW
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10608$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10609 if test -x $with_build_time_tools/${ncn_progname}; then
10610 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10612$as_echo "yes" >&6; }
e8b05380
PB
10613 break
10614 else
5213506e
RW
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10616$as_echo "no" >&6; }
e8b05380
PB
10617 fi
10618 done
10619fi
10620
10621if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10622 for ncn_progname in gfortran; do
10623 if test -n "$ncn_target_tool_prefix"; then
10624 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10625set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10627$as_echo_n "checking for $ac_word... " >&6; }
10628if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10629 $as_echo_n "(cached) " >&6
e8b05380
PB
10630else
10631 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10632 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10633else
10634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10635for as_dir in $PATH
10636do
10637 IFS=$as_save_IFS
10638 test -z "$as_dir" && as_dir=.
5213506e
RW
10639 for ac_exec_ext in '' $ac_executable_extensions; do
10640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10641 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10643 break 2
10644 fi
10645done
5213506e
RW
10646 done
10647IFS=$as_save_IFS
1c710c3c 10648
e8b05380
PB
10649fi
10650fi
1c710c3c 10651GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10652if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10654$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10655else
5213506e
RW
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10657$as_echo "no" >&6; }
e8b05380
PB
10658fi
10659
5213506e 10660
e8b05380
PB
10661 fi
10662 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10663 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10664set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10666$as_echo_n "checking for $ac_word... " >&6; }
10667if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10668 $as_echo_n "(cached) " >&6
e8b05380
PB
10669else
10670 if test -n "$GFORTRAN_FOR_TARGET"; then
10671 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10672else
1c710c3c
DJ
10673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10674for as_dir in $PATH
10675do
10676 IFS=$as_save_IFS
10677 test -z "$as_dir" && as_dir=.
5213506e
RW
10678 for ac_exec_ext in '' $ac_executable_extensions; do
10679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10680 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10682 break 2
10683 fi
10684done
5213506e
RW
10685 done
10686IFS=$as_save_IFS
1c710c3c 10687
e8b05380
PB
10688fi
10689fi
1c710c3c 10690GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10691if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10693$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10694else
5213506e
RW
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10696$as_echo "no" >&6; }
e8b05380 10697fi
1c710c3c 10698
5213506e 10699
e8b05380
PB
10700 fi
10701 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10702 done
10703fi
1c710c3c 10704
e8b05380
PB
10705if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10706 set dummy gfortran
2693c0b0 10707 if test $build = $target ; then
e8b05380 10708 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 10709 else
e8b05380
PB
10710 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10711 fi
1c00b503
PB
10712else
10713 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
10714fi
10715
10716
10717
632e2a07
ILT
10718if test -n "$GOC_FOR_TARGET"; then
10719 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10720elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10721 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10722fi
10723
10724if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10725 for ncn_progname in gccgo; do
10726 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10727set dummy ${ncn_progname}; ac_word=$2
10728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10729$as_echo_n "checking for $ac_word... " >&6; }
10730if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10731 $as_echo_n "(cached) " >&6
10732else
10733 if test -n "$GOC_FOR_TARGET"; then
10734 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10735else
10736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10737for as_dir in $PATH
10738do
10739 IFS=$as_save_IFS
10740 test -z "$as_dir" && as_dir=.
10741 for ac_exec_ext in '' $ac_executable_extensions; do
10742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10743 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10745 break 2
10746 fi
10747done
10748 done
10749IFS=$as_save_IFS
10750
10751fi
10752fi
10753GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10754if test -n "$GOC_FOR_TARGET"; then
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10756$as_echo "$GOC_FOR_TARGET" >&6; }
10757else
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10759$as_echo "no" >&6; }
10760fi
10761
10762
10763 done
10764fi
10765
10766if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10767 for ncn_progname in gccgo; do
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10769$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10770 if test -x $with_build_time_tools/${ncn_progname}; then
10771 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10773$as_echo "yes" >&6; }
10774 break
10775 else
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10777$as_echo "no" >&6; }
10778 fi
10779 done
10780fi
10781
10782if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10783 for ncn_progname in gccgo; do
10784 if test -n "$ncn_target_tool_prefix"; then
10785 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10786set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10788$as_echo_n "checking for $ac_word... " >&6; }
10789if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10790 $as_echo_n "(cached) " >&6
10791else
10792 if test -n "$GOC_FOR_TARGET"; then
10793 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10794else
10795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10796for as_dir in $PATH
10797do
10798 IFS=$as_save_IFS
10799 test -z "$as_dir" && as_dir=.
10800 for ac_exec_ext in '' $ac_executable_extensions; do
10801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10802 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10804 break 2
10805 fi
10806done
10807 done
10808IFS=$as_save_IFS
10809
10810fi
10811fi
10812GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10813if test -n "$GOC_FOR_TARGET"; then
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10815$as_echo "$GOC_FOR_TARGET" >&6; }
10816else
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10818$as_echo "no" >&6; }
10819fi
10820
10821
10822 fi
10823 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10824 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10825set dummy ${ncn_progname}; ac_word=$2
10826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10827$as_echo_n "checking for $ac_word... " >&6; }
10828if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10829 $as_echo_n "(cached) " >&6
10830else
10831 if test -n "$GOC_FOR_TARGET"; then
10832 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10833else
10834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10835for as_dir in $PATH
10836do
10837 IFS=$as_save_IFS
10838 test -z "$as_dir" && as_dir=.
10839 for ac_exec_ext in '' $ac_executable_extensions; do
10840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10841 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10843 break 2
10844 fi
10845done
10846 done
10847IFS=$as_save_IFS
10848
10849fi
10850fi
10851GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10852if test -n "$GOC_FOR_TARGET"; then
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10854$as_echo "$GOC_FOR_TARGET" >&6; }
10855else
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10857$as_echo "no" >&6; }
10858fi
10859
10860
10861 fi
10862 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10863 done
10864fi
10865
10866if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10867 set dummy gccgo
10868 if test $build = $target ; then
10869 GOC_FOR_TARGET="$2"
10870 else
10871 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10872 fi
10873else
10874 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10875fi
10876
10877
10878
e8b05380
PB
10879cat > conftest.c << \EOF
10880#ifdef __GNUC__
10881 gcc_yay;
10882#endif
10883EOF
10884if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10885 have_gcc_for_target=yes
10886else
10887 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10888 have_gcc_for_target=no
10889fi
10890rm conftest.c
10891
10892
10893
10894
10895if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10896 if test -n "$with_build_time_tools"; then
5213506e
RW
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10898$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10899 if test -x $with_build_time_tools/ar; then
10900 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10901 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10903$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 10904 else
5213506e
RW
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10906$as_echo "no" >&6; }
d1f8db0c 10907 fi
e8b05380
PB
10908 elif test $build != $host && test $have_gcc_for_target = yes; then
10909 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
10910 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10911 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
10912 fi
10913fi
3e19841a 10914if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10915 # Extract the first word of "ar", so it can be a program name with args.
10916set dummy ar; ac_word=$2
5213506e
RW
10917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10918$as_echo_n "checking for $ac_word... " >&6; }
10919if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10920 $as_echo_n "(cached) " >&6
e8b05380 10921else
1c710c3c
DJ
10922 case $AR_FOR_TARGET in
10923 [\\/]* | ?:[\\/]*)
e8b05380
PB
10924 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10925 ;;
e8b05380 10926 *)
1c710c3c
DJ
10927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10928for as_dir in $gcc_cv_tool_dirs
10929do
10930 IFS=$as_save_IFS
10931 test -z "$as_dir" && as_dir=.
5213506e
RW
10932 for ac_exec_ext in '' $ac_executable_extensions; do
10933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10934 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10936 break 2
10937 fi
10938done
5213506e
RW
10939 done
10940IFS=$as_save_IFS
1c710c3c 10941
e8b05380
PB
10942 ;;
10943esac
10944fi
1c710c3c 10945AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 10946if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10948$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10949else
5213506e
RW
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10951$as_echo "no" >&6; }
4de997d1
PB
10952fi
10953
5213506e 10954
e8b05380
PB
10955fi
10956if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
10957
10958
10959if test -n "$AR_FOR_TARGET"; then
10960 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10961elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10962 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10963fi
10964
10965if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10966 for ncn_progname in ar; do
10967 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10968set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10970$as_echo_n "checking for $ac_word... " >&6; }
10971if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10972 $as_echo_n "(cached) " >&6
278a7a38
AO
10973else
10974 if test -n "$AR_FOR_TARGET"; then
10975 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10976else
10977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10978for as_dir in $PATH
10979do
10980 IFS=$as_save_IFS
10981 test -z "$as_dir" && as_dir=.
5213506e
RW
10982 for ac_exec_ext in '' $ac_executable_extensions; do
10983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10984 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10986 break 2
10987 fi
10988done
5213506e
RW
10989 done
10990IFS=$as_save_IFS
278a7a38
AO
10991
10992fi
10993fi
10994AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10995if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10997$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 10998else
5213506e
RW
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11000$as_echo "no" >&6; }
278a7a38
AO
11001fi
11002
5213506e 11003
278a7a38
AO
11004 done
11005fi
11006
11007if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11008 for ncn_progname in ar; do
5213506e
RW
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11010$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11011 if test -x $with_build_time_tools/${ncn_progname}; then
11012 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11014$as_echo "yes" >&6; }
e8b05380
PB
11015 break
11016 else
5213506e
RW
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11018$as_echo "no" >&6; }
e8b05380
PB
11019 fi
11020 done
11021fi
11022
11023if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11024 for ncn_progname in ar; do
11025 if test -n "$ncn_target_tool_prefix"; then
11026 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11027set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11029$as_echo_n "checking for $ac_word... " >&6; }
11030if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11031 $as_echo_n "(cached) " >&6
4de997d1 11032else
e8b05380
PB
11033 if test -n "$AR_FOR_TARGET"; then
11034 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 11035else
1c710c3c
DJ
11036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11037for as_dir in $PATH
11038do
11039 IFS=$as_save_IFS
11040 test -z "$as_dir" && as_dir=.
5213506e
RW
11041 for ac_exec_ext in '' $ac_executable_extensions; do
11042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11043 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11045 break 2
11046 fi
11047done
5213506e
RW
11048 done
11049IFS=$as_save_IFS
1c710c3c 11050
4de997d1
PB
11051fi
11052fi
1c710c3c 11053AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11054if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11056$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 11057else
5213506e
RW
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11059$as_echo "no" >&6; }
4de997d1
PB
11060fi
11061
5213506e 11062
e8b05380
PB
11063 fi
11064 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11065 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11066set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11068$as_echo_n "checking for $ac_word... " >&6; }
11069if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11070 $as_echo_n "(cached) " >&6
e8b05380
PB
11071else
11072 if test -n "$AR_FOR_TARGET"; then
11073 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11074else
1c710c3c
DJ
11075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11076for as_dir in $PATH
11077do
11078 IFS=$as_save_IFS
11079 test -z "$as_dir" && as_dir=.
5213506e
RW
11080 for ac_exec_ext in '' $ac_executable_extensions; do
11081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11082 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 11083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11084 break 2
11085 fi
11086done
5213506e
RW
11087 done
11088IFS=$as_save_IFS
1c710c3c 11089
e8b05380
PB
11090fi
11091fi
1c710c3c 11092AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11093if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11095$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 11096else
5213506e
RW
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11098$as_echo "no" >&6; }
e8b05380 11099fi
1c710c3c 11100
5213506e 11101
e8b05380
PB
11102 fi
11103 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11104 done
11105fi
1c710c3c 11106
e8b05380
PB
11107if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11108 set dummy ar
11109 if test $build = $target ; then
11110 AR_FOR_TARGET="$2"
11111 else
11112 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 11113 fi
1c00b503
PB
11114else
11115 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
11116fi
11117
d1f8db0c
PB
11118else
11119 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
11120fi
11121
11122
11123
11124
11125if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11126 if test -n "$with_build_time_tools"; then
5213506e
RW
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11128$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11129 if test -x $with_build_time_tools/as; then
11130 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11131 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11133$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 11134 else
5213506e
RW
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11136$as_echo "no" >&6; }
d1f8db0c 11137 fi
e8b05380
PB
11138 elif test $build != $host && test $have_gcc_for_target = yes; then
11139 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
11140 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11141 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
11142 fi
11143fi
3e19841a 11144if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11145 # Extract the first word of "as", so it can be a program name with args.
11146set dummy as; ac_word=$2
5213506e
RW
11147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11148$as_echo_n "checking for $ac_word... " >&6; }
11149if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11150 $as_echo_n "(cached) " >&6
e8b05380 11151else
1c710c3c
DJ
11152 case $AS_FOR_TARGET in
11153 [\\/]* | ?:[\\/]*)
e8b05380
PB
11154 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11155 ;;
e8b05380 11156 *)
1c710c3c
DJ
11157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11158for as_dir in $gcc_cv_tool_dirs
11159do
11160 IFS=$as_save_IFS
11161 test -z "$as_dir" && as_dir=.
5213506e
RW
11162 for ac_exec_ext in '' $ac_executable_extensions; do
11163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11164 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11166 break 2
11167 fi
11168done
5213506e
RW
11169 done
11170IFS=$as_save_IFS
1c710c3c 11171
e8b05380
PB
11172 ;;
11173esac
11174fi
1c710c3c 11175AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 11176if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11178$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11179else
5213506e
RW
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11181$as_echo "no" >&6; }
e8b05380
PB
11182fi
11183
5213506e 11184
e8b05380
PB
11185fi
11186if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
11187
11188
11189if test -n "$AS_FOR_TARGET"; then
11190 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11191elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11192 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11193fi
11194
11195if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11196 for ncn_progname in as; do
11197 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11198set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11200$as_echo_n "checking for $ac_word... " >&6; }
11201if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11202 $as_echo_n "(cached) " >&6
278a7a38
AO
11203else
11204 if test -n "$AS_FOR_TARGET"; then
11205 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11206else
11207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11208for as_dir in $PATH
11209do
11210 IFS=$as_save_IFS
11211 test -z "$as_dir" && as_dir=.
5213506e
RW
11212 for ac_exec_ext in '' $ac_executable_extensions; do
11213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11214 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11216 break 2
11217 fi
11218done
5213506e
RW
11219 done
11220IFS=$as_save_IFS
278a7a38
AO
11221
11222fi
11223fi
11224AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11225if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11227$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 11228else
5213506e
RW
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11230$as_echo "no" >&6; }
278a7a38
AO
11231fi
11232
5213506e 11233
278a7a38
AO
11234 done
11235fi
11236
11237if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11238 for ncn_progname in as; do
5213506e
RW
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11240$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11241 if test -x $with_build_time_tools/${ncn_progname}; then
11242 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11244$as_echo "yes" >&6; }
e8b05380
PB
11245 break
11246 else
5213506e
RW
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11248$as_echo "no" >&6; }
e8b05380
PB
11249 fi
11250 done
11251fi
11252
11253if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11254 for ncn_progname in as; do
11255 if test -n "$ncn_target_tool_prefix"; then
11256 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11257set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11259$as_echo_n "checking for $ac_word... " >&6; }
11260if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11261 $as_echo_n "(cached) " >&6
e8b05380
PB
11262else
11263 if test -n "$AS_FOR_TARGET"; then
11264 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11265else
1c710c3c
DJ
11266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11267for as_dir in $PATH
11268do
11269 IFS=$as_save_IFS
11270 test -z "$as_dir" && as_dir=.
5213506e
RW
11271 for ac_exec_ext in '' $ac_executable_extensions; do
11272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11273 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11275 break 2
11276 fi
11277done
5213506e
RW
11278 done
11279IFS=$as_save_IFS
1c710c3c 11280
e8b05380
PB
11281fi
11282fi
1c710c3c 11283AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11284if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11286$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11287else
5213506e
RW
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11289$as_echo "no" >&6; }
e8b05380
PB
11290fi
11291
5213506e 11292
e8b05380
PB
11293 fi
11294 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11295 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11296set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11298$as_echo_n "checking for $ac_word... " >&6; }
11299if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11300 $as_echo_n "(cached) " >&6
4de997d1 11301else
e8b05380
PB
11302 if test -n "$AS_FOR_TARGET"; then
11303 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 11304else
1c710c3c
DJ
11305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11306for as_dir in $PATH
11307do
11308 IFS=$as_save_IFS
11309 test -z "$as_dir" && as_dir=.
5213506e
RW
11310 for ac_exec_ext in '' $ac_executable_extensions; do
11311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11312 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11314 break 2
11315 fi
11316done
5213506e
RW
11317 done
11318IFS=$as_save_IFS
1c710c3c 11319
4de997d1
PB
11320fi
11321fi
1c710c3c 11322AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11323if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11325$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 11326else
5213506e
RW
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11328$as_echo "no" >&6; }
4de997d1 11329fi
1c710c3c 11330
5213506e 11331
e8b05380
PB
11332 fi
11333 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11334 done
11335fi
1c710c3c 11336
e8b05380
PB
11337if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11338 set dummy as
11339 if test $build = $target ; then
11340 AS_FOR_TARGET="$2"
11341 else
11342 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 11343 fi
1c00b503
PB
11344else
11345 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 11346fi
2693c0b0 11347
d1f8db0c
PB
11348else
11349 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
11350fi
11351
e8b05380
PB
11352
11353
11354
11355if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11356 if test -n "$with_build_time_tools"; then
5213506e
RW
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11358$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11359 if test -x $with_build_time_tools/dlltool; then
11360 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11361 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11363$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 11364 else
5213506e
RW
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11366$as_echo "no" >&6; }
d1f8db0c 11367 fi
e8b05380
PB
11368 elif test $build != $host && test $have_gcc_for_target = yes; then
11369 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
11370 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11371 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
11372 fi
11373fi
3e19841a 11374if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11375 # Extract the first word of "dlltool", so it can be a program name with args.
11376set dummy dlltool; ac_word=$2
5213506e
RW
11377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11378$as_echo_n "checking for $ac_word... " >&6; }
11379if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11380 $as_echo_n "(cached) " >&6
4de997d1 11381else
1c710c3c
DJ
11382 case $DLLTOOL_FOR_TARGET in
11383 [\\/]* | ?:[\\/]*)
e8b05380
PB
11384 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11385 ;;
e8b05380 11386 *)
1c710c3c
DJ
11387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11388for as_dir in $gcc_cv_tool_dirs
11389do
11390 IFS=$as_save_IFS
11391 test -z "$as_dir" && as_dir=.
5213506e
RW
11392 for ac_exec_ext in '' $ac_executable_extensions; do
11393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11394 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11396 break 2
11397 fi
11398done
5213506e
RW
11399 done
11400IFS=$as_save_IFS
1c710c3c 11401
e8b05380
PB
11402 ;;
11403esac
4de997d1 11404fi
1c710c3c 11405DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 11406if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11408$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11409else
5213506e
RW
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11411$as_echo "no" >&6; }
4de997d1
PB
11412fi
11413
5213506e 11414
e8b05380
PB
11415fi
11416if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
11417
11418
11419if test -n "$DLLTOOL_FOR_TARGET"; then
11420 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11421elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11422 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11423fi
11424
11425if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11426 for ncn_progname in dlltool; do
11427 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11428set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11430$as_echo_n "checking for $ac_word... " >&6; }
11431if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11432 $as_echo_n "(cached) " >&6
278a7a38
AO
11433else
11434 if test -n "$DLLTOOL_FOR_TARGET"; then
11435 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11436else
11437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11438for as_dir in $PATH
11439do
11440 IFS=$as_save_IFS
11441 test -z "$as_dir" && as_dir=.
5213506e
RW
11442 for ac_exec_ext in '' $ac_executable_extensions; do
11443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11444 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11446 break 2
11447 fi
11448done
5213506e
RW
11449 done
11450IFS=$as_save_IFS
278a7a38
AO
11451
11452fi
11453fi
11454DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11455if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11457$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11458else
5213506e
RW
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11460$as_echo "no" >&6; }
278a7a38
AO
11461fi
11462
5213506e 11463
278a7a38
AO
11464 done
11465fi
11466
11467if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11468 for ncn_progname in dlltool; do
5213506e
RW
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11470$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11471 if test -x $with_build_time_tools/${ncn_progname}; then
11472 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11474$as_echo "yes" >&6; }
e8b05380
PB
11475 break
11476 else
5213506e
RW
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11478$as_echo "no" >&6; }
e8b05380
PB
11479 fi
11480 done
11481fi
11482
11483if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11484 for ncn_progname in dlltool; do
11485 if test -n "$ncn_target_tool_prefix"; then
11486 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11487set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11489$as_echo_n "checking for $ac_word... " >&6; }
11490if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11491 $as_echo_n "(cached) " >&6
4de997d1 11492else
e8b05380
PB
11493 if test -n "$DLLTOOL_FOR_TARGET"; then
11494 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11495else
1c710c3c
DJ
11496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11497for as_dir in $PATH
11498do
11499 IFS=$as_save_IFS
11500 test -z "$as_dir" && as_dir=.
5213506e
RW
11501 for ac_exec_ext in '' $ac_executable_extensions; do
11502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11503 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11505 break 2
11506 fi
11507done
5213506e
RW
11508 done
11509IFS=$as_save_IFS
1c710c3c 11510
4de997d1
PB
11511fi
11512fi
1c710c3c 11513DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11514if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11516$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11517else
5213506e
RW
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11519$as_echo "no" >&6; }
4de997d1 11520fi
4de997d1 11521
5213506e 11522
e8b05380
PB
11523 fi
11524 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11525 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11526set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11528$as_echo_n "checking for $ac_word... " >&6; }
11529if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11530 $as_echo_n "(cached) " >&6
4de997d1 11531else
e8b05380
PB
11532 if test -n "$DLLTOOL_FOR_TARGET"; then
11533 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11534else
1c710c3c
DJ
11535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11536for as_dir in $PATH
11537do
11538 IFS=$as_save_IFS
11539 test -z "$as_dir" && as_dir=.
5213506e
RW
11540 for ac_exec_ext in '' $ac_executable_extensions; do
11541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11542 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11544 break 2
11545 fi
11546done
5213506e
RW
11547 done
11548IFS=$as_save_IFS
1c710c3c 11549
4de997d1
PB
11550fi
11551fi
1c710c3c 11552DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11553if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11555$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11556else
5213506e
RW
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11558$as_echo "no" >&6; }
4de997d1 11559fi
1c710c3c 11560
5213506e 11561
e8b05380
PB
11562 fi
11563 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11564 done
11565fi
1c710c3c 11566
e8b05380
PB
11567if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11568 set dummy dlltool
11569 if test $build = $target ; then
11570 DLLTOOL_FOR_TARGET="$2"
11571 else
11572 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11573 fi
1c00b503
PB
11574else
11575 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
11576fi
11577
d1f8db0c
PB
11578else
11579 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
11580fi
11581
4de997d1 11582
e8b05380
PB
11583
11584
11585if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11586 if test -n "$with_build_time_tools"; then
5213506e
RW
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11588$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11589 if test -x $with_build_time_tools/ld; then
11590 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11591 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11593$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 11594 else
5213506e
RW
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11596$as_echo "no" >&6; }
d1f8db0c 11597 fi
e8b05380
PB
11598 elif test $build != $host && test $have_gcc_for_target = yes; then
11599 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
11600 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11601 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 11602 fi
e8b05380 11603fi
3e19841a 11604if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11605 # Extract the first word of "ld", so it can be a program name with args.
11606set dummy ld; ac_word=$2
5213506e
RW
11607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11608$as_echo_n "checking for $ac_word... " >&6; }
11609if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11610 $as_echo_n "(cached) " >&6
4de997d1 11611else
1c710c3c
DJ
11612 case $LD_FOR_TARGET in
11613 [\\/]* | ?:[\\/]*)
e8b05380
PB
11614 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11615 ;;
e8b05380 11616 *)
1c710c3c
DJ
11617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11618for as_dir in $gcc_cv_tool_dirs
11619do
11620 IFS=$as_save_IFS
11621 test -z "$as_dir" && as_dir=.
5213506e
RW
11622 for ac_exec_ext in '' $ac_executable_extensions; do
11623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11624 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11626 break 2
11627 fi
11628done
5213506e
RW
11629 done
11630IFS=$as_save_IFS
1c710c3c 11631
e8b05380
PB
11632 ;;
11633esac
4de997d1 11634fi
1c710c3c 11635LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 11636if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11638$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 11639else
5213506e
RW
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11641$as_echo "no" >&6; }
4de997d1 11642fi
2693c0b0 11643
5213506e 11644
e8b05380
PB
11645fi
11646if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
11647
11648
11649if test -n "$LD_FOR_TARGET"; then
11650 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11651elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11652 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11653fi
11654
11655if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11656 for ncn_progname in ld; do
11657 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11658set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11660$as_echo_n "checking for $ac_word... " >&6; }
11661if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11662 $as_echo_n "(cached) " >&6
278a7a38
AO
11663else
11664 if test -n "$LD_FOR_TARGET"; then
11665 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11666else
11667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11668for as_dir in $PATH
11669do
11670 IFS=$as_save_IFS
11671 test -z "$as_dir" && as_dir=.
5213506e
RW
11672 for ac_exec_ext in '' $ac_executable_extensions; do
11673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11674 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11676 break 2
11677 fi
11678done
5213506e
RW
11679 done
11680IFS=$as_save_IFS
278a7a38
AO
11681
11682fi
11683fi
11684LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11685if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11687$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 11688else
5213506e
RW
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11690$as_echo "no" >&6; }
278a7a38
AO
11691fi
11692
5213506e 11693
278a7a38
AO
11694 done
11695fi
11696
11697if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11698 for ncn_progname in ld; do
5213506e
RW
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11700$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11701 if test -x $with_build_time_tools/${ncn_progname}; then
11702 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11704$as_echo "yes" >&6; }
e8b05380
PB
11705 break
11706 else
5213506e
RW
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11708$as_echo "no" >&6; }
e8b05380
PB
11709 fi
11710 done
ca9f4b81
AO
11711fi
11712
e8b05380
PB
11713if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11714 for ncn_progname in ld; do
11715 if test -n "$ncn_target_tool_prefix"; then
11716 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11717set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11719$as_echo_n "checking for $ac_word... " >&6; }
11720if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11721 $as_echo_n "(cached) " >&6
ca9f4b81 11722else
4de997d1
PB
11723 if test -n "$LD_FOR_TARGET"; then
11724 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11725else
1c710c3c
DJ
11726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11727for as_dir in $PATH
11728do
11729 IFS=$as_save_IFS
11730 test -z "$as_dir" && as_dir=.
5213506e
RW
11731 for ac_exec_ext in '' $ac_executable_extensions; do
11732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11733 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11735 break 2
11736 fi
11737done
5213506e
RW
11738 done
11739IFS=$as_save_IFS
1c710c3c 11740
ca9f4b81
AO
11741fi
11742fi
1c710c3c 11743LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 11744if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11746$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11747else
5213506e
RW
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11749$as_echo "no" >&6; }
ca9f4b81
AO
11750fi
11751
5213506e 11752
e8b05380
PB
11753 fi
11754 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11755 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11756set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11758$as_echo_n "checking for $ac_word... " >&6; }
11759if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11760 $as_echo_n "(cached) " >&6
ca9f4b81 11761else
2693c0b0
PB
11762 if test -n "$LD_FOR_TARGET"; then
11763 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11764else
1c710c3c
DJ
11765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11766for as_dir in $PATH
11767do
11768 IFS=$as_save_IFS
11769 test -z "$as_dir" && as_dir=.
5213506e
RW
11770 for ac_exec_ext in '' $ac_executable_extensions; do
11771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11772 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11774 break 2
11775 fi
11776done
5213506e
RW
11777 done
11778IFS=$as_save_IFS
1c710c3c 11779
ca9f4b81
AO
11780fi
11781fi
1c710c3c 11782LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 11783if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11785$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11786else
5213506e
RW
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11788$as_echo "no" >&6; }
ca9f4b81 11789fi
1c710c3c 11790
5213506e 11791
e8b05380
PB
11792 fi
11793 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11794 done
11795fi
1c710c3c 11796
2693c0b0
PB
11797if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11798 set dummy ld
11799 if test $build = $target ; then
11800 LD_FOR_TARGET="$2"
ca9f4b81 11801 else
2693c0b0 11802 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11803 fi
1c00b503
PB
11804else
11805 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
11806fi
11807
d1f8db0c
PB
11808else
11809 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
11810fi
11811
11812
11813
11814
11815if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11816 if test -n "$with_build_time_tools"; then
5213506e
RW
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11818$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11819 if test -x $with_build_time_tools/lipo; then
11820 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11821 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11823$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 11824 else
5213506e
RW
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11826$as_echo "no" >&6; }
d1f8db0c 11827 fi
e8b05380
PB
11828 elif test $build != $host && test $have_gcc_for_target = yes; then
11829 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
11830 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11831 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
11832 fi
11833fi
278a7a38
AO
11834if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11835 # Extract the first word of "lipo", so it can be a program name with args.
11836set dummy lipo; ac_word=$2
5213506e
RW
11837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11838$as_echo_n "checking for $ac_word... " >&6; }
11839if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11840 $as_echo_n "(cached) " >&6
278a7a38
AO
11841else
11842 case $LIPO_FOR_TARGET in
11843 [\\/]* | ?:[\\/]*)
11844 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11845 ;;
11846 *)
11847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11848for as_dir in $gcc_cv_tool_dirs
11849do
11850 IFS=$as_save_IFS
11851 test -z "$as_dir" && as_dir=.
5213506e
RW
11852 for ac_exec_ext in '' $ac_executable_extensions; do
11853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11854 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11856 break 2
11857 fi
11858done
5213506e
RW
11859 done
11860IFS=$as_save_IFS
278a7a38
AO
11861
11862 ;;
11863esac
11864fi
11865LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 11866if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11868$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 11869else
5213506e
RW
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11871$as_echo "no" >&6; }
278a7a38
AO
11872fi
11873
5213506e 11874
278a7a38
AO
11875fi
11876if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11877
11878
11879if test -n "$LIPO_FOR_TARGET"; then
11880 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11881elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11882 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11883fi
11884
11885if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11886 for ncn_progname in lipo; do
11887 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11888set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11890$as_echo_n "checking for $ac_word... " >&6; }
11891if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11892 $as_echo_n "(cached) " >&6
e8b05380 11893else
278a7a38
AO
11894 if test -n "$LIPO_FOR_TARGET"; then
11895 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11896else
11897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11898for as_dir in $PATH
1c710c3c
DJ
11899do
11900 IFS=$as_save_IFS
11901 test -z "$as_dir" && as_dir=.
5213506e
RW
11902 for ac_exec_ext in '' $ac_executable_extensions; do
11903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11904 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11906 break 2
11907 fi
11908done
5213506e
RW
11909 done
11910IFS=$as_save_IFS
1c710c3c 11911
e8b05380 11912fi
278a7a38
AO
11913fi
11914LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 11915if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11917$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 11918else
5213506e
RW
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11920$as_echo "no" >&6; }
e8b05380
PB
11921fi
11922
5213506e 11923
278a7a38 11924 done
e8b05380 11925fi
278a7a38
AO
11926
11927if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11928 for ncn_progname in lipo; do
5213506e
RW
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11930$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11931 if test -x $with_build_time_tools/${ncn_progname}; then
11932 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11934$as_echo "yes" >&6; }
e8b05380
PB
11935 break
11936 else
5213506e
RW
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11938$as_echo "no" >&6; }
e8b05380
PB
11939 fi
11940 done
11941fi
11942
11943if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11944 for ncn_progname in lipo; do
11945 if test -n "$ncn_target_tool_prefix"; then
11946 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11947set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11949$as_echo_n "checking for $ac_word... " >&6; }
11950if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11951 $as_echo_n "(cached) " >&6
040b1c5a
GK
11952else
11953 if test -n "$LIPO_FOR_TARGET"; then
11954 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11955else
1c710c3c
DJ
11956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11957for as_dir in $PATH
11958do
11959 IFS=$as_save_IFS
11960 test -z "$as_dir" && as_dir=.
5213506e
RW
11961 for ac_exec_ext in '' $ac_executable_extensions; do
11962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11963 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11965 break 2
11966 fi
11967done
5213506e
RW
11968 done
11969IFS=$as_save_IFS
1c710c3c 11970
040b1c5a
GK
11971fi
11972fi
1c710c3c 11973LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11974if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11976$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11977else
5213506e
RW
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979$as_echo "no" >&6; }
040b1c5a
GK
11980fi
11981
5213506e 11982
e8b05380
PB
11983 fi
11984 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11985 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 11986set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11988$as_echo_n "checking for $ac_word... " >&6; }
11989if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11990 $as_echo_n "(cached) " >&6
040b1c5a
GK
11991else
11992 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
11993 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11994else
1c710c3c
DJ
11995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11996for as_dir in $PATH
11997do
11998 IFS=$as_save_IFS
11999 test -z "$as_dir" && as_dir=.
5213506e
RW
12000 for ac_exec_ext in '' $ac_executable_extensions; do
12001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12002 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 12003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12004 break 2
12005 fi
12006done
5213506e
RW
12007 done
12008IFS=$as_save_IFS
1c710c3c 12009
040b1c5a
GK
12010fi
12011fi
1c710c3c 12012LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 12013if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12015$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 12016else
5213506e
RW
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12018$as_echo "no" >&6; }
040b1c5a 12019fi
1c710c3c 12020
5213506e 12021
e8b05380
PB
12022 fi
12023 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12024 done
12025fi
1c710c3c 12026
040b1c5a
GK
12027if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12028 set dummy lipo
12029 if test $build = $target ; then
12030 LIPO_FOR_TARGET="$2"
12031 else
12032 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12033 fi
1c00b503
PB
12034else
12035 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
12036fi
12037
d1f8db0c
PB
12038else
12039 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
12040fi
12041
12042
12043
12044
12045if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12046 if test -n "$with_build_time_tools"; then
5213506e
RW
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12048$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12049 if test -x $with_build_time_tools/nm; then
12050 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12051 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12053$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 12054 else
5213506e
RW
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12056$as_echo "no" >&6; }
d1f8db0c 12057 fi
e8b05380
PB
12058 elif test $build != $host && test $have_gcc_for_target = yes; then
12059 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
12060 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12061 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
12062 fi
12063fi
3e19841a 12064if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12065 # Extract the first word of "nm", so it can be a program name with args.
12066set dummy nm; ac_word=$2
5213506e
RW
12067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12068$as_echo_n "checking for $ac_word... " >&6; }
12069if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12070 $as_echo_n "(cached) " >&6
e8b05380 12071else
1c710c3c
DJ
12072 case $NM_FOR_TARGET in
12073 [\\/]* | ?:[\\/]*)
e8b05380
PB
12074 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12075 ;;
e8b05380 12076 *)
1c710c3c
DJ
12077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12078for as_dir in $gcc_cv_tool_dirs
12079do
12080 IFS=$as_save_IFS
12081 test -z "$as_dir" && as_dir=.
5213506e
RW
12082 for ac_exec_ext in '' $ac_executable_extensions; do
12083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12084 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12086 break 2
12087 fi
12088done
5213506e
RW
12089 done
12090IFS=$as_save_IFS
1c710c3c 12091
e8b05380
PB
12092 ;;
12093esac
12094fi
1c710c3c 12095NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 12096if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12098$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 12099else
5213506e
RW
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12101$as_echo "no" >&6; }
e8b05380
PB
12102fi
12103
5213506e 12104
e8b05380
PB
12105fi
12106if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
12107
12108
12109if test -n "$NM_FOR_TARGET"; then
12110 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12111elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12112 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12113fi
12114
12115if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12116 for ncn_progname in nm; do
12117 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12118set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12120$as_echo_n "checking for $ac_word... " >&6; }
12121if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12122 $as_echo_n "(cached) " >&6
278a7a38
AO
12123else
12124 if test -n "$NM_FOR_TARGET"; then
12125 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12126else
12127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12128for as_dir in $PATH
12129do
12130 IFS=$as_save_IFS
12131 test -z "$as_dir" && as_dir=.
5213506e
RW
12132 for ac_exec_ext in '' $ac_executable_extensions; do
12133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12134 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12136 break 2
12137 fi
12138done
5213506e
RW
12139 done
12140IFS=$as_save_IFS
278a7a38
AO
12141
12142fi
12143fi
12144NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12145if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12147$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 12148else
5213506e
RW
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150$as_echo "no" >&6; }
278a7a38
AO
12151fi
12152
5213506e 12153
278a7a38
AO
12154 done
12155fi
12156
12157if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12158 for ncn_progname in nm; do
5213506e
RW
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12160$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12161 if test -x $with_build_time_tools/${ncn_progname}; then
12162 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12164$as_echo "yes" >&6; }
e8b05380
PB
12165 break
12166 else
5213506e
RW
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12168$as_echo "no" >&6; }
e8b05380
PB
12169 fi
12170 done
12171fi
12172
12173if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12174 for ncn_progname in nm; do
12175 if test -n "$ncn_target_tool_prefix"; then
12176 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12177set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12179$as_echo_n "checking for $ac_word... " >&6; }
12180if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12181 $as_echo_n "(cached) " >&6
ca9f4b81 12182else
4de997d1
PB
12183 if test -n "$NM_FOR_TARGET"; then
12184 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12185else
1c710c3c
DJ
12186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12187for as_dir in $PATH
12188do
12189 IFS=$as_save_IFS
12190 test -z "$as_dir" && as_dir=.
5213506e
RW
12191 for ac_exec_ext in '' $ac_executable_extensions; do
12192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12193 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12195 break 2
12196 fi
12197done
5213506e
RW
12198 done
12199IFS=$as_save_IFS
1c710c3c 12200
ca9f4b81
AO
12201fi
12202fi
1c710c3c 12203NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 12204if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12206$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12207else
5213506e
RW
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12209$as_echo "no" >&6; }
ca9f4b81
AO
12210fi
12211
5213506e 12212
e8b05380
PB
12213 fi
12214 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12215 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12216set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12218$as_echo_n "checking for $ac_word... " >&6; }
12219if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12220 $as_echo_n "(cached) " >&6
ca9f4b81 12221else
2693c0b0
PB
12222 if test -n "$NM_FOR_TARGET"; then
12223 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12224else
1c710c3c
DJ
12225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12226for as_dir in $PATH
12227do
12228 IFS=$as_save_IFS
12229 test -z "$as_dir" && as_dir=.
5213506e
RW
12230 for ac_exec_ext in '' $ac_executable_extensions; do
12231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12232 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12234 break 2
12235 fi
12236done
5213506e
RW
12237 done
12238IFS=$as_save_IFS
1c710c3c 12239
ca9f4b81
AO
12240fi
12241fi
1c710c3c 12242NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 12243if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12245$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12246else
5213506e
RW
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12248$as_echo "no" >&6; }
ca9f4b81 12249fi
1c710c3c 12250
5213506e 12251
e8b05380
PB
12252 fi
12253 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12254 done
12255fi
1c710c3c 12256
2693c0b0
PB
12257if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12258 set dummy nm
12259 if test $build = $target ; then
12260 NM_FOR_TARGET="$2"
ca9f4b81 12261 else
2693c0b0 12262 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12263 fi
1c00b503
PB
12264else
12265 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
12266fi
12267
d1f8db0c
PB
12268else
12269 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
12270fi
12271
12272
12273
12274
12275if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12276 if test -n "$with_build_time_tools"; then
5213506e
RW
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12278$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12279 if test -x $with_build_time_tools/objdump; then
12280 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12281 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12283$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 12284 else
5213506e
RW
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12286$as_echo "no" >&6; }
d1f8db0c 12287 fi
e8b05380
PB
12288 elif test $build != $host && test $have_gcc_for_target = yes; then
12289 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
12290 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12291 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
12292 fi
12293fi
3e19841a 12294if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12295 # Extract the first word of "objdump", so it can be a program name with args.
12296set dummy objdump; ac_word=$2
5213506e
RW
12297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12298$as_echo_n "checking for $ac_word... " >&6; }
12299if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12300 $as_echo_n "(cached) " >&6
e8b05380 12301else
1c710c3c
DJ
12302 case $OBJDUMP_FOR_TARGET in
12303 [\\/]* | ?:[\\/]*)
e8b05380
PB
12304 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12305 ;;
e8b05380 12306 *)
1c710c3c
DJ
12307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12308for as_dir in $gcc_cv_tool_dirs
12309do
12310 IFS=$as_save_IFS
12311 test -z "$as_dir" && as_dir=.
5213506e
RW
12312 for ac_exec_ext in '' $ac_executable_extensions; do
12313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12314 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12316 break 2
12317 fi
12318done
5213506e
RW
12319 done
12320IFS=$as_save_IFS
1c710c3c 12321
e8b05380
PB
12322 ;;
12323esac
12324fi
1c710c3c 12325OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 12326if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12328$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 12329else
5213506e
RW
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12331$as_echo "no" >&6; }
e8b05380
PB
12332fi
12333
5213506e 12334
e8b05380
PB
12335fi
12336if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
12337
12338
12339if test -n "$OBJDUMP_FOR_TARGET"; then
12340 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12341elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12342 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12343fi
12344
12345if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12346 for ncn_progname in objdump; do
12347 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12348set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12350$as_echo_n "checking for $ac_word... " >&6; }
12351if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12352 $as_echo_n "(cached) " >&6
278a7a38
AO
12353else
12354 if test -n "$OBJDUMP_FOR_TARGET"; then
12355 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12356else
12357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12358for as_dir in $PATH
12359do
12360 IFS=$as_save_IFS
12361 test -z "$as_dir" && as_dir=.
5213506e
RW
12362 for ac_exec_ext in '' $ac_executable_extensions; do
12363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12364 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12366 break 2
12367 fi
12368done
5213506e
RW
12369 done
12370IFS=$as_save_IFS
278a7a38
AO
12371
12372fi
12373fi
12374OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12375if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12377$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 12378else
5213506e
RW
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12380$as_echo "no" >&6; }
278a7a38
AO
12381fi
12382
5213506e 12383
278a7a38
AO
12384 done
12385fi
12386
12387if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12388 for ncn_progname in objdump; do
5213506e
RW
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12390$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12391 if test -x $with_build_time_tools/${ncn_progname}; then
12392 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12394$as_echo "yes" >&6; }
e8b05380
PB
12395 break
12396 else
5213506e
RW
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12398$as_echo "no" >&6; }
e8b05380
PB
12399 fi
12400 done
12401fi
12402
12403if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12404 for ncn_progname in objdump; do
12405 if test -n "$ncn_target_tool_prefix"; then
12406 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12407set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12409$as_echo_n "checking for $ac_word... " >&6; }
12410if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12411 $as_echo_n "(cached) " >&6
d739199a
DJ
12412else
12413 if test -n "$OBJDUMP_FOR_TARGET"; then
12414 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12415else
1c710c3c
DJ
12416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12417for as_dir in $PATH
12418do
12419 IFS=$as_save_IFS
12420 test -z "$as_dir" && as_dir=.
5213506e
RW
12421 for ac_exec_ext in '' $ac_executable_extensions; do
12422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12423 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12425 break 2
12426 fi
12427done
5213506e
RW
12428 done
12429IFS=$as_save_IFS
1c710c3c 12430
d739199a
DJ
12431fi
12432fi
1c710c3c 12433OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12434if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12436$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12437else
5213506e
RW
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12439$as_echo "no" >&6; }
d739199a
DJ
12440fi
12441
5213506e 12442
e8b05380
PB
12443 fi
12444 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12445 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 12446set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12448$as_echo_n "checking for $ac_word... " >&6; }
12449if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12450 $as_echo_n "(cached) " >&6
d739199a
DJ
12451else
12452 if test -n "$OBJDUMP_FOR_TARGET"; then
12453 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12454else
1c710c3c
DJ
12455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12456for as_dir in $PATH
12457do
12458 IFS=$as_save_IFS
12459 test -z "$as_dir" && as_dir=.
5213506e
RW
12460 for ac_exec_ext in '' $ac_executable_extensions; do
12461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12462 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12464 break 2
12465 fi
12466done
5213506e
RW
12467 done
12468IFS=$as_save_IFS
1c710c3c 12469
d739199a
DJ
12470fi
12471fi
1c710c3c 12472OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12473if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12475$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12476else
5213506e
RW
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12478$as_echo "no" >&6; }
d739199a 12479fi
1c710c3c 12480
5213506e 12481
e8b05380
PB
12482 fi
12483 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12484 done
12485fi
1c710c3c 12486
d739199a
DJ
12487if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12488 set dummy objdump
12489 if test $build = $target ; then
12490 OBJDUMP_FOR_TARGET="$2"
12491 else
12492 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12493 fi
1c00b503
PB
12494else
12495 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
12496fi
12497
d1f8db0c
PB
12498else
12499 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
12500fi
12501
12502
12503
12504
12505if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12506 if test -n "$with_build_time_tools"; then
5213506e
RW
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12508$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12509 if test -x $with_build_time_tools/ranlib; then
12510 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12511 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12513$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 12514 else
5213506e
RW
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12516$as_echo "no" >&6; }
d1f8db0c 12517 fi
e8b05380
PB
12518 elif test $build != $host && test $have_gcc_for_target = yes; then
12519 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
12520 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12521 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
12522 fi
12523fi
3e19841a 12524if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12525 # Extract the first word of "ranlib", so it can be a program name with args.
12526set dummy ranlib; ac_word=$2
5213506e
RW
12527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12528$as_echo_n "checking for $ac_word... " >&6; }
12529if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12530 $as_echo_n "(cached) " >&6
e8b05380 12531else
1c710c3c
DJ
12532 case $RANLIB_FOR_TARGET in
12533 [\\/]* | ?:[\\/]*)
e8b05380
PB
12534 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12535 ;;
e8b05380 12536 *)
1c710c3c
DJ
12537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12538for as_dir in $gcc_cv_tool_dirs
12539do
12540 IFS=$as_save_IFS
12541 test -z "$as_dir" && as_dir=.
5213506e
RW
12542 for ac_exec_ext in '' $ac_executable_extensions; do
12543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12544 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12546 break 2
12547 fi
12548done
5213506e
RW
12549 done
12550IFS=$as_save_IFS
1c710c3c 12551
e8b05380
PB
12552 ;;
12553esac
12554fi
1c710c3c 12555RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 12556if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12558$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 12559else
5213506e
RW
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12561$as_echo "no" >&6; }
e8b05380
PB
12562fi
12563
5213506e 12564
e8b05380
PB
12565fi
12566if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
12567
12568
12569if test -n "$RANLIB_FOR_TARGET"; then
12570 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12571elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12572 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12573fi
12574
12575if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12576 for ncn_progname in ranlib; do
12577 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12578set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12580$as_echo_n "checking for $ac_word... " >&6; }
12581if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12582 $as_echo_n "(cached) " >&6
278a7a38
AO
12583else
12584 if test -n "$RANLIB_FOR_TARGET"; then
12585 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12586else
12587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12588for as_dir in $PATH
12589do
12590 IFS=$as_save_IFS
12591 test -z "$as_dir" && as_dir=.
5213506e
RW
12592 for ac_exec_ext in '' $ac_executable_extensions; do
12593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12594 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12596 break 2
12597 fi
12598done
5213506e
RW
12599 done
12600IFS=$as_save_IFS
278a7a38
AO
12601
12602fi
12603fi
12604RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12605if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12607$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 12608else
5213506e
RW
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12610$as_echo "no" >&6; }
278a7a38
AO
12611fi
12612
5213506e 12613
278a7a38
AO
12614 done
12615fi
12616
12617if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12618 for ncn_progname in ranlib; do
5213506e
RW
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12620$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12621 if test -x $with_build_time_tools/${ncn_progname}; then
12622 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12624$as_echo "yes" >&6; }
e8b05380
PB
12625 break
12626 else
5213506e
RW
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12628$as_echo "no" >&6; }
e8b05380
PB
12629 fi
12630 done
12631fi
12632
12633if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12634 for ncn_progname in ranlib; do
12635 if test -n "$ncn_target_tool_prefix"; then
12636 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 12637set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12639$as_echo_n "checking for $ac_word... " >&6; }
12640if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12641 $as_echo_n "(cached) " >&6
ca9f4b81 12642else
4de997d1
PB
12643 if test -n "$RANLIB_FOR_TARGET"; then
12644 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12645else
1c710c3c
DJ
12646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12647for as_dir in $PATH
12648do
12649 IFS=$as_save_IFS
12650 test -z "$as_dir" && as_dir=.
5213506e
RW
12651 for ac_exec_ext in '' $ac_executable_extensions; do
12652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12653 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12655 break 2
12656 fi
12657done
5213506e
RW
12658 done
12659IFS=$as_save_IFS
1c710c3c 12660
ca9f4b81
AO
12661fi
12662fi
1c710c3c 12663RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 12664if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12666$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12667else
5213506e
RW
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12669$as_echo "no" >&6; }
ca9f4b81
AO
12670fi
12671
5213506e 12672
e8b05380
PB
12673 fi
12674 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12675 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12676set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12678$as_echo_n "checking for $ac_word... " >&6; }
12679if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12680 $as_echo_n "(cached) " >&6
ca9f4b81 12681else
2693c0b0
PB
12682 if test -n "$RANLIB_FOR_TARGET"; then
12683 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12684else
1c710c3c
DJ
12685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12686for as_dir in $PATH
12687do
12688 IFS=$as_save_IFS
12689 test -z "$as_dir" && as_dir=.
5213506e
RW
12690 for ac_exec_ext in '' $ac_executable_extensions; do
12691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12692 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12694 break 2
12695 fi
12696done
5213506e
RW
12697 done
12698IFS=$as_save_IFS
1c710c3c 12699
ca9f4b81
AO
12700fi
12701fi
1c710c3c 12702RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 12703if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12705$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12706else
5213506e
RW
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12708$as_echo "no" >&6; }
ca9f4b81 12709fi
1c710c3c 12710
5213506e 12711
e8b05380
PB
12712 fi
12713 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12714 done
12715fi
1c710c3c 12716
e8b05380
PB
12717if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12718 set dummy ranlib
12719 if test $build = $target ; then
12720 RANLIB_FOR_TARGET="$2"
12721 else
12722 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12723 fi
1c00b503
PB
12724else
12725 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 12726fi
2693c0b0 12727
d1f8db0c
PB
12728else
12729 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
12730fi
12731
e8b05380
PB
12732
12733
12734
e7a82751
RM
12735if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12736 if test -n "$with_build_time_tools"; then
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12738$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12739 if test -x $with_build_time_tools/readelf; then
12740 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12741 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12743$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12744 else
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12746$as_echo "no" >&6; }
12747 fi
12748 elif test $build != $host && test $have_gcc_for_target = yes; then
12749 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12750 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12751 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12752 fi
12753fi
12754if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12755 # Extract the first word of "readelf", so it can be a program name with args.
12756set dummy readelf; ac_word=$2
12757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12758$as_echo_n "checking for $ac_word... " >&6; }
12759if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12760 $as_echo_n "(cached) " >&6
12761else
12762 case $READELF_FOR_TARGET in
12763 [\\/]* | ?:[\\/]*)
12764 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12765 ;;
12766 *)
12767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12768for as_dir in $gcc_cv_tool_dirs
12769do
12770 IFS=$as_save_IFS
12771 test -z "$as_dir" && as_dir=.
12772 for ac_exec_ext in '' $ac_executable_extensions; do
12773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12774 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12776 break 2
12777 fi
12778done
12779 done
12780IFS=$as_save_IFS
12781
12782 ;;
12783esac
12784fi
12785READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12786if test -n "$READELF_FOR_TARGET"; then
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12788$as_echo "$READELF_FOR_TARGET" >&6; }
12789else
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12791$as_echo "no" >&6; }
12792fi
12793
12794
12795fi
12796if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12797
12798
12799if test -n "$READELF_FOR_TARGET"; then
12800 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12801elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12802 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12803fi
12804
12805if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12806 for ncn_progname in readelf; do
12807 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12808set dummy ${ncn_progname}; ac_word=$2
12809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12810$as_echo_n "checking for $ac_word... " >&6; }
12811if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12812 $as_echo_n "(cached) " >&6
12813else
12814 if test -n "$READELF_FOR_TARGET"; then
12815 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12816else
12817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12818for as_dir in $PATH
12819do
12820 IFS=$as_save_IFS
12821 test -z "$as_dir" && as_dir=.
12822 for ac_exec_ext in '' $ac_executable_extensions; do
12823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12824 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12826 break 2
12827 fi
12828done
12829 done
12830IFS=$as_save_IFS
12831
12832fi
12833fi
12834READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12835if test -n "$READELF_FOR_TARGET"; then
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12837$as_echo "$READELF_FOR_TARGET" >&6; }
12838else
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12840$as_echo "no" >&6; }
12841fi
12842
12843
12844 done
12845fi
12846
12847if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12848 for ncn_progname in readelf; do
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12850$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12851 if test -x $with_build_time_tools/${ncn_progname}; then
12852 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12854$as_echo "yes" >&6; }
12855 break
12856 else
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12858$as_echo "no" >&6; }
12859 fi
12860 done
12861fi
12862
12863if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12864 for ncn_progname in readelf; do
12865 if test -n "$ncn_target_tool_prefix"; then
12866 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12867set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12869$as_echo_n "checking for $ac_word... " >&6; }
12870if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12871 $as_echo_n "(cached) " >&6
12872else
12873 if test -n "$READELF_FOR_TARGET"; then
12874 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12875else
12876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12877for as_dir in $PATH
12878do
12879 IFS=$as_save_IFS
12880 test -z "$as_dir" && as_dir=.
12881 for ac_exec_ext in '' $ac_executable_extensions; do
12882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12883 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12885 break 2
12886 fi
12887done
12888 done
12889IFS=$as_save_IFS
12890
12891fi
12892fi
12893READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12894if test -n "$READELF_FOR_TARGET"; then
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12896$as_echo "$READELF_FOR_TARGET" >&6; }
12897else
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12899$as_echo "no" >&6; }
12900fi
12901
12902
12903 fi
12904 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12905 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12906set dummy ${ncn_progname}; ac_word=$2
12907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12908$as_echo_n "checking for $ac_word... " >&6; }
12909if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12910 $as_echo_n "(cached) " >&6
12911else
12912 if test -n "$READELF_FOR_TARGET"; then
12913 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12914else
12915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12916for as_dir in $PATH
12917do
12918 IFS=$as_save_IFS
12919 test -z "$as_dir" && as_dir=.
12920 for ac_exec_ext in '' $ac_executable_extensions; do
12921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12922 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12924 break 2
12925 fi
12926done
12927 done
12928IFS=$as_save_IFS
12929
12930fi
12931fi
12932READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12933if test -n "$READELF_FOR_TARGET"; then
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12935$as_echo "$READELF_FOR_TARGET" >&6; }
12936else
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12938$as_echo "no" >&6; }
12939fi
12940
12941
12942 fi
12943 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12944 done
12945fi
12946
12947if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12948 set dummy readelf
12949 if test $build = $target ; then
12950 READELF_FOR_TARGET="$2"
12951 else
12952 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12953 fi
12954else
12955 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12956fi
12957
12958else
12959 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12960fi
12961
12962
12963
12964
e8b05380
PB
12965if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12966 if test -n "$with_build_time_tools"; then
5213506e
RW
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12968$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12969 if test -x $with_build_time_tools/strip; then
12970 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12971 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12973$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 12974 else
5213506e
RW
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12976$as_echo "no" >&6; }
d1f8db0c 12977 fi
e8b05380
PB
12978 elif test $build != $host && test $have_gcc_for_target = yes; then
12979 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
12980 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12981 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
12982 fi
12983fi
3e19841a 12984if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12985 # Extract the first word of "strip", so it can be a program name with args.
12986set dummy strip; ac_word=$2
5213506e
RW
12987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12988$as_echo_n "checking for $ac_word... " >&6; }
12989if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12990 $as_echo_n "(cached) " >&6
e8b05380 12991else
1c710c3c
DJ
12992 case $STRIP_FOR_TARGET in
12993 [\\/]* | ?:[\\/]*)
e8b05380
PB
12994 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12995 ;;
e8b05380 12996 *)
1c710c3c
DJ
12997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12998for as_dir in $gcc_cv_tool_dirs
12999do
13000 IFS=$as_save_IFS
13001 test -z "$as_dir" && as_dir=.
5213506e
RW
13002 for ac_exec_ext in '' $ac_executable_extensions; do
13003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13004 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13006 break 2
13007 fi
13008done
5213506e
RW
13009 done
13010IFS=$as_save_IFS
1c710c3c 13011
e8b05380
PB
13012 ;;
13013esac
13014fi
1c710c3c 13015STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 13016if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13018$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 13019else
5213506e
RW
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13021$as_echo "no" >&6; }
e8b05380
PB
13022fi
13023
5213506e 13024
e8b05380
PB
13025fi
13026if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
13027
13028
13029if test -n "$STRIP_FOR_TARGET"; then
13030 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13031elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13032 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13033fi
13034
13035if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13036 for ncn_progname in strip; do
13037 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13038set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13040$as_echo_n "checking for $ac_word... " >&6; }
13041if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13042 $as_echo_n "(cached) " >&6
278a7a38
AO
13043else
13044 if test -n "$STRIP_FOR_TARGET"; then
13045 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13046else
13047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13048for as_dir in $PATH
13049do
13050 IFS=$as_save_IFS
13051 test -z "$as_dir" && as_dir=.
5213506e
RW
13052 for ac_exec_ext in '' $ac_executable_extensions; do
13053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 13054 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13056 break 2
13057 fi
13058done
5213506e
RW
13059 done
13060IFS=$as_save_IFS
278a7a38
AO
13061
13062fi
13063fi
13064STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13065if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13067$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 13068else
5213506e
RW
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13070$as_echo "no" >&6; }
278a7a38
AO
13071fi
13072
5213506e 13073
278a7a38
AO
13074 done
13075fi
13076
13077if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13078 for ncn_progname in strip; do
5213506e
RW
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13080$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13081 if test -x $with_build_time_tools/${ncn_progname}; then
13082 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13084$as_echo "yes" >&6; }
e8b05380
PB
13085 break
13086 else
5213506e
RW
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13088$as_echo "no" >&6; }
e8b05380
PB
13089 fi
13090 done
13091fi
13092
13093if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13094 for ncn_progname in strip; do
13095 if test -n "$ncn_target_tool_prefix"; then
13096 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 13097set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13099$as_echo_n "checking for $ac_word... " >&6; }
13100if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13101 $as_echo_n "(cached) " >&6
af71363e
AS
13102else
13103 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
13104 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13105else
13106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13107for as_dir in $PATH
13108do
13109 IFS=$as_save_IFS
13110 test -z "$as_dir" && as_dir=.
5213506e
RW
13111 for ac_exec_ext in '' $ac_executable_extensions; do
13112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13113 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13115 break 2
13116 fi
13117done
5213506e
RW
13118 done
13119IFS=$as_save_IFS
1c710c3c 13120
040b1c5a
GK
13121fi
13122fi
1c710c3c 13123STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13124if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13126$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13127else
5213506e
RW
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13129$as_echo "no" >&6; }
040b1c5a
GK
13130fi
13131
5213506e 13132
e8b05380
PB
13133 fi
13134 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13135 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 13136set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13138$as_echo_n "checking for $ac_word... " >&6; }
13139if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13140 $as_echo_n "(cached) " >&6
040b1c5a
GK
13141else
13142 if test -n "$STRIP_FOR_TARGET"; then
13143 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13144else
1c710c3c
DJ
13145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13146for as_dir in $PATH
13147do
13148 IFS=$as_save_IFS
13149 test -z "$as_dir" && as_dir=.
5213506e
RW
13150 for ac_exec_ext in '' $ac_executable_extensions; do
13151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13152 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13154 break 2
13155 fi
13156done
5213506e
RW
13157 done
13158IFS=$as_save_IFS
1c710c3c 13159
040b1c5a
GK
13160fi
13161fi
1c710c3c 13162STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13163if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13165$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13166else
5213506e
RW
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13168$as_echo "no" >&6; }
040b1c5a 13169fi
1c710c3c 13170
5213506e 13171
e8b05380
PB
13172 fi
13173 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13174 done
13175fi
1c710c3c 13176
040b1c5a
GK
13177if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13178 set dummy strip
13179 if test $build = $target ; then
13180 STRIP_FOR_TARGET="$2"
13181 else
13182 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13183 fi
1c00b503
PB
13184else
13185 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
13186fi
13187
d1f8db0c
PB
13188else
13189 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
13190fi
13191
13192
13193
13194
13195if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13196 if test -n "$with_build_time_tools"; then
5213506e
RW
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13198$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13199 if test -x $with_build_time_tools/windres; then
13200 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13201 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13203$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 13204 else
5213506e
RW
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13206$as_echo "no" >&6; }
d1f8db0c 13207 fi
e8b05380
PB
13208 elif test $build != $host && test $have_gcc_for_target = yes; then
13209 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
13210 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13211 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
13212 fi
13213fi
3e19841a 13214if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13215 # Extract the first word of "windres", so it can be a program name with args.
13216set dummy windres; ac_word=$2
5213506e
RW
13217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13218$as_echo_n "checking for $ac_word... " >&6; }
13219if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13220 $as_echo_n "(cached) " >&6
e8b05380 13221else
1c710c3c
DJ
13222 case $WINDRES_FOR_TARGET in
13223 [\\/]* | ?:[\\/]*)
e8b05380
PB
13224 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13225 ;;
e8b05380 13226 *)
1c710c3c
DJ
13227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13228for as_dir in $gcc_cv_tool_dirs
13229do
13230 IFS=$as_save_IFS
13231 test -z "$as_dir" && as_dir=.
5213506e
RW
13232 for ac_exec_ext in '' $ac_executable_extensions; do
13233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13234 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13236 break 2
13237 fi
13238done
5213506e
RW
13239 done
13240IFS=$as_save_IFS
1c710c3c 13241
e8b05380
PB
13242 ;;
13243esac
13244fi
1c710c3c 13245WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 13246if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13248$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 13249else
5213506e
RW
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13251$as_echo "no" >&6; }
e8b05380
PB
13252fi
13253
5213506e 13254
e8b05380
PB
13255fi
13256if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
13257
13258
13259if test -n "$WINDRES_FOR_TARGET"; then
13260 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13261elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13262 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13263fi
13264
13265if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13266 for ncn_progname in windres; do
13267 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13268set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13270$as_echo_n "checking for $ac_word... " >&6; }
13271if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13272 $as_echo_n "(cached) " >&6
278a7a38
AO
13273else
13274 if test -n "$WINDRES_FOR_TARGET"; then
13275 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13276else
13277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13278for as_dir in $PATH
13279do
13280 IFS=$as_save_IFS
13281 test -z "$as_dir" && as_dir=.
5213506e
RW
13282 for ac_exec_ext in '' $ac_executable_extensions; do
13283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 13284 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13286 break 2
13287 fi
13288done
5213506e
RW
13289 done
13290IFS=$as_save_IFS
278a7a38
AO
13291
13292fi
13293fi
13294WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13295if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13297$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 13298else
5213506e
RW
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13300$as_echo "no" >&6; }
278a7a38
AO
13301fi
13302
5213506e 13303
278a7a38
AO
13304 done
13305fi
13306
13307if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13308 for ncn_progname in windres; do
5213506e
RW
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13310$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13311 if test -x $with_build_time_tools/${ncn_progname}; then
13312 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13314$as_echo "yes" >&6; }
e8b05380
PB
13315 break
13316 else
5213506e
RW
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13318$as_echo "no" >&6; }
e8b05380
PB
13319 fi
13320 done
13321fi
13322
13323if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13324 for ncn_progname in windres; do
13325 if test -n "$ncn_target_tool_prefix"; then
13326 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13327set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13329$as_echo_n "checking for $ac_word... " >&6; }
13330if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13331 $as_echo_n "(cached) " >&6
ca9f4b81 13332else
4de997d1
PB
13333 if test -n "$WINDRES_FOR_TARGET"; then
13334 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13335else
1c710c3c
DJ
13336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13337for as_dir in $PATH
13338do
13339 IFS=$as_save_IFS
13340 test -z "$as_dir" && as_dir=.
5213506e
RW
13341 for ac_exec_ext in '' $ac_executable_extensions; do
13342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13343 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13345 break 2
13346 fi
13347done
5213506e
RW
13348 done
13349IFS=$as_save_IFS
1c710c3c 13350
ca9f4b81
AO
13351fi
13352fi
1c710c3c 13353WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 13354if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13356$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13357else
5213506e
RW
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13359$as_echo "no" >&6; }
ca9f4b81
AO
13360fi
13361
5213506e 13362
e8b05380
PB
13363 fi
13364 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13365 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13366set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13368$as_echo_n "checking for $ac_word... " >&6; }
13369if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13370 $as_echo_n "(cached) " >&6
ca9f4b81 13371else
2693c0b0
PB
13372 if test -n "$WINDRES_FOR_TARGET"; then
13373 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13374else
1c710c3c
DJ
13375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13376for as_dir in $PATH
13377do
13378 IFS=$as_save_IFS
13379 test -z "$as_dir" && as_dir=.
5213506e
RW
13380 for ac_exec_ext in '' $ac_executable_extensions; do
13381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13382 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13384 break 2
13385 fi
13386done
5213506e
RW
13387 done
13388IFS=$as_save_IFS
1c710c3c 13389
ca9f4b81
AO
13390fi
13391fi
1c710c3c 13392WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 13393if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13395$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13396else
5213506e
RW
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13398$as_echo "no" >&6; }
ca9f4b81 13399fi
1c710c3c 13400
5213506e 13401
e8b05380
PB
13402 fi
13403 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13404 done
13405fi
1c710c3c 13406
2693c0b0
PB
13407if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13408 set dummy windres
13409 if test $build = $target ; then
13410 WINDRES_FOR_TARGET="$2"
ca9f4b81 13411 else
2693c0b0 13412 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 13413 fi
1c00b503
PB
13414else
13415 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
13416fi
13417
d1f8db0c
PB
13418else
13419 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
13420fi
13421
4977bab6 13422
901119ae
KT
13423
13424
13425if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13426 if test -n "$with_build_time_tools"; then
5213506e
RW
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13428$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
13429 if test -x $with_build_time_tools/windmc; then
13430 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13431 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13433$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 13434 else
5213506e
RW
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13436$as_echo "no" >&6; }
901119ae
KT
13437 fi
13438 elif test $build != $host && test $have_gcc_for_target = yes; then
13439 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
13440 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13441 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
13442 fi
13443fi
13444if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13445 # Extract the first word of "windmc", so it can be a program name with args.
13446set dummy windmc; ac_word=$2
5213506e
RW
13447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13448$as_echo_n "checking for $ac_word... " >&6; }
13449if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13450 $as_echo_n "(cached) " >&6
901119ae
KT
13451else
13452 case $WINDMC_FOR_TARGET in
13453 [\\/]* | ?:[\\/]*)
13454 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13455 ;;
13456 *)
13457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13458for as_dir in $gcc_cv_tool_dirs
13459do
13460 IFS=$as_save_IFS
13461 test -z "$as_dir" && as_dir=.
5213506e
RW
13462 for ac_exec_ext in '' $ac_executable_extensions; do
13463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13464 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13466 break 2
13467 fi
13468done
5213506e
RW
13469 done
13470IFS=$as_save_IFS
901119ae
KT
13471
13472 ;;
13473esac
13474fi
13475WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 13476if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13478$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13479else
5213506e
RW
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13481$as_echo "no" >&6; }
901119ae
KT
13482fi
13483
5213506e 13484
901119ae
KT
13485fi
13486if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13487
13488
13489if test -n "$WINDMC_FOR_TARGET"; then
13490 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13491elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13492 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13493fi
13494
13495if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13496 for ncn_progname in windmc; do
13497 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13498set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13500$as_echo_n "checking for $ac_word... " >&6; }
13501if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13502 $as_echo_n "(cached) " >&6
901119ae
KT
13503else
13504 if test -n "$WINDMC_FOR_TARGET"; then
13505 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13506else
13507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13508for as_dir in $PATH
13509do
13510 IFS=$as_save_IFS
13511 test -z "$as_dir" && as_dir=.
5213506e
RW
13512 for ac_exec_ext in '' $ac_executable_extensions; do
13513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13514 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13516 break 2
13517 fi
13518done
5213506e
RW
13519 done
13520IFS=$as_save_IFS
901119ae
KT
13521
13522fi
13523fi
13524WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13525if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13527$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13528else
5213506e
RW
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13530$as_echo "no" >&6; }
901119ae
KT
13531fi
13532
5213506e 13533
901119ae
KT
13534 done
13535fi
13536
13537if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13538 for ncn_progname in windmc; do
5213506e
RW
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13540$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
13541 if test -x $with_build_time_tools/${ncn_progname}; then
13542 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13544$as_echo "yes" >&6; }
901119ae
KT
13545 break
13546 else
5213506e
RW
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13548$as_echo "no" >&6; }
901119ae
KT
13549 fi
13550 done
13551fi
13552
13553if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13554 for ncn_progname in windmc; do
13555 if test -n "$ncn_target_tool_prefix"; then
13556 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13557set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13559$as_echo_n "checking for $ac_word... " >&6; }
13560if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13561 $as_echo_n "(cached) " >&6
901119ae
KT
13562else
13563 if test -n "$WINDMC_FOR_TARGET"; then
13564 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13565else
13566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13567for as_dir in $PATH
13568do
13569 IFS=$as_save_IFS
13570 test -z "$as_dir" && as_dir=.
5213506e
RW
13571 for ac_exec_ext in '' $ac_executable_extensions; do
13572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13573 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13575 break 2
13576 fi
13577done
5213506e
RW
13578 done
13579IFS=$as_save_IFS
901119ae
KT
13580
13581fi
13582fi
13583WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13584if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13586$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13587else
5213506e
RW
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13589$as_echo "no" >&6; }
901119ae
KT
13590fi
13591
5213506e 13592
901119ae
KT
13593 fi
13594 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13595 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13596set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13598$as_echo_n "checking for $ac_word... " >&6; }
13599if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13600 $as_echo_n "(cached) " >&6
901119ae
KT
13601else
13602 if test -n "$WINDMC_FOR_TARGET"; then
13603 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13604else
13605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13606for as_dir in $PATH
13607do
13608 IFS=$as_save_IFS
13609 test -z "$as_dir" && as_dir=.
5213506e
RW
13610 for ac_exec_ext in '' $ac_executable_extensions; do
13611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13612 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13614 break 2
13615 fi
13616done
5213506e
RW
13617 done
13618IFS=$as_save_IFS
901119ae
KT
13619
13620fi
13621fi
13622WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13623if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13625$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13626else
5213506e
RW
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13628$as_echo "no" >&6; }
901119ae
KT
13629fi
13630
5213506e 13631
901119ae
KT
13632 fi
13633 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13634 done
13635fi
13636
13637if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13638 set dummy windmc
13639 if test $build = $target ; then
13640 WINDMC_FOR_TARGET="$2"
13641 else
13642 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13643 fi
1c00b503
PB
13644else
13645 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
13646fi
13647
13648else
13649 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13650fi
13651
13652
2abefe3d
PB
13653RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13654
5213506e
RW
13655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13656$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 13657if test "x${build}" != "x${host}" ; then
e8b05380
PB
13658 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13659 # We already found the complete path
172e41aa 13660 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13662$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13663 else
13664 # Canadian cross, just use what we found
5213506e
RW
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13666$as_echo "pre-installed" >&6; }
e8b05380 13667 fi
2abefe3d
PB
13668else
13669 ok=yes
13670 case " ${configdirs} " in
13671 *" binutils "*) ;;
13672 *) ok=no ;;
13673 esac
1c710c3c 13674
2abefe3d
PB
13675 if test $ok = yes; then
13676 # An in-tree tool is available and we can use it
13677 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13679$as_echo "just compiled" >&6; }
e8b05380
PB
13680 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13681 # We already found the complete path
172e41aa 13682 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13684$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13685 elif test "x$target" = "x$host"; then
13686 # We can use an host tool
13687 AR_FOR_TARGET='$(AR)'
5213506e
RW
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13689$as_echo "host tool" >&6; }
2abefe3d
PB
13690 else
13691 # We need a cross tool
5213506e
RW
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13693$as_echo "pre-installed" >&6; }
2abefe3d
PB
13694 fi
13695fi
0b0dc272 13696
5213506e
RW
13697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13698$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 13699if test "x${build}" != "x${host}" ; then
e8b05380
PB
13700 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13701 # We already found the complete path
172e41aa 13702 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13704$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13705 else
13706 # Canadian cross, just use what we found
5213506e
RW
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13708$as_echo "pre-installed" >&6; }
e8b05380 13709 fi
2abefe3d
PB
13710else
13711 ok=yes
13712 case " ${configdirs} " in
13713 *" gas "*) ;;
13714 *) ok=no ;;
13715 esac
1c710c3c 13716
2abefe3d
PB
13717 if test $ok = yes; then
13718 # An in-tree tool is available and we can use it
13719 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13721$as_echo "just compiled" >&6; }
e8b05380
PB
13722 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13723 # We already found the complete path
172e41aa 13724 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13726$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13727 elif test "x$target" = "x$host"; then
13728 # We can use an host tool
13729 AS_FOR_TARGET='$(AS)'
5213506e
RW
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13731$as_echo "host tool" >&6; }
2abefe3d
PB
13732 else
13733 # We need a cross tool
5213506e
RW
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13735$as_echo "pre-installed" >&6; }
2abefe3d
PB
13736 fi
13737fi
0b0dc272 13738
5213506e
RW
13739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13740$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 13741if test "x${build}" != "x${host}" ; then
e8b05380
PB
13742 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13743 # We already found the complete path
172e41aa 13744 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13746$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13747 else
13748 # Canadian cross, just use what we found
5213506e
RW
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13750$as_echo "pre-installed" >&6; }
e8b05380 13751 fi
2abefe3d
PB
13752else
13753 ok=yes
13754 case " ${configdirs} " in
13755 *" gcc "*) ;;
13756 *) ok=no ;;
13757 esac
1c710c3c 13758
2abefe3d
PB
13759 if test $ok = yes; then
13760 # An in-tree tool is available and we can use it
13761 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13763$as_echo "just compiled" >&6; }
e8b05380
PB
13764 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13765 # We already found the complete path
172e41aa 13766 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13768$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13769 elif test "x$target" = "x$host"; then
13770 # We can use an host tool
13771 CC_FOR_TARGET='$(CC)'
5213506e
RW
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13773$as_echo "host tool" >&6; }
2abefe3d
PB
13774 else
13775 # We need a cross tool
5213506e
RW
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13777$as_echo "pre-installed" >&6; }
2abefe3d
PB
13778 fi
13779fi
0b0dc272 13780
5213506e
RW
13781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13782$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 13783if test "x${build}" != "x${host}" ; then
e8b05380
PB
13784 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13785 # We already found the complete path
172e41aa 13786 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13788$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13789 else
13790 # Canadian cross, just use what we found
5213506e
RW
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13792$as_echo "pre-installed" >&6; }
e8b05380 13793 fi
2abefe3d
PB
13794else
13795 ok=yes
13796 case " ${configdirs} " in
13797 *" gcc "*) ;;
13798 *) ok=no ;;
13799 esac
13800 case ,${enable_languages}, in
13801 *,c++,*) ;;
13802 *) ok=no ;;
13803 esac
13804 if test $ok = yes; then
13805 # An in-tree tool is available and we can use it
2077db1b 13806 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
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13808$as_echo "just compiled" >&6; }
e8b05380
PB
13809 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13810 # We already found the complete path
172e41aa 13811 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13813$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13814 elif test "x$target" = "x$host"; then
13815 # We can use an host tool
13816 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13818$as_echo "host tool" >&6; }
2abefe3d
PB
13819 else
13820 # We need a cross tool
5213506e
RW
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13822$as_echo "pre-installed" >&6; }
2abefe3d
PB
13823 fi
13824fi
0b0dc272 13825
5213506e
RW
13826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13827$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 13828if test "x${build}" != "x${host}" ; then
e8b05380
PB
13829 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13830 # We already found the complete path
172e41aa 13831 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13833$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13834 else
13835 # Canadian cross, just use what we found
5213506e
RW
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13837$as_echo "pre-installed" >&6; }
e8b05380 13838 fi
2abefe3d
PB
13839else
13840 ok=yes
13841 case " ${configdirs} " in
13842 *" gcc "*) ;;
13843 *) ok=no ;;
13844 esac
13845 case ,${enable_languages}, in
13846 *,c++,*) ;;
13847 *) ok=no ;;
13848 esac
13849 if test $ok = yes; then
13850 # An in-tree tool is available and we can use it
2077db1b 13851 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
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13853$as_echo "just compiled" >&6; }
e8b05380
PB
13854 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13855 # We already found the complete path
172e41aa 13856 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13858$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13859 elif test "x$target" = "x$host"; then
13860 # We can use an host tool
13861 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13863$as_echo "host tool" >&6; }
2abefe3d
PB
13864 else
13865 # We need a cross tool
5213506e
RW
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13867$as_echo "pre-installed" >&6; }
2abefe3d
PB
13868 fi
13869fi
0b0dc272 13870
5213506e
RW
13871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13872$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 13873if test "x${build}" != "x${host}" ; then
e8b05380
PB
13874 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13875 # We already found the complete path
172e41aa 13876 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13878$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13879 else
13880 # Canadian cross, just use what we found
5213506e
RW
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13882$as_echo "pre-installed" >&6; }
e8b05380 13883 fi
2abefe3d
PB
13884else
13885 ok=yes
13886 case " ${configdirs} " in
13887 *" binutils "*) ;;
13888 *) ok=no ;;
13889 esac
1c710c3c 13890
2abefe3d
PB
13891 if test $ok = yes; then
13892 # An in-tree tool is available and we can use it
13893 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13895$as_echo "just compiled" >&6; }
e8b05380
PB
13896 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13897 # We already found the complete path
172e41aa 13898 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13900$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13901 elif test "x$target" = "x$host"; then
13902 # We can use an host tool
13903 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13905$as_echo "host tool" >&6; }
2abefe3d
PB
13906 else
13907 # We need a cross tool
5213506e
RW
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13909$as_echo "pre-installed" >&6; }
2abefe3d
PB
13910 fi
13911fi
0b0dc272 13912
5213506e
RW
13913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13914$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 13915if test "x${build}" != "x${host}" ; then
e8b05380
PB
13916 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13917 # We already found the complete path
172e41aa 13918 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13920$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13921 else
13922 # Canadian cross, just use what we found
5213506e
RW
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13924$as_echo "pre-installed" >&6; }
e8b05380 13925 fi
2abefe3d
PB
13926else
13927 ok=yes
13928 case " ${configdirs} " in
13929 *" gcc "*) ;;
13930 *) ok=no ;;
13931 esac
1c710c3c 13932
2abefe3d
PB
13933 if test $ok = yes; then
13934 # An in-tree tool is available and we can use it
13935 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13937$as_echo "just compiled" >&6; }
e8b05380
PB
13938 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13939 # We already found the complete path
172e41aa 13940 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13942$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13943 elif test "x$target" = "x$host"; then
13944 # We can use an host tool
13945 GCC_FOR_TARGET='$()'
5213506e
RW
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13947$as_echo "host tool" >&6; }
2abefe3d
PB
13948 else
13949 # We need a cross tool
5213506e
RW
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13951$as_echo "pre-installed" >&6; }
2abefe3d
PB
13952 fi
13953fi
0b0dc272 13954
5213506e
RW
13955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13956$as_echo_n "checking where to find the target gcj... " >&6; }
2abefe3d 13957if test "x${build}" != "x${host}" ; then
e8b05380
PB
13958 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13959 # We already found the complete path
172e41aa 13960 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13962$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13963 else
13964 # Canadian cross, just use what we found
5213506e
RW
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13966$as_echo "pre-installed" >&6; }
e8b05380 13967 fi
2abefe3d
PB
13968else
13969 ok=yes
13970 case " ${configdirs} " in
13971 *" gcc "*) ;;
13972 *) ok=no ;;
13973 esac
13974 case ,${enable_languages}, in
13975 *,java,*) ;;
13976 *) ok=no ;;
13977 esac
13978 if test $ok = yes; then
13979 # An in-tree tool is available and we can use it
13980 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13982$as_echo "just compiled" >&6; }
e8b05380
PB
13983 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13984 # We already found the complete path
172e41aa 13985 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13987$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13988 elif test "x$target" = "x$host"; then
13989 # We can use an host tool
13990 GCJ_FOR_TARGET='$(GCJ)'
5213506e
RW
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13992$as_echo "host tool" >&6; }
2abefe3d
PB
13993 else
13994 # We need a cross tool
5213506e
RW
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13996$as_echo "pre-installed" >&6; }
2abefe3d
PB
13997 fi
13998fi
0b0dc272 13999
5213506e
RW
14000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14001$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 14002if test "x${build}" != "x${host}" ; then
e8b05380
PB
14003 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14004 # We already found the complete path
172e41aa 14005 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14007$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14008 else
14009 # Canadian cross, just use what we found
5213506e
RW
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14011$as_echo "pre-installed" >&6; }
e8b05380 14012 fi
2abefe3d
PB
14013else
14014 ok=yes
14015 case " ${configdirs} " in
14016 *" gcc "*) ;;
14017 *) ok=no ;;
14018 esac
14019 case ,${enable_languages}, in
14020 *,fortran,*) ;;
14021 *) ok=no ;;
14022 esac
14023 if test $ok = yes; then
14024 # An in-tree tool is available and we can use it
14025 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14027$as_echo "just compiled" >&6; }
e8b05380
PB
14028 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14029 # We already found the complete path
172e41aa 14030 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14032$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14033 elif test "x$target" = "x$host"; then
14034 # We can use an host tool
14035 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14037$as_echo "host tool" >&6; }
2abefe3d
PB
14038 else
14039 # We need a cross tool
5213506e
RW
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14041$as_echo "pre-installed" >&6; }
2abefe3d
PB
14042 fi
14043fi
0b0dc272 14044
632e2a07
ILT
14045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14046$as_echo_n "checking where to find the target gccgo... " >&6; }
14047if test "x${build}" != "x${host}" ; then
14048 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14049 # We already found the complete path
14050 ac_dir=`dirname $GOC_FOR_TARGET`
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14052$as_echo "pre-installed in $ac_dir" >&6; }
14053 else
14054 # Canadian cross, just use what we found
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14056$as_echo "pre-installed" >&6; }
14057 fi
14058else
14059 ok=yes
14060 case " ${configdirs} " in
14061 *" gcc "*) ;;
14062 *) ok=no ;;
14063 esac
14064 case ,${enable_languages}, in
14065 *,go,*) ;;
14066 *) ok=no ;;
14067 esac
14068 if test $ok = yes; then
14069 # An in-tree tool is available and we can use it
14070 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14072$as_echo "just compiled" >&6; }
14073 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14074 # We already found the complete path
14075 ac_dir=`dirname $GOC_FOR_TARGET`
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14077$as_echo "pre-installed in $ac_dir" >&6; }
14078 elif test "x$target" = "x$host"; then
14079 # We can use an host tool
14080 GOC_FOR_TARGET='$(GOC)'
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14082$as_echo "host tool" >&6; }
14083 else
14084 # We need a cross tool
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14086$as_echo "pre-installed" >&6; }
14087 fi
14088fi
14089
5213506e
RW
14090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14091$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 14092if test "x${build}" != "x${host}" ; then
e8b05380
PB
14093 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14094 # We already found the complete path
172e41aa 14095 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14097$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14098 else
14099 # Canadian cross, just use what we found
5213506e
RW
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14101$as_echo "pre-installed" >&6; }
e8b05380 14102 fi
2abefe3d
PB
14103else
14104 ok=yes
14105 case " ${configdirs} " in
14106 *" ld "*) ;;
14107 *) ok=no ;;
14108 esac
1c710c3c 14109
2abefe3d
PB
14110 if test $ok = yes; then
14111 # An in-tree tool is available and we can use it
14112 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14114$as_echo "just compiled" >&6; }
e8b05380
PB
14115 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14116 # We already found the complete path
172e41aa 14117 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14119$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14120 elif test "x$target" = "x$host"; then
14121 # We can use an host tool
14122 LD_FOR_TARGET='$(LD)'
5213506e
RW
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14124$as_echo "host tool" >&6; }
2abefe3d
PB
14125 else
14126 # We need a cross tool
5213506e
RW
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14128$as_echo "pre-installed" >&6; }
2abefe3d
PB
14129 fi
14130fi
0b0dc272 14131
5213506e
RW
14132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14133$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 14134if test "x${build}" != "x${host}" ; then
e8b05380
PB
14135 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14136 # We already found the complete path
172e41aa 14137 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14139$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14140 else
14141 # Canadian cross, just use what we found
5213506e
RW
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14143$as_echo "pre-installed" >&6; }
e8b05380 14144 fi
2abefe3d 14145else
e8b05380
PB
14146 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14147 # We already found the complete path
172e41aa 14148 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14150$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 14151 elif test "x$target" = "x$host"; then
2abefe3d
PB
14152 # We can use an host tool
14153 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14155$as_echo "host tool" >&6; }
2abefe3d
PB
14156 else
14157 # We need a cross tool
5213506e
RW
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14159$as_echo "pre-installed" >&6; }
2abefe3d
PB
14160 fi
14161fi
0b0dc272 14162
5213506e
RW
14163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14164$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 14165if test "x${build}" != "x${host}" ; then
e8b05380
PB
14166 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14167 # We already found the complete path
172e41aa 14168 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14170$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14171 else
14172 # Canadian cross, just use what we found
5213506e
RW
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14174$as_echo "pre-installed" >&6; }
e8b05380 14175 fi
2abefe3d
PB
14176else
14177 ok=yes
14178 case " ${configdirs} " in
14179 *" binutils "*) ;;
14180 *) ok=no ;;
14181 esac
1c710c3c 14182
2abefe3d
PB
14183 if test $ok = yes; then
14184 # An in-tree tool is available and we can use it
14185 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14187$as_echo "just compiled" >&6; }
e8b05380
PB
14188 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14189 # We already found the complete path
172e41aa 14190 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14192$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14193 elif test "x$target" = "x$host"; then
14194 # We can use an host tool
14195 NM_FOR_TARGET='$(NM)'
5213506e
RW
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14197$as_echo "host tool" >&6; }
2abefe3d
PB
14198 else
14199 # We need a cross tool
5213506e
RW
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14201$as_echo "pre-installed" >&6; }
2abefe3d
PB
14202 fi
14203fi
0b0dc272 14204
5213506e
RW
14205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14206$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 14207if test "x${build}" != "x${host}" ; then
e8b05380
PB
14208 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14209 # We already found the complete path
172e41aa 14210 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14212$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14213 else
14214 # Canadian cross, just use what we found
5213506e
RW
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14216$as_echo "pre-installed" >&6; }
e8b05380 14217 fi
2abefe3d
PB
14218else
14219 ok=yes
14220 case " ${configdirs} " in
14221 *" binutils "*) ;;
14222 *) ok=no ;;
14223 esac
1c710c3c 14224
2abefe3d
PB
14225 if test $ok = yes; then
14226 # An in-tree tool is available and we can use it
14227 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14229$as_echo "just compiled" >&6; }
e8b05380
PB
14230 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14231 # We already found the complete path
172e41aa 14232 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14234$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14235 elif test "x$target" = "x$host"; then
14236 # We can use an host tool
14237 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14239$as_echo "host tool" >&6; }
2abefe3d
PB
14240 else
14241 # We need a cross tool
5213506e
RW
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14243$as_echo "pre-installed" >&6; }
2abefe3d
PB
14244 fi
14245fi
0b0dc272 14246
5213506e
RW
14247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14248$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 14249if test "x${build}" != "x${host}" ; then
e8b05380
PB
14250 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14251 # We already found the complete path
172e41aa 14252 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14254$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14255 else
14256 # Canadian cross, just use what we found
5213506e
RW
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14258$as_echo "pre-installed" >&6; }
e8b05380 14259 fi
2abefe3d
PB
14260else
14261 ok=yes
14262 case " ${configdirs} " in
14263 *" binutils "*) ;;
14264 *) ok=no ;;
14265 esac
1c710c3c 14266
2abefe3d
PB
14267 if test $ok = yes; then
14268 # An in-tree tool is available and we can use it
14269 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14271$as_echo "just compiled" >&6; }
e8b05380
PB
14272 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14273 # We already found the complete path
172e41aa 14274 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14276$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14277 elif test "x$target" = "x$host"; then
14278 # We can use an host tool
14279 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14281$as_echo "host tool" >&6; }
2abefe3d
PB
14282 else
14283 # We need a cross tool
5213506e
RW
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14285$as_echo "pre-installed" >&6; }
2abefe3d
PB
14286 fi
14287fi
0b0dc272 14288
e7a82751
RM
14289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14290$as_echo_n "checking where to find the target readelf... " >&6; }
14291if test "x${build}" != "x${host}" ; then
14292 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14293 # We already found the complete path
14294 ac_dir=`dirname $READELF_FOR_TARGET`
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14296$as_echo "pre-installed in $ac_dir" >&6; }
14297 else
14298 # Canadian cross, just use what we found
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14300$as_echo "pre-installed" >&6; }
14301 fi
14302else
14303 ok=yes
14304 case " ${configdirs} " in
14305 *" binutils "*) ;;
14306 *) ok=no ;;
14307 esac
14308
14309 if test $ok = yes; then
14310 # An in-tree tool is available and we can use it
14311 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14313$as_echo "just compiled" >&6; }
14314 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14315 # We already found the complete path
14316 ac_dir=`dirname $READELF_FOR_TARGET`
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14318$as_echo "pre-installed in $ac_dir" >&6; }
14319 elif test "x$target" = "x$host"; then
14320 # We can use an host tool
14321 READELF_FOR_TARGET='$(READELF)'
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14323$as_echo "host tool" >&6; }
14324 else
14325 # We need a cross tool
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14327$as_echo "pre-installed" >&6; }
14328 fi
14329fi
14330
5213506e
RW
14331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14332$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 14333if test "x${build}" != "x${host}" ; then
e8b05380
PB
14334 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14335 # We already found the complete path
172e41aa 14336 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14338$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14339 else
14340 # Canadian cross, just use what we found
5213506e
RW
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14342$as_echo "pre-installed" >&6; }
e8b05380 14343 fi
2abefe3d
PB
14344else
14345 ok=yes
14346 case " ${configdirs} " in
14347 *" binutils "*) ;;
14348 *) ok=no ;;
14349 esac
1c710c3c 14350
2abefe3d
PB
14351 if test $ok = yes; then
14352 # An in-tree tool is available and we can use it
455c8f48 14353 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14355$as_echo "just compiled" >&6; }
e8b05380
PB
14356 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14357 # We already found the complete path
172e41aa 14358 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14360$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14361 elif test "x$target" = "x$host"; then
14362 # We can use an host tool
14363 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14365$as_echo "host tool" >&6; }
2abefe3d
PB
14366 else
14367 # We need a cross tool
5213506e
RW
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14369$as_echo "pre-installed" >&6; }
2abefe3d
PB
14370 fi
14371fi
0b0dc272 14372
5213506e
RW
14373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14374$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 14375if test "x${build}" != "x${host}" ; then
e8b05380
PB
14376 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14377 # We already found the complete path
172e41aa 14378 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14380$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14381 else
14382 # Canadian cross, just use what we found
5213506e
RW
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14384$as_echo "pre-installed" >&6; }
e8b05380 14385 fi
2abefe3d
PB
14386else
14387 ok=yes
14388 case " ${configdirs} " in
14389 *" binutils "*) ;;
14390 *) ok=no ;;
14391 esac
1c710c3c 14392
2abefe3d
PB
14393 if test $ok = yes; then
14394 # An in-tree tool is available and we can use it
14395 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14397$as_echo "just compiled" >&6; }
e8b05380
PB
14398 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14399 # We already found the complete path
172e41aa 14400 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14402$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14403 elif test "x$target" = "x$host"; then
14404 # We can use an host tool
14405 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14407$as_echo "host tool" >&6; }
2abefe3d
PB
14408 else
14409 # We need a cross tool
5213506e
RW
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14411$as_echo "pre-installed" >&6; }
2abefe3d 14412 fi
671aa708 14413fi
be912515 14414
5213506e
RW
14415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14416$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
14417if test "x${build}" != "x${host}" ; then
14418 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14419 # We already found the complete path
14420 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14422$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14423 else
14424 # Canadian cross, just use what we found
5213506e
RW
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14426$as_echo "pre-installed" >&6; }
901119ae
KT
14427 fi
14428else
14429 ok=yes
14430 case " ${configdirs} " in
14431 *" binutils "*) ;;
14432 *) ok=no ;;
14433 esac
14434
14435 if test $ok = yes; then
14436 # An in-tree tool is available and we can use it
14437 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14439$as_echo "just compiled" >&6; }
901119ae
KT
14440 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14441 # We already found the complete path
14442 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14444$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14445 elif test "x$target" = "x$host"; then
14446 # We can use an host tool
14447 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14449$as_echo "host tool" >&6; }
901119ae
KT
14450 else
14451 # We need a cross tool
5213506e
RW
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14453$as_echo "pre-installed" >&6; }
901119ae
KT
14454 fi
14455fi
14456
be912515
NN
14457
14458
2abefe3d 14459
0b0dc272 14460
671aa708
NN
14461# Certain tools may need extra flags.
14462AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14463RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14464NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14465
2abefe3d
PB
14466# When building target libraries, except in a Canadian cross, we use
14467# the same toolchain as the compiler we just built.
14468COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14469COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14470COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14471if test $host = $build; then
14472 case " $configdirs " in
14473 *" gcc "*)
14474 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14475 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14476 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14477 ;;
14478 esac
14479fi
14480
14481
14482
14483
14484
5213506e
RW
14485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14486$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14487# Check whether --enable-maintainer-mode was given.
14488if test "${enable_maintainer_mode+set}" = set; then :
14489 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
14490else
14491 USE_MAINTAINER_MODE=no
5213506e
RW
14492fi
14493
14494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14495$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
14496
14497
14498if test "$USE_MAINTAINER_MODE" = yes; then
14499 MAINTAINER_MODE_TRUE=
14500 MAINTAINER_MODE_FALSE='#'
14501else
14502 MAINTAINER_MODE_TRUE='#'
14503 MAINTAINER_MODE_FALSE=
1c710c3c 14504fi
ee03dc5e
AO
14505MAINT=$MAINTAINER_MODE_TRUE
14506
2805b53a
NN
14507# ---------------------
14508# GCC bootstrap support
14509# ---------------------
14510
14511# Stage specific cflags for build.
14512stage1_cflags="-g"
14513case $build in
14514 vax-*-*)
14515 case ${GCC} in
14516 yes) stage1_cflags="-g -Wa,-J" ;;
14517 *) stage1_cflags="-g -J" ;;
14518 esac ;;
2805b53a
NN
14519esac
14520
0b50988a 14521
2805b53a 14522
8efea775 14523# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
14524# Check whether --enable-stage1-checking was given.
14525if test "${enable_stage1_checking+set}" = set; then :
14526 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 14527else
e643dc23 14528 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
7e98624c 14529 stage1_checking=--enable-checking=yes,types
8efea775 14530else
e643dc23 14531 stage1_checking=--enable-checking=$enable_checking,types
8efea775 14532fi
5213506e 14533fi
8efea775
PB
14534
14535
2aeb72e9 14536
5213506e
RW
14537# Enable -Werror in bootstrap stage2 and later.
14538# Check whether --enable-werror was given.
14539if test "${enable_werror+set}" = set; then :
14540 enableval=$enable_werror;
2805b53a 14541else
416cfb5e 14542 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 14543 enable_werror=yes
88fceb68
PB
14544else
14545 enable_werror=no
14546fi
5213506e
RW
14547fi
14548
09a9c095
NN
14549case ${enable_werror} in
14550 yes) stage2_werror_flag="--enable-werror-always" ;;
14551 *) stage2_werror_flag="" ;;
2805b53a
NN
14552esac
14553
14554
459260ec
DM
14555# Enable --enable-host-shared.
14556# Check whether --enable-host-shared was given.
14557if test "${enable_host_shared+set}" = set; then :
14558 enableval=$enable_host_shared; host_shared=$enableval
14559else
14560 host_shared=no
14561fi
14562
14563
14564
f2689b09
SE
14565# Specify what files to not compare during bootstrap.
14566
14567compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14568case "$target" in
14569 hppa*64*-*-hpux*) ;;
14570 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
d91491e5 14571 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
f2689b09
SE
14572esac
14573
14574
5213506e
RW
14575ac_config_files="$ac_config_files Makefile"
14576
1c710c3c 14577cat >confcache <<\_ACEOF
671aa708
NN
14578# This file is a shell script that caches the results of configure
14579# tests run on this system so they can be shared between configure
1c710c3c
DJ
14580# scripts and configure runs, see configure's option --config-cache.
14581# It is not useful on other systems. If it contains results you don't
14582# want to keep, you may remove or edit it.
671aa708 14583#
1c710c3c
DJ
14584# config.status only pays attention to the cache file if you give it
14585# the --recheck option to rerun configure.
671aa708 14586#
1c710c3c
DJ
14587# `ac_cv_env_foo' variables (set or unset) will be overridden when
14588# loading this file, other *unset* `ac_cv_foo' will be assigned the
14589# following values.
14590
14591_ACEOF
14592
671aa708
NN
14593# The following way of writing the cache mishandles newlines in values,
14594# but we know of no workaround that is simple, portable, and efficient.
5213506e 14595# So, we kill variables containing newlines.
671aa708
NN
14596# Ultrix sh set writes to stderr and can't be redirected directly,
14597# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
14598(
14599 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14600 eval ac_val=\$$ac_var
14601 case $ac_val in #(
14602 *${as_nl}*)
14603 case $ac_var in #(
14604 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14605$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14606 esac
14607 case $ac_var in #(
14608 _ | IFS | as_nl) ;; #(
14609 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14610 *) { eval $ac_var=; unset $ac_var;} ;;
14611 esac ;;
14612 esac
14613 done
14614
1c710c3c 14615 (set) 2>&1 |
5213506e
RW
14616 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14617 *${as_nl}ac_space=\ *)
14618 # `set' does not quote correctly, so add quotes: double-quote
14619 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
14620 sed -n \
14621 "s/'/'\\\\''/g;
14622 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 14623 ;; #(
1c710c3c
DJ
14624 *)
14625 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 14626 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 14627 ;;
5213506e
RW
14628 esac |
14629 sort
14630) |
1c710c3c 14631 sed '
5213506e 14632 /^ac_cv_env_/b end
1c710c3c 14633 t clear
5213506e 14634 :clear
1c710c3c
DJ
14635 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14636 t end
5213506e
RW
14637 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14638 :end' >>confcache
14639if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14640 if test -w "$cache_file"; then
14641 test "x$cache_file" != "x/dev/null" &&
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14643$as_echo "$as_me: updating cache $cache_file" >&6;}
1c710c3c 14644 cat confcache >$cache_file
671aa708 14645 else
5213506e
RW
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14647$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 14648 fi
4977bab6 14649fi
671aa708 14650rm -f confcache
79c06341 14651
671aa708
NN
14652test "x$prefix" = xNONE && prefix=$ac_default_prefix
14653# Let make expand exec_prefix.
14654test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 14655
671aa708
NN
14656# Transform confdefs.h into DEFS.
14657# Protect against shell expansion while executing Makefile rules.
14658# Protect against Makefile macro expansion.
1c710c3c
DJ
14659#
14660# If the first sed substitution is executed (which looks for macros that
5213506e 14661# take arguments), then branch to the quote section. Otherwise,
1c710c3c 14662# look for a macro that doesn't take arguments.
5213506e
RW
14663ac_script='
14664:mline
14665/\\$/{
14666 N
14667 s,\\\n,,
14668 b mline
14669}
1c710c3c 14670t clear
5213506e
RW
14671:clear
14672s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14673t quote
5213506e 14674s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14675t quote
5213506e
RW
14676b any
14677:quote
14678s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14679s/\[/\\&/g
14680s/\]/\\&/g
14681s/\$/$$/g
14682H
14683:any
14684${
14685 g
14686 s/^\n//
14687 s/\n/ /g
14688 p
14689}
14690'
14691DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
14692
14693
14694ac_libobjs=
14695ac_ltlibobjs=
14696for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14697 # 1. Remove the extension, and $U if already installed.
5213506e
RW
14698 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14699 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14700 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14701 # will be set to the directory where LIBOBJS objects are built.
14702 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14703 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
14704done
14705LIBOBJS=$ac_libobjs
fb0103e5 14706
1c710c3c 14707LTLIBOBJS=$ac_ltlibobjs
0b0dc272 14708
af71363e 14709
1c710c3c
DJ
14710
14711: ${CONFIG_STATUS=./config.status}
5213506e 14712ac_write_fail=0
1c710c3c
DJ
14713ac_clean_files_save=$ac_clean_files
14714ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
14715{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14716$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14717as_write_fail=0
14718cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
14719#! $SHELL
14720# Generated by $as_me.
671aa708 14721# Run this file to recreate the current configuration.
671aa708 14722# Compiler output produced by configure, useful for debugging
1c710c3c 14723# configure, is in config.log if it exists.
0b0dc272 14724
1c710c3c
DJ
14725debug=false
14726ac_cs_recheck=false
14727ac_cs_silent=false
1c710c3c 14728
5213506e
RW
14729SHELL=\${CONFIG_SHELL-$SHELL}
14730export SHELL
14731_ASEOF
14732cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14733## -------------------- ##
14734## M4sh Initialization. ##
14735## -------------------- ##
14736
14737# Be more Bourne compatible
14738DUALCASE=1; export DUALCASE # for MKS sh
14739if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
14740 emulate sh
14741 NULLCMD=:
5213506e 14742 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
14743 # is contrary to our usage. Disable this feature.
14744 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
14745 setopt NO_GLOB_SUBST
14746else
14747 case `(set -o) 2>/dev/null` in #(
14748 *posix*) :
14749 set -o posix ;; #(
14750 *) :
14751 ;;
14752esac
1c710c3c 14753fi
1c710c3c 14754
5213506e
RW
14755
14756as_nl='
14757'
14758export as_nl
14759# Printing a long string crashes Solaris 7 /usr/bin/printf.
14760as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14761as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14762as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14763# Prefer a ksh shell builtin over an external printf program on Solaris,
14764# but without wasting forks for bash or zsh.
14765if test -z "$BASH_VERSION$ZSH_VERSION" \
14766 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14767 as_echo='print -r --'
14768 as_echo_n='print -rn --'
14769elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14770 as_echo='printf %s\n'
14771 as_echo_n='printf %s'
14772else
14773 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14774 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14775 as_echo_n='/usr/ucb/echo -n'
14776 else
14777 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14778 as_echo_n_body='eval
14779 arg=$1;
14780 case $arg in #(
14781 *"$as_nl"*)
14782 expr "X$arg" : "X\\(.*\\)$as_nl";
14783 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14784 esac;
14785 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14786 '
14787 export as_echo_n_body
14788 as_echo_n='sh -c $as_echo_n_body as_echo'
14789 fi
14790 export as_echo_body
14791 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
14792fi
14793
5213506e
RW
14794# The user is always right.
14795if test "${PATH_SEPARATOR+set}" != set; then
14796 PATH_SEPARATOR=:
14797 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14798 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14799 PATH_SEPARATOR=';'
14800 }
14801fi
14802
14803
14804# IFS
14805# We need space, tab and new line, in precisely that order. Quoting is
14806# there to prevent editors from complaining about space-tab.
14807# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14808# splitting by setting IFS to empty value.)
14809IFS=" "" $as_nl"
14810
14811# Find who we are. Look in the path if we contain no directory separator.
14812case $0 in #((
14813 *[\\/]* ) as_myself=$0 ;;
14814 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14815for as_dir in $PATH
14816do
14817 IFS=$as_save_IFS
14818 test -z "$as_dir" && as_dir=.
14819 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14820 done
14821IFS=$as_save_IFS
14822
14823 ;;
14824esac
14825# We did not find ourselves, most probably we were run as `sh COMMAND'
14826# in which case we are not to be found in the path.
14827if test "x$as_myself" = x; then
14828 as_myself=$0
14829fi
14830if test ! -f "$as_myself"; then
14831 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14832 exit 1
14833fi
1c710c3c 14834
5213506e
RW
14835# Unset variables that we do not need and which cause bugs (e.g. in
14836# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14837# suppresses any "Segmentation fault" message there. '((' could
14838# trigger a bug in pdksh 5.2.14.
14839for as_var in BASH_ENV ENV MAIL MAILPATH
14840do eval test x\${$as_var+set} = xset \
14841 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14842done
1c710c3c
DJ
14843PS1='$ '
14844PS2='> '
14845PS4='+ '
14846
14847# NLS nuisances.
5213506e
RW
14848LC_ALL=C
14849export LC_ALL
14850LANGUAGE=C
14851export LANGUAGE
14852
14853# CDPATH.
14854(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14855
14856
14857# as_fn_error ERROR [LINENO LOG_FD]
14858# ---------------------------------
14859# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14860# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14861# script with status $?, using 1 if that was 0.
14862as_fn_error ()
14863{
14864 as_status=$?; test $as_status -eq 0 && as_status=1
14865 if test "$3"; then
14866 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14867 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1c710c3c 14868 fi
5213506e
RW
14869 $as_echo "$as_me: error: $1" >&2
14870 as_fn_exit $as_status
14871} # as_fn_error
14872
14873
14874# as_fn_set_status STATUS
14875# -----------------------
14876# Set $? to STATUS, without forking.
14877as_fn_set_status ()
14878{
14879 return $1
14880} # as_fn_set_status
14881
14882# as_fn_exit STATUS
14883# -----------------
14884# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14885as_fn_exit ()
14886{
14887 set +e
14888 as_fn_set_status $1
14889 exit $1
14890} # as_fn_exit
14891
14892# as_fn_unset VAR
14893# ---------------
14894# Portably unset VAR.
14895as_fn_unset ()
14896{
14897 { eval $1=; unset $1;}
14898}
14899as_unset=as_fn_unset
14900# as_fn_append VAR VALUE
14901# ----------------------
14902# Append the text in VALUE to the end of the definition contained in VAR. Take
14903# advantage of any shell optimizations that allow amortized linear growth over
14904# repeated appends, instead of the typical quadratic growth present in naive
14905# implementations.
14906if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14907 eval 'as_fn_append ()
14908 {
14909 eval $1+=\$2
14910 }'
14911else
14912 as_fn_append ()
14913 {
14914 eval $1=\$$1\$2
14915 }
14916fi # as_fn_append
14917
14918# as_fn_arith ARG...
14919# ------------------
14920# Perform arithmetic evaluation on the ARGs, and store the result in the
14921# global $as_val. Take advantage of shells that can avoid forks. The arguments
14922# must be portable across $(()) and expr.
14923if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14924 eval 'as_fn_arith ()
14925 {
14926 as_val=$(( $* ))
14927 }'
14928else
14929 as_fn_arith ()
14930 {
14931 as_val=`expr "$@" || test $? -eq 1`
14932 }
14933fi # as_fn_arith
14934
1c710c3c 14935
5213506e
RW
14936if expr a : '\(a\)' >/dev/null 2>&1 &&
14937 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
14938 as_expr=expr
14939else
14940 as_expr=false
14941fi
14942
5213506e 14943if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
14944 as_basename=basename
14945else
14946 as_basename=false
14947fi
14948
5213506e
RW
14949if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14950 as_dirname=dirname
14951else
14952 as_dirname=false
14953fi
1c710c3c 14954
5213506e 14955as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
14956$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14957 X"$0" : 'X\(//\)$' \| \
5213506e
RW
14958 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14959$as_echo X/"$0" |
14960 sed '/^.*\/\([^/][^/]*\)\/*$/{
14961 s//\1/
14962 q
14963 }
14964 /^X\/\(\/\/\)$/{
14965 s//\1/
14966 q
14967 }
14968 /^X\/\(\/\).*/{
14969 s//\1/
14970 q
14971 }
14972 s/.*/./; q'`
2aeb72e9 14973
2aeb72e9
DD
14974# Avoid depending upon Character Ranges.
14975as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14976as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14977as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14978as_cr_digits='0123456789'
14979as_cr_alnum=$as_cr_Letters$as_cr_digits
14980
5213506e
RW
14981ECHO_C= ECHO_N= ECHO_T=
14982case `echo -n x` in #(((((
14983-n*)
14984 case `echo 'xy\c'` in
14985 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14986 xy) ECHO_C='\c';;
14987 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14988 ECHO_T=' ';;
14989 esac;;
14990*)
14991 ECHO_N='-n';;
1c710c3c
DJ
14992esac
14993
5213506e
RW
14994rm -f conf$$ conf$$.exe conf$$.file
14995if test -d conf$$.dir; then
14996 rm -f conf$$.dir/conf$$.file
1c710c3c 14997else
5213506e
RW
14998 rm -f conf$$.dir
14999 mkdir conf$$.dir 2>/dev/null
1c710c3c 15000fi
5213506e
RW
15001if (echo >conf$$.file) 2>/dev/null; then
15002 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 15003 as_ln_s='ln -s'
5213506e
RW
15004 # ... but there are two gotchas:
15005 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15006 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15007 # In both cases, we have to default to `cp -p'.
15008 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15009 as_ln_s='cp -p'
15010 elif ln conf$$.file conf$$ 2>/dev/null; then
15011 as_ln_s=ln
15012 else
15013 as_ln_s='cp -p'
2aeb72e9 15014 fi
1c710c3c
DJ
15015else
15016 as_ln_s='cp -p'
15017fi
5213506e
RW
15018rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15019rmdir conf$$.dir 2>/dev/null
15020
15021
15022# as_fn_mkdir_p
15023# -------------
15024# Create "$as_dir" as a directory, including parents if necessary.
15025as_fn_mkdir_p ()
15026{
15027
15028 case $as_dir in #(
15029 -*) as_dir=./$as_dir;;
15030 esac
15031 test -d "$as_dir" || eval $as_mkdir_p || {
15032 as_dirs=
15033 while :; do
15034 case $as_dir in #(
15035 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15036 *) as_qdir=$as_dir;;
15037 esac
15038 as_dirs="'$as_qdir' $as_dirs"
15039 as_dir=`$as_dirname -- "$as_dir" ||
15040$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15041 X"$as_dir" : 'X\(//\)[^/]' \| \
15042 X"$as_dir" : 'X\(//\)$' \| \
15043 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15044$as_echo X"$as_dir" |
15045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15046 s//\1/
15047 q
15048 }
15049 /^X\(\/\/\)[^/].*/{
15050 s//\1/
15051 q
15052 }
15053 /^X\(\/\/\)$/{
15054 s//\1/
15055 q
15056 }
15057 /^X\(\/\).*/{
15058 s//\1/
15059 q
15060 }
15061 s/.*/./; q'`
15062 test -d "$as_dir" && break
15063 done
15064 test -z "$as_dirs" || eval "mkdir $as_dirs"
15065 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15066
1c710c3c 15067
5213506e 15068} # as_fn_mkdir_p
1c710c3c 15069if mkdir -p . 2>/dev/null; then
5213506e 15070 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
15071else
15072 test -d ./-p && rmdir ./-p
15073 as_mkdir_p=false
15074fi
15075
5213506e
RW
15076if test -x / >/dev/null 2>&1; then
15077 as_test_x='test -x'
15078else
15079 if ls -dL / >/dev/null 2>&1; then
15080 as_ls_L_option=L
15081 else
15082 as_ls_L_option=
15083 fi
15084 as_test_x='
15085 eval sh -c '\''
15086 if test -d "$1"; then
15087 test -d "$1/.";
15088 else
15089 case $1 in #(
15090 -*)set "./$1";;
15091 esac;
15092 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15093 ???[sx]*):;;*)false;;esac;fi
15094 '\'' sh
15095 '
15096fi
15097as_executable_p=$as_test_x
1c710c3c
DJ
15098
15099# Sed expression to map a string onto a valid CPP name.
15100as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15101
15102# Sed expression to map a string onto a valid variable name.
15103as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15104
15105
1c710c3c 15106exec 6>&1
5213506e
RW
15107## ----------------------------------- ##
15108## Main body of $CONFIG_STATUS script. ##
15109## ----------------------------------- ##
15110_ASEOF
15111test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15112
15113cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15114# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 15115# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
15116# values after options handling.
15117ac_log="
1c710c3c 15118This file was extended by $as_me, which was
5213506e 15119generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
15120
15121 CONFIG_FILES = $CONFIG_FILES
15122 CONFIG_HEADERS = $CONFIG_HEADERS
15123 CONFIG_LINKS = $CONFIG_LINKS
15124 CONFIG_COMMANDS = $CONFIG_COMMANDS
15125 $ $0 $@
15126
5213506e
RW
15127on `(hostname || uname -n) 2>/dev/null | sed 1q`
15128"
15129
1c710c3c
DJ
15130_ACEOF
15131
5213506e
RW
15132case $ac_config_files in *"
15133"*) set x $ac_config_files; shift; ac_config_files=$*;;
15134esac
1c710c3c 15135
2aeb72e9 15136
2aeb72e9 15137
5213506e
RW
15138cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15139# Files that config.status was made for.
15140config_files="$ac_config_files"
1c710c3c 15141
5213506e 15142_ACEOF
2aeb72e9 15143
5213506e 15144cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 15145ac_cs_usage="\
5213506e
RW
15146\`$as_me' instantiates files and other configuration actions
15147from templates according to the current configuration. Unless the files
15148and actions are specified as TAGs, all are instantiated by default.
1c710c3c 15149
5213506e 15150Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
15151
15152 -h, --help print this help, then exit
5213506e
RW
15153 -V, --version print version number and configuration settings, then exit
15154 -q, --quiet, --silent
15155 do not print progress messages
1c710c3c
DJ
15156 -d, --debug don't remove temporary files
15157 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
15158 --file=FILE[:TEMPLATE]
15159 instantiate the configuration file FILE
1c710c3c
DJ
15160
15161Configuration files:
15162$config_files
15163
5213506e 15164Report bugs to the package provider."
2aeb72e9 15165
5213506e
RW
15166_ACEOF
15167cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c
DJ
15168ac_cs_version="\\
15169config.status
5213506e
RW
15170configured by $0, generated by GNU Autoconf 2.64,
15171 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 15172
5213506e 15173Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
15174This config.status script is free software; the Free Software Foundation
15175gives unlimited permission to copy, distribute and modify it."
5213506e
RW
15176
15177ac_pwd='$ac_pwd'
15178srcdir='$srcdir'
15179INSTALL='$INSTALL'
87264276 15180AWK='$AWK'
5213506e 15181test -n "\$AWK" || AWK=awk
1c710c3c
DJ
15182_ACEOF
15183
5213506e
RW
15184cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15185# The default lists apply if the user does not specify any file.
1c710c3c
DJ
15186ac_need_defaults=:
15187while test $# != 0
a4b9e93e 15188do
1c710c3c
DJ
15189 case $1 in
15190 --*=*)
5213506e
RW
15191 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15192 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
15193 ac_shift=:
15194 ;;
5213506e 15195 *)
1c710c3c
DJ
15196 ac_option=$1
15197 ac_optarg=$2
15198 ac_shift=shift
15199 ;;
1c710c3c
DJ
15200 esac
15201
15202 case $ac_option in
15203 # Handling of the options.
671aa708 15204 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 15205 ac_cs_recheck=: ;;
5213506e
RW
15206 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15207 $as_echo "$ac_cs_version"; exit ;;
15208 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
15209 debug=: ;;
15210 --file | --fil | --fi | --f )
15211 $ac_shift
5213506e
RW
15212 case $ac_optarg in
15213 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15214 esac
15215 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 15216 ac_need_defaults=false;;
5213506e
RW
15217 --he | --h | --help | --hel | -h )
15218 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
15219 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15220 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15221 ac_cs_silent=: ;;
15222
15223 # This is an error.
5213506e
RW
15224 -*) as_fn_error "unrecognized option: \`$1'
15225Try \`$0 --help' for more information." ;;
1c710c3c 15226
5213506e
RW
15227 *) as_fn_append ac_config_targets " $1"
15228 ac_need_defaults=false ;;
1c710c3c 15229
0b0dc272 15230 esac
1c710c3c 15231 shift
0b0dc272
AM
15232done
15233
1c710c3c 15234ac_configure_extra_args=
0b0dc272 15235
1c710c3c
DJ
15236if $ac_cs_silent; then
15237 exec 6>/dev/null
15238 ac_configure_extra_args="$ac_configure_extra_args --silent"
15239fi
0b0dc272 15240
1c710c3c 15241_ACEOF
5213506e 15242cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 15243if \$ac_cs_recheck; then
5213506e
RW
15244 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15245 shift
15246 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15247 CONFIG_SHELL='$SHELL'
15248 export CONFIG_SHELL
15249 exec "\$@"
1c710c3c
DJ
15250fi
15251
15252_ACEOF
5213506e
RW
15253cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15254exec 5>>config.log
15255{
15256 echo
15257 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15258## Running $as_me. ##
15259_ASBOX
15260 $as_echo "$ac_log"
15261} >&5
1c710c3c 15262
5213506e
RW
15263_ACEOF
15264cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
15265#
15266# INIT-COMMANDS
15267#
15268extrasub_build="$extrasub_build"
15269 extrasub_host="$extrasub_host"
15270 extrasub_target="$extrasub_target"
15271
5213506e 15272_ACEOF
1c710c3c 15273
5213506e 15274cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 15275
5213506e 15276# Handling of arguments.
1c710c3c
DJ
15277for ac_config_target in $ac_config_targets
15278do
5213506e
RW
15279 case $ac_config_target in
15280 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15281
15282 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
15283 esac
15284done
15285
5213506e 15286
1c710c3c
DJ
15287# If the user did not use the arguments to specify the items to instantiate,
15288# then the envvar interface is used. Set only those that are not.
15289# We use the long form for the default assignment because of an extremely
15290# bizarre bug on SunOS 4.1.3.
15291if $ac_need_defaults; then
15292 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15293fi
15294
15295# Have a temporary directory for convenience. Make it in the build tree
5213506e 15296# simply because there is no reason against having it here, and in addition,
1c710c3c 15297# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
15298# Hook for its removal unless debugging.
15299# Note that there is a small window in which the directory will not be cleaned:
15300# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
15301$debug ||
15302{
5213506e
RW
15303 tmp=
15304 trap 'exit_status=$?
15305 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15306' 0
15307 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 15308}
1c710c3c
DJ
15309# Create a (secure) tmp directory for tmp files.
15310
15311{
5213506e 15312 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
15313 test -n "$tmp" && test -d "$tmp"
15314} ||
15315{
5213506e
RW
15316 tmp=./conf$$-$RANDOM
15317 (umask 077 && mkdir "$tmp")
15318} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15319
15320# Set up the scripts for CONFIG_FILES section.
15321# No need to generate them if there are no CONFIG_FILES.
15322# This happens for instance with `./config.status config.h'.
15323if test -n "$CONFIG_FILES"; then
15324
15325if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15326 ac_cs_awk_getline=:
15327 ac_cs_awk_pipe_init=
15328 ac_cs_awk_read_file='
15329 while ((getline aline < (F[key])) > 0)
15330 print(aline)
15331 close(F[key])'
15332 ac_cs_awk_pipe_fini=
15333else
15334 ac_cs_awk_getline=false
15335 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15336 ac_cs_awk_read_file='
15337 print "|#_!!_#|"
15338 print "cat " F[key] " &&"
15339 '$ac_cs_awk_pipe_init
15340 # The final `:' finishes the AND list.
15341 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15342fi
15343ac_cr=`echo X | tr X '\015'`
15344# On cygwin, bash can eat \r inside `` if the user requested igncr.
15345# But we know of no other shell where ac_cr would be empty at this
15346# point, so we can use a bashism as a fallback.
15347if test "x$ac_cr" = x; then
15348 eval ac_cr=\$\'\\r\'
15349fi
15350ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15351if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15352 ac_cs_awk_cr='\r'
15353else
15354 ac_cs_awk_cr=$ac_cr
15355fi
15356
15357echo 'BEGIN {' >"$tmp/subs1.awk" &&
15358_ACEOF
15359
15360# Create commands to substitute file output variables.
1c710c3c 15361{
5213506e
RW
15362 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15363 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15364 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15365 echo "_ACAWK" &&
15366 echo "_ACEOF"
15367} >conf$$files.sh &&
15368. ./conf$$files.sh ||
15369 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15370rm -f conf$$files.sh
1c710c3c 15371
5213506e
RW
15372{
15373 echo "cat >conf$$subs.awk <<_ACEOF" &&
15374 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15375 echo "_ACEOF"
15376} >conf$$subs.sh ||
15377 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15378ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15379ac_delim='%!_!# '
15380for ac_last_try in false false false false false :; do
15381 . ./conf$$subs.sh ||
15382 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15383
15384 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15385 if test $ac_delim_n = $ac_delim_num; then
15386 break
15387 elif $ac_last_try; then
15388 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15389 else
15390 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15391 fi
15392done
15393rm -f conf$$subs.sh
15394
15395cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15396cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 15397_ACEOF
5213506e
RW
15398sed -n '
15399h
15400s/^/S["/; s/!.*/"]=/
15401p
15402g
15403s/^[^!]*!//
15404:repl
15405t repl
15406s/'"$ac_delim"'$//
15407t delim
15408:nl
15409h
15410s/\(.\{148\}\).*/\1/
15411t more1
15412s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15413p
15414n
15415b repl
15416:more1
15417s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15418p
15419g
15420s/.\{148\}//
15421t nl
15422:delim
15423h
15424s/\(.\{148\}\).*/\1/
15425t more2
15426s/["\\]/\\&/g; s/^/"/; s/$/"/
15427p
15428b
15429:more2
15430s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15431p
15432g
15433s/.\{148\}//
15434t delim
15435' <conf$$subs.awk | sed '
15436/^[^""]/{
15437 N
15438 s/\n//
15439}
15440' >>$CONFIG_STATUS || ac_write_fail=1
15441rm -f conf$$subs.awk
15442cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15443_ACAWK
15444cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15445 for (key in S) S_is_set[key] = 1
15446 FS = "\a"
15447 \$ac_cs_awk_pipe_init
15448}
15449{
15450 line = $ 0
15451 nfields = split(line, field, "@")
15452 substed = 0
15453 len = length(field[1])
15454 for (i = 2; i < nfields; i++) {
15455 key = field[i]
15456 keylen = length(key)
15457 if (S_is_set[key]) {
15458 value = S[key]
15459 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15460 len += length(value) + length(field[++i])
15461 substed = 1
15462 } else
15463 len += 1 + keylen
15464 }
15465 if (nfields == 3 && !substed) {
15466 key = field[2]
15467 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15468 \$ac_cs_awk_read_file
15469 next
15470 }
15471 }
15472 print line
15473}
15474\$ac_cs_awk_pipe_fini
15475_ACAWK
15476_ACEOF
15477cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15478if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15479 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15480else
15481 cat
15482fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15483 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15484_ACEOF
15485
15486# VPATH may cause trouble with some makes, so we remove $(srcdir),
15487# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15488# trailing colons and then remove the whole line if VPATH becomes empty
15489# (actually we leave an empty line to preserve line numbers).
15490if test "x$srcdir" = x.; then
15491 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15492s/:*\$(srcdir):*/:/
15493s/:*\${srcdir}:*/:/
15494s/:*@srcdir@:*/:/
15495s/^\([^=]*=[ ]*\):*/\1/
15496s/:*$//
15497s/^[^=]*=[ ]*$//
15498}'
15499fi
2aeb72e9 15500
5213506e
RW
15501cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15502fi # test -n "$CONFIG_FILES"
2aeb72e9 15503
1c710c3c 15504
5213506e
RW
15505eval set X " :F $CONFIG_FILES "
15506shift
15507for ac_tag
15508do
15509 case $ac_tag in
15510 :[FHLC]) ac_mode=$ac_tag; continue;;
15511 esac
15512 case $ac_mode$ac_tag in
15513 :[FHL]*:*);;
15514 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15515 :[FH]-) ac_tag=-:-;;
15516 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15517 esac
15518 ac_save_IFS=$IFS
15519 IFS=:
15520 set x $ac_tag
15521 IFS=$ac_save_IFS
15522 shift
15523 ac_file=$1
15524 shift
79c06341 15525
5213506e
RW
15526 case $ac_mode in
15527 :L) ac_source=$1;;
15528 :[FH])
15529 ac_file_inputs=
15530 for ac_f
15531 do
15532 case $ac_f in
15533 -) ac_f="$tmp/stdin";;
15534 *) # Look for the file first in the build tree, then in the source tree
15535 # (if the path is not absolute). The absolute path cannot be DOS-style,
15536 # because $ac_f cannot contain `:'.
15537 test -f "$ac_f" ||
15538 case $ac_f in
15539 [\\/$]*) false;;
15540 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15541 esac ||
15542 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15543 esac
15544 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15545 as_fn_append ac_file_inputs " '$ac_f'"
15546 done
1c710c3c 15547
5213506e
RW
15548 # Let's still pretend it is `configure' which instantiates (i.e., don't
15549 # use $as_me), people would be surprised to read:
15550 # /* config.h. Generated by config.status. */
15551 configure_input='Generated from '`
15552 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15553 `' by configure.'
15554 if test x"$ac_file" != x-; then
15555 configure_input="$ac_file. $configure_input"
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15557$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 15558 fi
5213506e
RW
15559 # Neutralize special characters interpreted by sed in replacement strings.
15560 case $configure_input in #(
15561 *\&* | *\|* | *\\* )
15562 ac_sed_conf_input=`$as_echo "$configure_input" |
15563 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15564 *) ac_sed_conf_input=$configure_input;;
15565 esac
11a67599 15566
5213506e
RW
15567 case $ac_tag in
15568 *:-:* | *:-) cat >"$tmp/stdin" \
15569 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15570 esac
15571 ;;
11a67599
ZW
15572 esac
15573
5213506e 15574 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
15575$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15576 X"$ac_file" : 'X\(//\)[^/]' \| \
15577 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
15578 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15579$as_echo X"$ac_file" |
15580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15581 s//\1/
15582 q
15583 }
15584 /^X\(\/\/\)[^/].*/{
15585 s//\1/
15586 q
15587 }
15588 /^X\(\/\/\)$/{
15589 s//\1/
15590 q
15591 }
15592 /^X\(\/\).*/{
15593 s//\1/
15594 q
15595 }
15596 s/.*/./; q'`
15597 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 15598 ac_builddir=.
0b0dc272 15599
5213506e
RW
15600case "$ac_dir" in
15601.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15602*)
15603 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15604 # A ".." for each directory in $ac_dir_suffix.
15605 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15606 case $ac_top_builddir_sub in
15607 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15608 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15609 esac ;;
15610esac
15611ac_abs_top_builddir=$ac_pwd
15612ac_abs_builddir=$ac_pwd$ac_dir_suffix
15613# for backward compatibility:
15614ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
15615
15616case $srcdir in
5213506e 15617 .) # We are building in place.
1c710c3c 15618 ac_srcdir=.
5213506e
RW
15619 ac_top_srcdir=$ac_top_builddir_sub
15620 ac_abs_top_srcdir=$ac_pwd ;;
15621 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 15622 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
15623 ac_top_srcdir=$srcdir
15624 ac_abs_top_srcdir=$srcdir ;;
15625 *) # Relative name.
15626 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15627 ac_top_srcdir=$ac_top_build_prefix$srcdir
15628 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 15629esac
5213506e 15630ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 15631
0b0dc272 15632
5213506e
RW
15633 case $ac_mode in
15634 :F)
15635 #
15636 # CONFIG_FILE
15637 #
1c710c3c
DJ
15638
15639 case $INSTALL in
15640 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 15641 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 15642 esac
5213506e 15643_ACEOF
11a67599 15644
5213506e
RW
15645cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15646# If the template does not know about datarootdir, expand it.
15647# FIXME: This hack should be removed a few years after 2.60.
15648ac_datarootdir_hack=; ac_datarootdir_seen=
15649ac_sed_dataroot='
15650/datarootdir/ {
15651 p
15652 q
15653}
15654/@datadir@/p
15655/@docdir@/p
15656/@infodir@/p
15657/@localedir@/p
15658/@mandir@/p'
15659case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15660*datarootdir*) ac_datarootdir_seen=yes;;
15661*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15663$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 15664_ACEOF
5213506e
RW
15665cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15666 ac_datarootdir_hack='
15667 s&@datadir@&$datadir&g
15668 s&@docdir@&$docdir&g
15669 s&@infodir@&$infodir&g
15670 s&@localedir@&$localedir&g
15671 s&@mandir@&$mandir&g
15672 s&\\\${datarootdir}&$datarootdir&g' ;;
15673esac
15674_ACEOF
15675
15676# Neutralize VPATH when `$srcdir' = `.'.
15677# Shell code in configure.ac might set extrasub.
15678# FIXME: do we really want to maintain this feature?
15679cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15680ac_sed_extra="$ac_vpsub
1c710c3c
DJ
15681$extrasub
15682_ACEOF
5213506e 15683cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
15684:t
15685/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
15686s|@configure_input@|$ac_sed_conf_input|;t t
15687s&@top_builddir@&$ac_top_builddir_sub&;t t
15688s&@top_build_prefix@&$ac_top_build_prefix&;t t
15689s&@srcdir@&$ac_srcdir&;t t
15690s&@abs_srcdir@&$ac_abs_srcdir&;t t
15691s&@top_srcdir@&$ac_top_srcdir&;t t
15692s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15693s&@builddir@&$ac_builddir&;t t
15694s&@abs_builddir@&$ac_abs_builddir&;t t
15695s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15696s&@INSTALL@&$ac_INSTALL&;t t
15697$ac_datarootdir_hack
15698"
15699eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15700if $ac_cs_awk_getline; then
15701 $AWK -f "$tmp/subs.awk"
15702else
15703 $AWK -f "$tmp/subs.awk" | $SHELL
15704fi >$tmp/out \
15705 || as_fn_error "could not create $ac_file" "$LINENO" 5
15706
15707test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15708 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15709 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15711which seems to be undefined. Please make sure it is defined." >&5
15712$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15713which seems to be undefined. Please make sure it is defined." >&2;}
15714
15715 rm -f "$tmp/stdin"
15716 case $ac_file in
15717 -) cat "$tmp/out" && rm -f "$tmp/out";;
15718 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15719 esac \
15720 || as_fn_error "could not create $ac_file" "$LINENO" 5
15721 ;;
11a67599 15722
11a67599 15723
79c06341 15724
5213506e
RW
15725 esac
15726
3e54529c
RW
15727
15728 case $ac_file$ac_mode in
15729 "Makefile":F) sed "$extrasub_build" Makefile |
15730 sed "$extrasub_host" |
15731 sed "$extrasub_target" > mf$$
15732 mv -f mf$$ Makefile ;;
15733
15734 esac
5213506e
RW
15735done # for ac_tag
15736
15737
15738as_fn_exit 0
1c710c3c 15739_ACEOF
1c710c3c
DJ
15740ac_clean_files=$ac_clean_files_save
15741
5213506e
RW
15742test $ac_write_fail = 0 ||
15743 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15744
1c710c3c
DJ
15745
15746# configure is writing to config.log, and then calls config.status.
15747# config.status does its own redirection, appending to config.log.
15748# Unfortunately, on DOS this fails, as config.log is still kept open
15749# by configure, so config.status won't be able to write to it; its
15750# output is simply discarded. So we exec the FD to /dev/null,
15751# effectively closing config.log, so it can be properly (re)opened and
15752# appended to by config.status. When coming back to configure, we
15753# need to make the FD available again.
15754if test "$no_create" != yes; then
15755 ac_cs_success=:
15756 ac_config_status_args=
15757 test "$silent" = yes &&
15758 ac_config_status_args="$ac_config_status_args --quiet"
15759 exec 5>/dev/null
15760 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15761 exec 5>>config.log
15762 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15763 # would make configure fail if this is the last instruction.
5213506e
RW
15764 $ac_cs_success || as_fn_exit $?
15765fi
15766if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15768$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 15769fi
79c06341 15770