]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
re PR target/64210 (FAIL: gcc.target/i386/avx512vl-(vmovdqa64|vpbroadcastd)-1.c ...
[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
d7f09764 645extra_host_libiberty_configure_flags
fca38047 646stage1_languages
45b3824d
TS
647extra_linker_plugin_flags
648extra_linker_plugin_configure_flags
33ad93b9 649islinc
eae1a5d4 650isllibs
5213506e 651poststage1_ldflags
ed2eaa9f 652poststage1_libs
5213506e 653stage1_ldflags
0b21f5d3 654stage1_libs
0ff2d841 655extra_isl_gmp_configure_flags
5213506e
RW
656extra_mpc_mpfr_configure_flags
657extra_mpc_gmp_configure_flags
658extra_mpfr_configure_flags
659gmpinc
660gmplibs
661do_compare
662GNATMAKE
663GNATBIND
664ac_ct_CXX
665CXXFLAGS
666CXX
667OBJEXT
668EXEEXT
669ac_ct_CC
670CPPFLAGS
671LDFLAGS
672CFLAGS
673CC
a4a2c37d 674EXTRA_CONFIGARGS_LIBJAVA
5f520819 675extra_liboffloadmic_configure_flags
5213506e
RW
676target_subdir
677host_subdir
678build_subdir
679build_libsubdir
87264276
PB
680AWK
681SED
5213506e
RW
682LN_S
683LN
684INSTALL_DATA
685INSTALL_SCRIPT
686INSTALL_PROGRAM
687target_os
688target_vendor
689target_cpu
690target
691host_os
692host_vendor
693host_cpu
694host
695target_noncanonical
696host_noncanonical
697build_noncanonical
698build_os
699build_vendor
700build_cpu
701build
702TOPLEVEL_CONFIGURE_ARGUMENTS
703target_alias
704host_alias
705build_alias
706LIBS
707ECHO_T
708ECHO_N
709ECHO_C
710DEFS
711mandir
712localedir
713libdir
714psdir
715pdfdir
716dvidir
717htmldir
718infodir
719docdir
720oldincludedir
721includedir
722localstatedir
723sharedstatedir
724sysconfdir
725datadir
726datarootdir
727libexecdir
728sbindir
729bindir
730program_transform_name
731prefix
732exec_prefix
733PACKAGE_URL
734PACKAGE_BUGREPORT
735PACKAGE_STRING
736PACKAGE_VERSION
737PACKAGE_TARNAME
738PACKAGE_NAME
739PATH_SEPARATOR
740SHELL'
741ac_subst_files='serialization_dependencies
742host_makefile_frag
743target_makefile_frag
744alphaieee_frag
745ospace_frag'
746ac_user_opts='
747enable_option_checking
748with_build_libsubdir
85c64bbe
BS
749enable_as_accelerator_for
750enable_offload_targets
5213506e 751enable_gold
21539e2e 752enable_ld
87e6d9dc
TB
753enable_libquadmath
754enable_libquadmath_support
5213506e
RW
755enable_libada
756enable_libssp
1873ec0c 757enable_libstdcxx
5f520819 758enable_liboffloadmic
a4a2c37d 759enable_static_libjava
ff3ac0f4 760enable_bootstrap
5213506e
RW
761with_mpc
762with_mpc_include
763with_mpc_lib
764with_mpfr_dir
765with_mpfr
766with_mpfr_include
767with_mpfr_lib
768with_gmp_dir
769with_gmp
770with_gmp_include
771with_gmp_lib
772with_host_libstdcxx
5213506e 773with_stage1_libs
0b21f5d3 774with_stage1_ldflags
5213506e 775with_boot_libs
ed2eaa9f 776with_boot_ldflags
33ad93b9
RG
777with_isl
778with_isl_include
779with_isl_lib
780enable_isl_version_check
d7f09764 781enable_lto
45b3824d
TS
782enable_linker_plugin_configure_flags
783enable_linker_plugin_flags
5213506e
RW
784enable_stage1_languages
785enable_objc_gc
786with_build_sysroot
787with_debug_prefix_map
5646b7b9 788with_build_config
beeda1d9 789enable_vtable_verify
5213506e
RW
790enable_serial_configure
791with_build_time_tools
792enable_maintainer_mode
793enable_stage1_checking
794enable_werror
459260ec 795enable_host_shared
5213506e
RW
796'
797 ac_precious_vars='build_alias
798host_alias
799target_alias
800CC
801CFLAGS
802LDFLAGS
803LIBS
804CPPFLAGS
805CXX
806CXXFLAGS
807CCC
ffedf511
RW
808build_configargs
809host_configargs
810target_configargs
5213506e
RW
811AR
812AS
813DLLTOOL
814LD
815LIPO
816NM
817RANLIB
818STRIP
819WINDRES
820WINDMC
821OBJCOPY
822OBJDUMP
e7a82751 823READELF
5213506e
RW
824CC_FOR_TARGET
825CXX_FOR_TARGET
826GCC_FOR_TARGET
827GCJ_FOR_TARGET
828GFORTRAN_FOR_TARGET
632e2a07 829GOC_FOR_TARGET
5213506e
RW
830AR_FOR_TARGET
831AS_FOR_TARGET
832DLLTOOL_FOR_TARGET
833LD_FOR_TARGET
834LIPO_FOR_TARGET
835NM_FOR_TARGET
836OBJDUMP_FOR_TARGET
837RANLIB_FOR_TARGET
e7a82751 838READELF_FOR_TARGET
5213506e
RW
839STRIP_FOR_TARGET
840WINDRES_FOR_TARGET
841WINDMC_FOR_TARGET'
842
671aa708
NN
843
844# Initialize some variables set by options.
1c710c3c
DJ
845ac_init_help=
846ac_init_version=false
5213506e
RW
847ac_unrecognized_opts=
848ac_unrecognized_sep=
671aa708
NN
849# The variables have the same names as the options, with
850# dashes changed to underlines.
1c710c3c 851cache_file=/dev/null
671aa708 852exec_prefix=NONE
671aa708 853no_create=
671aa708
NN
854no_recursion=
855prefix=NONE
856program_prefix=NONE
857program_suffix=NONE
858program_transform_name=s,x,x,
859silent=
860site=
861srcdir=
671aa708
NN
862verbose=
863x_includes=NONE
864x_libraries=NONE
1c710c3c
DJ
865
866# Installation directory options.
867# These are left unexpanded so users can "make install exec_prefix=/foo"
868# and all the variables that are supposed to be based on exec_prefix
869# by default will actually change.
870# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 871# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
872bindir='${exec_prefix}/bin'
873sbindir='${exec_prefix}/sbin'
874libexecdir='${exec_prefix}/libexec'
5213506e
RW
875datarootdir='${prefix}/share'
876datadir='${datarootdir}'
671aa708
NN
877sysconfdir='${prefix}/etc'
878sharedstatedir='${prefix}/com'
879localstatedir='${prefix}/var'
671aa708
NN
880includedir='${prefix}/include'
881oldincludedir='/usr/include'
5213506e
RW
882docdir='${datarootdir}/doc/${PACKAGE}'
883infodir='${datarootdir}/info'
884htmldir='${docdir}'
885dvidir='${docdir}'
886pdfdir='${docdir}'
887psdir='${docdir}'
888libdir='${exec_prefix}/lib'
889localedir='${datarootdir}/locale'
890mandir='${datarootdir}/man'
79c06341 891
671aa708 892ac_prev=
5213506e 893ac_dashdash=
671aa708
NN
894for ac_option
895do
671aa708
NN
896 # If the previous option needs an argument, assign it.
897 if test -n "$ac_prev"; then
5213506e 898 eval $ac_prev=\$ac_option
671aa708
NN
899 ac_prev=
900 continue
901 fi
79c06341 902
5213506e
RW
903 case $ac_option in
904 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905 *) ac_optarg=yes ;;
906 esac
671aa708
NN
907
908 # Accept the important Cygnus configure options, so we can diagnose typos.
909
5213506e
RW
910 case $ac_dashdash$ac_option in
911 --)
912 ac_dashdash=yes ;;
671aa708
NN
913
914 -bindir | --bindir | --bindi | --bind | --bin | --bi)
915 ac_prev=bindir ;;
916 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 917 bindir=$ac_optarg ;;
671aa708
NN
918
919 -build | --build | --buil | --bui | --bu)
1c710c3c 920 ac_prev=build_alias ;;
671aa708 921 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 922 build_alias=$ac_optarg ;;
671aa708
NN
923
924 -cache-file | --cache-file | --cache-fil | --cache-fi \
925 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
926 ac_prev=cache_file ;;
927 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
928 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
929 cache_file=$ac_optarg ;;
930
931 --config-cache | -C)
932 cache_file=config.cache ;;
671aa708 933
5213506e 934 -datadir | --datadir | --datadi | --datad)
671aa708 935 ac_prev=datadir ;;
5213506e 936 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 937 datadir=$ac_optarg ;;
671aa708 938
5213506e
RW
939 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
940 | --dataroo | --dataro | --datar)
941 ac_prev=datarootdir ;;
942 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
943 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
944 datarootdir=$ac_optarg ;;
945
671aa708 946 -disable-* | --disable-*)
5213506e 947 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 948 # Reject names that are not valid shell variable names.
5213506e
RW
949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950 as_fn_error "invalid feature name: $ac_useropt"
951 ac_useropt_orig=$ac_useropt
952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in
954 *"
955"enable_$ac_useropt"
956"*) ;;
957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
958 ac_unrecognized_sep=', ';;
959 esac
960 eval enable_$ac_useropt=no ;;
961
962 -docdir | --docdir | --docdi | --doc | --do)
963 ac_prev=docdir ;;
964 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965 docdir=$ac_optarg ;;
966
967 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968 ac_prev=dvidir ;;
969 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970 dvidir=$ac_optarg ;;
671aa708
NN
971
972 -enable-* | --enable-*)
5213506e 973 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 974 # Reject names that are not valid shell variable names.
5213506e
RW
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976 as_fn_error "invalid feature name: $ac_useropt"
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
980 *"
981"enable_$ac_useropt"
982"*) ;;
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
2aeb72e9 985 esac
5213506e 986 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
987
988 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
989 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
990 | --exec | --exe | --ex)
991 ac_prev=exec_prefix ;;
992 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
993 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
994 | --exec=* | --exe=* | --ex=*)
1c710c3c 995 exec_prefix=$ac_optarg ;;
671aa708
NN
996
997 -gas | --gas | --ga | --g)
998 # Obsolete; use --with-gas.
999 with_gas=yes ;;
1000
1c710c3c
DJ
1001 -help | --help | --hel | --he | -h)
1002 ac_init_help=long ;;
1003 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1004 ac_init_help=recursive ;;
1005 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1006 ac_init_help=short ;;
671aa708
NN
1007
1008 -host | --host | --hos | --ho)
1c710c3c 1009 ac_prev=host_alias ;;
671aa708 1010 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1011 host_alias=$ac_optarg ;;
671aa708 1012
5213506e
RW
1013 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014 ac_prev=htmldir ;;
1015 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016 | --ht=*)
1017 htmldir=$ac_optarg ;;
1018
671aa708
NN
1019 -includedir | --includedir | --includedi | --included | --include \
1020 | --includ | --inclu | --incl | --inc)
1021 ac_prev=includedir ;;
1022 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1023 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1024 includedir=$ac_optarg ;;
671aa708
NN
1025
1026 -infodir | --infodir | --infodi | --infod | --info | --inf)
1027 ac_prev=infodir ;;
1028 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1029 infodir=$ac_optarg ;;
671aa708
NN
1030
1031 -libdir | --libdir | --libdi | --libd)
1032 ac_prev=libdir ;;
1033 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1034 libdir=$ac_optarg ;;
671aa708
NN
1035
1036 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1037 | --libexe | --libex | --libe)
1038 ac_prev=libexecdir ;;
1039 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1040 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1041 libexecdir=$ac_optarg ;;
671aa708 1042
5213506e
RW
1043 -localedir | --localedir | --localedi | --localed | --locale)
1044 ac_prev=localedir ;;
1045 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1046 localedir=$ac_optarg ;;
1047
671aa708 1048 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1049 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1050 ac_prev=localstatedir ;;
1051 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1052 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1053 localstatedir=$ac_optarg ;;
671aa708
NN
1054
1055 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056 ac_prev=mandir ;;
1057 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1058 mandir=$ac_optarg ;;
671aa708
NN
1059
1060 -nfp | --nfp | --nf)
1061 # Obsolete; use --without-fp.
1062 with_fp=no ;;
1063
1064 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1065 | --no-cr | --no-c | -n)
671aa708
NN
1066 no_create=yes ;;
1067
1068 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1069 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070 no_recursion=yes ;;
1071
1072 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1073 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1074 | --oldin | --oldi | --old | --ol | --o)
1075 ac_prev=oldincludedir ;;
1076 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1077 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1078 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1079 oldincludedir=$ac_optarg ;;
671aa708
NN
1080
1081 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082 ac_prev=prefix ;;
1083 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1084 prefix=$ac_optarg ;;
671aa708
NN
1085
1086 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1087 | --program-pre | --program-pr | --program-p)
1088 ac_prev=program_prefix ;;
1089 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1090 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1091 program_prefix=$ac_optarg ;;
671aa708
NN
1092
1093 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1094 | --program-suf | --program-su | --program-s)
1095 ac_prev=program_suffix ;;
1096 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1097 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1098 program_suffix=$ac_optarg ;;
671aa708
NN
1099
1100 -program-transform-name | --program-transform-name \
1101 | --program-transform-nam | --program-transform-na \
1102 | --program-transform-n | --program-transform- \
1103 | --program-transform | --program-transfor \
1104 | --program-transfo | --program-transf \
1105 | --program-trans | --program-tran \
1106 | --progr-tra | --program-tr | --program-t)
1107 ac_prev=program_transform_name ;;
1108 -program-transform-name=* | --program-transform-name=* \
1109 | --program-transform-nam=* | --program-transform-na=* \
1110 | --program-transform-n=* | --program-transform-=* \
1111 | --program-transform=* | --program-transfor=* \
1112 | --program-transfo=* | --program-transf=* \
1113 | --program-trans=* | --program-tran=* \
1114 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1115 program_transform_name=$ac_optarg ;;
671aa708 1116
5213506e
RW
1117 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118 ac_prev=pdfdir ;;
1119 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1120 pdfdir=$ac_optarg ;;
1121
1122 -psdir | --psdir | --psdi | --psd | --ps)
1123 ac_prev=psdir ;;
1124 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125 psdir=$ac_optarg ;;
1126
671aa708
NN
1127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1128 | -silent | --silent | --silen | --sile | --sil)
1129 silent=yes ;;
1130
1131 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1132 ac_prev=sbindir ;;
1133 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1134 | --sbi=* | --sb=*)
1c710c3c 1135 sbindir=$ac_optarg ;;
671aa708
NN
1136
1137 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1138 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1139 | --sharedst | --shareds | --shared | --share | --shar \
1140 | --sha | --sh)
1141 ac_prev=sharedstatedir ;;
1142 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1143 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1144 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1145 | --sha=* | --sh=*)
1c710c3c 1146 sharedstatedir=$ac_optarg ;;
671aa708
NN
1147
1148 -site | --site | --sit)
1149 ac_prev=site ;;
1150 -site=* | --site=* | --sit=*)
1c710c3c 1151 site=$ac_optarg ;;
671aa708
NN
1152
1153 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1154 ac_prev=srcdir ;;
1155 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1156 srcdir=$ac_optarg ;;
671aa708
NN
1157
1158 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1159 | --syscon | --sysco | --sysc | --sys | --sy)
1160 ac_prev=sysconfdir ;;
1161 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1162 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1163 sysconfdir=$ac_optarg ;;
671aa708
NN
1164
1165 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1166 ac_prev=target_alias ;;
671aa708 1167 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1168 target_alias=$ac_optarg ;;
671aa708
NN
1169
1170 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1171 verbose=yes ;;
1172
1c710c3c
DJ
1173 -version | --version | --versio | --versi | --vers | -V)
1174 ac_init_version=: ;;
671aa708
NN
1175
1176 -with-* | --with-*)
5213506e 1177 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1178 # Reject names that are not valid shell variable names.
5213506e
RW
1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180 as_fn_error "invalid package name: $ac_useropt"
1181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1184 *"
1185"with_$ac_useropt"
1186"*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
2aeb72e9 1189 esac
5213506e 1190 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1191
1192 -without-* | --without-*)
5213506e 1193 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1194 # Reject names that are not valid shell variable names.
5213506e
RW
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 as_fn_error "invalid package name: $ac_useropt"
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1200 *"
1201"with_$ac_useropt"
1202"*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=no ;;
671aa708
NN
1207
1208 --x)
1209 # Obsolete; use --with-x.
1210 with_x=yes ;;
1211
1212 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1213 | --x-incl | --x-inc | --x-in | --x-i)
1214 ac_prev=x_includes ;;
1215 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1216 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1217 x_includes=$ac_optarg ;;
671aa708
NN
1218
1219 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1220 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1221 ac_prev=x_libraries ;;
1222 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1223 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1224 x_libraries=$ac_optarg ;;
671aa708 1225
5213506e
RW
1226 -*) as_fn_error "unrecognized option: \`$ac_option'
1227Try \`$0 --help' for more information."
671aa708
NN
1228 ;;
1229
1c710c3c
DJ
1230 *=*)
1231 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1232 # Reject names that are not valid shell variable names.
5213506e
RW
1233 case $ac_envvar in #(
1234 '' | [0-9]* | *[!_$as_cr_alnum]* )
1235 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1236 esac
1237 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1238 export $ac_envvar ;;
1239
671aa708 1240 *)
1c710c3c 1241 # FIXME: should be removed in autoconf 3.0.
5213506e 1242 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1243 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1244 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1c710c3c 1245 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
1246 ;;
1247
1248 esac
1249done
1250
1251if test -n "$ac_prev"; then
1c710c3c 1252 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1253 as_fn_error "missing argument to $ac_option"
af71363e 1254fi
af71363e 1255
5213506e
RW
1256if test -n "$ac_unrecognized_opts"; then
1257 case $enable_option_checking in
1258 no) ;;
1259 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1260 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1261 esac
5213506e 1262fi
2aeb72e9 1263
5213506e
RW
1264# Check all directory arguments for consistency.
1265for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266 datadir sysconfdir sharedstatedir localstatedir includedir \
1267 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1268 libdir localedir mandir
2aeb72e9 1269do
5213506e
RW
1270 eval ac_val=\$$ac_var
1271 # Remove trailing slashes.
1272 case $ac_val in
1273 */ )
1274 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1275 eval $ac_var=\$ac_val;;
1276 esac
1277 # Be sure to have absolute directory names.
2aeb72e9 1278 case $ac_val in
5213506e
RW
1279 [\\/$]* | ?:[\\/]* ) continue;;
1280 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1281 esac
5213506e 1282 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1283done
1284
1c710c3c
DJ
1285# There might be people who depend on the old broken behavior: `$host'
1286# used to hold the argument of --host etc.
1287# FIXME: To remove some day.
1288build=$build_alias
1289host=$host_alias
1290target=$target_alias
0b0dc272 1291
1c710c3c
DJ
1292# FIXME: To remove some day.
1293if test "x$host_alias" != x; then
1294 if test "x$build_alias" = x; then
1295 cross_compiling=maybe
5213506e 1296 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1c710c3c
DJ
1297 If a cross compiler is detected then cross compile mode will be used." >&2
1298 elif test "x$build_alias" != "x$host_alias"; then
1299 cross_compiling=yes
1300 fi
1301fi
1302
1303ac_tool_prefix=
1304test -n "$host_alias" && ac_tool_prefix=$host_alias-
1305
1306test "$silent" = yes && exec 6>/dev/null
671aa708 1307
671aa708 1308
5213506e
RW
1309ac_pwd=`pwd` && test -n "$ac_pwd" &&
1310ac_ls_di=`ls -di .` &&
1311ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1312 as_fn_error "working directory cannot be determined"
1313test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314 as_fn_error "pwd does not report name of working directory"
1315
1316
671aa708
NN
1317# Find the source files, if location was not specified.
1318if test -z "$srcdir"; then
1319 ac_srcdir_defaulted=yes
5213506e
RW
1320 # Try the directory containing this script, then the parent directory.
1321 ac_confdir=`$as_dirname -- "$as_myself" ||
1322$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1323 X"$as_myself" : 'X\(//\)[^/]' \| \
1324 X"$as_myself" : 'X\(//\)$' \| \
1325 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1326$as_echo X"$as_myself" |
1327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\/\)[^/].*/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\/\)$/{
1336 s//\1/
1337 q
1338 }
1339 /^X\(\/\).*/{
1340 s//\1/
1341 q
1342 }
1343 s/.*/./; q'`
671aa708 1344 srcdir=$ac_confdir
5213506e 1345 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1346 srcdir=..
1347 fi
1348else
1349 ac_srcdir_defaulted=no
1350fi
5213506e
RW
1351if test ! -r "$srcdir/$ac_unique_file"; then
1352 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1353 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1354fi
1355ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356ac_abs_confdir=`(
1357 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1358 pwd)`
1359# When building in place, set srcdir=.
1360if test "$ac_abs_confdir" = "$ac_pwd"; then
1361 srcdir=.
1362fi
1363# Remove unnecessary trailing slashes from srcdir.
1364# Double slashes in file names in object file debugging info
1365# mess up M-x gdb in Emacs.
1366case $srcdir in
1367*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368esac
87841584
AM
1369case $srcdir in
1370 *" "*)
1371 as_fn_error "path to source, $srcdir, contains spaces"
1372 ;;
1373esac
ac9e6043
RW
1374ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1375
5213506e
RW
1376for ac_var in $ac_precious_vars; do
1377 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1378 eval ac_env_${ac_var}_value=\$${ac_var}
1379 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1381done
1c710c3c
DJ
1382
1383#
1384# Report the --help message.
1385#
1386if test "$ac_init_help" = "long"; then
1387 # Omit some internal or obsolete options to make the list less imposing.
1388 # This message is too long to be a string in the A/UX 3.1 sh.
1389 cat <<_ACEOF
1390\`configure' configures this package to adapt to many kinds of systems.
1391
1392Usage: $0 [OPTION]... [VAR=VALUE]...
1393
1394To assign environment variables (e.g., CC, CFLAGS...), specify them as
1395VAR=VALUE. See below for descriptions of some of the useful variables.
1396
1397Defaults for the options are specified in brackets.
1398
1399Configuration:
1400 -h, --help display this help and exit
1401 --help=short display options specific to this package
1402 --help=recursive display the short help of all the included packages
1403 -V, --version display version information and exit
1404 -q, --quiet, --silent do not print \`checking...' messages
1405 --cache-file=FILE cache test results in FILE [disabled]
1406 -C, --config-cache alias for \`--cache-file=config.cache'
1407 -n, --no-create do not create output files
1408 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1409
1c710c3c
DJ
1410Installation directories:
1411 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1412 [$ac_default_prefix]
1c710c3c 1413 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1414 [PREFIX]
1c710c3c
DJ
1415
1416By default, \`make install' will install all the files in
1417\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1418an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1419for instance \`--prefix=\$HOME'.
1420
1421For better control, use the options below.
1422
1423Fine tuning of the installation directories:
5213506e
RW
1424 --bindir=DIR user executables [EPREFIX/bin]
1425 --sbindir=DIR system admin executables [EPREFIX/sbin]
1426 --libexecdir=DIR program executables [EPREFIX/libexec]
1427 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1428 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1429 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1430 --libdir=DIR object code libraries [EPREFIX/lib]
1431 --includedir=DIR C header files [PREFIX/include]
1432 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1433 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1434 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1435 --infodir=DIR info documentation [DATAROOTDIR/info]
1436 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1437 --mandir=DIR man documentation [DATAROOTDIR/man]
1438 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1439 --htmldir=DIR html documentation [DOCDIR]
1440 --dvidir=DIR dvi documentation [DOCDIR]
1441 --pdfdir=DIR pdf documentation [DOCDIR]
1442 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1443_ACEOF
1444
1445 cat <<\_ACEOF
1446
1447Program names:
1448 --program-prefix=PREFIX prepend PREFIX to installed program names
1449 --program-suffix=SUFFIX append SUFFIX to installed program names
1450 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1451
1452System types:
1453 --build=BUILD configure for building on BUILD [guessed]
1454 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1455 --target=TARGET configure for building compilers for TARGET [HOST]
1456_ACEOF
1457fi
1458
1459if test -n "$ac_init_help"; then
1460
1461 cat <<\_ACEOF
1462
1463Optional Features:
5213506e 1464 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1465 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1466 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85c64bbe
BS
1467 --enable-as-accelerator-for=ARG
1468 build as offload target compiler. Specify offload
1469 host triple by ARG
1470 --enable-offload-targets=LIST
1471 enable offloading to devices from comma-separated
1472 LIST of TARGET[=DIR]. Use optional path to find
1473 offload target compiler during the build
21539e2e 1474 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1475 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
87e6d9dc
TB
1476 --disable-libquadmath do not build libquadmath directory
1477 --disable-libquadmath-support
1478 disable libquadmath support for Fortran
30b74385
RW
1479 --enable-libada build libada directory
1480 --enable-libssp build libssp directory
1873ec0c 1481 --disable-libstdcxx do not build libstdc++-v3 directory
5f520819
KY
1482 --enable-liboffloadmic=ARG
1483 build liboffloadmic [ARG={no,host,target}]
a4a2c37d
MK
1484 --enable-static-libjava[=ARG]
1485 build static libjava [default=no]
ff3ac0f4 1486 --enable-bootstrap enable bootstrapping [yes if native build]
33ad93b9
RG
1487 --disable-isl-version-check
1488 disable check for ISL version
d7f09764 1489 --enable-lto enable link time optimization support
45b3824d
TS
1490 --enable-linker-plugin-configure-flags=FLAGS
1491 additional flags for configuring linker plugins
1492 [none]
1493 --enable-linker-plugin-flags=FLAGS
1494 additional flags for configuring and building linker
1495 plugins [none]
33e39b66
AS
1496 --enable-stage1-languages[=all]
1497 choose additional languages to build during stage1.
1498 Mostly useful for compiler development
1499 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1500 Objective-C runtime
beeda1d9 1501 --enable-vtable-verify Enable vtable verification feature
30b74385 1502 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1503 force sequential configuration of sub-packages for
1504 the host, target or build machine, or all
1505 sub-packages
1506 --enable-maintainer-mode
1507 enable make rules and dependencies not useful (and
1508 sometimes confusing) to the casual installer
1509 --enable-stage1-checking[=all]
1510 choose additional checking for stage1 of the
1511 compiler
1c710c3c 1512 --enable-werror enable -Werror in bootstrap stage2 and later
459260ec 1513 --enable-host-shared build host code as shared libraries
1c710c3c
DJ
1514
1515Optional Packages:
1516 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1517 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1518 --with-build-libsubdir=DIR Directory where to find libraries for build system
33e39b66
AS
1519 --with-mpc=PATH specify prefix directory for installed MPC package.
1520 Equivalent to --with-mpc-include=PATH/include plus
1521 --with-mpc-lib=PATH/lib
1522 --with-mpc-include=PATH specify directory for installed MPC include files
1523 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1524 --with-mpfr-dir=PATH this option has been REMOVED
1525 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1526 Equivalent to --with-mpfr-include=PATH/include plus
1527 --with-mpfr-lib=PATH/lib
1c710c3c 1528 --with-mpfr-include=PATH
30b74385
RW
1529 specify directory for installed MPFR include files
1530 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1531 --with-gmp-dir=PATH this option has been REMOVED
33e39b66
AS
1532 --with-gmp=PATH specify prefix directory for the installed GMP
1533 package. Equivalent to
1534 --with-gmp-include=PATH/include plus
1535 --with-gmp-lib=PATH/lib
30b74385
RW
1536 --with-gmp-include=PATH specify directory for installed GMP include files
1537 --with-gmp-lib=PATH specify directory for the installed GMP library
33e39b66
AS
1538 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1539 linking with PPL
0b21f5d3 1540 --with-stage1-libs=LIBS libraries for stage1
33e39b66
AS
1541 --with-stage1-ldflags=FLAGS
1542 linker flags for stage1
33e39b66
AS
1543 --with-boot-libs=LIBS libraries for stage2 and later
1544 --with-boot-ldflags=FLAGS
1545 linker flags for stage2 and later
33ad93b9 1546 --with-isl=PATH Specify prefix directory for the installed ISL
33e39b66 1547 package. Equivalent to
33ad93b9
RG
1548 --with-isl-include=PATH/include plus
1549 --with-isl-lib=PATH/lib
1550 --with-isl-include=PATH Specify directory for installed ISL include files
1551 --with-isl-lib=PATH Specify the directory for the installed ISL library
30b74385 1552 --with-build-sysroot=SYSROOT
1c710c3c 1553 use sysroot as the system root during the build
c8aea42c 1554 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1555 map A to B, C to D ... in debug information
1556 --with-build-config='NAME NAME2...'
1557 use config/NAME.mk build configuration
30b74385 1558 --with-build-time-tools=PATH
1c710c3c 1559 use given path to find target tools during the build
1c710c3c
DJ
1560
1561Some influential environment variables:
1562 CC C compiler command
1563 CFLAGS C compiler flags
1564 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1565 nonstandard directory <lib dir>
5213506e
RW
1566 LIBS libraries to pass to the linker, e.g. -l<library>
1567 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1568 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1569 CXX C++ compiler command
1570 CXXFLAGS C++ compiler flags
ffedf511
RW
1571 build_configargs
1572 additional configure arguments for build directories
1573 host_configargs
1574 additional configure arguments for host directories
1575 target_configargs
1576 additional configure arguments for target directories
278a7a38
AO
1577 AR AR for the host
1578 AS AS for the host
1579 DLLTOOL DLLTOOL for the host
1580 LD LD for the host
1581 LIPO LIPO for the host
1582 NM NM for the host
1583 RANLIB RANLIB for the host
1584 STRIP STRIP for the host
1585 WINDRES WINDRES for the host
901119ae 1586 WINDMC WINDMC for the host
278a7a38
AO
1587 OBJCOPY OBJCOPY for the host
1588 OBJDUMP OBJDUMP for the host
e7a82751 1589 READELF READELF for the host
278a7a38
AO
1590 CC_FOR_TARGET
1591 CC for the target
1592 CXX_FOR_TARGET
1593 CXX for the target
1594 GCC_FOR_TARGET
1595 GCC for the target
1596 GCJ_FOR_TARGET
1597 GCJ for the target
1598 GFORTRAN_FOR_TARGET
1599 GFORTRAN for the target
632e2a07
ILT
1600 GOC_FOR_TARGET
1601 GOC for the target
278a7a38
AO
1602 AR_FOR_TARGET
1603 AR for the target
1604 AS_FOR_TARGET
1605 AS for the target
1606 DLLTOOL_FOR_TARGET
1607 DLLTOOL for the target
1608 LD_FOR_TARGET
1609 LD for the target
1610 LIPO_FOR_TARGET
1611 LIPO for the target
1612 NM_FOR_TARGET
1613 NM for the target
1614 OBJDUMP_FOR_TARGET
1615 OBJDUMP for the target
1616 RANLIB_FOR_TARGET
1617 RANLIB for the target
e7a82751
RM
1618 READELF_FOR_TARGET
1619 READELF for the target
278a7a38
AO
1620 STRIP_FOR_TARGET
1621 STRIP for the target
1622 WINDRES_FOR_TARGET
1623 WINDRES for the target
901119ae
KT
1624 WINDMC_FOR_TARGET
1625 WINDMC for the target
1c710c3c
DJ
1626
1627Use these variables to override the choices made by `configure' or to help
1628it to find libraries and programs with nonstandard names/locations.
1629
5213506e 1630Report bugs to the package provider.
1c710c3c 1631_ACEOF
5213506e 1632ac_status=$?
1c710c3c
DJ
1633fi
1634
1635if test "$ac_init_help" = "recursive"; then
1636 # If there are subdirs, report their specific --help.
1c710c3c 1637 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1638 test -d "$ac_dir" ||
1639 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1640 continue
1c710c3c
DJ
1641 ac_builddir=.
1642
5213506e
RW
1643case "$ac_dir" in
1644.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1645*)
1646 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1647 # A ".." for each directory in $ac_dir_suffix.
1648 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1649 case $ac_top_builddir_sub in
1650 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1651 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1652 esac ;;
1653esac
1654ac_abs_top_builddir=$ac_pwd
1655ac_abs_builddir=$ac_pwd$ac_dir_suffix
1656# for backward compatibility:
1657ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1658
1659case $srcdir in
5213506e 1660 .) # We are building in place.
1c710c3c 1661 ac_srcdir=.
5213506e
RW
1662 ac_top_srcdir=$ac_top_builddir_sub
1663 ac_abs_top_srcdir=$ac_pwd ;;
1664 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1665 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1666 ac_top_srcdir=$srcdir
1667 ac_abs_top_srcdir=$srcdir ;;
1668 *) # Relative name.
1669 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1670 ac_top_srcdir=$ac_top_build_prefix$srcdir
1671 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1672esac
5213506e
RW
1673ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1674
1675 cd "$ac_dir" || { ac_status=$?; continue; }
1676 # Check for guested configure.
1677 if test -f "$ac_srcdir/configure.gnu"; then
1678 echo &&
1679 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1680 elif test -f "$ac_srcdir/configure"; then
1681 echo &&
1682 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1683 else
5213506e
RW
1684 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1685 fi || ac_status=$?
1686 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1687 done
1688fi
1689
5213506e 1690test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1691if $ac_init_version; then
1692 cat <<\_ACEOF
5213506e
RW
1693configure
1694generated by GNU Autoconf 2.64
1c710c3c 1695
5213506e 1696Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
1697This configure script is free software; the Free Software Foundation
1698gives unlimited permission to copy, distribute and modify it.
1699_ACEOF
5213506e 1700 exit
0b0dc272 1701fi
5213506e
RW
1702
1703## ------------------------ ##
1704## Autoconf initialization. ##
1705## ------------------------ ##
1706
1707# ac_fn_c_try_compile LINENO
1708# --------------------------
1709# Try to compile conftest.$ac_ext, and return whether this succeeded.
1710ac_fn_c_try_compile ()
1711{
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 rm -f conftest.$ac_objext
1714 if { { ac_try="$ac_compile"
1715case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1718esac
1719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720$as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_compile") 2>conftest.err
1722 ac_status=$?
1723 if test -s conftest.err; then
1724 grep -v '^ *+' conftest.err >conftest.er1
1725 cat conftest.er1 >&5
1726 mv -f conftest.er1 conftest.err
1727 fi
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && {
1730 test -z "$ac_c_werror_flag" ||
1731 test ! -s conftest.err
1732 } && test -s conftest.$ac_objext; then :
1733 ac_retval=0
1734else
1735 $as_echo "$as_me: failed program was:" >&5
1736sed 's/^/| /' conftest.$ac_ext >&5
1737
1738 ac_retval=1
1739fi
1740 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1741 return $ac_retval
1742
1743} # ac_fn_c_try_compile
1744
1745# ac_fn_cxx_try_compile LINENO
1746# ----------------------------
1747# Try to compile conftest.$ac_ext, and return whether this succeeded.
1748ac_fn_cxx_try_compile ()
1749{
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 rm -f conftest.$ac_objext
1752 if { { ac_try="$ac_compile"
1753case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1756esac
1757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758$as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_compile") 2>conftest.err
1760 ac_status=$?
1761 if test -s conftest.err; then
1762 grep -v '^ *+' conftest.err >conftest.er1
1763 cat conftest.er1 >&5
1764 mv -f conftest.er1 conftest.err
1765 fi
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; } && {
1768 test -z "$ac_cxx_werror_flag" ||
1769 test ! -s conftest.err
1770 } && test -s conftest.$ac_objext; then :
1771 ac_retval=0
1772else
1773 $as_echo "$as_me: failed program was:" >&5
1774sed 's/^/| /' conftest.$ac_ext >&5
1775
1776 ac_retval=1
1777fi
1778 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1779 return $ac_retval
1780
1781} # ac_fn_cxx_try_compile
1782
0b21f5d3
EB
1783# ac_fn_cxx_try_link LINENO
1784# -------------------------
1785# Try to link conftest.$ac_ext, and return whether this succeeded.
1786ac_fn_cxx_try_link ()
1787{
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 rm -f conftest.$ac_objext conftest$ac_exeext
1790 if { { ac_try="$ac_link"
1791case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794esac
1795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796$as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_link") 2>conftest.err
1798 ac_status=$?
1799 if test -s conftest.err; then
1800 grep -v '^ *+' conftest.err >conftest.er1
1801 cat conftest.er1 >&5
1802 mv -f conftest.er1 conftest.err
1803 fi
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } && {
1806 test -z "$ac_cxx_werror_flag" ||
1807 test ! -s conftest.err
1808 } && test -s conftest$ac_exeext && {
1809 test "$cross_compiling" = yes ||
1810 $as_test_x conftest$ac_exeext
1811 }; then :
1812 ac_retval=0
1813else
1814 $as_echo "$as_me: failed program was:" >&5
1815sed 's/^/| /' conftest.$ac_ext >&5
1816
1817 ac_retval=1
1818fi
1819 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1820 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1821 # interfere with the next link command; also delete a directory that is
1822 # left behind by Apple's compiler. We do this before executing the actions.
1823 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1824 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1825 return $ac_retval
1826
1827} # ac_fn_cxx_try_link
1828
5213506e
RW
1829# ac_fn_c_try_link LINENO
1830# -----------------------
1831# Try to link conftest.$ac_ext, and return whether this succeeded.
1832ac_fn_c_try_link ()
1833{
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 rm -f conftest.$ac_objext conftest$ac_exeext
1836 if { { ac_try="$ac_link"
1837case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840esac
1841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842$as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_link") 2>conftest.err
1844 ac_status=$?
1845 if test -s conftest.err; then
1846 grep -v '^ *+' conftest.err >conftest.er1
1847 cat conftest.er1 >&5
1848 mv -f conftest.er1 conftest.err
1849 fi
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && {
1852 test -z "$ac_c_werror_flag" ||
1853 test ! -s conftest.err
1854 } && test -s conftest$ac_exeext && {
1855 test "$cross_compiling" = yes ||
1856 $as_test_x conftest$ac_exeext
1857 }; then :
1858 ac_retval=0
1859else
1860 $as_echo "$as_me: failed program was:" >&5
1861sed 's/^/| /' conftest.$ac_ext >&5
1862
1863 ac_retval=1
1864fi
1865 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1866 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1867 # interfere with the next link command; also delete a directory that is
1868 # left behind by Apple's compiler. We do this before executing the actions.
1869 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871 return $ac_retval
1872
1873} # ac_fn_c_try_link
1874cat >config.log <<_ACEOF
1c710c3c
DJ
1875This file contains any messages produced by compilers while
1876running configure, to aid debugging if configure makes a mistake.
1877
1878It was created by $as_me, which was
5213506e 1879generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
1880
1881 $ $0 $@
1882
1883_ACEOF
5213506e 1884exec 5>>config.log
1c710c3c
DJ
1885{
1886cat <<_ASUNAME
1887## --------- ##
1888## Platform. ##
1889## --------- ##
1890
1891hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1892uname -m = `(uname -m) 2>/dev/null || echo unknown`
1893uname -r = `(uname -r) 2>/dev/null || echo unknown`
1894uname -s = `(uname -s) 2>/dev/null || echo unknown`
1895uname -v = `(uname -v) 2>/dev/null || echo unknown`
1896
1897/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1898/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1899
1900/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1901/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1902/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1903/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1904/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1905/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1906/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1907
1908_ASUNAME
1909
1910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911for as_dir in $PATH
1912do
1913 IFS=$as_save_IFS
1914 test -z "$as_dir" && as_dir=.
5213506e
RW
1915 $as_echo "PATH: $as_dir"
1916 done
1917IFS=$as_save_IFS
1c710c3c
DJ
1918
1919} >&5
1920
1921cat >&5 <<_ACEOF
1922
1923
1924## ----------- ##
1925## Core tests. ##
1926## ----------- ##
1927
1928_ACEOF
1929
1930
1931# Keep a trace of the command line.
1932# Strip out --no-create and --no-recursion so they do not pile up.
1933# Strip out --silent because we don't want to record it for future runs.
1934# Also quote any args containing shell meta-characters.
1935# Make two passes to allow for proper duplicate-argument suppression.
1936ac_configure_args=
1937ac_configure_args0=
1938ac_configure_args1=
1c710c3c
DJ
1939ac_must_keep_next=false
1940for ac_pass in 1 2
1941do
1942 for ac_arg
1943 do
1944 case $ac_arg in
1945 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1946 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1947 | -silent | --silent | --silen | --sile | --sil)
1948 continue ;;
5213506e
RW
1949 *\'*)
1950 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1951 esac
1952 case $ac_pass in
5213506e 1953 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 1954 2)
5213506e 1955 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
1956 if test $ac_must_keep_next = true; then
1957 ac_must_keep_next=false # Got value, back to normal.
1958 else
1959 case $ac_arg in
1960 *=* | --config-cache | -C | -disable-* | --disable-* \
1961 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1962 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1963 | -with-* | --with-* | -without-* | --without-* | --x)
1964 case "$ac_configure_args0 " in
1965 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1966 esac
1967 ;;
1968 -* ) ac_must_keep_next=true ;;
1969 esac
1970 fi
5213506e 1971 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
1972 ;;
1973 esac
1974 done
1975done
5213506e
RW
1976{ ac_configure_args0=; unset ac_configure_args0;}
1977{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
1978
1979# When interrupted or exit'd, cleanup temporary files, and complete
1980# config.log. We remove comments because anyway the quotes in there
1981# would cause problems or look ugly.
5213506e
RW
1982# WARNING: Use '\'' to represent an apostrophe within the trap.
1983# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
1984trap 'exit_status=$?
1985 # Save into config.log some information that might help in debugging.
1986 {
1987 echo
1988
1989 cat <<\_ASBOX
1990## ---------------- ##
1991## Cache variables. ##
1992## ---------------- ##
1993_ASBOX
1994 echo
1995 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
1996(
1997 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1998 eval ac_val=\$$ac_var
1999 case $ac_val in #(
2000 *${as_nl}*)
2001 case $ac_var in #(
2002 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2003$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2004 esac
2005 case $ac_var in #(
2006 _ | IFS | as_nl) ;; #(
2007 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2008 *) { eval $ac_var=; unset $ac_var;} ;;
2009 esac ;;
2010 esac
2011 done
1c710c3c 2012 (set) 2>&1 |
5213506e
RW
2013 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2014 *${as_nl}ac_space=\ *)
1c710c3c 2015 sed -n \
5213506e
RW
2016 "s/'\''/'\''\\\\'\'''\''/g;
2017 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2018 ;; #(
1c710c3c 2019 *)
5213506e 2020 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 2021 ;;
5213506e
RW
2022 esac |
2023 sort
2024)
1c710c3c
DJ
2025 echo
2026
2027 cat <<\_ASBOX
2028## ----------------- ##
2029## Output variables. ##
2030## ----------------- ##
2031_ASBOX
2032 echo
2033 for ac_var in $ac_subst_vars
2034 do
5213506e
RW
2035 eval ac_val=\$$ac_var
2036 case $ac_val in
2037 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2038 esac
2039 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2040 done | sort
2041 echo
2042
2043 if test -n "$ac_subst_files"; then
2044 cat <<\_ASBOX
5213506e
RW
2045## ------------------- ##
2046## File substitutions. ##
2047## ------------------- ##
1c710c3c
DJ
2048_ASBOX
2049 echo
2050 for ac_var in $ac_subst_files
2051 do
5213506e
RW
2052 eval ac_val=\$$ac_var
2053 case $ac_val in
2054 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2055 esac
2056 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2057 done | sort
2058 echo
2059 fi
2060
2061 if test -s confdefs.h; then
2062 cat <<\_ASBOX
2063## ----------- ##
2064## confdefs.h. ##
2065## ----------- ##
2066_ASBOX
2067 echo
5213506e 2068 cat confdefs.h
1c710c3c
DJ
2069 echo
2070 fi
2071 test "$ac_signal" != 0 &&
5213506e
RW
2072 $as_echo "$as_me: caught signal $ac_signal"
2073 $as_echo "$as_me: exit $exit_status"
1c710c3c 2074 } >&5
5213506e
RW
2075 rm -f core *.core core.conftest.* &&
2076 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2077 exit $exit_status
5213506e 2078' 0
1c710c3c 2079for ac_signal in 1 2 13 15; do
5213506e 2080 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2081done
2082ac_signal=0
2083
2084# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2085rm -f -r conftest* confdefs.h
2086
2087$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2088
2089# Predefined preprocessor variables.
2090
2091cat >>confdefs.h <<_ACEOF
2092#define PACKAGE_NAME "$PACKAGE_NAME"
2093_ACEOF
2094
1c710c3c
DJ
2095cat >>confdefs.h <<_ACEOF
2096#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2097_ACEOF
2098
1c710c3c
DJ
2099cat >>confdefs.h <<_ACEOF
2100#define PACKAGE_VERSION "$PACKAGE_VERSION"
2101_ACEOF
0b0dc272 2102
1c710c3c
DJ
2103cat >>confdefs.h <<_ACEOF
2104#define PACKAGE_STRING "$PACKAGE_STRING"
2105_ACEOF
2106
1c710c3c
DJ
2107cat >>confdefs.h <<_ACEOF
2108#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2109_ACEOF
2110
5213506e
RW
2111cat >>confdefs.h <<_ACEOF
2112#define PACKAGE_URL "$PACKAGE_URL"
2113_ACEOF
2114
1c710c3c
DJ
2115
2116# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2117# Prefer an explicitly selected file to automatically selected ones.
2118ac_site_file1=NONE
2119ac_site_file2=NONE
2120if test -n "$CONFIG_SITE"; then
2121 ac_site_file1=$CONFIG_SITE
2122elif test "x$prefix" != xNONE; then
2123 ac_site_file1=$prefix/share/config.site
2124 ac_site_file2=$prefix/etc/config.site
2125else
2126 ac_site_file1=$ac_default_prefix/share/config.site
2127 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2128fi
5213506e
RW
2129for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2130do
2131 test "x$ac_site_file" = xNONE && continue
671aa708 2132 if test -r "$ac_site_file"; then
5213506e
RW
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2134$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2135 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
2136 . "$ac_site_file"
2137 fi
2138done
2139
2140if test -r "$cache_file"; then
1c710c3c
DJ
2141 # Some versions of bash will fail to source /dev/null (special
2142 # files actually), so we avoid doing that.
2143 if test -f "$cache_file"; then
5213506e
RW
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2145$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2146 case $cache_file in
5213506e
RW
2147 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2148 *) . "./$cache_file";;
1c710c3c
DJ
2149 esac
2150 fi
671aa708 2151else
5213506e
RW
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2153$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2154 >$cache_file
2155fi
2156
2157# Check that the precious variables saved in the cache have kept the same
2158# value.
2159ac_cache_corrupted=false
5213506e 2160for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2161 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2162 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2163 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2164 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2165 case $ac_old_set,$ac_new_set in
2166 set,)
5213506e
RW
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2168$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2169 ac_cache_corrupted=: ;;
2170 ,set)
5213506e
RW
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2172$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2173 ac_cache_corrupted=: ;;
2174 ,);;
2175 *)
2176 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2177 # differences in whitespace do not lead to failure.
2178 ac_old_val_w=`echo x $ac_old_val`
2179 ac_new_val_w=`echo x $ac_new_val`
2180 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2182$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2183 ac_cache_corrupted=:
2184 else
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2186$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2187 eval $ac_var=\$ac_old_val
2188 fi
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2190$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2192$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2193 fi;;
2194 esac
2195 # Pass precious variables to config.status.
2196 if test "$ac_new_set" = set; then
2197 case $ac_new_val in
5213506e 2198 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2199 *) ac_arg=$ac_var=$ac_new_val ;;
2200 esac
2201 case " $ac_configure_args " in
2202 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2203 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2204 esac
2205 fi
2206done
2207if $ac_cache_corrupted; then
5213506e
RW
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2211$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2212 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2213fi
5213506e
RW
2214## -------------------- ##
2215## Main body of script. ##
2216## -------------------- ##
671aa708 2217
2aeb72e9
DD
2218ac_ext=c
2219ac_cpp='$CPP $CPPFLAGS'
2220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2222ac_compiler_gnu=$ac_cv_c_compiler_gnu
2223
1c710c3c
DJ
2224
2225
2226
1c710c3c
DJ
2227
2228
0115d4a3 2229
1c710c3c 2230
ad33ff57
RW
2231
2232progname=$0
2233# if PWD already has a value, it is probably wrong.
2234if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2235
2236# Export original configure arguments for use by sub-configures.
2237# Quote arguments with shell meta charatcers.
2238TOPLEVEL_CONFIGURE_ARGUMENTS=
2239set -- "$progname" "$@"
2240for ac_arg
2241do
2242 case "$ac_arg" in
2243 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2244 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2245 # if the argument is of the form -foo=baz, quote the baz part only
2246 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2247 *) ;;
2248 esac
2249 # Add the quoted argument to the list.
2250 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2251done
2252if test "$silent" = yes; then
2253 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2254fi
2255# Remove the initial space we just introduced and, as these will be
2256# expanded by make, quote '$'.
2257TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2258
1c710c3c
DJ
2259
2260# Find the build, host, and target systems.
671aa708 2261ac_aux_dir=
5213506e
RW
2262for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2263 for ac_t in install-sh install.sh shtool; do
2264 if test -f "$ac_dir/$ac_t"; then
2265 ac_aux_dir=$ac_dir
2266 ac_install_sh="$ac_aux_dir/$ac_t -c"
2267 break 2
2268 fi
2269 done
671aa708
NN
2270done
2271if test -z "$ac_aux_dir"; then
5213506e 2272 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2273fi
5213506e
RW
2274
2275# These three variables are undocumented and unsupported,
2276# and are intended to be withdrawn in a future Autoconf release.
2277# They can cause serious problems if a builder's source tree is in a directory
2278# whose full name contains unusual characters.
2279ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2280ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2281ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2282
671aa708 2283
1c710c3c 2284# Make sure we can run config.sub.
5213506e
RW
2285$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2286 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2287
2288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2289$as_echo_n "checking build system type... " >&6; }
2290if test "${ac_cv_build+set}" = set; then :
2291 $as_echo_n "(cached) " >&6
2292else
2293 ac_build_alias=$build_alias
2294test "x$ac_build_alias" = x &&
2295 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2296test "x$ac_build_alias" = x &&
2297 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2298ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2299 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2300
2301fi
2302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2303$as_echo "$ac_cv_build" >&6; }
2304case $ac_cv_build in
2305*-*-*) ;;
2306*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2307esac
1c710c3c 2308build=$ac_cv_build
5213506e
RW
2309ac_save_IFS=$IFS; IFS='-'
2310set x $ac_cv_build
2311shift
2312build_cpu=$1
2313build_vendor=$2
2314shift; shift
2315# Remember, the first character of IFS is used to create $*,
2316# except with old shells:
2317build_os=$*
2318IFS=$ac_save_IFS
2319case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2320
671aa708 2321
1c710c3c
DJ
2322 case ${build_alias} in
2323 "") build_noncanonical=${build} ;;
2324 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2325esac
2326
2327
af71363e 2328
1c710c3c
DJ
2329 case ${host_alias} in
2330 "") host_noncanonical=${build_noncanonical} ;;
2331 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2332esac
2333
af71363e 2334
1c710c3c
DJ
2335
2336 case ${target_alias} in
2337 "") target_noncanonical=${host_noncanonical} ;;
2338 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2339esac
2340
af71363e 2341
1c710c3c
DJ
2342
2343
2344test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2345 test "$program_prefix$program_suffix$program_transform_name" = \
2346 NONENONEs,x,x, &&
1c710c3c 2347 program_transform_name=s,y,y,
af71363e 2348
5213506e
RW
2349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2350$as_echo_n "checking host system type... " >&6; }
2351if test "${ac_cv_host+set}" = set; then :
2352 $as_echo_n "(cached) " >&6
af71363e 2353else
5213506e
RW
2354 if test "x$host_alias" = x; then
2355 ac_cv_host=$ac_cv_build
2356else
2357 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2358 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2359fi
1c710c3c 2360
af71363e 2361fi
5213506e
RW
2362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2363$as_echo "$ac_cv_host" >&6; }
2364case $ac_cv_host in
2365*-*-*) ;;
2366*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2367esac
1c710c3c 2368host=$ac_cv_host
5213506e
RW
2369ac_save_IFS=$IFS; IFS='-'
2370set x $ac_cv_host
2371shift
2372host_cpu=$1
2373host_vendor=$2
2374shift; shift
2375# Remember, the first character of IFS is used to create $*,
2376# except with old shells:
2377host_os=$*
2378IFS=$ac_save_IFS
2379case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2380
2381
5213506e
RW
2382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2383$as_echo_n "checking target system type... " >&6; }
2384if test "${ac_cv_target+set}" = set; then :
2385 $as_echo_n "(cached) " >&6
1c710c3c 2386else
5213506e
RW
2387 if test "x$target_alias" = x; then
2388 ac_cv_target=$ac_cv_host
2389else
2390 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2391 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2392fi
1c710c3c
DJ
2393
2394fi
5213506e
RW
2395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2396$as_echo "$ac_cv_target" >&6; }
2397case $ac_cv_target in
2398*-*-*) ;;
2399*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2400esac
1c710c3c 2401target=$ac_cv_target
5213506e
RW
2402ac_save_IFS=$IFS; IFS='-'
2403set x $ac_cv_target
2404shift
2405target_cpu=$1
2406target_vendor=$2
2407shift; shift
2408# Remember, the first character of IFS is used to create $*,
2409# except with old shells:
2410target_os=$*
2411IFS=$ac_save_IFS
2412case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2413
2414
2415# The aliases save the names the user supplied, while $host etc.
2416# will get canonicalized.
2417test -n "$target_alias" &&
2418 test "$program_prefix$program_suffix$program_transform_name" = \
2419 NONENONEs,x,x, &&
2420 program_prefix=${target_alias}-
5213506e 2421
671aa708 2422test "$program_prefix" != NONE &&
5213506e 2423 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2424# Use a double $ so make ignores it.
2425test "$program_suffix" != NONE &&
5213506e
RW
2426 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2427# Double any \ or $.
1c710c3c 2428# By default was `s,x,x', remove it if useless.
5213506e
RW
2429ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2430program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2431
671aa708
NN
2432
2433
775956d0
NN
2434# Get 'install' or 'install-sh' and its variants.
2435# Find a good install program. We prefer a C program (faster),
2436# so one script is as good as another. But avoid the broken or
2437# incompatible versions:
2438# SysV /etc/install, /usr/sbin/install
2439# SunOS /usr/etc/install
2440# IRIX /sbin/install
2441# AIX /bin/install
1c710c3c 2442# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2443# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2444# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2445# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2446# OS/2's system install, which has a completely different semantic
775956d0 2447# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2448# Reject install programs that cannot install multiple files.
5213506e
RW
2449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2450$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2451if test -z "$INSTALL"; then
5213506e
RW
2452if test "${ac_cv_path_install+set}" = set; then :
2453 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2454else
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456for as_dir in $PATH
2457do
2458 IFS=$as_save_IFS
2459 test -z "$as_dir" && as_dir=.
5213506e
RW
2460 # Account for people who put trailing slashes in PATH elements.
2461case $as_dir/ in #((
2462 ./ | .// | /[cC]/* | \
1c710c3c 2463 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2464 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2465 /usr/ucb/* ) ;;
2466 *)
2467 # OSF1 and SCO ODT 3.0 have their own names for install.
2468 # Don't use installbsd from OSF since it installs stuff as root
2469 # by default.
2470 for ac_prog in ginstall scoinst install; do
2471 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2472 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
775956d0 2473 if test $ac_prog = install &&
1c710c3c 2474 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2475 # AIX install. It has an incompatible calling convention.
2476 :
1c710c3c
DJ
2477 elif test $ac_prog = install &&
2478 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2479 # program-specific install script used by HP pwplus--don't use.
2480 :
775956d0 2481 else
38d24731
RW
2482 rm -rf conftest.one conftest.two conftest.dir
2483 echo one > conftest.one
2484 echo two > conftest.two
2485 mkdir conftest.dir
2486 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2487 test -s conftest.one && test -s conftest.two &&
2488 test -s conftest.dir/conftest.one &&
2489 test -s conftest.dir/conftest.two
2490 then
2491 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2492 break 3
2493 fi
775956d0
NN
2494 fi
2495 fi
2496 done
1c710c3c
DJ
2497 done
2498 ;;
2499esac
5213506e
RW
2500
2501 done
2502IFS=$as_save_IFS
1c710c3c 2503
38d24731 2504rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2505
2506fi
2507 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2508 INSTALL=$ac_cv_path_install
775956d0 2509 else
38d24731
RW
2510 # As a last resort, use the slow shell script. Don't cache a
2511 # value for INSTALL within a source directory, because that will
775956d0 2512 # break other packages using the cache if that directory is
38d24731 2513 # removed, or if the value is a relative name.
1c710c3c 2514 INSTALL=$ac_install_sh
775956d0
NN
2515 fi
2516fi
5213506e
RW
2517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2518$as_echo "$INSTALL" >&6; }
775956d0
NN
2519
2520# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2521# It thinks the first close brace ends the variable substitution.
2522test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2523
1c710c3c 2524test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2525
2526test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2527
5213506e
RW
2528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2529$as_echo_n "checking whether ln works... " >&6; }
2530if test "${acx_cv_prog_LN+set}" = set; then :
2531 $as_echo_n "(cached) " >&6
ad6717df
PB
2532else
2533 rm -f conftestdata_t
2534echo >conftestdata_f
2535if ln conftestdata_f conftestdata_t 2>/dev/null
2536then
2537 acx_cv_prog_LN=ln
2538else
2539 acx_cv_prog_LN=no
2540fi
2541rm -f conftestdata_f conftestdata_t
2542
2543fi
2544if test $acx_cv_prog_LN = no; then
2545 LN="cp"
5213506e
RW
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2547$as_echo "no, using $LN" >&6; }
ad6717df
PB
2548else
2549 LN="$acx_cv_prog_LN"
5213506e
RW
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2551$as_echo "yes" >&6; }
ad6717df
PB
2552fi
2553
5213506e
RW
2554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2555$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2556LN_S=$as_ln_s
2557if test "$LN_S" = "ln -s"; then
5213506e
RW
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2559$as_echo "yes" >&6; }
fb0103e5 2560else
5213506e
RW
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2562$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2563fi
2564
87264276
PB
2565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2566$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2567if test "${ac_cv_path_SED+set}" = set; then :
2568 $as_echo_n "(cached) " >&6
2569else
2570 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2571 for ac_i in 1 2 3 4 5 6 7; do
2572 ac_script="$ac_script$as_nl$ac_script"
2573 done
2574 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2575 { ac_script=; unset ac_script;}
2576 if test -z "$SED"; then
2577 ac_path_SED_found=false
2578 # Loop through the user's path and test for each of PROGNAME-LIST
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580for as_dir in $PATH
2581do
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 for ac_prog in sed gsed; do
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2587 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2588# Check for GNU ac_path_SED and select it if it is found.
2589 # Check for GNU $ac_path_SED
2590case `"$ac_path_SED" --version 2>&1` in
2591*GNU*)
2592 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2593*)
2594 ac_count=0
2595 $as_echo_n 0123456789 >"conftest.in"
2596 while :
2597 do
2598 cat "conftest.in" "conftest.in" >"conftest.tmp"
2599 mv "conftest.tmp" "conftest.in"
2600 cp "conftest.in" "conftest.nl"
2601 $as_echo '' >> "conftest.nl"
2602 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2603 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2604 as_fn_arith $ac_count + 1 && ac_count=$as_val
2605 if test $ac_count -gt ${ac_path_SED_max-0}; then
2606 # Best one so far, save it but keep looking for a better one
2607 ac_cv_path_SED="$ac_path_SED"
2608 ac_path_SED_max=$ac_count
2609 fi
2610 # 10*(2^10) chars as input seems more than enough
2611 test $ac_count -gt 10 && break
2612 done
2613 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2614esac
2615
2616 $ac_path_SED_found && break 3
2617 done
2618 done
2619 done
2620IFS=$as_save_IFS
2621 if test -z "$ac_cv_path_SED"; then
2622 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2623 fi
2624else
2625 ac_cv_path_SED=$SED
2626fi
2627
2628fi
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2630$as_echo "$ac_cv_path_SED" >&6; }
2631 SED="$ac_cv_path_SED"
2632 rm -f conftest.sed
2633
2634for ac_prog in gawk mawk nawk awk
2635do
2636 # Extract the first word of "$ac_prog", so it can be a program name with args.
2637set dummy $ac_prog; ac_word=$2
2638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2639$as_echo_n "checking for $ac_word... " >&6; }
2640if test "${ac_cv_prog_AWK+set}" = set; then :
2641 $as_echo_n "(cached) " >&6
2642else
2643 if test -n "$AWK"; then
2644 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2645else
2646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647for as_dir in $PATH
2648do
2649 IFS=$as_save_IFS
2650 test -z "$as_dir" && as_dir=.
2651 for ac_exec_ext in '' $ac_executable_extensions; do
2652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2653 ac_cv_prog_AWK="$ac_prog"
2654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2655 break 2
2656 fi
2657done
2658 done
2659IFS=$as_save_IFS
2660
2661fi
2662fi
2663AWK=$ac_cv_prog_AWK
2664if test -n "$AWK"; then
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2666$as_echo "$AWK" >&6; }
2667else
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669$as_echo "no" >&6; }
2670fi
2671
2672
2673 test -n "$AWK" && break
2674done
2675
775956d0 2676
ee6a22df
L
2677srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2678
2679# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2680# a relative path.
2681if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2682 INSTALL="${srcpwd}/install-sh -c"
2683fi
2684
671aa708
NN
2685# Set srcdir to "." if that's what it is.
2686# This is important for multilib support.
2687pwd=`${PWDCMD-pwd}`
671aa708
NN
2688if test "${pwd}" = "${srcpwd}" ; then
2689 srcdir=.
79c06341
JL
2690fi
2691
671aa708 2692topsrcdir=$srcpwd
5d4a5ee6 2693
671aa708 2694extra_host_args=
afabd8e6 2695
671aa708
NN
2696### To add a new directory to the tree, first choose whether it is a target
2697### or a host dependent tool. Then put it into the appropriate list
2698### (library or tools, host or target), doing a dependency sort.
79c06341 2699
1c710c3c 2700# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2701# configdirs, or target_configdirs; see the serialization section below.
79c06341 2702
1c710c3c
DJ
2703# Dependency sorting is only needed when *configuration* must be done in
2704# a particular order. In all cases a dependency should be specified in
671aa708 2705# the Makefile, whether or not it's implicitly specified here.
79c06341 2706
671aa708
NN
2707# Double entries in build_configdirs, configdirs, or target_configdirs may
2708# cause circular dependencies and break everything horribly.
79c06341 2709
23f6b2f9
PB
2710# these library is used by various programs built for the build
2711# environment
2712#
929315a9 2713build_libs="build-libiberty build-libcpp"
23f6b2f9
PB
2714
2715# these tools are built for the build environment
85bfb75e 2716build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2717
671aa708 2718# these libraries are used by various programs built for the host environment
eae1a5d4 2719#f
4a9bb2aa 2720host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
671aa708 2721
671aa708
NN
2722# these tools are built for the host environment
2723# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2724# know that we are building the simulator.
2725# binutils, gas and ld appear in that order because it makes sense to run
2726# "make check" in that particular order.
38e3d868 2727# If --enable-gold is used, "gold" may replace "ld".
ddc8de03 2728host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1"
671aa708
NN
2729
2730# libgcj represents the runtime libraries only used by gcj.
2731libgcj="target-libffi \
671aa708 2732 target-zlib \
671aa708
NN
2733 target-libjava"
2734
2735# these libraries are built for the target environment, and are built after
2736# the host libraries and the host tools (which may be a cross compiler)
8499116a 2737# Note that libiberty is not a target library.
291f172e 2738target_libraries="target-libgcc \
eff02e4f 2739 target-libbacktrace \
671aa708
NN
2740 target-libgloss \
2741 target-newlib \
6d3b5aea 2742 target-libgomp \
3038054c 2743 target-libcilkrts \
5f520819 2744 target-liboffloadmic \
48310492 2745 target-libatomic \
0a35513e 2746 target-libitm \
cb543528 2747 target-libstdc++-v3 \
f35db108 2748 target-libsanitizer \
2077db1b 2749 target-libvtv \
77008252 2750 target-libssp \
1ec601bf 2751 target-libquadmath \
6de9cd9a 2752 target-libgfortran \
7cd0cf9c 2753 target-boehm-gc \
77d187bc 2754 ${libgcj} \
d9cdb878 2755 target-libobjc \
632e2a07
ILT
2756 target-libada \
2757 target-libgo"
671aa708 2758
4dbda6f0
NN
2759# these tools are built using the target libraries, and are intended to
2760# run only in the target environment
671aa708 2761#
4dbda6f0 2762# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2763# list belongs in this list.
671aa708 2764#
85bfb75e 2765target_tools="target-rda"
79c06341 2766
671aa708 2767################################################################################
79c06341 2768
671aa708
NN
2769## All tools belong in one of the four categories, and are assigned above
2770## We assign ${configdirs} this way to remove all embedded newlines. This
2771## is important because configure will choke if they ever get through.
2772## ${configdirs} is directories we build using the host tools.
2773## ${target_configdirs} is directories we build using the target tools.
671aa708 2774configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2775target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2776build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2777
ac9e6043
RW
2778
2779
671aa708 2780################################################################################
79c06341 2781
671aa708 2782srcname="gnu development package"
79c06341 2783
671aa708
NN
2784# This gets set non-empty for some net releases of packages.
2785appdirs=""
79c06341 2786
671aa708
NN
2787# Define is_cross_compiler to save on calls to 'test'.
2788is_cross_compiler=
2789if test x"${host}" = x"${target}" ; then
2790 is_cross_compiler=no
79c06341 2791else
671aa708 2792 is_cross_compiler=yes
1c710c3c 2793fi
79c06341 2794
b4acb5ef 2795# Find the build and target subdir names.
8b87bb96 2796
2e9e6f68
DJ
2797# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2798# have matching libraries, they should use host libraries: Makefile.tpl
2799# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2800# However, they still use the build modules, because the corresponding
2801# host modules (e.g. bison) are only built for the host when bootstrap
2802# finishes. So:
2803# - build_subdir is where we find build modules, and never changes.
2804# - build_libsubdir is where we find build libraries, and can be overridden.
2805
2806# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2807build_subdir="build-${build_noncanonical}"
1c710c3c 2808
5213506e
RW
2809# Check whether --with-build-libsubdir was given.
2810if test "${with_build_libsubdir+set}" = set; then :
2811 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2812else
2813 build_libsubdir="$build_subdir"
5213506e
RW
2814fi
2815
215c351a
PB
2816# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2817if ( test $srcdir = . && test -d gcc ) \
2818 || test -d $srcdir/../host-${host_noncanonical}; then
2819 host_subdir="host-${host_noncanonical}"
2820else
2821 host_subdir=.
2822fi
8b87bb96
NN
2823# No prefix.
2824target_subdir=${target_noncanonical}
1c710c3c 2825
0db770bd
RW
2826# Be sure to cover against remnants of an in-tree build.
2827if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2828 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2829Use a pristine source tree when building in a separate tree" "$LINENO" 5
2830fi
79c06341 2831
671aa708
NN
2832# Skipdirs are removed silently.
2833skipdirs=
2834# Noconfigdirs are removed loudly.
2835noconfigdirs=""
79c06341 2836
671aa708
NN
2837use_gnu_ld=
2838# Make sure we don't let GNU ld be added if we didn't want it.
2839if test x$with_gnu_ld = xno ; then
2840 use_gnu_ld=no
5afab7ad 2841 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2842fi
2843
671aa708
NN
2844use_gnu_as=
2845# Make sure we don't let GNU as be added if we didn't want it.
2846if test x$with_gnu_as = xno ; then
2847 use_gnu_as=no
2848 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2849fi
2850
d7f09764
DN
2851use_included_zlib=
2852# Make sure we don't let ZLIB be added if we didn't want it.
2853if test x$with_system_zlib = xyes ; then
2854 use_included_zlib=no
2855 noconfigdirs="$noconfigdirs zlib"
2856fi
2857
1c710c3c 2858# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2859# it's not even worth trying to configure, much less build, that tool.
79c06341 2860
671aa708
NN
2861case ${with_x} in
2862 yes | "") ;; # the default value for this tree is that X11 is available
2863 no)
b4f96efe 2864 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2865 # We won't be able to build gdbtk without X.
1c710c3c 2866 enable_gdbtk=no
671aa708
NN
2867 ;;
2868 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2869esac
79c06341 2870
1bcce263 2871# Some are only suitable for cross toolchains.
671aa708
NN
2872# Remove these if host=target.
2873cross_only="target-libgloss target-newlib target-opcodes"
2874
2875case $is_cross_compiler in
2876 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 2877esac
79c06341 2878
671aa708
NN
2879# If both --with-headers and --with-libs are specified, default to
2880# --without-newlib.
ee6a22df
L
2881if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2882 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2883 if test x"${with_newlib}" = x ; then
2884 with_newlib=no
2885 fi
79c06341
JL
2886fi
2887
671aa708
NN
2888# Recognize --with-newlib/--without-newlib.
2889case ${with_newlib} in
2890 no) skipdirs="${skipdirs} target-newlib" ;;
2891 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2892esac
79c06341 2893
85c64bbe
BS
2894# Check whether --enable-as-accelerator-for was given.
2895if test "${enable_as_accelerator_for+set}" = set; then :
2896 enableval=$enable_as_accelerator_for; ENABLE_AS_ACCELERATOR_FOR=$enableval
2897else
2898 ENABLE_AS_ACCELERATOR_FOR=no
2899fi
2900
2901
2902# Check whether --enable-offload-targets was given.
2903if test "${enable_offload_targets+set}" = set; then :
2904 enableval=$enable_offload_targets;
2905 if test x"$enable_offload_targets" = x; then
2906 as_fn_error "no offload targets specified" "$LINENO" 5
2907 fi
2908
2909else
2910 enable_offload_targets=
2911fi
2912
2913
21539e2e
MK
2914# Handle --enable-gold, --enable-ld.
2915# --disable-gold [--enable-ld]
2916# Build only ld. Default option.
9580395f
L
2917# --enable-gold [--enable-ld]
2918# Build both gold and ld. Install gold as "ld.gold", install ld
2919# as "ld.bfd" and "ld".
2920# --enable-gold=default [--enable-ld]
21539e2e
MK
2921# Build both gold and ld. Install gold as "ld.gold" and "ld",
2922# install ld as "ld.bfd".
2923# --enable-gold[=default] --disable-ld
2924# Build only gold, which is then installed as both "ld.gold" and "ld".
2925# --enable-gold --enable-ld=default
9580395f
L
2926# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2927# and ld.bfd).
21539e2e
MK
2928# In other words, ld is default
2929# --enable-gold=default --enable-ld=default
2930# Error.
2931
2932default_ld=
5213506e
RW
2933# Check whether --enable-gold was given.
2934if test "${enable_gold+set}" = set; then :
2935 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
2936else
2937 ENABLE_GOLD=no
5213506e
RW
2938fi
2939
21539e2e
MK
2940case "${ENABLE_GOLD}" in
2941 yes|default)
38e3d868
RM
2942 # Check for ELF target.
2943 is_elf=no
2944 case "${target}" in
2945 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
0e76460f 2946 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a 2947 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
ff4b7a7e 2948 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
38e3d868
RM
2949 case "${target}" in
2950 *-*-linux*aout* | *-*-linux*oldld*)
2951 ;;
2952 *)
2953 is_elf=yes
2954 ;;
2955 esac
2956 esac
2957
2958 if test "$is_elf" = "yes"; then
2959 # Check for target supported by gold.
5afab7ad 2960 case "${target}" in
7705dfd1
JY
2961 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2962 | aarch64*-*-* | tilegx*-*-*)
21539e2e
MK
2963 configdirs="$configdirs gold"
2964 if test x${ENABLE_GOLD} = xdefault; then
2965 default_ld=gold
2966 fi
38e3d868 2967 ENABLE_GOLD=yes
5afab7ad
ILT
2968 ;;
2969 esac
38e3d868
RM
2970 fi
2971 ;;
2972 no)
2973 ;;
2974 *)
2975 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2976 ;;
21539e2e
MK
2977esac
2978
2979# Check whether --enable-ld was given.
2980if test "${enable_ld+set}" = set; then :
2981 enableval=$enable_ld; ENABLE_LD=$enableval
2982else
2983 ENABLE_LD=yes
2984fi
2985
2986
2987case "${ENABLE_LD}" in
2988 default)
9580395f 2989 if test x${default_ld} != x; then
21539e2e
MK
2990 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2991 fi
2992 ;;
2993 yes)
2994 ;;
2995 no)
2996 if test x${ENABLE_GOLD} != xyes; then
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2998$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2999 fi
3000 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3001 ;;
3002 *)
3003 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3004 ;;
3005esac
5afab7ad 3006
671aa708 3007# Configure extra directories which are host specific
79c06341 3008
671aa708
NN
3009case "${host}" in
3010 *-cygwin*)
3011 configdirs="$configdirs libtermcap" ;;
3012esac
79c06341 3013
4fab7234
HPN
3014# A target can indicate whether a language isn't supported for some reason.
3015# Only spaces may be used in this macro; not newlines or tabs.
3016unsupported_languages=
3017
1c710c3c 3018# Remove more programs from consideration, based on the host or
671aa708
NN
3019# target this usually means that a port of the program doesn't
3020# exist yet.
ec8d6ddc 3021
671aa708 3022case "${host}" in
111eeb6e 3023 i[3456789]86-*-msdosdjgpp*)
c9bdb152 3024 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 3025 ;;
671aa708 3026esac
ec8d6ddc 3027
6de9cd9a 3028
87e6d9dc
TB
3029# Check whether --enable-libquadmath was given.
3030if test "${enable_libquadmath+set}" = set; then :
3031 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3032else
3033 ENABLE_LIBQUADMATH=yes
3034fi
3035
3036if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3037 noconfigdirs="$noconfigdirs target-libquadmath"
3038fi
3039
3040
3041# Check whether --enable-libquadmath-support was given.
3042if test "${enable_libquadmath_support+set}" = set; then :
3043 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3044else
3045 ENABLE_LIBQUADMATH_SUPPORT=yes
3046fi
3047
3048enable_libquadmath_support=
3049if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3050 enable_libquadmath_support=no
3051fi
3052
3053
5213506e
RW
3054# Check whether --enable-libada was given.
3055if test "${enable_libada+set}" = set; then :
3056 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3057else
3058 ENABLE_LIBADA=yes
5213506e
RW
3059fi
3060
d9cdb878 3061if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3062 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3063fi
3064
5213506e
RW
3065# Check whether --enable-libssp was given.
3066if test "${enable_libssp+set}" = set; then :
3067 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3068else
3069 ENABLE_LIBSSP=yes
5213506e
RW
3070fi
3071
ef0087a7 3072
1873ec0c
L
3073# Check whether --enable-libstdcxx was given.
3074if test "${enable_libstdcxx+set}" = set; then :
3075 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3076else
3077 ENABLE_LIBSTDCXX=default
3078fi
3079
3080if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1007a55c 3081 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1873ec0c
L
3082fi
3083
5f520819
KY
3084# If this is accelerator compiler and its target is intelmic we enable
3085# target liboffloadmic by default. If this is compiler with offloading
3086# for intelmic we enable host liboffloadmic by default. Otherwise
3087# liboffloadmic is disabled by default.
3088# Check whether --enable-liboffloadmic was given.
3089if test "${enable_liboffloadmic+set}" = set; then :
3090 enableval=$enable_liboffloadmic; case "$enableval" in
3091 no | host | target)
3092 enable_liboffloadmic=$enableval ;;
3093 *)
3094 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3095esac
3096else
3097 if test "${ENABLE_AS_ACCELERATOR_FOR}" != "no"; then
3098 case "${target}" in
3099 *-intelmic-* | *-intelmicemul-*)
3100 enable_liboffloadmic=target
3101 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3102 ;;
3103 *)
3104 enable_liboffloadmic=no
3105 ;;
3106 esac
3107else
3108 case "${enable_offload_targets}" in
3109 *-intelmic-* | *-intelmicemul-*)
3110 enable_liboffloadmic=host
3111 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3112 ;;
3113 *)
3114 enable_liboffloadmic=no
3115 ;;
3116 esac
3117fi
3118fi
3119
3120
3121
671aa708
NN
3122# Save it here so that, even in case of --enable-libgcj, if the Java
3123# front-end isn't enabled, we still get libgcj disabled.
3124libgcj_saved=$libgcj
3125case $enable_libgcj in
3126yes)
3127 # If we reset it here, it won't get added to noconfigdirs in the
3128 # target-specific build rules, so it will be forcibly enabled
3129 # (unless the Java language itself isn't enabled).
3130 libgcj=
3131 ;;
3132no)
3133 # Make sure we get it printed in the list of not supported target libs.
4da3b0f8
ILT
3134 # Don't disable libffi, though, other languages use it.
3135 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
d479b128
ILT
3136 # Clear libgcj_saved so that even if java is enabled libffi won't be
3137 # built.
3138 libgcj_saved=
671aa708
NN
3139 ;;
3140esac
ec8d6ddc 3141
a4a2c37d
MK
3142# Check whether --enable-static-libjava was given.
3143if test "${enable_static_libjava+set}" = set; then :
3144 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3145else
3146 ENABLE_STATIC_LIBJAVA=no
3147fi
3148
3149enable_static_libjava=
3150if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3151 enable_static_libjava=yes
3152fi
3153
3154if test x$enable_static_libjava != xyes ; then
3155 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3156fi
3157
6de9cd9a 3158
27079765
AH
3159# Disable libgomp on non POSIX hosted systems.
3160if test x$enable_libgomp = x ; then
953ff289
DN
3161 # Enable libgomp by default on hosted POSIX systems.
3162 case "${target}" in
416ac4d4 3163 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3164 ;;
8c6d158a 3165 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3166 ;;
b24513a1 3167 *-*-solaris2* | *-*-hpux11*)
953ff289 3168 ;;
cac90078 3169 *-*-darwin* | *-*-aix*)
953ff289
DN
3170 ;;
3171 *)
3172 noconfigdirs="$noconfigdirs target-libgomp"
3173 ;;
3174 esac
27079765 3175fi
953ff289 3176
48310492
RH
3177# Disable libatomic on unsupported systems.
3178if test -d ${srcdir}/libatomic; then
3179 if test x$enable_libatomic = x; then
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3181$as_echo_n "checking for libatomic support... " >&6; }
3182 if (srcdir=${srcdir}/libatomic; \
3183 . ${srcdir}/configure.tgt; \
3184 test -n "$UNSUPPORTED")
3185 then
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187$as_echo "no" >&6; }
3188 noconfigdirs="$noconfigdirs target-libatomic"
3189 else
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3191$as_echo "yes" >&6; }
3192 fi
3193 fi
3194fi
3195
3038054c
BI
3196# Disable libcilkrts on unsupported systems.
3197if test -d ${srcdir}/libcilkrts; then
3198 if test x$enable_libcilkrts = x; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3200$as_echo_n "checking for libcilkrts support... " >&6; }
3201 if (srcdir=${srcdir}/libcilkrts; \
3202 . ${srcdir}/configure.tgt; \
3203 test -n "$UNSUPPORTED")
3204 then
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206$as_echo "no" >&6; }
3207 noconfigdirs="$noconfigdirs target-libcilkrts"
3208 else
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3210$as_echo "yes" >&6; }
3211 fi
3212 fi
3213fi
3214
5f520819
KY
3215# Disable liboffloadmic on unsupported systems.
3216if test -d ${srcdir}/liboffloadmic; then
3217 if test x$enable_liboffloadmic != xno; then
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3219$as_echo_n "checking for liboffloadmic support... " >&6; }
3220 if (srcdir=${srcdir}/liboffloadmic; \
3221 . ${srcdir}/configure.tgt; \
3222 test -n "$UNSUPPORTED")
3223 then
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225$as_echo "no" >&6; }
3226 noconfigdirs="$noconfigdirs target-liboffloadmic"
3227 else
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3229$as_echo "yes" >&6; }
3230 fi
3231 fi
3232fi
3233
e948157d
RH
3234# Disable libitm on unsupported systems.
3235if test -d ${srcdir}/libitm; then
3236 if test x$enable_libitm = x; then
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
01f3428c 3238$as_echo_n "checking for libitm support... " >&6; }
e948157d
RH
3239 if (srcdir=${srcdir}/libitm; \
3240 . ${srcdir}/configure.tgt; \
3241 test -n "$UNSUPPORTED")
3242 then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
01f3428c 3244$as_echo "no" >&6; }
e948157d
RH
3245 noconfigdirs="$noconfigdirs target-libitm"
3246 else
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
01f3428c 3248$as_echo "yes" >&6; }
e948157d
RH
3249 fi
3250 fi
0a35513e
AH
3251fi
3252
93bf5390
RH
3253# Disable libsanitizer on unsupported systems.
3254if test -d ${srcdir}/libsanitizer; then
3255 if test x$enable_libsanitizer = x; then
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3257$as_echo_n "checking for libsanitizer support... " >&6; }
3258 if (srcdir=${srcdir}/libsanitizer; \
3259 . ${srcdir}/configure.tgt; \
3260 test -n "$UNSUPPORTED")
3261 then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263$as_echo "no" >&6; }
3264 noconfigdirs="$noconfigdirs target-libsanitizer"
3265 else
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3267$as_echo "yes" >&6; }
3268 fi
3269 fi
3270fi
3271
2077db1b
CT
3272# Disable libvtv on unsupported systems.
3273if test -d ${srcdir}/libvtv; then
3274 if test x$enable_libvtv = x; then
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3276$as_echo_n "checking for libvtv support... " >&6; }
3277 if (srcdir=${srcdir}/libvtv; \
3278 . ${srcdir}/configure.tgt; \
1e74b850 3279 test "$VTV_SUPPORTED" != "yes")
2077db1b
CT
3280 then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282$as_echo "no" >&6; }
3283 noconfigdirs="$noconfigdirs target-libvtv"
3284 else
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3286$as_echo "yes" >&6; }
3287 fi
3288 fi
3289fi
3290
d91491e5
SE
3291# Disable libquadmath for some systems.
3292case "${target}" in
e7fae550
DE
3293 avr-*-*)
3294 noconfigdirs="$noconfigdirs target-libquadmath"
3295 ;;
d91491e5
SE
3296 # libquadmath is unused on AIX and libquadmath build process use of
3297 # LD_LIBRARY_PATH can break AIX bootstrap.
3298 powerpc-*-aix* | rs6000-*-aix*)
3299 noconfigdirs="$noconfigdirs target-libquadmath"
3300 ;;
3301esac
3302
1e9e0e23
JM
3303# Disable libssp for some systems.
3304case "${target}" in
3305 avr-*-*)
b318fb4b 3306 # No hosted I/O support.
1e9e0e23
JM
3307 noconfigdirs="$noconfigdirs target-libssp"
3308 ;;
3309 powerpc-*-aix* | rs6000-*-aix*)
3310 noconfigdirs="$noconfigdirs target-libssp"
85b8555e
DD
3311 ;;
3312 rl78-*-*)
7cb62ef1
EB
3313 # libssp uses a misaligned load to trigger a fault, but the RL78
3314 # doesn't fault for those - instead, it gives a build-time error
3315 # for explicit misaligned loads.
85b8555e 3316 noconfigdirs="$noconfigdirs target-libssp"
1e9e0e23 3317 ;;
1e9e0e23
JM
3318esac
3319
1e9e0e23 3320# Disable libstdc++-v3 for some systems.
1873ec0c
L
3321# Allow user to override this if they pass --enable-libstdc++-v3
3322if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3323 case "${target}" in
3324 *-*-vxworks*)
3325 # VxWorks uses the Dinkumware C++ library.
3326 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3327 ;;
3328 arm*-wince-pe*)
3329 # the C++ libraries don't build on top of CE's C libraries
3330 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3331 ;;
3332 avr-*-*)
3333 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3334 ;;
3335 esac
3336fi
1e9e0e23
JM
3337
3338# Disable Fortran for some systems.
3339case "${target}" in
3340 mmix-*-*)
3341 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3342 unsupported_languages="$unsupported_languages fortran"
3343 ;;
3344esac
3345
80f81134 3346# Disable Java if libffi is not supported.
2909494b 3347case "${target}" in
eb7062cf
AS
3348 aarch64-*-*)
3349 ;;
80f81134
JM
3350 alpha*-*-*)
3351 ;;
3352 arm*-*-*)
3353 ;;
3354 cris-*-*)
3355 ;;
3356 frv-*-*)
3357 ;;
3358 hppa*-*-linux*)
3359 ;;
3360 hppa*-*-hpux*)
3361 ;;
3362 i?86-*-*)
3363 ;;
3364 ia64*-*-*)
3365 ;;
3366 m32r*-*-*)
3367 ;;
3368 m68k-*-*)
3369 ;;
b24513a1 3370 mips*-*-rtems*)
80f81134
JM
3371 ;;
3372 mips*-*-linux*)
3373 ;;
3374 powerpc*-*-linux*)
3375 ;;
3376 powerpc-*-darwin*)
3377 ;;
3378 powerpc-*-aix* | rs6000-*-aix*)
3379 ;;
3380 powerpc-*-freebsd*)
3381 ;;
3382 powerpc64-*-freebsd*)
3383 ;;
3384 powerpc*-*-rtems*)
2909494b 3385 ;;
80f81134
JM
3386 s390-*-* | s390x-*-*)
3387 ;;
3388 sh-*-* | sh[34]*-*-*)
3389 ;;
3390 sh64-*-* | sh5*-*-*)
3391 ;;
3392 sparc*-*-*)
3393 ;;
3394 x86_64-*-*)
3395 ;;
3396 *-*-*)
3397 unsupported_languages="$unsupported_languages java"
3398 ;;
3399esac
3400
3401# Disable Java, libgcj or related libraries for some systems.
3402case "${target}" in
2909494b
JM
3403 powerpc-*-darwin*)
3404 ;;
3405 i[3456789]86-*-darwin*)
3406 ;;
3407 x86_64-*-darwin[912]*)
3408 ;;
3409 *-*-darwin*)
3410 noconfigdirs="$noconfigdirs ${libgcj}"
3411 ;;
2909494b
JM
3412 *-*-netware*)
3413 noconfigdirs="$noconfigdirs ${libgcj}"
3414 ;;
3415 *-*-rtems*)
3416 noconfigdirs="$noconfigdirs ${libgcj}"
3417 ;;
3418 *-*-tpf*)
3419 noconfigdirs="$noconfigdirs ${libgcj}"
3420 ;;
3421 *-*-uclinux*)
3422 noconfigdirs="$noconfigdirs ${libgcj}"
3423 ;;
3424 *-*-vxworks*)
3425 noconfigdirs="$noconfigdirs ${libgcj}"
3426 ;;
2909494b
JM
3427 alpha*-*-*vms*)
3428 noconfigdirs="$noconfigdirs ${libgcj}"
3429 ;;
80f81134 3430 arm-wince-pe)
2909494b
JM
3431 noconfigdirs="$noconfigdirs ${libgcj}"
3432 ;;
2909494b
JM
3433 arm*-*-symbianelf*)
3434 noconfigdirs="$noconfigdirs ${libgcj}"
3435 ;;
2909494b 3436 bfin-*-*)
2909494b
JM
3437 noconfigdirs="$noconfigdirs target-boehm-gc"
3438 ;;
2909494b
JM
3439 cris-*-* | crisv32-*-*)
3440 unsupported_languages="$unsupported_languages java"
3441 case "${target}" in
3442 *-*-linux*)
3443 ;;
3444 *) # See PR46792 regarding target-libffi.
3445 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3446 esac
3447 ;;
2909494b
JM
3448 hppa*64*-*-linux*)
3449 # In this case, it's because the hppa64-linux target is for
3450 # the kernel only at this point and has no libc, and thus no
3451 # headers, crt*.o, etc., all of which are needed by these.
fddf9ee7 3452 unsupported_languages="$unsupported_languages java"
2909494b 3453 ;;
fddf9ee7 3454 hppa*64*-*-hpux*)
2909494b
JM
3455 noconfigdirs="$noconfigdirs ${libgcj}"
3456 ;;
3457 hppa*-hp-hpux11*)
3458 ;;
fddf9ee7 3459 hppa*-*-hpux*)
2909494b
JM
3460 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3461 # build on HP-UX 10.20.
3462 noconfigdirs="$noconfigdirs ${libgcj}"
3463 ;;
2909494b
JM
3464 ia64*-*-*vms*)
3465 noconfigdirs="$noconfigdirs ${libgcj}"
3466 ;;
2909494b
JM
3467 i[3456789]86-w64-mingw*)
3468 noconfigdirs="$noconfigdirs ${libgcj}"
3469 ;;
3470 i[3456789]86-*-mingw*)
3471 noconfigdirs="$noconfigdirs ${libgcj}"
3472 ;;
3473 x86_64-*-mingw*)
3474 noconfigdirs="$noconfigdirs ${libgcj}"
3475 ;;
2909494b
JM
3476 mmix-*-*)
3477 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
2909494b
JM
3478 ;;
3479 powerpc-*-aix*)
3480 # copied from rs6000-*-* entry
3481 noconfigdirs="$noconfigdirs ${libgcj}"
3482 ;;
2909494b
JM
3483 rs6000-*-aix*)
3484 noconfigdirs="$noconfigdirs ${libgcj}"
3485 ;;
2909494b
JM
3486 *-*-lynxos*)
3487 noconfigdirs="$noconfigdirs ${libgcj}"
3488 ;;
2909494b
JM
3489esac
3490
1335a8ca
JBG
3491# Disable the go frontend on systems where it is known to not work. Please keep
3492# this in sync with contrib/config-list.mk.
74cc5471
ILT
3493case "${target}" in
3494*-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3495 unsupported_languages="$unsupported_languages go"
3496 ;;
3497esac
3498
cdbc9e92
ILT
3499# Disable libgo for some systems where it is known to not work.
3500# For testing, you can easily override this with --enable-libgo.
3501if test x$enable_libgo = x; then
3502 case "${target}" in
3503 *-*-darwin*)
3504 # PR 46986
3505 noconfigdirs="$noconfigdirs target-libgo"
3506 ;;
3507 *-*-cygwin* | *-*-mingw*)
3508 noconfigdirs="$noconfigdirs target-libgo"
3509 ;;
3510 *-*-aix*)
3511 noconfigdirs="$noconfigdirs target-libgo"
3512 ;;
3513 esac
3514fi
3515
c03353e2
RIL
3516# Default libgloss CPU subdirectory.
3517libgloss_dir="$target_cpu"
6de9cd9a 3518
fbcf0dca
JM
3519case "${target}" in
3520 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3521 libgloss_dir=wince
3522 ;;
4dddfc74
YZ
3523 aarch64*-*-* )
3524 libgloss_dir=aarch64
3525 ;;
fbcf0dca
JM
3526 arm*-*-*)
3527 libgloss_dir=arm
3528 ;;
3529 cris-*-* | crisv32-*-*)
3530 libgloss_dir=cris
3531 ;;
3532 hppa*-*-*)
3533 libgloss_dir=pa
3534 ;;
3535 i[3456789]86-*-*)
3536 libgloss_dir=i386
3537 ;;
3538 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3539 libgloss_dir=m68hc11
3540 ;;
3541 m68*-*-* | fido-*-*)
3542 libgloss_dir=m68k
3543 ;;
3544 mips*-*-*)
3545 libgloss_dir=mips
3546 ;;
3547 powerpc*-*-*)
3548 libgloss_dir=rs6000
3549 ;;
3550 sparc*-*-*)
3551 libgloss_dir=sparc
3552 ;;
3553esac
3554
6a789d5e 3555# Disable newlib and libgloss for various target OSes.
671aa708 3556case "${target}" in
6a789d5e
JM
3557 alpha*-dec-osf*)
3558 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3559 ;;
3560 i[3456789]86-*-linux*)
3561 # This section makes it possible to build newlib natively on linux.
3562 # If we are using a cross compiler then don't configure newlib.
3563 if test x${is_cross_compiler} != xno ; then
3564 noconfigdirs="$noconfigdirs target-newlib"
3565 fi
3566 noconfigdirs="$noconfigdirs target-libgloss"
3567 # If we are not using a cross compiler, do configure newlib.
3568 # Note however, that newlib will only be configured in this situation
3569 # if the --with-newlib option has been given, because otherwise
3570 # 'target-newlib' will appear in skipdirs.
3571 ;;
3572 i[3456789]86-*-rdos*)
3573 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3574 ;;
3575 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3576 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3577 ;;
3578 sparc-*-sunos4*)
3579 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3580 ;;
3581 *-*-aix*)
3582 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3583 ;;
3584 *-*-beos*)
3585 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3586 ;;
671aa708 3587 *-*-chorusos)
0036370f 3588 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3589 ;;
6a789d5e
JM
3590 *-*-dragonfly*)
3591 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3592 ;;
3593 *-*-freebsd*)
3594 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3595 ;;
3596 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3597 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3598 ;;
3599 *-*-lynxos*)
3600 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3601 ;;
3602 *-*-mingw*)
3603 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3604 ;;
3605 *-*-netbsd*)
3606 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3607 ;;
3608 *-*-netware*)
3609 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3610 ;;
3611 *-*-tpf*)
3612 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3613 ;;
3614 *-*-uclinux*)
3615 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3616 ;;
3617 *-*-vxworks*)
3618 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3619 ;;
3620esac
3621
3622case "${target}" in
3623 *-*-chorusos)
3624 ;;
75eeae1a 3625 powerpc-*-darwin*)
e1514c3f 3626 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3627 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3628 ;;
354ebf88
RW
3629 i[3456789]86-*-darwin*)
3630 noconfigdirs="$noconfigdirs ld gprof"
3631 noconfigdirs="$noconfigdirs sim target-rda"
3632 ;;
3633 x86_64-*-darwin[912]*)
0db3a858
TG
3634 noconfigdirs="$noconfigdirs ld gas gprof"
3635 noconfigdirs="$noconfigdirs sim target-rda"
3636 ;;
42c1cd8a
AT
3637 *-*-darwin*)
3638 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3639 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3640 ;;
8c6d158a 3641 *-*-dragonfly*)
8c6d158a 3642 ;;
c3f84f61 3643 *-*-freebsd*)
6de9cd9a
DN
3644 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3645 && test -f /usr/local/include/gmp.h; then
3646 with_gmp=/usr/local
3647 fi
6de9cd9a 3648 ;;
ef4e7569
US
3649 *-*-kaos*)
3650 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3651 noconfigdirs="$noconfigdirs target-libgloss"
3652 ;;
671aa708 3653 *-*-netbsd*)
671aa708 3654 ;;
61fec9ff 3655 *-*-netware*)
671aa708
NN
3656 ;;
3657 *-*-rtems*)
2909494b 3658 noconfigdirs="$noconfigdirs target-libgloss"
d896cc4d
JBG
3659 # this is not caught below because this stanza matches earlier
3660 case $target in
3661 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3662 esac
671aa708 3663 ;;
a8ba31f2
EC
3664 # The tpf target doesn't support gdb yet.
3665 *-*-tpf*)
6a789d5e 3666 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3667 ;;
5785c0ed 3668 *-*-uclinux*)
6a789d5e 3669 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3670 ;;
671aa708 3671 *-*-vxworks*)
671aa708
NN
3672 ;;
3673 alpha*-dec-osf*)
3674 # ld works, but does not support shared libraries.
671aa708 3675 # gas doesn't generate exception information.
6a789d5e 3676 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3677 ;;
3678 alpha*-*-*vms*)
2909494b 3679 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3680 ;;
671aa708
NN
3681 alpha*-*-*)
3682 # newlib is not 64 bit ready
2909494b 3683 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3684 ;;
671aa708 3685 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3686 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708 3687 ;;
53426f6c 3688 arc-*-*|arceb-*-*)
ebb9f8b0 3689 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3690 ;;
671aa708 3691 arm-*-pe*)
2909494b 3692 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3693 ;;
671aa708 3694 arm-*-riscix*)
0036370f 3695 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3696 ;;
b588ae30
GJL
3697 avr-*-rtems*)
3698 ;;
3699 avr-*-*)
3700 if test x${with_avrlibc} != xno; then
3701 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3702 fi
3703 ;;
671aa708 3704 c4x-*-* | tic4x-*-*)
0036370f 3705 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3706 ;;
0036370f
JM
3707 tic54x-*-*)
3708 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3709 ;;
671aa708 3710 d10v-*-*)
0036370f 3711 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3712 ;;
3713 d30v-*-*)
0036370f 3714 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3715 ;;
3716 fr30-*-elf*)
2909494b 3717 noconfigdirs="$noconfigdirs gdb"
671aa708 3718 ;;
55f2d967 3719 moxie-*-*)
55f2d967
AG
3720 noconfigdirs="$noconfigdirs gprof"
3721 ;;
671aa708 3722 h8300*-*-*)
2909494b 3723 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3724 ;;
3725 h8500-*-*)
0036370f 3726 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3727 ;;
ee6a22df 3728 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3729 ;;
4569f85e 3730 hppa*64*-*-linux*)
671aa708 3731 ;;
56f8587a 3732 hppa*-*-linux*)
3e732ba0 3733 ;;
671aa708 3734 hppa*-*-*elf* | \
671aa708
NN
3735 hppa*-*-lites* | \
3736 hppa*-*-openbsd* | \
3737 hppa*64*-*-*)
671aa708 3738 ;;
2a332582 3739 hppa*-hp-hpux11*)
1bcce263 3740 noconfigdirs="$noconfigdirs ld"
2a332582 3741 ;;
c03353e2 3742 hppa*-*-pro*)
c03353e2 3743 ;;
671aa708 3744 hppa*-*-*)
2909494b 3745 noconfigdirs="$noconfigdirs ld"
671aa708 3746 ;;
fb87ad5d 3747 i960-*-*)
0036370f 3748 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3749 ;;
671aa708
NN
3750 ia64*-*-elf*)
3751 # No gdb support yet.
1bcce263 3752 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3753 ;;
3754 ia64*-**-hpux*)
5a2931d1 3755 # No ld support yet.
2909494b 3756 noconfigdirs="$noconfigdirs libgui itcl ld"
671aa708 3757 ;;
52535a64 3758 ia64*-*-*vms*)
091fe9ca
TG
3759 # No ld support yet.
3760 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3761 ;;
ef4c4300 3762 i[3456789]86-w64-mingw*)
ef4c4300
KT
3763 ;;
3764 i[3456789]86-*-mingw*)
b91f0a41 3765 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3766 ;;
671aa708
NN
3767 *-*-cygwin*)
3768 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3769 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3770 # always build newlib if winsup directory is present.
b91f0a41 3771 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3772 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3773 elif test -d "$srcdir/newlib"; then
b91f0a41 3774 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3775 fi
1c710c3c 3776 ;;
f2a0e225 3777 i[3456789]86-*-pe)
ebb9f8b0 3778 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3779 ;;
f2a0e225 3780 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3781 # The linker does not yet know about weak symbols in COFF,
3782 # and is not configured to handle mixed ELF and COFF.
0036370f 3783 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3784 ;;
f2a0e225 3785 i[3456789]86-*-sco*)
0036370f 3786 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3787 ;;
fbdd5d87 3788 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3789 noconfigdirs="$noconfigdirs target-libgloss"
3790 ;;
f2a0e225 3791 i[3456789]86-*-sysv4*)
0036370f 3792 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3793 ;;
f2a0e225 3794 i[3456789]86-*-beos*)
6a789d5e 3795 noconfigdirs="$noconfigdirs gdb"
3aa83176 3796 ;;
d1f8db0c 3797 i[3456789]86-*-rdos*)
6a789d5e 3798 noconfigdirs="$noconfigdirs gdb"
c03353e2 3799 ;;
671aa708 3800 mmix-*-*)
2909494b 3801 noconfigdirs="$noconfigdirs gdb"
671aa708 3802 ;;
ab34901f 3803 mt-*-*)
79dd769c
AH
3804 noconfigdirs="$noconfigdirs sim"
3805 ;;
671aa708
NN
3806 powerpc-*-aix*)
3807 # copied from rs6000-*-* entry
6a789d5e 3808 noconfigdirs="$noconfigdirs gprof"
671aa708 3809 ;;
4569f85e 3810 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3811 target_configdirs="$target_configdirs target-winsup"
0036370f 3812 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3813 # always build newlib.
3814 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3815 ;;
3816 # This is temporary until we can link against shared libraries
3817 powerpcle-*-solaris*)
0036370f 3818 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3819 ;;
3820 powerpc-*-beos*)
6a789d5e 3821 noconfigdirs="$noconfigdirs gdb"
671aa708 3822 ;;
671aa708 3823 rs6000-*-lynxos*)
6a789d5e 3824 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3825 ;;
3826 rs6000-*-aix*)
6a789d5e 3827 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3828 ;;
3829 rs6000-*-*)
2909494b 3830 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3831 ;;
3832 m68k-apollo-*)
0036370f 3833 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3834 ;;
ca9fe997 3835 microblaze*)
2909494b 3836 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3837 ;;
d896cc4d 3838 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
d9dced13
RS
3839 if test x$with_newlib = xyes; then
3840 noconfigdirs="$noconfigdirs gprof"
3841 fi
d9dced13 3842 ;;
671aa708 3843 mips*-*-irix5*)
0036370f 3844 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3845 ;;
3846 mips*-*-irix6*)
2909494b 3847 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3848 ;;
671aa708 3849 mips*-*-bsd*)
bc98bcc4 3850 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
671aa708 3851 ;;
671aa708 3852 mips*-*-linux*)
671aa708 3853 ;;
bc98bcc4
JBG
3854 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3855 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3856 noconfigdirs="$noconfigdirs ld gas gprof"
3857 ;;
671aa708 3858 mips*-*-*)
2909494b 3859 noconfigdirs="$noconfigdirs gprof"
671aa708 3860 ;;
d896cc4d
JBG
3861 nds32*-*-*)
3862 noconfigdirs="$noconfigdirs gdb"
3863 ;;
738f2522
BS
3864 nvptx*-*-*)
3865 # nvptx is just a compiler
3866 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3867 ;;
d896cc4d
JBG
3868 or1k*-*-*)
3869 noconfigdirs="$noconfigdirs gdb"
3870 ;;
669f01d8 3871 sh-*-* | sh64-*-*)
ea2002ba
CB
3872 case "${target}" in
3873 sh*-*-elf)
2909494b 3874 ;;
ea2002ba 3875 *)
2909494b 3876 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 3877 esac
671aa708 3878 ;;
671aa708 3879 sparc-*-sunos4*)
6a789d5e 3880 if test x${is_cross_compiler} = xno ; then
671aa708
NN
3881 use_gnu_ld=no
3882 fi
3883 ;;
b42f0d7e 3884 tic6x-*-*)
0d557ff8 3885 noconfigdirs="$noconfigdirs sim"
b42f0d7e 3886 ;;
341c653c 3887 tilepro*-*-* | tilegx*-*-*)
db1d217c
WL
3888 noconfigdirs="$noconfigdirs sim"
3889 ;;
671aa708 3890 v810-*-*)
0036370f 3891 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
3892 ;;
3893 vax-*-*)
2909494b 3894 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3895 ;;
671aa708 3896esac
79c06341 3897
671aa708
NN
3898# If we aren't building newlib, then don't build libgloss, since libgloss
3899# depends upon some newlib header files.
3900case "${noconfigdirs}" in
3901 *target-libgloss*) ;;
3902 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3903esac
3904
671aa708 3905# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
3906host_makefile_frag=/dev/null
3907if test -d ${srcdir}/config ; then
3908case "${host}" in
f2a0e225 3909 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
3910 host_makefile_frag="config/mh-djgpp"
3911 ;;
3912 *-cygwin*)
2a79c47f 3913
5213506e
RW
3914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3915$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 3916echo a >cygwin-cat-check
e25a8c82 3917if test `cat cygwin-cat-check` = a ; then
2a79c47f 3918 rm cygwin-cat-check
5213506e
RW
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3920$as_echo "yes" >&6; }
2a79c47f
NC
3921else
3922 rm cygwin-cat-check
5213506e
RW
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3924$as_echo "no" >&6; }
3925 as_fn_error "The cat command does not ignore carriage return characters.
2a79c47f
NC
3926 Please either mount the build directory in binary mode or run the following
3927 commands before running any configure script:
3928set -o igncr
3929export SHELLOPTS
5213506e 3930 " "$LINENO" 5
2a79c47f
NC
3931fi
3932
671aa708
NN
3933 host_makefile_frag="config/mh-cygwin"
3934 ;;
c53a18d3 3935 *-mingw*)
1f5a6b84 3936 host_makefile_frag="config/mh-mingw"
95af8923 3937 ;;
7b7f941a
UB
3938 alpha*-*-linux*)
3939 host_makefile_frag="config/mh-alpha-linux"
3940 ;;
efd41714 3941 hppa*-hp-hpux10*)
efd41714 3942 host_makefile_frag="config/mh-pa-hpux10"
671aa708 3943 ;;
111eeb6e 3944 hppa*-hp-hpux*)
efd41714
PB
3945 host_makefile_frag="config/mh-pa"
3946 ;;
3947 hppa*-*)
3948 host_makefile_frag="config/mh-pa"
3949 ;;
d8ed14ce
IS
3950 *-*-darwin*)
3951 host_makefile_frag="config/mh-darwin"
be8fff81 3952 ;;
d19bca38
PB
3953 powerpc-*-aix*)
3954 host_makefile_frag="config/mh-ppc-aix"
3955 ;;
3956 rs6000-*-aix*)
3957 host_makefile_frag="config/mh-ppc-aix"
3958 ;;
671aa708
NN
3959esac
3960fi
3961
55ffb5ed 3962if test "${build}" != "${host}" ; then
0999159b
PB
3963 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3964 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 3965 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b
PB
3966 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3967 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3968 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 3969 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
0999159b
PB
3970 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3971 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3972 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3973 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3974 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3975 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3976else
3977 AR_FOR_BUILD="\$(AR)"
3978 AS_FOR_BUILD="\$(AS)"
fb0103e5 3979 CC_FOR_BUILD="\$(CC)"
0999159b
PB
3980 CXX_FOR_BUILD="\$(CXX)"
3981 GCJ_FOR_BUILD="\$(GCJ)"
3982 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 3983 GOC_FOR_BUILD="\$(GOC)"
0999159b
PB
3984 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3985 LD_FOR_BUILD="\$(LD)"
3986 NM_FOR_BUILD="\$(NM)"
3987 RANLIB_FOR_BUILD="\$(RANLIB)"
3988 WINDRES_FOR_BUILD="\$(WINDRES)"
3989 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
3990fi
3991
3992ac_ext=c
1c710c3c
DJ
3993ac_cpp='$CPP $CPPFLAGS'
3994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3996ac_compiler_gnu=$ac_cv_c_compiler_gnu
3997if test -n "$ac_tool_prefix"; then
3998 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3999set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
4000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4001$as_echo_n "checking for $ac_word... " >&6; }
4002if test "${ac_cv_prog_CC+set}" = set; then :
4003 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4004else
4005 if test -n "$CC"; then
4006 ac_cv_prog_CC="$CC" # Let the user override the test.
4007else
4008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009for as_dir in $PATH
4010do
4011 IFS=$as_save_IFS
4012 test -z "$as_dir" && as_dir=.
5213506e
RW
4013 for ac_exec_ext in '' $ac_executable_extensions; do
4014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4015 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 4016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4017 break 2
4018 fi
4019done
5213506e
RW
4020 done
4021IFS=$as_save_IFS
1c710c3c
DJ
4022
4023fi
4024fi
4025CC=$ac_cv_prog_CC
4026if test -n "$CC"; then
5213506e
RW
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4028$as_echo "$CC" >&6; }
1c710c3c 4029else
5213506e
RW
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4031$as_echo "no" >&6; }
1c710c3c
DJ
4032fi
4033
5213506e 4034
1c710c3c
DJ
4035fi
4036if test -z "$ac_cv_prog_CC"; then
4037 ac_ct_CC=$CC
fb0103e5
RG
4038 # Extract the first word of "gcc", so it can be a program name with args.
4039set dummy gcc; ac_word=$2
5213506e
RW
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4041$as_echo_n "checking for $ac_word... " >&6; }
4042if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4043 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4044else
4045 if test -n "$ac_ct_CC"; then
4046 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4047else
4048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049for as_dir in $PATH
4050do
4051 IFS=$as_save_IFS
4052 test -z "$as_dir" && as_dir=.
5213506e
RW
4053 for ac_exec_ext in '' $ac_executable_extensions; do
4054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4055 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4057 break 2
4058 fi
4059done
5213506e
RW
4060 done
4061IFS=$as_save_IFS
1c710c3c
DJ
4062
4063fi
4064fi
4065ac_ct_CC=$ac_cv_prog_ac_ct_CC
4066if test -n "$ac_ct_CC"; then
5213506e
RW
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4068$as_echo "$ac_ct_CC" >&6; }
1c710c3c 4069else
5213506e
RW
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4071$as_echo "no" >&6; }
1c710c3c
DJ
4072fi
4073
5213506e
RW
4074 if test "x$ac_ct_CC" = x; then
4075 CC=""
4076 else
4077 case $cross_compiling:$ac_tool_warned in
4078yes:)
4079{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4080$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4081ac_tool_warned=yes ;;
4082esac
4083 CC=$ac_ct_CC
4084 fi
1c710c3c
DJ
4085else
4086 CC="$ac_cv_prog_CC"
4087fi
4088
4089if test -z "$CC"; then
5213506e
RW
4090 if test -n "$ac_tool_prefix"; then
4091 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4092set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4094$as_echo_n "checking for $ac_word... " >&6; }
4095if test "${ac_cv_prog_CC+set}" = set; then :
4096 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4097else
4098 if test -n "$CC"; then
4099 ac_cv_prog_CC="$CC" # Let the user override the test.
4100else
1c710c3c
DJ
4101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102for as_dir in $PATH
4103do
4104 IFS=$as_save_IFS
4105 test -z "$as_dir" && as_dir=.
5213506e
RW
4106 for ac_exec_ext in '' $ac_executable_extensions; do
4107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4108 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4110 break 2
4111 fi
4112done
5213506e
RW
4113 done
4114IFS=$as_save_IFS
1c710c3c 4115
0b0dc272 4116fi
0b0dc272 4117fi
1c710c3c 4118CC=$ac_cv_prog_CC
af71363e 4119if test -n "$CC"; then
5213506e
RW
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4121$as_echo "$CC" >&6; }
2aeb72e9 4122else
5213506e
RW
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4124$as_echo "no" >&6; }
2aeb72e9
DD
4125fi
4126
2aeb72e9 4127
5213506e 4128 fi
1c710c3c 4129fi
55ffb5ed
NN
4130if test -z "$CC"; then
4131 # Extract the first word of "cc", so it can be a program name with args.
4132set dummy cc; ac_word=$2
5213506e
RW
4133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4134$as_echo_n "checking for $ac_word... " >&6; }
4135if test "${ac_cv_prog_CC+set}" = set; then :
4136 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4137else
4138 if test -n "$CC"; then
4139 ac_cv_prog_CC="$CC" # Let the user override the test.
4140else
0b0dc272 4141 ac_prog_rejected=no
1c710c3c
DJ
4142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143for as_dir in $PATH
4144do
4145 IFS=$as_save_IFS
4146 test -z "$as_dir" && as_dir=.
5213506e
RW
4147 for ac_exec_ext in '' $ac_executable_extensions; do
4148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
4149 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4150 ac_prog_rejected=yes
4151 continue
4152 fi
4153 ac_cv_prog_CC="cc"
5213506e 4154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4155 break 2
4156 fi
4157done
5213506e
RW
4158 done
4159IFS=$as_save_IFS
1c710c3c 4160
55ffb5ed
NN
4161if test $ac_prog_rejected = yes; then
4162 # We found a bogon in the path, so make sure we never use it.
4163 set dummy $ac_cv_prog_CC
4164 shift
1c710c3c 4165 if test $# != 0; then
55ffb5ed
NN
4166 # We chose a different compiler from the bogus one.
4167 # However, it has the same basename, so the bogon will be chosen
4168 # first if we set CC to just the basename; use the full file name.
4169 shift
1c710c3c 4170 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4171 fi
4172fi
4173fi
4174fi
1c710c3c 4175CC=$ac_cv_prog_CC
55ffb5ed 4176if test -n "$CC"; then
5213506e
RW
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4178$as_echo "$CC" >&6; }
55ffb5ed 4179else
5213506e
RW
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4181$as_echo "no" >&6; }
55ffb5ed
NN
4182fi
4183
5213506e 4184
1c710c3c
DJ
4185fi
4186if test -z "$CC"; then
4187 if test -n "$ac_tool_prefix"; then
5213506e 4188 for ac_prog in cl.exe
1c710c3c
DJ
4189 do
4190 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4191set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4193$as_echo_n "checking for $ac_word... " >&6; }
4194if test "${ac_cv_prog_CC+set}" = set; then :
4195 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4196else
4197 if test -n "$CC"; then
4198 ac_cv_prog_CC="$CC" # Let the user override the test.
4199else
1c710c3c
DJ
4200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201for as_dir in $PATH
4202do
4203 IFS=$as_save_IFS
4204 test -z "$as_dir" && as_dir=.
5213506e
RW
4205 for ac_exec_ext in '' $ac_executable_extensions; do
4206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4207 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4209 break 2
4210 fi
4211done
5213506e
RW
4212 done
4213IFS=$as_save_IFS
1c710c3c 4214
55ffb5ed
NN
4215fi
4216fi
1c710c3c 4217CC=$ac_cv_prog_CC
55ffb5ed 4218if test -n "$CC"; then
5213506e
RW
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4220$as_echo "$CC" >&6; }
a4b9e93e 4221else
5213506e
RW
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4223$as_echo "no" >&6; }
fb0103e5 4224fi
af71363e 4225
5213506e 4226
1c710c3c
DJ
4227 test -n "$CC" && break
4228 done
af71363e 4229fi
1c710c3c
DJ
4230if test -z "$CC"; then
4231 ac_ct_CC=$CC
5213506e 4232 for ac_prog in cl.exe
1c710c3c
DJ
4233do
4234 # Extract the first word of "$ac_prog", so it can be a program name with args.
4235set dummy $ac_prog; ac_word=$2
5213506e
RW
4236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237$as_echo_n "checking for $ac_word... " >&6; }
4238if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4239 $as_echo_n "(cached) " >&6
0b0dc272 4240else
1c710c3c
DJ
4241 if test -n "$ac_ct_CC"; then
4242 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4243else
1c710c3c
DJ
4244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245for as_dir in $PATH
4246do
4247 IFS=$as_save_IFS
4248 test -z "$as_dir" && as_dir=.
5213506e
RW
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4251 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4253 break 2
4254 fi
4255done
5213506e
RW
4256 done
4257IFS=$as_save_IFS
1c710c3c 4258
af71363e
AS
4259fi
4260fi
1c710c3c
DJ
4261ac_ct_CC=$ac_cv_prog_ac_ct_CC
4262if test -n "$ac_ct_CC"; then
5213506e
RW
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4264$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4265else
5213506e
RW
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267$as_echo "no" >&6; }
af71363e 4268fi
0b0dc272 4269
5213506e 4270
1c710c3c
DJ
4271 test -n "$ac_ct_CC" && break
4272done
4273
5213506e
RW
4274 if test "x$ac_ct_CC" = x; then
4275 CC=""
4276 else
4277 case $cross_compiling:$ac_tool_warned in
4278yes:)
4279{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4280$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4281ac_tool_warned=yes ;;
4282esac
4283 CC=$ac_ct_CC
4284 fi
1c710c3c
DJ
4285fi
4286
4287fi
4288
4289
5213506e
RW
4290test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4291$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4292as_fn_error "no acceptable C compiler found in \$PATH
4293See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4294
4295# Provide some information about the compiler.
5213506e
RW
4296$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4297set X $ac_compile
4298ac_compiler=$2
4299for ac_option in --version -v -V -qversion; do
4300 { { ac_try="$ac_compiler $ac_option >&5"
4301case "(($ac_try" in
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4304esac
4305eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4306$as_echo "$ac_try_echo"; } >&5
4307 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4308 ac_status=$?
5213506e
RW
4309 if test -s conftest.err; then
4310 sed '10a\
4311... rest of stderr output deleted ...
4312 10q' conftest.err >conftest.er1
4313 cat conftest.er1 >&5
4314 rm -f conftest.er1 conftest.err
4315 fi
4316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4317 test $ac_status = 0; }
4318done
1c710c3c 4319
5213506e 4320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4321/* end confdefs.h. */
4322
4323int
4324main ()
4325{
4326
4327 ;
4328 return 0;
4329}
4330_ACEOF
4331ac_clean_files_save=$ac_clean_files
5213506e 4332ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
1c710c3c
DJ
4333# Try to create an executable without -o first, disregard a.out.
4334# It will help us diagnose broken compilers, and finding out an intuition
4335# of exeext.
5213506e
RW
4336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4337$as_echo_n "checking for C compiler default output file name... " >&6; }
4338ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4339
4340# The possible output files:
4341ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4342
4343ac_rmfiles=
4344for ac_file in $ac_files
4345do
4346 case $ac_file in
4347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4348 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4349 esac
4350done
4351rm -f $ac_rmfiles
4352
4353if { { ac_try="$ac_link_default"
4354case "(($ac_try" in
4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356 *) ac_try_echo=$ac_try;;
4357esac
4358eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4359$as_echo "$ac_try_echo"; } >&5
4360 (eval "$ac_link_default") 2>&5
1c710c3c 4361 ac_status=$?
5213506e
RW
4362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4363 test $ac_status = 0; }; then :
4364 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4365# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4366# in a Makefile. We should not override ac_cv_exeext if it was cached,
4367# so that the user can short-circuit this test for compilers unknown to
4368# Autoconf.
4369for ac_file in $ac_files ''
1c710c3c
DJ
4370do
4371 test -f "$ac_file" || continue
4372 case $ac_file in
5213506e 4373 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4374 ;;
4375 [ab].out )
4376 # We found the default executable, but exeext='' is most
4377 # certainly right.
4378 break;;
4379 *.* )
5213506e
RW
4380 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4381 then :; else
4382 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4383 fi
4384 # We set ac_cv_exeext here because the later test for it is not
4385 # safe: cross compilers may not add the suffix if given an `-o'
4386 # argument, so we may need to know it at that point already.
4387 # Even if this section looks crufty: it has the advantage of
4388 # actually working.
1c710c3c
DJ
4389 break;;
4390 * )
4391 break;;
4392 esac
4393done
5213506e
RW
4394test "$ac_cv_exeext" = no && ac_cv_exeext=
4395
1c710c3c 4396else
5213506e
RW
4397 ac_file=''
4398fi
4399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4400$as_echo "$ac_file" >&6; }
4401if test -z "$ac_file"; then :
4402 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4403sed 's/^/| /' conftest.$ac_ext >&5
4404
5213506e
RW
4405{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4406$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4407{ as_fn_set_status 77
4408as_fn_error "C compiler cannot create executables
4409See \`config.log' for more details." "$LINENO" 5; }; }
1c710c3c 4410fi
1c710c3c 4411ac_exeext=$ac_cv_exeext
1c710c3c 4412
5213506e 4413# Check that the compiler produces executables we can run. If not, either
1c710c3c 4414# the compiler is broken, or we cross compile.
5213506e
RW
4415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4416$as_echo_n "checking whether the C compiler works... " >&6; }
1c710c3c
DJ
4417# If not cross compiling, check that we can run a simple program.
4418if test "$cross_compiling" != yes; then
4419 if { ac_try='./$ac_file'
5213506e
RW
4420 { { case "(($ac_try" in
4421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422 *) ac_try_echo=$ac_try;;
4423esac
4424eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4425$as_echo "$ac_try_echo"; } >&5
4426 (eval "$ac_try") 2>&5
1c710c3c 4427 ac_status=$?
5213506e
RW
4428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4429 test $ac_status = 0; }; }; then
1c710c3c
DJ
4430 cross_compiling=no
4431 else
4432 if test "$cross_compiling" = maybe; then
4433 cross_compiling=yes
4434 else
5213506e
RW
4435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4436$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4437as_fn_error "cannot run C compiled programs.
1c710c3c 4438If you meant to cross compile, use \`--host'.
5213506e 4439See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4440 fi
4441 fi
4442fi
5213506e
RW
4443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4444$as_echo "yes" >&6; }
1c710c3c 4445
5213506e 4446rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
1c710c3c 4447ac_clean_files=$ac_clean_files_save
5213506e 4448# Check that the compiler produces executables we can run. If not, either
1c710c3c 4449# the compiler is broken, or we cross compile.
5213506e
RW
4450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4451$as_echo_n "checking whether we are cross compiling... " >&6; }
4452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4453$as_echo "$cross_compiling" >&6; }
4454
4455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4456$as_echo_n "checking for suffix of executables... " >&6; }
4457if { { ac_try="$ac_link"
4458case "(($ac_try" in
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4461esac
4462eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4463$as_echo "$ac_try_echo"; } >&5
4464 (eval "$ac_link") 2>&5
1c710c3c 4465 ac_status=$?
5213506e
RW
4466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4467 test $ac_status = 0; }; then :
1c710c3c
DJ
4468 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4469# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4470# work properly (i.e., refer to `conftest.exe'), while it won't with
4471# `rm'.
4472for ac_file in conftest.exe conftest conftest.*; do
4473 test -f "$ac_file" || continue
4474 case $ac_file in
5213506e 4475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4476 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4477 break;;
4478 * ) break;;
4479 esac
4480done
af71363e 4481else
5213506e
RW
4482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4483$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4484as_fn_error "cannot compute suffix of executables: cannot compile and link
4485See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4486fi
1c710c3c 4487rm -f conftest$ac_cv_exeext
5213506e
RW
4488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4489$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4490
4491rm -f conftest.$ac_ext
4492EXEEXT=$ac_cv_exeext
4493ac_exeext=$EXEEXT
5213506e
RW
4494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4495$as_echo_n "checking for suffix of object files... " >&6; }
4496if test "${ac_cv_objext+set}" = set; then :
4497 $as_echo_n "(cached) " >&6
1c710c3c 4498else
5213506e 4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4500/* end confdefs.h. */
4501
4502int
4503main ()
4504{
4505
4506 ;
4507 return 0;
4508}
4509_ACEOF
4510rm -f conftest.o conftest.obj
5213506e
RW
4511if { { ac_try="$ac_compile"
4512case "(($ac_try" in
4513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514 *) ac_try_echo=$ac_try;;
4515esac
4516eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4517$as_echo "$ac_try_echo"; } >&5
4518 (eval "$ac_compile") 2>&5
1c710c3c 4519 ac_status=$?
5213506e
RW
4520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4521 test $ac_status = 0; }; then :
4522 for ac_file in conftest.o conftest.obj conftest.*; do
4523 test -f "$ac_file" || continue;
1c710c3c 4524 case $ac_file in
5213506e 4525 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4526 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4527 break;;
4528 esac
4529done
4530else
5213506e 4531 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4532sed 's/^/| /' conftest.$ac_ext >&5
4533
5213506e
RW
4534{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4535$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4536as_fn_error "cannot compute suffix of object files: cannot compile
4537See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4538fi
1c710c3c
DJ
4539rm -f conftest.$ac_cv_objext conftest.$ac_ext
4540fi
5213506e
RW
4541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4542$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4543OBJEXT=$ac_cv_objext
4544ac_objext=$OBJEXT
5213506e
RW
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4546$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4547if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4548 $as_echo_n "(cached) " >&6
1c710c3c 4549else
5213506e 4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4551/* end confdefs.h. */
4552
4553int
4554main ()
4555{
4556#ifndef __GNUC__
4557 choke me
4558#endif
4559
4560 ;
4561 return 0;
4562}
4563_ACEOF
5213506e 4564if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4565 ac_compiler_gnu=yes
4566else
5213506e 4567 ac_compiler_gnu=no
1c710c3c 4568fi
5213506e 4569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4570ac_cv_c_compiler_gnu=$ac_compiler_gnu
4571
4572fi
5213506e
RW
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4574$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4575if test $ac_compiler_gnu = yes; then
4576 GCC=yes
4577else
4578 GCC=
4579fi
1c710c3c
DJ
4580ac_test_CFLAGS=${CFLAGS+set}
4581ac_save_CFLAGS=$CFLAGS
5213506e
RW
4582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4583$as_echo_n "checking whether $CC accepts -g... " >&6; }
4584if test "${ac_cv_prog_cc_g+set}" = set; then :
4585 $as_echo_n "(cached) " >&6
4586else
4587 ac_save_c_werror_flag=$ac_c_werror_flag
4588 ac_c_werror_flag=yes
4589 ac_cv_prog_cc_g=no
4590 CFLAGS="-g"
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4592/* end confdefs.h. */
4593
4594int
4595main ()
4596{
4597
4598 ;
4599 return 0;
4600}
4601_ACEOF
5213506e 4602if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4603 ac_cv_prog_cc_g=yes
4604else
5213506e
RW
4605 CFLAGS=""
4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607/* end confdefs.h. */
4608
4609int
4610main ()
4611{
4612
4613 ;
4614 return 0;
4615}
4616_ACEOF
4617if ac_fn_c_try_compile "$LINENO"; then :
4618
4619else
4620 ac_c_werror_flag=$ac_save_c_werror_flag
4621 CFLAGS="-g"
4622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4623/* end confdefs.h. */
af71363e 4624
5213506e
RW
4625int
4626main ()
4627{
4628
4629 ;
4630 return 0;
4631}
4632_ACEOF
4633if ac_fn_c_try_compile "$LINENO"; then :
4634 ac_cv_prog_cc_g=yes
4635fi
4636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4637fi
5213506e 4638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4639fi
5213506e
RW
4640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4641 ac_c_werror_flag=$ac_save_c_werror_flag
4642fi
4643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4644$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4645if test "$ac_test_CFLAGS" = set; then
1c710c3c 4646 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4647elif test $ac_cv_prog_cc_g = yes; then
4648 if test "$GCC" = yes; then
4649 CFLAGS="-g -O2"
4650 else
4651 CFLAGS="-g"
4652 fi
4653else
4654 if test "$GCC" = yes; then
4655 CFLAGS="-O2"
4656 else
4657 CFLAGS=
4658 fi
4659fi
5213506e
RW
4660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4661$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4662if test "${ac_cv_prog_cc_c89+set}" = set; then :
4663 $as_echo_n "(cached) " >&6
1c710c3c 4664else
5213506e 4665 ac_cv_prog_cc_c89=no
1c710c3c 4666ac_save_CC=$CC
5213506e 4667cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4668/* end confdefs.h. */
4669#include <stdarg.h>
4670#include <stdio.h>
4671#include <sys/types.h>
4672#include <sys/stat.h>
4673/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4674struct buf { int x; };
4675FILE * (*rcsopen) (struct buf *, struct stat *, int);
4676static char *e (p, i)
4677 char **p;
4678 int i;
4679{
4680 return p[i];
4681}
4682static char *f (char * (*g) (char **, int), char **p, ...)
4683{
4684 char *s;
4685 va_list v;
4686 va_start (v,p);
4687 s = g (p, va_arg (v,int));
4688 va_end (v);
4689 return s;
4690}
4691
4692/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4693 function prototypes and stuff, but not '\xHH' hex character constants.
4694 These don't provoke an error unfortunately, instead are silently treated
5213506e 4695 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4696 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4697 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4698 that's true only with -std. */
1c710c3c
DJ
4699int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4700
5213506e
RW
4701/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4702 inside strings and character constants. */
4703#define FOO(x) 'x'
4704int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4705
1c710c3c
DJ
4706int test (int i, double x);
4707struct s1 {int (*f) (int a);};
4708struct s2 {int (*f) (double a);};
4709int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4710int argc;
4711char **argv;
4712int
4713main ()
4714{
4715return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4716 ;
4717 return 0;
4718}
4719_ACEOF
5213506e
RW
4720for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4721 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4722do
4723 CC="$ac_save_CC $ac_arg"
5213506e
RW
4724 if ac_fn_c_try_compile "$LINENO"; then :
4725 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4726fi
5213506e
RW
4727rm -f core conftest.err conftest.$ac_objext
4728 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4729done
5213506e 4730rm -f conftest.$ac_ext
1c710c3c
DJ
4731CC=$ac_save_CC
4732
4733fi
5213506e
RW
4734# AC_CACHE_VAL
4735case "x$ac_cv_prog_cc_c89" in
4736 x)
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4738$as_echo "none needed" >&6; } ;;
4739 xno)
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4741$as_echo "unsupported" >&6; } ;;
1c710c3c 4742 *)
5213506e
RW
4743 CC="$CC $ac_cv_prog_cc_c89"
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4745$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4746esac
5213506e 4747if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4748
2aeb72e9
DD
4749fi
4750
2aeb72e9
DD
4751ac_ext=c
4752ac_cpp='$CPP $CPPFLAGS'
4753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4755ac_compiler_gnu=$ac_cv_c_compiler_gnu
4756
5213506e 4757ac_ext=cpp
2aeb72e9
DD
4758ac_cpp='$CXXCPP $CPPFLAGS'
4759ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4760ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4761ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4762if test -z "$CXX"; then
4763 if test -n "$CCC"; then
4764 CXX=$CCC
4765 else
4766 if test -n "$ac_tool_prefix"; then
4767 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4768 do
4769 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4770set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4772$as_echo_n "checking for $ac_word... " >&6; }
4773if test "${ac_cv_prog_CXX+set}" = set; then :
4774 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4775else
4776 if test -n "$CXX"; then
4777 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4778else
4779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780for as_dir in $PATH
4781do
4782 IFS=$as_save_IFS
4783 test -z "$as_dir" && as_dir=.
5213506e
RW
4784 for ac_exec_ext in '' $ac_executable_extensions; do
4785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2aeb72e9 4786 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4788 break 2
4789 fi
4790done
5213506e
RW
4791 done
4792IFS=$as_save_IFS
55ffb5ed 4793
c3a86da9
DJ
4794fi
4795fi
4796CXX=$ac_cv_prog_CXX
4797if test -n "$CXX"; then
5213506e
RW
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4799$as_echo "$CXX" >&6; }
c3a86da9 4800else
5213506e
RW
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802$as_echo "no" >&6; }
c3a86da9
DJ
4803fi
4804
5213506e 4805
c3a86da9
DJ
4806 test -n "$CXX" && break
4807 done
4808fi
4809if test -z "$CXX"; then
4810 ac_ct_CXX=$CXX
5213506e 4811 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4812do
4813 # Extract the first word of "$ac_prog", so it can be a program name with args.
4814set dummy $ac_prog; ac_word=$2
5213506e
RW
4815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4816$as_echo_n "checking for $ac_word... " >&6; }
4817if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4818 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4819else
4820 if test -n "$ac_ct_CXX"; then
4821 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4822else
4823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824for as_dir in $PATH
4825do
4826 IFS=$as_save_IFS
4827 test -z "$as_dir" && as_dir=.
5213506e
RW
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c3a86da9 4830 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4832 break 2
4833 fi
4834done
5213506e
RW
4835 done
4836IFS=$as_save_IFS
c3a86da9
DJ
4837
4838fi
4839fi
4840ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4841if test -n "$ac_ct_CXX"; then
5213506e
RW
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4843$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4844else
5213506e
RW
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846$as_echo "no" >&6; }
c3a86da9
DJ
4847fi
4848
5213506e 4849
c3a86da9
DJ
4850 test -n "$ac_ct_CXX" && break
4851done
c3a86da9 4852
5213506e
RW
4853 if test "x$ac_ct_CXX" = x; then
4854 CXX="g++"
4855 else
4856 case $cross_compiling:$ac_tool_warned in
4857yes:)
4858{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4859$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4860ac_tool_warned=yes ;;
4861esac
4862 CXX=$ac_ct_CXX
4863 fi
c3a86da9
DJ
4864fi
4865
5213506e
RW
4866 fi
4867fi
c3a86da9 4868# Provide some information about the compiler.
5213506e
RW
4869$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4870set X $ac_compile
4871ac_compiler=$2
4872for ac_option in --version -v -V -qversion; do
4873 { { ac_try="$ac_compiler $ac_option >&5"
4874case "(($ac_try" in
4875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4876 *) ac_try_echo=$ac_try;;
4877esac
4878eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4879$as_echo "$ac_try_echo"; } >&5
4880 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 4881 ac_status=$?
5213506e
RW
4882 if test -s conftest.err; then
4883 sed '10a\
4884... rest of stderr output deleted ...
4885 10q' conftest.err >conftest.er1
4886 cat conftest.er1 >&5
4887 rm -f conftest.er1 conftest.err
4888 fi
4889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4890 test $ac_status = 0; }
4891done
c3a86da9 4892
5213506e
RW
4893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4894$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4895if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4896 $as_echo_n "(cached) " >&6
c3a86da9 4897else
5213506e 4898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4899/* end confdefs.h. */
4900
4901int
4902main ()
4903{
4904#ifndef __GNUC__
4905 choke me
4906#endif
4907
4908 ;
4909 return 0;
4910}
4911_ACEOF
5213506e 4912if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4913 ac_compiler_gnu=yes
4914else
5213506e 4915 ac_compiler_gnu=no
c3a86da9 4916fi
5213506e 4917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4918ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4919
4920fi
5213506e
RW
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4922$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4923if test $ac_compiler_gnu = yes; then
4924 GXX=yes
4925else
4926 GXX=
4927fi
c3a86da9
DJ
4928ac_test_CXXFLAGS=${CXXFLAGS+set}
4929ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
4930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4931$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4932if test "${ac_cv_prog_cxx_g+set}" = set; then :
4933 $as_echo_n "(cached) " >&6
4934else
4935 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4936 ac_cxx_werror_flag=yes
4937 ac_cv_prog_cxx_g=no
4938 CXXFLAGS="-g"
4939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4940/* end confdefs.h. */
4941
4942int
4943main ()
4944{
4945
4946 ;
4947 return 0;
4948}
4949_ACEOF
5213506e 4950if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4951 ac_cv_prog_cxx_g=yes
4952else
5213506e
RW
4953 CXXFLAGS=""
4954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4955/* end confdefs.h. */
5213506e 4956
c3a86da9
DJ
4957int
4958main ()
4959{
5213506e 4960
c3a86da9
DJ
4961 ;
4962 return 0;
4963}
4964_ACEOF
5213506e 4965if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 4966
5213506e
RW
4967else
4968 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4969 CXXFLAGS="-g"
4970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4971/* end confdefs.h. */
5213506e 4972
c3a86da9
DJ
4973int
4974main ()
4975{
5213506e 4976
c3a86da9
DJ
4977 ;
4978 return 0;
4979}
4980_ACEOF
5213506e
RW
4981if ac_fn_cxx_try_compile "$LINENO"; then :
4982 ac_cv_prog_cxx_g=yes
11a67599 4983fi
5213506e
RW
4984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4985fi
4986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4987fi
4988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4989 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4990fi
4991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4992$as_echo "$ac_cv_prog_cxx_g" >&6; }
4993if test "$ac_test_CXXFLAGS" = set; then
4994 CXXFLAGS=$ac_save_CXXFLAGS
4995elif test $ac_cv_prog_cxx_g = yes; then
4996 if test "$GXX" = yes; then
4997 CXXFLAGS="-g -O2"
4998 else
4999 CXXFLAGS="-g"
5000 fi
5001else
5002 if test "$GXX" = yes; then
5003 CXXFLAGS="-O2"
5004 else
5005 CXXFLAGS=
5006 fi
c3a86da9 5007fi
c3a86da9
DJ
5008ac_ext=c
5009ac_cpp='$CPP $CPPFLAGS'
5010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5012ac_compiler_gnu=$ac_cv_c_compiler_gnu
5013
5014
5015# We must set the default linker to the linker used by gcc for the correct
5016# operation of libtool. If LD is not defined and we are using gcc, try to
5017# set the LD default to the ld used by gcc.
5018if test -z "$LD"; then
5019 if test "$GCC" = yes; then
5020 case $build in
5021 *-*-mingw*)
5022 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5023 *)
5024 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5025 esac
5026 case $gcc_prog_ld in
5027 # Accept absolute paths.
5028 [\\/]* | [A-Za-z]:[\\/]*)
5029 LD="$gcc_prog_ld" ;;
5030 esac
5031 fi
23f6b2f9
PB
5032fi
5033
0b21f5d3
EB
5034# Check whether -static-libstdc++ -static-libgcc is supported.
5035have_static_libs=no
5036if test "$GCC" = yes; then
5037 saved_LDFLAGS="$LDFLAGS"
5038
5039 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5041$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5042 ac_ext=cpp
5043ac_cpp='$CXXCPP $CPPFLAGS'
5044ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5045ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5046ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5047
5048
5049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5050/* end confdefs.h. */
0d6414b2
EB
5051
5052#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5053#error -static-libstdc++ not implemented
5054#endif
0b21f5d3
EB
5055int main() {}
5056_ACEOF
5057if ac_fn_cxx_try_link "$LINENO"; then :
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5059$as_echo "yes" >&6; }; have_static_libs=yes
5060else
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062$as_echo "no" >&6; }
5063fi
5064rm -f core conftest.err conftest.$ac_objext \
5065 conftest$ac_exeext conftest.$ac_ext
5066 ac_ext=c
5067ac_cpp='$CPP $CPPFLAGS'
5068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5070ac_compiler_gnu=$ac_cv_c_compiler_gnu
5071
5072
5073 LDFLAGS="$saved_LDFLAGS"
5074fi
5075
23f6b2f9
PB
5076
5077
55ffb5ed 5078
1c710c3c
DJ
5079if test -n "$ac_tool_prefix"; then
5080 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 5081set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
5082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5083$as_echo_n "checking for $ac_word... " >&6; }
5084if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5085 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5086else
5087 if test -n "$GNATBIND"; then
5088 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5089else
1c710c3c
DJ
5090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091for as_dir in $PATH
5092do
5093 IFS=$as_save_IFS
5094 test -z "$as_dir" && as_dir=.
5213506e
RW
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5097 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5099 break 2
5100 fi
5101done
5213506e
RW
5102 done
5103IFS=$as_save_IFS
1c710c3c 5104
55ffb5ed
NN
5105fi
5106fi
1c710c3c 5107GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5108if test -n "$GNATBIND"; then
5213506e
RW
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5110$as_echo "$GNATBIND" >&6; }
55ffb5ed 5111else
5213506e
RW
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113$as_echo "no" >&6; }
55ffb5ed
NN
5114fi
5115
5213506e 5116
1c710c3c 5117fi
55ffb5ed 5118if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5119 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5120 # Extract the first word of "gnatbind", so it can be a program name with args.
5121set dummy gnatbind; ac_word=$2
5213506e
RW
5122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5123$as_echo_n "checking for $ac_word... " >&6; }
5124if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5125 $as_echo_n "(cached) " >&6
55ffb5ed 5126else
1c710c3c
DJ
5127 if test -n "$ac_ct_GNATBIND"; then
5128 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5129else
1c710c3c
DJ
5130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131for as_dir in $PATH
5132do
5133 IFS=$as_save_IFS
5134 test -z "$as_dir" && as_dir=.
5213506e
RW
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5137 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5139 break 2
5140 fi
5141done
5213506e
RW
5142 done
5143IFS=$as_save_IFS
1c710c3c 5144
55ffb5ed
NN
5145fi
5146fi
1c710c3c
DJ
5147ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5148if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5150$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5151else
5213506e
RW
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5153$as_echo "no" >&6; }
55ffb5ed
NN
5154fi
5155
5213506e
RW
5156 if test "x$ac_ct_GNATBIND" = x; then
5157 GNATBIND="no"
5158 else
5159 case $cross_compiling:$ac_tool_warned in
5160yes:)
5161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5163ac_tool_warned=yes ;;
5164esac
5165 GNATBIND=$ac_ct_GNATBIND
5166 fi
55ffb5ed 5167else
1c710c3c 5168 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5169fi
5170
1c710c3c
DJ
5171if test -n "$ac_tool_prefix"; then
5172 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5173set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175$as_echo_n "checking for $ac_word... " >&6; }
5176if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5177 $as_echo_n "(cached) " >&6
5305be7e
RG
5178else
5179 if test -n "$GNATMAKE"; then
5180 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5181else
1c710c3c
DJ
5182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183for as_dir in $PATH
5184do
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
5213506e
RW
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5189 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5191 break 2
5192 fi
5193done
5213506e
RW
5194 done
5195IFS=$as_save_IFS
1c710c3c 5196
5305be7e
RG
5197fi
5198fi
1c710c3c 5199GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5200if test -n "$GNATMAKE"; then
5213506e
RW
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5202$as_echo "$GNATMAKE" >&6; }
5305be7e 5203else
5213506e
RW
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205$as_echo "no" >&6; }
5305be7e
RG
5206fi
5207
5213506e 5208
1c710c3c 5209fi
5305be7e 5210if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5211 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5212 # Extract the first word of "gnatmake", so it can be a program name with args.
5213set dummy gnatmake; ac_word=$2
5213506e
RW
5214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5215$as_echo_n "checking for $ac_word... " >&6; }
5216if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5217 $as_echo_n "(cached) " >&6
5305be7e 5218else
1c710c3c
DJ
5219 if test -n "$ac_ct_GNATMAKE"; then
5220 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5221else
1c710c3c
DJ
5222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223for as_dir in $PATH
5224do
5225 IFS=$as_save_IFS
5226 test -z "$as_dir" && as_dir=.
5213506e
RW
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5229 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5231 break 2
5232 fi
5233done
5213506e
RW
5234 done
5235IFS=$as_save_IFS
1c710c3c 5236
5305be7e
RG
5237fi
5238fi
1c710c3c
DJ
5239ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5240if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5242$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5243else
5213506e
RW
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5245$as_echo "no" >&6; }
5305be7e
RG
5246fi
5247
5213506e
RW
5248 if test "x$ac_ct_GNATMAKE" = x; then
5249 GNATMAKE="no"
5250 else
5251 case $cross_compiling:$ac_tool_warned in
5252yes:)
5253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5255ac_tool_warned=yes ;;
5256esac
5257 GNATMAKE=$ac_ct_GNATMAKE
5258 fi
5305be7e 5259else
1c710c3c 5260 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5261fi
5262
5213506e
RW
5263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5264$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5265if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5266 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5267else
5268 cat >conftest.adb <<EOF
5269procedure conftest is begin null; end conftest;
5270EOF
5271acx_cv_cc_gcc_supports_ada=no
5272# There is a bug in old released versions of GCC which causes the
5273# driver to exit successfully when the appropriate language module
5274# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5275# Therefore we must check for the error message as well as an
5276# unsuccessful exit.
1db673ca
RO
5277# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5278# given a .adb file, but produce no object file. So we must check
5279# if an object file was really produced to guard against this.
55ffb5ed 5280errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5281if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5282 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5283fi
5284rm -f conftest.*
5285fi
5213506e
RW
5286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5287$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5288
7cb62ef1 5289if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5290 have_gnat=yes
5291else
5292 have_gnat=no
5293fi
5294
5213506e
RW
5295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5296$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5297if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5298 $as_echo_n "(cached) " >&6
a76494aa
PB
5299else
5300 echo abfoo >t1
5301 echo cdfoo >t2
5302 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5303 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5304 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5305 :
5306 else
5307 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5308 fi
5309 fi
a76494aa
PB
5310 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5311 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5312 :
a76494aa
PB
5313 else
5314 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5315 fi
5316 fi
5317 rm t1 t2
5318
5319fi
5213506e
RW
5320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5321$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5322do_compare="$gcc_cv_prog_cmp_skip"
5323
5324
55ffb5ed 5325
ff3ac0f4
ILT
5326# Check whether --enable-bootstrap was given.
5327if test "${enable_bootstrap+set}" = set; then :
5328 enableval=$enable_bootstrap;
5329else
5330 enable_bootstrap=default
5331fi
5332
5333
5334# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5335if test -r $srcdir/gcc/configure; then
5336 have_compiler=yes
5337else
5338 have_compiler=no
5339fi
ff3ac0f4
ILT
5340
5341case "$have_compiler:$host:$target:$enable_bootstrap" in
5342 *:*:*:no) ;;
5343
5344 # Default behavior. Enable bootstrap if we have a compiler
5345 # and we are in a native configuration.
5346 yes:$build:$build:default)
5347 enable_bootstrap=yes ;;
5348
5349 *:*:*:default)
5350 enable_bootstrap=no ;;
5351
5352 # We have a compiler and we are in a native configuration, bootstrap is ok
5353 yes:$build:$build:yes)
5354 ;;
5355
5356 # Other configurations, but we have a compiler. Assume the user knows
5357 # what he's doing.
5358 yes:*:*:yes)
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5360$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5361 ;;
5362
5363 # No compiler: if they passed --enable-bootstrap explicitly, fail
5364 no:*:*:yes)
5365 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5366
5367 # Fail if wrong command line
5368 *)
5369 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5370 ;;
5371esac
5372
592c90ff
KG
5373# Used for setting $lt_cv_objdir
5374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5375$as_echo_n "checking for objdir... " >&6; }
5376if test "${lt_cv_objdir+set}" = set; then :
5377 $as_echo_n "(cached) " >&6
5378else
5379 rm -f .libs 2>/dev/null
5380mkdir .libs 2>/dev/null
5381if test -d .libs; then
5382 lt_cv_objdir=.libs
5383else
5384 # MS-DOS does not allow filenames that begin with a dot.
5385 lt_cv_objdir=_libs
5386fi
5387rmdir .libs 2>/dev/null
5388fi
5389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5390$as_echo "$lt_cv_objdir" >&6; }
5391objdir=$lt_cv_objdir
5392
5393
5394
5395
5396
5397cat >>confdefs.h <<_ACEOF
5398#define LT_OBJDIR "$lt_cv_objdir/"
5399_ACEOF
5400
5401
5402
acd26225 5403# Check for GMP, MPFR and MPC
3a5729ea 5404gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 5405gmpinc=
e69bf64b 5406have_gmp=no
acd26225
KG
5407
5408# Specify a location for mpc
5409# check for this first so it ends up on the link line before mpfr.
5410
5213506e
RW
5411# Check whether --with-mpc was given.
5412if test "${with_mpc+set}" = set; then :
5413 withval=$with_mpc;
5414fi
acd26225 5415
acd26225 5416
9965e3cd 5417# Check whether --with-mpc-include was given.
5213506e
RW
5418if test "${with_mpc_include+set}" = set; then :
5419 withval=$with_mpc_include;
5420fi
acd26225 5421
acd26225 5422
9965e3cd 5423# Check whether --with-mpc-lib was given.
5213506e
RW
5424if test "${with_mpc_lib+set}" = set; then :
5425 withval=$with_mpc_lib;
5426fi
acd26225 5427
acd26225
KG
5428
5429if test "x$with_mpc" != x; then
3a5729ea
KG
5430 gmplibs="-L$with_mpc/lib $gmplibs"
5431 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
5432fi
5433if test "x$with_mpc_include" != x; then
3a5729ea 5434 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
5435fi
5436if test "x$with_mpc_lib" != x; then
3a5729ea 5437 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
5438fi
5439if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 5440 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 5441 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5442 # Do not test the mpc version. Assume that it is sufficient, since
5443 # it is in the source tree, and the library has not been built yet
5444 # but it would be included on the link line in the version check below
5445 # hence making the test fail.
3a5729ea 5446 have_gmp=yes
acd26225 5447fi
e69bf64b 5448
bebf829d
PB
5449# Specify a location for mpfr
5450# check for this first so it ends up on the link line before gmp.
1c710c3c 5451
5213506e
RW
5452# Check whether --with-mpfr-dir was given.
5453if test "${with_mpfr_dir+set}" = set; then :
5454 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5455Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5456fi
5457
bebf829d
PB
5458
5459
5213506e
RW
5460# Check whether --with-mpfr was given.
5461if test "${with_mpfr+set}" = set; then :
5462 withval=$with_mpfr;
5463fi
1c710c3c 5464
bebf829d 5465
9965e3cd 5466# Check whether --with-mpfr-include was given.
5213506e
RW
5467if test "${with_mpfr_include+set}" = set; then :
5468 withval=$with_mpfr_include;
5469fi
1c710c3c 5470
8a877c9c 5471
9965e3cd 5472# Check whether --with-mpfr-lib was given.
5213506e
RW
5473if test "${with_mpfr_lib+set}" = set; then :
5474 withval=$with_mpfr_lib;
5475fi
8a877c9c 5476
bebf829d
PB
5477
5478if test "x$with_mpfr" != x; then
5479 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5480 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5481fi
8a877c9c 5482if test "x$with_mpfr_include" != x; then
3a5729ea 5483 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5484fi
5485if test "x$with_mpfr_lib" != x; then
5486 gmplibs="-L$with_mpfr_lib $gmplibs"
5487fi
e69bf64b 5488if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5b0d38e4
NC
5489 # MPFR v3.1.0 moved the sources into a src sub-directory.
5490 if test -d ${srcdir}/mpfr/src; then
5491 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5492 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5493 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5494 else
5495 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5496 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5497 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5498 fi
e69bf64b
PB
5499 # Do not test the mpfr version. Assume that it is sufficient, since
5500 # it is in the source tree, and the library has not been built yet
5501 # but it would be included on the link line in the version check below
5502 # hence making the test fail.
5503 have_gmp=yes
5504fi
bebf829d 5505
6de9cd9a 5506# Specify a location for gmp
1c710c3c 5507
5213506e
RW
5508# Check whether --with-gmp-dir was given.
5509if test "${with_gmp_dir+set}" = set; then :
5510 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5511Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5512fi
5513
6de9cd9a 5514
6de9cd9a 5515
5213506e
RW
5516# Check whether --with-gmp was given.
5517if test "${with_gmp+set}" = set; then :
5518 withval=$with_gmp;
5519fi
1c710c3c 5520
6de9cd9a 5521
9965e3cd 5522# Check whether --with-gmp-include was given.
5213506e
RW
5523if test "${with_gmp_include+set}" = set; then :
5524 withval=$with_gmp_include;
5525fi
1c710c3c 5526
8a877c9c 5527
9965e3cd 5528# Check whether --with-gmp-lib was given.
5213506e
RW
5529if test "${with_gmp_lib+set}" = set; then :
5530 withval=$with_gmp_lib;
5531fi
8a877c9c
KG
5532
5533
6de9cd9a 5534
bebf829d
PB
5535if test "x$with_gmp" != x; then
5536 gmplibs="-L$with_gmp/lib $gmplibs"
5537 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5538fi
8a877c9c
KG
5539if test "x$with_gmp_include" != x; then
5540 gmpinc="-I$with_gmp_include $gmpinc"
5541fi
5542if test "x$with_gmp_lib" != x; then
5543 gmplibs="-L$with_gmp_lib $gmplibs"
5544fi
e69bf64b 5545if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5546 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5547 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 5548 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 5549 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 5550 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
5551 # Do not test the gmp version. Assume that it is sufficient, since
5552 # it is in the source tree, and the library has not been built yet
5553 # but it would be included on the link line in the version check below
5554 # hence making the test fail.
5555 have_gmp=yes
5556fi
6de9cd9a 5557
d943d7c4 5558if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5559 have_gmp=yes
5560 saved_CFLAGS="$CFLAGS"
5561 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5562 # Check for the recommended and required versions of GMP.
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5564$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5565
5566cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5567/* end confdefs.h. */
5568#include "gmp.h"
5569int
5570main ()
5571{
5572
5573 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5574 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 5575 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
5576 choke me
5577 #endif
5578
5579 ;
5580 return 0;
5581}
5582_ACEOF
5583if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5585/* end confdefs.h. */
362c6d2f 5586#include <gmp.h>
1c710c3c
DJ
5587int
5588main ()
5589{
6de9cd9a 5590
362c6d2f
KG
5591 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5592 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5593 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5594 choke me
5595 #endif
1c710c3c
DJ
5596
5597 ;
5598 return 0;
5599}
5600_ACEOF
5213506e
RW
5601if ac_fn_c_try_compile "$LINENO"; then :
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5603$as_echo "yes" >&6; }
362c6d2f
KG
5604else
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5606$as_echo "buggy but acceptable" >&6; }
5607fi
5608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5609else
5213506e
RW
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5611$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5612fi
5213506e 5613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5614
acd26225 5615 # If we have GMP, check the MPFR version.
e69bf64b 5616 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5617 # Check for the recommended and required versions of MPFR.
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5619$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5621/* end confdefs.h. */
70ec446f 5622#include <gmp.h>
e69bf64b 5623 #include <mpfr.h>
1c710c3c
DJ
5624int
5625main ()
5626{
e48d66a9 5627
f7d6bc01 5628 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
e69bf64b
PB
5629 choke me
5630 #endif
1c710c3c
DJ
5631
5632 ;
5633 return 0;
5634}
5635_ACEOF
5213506e
RW
5636if ac_fn_c_try_compile "$LINENO"; then :
5637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5638/* end confdefs.h. */
a3993f33 5639#include <gmp.h>
e69bf64b 5640 #include <mpfr.h>
1c710c3c
DJ
5641int
5642main ()
5643{
a3993f33 5644
362c6d2f 5645 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
e69bf64b
PB
5646 choke me
5647 #endif
acd26225
KG
5648
5649 ;
5650 return 0;
5651}
5652_ACEOF
5213506e
RW
5653if ac_fn_c_try_compile "$LINENO"; then :
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5655$as_echo "yes" >&6; }
acd26225 5656else
5213506e
RW
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5658$as_echo "buggy but acceptable" >&6; }
acd26225 5659fi
5213506e 5660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5661else
5213506e
RW
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5663$as_echo "no" >&6; }; have_gmp=no
acd26225 5664fi
5213506e 5665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5666 fi
5667
5668 # Check for the MPC header version.
3a5729ea 5669 if test x"$have_gmp" = xyes ; then
362c6d2f 5670 # Check for the recommended and required versions of MPC.
5213506e
RW
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5672$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5674/* end confdefs.h. */
5675#include <mpc.h>
5676int
5677main ()
5678{
5679
362c6d2f
KG
5680 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5681 choke me
5682 #endif
5683
5684 ;
5685 return 0;
5686}
5687_ACEOF
5688if ac_fn_c_try_compile "$LINENO"; then :
5689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690/* end confdefs.h. */
5691#include <mpc.h>
5692int
5693main ()
5694{
5695
5696 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5697 choke me
5698 #endif
5699
5700 ;
5701 return 0;
5702}
5703_ACEOF
5213506e
RW
5704if ac_fn_c_try_compile "$LINENO"; then :
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5706$as_echo "yes" >&6; }
362c6d2f
KG
5707else
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5709$as_echo "buggy but acceptable" >&6; }
5710fi
5711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5712else
5213506e 5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5714$as_echo "no" >&6; }; have_gmp=no
acd26225 5715fi
5213506e 5716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5717 fi
5718
5719 # Now check the MPFR library.
5720 if test x"$have_gmp" = xyes; then
5721 saved_LIBS="$LIBS"
5722 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5724$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5726/* end confdefs.h. */
3a5729ea 5727#include <mpc.h>
acd26225
KG
5728int
5729main ()
5730{
5731
5732 mpfr_t n;
5733 mpfr_t x;
3a5729ea 5734 mpc_t c;
acd26225
KG
5735 int t;
5736 mpfr_init (n);
5737 mpfr_init (x);
5738 mpfr_atan2 (n, n, x, GMP_RNDN);
5739 mpfr_erfc (n, x, GMP_RNDN);
5740 mpfr_subnormalize (x, t, GMP_RNDN);
3a5729ea
KG
5741 mpfr_clear(n);
5742 mpfr_clear(x);
5743 mpc_init2 (c, 53);
5744 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5745 mpc_cosh (c, c, MPC_RNDNN);
5746 mpc_pow (c, c, c, MPC_RNDNN);
5747 mpc_acosh (c, c, MPC_RNDNN);
5748 mpc_clear (c);
1c710c3c
DJ
5749
5750 ;
5751 return 0;
5752}
5753_ACEOF
5213506e
RW
5754if ac_fn_c_try_link "$LINENO"; then :
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5756$as_echo "yes" >&6; }
1c710c3c 5757else
5213506e
RW
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5760fi
5213506e
RW
5761rm -f core conftest.err conftest.$ac_objext \
5762 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5763 LIBS="$saved_LIBS"
5764 fi
5765
e69bf64b 5766 CFLAGS="$saved_CFLAGS"
6de9cd9a 5767
362c6d2f
KG
5768# The library versions listed in the error message below should match
5769# the HARD-minimums enforced above.
e69bf64b 5770 if test x$have_gmp != xyes; then
f7d6bc01 5771 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
3a5729ea
KG
5772Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5773their locations. Source code for these libraries can be found at
5774their respective hosting sites as well as at
5775ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5776http://gcc.gnu.org/install/prerequisites.html for additional info. If
5777you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5778make sure that you have installed both the libraries and the header
5779files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5780 fi
70ec446f
KG
5781fi
5782
acd26225
KG
5783# Flags needed for both GMP, MPFR and/or MPC.
5784
5785
6de9cd9a
DN
5786
5787
5788
9e3eba15 5789
0ff2d841 5790
f38095f3
JM
5791# Allow host libstdc++ to be specified for static linking with PPL.
5792
5213506e
RW
5793# Check whether --with-host-libstdcxx was given.
5794if test "${with_host_libstdcxx+set}" = set; then :
5795 withval=$with_host_libstdcxx;
5796fi
f38095f3 5797
f38095f3
JM
5798
5799case $with_host_libstdcxx in
5800 no|yes)
5213506e 5801 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
f38095f3
JM
5802 ;;
5803esac
f8bf9252 5804
0b21f5d3 5805# Libraries to use for stage1 or when not bootstrapping.
00020c16 5806
0b21f5d3
EB
5807# Check whether --with-stage1-libs was given.
5808if test "${with_stage1_libs+set}" = set; then :
5809 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5810 stage1_libs=
00020c16 5811 else
0b21f5d3 5812 stage1_libs=$withval
00020c16
ILT
5813 fi
5814else
0b21f5d3 5815 stage1_libs=$with_host_libstdcxx
5213506e
RW
5816fi
5817
00020c16
ILT
5818
5819
0b21f5d3 5820# Linker flags to use for stage1 or when not bootstrapping.
00020c16 5821
0b21f5d3
EB
5822# Check whether --with-stage1-ldflags was given.
5823if test "${with_stage1_ldflags+set}" = set; then :
5824 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5825 stage1_ldflags=
00020c16 5826 else
0b21f5d3 5827 stage1_ldflags=$withval
00020c16
ILT
5828 fi
5829else
0b21f5d3
EB
5830 stage1_ldflags=
5831 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5832 # if supported. But if the user explicitly specified the libraries to use,
5833 # trust that they are doing what they want.
5834 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5835 stage1_ldflags="-static-libstdc++ -static-libgcc"
5836 fi
5213506e
RW
5837fi
5838
00020c16
ILT
5839
5840
00020c16
ILT
5841# Libraries to use for stage2 and later builds. This defaults to the
5842# argument passed to --with-host-libstdcxx.
5843
5213506e
RW
5844# Check whether --with-boot-libs was given.
5845if test "${with_boot_libs+set}" = set; then :
5846 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
5847 poststage1_libs=
5848 else
5849 poststage1_libs=$withval
5850 fi
5851else
00020c16 5852 poststage1_libs=$with_host_libstdcxx
5213506e
RW
5853fi
5854
00020c16
ILT
5855
5856
ed2eaa9f
ILT
5857# Linker flags to use for stage2 and later builds.
5858
5859# Check whether --with-boot-ldflags was given.
5860if test "${with_boot_ldflags+set}" = set; then :
5861 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5862 poststage1_ldflags=
5863 else
5864 poststage1_ldflags=$withval
5865 fi
5866else
5867 poststage1_ldflags=
bec93d73
ILT
5868 # In stages 2 and 3, default to linking libstdc++ and libgcc
5869 # statically. But if the user explicitly specified the libraries to
5870 # use, trust that they are doing what they want.
5871 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
5872 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5873 fi
5874fi
5875
5876
5877
4a9bb2aa
TB
5878# GCC GRAPHITE dependency ISL.
5879# Basic setup is inlined here, actual checks are in config/isl.m4
f8bf9252
SP
5880
5881
33ad93b9
RG
5882# Check whether --with-isl was given.
5883if test "${with_isl+set}" = set; then :
5884 withval=$with_isl;
5213506e 5885fi
f8bf9252 5886
f8bf9252 5887
eae1a5d4 5888# Treat --without-isl as a request to disable
625afa23 5889# GRAPHITE support and skip all following checks.
eae1a5d4 5890if test "x$with_isl" != "xno"; then
625afa23
RG
5891 # Check for ISL
5892
5893
33ad93b9
RG
5894# Check whether --with-isl-include was given.
5895if test "${with_isl_include+set}" = set; then :
5896 withval=$with_isl_include;
5213506e
RW
5897fi
5898
f8bf9252 5899
33ad93b9
RG
5900# Check whether --with-isl-lib was given.
5901if test "${with_isl_lib+set}" = set; then :
5902 withval=$with_isl_lib;
5213506e 5903fi
f8bf9252 5904
f8bf9252 5905
33ad93b9
RG
5906 # Check whether --enable-isl-version-check was given.
5907if test "${enable_isl_version_check+set}" = set; then :
5908 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5909else
5910 ENABLE_ISL_CHECK=yes
7d32a440
SP
5911fi
5912
5913
33ad93b9
RG
5914 # Initialize isllibs and islinc.
5915 case $with_isl in
5916 no)
5917 isllibs=
5918 islinc=
5919 ;;
5920 "" | yes)
5921 ;;
5922 *)
5923 isllibs="-L$with_isl/lib"
5924 islinc="-I$with_isl/include"
5925 ;;
5926 esac
5927 if test "x${with_isl_include}" != x ; then
5928 islinc="-I$with_isl_include"
5929 fi
5930 if test "x${with_isl_lib}" != x; then
5931 isllibs="-L$with_isl_lib"
5932 fi
5933 if test "x${islinc}" = x && test "x${isllibs}" = x \
5934 && test -d ${srcdir}/isl; then
5935 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5936 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5937 ENABLE_ISL_CHECK=no
2869f0ff
RB
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5939$as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
33ad93b9 5940 fi
7d32a440 5941
eae1a5d4
RG
5942 isllibs="${isllibs} -lisl"
5943
7d32a440 5944
7d32a440 5945
9847828b
RB
5946 if test "${ENABLE_ISL_CHECK}" = yes ; then
5947 _isl_saved_CFLAGS=$CFLAGS
5948 _isl_saved_LDFLAGS=$LDFLAGS
5949 _isl_saved_LIBS=$LIBS
5950
5951 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5952 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5953 LIBS="${_isl_saved_LIBS} -lisl"
5954
e0c0c325
SP
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible ISL" >&5
5956$as_echo_n "checking for compatible ISL... " >&6; }
5957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
622dbadf 5958/* end confdefs.h. */
e0c0c325 5959#include <isl/val.h>
622dbadf
BC
5960int
5961main ()
5962{
e0c0c325 5963;
622dbadf
BC
5964 ;
5965 return 0;
5966}
5967_ACEOF
5968if ac_fn_c_try_link "$LINENO"; then :
9847828b 5969 gcc_cv_isl=yes
622dbadf
BC
5970else
5971 gcc_cv_isl=no
5972fi
5973rm -f core conftest.err conftest.$ac_objext \
5974 conftest$ac_exeext conftest.$ac_ext
9847828b
RB
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5976$as_echo "$gcc_cv_isl" >&6; }
5977
5978 CFLAGS=$_isl_saved_CFLAGS
5979 LDFLAGS=$_isl_saved_LDFLAGS
5980 LIBS=$_isl_saved_LIBS
5981 fi
5982
5983
f8bf9252 5984
f8bf9252 5985
33ad93b9
RG
5986
5987
33ad93b9
RG
5988 if test "x${with_isl}" = xno; then
5989 graphite_requested=no
5990 elif test "x${with_isl}" != x \
5991 || test "x${with_isl_include}" != x \
5992 || test "x${with_isl_lib}" != x ; then
5993 graphite_requested=yes
5994 else
5995 graphite_requested=no
7d32a440 5996 fi
d789184e 5997
d789184e
SP
5998
5999
33ad93b9
RG
6000 if test "${gcc_cv_isl}" = no ; then
6001 isllibs=
6002 islinc=
6003 fi
6004
6005 if test "${graphite_requested}" = yes \
6006 && test "x${isllibs}" = x \
6007 && test "x${islinc}" = x ; then
f8bf9252 6008
33ad93b9
RG
6009 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
6010 fi
f8bf9252 6011
d32ef397 6012
d32ef397
AS
6013fi
6014
4a9bb2aa 6015# If the ISL check failed, disable builds of in-tree variant of ISL
625afa23 6016if test "x$with_isl" = xno ||
625afa23 6017 test "x$gcc_cv_isl" = xno; then
4a9bb2aa 6018 noconfigdirs="$noconfigdirs isl"
625afa23 6019 islinc=
32d024bf
RG
6020fi
6021
625afa23
RG
6022
6023
6024
d7f09764
DN
6025# Check for LTO support.
6026# Check whether --enable-lto was given.
6027if test "${enable_lto+set}" = set; then :
6028 enableval=$enable_lto; enable_lto=$enableval
6029else
6030 enable_lto=yes; default_enable_lto=yes
6031fi
6032
6033
7413962d 6034
9a02962b
DK
6035
6036
6037target_elf=no
6038case $target in
6039 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 6040 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
9a02962b
DK
6041 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6042 target_elf=no
6043 ;;
6044 *)
6045 target_elf=yes
6046 ;;
6047esac
6048
6049if test $target_elf = yes; then :
48215350
DK
6050 # ELF platforms build the lto-plugin always.
6051 build_lto_plugin=yes
9a02962b 6052
9a02962b
DK
6053else
6054 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 6055 case $target in
2cd815e7 6056 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
48215350 6057 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
6058 *) enable_lto=no ;;
6059 esac
9a02962b 6060 else
db50fe7d
IS
6061 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6062 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
6063 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6064 # warn during gcc/ subconfigure; unless you're bootstrapping with
6065 # -flto it won't be needed until after installation anyway.
6066 case $target in
1cd0b716 6067 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
9a02962b
DK
6068 *) if test x"$enable_lto" = x"yes"; then
6069 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6070 fi
6071 ;;
6072 esac
6073 fi
1cd0b716 6074 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 6075 # Build it unless LTO was explicitly disabled.
1cd0b716 6076 case $target in
48215350 6077 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
6078 *) ;;
6079 esac
48215350 6080
9a02962b
DK
6081fi
6082
d7f09764 6083
45b3824d
TS
6084# Check whether --enable-linker-plugin-configure-flags was given.
6085if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6086 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6087else
6088 extra_linker_plugin_configure_flags=
6089fi
6090
6091
6092# Check whether --enable-linker-plugin-flags was given.
6093if test "${enable_linker_plugin_flags+set}" = set; then :
6094 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6095else
6096 extra_linker_plugin_flags=
6097fi
6098
6099
6100
f8bf9252 6101
0823efed 6102# By default, C and C++ are the only stage 1 languages.
e1888513 6103stage1_languages=,c,
2805b53a 6104
00020c16 6105# Target libraries that we bootstrap.
ad1e5170 6106bootstrap_target_libs=,target-libgcc,
00020c16 6107
55ffb5ed
NN
6108# Figure out what language subdirectories are present.
6109# Look if the user specified --enable-languages="..."; if not, use
6110# the environment variable $LANGUAGES if defined. $LANGUAGES might
6111# go away some day.
6112# NB: embedded tabs in this IF block -- do not untabify
6113if test -d ${srcdir}/gcc; then
6114 if test x"${enable_languages+set}" != xset; then
6115 if test x"${LANGUAGES+set}" = xset; then
6116 enable_languages="${LANGUAGES}"
6117 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6118 else
6119 enable_languages=all
6120 fi
6121 else
6122 if test x"${enable_languages}" = x ||
6123 test x"${enable_languages}" = xyes;
6124 then
6125 echo configure.in: --enable-languages needs at least one language argument 1>&2
6126 exit 1
6127 fi
6128 fi
6129 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6130
7f26dfa3
FXC
6131 # 'f95' is the old name for the 'fortran' language. We issue a warning
6132 # and make the substitution.
6133 case ,${enable_languages}, in
6134 *,f95,*)
6135 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6136 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6137 ;;
6138 esac
6139
0823efed
DN
6140 # If bootstrapping, C++ must be enabled.
6141 case ",$enable_languages,:$enable_bootstrap" in
6142 *,c++,*:*) ;;
6143 *:yes)
ff3ac0f4
ILT
6144 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6145 enable_languages="${enable_languages},c++"
6146 else
0823efed 6147 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
6148 fi
6149 ;;
6150 esac
6151
55ffb5ed
NN
6152 # First scan to see if an enabled language requires some other language.
6153 # We assume that a given config-lang.in will list all the language
6154 # front ends it requires, even if some are required indirectly.
6155 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6156 case ${lang_frag} in
6157 ..) ;;
6158 # The odd quoting in the next line works around
6159 # an apparent bug in bash 1.12 on linux.
6160 ${srcdir}/gcc/[*]/config-lang.in) ;;
6161 *)
69ecd18f
ILT
6162 # From the config-lang.in, get $language, $lang_requires, and
6163 # $lang_requires_boot_languages.
55ffb5ed
NN
6164 language=
6165 lang_requires=
69ecd18f 6166 lang_requires_boot_languages=
55ffb5ed 6167 . ${lang_frag}
69ecd18f 6168 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
6169 case ,${enable_languages}, in
6170 *,$other,*) ;;
6171 *,all,*) ;;
6172 *,$language,*)
6173 echo " \`$other' language required by \`$language'; enabling" 1>&2
6174 enable_languages="${enable_languages},${other}"
6175 ;;
6176 esac
6177 done
69ecd18f
ILT
6178 for other in ${lang_requires_boot_languages} ; do
6179 if test "$other" != "c"; then
6180 case ,${enable_stage1_languages}, in
6181 *,$other,*) ;;
6182 *,all,*) ;;
6183 *)
6184 case ,${enable_languages}, in
6185 *,$language,*)
6186 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6187 enable_stage1_languages="$enable_stage1_languages,${other}"
6188 ;;
6189 esac
6190 ;;
6191 esac
6192 fi
6193 done
55ffb5ed
NN
6194 ;;
6195 esac
6196 done
6197
e1888513 6198 new_enable_languages=,c,
d7f09764
DN
6199
6200 # If LTO is enabled, add the LTO front end.
d7f09764 6201 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6202 case ,${enable_languages}, in
6203 *,lto,*) ;;
6204 *) enable_languages="${enable_languages},lto" ;;
6205 esac
1cd0b716 6206 if test "${build_lto_plugin}" = "yes" ; then
d7f09764 6207 configdirs="$configdirs lto-plugin"
d7f09764
DN
6208 fi
6209 fi
6210
55ffb5ed 6211 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6212 potential_languages=,c,
55ffb5ed 6213
4da3b0f8
ILT
6214 enabled_target_libs=
6215 disabled_target_libs=
6216
55ffb5ed
NN
6217 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6218 case ${lang_frag} in
6219 ..) ;;
6220 # The odd quoting in the next line works around
6221 # an apparent bug in bash 1.12 on linux.
6222 ${srcdir}/gcc/[*]/config-lang.in) ;;
6223 *)
1c710c3c 6224 # From the config-lang.in, get $language, $target_libs,
2805b53a 6225 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6226 language=
6227 target_libs=
6228 lang_dirs=
1546bb64 6229 subdir_requires=
e1888513
PB
6230 boot_language=no
6231 build_by_default=yes
55ffb5ed 6232 . ${lang_frag}
e1888513
PB
6233 if test x${language} = x; then
6234 echo "${lang_frag} doesn't set \$language." 1>&2
6235 exit 1
6236 fi
6237
78767fd9 6238 if test "$language" = "c++"; then
0823efed 6239 boot_language=yes
00020c16
ILT
6240 fi
6241
178f875a 6242 add_this_lang=no
e1888513
PB
6243 case ,${enable_languages}, in
6244 *,${language},*)
d4a10d0a
SB
6245 # Language was explicitly selected; include it
6246 # unless it is C, which is enabled by default.
6247 if test "$language" != "c"; then
6248 add_this_lang=yes
6249 fi
55ffb5ed 6250 ;;
e1888513
PB
6251 *,all,*)
6252 # 'all' was selected, select it if it is a default language
178f875a
JM
6253 if test "$language" != "c"; then
6254 add_this_lang=${build_by_default}
6255 fi
55ffb5ed
NN
6256 ;;
6257 esac
6de9cd9a 6258
1546bb64 6259 # Disable languages that need other directories if these aren't available.
95695ad3 6260 for i in $subdir_requires; do
b6348cb3 6261 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
6262 case ,${enable_languages}, in
6263 *,${language},*)
6264 # Specifically requested language; tell them.
5213506e 6265 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64
PB
6266 ;;
6267 *)
6268 # Silently disable.
e1888513 6269 add_this_lang=unsupported
1546bb64
PB
6270 ;;
6271 esac
6272 done
6273
e1888513
PB
6274 # Disable Ada if no preexisting GNAT is available.
6275 case ,${enable_languages},:${language}:${have_gnat} in
6276 *,${language},*:ada:no)
6277 # Specifically requested language; tell them.
5213506e 6278 as_fn_error "GNAT is required to build $language" "$LINENO" 5
e1888513
PB
6279 ;;
6280 *:ada:no)
6281 # Silently disable.
6282 add_this_lang=unsupported
6283 ;;
6284 esac
6285
4fab7234
HPN
6286 # Disable a language that is unsupported by the target.
6287 case " $unsupported_languages " in
6288 *" $language "*)
e1888513 6289 add_this_lang=unsupported
4fab7234
HPN
6290 ;;
6291 esac
6292
6de9cd9a 6293 case $add_this_lang in
e1888513 6294 unsupported)
55ffb5ed 6295 # Remove language-dependent dirs.
4da3b0f8
ILT
6296 disabled_target_libs="$disabled_target_libs $target_libs"
6297 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 6298 ;;
e1888513
PB
6299 no)
6300 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
6301 disabled_target_libs="$disabled_target_libs $target_libs"
6302 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
6303 potential_languages="${potential_languages}${language},"
6304 ;;
6305 yes)
6306 new_enable_languages="${new_enable_languages}${language},"
6307 potential_languages="${potential_languages}${language},"
2805b53a 6308 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 6309 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
6310 case "${boot_language}:,$enable_stage1_languages," in
6311 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6312 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6313 case ",$stage1_languages," in
6314 *,$language,* | ,yes, | ,all,) ;;
6315 *) stage1_languages="${stage1_languages}${language}," ;;
6316 esac
00020c16
ILT
6317 # We need to bootstrap any supporting libraries.
6318 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6319 ;;
6320 esac
6321 ;;
55ffb5ed
NN
6322 esac
6323 ;;
6324 esac
6325 done
6326
4da3b0f8
ILT
6327 # Add target libraries which are only needed for disabled languages
6328 # to noconfigdirs.
6329 if test -n "$disabled_target_libs"; then
6330 for dir in $disabled_target_libs; do
6331 case " $enabled_target_libs " in
6332 *" ${dir} "*) ;;
6333 *) noconfigdirs="$noconfigdirs $dir" ;;
6334 esac
6335 done
6336 fi
6337
5213506e
RW
6338 # Check whether --enable-stage1-languages was given.
6339if test "${enable_stage1_languages+set}" = set; then :
6340 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6341 ,no,|,,)
6342 # Set it to something that will have no effect in the loop below
6343 enable_stage1_languages=c ;;
6344 ,yes,)
6345 enable_stage1_languages=`echo $new_enable_languages | \
6346 sed -e "s/^,//" -e "s/,$//" ` ;;
6347 *,all,*)
6348 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6349 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6350 esac
6351
6352 # Add "good" languages from enable_stage1_languages to stage1_languages,
6353 # while "bad" languages go in missing_languages. Leave no duplicates.
6354 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6355 case $potential_languages in
6356 *,$i,*)
6357 case $stage1_languages in
6358 *,$i,*) ;;
6359 *) stage1_languages="$stage1_languages$i," ;;
6360 esac ;;
6361 *)
6362 case $missing_languages in
6363 *,$i,*) ;;
6364 *) missing_languages="$missing_languages$i," ;;
6365 esac ;;
6366 esac
6367 done
5213506e
RW
6368fi
6369
e1888513
PB
6370
6371 # Remove leading/trailing commas that were added for simplicity
6372 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6373 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6374 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6375 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6376
55ffb5ed 6377 if test "x$missing_languages" != x; then
5213506e 6378 as_fn_error "
0cf085e4 6379The following requested languages could not be built: ${missing_languages}
5213506e 6380Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6381 fi
55ffb5ed
NN
6382 if test "x$new_enable_languages" != "x$enable_languages"; then
6383 echo The following languages will be built: ${new_enable_languages}
e1888513 6384 enable_languages="$new_enable_languages"
55ffb5ed 6385 fi
e1888513 6386
1c710c3c 6387
b2eaac4a 6388 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6389fi
6390
27079765
AH
6391# Handle --disable-<component> generically.
6392for dir in $configdirs $build_configdirs $target_configdirs ; do
6393 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6394 varname=`echo $dirname | sed -e s/+/_/g`
6395 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6396 noconfigdirs="$noconfigdirs $dir"
6397 fi
6398done
6399
7cd0cf9c 6400# Check for Boehm's garbage collector
5213506e
RW
6401# Check whether --enable-objc-gc was given.
6402if test "${enable_objc_gc+set}" = set; then :
6403 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 6404 *,objc,*:*:yes:*target-boehm-gc*)
5213506e 6405 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
7cd0cf9c
DA
6406 ;;
6407esac
5213506e
RW
6408fi
6409
7cd0cf9c
DA
6410
6411# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
6412case ,${enable_languages},:${enable_objc_gc} in
6413 *,objc,*:yes)
7cd0cf9c
DA
6414 # Keep target-boehm-gc if requested for Objective-C.
6415 ;;
7cd0cf9c 6416 *)
2a79fd67
DA
6417 # Otherwise remove target-boehm-gc depending on target-libjava.
6418 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6419 noconfigdirs="$noconfigdirs target-boehm-gc"
6420 fi
7cd0cf9c
DA
6421 ;;
6422esac
6423
5f520819 6424# Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
99776ebd 6425case ,${enable_languages}, in
1007a55c
JW
6426 *,c++,*)
6427 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6428 case "${noconfigdirs}" in
6429 *target-libstdc++-v3*)
6430 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6431 ;;
6432 *) ;;
6433 esac
6434 ;;
99776ebd 6435 *)
5f520819 6436 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
99776ebd
RH
6437 ;;
6438esac
6439
ee6a22df
L
6440# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6441# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6442# If we have the source for $noconfigdirs entries, add them to $notsupp.
6443
6444notsupp=""
6445for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6446 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6447 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6448 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6449 if test -r $srcdir/$dirname/configure ; then
6450 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6451 true
6452 else
6453 notsupp="$notsupp $dir"
6454 fi
6455 fi
6456 fi
ee6a22df
L
6457 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6458 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6459 if test -r $srcdir/$dirname/configure ; then
6460 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6461 true
6462 else
6463 notsupp="$notsupp $dir"
6464 fi
6465 fi
6466 fi
55ffb5ed
NN
6467 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6468 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6469 if test -r $srcdir/$dirname/configure ; then
6470 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6471 true
6472 else
6473 notsupp="$notsupp $dir"
6474 fi
6475 fi
6476 fi
6477done
6478
55ffb5ed
NN
6479# Quietly strip out all directories which aren't configurable in this tree.
6480# This relies on all configurable subdirectories being autoconfiscated, which
6481# is now the case.
23f6b2f9
PB
6482build_configdirs_all="$build_configdirs"
6483build_configdirs=
6484for i in ${build_configdirs_all} ; do
1c710c3c 6485 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
6486 if test -f ${srcdir}/$j/configure ; then
6487 build_configdirs="${build_configdirs} $i"
6488 fi
6489done
6490
55ffb5ed
NN
6491configdirs_all="$configdirs"
6492configdirs=
6493for i in ${configdirs_all} ; do
6494 if test -f ${srcdir}/$i/configure ; then
6495 configdirs="${configdirs} $i"
6496 fi
6497done
23f6b2f9 6498
55ffb5ed
NN
6499target_configdirs_all="$target_configdirs"
6500target_configdirs=
6501for i in ${target_configdirs_all} ; do
1c710c3c 6502 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
6503 if test -f ${srcdir}/$j/configure ; then
6504 target_configdirs="${target_configdirs} $i"
6505 fi
6506done
6507
45b3824d
TS
6508# libiberty-linker-plugin is special: it doesn't have its own source directory,
6509# so we have to add it after the preceding checks.
6510if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6511then
6512 case " $configdirs " in
6513 *" libiberty "*)
6514 # If we can build libiberty, we can also build libiberty-linker-plugin.
6515 configdirs="$configdirs libiberty-linker-plugin"
6516 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6517 --with-libiberty=../libiberty-linker-plugin";;
6518 *)
6519 as_fn_error "libiberty missing" "$LINENO" 5;;
6520 esac
6521fi
6522
fca38047
TS
6523# Sometimes we have special requirements for the host libiberty.
6524extra_host_libiberty_configure_flags=
6525case " $configdirs " in
6526 *" lto-plugin "* | *" libcc1 "*)
6527 # When these are to be built as shared libraries, the same applies to
6528 # libiberty.
6529 extra_host_libiberty_configure_flags=--enable-shared
6530 ;;
6531esac
6532
6533
55ffb5ed
NN
6534# Produce a warning message for the subdirs we can't configure.
6535# This isn't especially interesting in the Cygnus tree, but in the individual
6536# FSF releases, it's important to let people know when their machine isn't
6537# supported by the one or two programs in a package.
6538
6539if test -n "${notsupp}" && test -z "${norecursion}" ; then
6540 # If $appdirs is non-empty, at least one of those directories must still
6541 # be configured, or we error out. (E.g., if the gas release supports a
6542 # specified target in some subdirs but not the gas subdir, we shouldn't
6543 # pretend that all is well.)
6544 if test -n "$appdirs" ; then
6545 for dir in $appdirs ; do
6546 if test -r $dir/Makefile.in ; then
6547 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6548 appdirs=""
6549 break
6550 fi
23f6b2f9 6551 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
6552 appdirs=""
6553 break
6554 fi
6555 fi
6556 done
6557 if test -n "$appdirs" ; then
6558 echo "*** This configuration is not supported by this package." 1>&2
6559 exit 1
6560 fi
6561 fi
6562 # Okay, some application will build, or we don't care to check. Still
6563 # notify of subdirs not getting built.
6564 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6565 echo " ${notsupp}" 1>&2
6566 echo " (Any other directories should still work fine.)" 1>&2
6567fi
6568
6569case "$host" in
6570 *msdosdjgpp*)
6571 enable_gdbtk=no ;;
6572esac
6573
c3a86da9
DJ
6574# To find our prefix, in gcc_cv_tool_prefix.
6575
6576# The user is always right.
6577if test "${PATH_SEPARATOR+set}" != set; then
6578 echo "#! /bin/sh" >conf$$.sh
6579 echo "exit 0" >>conf$$.sh
6580 chmod +x conf$$.sh
6581 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6582 PATH_SEPARATOR=';'
6583 else
6584 PATH_SEPARATOR=:
6585 fi
6586 rm -f conf$$.sh
6587fi
6588
6589
6590
6591if test "x$exec_prefix" = xNONE; then
6592 if test "x$prefix" = xNONE; then
6593 gcc_cv_tool_prefix=$ac_default_prefix
6594 else
6595 gcc_cv_tool_prefix=$prefix
6596 fi
6597else
6598 gcc_cv_tool_prefix=$exec_prefix
6599fi
6600
6601# If there is no compiler in the tree, use the PATH only. In any
6602# case, if there is no compiler in the tree nobody should use
6603# AS_FOR_TARGET and LD_FOR_TARGET.
6604if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6605 gcc_version=`cat $srcdir/gcc/BASE-VER`
6606 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6607 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6608 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6609 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6610 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6611 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6612else
6613 gcc_cv_tool_dirs=
6614fi
6615
6616if test x$build = x$target && test -n "$md_exec_prefix"; then
6617 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6618fi
6619
6620
6621
55ffb5ed
NN
6622copy_dirs=
6623
1c710c3c 6624
5213506e
RW
6625# Check whether --with-build-sysroot was given.
6626if test "${with_build_sysroot+set}" = set; then :
6627 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
6628 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6629 fi
6630else
6631 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 6632fi
526635cb
MM
6633
6634
c8aea42c 6635
5213506e
RW
6636
6637# Check whether --with-debug-prefix-map was given.
6638if test "${with_debug_prefix_map+set}" = set; then :
6639 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
6640 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6641 for debug_map in $withval; do
6642 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6643 done
6644 fi
6645else
6646 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
6647fi
6648
c8aea42c
PB
6649
6650
1c8bd6a3
PB
6651# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6652# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6653# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6654# We want to ensure that TARGET libraries (which we know are built with
6655# gcc) are built with "-O2 -g", so include those options when setting
6656# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6657if test "x$CFLAGS_FOR_TARGET" = x; then
6658 CFLAGS_FOR_TARGET=$CFLAGS
6659 case " $CFLAGS " in
6660 *" -O2 "*) ;;
bd8e704f 6661 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6662 esac
6663 case " $CFLAGS " in
6664 *" -g "* | *" -g3 "*) ;;
bd8e704f 6665 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6666 esac
6667fi
6668
6669
6670if test "x$CXXFLAGS_FOR_TARGET" = x; then
6671 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6672 case " $CXXFLAGS " in
6673 *" -O2 "*) ;;
bd8e704f 6674 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6675 esac
6676 case " $CXXFLAGS " in
6677 *" -g "* | *" -g3 "*) ;;
bd8e704f 6678 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6679 esac
6680fi
6681
6682
6f57bdf6
DK
6683
6684
55ffb5ed
NN
6685# Handle --with-headers=XXX. If the value is not "yes", the contents of
6686# the named directory are copied to $(tooldir)/sys-include.
6687if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6688 if test x${is_cross_compiler} = xno ; then
6689 echo 1>&2 '***' --with-headers is only supported when cross compiling
6690 exit 1
6691 fi
6692 if test x"${with_headers}" != xyes ; then
c3a86da9 6693 x=${gcc_cv_tool_prefix}
1c710c3c 6694 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
6695 fi
6696fi
6697
6698# Handle --with-libs=XXX. If the value is not "yes", the contents of
6699# the name directories are copied to $(tooldir)/lib. Multiple directories
6700# are permitted.
6701if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6702 if test x${is_cross_compiler} = xno ; then
6703 echo 1>&2 '***' --with-libs is only supported when cross compiling
6704 exit 1
6705 fi
6706 if test x"${with_libs}" != xyes ; then
6707 # Copy the libraries in reverse order, so that files in the first named
6708 # library override files in subsequent libraries.
c3a86da9 6709 x=${gcc_cv_tool_prefix}
55ffb5ed 6710 for l in ${with_libs}; do
1c710c3c 6711 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
6712 done
6713 fi
6714fi
6715
d7f09764 6716# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
6717#
6718# This is done by determining whether or not the appropriate directory
6719# is available, and by checking whether or not specific configurations
6720# have requested that this magic not happen.
1c710c3c
DJ
6721#
6722# The command line options always override the explicit settings in
e8b05380
PB
6723# configure.in, and the settings in configure.in override this magic.
6724#
1c710c3c 6725# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 6726# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
6727# --without-gnu-ld options for the configure script. Similarly, if
6728# the default is to use the included zlib and you don't want to do that,
6729# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
6730
6731if test x${use_gnu_as} = x &&
6732 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6733 with_gnu_as=yes
6734 extra_host_args="$extra_host_args --with-gnu-as"
6735fi
6736
6737if test x${use_gnu_ld} = x &&
5afab7ad 6738 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
6739 with_gnu_ld=yes
6740 extra_host_args="$extra_host_args --with-gnu-ld"
6741fi
6742
d7f09764
DN
6743if test x${use_included_zlib} = x &&
6744 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6745 :
6746else
6747 with_system_zlib=yes
6748 extra_host_args="$extra_host_args --with-system-zlib"
6749fi
6750
e8b05380
PB
6751# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6752# can detect this case.
6753
6754if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6755 with_newlib=yes
6756 extra_host_args="$extra_host_args --with-newlib"
6757fi
6758
55ffb5ed
NN
6759# Handle ${copy_dirs}
6760set fnord ${copy_dirs}
6761shift
6762while test $# != 0 ; do
6763 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6764 :
6765 else
6766 echo Copying $1 to $2
6767
6768 # Use the install script to create the directory and all required
6769 # parent directories.
6770 if test -d $2 ; then
6771 :
6772 else
6773 echo >config.temp
6774 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6775 fi
6776
6777 # Copy the directory, assuming we have tar.
6778 # FIXME: Should we use B in the second tar? Not all systems support it.
6779 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6780
6781 # It is the responsibility of the user to correctly adjust all
6782 # symlinks. If somebody can figure out how to handle them correctly
6783 # here, feel free to add the code.
6784
6785 echo $1 > $2/COPIED
6786 fi
6787 shift; shift
6788done
6789
e8b05380
PB
6790# Determine a target-dependent exec_prefix that the installed
6791# gcc will search in. Keep this list sorted by triplet, with
6792# the *-*-osname triplets last.
6793md_exec_prefix=
6794case "${target}" in
30b74385 6795 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
6796 md_exec_prefix=/dev/env/DJDIR/bin
6797 ;;
e8b05380 6798 *-*-hpux* | \
e8b05380 6799 *-*-nto-qnx* | \
6de66370 6800 *-*-solaris2*)
e8b05380
PB
6801 md_exec_prefix=/usr/ccs/bin
6802 ;;
6803esac
6804
671aa708
NN
6805extra_arflags_for_target=
6806extra_nmflags_for_target=
6807extra_ranlibflags_for_target=
6808target_makefile_frag=/dev/null
6809case "${target}" in
58e24147
AM
6810 spu-*-*)
6811 target_makefile_frag="config/mt-spu"
6812 ;;
d896cc4d 6813 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4bf6c438
RS
6814 target_makefile_frag="config/mt-sde"
6815 ;;
1ec3b87b
RS
6816 mipsisa*-*-elfoabi*)
6817 target_makefile_frag="config/mt-mips-elfoabi"
6818 ;;
08d0963a
RS
6819 mips*-*-*linux* | mips*-*-gnu*)
6820 target_makefile_frag="config/mt-mips-gnu"
6821 ;;
707f1839
SL
6822 nios2-*-elf*)
6823 target_makefile_frag="config/mt-nios2-elf"
6824 ;;
416ac4d4 6825 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 6826 target_makefile_frag="config/mt-gnu"
671aa708
NN
6827 ;;
6828 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 6829 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
6830 # commands to handle both 32-bit and 64-bit objects. These flags are
6831 # harmless if we're using GNU nm or ar.
6832 extra_arflags_for_target=" -X32_64"
6833 extra_nmflags_for_target=" -B -X32_64"
6834 ;;
671aa708
NN
6835esac
6836
6837alphaieee_frag=/dev/null
6838case $target in
6839 alpha*-*-*)
6840 # This just makes sure to use the -mieee option to build target libs.
6841 # This should probably be set individually by each library.
6842 alphaieee_frag="config/mt-alphaieee"
6843 ;;
6844esac
6845
6846# If --enable-target-optspace always use -Os instead of -O2 to build
6847# the target libraries, similarly if it is not specified, use -Os
6848# on selected platforms.
6849ospace_frag=/dev/null
6850case "${enable_target_optspace}:${target}" in
6851 yes:*)
6852 ospace_frag="config/mt-ospace"
6853 ;;
6854 :d30v-*)
6855 ospace_frag="config/mt-d30v"
6856 ;;
6857 :m32r-* | :d10v-* | :fr30-*)
6858 ospace_frag="config/mt-ospace"
6859 ;;
6860 no:* | :*)
6861 ;;
6862 *)
6863 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6864 ;;
6865esac
6866
671aa708
NN
6867# Some systems (e.g., one of the i386-aix systems the gas testers are
6868# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 6869tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
6870build_tooldir=${tooldir}
6871
671aa708
NN
6872# Create a .gdbinit file which runs the one in srcdir
6873# and tells GDB to look there for source files.
6874
6875if test -r ${srcdir}/.gdbinit ; then
6876 case ${srcdir} in
6877 .) ;;
6878 *) cat > ./.gdbinit <<EOF
6879# ${NO_EDIT}
6880dir ${srcdir}
6881dir .
6882source ${srcdir}/.gdbinit
6883EOF
6884 ;;
6885 esac
6886fi
6887
671aa708
NN
6888# Make sure that the compiler is able to generate an executable. If it
6889# can't, we are probably in trouble. We don't care whether we can run the
6890# executable--we might be using a cross compiler--we only care whether it
6891# can be created. At this point the main configure script has set CC.
6892we_are_ok=no
6893echo "int main () { return 0; }" > conftest.c
6894${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6895if test $? = 0 ; then
6896 if test -s conftest || test -s conftest.exe ; then
6897 we_are_ok=yes
6898 fi
1c710c3c 6899fi
671aa708
NN
6900case $we_are_ok in
6901 no)
6902 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6903 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6904 rm -f conftest*
6905 exit 1
6906 ;;
6907esac
6908rm -f conftest*
6909
d89f0ad6 6910# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
6911case "${host}" in
6912 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 6913 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 6914 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
6915 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6916esac
6917
d89f0ad6
AL
6918# On systems where the dynamic library environment variable is PATH,
6919# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6920# built executables to PATH.
6921if test "$RPATH_ENVVAR" = PATH; then
6922 GCC_SHLIB_SUBDIR=/shlib
6923else
6924 GCC_SHLIB_SUBDIR=
6925fi
6926
beeda1d9
JJ
6927# Adjust the toplevel makefile according to whether bootstrap was selected.
6928case $enable_bootstrap in
6929 yes)
6930 bootstrap_suffix=bootstrap
6931 BUILD_CONFIG=bootstrap-debug
6932 ;;
6933 no)
6934 bootstrap_suffix=no-bootstrap
6935 BUILD_CONFIG=
6936 ;;
6937esac
6938
6939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6940$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6941
6942
6943# Check whether --with-build-config was given.
6944if test "${with_build_config+set}" = set; then :
6945 withval=$with_build_config; case $with_build_config in
6946 yes) with_build_config= ;;
6947 no) with_build_config= BUILD_CONFIG= ;;
6948 esac
6949fi
6950
6951
6952if test "x${with_build_config}" != x; then
6953 BUILD_CONFIG=$with_build_config
6954else
6955 case $BUILD_CONFIG in
6956 bootstrap-debug)
6957 if echo "int f (void) { return 0; }" > conftest.c &&
6958 ${CC} -c conftest.c &&
6959 mv conftest.o conftest.o.g0 &&
6960 ${CC} -c -g conftest.c &&
6961 mv conftest.o conftest.o.g &&
6962 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
6963 :
6964 else
6965 BUILD_CONFIG=
6966 fi
6967 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6968 ;;
6969 esac
6970fi
6971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6972$as_echo "$BUILD_CONFIG" >&6; }
6973
6974
6975# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
6976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
6977$as_echo_n "checking for --enable-vtable-verify... " >&6; }
6978# Check whether --enable-vtable-verify was given.
6979if test "${enable_vtable_verify+set}" = set; then :
6980 enableval=$enable_vtable_verify; case "$enableval" in
6981 yes) enable_vtable_verify=yes ;;
6982 no) enable_vtable_verify=no ;;
6983 *) enable_vtable_verify=no;;
6984 esac
6985else
6986 enable_vtable_verify=no
6987fi
6988
6989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
6990$as_echo "$enable_vtable_verify" >&6; }
6991
671aa708
NN
6992# Record target_configdirs and the configure arguments for target and
6993# build configuration in Makefile.
6994target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 6995build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9e1c8fc1 6996bootstrap_fixincludes=no
671aa708 6997
ad1e5170
JR
6998# If we are building libgomp, bootstrap it.
6999if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7000 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7001fi
7002
beeda1d9
JJ
7003# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7004# or bootstrap-ubsan, bootstrap it.
7005if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7006 case "$BUILD_CONFIG" in
7007 *bootstrap-asan* | *bootstrap-ubsan* )
7008 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9e1c8fc1 7009 bootstrap_fixincludes=yes
beeda1d9
JJ
7010 ;;
7011 esac
ac8701fe
L
7012fi
7013
beeda1d9
JJ
7014# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7015if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7016 test "$enable_vtable_verify" != no; then
2077db1b
CT
7017 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7018fi
7019
671aa708
NN
7020# Determine whether gdb needs tk/tcl or not.
7021# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7022# and in that case we want gdb to be built without tk. Ugh!
7023# In fact I believe gdb is the *only* package directly dependent on tk,
7024# so we should be able to put the 'maybe's in unconditionally and
7025# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7026# 100% sure that that's safe though.
e914a571 7027
b4f96efe 7028gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
7029case "$enable_gdbtk" in
7030 no)
7031 GDB_TK="" ;;
e914a571
AC
7032 yes)
7033 GDB_TK="${gdb_tk}" ;;
671aa708 7034 *)
e914a571
AC
7035 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7036 # distro. Eventually someone will fix this and move Insight, nee
7037 # gdbtk to a separate directory.
7038 if test -d ${srcdir}/gdb/gdbtk ; then
7039 GDB_TK="${gdb_tk}"
7040 else
7041 GDB_TK=""
7042 fi
7043 ;;
671aa708 7044esac
ef9db8d5
DJ
7045CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7046INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 7047
60975492 7048# Strip out unwanted targets.
8b87bb96
NN
7049
7050# While at that, we remove Makefiles if we were started for recursive
7051# configuration, so that the top-level Makefile reconfigures them,
7052# like we used to do when configure itself was recursive.
8b87bb96 7053
3e54529c
RW
7054# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7055# but now we're fixing up the Makefile ourselves with the additional
7056# commands passed to AC_CONFIG_FILES. Use separate variables
7057# extrasub-{build,host,target} not because there is any reason to split
7058# the substitutions up that way, but only to remain below the limit of
7059# 99 commands in a script, for HP-UX sed.
7060# Do not nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 7061
79cd2b23
RW
7062case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7063 yes:yes:*\ gold\ *:*,c++,*) ;;
7064 yes:yes:*\ gold\ *:*)
7065 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7066 ;;
7067esac
7068
3e54529c 7069extrasub_build=
23f6b2f9 7070for module in ${build_configdirs} ; do
5607edfd
PB
7071 if test -z "${no_recursion}" \
7072 && test -f ${build_subdir}/${module}/Makefile; then
7073 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7074 rm -f ${build_subdir}/${module}/Makefile
7075 fi
3e54529c 7076 extrasub_build="$extrasub_build
5607edfd
PB
7077/^@if build-$module\$/d
7078/^@endif build-$module\$/d
7079/^@if build-$module-$bootstrap_suffix\$/d
7080/^@endif build-$module-$bootstrap_suffix\$/d"
7081done
3e54529c 7082extrasub_host=
5607edfd 7083for module in ${configdirs} ; do
a6fbc1e2 7084 if test -z "${no_recursion}"; then
f063a9ed 7085 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
7086 if test -f ${file}; then
7087 echo 1>&2 "*** removing ${file} to force reconfigure"
7088 rm -f ${file}
7089 fi
7090 done
5607edfd 7091 fi
9e1c8fc1
JJ
7092 case ${module},${bootstrap_fixincludes} in
7093 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7094 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7095 esac
3e54529c 7096 extrasub_host="$extrasub_host
5607edfd
PB
7097/^@if $module\$/d
7098/^@endif $module\$/d
9e1c8fc1
JJ
7099/^@if $module-$host_bootstrap_suffix\$/d
7100/^@endif $module-$host_bootstrap_suffix\$/d"
5607edfd 7101done
3e54529c 7102extrasub_target=
5607edfd
PB
7103for module in ${target_configdirs} ; do
7104 if test -z "${no_recursion}" \
7105 && test -f ${target_subdir}/${module}/Makefile; then
7106 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7107 rm -f ${target_subdir}/${module}/Makefile
7108 fi
00020c16
ILT
7109
7110 # We only bootstrap target libraries listed in bootstrap_target_libs.
7111 case $bootstrap_target_libs in
7112 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7113 *) target_bootstrap_suffix=no-bootstrap ;;
7114 esac
7115
3e54529c 7116 extrasub_target="$extrasub_target
5607edfd
PB
7117/^@if target-$module\$/d
7118/^@endif target-$module\$/d
00020c16
ILT
7119/^@if target-$module-$target_bootstrap_suffix\$/d
7120/^@endif target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
7121done
7122
3e54529c
RW
7123# Do the final fixup along with target modules.
7124extrasub_target="$extrasub_target
60975492 7125/^@if /,/^@endif /d"
671aa708
NN
7126
7127# Create the serialization dependencies. This uses a temporary file.
7128
5213506e
RW
7129# Check whether --enable-serial-configure was given.
7130if test "${enable_serial_configure+set}" = set; then :
7131 enableval=$enable_serial_configure;
7132fi
ade82b16
AO
7133
7134
bf1d3e81
NN
7135case ${enable_serial_configure} in
7136 yes)
7137 enable_serial_build_configure=yes
7138 enable_serial_host_configure=yes
7139 enable_serial_target_configure=yes
7140 ;;
7141esac
7142
671aa708
NN
7143# These force 'configure's to be done one at a time, to avoid problems
7144# with contention over a shared config.cache.
7145rm -f serdep.tmp
ade82b16 7146echo '# serdep.tmp' > serdep.tmp
671aa708 7147olditem=
bf1d3e81 7148test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
7149for item in ${build_configdirs} ; do
7150 case ${olditem} in
7151 "") ;;
ade82b16 7152 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
7153 esac
7154 olditem=${item}
7155done
7156olditem=
bf1d3e81 7157test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
7158for item in ${configdirs} ; do
7159 case ${olditem} in
7160 "") ;;
ade82b16 7161 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
7162 esac
7163 olditem=${item}
7164done
7165olditem=
bf1d3e81 7166test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
7167for item in ${target_configdirs} ; do
7168 case ${olditem} in
7169 "") ;;
ade82b16 7170 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
7171 esac
7172 olditem=${item}
7173done
7174serialization_dependencies=serdep.tmp
7175
7176
ade82b16 7177# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 7178# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
7179# might not want to pass down to subconfigures. The exception being
7180# --cache-file=/dev/null, which is used to turn off the use of cache
7181# files altogether, and which should be passed on to subconfigures.
7182# Also strip program-prefix, program-suffix, and program-transform-name,
7183# so that we can pass down a consistent program-transform-name.
1c710c3c 7184baseargs=
29a63921 7185tbaseargs=
1c710c3c
DJ
7186keep_next=no
7187skip_next=no
7188eval "set -- $ac_configure_args"
44bfc3ac
DJ
7189for ac_arg
7190do
1c710c3c
DJ
7191 if test X"$skip_next" = X"yes"; then
7192 skip_next=no
7193 continue
7194 fi
7195 if test X"$keep_next" = X"yes"; then
7196 case $ac_arg in
7197 *\'*)
7198 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7199 esac
7200 baseargs="$baseargs '$ac_arg'"
29a63921 7201 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
7202 keep_next=no
7203 continue
7204 fi
7205
7206 # Handle separated arguments. Based on the logic generated by
7207 # autoconf 2.59.
7208 case $ac_arg in
7209 *=* | --config-cache | -C | -disable-* | --disable-* \
7210 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7211 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7212 | -with-* | --with-* | -without-* | --without-* | --x)
7213 separate_arg=no
7214 ;;
7215 -*)
7216 separate_arg=yes
7217 ;;
7218 *)
7219 separate_arg=no
7220 ;;
7221 esac
7222
29a63921
AO
7223 skip_targ=no
7224 case $ac_arg in
7225
7226 --with-* | --without-*)
7227 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7228
7229 case $libopt in
7230 *[-_]include)
7231 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7232 ;;
7233 *[-_]lib)
7234 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7235 ;;
7236 *)
7237 lib=$libopt
7238 ;;
7239 esac
7240
7241
7242 case $lib in
4a9bb2aa 7243 mpc | mpfr | gmp | isl)
29a63921
AO
7244 # If we're processing --with-$lib, --with-$lib-include or
7245 # --with-$lib-lib, for one of the libs above, and target is
7246 # different from host, don't pass the current argument to any
7247 # target library's configure.
7248 if test x$is_cross_compiler = xyes; then
7249 skip_targ=yes
7250 fi
7251 ;;
7252 esac
7253 ;;
7254 esac
7255
1c710c3c 7256 case "$ac_arg" in
f1a036e4
NC
7257 --cache-file=/dev/null | \
7258 -cache-file=/dev/null )
7259 # Handled here to avoid the test to skip args below.
7260 baseargs="$baseargs '$ac_arg'"
29a63921 7261 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
7262 # Assert: $separate_arg should always be no.
7263 keep_next=$separate_arg
7264 ;;
1c710c3c
DJ
7265 --no*)
7266 continue
7267 ;;
7268 --c* | \
7269 --sr* | \
7270 --ho* | \
7271 --bu* | \
7272 --t* | \
7273 --program-* | \
7274 -cache_file* | \
7275 -srcdir* | \
7276 -host* | \
7277 -build* | \
7278 -target* | \
7279 -program-prefix* | \
7280 -program-suffix* | \
7281 -program-transform-name* )
7282 skip_next=$separate_arg
7283 continue
7284 ;;
7285 -*)
7286 # An option. Add it.
7287 case $ac_arg in
7288 *\'*)
7289 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7290 esac
7291 baseargs="$baseargs '$ac_arg'"
29a63921
AO
7292 if test X"$skip_targ" = Xno; then
7293 tbaseargs="$tbaseargs '$ac_arg'"
7294 fi
1c710c3c
DJ
7295 keep_next=$separate_arg
7296 ;;
7297 *)
7298 # Either a variable assignment, or a nonopt (triplet). Don't
7299 # pass it down; let the Makefile handle this.
7300 continue
7301 ;;
7302 esac
7303done
7304# Remove the initial space we just introduced and, as these will be
7305# expanded by make, quote '$'.
7306baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7307
43bb47c2
DJ
7308# Add in --program-transform-name, after --program-prefix and
7309# --program-suffix have been applied to it. Autoconf has already
7310# doubled dollar signs and backslashes in program_transform_name; we want
7311# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7312# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7313# Also, because we want to override the logic in subdir configure scripts to
7314# choose program_transform_name, replace any s,x,x, with s,y,y,.
7315sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7316${program_transform_name}
7317EOF_SED
7318gcc_transform_name=`cat conftestsed.out`
7319rm -f conftestsed.out
7320baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 7321tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7322if test "$silent" = yes; then
7323 baseargs="$baseargs --silent"
29a63921 7324 tbaseargs="$tbaseargs --silent"
d9acb717 7325fi
0115d4a3 7326baseargs="$baseargs --disable-option-checking"
29a63921 7327tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 7328
ffedf511
RW
7329# Record and document user additions to sub configure arguments.
7330
7331
7332
7333
671aa708
NN
7334# For the build-side libraries, we just need to pretend we're native,
7335# and not use the same cache file. Multilibs are neither needed nor
3d96b0d0
HPN
7336# desired. We can't even use the same cache file for all build-side
7337# libraries, as they're compiled differently; some with C, some with
7338# C++ or with different feature-enabling options.
7339build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
671aa708
NN
7340
7341# For host modules, accept cache file option, or specification as blank.
7342case "${cache_file}" in
7343"") # empty
7344 cache_file_option="" ;;
7345/* | [A-Za-z]:[\\/]* ) # absolute path
7346 cache_file_option="--cache-file=${cache_file}" ;;
7347*) # relative path
7348 cache_file_option="--cache-file=../${cache_file}" ;;
7349esac
7350
09438bde
NN
7351# Host dirs don't like to share a cache file either, horribly enough.
7352# This seems to be due to autoconf 2.5x stupidity.
ffedf511 7353host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 7354
29a63921 7355target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
7356
7357# Passing a --with-cross-host argument lets the target libraries know
7358# whether they are being built with a cross-compiler or being built
7359# native. However, it would be better to use other mechanisms to make the
7360# sorts of decisions they want to make on this basis. Please consider
7361# this option to be deprecated. FIXME.
7362if test x${is_cross_compiler} = xyes ; then
1c710c3c 7363 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7364fi
7365
79e0604d
FXC
7366# Special user-friendly check for native x86_64-linux build, if
7367# multilib is not explicitly enabled.
7368case "$target:$have_compiler:$host:$target:$enable_multilib" in
7369 x86_64-*linux*:yes:$build:$build:)
7370 # Make sure we have a developement environment that handles 32-bit
7371 dev64=no
7372 echo "int main () { return 0; }" > conftest.c
7373 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7374 if test $? = 0 ; then
7375 if test -s conftest || test -s conftest.exe ; then
7376 dev64=yes
7377 fi
7378 fi
7379 rm -f conftest*
7380 if test x${dev64} != xyes ; then
7381 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
7382 fi
7383 ;;
7384esac
7385
dc683a3f
RW
7386# Default to --enable-multilib.
7387if test x${enable_multilib} = x ; then
671aa708 7388 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 7389fi
671aa708
NN
7390
7391# Pass --with-newlib if appropriate. Note that target_configdirs has
7392# changed from the earlier setting of with_newlib.
7393if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7394 target_configargs="--with-newlib ${target_configargs}"
7395fi
7396
6b9eb62c
NN
7397# Different target subdirs use different values of certain variables
7398# (notably CXX). Worse, multilibs use *lots* of different values.
7399# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7400# it doesn't automatically accept command-line overrides of them.
7401# This means it's not safe for target subdirs to share a cache file,
7402# which is disgusting, but there you have it. Hopefully this can be
7403# fixed in future. It's still worthwhile to use a cache file for each
7404# directory. I think.
7405
bebcd931
MS
7406# Pass the appropriate --build, --host, --target and --cache-file arguments.
7407# We need to pass --target, as newer autoconf's requires consistency
7408# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7409target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7410
671aa708
NN
7411FLAGS_FOR_TARGET=
7412case " $target_configdirs " in
7413 *" newlib "*)
7414 case " $target_configargs " in
7415 *" --with-newlib "*)
7416 case "$target" in
5d571eaa 7417 *-cygwin*)
443e6238 7418 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5d571eaa 7419 ;;
671aa708
NN
7420 esac
7421
7422 # If we're not building GCC, don't discard standard headers.
7423 if test -d ${srcdir}/gcc; then
7424 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7425
7426 if test "${build}" != "${host}"; then
7427 # On Canadian crosses, CC_FOR_TARGET will have already been set
7428 # by `configure', so we won't have an opportunity to add -Bgcc/
7429 # to it. This is right: we don't want to search that directory
7430 # for binaries, but we want the header files in there, so add
7431 # them explicitly.
0463992b 7432 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
7433
7434 # Someone might think of using the pre-installed headers on
7435 # Canadian crosses, in case the installed compiler is not fully
7436 # compatible with the compiler being built. In this case, it
7437 # would be better to flag an error than risking having
7438 # incompatible object files being constructed. We can't
7439 # guarantee that an error will be flagged, but let's hope the
7440 # compiler will do it, when presented with incompatible header
7441 # files.
7442 fi
7443 fi
7444
7445 case "${target}-${is_cross_compiler}" in
f2a0e225 7446 i[3456789]86-*-linux*-no)
671aa708
NN
7447 # Here host == target, so we don't need to build gcc,
7448 # so we don't want to discard standard headers.
7449 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7450 ;;
7451 *)
7452 # If we're building newlib, use its generic headers last, but search
7453 # for any libc-related directories first (so make it the last -B
7454 # switch).
7455 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
7456
7457 # If we're building libgloss, find the startup file, simulator library
7458 # and linker script.
7459 case " $target_configdirs " in
7460 *" libgloss "*)
7461 # Look for startup file, simulator library and maybe linker script.
7462 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7463 # Look for libnosys.a in case the target needs it.
7464 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7465 # Most targets have the linker script in the source directory.
7466 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7467 ;;
7468 esac
671aa708
NN
7469 ;;
7470 esac
7471 ;;
7472 esac
7473 ;;
7474esac
5d571eaa 7475
b91f0a41 7476case "$target" in
5d571eaa
OS
7477 x86_64-*mingw* | *-w64-mingw*)
7478 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7479 # however, use a symlink named 'mingw' in ${prefix} .
7480 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7481 ;;
7482 *-mingw*)
7483 # MinGW can't be handled as Cygwin above since it does not use newlib.
7484 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'
7485 ;;
b91f0a41 7486esac
671aa708 7487
6691a79e
ME
7488# Allow the user to override the flags for
7489# our build compiler if desired.
f019adc1
MF
7490if test x"${build}" = x"${host}" ; then
7491 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7492 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7493 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7494fi
6691a79e 7495
671aa708
NN
7496# On Canadian crosses, we'll be searching the right directories for
7497# the previously-installed cross compiler, so don't bother to add
7498# flags for directories within the install tree of the compiler
7499# being built; programs in there won't even run.
7500if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7501 # Search for pre-installed headers if nothing else fits.
9124bc53 7502 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
7503fi
7504
7505if test "x${use_gnu_ld}" = x &&
7506 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7507 # Arrange for us to find uninstalled linker scripts.
215c351a 7508 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
7509fi
7510
e88a2c09
DD
7511# Search for other target-specific linker scripts and such.
7512case "${target}" in
3e19841a
PB
7513 mep*)
7514 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7515 ;;
e88a2c09
DD
7516esac
7517
671aa708 7518# Makefile fragments.
7b61653a
PE
7519for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7520do
7521 eval fragval=\$$frag
7522 if test $fragval != /dev/null; then
7523 eval $frag=${srcdir}/$fragval
7524 fi
7525done
671aa708
NN
7526
7527
7528
7529
7530
7531# Miscellanea: directories, flags, etc.
7532
7533
7534
7535
7536
7537
7538
d89f0ad6 7539
23f6b2f9 7540# Build module lists & subconfigure args.
671aa708
NN
7541
7542
7543
2abefe3d
PB
7544# Host module lists & subconfigure args.
7545
7546
7547
aae29963 7548
2abefe3d
PB
7549# Target module lists & subconfigure args.
7550
7551
7552
7553# Build tools.
7554
7555
7556
0999159b
PB
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
2abefe3d
PB
7571# Generate default definitions for YACC, M4, LEX and other programs that run
7572# on the build machine. These are used if the Makefile can't locate these
7573# programs in objdir.
7574MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7575
7576for ac_prog in 'bison -y' byacc yacc
7577do
1c710c3c 7578 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7579set dummy $ac_prog; ac_word=$2
5213506e
RW
7580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7581$as_echo_n "checking for $ac_word... " >&6; }
7582if test "${ac_cv_prog_YACC+set}" = set; then :
7583 $as_echo_n "(cached) " >&6
2abefe3d
PB
7584else
7585 if test -n "$YACC"; then
7586 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7587else
1c710c3c
DJ
7588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589for as_dir in $PATH
7590do
7591 IFS=$as_save_IFS
7592 test -z "$as_dir" && as_dir=.
5213506e
RW
7593 for ac_exec_ext in '' $ac_executable_extensions; do
7594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7595 ac_cv_prog_YACC="$ac_prog"
5213506e 7596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7597 break 2
7598 fi
7599done
5213506e
RW
7600 done
7601IFS=$as_save_IFS
1c710c3c 7602
2abefe3d
PB
7603fi
7604fi
1c710c3c 7605YACC=$ac_cv_prog_YACC
2abefe3d 7606if test -n "$YACC"; then
5213506e
RW
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7608$as_echo "$YACC" >&6; }
2abefe3d 7609else
5213506e
RW
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7611$as_echo "no" >&6; }
2abefe3d
PB
7612fi
7613
5213506e 7614
1c710c3c 7615 test -n "$YACC" && break
2abefe3d
PB
7616done
7617test -n "$YACC" || YACC="$MISSING bison -y"
7618
7619case " $build_configdirs " in
7620 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
7621esac
7622
7623for ac_prog in bison
7624do
1c710c3c 7625 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7626set dummy $ac_prog; ac_word=$2
5213506e
RW
7627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7628$as_echo_n "checking for $ac_word... " >&6; }
7629if test "${ac_cv_prog_BISON+set}" = set; then :
7630 $as_echo_n "(cached) " >&6
2abefe3d
PB
7631else
7632 if test -n "$BISON"; then
7633 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7634else
1c710c3c
DJ
7635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636for as_dir in $PATH
7637do
7638 IFS=$as_save_IFS
7639 test -z "$as_dir" && as_dir=.
5213506e
RW
7640 for ac_exec_ext in '' $ac_executable_extensions; do
7641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7642 ac_cv_prog_BISON="$ac_prog"
5213506e 7643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7644 break 2
7645 fi
7646done
5213506e
RW
7647 done
7648IFS=$as_save_IFS
1c710c3c 7649
2abefe3d
PB
7650fi
7651fi
1c710c3c 7652BISON=$ac_cv_prog_BISON
2abefe3d 7653if test -n "$BISON"; then
5213506e
RW
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7655$as_echo "$BISON" >&6; }
2abefe3d 7656else
5213506e
RW
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7658$as_echo "no" >&6; }
2abefe3d
PB
7659fi
7660
5213506e 7661
1c710c3c 7662 test -n "$BISON" && break
2abefe3d
PB
7663done
7664test -n "$BISON" || BISON="$MISSING bison"
7665
7666case " $build_configdirs " in
7667 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7668esac
7669
7670for ac_prog in gm4 gnum4 m4
7671do
1c710c3c 7672 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7673set dummy $ac_prog; ac_word=$2
5213506e
RW
7674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7675$as_echo_n "checking for $ac_word... " >&6; }
7676if test "${ac_cv_prog_M4+set}" = set; then :
7677 $as_echo_n "(cached) " >&6
2abefe3d
PB
7678else
7679 if test -n "$M4"; then
7680 ac_cv_prog_M4="$M4" # Let the user override the test.
7681else
1c710c3c
DJ
7682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683for as_dir in $PATH
7684do
7685 IFS=$as_save_IFS
7686 test -z "$as_dir" && as_dir=.
5213506e
RW
7687 for ac_exec_ext in '' $ac_executable_extensions; do
7688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7689 ac_cv_prog_M4="$ac_prog"
5213506e 7690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7691 break 2
7692 fi
7693done
5213506e
RW
7694 done
7695IFS=$as_save_IFS
1c710c3c 7696
2abefe3d
PB
7697fi
7698fi
1c710c3c 7699M4=$ac_cv_prog_M4
2abefe3d 7700if test -n "$M4"; then
5213506e
RW
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7702$as_echo "$M4" >&6; }
2abefe3d 7703else
5213506e
RW
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7705$as_echo "no" >&6; }
2abefe3d
PB
7706fi
7707
5213506e 7708
1c710c3c 7709 test -n "$M4" && break
2abefe3d
PB
7710done
7711test -n "$M4" || M4="$MISSING m4"
7712
7713case " $build_configdirs " in
7714 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7715esac
7716
7717for ac_prog in flex lex
7718do
1c710c3c 7719 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7720set dummy $ac_prog; ac_word=$2
5213506e
RW
7721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7722$as_echo_n "checking for $ac_word... " >&6; }
7723if test "${ac_cv_prog_LEX+set}" = set; then :
7724 $as_echo_n "(cached) " >&6
2abefe3d
PB
7725else
7726 if test -n "$LEX"; then
7727 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7728else
1c710c3c
DJ
7729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730for as_dir in $PATH
7731do
7732 IFS=$as_save_IFS
7733 test -z "$as_dir" && as_dir=.
5213506e
RW
7734 for ac_exec_ext in '' $ac_executable_extensions; do
7735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7736 ac_cv_prog_LEX="$ac_prog"
5213506e 7737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7738 break 2
7739 fi
7740done
5213506e
RW
7741 done
7742IFS=$as_save_IFS
1c710c3c 7743
2abefe3d
PB
7744fi
7745fi
1c710c3c 7746LEX=$ac_cv_prog_LEX
2abefe3d 7747if test -n "$LEX"; then
5213506e
RW
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7749$as_echo "$LEX" >&6; }
2abefe3d 7750else
5213506e
RW
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7752$as_echo "no" >&6; }
2abefe3d
PB
7753fi
7754
5213506e 7755
1c710c3c 7756 test -n "$LEX" && break
2abefe3d
PB
7757done
7758test -n "$LEX" || LEX="$MISSING flex"
7759
7760case " $build_configdirs " in
7761 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7762 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7763esac
7764
7765for ac_prog in flex
7766do
1c710c3c 7767 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7768set dummy $ac_prog; ac_word=$2
5213506e
RW
7769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7770$as_echo_n "checking for $ac_word... " >&6; }
7771if test "${ac_cv_prog_FLEX+set}" = set; then :
7772 $as_echo_n "(cached) " >&6
2abefe3d
PB
7773else
7774 if test -n "$FLEX"; then
7775 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7776else
1c710c3c
DJ
7777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778for as_dir in $PATH
7779do
7780 IFS=$as_save_IFS
7781 test -z "$as_dir" && as_dir=.
5213506e
RW
7782 for ac_exec_ext in '' $ac_executable_extensions; do
7783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7784 ac_cv_prog_FLEX="$ac_prog"
5213506e 7785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7786 break 2
7787 fi
7788done
5213506e
RW
7789 done
7790IFS=$as_save_IFS
1c710c3c 7791
2abefe3d
PB
7792fi
7793fi
1c710c3c 7794FLEX=$ac_cv_prog_FLEX
2abefe3d 7795if test -n "$FLEX"; then
5213506e
RW
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7797$as_echo "$FLEX" >&6; }
2abefe3d 7798else
5213506e
RW
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7800$as_echo "no" >&6; }
2abefe3d
PB
7801fi
7802
5213506e 7803
1c710c3c 7804 test -n "$FLEX" && break
2abefe3d
PB
7805done
7806test -n "$FLEX" || FLEX="$MISSING flex"
7807
7808case " $build_configdirs " in
7809 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7810esac
7811
7812for ac_prog in makeinfo
7813do
1c710c3c 7814 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7815set dummy $ac_prog; ac_word=$2
5213506e
RW
7816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7817$as_echo_n "checking for $ac_word... " >&6; }
7818if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7819 $as_echo_n "(cached) " >&6
2abefe3d
PB
7820else
7821 if test -n "$MAKEINFO"; then
7822 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7823else
1c710c3c
DJ
7824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825for as_dir in $PATH
7826do
7827 IFS=$as_save_IFS
7828 test -z "$as_dir" && as_dir=.
5213506e
RW
7829 for ac_exec_ext in '' $ac_executable_extensions; do
7830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7831 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 7832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7833 break 2
7834 fi
7835done
5213506e
RW
7836 done
7837IFS=$as_save_IFS
1c710c3c 7838
2abefe3d
PB
7839fi
7840fi
1c710c3c 7841MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 7842if test -n "$MAKEINFO"; then
5213506e
RW
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7844$as_echo "$MAKEINFO" >&6; }
2abefe3d 7845else
5213506e
RW
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847$as_echo "no" >&6; }
2abefe3d
PB
7848fi
7849
5213506e 7850
1c710c3c 7851 test -n "$MAKEINFO" && break
2abefe3d
PB
7852done
7853test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7854
7855case " $build_configdirs " in
7856 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7857 *)
7858
d18ff35a 7859 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
7860 # higher, else we use the "missing" dummy.
7861 if ${MAKEINFO} --version \
d18ff35a 7862 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
7863 :
7864 else
7865 MAKEINFO="$MISSING makeinfo"
7866 fi
7867 ;;
7868
7869esac
671aa708 7870
2abefe3d 7871# FIXME: expect and dejagnu may become build tools?
671aa708 7872
2abefe3d
PB
7873for ac_prog in expect
7874do
1c710c3c 7875 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7876set dummy $ac_prog; ac_word=$2
5213506e
RW
7877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7878$as_echo_n "checking for $ac_word... " >&6; }
7879if test "${ac_cv_prog_EXPECT+set}" = set; then :
7880 $as_echo_n "(cached) " >&6
2abefe3d
PB
7881else
7882 if test -n "$EXPECT"; then
7883 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7884else
1c710c3c
DJ
7885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7886for as_dir in $PATH
7887do
7888 IFS=$as_save_IFS
7889 test -z "$as_dir" && as_dir=.
5213506e
RW
7890 for ac_exec_ext in '' $ac_executable_extensions; do
7891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7892 ac_cv_prog_EXPECT="$ac_prog"
5213506e 7893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7894 break 2
7895 fi
7896done
5213506e
RW
7897 done
7898IFS=$as_save_IFS
1c710c3c 7899
2abefe3d
PB
7900fi
7901fi
1c710c3c 7902EXPECT=$ac_cv_prog_EXPECT
2abefe3d 7903if test -n "$EXPECT"; then
5213506e
RW
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7905$as_echo "$EXPECT" >&6; }
2abefe3d 7906else
5213506e
RW
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908$as_echo "no" >&6; }
2abefe3d 7909fi
671aa708 7910
5213506e 7911
1c710c3c 7912 test -n "$EXPECT" && break
2abefe3d
PB
7913done
7914test -n "$EXPECT" || EXPECT="expect"
671aa708 7915
2abefe3d
PB
7916case " $configdirs " in
7917 *" expect "*)
7918 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7919 ;;
7920esac
671aa708 7921
2abefe3d
PB
7922for ac_prog in runtest
7923do
1c710c3c 7924 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7925set dummy $ac_prog; ac_word=$2
5213506e
RW
7926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7927$as_echo_n "checking for $ac_word... " >&6; }
7928if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7929 $as_echo_n "(cached) " >&6
2abefe3d
PB
7930else
7931 if test -n "$RUNTEST"; then
7932 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 7933else
1c710c3c
DJ
7934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935for as_dir in $PATH
7936do
7937 IFS=$as_save_IFS
7938 test -z "$as_dir" && as_dir=.
5213506e
RW
7939 for ac_exec_ext in '' $ac_executable_extensions; do
7940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7941 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 7942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7943 break 2
7944 fi
7945done
5213506e
RW
7946 done
7947IFS=$as_save_IFS
1c710c3c 7948
2abefe3d
PB
7949fi
7950fi
1c710c3c 7951RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 7952if test -n "$RUNTEST"; then
5213506e
RW
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7954$as_echo "$RUNTEST" >&6; }
2abefe3d 7955else
5213506e
RW
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7957$as_echo "no" >&6; }
2abefe3d 7958fi
671aa708 7959
5213506e 7960
1c710c3c 7961 test -n "$RUNTEST" && break
2abefe3d
PB
7962done
7963test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 7964
2abefe3d
PB
7965case " $configdirs " in
7966 *" dejagnu "*)
c394e891 7967 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
7968 ;;
7969esac
671aa708
NN
7970
7971
671aa708 7972# Host tools.
ca9f4b81
AO
7973ncn_tool_prefix=
7974test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7975ncn_target_tool_prefix=
7976test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7977
278a7a38
AO
7978
7979
7980if test -n "$AR"; then
7981 ac_cv_prog_AR=$AR
7982elif test -n "$ac_cv_prog_AR"; then
7983 AR=$ac_cv_prog_AR
7984fi
7985
7986if test -n "$ac_cv_prog_AR"; then
7987 for ncn_progname in ar; do
7988 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7989set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
7990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7991$as_echo_n "checking for $ac_word... " >&6; }
7992if test "${ac_cv_prog_AR+set}" = set; then :
7993 $as_echo_n "(cached) " >&6
278a7a38
AO
7994else
7995 if test -n "$AR"; then
7996 ac_cv_prog_AR="$AR" # Let the user override the test.
7997else
7998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999for as_dir in $PATH
8000do
8001 IFS=$as_save_IFS
8002 test -z "$as_dir" && as_dir=.
5213506e
RW
8003 for ac_exec_ext in '' $ac_executable_extensions; do
8004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8005 ac_cv_prog_AR="${ncn_progname}"
5213506e 8006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8007 break 2
8008 fi
8009done
5213506e
RW
8010 done
8011IFS=$as_save_IFS
278a7a38
AO
8012
8013fi
8014fi
8015AR=$ac_cv_prog_AR
8016if test -n "$AR"; then
5213506e
RW
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8018$as_echo "$AR" >&6; }
278a7a38 8019else
5213506e
RW
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021$as_echo "no" >&6; }
278a7a38
AO
8022fi
8023
5213506e 8024
278a7a38
AO
8025 done
8026fi
8027
8028for ncn_progname in ar; do
2693c0b0
PB
8029 if test -n "$ncn_tool_prefix"; then
8030 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8031set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8033$as_echo_n "checking for $ac_word... " >&6; }
8034if test "${ac_cv_prog_AR+set}" = set; then :
8035 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8036else
8037 if test -n "$AR"; then
8038 ac_cv_prog_AR="$AR" # Let the user override the test.
8039else
1c710c3c
DJ
8040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8041for as_dir in $PATH
8042do
8043 IFS=$as_save_IFS
8044 test -z "$as_dir" && as_dir=.
5213506e
RW
8045 for ac_exec_ext in '' $ac_executable_extensions; do
8046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8047 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 8048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8049 break 2
8050 fi
8051done
5213506e
RW
8052 done
8053IFS=$as_save_IFS
1c710c3c 8054
ca9f4b81
AO
8055fi
8056fi
1c710c3c 8057AR=$ac_cv_prog_AR
ca9f4b81 8058if test -n "$AR"; then
5213506e
RW
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8060$as_echo "$AR" >&6; }
ca9f4b81 8061else
5213506e
RW
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8063$as_echo "no" >&6; }
ca9f4b81
AO
8064fi
8065
5213506e 8066
2693c0b0
PB
8067 fi
8068 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8069 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8070set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8072$as_echo_n "checking for $ac_word... " >&6; }
8073if test "${ac_cv_prog_AR+set}" = set; then :
8074 $as_echo_n "(cached) " >&6
ca9f4b81 8075else
2693c0b0 8076 if test -n "$AR"; then
af71363e
AS
8077 ac_cv_prog_AR="$AR" # Let the user override the test.
8078else
1c710c3c
DJ
8079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8080for as_dir in $PATH
8081do
8082 IFS=$as_save_IFS
8083 test -z "$as_dir" && as_dir=.
5213506e
RW
8084 for ac_exec_ext in '' $ac_executable_extensions; do
8085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8086 ac_cv_prog_AR="${ncn_progname}"
5213506e 8087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8088 break 2
8089 fi
8090done
5213506e
RW
8091 done
8092IFS=$as_save_IFS
1c710c3c 8093
ca9f4b81
AO
8094fi
8095fi
1c710c3c 8096AR=$ac_cv_prog_AR
2693c0b0 8097if test -n "$AR"; then
5213506e
RW
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8099$as_echo "$AR" >&6; }
ca9f4b81 8100else
5213506e
RW
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8102$as_echo "no" >&6; }
ca9f4b81 8103fi
1c710c3c 8104
5213506e 8105
2693c0b0
PB
8106 fi
8107 test -n "$ac_cv_prog_AR" && break
8108done
8109
8110if test -z "$ac_cv_prog_AR" ; then
8111 set dummy ar
8112 if test $build = $host ; then
8113 AR="$2"
ca9f4b81 8114 else
2693c0b0 8115 AR="${ncn_tool_prefix}$2"
ca9f4b81 8116 fi
ca9f4b81
AO
8117fi
8118
278a7a38
AO
8119
8120
8121if test -n "$AS"; then
8122 ac_cv_prog_AS=$AS
8123elif test -n "$ac_cv_prog_AS"; then
8124 AS=$ac_cv_prog_AS
8125fi
8126
8127if test -n "$ac_cv_prog_AS"; then
8128 for ncn_progname in as; do
8129 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8130set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8132$as_echo_n "checking for $ac_word... " >&6; }
8133if test "${ac_cv_prog_AS+set}" = set; then :
8134 $as_echo_n "(cached) " >&6
278a7a38
AO
8135else
8136 if test -n "$AS"; then
8137 ac_cv_prog_AS="$AS" # Let the user override the test.
8138else
8139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8140for as_dir in $PATH
8141do
8142 IFS=$as_save_IFS
8143 test -z "$as_dir" && as_dir=.
5213506e
RW
8144 for ac_exec_ext in '' $ac_executable_extensions; do
8145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8146 ac_cv_prog_AS="${ncn_progname}"
5213506e 8147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8148 break 2
8149 fi
8150done
5213506e
RW
8151 done
8152IFS=$as_save_IFS
278a7a38
AO
8153
8154fi
8155fi
8156AS=$ac_cv_prog_AS
8157if test -n "$AS"; then
5213506e
RW
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8159$as_echo "$AS" >&6; }
278a7a38 8160else
5213506e
RW
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8162$as_echo "no" >&6; }
278a7a38
AO
8163fi
8164
5213506e 8165
278a7a38
AO
8166 done
8167fi
8168
8169for ncn_progname in as; do
2693c0b0
PB
8170 if test -n "$ncn_tool_prefix"; then
8171 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8172set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8174$as_echo_n "checking for $ac_word... " >&6; }
8175if test "${ac_cv_prog_AS+set}" = set; then :
8176 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8177else
8178 if test -n "$AS"; then
8179 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 8180else
1c710c3c
DJ
8181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8182for as_dir in $PATH
8183do
8184 IFS=$as_save_IFS
8185 test -z "$as_dir" && as_dir=.
5213506e
RW
8186 for ac_exec_ext in '' $ac_executable_extensions; do
8187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8188 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 8189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8190 break 2
8191 fi
8192done
5213506e
RW
8193 done
8194IFS=$as_save_IFS
1c710c3c 8195
ca9f4b81
AO
8196fi
8197fi
1c710c3c 8198AS=$ac_cv_prog_AS
ca9f4b81 8199if test -n "$AS"; then
5213506e
RW
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8201$as_echo "$AS" >&6; }
ca9f4b81 8202else
5213506e
RW
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204$as_echo "no" >&6; }
ca9f4b81
AO
8205fi
8206
5213506e 8207
2693c0b0
PB
8208 fi
8209 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8210 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8211set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8213$as_echo_n "checking for $ac_word... " >&6; }
8214if test "${ac_cv_prog_AS+set}" = set; then :
8215 $as_echo_n "(cached) " >&6
ca9f4b81 8216else
2693c0b0
PB
8217 if test -n "$AS"; then
8218 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 8219else
1c710c3c
DJ
8220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8221for as_dir in $PATH
8222do
8223 IFS=$as_save_IFS
8224 test -z "$as_dir" && as_dir=.
5213506e
RW
8225 for ac_exec_ext in '' $ac_executable_extensions; do
8226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8227 ac_cv_prog_AS="${ncn_progname}"
5213506e 8228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8229 break 2
8230 fi
8231done
5213506e
RW
8232 done
8233IFS=$as_save_IFS
1c710c3c 8234
ca9f4b81
AO
8235fi
8236fi
1c710c3c 8237AS=$ac_cv_prog_AS
2693c0b0 8238if test -n "$AS"; then
5213506e
RW
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8240$as_echo "$AS" >&6; }
ca9f4b81 8241else
5213506e
RW
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8243$as_echo "no" >&6; }
ca9f4b81 8244fi
1c710c3c 8245
5213506e 8246
2693c0b0
PB
8247 fi
8248 test -n "$ac_cv_prog_AS" && break
8249done
8250
8251if test -z "$ac_cv_prog_AS" ; then
8252 set dummy as
8253 if test $build = $host ; then
8254 AS="$2"
ca9f4b81 8255 else
2693c0b0 8256 AS="${ncn_tool_prefix}$2"
ca9f4b81 8257 fi
ca9f4b81
AO
8258fi
8259
278a7a38
AO
8260
8261
8262if test -n "$DLLTOOL"; then
8263 ac_cv_prog_DLLTOOL=$DLLTOOL
8264elif test -n "$ac_cv_prog_DLLTOOL"; then
8265 DLLTOOL=$ac_cv_prog_DLLTOOL
8266fi
8267
8268if test -n "$ac_cv_prog_DLLTOOL"; then
8269 for ncn_progname in dlltool; do
8270 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8271set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8273$as_echo_n "checking for $ac_word... " >&6; }
8274if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8275 $as_echo_n "(cached) " >&6
278a7a38
AO
8276else
8277 if test -n "$DLLTOOL"; then
8278 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8279else
8280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281for as_dir in $PATH
8282do
8283 IFS=$as_save_IFS
8284 test -z "$as_dir" && as_dir=.
5213506e
RW
8285 for ac_exec_ext in '' $ac_executable_extensions; do
8286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8287 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8289 break 2
8290 fi
8291done
5213506e
RW
8292 done
8293IFS=$as_save_IFS
278a7a38
AO
8294
8295fi
8296fi
8297DLLTOOL=$ac_cv_prog_DLLTOOL
8298if test -n "$DLLTOOL"; then
5213506e
RW
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8300$as_echo "$DLLTOOL" >&6; }
278a7a38 8301else
5213506e
RW
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8303$as_echo "no" >&6; }
278a7a38
AO
8304fi
8305
5213506e 8306
278a7a38
AO
8307 done
8308fi
8309
8310for ncn_progname in dlltool; do
2693c0b0
PB
8311 if test -n "$ncn_tool_prefix"; then
8312 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8313set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8315$as_echo_n "checking for $ac_word... " >&6; }
8316if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8317 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8318else
8319 if test -n "$DLLTOOL"; then
8320 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8321else
1c710c3c
DJ
8322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8323for as_dir in $PATH
8324do
8325 IFS=$as_save_IFS
8326 test -z "$as_dir" && as_dir=.
5213506e
RW
8327 for ac_exec_ext in '' $ac_executable_extensions; do
8328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8329 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8331 break 2
8332 fi
8333done
5213506e
RW
8334 done
8335IFS=$as_save_IFS
1c710c3c 8336
ca9f4b81
AO
8337fi
8338fi
1c710c3c 8339DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8340if test -n "$DLLTOOL"; then
5213506e
RW
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8342$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8343else
5213506e
RW
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8345$as_echo "no" >&6; }
ca9f4b81
AO
8346fi
8347
5213506e 8348
2693c0b0
PB
8349 fi
8350 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8351 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8352set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8354$as_echo_n "checking for $ac_word... " >&6; }
8355if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8356 $as_echo_n "(cached) " >&6
ca9f4b81 8357else
2693c0b0
PB
8358 if test -n "$DLLTOOL"; then
8359 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8360else
1c710c3c
DJ
8361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362for as_dir in $PATH
8363do
8364 IFS=$as_save_IFS
8365 test -z "$as_dir" && as_dir=.
5213506e
RW
8366 for ac_exec_ext in '' $ac_executable_extensions; do
8367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8368 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8370 break 2
8371 fi
8372done
5213506e
RW
8373 done
8374IFS=$as_save_IFS
1c710c3c 8375
ca9f4b81
AO
8376fi
8377fi
1c710c3c 8378DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8379if test -n "$DLLTOOL"; then
5213506e
RW
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8381$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8382else
5213506e
RW
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8384$as_echo "no" >&6; }
ca9f4b81 8385fi
1c710c3c 8386
5213506e 8387
2693c0b0
PB
8388 fi
8389 test -n "$ac_cv_prog_DLLTOOL" && break
8390done
8391
8392if test -z "$ac_cv_prog_DLLTOOL" ; then
8393 set dummy dlltool
8394 if test $build = $host ; then
8395 DLLTOOL="$2"
ca9f4b81 8396 else
2693c0b0 8397 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8398 fi
ca9f4b81
AO
8399fi
8400
278a7a38
AO
8401
8402
8403if test -n "$LD"; then
8404 ac_cv_prog_LD=$LD
8405elif test -n "$ac_cv_prog_LD"; then
8406 LD=$ac_cv_prog_LD
8407fi
8408
8409if test -n "$ac_cv_prog_LD"; then
8410 for ncn_progname in ld; do
8411 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8412set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8414$as_echo_n "checking for $ac_word... " >&6; }
8415if test "${ac_cv_prog_LD+set}" = set; then :
8416 $as_echo_n "(cached) " >&6
278a7a38
AO
8417else
8418 if test -n "$LD"; then
8419 ac_cv_prog_LD="$LD" # Let the user override the test.
8420else
8421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8422for as_dir in $PATH
8423do
8424 IFS=$as_save_IFS
8425 test -z "$as_dir" && as_dir=.
5213506e
RW
8426 for ac_exec_ext in '' $ac_executable_extensions; do
8427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8428 ac_cv_prog_LD="${ncn_progname}"
5213506e 8429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8430 break 2
8431 fi
8432done
5213506e
RW
8433 done
8434IFS=$as_save_IFS
278a7a38
AO
8435
8436fi
8437fi
8438LD=$ac_cv_prog_LD
8439if test -n "$LD"; then
5213506e
RW
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8441$as_echo "$LD" >&6; }
278a7a38 8442else
5213506e
RW
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8444$as_echo "no" >&6; }
278a7a38
AO
8445fi
8446
5213506e 8447
278a7a38
AO
8448 done
8449fi
8450
8451for ncn_progname in ld; do
2693c0b0
PB
8452 if test -n "$ncn_tool_prefix"; then
8453 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8454set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8456$as_echo_n "checking for $ac_word... " >&6; }
8457if test "${ac_cv_prog_LD+set}" = set; then :
8458 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8459else
8460 if test -n "$LD"; then
8461 ac_cv_prog_LD="$LD" # Let the user override the test.
8462else
1c710c3c
DJ
8463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8464for as_dir in $PATH
8465do
8466 IFS=$as_save_IFS
8467 test -z "$as_dir" && as_dir=.
5213506e
RW
8468 for ac_exec_ext in '' $ac_executable_extensions; do
8469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8470 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 8471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8472 break 2
8473 fi
8474done
5213506e
RW
8475 done
8476IFS=$as_save_IFS
1c710c3c 8477
ca9f4b81
AO
8478fi
8479fi
1c710c3c 8480LD=$ac_cv_prog_LD
ca9f4b81 8481if test -n "$LD"; then
5213506e
RW
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8483$as_echo "$LD" >&6; }
ca9f4b81 8484else
5213506e
RW
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8486$as_echo "no" >&6; }
ca9f4b81
AO
8487fi
8488
5213506e 8489
2693c0b0
PB
8490 fi
8491 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8492 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8493set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8495$as_echo_n "checking for $ac_word... " >&6; }
8496if test "${ac_cv_prog_LD+set}" = set; then :
8497 $as_echo_n "(cached) " >&6
ca9f4b81 8498else
2693c0b0
PB
8499 if test -n "$LD"; then
8500 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 8501else
1c710c3c
DJ
8502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8503for as_dir in $PATH
8504do
8505 IFS=$as_save_IFS
8506 test -z "$as_dir" && as_dir=.
5213506e
RW
8507 for ac_exec_ext in '' $ac_executable_extensions; do
8508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8509 ac_cv_prog_LD="${ncn_progname}"
5213506e 8510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8511 break 2
8512 fi
8513done
5213506e
RW
8514 done
8515IFS=$as_save_IFS
1c710c3c 8516
ca9f4b81
AO
8517fi
8518fi
1c710c3c 8519LD=$ac_cv_prog_LD
2693c0b0 8520if test -n "$LD"; then
5213506e
RW
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8522$as_echo "$LD" >&6; }
ca9f4b81 8523else
5213506e
RW
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8525$as_echo "no" >&6; }
ca9f4b81 8526fi
1c710c3c 8527
5213506e 8528
2693c0b0
PB
8529 fi
8530 test -n "$ac_cv_prog_LD" && break
8531done
8532
8533if test -z "$ac_cv_prog_LD" ; then
8534 set dummy ld
8535 if test $build = $host ; then
8536 LD="$2"
ca9f4b81 8537 else
2693c0b0 8538 LD="${ncn_tool_prefix}$2"
ca9f4b81 8539 fi
ca9f4b81
AO
8540fi
8541
278a7a38
AO
8542
8543
8544if test -n "$LIPO"; then
8545 ac_cv_prog_LIPO=$LIPO
8546elif test -n "$ac_cv_prog_LIPO"; then
8547 LIPO=$ac_cv_prog_LIPO
8548fi
8549
8550if test -n "$ac_cv_prog_LIPO"; then
8551 for ncn_progname in lipo; do
8552 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8553set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8555$as_echo_n "checking for $ac_word... " >&6; }
8556if test "${ac_cv_prog_LIPO+set}" = set; then :
8557 $as_echo_n "(cached) " >&6
278a7a38
AO
8558else
8559 if test -n "$LIPO"; then
8560 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8561else
8562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8563for as_dir in $PATH
8564do
8565 IFS=$as_save_IFS
8566 test -z "$as_dir" && as_dir=.
5213506e
RW
8567 for ac_exec_ext in '' $ac_executable_extensions; do
8568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8569 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8571 break 2
8572 fi
8573done
5213506e
RW
8574 done
8575IFS=$as_save_IFS
278a7a38
AO
8576
8577fi
8578fi
8579LIPO=$ac_cv_prog_LIPO
8580if test -n "$LIPO"; then
5213506e
RW
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8582$as_echo "$LIPO" >&6; }
278a7a38 8583else
5213506e
RW
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8585$as_echo "no" >&6; }
278a7a38
AO
8586fi
8587
5213506e 8588
278a7a38
AO
8589 done
8590fi
8591
8592for ncn_progname in lipo; do
2abefe3d
PB
8593 if test -n "$ncn_tool_prefix"; then
8594 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8595set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8597$as_echo_n "checking for $ac_word... " >&6; }
8598if test "${ac_cv_prog_LIPO+set}" = set; then :
8599 $as_echo_n "(cached) " >&6
2abefe3d
PB
8600else
8601 if test -n "$LIPO"; then
8602 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8603else
1c710c3c
DJ
8604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8605for as_dir in $PATH
8606do
8607 IFS=$as_save_IFS
8608 test -z "$as_dir" && as_dir=.
5213506e
RW
8609 for ac_exec_ext in '' $ac_executable_extensions; do
8610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8611 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 8612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8613 break 2
8614 fi
8615done
5213506e
RW
8616 done
8617IFS=$as_save_IFS
1c710c3c 8618
2abefe3d
PB
8619fi
8620fi
1c710c3c 8621LIPO=$ac_cv_prog_LIPO
2abefe3d 8622if test -n "$LIPO"; then
5213506e
RW
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8624$as_echo "$LIPO" >&6; }
2abefe3d 8625else
5213506e
RW
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8627$as_echo "no" >&6; }
2abefe3d
PB
8628fi
8629
5213506e 8630
2abefe3d
PB
8631 fi
8632 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8633 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8634set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8636$as_echo_n "checking for $ac_word... " >&6; }
8637if test "${ac_cv_prog_LIPO+set}" = set; then :
8638 $as_echo_n "(cached) " >&6
2abefe3d
PB
8639else
8640 if test -n "$LIPO"; then
8641 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8642else
1c710c3c
DJ
8643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8644for as_dir in $PATH
8645do
8646 IFS=$as_save_IFS
8647 test -z "$as_dir" && as_dir=.
5213506e
RW
8648 for ac_exec_ext in '' $ac_executable_extensions; do
8649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8650 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8652 break 2
8653 fi
8654done
5213506e
RW
8655 done
8656IFS=$as_save_IFS
1c710c3c 8657
2abefe3d
PB
8658fi
8659fi
1c710c3c 8660LIPO=$ac_cv_prog_LIPO
2abefe3d 8661if test -n "$LIPO"; then
5213506e
RW
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8663$as_echo "$LIPO" >&6; }
2abefe3d 8664else
5213506e
RW
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8666$as_echo "no" >&6; }
2abefe3d 8667fi
1c710c3c 8668
5213506e 8669
2abefe3d
PB
8670 fi
8671 test -n "$ac_cv_prog_LIPO" && break
8672done
8673
8674if test -z "$ac_cv_prog_LIPO" ; then
8675 set dummy lipo
8676 if test $build = $host ; then
8677 LIPO="$2"
8678 else
8679 LIPO="${ncn_tool_prefix}$2"
8680 fi
8681fi
8682
278a7a38
AO
8683
8684
8685if test -n "$NM"; then
8686 ac_cv_prog_NM=$NM
8687elif test -n "$ac_cv_prog_NM"; then
8688 NM=$ac_cv_prog_NM
8689fi
8690
8691if test -n "$ac_cv_prog_NM"; then
8692 for ncn_progname in nm; do
8693 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8694set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8696$as_echo_n "checking for $ac_word... " >&6; }
8697if test "${ac_cv_prog_NM+set}" = set; then :
8698 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8699else
8700 if test -n "$NM"; then
8701 ac_cv_prog_NM="$NM" # Let the user override the test.
8702else
1c710c3c
DJ
8703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8704for as_dir in $PATH
8705do
8706 IFS=$as_save_IFS
8707 test -z "$as_dir" && as_dir=.
5213506e
RW
8708 for ac_exec_ext in '' $ac_executable_extensions; do
8709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8710 ac_cv_prog_NM="${ncn_progname}"
5213506e 8711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8712 break 2
8713 fi
8714done
5213506e
RW
8715 done
8716IFS=$as_save_IFS
1c710c3c 8717
ca9f4b81
AO
8718fi
8719fi
1c710c3c 8720NM=$ac_cv_prog_NM
ca9f4b81 8721if test -n "$NM"; then
5213506e
RW
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8723$as_echo "$NM" >&6; }
ca9f4b81 8724else
5213506e
RW
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8726$as_echo "no" >&6; }
ca9f4b81
AO
8727fi
8728
5213506e 8729
278a7a38
AO
8730 done
8731fi
8732
8733for ncn_progname in nm; do
8734 if test -n "$ncn_tool_prefix"; then
8735 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8736set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8738$as_echo_n "checking for $ac_word... " >&6; }
8739if test "${ac_cv_prog_NM+set}" = set; then :
8740 $as_echo_n "(cached) " >&6
ca9f4b81 8741else
2693c0b0
PB
8742 if test -n "$NM"; then
8743 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 8744else
1c710c3c
DJ
8745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8746for as_dir in $PATH
8747do
8748 IFS=$as_save_IFS
8749 test -z "$as_dir" && as_dir=.
5213506e
RW
8750 for ac_exec_ext in '' $ac_executable_extensions; do
8751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8752 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 8753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8754 break 2
8755 fi
8756done
5213506e
RW
8757 done
8758IFS=$as_save_IFS
1c710c3c 8759
ca9f4b81
AO
8760fi
8761fi
1c710c3c 8762NM=$ac_cv_prog_NM
2693c0b0 8763if test -n "$NM"; then
5213506e
RW
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8765$as_echo "$NM" >&6; }
ca9f4b81 8766else
5213506e
RW
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8768$as_echo "no" >&6; }
ca9f4b81 8769fi
1c710c3c 8770
5213506e 8771
2693c0b0 8772 fi
278a7a38
AO
8773 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8774 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8775set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8777$as_echo_n "checking for $ac_word... " >&6; }
8778if test "${ac_cv_prog_NM+set}" = set; then :
8779 $as_echo_n "(cached) " >&6
278a7a38
AO
8780else
8781 if test -n "$NM"; then
8782 ac_cv_prog_NM="$NM" # Let the user override the test.
8783else
8784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8785for as_dir in $PATH
8786do
8787 IFS=$as_save_IFS
8788 test -z "$as_dir" && as_dir=.
5213506e
RW
8789 for ac_exec_ext in '' $ac_executable_extensions; do
8790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8791 ac_cv_prog_NM="${ncn_progname}"
5213506e 8792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8793 break 2
8794 fi
8795done
5213506e
RW
8796 done
8797IFS=$as_save_IFS
278a7a38
AO
8798
8799fi
8800fi
8801NM=$ac_cv_prog_NM
8802if test -n "$NM"; then
5213506e
RW
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8804$as_echo "$NM" >&6; }
278a7a38 8805else
5213506e
RW
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8807$as_echo "no" >&6; }
278a7a38
AO
8808fi
8809
5213506e 8810
278a7a38
AO
8811 fi
8812 test -n "$ac_cv_prog_NM" && break
8813done
8814
8815if test -z "$ac_cv_prog_NM" ; then
8816 set dummy nm
8817 if test $build = $host ; then
8818 NM="$2"
8819 else
8820 NM="${ncn_tool_prefix}$2"
8821 fi
8822fi
8823
8824
8825
8826if test -n "$RANLIB"; then
8827 ac_cv_prog_RANLIB=$RANLIB
8828elif test -n "$ac_cv_prog_RANLIB"; then
8829 RANLIB=$ac_cv_prog_RANLIB
8830fi
8831
8832if test -n "$ac_cv_prog_RANLIB"; then
8833 for ncn_progname in ranlib; do
8834 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8835set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8837$as_echo_n "checking for $ac_word... " >&6; }
8838if test "${ac_cv_prog_RANLIB+set}" = set; then :
8839 $as_echo_n "(cached) " >&6
278a7a38
AO
8840else
8841 if test -n "$RANLIB"; then
8842 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8843else
8844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8845for as_dir in $PATH
8846do
8847 IFS=$as_save_IFS
8848 test -z "$as_dir" && as_dir=.
5213506e
RW
8849 for ac_exec_ext in '' $ac_executable_extensions; do
8850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8851 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8853 break 2
8854 fi
8855done
5213506e
RW
8856 done
8857IFS=$as_save_IFS
278a7a38
AO
8858
8859fi
8860fi
8861RANLIB=$ac_cv_prog_RANLIB
8862if test -n "$RANLIB"; then
5213506e
RW
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8864$as_echo "$RANLIB" >&6; }
278a7a38 8865else
5213506e
RW
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8867$as_echo "no" >&6; }
278a7a38
AO
8868fi
8869
5213506e 8870
278a7a38
AO
8871 done
8872fi
ca9f4b81 8873
278a7a38 8874for ncn_progname in ranlib; do
2693c0b0
PB
8875 if test -n "$ncn_tool_prefix"; then
8876 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8877set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8879$as_echo_n "checking for $ac_word... " >&6; }
8880if test "${ac_cv_prog_RANLIB+set}" = set; then :
8881 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8882else
8883 if test -n "$RANLIB"; then
8884 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8885else
1c710c3c
DJ
8886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8887for as_dir in $PATH
8888do
8889 IFS=$as_save_IFS
8890 test -z "$as_dir" && as_dir=.
5213506e
RW
8891 for ac_exec_ext in '' $ac_executable_extensions; do
8892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8893 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 8894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8895 break 2
8896 fi
8897done
5213506e
RW
8898 done
8899IFS=$as_save_IFS
1c710c3c 8900
ca9f4b81
AO
8901fi
8902fi
1c710c3c 8903RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 8904if test -n "$RANLIB"; then
5213506e
RW
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8906$as_echo "$RANLIB" >&6; }
ca9f4b81 8907else
5213506e
RW
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8909$as_echo "no" >&6; }
ca9f4b81
AO
8910fi
8911
5213506e 8912
2693c0b0
PB
8913 fi
8914 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8915 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8916set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8918$as_echo_n "checking for $ac_word... " >&6; }
8919if test "${ac_cv_prog_RANLIB+set}" = set; then :
8920 $as_echo_n "(cached) " >&6
ca9f4b81 8921else
2693c0b0
PB
8922 if test -n "$RANLIB"; then
8923 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 8924else
1c710c3c
DJ
8925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8926for as_dir in $PATH
8927do
8928 IFS=$as_save_IFS
8929 test -z "$as_dir" && as_dir=.
5213506e
RW
8930 for ac_exec_ext in '' $ac_executable_extensions; do
8931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8932 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8934 break 2
8935 fi
8936done
5213506e
RW
8937 done
8938IFS=$as_save_IFS
1c710c3c 8939
ca9f4b81
AO
8940fi
8941fi
1c710c3c 8942RANLIB=$ac_cv_prog_RANLIB
2693c0b0 8943if test -n "$RANLIB"; then
5213506e
RW
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8945$as_echo "$RANLIB" >&6; }
ca9f4b81 8946else
5213506e
RW
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8948$as_echo "no" >&6; }
ca9f4b81 8949fi
1c710c3c 8950
5213506e 8951
ca9f4b81 8952 fi
2693c0b0
PB
8953 test -n "$ac_cv_prog_RANLIB" && break
8954done
8955
8956if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 8957 RANLIB="true"
ca9f4b81
AO
8958fi
8959
278a7a38
AO
8960
8961
8962if test -n "$STRIP"; then
8963 ac_cv_prog_STRIP=$STRIP
8964elif test -n "$ac_cv_prog_STRIP"; then
8965 STRIP=$ac_cv_prog_STRIP
8966fi
8967
8968if test -n "$ac_cv_prog_STRIP"; then
8969 for ncn_progname in strip; do
8970 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8971set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8973$as_echo_n "checking for $ac_word... " >&6; }
8974if test "${ac_cv_prog_STRIP+set}" = set; then :
8975 $as_echo_n "(cached) " >&6
278a7a38
AO
8976else
8977 if test -n "$STRIP"; then
8978 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8979else
8980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8981for as_dir in $PATH
8982do
8983 IFS=$as_save_IFS
8984 test -z "$as_dir" && as_dir=.
5213506e
RW
8985 for ac_exec_ext in '' $ac_executable_extensions; do
8986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8987 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 8988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8989 break 2
8990 fi
8991done
5213506e
RW
8992 done
8993IFS=$as_save_IFS
278a7a38
AO
8994
8995fi
8996fi
8997STRIP=$ac_cv_prog_STRIP
8998if test -n "$STRIP"; then
5213506e
RW
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9000$as_echo "$STRIP" >&6; }
278a7a38 9001else
5213506e
RW
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9003$as_echo "no" >&6; }
278a7a38
AO
9004fi
9005
5213506e 9006
278a7a38
AO
9007 done
9008fi
9009
9010for ncn_progname in strip; do
2abefe3d
PB
9011 if test -n "$ncn_tool_prefix"; then
9012 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9013set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9015$as_echo_n "checking for $ac_word... " >&6; }
9016if test "${ac_cv_prog_STRIP+set}" = set; then :
9017 $as_echo_n "(cached) " >&6
2abefe3d
PB
9018else
9019 if test -n "$STRIP"; then
9020 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9021else
1c710c3c
DJ
9022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9023for as_dir in $PATH
9024do
9025 IFS=$as_save_IFS
9026 test -z "$as_dir" && as_dir=.
5213506e
RW
9027 for ac_exec_ext in '' $ac_executable_extensions; do
9028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9029 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9031 break 2
9032 fi
9033done
5213506e
RW
9034 done
9035IFS=$as_save_IFS
1c710c3c 9036
2abefe3d
PB
9037fi
9038fi
1c710c3c 9039STRIP=$ac_cv_prog_STRIP
2abefe3d 9040if test -n "$STRIP"; then
5213506e
RW
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9042$as_echo "$STRIP" >&6; }
2abefe3d 9043else
5213506e
RW
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9045$as_echo "no" >&6; }
2abefe3d
PB
9046fi
9047
5213506e 9048
2abefe3d
PB
9049 fi
9050 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9051 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9052set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9054$as_echo_n "checking for $ac_word... " >&6; }
9055if test "${ac_cv_prog_STRIP+set}" = set; then :
9056 $as_echo_n "(cached) " >&6
2abefe3d
PB
9057else
9058 if test -n "$STRIP"; then
9059 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9060else
1c710c3c
DJ
9061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9062for as_dir in $PATH
9063do
9064 IFS=$as_save_IFS
9065 test -z "$as_dir" && as_dir=.
5213506e
RW
9066 for ac_exec_ext in '' $ac_executable_extensions; do
9067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9068 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9070 break 2
9071 fi
9072done
5213506e
RW
9073 done
9074IFS=$as_save_IFS
1c710c3c 9075
2abefe3d
PB
9076fi
9077fi
1c710c3c 9078STRIP=$ac_cv_prog_STRIP
2abefe3d 9079if test -n "$STRIP"; then
5213506e
RW
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9081$as_echo "$STRIP" >&6; }
2abefe3d 9082else
5213506e
RW
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9084$as_echo "no" >&6; }
2abefe3d 9085fi
1c710c3c 9086
5213506e 9087
2abefe3d
PB
9088 fi
9089 test -n "$ac_cv_prog_STRIP" && break
9090done
9091
9092if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 9093 STRIP="true"
2abefe3d
PB
9094fi
9095
278a7a38
AO
9096
9097
9098if test -n "$WINDRES"; then
9099 ac_cv_prog_WINDRES=$WINDRES
9100elif test -n "$ac_cv_prog_WINDRES"; then
9101 WINDRES=$ac_cv_prog_WINDRES
9102fi
9103
9104if test -n "$ac_cv_prog_WINDRES"; then
9105 for ncn_progname in windres; do
9106 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9107set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9109$as_echo_n "checking for $ac_word... " >&6; }
9110if test "${ac_cv_prog_WINDRES+set}" = set; then :
9111 $as_echo_n "(cached) " >&6
278a7a38
AO
9112else
9113 if test -n "$WINDRES"; then
9114 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9115else
9116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9117for as_dir in $PATH
9118do
9119 IFS=$as_save_IFS
9120 test -z "$as_dir" && as_dir=.
5213506e
RW
9121 for ac_exec_ext in '' $ac_executable_extensions; do
9122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9123 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9125 break 2
9126 fi
9127done
5213506e
RW
9128 done
9129IFS=$as_save_IFS
278a7a38
AO
9130
9131fi
9132fi
9133WINDRES=$ac_cv_prog_WINDRES
9134if test -n "$WINDRES"; then
5213506e
RW
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9136$as_echo "$WINDRES" >&6; }
278a7a38 9137else
5213506e
RW
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9139$as_echo "no" >&6; }
278a7a38
AO
9140fi
9141
5213506e 9142
278a7a38
AO
9143 done
9144fi
9145
9146for ncn_progname in windres; do
2693c0b0
PB
9147 if test -n "$ncn_tool_prefix"; then
9148 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9149set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9151$as_echo_n "checking for $ac_word... " >&6; }
9152if test "${ac_cv_prog_WINDRES+set}" = set; then :
9153 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9154else
9155 if test -n "$WINDRES"; then
9156 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9157else
1c710c3c
DJ
9158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9159for as_dir in $PATH
9160do
9161 IFS=$as_save_IFS
9162 test -z "$as_dir" && as_dir=.
5213506e
RW
9163 for ac_exec_ext in '' $ac_executable_extensions; do
9164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9165 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 9166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9167 break 2
9168 fi
9169done
5213506e
RW
9170 done
9171IFS=$as_save_IFS
1c710c3c 9172
ca9f4b81
AO
9173fi
9174fi
1c710c3c 9175WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 9176if test -n "$WINDRES"; then
5213506e
RW
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9178$as_echo "$WINDRES" >&6; }
ca9f4b81 9179else
5213506e
RW
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181$as_echo "no" >&6; }
ca9f4b81
AO
9182fi
9183
5213506e 9184
2693c0b0
PB
9185 fi
9186 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9187 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9188set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9190$as_echo_n "checking for $ac_word... " >&6; }
9191if test "${ac_cv_prog_WINDRES+set}" = set; then :
9192 $as_echo_n "(cached) " >&6
ca9f4b81 9193else
2693c0b0
PB
9194 if test -n "$WINDRES"; then
9195 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 9196else
1c710c3c
DJ
9197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9198for as_dir in $PATH
9199do
9200 IFS=$as_save_IFS
9201 test -z "$as_dir" && as_dir=.
5213506e
RW
9202 for ac_exec_ext in '' $ac_executable_extensions; do
9203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9204 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9206 break 2
9207 fi
9208done
5213506e
RW
9209 done
9210IFS=$as_save_IFS
1c710c3c 9211
ca9f4b81
AO
9212fi
9213fi
1c710c3c 9214WINDRES=$ac_cv_prog_WINDRES
2693c0b0 9215if test -n "$WINDRES"; then
5213506e
RW
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9217$as_echo "$WINDRES" >&6; }
ca9f4b81 9218else
5213506e
RW
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9220$as_echo "no" >&6; }
ca9f4b81 9221fi
1c710c3c 9222
5213506e 9223
2693c0b0
PB
9224 fi
9225 test -n "$ac_cv_prog_WINDRES" && break
9226done
9227
9228if test -z "$ac_cv_prog_WINDRES" ; then
9229 set dummy windres
9230 if test $build = $host ; then
9231 WINDRES="$2"
ca9f4b81 9232 else
2693c0b0 9233 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9234 fi
ca9f4b81
AO
9235fi
9236
278a7a38
AO
9237
9238
901119ae
KT
9239if test -n "$WINDMC"; then
9240 ac_cv_prog_WINDMC=$WINDMC
9241elif test -n "$ac_cv_prog_WINDMC"; then
9242 WINDMC=$ac_cv_prog_WINDMC
9243fi
9244
9245if test -n "$ac_cv_prog_WINDMC"; then
9246 for ncn_progname in windmc; do
9247 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9248set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9250$as_echo_n "checking for $ac_word... " >&6; }
9251if test "${ac_cv_prog_WINDMC+set}" = set; then :
9252 $as_echo_n "(cached) " >&6
901119ae
KT
9253else
9254 if test -n "$WINDMC"; then
9255 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9256else
9257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9258for as_dir in $PATH
9259do
9260 IFS=$as_save_IFS
9261 test -z "$as_dir" && as_dir=.
5213506e
RW
9262 for ac_exec_ext in '' $ac_executable_extensions; do
9263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9264 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9266 break 2
9267 fi
9268done
5213506e
RW
9269 done
9270IFS=$as_save_IFS
901119ae
KT
9271
9272fi
9273fi
9274WINDMC=$ac_cv_prog_WINDMC
9275if test -n "$WINDMC"; then
5213506e
RW
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9277$as_echo "$WINDMC" >&6; }
901119ae 9278else
5213506e
RW
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9280$as_echo "no" >&6; }
901119ae
KT
9281fi
9282
5213506e 9283
901119ae
KT
9284 done
9285fi
9286
9287for ncn_progname in windmc; do
9288 if test -n "$ncn_tool_prefix"; then
9289 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9290set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9292$as_echo_n "checking for $ac_word... " >&6; }
9293if test "${ac_cv_prog_WINDMC+set}" = set; then :
9294 $as_echo_n "(cached) " >&6
901119ae
KT
9295else
9296 if test -n "$WINDMC"; then
9297 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9298else
9299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9300for as_dir in $PATH
9301do
9302 IFS=$as_save_IFS
9303 test -z "$as_dir" && as_dir=.
5213506e
RW
9304 for ac_exec_ext in '' $ac_executable_extensions; do
9305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9306 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9308 break 2
9309 fi
9310done
5213506e
RW
9311 done
9312IFS=$as_save_IFS
901119ae
KT
9313
9314fi
9315fi
9316WINDMC=$ac_cv_prog_WINDMC
9317if test -n "$WINDMC"; then
5213506e
RW
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9319$as_echo "$WINDMC" >&6; }
901119ae 9320else
5213506e
RW
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9322$as_echo "no" >&6; }
901119ae
KT
9323fi
9324
5213506e 9325
901119ae
KT
9326 fi
9327 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9328 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9329set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9331$as_echo_n "checking for $ac_word... " >&6; }
9332if test "${ac_cv_prog_WINDMC+set}" = set; then :
9333 $as_echo_n "(cached) " >&6
901119ae
KT
9334else
9335 if test -n "$WINDMC"; then
9336 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9337else
9338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9339for as_dir in $PATH
9340do
9341 IFS=$as_save_IFS
9342 test -z "$as_dir" && as_dir=.
5213506e
RW
9343 for ac_exec_ext in '' $ac_executable_extensions; do
9344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9345 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9347 break 2
9348 fi
9349done
5213506e
RW
9350 done
9351IFS=$as_save_IFS
901119ae
KT
9352
9353fi
9354fi
9355WINDMC=$ac_cv_prog_WINDMC
9356if test -n "$WINDMC"; then
5213506e
RW
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9358$as_echo "$WINDMC" >&6; }
901119ae 9359else
5213506e
RW
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9361$as_echo "no" >&6; }
901119ae
KT
9362fi
9363
5213506e 9364
901119ae
KT
9365 fi
9366 test -n "$ac_cv_prog_WINDMC" && break
9367done
9368
9369if test -z "$ac_cv_prog_WINDMC" ; then
9370 set dummy windmc
9371 if test $build = $host ; then
9372 WINDMC="$2"
9373 else
9374 WINDMC="${ncn_tool_prefix}$2"
9375 fi
9376fi
9377
9378
9379
278a7a38
AO
9380if test -n "$OBJCOPY"; then
9381 ac_cv_prog_OBJCOPY=$OBJCOPY
9382elif test -n "$ac_cv_prog_OBJCOPY"; then
9383 OBJCOPY=$ac_cv_prog_OBJCOPY
9384fi
9385
9386if test -n "$ac_cv_prog_OBJCOPY"; then
9387 for ncn_progname in objcopy; do
9388 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9389set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9391$as_echo_n "checking for $ac_word... " >&6; }
9392if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9393 $as_echo_n "(cached) " >&6
278a7a38
AO
9394else
9395 if test -n "$OBJCOPY"; then
9396 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9397else
9398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9399for as_dir in $PATH
9400do
9401 IFS=$as_save_IFS
9402 test -z "$as_dir" && as_dir=.
5213506e
RW
9403 for ac_exec_ext in '' $ac_executable_extensions; do
9404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9405 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9407 break 2
9408 fi
9409done
5213506e
RW
9410 done
9411IFS=$as_save_IFS
278a7a38
AO
9412
9413fi
9414fi
9415OBJCOPY=$ac_cv_prog_OBJCOPY
9416if test -n "$OBJCOPY"; then
5213506e
RW
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9418$as_echo "$OBJCOPY" >&6; }
278a7a38 9419else
5213506e
RW
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9421$as_echo "no" >&6; }
278a7a38
AO
9422fi
9423
5213506e 9424
278a7a38
AO
9425 done
9426fi
9427
9428for ncn_progname in objcopy; do
2693c0b0
PB
9429 if test -n "$ncn_tool_prefix"; then
9430 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9431set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9433$as_echo_n "checking for $ac_word... " >&6; }
9434if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9435 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9436else
9437 if test -n "$OBJCOPY"; then
9438 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9439else
1c710c3c
DJ
9440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9441for as_dir in $PATH
9442do
9443 IFS=$as_save_IFS
9444 test -z "$as_dir" && as_dir=.
5213506e
RW
9445 for ac_exec_ext in '' $ac_executable_extensions; do
9446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9447 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9449 break 2
9450 fi
9451done
5213506e
RW
9452 done
9453IFS=$as_save_IFS
1c710c3c 9454
ca9f4b81
AO
9455fi
9456fi
1c710c3c 9457OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 9458if test -n "$OBJCOPY"; then
5213506e
RW
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9460$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9461else
5213506e
RW
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9463$as_echo "no" >&6; }
ca9f4b81
AO
9464fi
9465
5213506e 9466
2693c0b0
PB
9467 fi
9468 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9469 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9470set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9472$as_echo_n "checking for $ac_word... " >&6; }
9473if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9474 $as_echo_n "(cached) " >&6
ca9f4b81 9475else
2693c0b0
PB
9476 if test -n "$OBJCOPY"; then
9477 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 9478else
1c710c3c
DJ
9479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9480for as_dir in $PATH
9481do
9482 IFS=$as_save_IFS
9483 test -z "$as_dir" && as_dir=.
5213506e
RW
9484 for ac_exec_ext in '' $ac_executable_extensions; do
9485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9486 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9488 break 2
9489 fi
9490done
5213506e
RW
9491 done
9492IFS=$as_save_IFS
1c710c3c 9493
ca9f4b81
AO
9494fi
9495fi
1c710c3c 9496OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 9497if test -n "$OBJCOPY"; then
5213506e
RW
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9499$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9500else
5213506e
RW
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9502$as_echo "no" >&6; }
ca9f4b81 9503fi
1c710c3c 9504
5213506e 9505
2693c0b0
PB
9506 fi
9507 test -n "$ac_cv_prog_OBJCOPY" && break
9508done
9509
9510if test -z "$ac_cv_prog_OBJCOPY" ; then
9511 set dummy objcopy
9512 if test $build = $host ; then
9513 OBJCOPY="$2"
ca9f4b81 9514 else
2693c0b0 9515 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 9516 fi
ca9f4b81
AO
9517fi
9518
278a7a38
AO
9519
9520
9521if test -n "$OBJDUMP"; then
9522 ac_cv_prog_OBJDUMP=$OBJDUMP
9523elif test -n "$ac_cv_prog_OBJDUMP"; then
9524 OBJDUMP=$ac_cv_prog_OBJDUMP
9525fi
9526
9527if test -n "$ac_cv_prog_OBJDUMP"; then
9528 for ncn_progname in objdump; do
9529 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9530set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9532$as_echo_n "checking for $ac_word... " >&6; }
9533if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9534 $as_echo_n "(cached) " >&6
278a7a38
AO
9535else
9536 if test -n "$OBJDUMP"; then
9537 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9538else
9539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9540for as_dir in $PATH
9541do
9542 IFS=$as_save_IFS
9543 test -z "$as_dir" && as_dir=.
5213506e
RW
9544 for ac_exec_ext in '' $ac_executable_extensions; do
9545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9546 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9548 break 2
9549 fi
9550done
5213506e
RW
9551 done
9552IFS=$as_save_IFS
278a7a38
AO
9553
9554fi
9555fi
9556OBJDUMP=$ac_cv_prog_OBJDUMP
9557if test -n "$OBJDUMP"; then
5213506e
RW
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9559$as_echo "$OBJDUMP" >&6; }
278a7a38 9560else
5213506e
RW
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9562$as_echo "no" >&6; }
278a7a38
AO
9563fi
9564
5213506e 9565
278a7a38
AO
9566 done
9567fi
9568
9569for ncn_progname in objdump; do
2693c0b0
PB
9570 if test -n "$ncn_tool_prefix"; then
9571 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9572set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9574$as_echo_n "checking for $ac_word... " >&6; }
9575if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9576 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9577else
9578 if test -n "$OBJDUMP"; then
9579 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9580else
1c710c3c
DJ
9581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9582for as_dir in $PATH
9583do
9584 IFS=$as_save_IFS
9585 test -z "$as_dir" && as_dir=.
5213506e
RW
9586 for ac_exec_ext in '' $ac_executable_extensions; do
9587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9588 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9590 break 2
9591 fi
9592done
5213506e
RW
9593 done
9594IFS=$as_save_IFS
1c710c3c 9595
ca9f4b81
AO
9596fi
9597fi
1c710c3c 9598OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 9599if test -n "$OBJDUMP"; then
5213506e
RW
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9601$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9602else
5213506e
RW
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9604$as_echo "no" >&6; }
ca9f4b81
AO
9605fi
9606
5213506e 9607
2693c0b0
PB
9608 fi
9609 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9610 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9611set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9613$as_echo_n "checking for $ac_word... " >&6; }
9614if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9615 $as_echo_n "(cached) " >&6
ca9f4b81 9616else
2693c0b0
PB
9617 if test -n "$OBJDUMP"; then
9618 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 9619else
1c710c3c
DJ
9620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9621for as_dir in $PATH
9622do
9623 IFS=$as_save_IFS
9624 test -z "$as_dir" && as_dir=.
5213506e
RW
9625 for ac_exec_ext in '' $ac_executable_extensions; do
9626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9627 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9629 break 2
9630 fi
9631done
5213506e
RW
9632 done
9633IFS=$as_save_IFS
1c710c3c 9634
ca9f4b81
AO
9635fi
9636fi
1c710c3c 9637OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 9638if test -n "$OBJDUMP"; then
5213506e
RW
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9640$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9641else
5213506e
RW
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9643$as_echo "no" >&6; }
ca9f4b81 9644fi
1c710c3c 9645
5213506e 9646
2693c0b0
PB
9647 fi
9648 test -n "$ac_cv_prog_OBJDUMP" && break
9649done
9650
9651if test -z "$ac_cv_prog_OBJDUMP" ; then
9652 set dummy objdump
9653 if test $build = $host ; then
9654 OBJDUMP="$2"
ca9f4b81 9655 else
2693c0b0 9656 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 9657 fi
ca9f4b81
AO
9658fi
9659
671aa708
NN
9660
9661
e7a82751
RM
9662if test -n "$READELF"; then
9663 ac_cv_prog_READELF=$READELF
9664elif test -n "$ac_cv_prog_READELF"; then
9665 READELF=$ac_cv_prog_READELF
9666fi
9667
9668if test -n "$ac_cv_prog_READELF"; then
9669 for ncn_progname in readelf; do
9670 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9671set dummy ${ncn_progname}; ac_word=$2
9672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9673$as_echo_n "checking for $ac_word... " >&6; }
9674if test "${ac_cv_prog_READELF+set}" = set; then :
9675 $as_echo_n "(cached) " >&6
9676else
9677 if test -n "$READELF"; then
9678 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9679else
9680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9681for as_dir in $PATH
9682do
9683 IFS=$as_save_IFS
9684 test -z "$as_dir" && as_dir=.
9685 for ac_exec_ext in '' $ac_executable_extensions; do
9686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9687 ac_cv_prog_READELF="${ncn_progname}"
9688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9689 break 2
9690 fi
9691done
9692 done
9693IFS=$as_save_IFS
9694
9695fi
9696fi
9697READELF=$ac_cv_prog_READELF
9698if test -n "$READELF"; then
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9700$as_echo "$READELF" >&6; }
9701else
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9703$as_echo "no" >&6; }
9704fi
9705
9706
9707 done
9708fi
9709
9710for ncn_progname in readelf; do
9711 if test -n "$ncn_tool_prefix"; then
9712 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9713set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9715$as_echo_n "checking for $ac_word... " >&6; }
9716if test "${ac_cv_prog_READELF+set}" = set; then :
9717 $as_echo_n "(cached) " >&6
9718else
9719 if test -n "$READELF"; then
9720 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9721else
9722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9723for as_dir in $PATH
9724do
9725 IFS=$as_save_IFS
9726 test -z "$as_dir" && as_dir=.
9727 for ac_exec_ext in '' $ac_executable_extensions; do
9728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9729 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9731 break 2
9732 fi
9733done
9734 done
9735IFS=$as_save_IFS
9736
9737fi
9738fi
9739READELF=$ac_cv_prog_READELF
9740if test -n "$READELF"; then
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9742$as_echo "$READELF" >&6; }
9743else
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9745$as_echo "no" >&6; }
9746fi
9747
9748
9749 fi
9750 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9751 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9752set dummy ${ncn_progname}; ac_word=$2
9753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9754$as_echo_n "checking for $ac_word... " >&6; }
9755if test "${ac_cv_prog_READELF+set}" = set; then :
9756 $as_echo_n "(cached) " >&6
9757else
9758 if test -n "$READELF"; then
9759 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9760else
9761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9762for as_dir in $PATH
9763do
9764 IFS=$as_save_IFS
9765 test -z "$as_dir" && as_dir=.
9766 for ac_exec_ext in '' $ac_executable_extensions; do
9767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9768 ac_cv_prog_READELF="${ncn_progname}"
9769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9770 break 2
9771 fi
9772done
9773 done
9774IFS=$as_save_IFS
9775
9776fi
9777fi
9778READELF=$ac_cv_prog_READELF
9779if test -n "$READELF"; then
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9781$as_echo "$READELF" >&6; }
9782else
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9784$as_echo "no" >&6; }
9785fi
9786
9787
9788 fi
9789 test -n "$ac_cv_prog_READELF" && break
9790done
9791
9792if test -z "$ac_cv_prog_READELF" ; then
9793 set dummy readelf
9794 if test $build = $host ; then
9795 READELF="$2"
9796 else
9797 READELF="${ncn_tool_prefix}$2"
9798 fi
9799fi
9800
9801
9802
671aa708
NN
9803
9804
9805
2abefe3d 9806# Target tools.
1c710c3c 9807
5213506e
RW
9808# Check whether --with-build-time-tools was given.
9809if test "${with_build_time_tools+set}" = set; then :
9810 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
9811 x/*) ;;
9812 *)
9813 with_build_time_tools=
5213506e
RW
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9815$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
9816 ;;
9817 esac
ca9f4b81 9818else
e8b05380 9819 with_build_time_tools=
5213506e
RW
9820fi
9821
ca9f4b81 9822
278a7a38
AO
9823
9824
9825if test -n "$CC_FOR_TARGET"; then
9826 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9827elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9828 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9829fi
9830
9831if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9832 for ncn_progname in cc gcc; do
9833 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9834set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9836$as_echo_n "checking for $ac_word... " >&6; }
9837if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9838 $as_echo_n "(cached) " >&6
278a7a38
AO
9839else
9840 if test -n "$CC_FOR_TARGET"; then
9841 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9842else
9843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9844for as_dir in $PATH
9845do
9846 IFS=$as_save_IFS
9847 test -z "$as_dir" && as_dir=.
5213506e
RW
9848 for ac_exec_ext in '' $ac_executable_extensions; do
9849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9850 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9852 break 2
9853 fi
9854done
5213506e
RW
9855 done
9856IFS=$as_save_IFS
278a7a38
AO
9857
9858fi
9859fi
9860CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9861if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9863$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 9864else
5213506e
RW
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9866$as_echo "no" >&6; }
278a7a38
AO
9867fi
9868
5213506e 9869
278a7a38
AO
9870 done
9871fi
9872
9873if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9874 for ncn_progname in cc gcc; do
5213506e
RW
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9876$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9877 if test -x $with_build_time_tools/${ncn_progname}; then
9878 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9880$as_echo "yes" >&6; }
72a7ab82 9881 break
e8b05380 9882 else
5213506e
RW
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9884$as_echo "no" >&6; }
72a7ab82
AP
9885 fi
9886 done
4de997d1
PB
9887fi
9888
e8b05380
PB
9889if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9890 for ncn_progname in cc gcc; do
9891 if test -n "$ncn_target_tool_prefix"; then
9892 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9893set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9895$as_echo_n "checking for $ac_word... " >&6; }
9896if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9897 $as_echo_n "(cached) " >&6
4de997d1
PB
9898else
9899 if test -n "$CC_FOR_TARGET"; then
9900 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9901else
1c710c3c
DJ
9902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9903for as_dir in $PATH
9904do
9905 IFS=$as_save_IFS
9906 test -z "$as_dir" && as_dir=.
5213506e
RW
9907 for ac_exec_ext in '' $ac_executable_extensions; do
9908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9909 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9911 break 2
9912 fi
9913done
5213506e
RW
9914 done
9915IFS=$as_save_IFS
1c710c3c 9916
4de997d1
PB
9917fi
9918fi
1c710c3c 9919CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 9920if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9922$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9923else
5213506e
RW
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9925$as_echo "no" >&6; }
4de997d1
PB
9926fi
9927
5213506e 9928
e8b05380
PB
9929 fi
9930 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9931 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9932set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9934$as_echo_n "checking for $ac_word... " >&6; }
9935if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9936 $as_echo_n "(cached) " >&6
4de997d1 9937else
2693c0b0
PB
9938 if test -n "$CC_FOR_TARGET"; then
9939 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 9940else
1c710c3c
DJ
9941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9942for as_dir in $PATH
9943do
9944 IFS=$as_save_IFS
9945 test -z "$as_dir" && as_dir=.
5213506e
RW
9946 for ac_exec_ext in '' $ac_executable_extensions; do
9947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9948 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9950 break 2
9951 fi
9952done
5213506e
RW
9953 done
9954IFS=$as_save_IFS
1c710c3c 9955
4de997d1
PB
9956fi
9957fi
1c710c3c 9958CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 9959if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9961$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9962else
5213506e
RW
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9964$as_echo "no" >&6; }
4de997d1 9965fi
1c710c3c 9966
5213506e 9967
e8b05380
PB
9968 fi
9969 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9970 done
9971fi
1c710c3c 9972
2693c0b0
PB
9973if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9974 set dummy cc gcc
9975 if test $build = $target ; then
9976 CC_FOR_TARGET="$2"
4de997d1 9977 else
2693c0b0 9978 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9979 fi
1c00b503
PB
9980else
9981 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
9982fi
9983
278a7a38
AO
9984
9985
9986if test -n "$CXX_FOR_TARGET"; then
9987 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9988elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9989 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9990fi
9991
9992if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9993 for ncn_progname in c++ g++ cxx gxx; do
9994 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9995set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9997$as_echo_n "checking for $ac_word... " >&6; }
9998if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9999 $as_echo_n "(cached) " >&6
278a7a38
AO
10000else
10001 if test -n "$CXX_FOR_TARGET"; then
10002 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10003else
10004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10005for as_dir in $PATH
10006do
10007 IFS=$as_save_IFS
10008 test -z "$as_dir" && as_dir=.
5213506e
RW
10009 for ac_exec_ext in '' $ac_executable_extensions; do
10010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10011 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10013 break 2
10014 fi
10015done
5213506e
RW
10016 done
10017IFS=$as_save_IFS
278a7a38
AO
10018
10019fi
10020fi
10021CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10022if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10024$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 10025else
5213506e
RW
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10027$as_echo "no" >&6; }
278a7a38
AO
10028fi
10029
5213506e 10030
278a7a38
AO
10031 done
10032fi
10033
10034if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10035 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10037$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10038 if test -x $with_build_time_tools/${ncn_progname}; then
10039 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10041$as_echo "yes" >&6; }
e8b05380
PB
10042 break
10043 else
5213506e
RW
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10045$as_echo "no" >&6; }
e8b05380
PB
10046 fi
10047 done
10048fi
10049
10050if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10051 for ncn_progname in c++ g++ cxx gxx; do
10052 if test -n "$ncn_target_tool_prefix"; then
10053 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10054set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10056$as_echo_n "checking for $ac_word... " >&6; }
10057if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10058 $as_echo_n "(cached) " >&6
4de997d1
PB
10059else
10060 if test -n "$CXX_FOR_TARGET"; then
10061 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10062else
1c710c3c
DJ
10063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10064for as_dir in $PATH
10065do
10066 IFS=$as_save_IFS
10067 test -z "$as_dir" && as_dir=.
5213506e
RW
10068 for ac_exec_ext in '' $ac_executable_extensions; do
10069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10070 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10072 break 2
10073 fi
10074done
5213506e
RW
10075 done
10076IFS=$as_save_IFS
1c710c3c 10077
4de997d1
PB
10078fi
10079fi
1c710c3c 10080CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 10081if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10083$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10084else
5213506e
RW
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10086$as_echo "no" >&6; }
4de997d1
PB
10087fi
10088
5213506e 10089
e8b05380
PB
10090 fi
10091 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10092 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10093set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10095$as_echo_n "checking for $ac_word... " >&6; }
10096if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10097 $as_echo_n "(cached) " >&6
4de997d1 10098else
2693c0b0
PB
10099 if test -n "$CXX_FOR_TARGET"; then
10100 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 10101else
1c710c3c
DJ
10102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10103for as_dir in $PATH
10104do
10105 IFS=$as_save_IFS
10106 test -z "$as_dir" && as_dir=.
5213506e
RW
10107 for ac_exec_ext in '' $ac_executable_extensions; do
10108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10109 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10111 break 2
10112 fi
10113done
5213506e
RW
10114 done
10115IFS=$as_save_IFS
1c710c3c 10116
4de997d1
PB
10117fi
10118fi
1c710c3c 10119CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 10120if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10122$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10123else
5213506e
RW
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10125$as_echo "no" >&6; }
4de997d1 10126fi
1c710c3c 10127
5213506e 10128
e8b05380
PB
10129 fi
10130 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10131 done
10132fi
1c710c3c 10133
2693c0b0
PB
10134if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10135 set dummy c++ g++ cxx gxx
10136 if test $build = $target ; then
10137 CXX_FOR_TARGET="$2"
4de997d1 10138 else
2693c0b0 10139 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10140 fi
1c00b503
PB
10141else
10142 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
10143fi
10144
278a7a38
AO
10145
10146
10147if test -n "$GCC_FOR_TARGET"; then
10148 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10149elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10150 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10151fi
10152
10153if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10154 for ncn_progname in gcc; do
10155 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10156set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10158$as_echo_n "checking for $ac_word... " >&6; }
10159if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10160 $as_echo_n "(cached) " >&6
278a7a38
AO
10161else
10162 if test -n "$GCC_FOR_TARGET"; then
10163 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10164else
10165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10166for as_dir in $PATH
10167do
10168 IFS=$as_save_IFS
10169 test -z "$as_dir" && as_dir=.
5213506e
RW
10170 for ac_exec_ext in '' $ac_executable_extensions; do
10171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10172 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10174 break 2
10175 fi
10176done
5213506e
RW
10177 done
10178IFS=$as_save_IFS
278a7a38
AO
10179
10180fi
10181fi
10182GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10183if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10185$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 10186else
5213506e
RW
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10188$as_echo "no" >&6; }
278a7a38
AO
10189fi
10190
5213506e 10191
278a7a38
AO
10192 done
10193fi
10194
10195if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10196 for ncn_progname in gcc; do
5213506e
RW
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10198$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10199 if test -x $with_build_time_tools/${ncn_progname}; then
10200 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10202$as_echo "yes" >&6; }
e8b05380
PB
10203 break
10204 else
5213506e
RW
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10206$as_echo "no" >&6; }
e8b05380
PB
10207 fi
10208 done
10209fi
10210
10211if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10212 for ncn_progname in gcc; do
10213 if test -n "$ncn_target_tool_prefix"; then
10214 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10215set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10217$as_echo_n "checking for $ac_word... " >&6; }
10218if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10219 $as_echo_n "(cached) " >&6
ca9f4b81 10220else
e8b05380
PB
10221 if test -n "$GCC_FOR_TARGET"; then
10222 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10223else
1c710c3c
DJ
10224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10225for as_dir in $PATH
10226do
10227 IFS=$as_save_IFS
10228 test -z "$as_dir" && as_dir=.
5213506e
RW
10229 for ac_exec_ext in '' $ac_executable_extensions; do
10230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10231 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10233 break 2
10234 fi
10235done
5213506e
RW
10236 done
10237IFS=$as_save_IFS
1c710c3c 10238
ca9f4b81
AO
10239fi
10240fi
1c710c3c 10241GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10242if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10244$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10245else
5213506e
RW
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10247$as_echo "no" >&6; }
ca9f4b81
AO
10248fi
10249
5213506e 10250
e8b05380
PB
10251 fi
10252 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10253 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10254set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10256$as_echo_n "checking for $ac_word... " >&6; }
10257if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10258 $as_echo_n "(cached) " >&6
ca9f4b81 10259else
e8b05380
PB
10260 if test -n "$GCC_FOR_TARGET"; then
10261 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10262else
1c710c3c
DJ
10263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10264for as_dir in $PATH
10265do
10266 IFS=$as_save_IFS
10267 test -z "$as_dir" && as_dir=.
5213506e
RW
10268 for ac_exec_ext in '' $ac_executable_extensions; do
10269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10270 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10272 break 2
10273 fi
10274done
5213506e
RW
10275 done
10276IFS=$as_save_IFS
1c710c3c 10277
ca9f4b81
AO
10278fi
10279fi
1c710c3c 10280GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10281if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10283$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10284else
5213506e
RW
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10286$as_echo "no" >&6; }
ca9f4b81 10287fi
1c710c3c 10288
5213506e 10289
e8b05380
PB
10290 fi
10291 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10292 done
10293fi
1c710c3c 10294
e8b05380
PB
10295if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10296 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10297else
10298 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10299fi
10300
278a7a38
AO
10301
10302
10303if test -n "$GCJ_FOR_TARGET"; then
10304 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10305elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10306 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10307fi
10308
10309if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10310 for ncn_progname in gcj; do
10311 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10312set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10314$as_echo_n "checking for $ac_word... " >&6; }
10315if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10316 $as_echo_n "(cached) " >&6
278a7a38
AO
10317else
10318 if test -n "$GCJ_FOR_TARGET"; then
10319 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10320else
10321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10322for as_dir in $PATH
10323do
10324 IFS=$as_save_IFS
10325 test -z "$as_dir" && as_dir=.
5213506e
RW
10326 for ac_exec_ext in '' $ac_executable_extensions; do
10327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10328 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10330 break 2
10331 fi
10332done
5213506e
RW
10333 done
10334IFS=$as_save_IFS
278a7a38
AO
10335
10336fi
10337fi
10338GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10339if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10341$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10342else
5213506e
RW
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10344$as_echo "no" >&6; }
278a7a38
AO
10345fi
10346
5213506e 10347
278a7a38
AO
10348 done
10349fi
10350
10351if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10352 for ncn_progname in gcj; do
5213506e
RW
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10354$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10355 if test -x $with_build_time_tools/${ncn_progname}; then
10356 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10358$as_echo "yes" >&6; }
e8b05380
PB
10359 break
10360 else
5213506e
RW
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10362$as_echo "no" >&6; }
e8b05380
PB
10363 fi
10364 done
10365fi
10366
10367if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10368 for ncn_progname in gcj; do
10369 if test -n "$ncn_target_tool_prefix"; then
10370 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10371set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10373$as_echo_n "checking for $ac_word... " >&6; }
10374if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10375 $as_echo_n "(cached) " >&6
e8b05380 10376else
fb0103e5
RG
10377 if test -n "$GCJ_FOR_TARGET"; then
10378 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10379else
1c710c3c
DJ
10380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10381for as_dir in $PATH
10382do
10383 IFS=$as_save_IFS
10384 test -z "$as_dir" && as_dir=.
5213506e
RW
10385 for ac_exec_ext in '' $ac_executable_extensions; do
10386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10387 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10389 break 2
10390 fi
10391done
5213506e
RW
10392 done
10393IFS=$as_save_IFS
1c710c3c 10394
e8b05380
PB
10395fi
10396fi
278a7a38
AO
10397GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10398if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10400$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10401else
5213506e
RW
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10403$as_echo "no" >&6; }
278a7a38
AO
10404fi
10405
5213506e 10406
278a7a38
AO
10407 fi
10408 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10409 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10410set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10412$as_echo_n "checking for $ac_word... " >&6; }
10413if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10414 $as_echo_n "(cached) " >&6
278a7a38
AO
10415else
10416 if test -n "$GCJ_FOR_TARGET"; then
10417 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10418else
10419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10420for as_dir in $PATH
10421do
10422 IFS=$as_save_IFS
10423 test -z "$as_dir" && as_dir=.
5213506e
RW
10424 for ac_exec_ext in '' $ac_executable_extensions; do
10425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10426 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10428 break 2
10429 fi
10430done
5213506e
RW
10431 done
10432IFS=$as_save_IFS
278a7a38
AO
10433
10434fi
10435fi
10436GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10437if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10439$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10440else
5213506e
RW
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10442$as_echo "no" >&6; }
278a7a38
AO
10443fi
10444
5213506e 10445
278a7a38
AO
10446 fi
10447 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10448 done
10449fi
10450
10451if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10452 set dummy gcj
10453 if test $build = $target ; then
10454 GCJ_FOR_TARGET="$2"
10455 else
10456 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10457 fi
1c00b503
PB
10458else
10459 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
10460fi
10461
10462
10463
10464if test -n "$GFORTRAN_FOR_TARGET"; then
10465 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10466elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10467 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10468fi
10469
278a7a38
AO
10470if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10471 for ncn_progname in gfortran; do
10472 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10473set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10475$as_echo_n "checking for $ac_word... " >&6; }
10476if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10477 $as_echo_n "(cached) " >&6
e8b05380 10478else
278a7a38
AO
10479 if test -n "$GFORTRAN_FOR_TARGET"; then
10480 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10481else
1c710c3c
DJ
10482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10483for as_dir in $PATH
10484do
10485 IFS=$as_save_IFS
10486 test -z "$as_dir" && as_dir=.
5213506e
RW
10487 for ac_exec_ext in '' $ac_executable_extensions; do
10488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10489 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10491 break 2
10492 fi
10493done
5213506e
RW
10494 done
10495IFS=$as_save_IFS
1c710c3c 10496
e8b05380
PB
10497fi
10498fi
278a7a38
AO
10499GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10500if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10502$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10503else
5213506e
RW
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10505$as_echo "no" >&6; }
e8b05380 10506fi
1c710c3c 10507
5213506e 10508
e8b05380
PB
10509 done
10510fi
1c710c3c 10511
278a7a38 10512if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10513 for ncn_progname in gfortran; do
5213506e
RW
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10515$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10516 if test -x $with_build_time_tools/${ncn_progname}; then
10517 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10519$as_echo "yes" >&6; }
e8b05380
PB
10520 break
10521 else
5213506e
RW
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10523$as_echo "no" >&6; }
e8b05380
PB
10524 fi
10525 done
10526fi
10527
10528if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10529 for ncn_progname in gfortran; do
10530 if test -n "$ncn_target_tool_prefix"; then
10531 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10532set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10534$as_echo_n "checking for $ac_word... " >&6; }
10535if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10536 $as_echo_n "(cached) " >&6
e8b05380
PB
10537else
10538 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10539 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10540else
10541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10542for as_dir in $PATH
10543do
10544 IFS=$as_save_IFS
10545 test -z "$as_dir" && as_dir=.
5213506e
RW
10546 for ac_exec_ext in '' $ac_executable_extensions; do
10547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10548 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10550 break 2
10551 fi
10552done
5213506e
RW
10553 done
10554IFS=$as_save_IFS
1c710c3c 10555
e8b05380
PB
10556fi
10557fi
1c710c3c 10558GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10559if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10561$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10562else
5213506e
RW
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10564$as_echo "no" >&6; }
e8b05380
PB
10565fi
10566
5213506e 10567
e8b05380
PB
10568 fi
10569 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10570 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10571set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10573$as_echo_n "checking for $ac_word... " >&6; }
10574if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10575 $as_echo_n "(cached) " >&6
e8b05380
PB
10576else
10577 if test -n "$GFORTRAN_FOR_TARGET"; then
10578 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10579else
1c710c3c
DJ
10580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10581for as_dir in $PATH
10582do
10583 IFS=$as_save_IFS
10584 test -z "$as_dir" && as_dir=.
5213506e
RW
10585 for ac_exec_ext in '' $ac_executable_extensions; do
10586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10587 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10589 break 2
10590 fi
10591done
5213506e
RW
10592 done
10593IFS=$as_save_IFS
1c710c3c 10594
e8b05380
PB
10595fi
10596fi
1c710c3c 10597GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10598if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10600$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10601else
5213506e
RW
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10603$as_echo "no" >&6; }
e8b05380 10604fi
1c710c3c 10605
5213506e 10606
e8b05380
PB
10607 fi
10608 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10609 done
10610fi
1c710c3c 10611
e8b05380
PB
10612if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10613 set dummy gfortran
2693c0b0 10614 if test $build = $target ; then
e8b05380 10615 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 10616 else
e8b05380
PB
10617 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10618 fi
1c00b503
PB
10619else
10620 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
10621fi
10622
10623
10624
632e2a07
ILT
10625if test -n "$GOC_FOR_TARGET"; then
10626 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10627elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10628 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10629fi
10630
10631if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10632 for ncn_progname in gccgo; do
10633 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10634set dummy ${ncn_progname}; ac_word=$2
10635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10636$as_echo_n "checking for $ac_word... " >&6; }
10637if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10638 $as_echo_n "(cached) " >&6
10639else
10640 if test -n "$GOC_FOR_TARGET"; then
10641 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10642else
10643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10644for as_dir in $PATH
10645do
10646 IFS=$as_save_IFS
10647 test -z "$as_dir" && as_dir=.
10648 for ac_exec_ext in '' $ac_executable_extensions; do
10649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10650 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10652 break 2
10653 fi
10654done
10655 done
10656IFS=$as_save_IFS
10657
10658fi
10659fi
10660GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10661if test -n "$GOC_FOR_TARGET"; then
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10663$as_echo "$GOC_FOR_TARGET" >&6; }
10664else
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10666$as_echo "no" >&6; }
10667fi
10668
10669
10670 done
10671fi
10672
10673if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10674 for ncn_progname in gccgo; do
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10676$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10677 if test -x $with_build_time_tools/${ncn_progname}; then
10678 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10680$as_echo "yes" >&6; }
10681 break
10682 else
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10684$as_echo "no" >&6; }
10685 fi
10686 done
10687fi
10688
10689if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10690 for ncn_progname in gccgo; do
10691 if test -n "$ncn_target_tool_prefix"; then
10692 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10693set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10695$as_echo_n "checking for $ac_word... " >&6; }
10696if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10697 $as_echo_n "(cached) " >&6
10698else
10699 if test -n "$GOC_FOR_TARGET"; then
10700 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10701else
10702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10703for as_dir in $PATH
10704do
10705 IFS=$as_save_IFS
10706 test -z "$as_dir" && as_dir=.
10707 for ac_exec_ext in '' $ac_executable_extensions; do
10708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10709 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10711 break 2
10712 fi
10713done
10714 done
10715IFS=$as_save_IFS
10716
10717fi
10718fi
10719GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10720if test -n "$GOC_FOR_TARGET"; then
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10722$as_echo "$GOC_FOR_TARGET" >&6; }
10723else
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10725$as_echo "no" >&6; }
10726fi
10727
10728
10729 fi
10730 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10731 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10732set dummy ${ncn_progname}; ac_word=$2
10733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10734$as_echo_n "checking for $ac_word... " >&6; }
10735if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10736 $as_echo_n "(cached) " >&6
10737else
10738 if test -n "$GOC_FOR_TARGET"; then
10739 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10740else
10741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10742for as_dir in $PATH
10743do
10744 IFS=$as_save_IFS
10745 test -z "$as_dir" && as_dir=.
10746 for ac_exec_ext in '' $ac_executable_extensions; do
10747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10748 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10750 break 2
10751 fi
10752done
10753 done
10754IFS=$as_save_IFS
10755
10756fi
10757fi
10758GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10759if test -n "$GOC_FOR_TARGET"; then
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10761$as_echo "$GOC_FOR_TARGET" >&6; }
10762else
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10764$as_echo "no" >&6; }
10765fi
10766
10767
10768 fi
10769 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10770 done
10771fi
10772
10773if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10774 set dummy gccgo
10775 if test $build = $target ; then
10776 GOC_FOR_TARGET="$2"
10777 else
10778 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10779 fi
10780else
10781 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10782fi
10783
10784
10785
e8b05380
PB
10786cat > conftest.c << \EOF
10787#ifdef __GNUC__
10788 gcc_yay;
10789#endif
10790EOF
10791if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10792 have_gcc_for_target=yes
10793else
10794 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10795 have_gcc_for_target=no
10796fi
10797rm conftest.c
10798
10799
10800
10801
10802if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10803 if test -n "$with_build_time_tools"; then
5213506e
RW
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10805$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10806 if test -x $with_build_time_tools/ar; then
10807 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10808 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10810$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 10811 else
5213506e
RW
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10813$as_echo "no" >&6; }
d1f8db0c 10814 fi
e8b05380
PB
10815 elif test $build != $host && test $have_gcc_for_target = yes; then
10816 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
10817 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10818 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
10819 fi
10820fi
3e19841a 10821if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10822 # Extract the first word of "ar", so it can be a program name with args.
10823set dummy ar; ac_word=$2
5213506e
RW
10824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10825$as_echo_n "checking for $ac_word... " >&6; }
10826if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10827 $as_echo_n "(cached) " >&6
e8b05380 10828else
1c710c3c
DJ
10829 case $AR_FOR_TARGET in
10830 [\\/]* | ?:[\\/]*)
e8b05380
PB
10831 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10832 ;;
e8b05380 10833 *)
1c710c3c
DJ
10834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10835for as_dir in $gcc_cv_tool_dirs
10836do
10837 IFS=$as_save_IFS
10838 test -z "$as_dir" && as_dir=.
5213506e
RW
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
1c710c3c 10841 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10843 break 2
10844 fi
10845done
5213506e
RW
10846 done
10847IFS=$as_save_IFS
1c710c3c 10848
e8b05380
PB
10849 ;;
10850esac
10851fi
1c710c3c 10852AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 10853if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10855$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10856else
5213506e
RW
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10858$as_echo "no" >&6; }
4de997d1
PB
10859fi
10860
5213506e 10861
e8b05380
PB
10862fi
10863if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
10864
10865
10866if test -n "$AR_FOR_TARGET"; then
10867 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10868elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10869 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10870fi
10871
10872if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10873 for ncn_progname in ar; do
10874 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10875set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10877$as_echo_n "checking for $ac_word... " >&6; }
10878if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10879 $as_echo_n "(cached) " >&6
278a7a38
AO
10880else
10881 if test -n "$AR_FOR_TARGET"; then
10882 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10883else
10884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10885for as_dir in $PATH
10886do
10887 IFS=$as_save_IFS
10888 test -z "$as_dir" && as_dir=.
5213506e
RW
10889 for ac_exec_ext in '' $ac_executable_extensions; do
10890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10891 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10893 break 2
10894 fi
10895done
5213506e
RW
10896 done
10897IFS=$as_save_IFS
278a7a38
AO
10898
10899fi
10900fi
10901AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10902if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10904$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 10905else
5213506e
RW
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10907$as_echo "no" >&6; }
278a7a38
AO
10908fi
10909
5213506e 10910
278a7a38
AO
10911 done
10912fi
10913
10914if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10915 for ncn_progname in ar; do
5213506e
RW
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10917$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10918 if test -x $with_build_time_tools/${ncn_progname}; then
10919 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10921$as_echo "yes" >&6; }
e8b05380
PB
10922 break
10923 else
5213506e
RW
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10925$as_echo "no" >&6; }
e8b05380
PB
10926 fi
10927 done
10928fi
10929
10930if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10931 for ncn_progname in ar; do
10932 if test -n "$ncn_target_tool_prefix"; then
10933 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10934set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10936$as_echo_n "checking for $ac_word... " >&6; }
10937if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10938 $as_echo_n "(cached) " >&6
4de997d1 10939else
e8b05380
PB
10940 if test -n "$AR_FOR_TARGET"; then
10941 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 10942else
1c710c3c
DJ
10943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10944for as_dir in $PATH
10945do
10946 IFS=$as_save_IFS
10947 test -z "$as_dir" && as_dir=.
5213506e
RW
10948 for ac_exec_ext in '' $ac_executable_extensions; do
10949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10950 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10952 break 2
10953 fi
10954done
5213506e
RW
10955 done
10956IFS=$as_save_IFS
1c710c3c 10957
4de997d1
PB
10958fi
10959fi
1c710c3c 10960AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10961if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10963$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 10964else
5213506e
RW
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10966$as_echo "no" >&6; }
4de997d1
PB
10967fi
10968
5213506e 10969
e8b05380
PB
10970 fi
10971 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10972 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10973set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10975$as_echo_n "checking for $ac_word... " >&6; }
10976if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10977 $as_echo_n "(cached) " >&6
e8b05380
PB
10978else
10979 if test -n "$AR_FOR_TARGET"; then
10980 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10981else
1c710c3c
DJ
10982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10983for as_dir in $PATH
10984do
10985 IFS=$as_save_IFS
10986 test -z "$as_dir" && as_dir=.
5213506e
RW
10987 for ac_exec_ext in '' $ac_executable_extensions; do
10988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10989 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10991 break 2
10992 fi
10993done
5213506e
RW
10994 done
10995IFS=$as_save_IFS
1c710c3c 10996
e8b05380
PB
10997fi
10998fi
1c710c3c 10999AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11000if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11002$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 11003else
5213506e
RW
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11005$as_echo "no" >&6; }
e8b05380 11006fi
1c710c3c 11007
5213506e 11008
e8b05380
PB
11009 fi
11010 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11011 done
11012fi
1c710c3c 11013
e8b05380
PB
11014if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11015 set dummy ar
11016 if test $build = $target ; then
11017 AR_FOR_TARGET="$2"
11018 else
11019 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 11020 fi
1c00b503
PB
11021else
11022 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
11023fi
11024
d1f8db0c
PB
11025else
11026 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
11027fi
11028
11029
11030
11031
11032if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11033 if test -n "$with_build_time_tools"; then
5213506e
RW
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11035$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11036 if test -x $with_build_time_tools/as; then
11037 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11038 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11040$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 11041 else
5213506e
RW
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11043$as_echo "no" >&6; }
d1f8db0c 11044 fi
e8b05380
PB
11045 elif test $build != $host && test $have_gcc_for_target = yes; then
11046 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
11047 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11048 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
11049 fi
11050fi
3e19841a 11051if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11052 # Extract the first word of "as", so it can be a program name with args.
11053set dummy as; ac_word=$2
5213506e
RW
11054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11055$as_echo_n "checking for $ac_word... " >&6; }
11056if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11057 $as_echo_n "(cached) " >&6
e8b05380 11058else
1c710c3c
DJ
11059 case $AS_FOR_TARGET in
11060 [\\/]* | ?:[\\/]*)
e8b05380
PB
11061 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11062 ;;
e8b05380 11063 *)
1c710c3c
DJ
11064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11065for as_dir in $gcc_cv_tool_dirs
11066do
11067 IFS=$as_save_IFS
11068 test -z "$as_dir" && as_dir=.
5213506e
RW
11069 for ac_exec_ext in '' $ac_executable_extensions; do
11070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11071 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11073 break 2
11074 fi
11075done
5213506e
RW
11076 done
11077IFS=$as_save_IFS
1c710c3c 11078
e8b05380
PB
11079 ;;
11080esac
11081fi
1c710c3c 11082AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 11083if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11085$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11086else
5213506e
RW
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11088$as_echo "no" >&6; }
e8b05380
PB
11089fi
11090
5213506e 11091
e8b05380
PB
11092fi
11093if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
11094
11095
11096if test -n "$AS_FOR_TARGET"; then
11097 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11098elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11099 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11100fi
11101
11102if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11103 for ncn_progname in as; do
11104 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11105set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11107$as_echo_n "checking for $ac_word... " >&6; }
11108if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11109 $as_echo_n "(cached) " >&6
278a7a38
AO
11110else
11111 if test -n "$AS_FOR_TARGET"; then
11112 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11113else
11114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11115for as_dir in $PATH
11116do
11117 IFS=$as_save_IFS
11118 test -z "$as_dir" && as_dir=.
5213506e
RW
11119 for ac_exec_ext in '' $ac_executable_extensions; do
11120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11121 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11123 break 2
11124 fi
11125done
5213506e
RW
11126 done
11127IFS=$as_save_IFS
278a7a38
AO
11128
11129fi
11130fi
11131AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11132if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11134$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 11135else
5213506e
RW
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11137$as_echo "no" >&6; }
278a7a38
AO
11138fi
11139
5213506e 11140
278a7a38
AO
11141 done
11142fi
11143
11144if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11145 for ncn_progname in as; do
5213506e
RW
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11147$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11148 if test -x $with_build_time_tools/${ncn_progname}; then
11149 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11151$as_echo "yes" >&6; }
e8b05380
PB
11152 break
11153 else
5213506e
RW
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11155$as_echo "no" >&6; }
e8b05380
PB
11156 fi
11157 done
11158fi
11159
11160if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11161 for ncn_progname in as; do
11162 if test -n "$ncn_target_tool_prefix"; then
11163 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11164set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11166$as_echo_n "checking for $ac_word... " >&6; }
11167if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11168 $as_echo_n "(cached) " >&6
e8b05380
PB
11169else
11170 if test -n "$AS_FOR_TARGET"; then
11171 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11172else
1c710c3c
DJ
11173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11174for as_dir in $PATH
11175do
11176 IFS=$as_save_IFS
11177 test -z "$as_dir" && as_dir=.
5213506e
RW
11178 for ac_exec_ext in '' $ac_executable_extensions; do
11179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11180 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11182 break 2
11183 fi
11184done
5213506e
RW
11185 done
11186IFS=$as_save_IFS
1c710c3c 11187
e8b05380
PB
11188fi
11189fi
1c710c3c 11190AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11191if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11193$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11194else
5213506e
RW
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11196$as_echo "no" >&6; }
e8b05380
PB
11197fi
11198
5213506e 11199
e8b05380
PB
11200 fi
11201 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11202 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11203set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11205$as_echo_n "checking for $ac_word... " >&6; }
11206if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11207 $as_echo_n "(cached) " >&6
4de997d1 11208else
e8b05380
PB
11209 if test -n "$AS_FOR_TARGET"; then
11210 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 11211else
1c710c3c
DJ
11212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11213for as_dir in $PATH
11214do
11215 IFS=$as_save_IFS
11216 test -z "$as_dir" && as_dir=.
5213506e
RW
11217 for ac_exec_ext in '' $ac_executable_extensions; do
11218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11219 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11221 break 2
11222 fi
11223done
5213506e
RW
11224 done
11225IFS=$as_save_IFS
1c710c3c 11226
4de997d1
PB
11227fi
11228fi
1c710c3c 11229AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11230if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11232$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 11233else
5213506e
RW
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11235$as_echo "no" >&6; }
4de997d1 11236fi
1c710c3c 11237
5213506e 11238
e8b05380
PB
11239 fi
11240 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11241 done
11242fi
1c710c3c 11243
e8b05380
PB
11244if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11245 set dummy as
11246 if test $build = $target ; then
11247 AS_FOR_TARGET="$2"
11248 else
11249 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 11250 fi
1c00b503
PB
11251else
11252 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 11253fi
2693c0b0 11254
d1f8db0c
PB
11255else
11256 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
11257fi
11258
e8b05380
PB
11259
11260
11261
11262if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11263 if test -n "$with_build_time_tools"; then
5213506e
RW
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11265$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11266 if test -x $with_build_time_tools/dlltool; then
11267 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11268 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11270$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 11271 else
5213506e
RW
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11273$as_echo "no" >&6; }
d1f8db0c 11274 fi
e8b05380
PB
11275 elif test $build != $host && test $have_gcc_for_target = yes; then
11276 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
11277 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11278 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
11279 fi
11280fi
3e19841a 11281if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11282 # Extract the first word of "dlltool", so it can be a program name with args.
11283set dummy dlltool; ac_word=$2
5213506e
RW
11284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11285$as_echo_n "checking for $ac_word... " >&6; }
11286if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11287 $as_echo_n "(cached) " >&6
4de997d1 11288else
1c710c3c
DJ
11289 case $DLLTOOL_FOR_TARGET in
11290 [\\/]* | ?:[\\/]*)
e8b05380
PB
11291 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11292 ;;
e8b05380 11293 *)
1c710c3c
DJ
11294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11295for as_dir in $gcc_cv_tool_dirs
11296do
11297 IFS=$as_save_IFS
11298 test -z "$as_dir" && as_dir=.
5213506e
RW
11299 for ac_exec_ext in '' $ac_executable_extensions; do
11300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11301 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11303 break 2
11304 fi
11305done
5213506e
RW
11306 done
11307IFS=$as_save_IFS
1c710c3c 11308
e8b05380
PB
11309 ;;
11310esac
4de997d1 11311fi
1c710c3c 11312DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 11313if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11315$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11316else
5213506e
RW
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11318$as_echo "no" >&6; }
4de997d1
PB
11319fi
11320
5213506e 11321
e8b05380
PB
11322fi
11323if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
11324
11325
11326if test -n "$DLLTOOL_FOR_TARGET"; then
11327 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11328elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11329 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11330fi
11331
11332if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11333 for ncn_progname in dlltool; do
11334 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11335set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11337$as_echo_n "checking for $ac_word... " >&6; }
11338if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11339 $as_echo_n "(cached) " >&6
278a7a38
AO
11340else
11341 if test -n "$DLLTOOL_FOR_TARGET"; then
11342 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11343else
11344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11345for as_dir in $PATH
11346do
11347 IFS=$as_save_IFS
11348 test -z "$as_dir" && as_dir=.
5213506e
RW
11349 for ac_exec_ext in '' $ac_executable_extensions; do
11350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11351 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11353 break 2
11354 fi
11355done
5213506e
RW
11356 done
11357IFS=$as_save_IFS
278a7a38
AO
11358
11359fi
11360fi
11361DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11362if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11364$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11365else
5213506e
RW
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11367$as_echo "no" >&6; }
278a7a38
AO
11368fi
11369
5213506e 11370
278a7a38
AO
11371 done
11372fi
11373
11374if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11375 for ncn_progname in dlltool; do
5213506e
RW
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11377$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11378 if test -x $with_build_time_tools/${ncn_progname}; then
11379 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11381$as_echo "yes" >&6; }
e8b05380
PB
11382 break
11383 else
5213506e
RW
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11385$as_echo "no" >&6; }
e8b05380
PB
11386 fi
11387 done
11388fi
11389
11390if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11391 for ncn_progname in dlltool; do
11392 if test -n "$ncn_target_tool_prefix"; then
11393 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11394set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11396$as_echo_n "checking for $ac_word... " >&6; }
11397if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11398 $as_echo_n "(cached) " >&6
4de997d1 11399else
e8b05380
PB
11400 if test -n "$DLLTOOL_FOR_TARGET"; then
11401 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11402else
1c710c3c
DJ
11403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11404for as_dir in $PATH
11405do
11406 IFS=$as_save_IFS
11407 test -z "$as_dir" && as_dir=.
5213506e
RW
11408 for ac_exec_ext in '' $ac_executable_extensions; do
11409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11410 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11412 break 2
11413 fi
11414done
5213506e
RW
11415 done
11416IFS=$as_save_IFS
1c710c3c 11417
4de997d1
PB
11418fi
11419fi
1c710c3c 11420DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11421if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11423$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11424else
5213506e
RW
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11426$as_echo "no" >&6; }
4de997d1 11427fi
4de997d1 11428
5213506e 11429
e8b05380
PB
11430 fi
11431 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11432 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11433set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11435$as_echo_n "checking for $ac_word... " >&6; }
11436if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11437 $as_echo_n "(cached) " >&6
4de997d1 11438else
e8b05380
PB
11439 if test -n "$DLLTOOL_FOR_TARGET"; then
11440 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11441else
1c710c3c
DJ
11442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11443for as_dir in $PATH
11444do
11445 IFS=$as_save_IFS
11446 test -z "$as_dir" && as_dir=.
5213506e
RW
11447 for ac_exec_ext in '' $ac_executable_extensions; do
11448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11449 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11451 break 2
11452 fi
11453done
5213506e
RW
11454 done
11455IFS=$as_save_IFS
1c710c3c 11456
4de997d1
PB
11457fi
11458fi
1c710c3c 11459DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11460if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11462$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11463else
5213506e
RW
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11465$as_echo "no" >&6; }
4de997d1 11466fi
1c710c3c 11467
5213506e 11468
e8b05380
PB
11469 fi
11470 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11471 done
11472fi
1c710c3c 11473
e8b05380
PB
11474if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11475 set dummy dlltool
11476 if test $build = $target ; then
11477 DLLTOOL_FOR_TARGET="$2"
11478 else
11479 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11480 fi
1c00b503
PB
11481else
11482 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
11483fi
11484
d1f8db0c
PB
11485else
11486 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
11487fi
11488
4de997d1 11489
e8b05380
PB
11490
11491
11492if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11493 if test -n "$with_build_time_tools"; then
5213506e
RW
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11495$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11496 if test -x $with_build_time_tools/ld; then
11497 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11498 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11500$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 11501 else
5213506e
RW
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11503$as_echo "no" >&6; }
d1f8db0c 11504 fi
e8b05380
PB
11505 elif test $build != $host && test $have_gcc_for_target = yes; then
11506 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
11507 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11508 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 11509 fi
e8b05380 11510fi
3e19841a 11511if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11512 # Extract the first word of "ld", so it can be a program name with args.
11513set dummy ld; ac_word=$2
5213506e
RW
11514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11515$as_echo_n "checking for $ac_word... " >&6; }
11516if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11517 $as_echo_n "(cached) " >&6
4de997d1 11518else
1c710c3c
DJ
11519 case $LD_FOR_TARGET in
11520 [\\/]* | ?:[\\/]*)
e8b05380
PB
11521 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11522 ;;
e8b05380 11523 *)
1c710c3c
DJ
11524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11525for as_dir in $gcc_cv_tool_dirs
11526do
11527 IFS=$as_save_IFS
11528 test -z "$as_dir" && as_dir=.
5213506e
RW
11529 for ac_exec_ext in '' $ac_executable_extensions; do
11530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11531 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11533 break 2
11534 fi
11535done
5213506e
RW
11536 done
11537IFS=$as_save_IFS
1c710c3c 11538
e8b05380
PB
11539 ;;
11540esac
4de997d1 11541fi
1c710c3c 11542LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 11543if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11545$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 11546else
5213506e
RW
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11548$as_echo "no" >&6; }
4de997d1 11549fi
2693c0b0 11550
5213506e 11551
e8b05380
PB
11552fi
11553if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
11554
11555
11556if test -n "$LD_FOR_TARGET"; then
11557 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11558elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11559 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11560fi
11561
11562if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11563 for ncn_progname in ld; do
11564 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11565set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11567$as_echo_n "checking for $ac_word... " >&6; }
11568if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11569 $as_echo_n "(cached) " >&6
278a7a38
AO
11570else
11571 if test -n "$LD_FOR_TARGET"; then
11572 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11573else
11574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11575for as_dir in $PATH
11576do
11577 IFS=$as_save_IFS
11578 test -z "$as_dir" && as_dir=.
5213506e
RW
11579 for ac_exec_ext in '' $ac_executable_extensions; do
11580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11581 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11583 break 2
11584 fi
11585done
5213506e
RW
11586 done
11587IFS=$as_save_IFS
278a7a38
AO
11588
11589fi
11590fi
11591LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11592if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11594$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 11595else
5213506e
RW
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11597$as_echo "no" >&6; }
278a7a38
AO
11598fi
11599
5213506e 11600
278a7a38
AO
11601 done
11602fi
11603
11604if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11605 for ncn_progname in ld; do
5213506e
RW
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11607$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11608 if test -x $with_build_time_tools/${ncn_progname}; then
11609 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11611$as_echo "yes" >&6; }
e8b05380
PB
11612 break
11613 else
5213506e
RW
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11615$as_echo "no" >&6; }
e8b05380
PB
11616 fi
11617 done
ca9f4b81
AO
11618fi
11619
e8b05380
PB
11620if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11621 for ncn_progname in ld; do
11622 if test -n "$ncn_target_tool_prefix"; then
11623 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11624set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11626$as_echo_n "checking for $ac_word... " >&6; }
11627if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11628 $as_echo_n "(cached) " >&6
ca9f4b81 11629else
4de997d1
PB
11630 if test -n "$LD_FOR_TARGET"; then
11631 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11632else
1c710c3c
DJ
11633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11634for as_dir in $PATH
11635do
11636 IFS=$as_save_IFS
11637 test -z "$as_dir" && as_dir=.
5213506e
RW
11638 for ac_exec_ext in '' $ac_executable_extensions; do
11639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11640 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11642 break 2
11643 fi
11644done
5213506e
RW
11645 done
11646IFS=$as_save_IFS
1c710c3c 11647
ca9f4b81
AO
11648fi
11649fi
1c710c3c 11650LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 11651if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11653$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11654else
5213506e
RW
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11656$as_echo "no" >&6; }
ca9f4b81
AO
11657fi
11658
5213506e 11659
e8b05380
PB
11660 fi
11661 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11662 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11663set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11665$as_echo_n "checking for $ac_word... " >&6; }
11666if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11667 $as_echo_n "(cached) " >&6
ca9f4b81 11668else
2693c0b0
PB
11669 if test -n "$LD_FOR_TARGET"; then
11670 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11671else
1c710c3c
DJ
11672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11673for as_dir in $PATH
11674do
11675 IFS=$as_save_IFS
11676 test -z "$as_dir" && as_dir=.
5213506e
RW
11677 for ac_exec_ext in '' $ac_executable_extensions; do
11678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11679 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11681 break 2
11682 fi
11683done
5213506e
RW
11684 done
11685IFS=$as_save_IFS
1c710c3c 11686
ca9f4b81
AO
11687fi
11688fi
1c710c3c 11689LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 11690if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11692$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11693else
5213506e
RW
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11695$as_echo "no" >&6; }
ca9f4b81 11696fi
1c710c3c 11697
5213506e 11698
e8b05380
PB
11699 fi
11700 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11701 done
11702fi
1c710c3c 11703
2693c0b0
PB
11704if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11705 set dummy ld
11706 if test $build = $target ; then
11707 LD_FOR_TARGET="$2"
ca9f4b81 11708 else
2693c0b0 11709 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11710 fi
1c00b503
PB
11711else
11712 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
11713fi
11714
d1f8db0c
PB
11715else
11716 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
11717fi
11718
11719
11720
11721
11722if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11723 if test -n "$with_build_time_tools"; then
5213506e
RW
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11725$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11726 if test -x $with_build_time_tools/lipo; then
11727 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11728 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11730$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 11731 else
5213506e
RW
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11733$as_echo "no" >&6; }
d1f8db0c 11734 fi
e8b05380
PB
11735 elif test $build != $host && test $have_gcc_for_target = yes; then
11736 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
11737 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11738 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
11739 fi
11740fi
278a7a38
AO
11741if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11742 # Extract the first word of "lipo", so it can be a program name with args.
11743set dummy lipo; ac_word=$2
5213506e
RW
11744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11745$as_echo_n "checking for $ac_word... " >&6; }
11746if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11747 $as_echo_n "(cached) " >&6
278a7a38
AO
11748else
11749 case $LIPO_FOR_TARGET in
11750 [\\/]* | ?:[\\/]*)
11751 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11752 ;;
11753 *)
11754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11755for as_dir in $gcc_cv_tool_dirs
11756do
11757 IFS=$as_save_IFS
11758 test -z "$as_dir" && as_dir=.
5213506e
RW
11759 for ac_exec_ext in '' $ac_executable_extensions; do
11760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11761 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11763 break 2
11764 fi
11765done
5213506e
RW
11766 done
11767IFS=$as_save_IFS
278a7a38
AO
11768
11769 ;;
11770esac
11771fi
11772LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 11773if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11775$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 11776else
5213506e
RW
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11778$as_echo "no" >&6; }
278a7a38
AO
11779fi
11780
5213506e 11781
278a7a38
AO
11782fi
11783if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11784
11785
11786if test -n "$LIPO_FOR_TARGET"; then
11787 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11788elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11789 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11790fi
11791
11792if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11793 for ncn_progname in lipo; do
11794 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11795set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11797$as_echo_n "checking for $ac_word... " >&6; }
11798if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11799 $as_echo_n "(cached) " >&6
e8b05380 11800else
278a7a38
AO
11801 if test -n "$LIPO_FOR_TARGET"; then
11802 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11803else
11804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11805for as_dir in $PATH
1c710c3c
DJ
11806do
11807 IFS=$as_save_IFS
11808 test -z "$as_dir" && as_dir=.
5213506e
RW
11809 for ac_exec_ext in '' $ac_executable_extensions; do
11810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11811 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11813 break 2
11814 fi
11815done
5213506e
RW
11816 done
11817IFS=$as_save_IFS
1c710c3c 11818
e8b05380 11819fi
278a7a38
AO
11820fi
11821LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 11822if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11824$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 11825else
5213506e
RW
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11827$as_echo "no" >&6; }
e8b05380
PB
11828fi
11829
5213506e 11830
278a7a38 11831 done
e8b05380 11832fi
278a7a38
AO
11833
11834if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11835 for ncn_progname in lipo; do
5213506e
RW
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11837$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11838 if test -x $with_build_time_tools/${ncn_progname}; then
11839 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11841$as_echo "yes" >&6; }
e8b05380
PB
11842 break
11843 else
5213506e
RW
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11845$as_echo "no" >&6; }
e8b05380
PB
11846 fi
11847 done
11848fi
11849
11850if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11851 for ncn_progname in lipo; do
11852 if test -n "$ncn_target_tool_prefix"; then
11853 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11854set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11856$as_echo_n "checking for $ac_word... " >&6; }
11857if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11858 $as_echo_n "(cached) " >&6
040b1c5a
GK
11859else
11860 if test -n "$LIPO_FOR_TARGET"; then
11861 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11862else
1c710c3c
DJ
11863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11864for as_dir in $PATH
11865do
11866 IFS=$as_save_IFS
11867 test -z "$as_dir" && as_dir=.
5213506e
RW
11868 for ac_exec_ext in '' $ac_executable_extensions; do
11869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11870 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11872 break 2
11873 fi
11874done
5213506e
RW
11875 done
11876IFS=$as_save_IFS
1c710c3c 11877
040b1c5a
GK
11878fi
11879fi
1c710c3c 11880LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11881if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11883$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11884else
5213506e
RW
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11886$as_echo "no" >&6; }
040b1c5a
GK
11887fi
11888
5213506e 11889
e8b05380
PB
11890 fi
11891 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11892 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 11893set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11895$as_echo_n "checking for $ac_word... " >&6; }
11896if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11897 $as_echo_n "(cached) " >&6
040b1c5a
GK
11898else
11899 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
11900 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11901else
1c710c3c
DJ
11902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11903for as_dir in $PATH
11904do
11905 IFS=$as_save_IFS
11906 test -z "$as_dir" && as_dir=.
5213506e
RW
11907 for ac_exec_ext in '' $ac_executable_extensions; do
11908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11909 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11911 break 2
11912 fi
11913done
5213506e
RW
11914 done
11915IFS=$as_save_IFS
1c710c3c 11916
040b1c5a
GK
11917fi
11918fi
1c710c3c 11919LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11920if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11922$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11923else
5213506e
RW
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11925$as_echo "no" >&6; }
040b1c5a 11926fi
1c710c3c 11927
5213506e 11928
e8b05380
PB
11929 fi
11930 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11931 done
11932fi
1c710c3c 11933
040b1c5a
GK
11934if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11935 set dummy lipo
11936 if test $build = $target ; then
11937 LIPO_FOR_TARGET="$2"
11938 else
11939 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11940 fi
1c00b503
PB
11941else
11942 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
11943fi
11944
d1f8db0c
PB
11945else
11946 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
11947fi
11948
11949
11950
11951
11952if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11953 if test -n "$with_build_time_tools"; then
5213506e
RW
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11955$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11956 if test -x $with_build_time_tools/nm; then
11957 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11958 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11960$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 11961 else
5213506e
RW
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11963$as_echo "no" >&6; }
d1f8db0c 11964 fi
e8b05380
PB
11965 elif test $build != $host && test $have_gcc_for_target = yes; then
11966 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
11967 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11968 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
11969 fi
11970fi
3e19841a 11971if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11972 # Extract the first word of "nm", so it can be a program name with args.
11973set dummy nm; ac_word=$2
5213506e
RW
11974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11975$as_echo_n "checking for $ac_word... " >&6; }
11976if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11977 $as_echo_n "(cached) " >&6
e8b05380 11978else
1c710c3c
DJ
11979 case $NM_FOR_TARGET in
11980 [\\/]* | ?:[\\/]*)
e8b05380
PB
11981 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11982 ;;
e8b05380 11983 *)
1c710c3c
DJ
11984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11985for as_dir in $gcc_cv_tool_dirs
11986do
11987 IFS=$as_save_IFS
11988 test -z "$as_dir" && as_dir=.
5213506e
RW
11989 for ac_exec_ext in '' $ac_executable_extensions; do
11990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11991 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11993 break 2
11994 fi
11995done
5213506e
RW
11996 done
11997IFS=$as_save_IFS
1c710c3c 11998
e8b05380
PB
11999 ;;
12000esac
12001fi
1c710c3c 12002NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 12003if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12005$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 12006else
5213506e
RW
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12008$as_echo "no" >&6; }
e8b05380
PB
12009fi
12010
5213506e 12011
e8b05380
PB
12012fi
12013if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
12014
12015
12016if test -n "$NM_FOR_TARGET"; then
12017 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12018elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12019 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12020fi
12021
12022if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12023 for ncn_progname in nm; do
12024 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12025set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12027$as_echo_n "checking for $ac_word... " >&6; }
12028if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12029 $as_echo_n "(cached) " >&6
278a7a38
AO
12030else
12031 if test -n "$NM_FOR_TARGET"; then
12032 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12033else
12034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12035for as_dir in $PATH
12036do
12037 IFS=$as_save_IFS
12038 test -z "$as_dir" && as_dir=.
5213506e
RW
12039 for ac_exec_ext in '' $ac_executable_extensions; do
12040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12041 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12043 break 2
12044 fi
12045done
5213506e
RW
12046 done
12047IFS=$as_save_IFS
278a7a38
AO
12048
12049fi
12050fi
12051NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12052if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12054$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 12055else
5213506e
RW
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12057$as_echo "no" >&6; }
278a7a38
AO
12058fi
12059
5213506e 12060
278a7a38
AO
12061 done
12062fi
12063
12064if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12065 for ncn_progname in nm; do
5213506e
RW
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12067$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12068 if test -x $with_build_time_tools/${ncn_progname}; then
12069 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12071$as_echo "yes" >&6; }
e8b05380
PB
12072 break
12073 else
5213506e
RW
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12075$as_echo "no" >&6; }
e8b05380
PB
12076 fi
12077 done
12078fi
12079
12080if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12081 for ncn_progname in nm; do
12082 if test -n "$ncn_target_tool_prefix"; then
12083 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12084set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12086$as_echo_n "checking for $ac_word... " >&6; }
12087if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12088 $as_echo_n "(cached) " >&6
ca9f4b81 12089else
4de997d1
PB
12090 if test -n "$NM_FOR_TARGET"; then
12091 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12092else
1c710c3c
DJ
12093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12094for as_dir in $PATH
12095do
12096 IFS=$as_save_IFS
12097 test -z "$as_dir" && as_dir=.
5213506e
RW
12098 for ac_exec_ext in '' $ac_executable_extensions; do
12099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12100 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12102 break 2
12103 fi
12104done
5213506e
RW
12105 done
12106IFS=$as_save_IFS
1c710c3c 12107
ca9f4b81
AO
12108fi
12109fi
1c710c3c 12110NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 12111if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12113$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12114else
5213506e
RW
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12116$as_echo "no" >&6; }
ca9f4b81
AO
12117fi
12118
5213506e 12119
e8b05380
PB
12120 fi
12121 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12122 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12123set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12125$as_echo_n "checking for $ac_word... " >&6; }
12126if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12127 $as_echo_n "(cached) " >&6
ca9f4b81 12128else
2693c0b0
PB
12129 if test -n "$NM_FOR_TARGET"; then
12130 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12131else
1c710c3c
DJ
12132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12133for as_dir in $PATH
12134do
12135 IFS=$as_save_IFS
12136 test -z "$as_dir" && as_dir=.
5213506e
RW
12137 for ac_exec_ext in '' $ac_executable_extensions; do
12138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12139 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12141 break 2
12142 fi
12143done
5213506e
RW
12144 done
12145IFS=$as_save_IFS
1c710c3c 12146
ca9f4b81
AO
12147fi
12148fi
1c710c3c 12149NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 12150if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12152$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12153else
5213506e
RW
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12155$as_echo "no" >&6; }
ca9f4b81 12156fi
1c710c3c 12157
5213506e 12158
e8b05380
PB
12159 fi
12160 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12161 done
12162fi
1c710c3c 12163
2693c0b0
PB
12164if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12165 set dummy nm
12166 if test $build = $target ; then
12167 NM_FOR_TARGET="$2"
ca9f4b81 12168 else
2693c0b0 12169 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12170 fi
1c00b503
PB
12171else
12172 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
12173fi
12174
d1f8db0c
PB
12175else
12176 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
12177fi
12178
12179
12180
12181
12182if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12183 if test -n "$with_build_time_tools"; then
5213506e
RW
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12185$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12186 if test -x $with_build_time_tools/objdump; then
12187 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12188 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12190$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 12191 else
5213506e
RW
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12193$as_echo "no" >&6; }
d1f8db0c 12194 fi
e8b05380
PB
12195 elif test $build != $host && test $have_gcc_for_target = yes; then
12196 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
12197 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12198 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
12199 fi
12200fi
3e19841a 12201if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12202 # Extract the first word of "objdump", so it can be a program name with args.
12203set dummy objdump; ac_word=$2
5213506e
RW
12204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12205$as_echo_n "checking for $ac_word... " >&6; }
12206if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12207 $as_echo_n "(cached) " >&6
e8b05380 12208else
1c710c3c
DJ
12209 case $OBJDUMP_FOR_TARGET in
12210 [\\/]* | ?:[\\/]*)
e8b05380
PB
12211 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12212 ;;
e8b05380 12213 *)
1c710c3c
DJ
12214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12215for as_dir in $gcc_cv_tool_dirs
12216do
12217 IFS=$as_save_IFS
12218 test -z "$as_dir" && as_dir=.
5213506e
RW
12219 for ac_exec_ext in '' $ac_executable_extensions; do
12220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12221 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12223 break 2
12224 fi
12225done
5213506e
RW
12226 done
12227IFS=$as_save_IFS
1c710c3c 12228
e8b05380
PB
12229 ;;
12230esac
12231fi
1c710c3c 12232OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 12233if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12235$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 12236else
5213506e
RW
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12238$as_echo "no" >&6; }
e8b05380
PB
12239fi
12240
5213506e 12241
e8b05380
PB
12242fi
12243if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
12244
12245
12246if test -n "$OBJDUMP_FOR_TARGET"; then
12247 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12248elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12249 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12250fi
12251
12252if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12253 for ncn_progname in objdump; do
12254 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12255set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12257$as_echo_n "checking for $ac_word... " >&6; }
12258if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12259 $as_echo_n "(cached) " >&6
278a7a38
AO
12260else
12261 if test -n "$OBJDUMP_FOR_TARGET"; then
12262 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12263else
12264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12265for as_dir in $PATH
12266do
12267 IFS=$as_save_IFS
12268 test -z "$as_dir" && as_dir=.
5213506e
RW
12269 for ac_exec_ext in '' $ac_executable_extensions; do
12270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12271 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12273 break 2
12274 fi
12275done
5213506e
RW
12276 done
12277IFS=$as_save_IFS
278a7a38
AO
12278
12279fi
12280fi
12281OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12282if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12284$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 12285else
5213506e
RW
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12287$as_echo "no" >&6; }
278a7a38
AO
12288fi
12289
5213506e 12290
278a7a38
AO
12291 done
12292fi
12293
12294if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12295 for ncn_progname in objdump; do
5213506e
RW
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12297$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12298 if test -x $with_build_time_tools/${ncn_progname}; then
12299 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12301$as_echo "yes" >&6; }
e8b05380
PB
12302 break
12303 else
5213506e
RW
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12305$as_echo "no" >&6; }
e8b05380
PB
12306 fi
12307 done
12308fi
12309
12310if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12311 for ncn_progname in objdump; do
12312 if test -n "$ncn_target_tool_prefix"; then
12313 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12314set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12316$as_echo_n "checking for $ac_word... " >&6; }
12317if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12318 $as_echo_n "(cached) " >&6
d739199a
DJ
12319else
12320 if test -n "$OBJDUMP_FOR_TARGET"; then
12321 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12322else
1c710c3c
DJ
12323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12324for as_dir in $PATH
12325do
12326 IFS=$as_save_IFS
12327 test -z "$as_dir" && as_dir=.
5213506e
RW
12328 for ac_exec_ext in '' $ac_executable_extensions; do
12329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12330 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12332 break 2
12333 fi
12334done
5213506e
RW
12335 done
12336IFS=$as_save_IFS
1c710c3c 12337
d739199a
DJ
12338fi
12339fi
1c710c3c 12340OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12341if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12343$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12344else
5213506e
RW
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12346$as_echo "no" >&6; }
d739199a
DJ
12347fi
12348
5213506e 12349
e8b05380
PB
12350 fi
12351 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12352 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 12353set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12355$as_echo_n "checking for $ac_word... " >&6; }
12356if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12357 $as_echo_n "(cached) " >&6
d739199a
DJ
12358else
12359 if test -n "$OBJDUMP_FOR_TARGET"; then
12360 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12361else
1c710c3c
DJ
12362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12363for as_dir in $PATH
12364do
12365 IFS=$as_save_IFS
12366 test -z "$as_dir" && as_dir=.
5213506e
RW
12367 for ac_exec_ext in '' $ac_executable_extensions; do
12368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12369 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12371 break 2
12372 fi
12373done
5213506e
RW
12374 done
12375IFS=$as_save_IFS
1c710c3c 12376
d739199a
DJ
12377fi
12378fi
1c710c3c 12379OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12380if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12382$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12383else
5213506e
RW
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12385$as_echo "no" >&6; }
d739199a 12386fi
1c710c3c 12387
5213506e 12388
e8b05380
PB
12389 fi
12390 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12391 done
12392fi
1c710c3c 12393
d739199a
DJ
12394if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12395 set dummy objdump
12396 if test $build = $target ; then
12397 OBJDUMP_FOR_TARGET="$2"
12398 else
12399 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12400 fi
1c00b503
PB
12401else
12402 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
12403fi
12404
d1f8db0c
PB
12405else
12406 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
12407fi
12408
12409
12410
12411
12412if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12413 if test -n "$with_build_time_tools"; then
5213506e
RW
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12415$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12416 if test -x $with_build_time_tools/ranlib; then
12417 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12418 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12420$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 12421 else
5213506e
RW
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12423$as_echo "no" >&6; }
d1f8db0c 12424 fi
e8b05380
PB
12425 elif test $build != $host && test $have_gcc_for_target = yes; then
12426 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
12427 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12428 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
12429 fi
12430fi
3e19841a 12431if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12432 # Extract the first word of "ranlib", so it can be a program name with args.
12433set dummy ranlib; ac_word=$2
5213506e
RW
12434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12435$as_echo_n "checking for $ac_word... " >&6; }
12436if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12437 $as_echo_n "(cached) " >&6
e8b05380 12438else
1c710c3c
DJ
12439 case $RANLIB_FOR_TARGET in
12440 [\\/]* | ?:[\\/]*)
e8b05380
PB
12441 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12442 ;;
e8b05380 12443 *)
1c710c3c
DJ
12444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12445for as_dir in $gcc_cv_tool_dirs
12446do
12447 IFS=$as_save_IFS
12448 test -z "$as_dir" && as_dir=.
5213506e
RW
12449 for ac_exec_ext in '' $ac_executable_extensions; do
12450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12451 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12453 break 2
12454 fi
12455done
5213506e
RW
12456 done
12457IFS=$as_save_IFS
1c710c3c 12458
e8b05380
PB
12459 ;;
12460esac
12461fi
1c710c3c 12462RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 12463if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12465$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 12466else
5213506e
RW
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12468$as_echo "no" >&6; }
e8b05380
PB
12469fi
12470
5213506e 12471
e8b05380
PB
12472fi
12473if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
12474
12475
12476if test -n "$RANLIB_FOR_TARGET"; then
12477 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12478elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12479 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12480fi
12481
12482if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12483 for ncn_progname in ranlib; do
12484 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12485set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12487$as_echo_n "checking for $ac_word... " >&6; }
12488if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12489 $as_echo_n "(cached) " >&6
278a7a38
AO
12490else
12491 if test -n "$RANLIB_FOR_TARGET"; then
12492 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12493else
12494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12495for as_dir in $PATH
12496do
12497 IFS=$as_save_IFS
12498 test -z "$as_dir" && as_dir=.
5213506e
RW
12499 for ac_exec_ext in '' $ac_executable_extensions; do
12500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12501 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12503 break 2
12504 fi
12505done
5213506e
RW
12506 done
12507IFS=$as_save_IFS
278a7a38
AO
12508
12509fi
12510fi
12511RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12512if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12514$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 12515else
5213506e
RW
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12517$as_echo "no" >&6; }
278a7a38
AO
12518fi
12519
5213506e 12520
278a7a38
AO
12521 done
12522fi
12523
12524if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12525 for ncn_progname in ranlib; do
5213506e
RW
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12527$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12528 if test -x $with_build_time_tools/${ncn_progname}; then
12529 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12531$as_echo "yes" >&6; }
e8b05380
PB
12532 break
12533 else
5213506e
RW
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12535$as_echo "no" >&6; }
e8b05380
PB
12536 fi
12537 done
12538fi
12539
12540if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12541 for ncn_progname in ranlib; do
12542 if test -n "$ncn_target_tool_prefix"; then
12543 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 12544set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12546$as_echo_n "checking for $ac_word... " >&6; }
12547if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12548 $as_echo_n "(cached) " >&6
ca9f4b81 12549else
4de997d1
PB
12550 if test -n "$RANLIB_FOR_TARGET"; then
12551 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12552else
1c710c3c
DJ
12553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12554for as_dir in $PATH
12555do
12556 IFS=$as_save_IFS
12557 test -z "$as_dir" && as_dir=.
5213506e
RW
12558 for ac_exec_ext in '' $ac_executable_extensions; do
12559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12560 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12562 break 2
12563 fi
12564done
5213506e
RW
12565 done
12566IFS=$as_save_IFS
1c710c3c 12567
ca9f4b81
AO
12568fi
12569fi
1c710c3c 12570RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 12571if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12573$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12574else
5213506e
RW
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12576$as_echo "no" >&6; }
ca9f4b81
AO
12577fi
12578
5213506e 12579
e8b05380
PB
12580 fi
12581 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12582 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12583set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12585$as_echo_n "checking for $ac_word... " >&6; }
12586if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12587 $as_echo_n "(cached) " >&6
ca9f4b81 12588else
2693c0b0
PB
12589 if test -n "$RANLIB_FOR_TARGET"; then
12590 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12591else
1c710c3c
DJ
12592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12593for as_dir in $PATH
12594do
12595 IFS=$as_save_IFS
12596 test -z "$as_dir" && as_dir=.
5213506e
RW
12597 for ac_exec_ext in '' $ac_executable_extensions; do
12598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12599 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12601 break 2
12602 fi
12603done
5213506e
RW
12604 done
12605IFS=$as_save_IFS
1c710c3c 12606
ca9f4b81
AO
12607fi
12608fi
1c710c3c 12609RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 12610if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12612$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12613else
5213506e
RW
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12615$as_echo "no" >&6; }
ca9f4b81 12616fi
1c710c3c 12617
5213506e 12618
e8b05380
PB
12619 fi
12620 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12621 done
12622fi
1c710c3c 12623
e8b05380
PB
12624if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12625 set dummy ranlib
12626 if test $build = $target ; then
12627 RANLIB_FOR_TARGET="$2"
12628 else
12629 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12630 fi
1c00b503
PB
12631else
12632 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 12633fi
2693c0b0 12634
d1f8db0c
PB
12635else
12636 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
12637fi
12638
e8b05380
PB
12639
12640
12641
e7a82751
RM
12642if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12643 if test -n "$with_build_time_tools"; then
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12645$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12646 if test -x $with_build_time_tools/readelf; then
12647 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12648 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12650$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12651 else
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12653$as_echo "no" >&6; }
12654 fi
12655 elif test $build != $host && test $have_gcc_for_target = yes; then
12656 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12657 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12658 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12659 fi
12660fi
12661if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12662 # Extract the first word of "readelf", so it can be a program name with args.
12663set dummy readelf; ac_word=$2
12664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12665$as_echo_n "checking for $ac_word... " >&6; }
12666if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12667 $as_echo_n "(cached) " >&6
12668else
12669 case $READELF_FOR_TARGET in
12670 [\\/]* | ?:[\\/]*)
12671 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12672 ;;
12673 *)
12674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12675for as_dir in $gcc_cv_tool_dirs
12676do
12677 IFS=$as_save_IFS
12678 test -z "$as_dir" && as_dir=.
12679 for ac_exec_ext in '' $ac_executable_extensions; do
12680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12681 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12683 break 2
12684 fi
12685done
12686 done
12687IFS=$as_save_IFS
12688
12689 ;;
12690esac
12691fi
12692READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12693if test -n "$READELF_FOR_TARGET"; then
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12695$as_echo "$READELF_FOR_TARGET" >&6; }
12696else
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12698$as_echo "no" >&6; }
12699fi
12700
12701
12702fi
12703if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12704
12705
12706if test -n "$READELF_FOR_TARGET"; then
12707 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12708elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12709 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12710fi
12711
12712if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12713 for ncn_progname in readelf; do
12714 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12715set dummy ${ncn_progname}; ac_word=$2
12716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12717$as_echo_n "checking for $ac_word... " >&6; }
12718if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12719 $as_echo_n "(cached) " >&6
12720else
12721 if test -n "$READELF_FOR_TARGET"; then
12722 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12723else
12724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12725for as_dir in $PATH
12726do
12727 IFS=$as_save_IFS
12728 test -z "$as_dir" && as_dir=.
12729 for ac_exec_ext in '' $ac_executable_extensions; do
12730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12731 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12733 break 2
12734 fi
12735done
12736 done
12737IFS=$as_save_IFS
12738
12739fi
12740fi
12741READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12742if test -n "$READELF_FOR_TARGET"; then
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12744$as_echo "$READELF_FOR_TARGET" >&6; }
12745else
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12747$as_echo "no" >&6; }
12748fi
12749
12750
12751 done
12752fi
12753
12754if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12755 for ncn_progname in readelf; do
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12757$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12758 if test -x $with_build_time_tools/${ncn_progname}; then
12759 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12761$as_echo "yes" >&6; }
12762 break
12763 else
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12765$as_echo "no" >&6; }
12766 fi
12767 done
12768fi
12769
12770if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12771 for ncn_progname in readelf; do
12772 if test -n "$ncn_target_tool_prefix"; then
12773 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12774set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12776$as_echo_n "checking for $ac_word... " >&6; }
12777if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12778 $as_echo_n "(cached) " >&6
12779else
12780 if test -n "$READELF_FOR_TARGET"; then
12781 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12782else
12783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12784for as_dir in $PATH
12785do
12786 IFS=$as_save_IFS
12787 test -z "$as_dir" && as_dir=.
12788 for ac_exec_ext in '' $ac_executable_extensions; do
12789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12790 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12792 break 2
12793 fi
12794done
12795 done
12796IFS=$as_save_IFS
12797
12798fi
12799fi
12800READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12801if test -n "$READELF_FOR_TARGET"; then
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12803$as_echo "$READELF_FOR_TARGET" >&6; }
12804else
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12806$as_echo "no" >&6; }
12807fi
12808
12809
12810 fi
12811 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12812 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12813set dummy ${ncn_progname}; ac_word=$2
12814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12815$as_echo_n "checking for $ac_word... " >&6; }
12816if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12817 $as_echo_n "(cached) " >&6
12818else
12819 if test -n "$READELF_FOR_TARGET"; then
12820 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12821else
12822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12823for as_dir in $PATH
12824do
12825 IFS=$as_save_IFS
12826 test -z "$as_dir" && as_dir=.
12827 for ac_exec_ext in '' $ac_executable_extensions; do
12828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12829 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12831 break 2
12832 fi
12833done
12834 done
12835IFS=$as_save_IFS
12836
12837fi
12838fi
12839READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12840if test -n "$READELF_FOR_TARGET"; then
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12842$as_echo "$READELF_FOR_TARGET" >&6; }
12843else
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12845$as_echo "no" >&6; }
12846fi
12847
12848
12849 fi
12850 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12851 done
12852fi
12853
12854if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12855 set dummy readelf
12856 if test $build = $target ; then
12857 READELF_FOR_TARGET="$2"
12858 else
12859 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12860 fi
12861else
12862 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12863fi
12864
12865else
12866 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12867fi
12868
12869
12870
12871
e8b05380
PB
12872if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12873 if test -n "$with_build_time_tools"; then
5213506e
RW
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12875$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12876 if test -x $with_build_time_tools/strip; then
12877 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12878 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12880$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 12881 else
5213506e
RW
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12883$as_echo "no" >&6; }
d1f8db0c 12884 fi
e8b05380
PB
12885 elif test $build != $host && test $have_gcc_for_target = yes; then
12886 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
12887 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12888 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
12889 fi
12890fi
3e19841a 12891if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12892 # Extract the first word of "strip", so it can be a program name with args.
12893set dummy strip; ac_word=$2
5213506e
RW
12894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12895$as_echo_n "checking for $ac_word... " >&6; }
12896if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12897 $as_echo_n "(cached) " >&6
e8b05380 12898else
1c710c3c
DJ
12899 case $STRIP_FOR_TARGET in
12900 [\\/]* | ?:[\\/]*)
e8b05380
PB
12901 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12902 ;;
e8b05380 12903 *)
1c710c3c
DJ
12904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12905for as_dir in $gcc_cv_tool_dirs
12906do
12907 IFS=$as_save_IFS
12908 test -z "$as_dir" && as_dir=.
5213506e
RW
12909 for ac_exec_ext in '' $ac_executable_extensions; do
12910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12911 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12913 break 2
12914 fi
12915done
5213506e
RW
12916 done
12917IFS=$as_save_IFS
1c710c3c 12918
e8b05380
PB
12919 ;;
12920esac
12921fi
1c710c3c 12922STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 12923if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12925$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 12926else
5213506e
RW
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12928$as_echo "no" >&6; }
e8b05380
PB
12929fi
12930
5213506e 12931
e8b05380
PB
12932fi
12933if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
12934
12935
12936if test -n "$STRIP_FOR_TARGET"; then
12937 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12938elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12939 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12940fi
12941
12942if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12943 for ncn_progname in strip; do
12944 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12945set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12947$as_echo_n "checking for $ac_word... " >&6; }
12948if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12949 $as_echo_n "(cached) " >&6
278a7a38
AO
12950else
12951 if test -n "$STRIP_FOR_TARGET"; then
12952 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12953else
12954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12955for as_dir in $PATH
12956do
12957 IFS=$as_save_IFS
12958 test -z "$as_dir" && as_dir=.
5213506e
RW
12959 for ac_exec_ext in '' $ac_executable_extensions; do
12960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12961 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 12962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12963 break 2
12964 fi
12965done
5213506e
RW
12966 done
12967IFS=$as_save_IFS
278a7a38
AO
12968
12969fi
12970fi
12971STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12972if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12974$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 12975else
5213506e
RW
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12977$as_echo "no" >&6; }
278a7a38
AO
12978fi
12979
5213506e 12980
278a7a38
AO
12981 done
12982fi
12983
12984if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12985 for ncn_progname in strip; do
5213506e
RW
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12987$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12988 if test -x $with_build_time_tools/${ncn_progname}; then
12989 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12991$as_echo "yes" >&6; }
e8b05380
PB
12992 break
12993 else
5213506e
RW
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12995$as_echo "no" >&6; }
e8b05380
PB
12996 fi
12997 done
12998fi
12999
13000if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13001 for ncn_progname in strip; do
13002 if test -n "$ncn_target_tool_prefix"; then
13003 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 13004set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13006$as_echo_n "checking for $ac_word... " >&6; }
13007if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13008 $as_echo_n "(cached) " >&6
af71363e
AS
13009else
13010 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
13011 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13012else
13013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13014for as_dir in $PATH
13015do
13016 IFS=$as_save_IFS
13017 test -z "$as_dir" && as_dir=.
5213506e
RW
13018 for ac_exec_ext in '' $ac_executable_extensions; do
13019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13020 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13022 break 2
13023 fi
13024done
5213506e
RW
13025 done
13026IFS=$as_save_IFS
1c710c3c 13027
040b1c5a
GK
13028fi
13029fi
1c710c3c 13030STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13031if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13033$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13034else
5213506e
RW
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13036$as_echo "no" >&6; }
040b1c5a
GK
13037fi
13038
5213506e 13039
e8b05380
PB
13040 fi
13041 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13042 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 13043set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13045$as_echo_n "checking for $ac_word... " >&6; }
13046if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13047 $as_echo_n "(cached) " >&6
040b1c5a
GK
13048else
13049 if test -n "$STRIP_FOR_TARGET"; then
13050 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13051else
1c710c3c
DJ
13052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13053for as_dir in $PATH
13054do
13055 IFS=$as_save_IFS
13056 test -z "$as_dir" && as_dir=.
5213506e
RW
13057 for ac_exec_ext in '' $ac_executable_extensions; do
13058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13059 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13061 break 2
13062 fi
13063done
5213506e
RW
13064 done
13065IFS=$as_save_IFS
1c710c3c 13066
040b1c5a
GK
13067fi
13068fi
1c710c3c 13069STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13070if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13072$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13073else
5213506e
RW
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13075$as_echo "no" >&6; }
040b1c5a 13076fi
1c710c3c 13077
5213506e 13078
e8b05380
PB
13079 fi
13080 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13081 done
13082fi
1c710c3c 13083
040b1c5a
GK
13084if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13085 set dummy strip
13086 if test $build = $target ; then
13087 STRIP_FOR_TARGET="$2"
13088 else
13089 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13090 fi
1c00b503
PB
13091else
13092 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
13093fi
13094
d1f8db0c
PB
13095else
13096 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
13097fi
13098
13099
13100
13101
13102if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13103 if test -n "$with_build_time_tools"; then
5213506e
RW
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13105$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13106 if test -x $with_build_time_tools/windres; then
13107 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13108 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13110$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 13111 else
5213506e
RW
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13113$as_echo "no" >&6; }
d1f8db0c 13114 fi
e8b05380
PB
13115 elif test $build != $host && test $have_gcc_for_target = yes; then
13116 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
13117 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13118 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
13119 fi
13120fi
3e19841a 13121if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13122 # Extract the first word of "windres", so it can be a program name with args.
13123set dummy windres; ac_word=$2
5213506e
RW
13124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13125$as_echo_n "checking for $ac_word... " >&6; }
13126if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13127 $as_echo_n "(cached) " >&6
e8b05380 13128else
1c710c3c
DJ
13129 case $WINDRES_FOR_TARGET in
13130 [\\/]* | ?:[\\/]*)
e8b05380
PB
13131 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13132 ;;
e8b05380 13133 *)
1c710c3c
DJ
13134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13135for as_dir in $gcc_cv_tool_dirs
13136do
13137 IFS=$as_save_IFS
13138 test -z "$as_dir" && as_dir=.
5213506e
RW
13139 for ac_exec_ext in '' $ac_executable_extensions; do
13140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13141 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13143 break 2
13144 fi
13145done
5213506e
RW
13146 done
13147IFS=$as_save_IFS
1c710c3c 13148
e8b05380
PB
13149 ;;
13150esac
13151fi
1c710c3c 13152WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 13153if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13155$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 13156else
5213506e
RW
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13158$as_echo "no" >&6; }
e8b05380
PB
13159fi
13160
5213506e 13161
e8b05380
PB
13162fi
13163if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
13164
13165
13166if test -n "$WINDRES_FOR_TARGET"; then
13167 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13168elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13169 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13170fi
13171
13172if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13173 for ncn_progname in windres; do
13174 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13175set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13177$as_echo_n "checking for $ac_word... " >&6; }
13178if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13179 $as_echo_n "(cached) " >&6
278a7a38
AO
13180else
13181 if test -n "$WINDRES_FOR_TARGET"; then
13182 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13183else
13184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13185for as_dir in $PATH
13186do
13187 IFS=$as_save_IFS
13188 test -z "$as_dir" && as_dir=.
5213506e
RW
13189 for ac_exec_ext in '' $ac_executable_extensions; do
13190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 13191 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13193 break 2
13194 fi
13195done
5213506e
RW
13196 done
13197IFS=$as_save_IFS
278a7a38
AO
13198
13199fi
13200fi
13201WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13202if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13204$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 13205else
5213506e
RW
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13207$as_echo "no" >&6; }
278a7a38
AO
13208fi
13209
5213506e 13210
278a7a38
AO
13211 done
13212fi
13213
13214if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13215 for ncn_progname in windres; do
5213506e
RW
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13217$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13218 if test -x $with_build_time_tools/${ncn_progname}; then
13219 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13221$as_echo "yes" >&6; }
e8b05380
PB
13222 break
13223 else
5213506e
RW
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13225$as_echo "no" >&6; }
e8b05380
PB
13226 fi
13227 done
13228fi
13229
13230if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13231 for ncn_progname in windres; do
13232 if test -n "$ncn_target_tool_prefix"; then
13233 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13234set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13236$as_echo_n "checking for $ac_word... " >&6; }
13237if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13238 $as_echo_n "(cached) " >&6
ca9f4b81 13239else
4de997d1
PB
13240 if test -n "$WINDRES_FOR_TARGET"; then
13241 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13242else
1c710c3c
DJ
13243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13244for as_dir in $PATH
13245do
13246 IFS=$as_save_IFS
13247 test -z "$as_dir" && as_dir=.
5213506e
RW
13248 for ac_exec_ext in '' $ac_executable_extensions; do
13249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13250 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13252 break 2
13253 fi
13254done
5213506e
RW
13255 done
13256IFS=$as_save_IFS
1c710c3c 13257
ca9f4b81
AO
13258fi
13259fi
1c710c3c 13260WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 13261if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13263$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13264else
5213506e
RW
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13266$as_echo "no" >&6; }
ca9f4b81
AO
13267fi
13268
5213506e 13269
e8b05380
PB
13270 fi
13271 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13272 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13273set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13275$as_echo_n "checking for $ac_word... " >&6; }
13276if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13277 $as_echo_n "(cached) " >&6
ca9f4b81 13278else
2693c0b0
PB
13279 if test -n "$WINDRES_FOR_TARGET"; then
13280 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13281else
1c710c3c
DJ
13282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13283for as_dir in $PATH
13284do
13285 IFS=$as_save_IFS
13286 test -z "$as_dir" && as_dir=.
5213506e
RW
13287 for ac_exec_ext in '' $ac_executable_extensions; do
13288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13289 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13291 break 2
13292 fi
13293done
5213506e
RW
13294 done
13295IFS=$as_save_IFS
1c710c3c 13296
ca9f4b81
AO
13297fi
13298fi
1c710c3c 13299WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 13300if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13302$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13303else
5213506e
RW
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13305$as_echo "no" >&6; }
ca9f4b81 13306fi
1c710c3c 13307
5213506e 13308
e8b05380
PB
13309 fi
13310 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13311 done
13312fi
1c710c3c 13313
2693c0b0
PB
13314if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13315 set dummy windres
13316 if test $build = $target ; then
13317 WINDRES_FOR_TARGET="$2"
ca9f4b81 13318 else
2693c0b0 13319 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 13320 fi
1c00b503
PB
13321else
13322 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
13323fi
13324
d1f8db0c
PB
13325else
13326 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
13327fi
13328
4977bab6 13329
901119ae
KT
13330
13331
13332if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13333 if test -n "$with_build_time_tools"; then
5213506e
RW
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13335$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
13336 if test -x $with_build_time_tools/windmc; then
13337 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13338 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13340$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 13341 else
5213506e
RW
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13343$as_echo "no" >&6; }
901119ae
KT
13344 fi
13345 elif test $build != $host && test $have_gcc_for_target = yes; then
13346 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
13347 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13348 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
13349 fi
13350fi
13351if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13352 # Extract the first word of "windmc", so it can be a program name with args.
13353set dummy windmc; ac_word=$2
5213506e
RW
13354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13355$as_echo_n "checking for $ac_word... " >&6; }
13356if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13357 $as_echo_n "(cached) " >&6
901119ae
KT
13358else
13359 case $WINDMC_FOR_TARGET in
13360 [\\/]* | ?:[\\/]*)
13361 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13362 ;;
13363 *)
13364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13365for as_dir in $gcc_cv_tool_dirs
13366do
13367 IFS=$as_save_IFS
13368 test -z "$as_dir" && as_dir=.
5213506e
RW
13369 for ac_exec_ext in '' $ac_executable_extensions; do
13370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13371 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13373 break 2
13374 fi
13375done
5213506e
RW
13376 done
13377IFS=$as_save_IFS
901119ae
KT
13378
13379 ;;
13380esac
13381fi
13382WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 13383if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13385$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13386else
5213506e
RW
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13388$as_echo "no" >&6; }
901119ae
KT
13389fi
13390
5213506e 13391
901119ae
KT
13392fi
13393if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13394
13395
13396if test -n "$WINDMC_FOR_TARGET"; then
13397 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13398elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13399 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13400fi
13401
13402if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13403 for ncn_progname in windmc; do
13404 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13405set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13407$as_echo_n "checking for $ac_word... " >&6; }
13408if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13409 $as_echo_n "(cached) " >&6
901119ae
KT
13410else
13411 if test -n "$WINDMC_FOR_TARGET"; then
13412 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13413else
13414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13415for as_dir in $PATH
13416do
13417 IFS=$as_save_IFS
13418 test -z "$as_dir" && as_dir=.
5213506e
RW
13419 for ac_exec_ext in '' $ac_executable_extensions; do
13420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13421 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13423 break 2
13424 fi
13425done
5213506e
RW
13426 done
13427IFS=$as_save_IFS
901119ae
KT
13428
13429fi
13430fi
13431WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13432if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13434$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13435else
5213506e
RW
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13437$as_echo "no" >&6; }
901119ae
KT
13438fi
13439
5213506e 13440
901119ae
KT
13441 done
13442fi
13443
13444if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13445 for ncn_progname in windmc; do
5213506e
RW
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13447$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
13448 if test -x $with_build_time_tools/${ncn_progname}; then
13449 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13451$as_echo "yes" >&6; }
901119ae
KT
13452 break
13453 else
5213506e
RW
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13455$as_echo "no" >&6; }
901119ae
KT
13456 fi
13457 done
13458fi
13459
13460if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13461 for ncn_progname in windmc; do
13462 if test -n "$ncn_target_tool_prefix"; then
13463 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13464set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13466$as_echo_n "checking for $ac_word... " >&6; }
13467if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13468 $as_echo_n "(cached) " >&6
901119ae
KT
13469else
13470 if test -n "$WINDMC_FOR_TARGET"; then
13471 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13472else
13473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13474for as_dir in $PATH
13475do
13476 IFS=$as_save_IFS
13477 test -z "$as_dir" && as_dir=.
5213506e
RW
13478 for ac_exec_ext in '' $ac_executable_extensions; do
13479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13480 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13482 break 2
13483 fi
13484done
5213506e
RW
13485 done
13486IFS=$as_save_IFS
901119ae
KT
13487
13488fi
13489fi
13490WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13491if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13493$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13494else
5213506e
RW
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13496$as_echo "no" >&6; }
901119ae
KT
13497fi
13498
5213506e 13499
901119ae
KT
13500 fi
13501 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13502 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13503set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13505$as_echo_n "checking for $ac_word... " >&6; }
13506if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13507 $as_echo_n "(cached) " >&6
901119ae
KT
13508else
13509 if test -n "$WINDMC_FOR_TARGET"; then
13510 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13511else
13512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13513for as_dir in $PATH
13514do
13515 IFS=$as_save_IFS
13516 test -z "$as_dir" && as_dir=.
5213506e
RW
13517 for ac_exec_ext in '' $ac_executable_extensions; do
13518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13519 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13521 break 2
13522 fi
13523done
5213506e
RW
13524 done
13525IFS=$as_save_IFS
901119ae
KT
13526
13527fi
13528fi
13529WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13530if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13532$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13533else
5213506e
RW
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13535$as_echo "no" >&6; }
901119ae
KT
13536fi
13537
5213506e 13538
901119ae
KT
13539 fi
13540 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13541 done
13542fi
13543
13544if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13545 set dummy windmc
13546 if test $build = $target ; then
13547 WINDMC_FOR_TARGET="$2"
13548 else
13549 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13550 fi
1c00b503
PB
13551else
13552 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
13553fi
13554
13555else
13556 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13557fi
13558
13559
2abefe3d
PB
13560RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13561
5213506e
RW
13562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13563$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 13564if test "x${build}" != "x${host}" ; then
e8b05380
PB
13565 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13566 # We already found the complete path
172e41aa 13567 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13569$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13570 else
13571 # Canadian cross, just use what we found
5213506e
RW
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13573$as_echo "pre-installed" >&6; }
e8b05380 13574 fi
2abefe3d
PB
13575else
13576 ok=yes
13577 case " ${configdirs} " in
13578 *" binutils "*) ;;
13579 *) ok=no ;;
13580 esac
1c710c3c 13581
2abefe3d
PB
13582 if test $ok = yes; then
13583 # An in-tree tool is available and we can use it
13584 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13586$as_echo "just compiled" >&6; }
e8b05380
PB
13587 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13588 # We already found the complete path
172e41aa 13589 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13591$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13592 elif test "x$target" = "x$host"; then
13593 # We can use an host tool
13594 AR_FOR_TARGET='$(AR)'
5213506e
RW
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13596$as_echo "host tool" >&6; }
2abefe3d
PB
13597 else
13598 # We need a cross tool
5213506e
RW
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13600$as_echo "pre-installed" >&6; }
2abefe3d
PB
13601 fi
13602fi
0b0dc272 13603
5213506e
RW
13604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13605$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 13606if test "x${build}" != "x${host}" ; then
e8b05380
PB
13607 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13608 # We already found the complete path
172e41aa 13609 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13611$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13612 else
13613 # Canadian cross, just use what we found
5213506e
RW
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13615$as_echo "pre-installed" >&6; }
e8b05380 13616 fi
2abefe3d
PB
13617else
13618 ok=yes
13619 case " ${configdirs} " in
13620 *" gas "*) ;;
13621 *) ok=no ;;
13622 esac
1c710c3c 13623
2abefe3d
PB
13624 if test $ok = yes; then
13625 # An in-tree tool is available and we can use it
13626 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13628$as_echo "just compiled" >&6; }
e8b05380
PB
13629 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13630 # We already found the complete path
172e41aa 13631 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13633$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13634 elif test "x$target" = "x$host"; then
13635 # We can use an host tool
13636 AS_FOR_TARGET='$(AS)'
5213506e
RW
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13638$as_echo "host tool" >&6; }
2abefe3d
PB
13639 else
13640 # We need a cross tool
5213506e
RW
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13642$as_echo "pre-installed" >&6; }
2abefe3d
PB
13643 fi
13644fi
0b0dc272 13645
5213506e
RW
13646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13647$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 13648if test "x${build}" != "x${host}" ; then
e8b05380
PB
13649 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13650 # We already found the complete path
172e41aa 13651 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13653$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13654 else
13655 # Canadian cross, just use what we found
5213506e
RW
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13657$as_echo "pre-installed" >&6; }
e8b05380 13658 fi
2abefe3d
PB
13659else
13660 ok=yes
13661 case " ${configdirs} " in
13662 *" gcc "*) ;;
13663 *) ok=no ;;
13664 esac
1c710c3c 13665
2abefe3d
PB
13666 if test $ok = yes; then
13667 # An in-tree tool is available and we can use it
13668 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13670$as_echo "just compiled" >&6; }
e8b05380
PB
13671 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13672 # We already found the complete path
172e41aa 13673 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13675$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13676 elif test "x$target" = "x$host"; then
13677 # We can use an host tool
13678 CC_FOR_TARGET='$(CC)'
5213506e
RW
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13680$as_echo "host tool" >&6; }
2abefe3d
PB
13681 else
13682 # We need a cross tool
5213506e
RW
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13684$as_echo "pre-installed" >&6; }
2abefe3d
PB
13685 fi
13686fi
0b0dc272 13687
5213506e
RW
13688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13689$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 13690if test "x${build}" != "x${host}" ; then
e8b05380
PB
13691 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13692 # We already found the complete path
172e41aa 13693 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13695$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13696 else
13697 # Canadian cross, just use what we found
5213506e
RW
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13699$as_echo "pre-installed" >&6; }
e8b05380 13700 fi
2abefe3d
PB
13701else
13702 ok=yes
13703 case " ${configdirs} " in
13704 *" gcc "*) ;;
13705 *) ok=no ;;
13706 esac
13707 case ,${enable_languages}, in
13708 *,c++,*) ;;
13709 *) ok=no ;;
13710 esac
13711 if test $ok = yes; then
13712 # An in-tree tool is available and we can use it
2077db1b 13713 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
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13715$as_echo "just compiled" >&6; }
e8b05380
PB
13716 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13717 # We already found the complete path
172e41aa 13718 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13720$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13721 elif test "x$target" = "x$host"; then
13722 # We can use an host tool
13723 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13725$as_echo "host tool" >&6; }
2abefe3d
PB
13726 else
13727 # We need a cross tool
5213506e
RW
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13729$as_echo "pre-installed" >&6; }
2abefe3d
PB
13730 fi
13731fi
0b0dc272 13732
5213506e
RW
13733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13734$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 13735if test "x${build}" != "x${host}" ; then
e8b05380
PB
13736 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13737 # We already found the complete path
172e41aa 13738 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13740$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13741 else
13742 # Canadian cross, just use what we found
5213506e
RW
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13744$as_echo "pre-installed" >&6; }
e8b05380 13745 fi
2abefe3d
PB
13746else
13747 ok=yes
13748 case " ${configdirs} " in
13749 *" gcc "*) ;;
13750 *) ok=no ;;
13751 esac
13752 case ,${enable_languages}, in
13753 *,c++,*) ;;
13754 *) ok=no ;;
13755 esac
13756 if test $ok = yes; then
13757 # An in-tree tool is available and we can use it
2077db1b 13758 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
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13760$as_echo "just compiled" >&6; }
e8b05380
PB
13761 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13762 # We already found the complete path
172e41aa 13763 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13765$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13766 elif test "x$target" = "x$host"; then
13767 # We can use an host tool
13768 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13770$as_echo "host tool" >&6; }
2abefe3d
PB
13771 else
13772 # We need a cross tool
5213506e
RW
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13774$as_echo "pre-installed" >&6; }
2abefe3d
PB
13775 fi
13776fi
0b0dc272 13777
5213506e
RW
13778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13779$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 13780if test "x${build}" != "x${host}" ; then
e8b05380
PB
13781 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13782 # We already found the complete path
172e41aa 13783 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13785$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13786 else
13787 # Canadian cross, just use what we found
5213506e
RW
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13789$as_echo "pre-installed" >&6; }
e8b05380 13790 fi
2abefe3d
PB
13791else
13792 ok=yes
13793 case " ${configdirs} " in
13794 *" binutils "*) ;;
13795 *) ok=no ;;
13796 esac
1c710c3c 13797
2abefe3d
PB
13798 if test $ok = yes; then
13799 # An in-tree tool is available and we can use it
13800 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13802$as_echo "just compiled" >&6; }
e8b05380
PB
13803 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13804 # We already found the complete path
172e41aa 13805 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13807$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13808 elif test "x$target" = "x$host"; then
13809 # We can use an host tool
13810 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13812$as_echo "host tool" >&6; }
2abefe3d
PB
13813 else
13814 # We need a cross tool
5213506e
RW
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13816$as_echo "pre-installed" >&6; }
2abefe3d
PB
13817 fi
13818fi
0b0dc272 13819
5213506e
RW
13820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13821$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 13822if test "x${build}" != "x${host}" ; then
e8b05380
PB
13823 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13824 # We already found the complete path
172e41aa 13825 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13827$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13828 else
13829 # Canadian cross, just use what we found
5213506e
RW
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13831$as_echo "pre-installed" >&6; }
e8b05380 13832 fi
2abefe3d
PB
13833else
13834 ok=yes
13835 case " ${configdirs} " in
13836 *" gcc "*) ;;
13837 *) ok=no ;;
13838 esac
1c710c3c 13839
2abefe3d
PB
13840 if test $ok = yes; then
13841 # An in-tree tool is available and we can use it
13842 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13844$as_echo "just compiled" >&6; }
e8b05380
PB
13845 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13846 # We already found the complete path
172e41aa 13847 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13849$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13850 elif test "x$target" = "x$host"; then
13851 # We can use an host tool
13852 GCC_FOR_TARGET='$()'
5213506e
RW
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13854$as_echo "host tool" >&6; }
2abefe3d
PB
13855 else
13856 # We need a cross tool
5213506e
RW
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13858$as_echo "pre-installed" >&6; }
2abefe3d
PB
13859 fi
13860fi
0b0dc272 13861
5213506e
RW
13862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13863$as_echo_n "checking where to find the target gcj... " >&6; }
2abefe3d 13864if test "x${build}" != "x${host}" ; then
e8b05380
PB
13865 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13866 # We already found the complete path
172e41aa 13867 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13869$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13870 else
13871 # Canadian cross, just use what we found
5213506e
RW
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13873$as_echo "pre-installed" >&6; }
e8b05380 13874 fi
2abefe3d
PB
13875else
13876 ok=yes
13877 case " ${configdirs} " in
13878 *" gcc "*) ;;
13879 *) ok=no ;;
13880 esac
13881 case ,${enable_languages}, in
13882 *,java,*) ;;
13883 *) ok=no ;;
13884 esac
13885 if test $ok = yes; then
13886 # An in-tree tool is available and we can use it
13887 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13889$as_echo "just compiled" >&6; }
e8b05380
PB
13890 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13891 # We already found the complete path
172e41aa 13892 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13894$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13895 elif test "x$target" = "x$host"; then
13896 # We can use an host tool
13897 GCJ_FOR_TARGET='$(GCJ)'
5213506e
RW
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13899$as_echo "host tool" >&6; }
2abefe3d
PB
13900 else
13901 # We need a cross tool
5213506e
RW
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13903$as_echo "pre-installed" >&6; }
2abefe3d
PB
13904 fi
13905fi
0b0dc272 13906
5213506e
RW
13907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13908$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 13909if test "x${build}" != "x${host}" ; then
e8b05380
PB
13910 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13911 # We already found the complete path
172e41aa 13912 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13914$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13915 else
13916 # Canadian cross, just use what we found
5213506e
RW
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13918$as_echo "pre-installed" >&6; }
e8b05380 13919 fi
2abefe3d
PB
13920else
13921 ok=yes
13922 case " ${configdirs} " in
13923 *" gcc "*) ;;
13924 *) ok=no ;;
13925 esac
13926 case ,${enable_languages}, in
13927 *,fortran,*) ;;
13928 *) ok=no ;;
13929 esac
13930 if test $ok = yes; then
13931 # An in-tree tool is available and we can use it
13932 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13934$as_echo "just compiled" >&6; }
e8b05380
PB
13935 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13936 # We already found the complete path
172e41aa 13937 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13939$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13940 elif test "x$target" = "x$host"; then
13941 # We can use an host tool
13942 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13944$as_echo "host tool" >&6; }
2abefe3d
PB
13945 else
13946 # We need a cross tool
5213506e
RW
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13948$as_echo "pre-installed" >&6; }
2abefe3d
PB
13949 fi
13950fi
0b0dc272 13951
632e2a07
ILT
13952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13953$as_echo_n "checking where to find the target gccgo... " >&6; }
13954if test "x${build}" != "x${host}" ; then
13955 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13956 # We already found the complete path
13957 ac_dir=`dirname $GOC_FOR_TARGET`
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13959$as_echo "pre-installed in $ac_dir" >&6; }
13960 else
13961 # Canadian cross, just use what we found
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13963$as_echo "pre-installed" >&6; }
13964 fi
13965else
13966 ok=yes
13967 case " ${configdirs} " in
13968 *" gcc "*) ;;
13969 *) ok=no ;;
13970 esac
13971 case ,${enable_languages}, in
13972 *,go,*) ;;
13973 *) ok=no ;;
13974 esac
13975 if test $ok = yes; then
13976 # An in-tree tool is available and we can use it
13977 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13979$as_echo "just compiled" >&6; }
13980 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13981 # We already found the complete path
13982 ac_dir=`dirname $GOC_FOR_TARGET`
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13984$as_echo "pre-installed in $ac_dir" >&6; }
13985 elif test "x$target" = "x$host"; then
13986 # We can use an host tool
13987 GOC_FOR_TARGET='$(GOC)'
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13989$as_echo "host tool" >&6; }
13990 else
13991 # We need a cross tool
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13993$as_echo "pre-installed" >&6; }
13994 fi
13995fi
13996
5213506e
RW
13997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13998$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 13999if test "x${build}" != "x${host}" ; then
e8b05380
PB
14000 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14001 # We already found the complete path
172e41aa 14002 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14004$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14005 else
14006 # Canadian cross, just use what we found
5213506e
RW
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14008$as_echo "pre-installed" >&6; }
e8b05380 14009 fi
2abefe3d
PB
14010else
14011 ok=yes
14012 case " ${configdirs} " in
14013 *" ld "*) ;;
14014 *) ok=no ;;
14015 esac
1c710c3c 14016
2abefe3d
PB
14017 if test $ok = yes; then
14018 # An in-tree tool is available and we can use it
14019 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14021$as_echo "just compiled" >&6; }
e8b05380
PB
14022 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14023 # We already found the complete path
172e41aa 14024 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14026$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14027 elif test "x$target" = "x$host"; then
14028 # We can use an host tool
14029 LD_FOR_TARGET='$(LD)'
5213506e
RW
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14031$as_echo "host tool" >&6; }
2abefe3d
PB
14032 else
14033 # We need a cross tool
5213506e
RW
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14035$as_echo "pre-installed" >&6; }
2abefe3d
PB
14036 fi
14037fi
0b0dc272 14038
5213506e
RW
14039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14040$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 14041if test "x${build}" != "x${host}" ; then
e8b05380
PB
14042 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14043 # We already found the complete path
172e41aa 14044 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14046$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14047 else
14048 # Canadian cross, just use what we found
5213506e
RW
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14050$as_echo "pre-installed" >&6; }
e8b05380 14051 fi
2abefe3d 14052else
e8b05380
PB
14053 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14054 # We already found the complete path
172e41aa 14055 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14057$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 14058 elif test "x$target" = "x$host"; then
2abefe3d
PB
14059 # We can use an host tool
14060 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14062$as_echo "host tool" >&6; }
2abefe3d
PB
14063 else
14064 # We need a cross tool
5213506e
RW
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14066$as_echo "pre-installed" >&6; }
2abefe3d
PB
14067 fi
14068fi
0b0dc272 14069
5213506e
RW
14070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14071$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 14072if test "x${build}" != "x${host}" ; then
e8b05380
PB
14073 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14074 # We already found the complete path
172e41aa 14075 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14077$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14078 else
14079 # Canadian cross, just use what we found
5213506e
RW
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14081$as_echo "pre-installed" >&6; }
e8b05380 14082 fi
2abefe3d
PB
14083else
14084 ok=yes
14085 case " ${configdirs} " in
14086 *" binutils "*) ;;
14087 *) ok=no ;;
14088 esac
1c710c3c 14089
2abefe3d
PB
14090 if test $ok = yes; then
14091 # An in-tree tool is available and we can use it
14092 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14094$as_echo "just compiled" >&6; }
e8b05380
PB
14095 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14096 # We already found the complete path
172e41aa 14097 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14099$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14100 elif test "x$target" = "x$host"; then
14101 # We can use an host tool
14102 NM_FOR_TARGET='$(NM)'
5213506e
RW
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14104$as_echo "host tool" >&6; }
2abefe3d
PB
14105 else
14106 # We need a cross tool
5213506e
RW
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14108$as_echo "pre-installed" >&6; }
2abefe3d
PB
14109 fi
14110fi
0b0dc272 14111
5213506e
RW
14112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14113$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 14114if test "x${build}" != "x${host}" ; then
e8b05380
PB
14115 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14116 # We already found the complete path
172e41aa 14117 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14119$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14120 else
14121 # Canadian cross, just use what we found
5213506e
RW
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14123$as_echo "pre-installed" >&6; }
e8b05380 14124 fi
2abefe3d
PB
14125else
14126 ok=yes
14127 case " ${configdirs} " in
14128 *" binutils "*) ;;
14129 *) ok=no ;;
14130 esac
1c710c3c 14131
2abefe3d
PB
14132 if test $ok = yes; then
14133 # An in-tree tool is available and we can use it
14134 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14136$as_echo "just compiled" >&6; }
e8b05380
PB
14137 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14138 # We already found the complete path
172e41aa 14139 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14141$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14142 elif test "x$target" = "x$host"; then
14143 # We can use an host tool
14144 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14146$as_echo "host tool" >&6; }
2abefe3d
PB
14147 else
14148 # We need a cross tool
5213506e
RW
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14150$as_echo "pre-installed" >&6; }
2abefe3d
PB
14151 fi
14152fi
0b0dc272 14153
5213506e
RW
14154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14155$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 14156if test "x${build}" != "x${host}" ; then
e8b05380
PB
14157 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14158 # We already found the complete path
172e41aa 14159 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14161$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14162 else
14163 # Canadian cross, just use what we found
5213506e
RW
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14165$as_echo "pre-installed" >&6; }
e8b05380 14166 fi
2abefe3d
PB
14167else
14168 ok=yes
14169 case " ${configdirs} " in
14170 *" binutils "*) ;;
14171 *) ok=no ;;
14172 esac
1c710c3c 14173
2abefe3d
PB
14174 if test $ok = yes; then
14175 # An in-tree tool is available and we can use it
14176 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14178$as_echo "just compiled" >&6; }
e8b05380
PB
14179 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14180 # We already found the complete path
172e41aa 14181 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14183$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14184 elif test "x$target" = "x$host"; then
14185 # We can use an host tool
14186 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14188$as_echo "host tool" >&6; }
2abefe3d
PB
14189 else
14190 # We need a cross tool
5213506e
RW
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14192$as_echo "pre-installed" >&6; }
2abefe3d
PB
14193 fi
14194fi
0b0dc272 14195
e7a82751
RM
14196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14197$as_echo_n "checking where to find the target readelf... " >&6; }
14198if test "x${build}" != "x${host}" ; then
14199 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14200 # We already found the complete path
14201 ac_dir=`dirname $READELF_FOR_TARGET`
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14203$as_echo "pre-installed in $ac_dir" >&6; }
14204 else
14205 # Canadian cross, just use what we found
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14207$as_echo "pre-installed" >&6; }
14208 fi
14209else
14210 ok=yes
14211 case " ${configdirs} " in
14212 *" binutils "*) ;;
14213 *) ok=no ;;
14214 esac
14215
14216 if test $ok = yes; then
14217 # An in-tree tool is available and we can use it
14218 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14220$as_echo "just compiled" >&6; }
14221 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14222 # We already found the complete path
14223 ac_dir=`dirname $READELF_FOR_TARGET`
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14225$as_echo "pre-installed in $ac_dir" >&6; }
14226 elif test "x$target" = "x$host"; then
14227 # We can use an host tool
14228 READELF_FOR_TARGET='$(READELF)'
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14230$as_echo "host tool" >&6; }
14231 else
14232 # We need a cross tool
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14234$as_echo "pre-installed" >&6; }
14235 fi
14236fi
14237
5213506e
RW
14238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14239$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 14240if test "x${build}" != "x${host}" ; then
e8b05380
PB
14241 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14242 # We already found the complete path
172e41aa 14243 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14245$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14246 else
14247 # Canadian cross, just use what we found
5213506e
RW
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14249$as_echo "pre-installed" >&6; }
e8b05380 14250 fi
2abefe3d
PB
14251else
14252 ok=yes
14253 case " ${configdirs} " in
14254 *" binutils "*) ;;
14255 *) ok=no ;;
14256 esac
1c710c3c 14257
2abefe3d
PB
14258 if test $ok = yes; then
14259 # An in-tree tool is available and we can use it
455c8f48 14260 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14262$as_echo "just compiled" >&6; }
e8b05380
PB
14263 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14264 # We already found the complete path
172e41aa 14265 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14267$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14268 elif test "x$target" = "x$host"; then
14269 # We can use an host tool
14270 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14272$as_echo "host tool" >&6; }
2abefe3d
PB
14273 else
14274 # We need a cross tool
5213506e
RW
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14276$as_echo "pre-installed" >&6; }
2abefe3d
PB
14277 fi
14278fi
0b0dc272 14279
5213506e
RW
14280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14281$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 14282if test "x${build}" != "x${host}" ; then
e8b05380
PB
14283 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14284 # We already found the complete path
172e41aa 14285 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14287$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14288 else
14289 # Canadian cross, just use what we found
5213506e
RW
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14291$as_echo "pre-installed" >&6; }
e8b05380 14292 fi
2abefe3d
PB
14293else
14294 ok=yes
14295 case " ${configdirs} " in
14296 *" binutils "*) ;;
14297 *) ok=no ;;
14298 esac
1c710c3c 14299
2abefe3d
PB
14300 if test $ok = yes; then
14301 # An in-tree tool is available and we can use it
14302 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14304$as_echo "just compiled" >&6; }
e8b05380
PB
14305 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14306 # We already found the complete path
172e41aa 14307 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14309$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14310 elif test "x$target" = "x$host"; then
14311 # We can use an host tool
14312 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14314$as_echo "host tool" >&6; }
2abefe3d
PB
14315 else
14316 # We need a cross tool
5213506e
RW
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14318$as_echo "pre-installed" >&6; }
2abefe3d 14319 fi
671aa708 14320fi
be912515 14321
5213506e
RW
14322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14323$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
14324if test "x${build}" != "x${host}" ; then
14325 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14326 # We already found the complete path
14327 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14329$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14330 else
14331 # Canadian cross, just use what we found
5213506e
RW
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14333$as_echo "pre-installed" >&6; }
901119ae
KT
14334 fi
14335else
14336 ok=yes
14337 case " ${configdirs} " in
14338 *" binutils "*) ;;
14339 *) ok=no ;;
14340 esac
14341
14342 if test $ok = yes; then
14343 # An in-tree tool is available and we can use it
14344 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14346$as_echo "just compiled" >&6; }
901119ae
KT
14347 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14348 # We already found the complete path
14349 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14351$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14352 elif test "x$target" = "x$host"; then
14353 # We can use an host tool
14354 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14356$as_echo "host tool" >&6; }
901119ae
KT
14357 else
14358 # We need a cross tool
5213506e
RW
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14360$as_echo "pre-installed" >&6; }
901119ae
KT
14361 fi
14362fi
14363
be912515
NN
14364
14365
2abefe3d 14366
0b0dc272 14367
671aa708
NN
14368# Certain tools may need extra flags.
14369AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14370RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14371NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14372
2abefe3d
PB
14373# When building target libraries, except in a Canadian cross, we use
14374# the same toolchain as the compiler we just built.
14375COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14376COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14377COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14378if test $host = $build; then
14379 case " $configdirs " in
14380 *" gcc "*)
14381 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14382 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14383 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14384 ;;
14385 esac
14386fi
14387
14388
14389
14390
14391
5213506e
RW
14392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14393$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14394# Check whether --enable-maintainer-mode was given.
14395if test "${enable_maintainer_mode+set}" = set; then :
14396 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
14397else
14398 USE_MAINTAINER_MODE=no
5213506e
RW
14399fi
14400
14401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14402$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
14403
14404
14405if test "$USE_MAINTAINER_MODE" = yes; then
14406 MAINTAINER_MODE_TRUE=
14407 MAINTAINER_MODE_FALSE='#'
14408else
14409 MAINTAINER_MODE_TRUE='#'
14410 MAINTAINER_MODE_FALSE=
1c710c3c 14411fi
ee03dc5e
AO
14412MAINT=$MAINTAINER_MODE_TRUE
14413
2805b53a
NN
14414# ---------------------
14415# GCC bootstrap support
14416# ---------------------
14417
14418# Stage specific cflags for build.
14419stage1_cflags="-g"
14420case $build in
14421 vax-*-*)
14422 case ${GCC} in
14423 yes) stage1_cflags="-g -Wa,-J" ;;
14424 *) stage1_cflags="-g -J" ;;
14425 esac ;;
2805b53a
NN
14426esac
14427
0b50988a 14428
2805b53a 14429
8efea775 14430# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
14431# Check whether --enable-stage1-checking was given.
14432if test "${enable_stage1_checking+set}" = set; then :
14433 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 14434else
e643dc23 14435 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
7e98624c 14436 stage1_checking=--enable-checking=yes,types
8efea775 14437else
e643dc23 14438 stage1_checking=--enable-checking=$enable_checking,types
8efea775 14439fi
5213506e 14440fi
8efea775
PB
14441
14442
2aeb72e9 14443
5213506e
RW
14444# Enable -Werror in bootstrap stage2 and later.
14445# Check whether --enable-werror was given.
14446if test "${enable_werror+set}" = set; then :
14447 enableval=$enable_werror;
2805b53a 14448else
416cfb5e 14449 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 14450 enable_werror=yes
88fceb68
PB
14451else
14452 enable_werror=no
14453fi
5213506e
RW
14454fi
14455
09a9c095
NN
14456case ${enable_werror} in
14457 yes) stage2_werror_flag="--enable-werror-always" ;;
14458 *) stage2_werror_flag="" ;;
2805b53a
NN
14459esac
14460
14461
459260ec
DM
14462# Enable --enable-host-shared.
14463# Check whether --enable-host-shared was given.
14464if test "${enable_host_shared+set}" = set; then :
14465 enableval=$enable_host_shared; host_shared=$enableval
14466else
14467 host_shared=no
14468fi
14469
14470
14471
f2689b09
SE
14472# Specify what files to not compare during bootstrap.
14473
14474compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14475case "$target" in
14476 hppa*64*-*-hpux*) ;;
14477 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
d91491e5 14478 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
f2689b09
SE
14479esac
14480
14481
5213506e
RW
14482ac_config_files="$ac_config_files Makefile"
14483
1c710c3c 14484cat >confcache <<\_ACEOF
671aa708
NN
14485# This file is a shell script that caches the results of configure
14486# tests run on this system so they can be shared between configure
1c710c3c
DJ
14487# scripts and configure runs, see configure's option --config-cache.
14488# It is not useful on other systems. If it contains results you don't
14489# want to keep, you may remove or edit it.
671aa708 14490#
1c710c3c
DJ
14491# config.status only pays attention to the cache file if you give it
14492# the --recheck option to rerun configure.
671aa708 14493#
1c710c3c
DJ
14494# `ac_cv_env_foo' variables (set or unset) will be overridden when
14495# loading this file, other *unset* `ac_cv_foo' will be assigned the
14496# following values.
14497
14498_ACEOF
14499
671aa708
NN
14500# The following way of writing the cache mishandles newlines in values,
14501# but we know of no workaround that is simple, portable, and efficient.
5213506e 14502# So, we kill variables containing newlines.
671aa708
NN
14503# Ultrix sh set writes to stderr and can't be redirected directly,
14504# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
14505(
14506 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14507 eval ac_val=\$$ac_var
14508 case $ac_val in #(
14509 *${as_nl}*)
14510 case $ac_var in #(
14511 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14512$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14513 esac
14514 case $ac_var in #(
14515 _ | IFS | as_nl) ;; #(
14516 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14517 *) { eval $ac_var=; unset $ac_var;} ;;
14518 esac ;;
14519 esac
14520 done
14521
1c710c3c 14522 (set) 2>&1 |
5213506e
RW
14523 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14524 *${as_nl}ac_space=\ *)
14525 # `set' does not quote correctly, so add quotes: double-quote
14526 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
14527 sed -n \
14528 "s/'/'\\\\''/g;
14529 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 14530 ;; #(
1c710c3c
DJ
14531 *)
14532 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 14533 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 14534 ;;
5213506e
RW
14535 esac |
14536 sort
14537) |
1c710c3c 14538 sed '
5213506e 14539 /^ac_cv_env_/b end
1c710c3c 14540 t clear
5213506e 14541 :clear
1c710c3c
DJ
14542 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14543 t end
5213506e
RW
14544 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14545 :end' >>confcache
14546if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14547 if test -w "$cache_file"; then
14548 test "x$cache_file" != "x/dev/null" &&
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14550$as_echo "$as_me: updating cache $cache_file" >&6;}
1c710c3c 14551 cat confcache >$cache_file
671aa708 14552 else
5213506e
RW
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14554$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 14555 fi
4977bab6 14556fi
671aa708 14557rm -f confcache
79c06341 14558
671aa708
NN
14559test "x$prefix" = xNONE && prefix=$ac_default_prefix
14560# Let make expand exec_prefix.
14561test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 14562
671aa708
NN
14563# Transform confdefs.h into DEFS.
14564# Protect against shell expansion while executing Makefile rules.
14565# Protect against Makefile macro expansion.
1c710c3c
DJ
14566#
14567# If the first sed substitution is executed (which looks for macros that
5213506e 14568# take arguments), then branch to the quote section. Otherwise,
1c710c3c 14569# look for a macro that doesn't take arguments.
5213506e
RW
14570ac_script='
14571:mline
14572/\\$/{
14573 N
14574 s,\\\n,,
14575 b mline
14576}
1c710c3c 14577t clear
5213506e
RW
14578:clear
14579s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14580t quote
5213506e 14581s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14582t quote
5213506e
RW
14583b any
14584:quote
14585s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14586s/\[/\\&/g
14587s/\]/\\&/g
14588s/\$/$$/g
14589H
14590:any
14591${
14592 g
14593 s/^\n//
14594 s/\n/ /g
14595 p
14596}
14597'
14598DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
14599
14600
14601ac_libobjs=
14602ac_ltlibobjs=
14603for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14604 # 1. Remove the extension, and $U if already installed.
5213506e
RW
14605 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14606 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14607 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14608 # will be set to the directory where LIBOBJS objects are built.
14609 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14610 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
14611done
14612LIBOBJS=$ac_libobjs
fb0103e5 14613
1c710c3c 14614LTLIBOBJS=$ac_ltlibobjs
0b0dc272 14615
af71363e 14616
1c710c3c
DJ
14617
14618: ${CONFIG_STATUS=./config.status}
5213506e 14619ac_write_fail=0
1c710c3c
DJ
14620ac_clean_files_save=$ac_clean_files
14621ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
14622{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14623$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14624as_write_fail=0
14625cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
14626#! $SHELL
14627# Generated by $as_me.
671aa708 14628# Run this file to recreate the current configuration.
671aa708 14629# Compiler output produced by configure, useful for debugging
1c710c3c 14630# configure, is in config.log if it exists.
0b0dc272 14631
1c710c3c
DJ
14632debug=false
14633ac_cs_recheck=false
14634ac_cs_silent=false
1c710c3c 14635
5213506e
RW
14636SHELL=\${CONFIG_SHELL-$SHELL}
14637export SHELL
14638_ASEOF
14639cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14640## -------------------- ##
14641## M4sh Initialization. ##
14642## -------------------- ##
14643
14644# Be more Bourne compatible
14645DUALCASE=1; export DUALCASE # for MKS sh
14646if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
14647 emulate sh
14648 NULLCMD=:
5213506e 14649 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
14650 # is contrary to our usage. Disable this feature.
14651 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
14652 setopt NO_GLOB_SUBST
14653else
14654 case `(set -o) 2>/dev/null` in #(
14655 *posix*) :
14656 set -o posix ;; #(
14657 *) :
14658 ;;
14659esac
1c710c3c 14660fi
1c710c3c 14661
5213506e
RW
14662
14663as_nl='
14664'
14665export as_nl
14666# Printing a long string crashes Solaris 7 /usr/bin/printf.
14667as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14668as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14669as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14670# Prefer a ksh shell builtin over an external printf program on Solaris,
14671# but without wasting forks for bash or zsh.
14672if test -z "$BASH_VERSION$ZSH_VERSION" \
14673 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14674 as_echo='print -r --'
14675 as_echo_n='print -rn --'
14676elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14677 as_echo='printf %s\n'
14678 as_echo_n='printf %s'
14679else
14680 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14681 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14682 as_echo_n='/usr/ucb/echo -n'
14683 else
14684 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14685 as_echo_n_body='eval
14686 arg=$1;
14687 case $arg in #(
14688 *"$as_nl"*)
14689 expr "X$arg" : "X\\(.*\\)$as_nl";
14690 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14691 esac;
14692 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14693 '
14694 export as_echo_n_body
14695 as_echo_n='sh -c $as_echo_n_body as_echo'
14696 fi
14697 export as_echo_body
14698 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
14699fi
14700
5213506e
RW
14701# The user is always right.
14702if test "${PATH_SEPARATOR+set}" != set; then
14703 PATH_SEPARATOR=:
14704 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14705 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14706 PATH_SEPARATOR=';'
14707 }
14708fi
14709
14710
14711# IFS
14712# We need space, tab and new line, in precisely that order. Quoting is
14713# there to prevent editors from complaining about space-tab.
14714# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14715# splitting by setting IFS to empty value.)
14716IFS=" "" $as_nl"
14717
14718# Find who we are. Look in the path if we contain no directory separator.
14719case $0 in #((
14720 *[\\/]* ) as_myself=$0 ;;
14721 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14722for as_dir in $PATH
14723do
14724 IFS=$as_save_IFS
14725 test -z "$as_dir" && as_dir=.
14726 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14727 done
14728IFS=$as_save_IFS
14729
14730 ;;
14731esac
14732# We did not find ourselves, most probably we were run as `sh COMMAND'
14733# in which case we are not to be found in the path.
14734if test "x$as_myself" = x; then
14735 as_myself=$0
14736fi
14737if test ! -f "$as_myself"; then
14738 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14739 exit 1
14740fi
1c710c3c 14741
5213506e
RW
14742# Unset variables that we do not need and which cause bugs (e.g. in
14743# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14744# suppresses any "Segmentation fault" message there. '((' could
14745# trigger a bug in pdksh 5.2.14.
14746for as_var in BASH_ENV ENV MAIL MAILPATH
14747do eval test x\${$as_var+set} = xset \
14748 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14749done
1c710c3c
DJ
14750PS1='$ '
14751PS2='> '
14752PS4='+ '
14753
14754# NLS nuisances.
5213506e
RW
14755LC_ALL=C
14756export LC_ALL
14757LANGUAGE=C
14758export LANGUAGE
14759
14760# CDPATH.
14761(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14762
14763
14764# as_fn_error ERROR [LINENO LOG_FD]
14765# ---------------------------------
14766# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14767# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14768# script with status $?, using 1 if that was 0.
14769as_fn_error ()
14770{
14771 as_status=$?; test $as_status -eq 0 && as_status=1
14772 if test "$3"; then
14773 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14774 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1c710c3c 14775 fi
5213506e
RW
14776 $as_echo "$as_me: error: $1" >&2
14777 as_fn_exit $as_status
14778} # as_fn_error
14779
14780
14781# as_fn_set_status STATUS
14782# -----------------------
14783# Set $? to STATUS, without forking.
14784as_fn_set_status ()
14785{
14786 return $1
14787} # as_fn_set_status
14788
14789# as_fn_exit STATUS
14790# -----------------
14791# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14792as_fn_exit ()
14793{
14794 set +e
14795 as_fn_set_status $1
14796 exit $1
14797} # as_fn_exit
14798
14799# as_fn_unset VAR
14800# ---------------
14801# Portably unset VAR.
14802as_fn_unset ()
14803{
14804 { eval $1=; unset $1;}
14805}
14806as_unset=as_fn_unset
14807# as_fn_append VAR VALUE
14808# ----------------------
14809# Append the text in VALUE to the end of the definition contained in VAR. Take
14810# advantage of any shell optimizations that allow amortized linear growth over
14811# repeated appends, instead of the typical quadratic growth present in naive
14812# implementations.
14813if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14814 eval 'as_fn_append ()
14815 {
14816 eval $1+=\$2
14817 }'
14818else
14819 as_fn_append ()
14820 {
14821 eval $1=\$$1\$2
14822 }
14823fi # as_fn_append
14824
14825# as_fn_arith ARG...
14826# ------------------
14827# Perform arithmetic evaluation on the ARGs, and store the result in the
14828# global $as_val. Take advantage of shells that can avoid forks. The arguments
14829# must be portable across $(()) and expr.
14830if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14831 eval 'as_fn_arith ()
14832 {
14833 as_val=$(( $* ))
14834 }'
14835else
14836 as_fn_arith ()
14837 {
14838 as_val=`expr "$@" || test $? -eq 1`
14839 }
14840fi # as_fn_arith
14841
1c710c3c 14842
5213506e
RW
14843if expr a : '\(a\)' >/dev/null 2>&1 &&
14844 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
14845 as_expr=expr
14846else
14847 as_expr=false
14848fi
14849
5213506e 14850if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
14851 as_basename=basename
14852else
14853 as_basename=false
14854fi
14855
5213506e
RW
14856if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14857 as_dirname=dirname
14858else
14859 as_dirname=false
14860fi
1c710c3c 14861
5213506e 14862as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
14863$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14864 X"$0" : 'X\(//\)$' \| \
5213506e
RW
14865 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14866$as_echo X/"$0" |
14867 sed '/^.*\/\([^/][^/]*\)\/*$/{
14868 s//\1/
14869 q
14870 }
14871 /^X\/\(\/\/\)$/{
14872 s//\1/
14873 q
14874 }
14875 /^X\/\(\/\).*/{
14876 s//\1/
14877 q
14878 }
14879 s/.*/./; q'`
2aeb72e9 14880
2aeb72e9
DD
14881# Avoid depending upon Character Ranges.
14882as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14883as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14884as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14885as_cr_digits='0123456789'
14886as_cr_alnum=$as_cr_Letters$as_cr_digits
14887
5213506e
RW
14888ECHO_C= ECHO_N= ECHO_T=
14889case `echo -n x` in #(((((
14890-n*)
14891 case `echo 'xy\c'` in
14892 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14893 xy) ECHO_C='\c';;
14894 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14895 ECHO_T=' ';;
14896 esac;;
14897*)
14898 ECHO_N='-n';;
1c710c3c
DJ
14899esac
14900
5213506e
RW
14901rm -f conf$$ conf$$.exe conf$$.file
14902if test -d conf$$.dir; then
14903 rm -f conf$$.dir/conf$$.file
1c710c3c 14904else
5213506e
RW
14905 rm -f conf$$.dir
14906 mkdir conf$$.dir 2>/dev/null
1c710c3c 14907fi
5213506e
RW
14908if (echo >conf$$.file) 2>/dev/null; then
14909 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 14910 as_ln_s='ln -s'
5213506e
RW
14911 # ... but there are two gotchas:
14912 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14913 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14914 # In both cases, we have to default to `cp -p'.
14915 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14916 as_ln_s='cp -p'
14917 elif ln conf$$.file conf$$ 2>/dev/null; then
14918 as_ln_s=ln
14919 else
14920 as_ln_s='cp -p'
2aeb72e9 14921 fi
1c710c3c
DJ
14922else
14923 as_ln_s='cp -p'
14924fi
5213506e
RW
14925rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14926rmdir conf$$.dir 2>/dev/null
14927
14928
14929# as_fn_mkdir_p
14930# -------------
14931# Create "$as_dir" as a directory, including parents if necessary.
14932as_fn_mkdir_p ()
14933{
14934
14935 case $as_dir in #(
14936 -*) as_dir=./$as_dir;;
14937 esac
14938 test -d "$as_dir" || eval $as_mkdir_p || {
14939 as_dirs=
14940 while :; do
14941 case $as_dir in #(
14942 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14943 *) as_qdir=$as_dir;;
14944 esac
14945 as_dirs="'$as_qdir' $as_dirs"
14946 as_dir=`$as_dirname -- "$as_dir" ||
14947$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14948 X"$as_dir" : 'X\(//\)[^/]' \| \
14949 X"$as_dir" : 'X\(//\)$' \| \
14950 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14951$as_echo X"$as_dir" |
14952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14953 s//\1/
14954 q
14955 }
14956 /^X\(\/\/\)[^/].*/{
14957 s//\1/
14958 q
14959 }
14960 /^X\(\/\/\)$/{
14961 s//\1/
14962 q
14963 }
14964 /^X\(\/\).*/{
14965 s//\1/
14966 q
14967 }
14968 s/.*/./; q'`
14969 test -d "$as_dir" && break
14970 done
14971 test -z "$as_dirs" || eval "mkdir $as_dirs"
14972 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14973
1c710c3c 14974
5213506e 14975} # as_fn_mkdir_p
1c710c3c 14976if mkdir -p . 2>/dev/null; then
5213506e 14977 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
14978else
14979 test -d ./-p && rmdir ./-p
14980 as_mkdir_p=false
14981fi
14982
5213506e
RW
14983if test -x / >/dev/null 2>&1; then
14984 as_test_x='test -x'
14985else
14986 if ls -dL / >/dev/null 2>&1; then
14987 as_ls_L_option=L
14988 else
14989 as_ls_L_option=
14990 fi
14991 as_test_x='
14992 eval sh -c '\''
14993 if test -d "$1"; then
14994 test -d "$1/.";
14995 else
14996 case $1 in #(
14997 -*)set "./$1";;
14998 esac;
14999 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15000 ???[sx]*):;;*)false;;esac;fi
15001 '\'' sh
15002 '
15003fi
15004as_executable_p=$as_test_x
1c710c3c
DJ
15005
15006# Sed expression to map a string onto a valid CPP name.
15007as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15008
15009# Sed expression to map a string onto a valid variable name.
15010as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15011
15012
1c710c3c 15013exec 6>&1
5213506e
RW
15014## ----------------------------------- ##
15015## Main body of $CONFIG_STATUS script. ##
15016## ----------------------------------- ##
15017_ASEOF
15018test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15019
15020cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15021# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 15022# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
15023# values after options handling.
15024ac_log="
1c710c3c 15025This file was extended by $as_me, which was
5213506e 15026generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
15027
15028 CONFIG_FILES = $CONFIG_FILES
15029 CONFIG_HEADERS = $CONFIG_HEADERS
15030 CONFIG_LINKS = $CONFIG_LINKS
15031 CONFIG_COMMANDS = $CONFIG_COMMANDS
15032 $ $0 $@
15033
5213506e
RW
15034on `(hostname || uname -n) 2>/dev/null | sed 1q`
15035"
15036
1c710c3c
DJ
15037_ACEOF
15038
5213506e
RW
15039case $ac_config_files in *"
15040"*) set x $ac_config_files; shift; ac_config_files=$*;;
15041esac
1c710c3c 15042
2aeb72e9 15043
2aeb72e9 15044
5213506e
RW
15045cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15046# Files that config.status was made for.
15047config_files="$ac_config_files"
1c710c3c 15048
5213506e 15049_ACEOF
2aeb72e9 15050
5213506e 15051cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 15052ac_cs_usage="\
5213506e
RW
15053\`$as_me' instantiates files and other configuration actions
15054from templates according to the current configuration. Unless the files
15055and actions are specified as TAGs, all are instantiated by default.
1c710c3c 15056
5213506e 15057Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
15058
15059 -h, --help print this help, then exit
5213506e
RW
15060 -V, --version print version number and configuration settings, then exit
15061 -q, --quiet, --silent
15062 do not print progress messages
1c710c3c
DJ
15063 -d, --debug don't remove temporary files
15064 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
15065 --file=FILE[:TEMPLATE]
15066 instantiate the configuration file FILE
1c710c3c
DJ
15067
15068Configuration files:
15069$config_files
15070
5213506e 15071Report bugs to the package provider."
2aeb72e9 15072
5213506e
RW
15073_ACEOF
15074cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c
DJ
15075ac_cs_version="\\
15076config.status
5213506e
RW
15077configured by $0, generated by GNU Autoconf 2.64,
15078 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 15079
5213506e 15080Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
15081This config.status script is free software; the Free Software Foundation
15082gives unlimited permission to copy, distribute and modify it."
5213506e
RW
15083
15084ac_pwd='$ac_pwd'
15085srcdir='$srcdir'
15086INSTALL='$INSTALL'
87264276 15087AWK='$AWK'
5213506e 15088test -n "\$AWK" || AWK=awk
1c710c3c
DJ
15089_ACEOF
15090
5213506e
RW
15091cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15092# The default lists apply if the user does not specify any file.
1c710c3c
DJ
15093ac_need_defaults=:
15094while test $# != 0
a4b9e93e 15095do
1c710c3c
DJ
15096 case $1 in
15097 --*=*)
5213506e
RW
15098 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15099 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
15100 ac_shift=:
15101 ;;
5213506e 15102 *)
1c710c3c
DJ
15103 ac_option=$1
15104 ac_optarg=$2
15105 ac_shift=shift
15106 ;;
1c710c3c
DJ
15107 esac
15108
15109 case $ac_option in
15110 # Handling of the options.
671aa708 15111 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 15112 ac_cs_recheck=: ;;
5213506e
RW
15113 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15114 $as_echo "$ac_cs_version"; exit ;;
15115 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
15116 debug=: ;;
15117 --file | --fil | --fi | --f )
15118 $ac_shift
5213506e
RW
15119 case $ac_optarg in
15120 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15121 esac
15122 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 15123 ac_need_defaults=false;;
5213506e
RW
15124 --he | --h | --help | --hel | -h )
15125 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
15126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15127 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15128 ac_cs_silent=: ;;
15129
15130 # This is an error.
5213506e
RW
15131 -*) as_fn_error "unrecognized option: \`$1'
15132Try \`$0 --help' for more information." ;;
1c710c3c 15133
5213506e
RW
15134 *) as_fn_append ac_config_targets " $1"
15135 ac_need_defaults=false ;;
1c710c3c 15136
0b0dc272 15137 esac
1c710c3c 15138 shift
0b0dc272
AM
15139done
15140
1c710c3c 15141ac_configure_extra_args=
0b0dc272 15142
1c710c3c
DJ
15143if $ac_cs_silent; then
15144 exec 6>/dev/null
15145 ac_configure_extra_args="$ac_configure_extra_args --silent"
15146fi
0b0dc272 15147
1c710c3c 15148_ACEOF
5213506e 15149cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 15150if \$ac_cs_recheck; then
5213506e
RW
15151 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15152 shift
15153 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15154 CONFIG_SHELL='$SHELL'
15155 export CONFIG_SHELL
15156 exec "\$@"
1c710c3c
DJ
15157fi
15158
15159_ACEOF
5213506e
RW
15160cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15161exec 5>>config.log
15162{
15163 echo
15164 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15165## Running $as_me. ##
15166_ASBOX
15167 $as_echo "$ac_log"
15168} >&5
1c710c3c 15169
5213506e
RW
15170_ACEOF
15171cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
15172#
15173# INIT-COMMANDS
15174#
15175extrasub_build="$extrasub_build"
15176 extrasub_host="$extrasub_host"
15177 extrasub_target="$extrasub_target"
15178
5213506e 15179_ACEOF
1c710c3c 15180
5213506e 15181cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 15182
5213506e 15183# Handling of arguments.
1c710c3c
DJ
15184for ac_config_target in $ac_config_targets
15185do
5213506e
RW
15186 case $ac_config_target in
15187 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15188
15189 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
15190 esac
15191done
15192
5213506e 15193
1c710c3c
DJ
15194# If the user did not use the arguments to specify the items to instantiate,
15195# then the envvar interface is used. Set only those that are not.
15196# We use the long form for the default assignment because of an extremely
15197# bizarre bug on SunOS 4.1.3.
15198if $ac_need_defaults; then
15199 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15200fi
15201
15202# Have a temporary directory for convenience. Make it in the build tree
5213506e 15203# simply because there is no reason against having it here, and in addition,
1c710c3c 15204# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
15205# Hook for its removal unless debugging.
15206# Note that there is a small window in which the directory will not be cleaned:
15207# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
15208$debug ||
15209{
5213506e
RW
15210 tmp=
15211 trap 'exit_status=$?
15212 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15213' 0
15214 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 15215}
1c710c3c
DJ
15216# Create a (secure) tmp directory for tmp files.
15217
15218{
5213506e 15219 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
15220 test -n "$tmp" && test -d "$tmp"
15221} ||
15222{
5213506e
RW
15223 tmp=./conf$$-$RANDOM
15224 (umask 077 && mkdir "$tmp")
15225} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15226
15227# Set up the scripts for CONFIG_FILES section.
15228# No need to generate them if there are no CONFIG_FILES.
15229# This happens for instance with `./config.status config.h'.
15230if test -n "$CONFIG_FILES"; then
15231
15232if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15233 ac_cs_awk_getline=:
15234 ac_cs_awk_pipe_init=
15235 ac_cs_awk_read_file='
15236 while ((getline aline < (F[key])) > 0)
15237 print(aline)
15238 close(F[key])'
15239 ac_cs_awk_pipe_fini=
15240else
15241 ac_cs_awk_getline=false
15242 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15243 ac_cs_awk_read_file='
15244 print "|#_!!_#|"
15245 print "cat " F[key] " &&"
15246 '$ac_cs_awk_pipe_init
15247 # The final `:' finishes the AND list.
15248 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15249fi
15250ac_cr=`echo X | tr X '\015'`
15251# On cygwin, bash can eat \r inside `` if the user requested igncr.
15252# But we know of no other shell where ac_cr would be empty at this
15253# point, so we can use a bashism as a fallback.
15254if test "x$ac_cr" = x; then
15255 eval ac_cr=\$\'\\r\'
15256fi
15257ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15258if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15259 ac_cs_awk_cr='\r'
15260else
15261 ac_cs_awk_cr=$ac_cr
15262fi
15263
15264echo 'BEGIN {' >"$tmp/subs1.awk" &&
15265_ACEOF
15266
15267# Create commands to substitute file output variables.
1c710c3c 15268{
5213506e
RW
15269 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15270 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15271 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15272 echo "_ACAWK" &&
15273 echo "_ACEOF"
15274} >conf$$files.sh &&
15275. ./conf$$files.sh ||
15276 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15277rm -f conf$$files.sh
1c710c3c 15278
5213506e
RW
15279{
15280 echo "cat >conf$$subs.awk <<_ACEOF" &&
15281 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15282 echo "_ACEOF"
15283} >conf$$subs.sh ||
15284 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15285ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15286ac_delim='%!_!# '
15287for ac_last_try in false false false false false :; do
15288 . ./conf$$subs.sh ||
15289 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15290
15291 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15292 if test $ac_delim_n = $ac_delim_num; then
15293 break
15294 elif $ac_last_try; then
15295 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15296 else
15297 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15298 fi
15299done
15300rm -f conf$$subs.sh
15301
15302cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15303cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 15304_ACEOF
5213506e
RW
15305sed -n '
15306h
15307s/^/S["/; s/!.*/"]=/
15308p
15309g
15310s/^[^!]*!//
15311:repl
15312t repl
15313s/'"$ac_delim"'$//
15314t delim
15315:nl
15316h
15317s/\(.\{148\}\).*/\1/
15318t more1
15319s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15320p
15321n
15322b repl
15323:more1
15324s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15325p
15326g
15327s/.\{148\}//
15328t nl
15329:delim
15330h
15331s/\(.\{148\}\).*/\1/
15332t more2
15333s/["\\]/\\&/g; s/^/"/; s/$/"/
15334p
15335b
15336:more2
15337s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15338p
15339g
15340s/.\{148\}//
15341t delim
15342' <conf$$subs.awk | sed '
15343/^[^""]/{
15344 N
15345 s/\n//
15346}
15347' >>$CONFIG_STATUS || ac_write_fail=1
15348rm -f conf$$subs.awk
15349cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15350_ACAWK
15351cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15352 for (key in S) S_is_set[key] = 1
15353 FS = "\a"
15354 \$ac_cs_awk_pipe_init
15355}
15356{
15357 line = $ 0
15358 nfields = split(line, field, "@")
15359 substed = 0
15360 len = length(field[1])
15361 for (i = 2; i < nfields; i++) {
15362 key = field[i]
15363 keylen = length(key)
15364 if (S_is_set[key]) {
15365 value = S[key]
15366 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15367 len += length(value) + length(field[++i])
15368 substed = 1
15369 } else
15370 len += 1 + keylen
15371 }
15372 if (nfields == 3 && !substed) {
15373 key = field[2]
15374 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15375 \$ac_cs_awk_read_file
15376 next
15377 }
15378 }
15379 print line
15380}
15381\$ac_cs_awk_pipe_fini
15382_ACAWK
15383_ACEOF
15384cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15385if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15386 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15387else
15388 cat
15389fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15390 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15391_ACEOF
15392
15393# VPATH may cause trouble with some makes, so we remove $(srcdir),
15394# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15395# trailing colons and then remove the whole line if VPATH becomes empty
15396# (actually we leave an empty line to preserve line numbers).
15397if test "x$srcdir" = x.; then
15398 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15399s/:*\$(srcdir):*/:/
15400s/:*\${srcdir}:*/:/
15401s/:*@srcdir@:*/:/
15402s/^\([^=]*=[ ]*\):*/\1/
15403s/:*$//
15404s/^[^=]*=[ ]*$//
15405}'
15406fi
2aeb72e9 15407
5213506e
RW
15408cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15409fi # test -n "$CONFIG_FILES"
2aeb72e9 15410
1c710c3c 15411
5213506e
RW
15412eval set X " :F $CONFIG_FILES "
15413shift
15414for ac_tag
15415do
15416 case $ac_tag in
15417 :[FHLC]) ac_mode=$ac_tag; continue;;
15418 esac
15419 case $ac_mode$ac_tag in
15420 :[FHL]*:*);;
15421 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15422 :[FH]-) ac_tag=-:-;;
15423 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15424 esac
15425 ac_save_IFS=$IFS
15426 IFS=:
15427 set x $ac_tag
15428 IFS=$ac_save_IFS
15429 shift
15430 ac_file=$1
15431 shift
79c06341 15432
5213506e
RW
15433 case $ac_mode in
15434 :L) ac_source=$1;;
15435 :[FH])
15436 ac_file_inputs=
15437 for ac_f
15438 do
15439 case $ac_f in
15440 -) ac_f="$tmp/stdin";;
15441 *) # Look for the file first in the build tree, then in the source tree
15442 # (if the path is not absolute). The absolute path cannot be DOS-style,
15443 # because $ac_f cannot contain `:'.
15444 test -f "$ac_f" ||
15445 case $ac_f in
15446 [\\/$]*) false;;
15447 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15448 esac ||
15449 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15450 esac
15451 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15452 as_fn_append ac_file_inputs " '$ac_f'"
15453 done
1c710c3c 15454
5213506e
RW
15455 # Let's still pretend it is `configure' which instantiates (i.e., don't
15456 # use $as_me), people would be surprised to read:
15457 # /* config.h. Generated by config.status. */
15458 configure_input='Generated from '`
15459 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15460 `' by configure.'
15461 if test x"$ac_file" != x-; then
15462 configure_input="$ac_file. $configure_input"
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15464$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 15465 fi
5213506e
RW
15466 # Neutralize special characters interpreted by sed in replacement strings.
15467 case $configure_input in #(
15468 *\&* | *\|* | *\\* )
15469 ac_sed_conf_input=`$as_echo "$configure_input" |
15470 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15471 *) ac_sed_conf_input=$configure_input;;
15472 esac
11a67599 15473
5213506e
RW
15474 case $ac_tag in
15475 *:-:* | *:-) cat >"$tmp/stdin" \
15476 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15477 esac
15478 ;;
11a67599
ZW
15479 esac
15480
5213506e 15481 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
15482$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15483 X"$ac_file" : 'X\(//\)[^/]' \| \
15484 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
15485 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15486$as_echo X"$ac_file" |
15487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15488 s//\1/
15489 q
15490 }
15491 /^X\(\/\/\)[^/].*/{
15492 s//\1/
15493 q
15494 }
15495 /^X\(\/\/\)$/{
15496 s//\1/
15497 q
15498 }
15499 /^X\(\/\).*/{
15500 s//\1/
15501 q
15502 }
15503 s/.*/./; q'`
15504 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 15505 ac_builddir=.
0b0dc272 15506
5213506e
RW
15507case "$ac_dir" in
15508.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15509*)
15510 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15511 # A ".." for each directory in $ac_dir_suffix.
15512 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15513 case $ac_top_builddir_sub in
15514 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15515 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15516 esac ;;
15517esac
15518ac_abs_top_builddir=$ac_pwd
15519ac_abs_builddir=$ac_pwd$ac_dir_suffix
15520# for backward compatibility:
15521ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
15522
15523case $srcdir in
5213506e 15524 .) # We are building in place.
1c710c3c 15525 ac_srcdir=.
5213506e
RW
15526 ac_top_srcdir=$ac_top_builddir_sub
15527 ac_abs_top_srcdir=$ac_pwd ;;
15528 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 15529 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
15530 ac_top_srcdir=$srcdir
15531 ac_abs_top_srcdir=$srcdir ;;
15532 *) # Relative name.
15533 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15534 ac_top_srcdir=$ac_top_build_prefix$srcdir
15535 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 15536esac
5213506e 15537ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 15538
0b0dc272 15539
5213506e
RW
15540 case $ac_mode in
15541 :F)
15542 #
15543 # CONFIG_FILE
15544 #
1c710c3c
DJ
15545
15546 case $INSTALL in
15547 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 15548 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 15549 esac
5213506e 15550_ACEOF
11a67599 15551
5213506e
RW
15552cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15553# If the template does not know about datarootdir, expand it.
15554# FIXME: This hack should be removed a few years after 2.60.
15555ac_datarootdir_hack=; ac_datarootdir_seen=
15556ac_sed_dataroot='
15557/datarootdir/ {
15558 p
15559 q
15560}
15561/@datadir@/p
15562/@docdir@/p
15563/@infodir@/p
15564/@localedir@/p
15565/@mandir@/p'
15566case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15567*datarootdir*) ac_datarootdir_seen=yes;;
15568*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15570$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 15571_ACEOF
5213506e
RW
15572cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15573 ac_datarootdir_hack='
15574 s&@datadir@&$datadir&g
15575 s&@docdir@&$docdir&g
15576 s&@infodir@&$infodir&g
15577 s&@localedir@&$localedir&g
15578 s&@mandir@&$mandir&g
15579 s&\\\${datarootdir}&$datarootdir&g' ;;
15580esac
15581_ACEOF
15582
15583# Neutralize VPATH when `$srcdir' = `.'.
15584# Shell code in configure.ac might set extrasub.
15585# FIXME: do we really want to maintain this feature?
15586cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15587ac_sed_extra="$ac_vpsub
1c710c3c
DJ
15588$extrasub
15589_ACEOF
5213506e 15590cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
15591:t
15592/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
15593s|@configure_input@|$ac_sed_conf_input|;t t
15594s&@top_builddir@&$ac_top_builddir_sub&;t t
15595s&@top_build_prefix@&$ac_top_build_prefix&;t t
15596s&@srcdir@&$ac_srcdir&;t t
15597s&@abs_srcdir@&$ac_abs_srcdir&;t t
15598s&@top_srcdir@&$ac_top_srcdir&;t t
15599s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15600s&@builddir@&$ac_builddir&;t t
15601s&@abs_builddir@&$ac_abs_builddir&;t t
15602s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15603s&@INSTALL@&$ac_INSTALL&;t t
15604$ac_datarootdir_hack
15605"
15606eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15607if $ac_cs_awk_getline; then
15608 $AWK -f "$tmp/subs.awk"
15609else
15610 $AWK -f "$tmp/subs.awk" | $SHELL
15611fi >$tmp/out \
15612 || as_fn_error "could not create $ac_file" "$LINENO" 5
15613
15614test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15615 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15616 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15618which seems to be undefined. Please make sure it is defined." >&5
15619$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15620which seems to be undefined. Please make sure it is defined." >&2;}
15621
15622 rm -f "$tmp/stdin"
15623 case $ac_file in
15624 -) cat "$tmp/out" && rm -f "$tmp/out";;
15625 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15626 esac \
15627 || as_fn_error "could not create $ac_file" "$LINENO" 5
15628 ;;
11a67599 15629
11a67599 15630
79c06341 15631
5213506e
RW
15632 esac
15633
3e54529c
RW
15634
15635 case $ac_file$ac_mode in
15636 "Makefile":F) sed "$extrasub_build" Makefile |
15637 sed "$extrasub_host" |
15638 sed "$extrasub_target" > mf$$
15639 mv -f mf$$ Makefile ;;
15640
15641 esac
5213506e
RW
15642done # for ac_tag
15643
15644
15645as_fn_exit 0
1c710c3c 15646_ACEOF
1c710c3c
DJ
15647ac_clean_files=$ac_clean_files_save
15648
5213506e
RW
15649test $ac_write_fail = 0 ||
15650 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15651
1c710c3c
DJ
15652
15653# configure is writing to config.log, and then calls config.status.
15654# config.status does its own redirection, appending to config.log.
15655# Unfortunately, on DOS this fails, as config.log is still kept open
15656# by configure, so config.status won't be able to write to it; its
15657# output is simply discarded. So we exec the FD to /dev/null,
15658# effectively closing config.log, so it can be properly (re)opened and
15659# appended to by config.status. When coming back to configure, we
15660# need to make the FD available again.
15661if test "$no_create" != yes; then
15662 ac_cs_success=:
15663 ac_config_status_args=
15664 test "$silent" = yes &&
15665 ac_config_status_args="$ac_config_status_args --quiet"
15666 exec 5>/dev/null
15667 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15668 exec 5>>config.log
15669 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15670 # would make configure fail if this is the last instruction.
5213506e
RW
15671 $ac_cs_success || as_fn_exit $?
15672fi
15673if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15675$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 15676fi
79c06341 15677