]> gcc.gnu.org Git - gcc.git/blame - configure
tree-ssa-coalesce.c (register_default_def): Remove register_ssa_partition.
[gcc.git] / configure
CommitLineData
671aa708 1#! /bin/sh
671aa708 2# Guess values for system-dependent variables and create Makefiles.
5213506e
RW
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
671aa708
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
5213506e
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
1c710c3c 14
5213506e
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
18 emulate sh
19 NULLCMD=:
5213506e 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
1c710c3c 31fi
1c710c3c 32
5213506e
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
1c710c3c
DJ
79fi
80
81
5213506e
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
1c710c3c
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
5213506e
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
87264276
PB
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
5213506e
RW
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1c710c3c 184do
5213506e
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
1c710c3c 228 else
5213506e
RW
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
1c710c3c 233 fi
5213506e
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
1c710c3c 263
5213506e
RW
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
375 as_expr=expr
376else
377 as_expr=false
378fi
379
5213506e 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
381 as_basename=basename
382else
383 as_basename=false
384fi
385
5213506e
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
1c710c3c 391
5213506e 392as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
5213506e
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
1c710c3c 410
2aeb72e9
DD
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
11a67599 417
1c710c3c 418
5213506e
RW
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
1c710c3c 428 sed '
5213506e
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
1c710c3c 433 N
5213506e
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1c710c3c 436 t loop
5213506e 437 s/-\n.*//
1c710c3c 438 ' >$as_me.lineno &&
5213506e
RW
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1c710c3c
DJ
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
5213506e
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
1c710c3c
DJ
446 # Exit status is that of the last command.
447 exit
448}
449
5213506e
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
1c710c3c
DJ
461esac
462
5213506e
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
1c710c3c 466else
5213506e
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
1c710c3c 469fi
5213506e
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 472 as_ln_s='ln -s'
5213506e
RW
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
2aeb72e9 483 fi
1c710c3c
DJ
484else
485 as_ln_s='cp -p'
486fi
5213506e
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
1c710c3c
DJ
489
490if mkdir -p . 2>/dev/null; then
5213506e 491 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
5213506e
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
0b0dc272 519
1c710c3c
DJ
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
5213506e 527exec 7<&0 </dev/null 6>&1
1c710c3c
DJ
528
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
1c710c3c
DJ
534#
535# Initializations.
536#
671aa708 537ac_default_prefix=/usr/local
5213506e 538ac_clean_files=
1c710c3c 539ac_config_libobj_dir=.
5213506e 540LIBOBJS=
1c710c3c
DJ
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
2aeb72e9 545
1c710c3c
DJ
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
5213506e 552PACKAGE_URL=
1c710c3c
DJ
553
554ac_unique_file="move-if-change"
5213506e
RW
555enable_option_checking=no
556ac_subst_vars='LTLIBOBJS
557LIBOBJS
558compare_exclusions
459260ec 559host_shared
5213506e
RW
560stage2_werror_flag
561stage1_checking
562stage1_cflags
563MAINT
564MAINTAINER_MODE_FALSE
565MAINTAINER_MODE_TRUE
566COMPILER_NM_FOR_TARGET
567COMPILER_LD_FOR_TARGET
568COMPILER_AS_FOR_TARGET
569FLAGS_FOR_TARGET
570RAW_CXX_FOR_TARGET
571WINDMC_FOR_TARGET
572WINDRES_FOR_TARGET
573STRIP_FOR_TARGET
e7a82751 574READELF_FOR_TARGET
5213506e
RW
575RANLIB_FOR_TARGET
576OBJDUMP_FOR_TARGET
9bccfdf5 577OBJCOPY_FOR_TARGET
5213506e
RW
578NM_FOR_TARGET
579LIPO_FOR_TARGET
580LD_FOR_TARGET
581DLLTOOL_FOR_TARGET
582AS_FOR_TARGET
583AR_FOR_TARGET
632e2a07 584GOC_FOR_TARGET
5213506e 585GFORTRAN_FOR_TARGET
5213506e
RW
586GCC_FOR_TARGET
587CXX_FOR_TARGET
588CC_FOR_TARGET
e7a82751 589READELF
5213506e
RW
590OBJDUMP
591OBJCOPY
592WINDMC
593WINDRES
594STRIP
595RANLIB
596NM
597LIPO
598LD
599DLLTOOL
600AS
601AR
602RUNTEST
603EXPECT
604MAKEINFO
605FLEX
606LEX
607M4
608BISON
609YACC
5213506e
RW
610WINDRES_FOR_BUILD
611WINDMC_FOR_BUILD
612RANLIB_FOR_BUILD
613NM_FOR_BUILD
614LD_FOR_BUILD
615LDFLAGS_FOR_BUILD
632e2a07 616GOC_FOR_BUILD
5213506e 617GFORTRAN_FOR_BUILD
5213506e
RW
618DLLTOOL_FOR_BUILD
619CXX_FOR_BUILD
620CXXFLAGS_FOR_BUILD
621CFLAGS_FOR_BUILD
622CC_FOR_BUILD
623AS_FOR_BUILD
624AR_FOR_BUILD
aae29963 625target_configdirs
5213506e 626configdirs
5213506e 627build_configdirs
5213506e
RW
628INSTALL_GDB_TK
629GDB_TK
630CONFIGURE_GDB_TK
631build_tooldir
632tooldir
633GCC_SHLIB_SUBDIR
634RPATH_ENVVAR
ffedf511
RW
635target_configargs
636host_configargs
637build_configargs
e12c4094 638BUILD_CONFIG
6f57bdf6 639LDFLAGS_FOR_TARGET
5213506e
RW
640CXXFLAGS_FOR_TARGET
641CFLAGS_FOR_TARGET
642DEBUG_PREFIX_CFLAGS_FOR_TARGET
643SYSROOT_CFLAGS_FOR_TARGET
1c01ebf6 644extra_host_zlib_configure_flags
d7f09764 645extra_host_libiberty_configure_flags
fca38047 646stage1_languages
45b3824d
TS
647extra_linker_plugin_flags
648extra_linker_plugin_configure_flags
33ad93b9 649islinc
eae1a5d4 650isllibs
1e050c90 651islver
5213506e 652poststage1_ldflags
ed2eaa9f 653poststage1_libs
5213506e 654stage1_ldflags
0b21f5d3 655stage1_libs
0ff2d841 656extra_isl_gmp_configure_flags
5213506e
RW
657extra_mpc_mpfr_configure_flags
658extra_mpc_gmp_configure_flags
659extra_mpfr_configure_flags
660gmpinc
661gmplibs
662do_compare
663GNATMAKE
664GNATBIND
665ac_ct_CXX
666CXXFLAGS
667CXX
668OBJEXT
669EXEEXT
670ac_ct_CC
671CPPFLAGS
672LDFLAGS
673CFLAGS
674CC
5f520819 675extra_liboffloadmic_configure_flags
5213506e
RW
676target_subdir
677host_subdir
678build_subdir
679build_libsubdir
87264276
PB
680AWK
681SED
5213506e
RW
682LN_S
683LN
684INSTALL_DATA
685INSTALL_SCRIPT
686INSTALL_PROGRAM
687target_os
688target_vendor
689target_cpu
690target
691host_os
692host_vendor
693host_cpu
694host
695target_noncanonical
696host_noncanonical
697build_noncanonical
698build_os
699build_vendor
700build_cpu
701build
702TOPLEVEL_CONFIGURE_ARGUMENTS
703target_alias
704host_alias
705build_alias
706LIBS
707ECHO_T
708ECHO_N
709ECHO_C
710DEFS
711mandir
712localedir
713libdir
714psdir
715pdfdir
716dvidir
717htmldir
718infodir
719docdir
720oldincludedir
721includedir
722localstatedir
723sharedstatedir
724sysconfdir
725datadir
726datarootdir
727libexecdir
728sbindir
729bindir
730program_transform_name
731prefix
732exec_prefix
733PACKAGE_URL
734PACKAGE_BUGREPORT
735PACKAGE_STRING
736PACKAGE_VERSION
737PACKAGE_TARNAME
738PACKAGE_NAME
739PATH_SEPARATOR
740SHELL'
741ac_subst_files='serialization_dependencies
742host_makefile_frag
743target_makefile_frag
744alphaieee_frag
745ospace_frag'
746ac_user_opts='
747enable_option_checking
748with_build_libsubdir
a05c2c75 749with_system_zlib
85c64bbe
BS
750enable_as_accelerator_for
751enable_offload_targets
5213506e 752enable_gold
21539e2e 753enable_ld
78edb32f 754enable_compressed_debug_sections
87e6d9dc
TB
755enable_libquadmath
756enable_libquadmath_support
5213506e
RW
757enable_libada
758enable_libssp
1873ec0c 759enable_libstdcxx
5f520819 760enable_liboffloadmic
ff3ac0f4 761enable_bootstrap
5213506e
RW
762with_mpc
763with_mpc_include
764with_mpc_lib
765with_mpfr_dir
766with_mpfr
767with_mpfr_include
768with_mpfr_lib
769with_gmp_dir
770with_gmp
771with_gmp_include
772with_gmp_lib
5213506e 773with_stage1_libs
0b21f5d3 774with_stage1_ldflags
5213506e 775with_boot_libs
ed2eaa9f 776with_boot_ldflags
33ad93b9
RG
777with_isl
778with_isl_include
779with_isl_lib
780enable_isl_version_check
d7f09764 781enable_lto
45b3824d
TS
782enable_linker_plugin_configure_flags
783enable_linker_plugin_flags
5213506e 784enable_stage1_languages
43c40f3e 785enable_objc_gc
5213506e
RW
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
5213506e 827GFORTRAN_FOR_TARGET
632e2a07 828GOC_FOR_TARGET
5213506e
RW
829AR_FOR_TARGET
830AS_FOR_TARGET
831DLLTOOL_FOR_TARGET
832LD_FOR_TARGET
833LIPO_FOR_TARGET
834NM_FOR_TARGET
9bccfdf5 835OBJCOPY_FOR_TARGET
5213506e
RW
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}]
324402a0 1476 --enable-compressed-debug-sections={all,gas,gold,ld,none}
78edb32f
L
1477 Enable compressed debug sections for gas, gold or ld
1478 by default
87e6d9dc
TB
1479 --disable-libquadmath do not build libquadmath directory
1480 --disable-libquadmath-support
1481 disable libquadmath support for Fortran
30b74385
RW
1482 --enable-libada build libada directory
1483 --enable-libssp build libssp directory
1873ec0c 1484 --disable-libstdcxx do not build libstdc++-v3 directory
5f520819
KY
1485 --enable-liboffloadmic=ARG
1486 build liboffloadmic [ARG={no,host,target}]
ff3ac0f4 1487 --enable-bootstrap enable bootstrapping [yes if native build]
33ad93b9 1488 --disable-isl-version-check
560d18d3 1489 disable check for isl version
d7f09764 1490 --enable-lto enable link time optimization support
45b3824d
TS
1491 --enable-linker-plugin-configure-flags=FLAGS
1492 additional flags for configuring linker plugins
1493 [none]
1494 --enable-linker-plugin-flags=FLAGS
1495 additional flags for configuring and building linker
1496 plugins [none]
33e39b66
AS
1497 --enable-stage1-languages[=all]
1498 choose additional languages to build during stage1.
1499 Mostly useful for compiler development
43c40f3e
RO
1500 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1501 Objective-C runtime
318a4e6d 1502 --enable-vtable-verify Enable vtable verification feature
30b74385 1503 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1504 force sequential configuration of sub-packages for
1505 the host, target or build machine, or all
1506 sub-packages
1507 --enable-maintainer-mode
1508 enable make rules and dependencies not useful (and
1509 sometimes confusing) to the casual installer
1510 --enable-stage1-checking[=all]
1511 choose additional checking for stage1 of the
1512 compiler
1c710c3c 1513 --enable-werror enable -Werror in bootstrap stage2 and later
459260ec 1514 --enable-host-shared build host code as shared libraries
1c710c3c
DJ
1515
1516Optional Packages:
1517 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1518 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1519 --with-build-libsubdir=DIR Directory where to find libraries for build system
a05c2c75 1520 --with-system-zlib use installed libz
33e39b66
AS
1521 --with-mpc=PATH specify prefix directory for installed MPC package.
1522 Equivalent to --with-mpc-include=PATH/include plus
1523 --with-mpc-lib=PATH/lib
1524 --with-mpc-include=PATH specify directory for installed MPC include files
1525 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1526 --with-mpfr-dir=PATH this option has been REMOVED
1527 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1528 Equivalent to --with-mpfr-include=PATH/include plus
1529 --with-mpfr-lib=PATH/lib
1c710c3c 1530 --with-mpfr-include=PATH
30b74385
RW
1531 specify directory for installed MPFR include files
1532 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1533 --with-gmp-dir=PATH this option has been REMOVED
33e39b66
AS
1534 --with-gmp=PATH specify prefix directory for the installed GMP
1535 package. Equivalent to
1536 --with-gmp-include=PATH/include plus
1537 --with-gmp-lib=PATH/lib
30b74385
RW
1538 --with-gmp-include=PATH specify directory for installed GMP include files
1539 --with-gmp-lib=PATH specify directory for the installed GMP library
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
e357a5e0 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
560d18d3
AK
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
278a7a38
AO
1596 GFORTRAN_FOR_TARGET
1597 GFORTRAN for the target
632e2a07
ILT
1598 GOC_FOR_TARGET
1599 GOC for the target
278a7a38
AO
1600 AR_FOR_TARGET
1601 AR for the target
1602 AS_FOR_TARGET
1603 AS for the target
1604 DLLTOOL_FOR_TARGET
1605 DLLTOOL for the target
1606 LD_FOR_TARGET
1607 LD for the target
1608 LIPO_FOR_TARGET
1609 LIPO for the target
1610 NM_FOR_TARGET
1611 NM for the target
9bccfdf5
AP
1612 OBJCOPY_FOR_TARGET
1613 OBJCOPY for the target
278a7a38
AO
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".
bf1de3f0 2728host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
671aa708 2729
671aa708
NN
2730# these libraries are built for the target environment, and are built after
2731# the host libraries and the host tools (which may be a cross compiler)
8499116a 2732# Note that libiberty is not a target library.
291f172e 2733target_libraries="target-libgcc \
eff02e4f 2734 target-libbacktrace \
671aa708
NN
2735 target-libgloss \
2736 target-newlib \
6d3b5aea 2737 target-libgomp \
3038054c 2738 target-libcilkrts \
5f520819 2739 target-liboffloadmic \
48310492 2740 target-libatomic \
0a35513e 2741 target-libitm \
cb543528 2742 target-libstdc++-v3 \
f35db108 2743 target-libsanitizer \
2077db1b 2744 target-libvtv \
5373cd33 2745 target-libmpx \
77008252 2746 target-libssp \
1ec601bf 2747 target-libquadmath \
6de9cd9a 2748 target-libgfortran \
43c40f3e 2749 target-boehm-gc \
012447ea 2750 target-libffi \
d9cdb878 2751 target-libobjc \
632e2a07
ILT
2752 target-libada \
2753 target-libgo"
671aa708 2754
4dbda6f0
NN
2755# these tools are built using the target libraries, and are intended to
2756# run only in the target environment
671aa708 2757#
4dbda6f0 2758# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2759# list belongs in this list.
671aa708 2760#
85bfb75e 2761target_tools="target-rda"
79c06341 2762
671aa708 2763################################################################################
79c06341 2764
671aa708
NN
2765## All tools belong in one of the four categories, and are assigned above
2766## We assign ${configdirs} this way to remove all embedded newlines. This
2767## is important because configure will choke if they ever get through.
2768## ${configdirs} is directories we build using the host tools.
2769## ${target_configdirs} is directories we build using the target tools.
671aa708 2770configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2771target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2772build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2773
ac9e6043
RW
2774
2775
671aa708 2776################################################################################
79c06341 2777
671aa708 2778srcname="gnu development package"
79c06341 2779
671aa708
NN
2780# This gets set non-empty for some net releases of packages.
2781appdirs=""
79c06341 2782
671aa708
NN
2783# Define is_cross_compiler to save on calls to 'test'.
2784is_cross_compiler=
2785if test x"${host}" = x"${target}" ; then
2786 is_cross_compiler=no
79c06341 2787else
671aa708 2788 is_cross_compiler=yes
1c710c3c 2789fi
79c06341 2790
b4acb5ef 2791# Find the build and target subdir names.
8b87bb96 2792
2e9e6f68
DJ
2793# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2794# have matching libraries, they should use host libraries: Makefile.tpl
2795# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2796# However, they still use the build modules, because the corresponding
2797# host modules (e.g. bison) are only built for the host when bootstrap
2798# finishes. So:
2799# - build_subdir is where we find build modules, and never changes.
2800# - build_libsubdir is where we find build libraries, and can be overridden.
2801
2802# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2803build_subdir="build-${build_noncanonical}"
1c710c3c 2804
5213506e
RW
2805# Check whether --with-build-libsubdir was given.
2806if test "${with_build_libsubdir+set}" = set; then :
2807 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2808else
2809 build_libsubdir="$build_subdir"
5213506e
RW
2810fi
2811
215c351a
PB
2812# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2813if ( test $srcdir = . && test -d gcc ) \
2814 || test -d $srcdir/../host-${host_noncanonical}; then
2815 host_subdir="host-${host_noncanonical}"
2816else
2817 host_subdir=.
2818fi
8b87bb96
NN
2819# No prefix.
2820target_subdir=${target_noncanonical}
1c710c3c 2821
0db770bd
RW
2822# Be sure to cover against remnants of an in-tree build.
2823if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2824 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2825Use a pristine source tree when building in a separate tree" "$LINENO" 5
2826fi
79c06341 2827
671aa708
NN
2828# Skipdirs are removed silently.
2829skipdirs=
2830# Noconfigdirs are removed loudly.
2831noconfigdirs=""
79c06341 2832
671aa708
NN
2833use_gnu_ld=
2834# Make sure we don't let GNU ld be added if we didn't want it.
2835if test x$with_gnu_ld = xno ; then
2836 use_gnu_ld=no
5afab7ad 2837 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2838fi
2839
671aa708
NN
2840use_gnu_as=
2841# Make sure we don't let GNU as be added if we didn't want it.
2842if test x$with_gnu_as = xno ; then
2843 use_gnu_as=no
2844 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2845fi
2846
d7f09764 2847use_included_zlib=
a05c2c75
L
2848
2849# Check whether --with-system-zlib was given.
2850if test "${with_system_zlib+set}" = set; then :
2851 withval=$with_system_zlib;
2852fi
2853
d7f09764
DN
2854# Make sure we don't let ZLIB be added if we didn't want it.
2855if test x$with_system_zlib = xyes ; then
2856 use_included_zlib=no
2857 noconfigdirs="$noconfigdirs zlib"
2858fi
2859
1c710c3c 2860# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2861# it's not even worth trying to configure, much less build, that tool.
79c06341 2862
671aa708
NN
2863case ${with_x} in
2864 yes | "") ;; # the default value for this tree is that X11 is available
2865 no)
b4f96efe 2866 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2867 # We won't be able to build gdbtk without X.
1c710c3c 2868 enable_gdbtk=no
671aa708
NN
2869 ;;
2870 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2871esac
79c06341 2872
1bcce263 2873# Some are only suitable for cross toolchains.
671aa708
NN
2874# Remove these if host=target.
2875cross_only="target-libgloss target-newlib target-opcodes"
2876
2877case $is_cross_compiler in
2878 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 2879esac
79c06341 2880
671aa708
NN
2881# If both --with-headers and --with-libs are specified, default to
2882# --without-newlib.
ee6a22df
L
2883if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2884 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2885 if test x"${with_newlib}" = x ; then
2886 with_newlib=no
2887 fi
79c06341
JL
2888fi
2889
671aa708
NN
2890# Recognize --with-newlib/--without-newlib.
2891case ${with_newlib} in
2892 no) skipdirs="${skipdirs} target-newlib" ;;
2893 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2894esac
79c06341 2895
85c64bbe
BS
2896# Check whether --enable-as-accelerator-for was given.
2897if test "${enable_as_accelerator_for+set}" = set; then :
4b4f2e35 2898 enableval=$enable_as_accelerator_for;
85c64bbe
BS
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 2961 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
1b858e76 2962 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
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
78edb32f
L
3007# PR gas/19109
3008# Decide the default method for compressing debug sections.
3009# Provide a configure time option to override our default.
3010# Check whether --enable-compressed_debug_sections was given.
3011if test "${enable_compressed_debug_sections+set}" = set; then :
3012 enableval=$enable_compressed_debug_sections;
3013 if test x"$enable_compressed_debug_sections" = xyes; then
3014 as_fn_error "no program with compressed debug sections specified" "$LINENO" 5
3015 fi
3016
3017else
3018 enable_compressed_debug_sections=
3019fi
3020
3021
671aa708 3022# Configure extra directories which are host specific
79c06341 3023
671aa708
NN
3024case "${host}" in
3025 *-cygwin*)
3026 configdirs="$configdirs libtermcap" ;;
3027esac
79c06341 3028
4fab7234
HPN
3029# A target can indicate whether a language isn't supported for some reason.
3030# Only spaces may be used in this macro; not newlines or tabs.
3031unsupported_languages=
3032
1c710c3c 3033# Remove more programs from consideration, based on the host or
671aa708
NN
3034# target this usually means that a port of the program doesn't
3035# exist yet.
ec8d6ddc 3036
671aa708 3037case "${host}" in
111eeb6e 3038 i[3456789]86-*-msdosdjgpp*)
c9bdb152 3039 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 3040 ;;
671aa708 3041esac
ec8d6ddc 3042
6de9cd9a 3043
87e6d9dc
TB
3044# Check whether --enable-libquadmath was given.
3045if test "${enable_libquadmath+set}" = set; then :
3046 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3047else
3048 ENABLE_LIBQUADMATH=yes
3049fi
3050
3051if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3052 noconfigdirs="$noconfigdirs target-libquadmath"
3053fi
3054
3055
3056# Check whether --enable-libquadmath-support was given.
3057if test "${enable_libquadmath_support+set}" = set; then :
3058 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3059else
3060 ENABLE_LIBQUADMATH_SUPPORT=yes
3061fi
3062
3063enable_libquadmath_support=
3064if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3065 enable_libquadmath_support=no
3066fi
3067
3068
5213506e
RW
3069# Check whether --enable-libada was given.
3070if test "${enable_libada+set}" = set; then :
3071 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3072else
3073 ENABLE_LIBADA=yes
5213506e
RW
3074fi
3075
d9cdb878 3076if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3077 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3078fi
3079
5213506e
RW
3080# Check whether --enable-libssp was given.
3081if test "${enable_libssp+set}" = set; then :
3082 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3083else
3084 ENABLE_LIBSSP=yes
5213506e
RW
3085fi
3086
ef0087a7 3087
1873ec0c
L
3088# Check whether --enable-libstdcxx was given.
3089if test "${enable_libstdcxx+set}" = set; then :
3090 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3091else
3092 ENABLE_LIBSTDCXX=default
3093fi
3094
3095if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1007a55c 3096 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1873ec0c
L
3097fi
3098
5f520819
KY
3099# If this is accelerator compiler and its target is intelmic we enable
3100# target liboffloadmic by default. If this is compiler with offloading
3101# for intelmic we enable host liboffloadmic by default. Otherwise
3102# liboffloadmic is disabled by default.
3103# Check whether --enable-liboffloadmic was given.
3104if test "${enable_liboffloadmic+set}" = set; then :
3105 enableval=$enable_liboffloadmic; case "$enableval" in
3106 no | host | target)
3107 enable_liboffloadmic=$enableval ;;
3108 *)
3109 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3110esac
3111else
4b4f2e35 3112 if test x"$enable_as_accelerator_for" != x; then
5f520819
KY
3113 case "${target}" in
3114 *-intelmic-* | *-intelmicemul-*)
3115 enable_liboffloadmic=target
3116 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3117 ;;
3118 *)
3119 enable_liboffloadmic=no
3120 ;;
3121 esac
3122else
3123 case "${enable_offload_targets}" in
3124 *-intelmic-* | *-intelmicemul-*)
3125 enable_liboffloadmic=host
3126 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3127 ;;
3128 *)
3129 enable_liboffloadmic=no
3130 ;;
3131 esac
3132fi
3133fi
3134
3135
3136
44a7d18d 3137# Enable libgomp by default on hosted POSIX systems, and a few others.
27079765 3138if test x$enable_libgomp = x ; then
953ff289 3139 case "${target}" in
416ac4d4 3140 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3141 ;;
8c6d158a 3142 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3143 ;;
b24513a1 3144 *-*-solaris2* | *-*-hpux11*)
953ff289 3145 ;;
cac90078 3146 *-*-darwin* | *-*-aix*)
953ff289 3147 ;;
44a7d18d
TS
3148 nvptx*-*-*)
3149 ;;
953ff289
DN
3150 *)
3151 noconfigdirs="$noconfigdirs target-libgomp"
3152 ;;
3153 esac
27079765 3154fi
953ff289 3155
48310492
RH
3156# Disable libatomic on unsupported systems.
3157if test -d ${srcdir}/libatomic; then
3158 if test x$enable_libatomic = x; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3160$as_echo_n "checking for libatomic support... " >&6; }
3161 if (srcdir=${srcdir}/libatomic; \
3162 . ${srcdir}/configure.tgt; \
3163 test -n "$UNSUPPORTED")
3164 then
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166$as_echo "no" >&6; }
3167 noconfigdirs="$noconfigdirs target-libatomic"
3168 else
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3170$as_echo "yes" >&6; }
3171 fi
3172 fi
3173fi
3174
3038054c
BI
3175# Disable libcilkrts on unsupported systems.
3176if test -d ${srcdir}/libcilkrts; then
3177 if test x$enable_libcilkrts = x; then
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3179$as_echo_n "checking for libcilkrts support... " >&6; }
3180 if (srcdir=${srcdir}/libcilkrts; \
3181 . ${srcdir}/configure.tgt; \
3182 test -n "$UNSUPPORTED")
3183 then
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185$as_echo "no" >&6; }
3186 noconfigdirs="$noconfigdirs target-libcilkrts"
3187 else
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3189$as_echo "yes" >&6; }
3190 fi
3191 fi
3192fi
3193
5f520819
KY
3194# Disable liboffloadmic on unsupported systems.
3195if test -d ${srcdir}/liboffloadmic; then
3196 if test x$enable_liboffloadmic != xno; then
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3198$as_echo_n "checking for liboffloadmic support... " >&6; }
3199 if (srcdir=${srcdir}/liboffloadmic; \
3200 . ${srcdir}/configure.tgt; \
3201 test -n "$UNSUPPORTED")
3202 then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204$as_echo "no" >&6; }
3205 noconfigdirs="$noconfigdirs target-liboffloadmic"
3206 else
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3208$as_echo "yes" >&6; }
3209 fi
3210 fi
3211fi
3212
e948157d
RH
3213# Disable libitm on unsupported systems.
3214if test -d ${srcdir}/libitm; then
3215 if test x$enable_libitm = x; then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
01f3428c 3217$as_echo_n "checking for libitm support... " >&6; }
e948157d
RH
3218 if (srcdir=${srcdir}/libitm; \
3219 . ${srcdir}/configure.tgt; \
3220 test -n "$UNSUPPORTED")
3221 then
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
01f3428c 3223$as_echo "no" >&6; }
e948157d
RH
3224 noconfigdirs="$noconfigdirs target-libitm"
3225 else
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
01f3428c 3227$as_echo "yes" >&6; }
e948157d
RH
3228 fi
3229 fi
0a35513e
AH
3230fi
3231
93bf5390
RH
3232# Disable libsanitizer on unsupported systems.
3233if test -d ${srcdir}/libsanitizer; then
3234 if test x$enable_libsanitizer = x; then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3236$as_echo_n "checking for libsanitizer support... " >&6; }
3237 if (srcdir=${srcdir}/libsanitizer; \
3238 . ${srcdir}/configure.tgt; \
3239 test -n "$UNSUPPORTED")
3240 then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242$as_echo "no" >&6; }
3243 noconfigdirs="$noconfigdirs target-libsanitizer"
3244 else
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3246$as_echo "yes" >&6; }
3247 fi
3248 fi
3249fi
3250
2077db1b
CT
3251# Disable libvtv on unsupported systems.
3252if test -d ${srcdir}/libvtv; then
3253 if test x$enable_libvtv = x; then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3255$as_echo_n "checking for libvtv support... " >&6; }
3256 if (srcdir=${srcdir}/libvtv; \
3257 . ${srcdir}/configure.tgt; \
1e74b850 3258 test "$VTV_SUPPORTED" != "yes")
2077db1b
CT
3259 then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261$as_echo "no" >&6; }
3262 noconfigdirs="$noconfigdirs target-libvtv"
3263 else
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3265$as_echo "yes" >&6; }
3266 fi
3267 fi
3268fi
3269
5373cd33
IE
3270
3271# Enable libmpx on supported systems by request.
3272if test -d ${srcdir}/libmpx; then
54985c70 3273 if test x$enable_libmpx = x; then
5373cd33
IE
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3275$as_echo_n "checking for libmpx support... " >&6; }
3276 if (srcdir=${srcdir}/libmpx; \
3277 . ${srcdir}/configure.tgt; \
3278 test "$LIBMPX_SUPPORTED" != "yes")
3279 then
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3281$as_echo "no" >&6; }
3282 noconfigdirs="$noconfigdirs target-libmpx"
3283 else
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3285$as_echo "yes" >&6; }
3286 fi
5373cd33
IE
3287 fi
3288fi
3289
3290
3291
d91491e5
SE
3292# Disable libquadmath for some systems.
3293case "${target}" in
e7fae550
DE
3294 avr-*-*)
3295 noconfigdirs="$noconfigdirs target-libquadmath"
3296 ;;
d91491e5
SE
3297 # libquadmath is unused on AIX and libquadmath build process use of
3298 # LD_LIBRARY_PATH can break AIX bootstrap.
3299 powerpc-*-aix* | rs6000-*-aix*)
3300 noconfigdirs="$noconfigdirs target-libquadmath"
3301 ;;
3302esac
3303
1e9e0e23
JM
3304# Disable libssp for some systems.
3305case "${target}" in
3306 avr-*-*)
b318fb4b 3307 # No hosted I/O support.
1e9e0e23
JM
3308 noconfigdirs="$noconfigdirs target-libssp"
3309 ;;
3310 powerpc-*-aix* | rs6000-*-aix*)
3311 noconfigdirs="$noconfigdirs target-libssp"
85b8555e
DD
3312 ;;
3313 rl78-*-*)
7cb62ef1
EB
3314 # libssp uses a misaligned load to trigger a fault, but the RL78
3315 # doesn't fault for those - instead, it gives a build-time error
3316 # for explicit misaligned loads.
85b8555e 3317 noconfigdirs="$noconfigdirs target-libssp"
1e9e0e23 3318 ;;
0969ec7d
EB
3319 visium-*-*)
3320 # No hosted I/O support.
3321 noconfigdirs="$noconfigdirs target-libssp"
3322 ;;
1e9e0e23
JM
3323esac
3324
1e9e0e23 3325# Disable libstdc++-v3 for some systems.
1873ec0c
L
3326# Allow user to override this if they pass --enable-libstdc++-v3
3327if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3328 case "${target}" in
3329 *-*-vxworks*)
3330 # VxWorks uses the Dinkumware C++ library.
3331 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3332 ;;
3333 arm*-wince-pe*)
3334 # the C++ libraries don't build on top of CE's C libraries
3335 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3336 ;;
3337 avr-*-*)
3338 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3339 ;;
fef939d6
JB
3340 ft32-*-*)
3341 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3342 ;;
1873ec0c
L
3343 esac
3344fi
1e9e0e23
JM
3345
3346# Disable Fortran for some systems.
3347case "${target}" in
3348 mmix-*-*)
3349 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3350 unsupported_languages="$unsupported_languages fortran"
3351 ;;
3352esac
3353
012447ea
JJ
3354# Disable libffi for some systems.
3355case "${target}" in
3356 powerpc-*-darwin*)
3357 ;;
3358 i[3456789]86-*-darwin*)
3359 ;;
3360 x86_64-*-darwin[912]*)
3361 ;;
3362 *-*-darwin*)
3363 noconfigdirs="$noconfigdirs target-libffi"
3364 ;;
3365 *-*-netware*)
3366 noconfigdirs="$noconfigdirs target-libffi"
3367 ;;
3368 *-*-phoenix*)
3369 noconfigdirs="$noconfigdirs target-libffi"
3370 ;;
3371 *-*-rtems*)
3372 noconfigdirs="$noconfigdirs target-libffi"
3373 ;;
3374 *-*-tpf*)
3375 noconfigdirs="$noconfigdirs target-libffi"
3376 ;;
3377 *-*-uclinux*)
3378 noconfigdirs="$noconfigdirs target-libffi"
3379 ;;
3380 *-*-vxworks*)
3381 noconfigdirs="$noconfigdirs target-libffi"
3382 ;;
b20e7532
AT
3383 aarch64*-*-freebsd*)
3384 noconfigdirs="$noconfigdirs target-libffi"
3385 ;;
012447ea
JJ
3386 alpha*-*-*vms*)
3387 noconfigdirs="$noconfigdirs target-libffi"
3388 ;;
3389 arm*-*-freebsd*)
3390 noconfigdirs="$noconfigdirs target-libffi"
3391 ;;
3392 arm-wince-pe)
3393 noconfigdirs="$noconfigdirs target-libffi"
3394 ;;
3395 arm*-*-symbianelf*)
3396 noconfigdirs="$noconfigdirs target-libffi"
3397 ;;
3398 cris-*-* | crisv32-*-*)
3399 case "${target}" in
3400 *-*-linux*)
3401 ;;
3402 *) # See PR46792 regarding target-libffi.
3403 noconfigdirs="$noconfigdirs target-libffi";;
3404 esac
3405 ;;
3406 hppa*64*-*-hpux*)
3407 noconfigdirs="$noconfigdirs target-libffi"
3408 ;;
3409 hppa*-hp-hpux11*)
3410 ;;
3411 hppa*-*-hpux*)
3412 noconfigdirs="$noconfigdirs target-libffi"
3413 ;;
3414 ia64*-*-*vms*)
3415 noconfigdirs="$noconfigdirs target-libffi"
3416 ;;
3417 i[3456789]86-w64-mingw*)
3418 noconfigdirs="$noconfigdirs target-libffi"
3419 ;;
3420 i[3456789]86-*-mingw*)
3421 noconfigdirs="$noconfigdirs target-libffi"
3422 ;;
3423 x86_64-*-mingw*)
3424 noconfigdirs="$noconfigdirs target-libffi"
3425 ;;
3426 mmix-*-*)
3427 noconfigdirs="$noconfigdirs target-libffi"
3428 ;;
3429 powerpc-*-aix*)
3430 # copied from rs6000-*-* entry
3431 noconfigdirs="$noconfigdirs target-libffi"
3432 ;;
3433 rs6000-*-aix*)
3434 noconfigdirs="$noconfigdirs target-libffi"
3435 ;;
3436 ft32-*-*)
3437 noconfigdirs="$noconfigdirs target-libffi"
3438 ;;
3439 *-*-lynxos*)
3440 noconfigdirs="$noconfigdirs target-libffi"
3441 ;;
3442esac
3443
3444# Disable the go frontend on systems where it is known to not work. Please keep
3445# this in sync with contrib/config-list.mk.
3446case "${target}" in
3447*-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3448 unsupported_languages="$unsupported_languages go"
3449 ;;
3450esac
3451
cdbc9e92
ILT
3452# Disable libgo for some systems where it is known to not work.
3453# For testing, you can easily override this with --enable-libgo.
3454if test x$enable_libgo = x; then
3455 case "${target}" in
3456 *-*-darwin*)
3457 # PR 46986
3458 noconfigdirs="$noconfigdirs target-libgo"
3459 ;;
3460 *-*-cygwin* | *-*-mingw*)
3461 noconfigdirs="$noconfigdirs target-libgo"
3462 ;;
3463 *-*-aix*)
3464 noconfigdirs="$noconfigdirs target-libgo"
3465 ;;
3466 esac
3467fi
3468
c03353e2
RIL
3469# Default libgloss CPU subdirectory.
3470libgloss_dir="$target_cpu"
6de9cd9a 3471
fbcf0dca
JM
3472case "${target}" in
3473 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3474 libgloss_dir=wince
3475 ;;
4dddfc74
YZ
3476 aarch64*-*-* )
3477 libgloss_dir=aarch64
3478 ;;
fbcf0dca
JM
3479 arm*-*-*)
3480 libgloss_dir=arm
3481 ;;
3482 cris-*-* | crisv32-*-*)
3483 libgloss_dir=cris
3484 ;;
3485 hppa*-*-*)
3486 libgloss_dir=pa
3487 ;;
3488 i[3456789]86-*-*)
3489 libgloss_dir=i386
3490 ;;
3491 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3492 libgloss_dir=m68hc11
3493 ;;
3494 m68*-*-* | fido-*-*)
3495 libgloss_dir=m68k
3496 ;;
3497 mips*-*-*)
3498 libgloss_dir=mips
3499 ;;
3500 powerpc*-*-*)
3501 libgloss_dir=rs6000
3502 ;;
3503 sparc*-*-*)
3504 libgloss_dir=sparc
3505 ;;
3506esac
3507
6a789d5e 3508# Disable newlib and libgloss for various target OSes.
671aa708 3509case "${target}" in
6a789d5e
JM
3510 alpha*-dec-osf*)
3511 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3512 ;;
3513 i[3456789]86-*-linux*)
3514 # This section makes it possible to build newlib natively on linux.
3515 # If we are using a cross compiler then don't configure newlib.
3516 if test x${is_cross_compiler} != xno ; then
3517 noconfigdirs="$noconfigdirs target-newlib"
3518 fi
3519 noconfigdirs="$noconfigdirs target-libgloss"
3520 # If we are not using a cross compiler, do configure newlib.
3521 # Note however, that newlib will only be configured in this situation
3522 # if the --with-newlib option has been given, because otherwise
3523 # 'target-newlib' will appear in skipdirs.
3524 ;;
3525 i[3456789]86-*-rdos*)
3526 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3527 ;;
3528 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3529 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3530 ;;
3531 sparc-*-sunos4*)
3532 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3533 ;;
3534 *-*-aix*)
3535 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3536 ;;
3537 *-*-beos*)
3538 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3539 ;;
671aa708 3540 *-*-chorusos)
0036370f 3541 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3542 ;;
6a789d5e
JM
3543 *-*-dragonfly*)
3544 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3545 ;;
3546 *-*-freebsd*)
3547 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3548 ;;
3549 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3550 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3551 ;;
3552 *-*-lynxos*)
3553 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3554 ;;
3555 *-*-mingw*)
3556 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3557 ;;
3558 *-*-netbsd*)
3559 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3560 ;;
3561 *-*-netware*)
3562 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3563 ;;
3564 *-*-tpf*)
3565 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3566 ;;
3567 *-*-uclinux*)
3568 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3569 ;;
3570 *-*-vxworks*)
3571 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3572 ;;
3573esac
3574
3575case "${target}" in
3576 *-*-chorusos)
3577 ;;
3be96231
TG
3578 aarch64-*-darwin*)
3579 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3580 noconfigdirs="$noconfigdirs sim target-rda"
3581 ;;
3582 arm-*-darwin*)
3583 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3584 noconfigdirs="$noconfigdirs sim target-rda"
3585 ;;
75eeae1a 3586 powerpc-*-darwin*)
e1514c3f 3587 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3588 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3589 ;;
354ebf88
RW
3590 i[3456789]86-*-darwin*)
3591 noconfigdirs="$noconfigdirs ld gprof"
3592 noconfigdirs="$noconfigdirs sim target-rda"
3593 ;;
3594 x86_64-*-darwin[912]*)
0db3a858
TG
3595 noconfigdirs="$noconfigdirs ld gas gprof"
3596 noconfigdirs="$noconfigdirs sim target-rda"
3597 ;;
42c1cd8a
AT
3598 *-*-darwin*)
3599 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3600 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3601 ;;
8c6d158a 3602 *-*-dragonfly*)
8c6d158a 3603 ;;
c3f84f61 3604 *-*-freebsd*)
6de9cd9a
DN
3605 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3606 && test -f /usr/local/include/gmp.h; then
3607 with_gmp=/usr/local
3608 fi
6de9cd9a 3609 ;;
ef4e7569
US
3610 *-*-kaos*)
3611 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3612 noconfigdirs="$noconfigdirs target-libgloss"
3613 ;;
671aa708 3614 *-*-netbsd*)
671aa708 3615 ;;
61fec9ff 3616 *-*-netware*)
671aa708 3617 ;;
fd6487af
JS
3618 *-*-phoenix*)
3619 noconfigdirs="$noconfigdirs target-libgloss"
3620 ;;
671aa708 3621 *-*-rtems*)
2909494b 3622 noconfigdirs="$noconfigdirs target-libgloss"
d896cc4d
JBG
3623 # this is not caught below because this stanza matches earlier
3624 case $target in
3625 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3626 esac
671aa708 3627 ;;
a8ba31f2
EC
3628 # The tpf target doesn't support gdb yet.
3629 *-*-tpf*)
6a789d5e 3630 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3631 ;;
5785c0ed 3632 *-*-uclinux*)
6a789d5e 3633 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3634 ;;
671aa708 3635 *-*-vxworks*)
671aa708
NN
3636 ;;
3637 alpha*-dec-osf*)
3638 # ld works, but does not support shared libraries.
671aa708 3639 # gas doesn't generate exception information.
6a789d5e 3640 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3641 ;;
3642 alpha*-*-*vms*)
2909494b 3643 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3644 ;;
671aa708
NN
3645 alpha*-*-*)
3646 # newlib is not 64 bit ready
2909494b 3647 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3648 ;;
671aa708 3649 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3650 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708 3651 ;;
2fd88f4f
AK
3652 arc*-*-*)
3653 noconfigdirs="$noconfigdirs sim"
3654 ;;
671aa708 3655 arm-*-pe*)
2909494b 3656 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3657 ;;
671aa708 3658 arm-*-riscix*)
0036370f 3659 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3660 ;;
b588ae30
GJL
3661 avr-*-*)
3662 if test x${with_avrlibc} != xno; then
3663 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3664 fi
3665 ;;
671aa708 3666 c4x-*-* | tic4x-*-*)
0036370f 3667 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3668 ;;
0036370f
JM
3669 tic54x-*-*)
3670 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3671 ;;
671aa708 3672 d10v-*-*)
0036370f 3673 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3674 ;;
3675 d30v-*-*)
0036370f 3676 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3677 ;;
3678 fr30-*-elf*)
2909494b 3679 noconfigdirs="$noconfigdirs gdb"
671aa708 3680 ;;
a05c2c75
L
3681 ft32-*-*)
3682 noconfigdirs="$noconfigdirs target-rda gprof"
3683 ;;
55f2d967 3684 moxie-*-*)
a05c2c75 3685 noconfigdirs="$noconfigdirs"
55f2d967 3686 ;;
671aa708 3687 h8300*-*-*)
2909494b 3688 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3689 ;;
3690 h8500-*-*)
0036370f 3691 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3692 ;;
ee6a22df 3693 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3694 ;;
a05c2c75
L
3695 hppa*64*-*-hpux*)
3696 noconfigdirs="$noconfigdirs gdb"
3697 ;;
3698 hppa*-*-hpux11*)
3699 noconfigdirs="$noconfigdirs gdb ld"
3700 ;;
4569f85e 3701 hppa*64*-*-linux*)
671aa708 3702 ;;
56f8587a 3703 hppa*-*-linux*)
3e732ba0 3704 ;;
671aa708 3705 hppa*-*-*elf* | \
671aa708
NN
3706 hppa*-*-lites* | \
3707 hppa*-*-openbsd* | \
3708 hppa*64*-*-*)
671aa708 3709 ;;
c03353e2 3710 hppa*-*-pro*)
c03353e2 3711 ;;
671aa708 3712 hppa*-*-*)
2909494b 3713 noconfigdirs="$noconfigdirs ld"
671aa708 3714 ;;
fb87ad5d 3715 i960-*-*)
0036370f 3716 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3717 ;;
671aa708
NN
3718 ia64*-*-elf*)
3719 # No gdb support yet.
1bcce263 3720 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3721 ;;
3722 ia64*-**-hpux*)
5a2931d1 3723 # No ld support yet.
a05c2c75 3724 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
671aa708 3725 ;;
52535a64 3726 ia64*-*-*vms*)
091fe9ca
TG
3727 # No ld support yet.
3728 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3729 ;;
ef4c4300 3730 i[3456789]86-w64-mingw*)
ef4c4300
KT
3731 ;;
3732 i[3456789]86-*-mingw*)
b91f0a41 3733 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3734 ;;
671aa708
NN
3735 *-*-cygwin*)
3736 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3737 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3738 # always build newlib if winsup directory is present.
b91f0a41 3739 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3740 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3741 elif test -d "$srcdir/newlib"; then
b91f0a41 3742 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3743 fi
1c710c3c 3744 ;;
f2a0e225 3745 i[3456789]86-*-pe)
ebb9f8b0 3746 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3747 ;;
f2a0e225 3748 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3749 # The linker does not yet know about weak symbols in COFF,
3750 # and is not configured to handle mixed ELF and COFF.
0036370f 3751 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3752 ;;
f2a0e225 3753 i[3456789]86-*-sco*)
0036370f 3754 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3755 ;;
fbdd5d87 3756 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3757 noconfigdirs="$noconfigdirs target-libgloss"
3758 ;;
f2a0e225 3759 i[3456789]86-*-sysv4*)
0036370f 3760 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3761 ;;
f2a0e225 3762 i[3456789]86-*-beos*)
6a789d5e 3763 noconfigdirs="$noconfigdirs gdb"
3aa83176 3764 ;;
d1f8db0c 3765 i[3456789]86-*-rdos*)
6a789d5e 3766 noconfigdirs="$noconfigdirs gdb"
c03353e2 3767 ;;
671aa708 3768 mmix-*-*)
2909494b 3769 noconfigdirs="$noconfigdirs gdb"
671aa708 3770 ;;
ab34901f 3771 mt-*-*)
79dd769c
AH
3772 noconfigdirs="$noconfigdirs sim"
3773 ;;
671aa708
NN
3774 powerpc-*-aix*)
3775 # copied from rs6000-*-* entry
6a789d5e 3776 noconfigdirs="$noconfigdirs gprof"
671aa708 3777 ;;
4569f85e 3778 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3779 target_configdirs="$target_configdirs target-winsup"
0036370f 3780 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3781 # always build newlib.
3782 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3783 ;;
3784 # This is temporary until we can link against shared libraries
3785 powerpcle-*-solaris*)
0036370f 3786 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3787 ;;
3788 powerpc-*-beos*)
6a789d5e 3789 noconfigdirs="$noconfigdirs gdb"
671aa708 3790 ;;
671aa708 3791 rs6000-*-lynxos*)
6a789d5e 3792 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3793 ;;
3794 rs6000-*-aix*)
6a789d5e 3795 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3796 ;;
3797 rs6000-*-*)
2909494b 3798 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3799 ;;
3800 m68k-apollo-*)
0036370f 3801 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3802 ;;
ca9fe997 3803 microblaze*)
2909494b 3804 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3805 ;;
d896cc4d 3806 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
d9dced13
RS
3807 if test x$with_newlib = xyes; then
3808 noconfigdirs="$noconfigdirs gprof"
3809 fi
d9dced13 3810 ;;
671aa708 3811 mips*-*-irix5*)
0036370f 3812 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3813 ;;
3814 mips*-*-irix6*)
2909494b 3815 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3816 ;;
671aa708 3817 mips*-*-bsd*)
bc98bcc4 3818 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
671aa708 3819 ;;
671aa708 3820 mips*-*-linux*)
671aa708 3821 ;;
bc98bcc4
JBG
3822 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3823 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3824 noconfigdirs="$noconfigdirs ld gas gprof"
3825 ;;
671aa708 3826 mips*-*-*)
2909494b 3827 noconfigdirs="$noconfigdirs gprof"
671aa708 3828 ;;
738f2522 3829 nvptx*-*-*)
738f2522
BS
3830 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3831 ;;
d896cc4d
JBG
3832 or1k*-*-*)
3833 noconfigdirs="$noconfigdirs gdb"
3834 ;;
bc6d9014 3835 sh-*-*)
ea2002ba
CB
3836 case "${target}" in
3837 sh*-*-elf)
2909494b 3838 ;;
ea2002ba 3839 *)
2909494b 3840 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 3841 esac
671aa708 3842 ;;
671aa708 3843 sparc-*-sunos4*)
6a789d5e 3844 if test x${is_cross_compiler} = xno ; then
671aa708
NN
3845 use_gnu_ld=no
3846 fi
3847 ;;
b42f0d7e 3848 tic6x-*-*)
0d557ff8 3849 noconfigdirs="$noconfigdirs sim"
b42f0d7e 3850 ;;
341c653c 3851 tilepro*-*-* | tilegx*-*-*)
db1d217c
WL
3852 noconfigdirs="$noconfigdirs sim"
3853 ;;
671aa708 3854 v810-*-*)
0036370f 3855 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
3856 ;;
3857 vax-*-*)
2909494b 3858 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3859 ;;
671aa708 3860esac
79c06341 3861
671aa708
NN
3862# If we aren't building newlib, then don't build libgloss, since libgloss
3863# depends upon some newlib header files.
3864case "${noconfigdirs}" in
3865 *target-libgloss*) ;;
3866 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3867esac
3868
671aa708 3869# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
3870host_makefile_frag=/dev/null
3871if test -d ${srcdir}/config ; then
3872case "${host}" in
f2a0e225 3873 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
3874 host_makefile_frag="config/mh-djgpp"
3875 ;;
3876 *-cygwin*)
2a79c47f 3877
5213506e
RW
3878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3879$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 3880echo a >cygwin-cat-check
e25a8c82 3881if test `cat cygwin-cat-check` = a ; then
2a79c47f 3882 rm cygwin-cat-check
5213506e
RW
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3884$as_echo "yes" >&6; }
2a79c47f
NC
3885else
3886 rm cygwin-cat-check
5213506e
RW
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3888$as_echo "no" >&6; }
3889 as_fn_error "The cat command does not ignore carriage return characters.
2a79c47f
NC
3890 Please either mount the build directory in binary mode or run the following
3891 commands before running any configure script:
3892set -o igncr
3893export SHELLOPTS
5213506e 3894 " "$LINENO" 5
2a79c47f
NC
3895fi
3896
671aa708
NN
3897 host_makefile_frag="config/mh-cygwin"
3898 ;;
c53a18d3 3899 *-mingw*)
1f5a6b84 3900 host_makefile_frag="config/mh-mingw"
95af8923 3901 ;;
cabb9d59 3902 alpha*-linux*)
13be44ed
UB
3903 host_makefile_frag="config/mh-alpha-linux"
3904 ;;
efd41714 3905 hppa*-hp-hpux10*)
efd41714 3906 host_makefile_frag="config/mh-pa-hpux10"
671aa708 3907 ;;
111eeb6e 3908 hppa*-hp-hpux*)
efd41714
PB
3909 host_makefile_frag="config/mh-pa"
3910 ;;
3911 hppa*-*)
3912 host_makefile_frag="config/mh-pa"
3913 ;;
d8ed14ce
IS
3914 *-*-darwin*)
3915 host_makefile_frag="config/mh-darwin"
be8fff81 3916 ;;
d19bca38
PB
3917 powerpc-*-aix*)
3918 host_makefile_frag="config/mh-ppc-aix"
3919 ;;
3920 rs6000-*-aix*)
3921 host_makefile_frag="config/mh-ppc-aix"
3922 ;;
671aa708
NN
3923esac
3924fi
3925
55ffb5ed 3926if test "${build}" != "${host}" ; then
0999159b
PB
3927 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3928 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 3929 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b 3930 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
0999159b 3931 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 3932 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
0999159b
PB
3933 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3934 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3935 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3936 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3937 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3938 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3939else
3940 AR_FOR_BUILD="\$(AR)"
3941 AS_FOR_BUILD="\$(AS)"
fb0103e5 3942 CC_FOR_BUILD="\$(CC)"
0999159b 3943 CXX_FOR_BUILD="\$(CXX)"
0999159b 3944 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 3945 GOC_FOR_BUILD="\$(GOC)"
0999159b
PB
3946 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3947 LD_FOR_BUILD="\$(LD)"
3948 NM_FOR_BUILD="\$(NM)"
3949 RANLIB_FOR_BUILD="\$(RANLIB)"
3950 WINDRES_FOR_BUILD="\$(WINDRES)"
3951 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
3952fi
3953
3954ac_ext=c
1c710c3c
DJ
3955ac_cpp='$CPP $CPPFLAGS'
3956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3958ac_compiler_gnu=$ac_cv_c_compiler_gnu
3959if test -n "$ac_tool_prefix"; then
3960 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3961set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3963$as_echo_n "checking for $ac_word... " >&6; }
3964if test "${ac_cv_prog_CC+set}" = set; then :
3965 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3966else
3967 if test -n "$CC"; then
3968 ac_cv_prog_CC="$CC" # Let the user override the test.
3969else
3970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971for as_dir in $PATH
3972do
3973 IFS=$as_save_IFS
3974 test -z "$as_dir" && as_dir=.
5213506e
RW
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3977 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3979 break 2
3980 fi
3981done
5213506e
RW
3982 done
3983IFS=$as_save_IFS
1c710c3c
DJ
3984
3985fi
3986fi
3987CC=$ac_cv_prog_CC
3988if test -n "$CC"; then
5213506e
RW
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3990$as_echo "$CC" >&6; }
1c710c3c 3991else
5213506e
RW
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993$as_echo "no" >&6; }
1c710c3c
DJ
3994fi
3995
5213506e 3996
1c710c3c
DJ
3997fi
3998if test -z "$ac_cv_prog_CC"; then
3999 ac_ct_CC=$CC
fb0103e5
RG
4000 # Extract the first word of "gcc", so it can be a program name with args.
4001set dummy gcc; ac_word=$2
5213506e
RW
4002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4003$as_echo_n "checking for $ac_word... " >&6; }
4004if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4005 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4006else
4007 if test -n "$ac_ct_CC"; then
4008 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4009else
4010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011for as_dir in $PATH
4012do
4013 IFS=$as_save_IFS
4014 test -z "$as_dir" && as_dir=.
5213506e
RW
4015 for ac_exec_ext in '' $ac_executable_extensions; do
4016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4017 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4019 break 2
4020 fi
4021done
5213506e
RW
4022 done
4023IFS=$as_save_IFS
1c710c3c
DJ
4024
4025fi
4026fi
4027ac_ct_CC=$ac_cv_prog_ac_ct_CC
4028if test -n "$ac_ct_CC"; then
5213506e
RW
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4030$as_echo "$ac_ct_CC" >&6; }
1c710c3c 4031else
5213506e
RW
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4033$as_echo "no" >&6; }
1c710c3c
DJ
4034fi
4035
5213506e
RW
4036 if test "x$ac_ct_CC" = x; then
4037 CC=""
4038 else
4039 case $cross_compiling:$ac_tool_warned in
4040yes:)
4041{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4042$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4043ac_tool_warned=yes ;;
4044esac
4045 CC=$ac_ct_CC
4046 fi
1c710c3c
DJ
4047else
4048 CC="$ac_cv_prog_CC"
4049fi
4050
4051if test -z "$CC"; then
5213506e
RW
4052 if test -n "$ac_tool_prefix"; then
4053 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4054set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4056$as_echo_n "checking for $ac_word... " >&6; }
4057if test "${ac_cv_prog_CC+set}" = set; then :
4058 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4059else
4060 if test -n "$CC"; then
4061 ac_cv_prog_CC="$CC" # Let the user override the test.
4062else
1c710c3c
DJ
4063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064for as_dir in $PATH
4065do
4066 IFS=$as_save_IFS
4067 test -z "$as_dir" && as_dir=.
5213506e
RW
4068 for ac_exec_ext in '' $ac_executable_extensions; do
4069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4070 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4072 break 2
4073 fi
4074done
5213506e
RW
4075 done
4076IFS=$as_save_IFS
1c710c3c 4077
0b0dc272 4078fi
0b0dc272 4079fi
1c710c3c 4080CC=$ac_cv_prog_CC
af71363e 4081if test -n "$CC"; then
5213506e
RW
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4083$as_echo "$CC" >&6; }
2aeb72e9 4084else
5213506e
RW
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4086$as_echo "no" >&6; }
2aeb72e9
DD
4087fi
4088
2aeb72e9 4089
5213506e 4090 fi
1c710c3c 4091fi
55ffb5ed
NN
4092if test -z "$CC"; then
4093 # Extract the first word of "cc", so it can be a program name with args.
4094set dummy cc; ac_word=$2
5213506e
RW
4095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4096$as_echo_n "checking for $ac_word... " >&6; }
4097if test "${ac_cv_prog_CC+set}" = set; then :
4098 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4099else
4100 if test -n "$CC"; then
4101 ac_cv_prog_CC="$CC" # Let the user override the test.
4102else
0b0dc272 4103 ac_prog_rejected=no
1c710c3c
DJ
4104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105for as_dir in $PATH
4106do
4107 IFS=$as_save_IFS
4108 test -z "$as_dir" && as_dir=.
5213506e
RW
4109 for ac_exec_ext in '' $ac_executable_extensions; do
4110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
4111 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4112 ac_prog_rejected=yes
4113 continue
4114 fi
4115 ac_cv_prog_CC="cc"
5213506e 4116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4117 break 2
4118 fi
4119done
5213506e
RW
4120 done
4121IFS=$as_save_IFS
1c710c3c 4122
55ffb5ed
NN
4123if test $ac_prog_rejected = yes; then
4124 # We found a bogon in the path, so make sure we never use it.
4125 set dummy $ac_cv_prog_CC
4126 shift
1c710c3c 4127 if test $# != 0; then
55ffb5ed
NN
4128 # We chose a different compiler from the bogus one.
4129 # However, it has the same basename, so the bogon will be chosen
4130 # first if we set CC to just the basename; use the full file name.
4131 shift
1c710c3c 4132 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4133 fi
4134fi
4135fi
4136fi
1c710c3c 4137CC=$ac_cv_prog_CC
55ffb5ed 4138if test -n "$CC"; then
5213506e
RW
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4140$as_echo "$CC" >&6; }
55ffb5ed 4141else
5213506e
RW
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4143$as_echo "no" >&6; }
55ffb5ed
NN
4144fi
4145
5213506e 4146
1c710c3c
DJ
4147fi
4148if test -z "$CC"; then
4149 if test -n "$ac_tool_prefix"; then
5213506e 4150 for ac_prog in cl.exe
1c710c3c
DJ
4151 do
4152 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4153set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4155$as_echo_n "checking for $ac_word... " >&6; }
4156if test "${ac_cv_prog_CC+set}" = set; then :
4157 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4158else
4159 if test -n "$CC"; then
4160 ac_cv_prog_CC="$CC" # Let the user override the test.
4161else
1c710c3c
DJ
4162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163for as_dir in $PATH
4164do
4165 IFS=$as_save_IFS
4166 test -z "$as_dir" && as_dir=.
5213506e
RW
4167 for ac_exec_ext in '' $ac_executable_extensions; do
4168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4169 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4171 break 2
4172 fi
4173done
5213506e
RW
4174 done
4175IFS=$as_save_IFS
1c710c3c 4176
55ffb5ed
NN
4177fi
4178fi
1c710c3c 4179CC=$ac_cv_prog_CC
55ffb5ed 4180if test -n "$CC"; then
5213506e
RW
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4182$as_echo "$CC" >&6; }
a4b9e93e 4183else
5213506e
RW
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4185$as_echo "no" >&6; }
fb0103e5 4186fi
af71363e 4187
5213506e 4188
1c710c3c
DJ
4189 test -n "$CC" && break
4190 done
af71363e 4191fi
1c710c3c
DJ
4192if test -z "$CC"; then
4193 ac_ct_CC=$CC
5213506e 4194 for ac_prog in cl.exe
1c710c3c
DJ
4195do
4196 # Extract the first word of "$ac_prog", so it can be a program name with args.
4197set dummy $ac_prog; ac_word=$2
5213506e
RW
4198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4199$as_echo_n "checking for $ac_word... " >&6; }
4200if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4201 $as_echo_n "(cached) " >&6
0b0dc272 4202else
1c710c3c
DJ
4203 if test -n "$ac_ct_CC"; then
4204 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4205else
1c710c3c
DJ
4206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207for as_dir in $PATH
4208do
4209 IFS=$as_save_IFS
4210 test -z "$as_dir" && as_dir=.
5213506e
RW
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4213 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4215 break 2
4216 fi
4217done
5213506e
RW
4218 done
4219IFS=$as_save_IFS
1c710c3c 4220
af71363e
AS
4221fi
4222fi
1c710c3c
DJ
4223ac_ct_CC=$ac_cv_prog_ac_ct_CC
4224if test -n "$ac_ct_CC"; then
5213506e
RW
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4226$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4227else
5213506e
RW
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229$as_echo "no" >&6; }
af71363e 4230fi
0b0dc272 4231
5213506e 4232
1c710c3c
DJ
4233 test -n "$ac_ct_CC" && break
4234done
4235
5213506e
RW
4236 if test "x$ac_ct_CC" = x; then
4237 CC=""
4238 else
4239 case $cross_compiling:$ac_tool_warned in
4240yes:)
4241{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4242$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4243ac_tool_warned=yes ;;
4244esac
4245 CC=$ac_ct_CC
4246 fi
1c710c3c
DJ
4247fi
4248
4249fi
4250
4251
5213506e
RW
4252test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4253$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4254as_fn_error "no acceptable C compiler found in \$PATH
4255See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4256
4257# Provide some information about the compiler.
5213506e
RW
4258$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4259set X $ac_compile
4260ac_compiler=$2
4261for ac_option in --version -v -V -qversion; do
4262 { { ac_try="$ac_compiler $ac_option >&5"
4263case "(($ac_try" in
4264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4266esac
4267eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4268$as_echo "$ac_try_echo"; } >&5
4269 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4270 ac_status=$?
5213506e
RW
4271 if test -s conftest.err; then
4272 sed '10a\
4273... rest of stderr output deleted ...
4274 10q' conftest.err >conftest.er1
4275 cat conftest.er1 >&5
4276 rm -f conftest.er1 conftest.err
4277 fi
4278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4279 test $ac_status = 0; }
4280done
1c710c3c 4281
5213506e 4282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4283/* end confdefs.h. */
4284
4285int
4286main ()
4287{
4288
4289 ;
4290 return 0;
4291}
4292_ACEOF
4293ac_clean_files_save=$ac_clean_files
5213506e 4294ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
1c710c3c
DJ
4295# Try to create an executable without -o first, disregard a.out.
4296# It will help us diagnose broken compilers, and finding out an intuition
4297# of exeext.
5213506e
RW
4298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4299$as_echo_n "checking for C compiler default output file name... " >&6; }
4300ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4301
4302# The possible output files:
4303ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4304
4305ac_rmfiles=
4306for ac_file in $ac_files
4307do
4308 case $ac_file in
4309 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4310 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4311 esac
4312done
4313rm -f $ac_rmfiles
4314
4315if { { ac_try="$ac_link_default"
4316case "(($ac_try" in
4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318 *) ac_try_echo=$ac_try;;
4319esac
4320eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4321$as_echo "$ac_try_echo"; } >&5
4322 (eval "$ac_link_default") 2>&5
1c710c3c 4323 ac_status=$?
5213506e
RW
4324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4325 test $ac_status = 0; }; then :
4326 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4327# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4328# in a Makefile. We should not override ac_cv_exeext if it was cached,
4329# so that the user can short-circuit this test for compilers unknown to
4330# Autoconf.
4331for ac_file in $ac_files ''
1c710c3c
DJ
4332do
4333 test -f "$ac_file" || continue
4334 case $ac_file in
5213506e 4335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4336 ;;
4337 [ab].out )
4338 # We found the default executable, but exeext='' is most
4339 # certainly right.
4340 break;;
4341 *.* )
5213506e
RW
4342 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4343 then :; else
4344 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4345 fi
4346 # We set ac_cv_exeext here because the later test for it is not
4347 # safe: cross compilers may not add the suffix if given an `-o'
4348 # argument, so we may need to know it at that point already.
4349 # Even if this section looks crufty: it has the advantage of
4350 # actually working.
1c710c3c
DJ
4351 break;;
4352 * )
4353 break;;
4354 esac
4355done
5213506e
RW
4356test "$ac_cv_exeext" = no && ac_cv_exeext=
4357
1c710c3c 4358else
5213506e
RW
4359 ac_file=''
4360fi
4361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4362$as_echo "$ac_file" >&6; }
4363if test -z "$ac_file"; then :
4364 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4365sed 's/^/| /' conftest.$ac_ext >&5
4366
5213506e
RW
4367{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4368$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4369{ as_fn_set_status 77
4370as_fn_error "C compiler cannot create executables
4371See \`config.log' for more details." "$LINENO" 5; }; }
1c710c3c 4372fi
1c710c3c 4373ac_exeext=$ac_cv_exeext
1c710c3c 4374
5213506e 4375# Check that the compiler produces executables we can run. If not, either
1c710c3c 4376# the compiler is broken, or we cross compile.
5213506e
RW
4377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4378$as_echo_n "checking whether the C compiler works... " >&6; }
1c710c3c
DJ
4379# If not cross compiling, check that we can run a simple program.
4380if test "$cross_compiling" != yes; then
4381 if { ac_try='./$ac_file'
5213506e
RW
4382 { { case "(($ac_try" in
4383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384 *) ac_try_echo=$ac_try;;
4385esac
4386eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4387$as_echo "$ac_try_echo"; } >&5
4388 (eval "$ac_try") 2>&5
1c710c3c 4389 ac_status=$?
5213506e
RW
4390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4391 test $ac_status = 0; }; }; then
1c710c3c
DJ
4392 cross_compiling=no
4393 else
4394 if test "$cross_compiling" = maybe; then
4395 cross_compiling=yes
4396 else
5213506e
RW
4397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4398$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4399as_fn_error "cannot run C compiled programs.
1c710c3c 4400If you meant to cross compile, use \`--host'.
5213506e 4401See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4402 fi
4403 fi
4404fi
5213506e
RW
4405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4406$as_echo "yes" >&6; }
1c710c3c 4407
5213506e 4408rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
1c710c3c 4409ac_clean_files=$ac_clean_files_save
5213506e 4410# Check that the compiler produces executables we can run. If not, either
1c710c3c 4411# the compiler is broken, or we cross compile.
5213506e
RW
4412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4413$as_echo_n "checking whether we are cross compiling... " >&6; }
4414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4415$as_echo "$cross_compiling" >&6; }
4416
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4418$as_echo_n "checking for suffix of executables... " >&6; }
4419if { { ac_try="$ac_link"
4420case "(($ac_try" in
4421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422 *) ac_try_echo=$ac_try;;
4423esac
4424eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4425$as_echo "$ac_try_echo"; } >&5
4426 (eval "$ac_link") 2>&5
1c710c3c 4427 ac_status=$?
5213506e
RW
4428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4429 test $ac_status = 0; }; then :
1c710c3c
DJ
4430 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4431# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4432# work properly (i.e., refer to `conftest.exe'), while it won't with
4433# `rm'.
4434for ac_file in conftest.exe conftest conftest.*; do
4435 test -f "$ac_file" || continue
4436 case $ac_file in
5213506e 4437 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4438 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4439 break;;
4440 * ) break;;
4441 esac
4442done
af71363e 4443else
5213506e
RW
4444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4445$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4446as_fn_error "cannot compute suffix of executables: cannot compile and link
4447See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4448fi
1c710c3c 4449rm -f conftest$ac_cv_exeext
5213506e
RW
4450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4451$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4452
4453rm -f conftest.$ac_ext
4454EXEEXT=$ac_cv_exeext
4455ac_exeext=$EXEEXT
5213506e
RW
4456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4457$as_echo_n "checking for suffix of object files... " >&6; }
4458if test "${ac_cv_objext+set}" = set; then :
4459 $as_echo_n "(cached) " >&6
1c710c3c 4460else
5213506e 4461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4462/* end confdefs.h. */
4463
4464int
4465main ()
4466{
4467
4468 ;
4469 return 0;
4470}
4471_ACEOF
4472rm -f conftest.o conftest.obj
5213506e
RW
4473if { { ac_try="$ac_compile"
4474case "(($ac_try" in
4475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476 *) ac_try_echo=$ac_try;;
4477esac
4478eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4479$as_echo "$ac_try_echo"; } >&5
4480 (eval "$ac_compile") 2>&5
1c710c3c 4481 ac_status=$?
5213506e
RW
4482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4483 test $ac_status = 0; }; then :
4484 for ac_file in conftest.o conftest.obj conftest.*; do
4485 test -f "$ac_file" || continue;
1c710c3c 4486 case $ac_file in
5213506e 4487 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4488 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4489 break;;
4490 esac
4491done
4492else
5213506e 4493 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4494sed 's/^/| /' conftest.$ac_ext >&5
4495
5213506e
RW
4496{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4498as_fn_error "cannot compute suffix of object files: cannot compile
4499See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4500fi
1c710c3c
DJ
4501rm -f conftest.$ac_cv_objext conftest.$ac_ext
4502fi
5213506e
RW
4503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4504$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4505OBJEXT=$ac_cv_objext
4506ac_objext=$OBJEXT
5213506e
RW
4507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4508$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4509if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4510 $as_echo_n "(cached) " >&6
1c710c3c 4511else
5213506e 4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4513/* end confdefs.h. */
4514
4515int
4516main ()
4517{
4518#ifndef __GNUC__
4519 choke me
4520#endif
4521
4522 ;
4523 return 0;
4524}
4525_ACEOF
5213506e 4526if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4527 ac_compiler_gnu=yes
4528else
5213506e 4529 ac_compiler_gnu=no
1c710c3c 4530fi
5213506e 4531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4532ac_cv_c_compiler_gnu=$ac_compiler_gnu
4533
4534fi
5213506e
RW
4535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4536$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4537if test $ac_compiler_gnu = yes; then
4538 GCC=yes
4539else
4540 GCC=
4541fi
1c710c3c
DJ
4542ac_test_CFLAGS=${CFLAGS+set}
4543ac_save_CFLAGS=$CFLAGS
5213506e
RW
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4545$as_echo_n "checking whether $CC accepts -g... " >&6; }
4546if test "${ac_cv_prog_cc_g+set}" = set; then :
4547 $as_echo_n "(cached) " >&6
4548else
4549 ac_save_c_werror_flag=$ac_c_werror_flag
4550 ac_c_werror_flag=yes
4551 ac_cv_prog_cc_g=no
4552 CFLAGS="-g"
4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4554/* end confdefs.h. */
4555
4556int
4557main ()
4558{
4559
4560 ;
4561 return 0;
4562}
4563_ACEOF
5213506e 4564if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4565 ac_cv_prog_cc_g=yes
4566else
5213506e
RW
4567 CFLAGS=""
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569/* end confdefs.h. */
4570
4571int
4572main ()
4573{
4574
4575 ;
4576 return 0;
4577}
4578_ACEOF
4579if ac_fn_c_try_compile "$LINENO"; then :
4580
4581else
4582 ac_c_werror_flag=$ac_save_c_werror_flag
4583 CFLAGS="-g"
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585/* end confdefs.h. */
af71363e 4586
5213506e
RW
4587int
4588main ()
4589{
4590
4591 ;
4592 return 0;
4593}
4594_ACEOF
4595if ac_fn_c_try_compile "$LINENO"; then :
4596 ac_cv_prog_cc_g=yes
4597fi
4598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4599fi
5213506e 4600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4601fi
5213506e
RW
4602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4603 ac_c_werror_flag=$ac_save_c_werror_flag
4604fi
4605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4606$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4607if test "$ac_test_CFLAGS" = set; then
1c710c3c 4608 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4609elif test $ac_cv_prog_cc_g = yes; then
4610 if test "$GCC" = yes; then
4611 CFLAGS="-g -O2"
4612 else
4613 CFLAGS="-g"
4614 fi
4615else
4616 if test "$GCC" = yes; then
4617 CFLAGS="-O2"
4618 else
4619 CFLAGS=
4620 fi
4621fi
5213506e
RW
4622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4623$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4624if test "${ac_cv_prog_cc_c89+set}" = set; then :
4625 $as_echo_n "(cached) " >&6
1c710c3c 4626else
5213506e 4627 ac_cv_prog_cc_c89=no
1c710c3c 4628ac_save_CC=$CC
5213506e 4629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4630/* end confdefs.h. */
4631#include <stdarg.h>
4632#include <stdio.h>
4633#include <sys/types.h>
4634#include <sys/stat.h>
4635/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4636struct buf { int x; };
4637FILE * (*rcsopen) (struct buf *, struct stat *, int);
4638static char *e (p, i)
4639 char **p;
4640 int i;
4641{
4642 return p[i];
4643}
4644static char *f (char * (*g) (char **, int), char **p, ...)
4645{
4646 char *s;
4647 va_list v;
4648 va_start (v,p);
4649 s = g (p, va_arg (v,int));
4650 va_end (v);
4651 return s;
4652}
4653
4654/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4655 function prototypes and stuff, but not '\xHH' hex character constants.
4656 These don't provoke an error unfortunately, instead are silently treated
5213506e 4657 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4658 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4659 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4660 that's true only with -std. */
1c710c3c
DJ
4661int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4662
5213506e
RW
4663/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4664 inside strings and character constants. */
4665#define FOO(x) 'x'
4666int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4667
1c710c3c
DJ
4668int test (int i, double x);
4669struct s1 {int (*f) (int a);};
4670struct s2 {int (*f) (double a);};
4671int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4672int argc;
4673char **argv;
4674int
4675main ()
4676{
4677return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4678 ;
4679 return 0;
4680}
4681_ACEOF
5213506e
RW
4682for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4683 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4684do
4685 CC="$ac_save_CC $ac_arg"
5213506e
RW
4686 if ac_fn_c_try_compile "$LINENO"; then :
4687 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4688fi
5213506e
RW
4689rm -f core conftest.err conftest.$ac_objext
4690 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4691done
5213506e 4692rm -f conftest.$ac_ext
1c710c3c
DJ
4693CC=$ac_save_CC
4694
4695fi
5213506e
RW
4696# AC_CACHE_VAL
4697case "x$ac_cv_prog_cc_c89" in
4698 x)
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4700$as_echo "none needed" >&6; } ;;
4701 xno)
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4703$as_echo "unsupported" >&6; } ;;
1c710c3c 4704 *)
5213506e
RW
4705 CC="$CC $ac_cv_prog_cc_c89"
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4707$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4708esac
5213506e 4709if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4710
2aeb72e9
DD
4711fi
4712
2aeb72e9
DD
4713ac_ext=c
4714ac_cpp='$CPP $CPPFLAGS'
4715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4717ac_compiler_gnu=$ac_cv_c_compiler_gnu
4718
5213506e 4719ac_ext=cpp
2aeb72e9
DD
4720ac_cpp='$CXXCPP $CPPFLAGS'
4721ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4722ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4723ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4724if test -z "$CXX"; then
4725 if test -n "$CCC"; then
4726 CXX=$CCC
4727 else
4728 if test -n "$ac_tool_prefix"; then
4729 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4730 do
4731 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4732set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4734$as_echo_n "checking for $ac_word... " >&6; }
4735if test "${ac_cv_prog_CXX+set}" = set; then :
4736 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4737else
4738 if test -n "$CXX"; then
4739 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4740else
4741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742for as_dir in $PATH
4743do
4744 IFS=$as_save_IFS
4745 test -z "$as_dir" && as_dir=.
5213506e
RW
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2aeb72e9 4748 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4750 break 2
4751 fi
4752done
5213506e
RW
4753 done
4754IFS=$as_save_IFS
55ffb5ed 4755
c3a86da9
DJ
4756fi
4757fi
4758CXX=$ac_cv_prog_CXX
4759if test -n "$CXX"; then
5213506e
RW
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4761$as_echo "$CXX" >&6; }
c3a86da9 4762else
5213506e
RW
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4764$as_echo "no" >&6; }
c3a86da9
DJ
4765fi
4766
5213506e 4767
c3a86da9
DJ
4768 test -n "$CXX" && break
4769 done
4770fi
4771if test -z "$CXX"; then
4772 ac_ct_CXX=$CXX
5213506e 4773 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4774do
4775 # Extract the first word of "$ac_prog", so it can be a program name with args.
4776set dummy $ac_prog; ac_word=$2
5213506e
RW
4777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778$as_echo_n "checking for $ac_word... " >&6; }
4779if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4780 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4781else
4782 if test -n "$ac_ct_CXX"; then
4783 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4784else
4785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786for as_dir in $PATH
4787do
4788 IFS=$as_save_IFS
4789 test -z "$as_dir" && as_dir=.
5213506e
RW
4790 for ac_exec_ext in '' $ac_executable_extensions; do
4791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c3a86da9 4792 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4794 break 2
4795 fi
4796done
5213506e
RW
4797 done
4798IFS=$as_save_IFS
c3a86da9
DJ
4799
4800fi
4801fi
4802ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4803if test -n "$ac_ct_CXX"; then
5213506e
RW
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4805$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4806else
5213506e
RW
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808$as_echo "no" >&6; }
c3a86da9
DJ
4809fi
4810
5213506e 4811
c3a86da9
DJ
4812 test -n "$ac_ct_CXX" && break
4813done
c3a86da9 4814
5213506e
RW
4815 if test "x$ac_ct_CXX" = x; then
4816 CXX="g++"
4817 else
4818 case $cross_compiling:$ac_tool_warned in
4819yes:)
4820{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4821$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4822ac_tool_warned=yes ;;
4823esac
4824 CXX=$ac_ct_CXX
4825 fi
c3a86da9
DJ
4826fi
4827
5213506e
RW
4828 fi
4829fi
c3a86da9 4830# Provide some information about the compiler.
5213506e
RW
4831$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4832set X $ac_compile
4833ac_compiler=$2
4834for ac_option in --version -v -V -qversion; do
4835 { { ac_try="$ac_compiler $ac_option >&5"
4836case "(($ac_try" in
4837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4838 *) ac_try_echo=$ac_try;;
4839esac
4840eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4841$as_echo "$ac_try_echo"; } >&5
4842 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 4843 ac_status=$?
5213506e
RW
4844 if test -s conftest.err; then
4845 sed '10a\
4846... rest of stderr output deleted ...
4847 10q' conftest.err >conftest.er1
4848 cat conftest.er1 >&5
4849 rm -f conftest.er1 conftest.err
4850 fi
4851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4852 test $ac_status = 0; }
4853done
c3a86da9 4854
5213506e
RW
4855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4856$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4857if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4858 $as_echo_n "(cached) " >&6
c3a86da9 4859else
5213506e 4860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4861/* end confdefs.h. */
4862
4863int
4864main ()
4865{
4866#ifndef __GNUC__
4867 choke me
4868#endif
4869
4870 ;
4871 return 0;
4872}
4873_ACEOF
5213506e 4874if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4875 ac_compiler_gnu=yes
4876else
5213506e 4877 ac_compiler_gnu=no
c3a86da9 4878fi
5213506e 4879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4880ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4881
4882fi
5213506e
RW
4883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4884$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4885if test $ac_compiler_gnu = yes; then
4886 GXX=yes
4887else
4888 GXX=
4889fi
c3a86da9
DJ
4890ac_test_CXXFLAGS=${CXXFLAGS+set}
4891ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
4892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4893$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4894if test "${ac_cv_prog_cxx_g+set}" = set; then :
4895 $as_echo_n "(cached) " >&6
4896else
4897 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4898 ac_cxx_werror_flag=yes
4899 ac_cv_prog_cxx_g=no
4900 CXXFLAGS="-g"
4901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4902/* end confdefs.h. */
4903
4904int
4905main ()
4906{
4907
4908 ;
4909 return 0;
4910}
4911_ACEOF
5213506e 4912if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4913 ac_cv_prog_cxx_g=yes
4914else
5213506e
RW
4915 CXXFLAGS=""
4916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4917/* end confdefs.h. */
5213506e 4918
c3a86da9
DJ
4919int
4920main ()
4921{
5213506e 4922
c3a86da9
DJ
4923 ;
4924 return 0;
4925}
4926_ACEOF
5213506e 4927if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 4928
5213506e
RW
4929else
4930 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4931 CXXFLAGS="-g"
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4933/* end confdefs.h. */
5213506e 4934
c3a86da9
DJ
4935int
4936main ()
4937{
5213506e 4938
c3a86da9
DJ
4939 ;
4940 return 0;
4941}
4942_ACEOF
5213506e
RW
4943if ac_fn_cxx_try_compile "$LINENO"; then :
4944 ac_cv_prog_cxx_g=yes
11a67599 4945fi
5213506e
RW
4946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4947fi
4948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4949fi
4950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4951 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4952fi
4953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4954$as_echo "$ac_cv_prog_cxx_g" >&6; }
4955if test "$ac_test_CXXFLAGS" = set; then
4956 CXXFLAGS=$ac_save_CXXFLAGS
4957elif test $ac_cv_prog_cxx_g = yes; then
4958 if test "$GXX" = yes; then
4959 CXXFLAGS="-g -O2"
4960 else
4961 CXXFLAGS="-g"
4962 fi
4963else
4964 if test "$GXX" = yes; then
4965 CXXFLAGS="-O2"
4966 else
4967 CXXFLAGS=
4968 fi
c3a86da9 4969fi
c3a86da9
DJ
4970ac_ext=c
4971ac_cpp='$CPP $CPPFLAGS'
4972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4974ac_compiler_gnu=$ac_cv_c_compiler_gnu
4975
4976
4977# We must set the default linker to the linker used by gcc for the correct
4978# operation of libtool. If LD is not defined and we are using gcc, try to
4979# set the LD default to the ld used by gcc.
4980if test -z "$LD"; then
4981 if test "$GCC" = yes; then
4982 case $build in
4983 *-*-mingw*)
4984 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4985 *)
4986 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4987 esac
4988 case $gcc_prog_ld in
4989 # Accept absolute paths.
4990 [\\/]* | [A-Za-z]:[\\/]*)
4991 LD="$gcc_prog_ld" ;;
4992 esac
4993 fi
23f6b2f9
PB
4994fi
4995
0b21f5d3
EB
4996# Check whether -static-libstdc++ -static-libgcc is supported.
4997have_static_libs=no
4998if test "$GCC" = yes; then
4999 saved_LDFLAGS="$LDFLAGS"
5000
5001 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5003$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5004 ac_ext=cpp
5005ac_cpp='$CXXCPP $CPPFLAGS'
5006ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5007ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5008ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5009
5010
5011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012/* end confdefs.h. */
0d6414b2
EB
5013
5014#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5015#error -static-libstdc++ not implemented
5016#endif
0b21f5d3
EB
5017int main() {}
5018_ACEOF
5019if ac_fn_cxx_try_link "$LINENO"; then :
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5021$as_echo "yes" >&6; }; have_static_libs=yes
5022else
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5024$as_echo "no" >&6; }
5025fi
5026rm -f core conftest.err conftest.$ac_objext \
5027 conftest$ac_exeext conftest.$ac_ext
5028 ac_ext=c
5029ac_cpp='$CPP $CPPFLAGS'
5030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5032ac_compiler_gnu=$ac_cv_c_compiler_gnu
5033
5034
5035 LDFLAGS="$saved_LDFLAGS"
5036fi
5037
23f6b2f9
PB
5038
5039
55ffb5ed 5040
1c710c3c
DJ
5041if test -n "$ac_tool_prefix"; then
5042 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 5043set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
5044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045$as_echo_n "checking for $ac_word... " >&6; }
5046if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5047 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5048else
5049 if test -n "$GNATBIND"; then
5050 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5051else
1c710c3c
DJ
5052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053for as_dir in $PATH
5054do
5055 IFS=$as_save_IFS
5056 test -z "$as_dir" && as_dir=.
5213506e
RW
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5059 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5061 break 2
5062 fi
5063done
5213506e
RW
5064 done
5065IFS=$as_save_IFS
1c710c3c 5066
55ffb5ed
NN
5067fi
5068fi
1c710c3c 5069GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5070if test -n "$GNATBIND"; then
5213506e
RW
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5072$as_echo "$GNATBIND" >&6; }
55ffb5ed 5073else
5213506e
RW
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075$as_echo "no" >&6; }
55ffb5ed
NN
5076fi
5077
5213506e 5078
1c710c3c 5079fi
55ffb5ed 5080if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5081 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5082 # Extract the first word of "gnatbind", so it can be a program name with args.
5083set dummy gnatbind; ac_word=$2
5213506e
RW
5084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5085$as_echo_n "checking for $ac_word... " >&6; }
5086if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5087 $as_echo_n "(cached) " >&6
55ffb5ed 5088else
1c710c3c
DJ
5089 if test -n "$ac_ct_GNATBIND"; then
5090 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5091else
1c710c3c
DJ
5092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093for as_dir in $PATH
5094do
5095 IFS=$as_save_IFS
5096 test -z "$as_dir" && as_dir=.
5213506e
RW
5097 for ac_exec_ext in '' $ac_executable_extensions; do
5098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5099 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5101 break 2
5102 fi
5103done
5213506e
RW
5104 done
5105IFS=$as_save_IFS
1c710c3c 5106
55ffb5ed
NN
5107fi
5108fi
1c710c3c
DJ
5109ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5110if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5112$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5113else
5213506e
RW
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5115$as_echo "no" >&6; }
55ffb5ed
NN
5116fi
5117
5213506e
RW
5118 if test "x$ac_ct_GNATBIND" = x; then
5119 GNATBIND="no"
5120 else
5121 case $cross_compiling:$ac_tool_warned in
5122yes:)
5123{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5124$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5125ac_tool_warned=yes ;;
5126esac
5127 GNATBIND=$ac_ct_GNATBIND
5128 fi
55ffb5ed 5129else
1c710c3c 5130 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5131fi
5132
1c710c3c
DJ
5133if test -n "$ac_tool_prefix"; then
5134 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5135set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5137$as_echo_n "checking for $ac_word... " >&6; }
5138if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5139 $as_echo_n "(cached) " >&6
5305be7e
RG
5140else
5141 if test -n "$GNATMAKE"; then
5142 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5143else
1c710c3c
DJ
5144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145for as_dir in $PATH
5146do
5147 IFS=$as_save_IFS
5148 test -z "$as_dir" && as_dir=.
5213506e
RW
5149 for ac_exec_ext in '' $ac_executable_extensions; do
5150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5151 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5153 break 2
5154 fi
5155done
5213506e
RW
5156 done
5157IFS=$as_save_IFS
1c710c3c 5158
5305be7e
RG
5159fi
5160fi
1c710c3c 5161GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5162if test -n "$GNATMAKE"; then
5213506e
RW
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5164$as_echo "$GNATMAKE" >&6; }
5305be7e 5165else
5213506e
RW
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5167$as_echo "no" >&6; }
5305be7e
RG
5168fi
5169
5213506e 5170
1c710c3c 5171fi
5305be7e 5172if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5173 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5174 # Extract the first word of "gnatmake", so it can be a program name with args.
5175set dummy gnatmake; ac_word=$2
5213506e
RW
5176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5177$as_echo_n "checking for $ac_word... " >&6; }
5178if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5179 $as_echo_n "(cached) " >&6
5305be7e 5180else
1c710c3c
DJ
5181 if test -n "$ac_ct_GNATMAKE"; then
5182 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5183else
1c710c3c
DJ
5184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185for as_dir in $PATH
5186do
5187 IFS=$as_save_IFS
5188 test -z "$as_dir" && as_dir=.
5213506e
RW
5189 for ac_exec_ext in '' $ac_executable_extensions; do
5190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5191 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5193 break 2
5194 fi
5195done
5213506e
RW
5196 done
5197IFS=$as_save_IFS
1c710c3c 5198
5305be7e
RG
5199fi
5200fi
1c710c3c
DJ
5201ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5202if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5204$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5205else
5213506e
RW
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5207$as_echo "no" >&6; }
5305be7e
RG
5208fi
5209
5213506e
RW
5210 if test "x$ac_ct_GNATMAKE" = x; then
5211 GNATMAKE="no"
5212 else
5213 case $cross_compiling:$ac_tool_warned in
5214yes:)
5215{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5216$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5217ac_tool_warned=yes ;;
5218esac
5219 GNATMAKE=$ac_ct_GNATMAKE
5220 fi
5305be7e 5221else
1c710c3c 5222 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5223fi
5224
5213506e
RW
5225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5226$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5227if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5228 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5229else
5230 cat >conftest.adb <<EOF
5231procedure conftest is begin null; end conftest;
5232EOF
5233acx_cv_cc_gcc_supports_ada=no
5234# There is a bug in old released versions of GCC which causes the
5235# driver to exit successfully when the appropriate language module
5236# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5237# Therefore we must check for the error message as well as an
5238# unsuccessful exit.
1db673ca
RO
5239# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5240# given a .adb file, but produce no object file. So we must check
5241# if an object file was really produced to guard against this.
55ffb5ed 5242errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5243if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5244 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5245fi
5246rm -f conftest.*
5247fi
5213506e
RW
5248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5249$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5250
7cb62ef1 5251if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5252 have_gnat=yes
5253else
5254 have_gnat=no
5255fi
5256
5213506e
RW
5257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5258$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5259if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5260 $as_echo_n "(cached) " >&6
a76494aa
PB
5261else
5262 echo abfoo >t1
5263 echo cdfoo >t2
5264 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5265 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5266 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5267 :
5268 else
5269 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5270 fi
5271 fi
a76494aa
PB
5272 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5273 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5274 :
a76494aa
PB
5275 else
5276 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5277 fi
5278 fi
5279 rm t1 t2
5280
5281fi
5213506e
RW
5282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5283$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5284do_compare="$gcc_cv_prog_cmp_skip"
5285
5286
55ffb5ed 5287
ff3ac0f4
ILT
5288# Check whether --enable-bootstrap was given.
5289if test "${enable_bootstrap+set}" = set; then :
5290 enableval=$enable_bootstrap;
5291else
5292 enable_bootstrap=default
5293fi
5294
5295
5296# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5297if test -r $srcdir/gcc/configure; then
5298 have_compiler=yes
5299else
5300 have_compiler=no
5301fi
ff3ac0f4
ILT
5302
5303case "$have_compiler:$host:$target:$enable_bootstrap" in
5304 *:*:*:no) ;;
5305
5306 # Default behavior. Enable bootstrap if we have a compiler
5307 # and we are in a native configuration.
5308 yes:$build:$build:default)
5309 enable_bootstrap=yes ;;
5310
5311 *:*:*:default)
5312 enable_bootstrap=no ;;
5313
5314 # We have a compiler and we are in a native configuration, bootstrap is ok
5315 yes:$build:$build:yes)
5316 ;;
5317
5318 # Other configurations, but we have a compiler. Assume the user knows
5319 # what he's doing.
5320 yes:*:*:yes)
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5322$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5323 ;;
5324
5325 # No compiler: if they passed --enable-bootstrap explicitly, fail
5326 no:*:*:yes)
5327 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5328
5329 # Fail if wrong command line
5330 *)
5331 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5332 ;;
5333esac
5334
46070488
JM
5335# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5336# C++98 compiler can still start the bootstrap.
5337if test "$enable_bootstrap:$GXX" = "yes:yes"; then
8ca528d9 5338 CXX="$CXX -std=gnu++98"
46070488
JM
5339fi
5340
592c90ff
KG
5341# Used for setting $lt_cv_objdir
5342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5343$as_echo_n "checking for objdir... " >&6; }
5344if test "${lt_cv_objdir+set}" = set; then :
5345 $as_echo_n "(cached) " >&6
5346else
5347 rm -f .libs 2>/dev/null
5348mkdir .libs 2>/dev/null
5349if test -d .libs; then
5350 lt_cv_objdir=.libs
5351else
5352 # MS-DOS does not allow filenames that begin with a dot.
5353 lt_cv_objdir=_libs
5354fi
5355rmdir .libs 2>/dev/null
5356fi
5357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5358$as_echo "$lt_cv_objdir" >&6; }
5359objdir=$lt_cv_objdir
5360
5361
5362
5363
5364
5365cat >>confdefs.h <<_ACEOF
5366#define LT_OBJDIR "$lt_cv_objdir/"
5367_ACEOF
5368
5369
5370
acd26225 5371# Check for GMP, MPFR and MPC
3a5729ea 5372gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 5373gmpinc=
e69bf64b 5374have_gmp=no
acd26225
KG
5375
5376# Specify a location for mpc
5377# check for this first so it ends up on the link line before mpfr.
5378
5213506e
RW
5379# Check whether --with-mpc was given.
5380if test "${with_mpc+set}" = set; then :
5381 withval=$with_mpc;
5382fi
acd26225 5383
acd26225 5384
9965e3cd 5385# Check whether --with-mpc-include was given.
5213506e
RW
5386if test "${with_mpc_include+set}" = set; then :
5387 withval=$with_mpc_include;
5388fi
acd26225 5389
acd26225 5390
9965e3cd 5391# Check whether --with-mpc-lib was given.
5213506e
RW
5392if test "${with_mpc_lib+set}" = set; then :
5393 withval=$with_mpc_lib;
5394fi
acd26225 5395
acd26225
KG
5396
5397if test "x$with_mpc" != x; then
3a5729ea
KG
5398 gmplibs="-L$with_mpc/lib $gmplibs"
5399 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
5400fi
5401if test "x$with_mpc_include" != x; then
3a5729ea 5402 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
5403fi
5404if test "x$with_mpc_lib" != x; then
3a5729ea 5405 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
5406fi
5407if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 5408 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 5409 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5410 # Do not test the mpc version. Assume that it is sufficient, since
5411 # it is in the source tree, and the library has not been built yet
5412 # but it would be included on the link line in the version check below
5413 # hence making the test fail.
3a5729ea 5414 have_gmp=yes
acd26225 5415fi
e69bf64b 5416
bebf829d
PB
5417# Specify a location for mpfr
5418# check for this first so it ends up on the link line before gmp.
1c710c3c 5419
5213506e
RW
5420# Check whether --with-mpfr-dir was given.
5421if test "${with_mpfr_dir+set}" = set; then :
5422 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5423Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5424fi
5425
bebf829d
PB
5426
5427
5213506e
RW
5428# Check whether --with-mpfr was given.
5429if test "${with_mpfr+set}" = set; then :
5430 withval=$with_mpfr;
5431fi
1c710c3c 5432
bebf829d 5433
9965e3cd 5434# Check whether --with-mpfr-include was given.
5213506e
RW
5435if test "${with_mpfr_include+set}" = set; then :
5436 withval=$with_mpfr_include;
5437fi
1c710c3c 5438
8a877c9c 5439
9965e3cd 5440# Check whether --with-mpfr-lib was given.
5213506e
RW
5441if test "${with_mpfr_lib+set}" = set; then :
5442 withval=$with_mpfr_lib;
5443fi
8a877c9c 5444
bebf829d
PB
5445
5446if test "x$with_mpfr" != x; then
5447 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5448 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5449fi
8a877c9c 5450if test "x$with_mpfr_include" != x; then
3a5729ea 5451 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5452fi
5453if test "x$with_mpfr_lib" != x; then
5454 gmplibs="-L$with_mpfr_lib $gmplibs"
5455fi
e69bf64b 5456if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8f3675f8
MR
5457 # MPFR v3.1.0 moved the sources into a src sub-directory.
5458 if ! test -d ${srcdir}/mpfr/src; then
5459 as_fn_error "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5460 fi
00f35794
BE
5461 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5462 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5463 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
e69bf64b
PB
5464 # Do not test the mpfr version. Assume that it is sufficient, since
5465 # it is in the source tree, and the library has not been built yet
5466 # but it would be included on the link line in the version check below
5467 # hence making the test fail.
5468 have_gmp=yes
5469fi
bebf829d 5470
6de9cd9a 5471# Specify a location for gmp
1c710c3c 5472
5213506e
RW
5473# Check whether --with-gmp-dir was given.
5474if test "${with_gmp_dir+set}" = set; then :
5475 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5476Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5477fi
5478
6de9cd9a 5479
6de9cd9a 5480
5213506e
RW
5481# Check whether --with-gmp was given.
5482if test "${with_gmp+set}" = set; then :
5483 withval=$with_gmp;
5484fi
1c710c3c 5485
6de9cd9a 5486
9965e3cd 5487# Check whether --with-gmp-include was given.
5213506e
RW
5488if test "${with_gmp_include+set}" = set; then :
5489 withval=$with_gmp_include;
5490fi
1c710c3c 5491
8a877c9c 5492
9965e3cd 5493# Check whether --with-gmp-lib was given.
5213506e
RW
5494if test "${with_gmp_lib+set}" = set; then :
5495 withval=$with_gmp_lib;
5496fi
8a877c9c
KG
5497
5498
6de9cd9a 5499
bebf829d
PB
5500if test "x$with_gmp" != x; then
5501 gmplibs="-L$with_gmp/lib $gmplibs"
5502 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5503fi
8a877c9c
KG
5504if test "x$with_gmp_include" != x; then
5505 gmpinc="-I$with_gmp_include $gmpinc"
5506fi
5507if test "x$with_gmp_lib" != x; then
5508 gmplibs="-L$with_gmp_lib $gmplibs"
5509fi
e69bf64b 5510if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5511 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5512 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 5513 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 5514 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 5515 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
5516 # Do not test the gmp version. Assume that it is sufficient, since
5517 # it is in the source tree, and the library has not been built yet
5518 # but it would be included on the link line in the version check below
5519 # hence making the test fail.
5520 have_gmp=yes
5521fi
6de9cd9a 5522
d943d7c4 5523if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5524 have_gmp=yes
5525 saved_CFLAGS="$CFLAGS"
5526 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5527 # Check for the recommended and required versions of GMP.
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5529$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5530
5531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5532/* end confdefs.h. */
5533#include "gmp.h"
5534int
5535main ()
5536{
5537
5538 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5539 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 5540 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
5541 choke me
5542 #endif
5543
5544 ;
5545 return 0;
5546}
5547_ACEOF
5548if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5550/* end confdefs.h. */
362c6d2f 5551#include <gmp.h>
1c710c3c
DJ
5552int
5553main ()
5554{
6de9cd9a 5555
362c6d2f
KG
5556 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5557 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5558 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5559 choke me
5560 #endif
1c710c3c
DJ
5561
5562 ;
5563 return 0;
5564}
5565_ACEOF
5213506e
RW
5566if ac_fn_c_try_compile "$LINENO"; then :
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5568$as_echo "yes" >&6; }
362c6d2f
KG
5569else
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5571$as_echo "buggy but acceptable" >&6; }
5572fi
5573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5574else
5213506e
RW
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5576$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5577fi
5213506e 5578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5579
acd26225 5580 # If we have GMP, check the MPFR version.
e69bf64b 5581 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5582 # Check for the recommended and required versions of MPFR.
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5584$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5586/* end confdefs.h. */
70ec446f 5587#include <gmp.h>
e69bf64b 5588 #include <mpfr.h>
1c710c3c
DJ
5589int
5590main ()
5591{
e48d66a9 5592
f7d6bc01 5593 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
e69bf64b
PB
5594 choke me
5595 #endif
1c710c3c
DJ
5596
5597 ;
5598 return 0;
5599}
5600_ACEOF
5213506e
RW
5601if ac_fn_c_try_compile "$LINENO"; then :
5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5603/* end confdefs.h. */
a3993f33 5604#include <gmp.h>
e69bf64b 5605 #include <mpfr.h>
1c710c3c
DJ
5606int
5607main ()
5608{
a3993f33 5609
362c6d2f 5610 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
e69bf64b
PB
5611 choke me
5612 #endif
acd26225
KG
5613
5614 ;
5615 return 0;
5616}
5617_ACEOF
5213506e
RW
5618if ac_fn_c_try_compile "$LINENO"; then :
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5620$as_echo "yes" >&6; }
acd26225 5621else
5213506e
RW
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5623$as_echo "buggy but acceptable" >&6; }
acd26225 5624fi
5213506e 5625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5626else
5213506e
RW
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5628$as_echo "no" >&6; }; have_gmp=no
acd26225 5629fi
5213506e 5630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5631 fi
5632
5633 # Check for the MPC header version.
3a5729ea 5634 if test x"$have_gmp" = xyes ; then
362c6d2f 5635 # Check for the recommended and required versions of MPC.
5213506e
RW
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5637$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5639/* end confdefs.h. */
5640#include <mpc.h>
5641int
5642main ()
5643{
5644
362c6d2f
KG
5645 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5646 choke me
5647 #endif
5648
5649 ;
5650 return 0;
5651}
5652_ACEOF
5653if ac_fn_c_try_compile "$LINENO"; then :
5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655/* end confdefs.h. */
5656#include <mpc.h>
5657int
5658main ()
5659{
5660
5661 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5662 choke me
5663 #endif
5664
5665 ;
5666 return 0;
5667}
5668_ACEOF
5213506e
RW
5669if ac_fn_c_try_compile "$LINENO"; then :
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5671$as_echo "yes" >&6; }
362c6d2f
KG
5672else
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5674$as_echo "buggy but acceptable" >&6; }
5675fi
5676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5677else
5213506e 5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5679$as_echo "no" >&6; }; have_gmp=no
acd26225 5680fi
5213506e 5681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5682 fi
5683
5684 # Now check the MPFR library.
5685 if test x"$have_gmp" = xyes; then
5686 saved_LIBS="$LIBS"
5687 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5689$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5691/* end confdefs.h. */
3a5729ea 5692#include <mpc.h>
acd26225
KG
5693int
5694main ()
5695{
5696
5697 mpfr_t n;
5698 mpfr_t x;
3a5729ea 5699 mpc_t c;
acd26225
KG
5700 int t;
5701 mpfr_init (n);
5702 mpfr_init (x);
5703 mpfr_atan2 (n, n, x, GMP_RNDN);
5704 mpfr_erfc (n, x, GMP_RNDN);
5705 mpfr_subnormalize (x, t, GMP_RNDN);
3a5729ea
KG
5706 mpfr_clear(n);
5707 mpfr_clear(x);
5708 mpc_init2 (c, 53);
5709 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5710 mpc_cosh (c, c, MPC_RNDNN);
5711 mpc_pow (c, c, c, MPC_RNDNN);
5712 mpc_acosh (c, c, MPC_RNDNN);
5713 mpc_clear (c);
1c710c3c
DJ
5714
5715 ;
5716 return 0;
5717}
5718_ACEOF
5213506e
RW
5719if ac_fn_c_try_link "$LINENO"; then :
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5721$as_echo "yes" >&6; }
1c710c3c 5722else
5213506e
RW
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5724$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5725fi
5213506e
RW
5726rm -f core conftest.err conftest.$ac_objext \
5727 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5728 LIBS="$saved_LIBS"
5729 fi
5730
e69bf64b 5731 CFLAGS="$saved_CFLAGS"
6de9cd9a 5732
362c6d2f
KG
5733# The library versions listed in the error message below should match
5734# the HARD-minimums enforced above.
e69bf64b 5735 if test x$have_gmp != xyes; then
f7d6bc01 5736 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
3a5729ea
KG
5737Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5738their locations. Source code for these libraries can be found at
5739their respective hosting sites as well as at
5740ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5741http://gcc.gnu.org/install/prerequisites.html for additional info. If
5742you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5743make sure that you have installed both the libraries and the header
5744files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5745 fi
70ec446f
KG
5746fi
5747
acd26225
KG
5748# Flags needed for both GMP, MPFR and/or MPC.
5749
5750
6de9cd9a
DN
5751
5752
5753
9e3eba15 5754
0ff2d841 5755
0b21f5d3 5756# Libraries to use for stage1 or when not bootstrapping.
00020c16 5757
0b21f5d3
EB
5758# Check whether --with-stage1-libs was given.
5759if test "${with_stage1_libs+set}" = set; then :
5760 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5761 stage1_libs=
00020c16 5762 else
0b21f5d3 5763 stage1_libs=$withval
00020c16
ILT
5764 fi
5765else
5dc85f7e 5766 stage1_libs=
5213506e
RW
5767fi
5768
00020c16
ILT
5769
5770
0b21f5d3 5771# Linker flags to use for stage1 or when not bootstrapping.
00020c16 5772
0b21f5d3
EB
5773# Check whether --with-stage1-ldflags was given.
5774if test "${with_stage1_ldflags+set}" = set; then :
5775 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5776 stage1_ldflags=
00020c16 5777 else
0b21f5d3 5778 stage1_ldflags=$withval
00020c16
ILT
5779 fi
5780else
0b21f5d3
EB
5781 stage1_ldflags=
5782 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5783 # if supported. But if the user explicitly specified the libraries to use,
5784 # trust that they are doing what they want.
5785 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5786 stage1_ldflags="-static-libstdc++ -static-libgcc"
5787 fi
5213506e
RW
5788fi
5789
00020c16
ILT
5790
5791
5dc85f7e 5792# Libraries to use for stage2 and later builds.
00020c16 5793
5213506e
RW
5794# Check whether --with-boot-libs was given.
5795if test "${with_boot_libs+set}" = set; then :
5796 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
5797 poststage1_libs=
5798 else
5799 poststage1_libs=$withval
5800 fi
5801else
5dc85f7e 5802 poststage1_libs=
5213506e
RW
5803fi
5804
00020c16
ILT
5805
5806
ed2eaa9f
ILT
5807# Linker flags to use for stage2 and later builds.
5808
5809# Check whether --with-boot-ldflags was given.
5810if test "${with_boot_ldflags+set}" = set; then :
5811 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5812 poststage1_ldflags=
5813 else
5814 poststage1_ldflags=$withval
5815 fi
5816else
5817 poststage1_ldflags=
bec93d73
ILT
5818 # In stages 2 and 3, default to linking libstdc++ and libgcc
5819 # statically. But if the user explicitly specified the libraries to
5820 # use, trust that they are doing what they want.
5821 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
5822 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5823 fi
5824fi
5825
5826
5827
e357a5e0 5828# GCC GRAPHITE dependency isl.
4a9bb2aa 5829# Basic setup is inlined here, actual checks are in config/isl.m4
f8bf9252
SP
5830
5831
33ad93b9
RG
5832# Check whether --with-isl was given.
5833if test "${with_isl+set}" = set; then :
5834 withval=$with_isl;
5213506e 5835fi
f8bf9252 5836
f8bf9252 5837
eae1a5d4 5838# Treat --without-isl as a request to disable
625afa23 5839# GRAPHITE support and skip all following checks.
eae1a5d4 5840if test "x$with_isl" != "xno"; then
e357a5e0 5841 # Check for isl
625afa23
RG
5842
5843
33ad93b9
RG
5844# Check whether --with-isl-include was given.
5845if test "${with_isl_include+set}" = set; then :
5846 withval=$with_isl_include;
5213506e
RW
5847fi
5848
f8bf9252 5849
33ad93b9
RG
5850# Check whether --with-isl-lib was given.
5851if test "${with_isl_lib+set}" = set; then :
5852 withval=$with_isl_lib;
5213506e 5853fi
f8bf9252 5854
f8bf9252 5855
33ad93b9
RG
5856 # Check whether --enable-isl-version-check was given.
5857if test "${enable_isl_version_check+set}" = set; then :
5858 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5859else
5860 ENABLE_ISL_CHECK=yes
7d32a440
SP
5861fi
5862
5863
33ad93b9
RG
5864 # Initialize isllibs and islinc.
5865 case $with_isl in
5866 no)
5867 isllibs=
5868 islinc=
5869 ;;
5870 "" | yes)
5871 ;;
5872 *)
5873 isllibs="-L$with_isl/lib"
5874 islinc="-I$with_isl/include"
5875 ;;
5876 esac
5877 if test "x${with_isl_include}" != x ; then
5878 islinc="-I$with_isl_include"
5879 fi
5880 if test "x${with_isl_lib}" != x; then
5881 isllibs="-L$with_isl_lib"
5882 fi
5883 if test "x${islinc}" = x && test "x${isllibs}" = x \
5884 && test -d ${srcdir}/isl; then
5885 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5886 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5887 ENABLE_ISL_CHECK=no
560d18d3
AK
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5889$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
33ad93b9 5890 fi
7d32a440 5891
eae1a5d4
RG
5892 isllibs="${isllibs} -lisl"
5893
7d32a440 5894
7d32a440 5895
9847828b
RB
5896 if test "${ENABLE_ISL_CHECK}" = yes ; then
5897 _isl_saved_CFLAGS=$CFLAGS
5898 _isl_saved_LDFLAGS=$LDFLAGS
5899 _isl_saved_LIBS=$LIBS
5900
5901 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
70decafb
NS
5902 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
5903 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
9847828b 5904
c661a43d
SP
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5
5906$as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; }
e0c0c325 5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
622dbadf 5908/* end confdefs.h. */
560d18d3 5909#include <isl/ctx.h>
622dbadf
BC
5910int
5911main ()
5912{
560d18d3 5913isl_ctx_get_max_operations (isl_ctx_alloc ());
622dbadf
BC
5914 ;
5915 return 0;
5916}
5917_ACEOF
5918if ac_fn_c_try_link "$LINENO"; then :
9847828b 5919 gcc_cv_isl=yes
622dbadf
BC
5920else
5921 gcc_cv_isl=no
5922fi
5923rm -f core conftest.err conftest.$ac_objext \
5924 conftest$ac_exeext conftest.$ac_ext
9847828b
RB
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5926$as_echo "$gcc_cv_isl" >&6; }
5927
560d18d3 5928 if test "${gcc_cv_isl}" = no ; then
c661a43d
SP
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&5
5930$as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; }
560d18d3
AK
5931 fi
5932
c661a43d
SP
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5
5934$as_echo_n "checking for isl 0.16 or 0.15... " >&6; }
1e050c90
AK
5935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5936/* end confdefs.h. */
5937#include <isl/schedule.h>
5938int
5939main ()
5940{
5941isl_options_set_schedule_serialize_sccs (NULL, 0);
5942 ;
5943 return 0;
5944}
5945_ACEOF
5946if ac_fn_c_try_link "$LINENO"; then :
5947 ac_has_isl_options_set_schedule_serialize_sccs=yes
5948else
5949 ac_has_isl_options_set_schedule_serialize_sccs=no
5950fi
5951rm -f core conftest.err conftest.$ac_objext \
5952 conftest$ac_exeext conftest.$ac_ext
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
5954$as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
5955
5956 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
5957 islver="0.15"
5958
5959 fi
5960
9847828b
RB
5961 CFLAGS=$_isl_saved_CFLAGS
5962 LDFLAGS=$_isl_saved_LDFLAGS
5963 LIBS=$_isl_saved_LIBS
5964 fi
5965
5966
f8bf9252 5967
f8bf9252 5968
33ad93b9
RG
5969
5970
33ad93b9
RG
5971 if test "x${with_isl}" = xno; then
5972 graphite_requested=no
5973 elif test "x${with_isl}" != x \
5974 || test "x${with_isl_include}" != x \
5975 || test "x${with_isl_lib}" != x ; then
5976 graphite_requested=yes
5977 else
5978 graphite_requested=no
7d32a440 5979 fi
d789184e 5980
d789184e
SP
5981
5982
33ad93b9
RG
5983 if test "${gcc_cv_isl}" = no ; then
5984 isllibs=
5985 islinc=
5986 fi
5987
5988 if test "${graphite_requested}" = yes \
5989 && test "x${isllibs}" = x \
5990 && test "x${islinc}" = x ; then
f8bf9252 5991
e357a5e0 5992 as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5
33ad93b9 5993 fi
f8bf9252 5994
d32ef397 5995
d32ef397
AS
5996fi
5997
e357a5e0 5998# If the isl check failed, disable builds of in-tree variant of isl
625afa23 5999if test "x$with_isl" = xno ||
625afa23 6000 test "x$gcc_cv_isl" = xno; then
4a9bb2aa 6001 noconfigdirs="$noconfigdirs isl"
625afa23 6002 islinc=
32d024bf
RG
6003fi
6004
625afa23
RG
6005
6006
6007
d7f09764
DN
6008# Check for LTO support.
6009# Check whether --enable-lto was given.
6010if test "${enable_lto+set}" = set; then :
6011 enableval=$enable_lto; enable_lto=$enableval
6012else
6013 enable_lto=yes; default_enable_lto=yes
6014fi
6015
6016
7413962d 6017
9a02962b
DK
6018
6019
6020target_elf=no
6021case $target in
6022 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 6023 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
3e326935 6024 alpha*-dec-osf* | hppa[12]*-*-hpux* | \
8ae12d71 6025 nvptx-*-none)
9a02962b
DK
6026 target_elf=no
6027 ;;
6028 *)
6029 target_elf=yes
6030 ;;
6031esac
6032
6033if test $target_elf = yes; then :
48215350
DK
6034 # ELF platforms build the lto-plugin always.
6035 build_lto_plugin=yes
9a02962b 6036
9a02962b
DK
6037else
6038 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 6039 case $target in
9e530bcd 6040 *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
48215350 6041 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
6042 *) enable_lto=no ;;
6043 esac
9a02962b 6044 else
db50fe7d
IS
6045 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6046 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
6047 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6048 # warn during gcc/ subconfigure; unless you're bootstrapping with
6049 # -flto it won't be needed until after installation anyway.
6050 case $target in
9e530bcd 6051 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9a02962b
DK
6052 *) if test x"$enable_lto" = x"yes"; then
6053 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6054 fi
6055 ;;
6056 esac
6057 fi
1cd0b716 6058 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 6059 # Build it unless LTO was explicitly disabled.
1cd0b716 6060 case $target in
48215350 6061 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
6062 *) ;;
6063 esac
48215350 6064
9a02962b
DK
6065fi
6066
d7f09764 6067
45b3824d
TS
6068# Check whether --enable-linker-plugin-configure-flags was given.
6069if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6070 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6071else
6072 extra_linker_plugin_configure_flags=
6073fi
6074
6075
6076# Check whether --enable-linker-plugin-flags was given.
6077if test "${enable_linker_plugin_flags+set}" = set; then :
6078 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6079else
6080 extra_linker_plugin_flags=
6081fi
6082
6083
6084
f8bf9252 6085
0823efed 6086# By default, C and C++ are the only stage 1 languages.
e1888513 6087stage1_languages=,c,
2805b53a 6088
00020c16 6089# Target libraries that we bootstrap.
ad1e5170 6090bootstrap_target_libs=,target-libgcc,
00020c16 6091
55ffb5ed
NN
6092# Figure out what language subdirectories are present.
6093# Look if the user specified --enable-languages="..."; if not, use
6094# the environment variable $LANGUAGES if defined. $LANGUAGES might
6095# go away some day.
6096# NB: embedded tabs in this IF block -- do not untabify
6097if test -d ${srcdir}/gcc; then
6098 if test x"${enable_languages+set}" != xset; then
6099 if test x"${LANGUAGES+set}" = xset; then
6100 enable_languages="${LANGUAGES}"
6b1786aa 6101 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
55ffb5ed
NN
6102 else
6103 enable_languages=all
6104 fi
6105 else
6106 if test x"${enable_languages}" = x ||
6107 test x"${enable_languages}" = xyes;
6108 then
6b1786aa 6109 echo configure.ac: --enable-languages needs at least one language argument 1>&2
55ffb5ed
NN
6110 exit 1
6111 fi
6112 fi
6113 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6114
7f26dfa3
FXC
6115 # 'f95' is the old name for the 'fortran' language. We issue a warning
6116 # and make the substitution.
6117 case ,${enable_languages}, in
6118 *,f95,*)
6b1786aa 6119 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
7f26dfa3
FXC
6120 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6121 ;;
6122 esac
6123
0823efed
DN
6124 # If bootstrapping, C++ must be enabled.
6125 case ",$enable_languages,:$enable_bootstrap" in
6126 *,c++,*:*) ;;
6127 *:yes)
ff3ac0f4
ILT
6128 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6129 enable_languages="${enable_languages},c++"
6130 else
0823efed 6131 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
6132 fi
6133 ;;
6134 esac
6135
55ffb5ed
NN
6136 # First scan to see if an enabled language requires some other language.
6137 # We assume that a given config-lang.in will list all the language
6138 # front ends it requires, even if some are required indirectly.
6139 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6140 case ${lang_frag} in
6141 ..) ;;
6142 # The odd quoting in the next line works around
6143 # an apparent bug in bash 1.12 on linux.
6144 ${srcdir}/gcc/[*]/config-lang.in) ;;
6145 *)
69ecd18f
ILT
6146 # From the config-lang.in, get $language, $lang_requires, and
6147 # $lang_requires_boot_languages.
55ffb5ed
NN
6148 language=
6149 lang_requires=
69ecd18f 6150 lang_requires_boot_languages=
55ffb5ed 6151 . ${lang_frag}
69ecd18f 6152 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
6153 case ,${enable_languages}, in
6154 *,$other,*) ;;
6155 *,all,*) ;;
6156 *,$language,*)
6157 echo " \`$other' language required by \`$language'; enabling" 1>&2
6158 enable_languages="${enable_languages},${other}"
6159 ;;
6160 esac
6161 done
69ecd18f
ILT
6162 for other in ${lang_requires_boot_languages} ; do
6163 if test "$other" != "c"; then
6164 case ,${enable_stage1_languages}, in
6165 *,$other,*) ;;
6166 *,all,*) ;;
6167 *)
6168 case ,${enable_languages}, in
6169 *,$language,*)
6170 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6171 enable_stage1_languages="$enable_stage1_languages,${other}"
6172 ;;
6173 esac
6174 ;;
6175 esac
6176 fi
6177 done
55ffb5ed
NN
6178 ;;
6179 esac
6180 done
6181
e1888513 6182 new_enable_languages=,c,
d7f09764
DN
6183
6184 # If LTO is enabled, add the LTO front end.
d7f09764 6185 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6186 case ,${enable_languages}, in
6187 *,lto,*) ;;
6188 *) enable_languages="${enable_languages},lto" ;;
6189 esac
1cd0b716 6190 if test "${build_lto_plugin}" = "yes" ; then
d7f09764 6191 configdirs="$configdirs lto-plugin"
d7f09764
DN
6192 fi
6193 fi
6194
426c1eb0
TS
6195 # If we're building an offloading compiler, add the LTO front end.
6196 if test x"$enable_as_accelerator_for" != x ; then
6197 case ,${enable_languages}, in
6198 *,lto,*) ;;
6199 *) enable_languages="${enable_languages},lto" ;;
6200 esac
6201 fi
6202
55ffb5ed 6203 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6204 potential_languages=,c,
55ffb5ed 6205
4da3b0f8
ILT
6206 enabled_target_libs=
6207 disabled_target_libs=
6208
55ffb5ed
NN
6209 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6210 case ${lang_frag} in
6211 ..) ;;
6212 # The odd quoting in the next line works around
6213 # an apparent bug in bash 1.12 on linux.
6214 ${srcdir}/gcc/[*]/config-lang.in) ;;
6215 *)
1c710c3c 6216 # From the config-lang.in, get $language, $target_libs,
2805b53a 6217 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6218 language=
6219 target_libs=
6220 lang_dirs=
1546bb64 6221 subdir_requires=
e1888513
PB
6222 boot_language=no
6223 build_by_default=yes
55ffb5ed 6224 . ${lang_frag}
e1888513
PB
6225 if test x${language} = x; then
6226 echo "${lang_frag} doesn't set \$language." 1>&2
6227 exit 1
6228 fi
6229
78767fd9 6230 if test "$language" = "c++"; then
0823efed 6231 boot_language=yes
00020c16
ILT
6232 fi
6233
178f875a 6234 add_this_lang=no
e1888513
PB
6235 case ,${enable_languages}, in
6236 *,${language},*)
d4a10d0a
SB
6237 # Language was explicitly selected; include it
6238 # unless it is C, which is enabled by default.
6239 if test "$language" != "c"; then
6240 add_this_lang=yes
6241 fi
55ffb5ed 6242 ;;
e1888513
PB
6243 *,all,*)
6244 # 'all' was selected, select it if it is a default language
178f875a
JM
6245 if test "$language" != "c"; then
6246 add_this_lang=${build_by_default}
6247 fi
55ffb5ed
NN
6248 ;;
6249 esac
6de9cd9a 6250
1546bb64 6251 # Disable languages that need other directories if these aren't available.
95695ad3 6252 for i in $subdir_requires; do
b6348cb3 6253 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
6254 case ,${enable_languages}, in
6255 *,${language},*)
6256 # Specifically requested language; tell them.
5213506e 6257 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64
PB
6258 ;;
6259 *)
6260 # Silently disable.
e1888513 6261 add_this_lang=unsupported
1546bb64
PB
6262 ;;
6263 esac
6264 done
6265
e1888513
PB
6266 # Disable Ada if no preexisting GNAT is available.
6267 case ,${enable_languages},:${language}:${have_gnat} in
6268 *,${language},*:ada:no)
6269 # Specifically requested language; tell them.
5213506e 6270 as_fn_error "GNAT is required to build $language" "$LINENO" 5
e1888513
PB
6271 ;;
6272 *:ada:no)
6273 # Silently disable.
6274 add_this_lang=unsupported
6275 ;;
6276 esac
6277
4fab7234
HPN
6278 # Disable a language that is unsupported by the target.
6279 case " $unsupported_languages " in
6280 *" $language "*)
e1888513 6281 add_this_lang=unsupported
4fab7234
HPN
6282 ;;
6283 esac
6284
6de9cd9a 6285 case $add_this_lang in
e1888513 6286 unsupported)
55ffb5ed 6287 # Remove language-dependent dirs.
4da3b0f8
ILT
6288 disabled_target_libs="$disabled_target_libs $target_libs"
6289 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 6290 ;;
e1888513
PB
6291 no)
6292 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
6293 disabled_target_libs="$disabled_target_libs $target_libs"
6294 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
6295 potential_languages="${potential_languages}${language},"
6296 ;;
6297 yes)
6298 new_enable_languages="${new_enable_languages}${language},"
6299 potential_languages="${potential_languages}${language},"
2805b53a 6300 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 6301 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
6302 case "${boot_language}:,$enable_stage1_languages," in
6303 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6304 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6305 case ",$stage1_languages," in
6306 *,$language,* | ,yes, | ,all,) ;;
6307 *) stage1_languages="${stage1_languages}${language}," ;;
6308 esac
00020c16
ILT
6309 # We need to bootstrap any supporting libraries.
6310 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6311 ;;
6312 esac
6313 ;;
55ffb5ed
NN
6314 esac
6315 ;;
6316 esac
6317 done
6318
4da3b0f8
ILT
6319 # Add target libraries which are only needed for disabled languages
6320 # to noconfigdirs.
6321 if test -n "$disabled_target_libs"; then
6322 for dir in $disabled_target_libs; do
6323 case " $enabled_target_libs " in
6324 *" ${dir} "*) ;;
6325 *) noconfigdirs="$noconfigdirs $dir" ;;
6326 esac
6327 done
6328 fi
6329
5213506e
RW
6330 # Check whether --enable-stage1-languages was given.
6331if test "${enable_stage1_languages+set}" = set; then :
6332 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6333 ,no,|,,)
6334 # Set it to something that will have no effect in the loop below
6335 enable_stage1_languages=c ;;
6336 ,yes,)
6337 enable_stage1_languages=`echo $new_enable_languages | \
6338 sed -e "s/^,//" -e "s/,$//" ` ;;
6339 *,all,*)
6340 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6341 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6342 esac
6343
6344 # Add "good" languages from enable_stage1_languages to stage1_languages,
6345 # while "bad" languages go in missing_languages. Leave no duplicates.
6346 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6347 case $potential_languages in
6348 *,$i,*)
6349 case $stage1_languages in
6350 *,$i,*) ;;
6351 *) stage1_languages="$stage1_languages$i," ;;
6352 esac ;;
6353 *)
6354 case $missing_languages in
6355 *,$i,*) ;;
6356 *) missing_languages="$missing_languages$i," ;;
6357 esac ;;
6358 esac
6359 done
5213506e
RW
6360fi
6361
e1888513
PB
6362
6363 # Remove leading/trailing commas that were added for simplicity
6364 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6365 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6366 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6367 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6368
55ffb5ed 6369 if test "x$missing_languages" != x; then
5213506e 6370 as_fn_error "
0cf085e4 6371The following requested languages could not be built: ${missing_languages}
5213506e 6372Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6373 fi
55ffb5ed
NN
6374 if test "x$new_enable_languages" != "x$enable_languages"; then
6375 echo The following languages will be built: ${new_enable_languages}
e1888513 6376 enable_languages="$new_enable_languages"
55ffb5ed 6377 fi
e1888513 6378
1c710c3c 6379
b2eaac4a 6380 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6381fi
6382
27079765
AH
6383# Handle --disable-<component> generically.
6384for dir in $configdirs $build_configdirs $target_configdirs ; do
6385 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6386 varname=`echo $dirname | sed -e s/+/_/g`
6387 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6388 noconfigdirs="$noconfigdirs $dir"
6389 fi
6390done
6391
43c40f3e
RO
6392# Check for Boehm's garbage collector
6393# Check whether --enable-objc-gc was given.
6394if test "${enable_objc_gc+set}" = set; then :
6395 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6396 *,objc,*:*:yes:*target-boehm-gc*)
6397 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6398 ;;
6399esac
6400fi
6401
6402
6403# Make sure we only build Boehm's garbage collector if required.
6404case ,${enable_languages},:${enable_objc_gc} in
6405 *,objc,*:yes)
6406 # Keep target-boehm-gc if requested for Objective-C.
6407 ;;
6408 *)
6409 # Otherwise remove target-boehm-gc.
6410 noconfigdirs="$noconfigdirs target-boehm-gc"
6411 ;;
6412esac
6413
5f520819 6414# Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
99776ebd 6415case ,${enable_languages}, in
1007a55c
JW
6416 *,c++,*)
6417 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6418 case "${noconfigdirs}" in
6419 *target-libstdc++-v3*)
6420 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6421 ;;
6422 *) ;;
6423 esac
6424 ;;
99776ebd 6425 *)
5f520819 6426 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
99776ebd
RH
6427 ;;
6428esac
6429
ee6a22df
L
6430# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6431# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6432# If we have the source for $noconfigdirs entries, add them to $notsupp.
6433
6434notsupp=""
6435for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6436 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6437 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6438 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6439 if test -r $srcdir/$dirname/configure ; then
6440 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6441 true
6442 else
6443 notsupp="$notsupp $dir"
6444 fi
6445 fi
6446 fi
ee6a22df
L
6447 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6448 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6449 if test -r $srcdir/$dirname/configure ; then
6450 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6451 true
6452 else
6453 notsupp="$notsupp $dir"
6454 fi
6455 fi
6456 fi
55ffb5ed
NN
6457 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6458 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6459 if test -r $srcdir/$dirname/configure ; then
6460 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6461 true
6462 else
6463 notsupp="$notsupp $dir"
6464 fi
6465 fi
6466 fi
6467done
6468
55ffb5ed
NN
6469# Quietly strip out all directories which aren't configurable in this tree.
6470# This relies on all configurable subdirectories being autoconfiscated, which
6471# is now the case.
23f6b2f9
PB
6472build_configdirs_all="$build_configdirs"
6473build_configdirs=
6474for i in ${build_configdirs_all} ; do
1c710c3c 6475 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
6476 if test -f ${srcdir}/$j/configure ; then
6477 build_configdirs="${build_configdirs} $i"
6478 fi
6479done
6480
55ffb5ed
NN
6481configdirs_all="$configdirs"
6482configdirs=
6483for i in ${configdirs_all} ; do
6484 if test -f ${srcdir}/$i/configure ; then
6485 configdirs="${configdirs} $i"
6486 fi
6487done
23f6b2f9 6488
55ffb5ed
NN
6489target_configdirs_all="$target_configdirs"
6490target_configdirs=
6491for i in ${target_configdirs_all} ; do
1c710c3c 6492 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
6493 if test -f ${srcdir}/$j/configure ; then
6494 target_configdirs="${target_configdirs} $i"
6495 fi
6496done
6497
45b3824d
TS
6498# libiberty-linker-plugin is special: it doesn't have its own source directory,
6499# so we have to add it after the preceding checks.
6500if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6501then
6502 case " $configdirs " in
6503 *" libiberty "*)
6504 # If we can build libiberty, we can also build libiberty-linker-plugin.
6505 configdirs="$configdirs libiberty-linker-plugin"
6506 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6507 --with-libiberty=../libiberty-linker-plugin";;
6508 *)
6509 as_fn_error "libiberty missing" "$LINENO" 5;;
6510 esac
6511fi
6512
fca38047
TS
6513# Sometimes we have special requirements for the host libiberty.
6514extra_host_libiberty_configure_flags=
1c01ebf6 6515extra_host_zlib_configure_flags=
fca38047
TS
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 ;;
1c01ebf6
L
6522 *" bfd "*)
6523 # When bfd is to be built as a shared library, the same applies to
6524 # zlib.
6525 if test "$enable_shared" = "yes"; then
6526 extra_host_zlib_configure_flags=--enable-host-shared
6527 fi
6528 ;;
fca38047
TS
6529esac
6530
6531
1c01ebf6 6532
55ffb5ed
NN
6533# Produce a warning message for the subdirs we can't configure.
6534# This isn't especially interesting in the Cygnus tree, but in the individual
6535# FSF releases, it's important to let people know when their machine isn't
6536# supported by the one or two programs in a package.
6537
6538if test -n "${notsupp}" && test -z "${norecursion}" ; then
6539 # If $appdirs is non-empty, at least one of those directories must still
6540 # be configured, or we error out. (E.g., if the gas release supports a
6541 # specified target in some subdirs but not the gas subdir, we shouldn't
6542 # pretend that all is well.)
6543 if test -n "$appdirs" ; then
6544 for dir in $appdirs ; do
6545 if test -r $dir/Makefile.in ; then
6546 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6547 appdirs=""
6548 break
6549 fi
23f6b2f9 6550 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
6551 appdirs=""
6552 break
6553 fi
6554 fi
6555 done
6556 if test -n "$appdirs" ; then
6557 echo "*** This configuration is not supported by this package." 1>&2
6558 exit 1
6559 fi
6560 fi
6561 # Okay, some application will build, or we don't care to check. Still
6562 # notify of subdirs not getting built.
6563 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6564 echo " ${notsupp}" 1>&2
6565 echo " (Any other directories should still work fine.)" 1>&2
6566fi
6567
6568case "$host" in
6569 *msdosdjgpp*)
6570 enable_gdbtk=no ;;
6571esac
6572
c3a86da9
DJ
6573# To find our prefix, in gcc_cv_tool_prefix.
6574
6575# The user is always right.
6576if test "${PATH_SEPARATOR+set}" != set; then
6577 echo "#! /bin/sh" >conf$$.sh
6578 echo "exit 0" >>conf$$.sh
6579 chmod +x conf$$.sh
6580 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6581 PATH_SEPARATOR=';'
6582 else
6583 PATH_SEPARATOR=:
6584 fi
6585 rm -f conf$$.sh
6586fi
6587
6588
6589
6590if test "x$exec_prefix" = xNONE; then
6591 if test "x$prefix" = xNONE; then
6592 gcc_cv_tool_prefix=$ac_default_prefix
6593 else
6594 gcc_cv_tool_prefix=$prefix
6595 fi
6596else
6597 gcc_cv_tool_prefix=$exec_prefix
6598fi
6599
6600# If there is no compiler in the tree, use the PATH only. In any
6601# case, if there is no compiler in the tree nobody should use
6602# AS_FOR_TARGET and LD_FOR_TARGET.
6603if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6604 gcc_version=`cat $srcdir/gcc/BASE-VER`
6605 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6606 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6607 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6608 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6609 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6610 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6611else
6612 gcc_cv_tool_dirs=
6613fi
6614
6615if test x$build = x$target && test -n "$md_exec_prefix"; then
6616 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6617fi
6618
6619
6620
55ffb5ed
NN
6621copy_dirs=
6622
1c710c3c 6623
5213506e
RW
6624# Check whether --with-build-sysroot was given.
6625if test "${with_build_sysroot+set}" = set; then :
6626 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
6627 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6628 fi
6629else
6630 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 6631fi
526635cb
MM
6632
6633
c8aea42c 6634
5213506e
RW
6635
6636# Check whether --with-debug-prefix-map was given.
6637if test "${with_debug_prefix_map+set}" = set; then :
6638 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
6639 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6640 for debug_map in $withval; do
6641 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6642 done
6643 fi
6644else
6645 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
6646fi
6647
c8aea42c
PB
6648
6649
1c8bd6a3
PB
6650# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6651# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6652# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6653# We want to ensure that TARGET libraries (which we know are built with
6654# gcc) are built with "-O2 -g", so include those options when setting
6655# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6656if test "x$CFLAGS_FOR_TARGET" = x; then
fc30054e
AH
6657 if test "x${is_cross_compiler}" = xyes; then
6658 CFLAGS_FOR_TARGET="-g -O2"
6659 else
6660 CFLAGS_FOR_TARGET=$CFLAGS
6661 case " $CFLAGS " in
6662 *" -O2 "*) ;;
6663 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6664 esac
6665 case " $CFLAGS " in
6666 *" -g "* | *" -g3 "*) ;;
6667 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6668 esac
6669 fi
1c8bd6a3
PB
6670fi
6671
6672
6673if test "x$CXXFLAGS_FOR_TARGET" = x; then
fc30054e
AH
6674 if test "x${is_cross_compiler}" = xyes; then
6675 CXXFLAGS_FOR_TARGET="-g -O2"
6676 else
6677 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6678 case " $CXXFLAGS " in
6679 *" -O2 "*) ;;
6680 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6681 esac
6682 case " $CXXFLAGS " in
6683 *" -g "* | *" -g3 "*) ;;
6684 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6685 esac
6686 fi
1c8bd6a3
PB
6687fi
6688
6689
6f57bdf6
DK
6690
6691
55ffb5ed
NN
6692# Handle --with-headers=XXX. If the value is not "yes", the contents of
6693# the named directory are copied to $(tooldir)/sys-include.
6694if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6695 if test x${is_cross_compiler} = xno ; then
6696 echo 1>&2 '***' --with-headers is only supported when cross compiling
6697 exit 1
6698 fi
6699 if test x"${with_headers}" != xyes ; then
c3a86da9 6700 x=${gcc_cv_tool_prefix}
1c710c3c 6701 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
6702 fi
6703fi
6704
6705# Handle --with-libs=XXX. If the value is not "yes", the contents of
6706# the name directories are copied to $(tooldir)/lib. Multiple directories
6707# are permitted.
6708if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6709 if test x${is_cross_compiler} = xno ; then
6710 echo 1>&2 '***' --with-libs is only supported when cross compiling
6711 exit 1
6712 fi
6713 if test x"${with_libs}" != xyes ; then
6714 # Copy the libraries in reverse order, so that files in the first named
6715 # library override files in subsequent libraries.
c3a86da9 6716 x=${gcc_cv_tool_prefix}
55ffb5ed 6717 for l in ${with_libs}; do
1c710c3c 6718 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
6719 done
6720 fi
6721fi
6722
d7f09764 6723# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
6724#
6725# This is done by determining whether or not the appropriate directory
6726# is available, and by checking whether or not specific configurations
6727# have requested that this magic not happen.
1c710c3c
DJ
6728#
6729# The command line options always override the explicit settings in
6b1786aa 6730# configure.ac, and the settings in configure.ac override this magic.
e8b05380 6731#
1c710c3c 6732# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 6733# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
6734# --without-gnu-ld options for the configure script. Similarly, if
6735# the default is to use the included zlib and you don't want to do that,
6736# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
6737
6738if test x${use_gnu_as} = x &&
6739 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6740 with_gnu_as=yes
6741 extra_host_args="$extra_host_args --with-gnu-as"
6742fi
6743
6744if test x${use_gnu_ld} = x &&
5afab7ad 6745 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
6746 with_gnu_ld=yes
6747 extra_host_args="$extra_host_args --with-gnu-ld"
6748fi
6749
d7f09764
DN
6750if test x${use_included_zlib} = x &&
6751 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6752 :
6753else
6754 with_system_zlib=yes
6755 extra_host_args="$extra_host_args --with-system-zlib"
6756fi
6757
e8b05380
PB
6758# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6759# can detect this case.
6760
6761if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6762 with_newlib=yes
6763 extra_host_args="$extra_host_args --with-newlib"
6764fi
6765
55ffb5ed
NN
6766# Handle ${copy_dirs}
6767set fnord ${copy_dirs}
6768shift
6769while test $# != 0 ; do
6770 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6771 :
6772 else
6773 echo Copying $1 to $2
6774
6775 # Use the install script to create the directory and all required
6776 # parent directories.
6777 if test -d $2 ; then
6778 :
6779 else
6780 echo >config.temp
6781 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6782 fi
6783
6784 # Copy the directory, assuming we have tar.
6785 # FIXME: Should we use B in the second tar? Not all systems support it.
6786 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6787
6788 # It is the responsibility of the user to correctly adjust all
6789 # symlinks. If somebody can figure out how to handle them correctly
6790 # here, feel free to add the code.
6791
6792 echo $1 > $2/COPIED
6793 fi
6794 shift; shift
6795done
6796
e8b05380
PB
6797# Determine a target-dependent exec_prefix that the installed
6798# gcc will search in. Keep this list sorted by triplet, with
6799# the *-*-osname triplets last.
6800md_exec_prefix=
6801case "${target}" in
30b74385 6802 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
6803 md_exec_prefix=/dev/env/DJDIR/bin
6804 ;;
e8b05380 6805 *-*-hpux* | \
e8b05380 6806 *-*-nto-qnx* | \
6de66370 6807 *-*-solaris2*)
e8b05380
PB
6808 md_exec_prefix=/usr/ccs/bin
6809 ;;
6810esac
6811
671aa708
NN
6812extra_arflags_for_target=
6813extra_nmflags_for_target=
6814extra_ranlibflags_for_target=
6815target_makefile_frag=/dev/null
6816case "${target}" in
58e24147
AM
6817 spu-*-*)
6818 target_makefile_frag="config/mt-spu"
6819 ;;
d896cc4d 6820 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4bf6c438
RS
6821 target_makefile_frag="config/mt-sde"
6822 ;;
1ec3b87b
RS
6823 mipsisa*-*-elfoabi*)
6824 target_makefile_frag="config/mt-mips-elfoabi"
6825 ;;
08d0963a
RS
6826 mips*-*-*linux* | mips*-*-gnu*)
6827 target_makefile_frag="config/mt-mips-gnu"
6828 ;;
707f1839
SL
6829 nios2-*-elf*)
6830 target_makefile_frag="config/mt-nios2-elf"
6831 ;;
416ac4d4 6832 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 6833 target_makefile_frag="config/mt-gnu"
671aa708
NN
6834 ;;
6835 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 6836 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
6837 # commands to handle both 32-bit and 64-bit objects. These flags are
6838 # harmless if we're using GNU nm or ar.
6839 extra_arflags_for_target=" -X32_64"
6840 extra_nmflags_for_target=" -B -X32_64"
6841 ;;
671aa708
NN
6842esac
6843
6844alphaieee_frag=/dev/null
6845case $target in
6846 alpha*-*-*)
6847 # This just makes sure to use the -mieee option to build target libs.
6848 # This should probably be set individually by each library.
6849 alphaieee_frag="config/mt-alphaieee"
6850 ;;
6851esac
6852
6853# If --enable-target-optspace always use -Os instead of -O2 to build
6854# the target libraries, similarly if it is not specified, use -Os
6855# on selected platforms.
6856ospace_frag=/dev/null
6857case "${enable_target_optspace}:${target}" in
6858 yes:*)
6859 ospace_frag="config/mt-ospace"
6860 ;;
6861 :d30v-*)
6862 ospace_frag="config/mt-d30v"
6863 ;;
d9063947 6864 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
671aa708
NN
6865 ospace_frag="config/mt-ospace"
6866 ;;
6867 no:* | :*)
6868 ;;
6869 *)
6870 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6871 ;;
6872esac
6873
671aa708
NN
6874# Some systems (e.g., one of the i386-aix systems the gas testers are
6875# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 6876tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
6877build_tooldir=${tooldir}
6878
671aa708
NN
6879# Create a .gdbinit file which runs the one in srcdir
6880# and tells GDB to look there for source files.
6881
6882if test -r ${srcdir}/.gdbinit ; then
6883 case ${srcdir} in
6884 .) ;;
6885 *) cat > ./.gdbinit <<EOF
6886# ${NO_EDIT}
6887dir ${srcdir}
6888dir .
6889source ${srcdir}/.gdbinit
6890EOF
6891 ;;
6892 esac
6893fi
6894
671aa708
NN
6895# Make sure that the compiler is able to generate an executable. If it
6896# can't, we are probably in trouble. We don't care whether we can run the
6897# executable--we might be using a cross compiler--we only care whether it
6898# can be created. At this point the main configure script has set CC.
6899we_are_ok=no
6900echo "int main () { return 0; }" > conftest.c
6901${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6902if test $? = 0 ; then
6903 if test -s conftest || test -s conftest.exe ; then
6904 we_are_ok=yes
6905 fi
1c710c3c 6906fi
671aa708
NN
6907case $we_are_ok in
6908 no)
6909 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6910 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6911 rm -f conftest*
6912 exit 1
6913 ;;
6914esac
6915rm -f conftest*
6916
d89f0ad6 6917# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
6918case "${host}" in
6919 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 6920 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 6921 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
6922 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6923esac
6924
d89f0ad6
AL
6925# On systems where the dynamic library environment variable is PATH,
6926# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6927# built executables to PATH.
6928if test "$RPATH_ENVVAR" = PATH; then
6929 GCC_SHLIB_SUBDIR=/shlib
6930else
6931 GCC_SHLIB_SUBDIR=
6932fi
6933
beeda1d9
JJ
6934# Adjust the toplevel makefile according to whether bootstrap was selected.
6935case $enable_bootstrap in
6936 yes)
6937 bootstrap_suffix=bootstrap
6938 BUILD_CONFIG=bootstrap-debug
6939 ;;
6940 no)
6941 bootstrap_suffix=no-bootstrap
6942 BUILD_CONFIG=
6943 ;;
6944esac
6945
6946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6947$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6948
6949
6950# Check whether --with-build-config was given.
6951if test "${with_build_config+set}" = set; then :
6952 withval=$with_build_config; case $with_build_config in
6953 yes) with_build_config= ;;
6954 no) with_build_config= BUILD_CONFIG= ;;
6955 esac
6956fi
6957
6958
6959if test "x${with_build_config}" != x; then
6960 BUILD_CONFIG=$with_build_config
6961else
6962 case $BUILD_CONFIG in
6963 bootstrap-debug)
6964 if echo "int f (void) { return 0; }" > conftest.c &&
6965 ${CC} -c conftest.c &&
6966 mv conftest.o conftest.o.g0 &&
6967 ${CC} -c -g conftest.c &&
6968 mv conftest.o conftest.o.g &&
6969 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
6970 :
6971 else
6972 BUILD_CONFIG=
6973 fi
6974 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6975 ;;
6976 esac
6977fi
6978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6979$as_echo "$BUILD_CONFIG" >&6; }
6980
6981
6982# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
6983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
6984$as_echo_n "checking for --enable-vtable-verify... " >&6; }
6985# Check whether --enable-vtable-verify was given.
6986if test "${enable_vtable_verify+set}" = set; then :
6987 enableval=$enable_vtable_verify; case "$enableval" in
6988 yes) enable_vtable_verify=yes ;;
6989 no) enable_vtable_verify=no ;;
6990 *) enable_vtable_verify=no;;
6991 esac
6992else
6993 enable_vtable_verify=no
6994fi
6995
6996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
6997$as_echo "$enable_vtable_verify" >&6; }
6998
671aa708
NN
6999# Record target_configdirs and the configure arguments for target and
7000# build configuration in Makefile.
7001target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 7002build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9e1c8fc1 7003bootstrap_fixincludes=no
671aa708 7004
ad1e5170
JR
7005# If we are building libgomp, bootstrap it.
7006if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7007 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7008fi
7009
beeda1d9
JJ
7010# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7011# or bootstrap-ubsan, bootstrap it.
7012if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7013 case "$BUILD_CONFIG" in
7014 *bootstrap-asan* | *bootstrap-ubsan* )
7015 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9e1c8fc1 7016 bootstrap_fixincludes=yes
beeda1d9
JJ
7017 ;;
7018 esac
ac8701fe
L
7019fi
7020
beeda1d9
JJ
7021# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7022if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7023 test "$enable_vtable_verify" != no; then
2077db1b
CT
7024 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7025fi
7026
5373cd33
IE
7027# If we are building libmpx, bootstrap it.
7028if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7029 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7030fi
7031
671aa708
NN
7032# Determine whether gdb needs tk/tcl or not.
7033# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7034# and in that case we want gdb to be built without tk. Ugh!
7035# In fact I believe gdb is the *only* package directly dependent on tk,
7036# so we should be able to put the 'maybe's in unconditionally and
7037# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7038# 100% sure that that's safe though.
e914a571 7039
b4f96efe 7040gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
7041case "$enable_gdbtk" in
7042 no)
7043 GDB_TK="" ;;
e914a571
AC
7044 yes)
7045 GDB_TK="${gdb_tk}" ;;
671aa708 7046 *)
e914a571
AC
7047 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7048 # distro. Eventually someone will fix this and move Insight, nee
7049 # gdbtk to a separate directory.
7050 if test -d ${srcdir}/gdb/gdbtk ; then
7051 GDB_TK="${gdb_tk}"
7052 else
7053 GDB_TK=""
7054 fi
7055 ;;
671aa708 7056esac
ef9db8d5
DJ
7057CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7058INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 7059
60975492 7060# Strip out unwanted targets.
8b87bb96
NN
7061
7062# While at that, we remove Makefiles if we were started for recursive
7063# configuration, so that the top-level Makefile reconfigures them,
7064# like we used to do when configure itself was recursive.
8b87bb96 7065
3e54529c
RW
7066# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7067# but now we're fixing up the Makefile ourselves with the additional
7068# commands passed to AC_CONFIG_FILES. Use separate variables
7069# extrasub-{build,host,target} not because there is any reason to split
7070# the substitutions up that way, but only to remain below the limit of
7071# 99 commands in a script, for HP-UX sed.
7072# Do not nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 7073
79cd2b23
RW
7074case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7075 yes:yes:*\ gold\ *:*,c++,*) ;;
7076 yes:yes:*\ gold\ *:*)
7077 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7078 ;;
7079esac
7080
3e54529c 7081extrasub_build=
23f6b2f9 7082for module in ${build_configdirs} ; do
5607edfd
PB
7083 if test -z "${no_recursion}" \
7084 && test -f ${build_subdir}/${module}/Makefile; then
7085 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7086 rm -f ${build_subdir}/${module}/Makefile
7087 fi
3e54529c 7088 extrasub_build="$extrasub_build
5607edfd
PB
7089/^@if build-$module\$/d
7090/^@endif build-$module\$/d
7091/^@if build-$module-$bootstrap_suffix\$/d
7092/^@endif build-$module-$bootstrap_suffix\$/d"
7093done
3e54529c 7094extrasub_host=
5607edfd 7095for module in ${configdirs} ; do
a6fbc1e2 7096 if test -z "${no_recursion}"; then
f063a9ed 7097 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
7098 if test -f ${file}; then
7099 echo 1>&2 "*** removing ${file} to force reconfigure"
7100 rm -f ${file}
7101 fi
7102 done
5607edfd 7103 fi
9e1c8fc1
JJ
7104 case ${module},${bootstrap_fixincludes} in
7105 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7106 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7107 esac
3e54529c 7108 extrasub_host="$extrasub_host
5607edfd
PB
7109/^@if $module\$/d
7110/^@endif $module\$/d
9e1c8fc1
JJ
7111/^@if $module-$host_bootstrap_suffix\$/d
7112/^@endif $module-$host_bootstrap_suffix\$/d"
5607edfd 7113done
3e54529c 7114extrasub_target=
5607edfd
PB
7115for module in ${target_configdirs} ; do
7116 if test -z "${no_recursion}" \
7117 && test -f ${target_subdir}/${module}/Makefile; then
7118 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7119 rm -f ${target_subdir}/${module}/Makefile
7120 fi
00020c16
ILT
7121
7122 # We only bootstrap target libraries listed in bootstrap_target_libs.
7123 case $bootstrap_target_libs in
7124 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7125 *) target_bootstrap_suffix=no-bootstrap ;;
7126 esac
7127
3e54529c 7128 extrasub_target="$extrasub_target
5607edfd
PB
7129/^@if target-$module\$/d
7130/^@endif target-$module\$/d
00020c16
ILT
7131/^@if target-$module-$target_bootstrap_suffix\$/d
7132/^@endif target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
7133done
7134
3e54529c
RW
7135# Do the final fixup along with target modules.
7136extrasub_target="$extrasub_target
60975492 7137/^@if /,/^@endif /d"
671aa708
NN
7138
7139# Create the serialization dependencies. This uses a temporary file.
7140
5213506e
RW
7141# Check whether --enable-serial-configure was given.
7142if test "${enable_serial_configure+set}" = set; then :
7143 enableval=$enable_serial_configure;
7144fi
ade82b16
AO
7145
7146
bf1d3e81
NN
7147case ${enable_serial_configure} in
7148 yes)
7149 enable_serial_build_configure=yes
7150 enable_serial_host_configure=yes
7151 enable_serial_target_configure=yes
7152 ;;
7153esac
7154
671aa708
NN
7155# These force 'configure's to be done one at a time, to avoid problems
7156# with contention over a shared config.cache.
7157rm -f serdep.tmp
ade82b16 7158echo '# serdep.tmp' > serdep.tmp
671aa708 7159olditem=
bf1d3e81 7160test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
7161for item in ${build_configdirs} ; do
7162 case ${olditem} in
7163 "") ;;
ade82b16 7164 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
7165 esac
7166 olditem=${item}
7167done
7168olditem=
bf1d3e81 7169test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
7170for item in ${configdirs} ; do
7171 case ${olditem} in
7172 "") ;;
ade82b16 7173 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
7174 esac
7175 olditem=${item}
7176done
7177olditem=
bf1d3e81 7178test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
7179for item in ${target_configdirs} ; do
7180 case ${olditem} in
7181 "") ;;
ade82b16 7182 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
7183 esac
7184 olditem=${item}
7185done
7186serialization_dependencies=serdep.tmp
7187
7188
ade82b16 7189# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 7190# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
7191# might not want to pass down to subconfigures. The exception being
7192# --cache-file=/dev/null, which is used to turn off the use of cache
7193# files altogether, and which should be passed on to subconfigures.
7194# Also strip program-prefix, program-suffix, and program-transform-name,
7195# so that we can pass down a consistent program-transform-name.
1c710c3c 7196baseargs=
29a63921 7197tbaseargs=
1c710c3c
DJ
7198keep_next=no
7199skip_next=no
7200eval "set -- $ac_configure_args"
44bfc3ac
DJ
7201for ac_arg
7202do
1c710c3c
DJ
7203 if test X"$skip_next" = X"yes"; then
7204 skip_next=no
7205 continue
7206 fi
7207 if test X"$keep_next" = X"yes"; then
7208 case $ac_arg in
7209 *\'*)
7210 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7211 esac
7212 baseargs="$baseargs '$ac_arg'"
29a63921 7213 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
7214 keep_next=no
7215 continue
7216 fi
7217
7218 # Handle separated arguments. Based on the logic generated by
7219 # autoconf 2.59.
7220 case $ac_arg in
7221 *=* | --config-cache | -C | -disable-* | --disable-* \
7222 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7223 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7224 | -with-* | --with-* | -without-* | --without-* | --x)
7225 separate_arg=no
7226 ;;
7227 -*)
7228 separate_arg=yes
7229 ;;
7230 *)
7231 separate_arg=no
7232 ;;
7233 esac
7234
29a63921
AO
7235 skip_targ=no
7236 case $ac_arg in
7237
7238 --with-* | --without-*)
7239 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7240
7241 case $libopt in
7242 *[-_]include)
7243 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7244 ;;
7245 *[-_]lib)
7246 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7247 ;;
7248 *)
7249 lib=$libopt
7250 ;;
7251 esac
7252
7253
7254 case $lib in
4a9bb2aa 7255 mpc | mpfr | gmp | isl)
29a63921
AO
7256 # If we're processing --with-$lib, --with-$lib-include or
7257 # --with-$lib-lib, for one of the libs above, and target is
7258 # different from host, don't pass the current argument to any
7259 # target library's configure.
7260 if test x$is_cross_compiler = xyes; then
7261 skip_targ=yes
7262 fi
7263 ;;
7264 esac
7265 ;;
7266 esac
7267
1c710c3c 7268 case "$ac_arg" in
f1a036e4
NC
7269 --cache-file=/dev/null | \
7270 -cache-file=/dev/null )
7271 # Handled here to avoid the test to skip args below.
7272 baseargs="$baseargs '$ac_arg'"
29a63921 7273 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
7274 # Assert: $separate_arg should always be no.
7275 keep_next=$separate_arg
7276 ;;
1c710c3c
DJ
7277 --no*)
7278 continue
7279 ;;
7280 --c* | \
7281 --sr* | \
7282 --ho* | \
7283 --bu* | \
7284 --t* | \
7285 --program-* | \
7286 -cache_file* | \
7287 -srcdir* | \
7288 -host* | \
7289 -build* | \
7290 -target* | \
7291 -program-prefix* | \
7292 -program-suffix* | \
7293 -program-transform-name* )
7294 skip_next=$separate_arg
7295 continue
7296 ;;
7297 -*)
7298 # An option. Add it.
7299 case $ac_arg in
7300 *\'*)
7301 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7302 esac
7303 baseargs="$baseargs '$ac_arg'"
29a63921
AO
7304 if test X"$skip_targ" = Xno; then
7305 tbaseargs="$tbaseargs '$ac_arg'"
7306 fi
1c710c3c
DJ
7307 keep_next=$separate_arg
7308 ;;
7309 *)
7310 # Either a variable assignment, or a nonopt (triplet). Don't
7311 # pass it down; let the Makefile handle this.
7312 continue
7313 ;;
7314 esac
7315done
7316# Remove the initial space we just introduced and, as these will be
7317# expanded by make, quote '$'.
7318baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7319
43bb47c2
DJ
7320# Add in --program-transform-name, after --program-prefix and
7321# --program-suffix have been applied to it. Autoconf has already
7322# doubled dollar signs and backslashes in program_transform_name; we want
7323# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7324# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7325# Also, because we want to override the logic in subdir configure scripts to
7326# choose program_transform_name, replace any s,x,x, with s,y,y,.
7327sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7328${program_transform_name}
7329EOF_SED
7330gcc_transform_name=`cat conftestsed.out`
7331rm -f conftestsed.out
7332baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 7333tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7334if test "$silent" = yes; then
7335 baseargs="$baseargs --silent"
29a63921 7336 tbaseargs="$tbaseargs --silent"
d9acb717 7337fi
0115d4a3 7338baseargs="$baseargs --disable-option-checking"
29a63921 7339tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 7340
ffedf511
RW
7341# Record and document user additions to sub configure arguments.
7342
7343
7344
7345
671aa708
NN
7346# For the build-side libraries, we just need to pretend we're native,
7347# and not use the same cache file. Multilibs are neither needed nor
3d96b0d0
HPN
7348# desired. We can't even use the same cache file for all build-side
7349# libraries, as they're compiled differently; some with C, some with
7350# C++ or with different feature-enabling options.
7351build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
671aa708
NN
7352
7353# For host modules, accept cache file option, or specification as blank.
7354case "${cache_file}" in
7355"") # empty
7356 cache_file_option="" ;;
7357/* | [A-Za-z]:[\\/]* ) # absolute path
7358 cache_file_option="--cache-file=${cache_file}" ;;
7359*) # relative path
7360 cache_file_option="--cache-file=../${cache_file}" ;;
7361esac
7362
09438bde
NN
7363# Host dirs don't like to share a cache file either, horribly enough.
7364# This seems to be due to autoconf 2.5x stupidity.
ffedf511 7365host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 7366
29a63921 7367target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
7368
7369# Passing a --with-cross-host argument lets the target libraries know
7370# whether they are being built with a cross-compiler or being built
7371# native. However, it would be better to use other mechanisms to make the
7372# sorts of decisions they want to make on this basis. Please consider
7373# this option to be deprecated. FIXME.
7374if test x${is_cross_compiler} = xyes ; then
1c710c3c 7375 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7376fi
7377
79e0604d
FXC
7378# Special user-friendly check for native x86_64-linux build, if
7379# multilib is not explicitly enabled.
7380case "$target:$have_compiler:$host:$target:$enable_multilib" in
7381 x86_64-*linux*:yes:$build:$build:)
e640447c 7382 # Make sure we have a development environment that handles 32-bit
79e0604d
FXC
7383 dev64=no
7384 echo "int main () { return 0; }" > conftest.c
7385 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7386 if test $? = 0 ; then
7387 if test -s conftest || test -s conftest.exe ; then
7388 dev64=yes
7389 fi
7390 fi
7391 rm -f conftest*
7392 if test x${dev64} != xyes ; then
e640447c 7393 as_fn_error "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
79e0604d
FXC
7394 fi
7395 ;;
7396esac
7397
dc683a3f
RW
7398# Default to --enable-multilib.
7399if test x${enable_multilib} = x ; then
671aa708 7400 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 7401fi
671aa708
NN
7402
7403# Pass --with-newlib if appropriate. Note that target_configdirs has
7404# changed from the earlier setting of with_newlib.
7405if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7406 target_configargs="--with-newlib ${target_configargs}"
7407fi
7408
6b9eb62c
NN
7409# Different target subdirs use different values of certain variables
7410# (notably CXX). Worse, multilibs use *lots* of different values.
7411# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7412# it doesn't automatically accept command-line overrides of them.
7413# This means it's not safe for target subdirs to share a cache file,
7414# which is disgusting, but there you have it. Hopefully this can be
7415# fixed in future. It's still worthwhile to use a cache file for each
7416# directory. I think.
7417
bebcd931
MS
7418# Pass the appropriate --build, --host, --target and --cache-file arguments.
7419# We need to pass --target, as newer autoconf's requires consistency
7420# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7421target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7422
671aa708
NN
7423FLAGS_FOR_TARGET=
7424case " $target_configdirs " in
7425 *" newlib "*)
7426 case " $target_configargs " in
7427 *" --with-newlib "*)
7428 case "$target" in
5d571eaa 7429 *-cygwin*)
443e6238 7430 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5d571eaa 7431 ;;
671aa708
NN
7432 esac
7433
7434 # If we're not building GCC, don't discard standard headers.
7435 if test -d ${srcdir}/gcc; then
7436 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7437
7438 if test "${build}" != "${host}"; then
7439 # On Canadian crosses, CC_FOR_TARGET will have already been set
7440 # by `configure', so we won't have an opportunity to add -Bgcc/
7441 # to it. This is right: we don't want to search that directory
7442 # for binaries, but we want the header files in there, so add
7443 # them explicitly.
0463992b 7444 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
7445
7446 # Someone might think of using the pre-installed headers on
7447 # Canadian crosses, in case the installed compiler is not fully
7448 # compatible with the compiler being built. In this case, it
7449 # would be better to flag an error than risking having
7450 # incompatible object files being constructed. We can't
7451 # guarantee that an error will be flagged, but let's hope the
7452 # compiler will do it, when presented with incompatible header
7453 # files.
7454 fi
7455 fi
7456
7457 case "${target}-${is_cross_compiler}" in
f2a0e225 7458 i[3456789]86-*-linux*-no)
671aa708
NN
7459 # Here host == target, so we don't need to build gcc,
7460 # so we don't want to discard standard headers.
7461 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7462 ;;
7463 *)
7464 # If we're building newlib, use its generic headers last, but search
7465 # for any libc-related directories first (so make it the last -B
7466 # switch).
7467 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
7468
7469 # If we're building libgloss, find the startup file, simulator library
7470 # and linker script.
7471 case " $target_configdirs " in
7472 *" libgloss "*)
7473 # Look for startup file, simulator library and maybe linker script.
7474 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7475 # Look for libnosys.a in case the target needs it.
7476 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7477 # Most targets have the linker script in the source directory.
7478 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7479 ;;
7480 esac
671aa708
NN
7481 ;;
7482 esac
7483 ;;
7484 esac
7485 ;;
7486esac
5d571eaa 7487
b91f0a41 7488case "$target" in
5d571eaa
OS
7489 x86_64-*mingw* | *-w64-mingw*)
7490 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7491 # however, use a symlink named 'mingw' in ${prefix} .
7492 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7493 ;;
7494 *-mingw*)
7495 # MinGW can't be handled as Cygwin above since it does not use newlib.
7496 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'
7497 ;;
b91f0a41 7498esac
671aa708 7499
6691a79e
ME
7500# Allow the user to override the flags for
7501# our build compiler if desired.
f019adc1
MF
7502if test x"${build}" = x"${host}" ; then
7503 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7504 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7505 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7506fi
6691a79e 7507
671aa708
NN
7508# On Canadian crosses, we'll be searching the right directories for
7509# the previously-installed cross compiler, so don't bother to add
7510# flags for directories within the install tree of the compiler
7511# being built; programs in there won't even run.
7512if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7513 # Search for pre-installed headers if nothing else fits.
9124bc53 7514 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
7515fi
7516
7517if test "x${use_gnu_ld}" = x &&
7518 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7519 # Arrange for us to find uninstalled linker scripts.
215c351a 7520 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
7521fi
7522
e88a2c09
DD
7523# Search for other target-specific linker scripts and such.
7524case "${target}" in
3e19841a
PB
7525 mep*)
7526 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7527 ;;
e88a2c09
DD
7528esac
7529
671aa708 7530# Makefile fragments.
7b61653a
PE
7531for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7532do
7533 eval fragval=\$$frag
7534 if test $fragval != /dev/null; then
7535 eval $frag=${srcdir}/$fragval
7536 fi
7537done
671aa708
NN
7538
7539
7540
7541
7542
7543# Miscellanea: directories, flags, etc.
7544
7545
7546
7547
7548
7549
7550
d89f0ad6 7551
23f6b2f9 7552# Build module lists & subconfigure args.
671aa708
NN
7553
7554
7555
2abefe3d
PB
7556# Host module lists & subconfigure args.
7557
7558
7559
aae29963 7560
2abefe3d
PB
7561# Target module lists & subconfigure args.
7562
7563
7564
7565# Build tools.
7566
7567
7568
0999159b
PB
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
2abefe3d
PB
7582# Generate default definitions for YACC, M4, LEX and other programs that run
7583# on the build machine. These are used if the Makefile can't locate these
7584# programs in objdir.
7585MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7586
7587for ac_prog in 'bison -y' byacc yacc
7588do
1c710c3c 7589 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7590set dummy $ac_prog; ac_word=$2
5213506e
RW
7591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7592$as_echo_n "checking for $ac_word... " >&6; }
7593if test "${ac_cv_prog_YACC+set}" = set; then :
7594 $as_echo_n "(cached) " >&6
2abefe3d
PB
7595else
7596 if test -n "$YACC"; then
7597 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7598else
1c710c3c
DJ
7599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600for as_dir in $PATH
7601do
7602 IFS=$as_save_IFS
7603 test -z "$as_dir" && as_dir=.
5213506e
RW
7604 for ac_exec_ext in '' $ac_executable_extensions; do
7605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7606 ac_cv_prog_YACC="$ac_prog"
5213506e 7607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7608 break 2
7609 fi
7610done
5213506e
RW
7611 done
7612IFS=$as_save_IFS
1c710c3c 7613
2abefe3d
PB
7614fi
7615fi
1c710c3c 7616YACC=$ac_cv_prog_YACC
2abefe3d 7617if test -n "$YACC"; then
5213506e
RW
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7619$as_echo "$YACC" >&6; }
2abefe3d 7620else
5213506e
RW
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7622$as_echo "no" >&6; }
2abefe3d
PB
7623fi
7624
5213506e 7625
1c710c3c 7626 test -n "$YACC" && break
2abefe3d
PB
7627done
7628test -n "$YACC" || YACC="$MISSING bison -y"
7629
7630case " $build_configdirs " in
7631 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
7632esac
7633
7634for ac_prog in bison
7635do
1c710c3c 7636 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7637set dummy $ac_prog; ac_word=$2
5213506e
RW
7638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7639$as_echo_n "checking for $ac_word... " >&6; }
7640if test "${ac_cv_prog_BISON+set}" = set; then :
7641 $as_echo_n "(cached) " >&6
2abefe3d
PB
7642else
7643 if test -n "$BISON"; then
7644 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7645else
1c710c3c
DJ
7646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647for as_dir in $PATH
7648do
7649 IFS=$as_save_IFS
7650 test -z "$as_dir" && as_dir=.
5213506e
RW
7651 for ac_exec_ext in '' $ac_executable_extensions; do
7652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7653 ac_cv_prog_BISON="$ac_prog"
5213506e 7654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7655 break 2
7656 fi
7657done
5213506e
RW
7658 done
7659IFS=$as_save_IFS
1c710c3c 7660
2abefe3d
PB
7661fi
7662fi
1c710c3c 7663BISON=$ac_cv_prog_BISON
2abefe3d 7664if test -n "$BISON"; then
5213506e
RW
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7666$as_echo "$BISON" >&6; }
2abefe3d 7667else
5213506e
RW
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7669$as_echo "no" >&6; }
2abefe3d
PB
7670fi
7671
5213506e 7672
1c710c3c 7673 test -n "$BISON" && break
2abefe3d
PB
7674done
7675test -n "$BISON" || BISON="$MISSING bison"
7676
7677case " $build_configdirs " in
7678 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7679esac
7680
7681for ac_prog in gm4 gnum4 m4
7682do
1c710c3c 7683 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7684set dummy $ac_prog; ac_word=$2
5213506e
RW
7685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7686$as_echo_n "checking for $ac_word... " >&6; }
7687if test "${ac_cv_prog_M4+set}" = set; then :
7688 $as_echo_n "(cached) " >&6
2abefe3d
PB
7689else
7690 if test -n "$M4"; then
7691 ac_cv_prog_M4="$M4" # Let the user override the test.
7692else
1c710c3c
DJ
7693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7694for as_dir in $PATH
7695do
7696 IFS=$as_save_IFS
7697 test -z "$as_dir" && as_dir=.
5213506e
RW
7698 for ac_exec_ext in '' $ac_executable_extensions; do
7699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7700 ac_cv_prog_M4="$ac_prog"
5213506e 7701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7702 break 2
7703 fi
7704done
5213506e
RW
7705 done
7706IFS=$as_save_IFS
1c710c3c 7707
2abefe3d
PB
7708fi
7709fi
1c710c3c 7710M4=$ac_cv_prog_M4
2abefe3d 7711if test -n "$M4"; then
5213506e
RW
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7713$as_echo "$M4" >&6; }
2abefe3d 7714else
5213506e
RW
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7716$as_echo "no" >&6; }
2abefe3d
PB
7717fi
7718
5213506e 7719
1c710c3c 7720 test -n "$M4" && break
2abefe3d
PB
7721done
7722test -n "$M4" || M4="$MISSING m4"
7723
7724case " $build_configdirs " in
7725 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7726esac
7727
7728for ac_prog in flex lex
7729do
1c710c3c 7730 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7731set dummy $ac_prog; ac_word=$2
5213506e
RW
7732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7733$as_echo_n "checking for $ac_word... " >&6; }
7734if test "${ac_cv_prog_LEX+set}" = set; then :
7735 $as_echo_n "(cached) " >&6
2abefe3d
PB
7736else
7737 if test -n "$LEX"; then
7738 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7739else
1c710c3c
DJ
7740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741for as_dir in $PATH
7742do
7743 IFS=$as_save_IFS
7744 test -z "$as_dir" && as_dir=.
5213506e
RW
7745 for ac_exec_ext in '' $ac_executable_extensions; do
7746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7747 ac_cv_prog_LEX="$ac_prog"
5213506e 7748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7749 break 2
7750 fi
7751done
5213506e
RW
7752 done
7753IFS=$as_save_IFS
1c710c3c 7754
2abefe3d
PB
7755fi
7756fi
1c710c3c 7757LEX=$ac_cv_prog_LEX
2abefe3d 7758if test -n "$LEX"; then
5213506e
RW
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7760$as_echo "$LEX" >&6; }
2abefe3d 7761else
5213506e
RW
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7763$as_echo "no" >&6; }
2abefe3d
PB
7764fi
7765
5213506e 7766
1c710c3c 7767 test -n "$LEX" && break
2abefe3d
PB
7768done
7769test -n "$LEX" || LEX="$MISSING flex"
7770
7771case " $build_configdirs " in
7772 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7773 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7774esac
7775
7776for ac_prog in flex
7777do
1c710c3c 7778 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7779set dummy $ac_prog; ac_word=$2
5213506e
RW
7780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7781$as_echo_n "checking for $ac_word... " >&6; }
7782if test "${ac_cv_prog_FLEX+set}" = set; then :
7783 $as_echo_n "(cached) " >&6
2abefe3d
PB
7784else
7785 if test -n "$FLEX"; then
7786 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7787else
1c710c3c
DJ
7788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7789for as_dir in $PATH
7790do
7791 IFS=$as_save_IFS
7792 test -z "$as_dir" && as_dir=.
5213506e
RW
7793 for ac_exec_ext in '' $ac_executable_extensions; do
7794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7795 ac_cv_prog_FLEX="$ac_prog"
5213506e 7796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7797 break 2
7798 fi
7799done
5213506e
RW
7800 done
7801IFS=$as_save_IFS
1c710c3c 7802
2abefe3d
PB
7803fi
7804fi
1c710c3c 7805FLEX=$ac_cv_prog_FLEX
2abefe3d 7806if test -n "$FLEX"; then
5213506e
RW
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7808$as_echo "$FLEX" >&6; }
2abefe3d 7809else
5213506e
RW
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7811$as_echo "no" >&6; }
2abefe3d
PB
7812fi
7813
5213506e 7814
1c710c3c 7815 test -n "$FLEX" && break
2abefe3d
PB
7816done
7817test -n "$FLEX" || FLEX="$MISSING flex"
7818
7819case " $build_configdirs " in
7820 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7821esac
7822
7823for ac_prog in makeinfo
7824do
1c710c3c 7825 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7826set dummy $ac_prog; ac_word=$2
5213506e
RW
7827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7828$as_echo_n "checking for $ac_word... " >&6; }
7829if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7830 $as_echo_n "(cached) " >&6
2abefe3d
PB
7831else
7832 if test -n "$MAKEINFO"; then
7833 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7834else
1c710c3c
DJ
7835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836for as_dir in $PATH
7837do
7838 IFS=$as_save_IFS
7839 test -z "$as_dir" && as_dir=.
5213506e
RW
7840 for ac_exec_ext in '' $ac_executable_extensions; do
7841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7842 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 7843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7844 break 2
7845 fi
7846done
5213506e
RW
7847 done
7848IFS=$as_save_IFS
1c710c3c 7849
2abefe3d
PB
7850fi
7851fi
1c710c3c 7852MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 7853if test -n "$MAKEINFO"; then
5213506e
RW
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7855$as_echo "$MAKEINFO" >&6; }
2abefe3d 7856else
5213506e
RW
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7858$as_echo "no" >&6; }
2abefe3d
PB
7859fi
7860
5213506e 7861
1c710c3c 7862 test -n "$MAKEINFO" && break
2abefe3d
PB
7863done
7864test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7865
7866case " $build_configdirs " in
7867 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7868 *)
7869
d18ff35a 7870 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
7871 # higher, else we use the "missing" dummy.
7872 if ${MAKEINFO} --version \
d18ff35a 7873 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
7874 :
7875 else
7876 MAKEINFO="$MISSING makeinfo"
7877 fi
7878 ;;
7879
7880esac
671aa708 7881
2abefe3d 7882# FIXME: expect and dejagnu may become build tools?
671aa708 7883
2abefe3d
PB
7884for ac_prog in expect
7885do
1c710c3c 7886 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7887set dummy $ac_prog; ac_word=$2
5213506e
RW
7888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7889$as_echo_n "checking for $ac_word... " >&6; }
7890if test "${ac_cv_prog_EXPECT+set}" = set; then :
7891 $as_echo_n "(cached) " >&6
2abefe3d
PB
7892else
7893 if test -n "$EXPECT"; then
7894 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7895else
1c710c3c
DJ
7896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897for as_dir in $PATH
7898do
7899 IFS=$as_save_IFS
7900 test -z "$as_dir" && as_dir=.
5213506e
RW
7901 for ac_exec_ext in '' $ac_executable_extensions; do
7902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7903 ac_cv_prog_EXPECT="$ac_prog"
5213506e 7904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7905 break 2
7906 fi
7907done
5213506e
RW
7908 done
7909IFS=$as_save_IFS
1c710c3c 7910
2abefe3d
PB
7911fi
7912fi
1c710c3c 7913EXPECT=$ac_cv_prog_EXPECT
2abefe3d 7914if test -n "$EXPECT"; then
5213506e
RW
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7916$as_echo "$EXPECT" >&6; }
2abefe3d 7917else
5213506e
RW
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7919$as_echo "no" >&6; }
2abefe3d 7920fi
671aa708 7921
5213506e 7922
1c710c3c 7923 test -n "$EXPECT" && break
2abefe3d
PB
7924done
7925test -n "$EXPECT" || EXPECT="expect"
671aa708 7926
2abefe3d
PB
7927case " $configdirs " in
7928 *" expect "*)
7929 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7930 ;;
7931esac
671aa708 7932
2abefe3d
PB
7933for ac_prog in runtest
7934do
1c710c3c 7935 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7936set dummy $ac_prog; ac_word=$2
5213506e
RW
7937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7938$as_echo_n "checking for $ac_word... " >&6; }
7939if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7940 $as_echo_n "(cached) " >&6
2abefe3d
PB
7941else
7942 if test -n "$RUNTEST"; then
7943 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 7944else
1c710c3c
DJ
7945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946for as_dir in $PATH
7947do
7948 IFS=$as_save_IFS
7949 test -z "$as_dir" && as_dir=.
5213506e
RW
7950 for ac_exec_ext in '' $ac_executable_extensions; do
7951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7952 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 7953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7954 break 2
7955 fi
7956done
5213506e
RW
7957 done
7958IFS=$as_save_IFS
1c710c3c 7959
2abefe3d
PB
7960fi
7961fi
1c710c3c 7962RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 7963if test -n "$RUNTEST"; then
5213506e
RW
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7965$as_echo "$RUNTEST" >&6; }
2abefe3d 7966else
5213506e
RW
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7968$as_echo "no" >&6; }
2abefe3d 7969fi
671aa708 7970
5213506e 7971
1c710c3c 7972 test -n "$RUNTEST" && break
2abefe3d
PB
7973done
7974test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 7975
2abefe3d
PB
7976case " $configdirs " in
7977 *" dejagnu "*)
c394e891 7978 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
7979 ;;
7980esac
671aa708
NN
7981
7982
671aa708 7983# Host tools.
ca9f4b81
AO
7984ncn_tool_prefix=
7985test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7986ncn_target_tool_prefix=
7987test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7988
278a7a38
AO
7989
7990
7991if test -n "$AR"; then
7992 ac_cv_prog_AR=$AR
7993elif test -n "$ac_cv_prog_AR"; then
7994 AR=$ac_cv_prog_AR
7995fi
7996
7997if test -n "$ac_cv_prog_AR"; then
7998 for ncn_progname in ar; do
7999 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8000set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8002$as_echo_n "checking for $ac_word... " >&6; }
8003if test "${ac_cv_prog_AR+set}" = set; then :
8004 $as_echo_n "(cached) " >&6
278a7a38
AO
8005else
8006 if test -n "$AR"; then
8007 ac_cv_prog_AR="$AR" # Let the user override the test.
8008else
8009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8010for as_dir in $PATH
8011do
8012 IFS=$as_save_IFS
8013 test -z "$as_dir" && as_dir=.
5213506e
RW
8014 for ac_exec_ext in '' $ac_executable_extensions; do
8015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8016 ac_cv_prog_AR="${ncn_progname}"
5213506e 8017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8018 break 2
8019 fi
8020done
5213506e
RW
8021 done
8022IFS=$as_save_IFS
278a7a38
AO
8023
8024fi
8025fi
8026AR=$ac_cv_prog_AR
8027if test -n "$AR"; then
5213506e
RW
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8029$as_echo "$AR" >&6; }
278a7a38 8030else
5213506e
RW
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8032$as_echo "no" >&6; }
278a7a38
AO
8033fi
8034
5213506e 8035
278a7a38
AO
8036 done
8037fi
8038
8039for ncn_progname in ar; do
2693c0b0
PB
8040 if test -n "$ncn_tool_prefix"; then
8041 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8042set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8044$as_echo_n "checking for $ac_word... " >&6; }
8045if test "${ac_cv_prog_AR+set}" = set; then :
8046 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8047else
8048 if test -n "$AR"; then
8049 ac_cv_prog_AR="$AR" # Let the user override the test.
8050else
1c710c3c
DJ
8051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052for as_dir in $PATH
8053do
8054 IFS=$as_save_IFS
8055 test -z "$as_dir" && as_dir=.
5213506e
RW
8056 for ac_exec_ext in '' $ac_executable_extensions; do
8057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8058 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 8059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8060 break 2
8061 fi
8062done
5213506e
RW
8063 done
8064IFS=$as_save_IFS
1c710c3c 8065
ca9f4b81
AO
8066fi
8067fi
1c710c3c 8068AR=$ac_cv_prog_AR
ca9f4b81 8069if test -n "$AR"; then
5213506e
RW
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8071$as_echo "$AR" >&6; }
ca9f4b81 8072else
5213506e
RW
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8074$as_echo "no" >&6; }
ca9f4b81
AO
8075fi
8076
5213506e 8077
2693c0b0
PB
8078 fi
8079 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8080 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8081set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8083$as_echo_n "checking for $ac_word... " >&6; }
8084if test "${ac_cv_prog_AR+set}" = set; then :
8085 $as_echo_n "(cached) " >&6
ca9f4b81 8086else
2693c0b0 8087 if test -n "$AR"; then
af71363e
AS
8088 ac_cv_prog_AR="$AR" # Let the user override the test.
8089else
1c710c3c
DJ
8090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8091for as_dir in $PATH
8092do
8093 IFS=$as_save_IFS
8094 test -z "$as_dir" && as_dir=.
5213506e
RW
8095 for ac_exec_ext in '' $ac_executable_extensions; do
8096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8097 ac_cv_prog_AR="${ncn_progname}"
5213506e 8098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8099 break 2
8100 fi
8101done
5213506e
RW
8102 done
8103IFS=$as_save_IFS
1c710c3c 8104
ca9f4b81
AO
8105fi
8106fi
1c710c3c 8107AR=$ac_cv_prog_AR
2693c0b0 8108if test -n "$AR"; then
5213506e
RW
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8110$as_echo "$AR" >&6; }
ca9f4b81 8111else
5213506e
RW
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8113$as_echo "no" >&6; }
ca9f4b81 8114fi
1c710c3c 8115
5213506e 8116
2693c0b0
PB
8117 fi
8118 test -n "$ac_cv_prog_AR" && break
8119done
8120
8121if test -z "$ac_cv_prog_AR" ; then
8122 set dummy ar
8123 if test $build = $host ; then
8124 AR="$2"
ca9f4b81 8125 else
2693c0b0 8126 AR="${ncn_tool_prefix}$2"
ca9f4b81 8127 fi
ca9f4b81
AO
8128fi
8129
278a7a38
AO
8130
8131
8132if test -n "$AS"; then
8133 ac_cv_prog_AS=$AS
8134elif test -n "$ac_cv_prog_AS"; then
8135 AS=$ac_cv_prog_AS
8136fi
8137
8138if test -n "$ac_cv_prog_AS"; then
8139 for ncn_progname in as; do
8140 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8141set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8143$as_echo_n "checking for $ac_word... " >&6; }
8144if test "${ac_cv_prog_AS+set}" = set; then :
8145 $as_echo_n "(cached) " >&6
278a7a38
AO
8146else
8147 if test -n "$AS"; then
8148 ac_cv_prog_AS="$AS" # Let the user override the test.
8149else
8150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8151for as_dir in $PATH
8152do
8153 IFS=$as_save_IFS
8154 test -z "$as_dir" && as_dir=.
5213506e
RW
8155 for ac_exec_ext in '' $ac_executable_extensions; do
8156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8157 ac_cv_prog_AS="${ncn_progname}"
5213506e 8158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8159 break 2
8160 fi
8161done
5213506e
RW
8162 done
8163IFS=$as_save_IFS
278a7a38
AO
8164
8165fi
8166fi
8167AS=$ac_cv_prog_AS
8168if test -n "$AS"; then
5213506e
RW
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8170$as_echo "$AS" >&6; }
278a7a38 8171else
5213506e
RW
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8173$as_echo "no" >&6; }
278a7a38
AO
8174fi
8175
5213506e 8176
278a7a38
AO
8177 done
8178fi
8179
8180for ncn_progname in as; do
2693c0b0
PB
8181 if test -n "$ncn_tool_prefix"; then
8182 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8183set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8185$as_echo_n "checking for $ac_word... " >&6; }
8186if test "${ac_cv_prog_AS+set}" = set; then :
8187 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8188else
8189 if test -n "$AS"; then
8190 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 8191else
1c710c3c
DJ
8192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8193for as_dir in $PATH
8194do
8195 IFS=$as_save_IFS
8196 test -z "$as_dir" && as_dir=.
5213506e
RW
8197 for ac_exec_ext in '' $ac_executable_extensions; do
8198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8199 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 8200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8201 break 2
8202 fi
8203done
5213506e
RW
8204 done
8205IFS=$as_save_IFS
1c710c3c 8206
ca9f4b81
AO
8207fi
8208fi
1c710c3c 8209AS=$ac_cv_prog_AS
ca9f4b81 8210if test -n "$AS"; then
5213506e
RW
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8212$as_echo "$AS" >&6; }
ca9f4b81 8213else
5213506e
RW
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8215$as_echo "no" >&6; }
ca9f4b81
AO
8216fi
8217
5213506e 8218
2693c0b0
PB
8219 fi
8220 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8221 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8222set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8224$as_echo_n "checking for $ac_word... " >&6; }
8225if test "${ac_cv_prog_AS+set}" = set; then :
8226 $as_echo_n "(cached) " >&6
ca9f4b81 8227else
2693c0b0
PB
8228 if test -n "$AS"; then
8229 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 8230else
1c710c3c
DJ
8231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8232for as_dir in $PATH
8233do
8234 IFS=$as_save_IFS
8235 test -z "$as_dir" && as_dir=.
5213506e
RW
8236 for ac_exec_ext in '' $ac_executable_extensions; do
8237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8238 ac_cv_prog_AS="${ncn_progname}"
5213506e 8239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8240 break 2
8241 fi
8242done
5213506e
RW
8243 done
8244IFS=$as_save_IFS
1c710c3c 8245
ca9f4b81
AO
8246fi
8247fi
1c710c3c 8248AS=$ac_cv_prog_AS
2693c0b0 8249if test -n "$AS"; then
5213506e
RW
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8251$as_echo "$AS" >&6; }
ca9f4b81 8252else
5213506e
RW
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8254$as_echo "no" >&6; }
ca9f4b81 8255fi
1c710c3c 8256
5213506e 8257
2693c0b0
PB
8258 fi
8259 test -n "$ac_cv_prog_AS" && break
8260done
8261
8262if test -z "$ac_cv_prog_AS" ; then
8263 set dummy as
8264 if test $build = $host ; then
8265 AS="$2"
ca9f4b81 8266 else
2693c0b0 8267 AS="${ncn_tool_prefix}$2"
ca9f4b81 8268 fi
ca9f4b81
AO
8269fi
8270
278a7a38
AO
8271
8272
8273if test -n "$DLLTOOL"; then
8274 ac_cv_prog_DLLTOOL=$DLLTOOL
8275elif test -n "$ac_cv_prog_DLLTOOL"; then
8276 DLLTOOL=$ac_cv_prog_DLLTOOL
8277fi
8278
8279if test -n "$ac_cv_prog_DLLTOOL"; then
8280 for ncn_progname in dlltool; do
8281 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8282set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8284$as_echo_n "checking for $ac_word... " >&6; }
8285if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8286 $as_echo_n "(cached) " >&6
278a7a38
AO
8287else
8288 if test -n "$DLLTOOL"; then
8289 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8290else
8291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8292for as_dir in $PATH
8293do
8294 IFS=$as_save_IFS
8295 test -z "$as_dir" && as_dir=.
5213506e
RW
8296 for ac_exec_ext in '' $ac_executable_extensions; do
8297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8298 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8300 break 2
8301 fi
8302done
5213506e
RW
8303 done
8304IFS=$as_save_IFS
278a7a38
AO
8305
8306fi
8307fi
8308DLLTOOL=$ac_cv_prog_DLLTOOL
8309if test -n "$DLLTOOL"; then
5213506e
RW
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8311$as_echo "$DLLTOOL" >&6; }
278a7a38 8312else
5213506e
RW
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8314$as_echo "no" >&6; }
278a7a38
AO
8315fi
8316
5213506e 8317
278a7a38
AO
8318 done
8319fi
8320
8321for ncn_progname in dlltool; do
2693c0b0
PB
8322 if test -n "$ncn_tool_prefix"; then
8323 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8324set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8326$as_echo_n "checking for $ac_word... " >&6; }
8327if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8328 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8329else
8330 if test -n "$DLLTOOL"; then
8331 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8332else
1c710c3c
DJ
8333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8334for as_dir in $PATH
8335do
8336 IFS=$as_save_IFS
8337 test -z "$as_dir" && as_dir=.
5213506e
RW
8338 for ac_exec_ext in '' $ac_executable_extensions; do
8339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8340 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8342 break 2
8343 fi
8344done
5213506e
RW
8345 done
8346IFS=$as_save_IFS
1c710c3c 8347
ca9f4b81
AO
8348fi
8349fi
1c710c3c 8350DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8351if test -n "$DLLTOOL"; then
5213506e
RW
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8353$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8354else
5213506e
RW
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8356$as_echo "no" >&6; }
ca9f4b81
AO
8357fi
8358
5213506e 8359
2693c0b0
PB
8360 fi
8361 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8362 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8363set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8365$as_echo_n "checking for $ac_word... " >&6; }
8366if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8367 $as_echo_n "(cached) " >&6
ca9f4b81 8368else
2693c0b0
PB
8369 if test -n "$DLLTOOL"; then
8370 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8371else
1c710c3c
DJ
8372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8373for as_dir in $PATH
8374do
8375 IFS=$as_save_IFS
8376 test -z "$as_dir" && as_dir=.
5213506e
RW
8377 for ac_exec_ext in '' $ac_executable_extensions; do
8378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8379 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8381 break 2
8382 fi
8383done
5213506e
RW
8384 done
8385IFS=$as_save_IFS
1c710c3c 8386
ca9f4b81
AO
8387fi
8388fi
1c710c3c 8389DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8390if test -n "$DLLTOOL"; then
5213506e
RW
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8392$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8393else
5213506e
RW
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395$as_echo "no" >&6; }
ca9f4b81 8396fi
1c710c3c 8397
5213506e 8398
2693c0b0
PB
8399 fi
8400 test -n "$ac_cv_prog_DLLTOOL" && break
8401done
8402
8403if test -z "$ac_cv_prog_DLLTOOL" ; then
8404 set dummy dlltool
8405 if test $build = $host ; then
8406 DLLTOOL="$2"
ca9f4b81 8407 else
2693c0b0 8408 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8409 fi
ca9f4b81
AO
8410fi
8411
278a7a38
AO
8412
8413
8414if test -n "$LD"; then
8415 ac_cv_prog_LD=$LD
8416elif test -n "$ac_cv_prog_LD"; then
8417 LD=$ac_cv_prog_LD
8418fi
8419
8420if test -n "$ac_cv_prog_LD"; then
8421 for ncn_progname in ld; do
8422 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8423set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8425$as_echo_n "checking for $ac_word... " >&6; }
8426if test "${ac_cv_prog_LD+set}" = set; then :
8427 $as_echo_n "(cached) " >&6
278a7a38
AO
8428else
8429 if test -n "$LD"; then
8430 ac_cv_prog_LD="$LD" # Let the user override the test.
8431else
8432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8433for as_dir in $PATH
8434do
8435 IFS=$as_save_IFS
8436 test -z "$as_dir" && as_dir=.
5213506e
RW
8437 for ac_exec_ext in '' $ac_executable_extensions; do
8438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8439 ac_cv_prog_LD="${ncn_progname}"
5213506e 8440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8441 break 2
8442 fi
8443done
5213506e
RW
8444 done
8445IFS=$as_save_IFS
278a7a38
AO
8446
8447fi
8448fi
8449LD=$ac_cv_prog_LD
8450if test -n "$LD"; then
5213506e
RW
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8452$as_echo "$LD" >&6; }
278a7a38 8453else
5213506e
RW
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8455$as_echo "no" >&6; }
278a7a38
AO
8456fi
8457
5213506e 8458
278a7a38
AO
8459 done
8460fi
8461
8462for ncn_progname in ld; do
2693c0b0
PB
8463 if test -n "$ncn_tool_prefix"; then
8464 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8465set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8467$as_echo_n "checking for $ac_word... " >&6; }
8468if test "${ac_cv_prog_LD+set}" = set; then :
8469 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8470else
8471 if test -n "$LD"; then
8472 ac_cv_prog_LD="$LD" # Let the user override the test.
8473else
1c710c3c
DJ
8474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8475for as_dir in $PATH
8476do
8477 IFS=$as_save_IFS
8478 test -z "$as_dir" && as_dir=.
5213506e
RW
8479 for ac_exec_ext in '' $ac_executable_extensions; do
8480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8481 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 8482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8483 break 2
8484 fi
8485done
5213506e
RW
8486 done
8487IFS=$as_save_IFS
1c710c3c 8488
ca9f4b81
AO
8489fi
8490fi
1c710c3c 8491LD=$ac_cv_prog_LD
ca9f4b81 8492if test -n "$LD"; then
5213506e
RW
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8494$as_echo "$LD" >&6; }
ca9f4b81 8495else
5213506e
RW
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8497$as_echo "no" >&6; }
ca9f4b81
AO
8498fi
8499
5213506e 8500
2693c0b0
PB
8501 fi
8502 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8503 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8504set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8506$as_echo_n "checking for $ac_word... " >&6; }
8507if test "${ac_cv_prog_LD+set}" = set; then :
8508 $as_echo_n "(cached) " >&6
ca9f4b81 8509else
2693c0b0
PB
8510 if test -n "$LD"; then
8511 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 8512else
1c710c3c
DJ
8513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8514for as_dir in $PATH
8515do
8516 IFS=$as_save_IFS
8517 test -z "$as_dir" && as_dir=.
5213506e
RW
8518 for ac_exec_ext in '' $ac_executable_extensions; do
8519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8520 ac_cv_prog_LD="${ncn_progname}"
5213506e 8521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8522 break 2
8523 fi
8524done
5213506e
RW
8525 done
8526IFS=$as_save_IFS
1c710c3c 8527
ca9f4b81
AO
8528fi
8529fi
1c710c3c 8530LD=$ac_cv_prog_LD
2693c0b0 8531if test -n "$LD"; then
5213506e
RW
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8533$as_echo "$LD" >&6; }
ca9f4b81 8534else
5213506e
RW
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8536$as_echo "no" >&6; }
ca9f4b81 8537fi
1c710c3c 8538
5213506e 8539
2693c0b0
PB
8540 fi
8541 test -n "$ac_cv_prog_LD" && break
8542done
8543
8544if test -z "$ac_cv_prog_LD" ; then
8545 set dummy ld
8546 if test $build = $host ; then
8547 LD="$2"
ca9f4b81 8548 else
2693c0b0 8549 LD="${ncn_tool_prefix}$2"
ca9f4b81 8550 fi
ca9f4b81
AO
8551fi
8552
278a7a38
AO
8553
8554
8555if test -n "$LIPO"; then
8556 ac_cv_prog_LIPO=$LIPO
8557elif test -n "$ac_cv_prog_LIPO"; then
8558 LIPO=$ac_cv_prog_LIPO
8559fi
8560
8561if test -n "$ac_cv_prog_LIPO"; then
8562 for ncn_progname in lipo; do
8563 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8564set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8566$as_echo_n "checking for $ac_word... " >&6; }
8567if test "${ac_cv_prog_LIPO+set}" = set; then :
8568 $as_echo_n "(cached) " >&6
278a7a38
AO
8569else
8570 if test -n "$LIPO"; then
8571 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8572else
8573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8574for as_dir in $PATH
8575do
8576 IFS=$as_save_IFS
8577 test -z "$as_dir" && as_dir=.
5213506e
RW
8578 for ac_exec_ext in '' $ac_executable_extensions; do
8579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8580 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8582 break 2
8583 fi
8584done
5213506e
RW
8585 done
8586IFS=$as_save_IFS
278a7a38
AO
8587
8588fi
8589fi
8590LIPO=$ac_cv_prog_LIPO
8591if test -n "$LIPO"; then
5213506e
RW
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8593$as_echo "$LIPO" >&6; }
278a7a38 8594else
5213506e
RW
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8596$as_echo "no" >&6; }
278a7a38
AO
8597fi
8598
5213506e 8599
278a7a38
AO
8600 done
8601fi
8602
8603for ncn_progname in lipo; do
2abefe3d
PB
8604 if test -n "$ncn_tool_prefix"; then
8605 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8606set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8608$as_echo_n "checking for $ac_word... " >&6; }
8609if test "${ac_cv_prog_LIPO+set}" = set; then :
8610 $as_echo_n "(cached) " >&6
2abefe3d
PB
8611else
8612 if test -n "$LIPO"; then
8613 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8614else
1c710c3c
DJ
8615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8616for as_dir in $PATH
8617do
8618 IFS=$as_save_IFS
8619 test -z "$as_dir" && as_dir=.
5213506e
RW
8620 for ac_exec_ext in '' $ac_executable_extensions; do
8621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8622 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 8623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8624 break 2
8625 fi
8626done
5213506e
RW
8627 done
8628IFS=$as_save_IFS
1c710c3c 8629
2abefe3d
PB
8630fi
8631fi
1c710c3c 8632LIPO=$ac_cv_prog_LIPO
2abefe3d 8633if test -n "$LIPO"; then
5213506e
RW
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8635$as_echo "$LIPO" >&6; }
2abefe3d 8636else
5213506e
RW
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8638$as_echo "no" >&6; }
2abefe3d
PB
8639fi
8640
5213506e 8641
2abefe3d
PB
8642 fi
8643 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8644 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8645set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8647$as_echo_n "checking for $ac_word... " >&6; }
8648if test "${ac_cv_prog_LIPO+set}" = set; then :
8649 $as_echo_n "(cached) " >&6
2abefe3d
PB
8650else
8651 if test -n "$LIPO"; then
8652 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8653else
1c710c3c
DJ
8654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8655for as_dir in $PATH
8656do
8657 IFS=$as_save_IFS
8658 test -z "$as_dir" && as_dir=.
5213506e
RW
8659 for ac_exec_ext in '' $ac_executable_extensions; do
8660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8661 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8663 break 2
8664 fi
8665done
5213506e
RW
8666 done
8667IFS=$as_save_IFS
1c710c3c 8668
2abefe3d
PB
8669fi
8670fi
1c710c3c 8671LIPO=$ac_cv_prog_LIPO
2abefe3d 8672if test -n "$LIPO"; then
5213506e
RW
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8674$as_echo "$LIPO" >&6; }
2abefe3d 8675else
5213506e
RW
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8677$as_echo "no" >&6; }
2abefe3d 8678fi
1c710c3c 8679
5213506e 8680
2abefe3d
PB
8681 fi
8682 test -n "$ac_cv_prog_LIPO" && break
8683done
8684
8685if test -z "$ac_cv_prog_LIPO" ; then
8686 set dummy lipo
8687 if test $build = $host ; then
8688 LIPO="$2"
8689 else
8690 LIPO="${ncn_tool_prefix}$2"
8691 fi
8692fi
8693
278a7a38
AO
8694
8695
8696if test -n "$NM"; then
8697 ac_cv_prog_NM=$NM
8698elif test -n "$ac_cv_prog_NM"; then
8699 NM=$ac_cv_prog_NM
8700fi
8701
8702if test -n "$ac_cv_prog_NM"; then
8703 for ncn_progname in nm; do
8704 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8705set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8707$as_echo_n "checking for $ac_word... " >&6; }
8708if test "${ac_cv_prog_NM+set}" = set; then :
8709 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8710else
8711 if test -n "$NM"; then
8712 ac_cv_prog_NM="$NM" # Let the user override the test.
8713else
1c710c3c
DJ
8714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8715for as_dir in $PATH
8716do
8717 IFS=$as_save_IFS
8718 test -z "$as_dir" && as_dir=.
5213506e
RW
8719 for ac_exec_ext in '' $ac_executable_extensions; do
8720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8721 ac_cv_prog_NM="${ncn_progname}"
5213506e 8722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8723 break 2
8724 fi
8725done
5213506e
RW
8726 done
8727IFS=$as_save_IFS
1c710c3c 8728
ca9f4b81
AO
8729fi
8730fi
1c710c3c 8731NM=$ac_cv_prog_NM
ca9f4b81 8732if test -n "$NM"; then
5213506e
RW
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8734$as_echo "$NM" >&6; }
ca9f4b81 8735else
5213506e
RW
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8737$as_echo "no" >&6; }
ca9f4b81
AO
8738fi
8739
5213506e 8740
278a7a38
AO
8741 done
8742fi
8743
8744for ncn_progname in nm; do
8745 if test -n "$ncn_tool_prefix"; then
8746 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8747set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8749$as_echo_n "checking for $ac_word... " >&6; }
8750if test "${ac_cv_prog_NM+set}" = set; then :
8751 $as_echo_n "(cached) " >&6
ca9f4b81 8752else
2693c0b0
PB
8753 if test -n "$NM"; then
8754 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 8755else
1c710c3c
DJ
8756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8757for as_dir in $PATH
8758do
8759 IFS=$as_save_IFS
8760 test -z "$as_dir" && as_dir=.
5213506e
RW
8761 for ac_exec_ext in '' $ac_executable_extensions; do
8762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8763 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 8764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8765 break 2
8766 fi
8767done
5213506e
RW
8768 done
8769IFS=$as_save_IFS
1c710c3c 8770
ca9f4b81
AO
8771fi
8772fi
1c710c3c 8773NM=$ac_cv_prog_NM
2693c0b0 8774if test -n "$NM"; then
5213506e
RW
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8776$as_echo "$NM" >&6; }
ca9f4b81 8777else
5213506e
RW
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8779$as_echo "no" >&6; }
ca9f4b81 8780fi
1c710c3c 8781
5213506e 8782
2693c0b0 8783 fi
278a7a38
AO
8784 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8785 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8786set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8788$as_echo_n "checking for $ac_word... " >&6; }
8789if test "${ac_cv_prog_NM+set}" = set; then :
8790 $as_echo_n "(cached) " >&6
278a7a38
AO
8791else
8792 if test -n "$NM"; then
8793 ac_cv_prog_NM="$NM" # Let the user override the test.
8794else
8795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8796for as_dir in $PATH
8797do
8798 IFS=$as_save_IFS
8799 test -z "$as_dir" && as_dir=.
5213506e
RW
8800 for ac_exec_ext in '' $ac_executable_extensions; do
8801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8802 ac_cv_prog_NM="${ncn_progname}"
5213506e 8803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8804 break 2
8805 fi
8806done
5213506e
RW
8807 done
8808IFS=$as_save_IFS
278a7a38
AO
8809
8810fi
8811fi
8812NM=$ac_cv_prog_NM
8813if test -n "$NM"; then
5213506e
RW
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8815$as_echo "$NM" >&6; }
278a7a38 8816else
5213506e
RW
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8818$as_echo "no" >&6; }
278a7a38
AO
8819fi
8820
5213506e 8821
278a7a38
AO
8822 fi
8823 test -n "$ac_cv_prog_NM" && break
8824done
8825
8826if test -z "$ac_cv_prog_NM" ; then
8827 set dummy nm
8828 if test $build = $host ; then
8829 NM="$2"
8830 else
8831 NM="${ncn_tool_prefix}$2"
8832 fi
8833fi
8834
8835
8836
8837if test -n "$RANLIB"; then
8838 ac_cv_prog_RANLIB=$RANLIB
8839elif test -n "$ac_cv_prog_RANLIB"; then
8840 RANLIB=$ac_cv_prog_RANLIB
8841fi
8842
8843if test -n "$ac_cv_prog_RANLIB"; then
8844 for ncn_progname in ranlib; do
8845 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8846set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8848$as_echo_n "checking for $ac_word... " >&6; }
8849if test "${ac_cv_prog_RANLIB+set}" = set; then :
8850 $as_echo_n "(cached) " >&6
278a7a38
AO
8851else
8852 if test -n "$RANLIB"; then
8853 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8854else
8855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8856for as_dir in $PATH
8857do
8858 IFS=$as_save_IFS
8859 test -z "$as_dir" && as_dir=.
5213506e
RW
8860 for ac_exec_ext in '' $ac_executable_extensions; do
8861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8862 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8864 break 2
8865 fi
8866done
5213506e
RW
8867 done
8868IFS=$as_save_IFS
278a7a38
AO
8869
8870fi
8871fi
8872RANLIB=$ac_cv_prog_RANLIB
8873if test -n "$RANLIB"; then
5213506e
RW
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8875$as_echo "$RANLIB" >&6; }
278a7a38 8876else
5213506e
RW
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8878$as_echo "no" >&6; }
278a7a38
AO
8879fi
8880
5213506e 8881
278a7a38
AO
8882 done
8883fi
ca9f4b81 8884
278a7a38 8885for ncn_progname in ranlib; do
2693c0b0
PB
8886 if test -n "$ncn_tool_prefix"; then
8887 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8888set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8890$as_echo_n "checking for $ac_word... " >&6; }
8891if test "${ac_cv_prog_RANLIB+set}" = set; then :
8892 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8893else
8894 if test -n "$RANLIB"; then
8895 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8896else
1c710c3c
DJ
8897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8898for as_dir in $PATH
8899do
8900 IFS=$as_save_IFS
8901 test -z "$as_dir" && as_dir=.
5213506e
RW
8902 for ac_exec_ext in '' $ac_executable_extensions; do
8903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8904 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 8905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8906 break 2
8907 fi
8908done
5213506e
RW
8909 done
8910IFS=$as_save_IFS
1c710c3c 8911
ca9f4b81
AO
8912fi
8913fi
1c710c3c 8914RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 8915if test -n "$RANLIB"; then
5213506e
RW
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8917$as_echo "$RANLIB" >&6; }
ca9f4b81 8918else
5213506e
RW
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8920$as_echo "no" >&6; }
ca9f4b81
AO
8921fi
8922
5213506e 8923
2693c0b0
PB
8924 fi
8925 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8926 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8927set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8929$as_echo_n "checking for $ac_word... " >&6; }
8930if test "${ac_cv_prog_RANLIB+set}" = set; then :
8931 $as_echo_n "(cached) " >&6
ca9f4b81 8932else
2693c0b0
PB
8933 if test -n "$RANLIB"; then
8934 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 8935else
1c710c3c
DJ
8936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8937for as_dir in $PATH
8938do
8939 IFS=$as_save_IFS
8940 test -z "$as_dir" && as_dir=.
5213506e
RW
8941 for ac_exec_ext in '' $ac_executable_extensions; do
8942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8943 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8945 break 2
8946 fi
8947done
5213506e
RW
8948 done
8949IFS=$as_save_IFS
1c710c3c 8950
ca9f4b81
AO
8951fi
8952fi
1c710c3c 8953RANLIB=$ac_cv_prog_RANLIB
2693c0b0 8954if test -n "$RANLIB"; then
5213506e
RW
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8956$as_echo "$RANLIB" >&6; }
ca9f4b81 8957else
5213506e
RW
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8959$as_echo "no" >&6; }
ca9f4b81 8960fi
1c710c3c 8961
5213506e 8962
ca9f4b81 8963 fi
2693c0b0
PB
8964 test -n "$ac_cv_prog_RANLIB" && break
8965done
8966
8967if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 8968 RANLIB="true"
ca9f4b81
AO
8969fi
8970
278a7a38
AO
8971
8972
8973if test -n "$STRIP"; then
8974 ac_cv_prog_STRIP=$STRIP
8975elif test -n "$ac_cv_prog_STRIP"; then
8976 STRIP=$ac_cv_prog_STRIP
8977fi
8978
8979if test -n "$ac_cv_prog_STRIP"; then
8980 for ncn_progname in strip; do
8981 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8982set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8984$as_echo_n "checking for $ac_word... " >&6; }
8985if test "${ac_cv_prog_STRIP+set}" = set; then :
8986 $as_echo_n "(cached) " >&6
278a7a38
AO
8987else
8988 if test -n "$STRIP"; then
8989 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8990else
8991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8992for as_dir in $PATH
8993do
8994 IFS=$as_save_IFS
8995 test -z "$as_dir" && as_dir=.
5213506e
RW
8996 for ac_exec_ext in '' $ac_executable_extensions; do
8997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8998 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 8999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9000 break 2
9001 fi
9002done
5213506e
RW
9003 done
9004IFS=$as_save_IFS
278a7a38
AO
9005
9006fi
9007fi
9008STRIP=$ac_cv_prog_STRIP
9009if test -n "$STRIP"; then
5213506e
RW
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9011$as_echo "$STRIP" >&6; }
278a7a38 9012else
5213506e
RW
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9014$as_echo "no" >&6; }
278a7a38
AO
9015fi
9016
5213506e 9017
278a7a38
AO
9018 done
9019fi
9020
9021for ncn_progname in strip; do
2abefe3d
PB
9022 if test -n "$ncn_tool_prefix"; then
9023 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9024set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9026$as_echo_n "checking for $ac_word... " >&6; }
9027if test "${ac_cv_prog_STRIP+set}" = set; then :
9028 $as_echo_n "(cached) " >&6
2abefe3d
PB
9029else
9030 if test -n "$STRIP"; then
9031 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9032else
1c710c3c
DJ
9033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9034for as_dir in $PATH
9035do
9036 IFS=$as_save_IFS
9037 test -z "$as_dir" && as_dir=.
5213506e
RW
9038 for ac_exec_ext in '' $ac_executable_extensions; do
9039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9040 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9042 break 2
9043 fi
9044done
5213506e
RW
9045 done
9046IFS=$as_save_IFS
1c710c3c 9047
2abefe3d
PB
9048fi
9049fi
1c710c3c 9050STRIP=$ac_cv_prog_STRIP
2abefe3d 9051if test -n "$STRIP"; then
5213506e
RW
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9053$as_echo "$STRIP" >&6; }
2abefe3d 9054else
5213506e
RW
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9056$as_echo "no" >&6; }
2abefe3d
PB
9057fi
9058
5213506e 9059
2abefe3d
PB
9060 fi
9061 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9062 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9063set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9065$as_echo_n "checking for $ac_word... " >&6; }
9066if test "${ac_cv_prog_STRIP+set}" = set; then :
9067 $as_echo_n "(cached) " >&6
2abefe3d
PB
9068else
9069 if test -n "$STRIP"; then
9070 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9071else
1c710c3c
DJ
9072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9073for as_dir in $PATH
9074do
9075 IFS=$as_save_IFS
9076 test -z "$as_dir" && as_dir=.
5213506e
RW
9077 for ac_exec_ext in '' $ac_executable_extensions; do
9078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9079 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9081 break 2
9082 fi
9083done
5213506e
RW
9084 done
9085IFS=$as_save_IFS
1c710c3c 9086
2abefe3d
PB
9087fi
9088fi
1c710c3c 9089STRIP=$ac_cv_prog_STRIP
2abefe3d 9090if test -n "$STRIP"; then
5213506e
RW
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9092$as_echo "$STRIP" >&6; }
2abefe3d 9093else
5213506e
RW
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9095$as_echo "no" >&6; }
2abefe3d 9096fi
1c710c3c 9097
5213506e 9098
2abefe3d
PB
9099 fi
9100 test -n "$ac_cv_prog_STRIP" && break
9101done
9102
9103if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 9104 STRIP="true"
2abefe3d
PB
9105fi
9106
278a7a38
AO
9107
9108
9109if test -n "$WINDRES"; then
9110 ac_cv_prog_WINDRES=$WINDRES
9111elif test -n "$ac_cv_prog_WINDRES"; then
9112 WINDRES=$ac_cv_prog_WINDRES
9113fi
9114
9115if test -n "$ac_cv_prog_WINDRES"; then
9116 for ncn_progname in windres; do
9117 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9118set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9120$as_echo_n "checking for $ac_word... " >&6; }
9121if test "${ac_cv_prog_WINDRES+set}" = set; then :
9122 $as_echo_n "(cached) " >&6
278a7a38
AO
9123else
9124 if test -n "$WINDRES"; then
9125 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9126else
9127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9128for as_dir in $PATH
9129do
9130 IFS=$as_save_IFS
9131 test -z "$as_dir" && as_dir=.
5213506e
RW
9132 for ac_exec_ext in '' $ac_executable_extensions; do
9133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9134 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9136 break 2
9137 fi
9138done
5213506e
RW
9139 done
9140IFS=$as_save_IFS
278a7a38
AO
9141
9142fi
9143fi
9144WINDRES=$ac_cv_prog_WINDRES
9145if test -n "$WINDRES"; then
5213506e
RW
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9147$as_echo "$WINDRES" >&6; }
278a7a38 9148else
5213506e
RW
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9150$as_echo "no" >&6; }
278a7a38
AO
9151fi
9152
5213506e 9153
278a7a38
AO
9154 done
9155fi
9156
9157for ncn_progname in windres; do
2693c0b0
PB
9158 if test -n "$ncn_tool_prefix"; then
9159 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9160set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9162$as_echo_n "checking for $ac_word... " >&6; }
9163if test "${ac_cv_prog_WINDRES+set}" = set; then :
9164 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9165else
9166 if test -n "$WINDRES"; then
9167 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9168else
1c710c3c
DJ
9169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9170for as_dir in $PATH
9171do
9172 IFS=$as_save_IFS
9173 test -z "$as_dir" && as_dir=.
5213506e
RW
9174 for ac_exec_ext in '' $ac_executable_extensions; do
9175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9176 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 9177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9178 break 2
9179 fi
9180done
5213506e
RW
9181 done
9182IFS=$as_save_IFS
1c710c3c 9183
ca9f4b81
AO
9184fi
9185fi
1c710c3c 9186WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 9187if test -n "$WINDRES"; then
5213506e
RW
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9189$as_echo "$WINDRES" >&6; }
ca9f4b81 9190else
5213506e
RW
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9192$as_echo "no" >&6; }
ca9f4b81
AO
9193fi
9194
5213506e 9195
2693c0b0
PB
9196 fi
9197 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9198 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9199set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9201$as_echo_n "checking for $ac_word... " >&6; }
9202if test "${ac_cv_prog_WINDRES+set}" = set; then :
9203 $as_echo_n "(cached) " >&6
ca9f4b81 9204else
2693c0b0
PB
9205 if test -n "$WINDRES"; then
9206 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 9207else
1c710c3c
DJ
9208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9209for as_dir in $PATH
9210do
9211 IFS=$as_save_IFS
9212 test -z "$as_dir" && as_dir=.
5213506e
RW
9213 for ac_exec_ext in '' $ac_executable_extensions; do
9214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9215 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9217 break 2
9218 fi
9219done
5213506e
RW
9220 done
9221IFS=$as_save_IFS
1c710c3c 9222
ca9f4b81
AO
9223fi
9224fi
1c710c3c 9225WINDRES=$ac_cv_prog_WINDRES
2693c0b0 9226if test -n "$WINDRES"; then
5213506e
RW
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9228$as_echo "$WINDRES" >&6; }
ca9f4b81 9229else
5213506e
RW
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9231$as_echo "no" >&6; }
ca9f4b81 9232fi
1c710c3c 9233
5213506e 9234
2693c0b0
PB
9235 fi
9236 test -n "$ac_cv_prog_WINDRES" && break
9237done
9238
9239if test -z "$ac_cv_prog_WINDRES" ; then
9240 set dummy windres
9241 if test $build = $host ; then
9242 WINDRES="$2"
ca9f4b81 9243 else
2693c0b0 9244 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9245 fi
ca9f4b81
AO
9246fi
9247
278a7a38
AO
9248
9249
901119ae
KT
9250if test -n "$WINDMC"; then
9251 ac_cv_prog_WINDMC=$WINDMC
9252elif test -n "$ac_cv_prog_WINDMC"; then
9253 WINDMC=$ac_cv_prog_WINDMC
9254fi
9255
9256if test -n "$ac_cv_prog_WINDMC"; then
9257 for ncn_progname in windmc; do
9258 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9259set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9261$as_echo_n "checking for $ac_word... " >&6; }
9262if test "${ac_cv_prog_WINDMC+set}" = set; then :
9263 $as_echo_n "(cached) " >&6
901119ae
KT
9264else
9265 if test -n "$WINDMC"; then
9266 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9267else
9268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9269for as_dir in $PATH
9270do
9271 IFS=$as_save_IFS
9272 test -z "$as_dir" && as_dir=.
5213506e
RW
9273 for ac_exec_ext in '' $ac_executable_extensions; do
9274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9275 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9277 break 2
9278 fi
9279done
5213506e
RW
9280 done
9281IFS=$as_save_IFS
901119ae
KT
9282
9283fi
9284fi
9285WINDMC=$ac_cv_prog_WINDMC
9286if test -n "$WINDMC"; then
5213506e
RW
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9288$as_echo "$WINDMC" >&6; }
901119ae 9289else
5213506e
RW
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9291$as_echo "no" >&6; }
901119ae
KT
9292fi
9293
5213506e 9294
901119ae
KT
9295 done
9296fi
9297
9298for ncn_progname in windmc; do
9299 if test -n "$ncn_tool_prefix"; then
9300 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9301set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9303$as_echo_n "checking for $ac_word... " >&6; }
9304if test "${ac_cv_prog_WINDMC+set}" = set; then :
9305 $as_echo_n "(cached) " >&6
901119ae
KT
9306else
9307 if test -n "$WINDMC"; then
9308 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9309else
9310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9311for as_dir in $PATH
9312do
9313 IFS=$as_save_IFS
9314 test -z "$as_dir" && as_dir=.
5213506e
RW
9315 for ac_exec_ext in '' $ac_executable_extensions; do
9316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9317 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9319 break 2
9320 fi
9321done
5213506e
RW
9322 done
9323IFS=$as_save_IFS
901119ae
KT
9324
9325fi
9326fi
9327WINDMC=$ac_cv_prog_WINDMC
9328if test -n "$WINDMC"; then
5213506e
RW
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9330$as_echo "$WINDMC" >&6; }
901119ae 9331else
5213506e
RW
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9333$as_echo "no" >&6; }
901119ae
KT
9334fi
9335
5213506e 9336
901119ae
KT
9337 fi
9338 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9339 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9340set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9342$as_echo_n "checking for $ac_word... " >&6; }
9343if test "${ac_cv_prog_WINDMC+set}" = set; then :
9344 $as_echo_n "(cached) " >&6
901119ae
KT
9345else
9346 if test -n "$WINDMC"; then
9347 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9348else
9349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9350for as_dir in $PATH
9351do
9352 IFS=$as_save_IFS
9353 test -z "$as_dir" && as_dir=.
5213506e
RW
9354 for ac_exec_ext in '' $ac_executable_extensions; do
9355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9356 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9358 break 2
9359 fi
9360done
5213506e
RW
9361 done
9362IFS=$as_save_IFS
901119ae
KT
9363
9364fi
9365fi
9366WINDMC=$ac_cv_prog_WINDMC
9367if test -n "$WINDMC"; then
5213506e
RW
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9369$as_echo "$WINDMC" >&6; }
901119ae 9370else
5213506e
RW
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9372$as_echo "no" >&6; }
901119ae
KT
9373fi
9374
5213506e 9375
901119ae
KT
9376 fi
9377 test -n "$ac_cv_prog_WINDMC" && break
9378done
9379
9380if test -z "$ac_cv_prog_WINDMC" ; then
9381 set dummy windmc
9382 if test $build = $host ; then
9383 WINDMC="$2"
9384 else
9385 WINDMC="${ncn_tool_prefix}$2"
9386 fi
9387fi
9388
9389
9390
278a7a38
AO
9391if test -n "$OBJCOPY"; then
9392 ac_cv_prog_OBJCOPY=$OBJCOPY
9393elif test -n "$ac_cv_prog_OBJCOPY"; then
9394 OBJCOPY=$ac_cv_prog_OBJCOPY
9395fi
9396
9397if test -n "$ac_cv_prog_OBJCOPY"; then
9398 for ncn_progname in objcopy; do
9399 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9400set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9402$as_echo_n "checking for $ac_word... " >&6; }
9403if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9404 $as_echo_n "(cached) " >&6
278a7a38
AO
9405else
9406 if test -n "$OBJCOPY"; then
9407 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9408else
9409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9410for as_dir in $PATH
9411do
9412 IFS=$as_save_IFS
9413 test -z "$as_dir" && as_dir=.
5213506e
RW
9414 for ac_exec_ext in '' $ac_executable_extensions; do
9415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9416 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9418 break 2
9419 fi
9420done
5213506e
RW
9421 done
9422IFS=$as_save_IFS
278a7a38
AO
9423
9424fi
9425fi
9426OBJCOPY=$ac_cv_prog_OBJCOPY
9427if test -n "$OBJCOPY"; then
5213506e
RW
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9429$as_echo "$OBJCOPY" >&6; }
278a7a38 9430else
5213506e
RW
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9432$as_echo "no" >&6; }
278a7a38
AO
9433fi
9434
5213506e 9435
278a7a38
AO
9436 done
9437fi
9438
9439for ncn_progname in objcopy; do
2693c0b0
PB
9440 if test -n "$ncn_tool_prefix"; then
9441 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9442set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9444$as_echo_n "checking for $ac_word... " >&6; }
9445if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9446 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9447else
9448 if test -n "$OBJCOPY"; then
9449 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9450else
1c710c3c
DJ
9451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9452for as_dir in $PATH
9453do
9454 IFS=$as_save_IFS
9455 test -z "$as_dir" && as_dir=.
5213506e
RW
9456 for ac_exec_ext in '' $ac_executable_extensions; do
9457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9458 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9460 break 2
9461 fi
9462done
5213506e
RW
9463 done
9464IFS=$as_save_IFS
1c710c3c 9465
ca9f4b81
AO
9466fi
9467fi
1c710c3c 9468OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 9469if test -n "$OBJCOPY"; then
5213506e
RW
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9471$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9472else
5213506e
RW
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9474$as_echo "no" >&6; }
ca9f4b81
AO
9475fi
9476
5213506e 9477
2693c0b0
PB
9478 fi
9479 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9480 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9481set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9483$as_echo_n "checking for $ac_word... " >&6; }
9484if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9485 $as_echo_n "(cached) " >&6
ca9f4b81 9486else
2693c0b0
PB
9487 if test -n "$OBJCOPY"; then
9488 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 9489else
1c710c3c
DJ
9490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9491for as_dir in $PATH
9492do
9493 IFS=$as_save_IFS
9494 test -z "$as_dir" && as_dir=.
5213506e
RW
9495 for ac_exec_ext in '' $ac_executable_extensions; do
9496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9497 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9499 break 2
9500 fi
9501done
5213506e
RW
9502 done
9503IFS=$as_save_IFS
1c710c3c 9504
ca9f4b81
AO
9505fi
9506fi
1c710c3c 9507OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 9508if test -n "$OBJCOPY"; then
5213506e
RW
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9510$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9511else
5213506e
RW
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9513$as_echo "no" >&6; }
ca9f4b81 9514fi
1c710c3c 9515
5213506e 9516
2693c0b0
PB
9517 fi
9518 test -n "$ac_cv_prog_OBJCOPY" && break
9519done
9520
9521if test -z "$ac_cv_prog_OBJCOPY" ; then
9522 set dummy objcopy
9523 if test $build = $host ; then
9524 OBJCOPY="$2"
ca9f4b81 9525 else
2693c0b0 9526 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 9527 fi
ca9f4b81
AO
9528fi
9529
278a7a38
AO
9530
9531
9532if test -n "$OBJDUMP"; then
9533 ac_cv_prog_OBJDUMP=$OBJDUMP
9534elif test -n "$ac_cv_prog_OBJDUMP"; then
9535 OBJDUMP=$ac_cv_prog_OBJDUMP
9536fi
9537
9538if test -n "$ac_cv_prog_OBJDUMP"; then
9539 for ncn_progname in objdump; do
9540 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9541set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9543$as_echo_n "checking for $ac_word... " >&6; }
9544if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9545 $as_echo_n "(cached) " >&6
278a7a38
AO
9546else
9547 if test -n "$OBJDUMP"; then
9548 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9549else
9550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9551for as_dir in $PATH
9552do
9553 IFS=$as_save_IFS
9554 test -z "$as_dir" && as_dir=.
5213506e
RW
9555 for ac_exec_ext in '' $ac_executable_extensions; do
9556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9557 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9559 break 2
9560 fi
9561done
5213506e
RW
9562 done
9563IFS=$as_save_IFS
278a7a38
AO
9564
9565fi
9566fi
9567OBJDUMP=$ac_cv_prog_OBJDUMP
9568if test -n "$OBJDUMP"; then
5213506e
RW
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9570$as_echo "$OBJDUMP" >&6; }
278a7a38 9571else
5213506e
RW
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9573$as_echo "no" >&6; }
278a7a38
AO
9574fi
9575
5213506e 9576
278a7a38
AO
9577 done
9578fi
9579
9580for ncn_progname in objdump; do
2693c0b0
PB
9581 if test -n "$ncn_tool_prefix"; then
9582 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9583set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9585$as_echo_n "checking for $ac_word... " >&6; }
9586if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9587 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9588else
9589 if test -n "$OBJDUMP"; then
9590 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9591else
1c710c3c
DJ
9592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9593for as_dir in $PATH
9594do
9595 IFS=$as_save_IFS
9596 test -z "$as_dir" && as_dir=.
5213506e
RW
9597 for ac_exec_ext in '' $ac_executable_extensions; do
9598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9599 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9601 break 2
9602 fi
9603done
5213506e
RW
9604 done
9605IFS=$as_save_IFS
1c710c3c 9606
ca9f4b81
AO
9607fi
9608fi
1c710c3c 9609OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 9610if test -n "$OBJDUMP"; then
5213506e
RW
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9612$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9613else
5213506e
RW
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9615$as_echo "no" >&6; }
ca9f4b81
AO
9616fi
9617
5213506e 9618
2693c0b0
PB
9619 fi
9620 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9621 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9622set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9624$as_echo_n "checking for $ac_word... " >&6; }
9625if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9626 $as_echo_n "(cached) " >&6
ca9f4b81 9627else
2693c0b0
PB
9628 if test -n "$OBJDUMP"; then
9629 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 9630else
1c710c3c
DJ
9631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9632for as_dir in $PATH
9633do
9634 IFS=$as_save_IFS
9635 test -z "$as_dir" && as_dir=.
5213506e
RW
9636 for ac_exec_ext in '' $ac_executable_extensions; do
9637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9638 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9640 break 2
9641 fi
9642done
5213506e
RW
9643 done
9644IFS=$as_save_IFS
1c710c3c 9645
ca9f4b81
AO
9646fi
9647fi
1c710c3c 9648OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 9649if test -n "$OBJDUMP"; then
5213506e
RW
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9651$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9652else
5213506e
RW
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9654$as_echo "no" >&6; }
ca9f4b81 9655fi
1c710c3c 9656
5213506e 9657
2693c0b0
PB
9658 fi
9659 test -n "$ac_cv_prog_OBJDUMP" && break
9660done
9661
9662if test -z "$ac_cv_prog_OBJDUMP" ; then
9663 set dummy objdump
9664 if test $build = $host ; then
9665 OBJDUMP="$2"
ca9f4b81 9666 else
2693c0b0 9667 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 9668 fi
ca9f4b81
AO
9669fi
9670
671aa708
NN
9671
9672
e7a82751
RM
9673if test -n "$READELF"; then
9674 ac_cv_prog_READELF=$READELF
9675elif test -n "$ac_cv_prog_READELF"; then
9676 READELF=$ac_cv_prog_READELF
9677fi
9678
9679if test -n "$ac_cv_prog_READELF"; then
9680 for ncn_progname in readelf; do
9681 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9682set dummy ${ncn_progname}; ac_word=$2
9683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9684$as_echo_n "checking for $ac_word... " >&6; }
9685if test "${ac_cv_prog_READELF+set}" = set; then :
9686 $as_echo_n "(cached) " >&6
9687else
9688 if test -n "$READELF"; then
9689 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9690else
9691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9692for as_dir in $PATH
9693do
9694 IFS=$as_save_IFS
9695 test -z "$as_dir" && as_dir=.
9696 for ac_exec_ext in '' $ac_executable_extensions; do
9697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9698 ac_cv_prog_READELF="${ncn_progname}"
9699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9700 break 2
9701 fi
9702done
9703 done
9704IFS=$as_save_IFS
9705
9706fi
9707fi
9708READELF=$ac_cv_prog_READELF
9709if test -n "$READELF"; then
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9711$as_echo "$READELF" >&6; }
9712else
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9714$as_echo "no" >&6; }
9715fi
9716
9717
9718 done
9719fi
9720
9721for ncn_progname in readelf; do
9722 if test -n "$ncn_tool_prefix"; then
9723 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9724set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9726$as_echo_n "checking for $ac_word... " >&6; }
9727if test "${ac_cv_prog_READELF+set}" = set; then :
9728 $as_echo_n "(cached) " >&6
9729else
9730 if test -n "$READELF"; then
9731 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9732else
9733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9734for as_dir in $PATH
9735do
9736 IFS=$as_save_IFS
9737 test -z "$as_dir" && as_dir=.
9738 for ac_exec_ext in '' $ac_executable_extensions; do
9739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9740 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9742 break 2
9743 fi
9744done
9745 done
9746IFS=$as_save_IFS
9747
9748fi
9749fi
9750READELF=$ac_cv_prog_READELF
9751if test -n "$READELF"; then
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9753$as_echo "$READELF" >&6; }
9754else
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9756$as_echo "no" >&6; }
9757fi
9758
9759
9760 fi
9761 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9762 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9763set dummy ${ncn_progname}; ac_word=$2
9764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9765$as_echo_n "checking for $ac_word... " >&6; }
9766if test "${ac_cv_prog_READELF+set}" = set; then :
9767 $as_echo_n "(cached) " >&6
9768else
9769 if test -n "$READELF"; then
9770 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9771else
9772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9773for as_dir in $PATH
9774do
9775 IFS=$as_save_IFS
9776 test -z "$as_dir" && as_dir=.
9777 for ac_exec_ext in '' $ac_executable_extensions; do
9778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9779 ac_cv_prog_READELF="${ncn_progname}"
9780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9781 break 2
9782 fi
9783done
9784 done
9785IFS=$as_save_IFS
9786
9787fi
9788fi
9789READELF=$ac_cv_prog_READELF
9790if test -n "$READELF"; then
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9792$as_echo "$READELF" >&6; }
9793else
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9795$as_echo "no" >&6; }
9796fi
9797
9798
9799 fi
9800 test -n "$ac_cv_prog_READELF" && break
9801done
9802
9803if test -z "$ac_cv_prog_READELF" ; then
9804 set dummy readelf
9805 if test $build = $host ; then
9806 READELF="$2"
9807 else
9808 READELF="${ncn_tool_prefix}$2"
9809 fi
9810fi
9811
9812
9813
671aa708
NN
9814
9815
9816
2abefe3d 9817# Target tools.
1c710c3c 9818
5213506e
RW
9819# Check whether --with-build-time-tools was given.
9820if test "${with_build_time_tools+set}" = set; then :
9821 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
9822 x/*) ;;
9823 *)
9824 with_build_time_tools=
5213506e
RW
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9826$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
9827 ;;
9828 esac
ca9f4b81 9829else
e8b05380 9830 with_build_time_tools=
5213506e
RW
9831fi
9832
ca9f4b81 9833
278a7a38
AO
9834
9835
9836if test -n "$CC_FOR_TARGET"; then
9837 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9838elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9839 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9840fi
9841
9842if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9843 for ncn_progname in cc gcc; do
9844 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9845set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9847$as_echo_n "checking for $ac_word... " >&6; }
9848if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9849 $as_echo_n "(cached) " >&6
278a7a38
AO
9850else
9851 if test -n "$CC_FOR_TARGET"; then
9852 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9853else
9854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9855for as_dir in $PATH
9856do
9857 IFS=$as_save_IFS
9858 test -z "$as_dir" && as_dir=.
5213506e
RW
9859 for ac_exec_ext in '' $ac_executable_extensions; do
9860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9861 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9863 break 2
9864 fi
9865done
5213506e
RW
9866 done
9867IFS=$as_save_IFS
278a7a38
AO
9868
9869fi
9870fi
9871CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9872if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9874$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 9875else
5213506e
RW
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9877$as_echo "no" >&6; }
278a7a38
AO
9878fi
9879
5213506e 9880
278a7a38
AO
9881 done
9882fi
9883
9884if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9885 for ncn_progname in cc gcc; do
5213506e
RW
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9887$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9888 if test -x $with_build_time_tools/${ncn_progname}; then
9889 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9891$as_echo "yes" >&6; }
72a7ab82 9892 break
e8b05380 9893 else
5213506e
RW
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9895$as_echo "no" >&6; }
72a7ab82
AP
9896 fi
9897 done
4de997d1
PB
9898fi
9899
e8b05380
PB
9900if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9901 for ncn_progname in cc gcc; do
9902 if test -n "$ncn_target_tool_prefix"; then
9903 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9904set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9906$as_echo_n "checking for $ac_word... " >&6; }
9907if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9908 $as_echo_n "(cached) " >&6
4de997d1
PB
9909else
9910 if test -n "$CC_FOR_TARGET"; then
9911 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9912else
1c710c3c
DJ
9913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9914for as_dir in $PATH
9915do
9916 IFS=$as_save_IFS
9917 test -z "$as_dir" && as_dir=.
5213506e
RW
9918 for ac_exec_ext in '' $ac_executable_extensions; do
9919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9920 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9922 break 2
9923 fi
9924done
5213506e
RW
9925 done
9926IFS=$as_save_IFS
1c710c3c 9927
4de997d1
PB
9928fi
9929fi
1c710c3c 9930CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 9931if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9933$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9934else
5213506e
RW
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9936$as_echo "no" >&6; }
4de997d1
PB
9937fi
9938
5213506e 9939
e8b05380
PB
9940 fi
9941 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9942 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9943set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9945$as_echo_n "checking for $ac_word... " >&6; }
9946if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9947 $as_echo_n "(cached) " >&6
4de997d1 9948else
2693c0b0
PB
9949 if test -n "$CC_FOR_TARGET"; then
9950 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 9951else
1c710c3c
DJ
9952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9953for as_dir in $PATH
9954do
9955 IFS=$as_save_IFS
9956 test -z "$as_dir" && as_dir=.
5213506e
RW
9957 for ac_exec_ext in '' $ac_executable_extensions; do
9958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9959 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9961 break 2
9962 fi
9963done
5213506e
RW
9964 done
9965IFS=$as_save_IFS
1c710c3c 9966
4de997d1
PB
9967fi
9968fi
1c710c3c 9969CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 9970if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9972$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9973else
5213506e
RW
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9975$as_echo "no" >&6; }
4de997d1 9976fi
1c710c3c 9977
5213506e 9978
e8b05380
PB
9979 fi
9980 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9981 done
9982fi
1c710c3c 9983
2693c0b0
PB
9984if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9985 set dummy cc gcc
9986 if test $build = $target ; then
9987 CC_FOR_TARGET="$2"
4de997d1 9988 else
2693c0b0 9989 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9990 fi
1c00b503
PB
9991else
9992 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
9993fi
9994
278a7a38
AO
9995
9996
9997if test -n "$CXX_FOR_TARGET"; then
9998 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9999elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10000 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10001fi
10002
10003if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10004 for ncn_progname in c++ g++ cxx gxx; do
10005 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10006set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10008$as_echo_n "checking for $ac_word... " >&6; }
10009if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10010 $as_echo_n "(cached) " >&6
278a7a38
AO
10011else
10012 if test -n "$CXX_FOR_TARGET"; then
10013 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10014else
10015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10016for as_dir in $PATH
10017do
10018 IFS=$as_save_IFS
10019 test -z "$as_dir" && as_dir=.
5213506e
RW
10020 for ac_exec_ext in '' $ac_executable_extensions; do
10021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10022 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10024 break 2
10025 fi
10026done
5213506e
RW
10027 done
10028IFS=$as_save_IFS
278a7a38
AO
10029
10030fi
10031fi
10032CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10033if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10035$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 10036else
5213506e
RW
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10038$as_echo "no" >&6; }
278a7a38
AO
10039fi
10040
5213506e 10041
278a7a38
AO
10042 done
10043fi
10044
10045if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10046 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10048$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10049 if test -x $with_build_time_tools/${ncn_progname}; then
10050 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10052$as_echo "yes" >&6; }
e8b05380
PB
10053 break
10054 else
5213506e
RW
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10056$as_echo "no" >&6; }
e8b05380
PB
10057 fi
10058 done
10059fi
10060
10061if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10062 for ncn_progname in c++ g++ cxx gxx; do
10063 if test -n "$ncn_target_tool_prefix"; then
10064 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10065set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10067$as_echo_n "checking for $ac_word... " >&6; }
10068if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10069 $as_echo_n "(cached) " >&6
4de997d1
PB
10070else
10071 if test -n "$CXX_FOR_TARGET"; then
10072 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10073else
1c710c3c
DJ
10074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10075for as_dir in $PATH
10076do
10077 IFS=$as_save_IFS
10078 test -z "$as_dir" && as_dir=.
5213506e
RW
10079 for ac_exec_ext in '' $ac_executable_extensions; do
10080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10081 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10083 break 2
10084 fi
10085done
5213506e
RW
10086 done
10087IFS=$as_save_IFS
1c710c3c 10088
4de997d1
PB
10089fi
10090fi
1c710c3c 10091CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 10092if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10094$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10095else
5213506e
RW
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10097$as_echo "no" >&6; }
4de997d1
PB
10098fi
10099
5213506e 10100
e8b05380
PB
10101 fi
10102 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10103 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10104set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10106$as_echo_n "checking for $ac_word... " >&6; }
10107if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10108 $as_echo_n "(cached) " >&6
4de997d1 10109else
2693c0b0
PB
10110 if test -n "$CXX_FOR_TARGET"; then
10111 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 10112else
1c710c3c
DJ
10113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10114for as_dir in $PATH
10115do
10116 IFS=$as_save_IFS
10117 test -z "$as_dir" && as_dir=.
5213506e
RW
10118 for ac_exec_ext in '' $ac_executable_extensions; do
10119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10120 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10122 break 2
10123 fi
10124done
5213506e
RW
10125 done
10126IFS=$as_save_IFS
1c710c3c 10127
4de997d1
PB
10128fi
10129fi
1c710c3c 10130CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 10131if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10133$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10134else
5213506e
RW
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10136$as_echo "no" >&6; }
4de997d1 10137fi
1c710c3c 10138
5213506e 10139
e8b05380
PB
10140 fi
10141 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10142 done
10143fi
1c710c3c 10144
2693c0b0
PB
10145if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10146 set dummy c++ g++ cxx gxx
10147 if test $build = $target ; then
10148 CXX_FOR_TARGET="$2"
4de997d1 10149 else
2693c0b0 10150 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10151 fi
1c00b503
PB
10152else
10153 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
10154fi
10155
278a7a38
AO
10156
10157
10158if test -n "$GCC_FOR_TARGET"; then
10159 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10160elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10161 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10162fi
10163
10164if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10165 for ncn_progname in gcc; do
10166 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10167set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10169$as_echo_n "checking for $ac_word... " >&6; }
10170if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10171 $as_echo_n "(cached) " >&6
278a7a38
AO
10172else
10173 if test -n "$GCC_FOR_TARGET"; then
10174 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10175else
10176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10177for as_dir in $PATH
10178do
10179 IFS=$as_save_IFS
10180 test -z "$as_dir" && as_dir=.
5213506e
RW
10181 for ac_exec_ext in '' $ac_executable_extensions; do
10182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10183 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10185 break 2
10186 fi
10187done
5213506e
RW
10188 done
10189IFS=$as_save_IFS
278a7a38
AO
10190
10191fi
10192fi
10193GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10194if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10196$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 10197else
5213506e
RW
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10199$as_echo "no" >&6; }
278a7a38
AO
10200fi
10201
5213506e 10202
278a7a38
AO
10203 done
10204fi
10205
10206if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10207 for ncn_progname in gcc; do
5213506e
RW
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10209$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10210 if test -x $with_build_time_tools/${ncn_progname}; then
10211 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10213$as_echo "yes" >&6; }
e8b05380
PB
10214 break
10215 else
5213506e
RW
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10217$as_echo "no" >&6; }
e8b05380
PB
10218 fi
10219 done
10220fi
10221
10222if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10223 for ncn_progname in gcc; do
10224 if test -n "$ncn_target_tool_prefix"; then
10225 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10226set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10228$as_echo_n "checking for $ac_word... " >&6; }
10229if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10230 $as_echo_n "(cached) " >&6
ca9f4b81 10231else
e8b05380
PB
10232 if test -n "$GCC_FOR_TARGET"; then
10233 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10234else
1c710c3c
DJ
10235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10236for as_dir in $PATH
10237do
10238 IFS=$as_save_IFS
10239 test -z "$as_dir" && as_dir=.
5213506e
RW
10240 for ac_exec_ext in '' $ac_executable_extensions; do
10241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10242 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10244 break 2
10245 fi
10246done
5213506e
RW
10247 done
10248IFS=$as_save_IFS
1c710c3c 10249
ca9f4b81
AO
10250fi
10251fi
1c710c3c 10252GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10253if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10255$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10256else
5213506e
RW
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10258$as_echo "no" >&6; }
ca9f4b81
AO
10259fi
10260
5213506e 10261
e8b05380
PB
10262 fi
10263 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10264 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10265set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10267$as_echo_n "checking for $ac_word... " >&6; }
10268if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10269 $as_echo_n "(cached) " >&6
ca9f4b81 10270else
e8b05380
PB
10271 if test -n "$GCC_FOR_TARGET"; then
10272 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10273else
1c710c3c
DJ
10274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10275for as_dir in $PATH
10276do
10277 IFS=$as_save_IFS
10278 test -z "$as_dir" && as_dir=.
5213506e
RW
10279 for ac_exec_ext in '' $ac_executable_extensions; do
10280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10281 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10283 break 2
10284 fi
10285done
5213506e
RW
10286 done
10287IFS=$as_save_IFS
1c710c3c 10288
ca9f4b81
AO
10289fi
10290fi
1c710c3c 10291GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10292if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10294$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10295else
5213506e
RW
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10297$as_echo "no" >&6; }
ca9f4b81 10298fi
1c710c3c 10299
5213506e 10300
e8b05380
PB
10301 fi
10302 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10303 done
10304fi
1c710c3c 10305
e8b05380
PB
10306if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10307 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10308else
10309 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10310fi
10311
278a7a38
AO
10312
10313
278a7a38
AO
10314if test -n "$GFORTRAN_FOR_TARGET"; then
10315 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10316elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10317 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10318fi
10319
278a7a38
AO
10320if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10321 for ncn_progname in gfortran; do
10322 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10323set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10325$as_echo_n "checking for $ac_word... " >&6; }
10326if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10327 $as_echo_n "(cached) " >&6
e8b05380 10328else
278a7a38
AO
10329 if test -n "$GFORTRAN_FOR_TARGET"; then
10330 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10331else
1c710c3c
DJ
10332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10333for as_dir in $PATH
10334do
10335 IFS=$as_save_IFS
10336 test -z "$as_dir" && as_dir=.
5213506e
RW
10337 for ac_exec_ext in '' $ac_executable_extensions; do
10338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10339 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10341 break 2
10342 fi
10343done
5213506e
RW
10344 done
10345IFS=$as_save_IFS
1c710c3c 10346
e8b05380
PB
10347fi
10348fi
278a7a38
AO
10349GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10350if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10352$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10353else
5213506e
RW
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10355$as_echo "no" >&6; }
e8b05380 10356fi
1c710c3c 10357
5213506e 10358
e8b05380
PB
10359 done
10360fi
1c710c3c 10361
278a7a38 10362if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10363 for ncn_progname in gfortran; do
5213506e
RW
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10365$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10366 if test -x $with_build_time_tools/${ncn_progname}; then
10367 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10369$as_echo "yes" >&6; }
e8b05380
PB
10370 break
10371 else
5213506e
RW
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10373$as_echo "no" >&6; }
e8b05380
PB
10374 fi
10375 done
10376fi
10377
10378if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10379 for ncn_progname in gfortran; do
10380 if test -n "$ncn_target_tool_prefix"; then
10381 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10382set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10384$as_echo_n "checking for $ac_word... " >&6; }
10385if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10386 $as_echo_n "(cached) " >&6
e8b05380
PB
10387else
10388 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10389 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10390else
10391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10392for as_dir in $PATH
10393do
10394 IFS=$as_save_IFS
10395 test -z "$as_dir" && as_dir=.
5213506e
RW
10396 for ac_exec_ext in '' $ac_executable_extensions; do
10397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10398 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10400 break 2
10401 fi
10402done
5213506e
RW
10403 done
10404IFS=$as_save_IFS
1c710c3c 10405
e8b05380
PB
10406fi
10407fi
1c710c3c 10408GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10409if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10411$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10412else
5213506e
RW
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10414$as_echo "no" >&6; }
e8b05380
PB
10415fi
10416
5213506e 10417
e8b05380
PB
10418 fi
10419 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10420 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10421set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10423$as_echo_n "checking for $ac_word... " >&6; }
10424if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10425 $as_echo_n "(cached) " >&6
e8b05380
PB
10426else
10427 if test -n "$GFORTRAN_FOR_TARGET"; then
10428 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10429else
1c710c3c
DJ
10430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10431for as_dir in $PATH
10432do
10433 IFS=$as_save_IFS
10434 test -z "$as_dir" && as_dir=.
5213506e
RW
10435 for ac_exec_ext in '' $ac_executable_extensions; do
10436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10437 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10439 break 2
10440 fi
10441done
5213506e
RW
10442 done
10443IFS=$as_save_IFS
1c710c3c 10444
e8b05380
PB
10445fi
10446fi
1c710c3c 10447GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10448if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10450$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10451else
5213506e
RW
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10453$as_echo "no" >&6; }
e8b05380 10454fi
1c710c3c 10455
5213506e 10456
e8b05380
PB
10457 fi
10458 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10459 done
10460fi
1c710c3c 10461
e8b05380
PB
10462if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10463 set dummy gfortran
2693c0b0 10464 if test $build = $target ; then
e8b05380 10465 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 10466 else
e8b05380
PB
10467 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10468 fi
1c00b503
PB
10469else
10470 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
10471fi
10472
10473
10474
632e2a07
ILT
10475if test -n "$GOC_FOR_TARGET"; then
10476 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10477elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10478 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10479fi
10480
10481if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10482 for ncn_progname in gccgo; do
10483 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10484set dummy ${ncn_progname}; ac_word=$2
10485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10486$as_echo_n "checking for $ac_word... " >&6; }
10487if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10488 $as_echo_n "(cached) " >&6
10489else
10490 if test -n "$GOC_FOR_TARGET"; then
10491 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10492else
10493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10494for as_dir in $PATH
10495do
10496 IFS=$as_save_IFS
10497 test -z "$as_dir" && as_dir=.
10498 for ac_exec_ext in '' $ac_executable_extensions; do
10499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10500 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10502 break 2
10503 fi
10504done
10505 done
10506IFS=$as_save_IFS
10507
10508fi
10509fi
10510GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10511if test -n "$GOC_FOR_TARGET"; then
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10513$as_echo "$GOC_FOR_TARGET" >&6; }
10514else
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10516$as_echo "no" >&6; }
10517fi
10518
10519
10520 done
10521fi
10522
10523if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10524 for ncn_progname in gccgo; do
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10526$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10527 if test -x $with_build_time_tools/${ncn_progname}; then
10528 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10530$as_echo "yes" >&6; }
10531 break
10532 else
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10534$as_echo "no" >&6; }
10535 fi
10536 done
10537fi
10538
10539if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10540 for ncn_progname in gccgo; do
10541 if test -n "$ncn_target_tool_prefix"; then
10542 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10543set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10545$as_echo_n "checking for $ac_word... " >&6; }
10546if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10547 $as_echo_n "(cached) " >&6
10548else
10549 if test -n "$GOC_FOR_TARGET"; then
10550 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10551else
10552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10553for as_dir in $PATH
10554do
10555 IFS=$as_save_IFS
10556 test -z "$as_dir" && as_dir=.
10557 for ac_exec_ext in '' $ac_executable_extensions; do
10558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10559 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10561 break 2
10562 fi
10563done
10564 done
10565IFS=$as_save_IFS
10566
10567fi
10568fi
10569GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10570if test -n "$GOC_FOR_TARGET"; then
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10572$as_echo "$GOC_FOR_TARGET" >&6; }
10573else
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10575$as_echo "no" >&6; }
10576fi
10577
10578
10579 fi
10580 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10581 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10582set dummy ${ncn_progname}; ac_word=$2
10583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10584$as_echo_n "checking for $ac_word... " >&6; }
10585if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10586 $as_echo_n "(cached) " >&6
10587else
10588 if test -n "$GOC_FOR_TARGET"; then
10589 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10590else
10591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10592for as_dir in $PATH
10593do
10594 IFS=$as_save_IFS
10595 test -z "$as_dir" && as_dir=.
10596 for ac_exec_ext in '' $ac_executable_extensions; do
10597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10598 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10600 break 2
10601 fi
10602done
10603 done
10604IFS=$as_save_IFS
10605
10606fi
10607fi
10608GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10609if test -n "$GOC_FOR_TARGET"; then
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10611$as_echo "$GOC_FOR_TARGET" >&6; }
10612else
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10614$as_echo "no" >&6; }
10615fi
10616
10617
10618 fi
10619 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10620 done
10621fi
10622
10623if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10624 set dummy gccgo
10625 if test $build = $target ; then
10626 GOC_FOR_TARGET="$2"
10627 else
10628 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10629 fi
10630else
10631 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10632fi
10633
10634
10635
e8b05380
PB
10636cat > conftest.c << \EOF
10637#ifdef __GNUC__
10638 gcc_yay;
10639#endif
10640EOF
10641if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10642 have_gcc_for_target=yes
10643else
10644 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10645 have_gcc_for_target=no
10646fi
10647rm conftest.c
10648
10649
10650
10651
10652if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10653 if test -n "$with_build_time_tools"; then
5213506e
RW
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10655$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10656 if test -x $with_build_time_tools/ar; then
10657 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10658 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10660$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 10661 else
5213506e
RW
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10663$as_echo "no" >&6; }
d1f8db0c 10664 fi
e8b05380
PB
10665 elif test $build != $host && test $have_gcc_for_target = yes; then
10666 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
10667 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10668 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
10669 fi
10670fi
3e19841a 10671if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10672 # Extract the first word of "ar", so it can be a program name with args.
10673set dummy ar; ac_word=$2
5213506e
RW
10674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10675$as_echo_n "checking for $ac_word... " >&6; }
10676if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10677 $as_echo_n "(cached) " >&6
e8b05380 10678else
1c710c3c
DJ
10679 case $AR_FOR_TARGET in
10680 [\\/]* | ?:[\\/]*)
e8b05380
PB
10681 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10682 ;;
e8b05380 10683 *)
1c710c3c
DJ
10684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10685for as_dir in $gcc_cv_tool_dirs
10686do
10687 IFS=$as_save_IFS
10688 test -z "$as_dir" && as_dir=.
5213506e
RW
10689 for ac_exec_ext in '' $ac_executable_extensions; do
10690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10691 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10693 break 2
10694 fi
10695done
5213506e
RW
10696 done
10697IFS=$as_save_IFS
1c710c3c 10698
e8b05380
PB
10699 ;;
10700esac
10701fi
1c710c3c 10702AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 10703if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10705$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10706else
5213506e
RW
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10708$as_echo "no" >&6; }
4de997d1
PB
10709fi
10710
5213506e 10711
e8b05380
PB
10712fi
10713if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
10714
10715
10716if test -n "$AR_FOR_TARGET"; then
10717 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10718elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10719 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10720fi
10721
10722if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10723 for ncn_progname in ar; do
10724 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10725set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10727$as_echo_n "checking for $ac_word... " >&6; }
10728if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10729 $as_echo_n "(cached) " >&6
278a7a38
AO
10730else
10731 if test -n "$AR_FOR_TARGET"; then
10732 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10733else
10734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10735for as_dir in $PATH
10736do
10737 IFS=$as_save_IFS
10738 test -z "$as_dir" && as_dir=.
5213506e
RW
10739 for ac_exec_ext in '' $ac_executable_extensions; do
10740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10741 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10743 break 2
10744 fi
10745done
5213506e
RW
10746 done
10747IFS=$as_save_IFS
278a7a38
AO
10748
10749fi
10750fi
10751AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10752if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10754$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 10755else
5213506e
RW
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10757$as_echo "no" >&6; }
278a7a38
AO
10758fi
10759
5213506e 10760
278a7a38
AO
10761 done
10762fi
10763
10764if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10765 for ncn_progname in ar; do
5213506e
RW
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10767$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10768 if test -x $with_build_time_tools/${ncn_progname}; then
10769 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10771$as_echo "yes" >&6; }
e8b05380
PB
10772 break
10773 else
5213506e
RW
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10775$as_echo "no" >&6; }
e8b05380
PB
10776 fi
10777 done
10778fi
10779
10780if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10781 for ncn_progname in ar; do
10782 if test -n "$ncn_target_tool_prefix"; then
10783 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10784set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10786$as_echo_n "checking for $ac_word... " >&6; }
10787if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10788 $as_echo_n "(cached) " >&6
4de997d1 10789else
e8b05380
PB
10790 if test -n "$AR_FOR_TARGET"; then
10791 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 10792else
1c710c3c
DJ
10793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10794for as_dir in $PATH
10795do
10796 IFS=$as_save_IFS
10797 test -z "$as_dir" && as_dir=.
5213506e
RW
10798 for ac_exec_ext in '' $ac_executable_extensions; do
10799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10800 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10802 break 2
10803 fi
10804done
5213506e
RW
10805 done
10806IFS=$as_save_IFS
1c710c3c 10807
4de997d1
PB
10808fi
10809fi
1c710c3c 10810AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10811if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10813$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 10814else
5213506e
RW
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10816$as_echo "no" >&6; }
4de997d1
PB
10817fi
10818
5213506e 10819
e8b05380
PB
10820 fi
10821 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10822 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10823set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10825$as_echo_n "checking for $ac_word... " >&6; }
10826if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10827 $as_echo_n "(cached) " >&6
e8b05380
PB
10828else
10829 if test -n "$AR_FOR_TARGET"; then
10830 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10831else
1c710c3c
DJ
10832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10833for as_dir in $PATH
10834do
10835 IFS=$as_save_IFS
10836 test -z "$as_dir" && as_dir=.
5213506e
RW
10837 for ac_exec_ext in '' $ac_executable_extensions; do
10838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10839 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10841 break 2
10842 fi
10843done
5213506e
RW
10844 done
10845IFS=$as_save_IFS
1c710c3c 10846
e8b05380
PB
10847fi
10848fi
1c710c3c 10849AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10850if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10852$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10853else
5213506e
RW
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10855$as_echo "no" >&6; }
e8b05380 10856fi
1c710c3c 10857
5213506e 10858
e8b05380
PB
10859 fi
10860 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10861 done
10862fi
1c710c3c 10863
e8b05380
PB
10864if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10865 set dummy ar
10866 if test $build = $target ; then
10867 AR_FOR_TARGET="$2"
10868 else
10869 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 10870 fi
1c00b503
PB
10871else
10872 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
10873fi
10874
d1f8db0c
PB
10875else
10876 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
10877fi
10878
10879
10880
10881
10882if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10883 if test -n "$with_build_time_tools"; then
5213506e
RW
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10885$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10886 if test -x $with_build_time_tools/as; then
10887 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10888 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10890$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 10891 else
5213506e
RW
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10893$as_echo "no" >&6; }
d1f8db0c 10894 fi
e8b05380
PB
10895 elif test $build != $host && test $have_gcc_for_target = yes; then
10896 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
10897 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10898 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
10899 fi
10900fi
3e19841a 10901if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10902 # Extract the first word of "as", so it can be a program name with args.
10903set dummy as; ac_word=$2
5213506e
RW
10904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10905$as_echo_n "checking for $ac_word... " >&6; }
10906if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10907 $as_echo_n "(cached) " >&6
e8b05380 10908else
1c710c3c
DJ
10909 case $AS_FOR_TARGET in
10910 [\\/]* | ?:[\\/]*)
e8b05380
PB
10911 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10912 ;;
e8b05380 10913 *)
1c710c3c
DJ
10914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10915for as_dir in $gcc_cv_tool_dirs
10916do
10917 IFS=$as_save_IFS
10918 test -z "$as_dir" && as_dir=.
5213506e
RW
10919 for ac_exec_ext in '' $ac_executable_extensions; do
10920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10921 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10923 break 2
10924 fi
10925done
5213506e
RW
10926 done
10927IFS=$as_save_IFS
1c710c3c 10928
e8b05380
PB
10929 ;;
10930esac
10931fi
1c710c3c 10932AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 10933if test -n "$AS_FOR_TARGET"; then
5213506e
RW
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10935$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 10936else
5213506e
RW
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10938$as_echo "no" >&6; }
e8b05380
PB
10939fi
10940
5213506e 10941
e8b05380
PB
10942fi
10943if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
10944
10945
10946if test -n "$AS_FOR_TARGET"; then
10947 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10948elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10949 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10950fi
10951
10952if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10953 for ncn_progname in as; do
10954 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10955set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10957$as_echo_n "checking for $ac_word... " >&6; }
10958if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10959 $as_echo_n "(cached) " >&6
278a7a38
AO
10960else
10961 if test -n "$AS_FOR_TARGET"; then
10962 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10963else
10964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10965for as_dir in $PATH
10966do
10967 IFS=$as_save_IFS
10968 test -z "$as_dir" && as_dir=.
5213506e
RW
10969 for ac_exec_ext in '' $ac_executable_extensions; do
10970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10971 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 10972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10973 break 2
10974 fi
10975done
5213506e
RW
10976 done
10977IFS=$as_save_IFS
278a7a38
AO
10978
10979fi
10980fi
10981AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10982if test -n "$AS_FOR_TARGET"; then
5213506e
RW
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10984$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 10985else
5213506e
RW
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10987$as_echo "no" >&6; }
278a7a38
AO
10988fi
10989
5213506e 10990
278a7a38
AO
10991 done
10992fi
10993
10994if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10995 for ncn_progname in as; do
5213506e
RW
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10997$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10998 if test -x $with_build_time_tools/${ncn_progname}; then
10999 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11001$as_echo "yes" >&6; }
e8b05380
PB
11002 break
11003 else
5213506e
RW
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11005$as_echo "no" >&6; }
e8b05380
PB
11006 fi
11007 done
11008fi
11009
11010if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11011 for ncn_progname in as; do
11012 if test -n "$ncn_target_tool_prefix"; then
11013 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11014set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11016$as_echo_n "checking for $ac_word... " >&6; }
11017if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11018 $as_echo_n "(cached) " >&6
e8b05380
PB
11019else
11020 if test -n "$AS_FOR_TARGET"; then
11021 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11022else
1c710c3c
DJ
11023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11024for as_dir in $PATH
11025do
11026 IFS=$as_save_IFS
11027 test -z "$as_dir" && as_dir=.
5213506e
RW
11028 for ac_exec_ext in '' $ac_executable_extensions; do
11029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11030 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11032 break 2
11033 fi
11034done
5213506e
RW
11035 done
11036IFS=$as_save_IFS
1c710c3c 11037
e8b05380
PB
11038fi
11039fi
1c710c3c 11040AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11041if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11043$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11044else
5213506e
RW
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11046$as_echo "no" >&6; }
e8b05380
PB
11047fi
11048
5213506e 11049
e8b05380
PB
11050 fi
11051 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11052 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11053set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11055$as_echo_n "checking for $ac_word... " >&6; }
11056if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11057 $as_echo_n "(cached) " >&6
4de997d1 11058else
e8b05380
PB
11059 if test -n "$AS_FOR_TARGET"; then
11060 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 11061else
1c710c3c
DJ
11062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11063for as_dir in $PATH
11064do
11065 IFS=$as_save_IFS
11066 test -z "$as_dir" && as_dir=.
5213506e
RW
11067 for ac_exec_ext in '' $ac_executable_extensions; do
11068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11069 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11071 break 2
11072 fi
11073done
5213506e
RW
11074 done
11075IFS=$as_save_IFS
1c710c3c 11076
4de997d1
PB
11077fi
11078fi
1c710c3c 11079AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11080if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11082$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 11083else
5213506e
RW
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11085$as_echo "no" >&6; }
4de997d1 11086fi
1c710c3c 11087
5213506e 11088
e8b05380
PB
11089 fi
11090 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11091 done
11092fi
1c710c3c 11093
e8b05380
PB
11094if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11095 set dummy as
11096 if test $build = $target ; then
11097 AS_FOR_TARGET="$2"
11098 else
11099 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 11100 fi
1c00b503
PB
11101else
11102 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 11103fi
2693c0b0 11104
d1f8db0c
PB
11105else
11106 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
11107fi
11108
e8b05380
PB
11109
11110
11111
11112if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11113 if test -n "$with_build_time_tools"; then
5213506e
RW
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11115$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11116 if test -x $with_build_time_tools/dlltool; then
11117 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11118 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11120$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 11121 else
5213506e
RW
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11123$as_echo "no" >&6; }
d1f8db0c 11124 fi
e8b05380
PB
11125 elif test $build != $host && test $have_gcc_for_target = yes; then
11126 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
11127 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11128 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
11129 fi
11130fi
3e19841a 11131if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11132 # Extract the first word of "dlltool", so it can be a program name with args.
11133set dummy dlltool; ac_word=$2
5213506e
RW
11134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11135$as_echo_n "checking for $ac_word... " >&6; }
11136if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11137 $as_echo_n "(cached) " >&6
4de997d1 11138else
1c710c3c
DJ
11139 case $DLLTOOL_FOR_TARGET in
11140 [\\/]* | ?:[\\/]*)
e8b05380
PB
11141 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11142 ;;
e8b05380 11143 *)
1c710c3c
DJ
11144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11145for as_dir in $gcc_cv_tool_dirs
11146do
11147 IFS=$as_save_IFS
11148 test -z "$as_dir" && as_dir=.
5213506e
RW
11149 for ac_exec_ext in '' $ac_executable_extensions; do
11150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11151 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11153 break 2
11154 fi
11155done
5213506e
RW
11156 done
11157IFS=$as_save_IFS
1c710c3c 11158
e8b05380
PB
11159 ;;
11160esac
4de997d1 11161fi
1c710c3c 11162DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 11163if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11165$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11166else
5213506e
RW
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11168$as_echo "no" >&6; }
4de997d1
PB
11169fi
11170
5213506e 11171
e8b05380
PB
11172fi
11173if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
11174
11175
11176if test -n "$DLLTOOL_FOR_TARGET"; then
11177 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11178elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11179 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11180fi
11181
11182if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11183 for ncn_progname in dlltool; do
11184 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11185set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11187$as_echo_n "checking for $ac_word... " >&6; }
11188if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11189 $as_echo_n "(cached) " >&6
278a7a38
AO
11190else
11191 if test -n "$DLLTOOL_FOR_TARGET"; then
11192 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11193else
11194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11195for as_dir in $PATH
11196do
11197 IFS=$as_save_IFS
11198 test -z "$as_dir" && as_dir=.
5213506e
RW
11199 for ac_exec_ext in '' $ac_executable_extensions; do
11200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11201 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11203 break 2
11204 fi
11205done
5213506e
RW
11206 done
11207IFS=$as_save_IFS
278a7a38
AO
11208
11209fi
11210fi
11211DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11212if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11214$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11215else
5213506e
RW
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11217$as_echo "no" >&6; }
278a7a38
AO
11218fi
11219
5213506e 11220
278a7a38
AO
11221 done
11222fi
11223
11224if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11225 for ncn_progname in dlltool; do
5213506e
RW
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11227$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11228 if test -x $with_build_time_tools/${ncn_progname}; then
11229 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11231$as_echo "yes" >&6; }
e8b05380
PB
11232 break
11233 else
5213506e
RW
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11235$as_echo "no" >&6; }
e8b05380
PB
11236 fi
11237 done
11238fi
11239
11240if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11241 for ncn_progname in dlltool; do
11242 if test -n "$ncn_target_tool_prefix"; then
11243 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11244set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11246$as_echo_n "checking for $ac_word... " >&6; }
11247if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11248 $as_echo_n "(cached) " >&6
4de997d1 11249else
e8b05380
PB
11250 if test -n "$DLLTOOL_FOR_TARGET"; then
11251 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11252else
1c710c3c
DJ
11253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11254for as_dir in $PATH
11255do
11256 IFS=$as_save_IFS
11257 test -z "$as_dir" && as_dir=.
5213506e
RW
11258 for ac_exec_ext in '' $ac_executable_extensions; do
11259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11260 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11262 break 2
11263 fi
11264done
5213506e
RW
11265 done
11266IFS=$as_save_IFS
1c710c3c 11267
4de997d1
PB
11268fi
11269fi
1c710c3c 11270DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11271if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11273$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11274else
5213506e
RW
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11276$as_echo "no" >&6; }
4de997d1 11277fi
4de997d1 11278
5213506e 11279
e8b05380
PB
11280 fi
11281 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11282 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11283set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11285$as_echo_n "checking for $ac_word... " >&6; }
11286if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11287 $as_echo_n "(cached) " >&6
4de997d1 11288else
e8b05380
PB
11289 if test -n "$DLLTOOL_FOR_TARGET"; then
11290 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11291else
1c710c3c
DJ
11292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11293for as_dir in $PATH
11294do
11295 IFS=$as_save_IFS
11296 test -z "$as_dir" && as_dir=.
5213506e
RW
11297 for ac_exec_ext in '' $ac_executable_extensions; do
11298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11299 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11301 break 2
11302 fi
11303done
5213506e
RW
11304 done
11305IFS=$as_save_IFS
1c710c3c 11306
4de997d1
PB
11307fi
11308fi
1c710c3c 11309DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11310if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11312$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11313else
5213506e
RW
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11315$as_echo "no" >&6; }
4de997d1 11316fi
1c710c3c 11317
5213506e 11318
e8b05380
PB
11319 fi
11320 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11321 done
11322fi
1c710c3c 11323
e8b05380
PB
11324if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11325 set dummy dlltool
11326 if test $build = $target ; then
11327 DLLTOOL_FOR_TARGET="$2"
11328 else
11329 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11330 fi
1c00b503
PB
11331else
11332 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
11333fi
11334
d1f8db0c
PB
11335else
11336 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
11337fi
11338
4de997d1 11339
e8b05380
PB
11340
11341
11342if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11343 if test -n "$with_build_time_tools"; then
5213506e
RW
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11345$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11346 if test -x $with_build_time_tools/ld; then
11347 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11348 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11350$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 11351 else
5213506e
RW
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11353$as_echo "no" >&6; }
d1f8db0c 11354 fi
e8b05380
PB
11355 elif test $build != $host && test $have_gcc_for_target = yes; then
11356 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
11357 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11358 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 11359 fi
e8b05380 11360fi
3e19841a 11361if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11362 # Extract the first word of "ld", so it can be a program name with args.
11363set dummy ld; ac_word=$2
5213506e
RW
11364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11365$as_echo_n "checking for $ac_word... " >&6; }
11366if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11367 $as_echo_n "(cached) " >&6
4de997d1 11368else
1c710c3c
DJ
11369 case $LD_FOR_TARGET in
11370 [\\/]* | ?:[\\/]*)
e8b05380
PB
11371 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11372 ;;
e8b05380 11373 *)
1c710c3c
DJ
11374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11375for as_dir in $gcc_cv_tool_dirs
11376do
11377 IFS=$as_save_IFS
11378 test -z "$as_dir" && as_dir=.
5213506e
RW
11379 for ac_exec_ext in '' $ac_executable_extensions; do
11380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11381 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11383 break 2
11384 fi
11385done
5213506e
RW
11386 done
11387IFS=$as_save_IFS
1c710c3c 11388
e8b05380
PB
11389 ;;
11390esac
4de997d1 11391fi
1c710c3c 11392LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 11393if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11395$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 11396else
5213506e
RW
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11398$as_echo "no" >&6; }
4de997d1 11399fi
2693c0b0 11400
5213506e 11401
e8b05380
PB
11402fi
11403if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
11404
11405
11406if test -n "$LD_FOR_TARGET"; then
11407 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11408elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11409 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11410fi
11411
11412if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11413 for ncn_progname in ld; do
11414 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11415set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11417$as_echo_n "checking for $ac_word... " >&6; }
11418if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11419 $as_echo_n "(cached) " >&6
278a7a38
AO
11420else
11421 if test -n "$LD_FOR_TARGET"; then
11422 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11423else
11424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11425for as_dir in $PATH
11426do
11427 IFS=$as_save_IFS
11428 test -z "$as_dir" && as_dir=.
5213506e
RW
11429 for ac_exec_ext in '' $ac_executable_extensions; do
11430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11431 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11433 break 2
11434 fi
11435done
5213506e
RW
11436 done
11437IFS=$as_save_IFS
278a7a38
AO
11438
11439fi
11440fi
11441LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11442if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11444$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 11445else
5213506e
RW
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11447$as_echo "no" >&6; }
278a7a38
AO
11448fi
11449
5213506e 11450
278a7a38
AO
11451 done
11452fi
11453
11454if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11455 for ncn_progname in ld; do
5213506e
RW
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11457$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11458 if test -x $with_build_time_tools/${ncn_progname}; then
11459 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11461$as_echo "yes" >&6; }
e8b05380
PB
11462 break
11463 else
5213506e
RW
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11465$as_echo "no" >&6; }
e8b05380
PB
11466 fi
11467 done
ca9f4b81
AO
11468fi
11469
e8b05380
PB
11470if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11471 for ncn_progname in ld; do
11472 if test -n "$ncn_target_tool_prefix"; then
11473 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11474set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11476$as_echo_n "checking for $ac_word... " >&6; }
11477if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11478 $as_echo_n "(cached) " >&6
ca9f4b81 11479else
4de997d1
PB
11480 if test -n "$LD_FOR_TARGET"; then
11481 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11482else
1c710c3c
DJ
11483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11484for as_dir in $PATH
11485do
11486 IFS=$as_save_IFS
11487 test -z "$as_dir" && as_dir=.
5213506e
RW
11488 for ac_exec_ext in '' $ac_executable_extensions; do
11489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11490 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11492 break 2
11493 fi
11494done
5213506e
RW
11495 done
11496IFS=$as_save_IFS
1c710c3c 11497
ca9f4b81
AO
11498fi
11499fi
1c710c3c 11500LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 11501if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11503$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11504else
5213506e
RW
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11506$as_echo "no" >&6; }
ca9f4b81
AO
11507fi
11508
5213506e 11509
e8b05380
PB
11510 fi
11511 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11512 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11513set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11515$as_echo_n "checking for $ac_word... " >&6; }
11516if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11517 $as_echo_n "(cached) " >&6
ca9f4b81 11518else
2693c0b0
PB
11519 if test -n "$LD_FOR_TARGET"; then
11520 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11521else
1c710c3c
DJ
11522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11523for as_dir in $PATH
11524do
11525 IFS=$as_save_IFS
11526 test -z "$as_dir" && as_dir=.
5213506e
RW
11527 for ac_exec_ext in '' $ac_executable_extensions; do
11528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11529 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11531 break 2
11532 fi
11533done
5213506e
RW
11534 done
11535IFS=$as_save_IFS
1c710c3c 11536
ca9f4b81
AO
11537fi
11538fi
1c710c3c 11539LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 11540if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11542$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11543else
5213506e
RW
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11545$as_echo "no" >&6; }
ca9f4b81 11546fi
1c710c3c 11547
5213506e 11548
e8b05380
PB
11549 fi
11550 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11551 done
11552fi
1c710c3c 11553
2693c0b0
PB
11554if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11555 set dummy ld
11556 if test $build = $target ; then
11557 LD_FOR_TARGET="$2"
ca9f4b81 11558 else
2693c0b0 11559 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11560 fi
1c00b503
PB
11561else
11562 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
11563fi
11564
d1f8db0c
PB
11565else
11566 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
11567fi
11568
11569
11570
11571
11572if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11573 if test -n "$with_build_time_tools"; then
5213506e
RW
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11575$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11576 if test -x $with_build_time_tools/lipo; then
11577 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11578 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11580$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 11581 else
5213506e
RW
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11583$as_echo "no" >&6; }
d1f8db0c 11584 fi
e8b05380
PB
11585 elif test $build != $host && test $have_gcc_for_target = yes; then
11586 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
11587 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11588 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
11589 fi
11590fi
278a7a38
AO
11591if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11592 # Extract the first word of "lipo", so it can be a program name with args.
11593set dummy lipo; ac_word=$2
5213506e
RW
11594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11595$as_echo_n "checking for $ac_word... " >&6; }
11596if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11597 $as_echo_n "(cached) " >&6
278a7a38
AO
11598else
11599 case $LIPO_FOR_TARGET in
11600 [\\/]* | ?:[\\/]*)
11601 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11602 ;;
11603 *)
11604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11605for as_dir in $gcc_cv_tool_dirs
11606do
11607 IFS=$as_save_IFS
11608 test -z "$as_dir" && as_dir=.
5213506e
RW
11609 for ac_exec_ext in '' $ac_executable_extensions; do
11610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11611 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11613 break 2
11614 fi
11615done
5213506e
RW
11616 done
11617IFS=$as_save_IFS
278a7a38
AO
11618
11619 ;;
11620esac
11621fi
11622LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 11623if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11625$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 11626else
5213506e
RW
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11628$as_echo "no" >&6; }
278a7a38
AO
11629fi
11630
5213506e 11631
278a7a38
AO
11632fi
11633if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11634
11635
11636if test -n "$LIPO_FOR_TARGET"; then
11637 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11638elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11639 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11640fi
11641
11642if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11643 for ncn_progname in lipo; do
11644 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11645set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11647$as_echo_n "checking for $ac_word... " >&6; }
11648if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11649 $as_echo_n "(cached) " >&6
e8b05380 11650else
278a7a38
AO
11651 if test -n "$LIPO_FOR_TARGET"; then
11652 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11653else
11654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11655for as_dir in $PATH
1c710c3c
DJ
11656do
11657 IFS=$as_save_IFS
11658 test -z "$as_dir" && as_dir=.
5213506e
RW
11659 for ac_exec_ext in '' $ac_executable_extensions; do
11660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11661 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11663 break 2
11664 fi
11665done
5213506e
RW
11666 done
11667IFS=$as_save_IFS
1c710c3c 11668
e8b05380 11669fi
278a7a38
AO
11670fi
11671LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 11672if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11674$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 11675else
5213506e
RW
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11677$as_echo "no" >&6; }
e8b05380
PB
11678fi
11679
5213506e 11680
278a7a38 11681 done
e8b05380 11682fi
278a7a38
AO
11683
11684if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11685 for ncn_progname in lipo; do
5213506e
RW
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11687$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11688 if test -x $with_build_time_tools/${ncn_progname}; then
11689 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11691$as_echo "yes" >&6; }
e8b05380
PB
11692 break
11693 else
5213506e
RW
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11695$as_echo "no" >&6; }
e8b05380
PB
11696 fi
11697 done
11698fi
11699
11700if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11701 for ncn_progname in lipo; do
11702 if test -n "$ncn_target_tool_prefix"; then
11703 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11704set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11706$as_echo_n "checking for $ac_word... " >&6; }
11707if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11708 $as_echo_n "(cached) " >&6
040b1c5a
GK
11709else
11710 if test -n "$LIPO_FOR_TARGET"; then
11711 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11712else
1c710c3c
DJ
11713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11714for as_dir in $PATH
11715do
11716 IFS=$as_save_IFS
11717 test -z "$as_dir" && as_dir=.
5213506e
RW
11718 for ac_exec_ext in '' $ac_executable_extensions; do
11719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11720 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11722 break 2
11723 fi
11724done
5213506e
RW
11725 done
11726IFS=$as_save_IFS
1c710c3c 11727
040b1c5a
GK
11728fi
11729fi
1c710c3c 11730LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11731if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11733$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11734else
5213506e
RW
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11736$as_echo "no" >&6; }
040b1c5a
GK
11737fi
11738
5213506e 11739
e8b05380
PB
11740 fi
11741 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11742 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 11743set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11745$as_echo_n "checking for $ac_word... " >&6; }
11746if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11747 $as_echo_n "(cached) " >&6
040b1c5a
GK
11748else
11749 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
11750 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11751else
1c710c3c
DJ
11752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11753for as_dir in $PATH
11754do
11755 IFS=$as_save_IFS
11756 test -z "$as_dir" && as_dir=.
5213506e
RW
11757 for ac_exec_ext in '' $ac_executable_extensions; do
11758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11759 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11761 break 2
11762 fi
11763done
5213506e
RW
11764 done
11765IFS=$as_save_IFS
1c710c3c 11766
040b1c5a
GK
11767fi
11768fi
1c710c3c 11769LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11770if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11772$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11773else
5213506e
RW
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11775$as_echo "no" >&6; }
040b1c5a 11776fi
1c710c3c 11777
5213506e 11778
e8b05380
PB
11779 fi
11780 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11781 done
11782fi
1c710c3c 11783
040b1c5a
GK
11784if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11785 set dummy lipo
11786 if test $build = $target ; then
11787 LIPO_FOR_TARGET="$2"
11788 else
11789 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11790 fi
1c00b503
PB
11791else
11792 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
11793fi
11794
d1f8db0c
PB
11795else
11796 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
11797fi
11798
11799
11800
11801
11802if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11803 if test -n "$with_build_time_tools"; then
5213506e
RW
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11805$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11806 if test -x $with_build_time_tools/nm; then
11807 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11808 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11810$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 11811 else
5213506e
RW
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11813$as_echo "no" >&6; }
d1f8db0c 11814 fi
e8b05380
PB
11815 elif test $build != $host && test $have_gcc_for_target = yes; then
11816 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
11817 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11818 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
11819 fi
11820fi
3e19841a 11821if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11822 # Extract the first word of "nm", so it can be a program name with args.
11823set dummy nm; ac_word=$2
5213506e
RW
11824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11825$as_echo_n "checking for $ac_word... " >&6; }
11826if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11827 $as_echo_n "(cached) " >&6
e8b05380 11828else
1c710c3c
DJ
11829 case $NM_FOR_TARGET in
11830 [\\/]* | ?:[\\/]*)
e8b05380
PB
11831 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11832 ;;
e8b05380 11833 *)
1c710c3c
DJ
11834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11835for as_dir in $gcc_cv_tool_dirs
11836do
11837 IFS=$as_save_IFS
11838 test -z "$as_dir" && as_dir=.
5213506e
RW
11839 for ac_exec_ext in '' $ac_executable_extensions; do
11840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11841 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11843 break 2
11844 fi
11845done
5213506e
RW
11846 done
11847IFS=$as_save_IFS
1c710c3c 11848
e8b05380
PB
11849 ;;
11850esac
11851fi
1c710c3c 11852NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 11853if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11855$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 11856else
5213506e
RW
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11858$as_echo "no" >&6; }
e8b05380
PB
11859fi
11860
5213506e 11861
e8b05380
PB
11862fi
11863if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
11864
11865
11866if test -n "$NM_FOR_TARGET"; then
11867 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11868elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11869 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11870fi
11871
11872if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11873 for ncn_progname in nm; do
11874 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11875set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11877$as_echo_n "checking for $ac_word... " >&6; }
11878if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11879 $as_echo_n "(cached) " >&6
278a7a38
AO
11880else
11881 if test -n "$NM_FOR_TARGET"; then
11882 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11883else
11884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11885for as_dir in $PATH
11886do
11887 IFS=$as_save_IFS
11888 test -z "$as_dir" && as_dir=.
5213506e
RW
11889 for ac_exec_ext in '' $ac_executable_extensions; do
11890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11891 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 11892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11893 break 2
11894 fi
11895done
5213506e
RW
11896 done
11897IFS=$as_save_IFS
278a7a38
AO
11898
11899fi
11900fi
11901NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11902if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11904$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 11905else
5213506e
RW
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11907$as_echo "no" >&6; }
278a7a38
AO
11908fi
11909
5213506e 11910
278a7a38
AO
11911 done
11912fi
11913
11914if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11915 for ncn_progname in nm; do
5213506e
RW
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11917$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11918 if test -x $with_build_time_tools/${ncn_progname}; then
11919 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11921$as_echo "yes" >&6; }
e8b05380
PB
11922 break
11923 else
5213506e
RW
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11925$as_echo "no" >&6; }
e8b05380
PB
11926 fi
11927 done
11928fi
11929
11930if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11931 for ncn_progname in nm; do
11932 if test -n "$ncn_target_tool_prefix"; then
11933 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 11934set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11936$as_echo_n "checking for $ac_word... " >&6; }
11937if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11938 $as_echo_n "(cached) " >&6
ca9f4b81 11939else
4de997d1
PB
11940 if test -n "$NM_FOR_TARGET"; then
11941 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 11942else
1c710c3c
DJ
11943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11944for as_dir in $PATH
11945do
11946 IFS=$as_save_IFS
11947 test -z "$as_dir" && as_dir=.
5213506e
RW
11948 for ac_exec_ext in '' $ac_executable_extensions; do
11949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11950 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11952 break 2
11953 fi
11954done
5213506e
RW
11955 done
11956IFS=$as_save_IFS
1c710c3c 11957
ca9f4b81
AO
11958fi
11959fi
1c710c3c 11960NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 11961if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11963$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 11964else
5213506e
RW
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11966$as_echo "no" >&6; }
ca9f4b81
AO
11967fi
11968
5213506e 11969
e8b05380
PB
11970 fi
11971 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11972 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11973set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11975$as_echo_n "checking for $ac_word... " >&6; }
11976if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11977 $as_echo_n "(cached) " >&6
ca9f4b81 11978else
2693c0b0
PB
11979 if test -n "$NM_FOR_TARGET"; then
11980 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 11981else
1c710c3c
DJ
11982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11983for as_dir in $PATH
11984do
11985 IFS=$as_save_IFS
11986 test -z "$as_dir" && as_dir=.
5213506e
RW
11987 for ac_exec_ext in '' $ac_executable_extensions; do
11988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11989 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 11990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11991 break 2
11992 fi
11993done
5213506e
RW
11994 done
11995IFS=$as_save_IFS
1c710c3c 11996
ca9f4b81
AO
11997fi
11998fi
1c710c3c 11999NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 12000if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12002$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12003else
5213506e
RW
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12005$as_echo "no" >&6; }
ca9f4b81 12006fi
1c710c3c 12007
5213506e 12008
e8b05380
PB
12009 fi
12010 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12011 done
12012fi
1c710c3c 12013
2693c0b0
PB
12014if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12015 set dummy nm
12016 if test $build = $target ; then
12017 NM_FOR_TARGET="$2"
ca9f4b81 12018 else
2693c0b0 12019 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12020 fi
1c00b503
PB
12021else
12022 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
12023fi
12024
d1f8db0c
PB
12025else
12026 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
12027fi
12028
12029
12030
12031
9bccfdf5
AP
12032if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12033 if test -n "$with_build_time_tools"; then
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12035$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12036 if test -x $with_build_time_tools/objcopy; then
12037 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12038 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12040$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12041 else
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12043$as_echo "no" >&6; }
12044 fi
12045 elif test $build != $host && test $have_gcc_for_target = yes; then
12046 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12047 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12048 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12049 fi
12050fi
12051if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12052 # Extract the first word of "objcopy", so it can be a program name with args.
12053set dummy objcopy; ac_word=$2
12054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12055$as_echo_n "checking for $ac_word... " >&6; }
12056if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12057 $as_echo_n "(cached) " >&6
12058else
12059 case $OBJCOPY_FOR_TARGET in
12060 [\\/]* | ?:[\\/]*)
12061 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12062 ;;
12063 *)
12064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12065for as_dir in $gcc_cv_tool_dirs
12066do
12067 IFS=$as_save_IFS
12068 test -z "$as_dir" && as_dir=.
12069 for ac_exec_ext in '' $ac_executable_extensions; do
12070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12071 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12073 break 2
12074 fi
12075done
12076 done
12077IFS=$as_save_IFS
12078
12079 ;;
12080esac
12081fi
12082OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12083if test -n "$OBJCOPY_FOR_TARGET"; then
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12085$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12086else
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12088$as_echo "no" >&6; }
12089fi
12090
12091
12092fi
12093if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12094
12095
12096if test -n "$OBJCOPY_FOR_TARGET"; then
12097 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12098elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12099 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12100fi
12101
12102if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12103 for ncn_progname in objcopy; do
12104 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12105set dummy ${ncn_progname}; ac_word=$2
12106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12107$as_echo_n "checking for $ac_word... " >&6; }
12108if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12109 $as_echo_n "(cached) " >&6
12110else
12111 if test -n "$OBJCOPY_FOR_TARGET"; then
12112 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12113else
12114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12115for as_dir in $PATH
12116do
12117 IFS=$as_save_IFS
12118 test -z "$as_dir" && as_dir=.
12119 for ac_exec_ext in '' $ac_executable_extensions; do
12120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12121 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12123 break 2
12124 fi
12125done
12126 done
12127IFS=$as_save_IFS
12128
12129fi
12130fi
12131OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12132if test -n "$OBJCOPY_FOR_TARGET"; then
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12134$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12135else
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12137$as_echo "no" >&6; }
12138fi
12139
12140
12141 done
12142fi
12143
12144if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12145 for ncn_progname in objcopy; do
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12147$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12148 if test -x $with_build_time_tools/${ncn_progname}; then
12149 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12151$as_echo "yes" >&6; }
12152 break
12153 else
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12155$as_echo "no" >&6; }
12156 fi
12157 done
12158fi
12159
12160if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12161 for ncn_progname in objcopy; do
12162 if test -n "$ncn_target_tool_prefix"; then
12163 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12164set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12166$as_echo_n "checking for $ac_word... " >&6; }
12167if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12168 $as_echo_n "(cached) " >&6
12169else
12170 if test -n "$OBJCOPY_FOR_TARGET"; then
12171 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12172else
12173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12174for as_dir in $PATH
12175do
12176 IFS=$as_save_IFS
12177 test -z "$as_dir" && as_dir=.
12178 for ac_exec_ext in '' $ac_executable_extensions; do
12179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12180 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12182 break 2
12183 fi
12184done
12185 done
12186IFS=$as_save_IFS
12187
12188fi
12189fi
12190OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12191if test -n "$OBJCOPY_FOR_TARGET"; then
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12193$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12194else
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12196$as_echo "no" >&6; }
12197fi
12198
12199
12200 fi
12201 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12202 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12203set dummy ${ncn_progname}; ac_word=$2
12204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12205$as_echo_n "checking for $ac_word... " >&6; }
12206if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12207 $as_echo_n "(cached) " >&6
12208else
12209 if test -n "$OBJCOPY_FOR_TARGET"; then
12210 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12211else
12212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12213for as_dir in $PATH
12214do
12215 IFS=$as_save_IFS
12216 test -z "$as_dir" && as_dir=.
12217 for ac_exec_ext in '' $ac_executable_extensions; do
12218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12219 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12221 break 2
12222 fi
12223done
12224 done
12225IFS=$as_save_IFS
12226
12227fi
12228fi
12229OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12230if test -n "$OBJCOPY_FOR_TARGET"; then
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12232$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12233else
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12235$as_echo "no" >&6; }
12236fi
12237
12238
12239 fi
12240 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12241 done
12242fi
12243
12244if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12245 set dummy objcopy
12246 if test $build = $target ; then
12247 OBJCOPY_FOR_TARGET="$2"
12248 else
12249 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12250 fi
12251else
12252 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12253fi
12254
12255else
12256 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12257fi
12258
12259
12260
12261
e8b05380
PB
12262if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12263 if test -n "$with_build_time_tools"; then
5213506e
RW
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12265$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12266 if test -x $with_build_time_tools/objdump; then
12267 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12268 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12270$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 12271 else
5213506e
RW
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12273$as_echo "no" >&6; }
d1f8db0c 12274 fi
e8b05380
PB
12275 elif test $build != $host && test $have_gcc_for_target = yes; then
12276 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
12277 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12278 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
12279 fi
12280fi
3e19841a 12281if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12282 # Extract the first word of "objdump", so it can be a program name with args.
12283set dummy objdump; ac_word=$2
5213506e
RW
12284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12285$as_echo_n "checking for $ac_word... " >&6; }
12286if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12287 $as_echo_n "(cached) " >&6
e8b05380 12288else
1c710c3c
DJ
12289 case $OBJDUMP_FOR_TARGET in
12290 [\\/]* | ?:[\\/]*)
e8b05380
PB
12291 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12292 ;;
e8b05380 12293 *)
1c710c3c
DJ
12294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12295for as_dir in $gcc_cv_tool_dirs
12296do
12297 IFS=$as_save_IFS
12298 test -z "$as_dir" && as_dir=.
5213506e
RW
12299 for ac_exec_ext in '' $ac_executable_extensions; do
12300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12301 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12303 break 2
12304 fi
12305done
5213506e
RW
12306 done
12307IFS=$as_save_IFS
1c710c3c 12308
e8b05380
PB
12309 ;;
12310esac
12311fi
1c710c3c 12312OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 12313if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12315$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 12316else
5213506e
RW
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12318$as_echo "no" >&6; }
e8b05380
PB
12319fi
12320
5213506e 12321
e8b05380
PB
12322fi
12323if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
12324
12325
12326if test -n "$OBJDUMP_FOR_TARGET"; then
12327 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12328elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12329 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12330fi
12331
12332if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12333 for ncn_progname in objdump; do
12334 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12335set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12337$as_echo_n "checking for $ac_word... " >&6; }
12338if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12339 $as_echo_n "(cached) " >&6
278a7a38
AO
12340else
12341 if test -n "$OBJDUMP_FOR_TARGET"; then
12342 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12343else
12344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12345for as_dir in $PATH
12346do
12347 IFS=$as_save_IFS
12348 test -z "$as_dir" && as_dir=.
5213506e
RW
12349 for ac_exec_ext in '' $ac_executable_extensions; do
12350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12351 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12353 break 2
12354 fi
12355done
5213506e
RW
12356 done
12357IFS=$as_save_IFS
278a7a38
AO
12358
12359fi
12360fi
12361OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12362if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12364$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 12365else
5213506e
RW
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12367$as_echo "no" >&6; }
278a7a38
AO
12368fi
12369
5213506e 12370
278a7a38
AO
12371 done
12372fi
12373
12374if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12375 for ncn_progname in objdump; do
5213506e
RW
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12377$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12378 if test -x $with_build_time_tools/${ncn_progname}; then
12379 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12381$as_echo "yes" >&6; }
e8b05380
PB
12382 break
12383 else
5213506e
RW
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12385$as_echo "no" >&6; }
e8b05380
PB
12386 fi
12387 done
12388fi
12389
12390if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12391 for ncn_progname in objdump; do
12392 if test -n "$ncn_target_tool_prefix"; then
12393 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12394set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12396$as_echo_n "checking for $ac_word... " >&6; }
12397if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12398 $as_echo_n "(cached) " >&6
d739199a
DJ
12399else
12400 if test -n "$OBJDUMP_FOR_TARGET"; then
12401 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12402else
1c710c3c
DJ
12403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12404for as_dir in $PATH
12405do
12406 IFS=$as_save_IFS
12407 test -z "$as_dir" && as_dir=.
5213506e
RW
12408 for ac_exec_ext in '' $ac_executable_extensions; do
12409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12410 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12412 break 2
12413 fi
12414done
5213506e
RW
12415 done
12416IFS=$as_save_IFS
1c710c3c 12417
d739199a
DJ
12418fi
12419fi
1c710c3c 12420OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12421if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12423$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12424else
5213506e
RW
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12426$as_echo "no" >&6; }
d739199a
DJ
12427fi
12428
5213506e 12429
e8b05380
PB
12430 fi
12431 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12432 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 12433set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12435$as_echo_n "checking for $ac_word... " >&6; }
12436if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12437 $as_echo_n "(cached) " >&6
d739199a
DJ
12438else
12439 if test -n "$OBJDUMP_FOR_TARGET"; then
12440 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12441else
1c710c3c
DJ
12442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12443for as_dir in $PATH
12444do
12445 IFS=$as_save_IFS
12446 test -z "$as_dir" && as_dir=.
5213506e
RW
12447 for ac_exec_ext in '' $ac_executable_extensions; do
12448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12449 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12451 break 2
12452 fi
12453done
5213506e
RW
12454 done
12455IFS=$as_save_IFS
1c710c3c 12456
d739199a
DJ
12457fi
12458fi
1c710c3c 12459OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12460if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12462$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12463else
5213506e
RW
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12465$as_echo "no" >&6; }
d739199a 12466fi
1c710c3c 12467
5213506e 12468
e8b05380
PB
12469 fi
12470 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12471 done
12472fi
1c710c3c 12473
d739199a
DJ
12474if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12475 set dummy objdump
12476 if test $build = $target ; then
12477 OBJDUMP_FOR_TARGET="$2"
12478 else
12479 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12480 fi
1c00b503
PB
12481else
12482 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
12483fi
12484
d1f8db0c
PB
12485else
12486 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
12487fi
12488
12489
12490
12491
12492if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12493 if test -n "$with_build_time_tools"; then
5213506e
RW
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12495$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12496 if test -x $with_build_time_tools/ranlib; then
12497 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12498 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12500$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 12501 else
5213506e
RW
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12503$as_echo "no" >&6; }
d1f8db0c 12504 fi
e8b05380
PB
12505 elif test $build != $host && test $have_gcc_for_target = yes; then
12506 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
12507 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12508 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
12509 fi
12510fi
3e19841a 12511if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12512 # Extract the first word of "ranlib", so it can be a program name with args.
12513set dummy ranlib; ac_word=$2
5213506e
RW
12514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12515$as_echo_n "checking for $ac_word... " >&6; }
12516if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12517 $as_echo_n "(cached) " >&6
e8b05380 12518else
1c710c3c
DJ
12519 case $RANLIB_FOR_TARGET in
12520 [\\/]* | ?:[\\/]*)
e8b05380
PB
12521 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12522 ;;
e8b05380 12523 *)
1c710c3c
DJ
12524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12525for as_dir in $gcc_cv_tool_dirs
12526do
12527 IFS=$as_save_IFS
12528 test -z "$as_dir" && as_dir=.
5213506e
RW
12529 for ac_exec_ext in '' $ac_executable_extensions; do
12530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12531 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12533 break 2
12534 fi
12535done
5213506e
RW
12536 done
12537IFS=$as_save_IFS
1c710c3c 12538
e8b05380
PB
12539 ;;
12540esac
12541fi
1c710c3c 12542RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 12543if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12545$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 12546else
5213506e
RW
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12548$as_echo "no" >&6; }
e8b05380
PB
12549fi
12550
5213506e 12551
e8b05380
PB
12552fi
12553if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
12554
12555
12556if test -n "$RANLIB_FOR_TARGET"; then
12557 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12558elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12559 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12560fi
12561
12562if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12563 for ncn_progname in ranlib; do
12564 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12565set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12567$as_echo_n "checking for $ac_word... " >&6; }
12568if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12569 $as_echo_n "(cached) " >&6
278a7a38
AO
12570else
12571 if test -n "$RANLIB_FOR_TARGET"; then
12572 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12573else
12574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12575for as_dir in $PATH
12576do
12577 IFS=$as_save_IFS
12578 test -z "$as_dir" && as_dir=.
5213506e
RW
12579 for ac_exec_ext in '' $ac_executable_extensions; do
12580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12581 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12583 break 2
12584 fi
12585done
5213506e
RW
12586 done
12587IFS=$as_save_IFS
278a7a38
AO
12588
12589fi
12590fi
12591RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12592if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12594$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 12595else
5213506e
RW
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12597$as_echo "no" >&6; }
278a7a38
AO
12598fi
12599
5213506e 12600
278a7a38
AO
12601 done
12602fi
12603
12604if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12605 for ncn_progname in ranlib; do
5213506e
RW
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12607$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12608 if test -x $with_build_time_tools/${ncn_progname}; then
12609 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12611$as_echo "yes" >&6; }
e8b05380
PB
12612 break
12613 else
5213506e
RW
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12615$as_echo "no" >&6; }
e8b05380
PB
12616 fi
12617 done
12618fi
12619
12620if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12621 for ncn_progname in ranlib; do
12622 if test -n "$ncn_target_tool_prefix"; then
12623 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 12624set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12626$as_echo_n "checking for $ac_word... " >&6; }
12627if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12628 $as_echo_n "(cached) " >&6
ca9f4b81 12629else
4de997d1
PB
12630 if test -n "$RANLIB_FOR_TARGET"; then
12631 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12632else
1c710c3c
DJ
12633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12634for as_dir in $PATH
12635do
12636 IFS=$as_save_IFS
12637 test -z "$as_dir" && as_dir=.
5213506e
RW
12638 for ac_exec_ext in '' $ac_executable_extensions; do
12639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12640 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12642 break 2
12643 fi
12644done
5213506e
RW
12645 done
12646IFS=$as_save_IFS
1c710c3c 12647
ca9f4b81
AO
12648fi
12649fi
1c710c3c 12650RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 12651if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12653$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12654else
5213506e
RW
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12656$as_echo "no" >&6; }
ca9f4b81
AO
12657fi
12658
5213506e 12659
e8b05380
PB
12660 fi
12661 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12662 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12663set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12665$as_echo_n "checking for $ac_word... " >&6; }
12666if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12667 $as_echo_n "(cached) " >&6
ca9f4b81 12668else
2693c0b0
PB
12669 if test -n "$RANLIB_FOR_TARGET"; then
12670 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12671else
1c710c3c
DJ
12672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12673for as_dir in $PATH
12674do
12675 IFS=$as_save_IFS
12676 test -z "$as_dir" && as_dir=.
5213506e
RW
12677 for ac_exec_ext in '' $ac_executable_extensions; do
12678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12679 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12681 break 2
12682 fi
12683done
5213506e
RW
12684 done
12685IFS=$as_save_IFS
1c710c3c 12686
ca9f4b81
AO
12687fi
12688fi
1c710c3c 12689RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 12690if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12692$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12693else
5213506e
RW
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12695$as_echo "no" >&6; }
ca9f4b81 12696fi
1c710c3c 12697
5213506e 12698
e8b05380
PB
12699 fi
12700 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12701 done
12702fi
1c710c3c 12703
e8b05380
PB
12704if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12705 set dummy ranlib
12706 if test $build = $target ; then
12707 RANLIB_FOR_TARGET="$2"
12708 else
12709 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12710 fi
1c00b503
PB
12711else
12712 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 12713fi
2693c0b0 12714
d1f8db0c
PB
12715else
12716 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
12717fi
12718
e8b05380
PB
12719
12720
12721
e7a82751
RM
12722if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12723 if test -n "$with_build_time_tools"; then
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12725$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12726 if test -x $with_build_time_tools/readelf; then
12727 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12728 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12730$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12731 else
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12733$as_echo "no" >&6; }
12734 fi
12735 elif test $build != $host && test $have_gcc_for_target = yes; then
12736 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12737 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12738 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12739 fi
12740fi
12741if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12742 # Extract the first word of "readelf", so it can be a program name with args.
12743set dummy readelf; ac_word=$2
12744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12745$as_echo_n "checking for $ac_word... " >&6; }
12746if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12747 $as_echo_n "(cached) " >&6
12748else
12749 case $READELF_FOR_TARGET in
12750 [\\/]* | ?:[\\/]*)
12751 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12752 ;;
12753 *)
12754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12755for as_dir in $gcc_cv_tool_dirs
12756do
12757 IFS=$as_save_IFS
12758 test -z "$as_dir" && as_dir=.
12759 for ac_exec_ext in '' $ac_executable_extensions; do
12760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12761 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12763 break 2
12764 fi
12765done
12766 done
12767IFS=$as_save_IFS
12768
12769 ;;
12770esac
12771fi
12772READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12773if test -n "$READELF_FOR_TARGET"; then
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12775$as_echo "$READELF_FOR_TARGET" >&6; }
12776else
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12778$as_echo "no" >&6; }
12779fi
12780
12781
12782fi
12783if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12784
12785
12786if test -n "$READELF_FOR_TARGET"; then
12787 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12788elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12789 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12790fi
12791
12792if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12793 for ncn_progname in readelf; do
12794 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12795set dummy ${ncn_progname}; ac_word=$2
12796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12797$as_echo_n "checking for $ac_word... " >&6; }
12798if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12799 $as_echo_n "(cached) " >&6
12800else
12801 if test -n "$READELF_FOR_TARGET"; then
12802 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12803else
12804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12805for as_dir in $PATH
12806do
12807 IFS=$as_save_IFS
12808 test -z "$as_dir" && as_dir=.
12809 for ac_exec_ext in '' $ac_executable_extensions; do
12810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12811 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12813 break 2
12814 fi
12815done
12816 done
12817IFS=$as_save_IFS
12818
12819fi
12820fi
12821READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12822if test -n "$READELF_FOR_TARGET"; then
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12824$as_echo "$READELF_FOR_TARGET" >&6; }
12825else
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12827$as_echo "no" >&6; }
12828fi
12829
12830
12831 done
12832fi
12833
12834if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12835 for ncn_progname in readelf; do
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12837$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12838 if test -x $with_build_time_tools/${ncn_progname}; then
12839 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12841$as_echo "yes" >&6; }
12842 break
12843 else
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12845$as_echo "no" >&6; }
12846 fi
12847 done
12848fi
12849
12850if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12851 for ncn_progname in readelf; do
12852 if test -n "$ncn_target_tool_prefix"; then
12853 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12854set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12856$as_echo_n "checking for $ac_word... " >&6; }
12857if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12858 $as_echo_n "(cached) " >&6
12859else
12860 if test -n "$READELF_FOR_TARGET"; then
12861 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12862else
12863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12864for as_dir in $PATH
12865do
12866 IFS=$as_save_IFS
12867 test -z "$as_dir" && as_dir=.
12868 for ac_exec_ext in '' $ac_executable_extensions; do
12869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12870 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12872 break 2
12873 fi
12874done
12875 done
12876IFS=$as_save_IFS
12877
12878fi
12879fi
12880READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12881if test -n "$READELF_FOR_TARGET"; then
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12883$as_echo "$READELF_FOR_TARGET" >&6; }
12884else
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12886$as_echo "no" >&6; }
12887fi
12888
12889
12890 fi
12891 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12892 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12893set dummy ${ncn_progname}; ac_word=$2
12894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12895$as_echo_n "checking for $ac_word... " >&6; }
12896if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12897 $as_echo_n "(cached) " >&6
12898else
12899 if test -n "$READELF_FOR_TARGET"; then
12900 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12901else
12902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12903for as_dir in $PATH
12904do
12905 IFS=$as_save_IFS
12906 test -z "$as_dir" && as_dir=.
12907 for ac_exec_ext in '' $ac_executable_extensions; do
12908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12909 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12911 break 2
12912 fi
12913done
12914 done
12915IFS=$as_save_IFS
12916
12917fi
12918fi
12919READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12920if test -n "$READELF_FOR_TARGET"; then
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12922$as_echo "$READELF_FOR_TARGET" >&6; }
12923else
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12925$as_echo "no" >&6; }
12926fi
12927
12928
12929 fi
12930 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12931 done
12932fi
12933
12934if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12935 set dummy readelf
12936 if test $build = $target ; then
12937 READELF_FOR_TARGET="$2"
12938 else
12939 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12940 fi
12941else
12942 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12943fi
12944
12945else
12946 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12947fi
12948
12949
12950
12951
e8b05380
PB
12952if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12953 if test -n "$with_build_time_tools"; then
5213506e
RW
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12955$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12956 if test -x $with_build_time_tools/strip; then
12957 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12958 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12960$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 12961 else
5213506e
RW
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12963$as_echo "no" >&6; }
d1f8db0c 12964 fi
e8b05380
PB
12965 elif test $build != $host && test $have_gcc_for_target = yes; then
12966 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
12967 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12968 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
12969 fi
12970fi
3e19841a 12971if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12972 # Extract the first word of "strip", so it can be a program name with args.
12973set dummy strip; ac_word=$2
5213506e
RW
12974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12975$as_echo_n "checking for $ac_word... " >&6; }
12976if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12977 $as_echo_n "(cached) " >&6
e8b05380 12978else
1c710c3c
DJ
12979 case $STRIP_FOR_TARGET in
12980 [\\/]* | ?:[\\/]*)
e8b05380
PB
12981 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12982 ;;
e8b05380 12983 *)
1c710c3c
DJ
12984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12985for as_dir in $gcc_cv_tool_dirs
12986do
12987 IFS=$as_save_IFS
12988 test -z "$as_dir" && as_dir=.
5213506e
RW
12989 for ac_exec_ext in '' $ac_executable_extensions; do
12990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12991 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12993 break 2
12994 fi
12995done
5213506e
RW
12996 done
12997IFS=$as_save_IFS
1c710c3c 12998
e8b05380
PB
12999 ;;
13000esac
13001fi
1c710c3c 13002STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 13003if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13005$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 13006else
5213506e
RW
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13008$as_echo "no" >&6; }
e8b05380
PB
13009fi
13010
5213506e 13011
e8b05380
PB
13012fi
13013if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
13014
13015
13016if test -n "$STRIP_FOR_TARGET"; then
13017 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13018elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13019 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13020fi
13021
13022if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13023 for ncn_progname in strip; do
13024 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13025set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13027$as_echo_n "checking for $ac_word... " >&6; }
13028if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13029 $as_echo_n "(cached) " >&6
278a7a38
AO
13030else
13031 if test -n "$STRIP_FOR_TARGET"; then
13032 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13033else
13034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13035for as_dir in $PATH
13036do
13037 IFS=$as_save_IFS
13038 test -z "$as_dir" && as_dir=.
5213506e
RW
13039 for ac_exec_ext in '' $ac_executable_extensions; do
13040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 13041 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13043 break 2
13044 fi
13045done
5213506e
RW
13046 done
13047IFS=$as_save_IFS
278a7a38
AO
13048
13049fi
13050fi
13051STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13052if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13054$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 13055else
5213506e
RW
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13057$as_echo "no" >&6; }
278a7a38
AO
13058fi
13059
5213506e 13060
278a7a38
AO
13061 done
13062fi
13063
13064if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13065 for ncn_progname in strip; do
5213506e
RW
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13067$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13068 if test -x $with_build_time_tools/${ncn_progname}; then
13069 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13071$as_echo "yes" >&6; }
e8b05380
PB
13072 break
13073 else
5213506e
RW
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13075$as_echo "no" >&6; }
e8b05380
PB
13076 fi
13077 done
13078fi
13079
13080if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13081 for ncn_progname in strip; do
13082 if test -n "$ncn_target_tool_prefix"; then
13083 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 13084set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13086$as_echo_n "checking for $ac_word... " >&6; }
13087if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13088 $as_echo_n "(cached) " >&6
af71363e
AS
13089else
13090 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
13091 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13092else
13093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13094for as_dir in $PATH
13095do
13096 IFS=$as_save_IFS
13097 test -z "$as_dir" && as_dir=.
5213506e
RW
13098 for ac_exec_ext in '' $ac_executable_extensions; do
13099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13100 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13102 break 2
13103 fi
13104done
5213506e
RW
13105 done
13106IFS=$as_save_IFS
1c710c3c 13107
040b1c5a
GK
13108fi
13109fi
1c710c3c 13110STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13111if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13113$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13114else
5213506e
RW
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13116$as_echo "no" >&6; }
040b1c5a
GK
13117fi
13118
5213506e 13119
e8b05380
PB
13120 fi
13121 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13122 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 13123set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13125$as_echo_n "checking for $ac_word... " >&6; }
13126if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13127 $as_echo_n "(cached) " >&6
040b1c5a
GK
13128else
13129 if test -n "$STRIP_FOR_TARGET"; then
13130 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13131else
1c710c3c
DJ
13132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13133for as_dir in $PATH
13134do
13135 IFS=$as_save_IFS
13136 test -z "$as_dir" && as_dir=.
5213506e
RW
13137 for ac_exec_ext in '' $ac_executable_extensions; do
13138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13139 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13141 break 2
13142 fi
13143done
5213506e
RW
13144 done
13145IFS=$as_save_IFS
1c710c3c 13146
040b1c5a
GK
13147fi
13148fi
1c710c3c 13149STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13150if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13152$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13153else
5213506e
RW
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13155$as_echo "no" >&6; }
040b1c5a 13156fi
1c710c3c 13157
5213506e 13158
e8b05380
PB
13159 fi
13160 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13161 done
13162fi
1c710c3c 13163
040b1c5a
GK
13164if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13165 set dummy strip
13166 if test $build = $target ; then
13167 STRIP_FOR_TARGET="$2"
13168 else
13169 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13170 fi
1c00b503
PB
13171else
13172 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
13173fi
13174
d1f8db0c
PB
13175else
13176 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
13177fi
13178
13179
13180
13181
13182if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13183 if test -n "$with_build_time_tools"; then
5213506e
RW
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13185$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13186 if test -x $with_build_time_tools/windres; then
13187 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13188 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13190$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 13191 else
5213506e
RW
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13193$as_echo "no" >&6; }
d1f8db0c 13194 fi
e8b05380
PB
13195 elif test $build != $host && test $have_gcc_for_target = yes; then
13196 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
13197 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13198 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
13199 fi
13200fi
3e19841a 13201if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13202 # Extract the first word of "windres", so it can be a program name with args.
13203set dummy windres; ac_word=$2
5213506e
RW
13204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13205$as_echo_n "checking for $ac_word... " >&6; }
13206if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13207 $as_echo_n "(cached) " >&6
e8b05380 13208else
1c710c3c
DJ
13209 case $WINDRES_FOR_TARGET in
13210 [\\/]* | ?:[\\/]*)
e8b05380
PB
13211 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13212 ;;
e8b05380 13213 *)
1c710c3c
DJ
13214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13215for as_dir in $gcc_cv_tool_dirs
13216do
13217 IFS=$as_save_IFS
13218 test -z "$as_dir" && as_dir=.
5213506e
RW
13219 for ac_exec_ext in '' $ac_executable_extensions; do
13220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13221 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13223 break 2
13224 fi
13225done
5213506e
RW
13226 done
13227IFS=$as_save_IFS
1c710c3c 13228
e8b05380
PB
13229 ;;
13230esac
13231fi
1c710c3c 13232WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 13233if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13235$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 13236else
5213506e
RW
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13238$as_echo "no" >&6; }
e8b05380
PB
13239fi
13240
5213506e 13241
e8b05380
PB
13242fi
13243if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
13244
13245
13246if test -n "$WINDRES_FOR_TARGET"; then
13247 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13248elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13249 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13250fi
13251
13252if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13253 for ncn_progname in windres; do
13254 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13255set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13257$as_echo_n "checking for $ac_word... " >&6; }
13258if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13259 $as_echo_n "(cached) " >&6
278a7a38
AO
13260else
13261 if test -n "$WINDRES_FOR_TARGET"; then
13262 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13263else
13264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13265for as_dir in $PATH
13266do
13267 IFS=$as_save_IFS
13268 test -z "$as_dir" && as_dir=.
5213506e
RW
13269 for ac_exec_ext in '' $ac_executable_extensions; do
13270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 13271 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13273 break 2
13274 fi
13275done
5213506e
RW
13276 done
13277IFS=$as_save_IFS
278a7a38
AO
13278
13279fi
13280fi
13281WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13282if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13284$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 13285else
5213506e
RW
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13287$as_echo "no" >&6; }
278a7a38
AO
13288fi
13289
5213506e 13290
278a7a38
AO
13291 done
13292fi
13293
13294if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13295 for ncn_progname in windres; do
5213506e
RW
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13297$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13298 if test -x $with_build_time_tools/${ncn_progname}; then
13299 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13301$as_echo "yes" >&6; }
e8b05380
PB
13302 break
13303 else
5213506e
RW
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13305$as_echo "no" >&6; }
e8b05380
PB
13306 fi
13307 done
13308fi
13309
13310if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13311 for ncn_progname in windres; do
13312 if test -n "$ncn_target_tool_prefix"; then
13313 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13314set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13316$as_echo_n "checking for $ac_word... " >&6; }
13317if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13318 $as_echo_n "(cached) " >&6
ca9f4b81 13319else
4de997d1
PB
13320 if test -n "$WINDRES_FOR_TARGET"; then
13321 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13322else
1c710c3c
DJ
13323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13324for as_dir in $PATH
13325do
13326 IFS=$as_save_IFS
13327 test -z "$as_dir" && as_dir=.
5213506e
RW
13328 for ac_exec_ext in '' $ac_executable_extensions; do
13329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13330 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13332 break 2
13333 fi
13334done
5213506e
RW
13335 done
13336IFS=$as_save_IFS
1c710c3c 13337
ca9f4b81
AO
13338fi
13339fi
1c710c3c 13340WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 13341if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13343$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13344else
5213506e
RW
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13346$as_echo "no" >&6; }
ca9f4b81
AO
13347fi
13348
5213506e 13349
e8b05380
PB
13350 fi
13351 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13352 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13353set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13355$as_echo_n "checking for $ac_word... " >&6; }
13356if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13357 $as_echo_n "(cached) " >&6
ca9f4b81 13358else
2693c0b0
PB
13359 if test -n "$WINDRES_FOR_TARGET"; then
13360 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13361else
1c710c3c
DJ
13362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13363for as_dir in $PATH
13364do
13365 IFS=$as_save_IFS
13366 test -z "$as_dir" && as_dir=.
5213506e
RW
13367 for ac_exec_ext in '' $ac_executable_extensions; do
13368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13369 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13371 break 2
13372 fi
13373done
5213506e
RW
13374 done
13375IFS=$as_save_IFS
1c710c3c 13376
ca9f4b81
AO
13377fi
13378fi
1c710c3c 13379WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 13380if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13382$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13383else
5213506e
RW
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13385$as_echo "no" >&6; }
ca9f4b81 13386fi
1c710c3c 13387
5213506e 13388
e8b05380
PB
13389 fi
13390 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13391 done
13392fi
1c710c3c 13393
2693c0b0
PB
13394if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13395 set dummy windres
13396 if test $build = $target ; then
13397 WINDRES_FOR_TARGET="$2"
ca9f4b81 13398 else
2693c0b0 13399 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 13400 fi
1c00b503
PB
13401else
13402 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
13403fi
13404
d1f8db0c
PB
13405else
13406 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
13407fi
13408
4977bab6 13409
901119ae
KT
13410
13411
13412if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13413 if test -n "$with_build_time_tools"; then
5213506e
RW
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13415$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
13416 if test -x $with_build_time_tools/windmc; then
13417 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13418 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13420$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 13421 else
5213506e
RW
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13423$as_echo "no" >&6; }
901119ae
KT
13424 fi
13425 elif test $build != $host && test $have_gcc_for_target = yes; then
13426 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
13427 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13428 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
13429 fi
13430fi
13431if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13432 # Extract the first word of "windmc", so it can be a program name with args.
13433set dummy windmc; ac_word=$2
5213506e
RW
13434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13435$as_echo_n "checking for $ac_word... " >&6; }
13436if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13437 $as_echo_n "(cached) " >&6
901119ae
KT
13438else
13439 case $WINDMC_FOR_TARGET in
13440 [\\/]* | ?:[\\/]*)
13441 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13442 ;;
13443 *)
13444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13445for as_dir in $gcc_cv_tool_dirs
13446do
13447 IFS=$as_save_IFS
13448 test -z "$as_dir" && as_dir=.
5213506e
RW
13449 for ac_exec_ext in '' $ac_executable_extensions; do
13450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13451 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13453 break 2
13454 fi
13455done
5213506e
RW
13456 done
13457IFS=$as_save_IFS
901119ae
KT
13458
13459 ;;
13460esac
13461fi
13462WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 13463if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13465$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13466else
5213506e
RW
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13468$as_echo "no" >&6; }
901119ae
KT
13469fi
13470
5213506e 13471
901119ae
KT
13472fi
13473if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13474
13475
13476if test -n "$WINDMC_FOR_TARGET"; then
13477 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13478elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13479 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13480fi
13481
13482if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13483 for ncn_progname in windmc; do
13484 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13485set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13487$as_echo_n "checking for $ac_word... " >&6; }
13488if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13489 $as_echo_n "(cached) " >&6
901119ae
KT
13490else
13491 if test -n "$WINDMC_FOR_TARGET"; then
13492 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13493else
13494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13495for as_dir in $PATH
13496do
13497 IFS=$as_save_IFS
13498 test -z "$as_dir" && as_dir=.
5213506e
RW
13499 for ac_exec_ext in '' $ac_executable_extensions; do
13500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13501 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13503 break 2
13504 fi
13505done
5213506e
RW
13506 done
13507IFS=$as_save_IFS
901119ae
KT
13508
13509fi
13510fi
13511WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13512if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13514$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13515else
5213506e
RW
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13517$as_echo "no" >&6; }
901119ae
KT
13518fi
13519
5213506e 13520
901119ae
KT
13521 done
13522fi
13523
13524if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13525 for ncn_progname in windmc; do
5213506e
RW
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13527$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
13528 if test -x $with_build_time_tools/${ncn_progname}; then
13529 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13531$as_echo "yes" >&6; }
901119ae
KT
13532 break
13533 else
5213506e
RW
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13535$as_echo "no" >&6; }
901119ae
KT
13536 fi
13537 done
13538fi
13539
13540if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13541 for ncn_progname in windmc; do
13542 if test -n "$ncn_target_tool_prefix"; then
13543 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13544set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13546$as_echo_n "checking for $ac_word... " >&6; }
13547if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13548 $as_echo_n "(cached) " >&6
901119ae
KT
13549else
13550 if test -n "$WINDMC_FOR_TARGET"; then
13551 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13552else
13553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13554for as_dir in $PATH
13555do
13556 IFS=$as_save_IFS
13557 test -z "$as_dir" && as_dir=.
5213506e
RW
13558 for ac_exec_ext in '' $ac_executable_extensions; do
13559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13560 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13562 break 2
13563 fi
13564done
5213506e
RW
13565 done
13566IFS=$as_save_IFS
901119ae
KT
13567
13568fi
13569fi
13570WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13571if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13573$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13574else
5213506e
RW
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13576$as_echo "no" >&6; }
901119ae
KT
13577fi
13578
5213506e 13579
901119ae
KT
13580 fi
13581 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13582 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13583set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13585$as_echo_n "checking for $ac_word... " >&6; }
13586if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13587 $as_echo_n "(cached) " >&6
901119ae
KT
13588else
13589 if test -n "$WINDMC_FOR_TARGET"; then
13590 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13591else
13592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13593for as_dir in $PATH
13594do
13595 IFS=$as_save_IFS
13596 test -z "$as_dir" && as_dir=.
5213506e
RW
13597 for ac_exec_ext in '' $ac_executable_extensions; do
13598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13599 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13601 break 2
13602 fi
13603done
5213506e
RW
13604 done
13605IFS=$as_save_IFS
901119ae
KT
13606
13607fi
13608fi
13609WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13610if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13612$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13613else
5213506e
RW
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13615$as_echo "no" >&6; }
901119ae
KT
13616fi
13617
5213506e 13618
901119ae
KT
13619 fi
13620 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13621 done
13622fi
13623
13624if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13625 set dummy windmc
13626 if test $build = $target ; then
13627 WINDMC_FOR_TARGET="$2"
13628 else
13629 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13630 fi
1c00b503
PB
13631else
13632 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
13633fi
13634
13635else
13636 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13637fi
13638
13639
2abefe3d
PB
13640RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13641
5213506e
RW
13642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13643$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 13644if test "x${build}" != "x${host}" ; then
e8b05380
PB
13645 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13646 # We already found the complete path
172e41aa 13647 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13649$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13650 else
13651 # Canadian cross, just use what we found
5213506e
RW
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13653$as_echo "pre-installed" >&6; }
e8b05380 13654 fi
2abefe3d
PB
13655else
13656 ok=yes
13657 case " ${configdirs} " in
13658 *" binutils "*) ;;
13659 *) ok=no ;;
13660 esac
1c710c3c 13661
2abefe3d
PB
13662 if test $ok = yes; then
13663 # An in-tree tool is available and we can use it
13664 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13666$as_echo "just compiled" >&6; }
e8b05380
PB
13667 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13668 # We already found the complete path
172e41aa 13669 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13671$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13672 elif test "x$target" = "x$host"; then
13673 # We can use an host tool
13674 AR_FOR_TARGET='$(AR)'
5213506e
RW
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13676$as_echo "host tool" >&6; }
2abefe3d
PB
13677 else
13678 # We need a cross tool
5213506e
RW
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13680$as_echo "pre-installed" >&6; }
2abefe3d
PB
13681 fi
13682fi
0b0dc272 13683
5213506e
RW
13684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13685$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 13686if test "x${build}" != "x${host}" ; then
e8b05380
PB
13687 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13688 # We already found the complete path
172e41aa 13689 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13691$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13692 else
13693 # Canadian cross, just use what we found
5213506e
RW
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13695$as_echo "pre-installed" >&6; }
e8b05380 13696 fi
2abefe3d
PB
13697else
13698 ok=yes
13699 case " ${configdirs} " in
13700 *" gas "*) ;;
13701 *) ok=no ;;
13702 esac
1c710c3c 13703
2abefe3d
PB
13704 if test $ok = yes; then
13705 # An in-tree tool is available and we can use it
13706 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13708$as_echo "just compiled" >&6; }
e8b05380
PB
13709 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13710 # We already found the complete path
172e41aa 13711 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13713$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13714 elif test "x$target" = "x$host"; then
13715 # We can use an host tool
13716 AS_FOR_TARGET='$(AS)'
5213506e
RW
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13718$as_echo "host tool" >&6; }
2abefe3d
PB
13719 else
13720 # We need a cross tool
5213506e
RW
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13722$as_echo "pre-installed" >&6; }
2abefe3d
PB
13723 fi
13724fi
0b0dc272 13725
5213506e
RW
13726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13727$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 13728if test "x${build}" != "x${host}" ; then
e8b05380
PB
13729 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13730 # We already found the complete path
172e41aa 13731 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13733$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13734 else
13735 # Canadian cross, just use what we found
5213506e
RW
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13737$as_echo "pre-installed" >&6; }
e8b05380 13738 fi
2abefe3d
PB
13739else
13740 ok=yes
13741 case " ${configdirs} " in
13742 *" gcc "*) ;;
13743 *) ok=no ;;
13744 esac
1c710c3c 13745
2abefe3d
PB
13746 if test $ok = yes; then
13747 # An in-tree tool is available and we can use it
13748 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13750$as_echo "just compiled" >&6; }
e8b05380
PB
13751 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13752 # We already found the complete path
172e41aa 13753 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13755$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13756 elif test "x$target" = "x$host"; then
13757 # We can use an host tool
13758 CC_FOR_TARGET='$(CC)'
5213506e
RW
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13760$as_echo "host tool" >&6; }
2abefe3d
PB
13761 else
13762 # We need a cross tool
5213506e
RW
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13764$as_echo "pre-installed" >&6; }
2abefe3d
PB
13765 fi
13766fi
0b0dc272 13767
5213506e
RW
13768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13769$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 13770if test "x${build}" != "x${host}" ; then
e8b05380
PB
13771 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13772 # We already found the complete path
172e41aa 13773 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13775$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13776 else
13777 # Canadian cross, just use what we found
5213506e
RW
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13779$as_echo "pre-installed" >&6; }
e8b05380 13780 fi
2abefe3d
PB
13781else
13782 ok=yes
13783 case " ${configdirs} " in
13784 *" gcc "*) ;;
13785 *) ok=no ;;
13786 esac
13787 case ,${enable_languages}, in
13788 *,c++,*) ;;
13789 *) ok=no ;;
13790 esac
13791 if test $ok = yes; then
13792 # An in-tree tool is available and we can use it
2077db1b 13793 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
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13795$as_echo "just compiled" >&6; }
e8b05380
PB
13796 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13797 # We already found the complete path
172e41aa 13798 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13800$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13801 elif test "x$target" = "x$host"; then
13802 # We can use an host tool
13803 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13805$as_echo "host tool" >&6; }
2abefe3d
PB
13806 else
13807 # We need a cross tool
5213506e
RW
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13809$as_echo "pre-installed" >&6; }
2abefe3d
PB
13810 fi
13811fi
0b0dc272 13812
5213506e
RW
13813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13814$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 13815if test "x${build}" != "x${host}" ; then
e8b05380
PB
13816 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13817 # We already found the complete path
172e41aa 13818 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13820$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13821 else
13822 # Canadian cross, just use what we found
5213506e
RW
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13824$as_echo "pre-installed" >&6; }
e8b05380 13825 fi
2abefe3d
PB
13826else
13827 ok=yes
13828 case " ${configdirs} " in
13829 *" gcc "*) ;;
13830 *) ok=no ;;
13831 esac
13832 case ,${enable_languages}, in
13833 *,c++,*) ;;
13834 *) ok=no ;;
13835 esac
13836 if test $ok = yes; then
13837 # An in-tree tool is available and we can use it
2077db1b 13838 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
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13840$as_echo "just compiled" >&6; }
e8b05380
PB
13841 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13842 # We already found the complete path
172e41aa 13843 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13845$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13846 elif test "x$target" = "x$host"; then
13847 # We can use an host tool
13848 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13850$as_echo "host tool" >&6; }
2abefe3d
PB
13851 else
13852 # We need a cross tool
5213506e
RW
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13854$as_echo "pre-installed" >&6; }
2abefe3d
PB
13855 fi
13856fi
0b0dc272 13857
5213506e
RW
13858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13859$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 13860if test "x${build}" != "x${host}" ; then
e8b05380
PB
13861 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13862 # We already found the complete path
172e41aa 13863 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13865$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13866 else
13867 # Canadian cross, just use what we found
5213506e
RW
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13869$as_echo "pre-installed" >&6; }
e8b05380 13870 fi
2abefe3d
PB
13871else
13872 ok=yes
13873 case " ${configdirs} " in
13874 *" binutils "*) ;;
13875 *) ok=no ;;
13876 esac
1c710c3c 13877
2abefe3d
PB
13878 if test $ok = yes; then
13879 # An in-tree tool is available and we can use it
13880 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13882$as_echo "just compiled" >&6; }
e8b05380
PB
13883 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13884 # We already found the complete path
172e41aa 13885 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13887$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13888 elif test "x$target" = "x$host"; then
13889 # We can use an host tool
13890 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13892$as_echo "host tool" >&6; }
2abefe3d
PB
13893 else
13894 # We need a cross tool
5213506e
RW
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13896$as_echo "pre-installed" >&6; }
2abefe3d
PB
13897 fi
13898fi
0b0dc272 13899
5213506e
RW
13900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13901$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 13902if test "x${build}" != "x${host}" ; then
e8b05380
PB
13903 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13904 # We already found the complete path
172e41aa 13905 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13907$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13908 else
13909 # Canadian cross, just use what we found
5213506e
RW
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13911$as_echo "pre-installed" >&6; }
e8b05380 13912 fi
2abefe3d
PB
13913else
13914 ok=yes
13915 case " ${configdirs} " in
13916 *" gcc "*) ;;
13917 *) ok=no ;;
13918 esac
1c710c3c 13919
2abefe3d
PB
13920 if test $ok = yes; then
13921 # An in-tree tool is available and we can use it
13922 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13924$as_echo "just compiled" >&6; }
e8b05380
PB
13925 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13926 # We already found the complete path
172e41aa 13927 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13929$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13930 elif test "x$target" = "x$host"; then
13931 # We can use an host tool
13932 GCC_FOR_TARGET='$()'
5213506e
RW
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13934$as_echo "host tool" >&6; }
2abefe3d
PB
13935 else
13936 # We need a cross tool
5213506e
RW
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13938$as_echo "pre-installed" >&6; }
2abefe3d
PB
13939 fi
13940fi
0b0dc272 13941
5213506e
RW
13942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13943$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 13944if test "x${build}" != "x${host}" ; then
e8b05380
PB
13945 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13946 # We already found the complete path
172e41aa 13947 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13949$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13950 else
13951 # Canadian cross, just use what we found
5213506e
RW
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13953$as_echo "pre-installed" >&6; }
e8b05380 13954 fi
2abefe3d
PB
13955else
13956 ok=yes
13957 case " ${configdirs} " in
13958 *" gcc "*) ;;
13959 *) ok=no ;;
13960 esac
13961 case ,${enable_languages}, in
13962 *,fortran,*) ;;
13963 *) ok=no ;;
13964 esac
13965 if test $ok = yes; then
13966 # An in-tree tool is available and we can use it
13967 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13969$as_echo "just compiled" >&6; }
e8b05380
PB
13970 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13971 # We already found the complete path
172e41aa 13972 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13974$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13975 elif test "x$target" = "x$host"; then
13976 # We can use an host tool
13977 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13979$as_echo "host tool" >&6; }
2abefe3d
PB
13980 else
13981 # We need a cross tool
5213506e
RW
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13983$as_echo "pre-installed" >&6; }
2abefe3d
PB
13984 fi
13985fi
0b0dc272 13986
632e2a07
ILT
13987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13988$as_echo_n "checking where to find the target gccgo... " >&6; }
13989if test "x${build}" != "x${host}" ; then
13990 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13991 # We already found the complete path
13992 ac_dir=`dirname $GOC_FOR_TARGET`
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13994$as_echo "pre-installed in $ac_dir" >&6; }
13995 else
13996 # Canadian cross, just use what we found
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13998$as_echo "pre-installed" >&6; }
13999 fi
14000else
14001 ok=yes
14002 case " ${configdirs} " in
14003 *" gcc "*) ;;
14004 *) ok=no ;;
14005 esac
14006 case ,${enable_languages}, in
14007 *,go,*) ;;
14008 *) ok=no ;;
14009 esac
14010 if test $ok = yes; then
14011 # An in-tree tool is available and we can use it
14012 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14014$as_echo "just compiled" >&6; }
14015 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14016 # We already found the complete path
14017 ac_dir=`dirname $GOC_FOR_TARGET`
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14019$as_echo "pre-installed in $ac_dir" >&6; }
14020 elif test "x$target" = "x$host"; then
14021 # We can use an host tool
14022 GOC_FOR_TARGET='$(GOC)'
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14024$as_echo "host tool" >&6; }
14025 else
14026 # We need a cross tool
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14028$as_echo "pre-installed" >&6; }
14029 fi
14030fi
14031
5213506e
RW
14032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14033$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 14034if test "x${build}" != "x${host}" ; then
e8b05380
PB
14035 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14036 # We already found the complete path
172e41aa 14037 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14039$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14040 else
14041 # Canadian cross, just use what we found
5213506e
RW
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14043$as_echo "pre-installed" >&6; }
e8b05380 14044 fi
2abefe3d
PB
14045else
14046 ok=yes
14047 case " ${configdirs} " in
14048 *" ld "*) ;;
14049 *) ok=no ;;
14050 esac
1c710c3c 14051
2abefe3d
PB
14052 if test $ok = yes; then
14053 # An in-tree tool is available and we can use it
14054 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14056$as_echo "just compiled" >&6; }
e8b05380
PB
14057 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14058 # We already found the complete path
172e41aa 14059 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14061$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14062 elif test "x$target" = "x$host"; then
14063 # We can use an host tool
14064 LD_FOR_TARGET='$(LD)'
5213506e
RW
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14066$as_echo "host tool" >&6; }
2abefe3d
PB
14067 else
14068 # We need a cross tool
5213506e
RW
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14070$as_echo "pre-installed" >&6; }
2abefe3d
PB
14071 fi
14072fi
0b0dc272 14073
5213506e
RW
14074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14075$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 14076if test "x${build}" != "x${host}" ; then
e8b05380
PB
14077 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14078 # We already found the complete path
172e41aa 14079 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14081$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14082 else
14083 # Canadian cross, just use what we found
5213506e
RW
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14085$as_echo "pre-installed" >&6; }
e8b05380 14086 fi
2abefe3d 14087else
e8b05380
PB
14088 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14089 # We already found the complete path
172e41aa 14090 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14092$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 14093 elif test "x$target" = "x$host"; then
2abefe3d
PB
14094 # We can use an host tool
14095 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14097$as_echo "host tool" >&6; }
2abefe3d
PB
14098 else
14099 # We need a cross tool
5213506e
RW
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14101$as_echo "pre-installed" >&6; }
2abefe3d
PB
14102 fi
14103fi
0b0dc272 14104
5213506e
RW
14105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14106$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 14107if test "x${build}" != "x${host}" ; then
e8b05380
PB
14108 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14109 # We already found the complete path
172e41aa 14110 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14112$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14113 else
14114 # Canadian cross, just use what we found
5213506e
RW
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14116$as_echo "pre-installed" >&6; }
e8b05380 14117 fi
2abefe3d
PB
14118else
14119 ok=yes
14120 case " ${configdirs} " in
14121 *" binutils "*) ;;
14122 *) ok=no ;;
14123 esac
1c710c3c 14124
2abefe3d
PB
14125 if test $ok = yes; then
14126 # An in-tree tool is available and we can use it
14127 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14129$as_echo "just compiled" >&6; }
e8b05380
PB
14130 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14131 # We already found the complete path
172e41aa 14132 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14134$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14135 elif test "x$target" = "x$host"; then
14136 # We can use an host tool
14137 NM_FOR_TARGET='$(NM)'
5213506e
RW
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14139$as_echo "host tool" >&6; }
2abefe3d
PB
14140 else
14141 # We need a cross tool
5213506e
RW
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14143$as_echo "pre-installed" >&6; }
2abefe3d
PB
14144 fi
14145fi
0b0dc272 14146
9bccfdf5
AP
14147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14148$as_echo_n "checking where to find the target objcopy... " >&6; }
14149if test "x${build}" != "x${host}" ; then
14150 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14151 # We already found the complete path
14152 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14154$as_echo "pre-installed in $ac_dir" >&6; }
14155 else
14156 # Canadian cross, just use what we found
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14158$as_echo "pre-installed" >&6; }
14159 fi
14160else
14161 ok=yes
14162 case " ${configdirs} " in
14163 *" binutils "*) ;;
14164 *) ok=no ;;
14165 esac
14166
14167 if test $ok = yes; then
14168 # An in-tree tool is available and we can use it
14169 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14171$as_echo "just compiled" >&6; }
14172 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14173 # We already found the complete path
14174 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14176$as_echo "pre-installed in $ac_dir" >&6; }
14177 elif test "x$target" = "x$host"; then
14178 # We can use an host tool
ec8fd1c0 14179 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
9bccfdf5
AP
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14181$as_echo "host tool" >&6; }
14182 else
14183 # We need a cross tool
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14185$as_echo "pre-installed" >&6; }
14186 fi
14187fi
14188
5213506e
RW
14189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14190$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 14191if test "x${build}" != "x${host}" ; then
e8b05380
PB
14192 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14193 # We already found the complete path
172e41aa 14194 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14196$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14197 else
14198 # Canadian cross, just use what we found
5213506e
RW
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14200$as_echo "pre-installed" >&6; }
e8b05380 14201 fi
2abefe3d
PB
14202else
14203 ok=yes
14204 case " ${configdirs} " in
14205 *" binutils "*) ;;
14206 *) ok=no ;;
14207 esac
1c710c3c 14208
2abefe3d
PB
14209 if test $ok = yes; then
14210 # An in-tree tool is available and we can use it
14211 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14213$as_echo "just compiled" >&6; }
e8b05380
PB
14214 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14215 # We already found the complete path
172e41aa 14216 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14218$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14219 elif test "x$target" = "x$host"; then
14220 # We can use an host tool
14221 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14223$as_echo "host tool" >&6; }
2abefe3d
PB
14224 else
14225 # We need a cross tool
5213506e
RW
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14227$as_echo "pre-installed" >&6; }
2abefe3d
PB
14228 fi
14229fi
0b0dc272 14230
5213506e
RW
14231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14232$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 14233if test "x${build}" != "x${host}" ; then
e8b05380
PB
14234 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14235 # We already found the complete path
172e41aa 14236 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14238$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14239 else
14240 # Canadian cross, just use what we found
5213506e
RW
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14242$as_echo "pre-installed" >&6; }
e8b05380 14243 fi
2abefe3d
PB
14244else
14245 ok=yes
14246 case " ${configdirs} " in
14247 *" binutils "*) ;;
14248 *) ok=no ;;
14249 esac
1c710c3c 14250
2abefe3d
PB
14251 if test $ok = yes; then
14252 # An in-tree tool is available and we can use it
14253 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14255$as_echo "just compiled" >&6; }
e8b05380
PB
14256 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14257 # We already found the complete path
172e41aa 14258 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14260$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14261 elif test "x$target" = "x$host"; then
14262 # We can use an host tool
14263 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14265$as_echo "host tool" >&6; }
2abefe3d
PB
14266 else
14267 # We need a cross tool
5213506e
RW
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14269$as_echo "pre-installed" >&6; }
2abefe3d
PB
14270 fi
14271fi
0b0dc272 14272
e7a82751
RM
14273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14274$as_echo_n "checking where to find the target readelf... " >&6; }
14275if test "x${build}" != "x${host}" ; then
14276 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14277 # We already found the complete path
14278 ac_dir=`dirname $READELF_FOR_TARGET`
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14280$as_echo "pre-installed in $ac_dir" >&6; }
14281 else
14282 # Canadian cross, just use what we found
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14284$as_echo "pre-installed" >&6; }
14285 fi
14286else
14287 ok=yes
14288 case " ${configdirs} " in
14289 *" binutils "*) ;;
14290 *) ok=no ;;
14291 esac
14292
14293 if test $ok = yes; then
14294 # An in-tree tool is available and we can use it
14295 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14297$as_echo "just compiled" >&6; }
14298 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14299 # We already found the complete path
14300 ac_dir=`dirname $READELF_FOR_TARGET`
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14302$as_echo "pre-installed in $ac_dir" >&6; }
14303 elif test "x$target" = "x$host"; then
14304 # We can use an host tool
14305 READELF_FOR_TARGET='$(READELF)'
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14307$as_echo "host tool" >&6; }
14308 else
14309 # We need a cross tool
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14311$as_echo "pre-installed" >&6; }
14312 fi
14313fi
14314
5213506e
RW
14315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14316$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 14317if test "x${build}" != "x${host}" ; then
e8b05380
PB
14318 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14319 # We already found the complete path
172e41aa 14320 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14322$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14323 else
14324 # Canadian cross, just use what we found
5213506e
RW
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14326$as_echo "pre-installed" >&6; }
e8b05380 14327 fi
2abefe3d
PB
14328else
14329 ok=yes
14330 case " ${configdirs} " in
14331 *" binutils "*) ;;
14332 *) ok=no ;;
14333 esac
1c710c3c 14334
2abefe3d
PB
14335 if test $ok = yes; then
14336 # An in-tree tool is available and we can use it
455c8f48 14337 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14339$as_echo "just compiled" >&6; }
e8b05380
PB
14340 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14341 # We already found the complete path
172e41aa 14342 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14344$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14345 elif test "x$target" = "x$host"; then
14346 # We can use an host tool
14347 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14349$as_echo "host tool" >&6; }
2abefe3d
PB
14350 else
14351 # We need a cross tool
5213506e
RW
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14353$as_echo "pre-installed" >&6; }
2abefe3d
PB
14354 fi
14355fi
0b0dc272 14356
5213506e
RW
14357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14358$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 14359if test "x${build}" != "x${host}" ; then
e8b05380
PB
14360 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14361 # We already found the complete path
172e41aa 14362 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14364$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14365 else
14366 # Canadian cross, just use what we found
5213506e
RW
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14368$as_echo "pre-installed" >&6; }
e8b05380 14369 fi
2abefe3d
PB
14370else
14371 ok=yes
14372 case " ${configdirs} " in
14373 *" binutils "*) ;;
14374 *) ok=no ;;
14375 esac
1c710c3c 14376
2abefe3d
PB
14377 if test $ok = yes; then
14378 # An in-tree tool is available and we can use it
14379 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14381$as_echo "just compiled" >&6; }
e8b05380
PB
14382 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14383 # We already found the complete path
172e41aa 14384 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14386$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14387 elif test "x$target" = "x$host"; then
14388 # We can use an host tool
14389 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14391$as_echo "host tool" >&6; }
2abefe3d
PB
14392 else
14393 # We need a cross tool
5213506e
RW
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14395$as_echo "pre-installed" >&6; }
2abefe3d 14396 fi
671aa708 14397fi
be912515 14398
5213506e
RW
14399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14400$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
14401if test "x${build}" != "x${host}" ; then
14402 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14403 # We already found the complete path
14404 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14406$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14407 else
14408 # Canadian cross, just use what we found
5213506e
RW
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14410$as_echo "pre-installed" >&6; }
901119ae
KT
14411 fi
14412else
14413 ok=yes
14414 case " ${configdirs} " in
14415 *" binutils "*) ;;
14416 *) ok=no ;;
14417 esac
14418
14419 if test $ok = yes; then
14420 # An in-tree tool is available and we can use it
14421 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14423$as_echo "just compiled" >&6; }
901119ae
KT
14424 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14425 # We already found the complete path
14426 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14428$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14429 elif test "x$target" = "x$host"; then
14430 # We can use an host tool
14431 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14433$as_echo "host tool" >&6; }
901119ae
KT
14434 else
14435 # We need a cross tool
5213506e
RW
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14437$as_echo "pre-installed" >&6; }
901119ae
KT
14438 fi
14439fi
14440
be912515
NN
14441
14442
2abefe3d 14443
0b0dc272 14444
671aa708
NN
14445# Certain tools may need extra flags.
14446AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14447RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14448NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14449
2abefe3d
PB
14450# When building target libraries, except in a Canadian cross, we use
14451# the same toolchain as the compiler we just built.
14452COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14453COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14454COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14455if test $host = $build; then
14456 case " $configdirs " in
14457 *" gcc "*)
14458 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14459 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14460 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14461 ;;
14462 esac
14463fi
14464
14465
14466
14467
14468
5213506e
RW
14469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14470$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14471# Check whether --enable-maintainer-mode was given.
14472if test "${enable_maintainer_mode+set}" = set; then :
14473 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
14474else
14475 USE_MAINTAINER_MODE=no
5213506e
RW
14476fi
14477
14478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14479$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
14480
14481
14482if test "$USE_MAINTAINER_MODE" = yes; then
14483 MAINTAINER_MODE_TRUE=
14484 MAINTAINER_MODE_FALSE='#'
14485else
14486 MAINTAINER_MODE_TRUE='#'
14487 MAINTAINER_MODE_FALSE=
1c710c3c 14488fi
ee03dc5e
AO
14489MAINT=$MAINTAINER_MODE_TRUE
14490
2805b53a
NN
14491# ---------------------
14492# GCC bootstrap support
14493# ---------------------
14494
14495# Stage specific cflags for build.
14496stage1_cflags="-g"
14497case $build in
14498 vax-*-*)
14499 case ${GCC} in
14500 yes) stage1_cflags="-g -Wa,-J" ;;
14501 *) stage1_cflags="-g -J" ;;
14502 esac ;;
2805b53a
NN
14503esac
14504
0b50988a 14505
2805b53a 14506
8efea775 14507# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
14508# Check whether --enable-stage1-checking was given.
14509if test "${enable_stage1_checking+set}" = set; then :
14510 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 14511else
e643dc23 14512 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
c10b5ea0
JJ
14513 # For --disable-checking or implicit --enable-checking=release, avoid
14514 # setting --enable-checking=gc in the default stage1 checking for LTO
14515 # bootstraps. See PR62077.
c10b5ea0
JJ
14516 case $BUILD_CONFIG in
14517 *lto*)
7db11a5a
JJ
14518 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14519 *)
14520 stage1_checking=--enable-checking=yes,types;;
c10b5ea0 14521 esac
7db11a5a
JJ
14522 if test "x$enable_checking" = x && \
14523 test -d ${srcdir}/gcc && \
14524 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
c100769b 14525 stage1_checking=--enable-checking=yes,types,extra
7db11a5a 14526 fi
8efea775 14527else
e643dc23 14528 stage1_checking=--enable-checking=$enable_checking,types
8efea775 14529fi
5213506e 14530fi
8efea775
PB
14531
14532
2aeb72e9 14533
5213506e
RW
14534# Enable -Werror in bootstrap stage2 and later.
14535# Check whether --enable-werror was given.
14536if test "${enable_werror+set}" = set; then :
14537 enableval=$enable_werror;
2805b53a 14538else
416cfb5e 14539 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 14540 enable_werror=yes
88fceb68
PB
14541else
14542 enable_werror=no
14543fi
5213506e
RW
14544fi
14545
09a9c095
NN
14546case ${enable_werror} in
14547 yes) stage2_werror_flag="--enable-werror-always" ;;
14548 *) stage2_werror_flag="" ;;
2805b53a
NN
14549esac
14550
14551
459260ec
DM
14552# Enable --enable-host-shared.
14553# Check whether --enable-host-shared was given.
14554if test "${enable_host_shared+set}" = set; then :
14555 enableval=$enable_host_shared; host_shared=$enableval
14556else
14557 host_shared=no
14558fi
14559
14560
14561
231d020b
DM
14562# PR jit/64780: Require the user to explicitly specify
14563# --enable-host-shared if the jit is enabled, hinting
14564# that they might want to do a separate configure/build of
14565# the jit, to avoid users from slowing down the rest of the
14566# compiler by enabling the jit.
14567if test ${host_shared} = "no" ; then
14568 case "${enable_languages}" in
14569 *jit*)
14570 as_fn_error "
14571Enabling language \"jit\" requires --enable-host-shared.
14572
14573--enable-host-shared typically slows the rest of the compiler down by
14574a few %, so you must explicitly enable it.
14575
14576If you want to build both the jit and the regular compiler, it is often
14577best to do this via two separate configure/builds, in separate
14578directories, to avoid imposing the performance cost of
14579--enable-host-shared on the regular compiler." "$LINENO" 5
14580 ;;
14581 *)
14582 ;;
14583 esac
14584fi
14585
f2689b09
SE
14586# Specify what files to not compare during bootstrap.
14587
14588compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14589case "$target" in
14590 hppa*64*-*-hpux*) ;;
14591 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
d91491e5 14592 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
f2689b09
SE
14593esac
14594
14595
5213506e
RW
14596ac_config_files="$ac_config_files Makefile"
14597
1c710c3c 14598cat >confcache <<\_ACEOF
671aa708
NN
14599# This file is a shell script that caches the results of configure
14600# tests run on this system so they can be shared between configure
1c710c3c
DJ
14601# scripts and configure runs, see configure's option --config-cache.
14602# It is not useful on other systems. If it contains results you don't
14603# want to keep, you may remove or edit it.
671aa708 14604#
1c710c3c
DJ
14605# config.status only pays attention to the cache file if you give it
14606# the --recheck option to rerun configure.
671aa708 14607#
1c710c3c
DJ
14608# `ac_cv_env_foo' variables (set or unset) will be overridden when
14609# loading this file, other *unset* `ac_cv_foo' will be assigned the
14610# following values.
14611
14612_ACEOF
14613
671aa708
NN
14614# The following way of writing the cache mishandles newlines in values,
14615# but we know of no workaround that is simple, portable, and efficient.
5213506e 14616# So, we kill variables containing newlines.
671aa708
NN
14617# Ultrix sh set writes to stderr and can't be redirected directly,
14618# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
14619(
14620 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14621 eval ac_val=\$$ac_var
14622 case $ac_val in #(
14623 *${as_nl}*)
14624 case $ac_var in #(
14625 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14626$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14627 esac
14628 case $ac_var in #(
14629 _ | IFS | as_nl) ;; #(
14630 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14631 *) { eval $ac_var=; unset $ac_var;} ;;
14632 esac ;;
14633 esac
14634 done
14635
1c710c3c 14636 (set) 2>&1 |
5213506e
RW
14637 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14638 *${as_nl}ac_space=\ *)
14639 # `set' does not quote correctly, so add quotes: double-quote
14640 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
14641 sed -n \
14642 "s/'/'\\\\''/g;
14643 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 14644 ;; #(
1c710c3c
DJ
14645 *)
14646 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 14647 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 14648 ;;
5213506e
RW
14649 esac |
14650 sort
14651) |
1c710c3c 14652 sed '
5213506e 14653 /^ac_cv_env_/b end
1c710c3c 14654 t clear
5213506e 14655 :clear
1c710c3c
DJ
14656 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14657 t end
5213506e
RW
14658 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14659 :end' >>confcache
14660if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14661 if test -w "$cache_file"; then
14662 test "x$cache_file" != "x/dev/null" &&
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14664$as_echo "$as_me: updating cache $cache_file" >&6;}
1c710c3c 14665 cat confcache >$cache_file
671aa708 14666 else
5213506e
RW
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14668$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 14669 fi
4977bab6 14670fi
671aa708 14671rm -f confcache
79c06341 14672
671aa708
NN
14673test "x$prefix" = xNONE && prefix=$ac_default_prefix
14674# Let make expand exec_prefix.
14675test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 14676
671aa708
NN
14677# Transform confdefs.h into DEFS.
14678# Protect against shell expansion while executing Makefile rules.
14679# Protect against Makefile macro expansion.
1c710c3c
DJ
14680#
14681# If the first sed substitution is executed (which looks for macros that
5213506e 14682# take arguments), then branch to the quote section. Otherwise,
1c710c3c 14683# look for a macro that doesn't take arguments.
5213506e
RW
14684ac_script='
14685:mline
14686/\\$/{
14687 N
14688 s,\\\n,,
14689 b mline
14690}
1c710c3c 14691t clear
5213506e
RW
14692:clear
14693s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14694t quote
5213506e 14695s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14696t quote
5213506e
RW
14697b any
14698:quote
14699s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14700s/\[/\\&/g
14701s/\]/\\&/g
14702s/\$/$$/g
14703H
14704:any
14705${
14706 g
14707 s/^\n//
14708 s/\n/ /g
14709 p
14710}
14711'
14712DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
14713
14714
14715ac_libobjs=
14716ac_ltlibobjs=
14717for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14718 # 1. Remove the extension, and $U if already installed.
5213506e
RW
14719 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14720 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14721 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14722 # will be set to the directory where LIBOBJS objects are built.
14723 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14724 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
14725done
14726LIBOBJS=$ac_libobjs
fb0103e5 14727
1c710c3c 14728LTLIBOBJS=$ac_ltlibobjs
0b0dc272 14729
af71363e 14730
1c710c3c
DJ
14731
14732: ${CONFIG_STATUS=./config.status}
5213506e 14733ac_write_fail=0
1c710c3c
DJ
14734ac_clean_files_save=$ac_clean_files
14735ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
14736{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14737$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14738as_write_fail=0
14739cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
14740#! $SHELL
14741# Generated by $as_me.
671aa708 14742# Run this file to recreate the current configuration.
671aa708 14743# Compiler output produced by configure, useful for debugging
1c710c3c 14744# configure, is in config.log if it exists.
0b0dc272 14745
1c710c3c
DJ
14746debug=false
14747ac_cs_recheck=false
14748ac_cs_silent=false
1c710c3c 14749
5213506e
RW
14750SHELL=\${CONFIG_SHELL-$SHELL}
14751export SHELL
14752_ASEOF
14753cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14754## -------------------- ##
14755## M4sh Initialization. ##
14756## -------------------- ##
14757
14758# Be more Bourne compatible
14759DUALCASE=1; export DUALCASE # for MKS sh
14760if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
14761 emulate sh
14762 NULLCMD=:
5213506e 14763 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
14764 # is contrary to our usage. Disable this feature.
14765 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
14766 setopt NO_GLOB_SUBST
14767else
14768 case `(set -o) 2>/dev/null` in #(
14769 *posix*) :
14770 set -o posix ;; #(
14771 *) :
14772 ;;
14773esac
1c710c3c 14774fi
1c710c3c 14775
5213506e
RW
14776
14777as_nl='
14778'
14779export as_nl
14780# Printing a long string crashes Solaris 7 /usr/bin/printf.
14781as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14782as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14783as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14784# Prefer a ksh shell builtin over an external printf program on Solaris,
14785# but without wasting forks for bash or zsh.
14786if test -z "$BASH_VERSION$ZSH_VERSION" \
14787 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14788 as_echo='print -r --'
14789 as_echo_n='print -rn --'
14790elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14791 as_echo='printf %s\n'
14792 as_echo_n='printf %s'
14793else
14794 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14795 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14796 as_echo_n='/usr/ucb/echo -n'
14797 else
14798 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14799 as_echo_n_body='eval
14800 arg=$1;
14801 case $arg in #(
14802 *"$as_nl"*)
14803 expr "X$arg" : "X\\(.*\\)$as_nl";
14804 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14805 esac;
14806 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14807 '
14808 export as_echo_n_body
14809 as_echo_n='sh -c $as_echo_n_body as_echo'
14810 fi
14811 export as_echo_body
14812 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
14813fi
14814
5213506e
RW
14815# The user is always right.
14816if test "${PATH_SEPARATOR+set}" != set; then
14817 PATH_SEPARATOR=:
14818 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14819 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14820 PATH_SEPARATOR=';'
14821 }
14822fi
14823
14824
14825# IFS
14826# We need space, tab and new line, in precisely that order. Quoting is
14827# there to prevent editors from complaining about space-tab.
14828# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14829# splitting by setting IFS to empty value.)
14830IFS=" "" $as_nl"
14831
14832# Find who we are. Look in the path if we contain no directory separator.
14833case $0 in #((
14834 *[\\/]* ) as_myself=$0 ;;
14835 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14836for as_dir in $PATH
14837do
14838 IFS=$as_save_IFS
14839 test -z "$as_dir" && as_dir=.
14840 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14841 done
14842IFS=$as_save_IFS
14843
14844 ;;
14845esac
14846# We did not find ourselves, most probably we were run as `sh COMMAND'
14847# in which case we are not to be found in the path.
14848if test "x$as_myself" = x; then
14849 as_myself=$0
14850fi
14851if test ! -f "$as_myself"; then
14852 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14853 exit 1
14854fi
1c710c3c 14855
5213506e
RW
14856# Unset variables that we do not need and which cause bugs (e.g. in
14857# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14858# suppresses any "Segmentation fault" message there. '((' could
14859# trigger a bug in pdksh 5.2.14.
14860for as_var in BASH_ENV ENV MAIL MAILPATH
14861do eval test x\${$as_var+set} = xset \
14862 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14863done
1c710c3c
DJ
14864PS1='$ '
14865PS2='> '
14866PS4='+ '
14867
14868# NLS nuisances.
5213506e
RW
14869LC_ALL=C
14870export LC_ALL
14871LANGUAGE=C
14872export LANGUAGE
14873
14874# CDPATH.
14875(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14876
14877
14878# as_fn_error ERROR [LINENO LOG_FD]
14879# ---------------------------------
14880# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14881# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14882# script with status $?, using 1 if that was 0.
14883as_fn_error ()
14884{
14885 as_status=$?; test $as_status -eq 0 && as_status=1
14886 if test "$3"; then
14887 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14888 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1c710c3c 14889 fi
5213506e
RW
14890 $as_echo "$as_me: error: $1" >&2
14891 as_fn_exit $as_status
14892} # as_fn_error
14893
14894
14895# as_fn_set_status STATUS
14896# -----------------------
14897# Set $? to STATUS, without forking.
14898as_fn_set_status ()
14899{
14900 return $1
14901} # as_fn_set_status
14902
14903# as_fn_exit STATUS
14904# -----------------
14905# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14906as_fn_exit ()
14907{
14908 set +e
14909 as_fn_set_status $1
14910 exit $1
14911} # as_fn_exit
14912
14913# as_fn_unset VAR
14914# ---------------
14915# Portably unset VAR.
14916as_fn_unset ()
14917{
14918 { eval $1=; unset $1;}
14919}
14920as_unset=as_fn_unset
14921# as_fn_append VAR VALUE
14922# ----------------------
14923# Append the text in VALUE to the end of the definition contained in VAR. Take
14924# advantage of any shell optimizations that allow amortized linear growth over
14925# repeated appends, instead of the typical quadratic growth present in naive
14926# implementations.
14927if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14928 eval 'as_fn_append ()
14929 {
14930 eval $1+=\$2
14931 }'
14932else
14933 as_fn_append ()
14934 {
14935 eval $1=\$$1\$2
14936 }
14937fi # as_fn_append
14938
14939# as_fn_arith ARG...
14940# ------------------
14941# Perform arithmetic evaluation on the ARGs, and store the result in the
14942# global $as_val. Take advantage of shells that can avoid forks. The arguments
14943# must be portable across $(()) and expr.
14944if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14945 eval 'as_fn_arith ()
14946 {
14947 as_val=$(( $* ))
14948 }'
14949else
14950 as_fn_arith ()
14951 {
14952 as_val=`expr "$@" || test $? -eq 1`
14953 }
14954fi # as_fn_arith
14955
1c710c3c 14956
5213506e
RW
14957if expr a : '\(a\)' >/dev/null 2>&1 &&
14958 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
14959 as_expr=expr
14960else
14961 as_expr=false
14962fi
14963
5213506e 14964if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
14965 as_basename=basename
14966else
14967 as_basename=false
14968fi
14969
5213506e
RW
14970if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14971 as_dirname=dirname
14972else
14973 as_dirname=false
14974fi
1c710c3c 14975
5213506e 14976as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
14977$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14978 X"$0" : 'X\(//\)$' \| \
5213506e
RW
14979 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14980$as_echo X/"$0" |
14981 sed '/^.*\/\([^/][^/]*\)\/*$/{
14982 s//\1/
14983 q
14984 }
14985 /^X\/\(\/\/\)$/{
14986 s//\1/
14987 q
14988 }
14989 /^X\/\(\/\).*/{
14990 s//\1/
14991 q
14992 }
14993 s/.*/./; q'`
2aeb72e9 14994
2aeb72e9
DD
14995# Avoid depending upon Character Ranges.
14996as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14997as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14998as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14999as_cr_digits='0123456789'
15000as_cr_alnum=$as_cr_Letters$as_cr_digits
15001
5213506e
RW
15002ECHO_C= ECHO_N= ECHO_T=
15003case `echo -n x` in #(((((
15004-n*)
15005 case `echo 'xy\c'` in
15006 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15007 xy) ECHO_C='\c';;
15008 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15009 ECHO_T=' ';;
15010 esac;;
15011*)
15012 ECHO_N='-n';;
1c710c3c
DJ
15013esac
15014
5213506e
RW
15015rm -f conf$$ conf$$.exe conf$$.file
15016if test -d conf$$.dir; then
15017 rm -f conf$$.dir/conf$$.file
1c710c3c 15018else
5213506e
RW
15019 rm -f conf$$.dir
15020 mkdir conf$$.dir 2>/dev/null
1c710c3c 15021fi
5213506e
RW
15022if (echo >conf$$.file) 2>/dev/null; then
15023 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 15024 as_ln_s='ln -s'
5213506e
RW
15025 # ... but there are two gotchas:
15026 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15027 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15028 # In both cases, we have to default to `cp -p'.
15029 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15030 as_ln_s='cp -p'
15031 elif ln conf$$.file conf$$ 2>/dev/null; then
15032 as_ln_s=ln
15033 else
15034 as_ln_s='cp -p'
2aeb72e9 15035 fi
1c710c3c
DJ
15036else
15037 as_ln_s='cp -p'
15038fi
5213506e
RW
15039rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15040rmdir conf$$.dir 2>/dev/null
15041
15042
15043# as_fn_mkdir_p
15044# -------------
15045# Create "$as_dir" as a directory, including parents if necessary.
15046as_fn_mkdir_p ()
15047{
15048
15049 case $as_dir in #(
15050 -*) as_dir=./$as_dir;;
15051 esac
15052 test -d "$as_dir" || eval $as_mkdir_p || {
15053 as_dirs=
15054 while :; do
15055 case $as_dir in #(
15056 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15057 *) as_qdir=$as_dir;;
15058 esac
15059 as_dirs="'$as_qdir' $as_dirs"
15060 as_dir=`$as_dirname -- "$as_dir" ||
15061$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15062 X"$as_dir" : 'X\(//\)[^/]' \| \
15063 X"$as_dir" : 'X\(//\)$' \| \
15064 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15065$as_echo X"$as_dir" |
15066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15067 s//\1/
15068 q
15069 }
15070 /^X\(\/\/\)[^/].*/{
15071 s//\1/
15072 q
15073 }
15074 /^X\(\/\/\)$/{
15075 s//\1/
15076 q
15077 }
15078 /^X\(\/\).*/{
15079 s//\1/
15080 q
15081 }
15082 s/.*/./; q'`
15083 test -d "$as_dir" && break
15084 done
15085 test -z "$as_dirs" || eval "mkdir $as_dirs"
15086 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15087
1c710c3c 15088
5213506e 15089} # as_fn_mkdir_p
1c710c3c 15090if mkdir -p . 2>/dev/null; then
5213506e 15091 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
15092else
15093 test -d ./-p && rmdir ./-p
15094 as_mkdir_p=false
15095fi
15096
5213506e
RW
15097if test -x / >/dev/null 2>&1; then
15098 as_test_x='test -x'
15099else
15100 if ls -dL / >/dev/null 2>&1; then
15101 as_ls_L_option=L
15102 else
15103 as_ls_L_option=
15104 fi
15105 as_test_x='
15106 eval sh -c '\''
15107 if test -d "$1"; then
15108 test -d "$1/.";
15109 else
15110 case $1 in #(
15111 -*)set "./$1";;
15112 esac;
15113 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15114 ???[sx]*):;;*)false;;esac;fi
15115 '\'' sh
15116 '
15117fi
15118as_executable_p=$as_test_x
1c710c3c
DJ
15119
15120# Sed expression to map a string onto a valid CPP name.
15121as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15122
15123# Sed expression to map a string onto a valid variable name.
15124as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15125
15126
1c710c3c 15127exec 6>&1
5213506e
RW
15128## ----------------------------------- ##
15129## Main body of $CONFIG_STATUS script. ##
15130## ----------------------------------- ##
15131_ASEOF
15132test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15133
15134cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15135# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 15136# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
15137# values after options handling.
15138ac_log="
1c710c3c 15139This file was extended by $as_me, which was
5213506e 15140generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
15141
15142 CONFIG_FILES = $CONFIG_FILES
15143 CONFIG_HEADERS = $CONFIG_HEADERS
15144 CONFIG_LINKS = $CONFIG_LINKS
15145 CONFIG_COMMANDS = $CONFIG_COMMANDS
15146 $ $0 $@
15147
5213506e
RW
15148on `(hostname || uname -n) 2>/dev/null | sed 1q`
15149"
15150
1c710c3c
DJ
15151_ACEOF
15152
5213506e
RW
15153case $ac_config_files in *"
15154"*) set x $ac_config_files; shift; ac_config_files=$*;;
15155esac
1c710c3c 15156
2aeb72e9 15157
2aeb72e9 15158
5213506e
RW
15159cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15160# Files that config.status was made for.
15161config_files="$ac_config_files"
1c710c3c 15162
5213506e 15163_ACEOF
2aeb72e9 15164
5213506e 15165cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 15166ac_cs_usage="\
5213506e
RW
15167\`$as_me' instantiates files and other configuration actions
15168from templates according to the current configuration. Unless the files
15169and actions are specified as TAGs, all are instantiated by default.
1c710c3c 15170
5213506e 15171Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
15172
15173 -h, --help print this help, then exit
5213506e
RW
15174 -V, --version print version number and configuration settings, then exit
15175 -q, --quiet, --silent
15176 do not print progress messages
1c710c3c
DJ
15177 -d, --debug don't remove temporary files
15178 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
15179 --file=FILE[:TEMPLATE]
15180 instantiate the configuration file FILE
1c710c3c
DJ
15181
15182Configuration files:
15183$config_files
15184
5213506e 15185Report bugs to the package provider."
2aeb72e9 15186
5213506e
RW
15187_ACEOF
15188cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c
DJ
15189ac_cs_version="\\
15190config.status
5213506e
RW
15191configured by $0, generated by GNU Autoconf 2.64,
15192 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 15193
5213506e 15194Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
15195This config.status script is free software; the Free Software Foundation
15196gives unlimited permission to copy, distribute and modify it."
5213506e
RW
15197
15198ac_pwd='$ac_pwd'
15199srcdir='$srcdir'
15200INSTALL='$INSTALL'
87264276 15201AWK='$AWK'
5213506e 15202test -n "\$AWK" || AWK=awk
1c710c3c
DJ
15203_ACEOF
15204
5213506e
RW
15205cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15206# The default lists apply if the user does not specify any file.
1c710c3c
DJ
15207ac_need_defaults=:
15208while test $# != 0
a4b9e93e 15209do
1c710c3c
DJ
15210 case $1 in
15211 --*=*)
5213506e
RW
15212 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15213 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
15214 ac_shift=:
15215 ;;
5213506e 15216 *)
1c710c3c
DJ
15217 ac_option=$1
15218 ac_optarg=$2
15219 ac_shift=shift
15220 ;;
1c710c3c
DJ
15221 esac
15222
15223 case $ac_option in
15224 # Handling of the options.
671aa708 15225 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 15226 ac_cs_recheck=: ;;
5213506e
RW
15227 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15228 $as_echo "$ac_cs_version"; exit ;;
15229 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
15230 debug=: ;;
15231 --file | --fil | --fi | --f )
15232 $ac_shift
5213506e
RW
15233 case $ac_optarg in
15234 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15235 esac
15236 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 15237 ac_need_defaults=false;;
5213506e
RW
15238 --he | --h | --help | --hel | -h )
15239 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
15240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15241 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15242 ac_cs_silent=: ;;
15243
15244 # This is an error.
5213506e
RW
15245 -*) as_fn_error "unrecognized option: \`$1'
15246Try \`$0 --help' for more information." ;;
1c710c3c 15247
5213506e
RW
15248 *) as_fn_append ac_config_targets " $1"
15249 ac_need_defaults=false ;;
1c710c3c 15250
0b0dc272 15251 esac
1c710c3c 15252 shift
0b0dc272
AM
15253done
15254
1c710c3c 15255ac_configure_extra_args=
0b0dc272 15256
1c710c3c
DJ
15257if $ac_cs_silent; then
15258 exec 6>/dev/null
15259 ac_configure_extra_args="$ac_configure_extra_args --silent"
15260fi
0b0dc272 15261
1c710c3c 15262_ACEOF
5213506e 15263cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 15264if \$ac_cs_recheck; then
5213506e
RW
15265 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15266 shift
15267 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15268 CONFIG_SHELL='$SHELL'
15269 export CONFIG_SHELL
15270 exec "\$@"
1c710c3c
DJ
15271fi
15272
15273_ACEOF
5213506e
RW
15274cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15275exec 5>>config.log
15276{
15277 echo
15278 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15279## Running $as_me. ##
15280_ASBOX
15281 $as_echo "$ac_log"
15282} >&5
1c710c3c 15283
5213506e
RW
15284_ACEOF
15285cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
15286#
15287# INIT-COMMANDS
15288#
15289extrasub_build="$extrasub_build"
15290 extrasub_host="$extrasub_host"
15291 extrasub_target="$extrasub_target"
15292
5213506e 15293_ACEOF
1c710c3c 15294
5213506e 15295cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 15296
5213506e 15297# Handling of arguments.
1c710c3c
DJ
15298for ac_config_target in $ac_config_targets
15299do
5213506e
RW
15300 case $ac_config_target in
15301 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15302
15303 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
15304 esac
15305done
15306
5213506e 15307
1c710c3c
DJ
15308# If the user did not use the arguments to specify the items to instantiate,
15309# then the envvar interface is used. Set only those that are not.
15310# We use the long form for the default assignment because of an extremely
15311# bizarre bug on SunOS 4.1.3.
15312if $ac_need_defaults; then
15313 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15314fi
15315
15316# Have a temporary directory for convenience. Make it in the build tree
5213506e 15317# simply because there is no reason against having it here, and in addition,
1c710c3c 15318# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
15319# Hook for its removal unless debugging.
15320# Note that there is a small window in which the directory will not be cleaned:
15321# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
15322$debug ||
15323{
5213506e
RW
15324 tmp=
15325 trap 'exit_status=$?
15326 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15327' 0
15328 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 15329}
1c710c3c
DJ
15330# Create a (secure) tmp directory for tmp files.
15331
15332{
5213506e 15333 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
15334 test -n "$tmp" && test -d "$tmp"
15335} ||
15336{
5213506e
RW
15337 tmp=./conf$$-$RANDOM
15338 (umask 077 && mkdir "$tmp")
15339} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15340
15341# Set up the scripts for CONFIG_FILES section.
15342# No need to generate them if there are no CONFIG_FILES.
15343# This happens for instance with `./config.status config.h'.
15344if test -n "$CONFIG_FILES"; then
15345
15346if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15347 ac_cs_awk_getline=:
15348 ac_cs_awk_pipe_init=
15349 ac_cs_awk_read_file='
15350 while ((getline aline < (F[key])) > 0)
15351 print(aline)
15352 close(F[key])'
15353 ac_cs_awk_pipe_fini=
15354else
15355 ac_cs_awk_getline=false
15356 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15357 ac_cs_awk_read_file='
15358 print "|#_!!_#|"
15359 print "cat " F[key] " &&"
15360 '$ac_cs_awk_pipe_init
15361 # The final `:' finishes the AND list.
15362 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15363fi
15364ac_cr=`echo X | tr X '\015'`
15365# On cygwin, bash can eat \r inside `` if the user requested igncr.
15366# But we know of no other shell where ac_cr would be empty at this
15367# point, so we can use a bashism as a fallback.
15368if test "x$ac_cr" = x; then
15369 eval ac_cr=\$\'\\r\'
15370fi
15371ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15372if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15373 ac_cs_awk_cr='\r'
15374else
15375 ac_cs_awk_cr=$ac_cr
15376fi
15377
15378echo 'BEGIN {' >"$tmp/subs1.awk" &&
15379_ACEOF
15380
15381# Create commands to substitute file output variables.
1c710c3c 15382{
5213506e
RW
15383 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15384 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15385 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15386 echo "_ACAWK" &&
15387 echo "_ACEOF"
15388} >conf$$files.sh &&
15389. ./conf$$files.sh ||
15390 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15391rm -f conf$$files.sh
1c710c3c 15392
5213506e
RW
15393{
15394 echo "cat >conf$$subs.awk <<_ACEOF" &&
15395 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15396 echo "_ACEOF"
15397} >conf$$subs.sh ||
15398 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15399ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15400ac_delim='%!_!# '
15401for ac_last_try in false false false false false :; do
15402 . ./conf$$subs.sh ||
15403 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15404
15405 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15406 if test $ac_delim_n = $ac_delim_num; then
15407 break
15408 elif $ac_last_try; then
15409 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15410 else
15411 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15412 fi
15413done
15414rm -f conf$$subs.sh
15415
15416cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15417cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 15418_ACEOF
5213506e
RW
15419sed -n '
15420h
15421s/^/S["/; s/!.*/"]=/
15422p
15423g
15424s/^[^!]*!//
15425:repl
15426t repl
15427s/'"$ac_delim"'$//
15428t delim
15429:nl
15430h
15431s/\(.\{148\}\).*/\1/
15432t more1
15433s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15434p
15435n
15436b repl
15437:more1
15438s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15439p
15440g
15441s/.\{148\}//
15442t nl
15443:delim
15444h
15445s/\(.\{148\}\).*/\1/
15446t more2
15447s/["\\]/\\&/g; s/^/"/; s/$/"/
15448p
15449b
15450:more2
15451s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15452p
15453g
15454s/.\{148\}//
15455t delim
15456' <conf$$subs.awk | sed '
15457/^[^""]/{
15458 N
15459 s/\n//
15460}
15461' >>$CONFIG_STATUS || ac_write_fail=1
15462rm -f conf$$subs.awk
15463cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15464_ACAWK
15465cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15466 for (key in S) S_is_set[key] = 1
15467 FS = "\a"
15468 \$ac_cs_awk_pipe_init
15469}
15470{
15471 line = $ 0
15472 nfields = split(line, field, "@")
15473 substed = 0
15474 len = length(field[1])
15475 for (i = 2; i < nfields; i++) {
15476 key = field[i]
15477 keylen = length(key)
15478 if (S_is_set[key]) {
15479 value = S[key]
15480 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15481 len += length(value) + length(field[++i])
15482 substed = 1
15483 } else
15484 len += 1 + keylen
15485 }
15486 if (nfields == 3 && !substed) {
15487 key = field[2]
15488 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15489 \$ac_cs_awk_read_file
15490 next
15491 }
15492 }
15493 print line
15494}
15495\$ac_cs_awk_pipe_fini
15496_ACAWK
15497_ACEOF
15498cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15499if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15500 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15501else
15502 cat
15503fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15504 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15505_ACEOF
15506
15507# VPATH may cause trouble with some makes, so we remove $(srcdir),
15508# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15509# trailing colons and then remove the whole line if VPATH becomes empty
15510# (actually we leave an empty line to preserve line numbers).
15511if test "x$srcdir" = x.; then
15512 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15513s/:*\$(srcdir):*/:/
15514s/:*\${srcdir}:*/:/
15515s/:*@srcdir@:*/:/
15516s/^\([^=]*=[ ]*\):*/\1/
15517s/:*$//
15518s/^[^=]*=[ ]*$//
15519}'
15520fi
2aeb72e9 15521
5213506e
RW
15522cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15523fi # test -n "$CONFIG_FILES"
2aeb72e9 15524
1c710c3c 15525
5213506e
RW
15526eval set X " :F $CONFIG_FILES "
15527shift
15528for ac_tag
15529do
15530 case $ac_tag in
15531 :[FHLC]) ac_mode=$ac_tag; continue;;
15532 esac
15533 case $ac_mode$ac_tag in
15534 :[FHL]*:*);;
15535 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15536 :[FH]-) ac_tag=-:-;;
15537 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15538 esac
15539 ac_save_IFS=$IFS
15540 IFS=:
15541 set x $ac_tag
15542 IFS=$ac_save_IFS
15543 shift
15544 ac_file=$1
15545 shift
79c06341 15546
5213506e
RW
15547 case $ac_mode in
15548 :L) ac_source=$1;;
15549 :[FH])
15550 ac_file_inputs=
15551 for ac_f
15552 do
15553 case $ac_f in
15554 -) ac_f="$tmp/stdin";;
15555 *) # Look for the file first in the build tree, then in the source tree
15556 # (if the path is not absolute). The absolute path cannot be DOS-style,
15557 # because $ac_f cannot contain `:'.
15558 test -f "$ac_f" ||
15559 case $ac_f in
15560 [\\/$]*) false;;
15561 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15562 esac ||
15563 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15564 esac
15565 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15566 as_fn_append ac_file_inputs " '$ac_f'"
15567 done
1c710c3c 15568
5213506e
RW
15569 # Let's still pretend it is `configure' which instantiates (i.e., don't
15570 # use $as_me), people would be surprised to read:
15571 # /* config.h. Generated by config.status. */
15572 configure_input='Generated from '`
15573 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15574 `' by configure.'
15575 if test x"$ac_file" != x-; then
15576 configure_input="$ac_file. $configure_input"
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15578$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 15579 fi
5213506e
RW
15580 # Neutralize special characters interpreted by sed in replacement strings.
15581 case $configure_input in #(
15582 *\&* | *\|* | *\\* )
15583 ac_sed_conf_input=`$as_echo "$configure_input" |
15584 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15585 *) ac_sed_conf_input=$configure_input;;
15586 esac
11a67599 15587
5213506e
RW
15588 case $ac_tag in
15589 *:-:* | *:-) cat >"$tmp/stdin" \
15590 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15591 esac
15592 ;;
11a67599
ZW
15593 esac
15594
5213506e 15595 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
15596$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15597 X"$ac_file" : 'X\(//\)[^/]' \| \
15598 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
15599 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15600$as_echo X"$ac_file" |
15601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15602 s//\1/
15603 q
15604 }
15605 /^X\(\/\/\)[^/].*/{
15606 s//\1/
15607 q
15608 }
15609 /^X\(\/\/\)$/{
15610 s//\1/
15611 q
15612 }
15613 /^X\(\/\).*/{
15614 s//\1/
15615 q
15616 }
15617 s/.*/./; q'`
15618 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 15619 ac_builddir=.
0b0dc272 15620
5213506e
RW
15621case "$ac_dir" in
15622.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15623*)
15624 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15625 # A ".." for each directory in $ac_dir_suffix.
15626 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15627 case $ac_top_builddir_sub in
15628 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15629 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15630 esac ;;
15631esac
15632ac_abs_top_builddir=$ac_pwd
15633ac_abs_builddir=$ac_pwd$ac_dir_suffix
15634# for backward compatibility:
15635ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
15636
15637case $srcdir in
5213506e 15638 .) # We are building in place.
1c710c3c 15639 ac_srcdir=.
5213506e
RW
15640 ac_top_srcdir=$ac_top_builddir_sub
15641 ac_abs_top_srcdir=$ac_pwd ;;
15642 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 15643 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
15644 ac_top_srcdir=$srcdir
15645 ac_abs_top_srcdir=$srcdir ;;
15646 *) # Relative name.
15647 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15648 ac_top_srcdir=$ac_top_build_prefix$srcdir
15649 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 15650esac
5213506e 15651ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 15652
0b0dc272 15653
5213506e
RW
15654 case $ac_mode in
15655 :F)
15656 #
15657 # CONFIG_FILE
15658 #
1c710c3c
DJ
15659
15660 case $INSTALL in
15661 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 15662 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 15663 esac
5213506e 15664_ACEOF
11a67599 15665
5213506e
RW
15666cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15667# If the template does not know about datarootdir, expand it.
15668# FIXME: This hack should be removed a few years after 2.60.
15669ac_datarootdir_hack=; ac_datarootdir_seen=
15670ac_sed_dataroot='
15671/datarootdir/ {
15672 p
15673 q
15674}
15675/@datadir@/p
15676/@docdir@/p
15677/@infodir@/p
15678/@localedir@/p
15679/@mandir@/p'
15680case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15681*datarootdir*) ac_datarootdir_seen=yes;;
15682*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15684$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 15685_ACEOF
5213506e
RW
15686cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15687 ac_datarootdir_hack='
15688 s&@datadir@&$datadir&g
15689 s&@docdir@&$docdir&g
15690 s&@infodir@&$infodir&g
15691 s&@localedir@&$localedir&g
15692 s&@mandir@&$mandir&g
15693 s&\\\${datarootdir}&$datarootdir&g' ;;
15694esac
15695_ACEOF
15696
15697# Neutralize VPATH when `$srcdir' = `.'.
15698# Shell code in configure.ac might set extrasub.
15699# FIXME: do we really want to maintain this feature?
15700cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15701ac_sed_extra="$ac_vpsub
1c710c3c
DJ
15702$extrasub
15703_ACEOF
5213506e 15704cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
15705:t
15706/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
15707s|@configure_input@|$ac_sed_conf_input|;t t
15708s&@top_builddir@&$ac_top_builddir_sub&;t t
15709s&@top_build_prefix@&$ac_top_build_prefix&;t t
15710s&@srcdir@&$ac_srcdir&;t t
15711s&@abs_srcdir@&$ac_abs_srcdir&;t t
15712s&@top_srcdir@&$ac_top_srcdir&;t t
15713s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15714s&@builddir@&$ac_builddir&;t t
15715s&@abs_builddir@&$ac_abs_builddir&;t t
15716s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15717s&@INSTALL@&$ac_INSTALL&;t t
15718$ac_datarootdir_hack
15719"
15720eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15721if $ac_cs_awk_getline; then
15722 $AWK -f "$tmp/subs.awk"
15723else
15724 $AWK -f "$tmp/subs.awk" | $SHELL
15725fi >$tmp/out \
15726 || as_fn_error "could not create $ac_file" "$LINENO" 5
15727
15728test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15729 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15730 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15732which seems to be undefined. Please make sure it is defined." >&5
15733$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15734which seems to be undefined. Please make sure it is defined." >&2;}
15735
15736 rm -f "$tmp/stdin"
15737 case $ac_file in
15738 -) cat "$tmp/out" && rm -f "$tmp/out";;
15739 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15740 esac \
15741 || as_fn_error "could not create $ac_file" "$LINENO" 5
15742 ;;
11a67599 15743
11a67599 15744
79c06341 15745
5213506e
RW
15746 esac
15747
3e54529c
RW
15748
15749 case $ac_file$ac_mode in
15750 "Makefile":F) sed "$extrasub_build" Makefile |
15751 sed "$extrasub_host" |
15752 sed "$extrasub_target" > mf$$
15753 mv -f mf$$ Makefile ;;
15754
15755 esac
5213506e
RW
15756done # for ac_tag
15757
15758
15759as_fn_exit 0
1c710c3c 15760_ACEOF
1c710c3c
DJ
15761ac_clean_files=$ac_clean_files_save
15762
5213506e
RW
15763test $ac_write_fail = 0 ||
15764 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15765
1c710c3c
DJ
15766
15767# configure is writing to config.log, and then calls config.status.
15768# config.status does its own redirection, appending to config.log.
15769# Unfortunately, on DOS this fails, as config.log is still kept open
15770# by configure, so config.status won't be able to write to it; its
15771# output is simply discarded. So we exec the FD to /dev/null,
15772# effectively closing config.log, so it can be properly (re)opened and
15773# appended to by config.status. When coming back to configure, we
15774# need to make the FD available again.
15775if test "$no_create" != yes; then
15776 ac_cs_success=:
15777 ac_config_status_args=
15778 test "$silent" = yes &&
15779 ac_config_status_args="$ac_config_status_args --quiet"
15780 exec 5>/dev/null
15781 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15782 exec 5>>config.log
15783 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15784 # would make configure fail if this is the last instruction.
5213506e
RW
15785 $ac_cs_success || as_fn_exit $?
15786fi
15787if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15789$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 15790fi
79c06341 15791
This page took 4.281373 seconds and 5 git commands to generate.