]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
sh.c: Do not include algorithm.
[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"
671aa708 3659 ;;
a8ba31f2
EC
3660 # The tpf target doesn't support gdb yet.
3661 *-*-tpf*)
6a789d5e 3662 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3663 ;;
5785c0ed 3664 *-*-uclinux*)
6a789d5e 3665 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3666 ;;
671aa708 3667 *-*-vxworks*)
671aa708
NN
3668 ;;
3669 alpha*-dec-osf*)
3670 # ld works, but does not support shared libraries.
671aa708 3671 # gas doesn't generate exception information.
6a789d5e 3672 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3673 ;;
3674 alpha*-*-*vms*)
2909494b 3675 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3676 ;;
671aa708
NN
3677 alpha*-*-*)
3678 # newlib is not 64 bit ready
2909494b 3679 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3680 ;;
671aa708 3681 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3682 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708 3683 ;;
53426f6c 3684 arc-*-*|arceb-*-*)
ebb9f8b0 3685 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3686 ;;
671aa708 3687 arm-*-pe*)
2909494b 3688 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3689 ;;
671aa708 3690 arm-*-riscix*)
0036370f 3691 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3692 ;;
b588ae30
GJL
3693 avr-*-rtems*)
3694 ;;
3695 avr-*-*)
3696 if test x${with_avrlibc} != xno; then
3697 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3698 fi
3699 ;;
671aa708 3700 c4x-*-* | tic4x-*-*)
0036370f 3701 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3702 ;;
0036370f
JM
3703 tic54x-*-*)
3704 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3705 ;;
671aa708 3706 d10v-*-*)
0036370f 3707 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3708 ;;
3709 d30v-*-*)
0036370f 3710 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3711 ;;
3712 fr30-*-elf*)
2909494b 3713 noconfigdirs="$noconfigdirs gdb"
671aa708 3714 ;;
55f2d967 3715 moxie-*-*)
55f2d967
AG
3716 noconfigdirs="$noconfigdirs gprof"
3717 ;;
671aa708 3718 h8300*-*-*)
2909494b 3719 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3720 ;;
3721 h8500-*-*)
0036370f 3722 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3723 ;;
ee6a22df 3724 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3725 ;;
4569f85e 3726 hppa*64*-*-linux*)
671aa708 3727 ;;
56f8587a 3728 hppa*-*-linux*)
3e732ba0 3729 ;;
671aa708 3730 hppa*-*-*elf* | \
671aa708
NN
3731 hppa*-*-lites* | \
3732 hppa*-*-openbsd* | \
3733 hppa*64*-*-*)
671aa708 3734 ;;
2a332582 3735 hppa*-hp-hpux11*)
1bcce263 3736 noconfigdirs="$noconfigdirs ld"
2a332582 3737 ;;
c03353e2 3738 hppa*-*-pro*)
c03353e2 3739 ;;
671aa708 3740 hppa*-*-*)
2909494b 3741 noconfigdirs="$noconfigdirs ld"
671aa708 3742 ;;
fb87ad5d 3743 i960-*-*)
0036370f 3744 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3745 ;;
671aa708
NN
3746 ia64*-*-elf*)
3747 # No gdb support yet.
1bcce263 3748 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3749 ;;
3750 ia64*-**-hpux*)
5a2931d1 3751 # No ld support yet.
2909494b 3752 noconfigdirs="$noconfigdirs libgui itcl ld"
671aa708 3753 ;;
52535a64 3754 ia64*-*-*vms*)
091fe9ca
TG
3755 # No ld support yet.
3756 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3757 ;;
ef4c4300 3758 i[3456789]86-w64-mingw*)
ef4c4300
KT
3759 ;;
3760 i[3456789]86-*-mingw*)
b91f0a41 3761 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3762 ;;
671aa708
NN
3763 *-*-cygwin*)
3764 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3765 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3766 # always build newlib if winsup directory is present.
b91f0a41 3767 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3768 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3769 elif test -d "$srcdir/newlib"; then
b91f0a41 3770 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3771 fi
1c710c3c 3772 ;;
f2a0e225 3773 i[3456789]86-*-pe)
ebb9f8b0 3774 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3775 ;;
f2a0e225 3776 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3777 # The linker does not yet know about weak symbols in COFF,
3778 # and is not configured to handle mixed ELF and COFF.
0036370f 3779 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3780 ;;
f2a0e225 3781 i[3456789]86-*-sco*)
0036370f 3782 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3783 ;;
fbdd5d87 3784 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3785 noconfigdirs="$noconfigdirs target-libgloss"
3786 ;;
f2a0e225 3787 i[3456789]86-*-sysv4*)
0036370f 3788 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3789 ;;
f2a0e225 3790 i[3456789]86-*-beos*)
6a789d5e 3791 noconfigdirs="$noconfigdirs gdb"
3aa83176 3792 ;;
d1f8db0c 3793 i[3456789]86-*-rdos*)
6a789d5e 3794 noconfigdirs="$noconfigdirs gdb"
c03353e2 3795 ;;
671aa708 3796 mmix-*-*)
2909494b 3797 noconfigdirs="$noconfigdirs gdb"
671aa708 3798 ;;
ab34901f 3799 mt-*-*)
79dd769c
AH
3800 noconfigdirs="$noconfigdirs sim"
3801 ;;
671aa708
NN
3802 powerpc-*-aix*)
3803 # copied from rs6000-*-* entry
6a789d5e 3804 noconfigdirs="$noconfigdirs gprof"
671aa708 3805 ;;
4569f85e 3806 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3807 target_configdirs="$target_configdirs target-winsup"
0036370f 3808 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3809 # always build newlib.
3810 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3811 ;;
3812 # This is temporary until we can link against shared libraries
3813 powerpcle-*-solaris*)
0036370f 3814 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3815 ;;
3816 powerpc-*-beos*)
6a789d5e 3817 noconfigdirs="$noconfigdirs gdb"
671aa708 3818 ;;
671aa708 3819 rs6000-*-lynxos*)
6a789d5e 3820 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3821 ;;
3822 rs6000-*-aix*)
6a789d5e 3823 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3824 ;;
3825 rs6000-*-*)
2909494b 3826 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3827 ;;
3828 m68k-apollo-*)
0036370f 3829 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3830 ;;
ca9fe997 3831 microblaze*)
2909494b 3832 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3833 ;;
d91491e5 3834 mips*-sde-elf* | mips*-mti-elf*)
d9dced13
RS
3835 if test x$with_newlib = xyes; then
3836 noconfigdirs="$noconfigdirs gprof"
3837 fi
d9dced13 3838 ;;
671aa708 3839 mips*-*-irix5*)
0036370f 3840 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3841 ;;
3842 mips*-*-irix6*)
2909494b 3843 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3844 ;;
671aa708 3845 mips*-*-bsd*)
bc98bcc4 3846 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
671aa708 3847 ;;
671aa708 3848 mips*-*-linux*)
671aa708 3849 ;;
bc98bcc4
JBG
3850 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3851 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3852 noconfigdirs="$noconfigdirs ld gas gprof"
3853 ;;
671aa708 3854 mips*-*-*)
2909494b 3855 noconfigdirs="$noconfigdirs gprof"
671aa708 3856 ;;
738f2522
BS
3857 nvptx*-*-*)
3858 # nvptx is just a compiler
3859 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3860 ;;
669f01d8 3861 sh-*-* | sh64-*-*)
ea2002ba
CB
3862 case "${target}" in
3863 sh*-*-elf)
2909494b 3864 ;;
ea2002ba 3865 *)
2909494b 3866 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 3867 esac
671aa708 3868 ;;
671aa708 3869 sparc-*-sunos4*)
6a789d5e 3870 if test x${is_cross_compiler} = xno ; then
671aa708
NN
3871 use_gnu_ld=no
3872 fi
3873 ;;
b42f0d7e 3874 tic6x-*-*)
0d557ff8 3875 noconfigdirs="$noconfigdirs sim"
b42f0d7e 3876 ;;
341c653c 3877 tilepro*-*-* | tilegx*-*-*)
db1d217c
WL
3878 noconfigdirs="$noconfigdirs sim"
3879 ;;
671aa708 3880 v810-*-*)
0036370f 3881 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
3882 ;;
3883 vax-*-*)
2909494b 3884 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3885 ;;
671aa708 3886esac
79c06341 3887
671aa708
NN
3888# If we aren't building newlib, then don't build libgloss, since libgloss
3889# depends upon some newlib header files.
3890case "${noconfigdirs}" in
3891 *target-libgloss*) ;;
3892 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3893esac
3894
671aa708 3895# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
3896host_makefile_frag=/dev/null
3897if test -d ${srcdir}/config ; then
3898case "${host}" in
f2a0e225 3899 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
3900 host_makefile_frag="config/mh-djgpp"
3901 ;;
3902 *-cygwin*)
2a79c47f 3903
5213506e
RW
3904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3905$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 3906echo a >cygwin-cat-check
e25a8c82 3907if test `cat cygwin-cat-check` = a ; then
2a79c47f 3908 rm cygwin-cat-check
5213506e
RW
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3910$as_echo "yes" >&6; }
2a79c47f
NC
3911else
3912 rm cygwin-cat-check
5213506e
RW
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3914$as_echo "no" >&6; }
3915 as_fn_error "The cat command does not ignore carriage return characters.
2a79c47f
NC
3916 Please either mount the build directory in binary mode or run the following
3917 commands before running any configure script:
3918set -o igncr
3919export SHELLOPTS
5213506e 3920 " "$LINENO" 5
2a79c47f
NC
3921fi
3922
671aa708
NN
3923 host_makefile_frag="config/mh-cygwin"
3924 ;;
c53a18d3 3925 *-mingw*)
1f5a6b84 3926 host_makefile_frag="config/mh-mingw"
95af8923 3927 ;;
7b7f941a
UB
3928 alpha*-*-linux*)
3929 host_makefile_frag="config/mh-alpha-linux"
3930 ;;
efd41714 3931 hppa*-hp-hpux10*)
efd41714 3932 host_makefile_frag="config/mh-pa-hpux10"
671aa708 3933 ;;
111eeb6e 3934 hppa*-hp-hpux*)
efd41714
PB
3935 host_makefile_frag="config/mh-pa"
3936 ;;
3937 hppa*-*)
3938 host_makefile_frag="config/mh-pa"
3939 ;;
d8ed14ce
IS
3940 *-*-darwin*)
3941 host_makefile_frag="config/mh-darwin"
be8fff81 3942 ;;
d19bca38
PB
3943 powerpc-*-aix*)
3944 host_makefile_frag="config/mh-ppc-aix"
3945 ;;
3946 rs6000-*-aix*)
3947 host_makefile_frag="config/mh-ppc-aix"
3948 ;;
671aa708
NN
3949esac
3950fi
3951
55ffb5ed 3952if test "${build}" != "${host}" ; then
0999159b
PB
3953 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3954 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 3955 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b
PB
3956 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3957 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3958 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 3959 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
0999159b
PB
3960 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3961 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3962 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3963 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3964 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3965 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3966else
3967 AR_FOR_BUILD="\$(AR)"
3968 AS_FOR_BUILD="\$(AS)"
fb0103e5 3969 CC_FOR_BUILD="\$(CC)"
0999159b
PB
3970 CXX_FOR_BUILD="\$(CXX)"
3971 GCJ_FOR_BUILD="\$(GCJ)"
3972 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 3973 GOC_FOR_BUILD="\$(GOC)"
0999159b
PB
3974 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3975 LD_FOR_BUILD="\$(LD)"
3976 NM_FOR_BUILD="\$(NM)"
3977 RANLIB_FOR_BUILD="\$(RANLIB)"
3978 WINDRES_FOR_BUILD="\$(WINDRES)"
3979 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
3980fi
3981
3982ac_ext=c
1c710c3c
DJ
3983ac_cpp='$CPP $CPPFLAGS'
3984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3986ac_compiler_gnu=$ac_cv_c_compiler_gnu
3987if test -n "$ac_tool_prefix"; then
3988 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3989set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3991$as_echo_n "checking for $ac_word... " >&6; }
3992if test "${ac_cv_prog_CC+set}" = set; then :
3993 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3994else
3995 if test -n "$CC"; then
3996 ac_cv_prog_CC="$CC" # Let the user override the test.
3997else
3998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999for as_dir in $PATH
4000do
4001 IFS=$as_save_IFS
4002 test -z "$as_dir" && as_dir=.
5213506e
RW
4003 for ac_exec_ext in '' $ac_executable_extensions; do
4004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4005 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 4006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4007 break 2
4008 fi
4009done
5213506e
RW
4010 done
4011IFS=$as_save_IFS
1c710c3c
DJ
4012
4013fi
4014fi
4015CC=$ac_cv_prog_CC
4016if test -n "$CC"; then
5213506e
RW
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4018$as_echo "$CC" >&6; }
1c710c3c 4019else
5213506e
RW
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4021$as_echo "no" >&6; }
1c710c3c
DJ
4022fi
4023
5213506e 4024
1c710c3c
DJ
4025fi
4026if test -z "$ac_cv_prog_CC"; then
4027 ac_ct_CC=$CC
fb0103e5
RG
4028 # Extract the first word of "gcc", so it can be a program name with args.
4029set dummy gcc; ac_word=$2
5213506e
RW
4030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4031$as_echo_n "checking for $ac_word... " >&6; }
4032if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4033 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4034else
4035 if test -n "$ac_ct_CC"; then
4036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4037else
4038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4039for as_dir in $PATH
4040do
4041 IFS=$as_save_IFS
4042 test -z "$as_dir" && as_dir=.
5213506e
RW
4043 for ac_exec_ext in '' $ac_executable_extensions; do
4044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4045 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4047 break 2
4048 fi
4049done
5213506e
RW
4050 done
4051IFS=$as_save_IFS
1c710c3c
DJ
4052
4053fi
4054fi
4055ac_ct_CC=$ac_cv_prog_ac_ct_CC
4056if test -n "$ac_ct_CC"; then
5213506e
RW
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4058$as_echo "$ac_ct_CC" >&6; }
1c710c3c 4059else
5213506e
RW
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4061$as_echo "no" >&6; }
1c710c3c
DJ
4062fi
4063
5213506e
RW
4064 if test "x$ac_ct_CC" = x; then
4065 CC=""
4066 else
4067 case $cross_compiling:$ac_tool_warned in
4068yes:)
4069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4071ac_tool_warned=yes ;;
4072esac
4073 CC=$ac_ct_CC
4074 fi
1c710c3c
DJ
4075else
4076 CC="$ac_cv_prog_CC"
4077fi
4078
4079if test -z "$CC"; then
5213506e
RW
4080 if test -n "$ac_tool_prefix"; then
4081 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4082set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4084$as_echo_n "checking for $ac_word... " >&6; }
4085if test "${ac_cv_prog_CC+set}" = set; then :
4086 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4087else
4088 if test -n "$CC"; then
4089 ac_cv_prog_CC="$CC" # Let the user override the test.
4090else
1c710c3c
DJ
4091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092for as_dir in $PATH
4093do
4094 IFS=$as_save_IFS
4095 test -z "$as_dir" && as_dir=.
5213506e
RW
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4098 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4100 break 2
4101 fi
4102done
5213506e
RW
4103 done
4104IFS=$as_save_IFS
1c710c3c 4105
0b0dc272 4106fi
0b0dc272 4107fi
1c710c3c 4108CC=$ac_cv_prog_CC
af71363e 4109if test -n "$CC"; then
5213506e
RW
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4111$as_echo "$CC" >&6; }
2aeb72e9 4112else
5213506e
RW
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4114$as_echo "no" >&6; }
2aeb72e9
DD
4115fi
4116
2aeb72e9 4117
5213506e 4118 fi
1c710c3c 4119fi
55ffb5ed
NN
4120if test -z "$CC"; then
4121 # Extract the first word of "cc", so it can be a program name with args.
4122set dummy cc; ac_word=$2
5213506e
RW
4123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4124$as_echo_n "checking for $ac_word... " >&6; }
4125if test "${ac_cv_prog_CC+set}" = set; then :
4126 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4127else
4128 if test -n "$CC"; then
4129 ac_cv_prog_CC="$CC" # Let the user override the test.
4130else
0b0dc272 4131 ac_prog_rejected=no
1c710c3c
DJ
4132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133for as_dir in $PATH
4134do
4135 IFS=$as_save_IFS
4136 test -z "$as_dir" && as_dir=.
5213506e
RW
4137 for ac_exec_ext in '' $ac_executable_extensions; do
4138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
4139 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4140 ac_prog_rejected=yes
4141 continue
4142 fi
4143 ac_cv_prog_CC="cc"
5213506e 4144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4145 break 2
4146 fi
4147done
5213506e
RW
4148 done
4149IFS=$as_save_IFS
1c710c3c 4150
55ffb5ed
NN
4151if test $ac_prog_rejected = yes; then
4152 # We found a bogon in the path, so make sure we never use it.
4153 set dummy $ac_cv_prog_CC
4154 shift
1c710c3c 4155 if test $# != 0; then
55ffb5ed
NN
4156 # We chose a different compiler from the bogus one.
4157 # However, it has the same basename, so the bogon will be chosen
4158 # first if we set CC to just the basename; use the full file name.
4159 shift
1c710c3c 4160 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4161 fi
4162fi
4163fi
4164fi
1c710c3c 4165CC=$ac_cv_prog_CC
55ffb5ed 4166if test -n "$CC"; then
5213506e
RW
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4168$as_echo "$CC" >&6; }
55ffb5ed 4169else
5213506e
RW
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4171$as_echo "no" >&6; }
55ffb5ed
NN
4172fi
4173
5213506e 4174
1c710c3c
DJ
4175fi
4176if test -z "$CC"; then
4177 if test -n "$ac_tool_prefix"; then
5213506e 4178 for ac_prog in cl.exe
1c710c3c
DJ
4179 do
4180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4181set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4183$as_echo_n "checking for $ac_word... " >&6; }
4184if test "${ac_cv_prog_CC+set}" = set; then :
4185 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4186else
4187 if test -n "$CC"; then
4188 ac_cv_prog_CC="$CC" # Let the user override the test.
4189else
1c710c3c
DJ
4190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191for as_dir in $PATH
4192do
4193 IFS=$as_save_IFS
4194 test -z "$as_dir" && as_dir=.
5213506e
RW
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4197 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4199 break 2
4200 fi
4201done
5213506e
RW
4202 done
4203IFS=$as_save_IFS
1c710c3c 4204
55ffb5ed
NN
4205fi
4206fi
1c710c3c 4207CC=$ac_cv_prog_CC
55ffb5ed 4208if test -n "$CC"; then
5213506e
RW
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4210$as_echo "$CC" >&6; }
a4b9e93e 4211else
5213506e
RW
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4213$as_echo "no" >&6; }
fb0103e5 4214fi
af71363e 4215
5213506e 4216
1c710c3c
DJ
4217 test -n "$CC" && break
4218 done
af71363e 4219fi
1c710c3c
DJ
4220if test -z "$CC"; then
4221 ac_ct_CC=$CC
5213506e 4222 for ac_prog in cl.exe
1c710c3c
DJ
4223do
4224 # Extract the first word of "$ac_prog", so it can be a program name with args.
4225set dummy $ac_prog; ac_word=$2
5213506e
RW
4226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4227$as_echo_n "checking for $ac_word... " >&6; }
4228if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4229 $as_echo_n "(cached) " >&6
0b0dc272 4230else
1c710c3c
DJ
4231 if test -n "$ac_ct_CC"; then
4232 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4233else
1c710c3c
DJ
4234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235for as_dir in $PATH
4236do
4237 IFS=$as_save_IFS
4238 test -z "$as_dir" && as_dir=.
5213506e
RW
4239 for ac_exec_ext in '' $ac_executable_extensions; do
4240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4241 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4243 break 2
4244 fi
4245done
5213506e
RW
4246 done
4247IFS=$as_save_IFS
1c710c3c 4248
af71363e
AS
4249fi
4250fi
1c710c3c
DJ
4251ac_ct_CC=$ac_cv_prog_ac_ct_CC
4252if test -n "$ac_ct_CC"; then
5213506e
RW
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4254$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4255else
5213506e
RW
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257$as_echo "no" >&6; }
af71363e 4258fi
0b0dc272 4259
5213506e 4260
1c710c3c
DJ
4261 test -n "$ac_ct_CC" && break
4262done
4263
5213506e
RW
4264 if test "x$ac_ct_CC" = x; then
4265 CC=""
4266 else
4267 case $cross_compiling:$ac_tool_warned in
4268yes:)
4269{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4270$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4271ac_tool_warned=yes ;;
4272esac
4273 CC=$ac_ct_CC
4274 fi
1c710c3c
DJ
4275fi
4276
4277fi
4278
4279
5213506e
RW
4280test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4281$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4282as_fn_error "no acceptable C compiler found in \$PATH
4283See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4284
4285# Provide some information about the compiler.
5213506e
RW
4286$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4287set X $ac_compile
4288ac_compiler=$2
4289for ac_option in --version -v -V -qversion; do
4290 { { ac_try="$ac_compiler $ac_option >&5"
4291case "(($ac_try" in
4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4294esac
4295eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4296$as_echo "$ac_try_echo"; } >&5
4297 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4298 ac_status=$?
5213506e
RW
4299 if test -s conftest.err; then
4300 sed '10a\
4301... rest of stderr output deleted ...
4302 10q' conftest.err >conftest.er1
4303 cat conftest.er1 >&5
4304 rm -f conftest.er1 conftest.err
4305 fi
4306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4307 test $ac_status = 0; }
4308done
1c710c3c 4309
5213506e 4310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4311/* end confdefs.h. */
4312
4313int
4314main ()
4315{
4316
4317 ;
4318 return 0;
4319}
4320_ACEOF
4321ac_clean_files_save=$ac_clean_files
5213506e 4322ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
1c710c3c
DJ
4323# Try to create an executable without -o first, disregard a.out.
4324# It will help us diagnose broken compilers, and finding out an intuition
4325# of exeext.
5213506e
RW
4326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4327$as_echo_n "checking for C compiler default output file name... " >&6; }
4328ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4329
4330# The possible output files:
4331ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4332
4333ac_rmfiles=
4334for ac_file in $ac_files
4335do
4336 case $ac_file in
4337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4338 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4339 esac
4340done
4341rm -f $ac_rmfiles
4342
4343if { { ac_try="$ac_link_default"
4344case "(($ac_try" in
4345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346 *) ac_try_echo=$ac_try;;
4347esac
4348eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4349$as_echo "$ac_try_echo"; } >&5
4350 (eval "$ac_link_default") 2>&5
1c710c3c 4351 ac_status=$?
5213506e
RW
4352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4353 test $ac_status = 0; }; then :
4354 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4355# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4356# in a Makefile. We should not override ac_cv_exeext if it was cached,
4357# so that the user can short-circuit this test for compilers unknown to
4358# Autoconf.
4359for ac_file in $ac_files ''
1c710c3c
DJ
4360do
4361 test -f "$ac_file" || continue
4362 case $ac_file in
5213506e 4363 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4364 ;;
4365 [ab].out )
4366 # We found the default executable, but exeext='' is most
4367 # certainly right.
4368 break;;
4369 *.* )
5213506e
RW
4370 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4371 then :; else
4372 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4373 fi
4374 # We set ac_cv_exeext here because the later test for it is not
4375 # safe: cross compilers may not add the suffix if given an `-o'
4376 # argument, so we may need to know it at that point already.
4377 # Even if this section looks crufty: it has the advantage of
4378 # actually working.
1c710c3c
DJ
4379 break;;
4380 * )
4381 break;;
4382 esac
4383done
5213506e
RW
4384test "$ac_cv_exeext" = no && ac_cv_exeext=
4385
1c710c3c 4386else
5213506e
RW
4387 ac_file=''
4388fi
4389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4390$as_echo "$ac_file" >&6; }
4391if test -z "$ac_file"; then :
4392 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4393sed 's/^/| /' conftest.$ac_ext >&5
4394
5213506e
RW
4395{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4397{ as_fn_set_status 77
4398as_fn_error "C compiler cannot create executables
4399See \`config.log' for more details." "$LINENO" 5; }; }
1c710c3c 4400fi
1c710c3c 4401ac_exeext=$ac_cv_exeext
1c710c3c 4402
5213506e 4403# Check that the compiler produces executables we can run. If not, either
1c710c3c 4404# the compiler is broken, or we cross compile.
5213506e
RW
4405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4406$as_echo_n "checking whether the C compiler works... " >&6; }
1c710c3c
DJ
4407# If not cross compiling, check that we can run a simple program.
4408if test "$cross_compiling" != yes; then
4409 if { ac_try='./$ac_file'
5213506e
RW
4410 { { case "(($ac_try" in
4411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4412 *) ac_try_echo=$ac_try;;
4413esac
4414eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4415$as_echo "$ac_try_echo"; } >&5
4416 (eval "$ac_try") 2>&5
1c710c3c 4417 ac_status=$?
5213506e
RW
4418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4419 test $ac_status = 0; }; }; then
1c710c3c
DJ
4420 cross_compiling=no
4421 else
4422 if test "$cross_compiling" = maybe; then
4423 cross_compiling=yes
4424 else
5213506e
RW
4425 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4426$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4427as_fn_error "cannot run C compiled programs.
1c710c3c 4428If you meant to cross compile, use \`--host'.
5213506e 4429See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4430 fi
4431 fi
4432fi
5213506e
RW
4433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4434$as_echo "yes" >&6; }
1c710c3c 4435
5213506e 4436rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
1c710c3c 4437ac_clean_files=$ac_clean_files_save
5213506e 4438# Check that the compiler produces executables we can run. If not, either
1c710c3c 4439# the compiler is broken, or we cross compile.
5213506e
RW
4440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4441$as_echo_n "checking whether we are cross compiling... " >&6; }
4442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4443$as_echo "$cross_compiling" >&6; }
4444
4445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4446$as_echo_n "checking for suffix of executables... " >&6; }
4447if { { ac_try="$ac_link"
4448case "(($ac_try" in
4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4451esac
4452eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4453$as_echo "$ac_try_echo"; } >&5
4454 (eval "$ac_link") 2>&5
1c710c3c 4455 ac_status=$?
5213506e
RW
4456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4457 test $ac_status = 0; }; then :
1c710c3c
DJ
4458 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4459# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4460# work properly (i.e., refer to `conftest.exe'), while it won't with
4461# `rm'.
4462for ac_file in conftest.exe conftest conftest.*; do
4463 test -f "$ac_file" || continue
4464 case $ac_file in
5213506e 4465 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4466 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4467 break;;
4468 * ) break;;
4469 esac
4470done
af71363e 4471else
5213506e
RW
4472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4473$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4474as_fn_error "cannot compute suffix of executables: cannot compile and link
4475See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4476fi
1c710c3c 4477rm -f conftest$ac_cv_exeext
5213506e
RW
4478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4479$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4480
4481rm -f conftest.$ac_ext
4482EXEEXT=$ac_cv_exeext
4483ac_exeext=$EXEEXT
5213506e
RW
4484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4485$as_echo_n "checking for suffix of object files... " >&6; }
4486if test "${ac_cv_objext+set}" = set; then :
4487 $as_echo_n "(cached) " >&6
1c710c3c 4488else
5213506e 4489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4490/* end confdefs.h. */
4491
4492int
4493main ()
4494{
4495
4496 ;
4497 return 0;
4498}
4499_ACEOF
4500rm -f conftest.o conftest.obj
5213506e
RW
4501if { { ac_try="$ac_compile"
4502case "(($ac_try" in
4503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504 *) ac_try_echo=$ac_try;;
4505esac
4506eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4507$as_echo "$ac_try_echo"; } >&5
4508 (eval "$ac_compile") 2>&5
1c710c3c 4509 ac_status=$?
5213506e
RW
4510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4511 test $ac_status = 0; }; then :
4512 for ac_file in conftest.o conftest.obj conftest.*; do
4513 test -f "$ac_file" || continue;
1c710c3c 4514 case $ac_file in
5213506e 4515 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4516 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4517 break;;
4518 esac
4519done
4520else
5213506e 4521 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4522sed 's/^/| /' conftest.$ac_ext >&5
4523
5213506e
RW
4524{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4525$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4526as_fn_error "cannot compute suffix of object files: cannot compile
4527See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4528fi
1c710c3c
DJ
4529rm -f conftest.$ac_cv_objext conftest.$ac_ext
4530fi
5213506e
RW
4531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4532$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4533OBJEXT=$ac_cv_objext
4534ac_objext=$OBJEXT
5213506e
RW
4535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4536$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4537if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4538 $as_echo_n "(cached) " >&6
1c710c3c 4539else
5213506e 4540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4541/* end confdefs.h. */
4542
4543int
4544main ()
4545{
4546#ifndef __GNUC__
4547 choke me
4548#endif
4549
4550 ;
4551 return 0;
4552}
4553_ACEOF
5213506e 4554if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4555 ac_compiler_gnu=yes
4556else
5213506e 4557 ac_compiler_gnu=no
1c710c3c 4558fi
5213506e 4559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4560ac_cv_c_compiler_gnu=$ac_compiler_gnu
4561
4562fi
5213506e
RW
4563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4564$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4565if test $ac_compiler_gnu = yes; then
4566 GCC=yes
4567else
4568 GCC=
4569fi
1c710c3c
DJ
4570ac_test_CFLAGS=${CFLAGS+set}
4571ac_save_CFLAGS=$CFLAGS
5213506e
RW
4572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4573$as_echo_n "checking whether $CC accepts -g... " >&6; }
4574if test "${ac_cv_prog_cc_g+set}" = set; then :
4575 $as_echo_n "(cached) " >&6
4576else
4577 ac_save_c_werror_flag=$ac_c_werror_flag
4578 ac_c_werror_flag=yes
4579 ac_cv_prog_cc_g=no
4580 CFLAGS="-g"
4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4582/* end confdefs.h. */
4583
4584int
4585main ()
4586{
4587
4588 ;
4589 return 0;
4590}
4591_ACEOF
5213506e 4592if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4593 ac_cv_prog_cc_g=yes
4594else
5213506e
RW
4595 CFLAGS=""
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597/* end confdefs.h. */
4598
4599int
4600main ()
4601{
4602
4603 ;
4604 return 0;
4605}
4606_ACEOF
4607if ac_fn_c_try_compile "$LINENO"; then :
4608
4609else
4610 ac_c_werror_flag=$ac_save_c_werror_flag
4611 CFLAGS="-g"
4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613/* end confdefs.h. */
af71363e 4614
5213506e
RW
4615int
4616main ()
4617{
4618
4619 ;
4620 return 0;
4621}
4622_ACEOF
4623if ac_fn_c_try_compile "$LINENO"; then :
4624 ac_cv_prog_cc_g=yes
4625fi
4626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4627fi
5213506e 4628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4629fi
5213506e
RW
4630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631 ac_c_werror_flag=$ac_save_c_werror_flag
4632fi
4633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4634$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4635if test "$ac_test_CFLAGS" = set; then
1c710c3c 4636 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4637elif test $ac_cv_prog_cc_g = yes; then
4638 if test "$GCC" = yes; then
4639 CFLAGS="-g -O2"
4640 else
4641 CFLAGS="-g"
4642 fi
4643else
4644 if test "$GCC" = yes; then
4645 CFLAGS="-O2"
4646 else
4647 CFLAGS=
4648 fi
4649fi
5213506e
RW
4650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4651$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4652if test "${ac_cv_prog_cc_c89+set}" = set; then :
4653 $as_echo_n "(cached) " >&6
1c710c3c 4654else
5213506e 4655 ac_cv_prog_cc_c89=no
1c710c3c 4656ac_save_CC=$CC
5213506e 4657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4658/* end confdefs.h. */
4659#include <stdarg.h>
4660#include <stdio.h>
4661#include <sys/types.h>
4662#include <sys/stat.h>
4663/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4664struct buf { int x; };
4665FILE * (*rcsopen) (struct buf *, struct stat *, int);
4666static char *e (p, i)
4667 char **p;
4668 int i;
4669{
4670 return p[i];
4671}
4672static char *f (char * (*g) (char **, int), char **p, ...)
4673{
4674 char *s;
4675 va_list v;
4676 va_start (v,p);
4677 s = g (p, va_arg (v,int));
4678 va_end (v);
4679 return s;
4680}
4681
4682/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4683 function prototypes and stuff, but not '\xHH' hex character constants.
4684 These don't provoke an error unfortunately, instead are silently treated
5213506e 4685 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4686 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4687 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4688 that's true only with -std. */
1c710c3c
DJ
4689int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4690
5213506e
RW
4691/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4692 inside strings and character constants. */
4693#define FOO(x) 'x'
4694int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4695
1c710c3c
DJ
4696int test (int i, double x);
4697struct s1 {int (*f) (int a);};
4698struct s2 {int (*f) (double a);};
4699int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4700int argc;
4701char **argv;
4702int
4703main ()
4704{
4705return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4706 ;
4707 return 0;
4708}
4709_ACEOF
5213506e
RW
4710for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4711 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4712do
4713 CC="$ac_save_CC $ac_arg"
5213506e
RW
4714 if ac_fn_c_try_compile "$LINENO"; then :
4715 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4716fi
5213506e
RW
4717rm -f core conftest.err conftest.$ac_objext
4718 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4719done
5213506e 4720rm -f conftest.$ac_ext
1c710c3c
DJ
4721CC=$ac_save_CC
4722
4723fi
5213506e
RW
4724# AC_CACHE_VAL
4725case "x$ac_cv_prog_cc_c89" in
4726 x)
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4728$as_echo "none needed" >&6; } ;;
4729 xno)
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4731$as_echo "unsupported" >&6; } ;;
1c710c3c 4732 *)
5213506e
RW
4733 CC="$CC $ac_cv_prog_cc_c89"
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4735$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4736esac
5213506e 4737if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4738
2aeb72e9
DD
4739fi
4740
2aeb72e9
DD
4741ac_ext=c
4742ac_cpp='$CPP $CPPFLAGS'
4743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4745ac_compiler_gnu=$ac_cv_c_compiler_gnu
4746
5213506e 4747ac_ext=cpp
2aeb72e9
DD
4748ac_cpp='$CXXCPP $CPPFLAGS'
4749ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4750ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4751ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4752if test -z "$CXX"; then
4753 if test -n "$CCC"; then
4754 CXX=$CCC
4755 else
4756 if test -n "$ac_tool_prefix"; then
4757 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4758 do
4759 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4760set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4762$as_echo_n "checking for $ac_word... " >&6; }
4763if test "${ac_cv_prog_CXX+set}" = set; then :
4764 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4765else
4766 if test -n "$CXX"; then
4767 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4768else
4769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770for as_dir in $PATH
4771do
4772 IFS=$as_save_IFS
4773 test -z "$as_dir" && as_dir=.
5213506e
RW
4774 for ac_exec_ext in '' $ac_executable_extensions; do
4775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2aeb72e9 4776 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4778 break 2
4779 fi
4780done
5213506e
RW
4781 done
4782IFS=$as_save_IFS
55ffb5ed 4783
c3a86da9
DJ
4784fi
4785fi
4786CXX=$ac_cv_prog_CXX
4787if test -n "$CXX"; then
5213506e
RW
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4789$as_echo "$CXX" >&6; }
c3a86da9 4790else
5213506e
RW
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4792$as_echo "no" >&6; }
c3a86da9
DJ
4793fi
4794
5213506e 4795
c3a86da9
DJ
4796 test -n "$CXX" && break
4797 done
4798fi
4799if test -z "$CXX"; then
4800 ac_ct_CXX=$CXX
5213506e 4801 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4802do
4803 # Extract the first word of "$ac_prog", so it can be a program name with args.
4804set dummy $ac_prog; ac_word=$2
5213506e
RW
4805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4806$as_echo_n "checking for $ac_word... " >&6; }
4807if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4808 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4809else
4810 if test -n "$ac_ct_CXX"; then
4811 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4812else
4813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814for as_dir in $PATH
4815do
4816 IFS=$as_save_IFS
4817 test -z "$as_dir" && as_dir=.
5213506e
RW
4818 for ac_exec_ext in '' $ac_executable_extensions; do
4819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c3a86da9 4820 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4822 break 2
4823 fi
4824done
5213506e
RW
4825 done
4826IFS=$as_save_IFS
c3a86da9
DJ
4827
4828fi
4829fi
4830ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4831if test -n "$ac_ct_CXX"; then
5213506e
RW
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4833$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4834else
5213506e
RW
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4836$as_echo "no" >&6; }
c3a86da9
DJ
4837fi
4838
5213506e 4839
c3a86da9
DJ
4840 test -n "$ac_ct_CXX" && break
4841done
c3a86da9 4842
5213506e
RW
4843 if test "x$ac_ct_CXX" = x; then
4844 CXX="g++"
4845 else
4846 case $cross_compiling:$ac_tool_warned in
4847yes:)
4848{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4849$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4850ac_tool_warned=yes ;;
4851esac
4852 CXX=$ac_ct_CXX
4853 fi
c3a86da9
DJ
4854fi
4855
5213506e
RW
4856 fi
4857fi
c3a86da9 4858# Provide some information about the compiler.
5213506e
RW
4859$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4860set X $ac_compile
4861ac_compiler=$2
4862for ac_option in --version -v -V -qversion; do
4863 { { ac_try="$ac_compiler $ac_option >&5"
4864case "(($ac_try" in
4865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4866 *) ac_try_echo=$ac_try;;
4867esac
4868eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4869$as_echo "$ac_try_echo"; } >&5
4870 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 4871 ac_status=$?
5213506e
RW
4872 if test -s conftest.err; then
4873 sed '10a\
4874... rest of stderr output deleted ...
4875 10q' conftest.err >conftest.er1
4876 cat conftest.er1 >&5
4877 rm -f conftest.er1 conftest.err
4878 fi
4879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4880 test $ac_status = 0; }
4881done
c3a86da9 4882
5213506e
RW
4883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4884$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4885if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4886 $as_echo_n "(cached) " >&6
c3a86da9 4887else
5213506e 4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4889/* end confdefs.h. */
4890
4891int
4892main ()
4893{
4894#ifndef __GNUC__
4895 choke me
4896#endif
4897
4898 ;
4899 return 0;
4900}
4901_ACEOF
5213506e 4902if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4903 ac_compiler_gnu=yes
4904else
5213506e 4905 ac_compiler_gnu=no
c3a86da9 4906fi
5213506e 4907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4908ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4909
4910fi
5213506e
RW
4911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4912$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4913if test $ac_compiler_gnu = yes; then
4914 GXX=yes
4915else
4916 GXX=
4917fi
c3a86da9
DJ
4918ac_test_CXXFLAGS=${CXXFLAGS+set}
4919ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
4920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4921$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4922if test "${ac_cv_prog_cxx_g+set}" = set; then :
4923 $as_echo_n "(cached) " >&6
4924else
4925 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4926 ac_cxx_werror_flag=yes
4927 ac_cv_prog_cxx_g=no
4928 CXXFLAGS="-g"
4929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4930/* end confdefs.h. */
4931
4932int
4933main ()
4934{
4935
4936 ;
4937 return 0;
4938}
4939_ACEOF
5213506e 4940if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4941 ac_cv_prog_cxx_g=yes
4942else
5213506e
RW
4943 CXXFLAGS=""
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4945/* end confdefs.h. */
5213506e 4946
c3a86da9
DJ
4947int
4948main ()
4949{
5213506e 4950
c3a86da9
DJ
4951 ;
4952 return 0;
4953}
4954_ACEOF
5213506e 4955if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 4956
5213506e
RW
4957else
4958 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4959 CXXFLAGS="-g"
4960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4961/* end confdefs.h. */
5213506e 4962
c3a86da9
DJ
4963int
4964main ()
4965{
5213506e 4966
c3a86da9
DJ
4967 ;
4968 return 0;
4969}
4970_ACEOF
5213506e
RW
4971if ac_fn_cxx_try_compile "$LINENO"; then :
4972 ac_cv_prog_cxx_g=yes
11a67599 4973fi
5213506e
RW
4974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4975fi
4976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4977fi
4978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4979 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4980fi
4981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4982$as_echo "$ac_cv_prog_cxx_g" >&6; }
4983if test "$ac_test_CXXFLAGS" = set; then
4984 CXXFLAGS=$ac_save_CXXFLAGS
4985elif test $ac_cv_prog_cxx_g = yes; then
4986 if test "$GXX" = yes; then
4987 CXXFLAGS="-g -O2"
4988 else
4989 CXXFLAGS="-g"
4990 fi
4991else
4992 if test "$GXX" = yes; then
4993 CXXFLAGS="-O2"
4994 else
4995 CXXFLAGS=
4996 fi
c3a86da9 4997fi
c3a86da9
DJ
4998ac_ext=c
4999ac_cpp='$CPP $CPPFLAGS'
5000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5002ac_compiler_gnu=$ac_cv_c_compiler_gnu
5003
5004
5005# We must set the default linker to the linker used by gcc for the correct
5006# operation of libtool. If LD is not defined and we are using gcc, try to
5007# set the LD default to the ld used by gcc.
5008if test -z "$LD"; then
5009 if test "$GCC" = yes; then
5010 case $build in
5011 *-*-mingw*)
5012 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5013 *)
5014 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5015 esac
5016 case $gcc_prog_ld in
5017 # Accept absolute paths.
5018 [\\/]* | [A-Za-z]:[\\/]*)
5019 LD="$gcc_prog_ld" ;;
5020 esac
5021 fi
23f6b2f9
PB
5022fi
5023
0b21f5d3
EB
5024# Check whether -static-libstdc++ -static-libgcc is supported.
5025have_static_libs=no
5026if test "$GCC" = yes; then
5027 saved_LDFLAGS="$LDFLAGS"
5028
5029 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5031$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5032 ac_ext=cpp
5033ac_cpp='$CXXCPP $CPPFLAGS'
5034ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5035ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5036ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5037
5038
5039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040/* end confdefs.h. */
0d6414b2
EB
5041
5042#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5043#error -static-libstdc++ not implemented
5044#endif
0b21f5d3
EB
5045int main() {}
5046_ACEOF
5047if ac_fn_cxx_try_link "$LINENO"; then :
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5049$as_echo "yes" >&6; }; have_static_libs=yes
5050else
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5052$as_echo "no" >&6; }
5053fi
5054rm -f core conftest.err conftest.$ac_objext \
5055 conftest$ac_exeext conftest.$ac_ext
5056 ac_ext=c
5057ac_cpp='$CPP $CPPFLAGS'
5058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5060ac_compiler_gnu=$ac_cv_c_compiler_gnu
5061
5062
5063 LDFLAGS="$saved_LDFLAGS"
5064fi
5065
23f6b2f9
PB
5066
5067
55ffb5ed 5068
1c710c3c
DJ
5069if test -n "$ac_tool_prefix"; then
5070 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 5071set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
5072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5073$as_echo_n "checking for $ac_word... " >&6; }
5074if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5075 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5076else
5077 if test -n "$GNATBIND"; then
5078 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5079else
1c710c3c
DJ
5080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081for as_dir in $PATH
5082do
5083 IFS=$as_save_IFS
5084 test -z "$as_dir" && as_dir=.
5213506e
RW
5085 for ac_exec_ext in '' $ac_executable_extensions; do
5086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5087 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5089 break 2
5090 fi
5091done
5213506e
RW
5092 done
5093IFS=$as_save_IFS
1c710c3c 5094
55ffb5ed
NN
5095fi
5096fi
1c710c3c 5097GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5098if test -n "$GNATBIND"; then
5213506e
RW
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5100$as_echo "$GNATBIND" >&6; }
55ffb5ed 5101else
5213506e
RW
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5103$as_echo "no" >&6; }
55ffb5ed
NN
5104fi
5105
5213506e 5106
1c710c3c 5107fi
55ffb5ed 5108if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5109 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5110 # Extract the first word of "gnatbind", so it can be a program name with args.
5111set dummy gnatbind; ac_word=$2
5213506e
RW
5112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5113$as_echo_n "checking for $ac_word... " >&6; }
5114if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5115 $as_echo_n "(cached) " >&6
55ffb5ed 5116else
1c710c3c
DJ
5117 if test -n "$ac_ct_GNATBIND"; then
5118 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5119else
1c710c3c
DJ
5120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121for as_dir in $PATH
5122do
5123 IFS=$as_save_IFS
5124 test -z "$as_dir" && as_dir=.
5213506e
RW
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5127 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5129 break 2
5130 fi
5131done
5213506e
RW
5132 done
5133IFS=$as_save_IFS
1c710c3c 5134
55ffb5ed
NN
5135fi
5136fi
1c710c3c
DJ
5137ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5138if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5140$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5141else
5213506e
RW
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5143$as_echo "no" >&6; }
55ffb5ed
NN
5144fi
5145
5213506e
RW
5146 if test "x$ac_ct_GNATBIND" = x; then
5147 GNATBIND="no"
5148 else
5149 case $cross_compiling:$ac_tool_warned in
5150yes:)
5151{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5152$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5153ac_tool_warned=yes ;;
5154esac
5155 GNATBIND=$ac_ct_GNATBIND
5156 fi
55ffb5ed 5157else
1c710c3c 5158 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5159fi
5160
1c710c3c
DJ
5161if test -n "$ac_tool_prefix"; then
5162 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5163set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5165$as_echo_n "checking for $ac_word... " >&6; }
5166if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5167 $as_echo_n "(cached) " >&6
5305be7e
RG
5168else
5169 if test -n "$GNATMAKE"; then
5170 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5171else
1c710c3c
DJ
5172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173for as_dir in $PATH
5174do
5175 IFS=$as_save_IFS
5176 test -z "$as_dir" && as_dir=.
5213506e
RW
5177 for ac_exec_ext in '' $ac_executable_extensions; do
5178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5179 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5181 break 2
5182 fi
5183done
5213506e
RW
5184 done
5185IFS=$as_save_IFS
1c710c3c 5186
5305be7e
RG
5187fi
5188fi
1c710c3c 5189GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5190if test -n "$GNATMAKE"; then
5213506e
RW
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5192$as_echo "$GNATMAKE" >&6; }
5305be7e 5193else
5213506e
RW
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5195$as_echo "no" >&6; }
5305be7e
RG
5196fi
5197
5213506e 5198
1c710c3c 5199fi
5305be7e 5200if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5201 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5202 # Extract the first word of "gnatmake", so it can be a program name with args.
5203set dummy gnatmake; ac_word=$2
5213506e
RW
5204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5205$as_echo_n "checking for $ac_word... " >&6; }
5206if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5207 $as_echo_n "(cached) " >&6
5305be7e 5208else
1c710c3c
DJ
5209 if test -n "$ac_ct_GNATMAKE"; then
5210 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5211else
1c710c3c
DJ
5212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213for as_dir in $PATH
5214do
5215 IFS=$as_save_IFS
5216 test -z "$as_dir" && as_dir=.
5213506e
RW
5217 for ac_exec_ext in '' $ac_executable_extensions; do
5218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5219 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5221 break 2
5222 fi
5223done
5213506e
RW
5224 done
5225IFS=$as_save_IFS
1c710c3c 5226
5305be7e
RG
5227fi
5228fi
1c710c3c
DJ
5229ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5230if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5232$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5233else
5213506e
RW
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5235$as_echo "no" >&6; }
5305be7e
RG
5236fi
5237
5213506e
RW
5238 if test "x$ac_ct_GNATMAKE" = x; then
5239 GNATMAKE="no"
5240 else
5241 case $cross_compiling:$ac_tool_warned in
5242yes:)
5243{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5244$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5245ac_tool_warned=yes ;;
5246esac
5247 GNATMAKE=$ac_ct_GNATMAKE
5248 fi
5305be7e 5249else
1c710c3c 5250 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5251fi
5252
5213506e
RW
5253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5254$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5255if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5256 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5257else
5258 cat >conftest.adb <<EOF
5259procedure conftest is begin null; end conftest;
5260EOF
5261acx_cv_cc_gcc_supports_ada=no
5262# There is a bug in old released versions of GCC which causes the
5263# driver to exit successfully when the appropriate language module
5264# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5265# Therefore we must check for the error message as well as an
5266# unsuccessful exit.
1db673ca
RO
5267# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5268# given a .adb file, but produce no object file. So we must check
5269# if an object file was really produced to guard against this.
55ffb5ed 5270errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5271if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5272 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5273fi
5274rm -f conftest.*
5275fi
5213506e
RW
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5277$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5278
7cb62ef1 5279if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5280 have_gnat=yes
5281else
5282 have_gnat=no
5283fi
5284
5213506e
RW
5285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5286$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5287if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5288 $as_echo_n "(cached) " >&6
a76494aa
PB
5289else
5290 echo abfoo >t1
5291 echo cdfoo >t2
5292 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5293 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5294 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5295 :
5296 else
5297 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5298 fi
5299 fi
a76494aa
PB
5300 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5301 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5302 :
a76494aa
PB
5303 else
5304 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5305 fi
5306 fi
5307 rm t1 t2
5308
5309fi
5213506e
RW
5310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5311$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5312do_compare="$gcc_cv_prog_cmp_skip"
5313
5314
55ffb5ed 5315
ff3ac0f4
ILT
5316# Check whether --enable-bootstrap was given.
5317if test "${enable_bootstrap+set}" = set; then :
5318 enableval=$enable_bootstrap;
5319else
5320 enable_bootstrap=default
5321fi
5322
5323
5324# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5325if test -r $srcdir/gcc/configure; then
5326 have_compiler=yes
5327else
5328 have_compiler=no
5329fi
ff3ac0f4
ILT
5330
5331case "$have_compiler:$host:$target:$enable_bootstrap" in
5332 *:*:*:no) ;;
5333
5334 # Default behavior. Enable bootstrap if we have a compiler
5335 # and we are in a native configuration.
5336 yes:$build:$build:default)
5337 enable_bootstrap=yes ;;
5338
5339 *:*:*:default)
5340 enable_bootstrap=no ;;
5341
5342 # We have a compiler and we are in a native configuration, bootstrap is ok
5343 yes:$build:$build:yes)
5344 ;;
5345
5346 # Other configurations, but we have a compiler. Assume the user knows
5347 # what he's doing.
5348 yes:*:*:yes)
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5350$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5351 ;;
5352
5353 # No compiler: if they passed --enable-bootstrap explicitly, fail
5354 no:*:*:yes)
5355 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5356
5357 # Fail if wrong command line
5358 *)
5359 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5360 ;;
5361esac
5362
592c90ff
KG
5363# Used for setting $lt_cv_objdir
5364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5365$as_echo_n "checking for objdir... " >&6; }
5366if test "${lt_cv_objdir+set}" = set; then :
5367 $as_echo_n "(cached) " >&6
5368else
5369 rm -f .libs 2>/dev/null
5370mkdir .libs 2>/dev/null
5371if test -d .libs; then
5372 lt_cv_objdir=.libs
5373else
5374 # MS-DOS does not allow filenames that begin with a dot.
5375 lt_cv_objdir=_libs
5376fi
5377rmdir .libs 2>/dev/null
5378fi
5379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5380$as_echo "$lt_cv_objdir" >&6; }
5381objdir=$lt_cv_objdir
5382
5383
5384
5385
5386
5387cat >>confdefs.h <<_ACEOF
5388#define LT_OBJDIR "$lt_cv_objdir/"
5389_ACEOF
5390
5391
5392
acd26225 5393# Check for GMP, MPFR and MPC
3a5729ea 5394gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 5395gmpinc=
e69bf64b 5396have_gmp=no
acd26225
KG
5397
5398# Specify a location for mpc
5399# check for this first so it ends up on the link line before mpfr.
5400
5213506e
RW
5401# Check whether --with-mpc was given.
5402if test "${with_mpc+set}" = set; then :
5403 withval=$with_mpc;
5404fi
acd26225 5405
acd26225 5406
9965e3cd 5407# Check whether --with-mpc-include was given.
5213506e
RW
5408if test "${with_mpc_include+set}" = set; then :
5409 withval=$with_mpc_include;
5410fi
acd26225 5411
acd26225 5412
9965e3cd 5413# Check whether --with-mpc-lib was given.
5213506e
RW
5414if test "${with_mpc_lib+set}" = set; then :
5415 withval=$with_mpc_lib;
5416fi
acd26225 5417
acd26225
KG
5418
5419if test "x$with_mpc" != x; then
3a5729ea
KG
5420 gmplibs="-L$with_mpc/lib $gmplibs"
5421 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
5422fi
5423if test "x$with_mpc_include" != x; then
3a5729ea 5424 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
5425fi
5426if test "x$with_mpc_lib" != x; then
3a5729ea 5427 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
5428fi
5429if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 5430 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 5431 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5432 # Do not test the mpc version. Assume that it is sufficient, since
5433 # it is in the source tree, and the library has not been built yet
5434 # but it would be included on the link line in the version check below
5435 # hence making the test fail.
3a5729ea 5436 have_gmp=yes
acd26225 5437fi
e69bf64b 5438
bebf829d
PB
5439# Specify a location for mpfr
5440# check for this first so it ends up on the link line before gmp.
1c710c3c 5441
5213506e
RW
5442# Check whether --with-mpfr-dir was given.
5443if test "${with_mpfr_dir+set}" = set; then :
5444 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5445Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5446fi
5447
bebf829d
PB
5448
5449
5213506e
RW
5450# Check whether --with-mpfr was given.
5451if test "${with_mpfr+set}" = set; then :
5452 withval=$with_mpfr;
5453fi
1c710c3c 5454
bebf829d 5455
9965e3cd 5456# Check whether --with-mpfr-include was given.
5213506e
RW
5457if test "${with_mpfr_include+set}" = set; then :
5458 withval=$with_mpfr_include;
5459fi
1c710c3c 5460
8a877c9c 5461
9965e3cd 5462# Check whether --with-mpfr-lib was given.
5213506e
RW
5463if test "${with_mpfr_lib+set}" = set; then :
5464 withval=$with_mpfr_lib;
5465fi
8a877c9c 5466
bebf829d
PB
5467
5468if test "x$with_mpfr" != x; then
5469 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5470 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5471fi
8a877c9c 5472if test "x$with_mpfr_include" != x; then
3a5729ea 5473 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5474fi
5475if test "x$with_mpfr_lib" != x; then
5476 gmplibs="-L$with_mpfr_lib $gmplibs"
5477fi
e69bf64b 5478if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5b0d38e4
NC
5479 # MPFR v3.1.0 moved the sources into a src sub-directory.
5480 if test -d ${srcdir}/mpfr/src; then
5481 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5482 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5483 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5484 else
5485 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5486 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5487 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5488 fi
e69bf64b
PB
5489 # Do not test the mpfr version. Assume that it is sufficient, since
5490 # it is in the source tree, and the library has not been built yet
5491 # but it would be included on the link line in the version check below
5492 # hence making the test fail.
5493 have_gmp=yes
5494fi
bebf829d 5495
6de9cd9a 5496# Specify a location for gmp
1c710c3c 5497
5213506e
RW
5498# Check whether --with-gmp-dir was given.
5499if test "${with_gmp_dir+set}" = set; then :
5500 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5501Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5502fi
5503
6de9cd9a 5504
6de9cd9a 5505
5213506e
RW
5506# Check whether --with-gmp was given.
5507if test "${with_gmp+set}" = set; then :
5508 withval=$with_gmp;
5509fi
1c710c3c 5510
6de9cd9a 5511
9965e3cd 5512# Check whether --with-gmp-include was given.
5213506e
RW
5513if test "${with_gmp_include+set}" = set; then :
5514 withval=$with_gmp_include;
5515fi
1c710c3c 5516
8a877c9c 5517
9965e3cd 5518# Check whether --with-gmp-lib was given.
5213506e
RW
5519if test "${with_gmp_lib+set}" = set; then :
5520 withval=$with_gmp_lib;
5521fi
8a877c9c
KG
5522
5523
6de9cd9a 5524
bebf829d
PB
5525if test "x$with_gmp" != x; then
5526 gmplibs="-L$with_gmp/lib $gmplibs"
5527 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5528fi
8a877c9c
KG
5529if test "x$with_gmp_include" != x; then
5530 gmpinc="-I$with_gmp_include $gmpinc"
5531fi
5532if test "x$with_gmp_lib" != x; then
5533 gmplibs="-L$with_gmp_lib $gmplibs"
5534fi
e69bf64b 5535if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5536 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5537 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 5538 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 5539 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 5540 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
5541 # Do not test the gmp version. Assume that it is sufficient, since
5542 # it is in the source tree, and the library has not been built yet
5543 # but it would be included on the link line in the version check below
5544 # hence making the test fail.
5545 have_gmp=yes
5546fi
6de9cd9a 5547
d943d7c4 5548if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5549 have_gmp=yes
5550 saved_CFLAGS="$CFLAGS"
5551 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5552 # Check for the recommended and required versions of GMP.
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5554$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5555
5556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5557/* end confdefs.h. */
5558#include "gmp.h"
5559int
5560main ()
5561{
5562
5563 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5564 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 5565 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
5566 choke me
5567 #endif
5568
5569 ;
5570 return 0;
5571}
5572_ACEOF
5573if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5575/* end confdefs.h. */
362c6d2f 5576#include <gmp.h>
1c710c3c
DJ
5577int
5578main ()
5579{
6de9cd9a 5580
362c6d2f
KG
5581 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5582 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5583 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5584 choke me
5585 #endif
1c710c3c
DJ
5586
5587 ;
5588 return 0;
5589}
5590_ACEOF
5213506e
RW
5591if ac_fn_c_try_compile "$LINENO"; then :
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5593$as_echo "yes" >&6; }
362c6d2f
KG
5594else
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5596$as_echo "buggy but acceptable" >&6; }
5597fi
5598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5599else
5213506e
RW
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5602fi
5213506e 5603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5604
acd26225 5605 # If we have GMP, check the MPFR version.
e69bf64b 5606 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5607 # Check for the recommended and required versions of MPFR.
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5609$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5611/* end confdefs.h. */
70ec446f 5612#include <gmp.h>
e69bf64b 5613 #include <mpfr.h>
1c710c3c
DJ
5614int
5615main ()
5616{
e48d66a9 5617
f7d6bc01 5618 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
e69bf64b
PB
5619 choke me
5620 #endif
1c710c3c
DJ
5621
5622 ;
5623 return 0;
5624}
5625_ACEOF
5213506e
RW
5626if ac_fn_c_try_compile "$LINENO"; then :
5627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5628/* end confdefs.h. */
a3993f33 5629#include <gmp.h>
e69bf64b 5630 #include <mpfr.h>
1c710c3c
DJ
5631int
5632main ()
5633{
a3993f33 5634
362c6d2f 5635 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
e69bf64b
PB
5636 choke me
5637 #endif
acd26225
KG
5638
5639 ;
5640 return 0;
5641}
5642_ACEOF
5213506e
RW
5643if ac_fn_c_try_compile "$LINENO"; then :
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5645$as_echo "yes" >&6; }
acd26225 5646else
5213506e
RW
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5648$as_echo "buggy but acceptable" >&6; }
acd26225 5649fi
5213506e 5650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5651else
5213506e
RW
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653$as_echo "no" >&6; }; have_gmp=no
acd26225 5654fi
5213506e 5655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5656 fi
5657
5658 # Check for the MPC header version.
3a5729ea 5659 if test x"$have_gmp" = xyes ; then
362c6d2f 5660 # Check for the recommended and required versions of MPC.
5213506e
RW
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5662$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5664/* end confdefs.h. */
5665#include <mpc.h>
5666int
5667main ()
5668{
5669
362c6d2f
KG
5670 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5671 choke me
5672 #endif
5673
5674 ;
5675 return 0;
5676}
5677_ACEOF
5678if ac_fn_c_try_compile "$LINENO"; then :
5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680/* end confdefs.h. */
5681#include <mpc.h>
5682int
5683main ()
5684{
5685
5686 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5687 choke me
5688 #endif
5689
5690 ;
5691 return 0;
5692}
5693_ACEOF
5213506e
RW
5694if ac_fn_c_try_compile "$LINENO"; then :
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5696$as_echo "yes" >&6; }
362c6d2f
KG
5697else
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5699$as_echo "buggy but acceptable" >&6; }
5700fi
5701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5702else
5213506e 5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5704$as_echo "no" >&6; }; have_gmp=no
acd26225 5705fi
5213506e 5706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5707 fi
5708
5709 # Now check the MPFR library.
5710 if test x"$have_gmp" = xyes; then
5711 saved_LIBS="$LIBS"
5712 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5714$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5716/* end confdefs.h. */
3a5729ea 5717#include <mpc.h>
acd26225
KG
5718int
5719main ()
5720{
5721
5722 mpfr_t n;
5723 mpfr_t x;
3a5729ea 5724 mpc_t c;
acd26225
KG
5725 int t;
5726 mpfr_init (n);
5727 mpfr_init (x);
5728 mpfr_atan2 (n, n, x, GMP_RNDN);
5729 mpfr_erfc (n, x, GMP_RNDN);
5730 mpfr_subnormalize (x, t, GMP_RNDN);
3a5729ea
KG
5731 mpfr_clear(n);
5732 mpfr_clear(x);
5733 mpc_init2 (c, 53);
5734 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5735 mpc_cosh (c, c, MPC_RNDNN);
5736 mpc_pow (c, c, c, MPC_RNDNN);
5737 mpc_acosh (c, c, MPC_RNDNN);
5738 mpc_clear (c);
1c710c3c
DJ
5739
5740 ;
5741 return 0;
5742}
5743_ACEOF
5213506e
RW
5744if ac_fn_c_try_link "$LINENO"; then :
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5746$as_echo "yes" >&6; }
1c710c3c 5747else
5213506e
RW
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5750fi
5213506e
RW
5751rm -f core conftest.err conftest.$ac_objext \
5752 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5753 LIBS="$saved_LIBS"
5754 fi
5755
e69bf64b 5756 CFLAGS="$saved_CFLAGS"
6de9cd9a 5757
362c6d2f
KG
5758# The library versions listed in the error message below should match
5759# the HARD-minimums enforced above.
e69bf64b 5760 if test x$have_gmp != xyes; then
f7d6bc01 5761 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
3a5729ea
KG
5762Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5763their locations. Source code for these libraries can be found at
5764their respective hosting sites as well as at
5765ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5766http://gcc.gnu.org/install/prerequisites.html for additional info. If
5767you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5768make sure that you have installed both the libraries and the header
5769files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5770 fi
70ec446f
KG
5771fi
5772
acd26225
KG
5773# Flags needed for both GMP, MPFR and/or MPC.
5774
5775
6de9cd9a
DN
5776
5777
5778
9e3eba15 5779
0ff2d841 5780
f38095f3
JM
5781# Allow host libstdc++ to be specified for static linking with PPL.
5782
5213506e
RW
5783# Check whether --with-host-libstdcxx was given.
5784if test "${with_host_libstdcxx+set}" = set; then :
5785 withval=$with_host_libstdcxx;
5786fi
f38095f3 5787
f38095f3
JM
5788
5789case $with_host_libstdcxx in
5790 no|yes)
5213506e 5791 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
f38095f3
JM
5792 ;;
5793esac
f8bf9252 5794
0b21f5d3 5795# Libraries to use for stage1 or when not bootstrapping.
00020c16 5796
0b21f5d3
EB
5797# Check whether --with-stage1-libs was given.
5798if test "${with_stage1_libs+set}" = set; then :
5799 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5800 stage1_libs=
00020c16 5801 else
0b21f5d3 5802 stage1_libs=$withval
00020c16
ILT
5803 fi
5804else
0b21f5d3 5805 stage1_libs=$with_host_libstdcxx
5213506e
RW
5806fi
5807
00020c16
ILT
5808
5809
0b21f5d3 5810# Linker flags to use for stage1 or when not bootstrapping.
00020c16 5811
0b21f5d3
EB
5812# Check whether --with-stage1-ldflags was given.
5813if test "${with_stage1_ldflags+set}" = set; then :
5814 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5815 stage1_ldflags=
00020c16 5816 else
0b21f5d3 5817 stage1_ldflags=$withval
00020c16
ILT
5818 fi
5819else
0b21f5d3
EB
5820 stage1_ldflags=
5821 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5822 # if supported. But if the user explicitly specified the libraries to use,
5823 # trust that they are doing what they want.
5824 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5825 stage1_ldflags="-static-libstdc++ -static-libgcc"
5826 fi
5213506e
RW
5827fi
5828
00020c16
ILT
5829
5830
00020c16
ILT
5831# Libraries to use for stage2 and later builds. This defaults to the
5832# argument passed to --with-host-libstdcxx.
5833
5213506e
RW
5834# Check whether --with-boot-libs was given.
5835if test "${with_boot_libs+set}" = set; then :
5836 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
5837 poststage1_libs=
5838 else
5839 poststage1_libs=$withval
5840 fi
5841else
00020c16 5842 poststage1_libs=$with_host_libstdcxx
5213506e
RW
5843fi
5844
00020c16
ILT
5845
5846
ed2eaa9f
ILT
5847# Linker flags to use for stage2 and later builds.
5848
5849# Check whether --with-boot-ldflags was given.
5850if test "${with_boot_ldflags+set}" = set; then :
5851 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5852 poststage1_ldflags=
5853 else
5854 poststage1_ldflags=$withval
5855 fi
5856else
5857 poststage1_ldflags=
bec93d73
ILT
5858 # In stages 2 and 3, default to linking libstdc++ and libgcc
5859 # statically. But if the user explicitly specified the libraries to
5860 # use, trust that they are doing what they want.
5861 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
5862 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5863 fi
5864fi
5865
5866
5867
4a9bb2aa
TB
5868# GCC GRAPHITE dependency ISL.
5869# Basic setup is inlined here, actual checks are in config/isl.m4
f8bf9252
SP
5870
5871
33ad93b9
RG
5872# Check whether --with-isl was given.
5873if test "${with_isl+set}" = set; then :
5874 withval=$with_isl;
5213506e 5875fi
f8bf9252 5876
f8bf9252 5877
eae1a5d4 5878# Treat --without-isl as a request to disable
625afa23 5879# GRAPHITE support and skip all following checks.
eae1a5d4 5880if test "x$with_isl" != "xno"; then
625afa23
RG
5881 # Check for ISL
5882
5883
33ad93b9
RG
5884# Check whether --with-isl-include was given.
5885if test "${with_isl_include+set}" = set; then :
5886 withval=$with_isl_include;
5213506e
RW
5887fi
5888
f8bf9252 5889
33ad93b9
RG
5890# Check whether --with-isl-lib was given.
5891if test "${with_isl_lib+set}" = set; then :
5892 withval=$with_isl_lib;
5213506e 5893fi
f8bf9252 5894
f8bf9252 5895
33ad93b9
RG
5896 # Check whether --enable-isl-version-check was given.
5897if test "${enable_isl_version_check+set}" = set; then :
5898 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5899else
5900 ENABLE_ISL_CHECK=yes
7d32a440
SP
5901fi
5902
5903
33ad93b9
RG
5904 # Initialize isllibs and islinc.
5905 case $with_isl in
5906 no)
5907 isllibs=
5908 islinc=
5909 ;;
5910 "" | yes)
5911 ;;
5912 *)
5913 isllibs="-L$with_isl/lib"
5914 islinc="-I$with_isl/include"
5915 ;;
5916 esac
5917 if test "x${with_isl_include}" != x ; then
5918 islinc="-I$with_isl_include"
5919 fi
5920 if test "x${with_isl_lib}" != x; then
5921 isllibs="-L$with_isl_lib"
5922 fi
5923 if test "x${islinc}" = x && test "x${isllibs}" = x \
5924 && test -d ${srcdir}/isl; then
5925 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5926 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5927 ENABLE_ISL_CHECK=no
2869f0ff
RB
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5929$as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
33ad93b9 5930 fi
7d32a440 5931
eae1a5d4
RG
5932 islinc="-DCLOOG_INT_GMP ${islinc}"
5933 isllibs="${isllibs} -lisl"
5934
7d32a440 5935
7d32a440 5936
9847828b
RB
5937 if test "${ENABLE_ISL_CHECK}" = yes ; then
5938 _isl_saved_CFLAGS=$CFLAGS
5939 _isl_saved_LDFLAGS=$LDFLAGS
5940 _isl_saved_LIBS=$LIBS
5941
5942 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5943 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5944 LIBS="${_isl_saved_LIBS} -lisl"
5945
e0c0c325
SP
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible ISL" >&5
5947$as_echo_n "checking for compatible ISL... " >&6; }
5948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
622dbadf 5949/* end confdefs.h. */
e0c0c325 5950#include <isl/val.h>
622dbadf
BC
5951int
5952main ()
5953{
e0c0c325 5954;
622dbadf
BC
5955 ;
5956 return 0;
5957}
5958_ACEOF
5959if ac_fn_c_try_link "$LINENO"; then :
9847828b 5960 gcc_cv_isl=yes
622dbadf
BC
5961else
5962 gcc_cv_isl=no
5963fi
5964rm -f core conftest.err conftest.$ac_objext \
5965 conftest$ac_exeext conftest.$ac_ext
9847828b
RB
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5967$as_echo "$gcc_cv_isl" >&6; }
5968
5969 CFLAGS=$_isl_saved_CFLAGS
5970 LDFLAGS=$_isl_saved_LDFLAGS
5971 LIBS=$_isl_saved_LIBS
5972 fi
5973
5974
f8bf9252 5975
f8bf9252 5976
33ad93b9
RG
5977
5978
33ad93b9
RG
5979 if test "x${with_isl}" = xno; then
5980 graphite_requested=no
5981 elif test "x${with_isl}" != x \
5982 || test "x${with_isl_include}" != x \
5983 || test "x${with_isl_lib}" != x ; then
5984 graphite_requested=yes
5985 else
5986 graphite_requested=no
7d32a440 5987 fi
d789184e 5988
d789184e
SP
5989
5990
33ad93b9
RG
5991 if test "${gcc_cv_isl}" = no ; then
5992 isllibs=
5993 islinc=
5994 fi
5995
5996 if test "${graphite_requested}" = yes \
5997 && test "x${isllibs}" = x \
5998 && test "x${islinc}" = x ; then
f8bf9252 5999
33ad93b9
RG
6000 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
6001 fi
f8bf9252 6002
d32ef397 6003
d32ef397
AS
6004fi
6005
4a9bb2aa 6006# If the ISL check failed, disable builds of in-tree variant of ISL
625afa23 6007if test "x$with_isl" = xno ||
625afa23 6008 test "x$gcc_cv_isl" = xno; then
4a9bb2aa 6009 noconfigdirs="$noconfigdirs isl"
625afa23 6010 islinc=
32d024bf
RG
6011fi
6012
625afa23
RG
6013
6014
6015
d7f09764
DN
6016# Check for LTO support.
6017# Check whether --enable-lto was given.
6018if test "${enable_lto+set}" = set; then :
6019 enableval=$enable_lto; enable_lto=$enableval
6020else
6021 enable_lto=yes; default_enable_lto=yes
6022fi
6023
6024
7413962d 6025
9a02962b
DK
6026
6027
6028target_elf=no
6029case $target in
6030 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 6031 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
9a02962b
DK
6032 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6033 target_elf=no
6034 ;;
6035 *)
6036 target_elf=yes
6037 ;;
6038esac
6039
6040if test $target_elf = yes; then :
48215350
DK
6041 # ELF platforms build the lto-plugin always.
6042 build_lto_plugin=yes
9a02962b 6043
9a02962b
DK
6044else
6045 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 6046 case $target in
2cd815e7 6047 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
48215350 6048 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
6049 *) enable_lto=no ;;
6050 esac
9a02962b 6051 else
db50fe7d
IS
6052 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6053 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
6054 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6055 # warn during gcc/ subconfigure; unless you're bootstrapping with
6056 # -flto it won't be needed until after installation anyway.
6057 case $target in
1cd0b716 6058 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
9a02962b
DK
6059 *) if test x"$enable_lto" = x"yes"; then
6060 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6061 fi
6062 ;;
6063 esac
6064 fi
1cd0b716 6065 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 6066 # Build it unless LTO was explicitly disabled.
1cd0b716 6067 case $target in
48215350 6068 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
6069 *) ;;
6070 esac
48215350 6071
9a02962b
DK
6072fi
6073
d7f09764 6074
45b3824d
TS
6075# Check whether --enable-linker-plugin-configure-flags was given.
6076if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6077 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6078else
6079 extra_linker_plugin_configure_flags=
6080fi
6081
6082
6083# Check whether --enable-linker-plugin-flags was given.
6084if test "${enable_linker_plugin_flags+set}" = set; then :
6085 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6086else
6087 extra_linker_plugin_flags=
6088fi
6089
6090
6091
f8bf9252 6092
0823efed 6093# By default, C and C++ are the only stage 1 languages.
e1888513 6094stage1_languages=,c,
2805b53a 6095
00020c16 6096# Target libraries that we bootstrap.
ad1e5170 6097bootstrap_target_libs=,target-libgcc,
00020c16 6098
55ffb5ed
NN
6099# Figure out what language subdirectories are present.
6100# Look if the user specified --enable-languages="..."; if not, use
6101# the environment variable $LANGUAGES if defined. $LANGUAGES might
6102# go away some day.
6103# NB: embedded tabs in this IF block -- do not untabify
6104if test -d ${srcdir}/gcc; then
6105 if test x"${enable_languages+set}" != xset; then
6106 if test x"${LANGUAGES+set}" = xset; then
6107 enable_languages="${LANGUAGES}"
6108 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6109 else
6110 enable_languages=all
6111 fi
6112 else
6113 if test x"${enable_languages}" = x ||
6114 test x"${enable_languages}" = xyes;
6115 then
6116 echo configure.in: --enable-languages needs at least one language argument 1>&2
6117 exit 1
6118 fi
6119 fi
6120 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6121
7f26dfa3
FXC
6122 # 'f95' is the old name for the 'fortran' language. We issue a warning
6123 # and make the substitution.
6124 case ,${enable_languages}, in
6125 *,f95,*)
6126 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6127 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6128 ;;
6129 esac
6130
0823efed
DN
6131 # If bootstrapping, C++ must be enabled.
6132 case ",$enable_languages,:$enable_bootstrap" in
6133 *,c++,*:*) ;;
6134 *:yes)
ff3ac0f4
ILT
6135 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6136 enable_languages="${enable_languages},c++"
6137 else
0823efed 6138 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
6139 fi
6140 ;;
6141 esac
6142
55ffb5ed
NN
6143 # First scan to see if an enabled language requires some other language.
6144 # We assume that a given config-lang.in will list all the language
6145 # front ends it requires, even if some are required indirectly.
6146 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6147 case ${lang_frag} in
6148 ..) ;;
6149 # The odd quoting in the next line works around
6150 # an apparent bug in bash 1.12 on linux.
6151 ${srcdir}/gcc/[*]/config-lang.in) ;;
6152 *)
69ecd18f
ILT
6153 # From the config-lang.in, get $language, $lang_requires, and
6154 # $lang_requires_boot_languages.
55ffb5ed
NN
6155 language=
6156 lang_requires=
69ecd18f 6157 lang_requires_boot_languages=
55ffb5ed 6158 . ${lang_frag}
69ecd18f 6159 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
6160 case ,${enable_languages}, in
6161 *,$other,*) ;;
6162 *,all,*) ;;
6163 *,$language,*)
6164 echo " \`$other' language required by \`$language'; enabling" 1>&2
6165 enable_languages="${enable_languages},${other}"
6166 ;;
6167 esac
6168 done
69ecd18f
ILT
6169 for other in ${lang_requires_boot_languages} ; do
6170 if test "$other" != "c"; then
6171 case ,${enable_stage1_languages}, in
6172 *,$other,*) ;;
6173 *,all,*) ;;
6174 *)
6175 case ,${enable_languages}, in
6176 *,$language,*)
6177 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6178 enable_stage1_languages="$enable_stage1_languages,${other}"
6179 ;;
6180 esac
6181 ;;
6182 esac
6183 fi
6184 done
55ffb5ed
NN
6185 ;;
6186 esac
6187 done
6188
e1888513 6189 new_enable_languages=,c,
d7f09764
DN
6190
6191 # If LTO is enabled, add the LTO front end.
d7f09764 6192 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6193 case ,${enable_languages}, in
6194 *,lto,*) ;;
6195 *) enable_languages="${enable_languages},lto" ;;
6196 esac
1cd0b716 6197 if test "${build_lto_plugin}" = "yes" ; then
d7f09764 6198 configdirs="$configdirs lto-plugin"
d7f09764
DN
6199 fi
6200 fi
6201
55ffb5ed 6202 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6203 potential_languages=,c,
55ffb5ed 6204
4da3b0f8
ILT
6205 enabled_target_libs=
6206 disabled_target_libs=
6207
55ffb5ed
NN
6208 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6209 case ${lang_frag} in
6210 ..) ;;
6211 # The odd quoting in the next line works around
6212 # an apparent bug in bash 1.12 on linux.
6213 ${srcdir}/gcc/[*]/config-lang.in) ;;
6214 *)
1c710c3c 6215 # From the config-lang.in, get $language, $target_libs,
2805b53a 6216 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6217 language=
6218 target_libs=
6219 lang_dirs=
1546bb64 6220 subdir_requires=
e1888513
PB
6221 boot_language=no
6222 build_by_default=yes
55ffb5ed 6223 . ${lang_frag}
e1888513
PB
6224 if test x${language} = x; then
6225 echo "${lang_frag} doesn't set \$language." 1>&2
6226 exit 1
6227 fi
6228
78767fd9 6229 if test "$language" = "c++"; then
0823efed 6230 boot_language=yes
00020c16
ILT
6231 fi
6232
178f875a 6233 add_this_lang=no
e1888513
PB
6234 case ,${enable_languages}, in
6235 *,${language},*)
d4a10d0a
SB
6236 # Language was explicitly selected; include it
6237 # unless it is C, which is enabled by default.
6238 if test "$language" != "c"; then
6239 add_this_lang=yes
6240 fi
55ffb5ed 6241 ;;
e1888513
PB
6242 *,all,*)
6243 # 'all' was selected, select it if it is a default language
178f875a
JM
6244 if test "$language" != "c"; then
6245 add_this_lang=${build_by_default}
6246 fi
55ffb5ed
NN
6247 ;;
6248 esac
6de9cd9a 6249
1546bb64 6250 # Disable languages that need other directories if these aren't available.
95695ad3 6251 for i in $subdir_requires; do
b6348cb3 6252 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
6253 case ,${enable_languages}, in
6254 *,${language},*)
6255 # Specifically requested language; tell them.
5213506e 6256 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64
PB
6257 ;;
6258 *)
6259 # Silently disable.
e1888513 6260 add_this_lang=unsupported
1546bb64
PB
6261 ;;
6262 esac
6263 done
6264
e1888513
PB
6265 # Disable Ada if no preexisting GNAT is available.
6266 case ,${enable_languages},:${language}:${have_gnat} in
6267 *,${language},*:ada:no)
6268 # Specifically requested language; tell them.
5213506e 6269 as_fn_error "GNAT is required to build $language" "$LINENO" 5
e1888513
PB
6270 ;;
6271 *:ada:no)
6272 # Silently disable.
6273 add_this_lang=unsupported
6274 ;;
6275 esac
6276
4fab7234
HPN
6277 # Disable a language that is unsupported by the target.
6278 case " $unsupported_languages " in
6279 *" $language "*)
e1888513 6280 add_this_lang=unsupported
4fab7234
HPN
6281 ;;
6282 esac
6283
6de9cd9a 6284 case $add_this_lang in
e1888513 6285 unsupported)
55ffb5ed 6286 # Remove language-dependent dirs.
4da3b0f8
ILT
6287 disabled_target_libs="$disabled_target_libs $target_libs"
6288 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 6289 ;;
e1888513
PB
6290 no)
6291 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
6292 disabled_target_libs="$disabled_target_libs $target_libs"
6293 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
6294 potential_languages="${potential_languages}${language},"
6295 ;;
6296 yes)
6297 new_enable_languages="${new_enable_languages}${language},"
6298 potential_languages="${potential_languages}${language},"
2805b53a 6299 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 6300 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
6301 case "${boot_language}:,$enable_stage1_languages," in
6302 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6303 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6304 case ",$stage1_languages," in
6305 *,$language,* | ,yes, | ,all,) ;;
6306 *) stage1_languages="${stage1_languages}${language}," ;;
6307 esac
00020c16
ILT
6308 # We need to bootstrap any supporting libraries.
6309 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6310 ;;
6311 esac
6312 ;;
55ffb5ed
NN
6313 esac
6314 ;;
6315 esac
6316 done
6317
4da3b0f8
ILT
6318 # Add target libraries which are only needed for disabled languages
6319 # to noconfigdirs.
6320 if test -n "$disabled_target_libs"; then
6321 for dir in $disabled_target_libs; do
6322 case " $enabled_target_libs " in
6323 *" ${dir} "*) ;;
6324 *) noconfigdirs="$noconfigdirs $dir" ;;
6325 esac
6326 done
6327 fi
6328
5213506e
RW
6329 # Check whether --enable-stage1-languages was given.
6330if test "${enable_stage1_languages+set}" = set; then :
6331 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6332 ,no,|,,)
6333 # Set it to something that will have no effect in the loop below
6334 enable_stage1_languages=c ;;
6335 ,yes,)
6336 enable_stage1_languages=`echo $new_enable_languages | \
6337 sed -e "s/^,//" -e "s/,$//" ` ;;
6338 *,all,*)
6339 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6340 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6341 esac
6342
6343 # Add "good" languages from enable_stage1_languages to stage1_languages,
6344 # while "bad" languages go in missing_languages. Leave no duplicates.
6345 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6346 case $potential_languages in
6347 *,$i,*)
6348 case $stage1_languages in
6349 *,$i,*) ;;
6350 *) stage1_languages="$stage1_languages$i," ;;
6351 esac ;;
6352 *)
6353 case $missing_languages in
6354 *,$i,*) ;;
6355 *) missing_languages="$missing_languages$i," ;;
6356 esac ;;
6357 esac
6358 done
5213506e
RW
6359fi
6360
e1888513
PB
6361
6362 # Remove leading/trailing commas that were added for simplicity
6363 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6364 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6365 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6366 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6367
55ffb5ed 6368 if test "x$missing_languages" != x; then
5213506e 6369 as_fn_error "
0cf085e4 6370The following requested languages could not be built: ${missing_languages}
5213506e 6371Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6372 fi
55ffb5ed
NN
6373 if test "x$new_enable_languages" != "x$enable_languages"; then
6374 echo The following languages will be built: ${new_enable_languages}
e1888513 6375 enable_languages="$new_enable_languages"
55ffb5ed 6376 fi
e1888513 6377
1c710c3c 6378
b2eaac4a 6379 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6380fi
6381
27079765
AH
6382# Handle --disable-<component> generically.
6383for dir in $configdirs $build_configdirs $target_configdirs ; do
6384 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6385 varname=`echo $dirname | sed -e s/+/_/g`
6386 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6387 noconfigdirs="$noconfigdirs $dir"
6388 fi
6389done
6390
7cd0cf9c 6391# Check for Boehm's garbage collector
5213506e
RW
6392# Check whether --enable-objc-gc was given.
6393if test "${enable_objc_gc+set}" = set; then :
6394 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 6395 *,objc,*:*:yes:*target-boehm-gc*)
5213506e 6396 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
7cd0cf9c
DA
6397 ;;
6398esac
5213506e
RW
6399fi
6400
7cd0cf9c
DA
6401
6402# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
6403case ,${enable_languages},:${enable_objc_gc} in
6404 *,objc,*:yes)
7cd0cf9c
DA
6405 # Keep target-boehm-gc if requested for Objective-C.
6406 ;;
7cd0cf9c 6407 *)
2a79fd67
DA
6408 # Otherwise remove target-boehm-gc depending on target-libjava.
6409 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6410 noconfigdirs="$noconfigdirs target-boehm-gc"
6411 fi
7cd0cf9c
DA
6412 ;;
6413esac
6414
5f520819 6415# Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
99776ebd 6416case ,${enable_languages}, in
1007a55c
JW
6417 *,c++,*)
6418 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6419 case "${noconfigdirs}" in
6420 *target-libstdc++-v3*)
6421 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6422 ;;
6423 *) ;;
6424 esac
6425 ;;
99776ebd 6426 *)
5f520819 6427 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
99776ebd
RH
6428 ;;
6429esac
6430
ee6a22df
L
6431# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6432# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6433# If we have the source for $noconfigdirs entries, add them to $notsupp.
6434
6435notsupp=""
6436for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6437 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6438 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6439 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6440 if test -r $srcdir/$dirname/configure ; then
6441 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6442 true
6443 else
6444 notsupp="$notsupp $dir"
6445 fi
6446 fi
6447 fi
ee6a22df
L
6448 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6449 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6450 if test -r $srcdir/$dirname/configure ; then
6451 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6452 true
6453 else
6454 notsupp="$notsupp $dir"
6455 fi
6456 fi
6457 fi
55ffb5ed
NN
6458 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6459 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6460 if test -r $srcdir/$dirname/configure ; then
6461 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6462 true
6463 else
6464 notsupp="$notsupp $dir"
6465 fi
6466 fi
6467 fi
6468done
6469
55ffb5ed
NN
6470# Quietly strip out all directories which aren't configurable in this tree.
6471# This relies on all configurable subdirectories being autoconfiscated, which
6472# is now the case.
23f6b2f9
PB
6473build_configdirs_all="$build_configdirs"
6474build_configdirs=
6475for i in ${build_configdirs_all} ; do
1c710c3c 6476 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
6477 if test -f ${srcdir}/$j/configure ; then
6478 build_configdirs="${build_configdirs} $i"
6479 fi
6480done
6481
55ffb5ed
NN
6482configdirs_all="$configdirs"
6483configdirs=
6484for i in ${configdirs_all} ; do
6485 if test -f ${srcdir}/$i/configure ; then
6486 configdirs="${configdirs} $i"
6487 fi
6488done
23f6b2f9 6489
55ffb5ed
NN
6490target_configdirs_all="$target_configdirs"
6491target_configdirs=
6492for i in ${target_configdirs_all} ; do
1c710c3c 6493 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
6494 if test -f ${srcdir}/$j/configure ; then
6495 target_configdirs="${target_configdirs} $i"
6496 fi
6497done
6498
45b3824d
TS
6499# libiberty-linker-plugin is special: it doesn't have its own source directory,
6500# so we have to add it after the preceding checks.
6501if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6502then
6503 case " $configdirs " in
6504 *" libiberty "*)
6505 # If we can build libiberty, we can also build libiberty-linker-plugin.
6506 configdirs="$configdirs libiberty-linker-plugin"
6507 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6508 --with-libiberty=../libiberty-linker-plugin";;
6509 *)
6510 as_fn_error "libiberty missing" "$LINENO" 5;;
6511 esac
6512fi
6513
fca38047
TS
6514# Sometimes we have special requirements for the host libiberty.
6515extra_host_libiberty_configure_flags=
6516case " $configdirs " in
6517 *" lto-plugin "* | *" libcc1 "*)
6518 # When these are to be built as shared libraries, the same applies to
6519 # libiberty.
6520 extra_host_libiberty_configure_flags=--enable-shared
6521 ;;
6522esac
6523
6524
55ffb5ed
NN
6525# Produce a warning message for the subdirs we can't configure.
6526# This isn't especially interesting in the Cygnus tree, but in the individual
6527# FSF releases, it's important to let people know when their machine isn't
6528# supported by the one or two programs in a package.
6529
6530if test -n "${notsupp}" && test -z "${norecursion}" ; then
6531 # If $appdirs is non-empty, at least one of those directories must still
6532 # be configured, or we error out. (E.g., if the gas release supports a
6533 # specified target in some subdirs but not the gas subdir, we shouldn't
6534 # pretend that all is well.)
6535 if test -n "$appdirs" ; then
6536 for dir in $appdirs ; do
6537 if test -r $dir/Makefile.in ; then
6538 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6539 appdirs=""
6540 break
6541 fi
23f6b2f9 6542 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
6543 appdirs=""
6544 break
6545 fi
6546 fi
6547 done
6548 if test -n "$appdirs" ; then
6549 echo "*** This configuration is not supported by this package." 1>&2
6550 exit 1
6551 fi
6552 fi
6553 # Okay, some application will build, or we don't care to check. Still
6554 # notify of subdirs not getting built.
6555 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6556 echo " ${notsupp}" 1>&2
6557 echo " (Any other directories should still work fine.)" 1>&2
6558fi
6559
6560case "$host" in
6561 *msdosdjgpp*)
6562 enable_gdbtk=no ;;
6563esac
6564
c3a86da9
DJ
6565# To find our prefix, in gcc_cv_tool_prefix.
6566
6567# The user is always right.
6568if test "${PATH_SEPARATOR+set}" != set; then
6569 echo "#! /bin/sh" >conf$$.sh
6570 echo "exit 0" >>conf$$.sh
6571 chmod +x conf$$.sh
6572 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6573 PATH_SEPARATOR=';'
6574 else
6575 PATH_SEPARATOR=:
6576 fi
6577 rm -f conf$$.sh
6578fi
6579
6580
6581
6582if test "x$exec_prefix" = xNONE; then
6583 if test "x$prefix" = xNONE; then
6584 gcc_cv_tool_prefix=$ac_default_prefix
6585 else
6586 gcc_cv_tool_prefix=$prefix
6587 fi
6588else
6589 gcc_cv_tool_prefix=$exec_prefix
6590fi
6591
6592# If there is no compiler in the tree, use the PATH only. In any
6593# case, if there is no compiler in the tree nobody should use
6594# AS_FOR_TARGET and LD_FOR_TARGET.
6595if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6596 gcc_version=`cat $srcdir/gcc/BASE-VER`
6597 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6598 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6599 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6600 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6601 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6602 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6603else
6604 gcc_cv_tool_dirs=
6605fi
6606
6607if test x$build = x$target && test -n "$md_exec_prefix"; then
6608 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6609fi
6610
6611
6612
55ffb5ed
NN
6613copy_dirs=
6614
1c710c3c 6615
5213506e
RW
6616# Check whether --with-build-sysroot was given.
6617if test "${with_build_sysroot+set}" = set; then :
6618 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
6619 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6620 fi
6621else
6622 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 6623fi
526635cb
MM
6624
6625
c8aea42c 6626
5213506e
RW
6627
6628# Check whether --with-debug-prefix-map was given.
6629if test "${with_debug_prefix_map+set}" = set; then :
6630 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
6631 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6632 for debug_map in $withval; do
6633 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6634 done
6635 fi
6636else
6637 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
6638fi
6639
c8aea42c
PB
6640
6641
1c8bd6a3
PB
6642# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6643# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6644# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6645# We want to ensure that TARGET libraries (which we know are built with
6646# gcc) are built with "-O2 -g", so include those options when setting
6647# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6648if test "x$CFLAGS_FOR_TARGET" = x; then
6649 CFLAGS_FOR_TARGET=$CFLAGS
6650 case " $CFLAGS " in
6651 *" -O2 "*) ;;
bd8e704f 6652 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6653 esac
6654 case " $CFLAGS " in
6655 *" -g "* | *" -g3 "*) ;;
bd8e704f 6656 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6657 esac
6658fi
6659
6660
6661if test "x$CXXFLAGS_FOR_TARGET" = x; then
6662 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6663 case " $CXXFLAGS " in
6664 *" -O2 "*) ;;
bd8e704f 6665 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6666 esac
6667 case " $CXXFLAGS " in
6668 *" -g "* | *" -g3 "*) ;;
bd8e704f 6669 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6670 esac
6671fi
6672
6673
6f57bdf6
DK
6674
6675
55ffb5ed
NN
6676# Handle --with-headers=XXX. If the value is not "yes", the contents of
6677# the named directory are copied to $(tooldir)/sys-include.
6678if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6679 if test x${is_cross_compiler} = xno ; then
6680 echo 1>&2 '***' --with-headers is only supported when cross compiling
6681 exit 1
6682 fi
6683 if test x"${with_headers}" != xyes ; then
c3a86da9 6684 x=${gcc_cv_tool_prefix}
1c710c3c 6685 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
6686 fi
6687fi
6688
6689# Handle --with-libs=XXX. If the value is not "yes", the contents of
6690# the name directories are copied to $(tooldir)/lib. Multiple directories
6691# are permitted.
6692if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6693 if test x${is_cross_compiler} = xno ; then
6694 echo 1>&2 '***' --with-libs is only supported when cross compiling
6695 exit 1
6696 fi
6697 if test x"${with_libs}" != xyes ; then
6698 # Copy the libraries in reverse order, so that files in the first named
6699 # library override files in subsequent libraries.
c3a86da9 6700 x=${gcc_cv_tool_prefix}
55ffb5ed 6701 for l in ${with_libs}; do
1c710c3c 6702 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
6703 done
6704 fi
6705fi
6706
d7f09764 6707# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
6708#
6709# This is done by determining whether or not the appropriate directory
6710# is available, and by checking whether or not specific configurations
6711# have requested that this magic not happen.
1c710c3c
DJ
6712#
6713# The command line options always override the explicit settings in
e8b05380
PB
6714# configure.in, and the settings in configure.in override this magic.
6715#
1c710c3c 6716# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 6717# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
6718# --without-gnu-ld options for the configure script. Similarly, if
6719# the default is to use the included zlib and you don't want to do that,
6720# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
6721
6722if test x${use_gnu_as} = x &&
6723 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6724 with_gnu_as=yes
6725 extra_host_args="$extra_host_args --with-gnu-as"
6726fi
6727
6728if test x${use_gnu_ld} = x &&
5afab7ad 6729 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
6730 with_gnu_ld=yes
6731 extra_host_args="$extra_host_args --with-gnu-ld"
6732fi
6733
d7f09764
DN
6734if test x${use_included_zlib} = x &&
6735 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6736 :
6737else
6738 with_system_zlib=yes
6739 extra_host_args="$extra_host_args --with-system-zlib"
6740fi
6741
e8b05380
PB
6742# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6743# can detect this case.
6744
6745if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6746 with_newlib=yes
6747 extra_host_args="$extra_host_args --with-newlib"
6748fi
6749
55ffb5ed
NN
6750# Handle ${copy_dirs}
6751set fnord ${copy_dirs}
6752shift
6753while test $# != 0 ; do
6754 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6755 :
6756 else
6757 echo Copying $1 to $2
6758
6759 # Use the install script to create the directory and all required
6760 # parent directories.
6761 if test -d $2 ; then
6762 :
6763 else
6764 echo >config.temp
6765 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6766 fi
6767
6768 # Copy the directory, assuming we have tar.
6769 # FIXME: Should we use B in the second tar? Not all systems support it.
6770 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6771
6772 # It is the responsibility of the user to correctly adjust all
6773 # symlinks. If somebody can figure out how to handle them correctly
6774 # here, feel free to add the code.
6775
6776 echo $1 > $2/COPIED
6777 fi
6778 shift; shift
6779done
6780
e8b05380
PB
6781# Determine a target-dependent exec_prefix that the installed
6782# gcc will search in. Keep this list sorted by triplet, with
6783# the *-*-osname triplets last.
6784md_exec_prefix=
6785case "${target}" in
30b74385 6786 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
6787 md_exec_prefix=/dev/env/DJDIR/bin
6788 ;;
e8b05380 6789 *-*-hpux* | \
e8b05380 6790 *-*-nto-qnx* | \
6de66370 6791 *-*-solaris2*)
e8b05380
PB
6792 md_exec_prefix=/usr/ccs/bin
6793 ;;
6794esac
6795
671aa708
NN
6796extra_arflags_for_target=
6797extra_nmflags_for_target=
6798extra_ranlibflags_for_target=
6799target_makefile_frag=/dev/null
6800case "${target}" in
58e24147
AM
6801 spu-*-*)
6802 target_makefile_frag="config/mt-spu"
6803 ;;
d91491e5 6804 mips*-sde-elf* | mips*-mti-elf*)
4bf6c438
RS
6805 target_makefile_frag="config/mt-sde"
6806 ;;
1ec3b87b
RS
6807 mipsisa*-*-elfoabi*)
6808 target_makefile_frag="config/mt-mips-elfoabi"
6809 ;;
08d0963a
RS
6810 mips*-*-*linux* | mips*-*-gnu*)
6811 target_makefile_frag="config/mt-mips-gnu"
6812 ;;
707f1839
SL
6813 nios2-*-elf*)
6814 target_makefile_frag="config/mt-nios2-elf"
6815 ;;
416ac4d4 6816 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 6817 target_makefile_frag="config/mt-gnu"
671aa708
NN
6818 ;;
6819 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 6820 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
6821 # commands to handle both 32-bit and 64-bit objects. These flags are
6822 # harmless if we're using GNU nm or ar.
6823 extra_arflags_for_target=" -X32_64"
6824 extra_nmflags_for_target=" -B -X32_64"
6825 ;;
671aa708
NN
6826esac
6827
6828alphaieee_frag=/dev/null
6829case $target in
6830 alpha*-*-*)
6831 # This just makes sure to use the -mieee option to build target libs.
6832 # This should probably be set individually by each library.
6833 alphaieee_frag="config/mt-alphaieee"
6834 ;;
6835esac
6836
6837# If --enable-target-optspace always use -Os instead of -O2 to build
6838# the target libraries, similarly if it is not specified, use -Os
6839# on selected platforms.
6840ospace_frag=/dev/null
6841case "${enable_target_optspace}:${target}" in
6842 yes:*)
6843 ospace_frag="config/mt-ospace"
6844 ;;
6845 :d30v-*)
6846 ospace_frag="config/mt-d30v"
6847 ;;
6848 :m32r-* | :d10v-* | :fr30-*)
6849 ospace_frag="config/mt-ospace"
6850 ;;
6851 no:* | :*)
6852 ;;
6853 *)
6854 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6855 ;;
6856esac
6857
671aa708
NN
6858# Some systems (e.g., one of the i386-aix systems the gas testers are
6859# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 6860tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
6861build_tooldir=${tooldir}
6862
671aa708
NN
6863# Create a .gdbinit file which runs the one in srcdir
6864# and tells GDB to look there for source files.
6865
6866if test -r ${srcdir}/.gdbinit ; then
6867 case ${srcdir} in
6868 .) ;;
6869 *) cat > ./.gdbinit <<EOF
6870# ${NO_EDIT}
6871dir ${srcdir}
6872dir .
6873source ${srcdir}/.gdbinit
6874EOF
6875 ;;
6876 esac
6877fi
6878
671aa708
NN
6879# Make sure that the compiler is able to generate an executable. If it
6880# can't, we are probably in trouble. We don't care whether we can run the
6881# executable--we might be using a cross compiler--we only care whether it
6882# can be created. At this point the main configure script has set CC.
6883we_are_ok=no
6884echo "int main () { return 0; }" > conftest.c
6885${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6886if test $? = 0 ; then
6887 if test -s conftest || test -s conftest.exe ; then
6888 we_are_ok=yes
6889 fi
1c710c3c 6890fi
671aa708
NN
6891case $we_are_ok in
6892 no)
6893 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6894 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6895 rm -f conftest*
6896 exit 1
6897 ;;
6898esac
6899rm -f conftest*
6900
d89f0ad6 6901# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
6902case "${host}" in
6903 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 6904 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 6905 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
6906 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6907esac
6908
d89f0ad6
AL
6909# On systems where the dynamic library environment variable is PATH,
6910# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6911# built executables to PATH.
6912if test "$RPATH_ENVVAR" = PATH; then
6913 GCC_SHLIB_SUBDIR=/shlib
6914else
6915 GCC_SHLIB_SUBDIR=
6916fi
6917
beeda1d9
JJ
6918# Adjust the toplevel makefile according to whether bootstrap was selected.
6919case $enable_bootstrap in
6920 yes)
6921 bootstrap_suffix=bootstrap
6922 BUILD_CONFIG=bootstrap-debug
6923 ;;
6924 no)
6925 bootstrap_suffix=no-bootstrap
6926 BUILD_CONFIG=
6927 ;;
6928esac
6929
6930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6931$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6932
6933
6934# Check whether --with-build-config was given.
6935if test "${with_build_config+set}" = set; then :
6936 withval=$with_build_config; case $with_build_config in
6937 yes) with_build_config= ;;
6938 no) with_build_config= BUILD_CONFIG= ;;
6939 esac
6940fi
6941
6942
6943if test "x${with_build_config}" != x; then
6944 BUILD_CONFIG=$with_build_config
6945else
6946 case $BUILD_CONFIG in
6947 bootstrap-debug)
6948 if echo "int f (void) { return 0; }" > conftest.c &&
6949 ${CC} -c conftest.c &&
6950 mv conftest.o conftest.o.g0 &&
6951 ${CC} -c -g conftest.c &&
6952 mv conftest.o conftest.o.g &&
6953 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
6954 :
6955 else
6956 BUILD_CONFIG=
6957 fi
6958 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6959 ;;
6960 esac
6961fi
6962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6963$as_echo "$BUILD_CONFIG" >&6; }
6964
6965
6966# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
6967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
6968$as_echo_n "checking for --enable-vtable-verify... " >&6; }
6969# Check whether --enable-vtable-verify was given.
6970if test "${enable_vtable_verify+set}" = set; then :
6971 enableval=$enable_vtable_verify; case "$enableval" in
6972 yes) enable_vtable_verify=yes ;;
6973 no) enable_vtable_verify=no ;;
6974 *) enable_vtable_verify=no;;
6975 esac
6976else
6977 enable_vtable_verify=no
6978fi
6979
6980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
6981$as_echo "$enable_vtable_verify" >&6; }
6982
671aa708
NN
6983# Record target_configdirs and the configure arguments for target and
6984# build configuration in Makefile.
6985target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 6986build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9e1c8fc1 6987bootstrap_fixincludes=no
671aa708 6988
ad1e5170
JR
6989# If we are building libgomp, bootstrap it.
6990if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6991 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6992fi
6993
beeda1d9
JJ
6994# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
6995# or bootstrap-ubsan, bootstrap it.
6996if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
6997 case "$BUILD_CONFIG" in
6998 *bootstrap-asan* | *bootstrap-ubsan* )
6999 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9e1c8fc1 7000 bootstrap_fixincludes=yes
beeda1d9
JJ
7001 ;;
7002 esac
ac8701fe
L
7003fi
7004
beeda1d9
JJ
7005# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7006if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7007 test "$enable_vtable_verify" != no; then
2077db1b
CT
7008 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7009fi
7010
671aa708
NN
7011# Determine whether gdb needs tk/tcl or not.
7012# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7013# and in that case we want gdb to be built without tk. Ugh!
7014# In fact I believe gdb is the *only* package directly dependent on tk,
7015# so we should be able to put the 'maybe's in unconditionally and
7016# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7017# 100% sure that that's safe though.
e914a571 7018
b4f96efe 7019gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
7020case "$enable_gdbtk" in
7021 no)
7022 GDB_TK="" ;;
e914a571
AC
7023 yes)
7024 GDB_TK="${gdb_tk}" ;;
671aa708 7025 *)
e914a571
AC
7026 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7027 # distro. Eventually someone will fix this and move Insight, nee
7028 # gdbtk to a separate directory.
7029 if test -d ${srcdir}/gdb/gdbtk ; then
7030 GDB_TK="${gdb_tk}"
7031 else
7032 GDB_TK=""
7033 fi
7034 ;;
671aa708 7035esac
ef9db8d5
DJ
7036CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7037INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 7038
60975492 7039# Strip out unwanted targets.
8b87bb96
NN
7040
7041# While at that, we remove Makefiles if we were started for recursive
7042# configuration, so that the top-level Makefile reconfigures them,
7043# like we used to do when configure itself was recursive.
8b87bb96 7044
3e54529c
RW
7045# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7046# but now we're fixing up the Makefile ourselves with the additional
7047# commands passed to AC_CONFIG_FILES. Use separate variables
7048# extrasub-{build,host,target} not because there is any reason to split
7049# the substitutions up that way, but only to remain below the limit of
7050# 99 commands in a script, for HP-UX sed.
7051# Do not nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 7052
79cd2b23
RW
7053case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7054 yes:yes:*\ gold\ *:*,c++,*) ;;
7055 yes:yes:*\ gold\ *:*)
7056 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7057 ;;
7058esac
7059
3e54529c 7060extrasub_build=
23f6b2f9 7061for module in ${build_configdirs} ; do
5607edfd
PB
7062 if test -z "${no_recursion}" \
7063 && test -f ${build_subdir}/${module}/Makefile; then
7064 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7065 rm -f ${build_subdir}/${module}/Makefile
7066 fi
3e54529c 7067 extrasub_build="$extrasub_build
5607edfd
PB
7068/^@if build-$module\$/d
7069/^@endif build-$module\$/d
7070/^@if build-$module-$bootstrap_suffix\$/d
7071/^@endif build-$module-$bootstrap_suffix\$/d"
7072done
3e54529c 7073extrasub_host=
5607edfd 7074for module in ${configdirs} ; do
a6fbc1e2 7075 if test -z "${no_recursion}"; then
f063a9ed 7076 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
7077 if test -f ${file}; then
7078 echo 1>&2 "*** removing ${file} to force reconfigure"
7079 rm -f ${file}
7080 fi
7081 done
5607edfd 7082 fi
9e1c8fc1
JJ
7083 case ${module},${bootstrap_fixincludes} in
7084 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7085 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7086 esac
3e54529c 7087 extrasub_host="$extrasub_host
5607edfd
PB
7088/^@if $module\$/d
7089/^@endif $module\$/d
9e1c8fc1
JJ
7090/^@if $module-$host_bootstrap_suffix\$/d
7091/^@endif $module-$host_bootstrap_suffix\$/d"
5607edfd 7092done
3e54529c 7093extrasub_target=
5607edfd
PB
7094for module in ${target_configdirs} ; do
7095 if test -z "${no_recursion}" \
7096 && test -f ${target_subdir}/${module}/Makefile; then
7097 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7098 rm -f ${target_subdir}/${module}/Makefile
7099 fi
00020c16
ILT
7100
7101 # We only bootstrap target libraries listed in bootstrap_target_libs.
7102 case $bootstrap_target_libs in
7103 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7104 *) target_bootstrap_suffix=no-bootstrap ;;
7105 esac
7106
3e54529c 7107 extrasub_target="$extrasub_target
5607edfd
PB
7108/^@if target-$module\$/d
7109/^@endif target-$module\$/d
00020c16
ILT
7110/^@if target-$module-$target_bootstrap_suffix\$/d
7111/^@endif target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
7112done
7113
3e54529c
RW
7114# Do the final fixup along with target modules.
7115extrasub_target="$extrasub_target
60975492 7116/^@if /,/^@endif /d"
671aa708
NN
7117
7118# Create the serialization dependencies. This uses a temporary file.
7119
5213506e
RW
7120# Check whether --enable-serial-configure was given.
7121if test "${enable_serial_configure+set}" = set; then :
7122 enableval=$enable_serial_configure;
7123fi
ade82b16
AO
7124
7125
bf1d3e81
NN
7126case ${enable_serial_configure} in
7127 yes)
7128 enable_serial_build_configure=yes
7129 enable_serial_host_configure=yes
7130 enable_serial_target_configure=yes
7131 ;;
7132esac
7133
671aa708
NN
7134# These force 'configure's to be done one at a time, to avoid problems
7135# with contention over a shared config.cache.
7136rm -f serdep.tmp
ade82b16 7137echo '# serdep.tmp' > serdep.tmp
671aa708 7138olditem=
bf1d3e81 7139test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
7140for item in ${build_configdirs} ; do
7141 case ${olditem} in
7142 "") ;;
ade82b16 7143 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
7144 esac
7145 olditem=${item}
7146done
7147olditem=
bf1d3e81 7148test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
7149for item in ${configdirs} ; do
7150 case ${olditem} in
7151 "") ;;
ade82b16 7152 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
7153 esac
7154 olditem=${item}
7155done
7156olditem=
bf1d3e81 7157test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
7158for item in ${target_configdirs} ; do
7159 case ${olditem} in
7160 "") ;;
ade82b16 7161 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
7162 esac
7163 olditem=${item}
7164done
7165serialization_dependencies=serdep.tmp
7166
7167
ade82b16 7168# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 7169# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
7170# might not want to pass down to subconfigures. The exception being
7171# --cache-file=/dev/null, which is used to turn off the use of cache
7172# files altogether, and which should be passed on to subconfigures.
7173# Also strip program-prefix, program-suffix, and program-transform-name,
7174# so that we can pass down a consistent program-transform-name.
1c710c3c 7175baseargs=
29a63921 7176tbaseargs=
1c710c3c
DJ
7177keep_next=no
7178skip_next=no
7179eval "set -- $ac_configure_args"
44bfc3ac
DJ
7180for ac_arg
7181do
1c710c3c
DJ
7182 if test X"$skip_next" = X"yes"; then
7183 skip_next=no
7184 continue
7185 fi
7186 if test X"$keep_next" = X"yes"; then
7187 case $ac_arg in
7188 *\'*)
7189 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7190 esac
7191 baseargs="$baseargs '$ac_arg'"
29a63921 7192 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
7193 keep_next=no
7194 continue
7195 fi
7196
7197 # Handle separated arguments. Based on the logic generated by
7198 # autoconf 2.59.
7199 case $ac_arg in
7200 *=* | --config-cache | -C | -disable-* | --disable-* \
7201 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7202 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7203 | -with-* | --with-* | -without-* | --without-* | --x)
7204 separate_arg=no
7205 ;;
7206 -*)
7207 separate_arg=yes
7208 ;;
7209 *)
7210 separate_arg=no
7211 ;;
7212 esac
7213
29a63921
AO
7214 skip_targ=no
7215 case $ac_arg in
7216
7217 --with-* | --without-*)
7218 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7219
7220 case $libopt in
7221 *[-_]include)
7222 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7223 ;;
7224 *[-_]lib)
7225 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7226 ;;
7227 *)
7228 lib=$libopt
7229 ;;
7230 esac
7231
7232
7233 case $lib in
4a9bb2aa 7234 mpc | mpfr | gmp | isl)
29a63921
AO
7235 # If we're processing --with-$lib, --with-$lib-include or
7236 # --with-$lib-lib, for one of the libs above, and target is
7237 # different from host, don't pass the current argument to any
7238 # target library's configure.
7239 if test x$is_cross_compiler = xyes; then
7240 skip_targ=yes
7241 fi
7242 ;;
7243 esac
7244 ;;
7245 esac
7246
1c710c3c 7247 case "$ac_arg" in
f1a036e4
NC
7248 --cache-file=/dev/null | \
7249 -cache-file=/dev/null )
7250 # Handled here to avoid the test to skip args below.
7251 baseargs="$baseargs '$ac_arg'"
29a63921 7252 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
7253 # Assert: $separate_arg should always be no.
7254 keep_next=$separate_arg
7255 ;;
1c710c3c
DJ
7256 --no*)
7257 continue
7258 ;;
7259 --c* | \
7260 --sr* | \
7261 --ho* | \
7262 --bu* | \
7263 --t* | \
7264 --program-* | \
7265 -cache_file* | \
7266 -srcdir* | \
7267 -host* | \
7268 -build* | \
7269 -target* | \
7270 -program-prefix* | \
7271 -program-suffix* | \
7272 -program-transform-name* )
7273 skip_next=$separate_arg
7274 continue
7275 ;;
7276 -*)
7277 # An option. Add it.
7278 case $ac_arg in
7279 *\'*)
7280 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7281 esac
7282 baseargs="$baseargs '$ac_arg'"
29a63921
AO
7283 if test X"$skip_targ" = Xno; then
7284 tbaseargs="$tbaseargs '$ac_arg'"
7285 fi
1c710c3c
DJ
7286 keep_next=$separate_arg
7287 ;;
7288 *)
7289 # Either a variable assignment, or a nonopt (triplet). Don't
7290 # pass it down; let the Makefile handle this.
7291 continue
7292 ;;
7293 esac
7294done
7295# Remove the initial space we just introduced and, as these will be
7296# expanded by make, quote '$'.
7297baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7298
43bb47c2
DJ
7299# Add in --program-transform-name, after --program-prefix and
7300# --program-suffix have been applied to it. Autoconf has already
7301# doubled dollar signs and backslashes in program_transform_name; we want
7302# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7303# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7304# Also, because we want to override the logic in subdir configure scripts to
7305# choose program_transform_name, replace any s,x,x, with s,y,y,.
7306sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7307${program_transform_name}
7308EOF_SED
7309gcc_transform_name=`cat conftestsed.out`
7310rm -f conftestsed.out
7311baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 7312tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7313if test "$silent" = yes; then
7314 baseargs="$baseargs --silent"
29a63921 7315 tbaseargs="$tbaseargs --silent"
d9acb717 7316fi
0115d4a3 7317baseargs="$baseargs --disable-option-checking"
29a63921 7318tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 7319
ffedf511
RW
7320# Record and document user additions to sub configure arguments.
7321
7322
7323
7324
671aa708
NN
7325# For the build-side libraries, we just need to pretend we're native,
7326# and not use the same cache file. Multilibs are neither needed nor
3d96b0d0
HPN
7327# desired. We can't even use the same cache file for all build-side
7328# libraries, as they're compiled differently; some with C, some with
7329# C++ or with different feature-enabling options.
7330build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
671aa708
NN
7331
7332# For host modules, accept cache file option, or specification as blank.
7333case "${cache_file}" in
7334"") # empty
7335 cache_file_option="" ;;
7336/* | [A-Za-z]:[\\/]* ) # absolute path
7337 cache_file_option="--cache-file=${cache_file}" ;;
7338*) # relative path
7339 cache_file_option="--cache-file=../${cache_file}" ;;
7340esac
7341
09438bde
NN
7342# Host dirs don't like to share a cache file either, horribly enough.
7343# This seems to be due to autoconf 2.5x stupidity.
ffedf511 7344host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 7345
29a63921 7346target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
7347
7348# Passing a --with-cross-host argument lets the target libraries know
7349# whether they are being built with a cross-compiler or being built
7350# native. However, it would be better to use other mechanisms to make the
7351# sorts of decisions they want to make on this basis. Please consider
7352# this option to be deprecated. FIXME.
7353if test x${is_cross_compiler} = xyes ; then
1c710c3c 7354 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7355fi
7356
79e0604d
FXC
7357# Special user-friendly check for native x86_64-linux build, if
7358# multilib is not explicitly enabled.
7359case "$target:$have_compiler:$host:$target:$enable_multilib" in
7360 x86_64-*linux*:yes:$build:$build:)
7361 # Make sure we have a developement environment that handles 32-bit
7362 dev64=no
7363 echo "int main () { return 0; }" > conftest.c
7364 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7365 if test $? = 0 ; then
7366 if test -s conftest || test -s conftest.exe ; then
7367 dev64=yes
7368 fi
7369 fi
7370 rm -f conftest*
7371 if test x${dev64} != xyes ; then
7372 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
7373 fi
7374 ;;
7375esac
7376
dc683a3f
RW
7377# Default to --enable-multilib.
7378if test x${enable_multilib} = x ; then
671aa708 7379 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 7380fi
671aa708
NN
7381
7382# Pass --with-newlib if appropriate. Note that target_configdirs has
7383# changed from the earlier setting of with_newlib.
7384if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7385 target_configargs="--with-newlib ${target_configargs}"
7386fi
7387
6b9eb62c
NN
7388# Different target subdirs use different values of certain variables
7389# (notably CXX). Worse, multilibs use *lots* of different values.
7390# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7391# it doesn't automatically accept command-line overrides of them.
7392# This means it's not safe for target subdirs to share a cache file,
7393# which is disgusting, but there you have it. Hopefully this can be
7394# fixed in future. It's still worthwhile to use a cache file for each
7395# directory. I think.
7396
bebcd931
MS
7397# Pass the appropriate --build, --host, --target and --cache-file arguments.
7398# We need to pass --target, as newer autoconf's requires consistency
7399# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7400target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7401
671aa708
NN
7402FLAGS_FOR_TARGET=
7403case " $target_configdirs " in
7404 *" newlib "*)
7405 case " $target_configargs " in
7406 *" --with-newlib "*)
7407 case "$target" in
5d571eaa 7408 *-cygwin*)
443e6238 7409 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5d571eaa 7410 ;;
671aa708
NN
7411 esac
7412
7413 # If we're not building GCC, don't discard standard headers.
7414 if test -d ${srcdir}/gcc; then
7415 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7416
7417 if test "${build}" != "${host}"; then
7418 # On Canadian crosses, CC_FOR_TARGET will have already been set
7419 # by `configure', so we won't have an opportunity to add -Bgcc/
7420 # to it. This is right: we don't want to search that directory
7421 # for binaries, but we want the header files in there, so add
7422 # them explicitly.
0463992b 7423 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
7424
7425 # Someone might think of using the pre-installed headers on
7426 # Canadian crosses, in case the installed compiler is not fully
7427 # compatible with the compiler being built. In this case, it
7428 # would be better to flag an error than risking having
7429 # incompatible object files being constructed. We can't
7430 # guarantee that an error will be flagged, but let's hope the
7431 # compiler will do it, when presented with incompatible header
7432 # files.
7433 fi
7434 fi
7435
7436 case "${target}-${is_cross_compiler}" in
f2a0e225 7437 i[3456789]86-*-linux*-no)
671aa708
NN
7438 # Here host == target, so we don't need to build gcc,
7439 # so we don't want to discard standard headers.
7440 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7441 ;;
7442 *)
7443 # If we're building newlib, use its generic headers last, but search
7444 # for any libc-related directories first (so make it the last -B
7445 # switch).
7446 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
7447
7448 # If we're building libgloss, find the startup file, simulator library
7449 # and linker script.
7450 case " $target_configdirs " in
7451 *" libgloss "*)
7452 # Look for startup file, simulator library and maybe linker script.
7453 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7454 # Look for libnosys.a in case the target needs it.
7455 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7456 # Most targets have the linker script in the source directory.
7457 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7458 ;;
7459 esac
671aa708
NN
7460 ;;
7461 esac
7462 ;;
7463 esac
7464 ;;
7465esac
5d571eaa 7466
b91f0a41 7467case "$target" in
5d571eaa
OS
7468 x86_64-*mingw* | *-w64-mingw*)
7469 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7470 # however, use a symlink named 'mingw' in ${prefix} .
7471 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7472 ;;
7473 *-mingw*)
7474 # MinGW can't be handled as Cygwin above since it does not use newlib.
7475 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'
7476 ;;
b91f0a41 7477esac
671aa708 7478
6691a79e
ME
7479# Allow the user to override the flags for
7480# our build compiler if desired.
f019adc1
MF
7481if test x"${build}" = x"${host}" ; then
7482 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7483 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7484 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7485fi
6691a79e 7486
671aa708
NN
7487# On Canadian crosses, we'll be searching the right directories for
7488# the previously-installed cross compiler, so don't bother to add
7489# flags for directories within the install tree of the compiler
7490# being built; programs in there won't even run.
7491if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7492 # Search for pre-installed headers if nothing else fits.
9124bc53 7493 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
7494fi
7495
7496if test "x${use_gnu_ld}" = x &&
7497 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7498 # Arrange for us to find uninstalled linker scripts.
215c351a 7499 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
7500fi
7501
e88a2c09
DD
7502# Search for other target-specific linker scripts and such.
7503case "${target}" in
3e19841a
PB
7504 mep*)
7505 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7506 ;;
e88a2c09
DD
7507esac
7508
671aa708 7509# Makefile fragments.
7b61653a
PE
7510for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7511do
7512 eval fragval=\$$frag
7513 if test $fragval != /dev/null; then
7514 eval $frag=${srcdir}/$fragval
7515 fi
7516done
671aa708
NN
7517
7518
7519
7520
7521
7522# Miscellanea: directories, flags, etc.
7523
7524
7525
7526
7527
7528
7529
d89f0ad6 7530
23f6b2f9 7531# Build module lists & subconfigure args.
671aa708
NN
7532
7533
7534
2abefe3d
PB
7535# Host module lists & subconfigure args.
7536
7537
7538
aae29963 7539
2abefe3d
PB
7540# Target module lists & subconfigure args.
7541
7542
7543
7544# Build tools.
7545
7546
7547
0999159b
PB
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
2abefe3d
PB
7562# Generate default definitions for YACC, M4, LEX and other programs that run
7563# on the build machine. These are used if the Makefile can't locate these
7564# programs in objdir.
7565MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7566
7567for ac_prog in 'bison -y' byacc yacc
7568do
1c710c3c 7569 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7570set dummy $ac_prog; ac_word=$2
5213506e
RW
7571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7572$as_echo_n "checking for $ac_word... " >&6; }
7573if test "${ac_cv_prog_YACC+set}" = set; then :
7574 $as_echo_n "(cached) " >&6
2abefe3d
PB
7575else
7576 if test -n "$YACC"; then
7577 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7578else
1c710c3c
DJ
7579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7580for as_dir in $PATH
7581do
7582 IFS=$as_save_IFS
7583 test -z "$as_dir" && as_dir=.
5213506e
RW
7584 for ac_exec_ext in '' $ac_executable_extensions; do
7585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7586 ac_cv_prog_YACC="$ac_prog"
5213506e 7587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7588 break 2
7589 fi
7590done
5213506e
RW
7591 done
7592IFS=$as_save_IFS
1c710c3c 7593
2abefe3d
PB
7594fi
7595fi
1c710c3c 7596YACC=$ac_cv_prog_YACC
2abefe3d 7597if test -n "$YACC"; then
5213506e
RW
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7599$as_echo "$YACC" >&6; }
2abefe3d 7600else
5213506e
RW
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7602$as_echo "no" >&6; }
2abefe3d
PB
7603fi
7604
5213506e 7605
1c710c3c 7606 test -n "$YACC" && break
2abefe3d
PB
7607done
7608test -n "$YACC" || YACC="$MISSING bison -y"
7609
7610case " $build_configdirs " in
7611 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
7612esac
7613
7614for ac_prog in bison
7615do
1c710c3c 7616 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7617set dummy $ac_prog; ac_word=$2
5213506e
RW
7618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7619$as_echo_n "checking for $ac_word... " >&6; }
7620if test "${ac_cv_prog_BISON+set}" = set; then :
7621 $as_echo_n "(cached) " >&6
2abefe3d
PB
7622else
7623 if test -n "$BISON"; then
7624 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7625else
1c710c3c
DJ
7626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627for as_dir in $PATH
7628do
7629 IFS=$as_save_IFS
7630 test -z "$as_dir" && as_dir=.
5213506e
RW
7631 for ac_exec_ext in '' $ac_executable_extensions; do
7632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7633 ac_cv_prog_BISON="$ac_prog"
5213506e 7634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7635 break 2
7636 fi
7637done
5213506e
RW
7638 done
7639IFS=$as_save_IFS
1c710c3c 7640
2abefe3d
PB
7641fi
7642fi
1c710c3c 7643BISON=$ac_cv_prog_BISON
2abefe3d 7644if test -n "$BISON"; then
5213506e
RW
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7646$as_echo "$BISON" >&6; }
2abefe3d 7647else
5213506e
RW
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7649$as_echo "no" >&6; }
2abefe3d
PB
7650fi
7651
5213506e 7652
1c710c3c 7653 test -n "$BISON" && break
2abefe3d
PB
7654done
7655test -n "$BISON" || BISON="$MISSING bison"
7656
7657case " $build_configdirs " in
7658 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7659esac
7660
7661for ac_prog in gm4 gnum4 m4
7662do
1c710c3c 7663 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7664set dummy $ac_prog; ac_word=$2
5213506e
RW
7665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7666$as_echo_n "checking for $ac_word... " >&6; }
7667if test "${ac_cv_prog_M4+set}" = set; then :
7668 $as_echo_n "(cached) " >&6
2abefe3d
PB
7669else
7670 if test -n "$M4"; then
7671 ac_cv_prog_M4="$M4" # Let the user override the test.
7672else
1c710c3c
DJ
7673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674for as_dir in $PATH
7675do
7676 IFS=$as_save_IFS
7677 test -z "$as_dir" && as_dir=.
5213506e
RW
7678 for ac_exec_ext in '' $ac_executable_extensions; do
7679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7680 ac_cv_prog_M4="$ac_prog"
5213506e 7681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7682 break 2
7683 fi
7684done
5213506e
RW
7685 done
7686IFS=$as_save_IFS
1c710c3c 7687
2abefe3d
PB
7688fi
7689fi
1c710c3c 7690M4=$ac_cv_prog_M4
2abefe3d 7691if test -n "$M4"; then
5213506e
RW
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7693$as_echo "$M4" >&6; }
2abefe3d 7694else
5213506e
RW
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7696$as_echo "no" >&6; }
2abefe3d
PB
7697fi
7698
5213506e 7699
1c710c3c 7700 test -n "$M4" && break
2abefe3d
PB
7701done
7702test -n "$M4" || M4="$MISSING m4"
7703
7704case " $build_configdirs " in
7705 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7706esac
7707
7708for ac_prog in flex lex
7709do
1c710c3c 7710 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7711set dummy $ac_prog; ac_word=$2
5213506e
RW
7712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7713$as_echo_n "checking for $ac_word... " >&6; }
7714if test "${ac_cv_prog_LEX+set}" = set; then :
7715 $as_echo_n "(cached) " >&6
2abefe3d
PB
7716else
7717 if test -n "$LEX"; then
7718 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7719else
1c710c3c
DJ
7720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721for as_dir in $PATH
7722do
7723 IFS=$as_save_IFS
7724 test -z "$as_dir" && as_dir=.
5213506e
RW
7725 for ac_exec_ext in '' $ac_executable_extensions; do
7726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7727 ac_cv_prog_LEX="$ac_prog"
5213506e 7728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7729 break 2
7730 fi
7731done
5213506e
RW
7732 done
7733IFS=$as_save_IFS
1c710c3c 7734
2abefe3d
PB
7735fi
7736fi
1c710c3c 7737LEX=$ac_cv_prog_LEX
2abefe3d 7738if test -n "$LEX"; then
5213506e
RW
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7740$as_echo "$LEX" >&6; }
2abefe3d 7741else
5213506e
RW
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743$as_echo "no" >&6; }
2abefe3d
PB
7744fi
7745
5213506e 7746
1c710c3c 7747 test -n "$LEX" && break
2abefe3d
PB
7748done
7749test -n "$LEX" || LEX="$MISSING flex"
7750
7751case " $build_configdirs " in
7752 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7753 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7754esac
7755
7756for ac_prog in flex
7757do
1c710c3c 7758 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7759set dummy $ac_prog; ac_word=$2
5213506e
RW
7760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7761$as_echo_n "checking for $ac_word... " >&6; }
7762if test "${ac_cv_prog_FLEX+set}" = set; then :
7763 $as_echo_n "(cached) " >&6
2abefe3d
PB
7764else
7765 if test -n "$FLEX"; then
7766 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7767else
1c710c3c
DJ
7768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769for as_dir in $PATH
7770do
7771 IFS=$as_save_IFS
7772 test -z "$as_dir" && as_dir=.
5213506e
RW
7773 for ac_exec_ext in '' $ac_executable_extensions; do
7774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7775 ac_cv_prog_FLEX="$ac_prog"
5213506e 7776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7777 break 2
7778 fi
7779done
5213506e
RW
7780 done
7781IFS=$as_save_IFS
1c710c3c 7782
2abefe3d
PB
7783fi
7784fi
1c710c3c 7785FLEX=$ac_cv_prog_FLEX
2abefe3d 7786if test -n "$FLEX"; then
5213506e
RW
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7788$as_echo "$FLEX" >&6; }
2abefe3d 7789else
5213506e
RW
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7791$as_echo "no" >&6; }
2abefe3d
PB
7792fi
7793
5213506e 7794
1c710c3c 7795 test -n "$FLEX" && break
2abefe3d
PB
7796done
7797test -n "$FLEX" || FLEX="$MISSING flex"
7798
7799case " $build_configdirs " in
7800 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7801esac
7802
7803for ac_prog in makeinfo
7804do
1c710c3c 7805 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7806set dummy $ac_prog; ac_word=$2
5213506e
RW
7807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7808$as_echo_n "checking for $ac_word... " >&6; }
7809if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7810 $as_echo_n "(cached) " >&6
2abefe3d
PB
7811else
7812 if test -n "$MAKEINFO"; then
7813 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7814else
1c710c3c
DJ
7815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816for as_dir in $PATH
7817do
7818 IFS=$as_save_IFS
7819 test -z "$as_dir" && as_dir=.
5213506e
RW
7820 for ac_exec_ext in '' $ac_executable_extensions; do
7821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7822 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 7823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7824 break 2
7825 fi
7826done
5213506e
RW
7827 done
7828IFS=$as_save_IFS
1c710c3c 7829
2abefe3d
PB
7830fi
7831fi
1c710c3c 7832MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 7833if test -n "$MAKEINFO"; then
5213506e
RW
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7835$as_echo "$MAKEINFO" >&6; }
2abefe3d 7836else
5213506e
RW
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838$as_echo "no" >&6; }
2abefe3d
PB
7839fi
7840
5213506e 7841
1c710c3c 7842 test -n "$MAKEINFO" && break
2abefe3d
PB
7843done
7844test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7845
7846case " $build_configdirs " in
7847 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7848 *)
7849
d18ff35a 7850 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
7851 # higher, else we use the "missing" dummy.
7852 if ${MAKEINFO} --version \
d18ff35a 7853 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
7854 :
7855 else
7856 MAKEINFO="$MISSING makeinfo"
7857 fi
7858 ;;
7859
7860esac
671aa708 7861
2abefe3d 7862# FIXME: expect and dejagnu may become build tools?
671aa708 7863
2abefe3d
PB
7864for ac_prog in expect
7865do
1c710c3c 7866 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7867set dummy $ac_prog; ac_word=$2
5213506e
RW
7868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7869$as_echo_n "checking for $ac_word... " >&6; }
7870if test "${ac_cv_prog_EXPECT+set}" = set; then :
7871 $as_echo_n "(cached) " >&6
2abefe3d
PB
7872else
7873 if test -n "$EXPECT"; then
7874 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7875else
1c710c3c
DJ
7876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7877for as_dir in $PATH
7878do
7879 IFS=$as_save_IFS
7880 test -z "$as_dir" && as_dir=.
5213506e
RW
7881 for ac_exec_ext in '' $ac_executable_extensions; do
7882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7883 ac_cv_prog_EXPECT="$ac_prog"
5213506e 7884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7885 break 2
7886 fi
7887done
5213506e
RW
7888 done
7889IFS=$as_save_IFS
1c710c3c 7890
2abefe3d
PB
7891fi
7892fi
1c710c3c 7893EXPECT=$ac_cv_prog_EXPECT
2abefe3d 7894if test -n "$EXPECT"; then
5213506e
RW
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7896$as_echo "$EXPECT" >&6; }
2abefe3d 7897else
5213506e
RW
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7899$as_echo "no" >&6; }
2abefe3d 7900fi
671aa708 7901
5213506e 7902
1c710c3c 7903 test -n "$EXPECT" && break
2abefe3d
PB
7904done
7905test -n "$EXPECT" || EXPECT="expect"
671aa708 7906
2abefe3d
PB
7907case " $configdirs " in
7908 *" expect "*)
7909 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7910 ;;
7911esac
671aa708 7912
2abefe3d
PB
7913for ac_prog in runtest
7914do
1c710c3c 7915 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7916set dummy $ac_prog; ac_word=$2
5213506e
RW
7917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7918$as_echo_n "checking for $ac_word... " >&6; }
7919if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7920 $as_echo_n "(cached) " >&6
2abefe3d
PB
7921else
7922 if test -n "$RUNTEST"; then
7923 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 7924else
1c710c3c
DJ
7925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7926for as_dir in $PATH
7927do
7928 IFS=$as_save_IFS
7929 test -z "$as_dir" && as_dir=.
5213506e
RW
7930 for ac_exec_ext in '' $ac_executable_extensions; do
7931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7932 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 7933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7934 break 2
7935 fi
7936done
5213506e
RW
7937 done
7938IFS=$as_save_IFS
1c710c3c 7939
2abefe3d
PB
7940fi
7941fi
1c710c3c 7942RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 7943if test -n "$RUNTEST"; then
5213506e
RW
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7945$as_echo "$RUNTEST" >&6; }
2abefe3d 7946else
5213506e
RW
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7948$as_echo "no" >&6; }
2abefe3d 7949fi
671aa708 7950
5213506e 7951
1c710c3c 7952 test -n "$RUNTEST" && break
2abefe3d
PB
7953done
7954test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 7955
2abefe3d
PB
7956case " $configdirs " in
7957 *" dejagnu "*)
c394e891 7958 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
7959 ;;
7960esac
671aa708
NN
7961
7962
671aa708 7963# Host tools.
ca9f4b81
AO
7964ncn_tool_prefix=
7965test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7966ncn_target_tool_prefix=
7967test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7968
278a7a38
AO
7969
7970
7971if test -n "$AR"; then
7972 ac_cv_prog_AR=$AR
7973elif test -n "$ac_cv_prog_AR"; then
7974 AR=$ac_cv_prog_AR
7975fi
7976
7977if test -n "$ac_cv_prog_AR"; then
7978 for ncn_progname in ar; do
7979 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7980set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
7981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7982$as_echo_n "checking for $ac_word... " >&6; }
7983if test "${ac_cv_prog_AR+set}" = set; then :
7984 $as_echo_n "(cached) " >&6
278a7a38
AO
7985else
7986 if test -n "$AR"; then
7987 ac_cv_prog_AR="$AR" # Let the user override the test.
7988else
7989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7990for as_dir in $PATH
7991do
7992 IFS=$as_save_IFS
7993 test -z "$as_dir" && as_dir=.
5213506e
RW
7994 for ac_exec_ext in '' $ac_executable_extensions; do
7995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 7996 ac_cv_prog_AR="${ncn_progname}"
5213506e 7997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
7998 break 2
7999 fi
8000done
5213506e
RW
8001 done
8002IFS=$as_save_IFS
278a7a38
AO
8003
8004fi
8005fi
8006AR=$ac_cv_prog_AR
8007if test -n "$AR"; then
5213506e
RW
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8009$as_echo "$AR" >&6; }
278a7a38 8010else
5213506e
RW
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012$as_echo "no" >&6; }
278a7a38
AO
8013fi
8014
5213506e 8015
278a7a38
AO
8016 done
8017fi
8018
8019for ncn_progname in ar; do
2693c0b0
PB
8020 if test -n "$ncn_tool_prefix"; then
8021 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8022set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8024$as_echo_n "checking for $ac_word... " >&6; }
8025if test "${ac_cv_prog_AR+set}" = set; then :
8026 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8027else
8028 if test -n "$AR"; then
8029 ac_cv_prog_AR="$AR" # Let the user override the test.
8030else
1c710c3c
DJ
8031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032for as_dir in $PATH
8033do
8034 IFS=$as_save_IFS
8035 test -z "$as_dir" && as_dir=.
5213506e
RW
8036 for ac_exec_ext in '' $ac_executable_extensions; do
8037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8038 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 8039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8040 break 2
8041 fi
8042done
5213506e
RW
8043 done
8044IFS=$as_save_IFS
1c710c3c 8045
ca9f4b81
AO
8046fi
8047fi
1c710c3c 8048AR=$ac_cv_prog_AR
ca9f4b81 8049if test -n "$AR"; then
5213506e
RW
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8051$as_echo "$AR" >&6; }
ca9f4b81 8052else
5213506e
RW
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054$as_echo "no" >&6; }
ca9f4b81
AO
8055fi
8056
5213506e 8057
2693c0b0
PB
8058 fi
8059 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8060 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8061set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8063$as_echo_n "checking for $ac_word... " >&6; }
8064if test "${ac_cv_prog_AR+set}" = set; then :
8065 $as_echo_n "(cached) " >&6
ca9f4b81 8066else
2693c0b0 8067 if test -n "$AR"; then
af71363e
AS
8068 ac_cv_prog_AR="$AR" # Let the user override the test.
8069else
1c710c3c
DJ
8070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8071for as_dir in $PATH
8072do
8073 IFS=$as_save_IFS
8074 test -z "$as_dir" && as_dir=.
5213506e
RW
8075 for ac_exec_ext in '' $ac_executable_extensions; do
8076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8077 ac_cv_prog_AR="${ncn_progname}"
5213506e 8078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8079 break 2
8080 fi
8081done
5213506e
RW
8082 done
8083IFS=$as_save_IFS
1c710c3c 8084
ca9f4b81
AO
8085fi
8086fi
1c710c3c 8087AR=$ac_cv_prog_AR
2693c0b0 8088if test -n "$AR"; then
5213506e
RW
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8090$as_echo "$AR" >&6; }
ca9f4b81 8091else
5213506e
RW
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093$as_echo "no" >&6; }
ca9f4b81 8094fi
1c710c3c 8095
5213506e 8096
2693c0b0
PB
8097 fi
8098 test -n "$ac_cv_prog_AR" && break
8099done
8100
8101if test -z "$ac_cv_prog_AR" ; then
8102 set dummy ar
8103 if test $build = $host ; then
8104 AR="$2"
ca9f4b81 8105 else
2693c0b0 8106 AR="${ncn_tool_prefix}$2"
ca9f4b81 8107 fi
ca9f4b81
AO
8108fi
8109
278a7a38
AO
8110
8111
8112if test -n "$AS"; then
8113 ac_cv_prog_AS=$AS
8114elif test -n "$ac_cv_prog_AS"; then
8115 AS=$ac_cv_prog_AS
8116fi
8117
8118if test -n "$ac_cv_prog_AS"; then
8119 for ncn_progname in as; do
8120 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8121set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8123$as_echo_n "checking for $ac_word... " >&6; }
8124if test "${ac_cv_prog_AS+set}" = set; then :
8125 $as_echo_n "(cached) " >&6
278a7a38
AO
8126else
8127 if test -n "$AS"; then
8128 ac_cv_prog_AS="$AS" # Let the user override the test.
8129else
8130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8131for as_dir in $PATH
8132do
8133 IFS=$as_save_IFS
8134 test -z "$as_dir" && as_dir=.
5213506e
RW
8135 for ac_exec_ext in '' $ac_executable_extensions; do
8136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8137 ac_cv_prog_AS="${ncn_progname}"
5213506e 8138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8139 break 2
8140 fi
8141done
5213506e
RW
8142 done
8143IFS=$as_save_IFS
278a7a38
AO
8144
8145fi
8146fi
8147AS=$ac_cv_prog_AS
8148if test -n "$AS"; then
5213506e
RW
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8150$as_echo "$AS" >&6; }
278a7a38 8151else
5213506e
RW
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8153$as_echo "no" >&6; }
278a7a38
AO
8154fi
8155
5213506e 8156
278a7a38
AO
8157 done
8158fi
8159
8160for ncn_progname in as; do
2693c0b0
PB
8161 if test -n "$ncn_tool_prefix"; then
8162 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8163set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8165$as_echo_n "checking for $ac_word... " >&6; }
8166if test "${ac_cv_prog_AS+set}" = set; then :
8167 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8168else
8169 if test -n "$AS"; then
8170 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 8171else
1c710c3c
DJ
8172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8173for as_dir in $PATH
8174do
8175 IFS=$as_save_IFS
8176 test -z "$as_dir" && as_dir=.
5213506e
RW
8177 for ac_exec_ext in '' $ac_executable_extensions; do
8178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8179 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 8180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8181 break 2
8182 fi
8183done
5213506e
RW
8184 done
8185IFS=$as_save_IFS
1c710c3c 8186
ca9f4b81
AO
8187fi
8188fi
1c710c3c 8189AS=$ac_cv_prog_AS
ca9f4b81 8190if test -n "$AS"; then
5213506e
RW
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8192$as_echo "$AS" >&6; }
ca9f4b81 8193else
5213506e
RW
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8195$as_echo "no" >&6; }
ca9f4b81
AO
8196fi
8197
5213506e 8198
2693c0b0
PB
8199 fi
8200 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8201 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8202set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8204$as_echo_n "checking for $ac_word... " >&6; }
8205if test "${ac_cv_prog_AS+set}" = set; then :
8206 $as_echo_n "(cached) " >&6
ca9f4b81 8207else
2693c0b0
PB
8208 if test -n "$AS"; then
8209 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 8210else
1c710c3c
DJ
8211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8212for as_dir in $PATH
8213do
8214 IFS=$as_save_IFS
8215 test -z "$as_dir" && as_dir=.
5213506e
RW
8216 for ac_exec_ext in '' $ac_executable_extensions; do
8217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8218 ac_cv_prog_AS="${ncn_progname}"
5213506e 8219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8220 break 2
8221 fi
8222done
5213506e
RW
8223 done
8224IFS=$as_save_IFS
1c710c3c 8225
ca9f4b81
AO
8226fi
8227fi
1c710c3c 8228AS=$ac_cv_prog_AS
2693c0b0 8229if test -n "$AS"; then
5213506e
RW
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8231$as_echo "$AS" >&6; }
ca9f4b81 8232else
5213506e
RW
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8234$as_echo "no" >&6; }
ca9f4b81 8235fi
1c710c3c 8236
5213506e 8237
2693c0b0
PB
8238 fi
8239 test -n "$ac_cv_prog_AS" && break
8240done
8241
8242if test -z "$ac_cv_prog_AS" ; then
8243 set dummy as
8244 if test $build = $host ; then
8245 AS="$2"
ca9f4b81 8246 else
2693c0b0 8247 AS="${ncn_tool_prefix}$2"
ca9f4b81 8248 fi
ca9f4b81
AO
8249fi
8250
278a7a38
AO
8251
8252
8253if test -n "$DLLTOOL"; then
8254 ac_cv_prog_DLLTOOL=$DLLTOOL
8255elif test -n "$ac_cv_prog_DLLTOOL"; then
8256 DLLTOOL=$ac_cv_prog_DLLTOOL
8257fi
8258
8259if test -n "$ac_cv_prog_DLLTOOL"; then
8260 for ncn_progname in dlltool; do
8261 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8262set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8264$as_echo_n "checking for $ac_word... " >&6; }
8265if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8266 $as_echo_n "(cached) " >&6
278a7a38
AO
8267else
8268 if test -n "$DLLTOOL"; then
8269 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8270else
8271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272for as_dir in $PATH
8273do
8274 IFS=$as_save_IFS
8275 test -z "$as_dir" && as_dir=.
5213506e
RW
8276 for ac_exec_ext in '' $ac_executable_extensions; do
8277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8278 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8280 break 2
8281 fi
8282done
5213506e
RW
8283 done
8284IFS=$as_save_IFS
278a7a38
AO
8285
8286fi
8287fi
8288DLLTOOL=$ac_cv_prog_DLLTOOL
8289if test -n "$DLLTOOL"; then
5213506e
RW
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8291$as_echo "$DLLTOOL" >&6; }
278a7a38 8292else
5213506e
RW
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294$as_echo "no" >&6; }
278a7a38
AO
8295fi
8296
5213506e 8297
278a7a38
AO
8298 done
8299fi
8300
8301for ncn_progname in dlltool; do
2693c0b0
PB
8302 if test -n "$ncn_tool_prefix"; then
8303 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8304set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8306$as_echo_n "checking for $ac_word... " >&6; }
8307if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8308 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8309else
8310 if test -n "$DLLTOOL"; then
8311 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8312else
1c710c3c
DJ
8313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8314for as_dir in $PATH
8315do
8316 IFS=$as_save_IFS
8317 test -z "$as_dir" && as_dir=.
5213506e
RW
8318 for ac_exec_ext in '' $ac_executable_extensions; do
8319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8320 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8322 break 2
8323 fi
8324done
5213506e
RW
8325 done
8326IFS=$as_save_IFS
1c710c3c 8327
ca9f4b81
AO
8328fi
8329fi
1c710c3c 8330DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8331if test -n "$DLLTOOL"; then
5213506e
RW
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8333$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8334else
5213506e
RW
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8336$as_echo "no" >&6; }
ca9f4b81
AO
8337fi
8338
5213506e 8339
2693c0b0
PB
8340 fi
8341 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8342 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8343set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8345$as_echo_n "checking for $ac_word... " >&6; }
8346if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8347 $as_echo_n "(cached) " >&6
ca9f4b81 8348else
2693c0b0
PB
8349 if test -n "$DLLTOOL"; then
8350 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8351else
1c710c3c
DJ
8352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353for as_dir in $PATH
8354do
8355 IFS=$as_save_IFS
8356 test -z "$as_dir" && as_dir=.
5213506e
RW
8357 for ac_exec_ext in '' $ac_executable_extensions; do
8358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8359 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8361 break 2
8362 fi
8363done
5213506e
RW
8364 done
8365IFS=$as_save_IFS
1c710c3c 8366
ca9f4b81
AO
8367fi
8368fi
1c710c3c 8369DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8370if test -n "$DLLTOOL"; then
5213506e
RW
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8372$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8373else
5213506e
RW
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8375$as_echo "no" >&6; }
ca9f4b81 8376fi
1c710c3c 8377
5213506e 8378
2693c0b0
PB
8379 fi
8380 test -n "$ac_cv_prog_DLLTOOL" && break
8381done
8382
8383if test -z "$ac_cv_prog_DLLTOOL" ; then
8384 set dummy dlltool
8385 if test $build = $host ; then
8386 DLLTOOL="$2"
ca9f4b81 8387 else
2693c0b0 8388 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8389 fi
ca9f4b81
AO
8390fi
8391
278a7a38
AO
8392
8393
8394if test -n "$LD"; then
8395 ac_cv_prog_LD=$LD
8396elif test -n "$ac_cv_prog_LD"; then
8397 LD=$ac_cv_prog_LD
8398fi
8399
8400if test -n "$ac_cv_prog_LD"; then
8401 for ncn_progname in ld; do
8402 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8403set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8405$as_echo_n "checking for $ac_word... " >&6; }
8406if test "${ac_cv_prog_LD+set}" = set; then :
8407 $as_echo_n "(cached) " >&6
278a7a38
AO
8408else
8409 if test -n "$LD"; then
8410 ac_cv_prog_LD="$LD" # Let the user override the test.
8411else
8412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8413for as_dir in $PATH
8414do
8415 IFS=$as_save_IFS
8416 test -z "$as_dir" && as_dir=.
5213506e
RW
8417 for ac_exec_ext in '' $ac_executable_extensions; do
8418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8419 ac_cv_prog_LD="${ncn_progname}"
5213506e 8420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8421 break 2
8422 fi
8423done
5213506e
RW
8424 done
8425IFS=$as_save_IFS
278a7a38
AO
8426
8427fi
8428fi
8429LD=$ac_cv_prog_LD
8430if test -n "$LD"; then
5213506e
RW
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8432$as_echo "$LD" >&6; }
278a7a38 8433else
5213506e
RW
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435$as_echo "no" >&6; }
278a7a38
AO
8436fi
8437
5213506e 8438
278a7a38
AO
8439 done
8440fi
8441
8442for ncn_progname in ld; do
2693c0b0
PB
8443 if test -n "$ncn_tool_prefix"; then
8444 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8445set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8447$as_echo_n "checking for $ac_word... " >&6; }
8448if test "${ac_cv_prog_LD+set}" = set; then :
8449 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8450else
8451 if test -n "$LD"; then
8452 ac_cv_prog_LD="$LD" # Let the user override the test.
8453else
1c710c3c
DJ
8454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8455for as_dir in $PATH
8456do
8457 IFS=$as_save_IFS
8458 test -z "$as_dir" && as_dir=.
5213506e
RW
8459 for ac_exec_ext in '' $ac_executable_extensions; do
8460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8461 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 8462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8463 break 2
8464 fi
8465done
5213506e
RW
8466 done
8467IFS=$as_save_IFS
1c710c3c 8468
ca9f4b81
AO
8469fi
8470fi
1c710c3c 8471LD=$ac_cv_prog_LD
ca9f4b81 8472if test -n "$LD"; then
5213506e
RW
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8474$as_echo "$LD" >&6; }
ca9f4b81 8475else
5213506e
RW
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8477$as_echo "no" >&6; }
ca9f4b81
AO
8478fi
8479
5213506e 8480
2693c0b0
PB
8481 fi
8482 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8483 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8484set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8486$as_echo_n "checking for $ac_word... " >&6; }
8487if test "${ac_cv_prog_LD+set}" = set; then :
8488 $as_echo_n "(cached) " >&6
ca9f4b81 8489else
2693c0b0
PB
8490 if test -n "$LD"; then
8491 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 8492else
1c710c3c
DJ
8493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8494for as_dir in $PATH
8495do
8496 IFS=$as_save_IFS
8497 test -z "$as_dir" && as_dir=.
5213506e
RW
8498 for ac_exec_ext in '' $ac_executable_extensions; do
8499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8500 ac_cv_prog_LD="${ncn_progname}"
5213506e 8501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8502 break 2
8503 fi
8504done
5213506e
RW
8505 done
8506IFS=$as_save_IFS
1c710c3c 8507
ca9f4b81
AO
8508fi
8509fi
1c710c3c 8510LD=$ac_cv_prog_LD
2693c0b0 8511if test -n "$LD"; then
5213506e
RW
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8513$as_echo "$LD" >&6; }
ca9f4b81 8514else
5213506e
RW
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8516$as_echo "no" >&6; }
ca9f4b81 8517fi
1c710c3c 8518
5213506e 8519
2693c0b0
PB
8520 fi
8521 test -n "$ac_cv_prog_LD" && break
8522done
8523
8524if test -z "$ac_cv_prog_LD" ; then
8525 set dummy ld
8526 if test $build = $host ; then
8527 LD="$2"
ca9f4b81 8528 else
2693c0b0 8529 LD="${ncn_tool_prefix}$2"
ca9f4b81 8530 fi
ca9f4b81
AO
8531fi
8532
278a7a38
AO
8533
8534
8535if test -n "$LIPO"; then
8536 ac_cv_prog_LIPO=$LIPO
8537elif test -n "$ac_cv_prog_LIPO"; then
8538 LIPO=$ac_cv_prog_LIPO
8539fi
8540
8541if test -n "$ac_cv_prog_LIPO"; then
8542 for ncn_progname in lipo; do
8543 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8544set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8546$as_echo_n "checking for $ac_word... " >&6; }
8547if test "${ac_cv_prog_LIPO+set}" = set; then :
8548 $as_echo_n "(cached) " >&6
278a7a38
AO
8549else
8550 if test -n "$LIPO"; then
8551 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8552else
8553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8554for as_dir in $PATH
8555do
8556 IFS=$as_save_IFS
8557 test -z "$as_dir" && as_dir=.
5213506e
RW
8558 for ac_exec_ext in '' $ac_executable_extensions; do
8559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8560 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8562 break 2
8563 fi
8564done
5213506e
RW
8565 done
8566IFS=$as_save_IFS
278a7a38
AO
8567
8568fi
8569fi
8570LIPO=$ac_cv_prog_LIPO
8571if test -n "$LIPO"; then
5213506e
RW
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8573$as_echo "$LIPO" >&6; }
278a7a38 8574else
5213506e
RW
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8576$as_echo "no" >&6; }
278a7a38
AO
8577fi
8578
5213506e 8579
278a7a38
AO
8580 done
8581fi
8582
8583for ncn_progname in lipo; do
2abefe3d
PB
8584 if test -n "$ncn_tool_prefix"; then
8585 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8586set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8588$as_echo_n "checking for $ac_word... " >&6; }
8589if test "${ac_cv_prog_LIPO+set}" = set; then :
8590 $as_echo_n "(cached) " >&6
2abefe3d
PB
8591else
8592 if test -n "$LIPO"; then
8593 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8594else
1c710c3c
DJ
8595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8596for as_dir in $PATH
8597do
8598 IFS=$as_save_IFS
8599 test -z "$as_dir" && as_dir=.
5213506e
RW
8600 for ac_exec_ext in '' $ac_executable_extensions; do
8601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8602 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 8603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8604 break 2
8605 fi
8606done
5213506e
RW
8607 done
8608IFS=$as_save_IFS
1c710c3c 8609
2abefe3d
PB
8610fi
8611fi
1c710c3c 8612LIPO=$ac_cv_prog_LIPO
2abefe3d 8613if test -n "$LIPO"; then
5213506e
RW
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8615$as_echo "$LIPO" >&6; }
2abefe3d 8616else
5213506e
RW
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8618$as_echo "no" >&6; }
2abefe3d
PB
8619fi
8620
5213506e 8621
2abefe3d
PB
8622 fi
8623 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8624 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8625set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8627$as_echo_n "checking for $ac_word... " >&6; }
8628if test "${ac_cv_prog_LIPO+set}" = set; then :
8629 $as_echo_n "(cached) " >&6
2abefe3d
PB
8630else
8631 if test -n "$LIPO"; then
8632 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8633else
1c710c3c
DJ
8634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8635for as_dir in $PATH
8636do
8637 IFS=$as_save_IFS
8638 test -z "$as_dir" && as_dir=.
5213506e
RW
8639 for ac_exec_ext in '' $ac_executable_extensions; do
8640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8641 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8643 break 2
8644 fi
8645done
5213506e
RW
8646 done
8647IFS=$as_save_IFS
1c710c3c 8648
2abefe3d
PB
8649fi
8650fi
1c710c3c 8651LIPO=$ac_cv_prog_LIPO
2abefe3d 8652if test -n "$LIPO"; then
5213506e
RW
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8654$as_echo "$LIPO" >&6; }
2abefe3d 8655else
5213506e
RW
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8657$as_echo "no" >&6; }
2abefe3d 8658fi
1c710c3c 8659
5213506e 8660
2abefe3d
PB
8661 fi
8662 test -n "$ac_cv_prog_LIPO" && break
8663done
8664
8665if test -z "$ac_cv_prog_LIPO" ; then
8666 set dummy lipo
8667 if test $build = $host ; then
8668 LIPO="$2"
8669 else
8670 LIPO="${ncn_tool_prefix}$2"
8671 fi
8672fi
8673
278a7a38
AO
8674
8675
8676if test -n "$NM"; then
8677 ac_cv_prog_NM=$NM
8678elif test -n "$ac_cv_prog_NM"; then
8679 NM=$ac_cv_prog_NM
8680fi
8681
8682if test -n "$ac_cv_prog_NM"; then
8683 for ncn_progname in nm; do
8684 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8685set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8687$as_echo_n "checking for $ac_word... " >&6; }
8688if test "${ac_cv_prog_NM+set}" = set; then :
8689 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8690else
8691 if test -n "$NM"; then
8692 ac_cv_prog_NM="$NM" # Let the user override the test.
8693else
1c710c3c
DJ
8694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8695for as_dir in $PATH
8696do
8697 IFS=$as_save_IFS
8698 test -z "$as_dir" && as_dir=.
5213506e
RW
8699 for ac_exec_ext in '' $ac_executable_extensions; do
8700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8701 ac_cv_prog_NM="${ncn_progname}"
5213506e 8702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8703 break 2
8704 fi
8705done
5213506e
RW
8706 done
8707IFS=$as_save_IFS
1c710c3c 8708
ca9f4b81
AO
8709fi
8710fi
1c710c3c 8711NM=$ac_cv_prog_NM
ca9f4b81 8712if test -n "$NM"; then
5213506e
RW
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8714$as_echo "$NM" >&6; }
ca9f4b81 8715else
5213506e
RW
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8717$as_echo "no" >&6; }
ca9f4b81
AO
8718fi
8719
5213506e 8720
278a7a38
AO
8721 done
8722fi
8723
8724for ncn_progname in nm; do
8725 if test -n "$ncn_tool_prefix"; then
8726 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8727set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8729$as_echo_n "checking for $ac_word... " >&6; }
8730if test "${ac_cv_prog_NM+set}" = set; then :
8731 $as_echo_n "(cached) " >&6
ca9f4b81 8732else
2693c0b0
PB
8733 if test -n "$NM"; then
8734 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 8735else
1c710c3c
DJ
8736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8737for as_dir in $PATH
8738do
8739 IFS=$as_save_IFS
8740 test -z "$as_dir" && as_dir=.
5213506e
RW
8741 for ac_exec_ext in '' $ac_executable_extensions; do
8742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8743 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 8744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8745 break 2
8746 fi
8747done
5213506e
RW
8748 done
8749IFS=$as_save_IFS
1c710c3c 8750
ca9f4b81
AO
8751fi
8752fi
1c710c3c 8753NM=$ac_cv_prog_NM
2693c0b0 8754if test -n "$NM"; then
5213506e
RW
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8756$as_echo "$NM" >&6; }
ca9f4b81 8757else
5213506e
RW
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8759$as_echo "no" >&6; }
ca9f4b81 8760fi
1c710c3c 8761
5213506e 8762
2693c0b0 8763 fi
278a7a38
AO
8764 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8765 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8766set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8768$as_echo_n "checking for $ac_word... " >&6; }
8769if test "${ac_cv_prog_NM+set}" = set; then :
8770 $as_echo_n "(cached) " >&6
278a7a38
AO
8771else
8772 if test -n "$NM"; then
8773 ac_cv_prog_NM="$NM" # Let the user override the test.
8774else
8775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8776for as_dir in $PATH
8777do
8778 IFS=$as_save_IFS
8779 test -z "$as_dir" && as_dir=.
5213506e
RW
8780 for ac_exec_ext in '' $ac_executable_extensions; do
8781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8782 ac_cv_prog_NM="${ncn_progname}"
5213506e 8783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8784 break 2
8785 fi
8786done
5213506e
RW
8787 done
8788IFS=$as_save_IFS
278a7a38
AO
8789
8790fi
8791fi
8792NM=$ac_cv_prog_NM
8793if test -n "$NM"; then
5213506e
RW
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8795$as_echo "$NM" >&6; }
278a7a38 8796else
5213506e
RW
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8798$as_echo "no" >&6; }
278a7a38
AO
8799fi
8800
5213506e 8801
278a7a38
AO
8802 fi
8803 test -n "$ac_cv_prog_NM" && break
8804done
8805
8806if test -z "$ac_cv_prog_NM" ; then
8807 set dummy nm
8808 if test $build = $host ; then
8809 NM="$2"
8810 else
8811 NM="${ncn_tool_prefix}$2"
8812 fi
8813fi
8814
8815
8816
8817if test -n "$RANLIB"; then
8818 ac_cv_prog_RANLIB=$RANLIB
8819elif test -n "$ac_cv_prog_RANLIB"; then
8820 RANLIB=$ac_cv_prog_RANLIB
8821fi
8822
8823if test -n "$ac_cv_prog_RANLIB"; then
8824 for ncn_progname in ranlib; do
8825 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8826set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8828$as_echo_n "checking for $ac_word... " >&6; }
8829if test "${ac_cv_prog_RANLIB+set}" = set; then :
8830 $as_echo_n "(cached) " >&6
278a7a38
AO
8831else
8832 if test -n "$RANLIB"; then
8833 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8834else
8835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8836for as_dir in $PATH
8837do
8838 IFS=$as_save_IFS
8839 test -z "$as_dir" && as_dir=.
5213506e
RW
8840 for ac_exec_ext in '' $ac_executable_extensions; do
8841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8842 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8844 break 2
8845 fi
8846done
5213506e
RW
8847 done
8848IFS=$as_save_IFS
278a7a38
AO
8849
8850fi
8851fi
8852RANLIB=$ac_cv_prog_RANLIB
8853if test -n "$RANLIB"; then
5213506e
RW
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8855$as_echo "$RANLIB" >&6; }
278a7a38 8856else
5213506e
RW
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8858$as_echo "no" >&6; }
278a7a38
AO
8859fi
8860
5213506e 8861
278a7a38
AO
8862 done
8863fi
ca9f4b81 8864
278a7a38 8865for ncn_progname in ranlib; do
2693c0b0
PB
8866 if test -n "$ncn_tool_prefix"; then
8867 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8868set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8870$as_echo_n "checking for $ac_word... " >&6; }
8871if test "${ac_cv_prog_RANLIB+set}" = set; then :
8872 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8873else
8874 if test -n "$RANLIB"; then
8875 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8876else
1c710c3c
DJ
8877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8878for as_dir in $PATH
8879do
8880 IFS=$as_save_IFS
8881 test -z "$as_dir" && as_dir=.
5213506e
RW
8882 for ac_exec_ext in '' $ac_executable_extensions; do
8883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8884 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 8885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8886 break 2
8887 fi
8888done
5213506e
RW
8889 done
8890IFS=$as_save_IFS
1c710c3c 8891
ca9f4b81
AO
8892fi
8893fi
1c710c3c 8894RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 8895if test -n "$RANLIB"; then
5213506e
RW
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8897$as_echo "$RANLIB" >&6; }
ca9f4b81 8898else
5213506e
RW
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8900$as_echo "no" >&6; }
ca9f4b81
AO
8901fi
8902
5213506e 8903
2693c0b0
PB
8904 fi
8905 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8906 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8907set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8909$as_echo_n "checking for $ac_word... " >&6; }
8910if test "${ac_cv_prog_RANLIB+set}" = set; then :
8911 $as_echo_n "(cached) " >&6
ca9f4b81 8912else
2693c0b0
PB
8913 if test -n "$RANLIB"; then
8914 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 8915else
1c710c3c
DJ
8916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8917for as_dir in $PATH
8918do
8919 IFS=$as_save_IFS
8920 test -z "$as_dir" && as_dir=.
5213506e
RW
8921 for ac_exec_ext in '' $ac_executable_extensions; do
8922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8923 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8925 break 2
8926 fi
8927done
5213506e
RW
8928 done
8929IFS=$as_save_IFS
1c710c3c 8930
ca9f4b81
AO
8931fi
8932fi
1c710c3c 8933RANLIB=$ac_cv_prog_RANLIB
2693c0b0 8934if test -n "$RANLIB"; then
5213506e
RW
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8936$as_echo "$RANLIB" >&6; }
ca9f4b81 8937else
5213506e
RW
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8939$as_echo "no" >&6; }
ca9f4b81 8940fi
1c710c3c 8941
5213506e 8942
ca9f4b81 8943 fi
2693c0b0
PB
8944 test -n "$ac_cv_prog_RANLIB" && break
8945done
8946
8947if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 8948 RANLIB="true"
ca9f4b81
AO
8949fi
8950
278a7a38
AO
8951
8952
8953if test -n "$STRIP"; then
8954 ac_cv_prog_STRIP=$STRIP
8955elif test -n "$ac_cv_prog_STRIP"; then
8956 STRIP=$ac_cv_prog_STRIP
8957fi
8958
8959if test -n "$ac_cv_prog_STRIP"; then
8960 for ncn_progname in strip; do
8961 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8962set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8964$as_echo_n "checking for $ac_word... " >&6; }
8965if test "${ac_cv_prog_STRIP+set}" = set; then :
8966 $as_echo_n "(cached) " >&6
278a7a38
AO
8967else
8968 if test -n "$STRIP"; then
8969 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8970else
8971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8972for as_dir in $PATH
8973do
8974 IFS=$as_save_IFS
8975 test -z "$as_dir" && as_dir=.
5213506e
RW
8976 for ac_exec_ext in '' $ac_executable_extensions; do
8977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8978 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 8979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8980 break 2
8981 fi
8982done
5213506e
RW
8983 done
8984IFS=$as_save_IFS
278a7a38
AO
8985
8986fi
8987fi
8988STRIP=$ac_cv_prog_STRIP
8989if test -n "$STRIP"; then
5213506e
RW
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8991$as_echo "$STRIP" >&6; }
278a7a38 8992else
5213506e
RW
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8994$as_echo "no" >&6; }
278a7a38
AO
8995fi
8996
5213506e 8997
278a7a38
AO
8998 done
8999fi
9000
9001for ncn_progname in strip; do
2abefe3d
PB
9002 if test -n "$ncn_tool_prefix"; then
9003 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9004set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9006$as_echo_n "checking for $ac_word... " >&6; }
9007if test "${ac_cv_prog_STRIP+set}" = set; then :
9008 $as_echo_n "(cached) " >&6
2abefe3d
PB
9009else
9010 if test -n "$STRIP"; then
9011 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9012else
1c710c3c
DJ
9013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9014for as_dir in $PATH
9015do
9016 IFS=$as_save_IFS
9017 test -z "$as_dir" && as_dir=.
5213506e
RW
9018 for ac_exec_ext in '' $ac_executable_extensions; do
9019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9020 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9022 break 2
9023 fi
9024done
5213506e
RW
9025 done
9026IFS=$as_save_IFS
1c710c3c 9027
2abefe3d
PB
9028fi
9029fi
1c710c3c 9030STRIP=$ac_cv_prog_STRIP
2abefe3d 9031if test -n "$STRIP"; then
5213506e
RW
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9033$as_echo "$STRIP" >&6; }
2abefe3d 9034else
5213506e
RW
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9036$as_echo "no" >&6; }
2abefe3d
PB
9037fi
9038
5213506e 9039
2abefe3d
PB
9040 fi
9041 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9042 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9043set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9045$as_echo_n "checking for $ac_word... " >&6; }
9046if test "${ac_cv_prog_STRIP+set}" = set; then :
9047 $as_echo_n "(cached) " >&6
2abefe3d
PB
9048else
9049 if test -n "$STRIP"; then
9050 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9051else
1c710c3c
DJ
9052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9053for as_dir in $PATH
9054do
9055 IFS=$as_save_IFS
9056 test -z "$as_dir" && as_dir=.
5213506e
RW
9057 for ac_exec_ext in '' $ac_executable_extensions; do
9058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9059 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9061 break 2
9062 fi
9063done
5213506e
RW
9064 done
9065IFS=$as_save_IFS
1c710c3c 9066
2abefe3d
PB
9067fi
9068fi
1c710c3c 9069STRIP=$ac_cv_prog_STRIP
2abefe3d 9070if test -n "$STRIP"; then
5213506e
RW
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9072$as_echo "$STRIP" >&6; }
2abefe3d 9073else
5213506e
RW
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9075$as_echo "no" >&6; }
2abefe3d 9076fi
1c710c3c 9077
5213506e 9078
2abefe3d
PB
9079 fi
9080 test -n "$ac_cv_prog_STRIP" && break
9081done
9082
9083if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 9084 STRIP="true"
2abefe3d
PB
9085fi
9086
278a7a38
AO
9087
9088
9089if test -n "$WINDRES"; then
9090 ac_cv_prog_WINDRES=$WINDRES
9091elif test -n "$ac_cv_prog_WINDRES"; then
9092 WINDRES=$ac_cv_prog_WINDRES
9093fi
9094
9095if test -n "$ac_cv_prog_WINDRES"; then
9096 for ncn_progname in windres; do
9097 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9098set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9100$as_echo_n "checking for $ac_word... " >&6; }
9101if test "${ac_cv_prog_WINDRES+set}" = set; then :
9102 $as_echo_n "(cached) " >&6
278a7a38
AO
9103else
9104 if test -n "$WINDRES"; then
9105 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9106else
9107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9108for as_dir in $PATH
9109do
9110 IFS=$as_save_IFS
9111 test -z "$as_dir" && as_dir=.
5213506e
RW
9112 for ac_exec_ext in '' $ac_executable_extensions; do
9113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9114 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9116 break 2
9117 fi
9118done
5213506e
RW
9119 done
9120IFS=$as_save_IFS
278a7a38
AO
9121
9122fi
9123fi
9124WINDRES=$ac_cv_prog_WINDRES
9125if test -n "$WINDRES"; then
5213506e
RW
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9127$as_echo "$WINDRES" >&6; }
278a7a38 9128else
5213506e
RW
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9130$as_echo "no" >&6; }
278a7a38
AO
9131fi
9132
5213506e 9133
278a7a38
AO
9134 done
9135fi
9136
9137for ncn_progname in windres; do
2693c0b0
PB
9138 if test -n "$ncn_tool_prefix"; then
9139 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9140set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9142$as_echo_n "checking for $ac_word... " >&6; }
9143if test "${ac_cv_prog_WINDRES+set}" = set; then :
9144 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9145else
9146 if test -n "$WINDRES"; then
9147 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9148else
1c710c3c
DJ
9149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9150for as_dir in $PATH
9151do
9152 IFS=$as_save_IFS
9153 test -z "$as_dir" && as_dir=.
5213506e
RW
9154 for ac_exec_ext in '' $ac_executable_extensions; do
9155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9156 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 9157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9158 break 2
9159 fi
9160done
5213506e
RW
9161 done
9162IFS=$as_save_IFS
1c710c3c 9163
ca9f4b81
AO
9164fi
9165fi
1c710c3c 9166WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 9167if test -n "$WINDRES"; then
5213506e
RW
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9169$as_echo "$WINDRES" >&6; }
ca9f4b81 9170else
5213506e
RW
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9172$as_echo "no" >&6; }
ca9f4b81
AO
9173fi
9174
5213506e 9175
2693c0b0
PB
9176 fi
9177 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9178 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9179set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9181$as_echo_n "checking for $ac_word... " >&6; }
9182if test "${ac_cv_prog_WINDRES+set}" = set; then :
9183 $as_echo_n "(cached) " >&6
ca9f4b81 9184else
2693c0b0
PB
9185 if test -n "$WINDRES"; then
9186 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 9187else
1c710c3c
DJ
9188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9189for as_dir in $PATH
9190do
9191 IFS=$as_save_IFS
9192 test -z "$as_dir" && as_dir=.
5213506e
RW
9193 for ac_exec_ext in '' $ac_executable_extensions; do
9194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9195 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9197 break 2
9198 fi
9199done
5213506e
RW
9200 done
9201IFS=$as_save_IFS
1c710c3c 9202
ca9f4b81
AO
9203fi
9204fi
1c710c3c 9205WINDRES=$ac_cv_prog_WINDRES
2693c0b0 9206if test -n "$WINDRES"; then
5213506e
RW
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9208$as_echo "$WINDRES" >&6; }
ca9f4b81 9209else
5213506e
RW
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9211$as_echo "no" >&6; }
ca9f4b81 9212fi
1c710c3c 9213
5213506e 9214
2693c0b0
PB
9215 fi
9216 test -n "$ac_cv_prog_WINDRES" && break
9217done
9218
9219if test -z "$ac_cv_prog_WINDRES" ; then
9220 set dummy windres
9221 if test $build = $host ; then
9222 WINDRES="$2"
ca9f4b81 9223 else
2693c0b0 9224 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9225 fi
ca9f4b81
AO
9226fi
9227
278a7a38
AO
9228
9229
901119ae
KT
9230if test -n "$WINDMC"; then
9231 ac_cv_prog_WINDMC=$WINDMC
9232elif test -n "$ac_cv_prog_WINDMC"; then
9233 WINDMC=$ac_cv_prog_WINDMC
9234fi
9235
9236if test -n "$ac_cv_prog_WINDMC"; then
9237 for ncn_progname in windmc; do
9238 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9239set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9241$as_echo_n "checking for $ac_word... " >&6; }
9242if test "${ac_cv_prog_WINDMC+set}" = set; then :
9243 $as_echo_n "(cached) " >&6
901119ae
KT
9244else
9245 if test -n "$WINDMC"; then
9246 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9247else
9248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9249for as_dir in $PATH
9250do
9251 IFS=$as_save_IFS
9252 test -z "$as_dir" && as_dir=.
5213506e
RW
9253 for ac_exec_ext in '' $ac_executable_extensions; do
9254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9255 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9257 break 2
9258 fi
9259done
5213506e
RW
9260 done
9261IFS=$as_save_IFS
901119ae
KT
9262
9263fi
9264fi
9265WINDMC=$ac_cv_prog_WINDMC
9266if test -n "$WINDMC"; then
5213506e
RW
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9268$as_echo "$WINDMC" >&6; }
901119ae 9269else
5213506e
RW
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9271$as_echo "no" >&6; }
901119ae
KT
9272fi
9273
5213506e 9274
901119ae
KT
9275 done
9276fi
9277
9278for ncn_progname in windmc; do
9279 if test -n "$ncn_tool_prefix"; then
9280 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9281set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9283$as_echo_n "checking for $ac_word... " >&6; }
9284if test "${ac_cv_prog_WINDMC+set}" = set; then :
9285 $as_echo_n "(cached) " >&6
901119ae
KT
9286else
9287 if test -n "$WINDMC"; then
9288 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9289else
9290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9291for as_dir in $PATH
9292do
9293 IFS=$as_save_IFS
9294 test -z "$as_dir" && as_dir=.
5213506e
RW
9295 for ac_exec_ext in '' $ac_executable_extensions; do
9296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9297 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9299 break 2
9300 fi
9301done
5213506e
RW
9302 done
9303IFS=$as_save_IFS
901119ae
KT
9304
9305fi
9306fi
9307WINDMC=$ac_cv_prog_WINDMC
9308if test -n "$WINDMC"; then
5213506e
RW
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9310$as_echo "$WINDMC" >&6; }
901119ae 9311else
5213506e
RW
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9313$as_echo "no" >&6; }
901119ae
KT
9314fi
9315
5213506e 9316
901119ae
KT
9317 fi
9318 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9319 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9320set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9322$as_echo_n "checking for $ac_word... " >&6; }
9323if test "${ac_cv_prog_WINDMC+set}" = set; then :
9324 $as_echo_n "(cached) " >&6
901119ae
KT
9325else
9326 if test -n "$WINDMC"; then
9327 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9328else
9329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9330for as_dir in $PATH
9331do
9332 IFS=$as_save_IFS
9333 test -z "$as_dir" && as_dir=.
5213506e
RW
9334 for ac_exec_ext in '' $ac_executable_extensions; do
9335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9336 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9338 break 2
9339 fi
9340done
5213506e
RW
9341 done
9342IFS=$as_save_IFS
901119ae
KT
9343
9344fi
9345fi
9346WINDMC=$ac_cv_prog_WINDMC
9347if test -n "$WINDMC"; then
5213506e
RW
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9349$as_echo "$WINDMC" >&6; }
901119ae 9350else
5213506e
RW
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9352$as_echo "no" >&6; }
901119ae
KT
9353fi
9354
5213506e 9355
901119ae
KT
9356 fi
9357 test -n "$ac_cv_prog_WINDMC" && break
9358done
9359
9360if test -z "$ac_cv_prog_WINDMC" ; then
9361 set dummy windmc
9362 if test $build = $host ; then
9363 WINDMC="$2"
9364 else
9365 WINDMC="${ncn_tool_prefix}$2"
9366 fi
9367fi
9368
9369
9370
278a7a38
AO
9371if test -n "$OBJCOPY"; then
9372 ac_cv_prog_OBJCOPY=$OBJCOPY
9373elif test -n "$ac_cv_prog_OBJCOPY"; then
9374 OBJCOPY=$ac_cv_prog_OBJCOPY
9375fi
9376
9377if test -n "$ac_cv_prog_OBJCOPY"; then
9378 for ncn_progname in objcopy; do
9379 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9380set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9382$as_echo_n "checking for $ac_word... " >&6; }
9383if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9384 $as_echo_n "(cached) " >&6
278a7a38
AO
9385else
9386 if test -n "$OBJCOPY"; then
9387 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9388else
9389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9390for as_dir in $PATH
9391do
9392 IFS=$as_save_IFS
9393 test -z "$as_dir" && as_dir=.
5213506e
RW
9394 for ac_exec_ext in '' $ac_executable_extensions; do
9395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9396 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9398 break 2
9399 fi
9400done
5213506e
RW
9401 done
9402IFS=$as_save_IFS
278a7a38
AO
9403
9404fi
9405fi
9406OBJCOPY=$ac_cv_prog_OBJCOPY
9407if test -n "$OBJCOPY"; then
5213506e
RW
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9409$as_echo "$OBJCOPY" >&6; }
278a7a38 9410else
5213506e
RW
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9412$as_echo "no" >&6; }
278a7a38
AO
9413fi
9414
5213506e 9415
278a7a38
AO
9416 done
9417fi
9418
9419for ncn_progname in objcopy; do
2693c0b0
PB
9420 if test -n "$ncn_tool_prefix"; then
9421 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9422set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9424$as_echo_n "checking for $ac_word... " >&6; }
9425if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9426 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9427else
9428 if test -n "$OBJCOPY"; then
9429 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9430else
1c710c3c
DJ
9431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9432for as_dir in $PATH
9433do
9434 IFS=$as_save_IFS
9435 test -z "$as_dir" && as_dir=.
5213506e
RW
9436 for ac_exec_ext in '' $ac_executable_extensions; do
9437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9438 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9440 break 2
9441 fi
9442done
5213506e
RW
9443 done
9444IFS=$as_save_IFS
1c710c3c 9445
ca9f4b81
AO
9446fi
9447fi
1c710c3c 9448OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 9449if test -n "$OBJCOPY"; then
5213506e
RW
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9451$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9452else
5213506e
RW
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9454$as_echo "no" >&6; }
ca9f4b81
AO
9455fi
9456
5213506e 9457
2693c0b0
PB
9458 fi
9459 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9460 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9461set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9463$as_echo_n "checking for $ac_word... " >&6; }
9464if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9465 $as_echo_n "(cached) " >&6
ca9f4b81 9466else
2693c0b0
PB
9467 if test -n "$OBJCOPY"; then
9468 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 9469else
1c710c3c
DJ
9470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9471for as_dir in $PATH
9472do
9473 IFS=$as_save_IFS
9474 test -z "$as_dir" && as_dir=.
5213506e
RW
9475 for ac_exec_ext in '' $ac_executable_extensions; do
9476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9477 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9479 break 2
9480 fi
9481done
5213506e
RW
9482 done
9483IFS=$as_save_IFS
1c710c3c 9484
ca9f4b81
AO
9485fi
9486fi
1c710c3c 9487OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 9488if test -n "$OBJCOPY"; then
5213506e
RW
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9490$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9491else
5213506e
RW
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9493$as_echo "no" >&6; }
ca9f4b81 9494fi
1c710c3c 9495
5213506e 9496
2693c0b0
PB
9497 fi
9498 test -n "$ac_cv_prog_OBJCOPY" && break
9499done
9500
9501if test -z "$ac_cv_prog_OBJCOPY" ; then
9502 set dummy objcopy
9503 if test $build = $host ; then
9504 OBJCOPY="$2"
ca9f4b81 9505 else
2693c0b0 9506 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 9507 fi
ca9f4b81
AO
9508fi
9509
278a7a38
AO
9510
9511
9512if test -n "$OBJDUMP"; then
9513 ac_cv_prog_OBJDUMP=$OBJDUMP
9514elif test -n "$ac_cv_prog_OBJDUMP"; then
9515 OBJDUMP=$ac_cv_prog_OBJDUMP
9516fi
9517
9518if test -n "$ac_cv_prog_OBJDUMP"; then
9519 for ncn_progname in objdump; do
9520 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9521set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9523$as_echo_n "checking for $ac_word... " >&6; }
9524if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9525 $as_echo_n "(cached) " >&6
278a7a38
AO
9526else
9527 if test -n "$OBJDUMP"; then
9528 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9529else
9530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9531for as_dir in $PATH
9532do
9533 IFS=$as_save_IFS
9534 test -z "$as_dir" && as_dir=.
5213506e
RW
9535 for ac_exec_ext in '' $ac_executable_extensions; do
9536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9537 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9539 break 2
9540 fi
9541done
5213506e
RW
9542 done
9543IFS=$as_save_IFS
278a7a38
AO
9544
9545fi
9546fi
9547OBJDUMP=$ac_cv_prog_OBJDUMP
9548if test -n "$OBJDUMP"; then
5213506e
RW
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9550$as_echo "$OBJDUMP" >&6; }
278a7a38 9551else
5213506e
RW
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9553$as_echo "no" >&6; }
278a7a38
AO
9554fi
9555
5213506e 9556
278a7a38
AO
9557 done
9558fi
9559
9560for ncn_progname in objdump; do
2693c0b0
PB
9561 if test -n "$ncn_tool_prefix"; then
9562 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9563set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9565$as_echo_n "checking for $ac_word... " >&6; }
9566if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9567 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9568else
9569 if test -n "$OBJDUMP"; then
9570 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9571else
1c710c3c
DJ
9572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9573for as_dir in $PATH
9574do
9575 IFS=$as_save_IFS
9576 test -z "$as_dir" && as_dir=.
5213506e
RW
9577 for ac_exec_ext in '' $ac_executable_extensions; do
9578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9579 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9581 break 2
9582 fi
9583done
5213506e
RW
9584 done
9585IFS=$as_save_IFS
1c710c3c 9586
ca9f4b81
AO
9587fi
9588fi
1c710c3c 9589OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 9590if test -n "$OBJDUMP"; then
5213506e
RW
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9592$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9593else
5213506e
RW
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9595$as_echo "no" >&6; }
ca9f4b81
AO
9596fi
9597
5213506e 9598
2693c0b0
PB
9599 fi
9600 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9601 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9602set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9604$as_echo_n "checking for $ac_word... " >&6; }
9605if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9606 $as_echo_n "(cached) " >&6
ca9f4b81 9607else
2693c0b0
PB
9608 if test -n "$OBJDUMP"; then
9609 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 9610else
1c710c3c
DJ
9611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9612for as_dir in $PATH
9613do
9614 IFS=$as_save_IFS
9615 test -z "$as_dir" && as_dir=.
5213506e
RW
9616 for ac_exec_ext in '' $ac_executable_extensions; do
9617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9618 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9620 break 2
9621 fi
9622done
5213506e
RW
9623 done
9624IFS=$as_save_IFS
1c710c3c 9625
ca9f4b81
AO
9626fi
9627fi
1c710c3c 9628OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 9629if test -n "$OBJDUMP"; then
5213506e
RW
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9631$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9632else
5213506e
RW
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9634$as_echo "no" >&6; }
ca9f4b81 9635fi
1c710c3c 9636
5213506e 9637
2693c0b0
PB
9638 fi
9639 test -n "$ac_cv_prog_OBJDUMP" && break
9640done
9641
9642if test -z "$ac_cv_prog_OBJDUMP" ; then
9643 set dummy objdump
9644 if test $build = $host ; then
9645 OBJDUMP="$2"
ca9f4b81 9646 else
2693c0b0 9647 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 9648 fi
ca9f4b81
AO
9649fi
9650
671aa708
NN
9651
9652
e7a82751
RM
9653if test -n "$READELF"; then
9654 ac_cv_prog_READELF=$READELF
9655elif test -n "$ac_cv_prog_READELF"; then
9656 READELF=$ac_cv_prog_READELF
9657fi
9658
9659if test -n "$ac_cv_prog_READELF"; then
9660 for ncn_progname in readelf; do
9661 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9662set dummy ${ncn_progname}; ac_word=$2
9663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9664$as_echo_n "checking for $ac_word... " >&6; }
9665if test "${ac_cv_prog_READELF+set}" = set; then :
9666 $as_echo_n "(cached) " >&6
9667else
9668 if test -n "$READELF"; then
9669 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9670else
9671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9672for as_dir in $PATH
9673do
9674 IFS=$as_save_IFS
9675 test -z "$as_dir" && as_dir=.
9676 for ac_exec_ext in '' $ac_executable_extensions; do
9677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9678 ac_cv_prog_READELF="${ncn_progname}"
9679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9680 break 2
9681 fi
9682done
9683 done
9684IFS=$as_save_IFS
9685
9686fi
9687fi
9688READELF=$ac_cv_prog_READELF
9689if test -n "$READELF"; then
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9691$as_echo "$READELF" >&6; }
9692else
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9694$as_echo "no" >&6; }
9695fi
9696
9697
9698 done
9699fi
9700
9701for ncn_progname in readelf; do
9702 if test -n "$ncn_tool_prefix"; then
9703 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9704set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9706$as_echo_n "checking for $ac_word... " >&6; }
9707if test "${ac_cv_prog_READELF+set}" = set; then :
9708 $as_echo_n "(cached) " >&6
9709else
9710 if test -n "$READELF"; then
9711 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9712else
9713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9714for as_dir in $PATH
9715do
9716 IFS=$as_save_IFS
9717 test -z "$as_dir" && as_dir=.
9718 for ac_exec_ext in '' $ac_executable_extensions; do
9719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9720 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9722 break 2
9723 fi
9724done
9725 done
9726IFS=$as_save_IFS
9727
9728fi
9729fi
9730READELF=$ac_cv_prog_READELF
9731if test -n "$READELF"; then
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9733$as_echo "$READELF" >&6; }
9734else
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9736$as_echo "no" >&6; }
9737fi
9738
9739
9740 fi
9741 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9742 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9743set dummy ${ncn_progname}; ac_word=$2
9744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9745$as_echo_n "checking for $ac_word... " >&6; }
9746if test "${ac_cv_prog_READELF+set}" = set; then :
9747 $as_echo_n "(cached) " >&6
9748else
9749 if test -n "$READELF"; then
9750 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9751else
9752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9753for as_dir in $PATH
9754do
9755 IFS=$as_save_IFS
9756 test -z "$as_dir" && as_dir=.
9757 for ac_exec_ext in '' $ac_executable_extensions; do
9758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9759 ac_cv_prog_READELF="${ncn_progname}"
9760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9761 break 2
9762 fi
9763done
9764 done
9765IFS=$as_save_IFS
9766
9767fi
9768fi
9769READELF=$ac_cv_prog_READELF
9770if test -n "$READELF"; then
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9772$as_echo "$READELF" >&6; }
9773else
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9775$as_echo "no" >&6; }
9776fi
9777
9778
9779 fi
9780 test -n "$ac_cv_prog_READELF" && break
9781done
9782
9783if test -z "$ac_cv_prog_READELF" ; then
9784 set dummy readelf
9785 if test $build = $host ; then
9786 READELF="$2"
9787 else
9788 READELF="${ncn_tool_prefix}$2"
9789 fi
9790fi
9791
9792
9793
671aa708
NN
9794
9795
9796
2abefe3d 9797# Target tools.
1c710c3c 9798
5213506e
RW
9799# Check whether --with-build-time-tools was given.
9800if test "${with_build_time_tools+set}" = set; then :
9801 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
9802 x/*) ;;
9803 *)
9804 with_build_time_tools=
5213506e
RW
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9806$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
9807 ;;
9808 esac
ca9f4b81 9809else
e8b05380 9810 with_build_time_tools=
5213506e
RW
9811fi
9812
ca9f4b81 9813
278a7a38
AO
9814
9815
9816if test -n "$CC_FOR_TARGET"; then
9817 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9818elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9819 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9820fi
9821
9822if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9823 for ncn_progname in cc gcc; do
9824 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9825set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9827$as_echo_n "checking for $ac_word... " >&6; }
9828if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9829 $as_echo_n "(cached) " >&6
278a7a38
AO
9830else
9831 if test -n "$CC_FOR_TARGET"; then
9832 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9833else
9834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9835for as_dir in $PATH
9836do
9837 IFS=$as_save_IFS
9838 test -z "$as_dir" && as_dir=.
5213506e
RW
9839 for ac_exec_ext in '' $ac_executable_extensions; do
9840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9841 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9843 break 2
9844 fi
9845done
5213506e
RW
9846 done
9847IFS=$as_save_IFS
278a7a38
AO
9848
9849fi
9850fi
9851CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9852if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9854$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 9855else
5213506e
RW
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9857$as_echo "no" >&6; }
278a7a38
AO
9858fi
9859
5213506e 9860
278a7a38
AO
9861 done
9862fi
9863
9864if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9865 for ncn_progname in cc gcc; do
5213506e
RW
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9867$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9868 if test -x $with_build_time_tools/${ncn_progname}; then
9869 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9871$as_echo "yes" >&6; }
72a7ab82 9872 break
e8b05380 9873 else
5213506e
RW
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9875$as_echo "no" >&6; }
72a7ab82
AP
9876 fi
9877 done
4de997d1
PB
9878fi
9879
e8b05380
PB
9880if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9881 for ncn_progname in cc gcc; do
9882 if test -n "$ncn_target_tool_prefix"; then
9883 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9884set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9886$as_echo_n "checking for $ac_word... " >&6; }
9887if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9888 $as_echo_n "(cached) " >&6
4de997d1
PB
9889else
9890 if test -n "$CC_FOR_TARGET"; then
9891 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9892else
1c710c3c
DJ
9893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9894for as_dir in $PATH
9895do
9896 IFS=$as_save_IFS
9897 test -z "$as_dir" && as_dir=.
5213506e
RW
9898 for ac_exec_ext in '' $ac_executable_extensions; do
9899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9900 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9902 break 2
9903 fi
9904done
5213506e
RW
9905 done
9906IFS=$as_save_IFS
1c710c3c 9907
4de997d1
PB
9908fi
9909fi
1c710c3c 9910CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 9911if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9913$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9914else
5213506e
RW
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9916$as_echo "no" >&6; }
4de997d1
PB
9917fi
9918
5213506e 9919
e8b05380
PB
9920 fi
9921 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9922 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9923set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9925$as_echo_n "checking for $ac_word... " >&6; }
9926if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9927 $as_echo_n "(cached) " >&6
4de997d1 9928else
2693c0b0
PB
9929 if test -n "$CC_FOR_TARGET"; then
9930 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 9931else
1c710c3c
DJ
9932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9933for as_dir in $PATH
9934do
9935 IFS=$as_save_IFS
9936 test -z "$as_dir" && as_dir=.
5213506e
RW
9937 for ac_exec_ext in '' $ac_executable_extensions; do
9938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9939 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9941 break 2
9942 fi
9943done
5213506e
RW
9944 done
9945IFS=$as_save_IFS
1c710c3c 9946
4de997d1
PB
9947fi
9948fi
1c710c3c 9949CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 9950if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9952$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9953else
5213506e
RW
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9955$as_echo "no" >&6; }
4de997d1 9956fi
1c710c3c 9957
5213506e 9958
e8b05380
PB
9959 fi
9960 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9961 done
9962fi
1c710c3c 9963
2693c0b0
PB
9964if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9965 set dummy cc gcc
9966 if test $build = $target ; then
9967 CC_FOR_TARGET="$2"
4de997d1 9968 else
2693c0b0 9969 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9970 fi
1c00b503
PB
9971else
9972 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
9973fi
9974
278a7a38
AO
9975
9976
9977if test -n "$CXX_FOR_TARGET"; then
9978 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9979elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9980 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9981fi
9982
9983if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9984 for ncn_progname in c++ g++ cxx gxx; do
9985 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9986set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9988$as_echo_n "checking for $ac_word... " >&6; }
9989if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9990 $as_echo_n "(cached) " >&6
278a7a38
AO
9991else
9992 if test -n "$CXX_FOR_TARGET"; then
9993 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9994else
9995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9996for as_dir in $PATH
9997do
9998 IFS=$as_save_IFS
9999 test -z "$as_dir" && as_dir=.
5213506e
RW
10000 for ac_exec_ext in '' $ac_executable_extensions; do
10001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10002 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10004 break 2
10005 fi
10006done
5213506e
RW
10007 done
10008IFS=$as_save_IFS
278a7a38
AO
10009
10010fi
10011fi
10012CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10013if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10015$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 10016else
5213506e
RW
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10018$as_echo "no" >&6; }
278a7a38
AO
10019fi
10020
5213506e 10021
278a7a38
AO
10022 done
10023fi
10024
10025if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10026 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10028$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10029 if test -x $with_build_time_tools/${ncn_progname}; then
10030 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10032$as_echo "yes" >&6; }
e8b05380
PB
10033 break
10034 else
5213506e
RW
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10036$as_echo "no" >&6; }
e8b05380
PB
10037 fi
10038 done
10039fi
10040
10041if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10042 for ncn_progname in c++ g++ cxx gxx; do
10043 if test -n "$ncn_target_tool_prefix"; then
10044 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10045set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10047$as_echo_n "checking for $ac_word... " >&6; }
10048if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10049 $as_echo_n "(cached) " >&6
4de997d1
PB
10050else
10051 if test -n "$CXX_FOR_TARGET"; then
10052 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10053else
1c710c3c
DJ
10054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10055for as_dir in $PATH
10056do
10057 IFS=$as_save_IFS
10058 test -z "$as_dir" && as_dir=.
5213506e
RW
10059 for ac_exec_ext in '' $ac_executable_extensions; do
10060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10061 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10063 break 2
10064 fi
10065done
5213506e
RW
10066 done
10067IFS=$as_save_IFS
1c710c3c 10068
4de997d1
PB
10069fi
10070fi
1c710c3c 10071CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 10072if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10074$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10075else
5213506e
RW
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10077$as_echo "no" >&6; }
4de997d1
PB
10078fi
10079
5213506e 10080
e8b05380
PB
10081 fi
10082 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10083 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10084set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10086$as_echo_n "checking for $ac_word... " >&6; }
10087if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10088 $as_echo_n "(cached) " >&6
4de997d1 10089else
2693c0b0
PB
10090 if test -n "$CXX_FOR_TARGET"; then
10091 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 10092else
1c710c3c
DJ
10093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10094for as_dir in $PATH
10095do
10096 IFS=$as_save_IFS
10097 test -z "$as_dir" && as_dir=.
5213506e
RW
10098 for ac_exec_ext in '' $ac_executable_extensions; do
10099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10100 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10102 break 2
10103 fi
10104done
5213506e
RW
10105 done
10106IFS=$as_save_IFS
1c710c3c 10107
4de997d1
PB
10108fi
10109fi
1c710c3c 10110CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 10111if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10113$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10114else
5213506e
RW
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10116$as_echo "no" >&6; }
4de997d1 10117fi
1c710c3c 10118
5213506e 10119
e8b05380
PB
10120 fi
10121 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10122 done
10123fi
1c710c3c 10124
2693c0b0
PB
10125if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10126 set dummy c++ g++ cxx gxx
10127 if test $build = $target ; then
10128 CXX_FOR_TARGET="$2"
4de997d1 10129 else
2693c0b0 10130 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10131 fi
1c00b503
PB
10132else
10133 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
10134fi
10135
278a7a38
AO
10136
10137
10138if test -n "$GCC_FOR_TARGET"; then
10139 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10140elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10141 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10142fi
10143
10144if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10145 for ncn_progname in gcc; do
10146 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10147set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10149$as_echo_n "checking for $ac_word... " >&6; }
10150if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10151 $as_echo_n "(cached) " >&6
278a7a38
AO
10152else
10153 if test -n "$GCC_FOR_TARGET"; then
10154 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10155else
10156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10157for as_dir in $PATH
10158do
10159 IFS=$as_save_IFS
10160 test -z "$as_dir" && as_dir=.
5213506e
RW
10161 for ac_exec_ext in '' $ac_executable_extensions; do
10162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10163 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10165 break 2
10166 fi
10167done
5213506e
RW
10168 done
10169IFS=$as_save_IFS
278a7a38
AO
10170
10171fi
10172fi
10173GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10174if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10176$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 10177else
5213506e
RW
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10179$as_echo "no" >&6; }
278a7a38
AO
10180fi
10181
5213506e 10182
278a7a38
AO
10183 done
10184fi
10185
10186if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10187 for ncn_progname in gcc; do
5213506e
RW
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10189$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10190 if test -x $with_build_time_tools/${ncn_progname}; then
10191 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10193$as_echo "yes" >&6; }
e8b05380
PB
10194 break
10195 else
5213506e
RW
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10197$as_echo "no" >&6; }
e8b05380
PB
10198 fi
10199 done
10200fi
10201
10202if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10203 for ncn_progname in gcc; do
10204 if test -n "$ncn_target_tool_prefix"; then
10205 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10206set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10208$as_echo_n "checking for $ac_word... " >&6; }
10209if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10210 $as_echo_n "(cached) " >&6
ca9f4b81 10211else
e8b05380
PB
10212 if test -n "$GCC_FOR_TARGET"; then
10213 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10214else
1c710c3c
DJ
10215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10216for as_dir in $PATH
10217do
10218 IFS=$as_save_IFS
10219 test -z "$as_dir" && as_dir=.
5213506e
RW
10220 for ac_exec_ext in '' $ac_executable_extensions; do
10221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10222 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10224 break 2
10225 fi
10226done
5213506e
RW
10227 done
10228IFS=$as_save_IFS
1c710c3c 10229
ca9f4b81
AO
10230fi
10231fi
1c710c3c 10232GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10233if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10235$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10236else
5213506e
RW
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10238$as_echo "no" >&6; }
ca9f4b81
AO
10239fi
10240
5213506e 10241
e8b05380
PB
10242 fi
10243 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10244 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10245set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10247$as_echo_n "checking for $ac_word... " >&6; }
10248if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10249 $as_echo_n "(cached) " >&6
ca9f4b81 10250else
e8b05380
PB
10251 if test -n "$GCC_FOR_TARGET"; then
10252 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10253else
1c710c3c
DJ
10254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10255for as_dir in $PATH
10256do
10257 IFS=$as_save_IFS
10258 test -z "$as_dir" && as_dir=.
5213506e
RW
10259 for ac_exec_ext in '' $ac_executable_extensions; do
10260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10261 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10263 break 2
10264 fi
10265done
5213506e
RW
10266 done
10267IFS=$as_save_IFS
1c710c3c 10268
ca9f4b81
AO
10269fi
10270fi
1c710c3c 10271GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10272if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10274$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10275else
5213506e
RW
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10277$as_echo "no" >&6; }
ca9f4b81 10278fi
1c710c3c 10279
5213506e 10280
e8b05380
PB
10281 fi
10282 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10283 done
10284fi
1c710c3c 10285
e8b05380
PB
10286if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10287 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10288else
10289 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10290fi
10291
278a7a38
AO
10292
10293
10294if test -n "$GCJ_FOR_TARGET"; then
10295 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10296elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10297 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10298fi
10299
10300if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10301 for ncn_progname in gcj; do
10302 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10303set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10305$as_echo_n "checking for $ac_word... " >&6; }
10306if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10307 $as_echo_n "(cached) " >&6
278a7a38
AO
10308else
10309 if test -n "$GCJ_FOR_TARGET"; then
10310 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10311else
10312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10313for as_dir in $PATH
10314do
10315 IFS=$as_save_IFS
10316 test -z "$as_dir" && as_dir=.
5213506e
RW
10317 for ac_exec_ext in '' $ac_executable_extensions; do
10318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10319 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10321 break 2
10322 fi
10323done
5213506e
RW
10324 done
10325IFS=$as_save_IFS
278a7a38
AO
10326
10327fi
10328fi
10329GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10330if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10332$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10333else
5213506e
RW
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10335$as_echo "no" >&6; }
278a7a38
AO
10336fi
10337
5213506e 10338
278a7a38
AO
10339 done
10340fi
10341
10342if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10343 for ncn_progname in gcj; do
5213506e
RW
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10345$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10346 if test -x $with_build_time_tools/${ncn_progname}; then
10347 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10349$as_echo "yes" >&6; }
e8b05380
PB
10350 break
10351 else
5213506e
RW
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10353$as_echo "no" >&6; }
e8b05380
PB
10354 fi
10355 done
10356fi
10357
10358if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10359 for ncn_progname in gcj; do
10360 if test -n "$ncn_target_tool_prefix"; then
10361 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10362set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10364$as_echo_n "checking for $ac_word... " >&6; }
10365if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10366 $as_echo_n "(cached) " >&6
e8b05380 10367else
fb0103e5
RG
10368 if test -n "$GCJ_FOR_TARGET"; then
10369 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10370else
1c710c3c
DJ
10371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10372for as_dir in $PATH
10373do
10374 IFS=$as_save_IFS
10375 test -z "$as_dir" && as_dir=.
5213506e
RW
10376 for ac_exec_ext in '' $ac_executable_extensions; do
10377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10378 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10380 break 2
10381 fi
10382done
5213506e
RW
10383 done
10384IFS=$as_save_IFS
1c710c3c 10385
e8b05380
PB
10386fi
10387fi
278a7a38
AO
10388GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10389if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10391$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10392else
5213506e
RW
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10394$as_echo "no" >&6; }
278a7a38
AO
10395fi
10396
5213506e 10397
278a7a38
AO
10398 fi
10399 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10400 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10401set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10403$as_echo_n "checking for $ac_word... " >&6; }
10404if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10405 $as_echo_n "(cached) " >&6
278a7a38
AO
10406else
10407 if test -n "$GCJ_FOR_TARGET"; then
10408 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10409else
10410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10411for as_dir in $PATH
10412do
10413 IFS=$as_save_IFS
10414 test -z "$as_dir" && as_dir=.
5213506e
RW
10415 for ac_exec_ext in '' $ac_executable_extensions; do
10416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10417 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10419 break 2
10420 fi
10421done
5213506e
RW
10422 done
10423IFS=$as_save_IFS
278a7a38
AO
10424
10425fi
10426fi
10427GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10428if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10430$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10431else
5213506e
RW
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10433$as_echo "no" >&6; }
278a7a38
AO
10434fi
10435
5213506e 10436
278a7a38
AO
10437 fi
10438 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10439 done
10440fi
10441
10442if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10443 set dummy gcj
10444 if test $build = $target ; then
10445 GCJ_FOR_TARGET="$2"
10446 else
10447 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10448 fi
1c00b503
PB
10449else
10450 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
10451fi
10452
10453
10454
10455if test -n "$GFORTRAN_FOR_TARGET"; then
10456 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10457elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10458 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10459fi
10460
278a7a38
AO
10461if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10462 for ncn_progname in gfortran; do
10463 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10464set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10466$as_echo_n "checking for $ac_word... " >&6; }
10467if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10468 $as_echo_n "(cached) " >&6
e8b05380 10469else
278a7a38
AO
10470 if test -n "$GFORTRAN_FOR_TARGET"; then
10471 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10472else
1c710c3c
DJ
10473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10474for as_dir in $PATH
10475do
10476 IFS=$as_save_IFS
10477 test -z "$as_dir" && as_dir=.
5213506e
RW
10478 for ac_exec_ext in '' $ac_executable_extensions; do
10479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10480 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10482 break 2
10483 fi
10484done
5213506e
RW
10485 done
10486IFS=$as_save_IFS
1c710c3c 10487
e8b05380
PB
10488fi
10489fi
278a7a38
AO
10490GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10491if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10493$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10494else
5213506e
RW
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10496$as_echo "no" >&6; }
e8b05380 10497fi
1c710c3c 10498
5213506e 10499
e8b05380
PB
10500 done
10501fi
1c710c3c 10502
278a7a38 10503if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10504 for ncn_progname in gfortran; do
5213506e
RW
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10506$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10507 if test -x $with_build_time_tools/${ncn_progname}; then
10508 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10510$as_echo "yes" >&6; }
e8b05380
PB
10511 break
10512 else
5213506e
RW
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10514$as_echo "no" >&6; }
e8b05380
PB
10515 fi
10516 done
10517fi
10518
10519if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10520 for ncn_progname in gfortran; do
10521 if test -n "$ncn_target_tool_prefix"; then
10522 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10523set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10525$as_echo_n "checking for $ac_word... " >&6; }
10526if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10527 $as_echo_n "(cached) " >&6
e8b05380
PB
10528else
10529 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10530 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10531else
10532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10533for as_dir in $PATH
10534do
10535 IFS=$as_save_IFS
10536 test -z "$as_dir" && as_dir=.
5213506e
RW
10537 for ac_exec_ext in '' $ac_executable_extensions; do
10538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10539 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10541 break 2
10542 fi
10543done
5213506e
RW
10544 done
10545IFS=$as_save_IFS
1c710c3c 10546
e8b05380
PB
10547fi
10548fi
1c710c3c 10549GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10550if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10552$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10553else
5213506e
RW
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10555$as_echo "no" >&6; }
e8b05380
PB
10556fi
10557
5213506e 10558
e8b05380
PB
10559 fi
10560 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10561 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10562set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10564$as_echo_n "checking for $ac_word... " >&6; }
10565if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10566 $as_echo_n "(cached) " >&6
e8b05380
PB
10567else
10568 if test -n "$GFORTRAN_FOR_TARGET"; then
10569 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10570else
1c710c3c
DJ
10571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10572for as_dir in $PATH
10573do
10574 IFS=$as_save_IFS
10575 test -z "$as_dir" && as_dir=.
5213506e
RW
10576 for ac_exec_ext in '' $ac_executable_extensions; do
10577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10578 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10580 break 2
10581 fi
10582done
5213506e
RW
10583 done
10584IFS=$as_save_IFS
1c710c3c 10585
e8b05380
PB
10586fi
10587fi
1c710c3c 10588GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10589if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10591$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10592else
5213506e
RW
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10594$as_echo "no" >&6; }
e8b05380 10595fi
1c710c3c 10596
5213506e 10597
e8b05380
PB
10598 fi
10599 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10600 done
10601fi
1c710c3c 10602
e8b05380
PB
10603if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10604 set dummy gfortran
2693c0b0 10605 if test $build = $target ; then
e8b05380 10606 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 10607 else
e8b05380
PB
10608 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10609 fi
1c00b503
PB
10610else
10611 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
10612fi
10613
10614
10615
632e2a07
ILT
10616if test -n "$GOC_FOR_TARGET"; then
10617 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10618elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10619 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10620fi
10621
10622if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10623 for ncn_progname in gccgo; do
10624 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10625set dummy ${ncn_progname}; ac_word=$2
10626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10627$as_echo_n "checking for $ac_word... " >&6; }
10628if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10629 $as_echo_n "(cached) " >&6
10630else
10631 if test -n "$GOC_FOR_TARGET"; then
10632 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10633else
10634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10635for as_dir in $PATH
10636do
10637 IFS=$as_save_IFS
10638 test -z "$as_dir" && as_dir=.
10639 for ac_exec_ext in '' $ac_executable_extensions; do
10640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10641 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10643 break 2
10644 fi
10645done
10646 done
10647IFS=$as_save_IFS
10648
10649fi
10650fi
10651GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10652if test -n "$GOC_FOR_TARGET"; then
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10654$as_echo "$GOC_FOR_TARGET" >&6; }
10655else
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10657$as_echo "no" >&6; }
10658fi
10659
10660
10661 done
10662fi
10663
10664if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10665 for ncn_progname in gccgo; do
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10667$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10668 if test -x $with_build_time_tools/${ncn_progname}; then
10669 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10671$as_echo "yes" >&6; }
10672 break
10673 else
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10675$as_echo "no" >&6; }
10676 fi
10677 done
10678fi
10679
10680if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10681 for ncn_progname in gccgo; do
10682 if test -n "$ncn_target_tool_prefix"; then
10683 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10684set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10686$as_echo_n "checking for $ac_word... " >&6; }
10687if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10688 $as_echo_n "(cached) " >&6
10689else
10690 if test -n "$GOC_FOR_TARGET"; then
10691 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10692else
10693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10694for as_dir in $PATH
10695do
10696 IFS=$as_save_IFS
10697 test -z "$as_dir" && as_dir=.
10698 for ac_exec_ext in '' $ac_executable_extensions; do
10699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10700 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10702 break 2
10703 fi
10704done
10705 done
10706IFS=$as_save_IFS
10707
10708fi
10709fi
10710GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10711if test -n "$GOC_FOR_TARGET"; then
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10713$as_echo "$GOC_FOR_TARGET" >&6; }
10714else
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10716$as_echo "no" >&6; }
10717fi
10718
10719
10720 fi
10721 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10722 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10723set dummy ${ncn_progname}; ac_word=$2
10724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10725$as_echo_n "checking for $ac_word... " >&6; }
10726if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10727 $as_echo_n "(cached) " >&6
10728else
10729 if test -n "$GOC_FOR_TARGET"; then
10730 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10731else
10732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10733for as_dir in $PATH
10734do
10735 IFS=$as_save_IFS
10736 test -z "$as_dir" && as_dir=.
10737 for ac_exec_ext in '' $ac_executable_extensions; do
10738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10739 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10741 break 2
10742 fi
10743done
10744 done
10745IFS=$as_save_IFS
10746
10747fi
10748fi
10749GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10750if test -n "$GOC_FOR_TARGET"; then
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10752$as_echo "$GOC_FOR_TARGET" >&6; }
10753else
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10755$as_echo "no" >&6; }
10756fi
10757
10758
10759 fi
10760 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10761 done
10762fi
10763
10764if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10765 set dummy gccgo
10766 if test $build = $target ; then
10767 GOC_FOR_TARGET="$2"
10768 else
10769 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10770 fi
10771else
10772 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10773fi
10774
10775
10776
e8b05380
PB
10777cat > conftest.c << \EOF
10778#ifdef __GNUC__
10779 gcc_yay;
10780#endif
10781EOF
10782if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10783 have_gcc_for_target=yes
10784else
10785 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10786 have_gcc_for_target=no
10787fi
10788rm conftest.c
10789
10790
10791
10792
10793if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10794 if test -n "$with_build_time_tools"; then
5213506e
RW
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10796$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10797 if test -x $with_build_time_tools/ar; then
10798 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10799 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10801$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 10802 else
5213506e
RW
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10804$as_echo "no" >&6; }
d1f8db0c 10805 fi
e8b05380
PB
10806 elif test $build != $host && test $have_gcc_for_target = yes; then
10807 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
10808 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10809 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
10810 fi
10811fi
3e19841a 10812if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10813 # Extract the first word of "ar", so it can be a program name with args.
10814set dummy ar; ac_word=$2
5213506e
RW
10815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10816$as_echo_n "checking for $ac_word... " >&6; }
10817if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10818 $as_echo_n "(cached) " >&6
e8b05380 10819else
1c710c3c
DJ
10820 case $AR_FOR_TARGET in
10821 [\\/]* | ?:[\\/]*)
e8b05380
PB
10822 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10823 ;;
e8b05380 10824 *)
1c710c3c
DJ
10825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10826for as_dir in $gcc_cv_tool_dirs
10827do
10828 IFS=$as_save_IFS
10829 test -z "$as_dir" && as_dir=.
5213506e
RW
10830 for ac_exec_ext in '' $ac_executable_extensions; do
10831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10832 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10834 break 2
10835 fi
10836done
5213506e
RW
10837 done
10838IFS=$as_save_IFS
1c710c3c 10839
e8b05380
PB
10840 ;;
10841esac
10842fi
1c710c3c 10843AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 10844if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10846$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10847else
5213506e
RW
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10849$as_echo "no" >&6; }
4de997d1
PB
10850fi
10851
5213506e 10852
e8b05380
PB
10853fi
10854if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
10855
10856
10857if test -n "$AR_FOR_TARGET"; then
10858 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10859elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10860 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10861fi
10862
10863if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10864 for ncn_progname in ar; do
10865 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10866set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10868$as_echo_n "checking for $ac_word... " >&6; }
10869if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10870 $as_echo_n "(cached) " >&6
278a7a38
AO
10871else
10872 if test -n "$AR_FOR_TARGET"; then
10873 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10874else
10875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10876for as_dir in $PATH
10877do
10878 IFS=$as_save_IFS
10879 test -z "$as_dir" && as_dir=.
5213506e
RW
10880 for ac_exec_ext in '' $ac_executable_extensions; do
10881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10882 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10884 break 2
10885 fi
10886done
5213506e
RW
10887 done
10888IFS=$as_save_IFS
278a7a38
AO
10889
10890fi
10891fi
10892AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10893if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10895$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 10896else
5213506e
RW
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10898$as_echo "no" >&6; }
278a7a38
AO
10899fi
10900
5213506e 10901
278a7a38
AO
10902 done
10903fi
10904
10905if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10906 for ncn_progname in ar; do
5213506e
RW
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10908$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10909 if test -x $with_build_time_tools/${ncn_progname}; then
10910 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10912$as_echo "yes" >&6; }
e8b05380
PB
10913 break
10914 else
5213506e
RW
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10916$as_echo "no" >&6; }
e8b05380
PB
10917 fi
10918 done
10919fi
10920
10921if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10922 for ncn_progname in ar; do
10923 if test -n "$ncn_target_tool_prefix"; then
10924 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10925set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10927$as_echo_n "checking for $ac_word... " >&6; }
10928if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10929 $as_echo_n "(cached) " >&6
4de997d1 10930else
e8b05380
PB
10931 if test -n "$AR_FOR_TARGET"; then
10932 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 10933else
1c710c3c
DJ
10934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10935for as_dir in $PATH
10936do
10937 IFS=$as_save_IFS
10938 test -z "$as_dir" && as_dir=.
5213506e
RW
10939 for ac_exec_ext in '' $ac_executable_extensions; do
10940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10941 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10943 break 2
10944 fi
10945done
5213506e
RW
10946 done
10947IFS=$as_save_IFS
1c710c3c 10948
4de997d1
PB
10949fi
10950fi
1c710c3c 10951AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10952if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10954$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 10955else
5213506e
RW
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10957$as_echo "no" >&6; }
4de997d1
PB
10958fi
10959
5213506e 10960
e8b05380
PB
10961 fi
10962 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10963 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10964set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10966$as_echo_n "checking for $ac_word... " >&6; }
10967if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10968 $as_echo_n "(cached) " >&6
e8b05380
PB
10969else
10970 if test -n "$AR_FOR_TARGET"; then
10971 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10972else
1c710c3c
DJ
10973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10974for as_dir in $PATH
10975do
10976 IFS=$as_save_IFS
10977 test -z "$as_dir" && as_dir=.
5213506e
RW
10978 for ac_exec_ext in '' $ac_executable_extensions; do
10979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10980 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10982 break 2
10983 fi
10984done
5213506e
RW
10985 done
10986IFS=$as_save_IFS
1c710c3c 10987
e8b05380
PB
10988fi
10989fi
1c710c3c 10990AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10991if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10993$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10994else
5213506e
RW
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10996$as_echo "no" >&6; }
e8b05380 10997fi
1c710c3c 10998
5213506e 10999
e8b05380
PB
11000 fi
11001 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11002 done
11003fi
1c710c3c 11004
e8b05380
PB
11005if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11006 set dummy ar
11007 if test $build = $target ; then
11008 AR_FOR_TARGET="$2"
11009 else
11010 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 11011 fi
1c00b503
PB
11012else
11013 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
11014fi
11015
d1f8db0c
PB
11016else
11017 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
11018fi
11019
11020
11021
11022
11023if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11024 if test -n "$with_build_time_tools"; then
5213506e
RW
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11026$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11027 if test -x $with_build_time_tools/as; then
11028 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11029 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11031$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 11032 else
5213506e
RW
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11034$as_echo "no" >&6; }
d1f8db0c 11035 fi
e8b05380
PB
11036 elif test $build != $host && test $have_gcc_for_target = yes; then
11037 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
11038 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11039 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
11040 fi
11041fi
3e19841a 11042if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11043 # Extract the first word of "as", so it can be a program name with args.
11044set dummy as; ac_word=$2
5213506e
RW
11045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11046$as_echo_n "checking for $ac_word... " >&6; }
11047if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11048 $as_echo_n "(cached) " >&6
e8b05380 11049else
1c710c3c
DJ
11050 case $AS_FOR_TARGET in
11051 [\\/]* | ?:[\\/]*)
e8b05380
PB
11052 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11053 ;;
e8b05380 11054 *)
1c710c3c
DJ
11055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11056for as_dir in $gcc_cv_tool_dirs
11057do
11058 IFS=$as_save_IFS
11059 test -z "$as_dir" && as_dir=.
5213506e
RW
11060 for ac_exec_ext in '' $ac_executable_extensions; do
11061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11062 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11064 break 2
11065 fi
11066done
5213506e
RW
11067 done
11068IFS=$as_save_IFS
1c710c3c 11069
e8b05380
PB
11070 ;;
11071esac
11072fi
1c710c3c 11073AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 11074if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11076$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11077else
5213506e
RW
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11079$as_echo "no" >&6; }
e8b05380
PB
11080fi
11081
5213506e 11082
e8b05380
PB
11083fi
11084if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
11085
11086
11087if test -n "$AS_FOR_TARGET"; then
11088 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11089elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11090 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11091fi
11092
11093if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11094 for ncn_progname in as; do
11095 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11096set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11098$as_echo_n "checking for $ac_word... " >&6; }
11099if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11100 $as_echo_n "(cached) " >&6
278a7a38
AO
11101else
11102 if test -n "$AS_FOR_TARGET"; then
11103 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11104else
11105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11106for as_dir in $PATH
11107do
11108 IFS=$as_save_IFS
11109 test -z "$as_dir" && as_dir=.
5213506e
RW
11110 for ac_exec_ext in '' $ac_executable_extensions; do
11111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11112 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11114 break 2
11115 fi
11116done
5213506e
RW
11117 done
11118IFS=$as_save_IFS
278a7a38
AO
11119
11120fi
11121fi
11122AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11123if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11125$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 11126else
5213506e
RW
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11128$as_echo "no" >&6; }
278a7a38
AO
11129fi
11130
5213506e 11131
278a7a38
AO
11132 done
11133fi
11134
11135if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11136 for ncn_progname in as; do
5213506e
RW
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11138$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11139 if test -x $with_build_time_tools/${ncn_progname}; then
11140 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11142$as_echo "yes" >&6; }
e8b05380
PB
11143 break
11144 else
5213506e
RW
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11146$as_echo "no" >&6; }
e8b05380
PB
11147 fi
11148 done
11149fi
11150
11151if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11152 for ncn_progname in as; do
11153 if test -n "$ncn_target_tool_prefix"; then
11154 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11155set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11157$as_echo_n "checking for $ac_word... " >&6; }
11158if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11159 $as_echo_n "(cached) " >&6
e8b05380
PB
11160else
11161 if test -n "$AS_FOR_TARGET"; then
11162 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11163else
1c710c3c
DJ
11164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11165for as_dir in $PATH
11166do
11167 IFS=$as_save_IFS
11168 test -z "$as_dir" && as_dir=.
5213506e
RW
11169 for ac_exec_ext in '' $ac_executable_extensions; do
11170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11171 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11173 break 2
11174 fi
11175done
5213506e
RW
11176 done
11177IFS=$as_save_IFS
1c710c3c 11178
e8b05380
PB
11179fi
11180fi
1c710c3c 11181AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11182if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11184$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11185else
5213506e
RW
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11187$as_echo "no" >&6; }
e8b05380
PB
11188fi
11189
5213506e 11190
e8b05380
PB
11191 fi
11192 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11193 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11194set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11196$as_echo_n "checking for $ac_word... " >&6; }
11197if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11198 $as_echo_n "(cached) " >&6
4de997d1 11199else
e8b05380
PB
11200 if test -n "$AS_FOR_TARGET"; then
11201 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 11202else
1c710c3c
DJ
11203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11204for as_dir in $PATH
11205do
11206 IFS=$as_save_IFS
11207 test -z "$as_dir" && as_dir=.
5213506e
RW
11208 for ac_exec_ext in '' $ac_executable_extensions; do
11209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11210 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11212 break 2
11213 fi
11214done
5213506e
RW
11215 done
11216IFS=$as_save_IFS
1c710c3c 11217
4de997d1
PB
11218fi
11219fi
1c710c3c 11220AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11221if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11223$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 11224else
5213506e
RW
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11226$as_echo "no" >&6; }
4de997d1 11227fi
1c710c3c 11228
5213506e 11229
e8b05380
PB
11230 fi
11231 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11232 done
11233fi
1c710c3c 11234
e8b05380
PB
11235if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11236 set dummy as
11237 if test $build = $target ; then
11238 AS_FOR_TARGET="$2"
11239 else
11240 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 11241 fi
1c00b503
PB
11242else
11243 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 11244fi
2693c0b0 11245
d1f8db0c
PB
11246else
11247 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
11248fi
11249
e8b05380
PB
11250
11251
11252
11253if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11254 if test -n "$with_build_time_tools"; then
5213506e
RW
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11256$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11257 if test -x $with_build_time_tools/dlltool; then
11258 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11259 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11261$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 11262 else
5213506e
RW
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11264$as_echo "no" >&6; }
d1f8db0c 11265 fi
e8b05380
PB
11266 elif test $build != $host && test $have_gcc_for_target = yes; then
11267 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
11268 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11269 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
11270 fi
11271fi
3e19841a 11272if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11273 # Extract the first word of "dlltool", so it can be a program name with args.
11274set dummy dlltool; ac_word=$2
5213506e
RW
11275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11276$as_echo_n "checking for $ac_word... " >&6; }
11277if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11278 $as_echo_n "(cached) " >&6
4de997d1 11279else
1c710c3c
DJ
11280 case $DLLTOOL_FOR_TARGET in
11281 [\\/]* | ?:[\\/]*)
e8b05380
PB
11282 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11283 ;;
e8b05380 11284 *)
1c710c3c
DJ
11285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11286for as_dir in $gcc_cv_tool_dirs
11287do
11288 IFS=$as_save_IFS
11289 test -z "$as_dir" && as_dir=.
5213506e
RW
11290 for ac_exec_ext in '' $ac_executable_extensions; do
11291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11292 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11294 break 2
11295 fi
11296done
5213506e
RW
11297 done
11298IFS=$as_save_IFS
1c710c3c 11299
e8b05380
PB
11300 ;;
11301esac
4de997d1 11302fi
1c710c3c 11303DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 11304if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11306$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11307else
5213506e
RW
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11309$as_echo "no" >&6; }
4de997d1
PB
11310fi
11311
5213506e 11312
e8b05380
PB
11313fi
11314if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
11315
11316
11317if test -n "$DLLTOOL_FOR_TARGET"; then
11318 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11319elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11320 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11321fi
11322
11323if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11324 for ncn_progname in dlltool; do
11325 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11326set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11328$as_echo_n "checking for $ac_word... " >&6; }
11329if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11330 $as_echo_n "(cached) " >&6
278a7a38
AO
11331else
11332 if test -n "$DLLTOOL_FOR_TARGET"; then
11333 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11334else
11335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11336for as_dir in $PATH
11337do
11338 IFS=$as_save_IFS
11339 test -z "$as_dir" && as_dir=.
5213506e
RW
11340 for ac_exec_ext in '' $ac_executable_extensions; do
11341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11342 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11344 break 2
11345 fi
11346done
5213506e
RW
11347 done
11348IFS=$as_save_IFS
278a7a38
AO
11349
11350fi
11351fi
11352DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11353if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11355$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11356else
5213506e
RW
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11358$as_echo "no" >&6; }
278a7a38
AO
11359fi
11360
5213506e 11361
278a7a38
AO
11362 done
11363fi
11364
11365if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11366 for ncn_progname in dlltool; do
5213506e
RW
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11368$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11369 if test -x $with_build_time_tools/${ncn_progname}; then
11370 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11372$as_echo "yes" >&6; }
e8b05380
PB
11373 break
11374 else
5213506e
RW
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11376$as_echo "no" >&6; }
e8b05380
PB
11377 fi
11378 done
11379fi
11380
11381if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11382 for ncn_progname in dlltool; do
11383 if test -n "$ncn_target_tool_prefix"; then
11384 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11385set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11387$as_echo_n "checking for $ac_word... " >&6; }
11388if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11389 $as_echo_n "(cached) " >&6
4de997d1 11390else
e8b05380
PB
11391 if test -n "$DLLTOOL_FOR_TARGET"; then
11392 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11393else
1c710c3c
DJ
11394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11395for as_dir in $PATH
11396do
11397 IFS=$as_save_IFS
11398 test -z "$as_dir" && as_dir=.
5213506e
RW
11399 for ac_exec_ext in '' $ac_executable_extensions; do
11400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11401 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11403 break 2
11404 fi
11405done
5213506e
RW
11406 done
11407IFS=$as_save_IFS
1c710c3c 11408
4de997d1
PB
11409fi
11410fi
1c710c3c 11411DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11412if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11414$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11415else
5213506e
RW
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11417$as_echo "no" >&6; }
4de997d1 11418fi
4de997d1 11419
5213506e 11420
e8b05380
PB
11421 fi
11422 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11423 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11424set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11426$as_echo_n "checking for $ac_word... " >&6; }
11427if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11428 $as_echo_n "(cached) " >&6
4de997d1 11429else
e8b05380
PB
11430 if test -n "$DLLTOOL_FOR_TARGET"; then
11431 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11432else
1c710c3c
DJ
11433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11434for as_dir in $PATH
11435do
11436 IFS=$as_save_IFS
11437 test -z "$as_dir" && as_dir=.
5213506e
RW
11438 for ac_exec_ext in '' $ac_executable_extensions; do
11439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11440 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11442 break 2
11443 fi
11444done
5213506e
RW
11445 done
11446IFS=$as_save_IFS
1c710c3c 11447
4de997d1
PB
11448fi
11449fi
1c710c3c 11450DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11451if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11453$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11454else
5213506e
RW
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11456$as_echo "no" >&6; }
4de997d1 11457fi
1c710c3c 11458
5213506e 11459
e8b05380
PB
11460 fi
11461 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11462 done
11463fi
1c710c3c 11464
e8b05380
PB
11465if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11466 set dummy dlltool
11467 if test $build = $target ; then
11468 DLLTOOL_FOR_TARGET="$2"
11469 else
11470 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11471 fi
1c00b503
PB
11472else
11473 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
11474fi
11475
d1f8db0c
PB
11476else
11477 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
11478fi
11479
4de997d1 11480
e8b05380
PB
11481
11482
11483if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11484 if test -n "$with_build_time_tools"; then
5213506e
RW
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11486$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11487 if test -x $with_build_time_tools/ld; then
11488 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11489 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11491$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 11492 else
5213506e
RW
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11494$as_echo "no" >&6; }
d1f8db0c 11495 fi
e8b05380
PB
11496 elif test $build != $host && test $have_gcc_for_target = yes; then
11497 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
11498 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11499 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 11500 fi
e8b05380 11501fi
3e19841a 11502if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11503 # Extract the first word of "ld", so it can be a program name with args.
11504set dummy ld; ac_word=$2
5213506e
RW
11505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11506$as_echo_n "checking for $ac_word... " >&6; }
11507if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11508 $as_echo_n "(cached) " >&6
4de997d1 11509else
1c710c3c
DJ
11510 case $LD_FOR_TARGET in
11511 [\\/]* | ?:[\\/]*)
e8b05380
PB
11512 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11513 ;;
e8b05380 11514 *)
1c710c3c
DJ
11515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11516for as_dir in $gcc_cv_tool_dirs
11517do
11518 IFS=$as_save_IFS
11519 test -z "$as_dir" && as_dir=.
5213506e
RW
11520 for ac_exec_ext in '' $ac_executable_extensions; do
11521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11522 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11524 break 2
11525 fi
11526done
5213506e
RW
11527 done
11528IFS=$as_save_IFS
1c710c3c 11529
e8b05380
PB
11530 ;;
11531esac
4de997d1 11532fi
1c710c3c 11533LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 11534if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11536$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 11537else
5213506e
RW
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11539$as_echo "no" >&6; }
4de997d1 11540fi
2693c0b0 11541
5213506e 11542
e8b05380
PB
11543fi
11544if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
11545
11546
11547if test -n "$LD_FOR_TARGET"; then
11548 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11549elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11550 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11551fi
11552
11553if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11554 for ncn_progname in ld; do
11555 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11556set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11558$as_echo_n "checking for $ac_word... " >&6; }
11559if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11560 $as_echo_n "(cached) " >&6
278a7a38
AO
11561else
11562 if test -n "$LD_FOR_TARGET"; then
11563 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11564else
11565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11566for as_dir in $PATH
11567do
11568 IFS=$as_save_IFS
11569 test -z "$as_dir" && as_dir=.
5213506e
RW
11570 for ac_exec_ext in '' $ac_executable_extensions; do
11571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11572 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11574 break 2
11575 fi
11576done
5213506e
RW
11577 done
11578IFS=$as_save_IFS
278a7a38
AO
11579
11580fi
11581fi
11582LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11583if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11585$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 11586else
5213506e
RW
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11588$as_echo "no" >&6; }
278a7a38
AO
11589fi
11590
5213506e 11591
278a7a38
AO
11592 done
11593fi
11594
11595if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11596 for ncn_progname in ld; do
5213506e
RW
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11598$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11599 if test -x $with_build_time_tools/${ncn_progname}; then
11600 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11602$as_echo "yes" >&6; }
e8b05380
PB
11603 break
11604 else
5213506e
RW
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11606$as_echo "no" >&6; }
e8b05380
PB
11607 fi
11608 done
ca9f4b81
AO
11609fi
11610
e8b05380
PB
11611if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11612 for ncn_progname in ld; do
11613 if test -n "$ncn_target_tool_prefix"; then
11614 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11615set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11617$as_echo_n "checking for $ac_word... " >&6; }
11618if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11619 $as_echo_n "(cached) " >&6
ca9f4b81 11620else
4de997d1
PB
11621 if test -n "$LD_FOR_TARGET"; then
11622 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11623else
1c710c3c
DJ
11624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11625for as_dir in $PATH
11626do
11627 IFS=$as_save_IFS
11628 test -z "$as_dir" && as_dir=.
5213506e
RW
11629 for ac_exec_ext in '' $ac_executable_extensions; do
11630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11631 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11633 break 2
11634 fi
11635done
5213506e
RW
11636 done
11637IFS=$as_save_IFS
1c710c3c 11638
ca9f4b81
AO
11639fi
11640fi
1c710c3c 11641LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 11642if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11644$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11645else
5213506e
RW
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11647$as_echo "no" >&6; }
ca9f4b81
AO
11648fi
11649
5213506e 11650
e8b05380
PB
11651 fi
11652 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11654set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11656$as_echo_n "checking for $ac_word... " >&6; }
11657if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11658 $as_echo_n "(cached) " >&6
ca9f4b81 11659else
2693c0b0
PB
11660 if test -n "$LD_FOR_TARGET"; then
11661 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11662else
1c710c3c
DJ
11663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11664for as_dir in $PATH
11665do
11666 IFS=$as_save_IFS
11667 test -z "$as_dir" && as_dir=.
5213506e
RW
11668 for ac_exec_ext in '' $ac_executable_extensions; do
11669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11670 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11672 break 2
11673 fi
11674done
5213506e
RW
11675 done
11676IFS=$as_save_IFS
1c710c3c 11677
ca9f4b81
AO
11678fi
11679fi
1c710c3c 11680LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 11681if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11683$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11684else
5213506e
RW
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11686$as_echo "no" >&6; }
ca9f4b81 11687fi
1c710c3c 11688
5213506e 11689
e8b05380
PB
11690 fi
11691 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11692 done
11693fi
1c710c3c 11694
2693c0b0
PB
11695if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11696 set dummy ld
11697 if test $build = $target ; then
11698 LD_FOR_TARGET="$2"
ca9f4b81 11699 else
2693c0b0 11700 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11701 fi
1c00b503
PB
11702else
11703 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
11704fi
11705
d1f8db0c
PB
11706else
11707 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
11708fi
11709
11710
11711
11712
11713if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11714 if test -n "$with_build_time_tools"; then
5213506e
RW
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11716$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11717 if test -x $with_build_time_tools/lipo; then
11718 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11719 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11721$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 11722 else
5213506e
RW
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11724$as_echo "no" >&6; }
d1f8db0c 11725 fi
e8b05380
PB
11726 elif test $build != $host && test $have_gcc_for_target = yes; then
11727 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
11728 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11729 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
11730 fi
11731fi
278a7a38
AO
11732if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11733 # Extract the first word of "lipo", so it can be a program name with args.
11734set dummy lipo; ac_word=$2
5213506e
RW
11735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11736$as_echo_n "checking for $ac_word... " >&6; }
11737if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11738 $as_echo_n "(cached) " >&6
278a7a38
AO
11739else
11740 case $LIPO_FOR_TARGET in
11741 [\\/]* | ?:[\\/]*)
11742 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11743 ;;
11744 *)
11745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11746for as_dir in $gcc_cv_tool_dirs
11747do
11748 IFS=$as_save_IFS
11749 test -z "$as_dir" && as_dir=.
5213506e
RW
11750 for ac_exec_ext in '' $ac_executable_extensions; do
11751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11752 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11754 break 2
11755 fi
11756done
5213506e
RW
11757 done
11758IFS=$as_save_IFS
278a7a38
AO
11759
11760 ;;
11761esac
11762fi
11763LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 11764if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11766$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 11767else
5213506e
RW
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769$as_echo "no" >&6; }
278a7a38
AO
11770fi
11771
5213506e 11772
278a7a38
AO
11773fi
11774if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11775
11776
11777if test -n "$LIPO_FOR_TARGET"; then
11778 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11779elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11780 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11781fi
11782
11783if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11784 for ncn_progname in lipo; do
11785 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11786set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11788$as_echo_n "checking for $ac_word... " >&6; }
11789if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11790 $as_echo_n "(cached) " >&6
e8b05380 11791else
278a7a38
AO
11792 if test -n "$LIPO_FOR_TARGET"; then
11793 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11794else
11795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11796for as_dir in $PATH
1c710c3c
DJ
11797do
11798 IFS=$as_save_IFS
11799 test -z "$as_dir" && as_dir=.
5213506e
RW
11800 for ac_exec_ext in '' $ac_executable_extensions; do
11801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11802 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11804 break 2
11805 fi
11806done
5213506e
RW
11807 done
11808IFS=$as_save_IFS
1c710c3c 11809
e8b05380 11810fi
278a7a38
AO
11811fi
11812LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 11813if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11815$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 11816else
5213506e
RW
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11818$as_echo "no" >&6; }
e8b05380
PB
11819fi
11820
5213506e 11821
278a7a38 11822 done
e8b05380 11823fi
278a7a38
AO
11824
11825if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11826 for ncn_progname in lipo; do
5213506e
RW
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11828$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11829 if test -x $with_build_time_tools/${ncn_progname}; then
11830 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11832$as_echo "yes" >&6; }
e8b05380
PB
11833 break
11834 else
5213506e
RW
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11836$as_echo "no" >&6; }
e8b05380
PB
11837 fi
11838 done
11839fi
11840
11841if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11842 for ncn_progname in lipo; do
11843 if test -n "$ncn_target_tool_prefix"; then
11844 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11845set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11847$as_echo_n "checking for $ac_word... " >&6; }
11848if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11849 $as_echo_n "(cached) " >&6
040b1c5a
GK
11850else
11851 if test -n "$LIPO_FOR_TARGET"; then
11852 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11853else
1c710c3c
DJ
11854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11855for as_dir in $PATH
11856do
11857 IFS=$as_save_IFS
11858 test -z "$as_dir" && as_dir=.
5213506e
RW
11859 for ac_exec_ext in '' $ac_executable_extensions; do
11860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11861 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11863 break 2
11864 fi
11865done
5213506e
RW
11866 done
11867IFS=$as_save_IFS
1c710c3c 11868
040b1c5a
GK
11869fi
11870fi
1c710c3c 11871LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11872if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11874$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11875else
5213506e
RW
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11877$as_echo "no" >&6; }
040b1c5a
GK
11878fi
11879
5213506e 11880
e8b05380
PB
11881 fi
11882 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11883 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 11884set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11886$as_echo_n "checking for $ac_word... " >&6; }
11887if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11888 $as_echo_n "(cached) " >&6
040b1c5a
GK
11889else
11890 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
11891 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11892else
1c710c3c
DJ
11893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11894for as_dir in $PATH
11895do
11896 IFS=$as_save_IFS
11897 test -z "$as_dir" && as_dir=.
5213506e
RW
11898 for ac_exec_ext in '' $ac_executable_extensions; do
11899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11900 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11902 break 2
11903 fi
11904done
5213506e
RW
11905 done
11906IFS=$as_save_IFS
1c710c3c 11907
040b1c5a
GK
11908fi
11909fi
1c710c3c 11910LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11911if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11913$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11914else
5213506e
RW
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11916$as_echo "no" >&6; }
040b1c5a 11917fi
1c710c3c 11918
5213506e 11919
e8b05380
PB
11920 fi
11921 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11922 done
11923fi
1c710c3c 11924
040b1c5a
GK
11925if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11926 set dummy lipo
11927 if test $build = $target ; then
11928 LIPO_FOR_TARGET="$2"
11929 else
11930 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11931 fi
1c00b503
PB
11932else
11933 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
11934fi
11935
d1f8db0c
PB
11936else
11937 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
11938fi
11939
11940
11941
11942
11943if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11944 if test -n "$with_build_time_tools"; then
5213506e
RW
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11946$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11947 if test -x $with_build_time_tools/nm; then
11948 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11949 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11951$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 11952 else
5213506e
RW
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11954$as_echo "no" >&6; }
d1f8db0c 11955 fi
e8b05380
PB
11956 elif test $build != $host && test $have_gcc_for_target = yes; then
11957 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
11958 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11959 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
11960 fi
11961fi
3e19841a 11962if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11963 # Extract the first word of "nm", so it can be a program name with args.
11964set dummy nm; ac_word=$2
5213506e
RW
11965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11966$as_echo_n "checking for $ac_word... " >&6; }
11967if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11968 $as_echo_n "(cached) " >&6
e8b05380 11969else
1c710c3c
DJ
11970 case $NM_FOR_TARGET in
11971 [\\/]* | ?:[\\/]*)
e8b05380
PB
11972 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11973 ;;
e8b05380 11974 *)
1c710c3c
DJ
11975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11976for as_dir in $gcc_cv_tool_dirs
11977do
11978 IFS=$as_save_IFS
11979 test -z "$as_dir" && as_dir=.
5213506e
RW
11980 for ac_exec_ext in '' $ac_executable_extensions; do
11981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11982 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11984 break 2
11985 fi
11986done
5213506e
RW
11987 done
11988IFS=$as_save_IFS
1c710c3c 11989
e8b05380
PB
11990 ;;
11991esac
11992fi
1c710c3c 11993NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 11994if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11996$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 11997else
5213506e
RW
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11999$as_echo "no" >&6; }
e8b05380
PB
12000fi
12001
5213506e 12002
e8b05380
PB
12003fi
12004if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
12005
12006
12007if test -n "$NM_FOR_TARGET"; then
12008 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12009elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12010 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12011fi
12012
12013if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12014 for ncn_progname in nm; do
12015 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12016set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12018$as_echo_n "checking for $ac_word... " >&6; }
12019if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12020 $as_echo_n "(cached) " >&6
278a7a38
AO
12021else
12022 if test -n "$NM_FOR_TARGET"; then
12023 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12024else
12025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12026for as_dir in $PATH
12027do
12028 IFS=$as_save_IFS
12029 test -z "$as_dir" && as_dir=.
5213506e
RW
12030 for ac_exec_ext in '' $ac_executable_extensions; do
12031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12032 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12034 break 2
12035 fi
12036done
5213506e
RW
12037 done
12038IFS=$as_save_IFS
278a7a38
AO
12039
12040fi
12041fi
12042NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12043if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12045$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 12046else
5213506e
RW
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12048$as_echo "no" >&6; }
278a7a38
AO
12049fi
12050
5213506e 12051
278a7a38
AO
12052 done
12053fi
12054
12055if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12056 for ncn_progname in nm; do
5213506e
RW
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12058$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12059 if test -x $with_build_time_tools/${ncn_progname}; then
12060 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12062$as_echo "yes" >&6; }
e8b05380
PB
12063 break
12064 else
5213506e
RW
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12066$as_echo "no" >&6; }
e8b05380
PB
12067 fi
12068 done
12069fi
12070
12071if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12072 for ncn_progname in nm; do
12073 if test -n "$ncn_target_tool_prefix"; then
12074 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12075set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12077$as_echo_n "checking for $ac_word... " >&6; }
12078if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12079 $as_echo_n "(cached) " >&6
ca9f4b81 12080else
4de997d1
PB
12081 if test -n "$NM_FOR_TARGET"; then
12082 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12083else
1c710c3c
DJ
12084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12085for as_dir in $PATH
12086do
12087 IFS=$as_save_IFS
12088 test -z "$as_dir" && as_dir=.
5213506e
RW
12089 for ac_exec_ext in '' $ac_executable_extensions; do
12090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12091 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12093 break 2
12094 fi
12095done
5213506e
RW
12096 done
12097IFS=$as_save_IFS
1c710c3c 12098
ca9f4b81
AO
12099fi
12100fi
1c710c3c 12101NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 12102if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12104$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12105else
5213506e
RW
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12107$as_echo "no" >&6; }
ca9f4b81
AO
12108fi
12109
5213506e 12110
e8b05380
PB
12111 fi
12112 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12113 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12114set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12116$as_echo_n "checking for $ac_word... " >&6; }
12117if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12118 $as_echo_n "(cached) " >&6
ca9f4b81 12119else
2693c0b0
PB
12120 if test -n "$NM_FOR_TARGET"; then
12121 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12122else
1c710c3c
DJ
12123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12124for as_dir in $PATH
12125do
12126 IFS=$as_save_IFS
12127 test -z "$as_dir" && as_dir=.
5213506e
RW
12128 for ac_exec_ext in '' $ac_executable_extensions; do
12129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12130 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12132 break 2
12133 fi
12134done
5213506e
RW
12135 done
12136IFS=$as_save_IFS
1c710c3c 12137
ca9f4b81
AO
12138fi
12139fi
1c710c3c 12140NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 12141if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12143$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12144else
5213506e
RW
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12146$as_echo "no" >&6; }
ca9f4b81 12147fi
1c710c3c 12148
5213506e 12149
e8b05380
PB
12150 fi
12151 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12152 done
12153fi
1c710c3c 12154
2693c0b0
PB
12155if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12156 set dummy nm
12157 if test $build = $target ; then
12158 NM_FOR_TARGET="$2"
ca9f4b81 12159 else
2693c0b0 12160 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12161 fi
1c00b503
PB
12162else
12163 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
12164fi
12165
d1f8db0c
PB
12166else
12167 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
12168fi
12169
12170
12171
12172
12173if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12174 if test -n "$with_build_time_tools"; then
5213506e
RW
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12176$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12177 if test -x $with_build_time_tools/objdump; then
12178 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12179 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12181$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 12182 else
5213506e
RW
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12184$as_echo "no" >&6; }
d1f8db0c 12185 fi
e8b05380
PB
12186 elif test $build != $host && test $have_gcc_for_target = yes; then
12187 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
12188 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12189 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
12190 fi
12191fi
3e19841a 12192if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12193 # Extract the first word of "objdump", so it can be a program name with args.
12194set dummy objdump; ac_word=$2
5213506e
RW
12195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12196$as_echo_n "checking for $ac_word... " >&6; }
12197if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12198 $as_echo_n "(cached) " >&6
e8b05380 12199else
1c710c3c
DJ
12200 case $OBJDUMP_FOR_TARGET in
12201 [\\/]* | ?:[\\/]*)
e8b05380
PB
12202 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12203 ;;
e8b05380 12204 *)
1c710c3c
DJ
12205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12206for as_dir in $gcc_cv_tool_dirs
12207do
12208 IFS=$as_save_IFS
12209 test -z "$as_dir" && as_dir=.
5213506e
RW
12210 for ac_exec_ext in '' $ac_executable_extensions; do
12211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12212 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12214 break 2
12215 fi
12216done
5213506e
RW
12217 done
12218IFS=$as_save_IFS
1c710c3c 12219
e8b05380
PB
12220 ;;
12221esac
12222fi
1c710c3c 12223OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 12224if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12226$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 12227else
5213506e
RW
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12229$as_echo "no" >&6; }
e8b05380
PB
12230fi
12231
5213506e 12232
e8b05380
PB
12233fi
12234if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
12235
12236
12237if test -n "$OBJDUMP_FOR_TARGET"; then
12238 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12239elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12240 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12241fi
12242
12243if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12244 for ncn_progname in objdump; do
12245 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12246set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12248$as_echo_n "checking for $ac_word... " >&6; }
12249if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12250 $as_echo_n "(cached) " >&6
278a7a38
AO
12251else
12252 if test -n "$OBJDUMP_FOR_TARGET"; then
12253 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12254else
12255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12256for as_dir in $PATH
12257do
12258 IFS=$as_save_IFS
12259 test -z "$as_dir" && as_dir=.
5213506e
RW
12260 for ac_exec_ext in '' $ac_executable_extensions; do
12261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12262 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12264 break 2
12265 fi
12266done
5213506e
RW
12267 done
12268IFS=$as_save_IFS
278a7a38
AO
12269
12270fi
12271fi
12272OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12273if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12275$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 12276else
5213506e
RW
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12278$as_echo "no" >&6; }
278a7a38
AO
12279fi
12280
5213506e 12281
278a7a38
AO
12282 done
12283fi
12284
12285if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12286 for ncn_progname in objdump; do
5213506e
RW
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12288$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12289 if test -x $with_build_time_tools/${ncn_progname}; then
12290 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12292$as_echo "yes" >&6; }
e8b05380
PB
12293 break
12294 else
5213506e
RW
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12296$as_echo "no" >&6; }
e8b05380
PB
12297 fi
12298 done
12299fi
12300
12301if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12302 for ncn_progname in objdump; do
12303 if test -n "$ncn_target_tool_prefix"; then
12304 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12305set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12307$as_echo_n "checking for $ac_word... " >&6; }
12308if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12309 $as_echo_n "(cached) " >&6
d739199a
DJ
12310else
12311 if test -n "$OBJDUMP_FOR_TARGET"; then
12312 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12313else
1c710c3c
DJ
12314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12315for as_dir in $PATH
12316do
12317 IFS=$as_save_IFS
12318 test -z "$as_dir" && as_dir=.
5213506e
RW
12319 for ac_exec_ext in '' $ac_executable_extensions; do
12320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12321 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12323 break 2
12324 fi
12325done
5213506e
RW
12326 done
12327IFS=$as_save_IFS
1c710c3c 12328
d739199a
DJ
12329fi
12330fi
1c710c3c 12331OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12332if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12334$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12335else
5213506e
RW
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12337$as_echo "no" >&6; }
d739199a
DJ
12338fi
12339
5213506e 12340
e8b05380
PB
12341 fi
12342 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12343 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 12344set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12346$as_echo_n "checking for $ac_word... " >&6; }
12347if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12348 $as_echo_n "(cached) " >&6
d739199a
DJ
12349else
12350 if test -n "$OBJDUMP_FOR_TARGET"; then
12351 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12352else
1c710c3c
DJ
12353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12354for as_dir in $PATH
12355do
12356 IFS=$as_save_IFS
12357 test -z "$as_dir" && as_dir=.
5213506e
RW
12358 for ac_exec_ext in '' $ac_executable_extensions; do
12359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12360 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12362 break 2
12363 fi
12364done
5213506e
RW
12365 done
12366IFS=$as_save_IFS
1c710c3c 12367
d739199a
DJ
12368fi
12369fi
1c710c3c 12370OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12371if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12373$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12374else
5213506e
RW
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12376$as_echo "no" >&6; }
d739199a 12377fi
1c710c3c 12378
5213506e 12379
e8b05380
PB
12380 fi
12381 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12382 done
12383fi
1c710c3c 12384
d739199a
DJ
12385if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12386 set dummy objdump
12387 if test $build = $target ; then
12388 OBJDUMP_FOR_TARGET="$2"
12389 else
12390 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12391 fi
1c00b503
PB
12392else
12393 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
12394fi
12395
d1f8db0c
PB
12396else
12397 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
12398fi
12399
12400
12401
12402
12403if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12404 if test -n "$with_build_time_tools"; then
5213506e
RW
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12406$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12407 if test -x $with_build_time_tools/ranlib; then
12408 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12409 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12411$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 12412 else
5213506e
RW
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12414$as_echo "no" >&6; }
d1f8db0c 12415 fi
e8b05380
PB
12416 elif test $build != $host && test $have_gcc_for_target = yes; then
12417 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
12418 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12419 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
12420 fi
12421fi
3e19841a 12422if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12423 # Extract the first word of "ranlib", so it can be a program name with args.
12424set dummy ranlib; ac_word=$2
5213506e
RW
12425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12426$as_echo_n "checking for $ac_word... " >&6; }
12427if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12428 $as_echo_n "(cached) " >&6
e8b05380 12429else
1c710c3c
DJ
12430 case $RANLIB_FOR_TARGET in
12431 [\\/]* | ?:[\\/]*)
e8b05380
PB
12432 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12433 ;;
e8b05380 12434 *)
1c710c3c
DJ
12435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12436for as_dir in $gcc_cv_tool_dirs
12437do
12438 IFS=$as_save_IFS
12439 test -z "$as_dir" && as_dir=.
5213506e
RW
12440 for ac_exec_ext in '' $ac_executable_extensions; do
12441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12442 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12444 break 2
12445 fi
12446done
5213506e
RW
12447 done
12448IFS=$as_save_IFS
1c710c3c 12449
e8b05380
PB
12450 ;;
12451esac
12452fi
1c710c3c 12453RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 12454if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12456$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 12457else
5213506e
RW
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12459$as_echo "no" >&6; }
e8b05380
PB
12460fi
12461
5213506e 12462
e8b05380
PB
12463fi
12464if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
12465
12466
12467if test -n "$RANLIB_FOR_TARGET"; then
12468 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12469elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12470 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12471fi
12472
12473if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12474 for ncn_progname in ranlib; do
12475 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12476set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12478$as_echo_n "checking for $ac_word... " >&6; }
12479if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12480 $as_echo_n "(cached) " >&6
278a7a38
AO
12481else
12482 if test -n "$RANLIB_FOR_TARGET"; then
12483 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12484else
12485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12486for as_dir in $PATH
12487do
12488 IFS=$as_save_IFS
12489 test -z "$as_dir" && as_dir=.
5213506e
RW
12490 for ac_exec_ext in '' $ac_executable_extensions; do
12491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12492 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12494 break 2
12495 fi
12496done
5213506e
RW
12497 done
12498IFS=$as_save_IFS
278a7a38
AO
12499
12500fi
12501fi
12502RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12503if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12505$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 12506else
5213506e
RW
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12508$as_echo "no" >&6; }
278a7a38
AO
12509fi
12510
5213506e 12511
278a7a38
AO
12512 done
12513fi
12514
12515if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12516 for ncn_progname in ranlib; do
5213506e
RW
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12518$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12519 if test -x $with_build_time_tools/${ncn_progname}; then
12520 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12522$as_echo "yes" >&6; }
e8b05380
PB
12523 break
12524 else
5213506e
RW
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12526$as_echo "no" >&6; }
e8b05380
PB
12527 fi
12528 done
12529fi
12530
12531if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12532 for ncn_progname in ranlib; do
12533 if test -n "$ncn_target_tool_prefix"; then
12534 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 12535set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12537$as_echo_n "checking for $ac_word... " >&6; }
12538if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12539 $as_echo_n "(cached) " >&6
ca9f4b81 12540else
4de997d1
PB
12541 if test -n "$RANLIB_FOR_TARGET"; then
12542 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12543else
1c710c3c
DJ
12544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12545for as_dir in $PATH
12546do
12547 IFS=$as_save_IFS
12548 test -z "$as_dir" && as_dir=.
5213506e
RW
12549 for ac_exec_ext in '' $ac_executable_extensions; do
12550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12551 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12553 break 2
12554 fi
12555done
5213506e
RW
12556 done
12557IFS=$as_save_IFS
1c710c3c 12558
ca9f4b81
AO
12559fi
12560fi
1c710c3c 12561RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 12562if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12564$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12565else
5213506e
RW
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12567$as_echo "no" >&6; }
ca9f4b81
AO
12568fi
12569
5213506e 12570
e8b05380
PB
12571 fi
12572 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12573 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12574set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12576$as_echo_n "checking for $ac_word... " >&6; }
12577if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12578 $as_echo_n "(cached) " >&6
ca9f4b81 12579else
2693c0b0
PB
12580 if test -n "$RANLIB_FOR_TARGET"; then
12581 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12582else
1c710c3c
DJ
12583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12584for as_dir in $PATH
12585do
12586 IFS=$as_save_IFS
12587 test -z "$as_dir" && as_dir=.
5213506e
RW
12588 for ac_exec_ext in '' $ac_executable_extensions; do
12589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12590 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12592 break 2
12593 fi
12594done
5213506e
RW
12595 done
12596IFS=$as_save_IFS
1c710c3c 12597
ca9f4b81
AO
12598fi
12599fi
1c710c3c 12600RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 12601if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12603$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12604else
5213506e
RW
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12606$as_echo "no" >&6; }
ca9f4b81 12607fi
1c710c3c 12608
5213506e 12609
e8b05380
PB
12610 fi
12611 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12612 done
12613fi
1c710c3c 12614
e8b05380
PB
12615if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12616 set dummy ranlib
12617 if test $build = $target ; then
12618 RANLIB_FOR_TARGET="$2"
12619 else
12620 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12621 fi
1c00b503
PB
12622else
12623 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 12624fi
2693c0b0 12625
d1f8db0c
PB
12626else
12627 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
12628fi
12629
e8b05380
PB
12630
12631
12632
e7a82751
RM
12633if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12634 if test -n "$with_build_time_tools"; then
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12636$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12637 if test -x $with_build_time_tools/readelf; then
12638 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12639 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12641$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12642 else
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12644$as_echo "no" >&6; }
12645 fi
12646 elif test $build != $host && test $have_gcc_for_target = yes; then
12647 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12648 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12649 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12650 fi
12651fi
12652if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12653 # Extract the first word of "readelf", so it can be a program name with args.
12654set dummy readelf; ac_word=$2
12655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12656$as_echo_n "checking for $ac_word... " >&6; }
12657if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12658 $as_echo_n "(cached) " >&6
12659else
12660 case $READELF_FOR_TARGET in
12661 [\\/]* | ?:[\\/]*)
12662 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12663 ;;
12664 *)
12665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12666for as_dir in $gcc_cv_tool_dirs
12667do
12668 IFS=$as_save_IFS
12669 test -z "$as_dir" && as_dir=.
12670 for ac_exec_ext in '' $ac_executable_extensions; do
12671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12672 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12674 break 2
12675 fi
12676done
12677 done
12678IFS=$as_save_IFS
12679
12680 ;;
12681esac
12682fi
12683READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12684if test -n "$READELF_FOR_TARGET"; then
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12686$as_echo "$READELF_FOR_TARGET" >&6; }
12687else
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12689$as_echo "no" >&6; }
12690fi
12691
12692
12693fi
12694if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12695
12696
12697if test -n "$READELF_FOR_TARGET"; then
12698 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12699elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12700 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12701fi
12702
12703if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12704 for ncn_progname in readelf; do
12705 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12706set dummy ${ncn_progname}; ac_word=$2
12707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12708$as_echo_n "checking for $ac_word... " >&6; }
12709if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12710 $as_echo_n "(cached) " >&6
12711else
12712 if test -n "$READELF_FOR_TARGET"; then
12713 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12714else
12715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12716for as_dir in $PATH
12717do
12718 IFS=$as_save_IFS
12719 test -z "$as_dir" && as_dir=.
12720 for ac_exec_ext in '' $ac_executable_extensions; do
12721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12722 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12724 break 2
12725 fi
12726done
12727 done
12728IFS=$as_save_IFS
12729
12730fi
12731fi
12732READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12733if test -n "$READELF_FOR_TARGET"; then
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12735$as_echo "$READELF_FOR_TARGET" >&6; }
12736else
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12738$as_echo "no" >&6; }
12739fi
12740
12741
12742 done
12743fi
12744
12745if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12746 for ncn_progname in readelf; do
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12748$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12749 if test -x $with_build_time_tools/${ncn_progname}; then
12750 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12752$as_echo "yes" >&6; }
12753 break
12754 else
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12756$as_echo "no" >&6; }
12757 fi
12758 done
12759fi
12760
12761if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12762 for ncn_progname in readelf; do
12763 if test -n "$ncn_target_tool_prefix"; then
12764 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12765set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12767$as_echo_n "checking for $ac_word... " >&6; }
12768if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12769 $as_echo_n "(cached) " >&6
12770else
12771 if test -n "$READELF_FOR_TARGET"; then
12772 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12773else
12774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12775for as_dir in $PATH
12776do
12777 IFS=$as_save_IFS
12778 test -z "$as_dir" && as_dir=.
12779 for ac_exec_ext in '' $ac_executable_extensions; do
12780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12781 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12783 break 2
12784 fi
12785done
12786 done
12787IFS=$as_save_IFS
12788
12789fi
12790fi
12791READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12792if test -n "$READELF_FOR_TARGET"; then
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12794$as_echo "$READELF_FOR_TARGET" >&6; }
12795else
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12797$as_echo "no" >&6; }
12798fi
12799
12800
12801 fi
12802 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12803 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12804set dummy ${ncn_progname}; ac_word=$2
12805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12806$as_echo_n "checking for $ac_word... " >&6; }
12807if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12808 $as_echo_n "(cached) " >&6
12809else
12810 if test -n "$READELF_FOR_TARGET"; then
12811 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12812else
12813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12814for as_dir in $PATH
12815do
12816 IFS=$as_save_IFS
12817 test -z "$as_dir" && as_dir=.
12818 for ac_exec_ext in '' $ac_executable_extensions; do
12819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12820 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12822 break 2
12823 fi
12824done
12825 done
12826IFS=$as_save_IFS
12827
12828fi
12829fi
12830READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12831if test -n "$READELF_FOR_TARGET"; then
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12833$as_echo "$READELF_FOR_TARGET" >&6; }
12834else
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12836$as_echo "no" >&6; }
12837fi
12838
12839
12840 fi
12841 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12842 done
12843fi
12844
12845if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12846 set dummy readelf
12847 if test $build = $target ; then
12848 READELF_FOR_TARGET="$2"
12849 else
12850 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12851 fi
12852else
12853 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12854fi
12855
12856else
12857 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12858fi
12859
12860
12861
12862
e8b05380
PB
12863if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12864 if test -n "$with_build_time_tools"; then
5213506e
RW
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12866$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12867 if test -x $with_build_time_tools/strip; then
12868 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12869 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12871$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 12872 else
5213506e
RW
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12874$as_echo "no" >&6; }
d1f8db0c 12875 fi
e8b05380
PB
12876 elif test $build != $host && test $have_gcc_for_target = yes; then
12877 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
12878 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12879 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
12880 fi
12881fi
3e19841a 12882if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12883 # Extract the first word of "strip", so it can be a program name with args.
12884set dummy strip; ac_word=$2
5213506e
RW
12885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12886$as_echo_n "checking for $ac_word... " >&6; }
12887if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12888 $as_echo_n "(cached) " >&6
e8b05380 12889else
1c710c3c
DJ
12890 case $STRIP_FOR_TARGET in
12891 [\\/]* | ?:[\\/]*)
e8b05380
PB
12892 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12893 ;;
e8b05380 12894 *)
1c710c3c
DJ
12895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12896for as_dir in $gcc_cv_tool_dirs
12897do
12898 IFS=$as_save_IFS
12899 test -z "$as_dir" && as_dir=.
5213506e
RW
12900 for ac_exec_ext in '' $ac_executable_extensions; do
12901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12902 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12904 break 2
12905 fi
12906done
5213506e
RW
12907 done
12908IFS=$as_save_IFS
1c710c3c 12909
e8b05380
PB
12910 ;;
12911esac
12912fi
1c710c3c 12913STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 12914if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12916$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 12917else
5213506e
RW
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12919$as_echo "no" >&6; }
e8b05380
PB
12920fi
12921
5213506e 12922
e8b05380
PB
12923fi
12924if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
12925
12926
12927if test -n "$STRIP_FOR_TARGET"; then
12928 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12929elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12930 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12931fi
12932
12933if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12934 for ncn_progname in strip; do
12935 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12936set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12938$as_echo_n "checking for $ac_word... " >&6; }
12939if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12940 $as_echo_n "(cached) " >&6
278a7a38
AO
12941else
12942 if test -n "$STRIP_FOR_TARGET"; then
12943 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12944else
12945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12946for as_dir in $PATH
12947do
12948 IFS=$as_save_IFS
12949 test -z "$as_dir" && as_dir=.
5213506e
RW
12950 for ac_exec_ext in '' $ac_executable_extensions; do
12951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12952 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 12953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12954 break 2
12955 fi
12956done
5213506e
RW
12957 done
12958IFS=$as_save_IFS
278a7a38
AO
12959
12960fi
12961fi
12962STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12963if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12965$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 12966else
5213506e
RW
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12968$as_echo "no" >&6; }
278a7a38
AO
12969fi
12970
5213506e 12971
278a7a38
AO
12972 done
12973fi
12974
12975if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12976 for ncn_progname in strip; do
5213506e
RW
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12978$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12979 if test -x $with_build_time_tools/${ncn_progname}; then
12980 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12982$as_echo "yes" >&6; }
e8b05380
PB
12983 break
12984 else
5213506e
RW
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12986$as_echo "no" >&6; }
e8b05380
PB
12987 fi
12988 done
12989fi
12990
12991if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12992 for ncn_progname in strip; do
12993 if test -n "$ncn_target_tool_prefix"; then
12994 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12995set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12997$as_echo_n "checking for $ac_word... " >&6; }
12998if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12999 $as_echo_n "(cached) " >&6
af71363e
AS
13000else
13001 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
13002 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13003else
13004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13005for as_dir in $PATH
13006do
13007 IFS=$as_save_IFS
13008 test -z "$as_dir" && as_dir=.
5213506e
RW
13009 for ac_exec_ext in '' $ac_executable_extensions; do
13010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13011 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13013 break 2
13014 fi
13015done
5213506e
RW
13016 done
13017IFS=$as_save_IFS
1c710c3c 13018
040b1c5a
GK
13019fi
13020fi
1c710c3c 13021STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13022if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13024$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13025else
5213506e
RW
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13027$as_echo "no" >&6; }
040b1c5a
GK
13028fi
13029
5213506e 13030
e8b05380
PB
13031 fi
13032 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13033 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 13034set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13036$as_echo_n "checking for $ac_word... " >&6; }
13037if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13038 $as_echo_n "(cached) " >&6
040b1c5a
GK
13039else
13040 if test -n "$STRIP_FOR_TARGET"; then
13041 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13042else
1c710c3c
DJ
13043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13044for as_dir in $PATH
13045do
13046 IFS=$as_save_IFS
13047 test -z "$as_dir" && as_dir=.
5213506e
RW
13048 for ac_exec_ext in '' $ac_executable_extensions; do
13049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13050 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13052 break 2
13053 fi
13054done
5213506e
RW
13055 done
13056IFS=$as_save_IFS
1c710c3c 13057
040b1c5a
GK
13058fi
13059fi
1c710c3c 13060STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13061if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13063$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13064else
5213506e
RW
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13066$as_echo "no" >&6; }
040b1c5a 13067fi
1c710c3c 13068
5213506e 13069
e8b05380
PB
13070 fi
13071 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13072 done
13073fi
1c710c3c 13074
040b1c5a
GK
13075if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13076 set dummy strip
13077 if test $build = $target ; then
13078 STRIP_FOR_TARGET="$2"
13079 else
13080 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13081 fi
1c00b503
PB
13082else
13083 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
13084fi
13085
d1f8db0c
PB
13086else
13087 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
13088fi
13089
13090
13091
13092
13093if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13094 if test -n "$with_build_time_tools"; then
5213506e
RW
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13096$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13097 if test -x $with_build_time_tools/windres; then
13098 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13099 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13101$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 13102 else
5213506e
RW
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13104$as_echo "no" >&6; }
d1f8db0c 13105 fi
e8b05380
PB
13106 elif test $build != $host && test $have_gcc_for_target = yes; then
13107 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
13108 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13109 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
13110 fi
13111fi
3e19841a 13112if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13113 # Extract the first word of "windres", so it can be a program name with args.
13114set dummy windres; ac_word=$2
5213506e
RW
13115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13116$as_echo_n "checking for $ac_word... " >&6; }
13117if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13118 $as_echo_n "(cached) " >&6
e8b05380 13119else
1c710c3c
DJ
13120 case $WINDRES_FOR_TARGET in
13121 [\\/]* | ?:[\\/]*)
e8b05380
PB
13122 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13123 ;;
e8b05380 13124 *)
1c710c3c
DJ
13125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13126for as_dir in $gcc_cv_tool_dirs
13127do
13128 IFS=$as_save_IFS
13129 test -z "$as_dir" && as_dir=.
5213506e
RW
13130 for ac_exec_ext in '' $ac_executable_extensions; do
13131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13132 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13134 break 2
13135 fi
13136done
5213506e
RW
13137 done
13138IFS=$as_save_IFS
1c710c3c 13139
e8b05380
PB
13140 ;;
13141esac
13142fi
1c710c3c 13143WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 13144if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13146$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 13147else
5213506e
RW
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13149$as_echo "no" >&6; }
e8b05380
PB
13150fi
13151
5213506e 13152
e8b05380
PB
13153fi
13154if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
13155
13156
13157if test -n "$WINDRES_FOR_TARGET"; then
13158 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13159elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13160 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13161fi
13162
13163if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13164 for ncn_progname in windres; do
13165 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13166set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13168$as_echo_n "checking for $ac_word... " >&6; }
13169if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13170 $as_echo_n "(cached) " >&6
278a7a38
AO
13171else
13172 if test -n "$WINDRES_FOR_TARGET"; then
13173 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13174else
13175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13176for as_dir in $PATH
13177do
13178 IFS=$as_save_IFS
13179 test -z "$as_dir" && as_dir=.
5213506e
RW
13180 for ac_exec_ext in '' $ac_executable_extensions; do
13181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 13182 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13184 break 2
13185 fi
13186done
5213506e
RW
13187 done
13188IFS=$as_save_IFS
278a7a38
AO
13189
13190fi
13191fi
13192WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13193if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13195$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 13196else
5213506e
RW
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13198$as_echo "no" >&6; }
278a7a38
AO
13199fi
13200
5213506e 13201
278a7a38
AO
13202 done
13203fi
13204
13205if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13206 for ncn_progname in windres; do
5213506e
RW
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13208$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13209 if test -x $with_build_time_tools/${ncn_progname}; then
13210 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13212$as_echo "yes" >&6; }
e8b05380
PB
13213 break
13214 else
5213506e
RW
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13216$as_echo "no" >&6; }
e8b05380
PB
13217 fi
13218 done
13219fi
13220
13221if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13222 for ncn_progname in windres; do
13223 if test -n "$ncn_target_tool_prefix"; then
13224 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13225set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13227$as_echo_n "checking for $ac_word... " >&6; }
13228if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13229 $as_echo_n "(cached) " >&6
ca9f4b81 13230else
4de997d1
PB
13231 if test -n "$WINDRES_FOR_TARGET"; then
13232 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13233else
1c710c3c
DJ
13234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13235for as_dir in $PATH
13236do
13237 IFS=$as_save_IFS
13238 test -z "$as_dir" && as_dir=.
5213506e
RW
13239 for ac_exec_ext in '' $ac_executable_extensions; do
13240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13241 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13243 break 2
13244 fi
13245done
5213506e
RW
13246 done
13247IFS=$as_save_IFS
1c710c3c 13248
ca9f4b81
AO
13249fi
13250fi
1c710c3c 13251WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 13252if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13254$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13255else
5213506e
RW
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13257$as_echo "no" >&6; }
ca9f4b81
AO
13258fi
13259
5213506e 13260
e8b05380
PB
13261 fi
13262 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13263 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13264set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13266$as_echo_n "checking for $ac_word... " >&6; }
13267if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13268 $as_echo_n "(cached) " >&6
ca9f4b81 13269else
2693c0b0
PB
13270 if test -n "$WINDRES_FOR_TARGET"; then
13271 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13272else
1c710c3c
DJ
13273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13274for as_dir in $PATH
13275do
13276 IFS=$as_save_IFS
13277 test -z "$as_dir" && as_dir=.
5213506e
RW
13278 for ac_exec_ext in '' $ac_executable_extensions; do
13279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13280 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13282 break 2
13283 fi
13284done
5213506e
RW
13285 done
13286IFS=$as_save_IFS
1c710c3c 13287
ca9f4b81
AO
13288fi
13289fi
1c710c3c 13290WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 13291if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13293$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13294else
5213506e
RW
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13296$as_echo "no" >&6; }
ca9f4b81 13297fi
1c710c3c 13298
5213506e 13299
e8b05380
PB
13300 fi
13301 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13302 done
13303fi
1c710c3c 13304
2693c0b0
PB
13305if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13306 set dummy windres
13307 if test $build = $target ; then
13308 WINDRES_FOR_TARGET="$2"
ca9f4b81 13309 else
2693c0b0 13310 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 13311 fi
1c00b503
PB
13312else
13313 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
13314fi
13315
d1f8db0c
PB
13316else
13317 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
13318fi
13319
4977bab6 13320
901119ae
KT
13321
13322
13323if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13324 if test -n "$with_build_time_tools"; then
5213506e
RW
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13326$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
13327 if test -x $with_build_time_tools/windmc; then
13328 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13329 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13331$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 13332 else
5213506e
RW
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13334$as_echo "no" >&6; }
901119ae
KT
13335 fi
13336 elif test $build != $host && test $have_gcc_for_target = yes; then
13337 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
13338 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13339 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
13340 fi
13341fi
13342if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13343 # Extract the first word of "windmc", so it can be a program name with args.
13344set dummy windmc; ac_word=$2
5213506e
RW
13345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13346$as_echo_n "checking for $ac_word... " >&6; }
13347if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13348 $as_echo_n "(cached) " >&6
901119ae
KT
13349else
13350 case $WINDMC_FOR_TARGET in
13351 [\\/]* | ?:[\\/]*)
13352 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13353 ;;
13354 *)
13355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13356for as_dir in $gcc_cv_tool_dirs
13357do
13358 IFS=$as_save_IFS
13359 test -z "$as_dir" && as_dir=.
5213506e
RW
13360 for ac_exec_ext in '' $ac_executable_extensions; do
13361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13362 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13364 break 2
13365 fi
13366done
5213506e
RW
13367 done
13368IFS=$as_save_IFS
901119ae
KT
13369
13370 ;;
13371esac
13372fi
13373WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 13374if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13376$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13377else
5213506e
RW
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13379$as_echo "no" >&6; }
901119ae
KT
13380fi
13381
5213506e 13382
901119ae
KT
13383fi
13384if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13385
13386
13387if test -n "$WINDMC_FOR_TARGET"; then
13388 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13389elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13390 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13391fi
13392
13393if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13394 for ncn_progname in windmc; do
13395 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13396set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13398$as_echo_n "checking for $ac_word... " >&6; }
13399if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13400 $as_echo_n "(cached) " >&6
901119ae
KT
13401else
13402 if test -n "$WINDMC_FOR_TARGET"; then
13403 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13404else
13405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13406for as_dir in $PATH
13407do
13408 IFS=$as_save_IFS
13409 test -z "$as_dir" && as_dir=.
5213506e
RW
13410 for ac_exec_ext in '' $ac_executable_extensions; do
13411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13412 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13414 break 2
13415 fi
13416done
5213506e
RW
13417 done
13418IFS=$as_save_IFS
901119ae
KT
13419
13420fi
13421fi
13422WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13423if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13425$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13426else
5213506e
RW
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13428$as_echo "no" >&6; }
901119ae
KT
13429fi
13430
5213506e 13431
901119ae
KT
13432 done
13433fi
13434
13435if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13436 for ncn_progname in windmc; do
5213506e
RW
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13438$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
13439 if test -x $with_build_time_tools/${ncn_progname}; then
13440 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13442$as_echo "yes" >&6; }
901119ae
KT
13443 break
13444 else
5213506e
RW
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13446$as_echo "no" >&6; }
901119ae
KT
13447 fi
13448 done
13449fi
13450
13451if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13452 for ncn_progname in windmc; do
13453 if test -n "$ncn_target_tool_prefix"; then
13454 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13455set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13457$as_echo_n "checking for $ac_word... " >&6; }
13458if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13459 $as_echo_n "(cached) " >&6
901119ae
KT
13460else
13461 if test -n "$WINDMC_FOR_TARGET"; then
13462 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13463else
13464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13465for as_dir in $PATH
13466do
13467 IFS=$as_save_IFS
13468 test -z "$as_dir" && as_dir=.
5213506e
RW
13469 for ac_exec_ext in '' $ac_executable_extensions; do
13470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13471 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13473 break 2
13474 fi
13475done
5213506e
RW
13476 done
13477IFS=$as_save_IFS
901119ae
KT
13478
13479fi
13480fi
13481WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13482if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13484$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13485else
5213506e
RW
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13487$as_echo "no" >&6; }
901119ae
KT
13488fi
13489
5213506e 13490
901119ae
KT
13491 fi
13492 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13494set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13496$as_echo_n "checking for $ac_word... " >&6; }
13497if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13498 $as_echo_n "(cached) " >&6
901119ae
KT
13499else
13500 if test -n "$WINDMC_FOR_TARGET"; then
13501 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13502else
13503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13504for as_dir in $PATH
13505do
13506 IFS=$as_save_IFS
13507 test -z "$as_dir" && as_dir=.
5213506e
RW
13508 for ac_exec_ext in '' $ac_executable_extensions; do
13509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13510 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13512 break 2
13513 fi
13514done
5213506e
RW
13515 done
13516IFS=$as_save_IFS
901119ae
KT
13517
13518fi
13519fi
13520WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13521if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13523$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13524else
5213506e
RW
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13526$as_echo "no" >&6; }
901119ae
KT
13527fi
13528
5213506e 13529
901119ae
KT
13530 fi
13531 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13532 done
13533fi
13534
13535if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13536 set dummy windmc
13537 if test $build = $target ; then
13538 WINDMC_FOR_TARGET="$2"
13539 else
13540 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13541 fi
1c00b503
PB
13542else
13543 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
13544fi
13545
13546else
13547 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13548fi
13549
13550
2abefe3d
PB
13551RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13552
5213506e
RW
13553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13554$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 13555if test "x${build}" != "x${host}" ; then
e8b05380
PB
13556 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13557 # We already found the complete path
172e41aa 13558 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13560$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13561 else
13562 # Canadian cross, just use what we found
5213506e
RW
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13564$as_echo "pre-installed" >&6; }
e8b05380 13565 fi
2abefe3d
PB
13566else
13567 ok=yes
13568 case " ${configdirs} " in
13569 *" binutils "*) ;;
13570 *) ok=no ;;
13571 esac
1c710c3c 13572
2abefe3d
PB
13573 if test $ok = yes; then
13574 # An in-tree tool is available and we can use it
13575 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13577$as_echo "just compiled" >&6; }
e8b05380
PB
13578 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13579 # We already found the complete path
172e41aa 13580 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13582$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13583 elif test "x$target" = "x$host"; then
13584 # We can use an host tool
13585 AR_FOR_TARGET='$(AR)'
5213506e
RW
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13587$as_echo "host tool" >&6; }
2abefe3d
PB
13588 else
13589 # We need a cross tool
5213506e
RW
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13591$as_echo "pre-installed" >&6; }
2abefe3d
PB
13592 fi
13593fi
0b0dc272 13594
5213506e
RW
13595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13596$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 13597if test "x${build}" != "x${host}" ; then
e8b05380
PB
13598 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13599 # We already found the complete path
172e41aa 13600 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13602$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13603 else
13604 # Canadian cross, just use what we found
5213506e
RW
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13606$as_echo "pre-installed" >&6; }
e8b05380 13607 fi
2abefe3d
PB
13608else
13609 ok=yes
13610 case " ${configdirs} " in
13611 *" gas "*) ;;
13612 *) ok=no ;;
13613 esac
1c710c3c 13614
2abefe3d
PB
13615 if test $ok = yes; then
13616 # An in-tree tool is available and we can use it
13617 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13619$as_echo "just compiled" >&6; }
e8b05380
PB
13620 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13621 # We already found the complete path
172e41aa 13622 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13624$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13625 elif test "x$target" = "x$host"; then
13626 # We can use an host tool
13627 AS_FOR_TARGET='$(AS)'
5213506e
RW
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13629$as_echo "host tool" >&6; }
2abefe3d
PB
13630 else
13631 # We need a cross tool
5213506e
RW
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13633$as_echo "pre-installed" >&6; }
2abefe3d
PB
13634 fi
13635fi
0b0dc272 13636
5213506e
RW
13637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13638$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 13639if test "x${build}" != "x${host}" ; then
e8b05380
PB
13640 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13641 # We already found the complete path
172e41aa 13642 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13644$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13645 else
13646 # Canadian cross, just use what we found
5213506e
RW
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13648$as_echo "pre-installed" >&6; }
e8b05380 13649 fi
2abefe3d
PB
13650else
13651 ok=yes
13652 case " ${configdirs} " in
13653 *" gcc "*) ;;
13654 *) ok=no ;;
13655 esac
1c710c3c 13656
2abefe3d
PB
13657 if test $ok = yes; then
13658 # An in-tree tool is available and we can use it
13659 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13661$as_echo "just compiled" >&6; }
e8b05380
PB
13662 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13663 # We already found the complete path
172e41aa 13664 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13666$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13667 elif test "x$target" = "x$host"; then
13668 # We can use an host tool
13669 CC_FOR_TARGET='$(CC)'
5213506e
RW
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13671$as_echo "host tool" >&6; }
2abefe3d
PB
13672 else
13673 # We need a cross tool
5213506e
RW
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13675$as_echo "pre-installed" >&6; }
2abefe3d
PB
13676 fi
13677fi
0b0dc272 13678
5213506e
RW
13679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13680$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 13681if test "x${build}" != "x${host}" ; then
e8b05380
PB
13682 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13683 # We already found the complete path
172e41aa 13684 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13686$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13687 else
13688 # Canadian cross, just use what we found
5213506e
RW
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13690$as_echo "pre-installed" >&6; }
e8b05380 13691 fi
2abefe3d
PB
13692else
13693 ok=yes
13694 case " ${configdirs} " in
13695 *" gcc "*) ;;
13696 *) ok=no ;;
13697 esac
13698 case ,${enable_languages}, in
13699 *,c++,*) ;;
13700 *) ok=no ;;
13701 esac
13702 if test $ok = yes; then
13703 # An in-tree tool is available and we can use it
2077db1b 13704 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
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13706$as_echo "just compiled" >&6; }
e8b05380
PB
13707 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13708 # We already found the complete path
172e41aa 13709 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13711$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13712 elif test "x$target" = "x$host"; then
13713 # We can use an host tool
13714 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13716$as_echo "host tool" >&6; }
2abefe3d
PB
13717 else
13718 # We need a cross tool
5213506e
RW
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13720$as_echo "pre-installed" >&6; }
2abefe3d
PB
13721 fi
13722fi
0b0dc272 13723
5213506e
RW
13724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13725$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 13726if test "x${build}" != "x${host}" ; then
e8b05380
PB
13727 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13728 # We already found the complete path
172e41aa 13729 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13731$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13732 else
13733 # Canadian cross, just use what we found
5213506e
RW
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13735$as_echo "pre-installed" >&6; }
e8b05380 13736 fi
2abefe3d
PB
13737else
13738 ok=yes
13739 case " ${configdirs} " in
13740 *" gcc "*) ;;
13741 *) ok=no ;;
13742 esac
13743 case ,${enable_languages}, in
13744 *,c++,*) ;;
13745 *) ok=no ;;
13746 esac
13747 if test $ok = yes; then
13748 # An in-tree tool is available and we can use it
2077db1b 13749 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
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13751$as_echo "just compiled" >&6; }
e8b05380
PB
13752 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13753 # We already found the complete path
172e41aa 13754 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13756$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13757 elif test "x$target" = "x$host"; then
13758 # We can use an host tool
13759 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13761$as_echo "host tool" >&6; }
2abefe3d
PB
13762 else
13763 # We need a cross tool
5213506e
RW
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13765$as_echo "pre-installed" >&6; }
2abefe3d
PB
13766 fi
13767fi
0b0dc272 13768
5213506e
RW
13769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13770$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 13771if test "x${build}" != "x${host}" ; then
e8b05380
PB
13772 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13773 # We already found the complete path
172e41aa 13774 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13776$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13777 else
13778 # Canadian cross, just use what we found
5213506e
RW
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13780$as_echo "pre-installed" >&6; }
e8b05380 13781 fi
2abefe3d
PB
13782else
13783 ok=yes
13784 case " ${configdirs} " in
13785 *" binutils "*) ;;
13786 *) ok=no ;;
13787 esac
1c710c3c 13788
2abefe3d
PB
13789 if test $ok = yes; then
13790 # An in-tree tool is available and we can use it
13791 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13793$as_echo "just compiled" >&6; }
e8b05380
PB
13794 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13795 # We already found the complete path
172e41aa 13796 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13798$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13799 elif test "x$target" = "x$host"; then
13800 # We can use an host tool
13801 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13803$as_echo "host tool" >&6; }
2abefe3d
PB
13804 else
13805 # We need a cross tool
5213506e
RW
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13807$as_echo "pre-installed" >&6; }
2abefe3d
PB
13808 fi
13809fi
0b0dc272 13810
5213506e
RW
13811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13812$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 13813if test "x${build}" != "x${host}" ; then
e8b05380
PB
13814 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13815 # We already found the complete path
172e41aa 13816 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13818$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13819 else
13820 # Canadian cross, just use what we found
5213506e
RW
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13822$as_echo "pre-installed" >&6; }
e8b05380 13823 fi
2abefe3d
PB
13824else
13825 ok=yes
13826 case " ${configdirs} " in
13827 *" gcc "*) ;;
13828 *) ok=no ;;
13829 esac
1c710c3c 13830
2abefe3d
PB
13831 if test $ok = yes; then
13832 # An in-tree tool is available and we can use it
13833 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13835$as_echo "just compiled" >&6; }
e8b05380
PB
13836 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13837 # We already found the complete path
172e41aa 13838 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13840$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13841 elif test "x$target" = "x$host"; then
13842 # We can use an host tool
13843 GCC_FOR_TARGET='$()'
5213506e
RW
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13845$as_echo "host tool" >&6; }
2abefe3d
PB
13846 else
13847 # We need a cross tool
5213506e
RW
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13849$as_echo "pre-installed" >&6; }
2abefe3d
PB
13850 fi
13851fi
0b0dc272 13852
5213506e
RW
13853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13854$as_echo_n "checking where to find the target gcj... " >&6; }
2abefe3d 13855if test "x${build}" != "x${host}" ; then
e8b05380
PB
13856 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13857 # We already found the complete path
172e41aa 13858 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13860$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13861 else
13862 # Canadian cross, just use what we found
5213506e
RW
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13864$as_echo "pre-installed" >&6; }
e8b05380 13865 fi
2abefe3d
PB
13866else
13867 ok=yes
13868 case " ${configdirs} " in
13869 *" gcc "*) ;;
13870 *) ok=no ;;
13871 esac
13872 case ,${enable_languages}, in
13873 *,java,*) ;;
13874 *) ok=no ;;
13875 esac
13876 if test $ok = yes; then
13877 # An in-tree tool is available and we can use it
13878 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13880$as_echo "just compiled" >&6; }
e8b05380
PB
13881 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13882 # We already found the complete path
172e41aa 13883 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13885$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13886 elif test "x$target" = "x$host"; then
13887 # We can use an host tool
13888 GCJ_FOR_TARGET='$(GCJ)'
5213506e
RW
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13890$as_echo "host tool" >&6; }
2abefe3d
PB
13891 else
13892 # We need a cross tool
5213506e
RW
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13894$as_echo "pre-installed" >&6; }
2abefe3d
PB
13895 fi
13896fi
0b0dc272 13897
5213506e
RW
13898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13899$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 13900if test "x${build}" != "x${host}" ; then
e8b05380
PB
13901 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13902 # We already found the complete path
172e41aa 13903 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13905$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13906 else
13907 # Canadian cross, just use what we found
5213506e
RW
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13909$as_echo "pre-installed" >&6; }
e8b05380 13910 fi
2abefe3d
PB
13911else
13912 ok=yes
13913 case " ${configdirs} " in
13914 *" gcc "*) ;;
13915 *) ok=no ;;
13916 esac
13917 case ,${enable_languages}, in
13918 *,fortran,*) ;;
13919 *) ok=no ;;
13920 esac
13921 if test $ok = yes; then
13922 # An in-tree tool is available and we can use it
13923 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13925$as_echo "just compiled" >&6; }
e8b05380
PB
13926 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13927 # We already found the complete path
172e41aa 13928 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13930$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13931 elif test "x$target" = "x$host"; then
13932 # We can use an host tool
13933 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13935$as_echo "host tool" >&6; }
2abefe3d
PB
13936 else
13937 # We need a cross tool
5213506e
RW
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13939$as_echo "pre-installed" >&6; }
2abefe3d
PB
13940 fi
13941fi
0b0dc272 13942
632e2a07
ILT
13943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13944$as_echo_n "checking where to find the target gccgo... " >&6; }
13945if test "x${build}" != "x${host}" ; then
13946 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13947 # We already found the complete path
13948 ac_dir=`dirname $GOC_FOR_TARGET`
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13950$as_echo "pre-installed in $ac_dir" >&6; }
13951 else
13952 # Canadian cross, just use what we found
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13954$as_echo "pre-installed" >&6; }
13955 fi
13956else
13957 ok=yes
13958 case " ${configdirs} " in
13959 *" gcc "*) ;;
13960 *) ok=no ;;
13961 esac
13962 case ,${enable_languages}, in
13963 *,go,*) ;;
13964 *) ok=no ;;
13965 esac
13966 if test $ok = yes; then
13967 # An in-tree tool is available and we can use it
13968 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13970$as_echo "just compiled" >&6; }
13971 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13972 # We already found the complete path
13973 ac_dir=`dirname $GOC_FOR_TARGET`
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13975$as_echo "pre-installed in $ac_dir" >&6; }
13976 elif test "x$target" = "x$host"; then
13977 # We can use an host tool
13978 GOC_FOR_TARGET='$(GOC)'
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13980$as_echo "host tool" >&6; }
13981 else
13982 # We need a cross tool
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13984$as_echo "pre-installed" >&6; }
13985 fi
13986fi
13987
5213506e
RW
13988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13989$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 13990if test "x${build}" != "x${host}" ; then
e8b05380
PB
13991 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13992 # We already found the complete path
172e41aa 13993 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13995$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13996 else
13997 # Canadian cross, just use what we found
5213506e
RW
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13999$as_echo "pre-installed" >&6; }
e8b05380 14000 fi
2abefe3d
PB
14001else
14002 ok=yes
14003 case " ${configdirs} " in
14004 *" ld "*) ;;
14005 *) ok=no ;;
14006 esac
1c710c3c 14007
2abefe3d
PB
14008 if test $ok = yes; then
14009 # An in-tree tool is available and we can use it
14010 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14012$as_echo "just compiled" >&6; }
e8b05380
PB
14013 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14014 # We already found the complete path
172e41aa 14015 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14017$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14018 elif test "x$target" = "x$host"; then
14019 # We can use an host tool
14020 LD_FOR_TARGET='$(LD)'
5213506e
RW
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14022$as_echo "host tool" >&6; }
2abefe3d
PB
14023 else
14024 # We need a cross tool
5213506e
RW
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14026$as_echo "pre-installed" >&6; }
2abefe3d
PB
14027 fi
14028fi
0b0dc272 14029
5213506e
RW
14030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14031$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 14032if test "x${build}" != "x${host}" ; then
e8b05380
PB
14033 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14034 # We already found the complete path
172e41aa 14035 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14037$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14038 else
14039 # Canadian cross, just use what we found
5213506e
RW
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14041$as_echo "pre-installed" >&6; }
e8b05380 14042 fi
2abefe3d 14043else
e8b05380
PB
14044 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14045 # We already found the complete path
172e41aa 14046 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14048$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 14049 elif test "x$target" = "x$host"; then
2abefe3d
PB
14050 # We can use an host tool
14051 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14053$as_echo "host tool" >&6; }
2abefe3d
PB
14054 else
14055 # We need a cross tool
5213506e
RW
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14057$as_echo "pre-installed" >&6; }
2abefe3d
PB
14058 fi
14059fi
0b0dc272 14060
5213506e
RW
14061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14062$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 14063if test "x${build}" != "x${host}" ; then
e8b05380
PB
14064 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14065 # We already found the complete path
172e41aa 14066 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14068$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14069 else
14070 # Canadian cross, just use what we found
5213506e
RW
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14072$as_echo "pre-installed" >&6; }
e8b05380 14073 fi
2abefe3d
PB
14074else
14075 ok=yes
14076 case " ${configdirs} " in
14077 *" binutils "*) ;;
14078 *) ok=no ;;
14079 esac
1c710c3c 14080
2abefe3d
PB
14081 if test $ok = yes; then
14082 # An in-tree tool is available and we can use it
14083 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14085$as_echo "just compiled" >&6; }
e8b05380
PB
14086 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14087 # We already found the complete path
172e41aa 14088 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14090$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14091 elif test "x$target" = "x$host"; then
14092 # We can use an host tool
14093 NM_FOR_TARGET='$(NM)'
5213506e
RW
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14095$as_echo "host tool" >&6; }
2abefe3d
PB
14096 else
14097 # We need a cross tool
5213506e
RW
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14099$as_echo "pre-installed" >&6; }
2abefe3d
PB
14100 fi
14101fi
0b0dc272 14102
5213506e
RW
14103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14104$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 14105if test "x${build}" != "x${host}" ; then
e8b05380
PB
14106 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14107 # We already found the complete path
172e41aa 14108 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14110$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14111 else
14112 # Canadian cross, just use what we found
5213506e
RW
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14114$as_echo "pre-installed" >&6; }
e8b05380 14115 fi
2abefe3d
PB
14116else
14117 ok=yes
14118 case " ${configdirs} " in
14119 *" binutils "*) ;;
14120 *) ok=no ;;
14121 esac
1c710c3c 14122
2abefe3d
PB
14123 if test $ok = yes; then
14124 # An in-tree tool is available and we can use it
14125 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14127$as_echo "just compiled" >&6; }
e8b05380
PB
14128 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14129 # We already found the complete path
172e41aa 14130 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14132$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14133 elif test "x$target" = "x$host"; then
14134 # We can use an host tool
14135 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14137$as_echo "host tool" >&6; }
2abefe3d
PB
14138 else
14139 # We need a cross tool
5213506e
RW
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14141$as_echo "pre-installed" >&6; }
2abefe3d
PB
14142 fi
14143fi
0b0dc272 14144
5213506e
RW
14145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14146$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 14147if test "x${build}" != "x${host}" ; then
e8b05380
PB
14148 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14149 # We already found the complete path
172e41aa 14150 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14152$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14153 else
14154 # Canadian cross, just use what we found
5213506e
RW
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14156$as_echo "pre-installed" >&6; }
e8b05380 14157 fi
2abefe3d
PB
14158else
14159 ok=yes
14160 case " ${configdirs} " in
14161 *" binutils "*) ;;
14162 *) ok=no ;;
14163 esac
1c710c3c 14164
2abefe3d
PB
14165 if test $ok = yes; then
14166 # An in-tree tool is available and we can use it
14167 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14169$as_echo "just compiled" >&6; }
e8b05380
PB
14170 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14171 # We already found the complete path
172e41aa 14172 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14174$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14175 elif test "x$target" = "x$host"; then
14176 # We can use an host tool
14177 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14179$as_echo "host tool" >&6; }
2abefe3d
PB
14180 else
14181 # We need a cross tool
5213506e
RW
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14183$as_echo "pre-installed" >&6; }
2abefe3d
PB
14184 fi
14185fi
0b0dc272 14186
e7a82751
RM
14187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14188$as_echo_n "checking where to find the target readelf... " >&6; }
14189if test "x${build}" != "x${host}" ; then
14190 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14191 # We already found the complete path
14192 ac_dir=`dirname $READELF_FOR_TARGET`
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14194$as_echo "pre-installed in $ac_dir" >&6; }
14195 else
14196 # Canadian cross, just use what we found
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14198$as_echo "pre-installed" >&6; }
14199 fi
14200else
14201 ok=yes
14202 case " ${configdirs} " in
14203 *" binutils "*) ;;
14204 *) ok=no ;;
14205 esac
14206
14207 if test $ok = yes; then
14208 # An in-tree tool is available and we can use it
14209 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14211$as_echo "just compiled" >&6; }
14212 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14213 # We already found the complete path
14214 ac_dir=`dirname $READELF_FOR_TARGET`
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14216$as_echo "pre-installed in $ac_dir" >&6; }
14217 elif test "x$target" = "x$host"; then
14218 # We can use an host tool
14219 READELF_FOR_TARGET='$(READELF)'
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14221$as_echo "host tool" >&6; }
14222 else
14223 # We need a cross tool
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14225$as_echo "pre-installed" >&6; }
14226 fi
14227fi
14228
5213506e
RW
14229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14230$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 14231if test "x${build}" != "x${host}" ; then
e8b05380
PB
14232 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14233 # We already found the complete path
172e41aa 14234 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14236$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14237 else
14238 # Canadian cross, just use what we found
5213506e
RW
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14240$as_echo "pre-installed" >&6; }
e8b05380 14241 fi
2abefe3d
PB
14242else
14243 ok=yes
14244 case " ${configdirs} " in
14245 *" binutils "*) ;;
14246 *) ok=no ;;
14247 esac
1c710c3c 14248
2abefe3d
PB
14249 if test $ok = yes; then
14250 # An in-tree tool is available and we can use it
455c8f48 14251 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14253$as_echo "just compiled" >&6; }
e8b05380
PB
14254 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14255 # We already found the complete path
172e41aa 14256 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14258$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14259 elif test "x$target" = "x$host"; then
14260 # We can use an host tool
14261 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14263$as_echo "host tool" >&6; }
2abefe3d
PB
14264 else
14265 # We need a cross tool
5213506e
RW
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14267$as_echo "pre-installed" >&6; }
2abefe3d
PB
14268 fi
14269fi
0b0dc272 14270
5213506e
RW
14271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14272$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 14273if test "x${build}" != "x${host}" ; then
e8b05380
PB
14274 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14275 # We already found the complete path
172e41aa 14276 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14278$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14279 else
14280 # Canadian cross, just use what we found
5213506e
RW
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14282$as_echo "pre-installed" >&6; }
e8b05380 14283 fi
2abefe3d
PB
14284else
14285 ok=yes
14286 case " ${configdirs} " in
14287 *" binutils "*) ;;
14288 *) ok=no ;;
14289 esac
1c710c3c 14290
2abefe3d
PB
14291 if test $ok = yes; then
14292 # An in-tree tool is available and we can use it
14293 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14295$as_echo "just compiled" >&6; }
e8b05380
PB
14296 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14297 # We already found the complete path
172e41aa 14298 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14300$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14301 elif test "x$target" = "x$host"; then
14302 # We can use an host tool
14303 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14305$as_echo "host tool" >&6; }
2abefe3d
PB
14306 else
14307 # We need a cross tool
5213506e
RW
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14309$as_echo "pre-installed" >&6; }
2abefe3d 14310 fi
671aa708 14311fi
be912515 14312
5213506e
RW
14313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14314$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
14315if test "x${build}" != "x${host}" ; then
14316 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14317 # We already found the complete path
14318 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14320$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14321 else
14322 # Canadian cross, just use what we found
5213506e
RW
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14324$as_echo "pre-installed" >&6; }
901119ae
KT
14325 fi
14326else
14327 ok=yes
14328 case " ${configdirs} " in
14329 *" binutils "*) ;;
14330 *) ok=no ;;
14331 esac
14332
14333 if test $ok = yes; then
14334 # An in-tree tool is available and we can use it
14335 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14337$as_echo "just compiled" >&6; }
901119ae
KT
14338 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14339 # We already found the complete path
14340 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14342$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14343 elif test "x$target" = "x$host"; then
14344 # We can use an host tool
14345 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14347$as_echo "host tool" >&6; }
901119ae
KT
14348 else
14349 # We need a cross tool
5213506e
RW
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14351$as_echo "pre-installed" >&6; }
901119ae
KT
14352 fi
14353fi
14354
be912515
NN
14355
14356
2abefe3d 14357
0b0dc272 14358
671aa708
NN
14359# Certain tools may need extra flags.
14360AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14361RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14362NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14363
2abefe3d
PB
14364# When building target libraries, except in a Canadian cross, we use
14365# the same toolchain as the compiler we just built.
14366COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14367COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14368COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14369if test $host = $build; then
14370 case " $configdirs " in
14371 *" gcc "*)
14372 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14373 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14374 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14375 ;;
14376 esac
14377fi
14378
14379
14380
14381
14382
5213506e
RW
14383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14384$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14385# Check whether --enable-maintainer-mode was given.
14386if test "${enable_maintainer_mode+set}" = set; then :
14387 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
14388else
14389 USE_MAINTAINER_MODE=no
5213506e
RW
14390fi
14391
14392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14393$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
14394
14395
14396if test "$USE_MAINTAINER_MODE" = yes; then
14397 MAINTAINER_MODE_TRUE=
14398 MAINTAINER_MODE_FALSE='#'
14399else
14400 MAINTAINER_MODE_TRUE='#'
14401 MAINTAINER_MODE_FALSE=
1c710c3c 14402fi
ee03dc5e
AO
14403MAINT=$MAINTAINER_MODE_TRUE
14404
2805b53a
NN
14405# ---------------------
14406# GCC bootstrap support
14407# ---------------------
14408
14409# Stage specific cflags for build.
14410stage1_cflags="-g"
14411case $build in
14412 vax-*-*)
14413 case ${GCC} in
14414 yes) stage1_cflags="-g -Wa,-J" ;;
14415 *) stage1_cflags="-g -J" ;;
14416 esac ;;
2805b53a
NN
14417esac
14418
0b50988a 14419
2805b53a 14420
8efea775 14421# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
14422# Check whether --enable-stage1-checking was given.
14423if test "${enable_stage1_checking+set}" = set; then :
14424 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 14425else
e643dc23 14426 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
7e98624c 14427 stage1_checking=--enable-checking=yes,types
8efea775 14428else
e643dc23 14429 stage1_checking=--enable-checking=$enable_checking,types
8efea775 14430fi
5213506e 14431fi
8efea775
PB
14432
14433
2aeb72e9 14434
5213506e
RW
14435# Enable -Werror in bootstrap stage2 and later.
14436# Check whether --enable-werror was given.
14437if test "${enable_werror+set}" = set; then :
14438 enableval=$enable_werror;
2805b53a 14439else
416cfb5e 14440 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 14441 enable_werror=yes
88fceb68
PB
14442else
14443 enable_werror=no
14444fi
5213506e
RW
14445fi
14446
09a9c095
NN
14447case ${enable_werror} in
14448 yes) stage2_werror_flag="--enable-werror-always" ;;
14449 *) stage2_werror_flag="" ;;
2805b53a
NN
14450esac
14451
14452
459260ec
DM
14453# Enable --enable-host-shared.
14454# Check whether --enable-host-shared was given.
14455if test "${enable_host_shared+set}" = set; then :
14456 enableval=$enable_host_shared; host_shared=$enableval
14457else
14458 host_shared=no
14459fi
14460
14461
14462
f2689b09
SE
14463# Specify what files to not compare during bootstrap.
14464
14465compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14466case "$target" in
14467 hppa*64*-*-hpux*) ;;
14468 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
d91491e5 14469 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
f2689b09
SE
14470esac
14471
14472
5213506e
RW
14473ac_config_files="$ac_config_files Makefile"
14474
1c710c3c 14475cat >confcache <<\_ACEOF
671aa708
NN
14476# This file is a shell script that caches the results of configure
14477# tests run on this system so they can be shared between configure
1c710c3c
DJ
14478# scripts and configure runs, see configure's option --config-cache.
14479# It is not useful on other systems. If it contains results you don't
14480# want to keep, you may remove or edit it.
671aa708 14481#
1c710c3c
DJ
14482# config.status only pays attention to the cache file if you give it
14483# the --recheck option to rerun configure.
671aa708 14484#
1c710c3c
DJ
14485# `ac_cv_env_foo' variables (set or unset) will be overridden when
14486# loading this file, other *unset* `ac_cv_foo' will be assigned the
14487# following values.
14488
14489_ACEOF
14490
671aa708
NN
14491# The following way of writing the cache mishandles newlines in values,
14492# but we know of no workaround that is simple, portable, and efficient.
5213506e 14493# So, we kill variables containing newlines.
671aa708
NN
14494# Ultrix sh set writes to stderr and can't be redirected directly,
14495# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
14496(
14497 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14498 eval ac_val=\$$ac_var
14499 case $ac_val in #(
14500 *${as_nl}*)
14501 case $ac_var in #(
14502 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14503$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14504 esac
14505 case $ac_var in #(
14506 _ | IFS | as_nl) ;; #(
14507 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14508 *) { eval $ac_var=; unset $ac_var;} ;;
14509 esac ;;
14510 esac
14511 done
14512
1c710c3c 14513 (set) 2>&1 |
5213506e
RW
14514 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14515 *${as_nl}ac_space=\ *)
14516 # `set' does not quote correctly, so add quotes: double-quote
14517 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
14518 sed -n \
14519 "s/'/'\\\\''/g;
14520 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 14521 ;; #(
1c710c3c
DJ
14522 *)
14523 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 14524 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 14525 ;;
5213506e
RW
14526 esac |
14527 sort
14528) |
1c710c3c 14529 sed '
5213506e 14530 /^ac_cv_env_/b end
1c710c3c 14531 t clear
5213506e 14532 :clear
1c710c3c
DJ
14533 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14534 t end
5213506e
RW
14535 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14536 :end' >>confcache
14537if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14538 if test -w "$cache_file"; then
14539 test "x$cache_file" != "x/dev/null" &&
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14541$as_echo "$as_me: updating cache $cache_file" >&6;}
1c710c3c 14542 cat confcache >$cache_file
671aa708 14543 else
5213506e
RW
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14545$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 14546 fi
4977bab6 14547fi
671aa708 14548rm -f confcache
79c06341 14549
671aa708
NN
14550test "x$prefix" = xNONE && prefix=$ac_default_prefix
14551# Let make expand exec_prefix.
14552test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 14553
671aa708
NN
14554# Transform confdefs.h into DEFS.
14555# Protect against shell expansion while executing Makefile rules.
14556# Protect against Makefile macro expansion.
1c710c3c
DJ
14557#
14558# If the first sed substitution is executed (which looks for macros that
5213506e 14559# take arguments), then branch to the quote section. Otherwise,
1c710c3c 14560# look for a macro that doesn't take arguments.
5213506e
RW
14561ac_script='
14562:mline
14563/\\$/{
14564 N
14565 s,\\\n,,
14566 b mline
14567}
1c710c3c 14568t clear
5213506e
RW
14569:clear
14570s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14571t quote
5213506e 14572s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14573t quote
5213506e
RW
14574b any
14575:quote
14576s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14577s/\[/\\&/g
14578s/\]/\\&/g
14579s/\$/$$/g
14580H
14581:any
14582${
14583 g
14584 s/^\n//
14585 s/\n/ /g
14586 p
14587}
14588'
14589DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
14590
14591
14592ac_libobjs=
14593ac_ltlibobjs=
14594for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14595 # 1. Remove the extension, and $U if already installed.
5213506e
RW
14596 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14597 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14598 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14599 # will be set to the directory where LIBOBJS objects are built.
14600 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14601 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
14602done
14603LIBOBJS=$ac_libobjs
fb0103e5 14604
1c710c3c 14605LTLIBOBJS=$ac_ltlibobjs
0b0dc272 14606
af71363e 14607
1c710c3c
DJ
14608
14609: ${CONFIG_STATUS=./config.status}
5213506e 14610ac_write_fail=0
1c710c3c
DJ
14611ac_clean_files_save=$ac_clean_files
14612ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
14613{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14614$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14615as_write_fail=0
14616cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
14617#! $SHELL
14618# Generated by $as_me.
671aa708 14619# Run this file to recreate the current configuration.
671aa708 14620# Compiler output produced by configure, useful for debugging
1c710c3c 14621# configure, is in config.log if it exists.
0b0dc272 14622
1c710c3c
DJ
14623debug=false
14624ac_cs_recheck=false
14625ac_cs_silent=false
1c710c3c 14626
5213506e
RW
14627SHELL=\${CONFIG_SHELL-$SHELL}
14628export SHELL
14629_ASEOF
14630cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14631## -------------------- ##
14632## M4sh Initialization. ##
14633## -------------------- ##
14634
14635# Be more Bourne compatible
14636DUALCASE=1; export DUALCASE # for MKS sh
14637if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
14638 emulate sh
14639 NULLCMD=:
5213506e 14640 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
14641 # is contrary to our usage. Disable this feature.
14642 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
14643 setopt NO_GLOB_SUBST
14644else
14645 case `(set -o) 2>/dev/null` in #(
14646 *posix*) :
14647 set -o posix ;; #(
14648 *) :
14649 ;;
14650esac
1c710c3c 14651fi
1c710c3c 14652
5213506e
RW
14653
14654as_nl='
14655'
14656export as_nl
14657# Printing a long string crashes Solaris 7 /usr/bin/printf.
14658as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14659as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14660as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14661# Prefer a ksh shell builtin over an external printf program on Solaris,
14662# but without wasting forks for bash or zsh.
14663if test -z "$BASH_VERSION$ZSH_VERSION" \
14664 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14665 as_echo='print -r --'
14666 as_echo_n='print -rn --'
14667elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14668 as_echo='printf %s\n'
14669 as_echo_n='printf %s'
14670else
14671 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14672 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14673 as_echo_n='/usr/ucb/echo -n'
14674 else
14675 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14676 as_echo_n_body='eval
14677 arg=$1;
14678 case $arg in #(
14679 *"$as_nl"*)
14680 expr "X$arg" : "X\\(.*\\)$as_nl";
14681 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14682 esac;
14683 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14684 '
14685 export as_echo_n_body
14686 as_echo_n='sh -c $as_echo_n_body as_echo'
14687 fi
14688 export as_echo_body
14689 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
14690fi
14691
5213506e
RW
14692# The user is always right.
14693if test "${PATH_SEPARATOR+set}" != set; then
14694 PATH_SEPARATOR=:
14695 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14696 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14697 PATH_SEPARATOR=';'
14698 }
14699fi
14700
14701
14702# IFS
14703# We need space, tab and new line, in precisely that order. Quoting is
14704# there to prevent editors from complaining about space-tab.
14705# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14706# splitting by setting IFS to empty value.)
14707IFS=" "" $as_nl"
14708
14709# Find who we are. Look in the path if we contain no directory separator.
14710case $0 in #((
14711 *[\\/]* ) as_myself=$0 ;;
14712 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14713for as_dir in $PATH
14714do
14715 IFS=$as_save_IFS
14716 test -z "$as_dir" && as_dir=.
14717 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14718 done
14719IFS=$as_save_IFS
14720
14721 ;;
14722esac
14723# We did not find ourselves, most probably we were run as `sh COMMAND'
14724# in which case we are not to be found in the path.
14725if test "x$as_myself" = x; then
14726 as_myself=$0
14727fi
14728if test ! -f "$as_myself"; then
14729 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14730 exit 1
14731fi
1c710c3c 14732
5213506e
RW
14733# Unset variables that we do not need and which cause bugs (e.g. in
14734# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14735# suppresses any "Segmentation fault" message there. '((' could
14736# trigger a bug in pdksh 5.2.14.
14737for as_var in BASH_ENV ENV MAIL MAILPATH
14738do eval test x\${$as_var+set} = xset \
14739 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14740done
1c710c3c
DJ
14741PS1='$ '
14742PS2='> '
14743PS4='+ '
14744
14745# NLS nuisances.
5213506e
RW
14746LC_ALL=C
14747export LC_ALL
14748LANGUAGE=C
14749export LANGUAGE
14750
14751# CDPATH.
14752(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14753
14754
14755# as_fn_error ERROR [LINENO LOG_FD]
14756# ---------------------------------
14757# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14758# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14759# script with status $?, using 1 if that was 0.
14760as_fn_error ()
14761{
14762 as_status=$?; test $as_status -eq 0 && as_status=1
14763 if test "$3"; then
14764 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14765 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1c710c3c 14766 fi
5213506e
RW
14767 $as_echo "$as_me: error: $1" >&2
14768 as_fn_exit $as_status
14769} # as_fn_error
14770
14771
14772# as_fn_set_status STATUS
14773# -----------------------
14774# Set $? to STATUS, without forking.
14775as_fn_set_status ()
14776{
14777 return $1
14778} # as_fn_set_status
14779
14780# as_fn_exit STATUS
14781# -----------------
14782# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14783as_fn_exit ()
14784{
14785 set +e
14786 as_fn_set_status $1
14787 exit $1
14788} # as_fn_exit
14789
14790# as_fn_unset VAR
14791# ---------------
14792# Portably unset VAR.
14793as_fn_unset ()
14794{
14795 { eval $1=; unset $1;}
14796}
14797as_unset=as_fn_unset
14798# as_fn_append VAR VALUE
14799# ----------------------
14800# Append the text in VALUE to the end of the definition contained in VAR. Take
14801# advantage of any shell optimizations that allow amortized linear growth over
14802# repeated appends, instead of the typical quadratic growth present in naive
14803# implementations.
14804if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14805 eval 'as_fn_append ()
14806 {
14807 eval $1+=\$2
14808 }'
14809else
14810 as_fn_append ()
14811 {
14812 eval $1=\$$1\$2
14813 }
14814fi # as_fn_append
14815
14816# as_fn_arith ARG...
14817# ------------------
14818# Perform arithmetic evaluation on the ARGs, and store the result in the
14819# global $as_val. Take advantage of shells that can avoid forks. The arguments
14820# must be portable across $(()) and expr.
14821if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14822 eval 'as_fn_arith ()
14823 {
14824 as_val=$(( $* ))
14825 }'
14826else
14827 as_fn_arith ()
14828 {
14829 as_val=`expr "$@" || test $? -eq 1`
14830 }
14831fi # as_fn_arith
14832
1c710c3c 14833
5213506e
RW
14834if expr a : '\(a\)' >/dev/null 2>&1 &&
14835 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
14836 as_expr=expr
14837else
14838 as_expr=false
14839fi
14840
5213506e 14841if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
14842 as_basename=basename
14843else
14844 as_basename=false
14845fi
14846
5213506e
RW
14847if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14848 as_dirname=dirname
14849else
14850 as_dirname=false
14851fi
1c710c3c 14852
5213506e 14853as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
14854$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14855 X"$0" : 'X\(//\)$' \| \
5213506e
RW
14856 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14857$as_echo X/"$0" |
14858 sed '/^.*\/\([^/][^/]*\)\/*$/{
14859 s//\1/
14860 q
14861 }
14862 /^X\/\(\/\/\)$/{
14863 s//\1/
14864 q
14865 }
14866 /^X\/\(\/\).*/{
14867 s//\1/
14868 q
14869 }
14870 s/.*/./; q'`
2aeb72e9 14871
2aeb72e9
DD
14872# Avoid depending upon Character Ranges.
14873as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14874as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14875as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14876as_cr_digits='0123456789'
14877as_cr_alnum=$as_cr_Letters$as_cr_digits
14878
5213506e
RW
14879ECHO_C= ECHO_N= ECHO_T=
14880case `echo -n x` in #(((((
14881-n*)
14882 case `echo 'xy\c'` in
14883 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14884 xy) ECHO_C='\c';;
14885 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14886 ECHO_T=' ';;
14887 esac;;
14888*)
14889 ECHO_N='-n';;
1c710c3c
DJ
14890esac
14891
5213506e
RW
14892rm -f conf$$ conf$$.exe conf$$.file
14893if test -d conf$$.dir; then
14894 rm -f conf$$.dir/conf$$.file
1c710c3c 14895else
5213506e
RW
14896 rm -f conf$$.dir
14897 mkdir conf$$.dir 2>/dev/null
1c710c3c 14898fi
5213506e
RW
14899if (echo >conf$$.file) 2>/dev/null; then
14900 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 14901 as_ln_s='ln -s'
5213506e
RW
14902 # ... but there are two gotchas:
14903 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14904 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14905 # In both cases, we have to default to `cp -p'.
14906 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14907 as_ln_s='cp -p'
14908 elif ln conf$$.file conf$$ 2>/dev/null; then
14909 as_ln_s=ln
14910 else
14911 as_ln_s='cp -p'
2aeb72e9 14912 fi
1c710c3c
DJ
14913else
14914 as_ln_s='cp -p'
14915fi
5213506e
RW
14916rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14917rmdir conf$$.dir 2>/dev/null
14918
14919
14920# as_fn_mkdir_p
14921# -------------
14922# Create "$as_dir" as a directory, including parents if necessary.
14923as_fn_mkdir_p ()
14924{
14925
14926 case $as_dir in #(
14927 -*) as_dir=./$as_dir;;
14928 esac
14929 test -d "$as_dir" || eval $as_mkdir_p || {
14930 as_dirs=
14931 while :; do
14932 case $as_dir in #(
14933 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14934 *) as_qdir=$as_dir;;
14935 esac
14936 as_dirs="'$as_qdir' $as_dirs"
14937 as_dir=`$as_dirname -- "$as_dir" ||
14938$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14939 X"$as_dir" : 'X\(//\)[^/]' \| \
14940 X"$as_dir" : 'X\(//\)$' \| \
14941 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14942$as_echo X"$as_dir" |
14943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14944 s//\1/
14945 q
14946 }
14947 /^X\(\/\/\)[^/].*/{
14948 s//\1/
14949 q
14950 }
14951 /^X\(\/\/\)$/{
14952 s//\1/
14953 q
14954 }
14955 /^X\(\/\).*/{
14956 s//\1/
14957 q
14958 }
14959 s/.*/./; q'`
14960 test -d "$as_dir" && break
14961 done
14962 test -z "$as_dirs" || eval "mkdir $as_dirs"
14963 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14964
1c710c3c 14965
5213506e 14966} # as_fn_mkdir_p
1c710c3c 14967if mkdir -p . 2>/dev/null; then
5213506e 14968 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
14969else
14970 test -d ./-p && rmdir ./-p
14971 as_mkdir_p=false
14972fi
14973
5213506e
RW
14974if test -x / >/dev/null 2>&1; then
14975 as_test_x='test -x'
14976else
14977 if ls -dL / >/dev/null 2>&1; then
14978 as_ls_L_option=L
14979 else
14980 as_ls_L_option=
14981 fi
14982 as_test_x='
14983 eval sh -c '\''
14984 if test -d "$1"; then
14985 test -d "$1/.";
14986 else
14987 case $1 in #(
14988 -*)set "./$1";;
14989 esac;
14990 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14991 ???[sx]*):;;*)false;;esac;fi
14992 '\'' sh
14993 '
14994fi
14995as_executable_p=$as_test_x
1c710c3c
DJ
14996
14997# Sed expression to map a string onto a valid CPP name.
14998as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14999
15000# Sed expression to map a string onto a valid variable name.
15001as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15002
15003
1c710c3c 15004exec 6>&1
5213506e
RW
15005## ----------------------------------- ##
15006## Main body of $CONFIG_STATUS script. ##
15007## ----------------------------------- ##
15008_ASEOF
15009test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15010
15011cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15012# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 15013# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
15014# values after options handling.
15015ac_log="
1c710c3c 15016This file was extended by $as_me, which was
5213506e 15017generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
15018
15019 CONFIG_FILES = $CONFIG_FILES
15020 CONFIG_HEADERS = $CONFIG_HEADERS
15021 CONFIG_LINKS = $CONFIG_LINKS
15022 CONFIG_COMMANDS = $CONFIG_COMMANDS
15023 $ $0 $@
15024
5213506e
RW
15025on `(hostname || uname -n) 2>/dev/null | sed 1q`
15026"
15027
1c710c3c
DJ
15028_ACEOF
15029
5213506e
RW
15030case $ac_config_files in *"
15031"*) set x $ac_config_files; shift; ac_config_files=$*;;
15032esac
1c710c3c 15033
2aeb72e9 15034
2aeb72e9 15035
5213506e
RW
15036cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15037# Files that config.status was made for.
15038config_files="$ac_config_files"
1c710c3c 15039
5213506e 15040_ACEOF
2aeb72e9 15041
5213506e 15042cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 15043ac_cs_usage="\
5213506e
RW
15044\`$as_me' instantiates files and other configuration actions
15045from templates according to the current configuration. Unless the files
15046and actions are specified as TAGs, all are instantiated by default.
1c710c3c 15047
5213506e 15048Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
15049
15050 -h, --help print this help, then exit
5213506e
RW
15051 -V, --version print version number and configuration settings, then exit
15052 -q, --quiet, --silent
15053 do not print progress messages
1c710c3c
DJ
15054 -d, --debug don't remove temporary files
15055 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
15056 --file=FILE[:TEMPLATE]
15057 instantiate the configuration file FILE
1c710c3c
DJ
15058
15059Configuration files:
15060$config_files
15061
5213506e 15062Report bugs to the package provider."
2aeb72e9 15063
5213506e
RW
15064_ACEOF
15065cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c
DJ
15066ac_cs_version="\\
15067config.status
5213506e
RW
15068configured by $0, generated by GNU Autoconf 2.64,
15069 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 15070
5213506e 15071Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
15072This config.status script is free software; the Free Software Foundation
15073gives unlimited permission to copy, distribute and modify it."
5213506e
RW
15074
15075ac_pwd='$ac_pwd'
15076srcdir='$srcdir'
15077INSTALL='$INSTALL'
87264276 15078AWK='$AWK'
5213506e 15079test -n "\$AWK" || AWK=awk
1c710c3c
DJ
15080_ACEOF
15081
5213506e
RW
15082cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15083# The default lists apply if the user does not specify any file.
1c710c3c
DJ
15084ac_need_defaults=:
15085while test $# != 0
a4b9e93e 15086do
1c710c3c
DJ
15087 case $1 in
15088 --*=*)
5213506e
RW
15089 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15090 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
15091 ac_shift=:
15092 ;;
5213506e 15093 *)
1c710c3c
DJ
15094 ac_option=$1
15095 ac_optarg=$2
15096 ac_shift=shift
15097 ;;
1c710c3c
DJ
15098 esac
15099
15100 case $ac_option in
15101 # Handling of the options.
671aa708 15102 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 15103 ac_cs_recheck=: ;;
5213506e
RW
15104 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15105 $as_echo "$ac_cs_version"; exit ;;
15106 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
15107 debug=: ;;
15108 --file | --fil | --fi | --f )
15109 $ac_shift
5213506e
RW
15110 case $ac_optarg in
15111 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15112 esac
15113 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 15114 ac_need_defaults=false;;
5213506e
RW
15115 --he | --h | --help | --hel | -h )
15116 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
15117 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15118 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15119 ac_cs_silent=: ;;
15120
15121 # This is an error.
5213506e
RW
15122 -*) as_fn_error "unrecognized option: \`$1'
15123Try \`$0 --help' for more information." ;;
1c710c3c 15124
5213506e
RW
15125 *) as_fn_append ac_config_targets " $1"
15126 ac_need_defaults=false ;;
1c710c3c 15127
0b0dc272 15128 esac
1c710c3c 15129 shift
0b0dc272
AM
15130done
15131
1c710c3c 15132ac_configure_extra_args=
0b0dc272 15133
1c710c3c
DJ
15134if $ac_cs_silent; then
15135 exec 6>/dev/null
15136 ac_configure_extra_args="$ac_configure_extra_args --silent"
15137fi
0b0dc272 15138
1c710c3c 15139_ACEOF
5213506e 15140cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 15141if \$ac_cs_recheck; then
5213506e
RW
15142 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15143 shift
15144 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15145 CONFIG_SHELL='$SHELL'
15146 export CONFIG_SHELL
15147 exec "\$@"
1c710c3c
DJ
15148fi
15149
15150_ACEOF
5213506e
RW
15151cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15152exec 5>>config.log
15153{
15154 echo
15155 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15156## Running $as_me. ##
15157_ASBOX
15158 $as_echo "$ac_log"
15159} >&5
1c710c3c 15160
5213506e
RW
15161_ACEOF
15162cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
15163#
15164# INIT-COMMANDS
15165#
15166extrasub_build="$extrasub_build"
15167 extrasub_host="$extrasub_host"
15168 extrasub_target="$extrasub_target"
15169
5213506e 15170_ACEOF
1c710c3c 15171
5213506e 15172cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 15173
5213506e 15174# Handling of arguments.
1c710c3c
DJ
15175for ac_config_target in $ac_config_targets
15176do
5213506e
RW
15177 case $ac_config_target in
15178 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15179
15180 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
15181 esac
15182done
15183
5213506e 15184
1c710c3c
DJ
15185# If the user did not use the arguments to specify the items to instantiate,
15186# then the envvar interface is used. Set only those that are not.
15187# We use the long form for the default assignment because of an extremely
15188# bizarre bug on SunOS 4.1.3.
15189if $ac_need_defaults; then
15190 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15191fi
15192
15193# Have a temporary directory for convenience. Make it in the build tree
5213506e 15194# simply because there is no reason against having it here, and in addition,
1c710c3c 15195# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
15196# Hook for its removal unless debugging.
15197# Note that there is a small window in which the directory will not be cleaned:
15198# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
15199$debug ||
15200{
5213506e
RW
15201 tmp=
15202 trap 'exit_status=$?
15203 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15204' 0
15205 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 15206}
1c710c3c
DJ
15207# Create a (secure) tmp directory for tmp files.
15208
15209{
5213506e 15210 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
15211 test -n "$tmp" && test -d "$tmp"
15212} ||
15213{
5213506e
RW
15214 tmp=./conf$$-$RANDOM
15215 (umask 077 && mkdir "$tmp")
15216} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15217
15218# Set up the scripts for CONFIG_FILES section.
15219# No need to generate them if there are no CONFIG_FILES.
15220# This happens for instance with `./config.status config.h'.
15221if test -n "$CONFIG_FILES"; then
15222
15223if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15224 ac_cs_awk_getline=:
15225 ac_cs_awk_pipe_init=
15226 ac_cs_awk_read_file='
15227 while ((getline aline < (F[key])) > 0)
15228 print(aline)
15229 close(F[key])'
15230 ac_cs_awk_pipe_fini=
15231else
15232 ac_cs_awk_getline=false
15233 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15234 ac_cs_awk_read_file='
15235 print "|#_!!_#|"
15236 print "cat " F[key] " &&"
15237 '$ac_cs_awk_pipe_init
15238 # The final `:' finishes the AND list.
15239 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15240fi
15241ac_cr=`echo X | tr X '\015'`
15242# On cygwin, bash can eat \r inside `` if the user requested igncr.
15243# But we know of no other shell where ac_cr would be empty at this
15244# point, so we can use a bashism as a fallback.
15245if test "x$ac_cr" = x; then
15246 eval ac_cr=\$\'\\r\'
15247fi
15248ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15249if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15250 ac_cs_awk_cr='\r'
15251else
15252 ac_cs_awk_cr=$ac_cr
15253fi
15254
15255echo 'BEGIN {' >"$tmp/subs1.awk" &&
15256_ACEOF
15257
15258# Create commands to substitute file output variables.
1c710c3c 15259{
5213506e
RW
15260 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15261 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15262 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15263 echo "_ACAWK" &&
15264 echo "_ACEOF"
15265} >conf$$files.sh &&
15266. ./conf$$files.sh ||
15267 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15268rm -f conf$$files.sh
1c710c3c 15269
5213506e
RW
15270{
15271 echo "cat >conf$$subs.awk <<_ACEOF" &&
15272 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15273 echo "_ACEOF"
15274} >conf$$subs.sh ||
15275 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15276ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15277ac_delim='%!_!# '
15278for ac_last_try in false false false false false :; do
15279 . ./conf$$subs.sh ||
15280 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15281
15282 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15283 if test $ac_delim_n = $ac_delim_num; then
15284 break
15285 elif $ac_last_try; then
15286 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15287 else
15288 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15289 fi
15290done
15291rm -f conf$$subs.sh
15292
15293cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15294cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 15295_ACEOF
5213506e
RW
15296sed -n '
15297h
15298s/^/S["/; s/!.*/"]=/
15299p
15300g
15301s/^[^!]*!//
15302:repl
15303t repl
15304s/'"$ac_delim"'$//
15305t delim
15306:nl
15307h
15308s/\(.\{148\}\).*/\1/
15309t more1
15310s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15311p
15312n
15313b repl
15314:more1
15315s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15316p
15317g
15318s/.\{148\}//
15319t nl
15320:delim
15321h
15322s/\(.\{148\}\).*/\1/
15323t more2
15324s/["\\]/\\&/g; s/^/"/; s/$/"/
15325p
15326b
15327:more2
15328s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15329p
15330g
15331s/.\{148\}//
15332t delim
15333' <conf$$subs.awk | sed '
15334/^[^""]/{
15335 N
15336 s/\n//
15337}
15338' >>$CONFIG_STATUS || ac_write_fail=1
15339rm -f conf$$subs.awk
15340cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15341_ACAWK
15342cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15343 for (key in S) S_is_set[key] = 1
15344 FS = "\a"
15345 \$ac_cs_awk_pipe_init
15346}
15347{
15348 line = $ 0
15349 nfields = split(line, field, "@")
15350 substed = 0
15351 len = length(field[1])
15352 for (i = 2; i < nfields; i++) {
15353 key = field[i]
15354 keylen = length(key)
15355 if (S_is_set[key]) {
15356 value = S[key]
15357 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15358 len += length(value) + length(field[++i])
15359 substed = 1
15360 } else
15361 len += 1 + keylen
15362 }
15363 if (nfields == 3 && !substed) {
15364 key = field[2]
15365 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15366 \$ac_cs_awk_read_file
15367 next
15368 }
15369 }
15370 print line
15371}
15372\$ac_cs_awk_pipe_fini
15373_ACAWK
15374_ACEOF
15375cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15376if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15377 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15378else
15379 cat
15380fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15381 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15382_ACEOF
15383
15384# VPATH may cause trouble with some makes, so we remove $(srcdir),
15385# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15386# trailing colons and then remove the whole line if VPATH becomes empty
15387# (actually we leave an empty line to preserve line numbers).
15388if test "x$srcdir" = x.; then
15389 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15390s/:*\$(srcdir):*/:/
15391s/:*\${srcdir}:*/:/
15392s/:*@srcdir@:*/:/
15393s/^\([^=]*=[ ]*\):*/\1/
15394s/:*$//
15395s/^[^=]*=[ ]*$//
15396}'
15397fi
2aeb72e9 15398
5213506e
RW
15399cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15400fi # test -n "$CONFIG_FILES"
2aeb72e9 15401
1c710c3c 15402
5213506e
RW
15403eval set X " :F $CONFIG_FILES "
15404shift
15405for ac_tag
15406do
15407 case $ac_tag in
15408 :[FHLC]) ac_mode=$ac_tag; continue;;
15409 esac
15410 case $ac_mode$ac_tag in
15411 :[FHL]*:*);;
15412 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15413 :[FH]-) ac_tag=-:-;;
15414 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15415 esac
15416 ac_save_IFS=$IFS
15417 IFS=:
15418 set x $ac_tag
15419 IFS=$ac_save_IFS
15420 shift
15421 ac_file=$1
15422 shift
79c06341 15423
5213506e
RW
15424 case $ac_mode in
15425 :L) ac_source=$1;;
15426 :[FH])
15427 ac_file_inputs=
15428 for ac_f
15429 do
15430 case $ac_f in
15431 -) ac_f="$tmp/stdin";;
15432 *) # Look for the file first in the build tree, then in the source tree
15433 # (if the path is not absolute). The absolute path cannot be DOS-style,
15434 # because $ac_f cannot contain `:'.
15435 test -f "$ac_f" ||
15436 case $ac_f in
15437 [\\/$]*) false;;
15438 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15439 esac ||
15440 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15441 esac
15442 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15443 as_fn_append ac_file_inputs " '$ac_f'"
15444 done
1c710c3c 15445
5213506e
RW
15446 # Let's still pretend it is `configure' which instantiates (i.e., don't
15447 # use $as_me), people would be surprised to read:
15448 # /* config.h. Generated by config.status. */
15449 configure_input='Generated from '`
15450 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15451 `' by configure.'
15452 if test x"$ac_file" != x-; then
15453 configure_input="$ac_file. $configure_input"
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15455$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 15456 fi
5213506e
RW
15457 # Neutralize special characters interpreted by sed in replacement strings.
15458 case $configure_input in #(
15459 *\&* | *\|* | *\\* )
15460 ac_sed_conf_input=`$as_echo "$configure_input" |
15461 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15462 *) ac_sed_conf_input=$configure_input;;
15463 esac
11a67599 15464
5213506e
RW
15465 case $ac_tag in
15466 *:-:* | *:-) cat >"$tmp/stdin" \
15467 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15468 esac
15469 ;;
11a67599
ZW
15470 esac
15471
5213506e 15472 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
15473$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15474 X"$ac_file" : 'X\(//\)[^/]' \| \
15475 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
15476 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15477$as_echo X"$ac_file" |
15478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15479 s//\1/
15480 q
15481 }
15482 /^X\(\/\/\)[^/].*/{
15483 s//\1/
15484 q
15485 }
15486 /^X\(\/\/\)$/{
15487 s//\1/
15488 q
15489 }
15490 /^X\(\/\).*/{
15491 s//\1/
15492 q
15493 }
15494 s/.*/./; q'`
15495 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 15496 ac_builddir=.
0b0dc272 15497
5213506e
RW
15498case "$ac_dir" in
15499.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15500*)
15501 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15502 # A ".." for each directory in $ac_dir_suffix.
15503 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15504 case $ac_top_builddir_sub in
15505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15507 esac ;;
15508esac
15509ac_abs_top_builddir=$ac_pwd
15510ac_abs_builddir=$ac_pwd$ac_dir_suffix
15511# for backward compatibility:
15512ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
15513
15514case $srcdir in
5213506e 15515 .) # We are building in place.
1c710c3c 15516 ac_srcdir=.
5213506e
RW
15517 ac_top_srcdir=$ac_top_builddir_sub
15518 ac_abs_top_srcdir=$ac_pwd ;;
15519 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 15520 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
15521 ac_top_srcdir=$srcdir
15522 ac_abs_top_srcdir=$srcdir ;;
15523 *) # Relative name.
15524 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15525 ac_top_srcdir=$ac_top_build_prefix$srcdir
15526 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 15527esac
5213506e 15528ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 15529
0b0dc272 15530
5213506e
RW
15531 case $ac_mode in
15532 :F)
15533 #
15534 # CONFIG_FILE
15535 #
1c710c3c
DJ
15536
15537 case $INSTALL in
15538 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 15539 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 15540 esac
5213506e 15541_ACEOF
11a67599 15542
5213506e
RW
15543cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15544# If the template does not know about datarootdir, expand it.
15545# FIXME: This hack should be removed a few years after 2.60.
15546ac_datarootdir_hack=; ac_datarootdir_seen=
15547ac_sed_dataroot='
15548/datarootdir/ {
15549 p
15550 q
15551}
15552/@datadir@/p
15553/@docdir@/p
15554/@infodir@/p
15555/@localedir@/p
15556/@mandir@/p'
15557case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15558*datarootdir*) ac_datarootdir_seen=yes;;
15559*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15561$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 15562_ACEOF
5213506e
RW
15563cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15564 ac_datarootdir_hack='
15565 s&@datadir@&$datadir&g
15566 s&@docdir@&$docdir&g
15567 s&@infodir@&$infodir&g
15568 s&@localedir@&$localedir&g
15569 s&@mandir@&$mandir&g
15570 s&\\\${datarootdir}&$datarootdir&g' ;;
15571esac
15572_ACEOF
15573
15574# Neutralize VPATH when `$srcdir' = `.'.
15575# Shell code in configure.ac might set extrasub.
15576# FIXME: do we really want to maintain this feature?
15577cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15578ac_sed_extra="$ac_vpsub
1c710c3c
DJ
15579$extrasub
15580_ACEOF
5213506e 15581cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
15582:t
15583/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
15584s|@configure_input@|$ac_sed_conf_input|;t t
15585s&@top_builddir@&$ac_top_builddir_sub&;t t
15586s&@top_build_prefix@&$ac_top_build_prefix&;t t
15587s&@srcdir@&$ac_srcdir&;t t
15588s&@abs_srcdir@&$ac_abs_srcdir&;t t
15589s&@top_srcdir@&$ac_top_srcdir&;t t
15590s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15591s&@builddir@&$ac_builddir&;t t
15592s&@abs_builddir@&$ac_abs_builddir&;t t
15593s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15594s&@INSTALL@&$ac_INSTALL&;t t
15595$ac_datarootdir_hack
15596"
15597eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15598if $ac_cs_awk_getline; then
15599 $AWK -f "$tmp/subs.awk"
15600else
15601 $AWK -f "$tmp/subs.awk" | $SHELL
15602fi >$tmp/out \
15603 || as_fn_error "could not create $ac_file" "$LINENO" 5
15604
15605test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15606 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15607 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15609which seems to be undefined. Please make sure it is defined." >&5
15610$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15611which seems to be undefined. Please make sure it is defined." >&2;}
15612
15613 rm -f "$tmp/stdin"
15614 case $ac_file in
15615 -) cat "$tmp/out" && rm -f "$tmp/out";;
15616 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15617 esac \
15618 || as_fn_error "could not create $ac_file" "$LINENO" 5
15619 ;;
11a67599 15620
11a67599 15621
79c06341 15622
5213506e
RW
15623 esac
15624
3e54529c
RW
15625
15626 case $ac_file$ac_mode in
15627 "Makefile":F) sed "$extrasub_build" Makefile |
15628 sed "$extrasub_host" |
15629 sed "$extrasub_target" > mf$$
15630 mv -f mf$$ Makefile ;;
15631
15632 esac
5213506e
RW
15633done # for ac_tag
15634
15635
15636as_fn_exit 0
1c710c3c 15637_ACEOF
1c710c3c
DJ
15638ac_clean_files=$ac_clean_files_save
15639
5213506e
RW
15640test $ac_write_fail = 0 ||
15641 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15642
1c710c3c
DJ
15643
15644# configure is writing to config.log, and then calls config.status.
15645# config.status does its own redirection, appending to config.log.
15646# Unfortunately, on DOS this fails, as config.log is still kept open
15647# by configure, so config.status won't be able to write to it; its
15648# output is simply discarded. So we exec the FD to /dev/null,
15649# effectively closing config.log, so it can be properly (re)opened and
15650# appended to by config.status. When coming back to configure, we
15651# need to make the FD available again.
15652if test "$no_create" != yes; then
15653 ac_cs_success=:
15654 ac_config_status_args=
15655 test "$silent" = yes &&
15656 ac_config_status_args="$ac_config_status_args --quiet"
15657 exec 5>/dev/null
15658 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15659 exec 5>>config.log
15660 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15661 # would make configure fail if this is the last instruction.
5213506e
RW
15662 $ac_cs_success || as_fn_exit $?
15663fi
15664if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15666$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 15667fi
79c06341 15668