* plugin.c (plugin_load_plugins): Warning fix.
[deliverable/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
a0da8069 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
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.
a0da8069
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
c6b750e1 14
81ecdfbb
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 :
c6b750e1
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
c6b750e1 31fi
c6b750e1 32
81ecdfbb
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 }
c6b750e1
DJ
79fi
80
81
81ecdfbb
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
c6b750e1
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
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'\" &&
8e957354
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"
81ecdfbb
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
c6b750e1 184do
81ecdfbb
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."
c6b750e1 228 else
81ecdfbb
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."
c6b750e1 233 fi
81ecdfbb
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
c6b750e1 263
81ecdfbb
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
c6b750e1
DJ
375 as_expr=expr
376else
377 as_expr=false
378fi
379
81ecdfbb 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
381 as_basename=basename
382else
383 as_basename=false
384fi
385
81ecdfbb
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
c6b750e1 391
81ecdfbb 392as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
81ecdfbb
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'`
c6b750e1 410
c6b750e1
DJ
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
417
c6b750e1 418
81ecdfbb
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 |
c6b750e1 428 sed '
81ecdfbb
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
c6b750e1 433 N
81ecdfbb
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
c6b750e1 436 t loop
81ecdfbb 437 s/-\n.*//
c6b750e1 438 ' >$as_me.lineno &&
81ecdfbb
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; }
c6b750e1
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
81ecdfbb
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
c6b750e1
DJ
446 # Exit status is that of the last command.
447 exit
448}
449
81ecdfbb
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';;
c6b750e1
DJ
461esac
462
81ecdfbb
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
c6b750e1 466else
81ecdfbb
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
c6b750e1 469fi
81ecdfbb
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 472 as_ln_s='ln -s'
81ecdfbb
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'
c6b750e1 483 fi
c6b750e1
DJ
484else
485 as_ln_s='cp -p'
486fi
81ecdfbb
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
c6b750e1
DJ
489
490if mkdir -p . 2>/dev/null; then
81ecdfbb 491 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
81ecdfbb
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
c6b750e1
DJ
519
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
81ecdfbb 527exec 7<&0 </dev/null 6>&1
a0da8069 528
c6b750e1
DJ
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
c6b750e1
DJ
534#
535# Initializations.
536#
a0da8069 537ac_default_prefix=/usr/local
81ecdfbb 538ac_clean_files=
c6b750e1 539ac_config_libobj_dir=.
81ecdfbb 540LIBOBJS=
c6b750e1
DJ
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
c6b750e1
DJ
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
81ecdfbb 552PACKAGE_URL=
c6b750e1
DJ
553
554ac_unique_file="move-if-change"
81ecdfbb
RW
555enable_option_checking=no
556ac_subst_vars='LTLIBOBJS
557LIBOBJS
558compare_exclusions
559stage2_werror_flag
560stage1_checking
561stage1_cflags
562MAINT
563MAINTAINER_MODE_FALSE
564MAINTAINER_MODE_TRUE
565COMPILER_NM_FOR_TARGET
566COMPILER_LD_FOR_TARGET
567COMPILER_AS_FOR_TARGET
568FLAGS_FOR_TARGET
569RAW_CXX_FOR_TARGET
570WINDMC_FOR_TARGET
571WINDRES_FOR_TARGET
572STRIP_FOR_TARGET
b121d7d4 573READELF_FOR_TARGET
81ecdfbb
RW
574RANLIB_FOR_TARGET
575OBJDUMP_FOR_TARGET
576NM_FOR_TARGET
577LIPO_FOR_TARGET
578LD_FOR_TARGET
579DLLTOOL_FOR_TARGET
580AS_FOR_TARGET
581AR_FOR_TARGET
e552509b 582GOC_FOR_TARGET
81ecdfbb
RW
583GFORTRAN_FOR_TARGET
584GCJ_FOR_TARGET
585GCC_FOR_TARGET
586CXX_FOR_TARGET
587CC_FOR_TARGET
b121d7d4 588READELF
81ecdfbb
RW
589OBJDUMP
590OBJCOPY
591WINDMC
592WINDRES
593STRIP
594RANLIB
595NM
596LIPO
597LD
598DLLTOOL
599AS
600AR
601RUNTEST
602EXPECT
603MAKEINFO
604FLEX
605LEX
606M4
607BISON
608YACC
81ecdfbb
RW
609WINDRES_FOR_BUILD
610WINDMC_FOR_BUILD
611RANLIB_FOR_BUILD
612NM_FOR_BUILD
613LD_FOR_BUILD
614LDFLAGS_FOR_BUILD
e552509b 615GOC_FOR_BUILD
81ecdfbb
RW
616GFORTRAN_FOR_BUILD
617GCJ_FOR_BUILD
618DLLTOOL_FOR_BUILD
619CXX_FOR_BUILD
620CXXFLAGS_FOR_BUILD
621CFLAGS_FOR_BUILD
622CC_FOR_BUILD
623AS_FOR_BUILD
624AR_FOR_BUILD
911e63d0 625target_configdirs
81ecdfbb 626configdirs
81ecdfbb 627build_configdirs
81ecdfbb
RW
628INSTALL_GDB_TK
629GDB_TK
630CONFIGURE_GDB_TK
631build_tooldir
632tooldir
633GCC_SHLIB_SUBDIR
634RPATH_ENVVAR
4074d5f2
RW
635target_configargs
636host_configargs
637build_configargs
96655cc4 638BUILD_CONFIG
91c1f14c 639LDFLAGS_FOR_TARGET
81ecdfbb
RW
640CXXFLAGS_FOR_TARGET
641CFLAGS_FOR_TARGET
642DEBUG_PREFIX_CFLAGS_FOR_TARGET
643SYSROOT_CFLAGS_FOR_TARGET
644stage1_languages
700d40ca 645extra_host_libiberty_configure_flags
81ecdfbb
RW
646clooginc
647clooglibs
7ec59b9e 648islinc
81ecdfbb 649poststage1_ldflags
143754cd 650poststage1_libs
81ecdfbb
RW
651stage1_libs
652stage1_ldflags
7ec59b9e 653extra_isl_gmp_configure_flags
81ecdfbb
RW
654extra_mpc_mpfr_configure_flags
655extra_mpc_gmp_configure_flags
656extra_mpfr_configure_flags
657gmpinc
658gmplibs
659do_compare
660GNATMAKE
661GNATBIND
662ac_ct_CXX
663CXXFLAGS
664CXX
665OBJEXT
666EXEEXT
667ac_ct_CC
668CPPFLAGS
669LDFLAGS
670CFLAGS
671CC
ffdd6afc 672EXTRA_CONFIGARGS_LIBJAVA
81ecdfbb
RW
673target_subdir
674host_subdir
675build_subdir
676build_libsubdir
8e957354
PB
677AWK
678SED
81ecdfbb
RW
679LN_S
680LN
681INSTALL_DATA
682INSTALL_SCRIPT
683INSTALL_PROGRAM
684target_os
685target_vendor
686target_cpu
687target
688host_os
689host_vendor
690host_cpu
691host
692target_noncanonical
693host_noncanonical
694build_noncanonical
695build_os
696build_vendor
697build_cpu
698build
699TOPLEVEL_CONFIGURE_ARGUMENTS
700target_alias
701host_alias
702build_alias
703LIBS
704ECHO_T
705ECHO_N
706ECHO_C
707DEFS
708mandir
709localedir
710libdir
711psdir
712pdfdir
713dvidir
714htmldir
715infodir
716docdir
717oldincludedir
718includedir
719localstatedir
720sharedstatedir
721sysconfdir
722datadir
723datarootdir
724libexecdir
725sbindir
726bindir
727program_transform_name
728prefix
729exec_prefix
730PACKAGE_URL
731PACKAGE_BUGREPORT
732PACKAGE_STRING
733PACKAGE_VERSION
734PACKAGE_TARNAME
735PACKAGE_NAME
736PATH_SEPARATOR
737SHELL'
738ac_subst_files='serialization_dependencies
739host_makefile_frag
740target_makefile_frag
741alphaieee_frag
742ospace_frag'
743ac_user_opts='
744enable_option_checking
745with_build_libsubdir
746enable_gold
c7791212 747enable_ld
89a1e9c3
PB
748enable_libquadmath
749enable_libquadmath_support
81ecdfbb
RW
750enable_libada
751enable_libssp
ffdd6afc
ILT
752enable_static_libjava
753enable_bootstrap
81ecdfbb
RW
754with_mpc
755with_mpc_include
756with_mpc_lib
757with_mpfr_dir
758with_mpfr
759with_mpfr_include
760with_mpfr_lib
761with_gmp_dir
762with_gmp
763with_gmp_include
764with_gmp_lib
765with_host_libstdcxx
766with_stage1_ldflags
767with_stage1_libs
81ecdfbb 768with_boot_libs
143754cd 769with_boot_ldflags
8e71395b 770with_cloog
7ec59b9e
L
771with_isl
772with_isl_include
773with_isl_lib
774enable_isl_version_check
81ecdfbb
RW
775with_cloog_include
776with_cloog_lib
777enable_cloog_version_check
700d40ca 778enable_lto
81ecdfbb
RW
779enable_stage1_languages
780enable_objc_gc
781with_build_sysroot
782with_debug_prefix_map
96655cc4 783with_build_config
81ecdfbb
RW
784enable_serial_configure
785with_build_time_tools
786enable_maintainer_mode
787enable_stage1_checking
788enable_werror
81ecdfbb
RW
789'
790 ac_precious_vars='build_alias
791host_alias
792target_alias
793CC
794CFLAGS
795LDFLAGS
796LIBS
797CPPFLAGS
798CXX
799CXXFLAGS
800CCC
4074d5f2
RW
801build_configargs
802host_configargs
803target_configargs
81ecdfbb
RW
804AR
805AS
806DLLTOOL
807LD
808LIPO
809NM
810RANLIB
811STRIP
812WINDRES
813WINDMC
814OBJCOPY
815OBJDUMP
b121d7d4 816READELF
81ecdfbb
RW
817CC_FOR_TARGET
818CXX_FOR_TARGET
819GCC_FOR_TARGET
820GCJ_FOR_TARGET
821GFORTRAN_FOR_TARGET
e552509b 822GOC_FOR_TARGET
81ecdfbb
RW
823AR_FOR_TARGET
824AS_FOR_TARGET
825DLLTOOL_FOR_TARGET
826LD_FOR_TARGET
827LIPO_FOR_TARGET
828NM_FOR_TARGET
829OBJDUMP_FOR_TARGET
830RANLIB_FOR_TARGET
b121d7d4 831READELF_FOR_TARGET
81ecdfbb
RW
832STRIP_FOR_TARGET
833WINDRES_FOR_TARGET
834WINDMC_FOR_TARGET'
835
a0da8069
NN
836
837# Initialize some variables set by options.
c6b750e1
DJ
838ac_init_help=
839ac_init_version=false
81ecdfbb
RW
840ac_unrecognized_opts=
841ac_unrecognized_sep=
a0da8069
NN
842# The variables have the same names as the options, with
843# dashes changed to underlines.
c6b750e1 844cache_file=/dev/null
a0da8069 845exec_prefix=NONE
a0da8069 846no_create=
a0da8069
NN
847no_recursion=
848prefix=NONE
849program_prefix=NONE
850program_suffix=NONE
851program_transform_name=s,x,x,
852silent=
853site=
854srcdir=
a0da8069
NN
855verbose=
856x_includes=NONE
857x_libraries=NONE
c6b750e1
DJ
858
859# Installation directory options.
860# These are left unexpanded so users can "make install exec_prefix=/foo"
861# and all the variables that are supposed to be based on exec_prefix
862# by default will actually change.
863# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 864# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
865bindir='${exec_prefix}/bin'
866sbindir='${exec_prefix}/sbin'
867libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
868datarootdir='${prefix}/share'
869datadir='${datarootdir}'
a0da8069
NN
870sysconfdir='${prefix}/etc'
871sharedstatedir='${prefix}/com'
872localstatedir='${prefix}/var'
a0da8069
NN
873includedir='${prefix}/include'
874oldincludedir='/usr/include'
81ecdfbb
RW
875docdir='${datarootdir}/doc/${PACKAGE}'
876infodir='${datarootdir}/info'
877htmldir='${docdir}'
878dvidir='${docdir}'
879pdfdir='${docdir}'
880psdir='${docdir}'
881libdir='${exec_prefix}/lib'
882localedir='${datarootdir}/locale'
883mandir='${datarootdir}/man'
252b5132 884
a0da8069 885ac_prev=
81ecdfbb 886ac_dashdash=
a0da8069
NN
887for ac_option
888do
a0da8069
NN
889 # If the previous option needs an argument, assign it.
890 if test -n "$ac_prev"; then
81ecdfbb 891 eval $ac_prev=\$ac_option
a0da8069
NN
892 ac_prev=
893 continue
894 fi
252b5132 895
81ecdfbb
RW
896 case $ac_option in
897 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898 *) ac_optarg=yes ;;
899 esac
a0da8069
NN
900
901 # Accept the important Cygnus configure options, so we can diagnose typos.
902
81ecdfbb
RW
903 case $ac_dashdash$ac_option in
904 --)
905 ac_dashdash=yes ;;
a0da8069
NN
906
907 -bindir | --bindir | --bindi | --bind | --bin | --bi)
908 ac_prev=bindir ;;
909 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 910 bindir=$ac_optarg ;;
a0da8069
NN
911
912 -build | --build | --buil | --bui | --bu)
c6b750e1 913 ac_prev=build_alias ;;
a0da8069 914 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 915 build_alias=$ac_optarg ;;
a0da8069
NN
916
917 -cache-file | --cache-file | --cache-fil | --cache-fi \
918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919 ac_prev=cache_file ;;
920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
922 cache_file=$ac_optarg ;;
923
924 --config-cache | -C)
925 cache_file=config.cache ;;
a0da8069 926
81ecdfbb 927 -datadir | --datadir | --datadi | --datad)
a0da8069 928 ac_prev=datadir ;;
81ecdfbb 929 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 930 datadir=$ac_optarg ;;
a0da8069 931
81ecdfbb
RW
932 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933 | --dataroo | --dataro | --datar)
934 ac_prev=datarootdir ;;
935 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937 datarootdir=$ac_optarg ;;
938
a0da8069 939 -disable-* | --disable-*)
81ecdfbb 940 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 941 # Reject names that are not valid shell variable names.
81ecdfbb
RW
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error "invalid feature name: $ac_useropt"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
947 *"
948"enable_$ac_useropt"
949"*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
952 esac
953 eval enable_$ac_useropt=no ;;
954
955 -docdir | --docdir | --docdi | --doc | --do)
956 ac_prev=docdir ;;
957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958 docdir=$ac_optarg ;;
959
960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961 ac_prev=dvidir ;;
962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963 dvidir=$ac_optarg ;;
a0da8069
NN
964
965 -enable-* | --enable-*)
81ecdfbb 966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 967 # Reject names that are not valid shell variable names.
81ecdfbb
RW
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 as_fn_error "invalid feature name: $ac_useropt"
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
973 *"
974"enable_$ac_useropt"
975"*) ;;
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
a0da8069 978 esac
81ecdfbb 979 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
980
981 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983 | --exec | --exe | --ex)
984 ac_prev=exec_prefix ;;
985 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987 | --exec=* | --exe=* | --ex=*)
c6b750e1 988 exec_prefix=$ac_optarg ;;
a0da8069
NN
989
990 -gas | --gas | --ga | --g)
991 # Obsolete; use --with-gas.
992 with_gas=yes ;;
993
c6b750e1
DJ
994 -help | --help | --hel | --he | -h)
995 ac_init_help=long ;;
996 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997 ac_init_help=recursive ;;
998 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999 ac_init_help=short ;;
a0da8069
NN
1000
1001 -host | --host | --hos | --ho)
c6b750e1 1002 ac_prev=host_alias ;;
a0da8069 1003 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 1004 host_alias=$ac_optarg ;;
a0da8069 1005
81ecdfbb
RW
1006 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007 ac_prev=htmldir ;;
1008 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009 | --ht=*)
1010 htmldir=$ac_optarg ;;
1011
a0da8069
NN
1012 -includedir | --includedir | --includedi | --included | --include \
1013 | --includ | --inclu | --incl | --inc)
1014 ac_prev=includedir ;;
1015 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 1017 includedir=$ac_optarg ;;
a0da8069
NN
1018
1019 -infodir | --infodir | --infodi | --infod | --info | --inf)
1020 ac_prev=infodir ;;
1021 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1022 infodir=$ac_optarg ;;
a0da8069
NN
1023
1024 -libdir | --libdir | --libdi | --libd)
1025 ac_prev=libdir ;;
1026 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1027 libdir=$ac_optarg ;;
a0da8069
NN
1028
1029 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030 | --libexe | --libex | --libe)
1031 ac_prev=libexecdir ;;
1032 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1034 libexecdir=$ac_optarg ;;
a0da8069 1035
81ecdfbb
RW
1036 -localedir | --localedir | --localedi | --localed | --locale)
1037 ac_prev=localedir ;;
1038 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039 localedir=$ac_optarg ;;
1040
a0da8069 1041 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1042 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1043 ac_prev=localstatedir ;;
1044 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1045 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1046 localstatedir=$ac_optarg ;;
a0da8069
NN
1047
1048 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049 ac_prev=mandir ;;
1050 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1051 mandir=$ac_optarg ;;
a0da8069
NN
1052
1053 -nfp | --nfp | --nf)
1054 # Obsolete; use --without-fp.
1055 with_fp=no ;;
1056
1057 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1058 | --no-cr | --no-c | -n)
a0da8069
NN
1059 no_create=yes ;;
1060
1061 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1063 no_recursion=yes ;;
1064
1065 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067 | --oldin | --oldi | --old | --ol | --o)
1068 ac_prev=oldincludedir ;;
1069 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1072 oldincludedir=$ac_optarg ;;
a0da8069
NN
1073
1074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075 ac_prev=prefix ;;
1076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1077 prefix=$ac_optarg ;;
a0da8069
NN
1078
1079 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080 | --program-pre | --program-pr | --program-p)
1081 ac_prev=program_prefix ;;
1082 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1084 program_prefix=$ac_optarg ;;
a0da8069
NN
1085
1086 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087 | --program-suf | --program-su | --program-s)
1088 ac_prev=program_suffix ;;
1089 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1091 program_suffix=$ac_optarg ;;
a0da8069
NN
1092
1093 -program-transform-name | --program-transform-name \
1094 | --program-transform-nam | --program-transform-na \
1095 | --program-transform-n | --program-transform- \
1096 | --program-transform | --program-transfor \
1097 | --program-transfo | --program-transf \
1098 | --program-trans | --program-tran \
1099 | --progr-tra | --program-tr | --program-t)
1100 ac_prev=program_transform_name ;;
1101 -program-transform-name=* | --program-transform-name=* \
1102 | --program-transform-nam=* | --program-transform-na=* \
1103 | --program-transform-n=* | --program-transform-=* \
1104 | --program-transform=* | --program-transfor=* \
1105 | --program-transfo=* | --program-transf=* \
1106 | --program-trans=* | --program-tran=* \
1107 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1108 program_transform_name=$ac_optarg ;;
a0da8069 1109
81ecdfbb
RW
1110 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111 ac_prev=pdfdir ;;
1112 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113 pdfdir=$ac_optarg ;;
1114
1115 -psdir | --psdir | --psdi | --psd | --ps)
1116 ac_prev=psdir ;;
1117 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1118 psdir=$ac_optarg ;;
1119
a0da8069
NN
1120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121 | -silent | --silent | --silen | --sile | --sil)
1122 silent=yes ;;
1123
1124 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125 ac_prev=sbindir ;;
1126 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127 | --sbi=* | --sb=*)
c6b750e1 1128 sbindir=$ac_optarg ;;
a0da8069
NN
1129
1130 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132 | --sharedst | --shareds | --shared | --share | --shar \
1133 | --sha | --sh)
1134 ac_prev=sharedstatedir ;;
1135 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138 | --sha=* | --sh=*)
c6b750e1 1139 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1140
1141 -site | --site | --sit)
1142 ac_prev=site ;;
1143 -site=* | --site=* | --sit=*)
c6b750e1 1144 site=$ac_optarg ;;
a0da8069
NN
1145
1146 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147 ac_prev=srcdir ;;
1148 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1149 srcdir=$ac_optarg ;;
a0da8069
NN
1150
1151 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152 | --syscon | --sysco | --sysc | --sys | --sy)
1153 ac_prev=sysconfdir ;;
1154 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1156 sysconfdir=$ac_optarg ;;
a0da8069
NN
1157
1158 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1159 ac_prev=target_alias ;;
a0da8069 1160 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1161 target_alias=$ac_optarg ;;
a0da8069
NN
1162
1163 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164 verbose=yes ;;
1165
c6b750e1
DJ
1166 -version | --version | --versio | --versi | --vers | -V)
1167 ac_init_version=: ;;
a0da8069
NN
1168
1169 -with-* | --with-*)
81ecdfbb 1170 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1171 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error "invalid package name: $ac_useropt"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1177 *"
1178"with_$ac_useropt"
1179"*) ;;
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
a0da8069 1182 esac
81ecdfbb 1183 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1184
1185 -without-* | --without-*)
81ecdfbb 1186 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1187 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189 as_fn_error "invalid package name: $ac_useropt"
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1193 *"
1194"with_$ac_useropt"
1195"*) ;;
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval with_$ac_useropt=no ;;
a0da8069
NN
1200
1201 --x)
1202 # Obsolete; use --with-x.
1203 with_x=yes ;;
1204
1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206 | --x-incl | --x-inc | --x-in | --x-i)
1207 ac_prev=x_includes ;;
1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1210 x_includes=$ac_optarg ;;
a0da8069
NN
1211
1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214 ac_prev=x_libraries ;;
1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1217 x_libraries=$ac_optarg ;;
a0da8069 1218
81ecdfbb
RW
1219 -*) as_fn_error "unrecognized option: \`$ac_option'
1220Try \`$0 --help' for more information."
a0da8069
NN
1221 ;;
1222
c6b750e1
DJ
1223 *=*)
1224 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1226 case $ac_envvar in #(
1227 '' | [0-9]* | *[!_$as_cr_alnum]* )
1228 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1229 esac
1230 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1231 export $ac_envvar ;;
1232
a0da8069 1233 *)
c6b750e1 1234 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1235 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1237 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
c6b750e1 1238 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
1239 ;;
1240
1241 esac
1242done
1243
1244if test -n "$ac_prev"; then
c6b750e1 1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1246 as_fn_error "missing argument to $ac_option"
a0da8069 1247fi
a0da8069 1248
81ecdfbb
RW
1249if test -n "$ac_unrecognized_opts"; then
1250 case $enable_option_checking in
1251 no) ;;
1252 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1253 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1254 esac
81ecdfbb 1255fi
a0da8069 1256
81ecdfbb
RW
1257# Check all directory arguments for consistency.
1258for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259 datadir sysconfdir sharedstatedir localstatedir includedir \
1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261 libdir localedir mandir
a0da8069 1262do
81ecdfbb
RW
1263 eval ac_val=\$$ac_var
1264 # Remove trailing slashes.
1265 case $ac_val in
1266 */ )
1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268 eval $ac_var=\$ac_val;;
1269 esac
1270 # Be sure to have absolute directory names.
c6b750e1 1271 case $ac_val in
81ecdfbb
RW
1272 [\\/$]* | ?:[\\/]* ) continue;;
1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1274 esac
81ecdfbb 1275 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1276done
1277
c6b750e1
DJ
1278# There might be people who depend on the old broken behavior: `$host'
1279# used to hold the argument of --host etc.
1280# FIXME: To remove some day.
1281build=$build_alias
1282host=$host_alias
1283target=$target_alias
376a0e54 1284
c6b750e1
DJ
1285# FIXME: To remove some day.
1286if test "x$host_alias" != x; then
1287 if test "x$build_alias" = x; then
1288 cross_compiling=maybe
81ecdfbb 1289 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
c6b750e1
DJ
1290 If a cross compiler is detected then cross compile mode will be used." >&2
1291 elif test "x$build_alias" != "x$host_alias"; then
1292 cross_compiling=yes
1293 fi
1294fi
1295
1296ac_tool_prefix=
1297test -n "$host_alias" && ac_tool_prefix=$host_alias-
1298
1299test "$silent" = yes && exec 6>/dev/null
a0da8069 1300
a0da8069 1301
81ecdfbb
RW
1302ac_pwd=`pwd` && test -n "$ac_pwd" &&
1303ac_ls_di=`ls -di .` &&
1304ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1305 as_fn_error "working directory cannot be determined"
1306test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307 as_fn_error "pwd does not report name of working directory"
1308
1309
a0da8069
NN
1310# Find the source files, if location was not specified.
1311if test -z "$srcdir"; then
1312 ac_srcdir_defaulted=yes
81ecdfbb
RW
1313 # Try the directory containing this script, then the parent directory.
1314 ac_confdir=`$as_dirname -- "$as_myself" ||
1315$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316 X"$as_myself" : 'X\(//\)[^/]' \| \
1317 X"$as_myself" : 'X\(//\)$' \| \
1318 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1319$as_echo X"$as_myself" |
1320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\/\)[^/].*/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\/\)$/{
1329 s//\1/
1330 q
1331 }
1332 /^X\(\/\).*/{
1333 s//\1/
1334 q
1335 }
1336 s/.*/./; q'`
a0da8069 1337 srcdir=$ac_confdir
81ecdfbb 1338 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1339 srcdir=..
1340 fi
1341else
1342 ac_srcdir_defaulted=no
1343fi
81ecdfbb
RW
1344if test ! -r "$srcdir/$ac_unique_file"; then
1345 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1347fi
1348ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1349ac_abs_confdir=`(
1350 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1351 pwd)`
1352# When building in place, set srcdir=.
1353if test "$ac_abs_confdir" = "$ac_pwd"; then
1354 srcdir=.
1355fi
1356# Remove unnecessary trailing slashes from srcdir.
1357# Double slashes in file names in object file debugging info
1358# mess up M-x gdb in Emacs.
1359case $srcdir in
1360*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1361esac
6d0cd39e
AM
1362case $srcdir in
1363 *" "*)
1364 as_fn_error "path to source, $srcdir, contains spaces"
1365 ;;
1366esac
9cc8ae67
PB
1367ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1368
81ecdfbb
RW
1369for ac_var in $ac_precious_vars; do
1370 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_env_${ac_var}_value=\$${ac_var}
1372 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374done
c6b750e1
DJ
1375
1376#
1377# Report the --help message.
1378#
1379if test "$ac_init_help" = "long"; then
1380 # Omit some internal or obsolete options to make the list less imposing.
1381 # This message is too long to be a string in the A/UX 3.1 sh.
1382 cat <<_ACEOF
1383\`configure' configures this package to adapt to many kinds of systems.
1384
1385Usage: $0 [OPTION]... [VAR=VALUE]...
1386
1387To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388VAR=VALUE. See below for descriptions of some of the useful variables.
1389
1390Defaults for the options are specified in brackets.
1391
1392Configuration:
1393 -h, --help display this help and exit
1394 --help=short display options specific to this package
1395 --help=recursive display the short help of all the included packages
1396 -V, --version display version information and exit
1397 -q, --quiet, --silent do not print \`checking...' messages
1398 --cache-file=FILE cache test results in FILE [disabled]
1399 -C, --config-cache alias for \`--cache-file=config.cache'
1400 -n, --no-create do not create output files
1401 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1402
c6b750e1
DJ
1403Installation directories:
1404 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1405 [$ac_default_prefix]
c6b750e1 1406 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1407 [PREFIX]
c6b750e1
DJ
1408
1409By default, \`make install' will install all the files in
1410\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1411an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412for instance \`--prefix=\$HOME'.
1413
1414For better control, use the options below.
1415
1416Fine tuning of the installation directories:
81ecdfbb
RW
1417 --bindir=DIR user executables [EPREFIX/bin]
1418 --sbindir=DIR system admin executables [EPREFIX/sbin]
1419 --libexecdir=DIR program executables [EPREFIX/libexec]
1420 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1421 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1422 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1423 --libdir=DIR object code libraries [EPREFIX/lib]
1424 --includedir=DIR C header files [PREFIX/include]
1425 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1426 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1427 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1428 --infodir=DIR info documentation [DATAROOTDIR/info]
1429 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1430 --mandir=DIR man documentation [DATAROOTDIR/man]
1431 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1432 --htmldir=DIR html documentation [DOCDIR]
1433 --dvidir=DIR dvi documentation [DOCDIR]
1434 --pdfdir=DIR pdf documentation [DOCDIR]
1435 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1436_ACEOF
1437
1438 cat <<\_ACEOF
1439
1440Program names:
1441 --program-prefix=PREFIX prepend PREFIX to installed program names
1442 --program-suffix=SUFFIX append SUFFIX to installed program names
1443 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1444
1445System types:
1446 --build=BUILD configure for building on BUILD [guessed]
1447 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1448 --target=TARGET configure for building compilers for TARGET [HOST]
1449_ACEOF
a0da8069 1450fi
a0da8069 1451
c6b750e1
DJ
1452if test -n "$ac_init_help"; then
1453
1454 cat <<\_ACEOF
1455
1456Optional Features:
81ecdfbb 1457 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1458 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1459 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
c7791212 1460 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7837304f 1461 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
89a1e9c3
PB
1462 --disable-libquadmath do not build libquadmath directory
1463 --disable-libquadmath-support
1464 disable libquadmath support for Fortran
521ec477
DD
1465 --enable-libada build libada directory
1466 --enable-libssp build libssp directory
ffdd6afc
ILT
1467 --enable-static-libjava[=ARG]
1468 build static libjava [default=no]
1469 --enable-bootstrap enable bootstrapping [yes if native build]
7ec59b9e
L
1470 --disable-isl-version-check
1471 disable check for ISL version
e552509b
ILT
1472 --disable-cloog-version-check
1473 disable check for CLooG version
700d40ca 1474 --enable-lto enable link time optimization support
7837304f
AS
1475 --enable-stage1-languages[=all]
1476 choose additional languages to build during stage1.
1477 Mostly useful for compiler development
1478 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1479 Objective-C runtime
521ec477 1480 --enable-serial-[{host,target,build}-]configure
7837304f
AS
1481 force sequential configuration of sub-packages for
1482 the host, target or build machine, or all
1483 sub-packages
1484 --enable-maintainer-mode
1485 enable make rules and dependencies not useful (and
1486 sometimes confusing) to the casual installer
1487 --enable-stage1-checking[=all]
1488 choose additional checking for stage1 of the
1489 compiler
c6b750e1
DJ
1490 --enable-werror enable -Werror in bootstrap stage2 and later
1491
1492Optional Packages:
1493 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1494 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1495 --with-build-libsubdir=DIR Directory where to find libraries for build system
7837304f
AS
1496 --with-mpc=PATH specify prefix directory for installed MPC package.
1497 Equivalent to --with-mpc-include=PATH/include plus
1498 --with-mpc-lib=PATH/lib
1499 --with-mpc-include=PATH specify directory for installed MPC include files
1500 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
1501 --with-mpfr-dir=PATH this option has been REMOVED
1502 --with-mpfr=PATH specify prefix directory for installed MPFR package.
7837304f
AS
1503 Equivalent to --with-mpfr-include=PATH/include plus
1504 --with-mpfr-lib=PATH/lib
c6b750e1 1505 --with-mpfr-include=PATH
521ec477
DD
1506 specify directory for installed MPFR include files
1507 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1508 --with-gmp-dir=PATH this option has been REMOVED
7837304f
AS
1509 --with-gmp=PATH specify prefix directory for the installed GMP
1510 package. Equivalent to
1511 --with-gmp-include=PATH/include plus
1512 --with-gmp-lib=PATH/lib
521ec477
DD
1513 --with-gmp-include=PATH specify directory for installed GMP include files
1514 --with-gmp-lib=PATH specify directory for the installed GMP library
7837304f
AS
1515 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1516 linking with PPL
1517 --with-stage1-ldflags=FLAGS
1518 linker flags for stage1
1519 --with-stage1-libs=LIBS libraries for stage1
1520 --with-boot-libs=LIBS libraries for stage2 and later
1521 --with-boot-ldflags=FLAGS
1522 linker flags for stage2 and later
8e71395b
L
1523 --with-cloog=PATH Specify prefix directory for the installed CLooG-ISL
1524 package. Equivalent to
1525 --with-cloog-include=PATH/include plus
1526 --with-cloog-lib=PATH/lib
7ec59b9e 1527 --with-isl=PATH Specify prefix directory for the installed ISL
7837304f 1528 package. Equivalent to
7ec59b9e
L
1529 --with-isl-include=PATH/include plus
1530 --with-isl-lib=PATH/lib
1531 --with-isl-include=PATH Specify directory for installed ISL include files
1532 --with-isl-lib=PATH Specify the directory for the installed ISL library
e552509b
ILT
1533 --with-cloog-include=PATH
1534 Specify directory for installed CLooG include files
1535 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1536 library
521ec477 1537 --with-build-sysroot=SYSROOT
c6b750e1 1538 use sysroot as the system root during the build
8a6ee3ab 1539 --with-debug-prefix-map='A=B C=D ...'
7837304f
AS
1540 map A to B, C to D ... in debug information
1541 --with-build-config='NAME NAME2...'
1542 use config/NAME.mk build configuration
521ec477 1543 --with-build-time-tools=PATH
c6b750e1 1544 use given path to find target tools during the build
c6b750e1
DJ
1545
1546Some influential environment variables:
1547 CC C compiler command
1548 CFLAGS C compiler flags
1549 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1550 nonstandard directory <lib dir>
81ecdfbb
RW
1551 LIBS libraries to pass to the linker, e.g. -l<library>
1552 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1553 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1554 CXX C++ compiler command
1555 CXXFLAGS C++ compiler flags
4074d5f2
RW
1556 build_configargs
1557 additional configure arguments for build directories
1558 host_configargs
1559 additional configure arguments for host directories
1560 target_configargs
1561 additional configure arguments for target directories
9a819804
AO
1562 AR AR for the host
1563 AS AS for the host
1564 DLLTOOL DLLTOOL for the host
1565 LD LD for the host
1566 LIPO LIPO for the host
1567 NM NM for the host
1568 RANLIB RANLIB for the host
1569 STRIP STRIP for the host
1570 WINDRES WINDRES for the host
0c24b341 1571 WINDMC WINDMC for the host
9a819804
AO
1572 OBJCOPY OBJCOPY for the host
1573 OBJDUMP OBJDUMP for the host
b121d7d4 1574 READELF READELF for the host
9a819804
AO
1575 CC_FOR_TARGET
1576 CC for the target
1577 CXX_FOR_TARGET
1578 CXX for the target
1579 GCC_FOR_TARGET
1580 GCC for the target
1581 GCJ_FOR_TARGET
1582 GCJ for the target
1583 GFORTRAN_FOR_TARGET
1584 GFORTRAN for the target
e552509b
ILT
1585 GOC_FOR_TARGET
1586 GOC for the target
9a819804
AO
1587 AR_FOR_TARGET
1588 AR for the target
1589 AS_FOR_TARGET
1590 AS for the target
1591 DLLTOOL_FOR_TARGET
1592 DLLTOOL for the target
1593 LD_FOR_TARGET
1594 LD for the target
1595 LIPO_FOR_TARGET
1596 LIPO for the target
1597 NM_FOR_TARGET
1598 NM for the target
1599 OBJDUMP_FOR_TARGET
1600 OBJDUMP for the target
1601 RANLIB_FOR_TARGET
1602 RANLIB for the target
b121d7d4
DD
1603 READELF_FOR_TARGET
1604 READELF for the target
9a819804
AO
1605 STRIP_FOR_TARGET
1606 STRIP for the target
1607 WINDRES_FOR_TARGET
1608 WINDRES for the target
0c24b341
NC
1609 WINDMC_FOR_TARGET
1610 WINDMC for the target
c6b750e1
DJ
1611
1612Use these variables to override the choices made by `configure' or to help
1613it to find libraries and programs with nonstandard names/locations.
1614
81ecdfbb 1615Report bugs to the package provider.
c6b750e1 1616_ACEOF
81ecdfbb 1617ac_status=$?
c6b750e1
DJ
1618fi
1619
1620if test "$ac_init_help" = "recursive"; then
1621 # If there are subdirs, report their specific --help.
c6b750e1 1622 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1623 test -d "$ac_dir" ||
1624 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1625 continue
c6b750e1
DJ
1626 ac_builddir=.
1627
81ecdfbb
RW
1628case "$ac_dir" in
1629.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1630*)
1631 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1632 # A ".." for each directory in $ac_dir_suffix.
1633 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1634 case $ac_top_builddir_sub in
1635 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1636 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1637 esac ;;
1638esac
1639ac_abs_top_builddir=$ac_pwd
1640ac_abs_builddir=$ac_pwd$ac_dir_suffix
1641# for backward compatibility:
1642ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1643
1644case $srcdir in
81ecdfbb 1645 .) # We are building in place.
c6b750e1 1646 ac_srcdir=.
81ecdfbb
RW
1647 ac_top_srcdir=$ac_top_builddir_sub
1648 ac_abs_top_srcdir=$ac_pwd ;;
1649 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1650 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1651 ac_top_srcdir=$srcdir
1652 ac_abs_top_srcdir=$srcdir ;;
1653 *) # Relative name.
1654 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1655 ac_top_srcdir=$ac_top_build_prefix$srcdir
1656 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1657esac
81ecdfbb
RW
1658ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1659
1660 cd "$ac_dir" || { ac_status=$?; continue; }
1661 # Check for guested configure.
1662 if test -f "$ac_srcdir/configure.gnu"; then
1663 echo &&
1664 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1665 elif test -f "$ac_srcdir/configure"; then
1666 echo &&
1667 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1668 else
81ecdfbb
RW
1669 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1670 fi || ac_status=$?
1671 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1672 done
1673fi
1674
81ecdfbb 1675test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1676if $ac_init_version; then
1677 cat <<\_ACEOF
81ecdfbb
RW
1678configure
1679generated by GNU Autoconf 2.64
c6b750e1 1680
81ecdfbb 1681Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
1682This configure script is free software; the Free Software Foundation
1683gives unlimited permission to copy, distribute and modify it.
1684_ACEOF
81ecdfbb 1685 exit
c6b750e1 1686fi
81ecdfbb
RW
1687
1688## ------------------------ ##
1689## Autoconf initialization. ##
1690## ------------------------ ##
1691
1692# ac_fn_c_try_compile LINENO
1693# --------------------------
1694# Try to compile conftest.$ac_ext, and return whether this succeeded.
1695ac_fn_c_try_compile ()
1696{
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 rm -f conftest.$ac_objext
1699 if { { ac_try="$ac_compile"
1700case "(($ac_try" in
1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702 *) ac_try_echo=$ac_try;;
1703esac
1704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705$as_echo "$ac_try_echo"; } >&5
1706 (eval "$ac_compile") 2>conftest.err
1707 ac_status=$?
1708 if test -s conftest.err; then
1709 grep -v '^ *+' conftest.err >conftest.er1
1710 cat conftest.er1 >&5
1711 mv -f conftest.er1 conftest.err
1712 fi
1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714 test $ac_status = 0; } && {
1715 test -z "$ac_c_werror_flag" ||
1716 test ! -s conftest.err
1717 } && test -s conftest.$ac_objext; then :
1718 ac_retval=0
1719else
1720 $as_echo "$as_me: failed program was:" >&5
1721sed 's/^/| /' conftest.$ac_ext >&5
1722
1723 ac_retval=1
1724fi
1725 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1726 return $ac_retval
1727
1728} # ac_fn_c_try_compile
1729
1730# ac_fn_cxx_try_compile LINENO
1731# ----------------------------
1732# Try to compile conftest.$ac_ext, and return whether this succeeded.
1733ac_fn_cxx_try_compile ()
1734{
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 rm -f conftest.$ac_objext
1737 if { { ac_try="$ac_compile"
1738case "(($ac_try" in
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1741esac
1742eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743$as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_compile") 2>conftest.err
1745 ac_status=$?
1746 if test -s conftest.err; then
1747 grep -v '^ *+' conftest.err >conftest.er1
1748 cat conftest.er1 >&5
1749 mv -f conftest.er1 conftest.err
1750 fi
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } && {
1753 test -z "$ac_cxx_werror_flag" ||
1754 test ! -s conftest.err
1755 } && test -s conftest.$ac_objext; then :
1756 ac_retval=0
1757else
1758 $as_echo "$as_me: failed program was:" >&5
1759sed 's/^/| /' conftest.$ac_ext >&5
1760
1761 ac_retval=1
1762fi
1763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1764 return $ac_retval
1765
1766} # ac_fn_cxx_try_compile
1767
1768# ac_fn_c_try_link LINENO
1769# -----------------------
1770# Try to link conftest.$ac_ext, and return whether this succeeded.
1771ac_fn_c_try_link ()
1772{
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 rm -f conftest.$ac_objext conftest$ac_exeext
1775 if { { ac_try="$ac_link"
1776case "(($ac_try" in
1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1779esac
1780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781$as_echo "$ac_try_echo"; } >&5
1782 (eval "$ac_link") 2>conftest.err
1783 ac_status=$?
1784 if test -s conftest.err; then
1785 grep -v '^ *+' conftest.err >conftest.er1
1786 cat conftest.er1 >&5
1787 mv -f conftest.er1 conftest.err
1788 fi
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } && {
1791 test -z "$ac_c_werror_flag" ||
1792 test ! -s conftest.err
1793 } && test -s conftest$ac_exeext && {
1794 test "$cross_compiling" = yes ||
1795 $as_test_x conftest$ac_exeext
1796 }; then :
1797 ac_retval=0
1798else
1799 $as_echo "$as_me: failed program was:" >&5
1800sed 's/^/| /' conftest.$ac_ext >&5
1801
1802 ac_retval=1
1803fi
1804 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1805 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1806 # interfere with the next link command; also delete a directory that is
1807 # left behind by Apple's compiler. We do this before executing the actions.
1808 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1809 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1810 return $ac_retval
1811
1812} # ac_fn_c_try_link
7ec59b9e
L
1813
1814# ac_fn_c_try_run LINENO
1815# ----------------------
1816# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1817# that executables *can* be run.
1818ac_fn_c_try_run ()
1819{
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 if { { ac_try="$ac_link"
1822case "(($ac_try" in
1823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824 *) ac_try_echo=$ac_try;;
1825esac
1826eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827$as_echo "$ac_try_echo"; } >&5
1828 (eval "$ac_link") 2>&5
1829 ac_status=$?
1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1832 { { case "(($ac_try" in
1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834 *) ac_try_echo=$ac_try;;
1835esac
1836eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837$as_echo "$ac_try_echo"; } >&5
1838 (eval "$ac_try") 2>&5
1839 ac_status=$?
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; }; }; then :
1842 ac_retval=0
1843else
1844 $as_echo "$as_me: program exited with status $ac_status" >&5
1845 $as_echo "$as_me: failed program was:" >&5
1846sed 's/^/| /' conftest.$ac_ext >&5
1847
1848 ac_retval=$ac_status
1849fi
1850 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1851 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1852 return $ac_retval
1853
1854} # ac_fn_c_try_run
81ecdfbb 1855cat >config.log <<_ACEOF
c6b750e1
DJ
1856This file contains any messages produced by compilers while
1857running configure, to aid debugging if configure makes a mistake.
1858
1859It was created by $as_me, which was
81ecdfbb 1860generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
1861
1862 $ $0 $@
1863
1864_ACEOF
81ecdfbb 1865exec 5>>config.log
c6b750e1
DJ
1866{
1867cat <<_ASUNAME
1868## --------- ##
1869## Platform. ##
1870## --------- ##
1871
1872hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1873uname -m = `(uname -m) 2>/dev/null || echo unknown`
1874uname -r = `(uname -r) 2>/dev/null || echo unknown`
1875uname -s = `(uname -s) 2>/dev/null || echo unknown`
1876uname -v = `(uname -v) 2>/dev/null || echo unknown`
1877
1878/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1879/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1880
1881/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1882/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1883/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1884/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
1885/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1886/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1887/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1888
1889_ASUNAME
1890
1891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892for as_dir in $PATH
1893do
1894 IFS=$as_save_IFS
1895 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1896 $as_echo "PATH: $as_dir"
1897 done
1898IFS=$as_save_IFS
c6b750e1
DJ
1899
1900} >&5
1901
1902cat >&5 <<_ACEOF
1903
1904
1905## ----------- ##
1906## Core tests. ##
1907## ----------- ##
1908
1909_ACEOF
1910
1911
1912# Keep a trace of the command line.
1913# Strip out --no-create and --no-recursion so they do not pile up.
1914# Strip out --silent because we don't want to record it for future runs.
1915# Also quote any args containing shell meta-characters.
1916# Make two passes to allow for proper duplicate-argument suppression.
1917ac_configure_args=
1918ac_configure_args0=
1919ac_configure_args1=
c6b750e1
DJ
1920ac_must_keep_next=false
1921for ac_pass in 1 2
1922do
1923 for ac_arg
1924 do
1925 case $ac_arg in
1926 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1927 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1928 | -silent | --silent | --silen | --sile | --sil)
1929 continue ;;
81ecdfbb
RW
1930 *\'*)
1931 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
1932 esac
1933 case $ac_pass in
81ecdfbb 1934 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 1935 2)
81ecdfbb 1936 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
1937 if test $ac_must_keep_next = true; then
1938 ac_must_keep_next=false # Got value, back to normal.
1939 else
1940 case $ac_arg in
1941 *=* | --config-cache | -C | -disable-* | --disable-* \
1942 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1943 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1944 | -with-* | --with-* | -without-* | --without-* | --x)
1945 case "$ac_configure_args0 " in
1946 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1947 esac
1948 ;;
1949 -* ) ac_must_keep_next=true ;;
1950 esac
1951 fi
81ecdfbb 1952 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
1953 ;;
1954 esac
1955 done
1956done
81ecdfbb
RW
1957{ ac_configure_args0=; unset ac_configure_args0;}
1958{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
1959
1960# When interrupted or exit'd, cleanup temporary files, and complete
1961# config.log. We remove comments because anyway the quotes in there
1962# would cause problems or look ugly.
81ecdfbb
RW
1963# WARNING: Use '\'' to represent an apostrophe within the trap.
1964# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
1965trap 'exit_status=$?
1966 # Save into config.log some information that might help in debugging.
1967 {
1968 echo
1969
1970 cat <<\_ASBOX
1971## ---------------- ##
1972## Cache variables. ##
1973## ---------------- ##
1974_ASBOX
1975 echo
1976 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1977(
1978 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1979 eval ac_val=\$$ac_var
1980 case $ac_val in #(
1981 *${as_nl}*)
1982 case $ac_var in #(
1983 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1984$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1985 esac
1986 case $ac_var in #(
1987 _ | IFS | as_nl) ;; #(
1988 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1989 *) { eval $ac_var=; unset $ac_var;} ;;
1990 esac ;;
1991 esac
1992 done
c6b750e1 1993 (set) 2>&1 |
81ecdfbb
RW
1994 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1995 *${as_nl}ac_space=\ *)
c6b750e1 1996 sed -n \
81ecdfbb
RW
1997 "s/'\''/'\''\\\\'\'''\''/g;
1998 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1999 ;; #(
c6b750e1 2000 *)
81ecdfbb 2001 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 2002 ;;
81ecdfbb
RW
2003 esac |
2004 sort
2005)
c6b750e1
DJ
2006 echo
2007
2008 cat <<\_ASBOX
2009## ----------------- ##
2010## Output variables. ##
2011## ----------------- ##
2012_ASBOX
2013 echo
2014 for ac_var in $ac_subst_vars
2015 do
81ecdfbb
RW
2016 eval ac_val=\$$ac_var
2017 case $ac_val in
2018 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2019 esac
2020 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2021 done | sort
2022 echo
2023
2024 if test -n "$ac_subst_files"; then
2025 cat <<\_ASBOX
81ecdfbb
RW
2026## ------------------- ##
2027## File substitutions. ##
2028## ------------------- ##
c6b750e1
DJ
2029_ASBOX
2030 echo
2031 for ac_var in $ac_subst_files
2032 do
81ecdfbb
RW
2033 eval ac_val=\$$ac_var
2034 case $ac_val in
2035 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2036 esac
2037 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2038 done | sort
2039 echo
2040 fi
2041
2042 if test -s confdefs.h; then
2043 cat <<\_ASBOX
2044## ----------- ##
2045## confdefs.h. ##
2046## ----------- ##
2047_ASBOX
2048 echo
81ecdfbb 2049 cat confdefs.h
c6b750e1
DJ
2050 echo
2051 fi
2052 test "$ac_signal" != 0 &&
81ecdfbb
RW
2053 $as_echo "$as_me: caught signal $ac_signal"
2054 $as_echo "$as_me: exit $exit_status"
c6b750e1 2055 } >&5
81ecdfbb
RW
2056 rm -f core *.core core.conftest.* &&
2057 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 2058 exit $exit_status
81ecdfbb 2059' 0
c6b750e1 2060for ac_signal in 1 2 13 15; do
81ecdfbb 2061 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
2062done
2063ac_signal=0
2064
2065# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2066rm -f -r conftest* confdefs.h
2067
2068$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
2069
2070# Predefined preprocessor variables.
2071
2072cat >>confdefs.h <<_ACEOF
2073#define PACKAGE_NAME "$PACKAGE_NAME"
2074_ACEOF
2075
c6b750e1
DJ
2076cat >>confdefs.h <<_ACEOF
2077#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2078_ACEOF
2079
c6b750e1
DJ
2080cat >>confdefs.h <<_ACEOF
2081#define PACKAGE_VERSION "$PACKAGE_VERSION"
2082_ACEOF
2083
c6b750e1
DJ
2084cat >>confdefs.h <<_ACEOF
2085#define PACKAGE_STRING "$PACKAGE_STRING"
2086_ACEOF
2087
c6b750e1
DJ
2088cat >>confdefs.h <<_ACEOF
2089#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2090_ACEOF
2091
81ecdfbb
RW
2092cat >>confdefs.h <<_ACEOF
2093#define PACKAGE_URL "$PACKAGE_URL"
2094_ACEOF
2095
c6b750e1
DJ
2096
2097# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2098# Prefer an explicitly selected file to automatically selected ones.
2099ac_site_file1=NONE
2100ac_site_file2=NONE
2101if test -n "$CONFIG_SITE"; then
2102 ac_site_file1=$CONFIG_SITE
2103elif test "x$prefix" != xNONE; then
2104 ac_site_file1=$prefix/share/config.site
2105 ac_site_file2=$prefix/etc/config.site
2106else
2107 ac_site_file1=$ac_default_prefix/share/config.site
2108 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2109fi
81ecdfbb
RW
2110for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2111do
2112 test "x$ac_site_file" = xNONE && continue
a0da8069 2113 if test -r "$ac_site_file"; then
81ecdfbb
RW
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2115$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2116 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
2117 . "$ac_site_file"
2118 fi
2119done
2120
2121if test -r "$cache_file"; then
c6b750e1
DJ
2122 # Some versions of bash will fail to source /dev/null (special
2123 # files actually), so we avoid doing that.
2124 if test -f "$cache_file"; then
81ecdfbb
RW
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2126$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2127 case $cache_file in
81ecdfbb
RW
2128 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2129 *) . "./$cache_file";;
c6b750e1
DJ
2130 esac
2131 fi
a0da8069 2132else
81ecdfbb
RW
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2134$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2135 >$cache_file
2136fi
2137
2138# Check that the precious variables saved in the cache have kept the same
2139# value.
2140ac_cache_corrupted=false
81ecdfbb 2141for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2142 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2143 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2144 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2145 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2146 case $ac_old_set,$ac_new_set in
2147 set,)
81ecdfbb
RW
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2149$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2150 ac_cache_corrupted=: ;;
2151 ,set)
81ecdfbb
RW
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2153$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2154 ac_cache_corrupted=: ;;
2155 ,);;
2156 *)
2157 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2158 # differences in whitespace do not lead to failure.
2159 ac_old_val_w=`echo x $ac_old_val`
2160 ac_new_val_w=`echo x $ac_new_val`
2161 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2163$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2164 ac_cache_corrupted=:
2165 else
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2167$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2168 eval $ac_var=\$ac_old_val
2169 fi
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2171$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2173$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2174 fi;;
2175 esac
2176 # Pass precious variables to config.status.
2177 if test "$ac_new_set" = set; then
2178 case $ac_new_val in
81ecdfbb 2179 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2180 *) ac_arg=$ac_var=$ac_new_val ;;
2181 esac
2182 case " $ac_configure_args " in
2183 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2184 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2185 esac
2186 fi
2187done
2188if $ac_cache_corrupted; then
81ecdfbb
RW
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2190$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2192$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2193 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2194fi
81ecdfbb
RW
2195## -------------------- ##
2196## Main body of script. ##
2197## -------------------- ##
a0da8069
NN
2198
2199ac_ext=c
a0da8069 2200ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2203ac_compiler_gnu=$ac_cv_c_compiler_gnu
2204
2205
2206
2207
c6b750e1
DJ
2208
2209
34a0f3cf 2210
c6b750e1 2211
5b553f7e
RW
2212
2213progname=$0
2214# if PWD already has a value, it is probably wrong.
2215if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2216
2217# Export original configure arguments for use by sub-configures.
2218# Quote arguments with shell meta charatcers.
2219TOPLEVEL_CONFIGURE_ARGUMENTS=
2220set -- "$progname" "$@"
2221for ac_arg
2222do
2223 case "$ac_arg" in
2224 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2225 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2226 # if the argument is of the form -foo=baz, quote the baz part only
2227 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2228 *) ;;
2229 esac
2230 # Add the quoted argument to the list.
2231 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2232done
2233if test "$silent" = yes; then
2234 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2235fi
2236# Remove the initial space we just introduced and, as these will be
2237# expanded by make, quote '$'.
2238TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2239
c6b750e1
DJ
2240
2241# Find the build, host, and target systems.
a0da8069 2242ac_aux_dir=
81ecdfbb
RW
2243for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2244 for ac_t in install-sh install.sh shtool; do
2245 if test -f "$ac_dir/$ac_t"; then
2246 ac_aux_dir=$ac_dir
2247 ac_install_sh="$ac_aux_dir/$ac_t -c"
2248 break 2
2249 fi
2250 done
a0da8069
NN
2251done
2252if test -z "$ac_aux_dir"; then
81ecdfbb 2253 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2254fi
81ecdfbb
RW
2255
2256# These three variables are undocumented and unsupported,
2257# and are intended to be withdrawn in a future Autoconf release.
2258# They can cause serious problems if a builder's source tree is in a directory
2259# whose full name contains unusual characters.
2260ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2261ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2262ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2263
a0da8069 2264
c6b750e1 2265# Make sure we can run config.sub.
81ecdfbb
RW
2266$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2267 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2268
2269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2270$as_echo_n "checking build system type... " >&6; }
2271if test "${ac_cv_build+set}" = set; then :
2272 $as_echo_n "(cached) " >&6
2273else
2274 ac_build_alias=$build_alias
2275test "x$ac_build_alias" = x &&
2276 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2277test "x$ac_build_alias" = x &&
2278 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2279ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2280 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2281
2282fi
2283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2284$as_echo "$ac_cv_build" >&6; }
2285case $ac_cv_build in
2286*-*-*) ;;
2287*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2288esac
c6b750e1 2289build=$ac_cv_build
81ecdfbb
RW
2290ac_save_IFS=$IFS; IFS='-'
2291set x $ac_cv_build
2292shift
2293build_cpu=$1
2294build_vendor=$2
2295shift; shift
2296# Remember, the first character of IFS is used to create $*,
2297# except with old shells:
2298build_os=$*
2299IFS=$ac_save_IFS
2300case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2301
a0da8069 2302
c6b750e1
DJ
2303 case ${build_alias} in
2304 "") build_noncanonical=${build} ;;
2305 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2306esac
2307
2308
cac3d6c4 2309
c6b750e1
DJ
2310 case ${host_alias} in
2311 "") host_noncanonical=${build_noncanonical} ;;
2312 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2313esac
2314
cac3d6c4 2315
c6b750e1
DJ
2316
2317 case ${target_alias} in
2318 "") target_noncanonical=${host_noncanonical} ;;
2319 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2320esac
2321
cac3d6c4 2322
c6b750e1
DJ
2323
2324
2325test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2326 test "$program_prefix$program_suffix$program_transform_name" = \
2327 NONENONEs,x,x, &&
c6b750e1 2328 program_transform_name=s,y,y,
cac3d6c4 2329
81ecdfbb
RW
2330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2331$as_echo_n "checking host system type... " >&6; }
2332if test "${ac_cv_host+set}" = set; then :
2333 $as_echo_n "(cached) " >&6
cac3d6c4 2334else
81ecdfbb
RW
2335 if test "x$host_alias" = x; then
2336 ac_cv_host=$ac_cv_build
2337else
2338 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2339 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2340fi
c6b750e1
DJ
2341
2342fi
81ecdfbb
RW
2343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2344$as_echo "$ac_cv_host" >&6; }
2345case $ac_cv_host in
2346*-*-*) ;;
2347*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2348esac
c6b750e1 2349host=$ac_cv_host
81ecdfbb
RW
2350ac_save_IFS=$IFS; IFS='-'
2351set x $ac_cv_host
2352shift
2353host_cpu=$1
2354host_vendor=$2
2355shift; shift
2356# Remember, the first character of IFS is used to create $*,
2357# except with old shells:
2358host_os=$*
2359IFS=$ac_save_IFS
2360case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2361
2362
81ecdfbb
RW
2363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2364$as_echo_n "checking target system type... " >&6; }
2365if test "${ac_cv_target+set}" = set; then :
2366 $as_echo_n "(cached) " >&6
c6b750e1 2367else
81ecdfbb
RW
2368 if test "x$target_alias" = x; then
2369 ac_cv_target=$ac_cv_host
2370else
2371 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2372 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2373fi
c6b750e1 2374
cac3d6c4 2375fi
81ecdfbb
RW
2376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2377$as_echo "$ac_cv_target" >&6; }
2378case $ac_cv_target in
2379*-*-*) ;;
2380*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2381esac
c6b750e1 2382target=$ac_cv_target
81ecdfbb
RW
2383ac_save_IFS=$IFS; IFS='-'
2384set x $ac_cv_target
2385shift
2386target_cpu=$1
2387target_vendor=$2
2388shift; shift
2389# Remember, the first character of IFS is used to create $*,
2390# except with old shells:
2391target_os=$*
2392IFS=$ac_save_IFS
2393case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2394
2395
2396# The aliases save the names the user supplied, while $host etc.
2397# will get canonicalized.
2398test -n "$target_alias" &&
2399 test "$program_prefix$program_suffix$program_transform_name" = \
2400 NONENONEs,x,x, &&
2401 program_prefix=${target_alias}-
81ecdfbb 2402
a0da8069 2403test "$program_prefix" != NONE &&
81ecdfbb 2404 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2405# Use a double $ so make ignores it.
2406test "$program_suffix" != NONE &&
81ecdfbb
RW
2407 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2408# Double any \ or $.
c6b750e1 2409# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2410ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2411program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2412
a0da8069
NN
2413
2414
e5c3f801
NN
2415# Get 'install' or 'install-sh' and its variants.
2416# Find a good install program. We prefer a C program (faster),
2417# so one script is as good as another. But avoid the broken or
2418# incompatible versions:
2419# SysV /etc/install, /usr/sbin/install
2420# SunOS /usr/etc/install
2421# IRIX /sbin/install
2422# AIX /bin/install
c6b750e1 2423# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2424# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2425# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2426# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2427# OS/2's system install, which has a completely different semantic
e5c3f801 2428# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2429# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2431$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2432if test -z "$INSTALL"; then
81ecdfbb
RW
2433if test "${ac_cv_path_install+set}" = set; then :
2434 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2435else
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437for as_dir in $PATH
2438do
2439 IFS=$as_save_IFS
2440 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2441 # Account for people who put trailing slashes in PATH elements.
2442case $as_dir/ in #((
2443 ./ | .// | /[cC]/* | \
c6b750e1 2444 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2445 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2446 /usr/ucb/* ) ;;
2447 *)
2448 # OSF1 and SCO ODT 3.0 have their own names for install.
2449 # Don't use installbsd from OSF since it installs stuff as root
2450 # by default.
2451 for ac_prog in ginstall scoinst install; do
2452 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 2453 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
e5c3f801 2454 if test $ac_prog = install &&
c6b750e1 2455 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2456 # AIX install. It has an incompatible calling convention.
2457 :
c6b750e1
DJ
2458 elif test $ac_prog = install &&
2459 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2460 # program-specific install script used by HP pwplus--don't use.
2461 :
e5c3f801 2462 else
58c85be7
RW
2463 rm -rf conftest.one conftest.two conftest.dir
2464 echo one > conftest.one
2465 echo two > conftest.two
2466 mkdir conftest.dir
2467 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2468 test -s conftest.one && test -s conftest.two &&
2469 test -s conftest.dir/conftest.one &&
2470 test -s conftest.dir/conftest.two
2471 then
2472 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2473 break 3
2474 fi
e5c3f801
NN
2475 fi
2476 fi
2477 done
c6b750e1
DJ
2478 done
2479 ;;
2480esac
81ecdfbb
RW
2481
2482 done
2483IFS=$as_save_IFS
c6b750e1 2484
58c85be7 2485rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2486
2487fi
2488 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2489 INSTALL=$ac_cv_path_install
e5c3f801 2490 else
58c85be7
RW
2491 # As a last resort, use the slow shell script. Don't cache a
2492 # value for INSTALL within a source directory, because that will
e5c3f801 2493 # break other packages using the cache if that directory is
58c85be7 2494 # removed, or if the value is a relative name.
c6b750e1 2495 INSTALL=$ac_install_sh
e5c3f801
NN
2496 fi
2497fi
81ecdfbb
RW
2498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2499$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2500
2501# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2502# It thinks the first close brace ends the variable substitution.
2503test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2504
c6b750e1 2505test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2506
2507test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2508
81ecdfbb
RW
2509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2510$as_echo_n "checking whether ln works... " >&6; }
2511if test "${acx_cv_prog_LN+set}" = set; then :
2512 $as_echo_n "(cached) " >&6
656fdd47
PB
2513else
2514 rm -f conftestdata_t
2515echo >conftestdata_f
2516if ln conftestdata_f conftestdata_t 2>/dev/null
2517then
2518 acx_cv_prog_LN=ln
2519else
2520 acx_cv_prog_LN=no
2521fi
2522rm -f conftestdata_f conftestdata_t
2523
2524fi
2525if test $acx_cv_prog_LN = no; then
2526 LN="cp"
81ecdfbb
RW
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2528$as_echo "no, using $LN" >&6; }
656fdd47
PB
2529else
2530 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2532$as_echo "yes" >&6; }
656fdd47
PB
2533fi
2534
81ecdfbb
RW
2535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2536$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2537LN_S=$as_ln_s
2538if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2540$as_echo "yes" >&6; }
cac3d6c4 2541else
81ecdfbb
RW
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2543$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2544fi
2545
8e957354
PB
2546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2547$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2548if test "${ac_cv_path_SED+set}" = set; then :
2549 $as_echo_n "(cached) " >&6
2550else
2551 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2552 for ac_i in 1 2 3 4 5 6 7; do
2553 ac_script="$ac_script$as_nl$ac_script"
2554 done
2555 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2556 { ac_script=; unset ac_script;}
2557 if test -z "$SED"; then
2558 ac_path_SED_found=false
2559 # Loop through the user's path and test for each of PROGNAME-LIST
2560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561for as_dir in $PATH
2562do
2563 IFS=$as_save_IFS
2564 test -z "$as_dir" && as_dir=.
2565 for ac_prog in sed gsed; do
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2568 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2569# Check for GNU ac_path_SED and select it if it is found.
2570 # Check for GNU $ac_path_SED
2571case `"$ac_path_SED" --version 2>&1` in
2572*GNU*)
2573 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2574*)
2575 ac_count=0
2576 $as_echo_n 0123456789 >"conftest.in"
2577 while :
2578 do
2579 cat "conftest.in" "conftest.in" >"conftest.tmp"
2580 mv "conftest.tmp" "conftest.in"
2581 cp "conftest.in" "conftest.nl"
2582 $as_echo '' >> "conftest.nl"
2583 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2584 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2585 as_fn_arith $ac_count + 1 && ac_count=$as_val
2586 if test $ac_count -gt ${ac_path_SED_max-0}; then
2587 # Best one so far, save it but keep looking for a better one
2588 ac_cv_path_SED="$ac_path_SED"
2589 ac_path_SED_max=$ac_count
2590 fi
2591 # 10*(2^10) chars as input seems more than enough
2592 test $ac_count -gt 10 && break
2593 done
2594 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2595esac
2596
2597 $ac_path_SED_found && break 3
2598 done
2599 done
2600 done
2601IFS=$as_save_IFS
2602 if test -z "$ac_cv_path_SED"; then
2603 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2604 fi
2605else
2606 ac_cv_path_SED=$SED
2607fi
2608
2609fi
2610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2611$as_echo "$ac_cv_path_SED" >&6; }
2612 SED="$ac_cv_path_SED"
2613 rm -f conftest.sed
2614
2615for ac_prog in gawk mawk nawk awk
2616do
2617 # Extract the first word of "$ac_prog", so it can be a program name with args.
2618set dummy $ac_prog; ac_word=$2
2619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2620$as_echo_n "checking for $ac_word... " >&6; }
2621if test "${ac_cv_prog_AWK+set}" = set; then :
2622 $as_echo_n "(cached) " >&6
2623else
2624 if test -n "$AWK"; then
2625 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2626else
2627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628for as_dir in $PATH
2629do
2630 IFS=$as_save_IFS
2631 test -z "$as_dir" && as_dir=.
2632 for ac_exec_ext in '' $ac_executable_extensions; do
2633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2634 ac_cv_prog_AWK="$ac_prog"
2635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2636 break 2
2637 fi
2638done
2639 done
2640IFS=$as_save_IFS
2641
2642fi
2643fi
2644AWK=$ac_cv_prog_AWK
2645if test -n "$AWK"; then
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2647$as_echo "$AWK" >&6; }
2648else
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2650$as_echo "no" >&6; }
2651fi
2652
2653
2654 test -n "$AWK" && break
2655done
2656
e5c3f801 2657
0fdbe983
DJ
2658srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2659
2660# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2661# a relative path.
2662if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2663 INSTALL="${srcpwd}/install-sh -c"
2664fi
2665
a0da8069
NN
2666# Set srcdir to "." if that's what it is.
2667# This is important for multilib support.
2668pwd=`${PWDCMD-pwd}`
a0da8069
NN
2669if test "${pwd}" = "${srcpwd}" ; then
2670 srcdir=.
252b5132
RH
2671fi
2672
a0da8069 2673topsrcdir=$srcpwd
252b5132 2674
a0da8069 2675extra_host_args=
afefada0 2676
a0da8069
NN
2677### To add a new directory to the tree, first choose whether it is a target
2678### or a host dependent tool. Then put it into the appropriate list
2679### (library or tools, host or target), doing a dependency sort.
252b5132 2680
c6b750e1 2681# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2682# configdirs, or target_configdirs; see the serialization section below.
252b5132 2683
c6b750e1
DJ
2684# Dependency sorting is only needed when *configuration* must be done in
2685# a particular order. In all cases a dependency should be specified in
a0da8069 2686# the Makefile, whether or not it's implicitly specified here.
252b5132 2687
a0da8069
NN
2688# Double entries in build_configdirs, configdirs, or target_configdirs may
2689# cause circular dependencies and break everything horribly.
252b5132 2690
6a9cf61e
PB
2691# these library is used by various programs built for the build
2692# environment
2693#
2694build_libs="build-libiberty"
2695
2696# these tools are built for the build environment
a90ef4bf 2697build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2698
a0da8069
NN
2699# these libraries are used by various programs built for the host environment
2700#
2bf680c4 2701host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
a0da8069 2702
a0da8069
NN
2703# these tools are built for the host environment
2704# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2705# know that we are building the simulator.
2706# binutils, gas and ld appear in that order because it makes sense to run
2707# "make check" in that particular order.
e6de499b 2708# If --enable-gold is used, "gold" may replace "ld".
a90ef4bf 2709host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
a0da8069
NN
2710
2711# libgcj represents the runtime libraries only used by gcj.
2712libgcj="target-libffi \
a0da8069 2713 target-zlib \
a0da8069
NN
2714 target-libjava"
2715
2716# these libraries are built for the target environment, and are built after
2717# the host libraries and the host tools (which may be a cross compiler)
ffdd6afc 2718# Note that libiberty is not a target library.
b1299c4e 2719target_libraries="target-libgcc \
2bf680c4 2720 target-libbacktrace \
a0da8069
NN
2721 target-libgloss \
2722 target-newlib \
cff87f51 2723 target-libgomp \
7ec59b9e 2724 target-libatomic \
d32e2926 2725 target-libitm \
b9459e83 2726 target-libstdc++-v3 \
4b1cb4fe 2727 target-libmudflap \
bb780410 2728 target-libssp \
e552509b 2729 target-libquadmath \
4b1cb4fe 2730 target-libgfortran \
4f0ef2d8 2731 target-boehm-gc \
83326456 2732 ${libgcj} \
a2592b1b 2733 target-libobjc \
e552509b
ILT
2734 target-libada \
2735 target-libgo"
a0da8069 2736
9c14acb8
NN
2737# these tools are built using the target libraries, and are intended to
2738# run only in the target environment
a0da8069 2739#
9c14acb8 2740# note: any program that *uses* libraries that are in the "target_libraries"
0377a422 2741# list belongs in this list.
a0da8069 2742#
a90ef4bf 2743target_tools="target-rda"
252b5132 2744
a0da8069 2745################################################################################
252b5132 2746
a0da8069
NN
2747## All tools belong in one of the four categories, and are assigned above
2748## We assign ${configdirs} this way to remove all embedded newlines. This
2749## is important because configure will choke if they ever get through.
2750## ${configdirs} is directories we build using the host tools.
2751## ${target_configdirs} is directories we build using the target tools.
a0da8069 2752configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2753target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2754build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2755
9cc8ae67
PB
2756
2757
a0da8069 2758################################################################################
252b5132 2759
a0da8069 2760srcname="gnu development package"
252b5132 2761
a0da8069
NN
2762# This gets set non-empty for some net releases of packages.
2763appdirs=""
252b5132 2764
a0da8069
NN
2765# Define is_cross_compiler to save on calls to 'test'.
2766is_cross_compiler=
2767if test x"${host}" = x"${target}" ; then
2768 is_cross_compiler=no
252b5132 2769else
a0da8069 2770 is_cross_compiler=yes
c6b750e1 2771fi
252b5132 2772
9175bfc0 2773# Find the build and target subdir names.
dd12c3a8 2774
66a79c16
DJ
2775# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2776# have matching libraries, they should use host libraries: Makefile.tpl
2777# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2778# However, they still use the build modules, because the corresponding
2779# host modules (e.g. bison) are only built for the host when bootstrap
2780# finishes. So:
2781# - build_subdir is where we find build modules, and never changes.
2782# - build_libsubdir is where we find build libraries, and can be overridden.
2783
2784# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2785build_subdir="build-${build_noncanonical}"
c6b750e1 2786
81ecdfbb
RW
2787# Check whether --with-build-libsubdir was given.
2788if test "${with_build_libsubdir+set}" = set; then :
2789 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2790else
2791 build_libsubdir="$build_subdir"
81ecdfbb
RW
2792fi
2793
b00612cc
PB
2794# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2795if ( test $srcdir = . && test -d gcc ) \
2796 || test -d $srcdir/../host-${host_noncanonical}; then
2797 host_subdir="host-${host_noncanonical}"
2798else
2799 host_subdir=.
2800fi
dd12c3a8
NN
2801# No prefix.
2802target_subdir=${target_noncanonical}
c6b750e1 2803
2fd0b40b
RW
2804# Be sure to cover against remnants of an in-tree build.
2805if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2806 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2807Use a pristine source tree when building in a separate tree" "$LINENO" 5
2808fi
252b5132 2809
a0da8069
NN
2810# Skipdirs are removed silently.
2811skipdirs=
2812# Noconfigdirs are removed loudly.
2813noconfigdirs=""
252b5132 2814
a0da8069
NN
2815use_gnu_ld=
2816# Make sure we don't let GNU ld be added if we didn't want it.
2817if test x$with_gnu_ld = xno ; then
2818 use_gnu_ld=no
93f9b408 2819 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2820fi
2821
a0da8069
NN
2822use_gnu_as=
2823# Make sure we don't let GNU as be added if we didn't want it.
2824if test x$with_gnu_as = xno ; then
2825 use_gnu_as=no
2826 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2827fi
2828
700d40ca
ILT
2829use_included_zlib=
2830# Make sure we don't let ZLIB be added if we didn't want it.
2831if test x$with_system_zlib = xyes ; then
2832 use_included_zlib=no
2833 noconfigdirs="$noconfigdirs zlib"
2834fi
2835
c6b750e1 2836# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2837# it's not even worth trying to configure, much less build, that tool.
252b5132 2838
a0da8069
NN
2839case ${with_x} in
2840 yes | "") ;; # the default value for this tree is that X11 is available
2841 no)
675c6968 2842 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2843 # We won't be able to build gdbtk without X.
c6b750e1 2844 enable_gdbtk=no
a0da8069
NN
2845 ;;
2846 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2847esac
252b5132 2848
0377a422 2849# Some are only suitable for cross toolchains.
a0da8069
NN
2850# Remove these if host=target.
2851cross_only="target-libgloss target-newlib target-opcodes"
2852
2853case $is_cross_compiler in
2854 no) skipdirs="${skipdirs} ${cross_only}" ;;
a0da8069 2855esac
252b5132 2856
a0da8069
NN
2857# If both --with-headers and --with-libs are specified, default to
2858# --without-newlib.
32be62b5
RS
2859if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2860 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2861 if test x"${with_newlib}" = x ; then
2862 with_newlib=no
2863 fi
252b5132
RH
2864fi
2865
a0da8069
NN
2866# Recognize --with-newlib/--without-newlib.
2867case ${with_newlib} in
2868 no) skipdirs="${skipdirs} target-newlib" ;;
2869 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2870esac
252b5132 2871
c7791212
NC
2872# Handle --enable-gold, --enable-ld.
2873# --disable-gold [--enable-ld]
2874# Build only ld. Default option.
d3b50760
L
2875# --enable-gold [--enable-ld]
2876# Build both gold and ld. Install gold as "ld.gold", install ld
2877# as "ld.bfd" and "ld".
2878# --enable-gold=default [--enable-ld]
c7791212
NC
2879# Build both gold and ld. Install gold as "ld.gold" and "ld",
2880# install ld as "ld.bfd".
2881# --enable-gold[=default] --disable-ld
2882# Build only gold, which is then installed as both "ld.gold" and "ld".
2883# --enable-gold --enable-ld=default
d3b50760
L
2884# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2885# and ld.bfd).
c7791212
NC
2886# In other words, ld is default
2887# --enable-gold=default --enable-ld=default
2888# Error.
2889
2890default_ld=
81ecdfbb
RW
2891# Check whether --enable-gold was given.
2892if test "${enable_gold+set}" = set; then :
2893 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
2894else
2895 ENABLE_GOLD=no
81ecdfbb
RW
2896fi
2897
c7791212
NC
2898case "${ENABLE_GOLD}" in
2899 yes|default)
e6de499b
NC
2900 # Check for ELF target.
2901 is_elf=no
2902 case "${target}" in
2903 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2904 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
5b806d27 2905 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
7ec59b9e 2906 | *-*-solaris2* | *-*-nto*)
e6de499b
NC
2907 case "${target}" in
2908 *-*-linux*aout* | *-*-linux*oldld*)
2909 ;;
2910 *)
2911 is_elf=yes
2912 ;;
2913 esac
2914 esac
2915
2916 if test "$is_elf" = "yes"; then
2917 # Check for target supported by gold.
93f9b408 2918 case "${target}" in
5c0b3823 2919 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* | tilegx*-*-*)
c7791212
NC
2920 configdirs="$configdirs gold"
2921 if test x${ENABLE_GOLD} = xdefault; then
2922 default_ld=gold
2923 fi
e6de499b 2924 ENABLE_GOLD=yes
93f9b408
ILT
2925 ;;
2926 esac
e6de499b
NC
2927 fi
2928 ;;
2929 no)
2930 ;;
2931 *)
2932 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2933 ;;
c7791212
NC
2934esac
2935
2936# Check whether --enable-ld was given.
2937if test "${enable_ld+set}" = set; then :
2938 enableval=$enable_ld; ENABLE_LD=$enableval
2939else
2940 ENABLE_LD=yes
2941fi
2942
2943
2944case "${ENABLE_LD}" in
2945 default)
d3b50760 2946 if test x${default_ld} != x; then
c7791212
NC
2947 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2948 fi
2949 ;;
2950 yes)
2951 ;;
2952 no)
2953 if test x${ENABLE_GOLD} != xyes; then
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2955$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2956 fi
2957 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2958 ;;
2959 *)
2960 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2961 ;;
2962esac
93f9b408 2963
a0da8069 2964# Configure extra directories which are host specific
252b5132 2965
a0da8069
NN
2966case "${host}" in
2967 *-cygwin*)
2968 configdirs="$configdirs libtermcap" ;;
2969esac
252b5132 2970
59f7ec45
HPN
2971# A target can indicate whether a language isn't supported for some reason.
2972# Only spaces may be used in this macro; not newlines or tabs.
2973unsupported_languages=
2974
c6b750e1 2975# Remove more programs from consideration, based on the host or
a0da8069
NN
2976# target this usually means that a port of the program doesn't
2977# exist yet.
252b5132 2978
a0da8069 2979case "${host}" in
3516a403 2980 i[3456789]86-*-msdosdjgpp*)
6a608608 2981 noconfigdirs="$noconfigdirs tcl tk itcl"
a0da8069 2982 ;;
a0da8069 2983esac
252b5132 2984
4b1cb4fe 2985
89a1e9c3
PB
2986# Check whether --enable-libquadmath was given.
2987if test "${enable_libquadmath+set}" = set; then :
2988 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
2989else
2990 ENABLE_LIBQUADMATH=yes
2991fi
2992
2993if test "${ENABLE_LIBQUADMATH}" = "no" ; then
2994 noconfigdirs="$noconfigdirs target-libquadmath"
2995fi
2996
2997
2998# Check whether --enable-libquadmath-support was given.
2999if test "${enable_libquadmath_support+set}" = set; then :
3000 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3001else
3002 ENABLE_LIBQUADMATH_SUPPORT=yes
3003fi
3004
3005enable_libquadmath_support=
3006if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3007 enable_libquadmath_support=no
3008fi
3009
3010
81ecdfbb
RW
3011# Check whether --enable-libada was given.
3012if test "${enable_libada+set}" = set; then :
3013 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
3014else
3015 ENABLE_LIBADA=yes
81ecdfbb
RW
3016fi
3017
a2592b1b 3018if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 3019 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
3020fi
3021
81ecdfbb
RW
3022# Check whether --enable-libssp was given.
3023if test "${enable_libssp+set}" = set; then :
3024 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
3025else
3026 ENABLE_LIBSSP=yes
81ecdfbb
RW
3027fi
3028
5f128533 3029
a0da8069
NN
3030# Save it here so that, even in case of --enable-libgcj, if the Java
3031# front-end isn't enabled, we still get libgcj disabled.
3032libgcj_saved=$libgcj
3033case $enable_libgcj in
3034yes)
3035 # If we reset it here, it won't get added to noconfigdirs in the
3036 # target-specific build rules, so it will be forcibly enabled
3037 # (unless the Java language itself isn't enabled).
3038 libgcj=
3039 ;;
3040no)
3041 # Make sure we get it printed in the list of not supported target libs.
9e1a94f4
ILT
3042 # Don't disable libffi, though, other languages use it.
3043 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
33d23ee8
ILT
3044 # Clear libgcj_saved so that even if java is enabled libffi won't be
3045 # built.
3046 libgcj_saved=
a0da8069
NN
3047 ;;
3048esac
252b5132 3049
ffdd6afc
ILT
3050# Check whether --enable-static-libjava was given.
3051if test "${enable_static_libjava+set}" = set; then :
3052 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3053else
3054 ENABLE_STATIC_LIBJAVA=no
3055fi
3056
3057enable_static_libjava=
3058if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3059 enable_static_libjava=yes
3060fi
3061
3062if test x$enable_static_libjava != xyes ; then
3063 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3064fi
3065
4b1cb4fe 3066
a6df5a19
PB
3067# Disable libmudflap on some systems.
3068if test x$enable_libmudflap = x ; then
3e707e94 3069 case "${target}" in
29383458 3070 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3d6dfe0f 3071 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
3072 ;;
3073 *-*-freebsd*)
3074 # Enable libmudflap by default in FreeBSD.
3075 ;;
3076 *)
3077 # Disable it by default everywhere else.
3078 noconfigdirs="$noconfigdirs target-libmudflap"
3079 ;;
3080 esac
a6df5a19 3081fi
4b1cb4fe 3082
a6df5a19
PB
3083# Disable libgomp on non POSIX hosted systems.
3084if test x$enable_libgomp = x ; then
b3ded179
PB
3085 # Enable libgomp by default on hosted POSIX systems.
3086 case "${target}" in
29383458 3087 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179 3088 ;;
5b806d27 3089 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
b3ded179 3090 ;;
2479f722 3091 *-*-solaris2* | *-*-hpux11*)
b3ded179
PB
3092 ;;
3093 *-*-darwin* | *-*-aix*)
3094 ;;
3095 *)
3096 noconfigdirs="$noconfigdirs target-libgomp"
3097 ;;
3098 esac
a6df5a19 3099fi
b3ded179 3100
7ec59b9e
L
3101# Disable libatomic on unsupported systems.
3102if test -d ${srcdir}/libatomic; then
3103 if test x$enable_libatomic = x; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3105$as_echo_n "checking for libatomic support... " >&6; }
3106 if (srcdir=${srcdir}/libatomic; \
3107 . ${srcdir}/configure.tgt; \
3108 test -n "$UNSUPPORTED")
3109 then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111$as_echo "no" >&6; }
3112 noconfigdirs="$noconfigdirs target-libatomic"
3113 else
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3115$as_echo "yes" >&6; }
3116 fi
3117 fi
3118fi
3119
d32e2926
RH
3120# Disable libitm on unsupported systems.
3121if test -d ${srcdir}/libitm; then
3122 if test x$enable_libitm = x; then
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3124$as_echo_n "checking for libitm support... " >&6; }
3125 if (srcdir=${srcdir}/libitm; \
3126 . ${srcdir}/configure.tgt; \
3127 test -n "$UNSUPPORTED")
3128 then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130$as_echo "no" >&6; }
3131 noconfigdirs="$noconfigdirs target-libitm"
3132 else
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3134$as_echo "yes" >&6; }
3135 fi
3136 fi
3137fi
3138
1488e230
DE
3139# Disable libquadmath for some systems.
3140case "${target}" in
3141 # libquadmath is unused on AIX and libquadmath build process use of
3142 # LD_LIBRARY_PATH can break AIX bootstrap.
3143 powerpc-*-aix* | rs6000-*-aix*)
3144 noconfigdirs="$noconfigdirs target-libquadmath"
3145 ;;
3146esac
3147
065a5627
JM
3148# Disable libssp for some systems.
3149case "${target}" in
3150 avr-*-*)
c5f5c3c2 3151 # No hosted I/O support.
065a5627
JM
3152 noconfigdirs="$noconfigdirs target-libssp"
3153 ;;
3154 powerpc-*-aix* | rs6000-*-aix*)
3155 noconfigdirs="$noconfigdirs target-libssp"
3156 ;;
99c513f6 3157 rl78-*-*)
202e2356
NC
3158 # libssp uses a misaligned load to trigger a fault, but the RL78
3159 # doesn't fault for those - instead, it gives a build-time error
3160 # for explicit misaligned loads.
99c513f6
DD
3161 noconfigdirs="$noconfigdirs target-libssp"
3162 ;;
065a5627
JM
3163esac
3164
8e71395b
L
3165# Disable libquadmath for some systems.
3166case "${target}" in
3167 avr-*-*)
3168 noconfigdirs="$noconfigdirs target-libquadmath"
3169 ;;
3170esac
3171
065a5627
JM
3172# Disable libstdc++-v3 for some systems.
3173case "${target}" in
3174 *-*-vxworks*)
3175 # VxWorks uses the Dinkumware C++ library.
3176 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3177 ;;
3178 arm*-wince-pe*)
3179 # the C++ libraries don't build on top of CE's C libraries
3180 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3181 ;;
3182 avr-*-*)
3183 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3184 ;;
3185esac
3186
3187# Disable Fortran for some systems.
3188case "${target}" in
3189 mmix-*-*)
3190 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3191 unsupported_languages="$unsupported_languages fortran"
3192 ;;
3193esac
3194
0827f9a6 3195# Disable Java if libffi is not supported.
9863d716 3196case "${target}" in
0827f9a6
JM
3197 alpha*-*-*)
3198 ;;
3199 arm*-*-*)
3200 ;;
3201 cris-*-*)
3202 ;;
3203 frv-*-*)
3204 ;;
3205 hppa*-*-linux*)
3206 ;;
3207 hppa*-*-hpux*)
3208 ;;
3209 i?86-*-*)
3210 ;;
3211 ia64*-*-*)
3212 ;;
3213 m32r*-*-*)
3214 ;;
3215 m68k-*-*)
3216 ;;
2479f722 3217 mips*-*-rtems*)
0827f9a6
JM
3218 ;;
3219 mips*-*-linux*)
3220 ;;
3221 powerpc*-*-linux*)
3222 ;;
3223 powerpc-*-darwin*)
3224 ;;
3225 powerpc-*-aix* | rs6000-*-aix*)
3226 ;;
3227 powerpc-*-freebsd*)
3228 ;;
3229 powerpc64-*-freebsd*)
3230 ;;
3231 powerpc*-*-rtems*)
9863d716 3232 ;;
0827f9a6
JM
3233 s390-*-* | s390x-*-*)
3234 ;;
3235 sh-*-* | sh[34]*-*-*)
3236 ;;
3237 sh64-*-* | sh5*-*-*)
3238 ;;
3239 sparc*-*-*)
3240 ;;
3241 x86_64-*-*)
3242 ;;
3243 *-*-*)
3244 unsupported_languages="$unsupported_languages java"
3245 ;;
3246esac
3247
3248# Disable Java, libgcj or related libraries for some systems.
3249case "${target}" in
9863d716
JM
3250 powerpc-*-darwin*)
3251 ;;
3252 i[3456789]86-*-darwin*)
3253 ;;
3254 x86_64-*-darwin[912]*)
3255 ;;
3256 *-*-darwin*)
3257 noconfigdirs="$noconfigdirs ${libgcj}"
3258 ;;
9863d716
JM
3259 *-*-netware*)
3260 noconfigdirs="$noconfigdirs ${libgcj}"
3261 ;;
3262 *-*-rtems*)
3263 noconfigdirs="$noconfigdirs ${libgcj}"
3264 ;;
3265 *-*-tpf*)
3266 noconfigdirs="$noconfigdirs ${libgcj}"
3267 ;;
3268 *-*-uclinux*)
3269 noconfigdirs="$noconfigdirs ${libgcj}"
3270 ;;
3271 *-*-vxworks*)
3272 noconfigdirs="$noconfigdirs ${libgcj}"
3273 ;;
9863d716
JM
3274 alpha*-*-*vms*)
3275 noconfigdirs="$noconfigdirs ${libgcj}"
3276 ;;
0827f9a6 3277 arm-wince-pe)
9863d716
JM
3278 noconfigdirs="$noconfigdirs ${libgcj}"
3279 ;;
9863d716
JM
3280 arm*-*-symbianelf*)
3281 noconfigdirs="$noconfigdirs ${libgcj}"
3282 ;;
9863d716 3283 bfin-*-*)
9863d716
JM
3284 noconfigdirs="$noconfigdirs target-boehm-gc"
3285 ;;
9863d716
JM
3286 cris-*-* | crisv32-*-*)
3287 unsupported_languages="$unsupported_languages java"
3288 case "${target}" in
3289 *-*-linux*)
3290 ;;
3291 *) # See PR46792 regarding target-libffi.
3292 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3293 esac
3294 ;;
9863d716
JM
3295 hppa*64*-*-linux*)
3296 # In this case, it's because the hppa64-linux target is for
3297 # the kernel only at this point and has no libc, and thus no
3298 # headers, crt*.o, etc., all of which are needed by these.
82ae827f 3299 unsupported_languages="$unsupported_languages java"
9863d716 3300 ;;
82ae827f 3301 hppa*64*-*-hpux*)
9863d716
JM
3302 noconfigdirs="$noconfigdirs ${libgcj}"
3303 ;;
3304 hppa*-hp-hpux11*)
3305 ;;
82ae827f 3306 hppa*-*-hpux*)
9863d716
JM
3307 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3308 # build on HP-UX 10.20.
3309 noconfigdirs="$noconfigdirs ${libgcj}"
3310 ;;
9863d716
JM
3311 ia64*-*-*vms*)
3312 noconfigdirs="$noconfigdirs ${libgcj}"
3313 ;;
9863d716
JM
3314 i[3456789]86-w64-mingw*)
3315 noconfigdirs="$noconfigdirs ${libgcj}"
3316 ;;
3317 i[3456789]86-*-mingw*)
3318 noconfigdirs="$noconfigdirs ${libgcj}"
3319 ;;
3320 x86_64-*-mingw*)
3321 noconfigdirs="$noconfigdirs ${libgcj}"
3322 ;;
9863d716
JM
3323 mmix-*-*)
3324 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
9863d716
JM
3325 ;;
3326 powerpc-*-aix*)
3327 # copied from rs6000-*-* entry
3328 noconfigdirs="$noconfigdirs ${libgcj}"
3329 ;;
9863d716
JM
3330 rs6000-*-aix*)
3331 noconfigdirs="$noconfigdirs ${libgcj}"
3332 ;;
9863d716
JM
3333 *-*-lynxos*)
3334 noconfigdirs="$noconfigdirs ${libgcj}"
3335 ;;
9863d716
JM
3336esac
3337
691bb5a1
DD
3338# Default libgloss CPU subdirectory.
3339libgloss_dir="$target_cpu"
4b1cb4fe 3340
ff46fb8f
JM
3341case "${target}" in
3342 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3343 libgloss_dir=wince
3344 ;;
3345 arm*-*-*)
3346 libgloss_dir=arm
3347 ;;
3348 cris-*-* | crisv32-*-*)
3349 libgloss_dir=cris
3350 ;;
3351 hppa*-*-*)
3352 libgloss_dir=pa
3353 ;;
3354 i[3456789]86-*-*)
3355 libgloss_dir=i386
3356 ;;
3357 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3358 libgloss_dir=m68hc11
3359 ;;
3360 m68*-*-* | fido-*-*)
3361 libgloss_dir=m68k
3362 ;;
3363 mips*-*-*)
3364 libgloss_dir=mips
3365 ;;
3366 powerpc*-*-*)
3367 libgloss_dir=rs6000
3368 ;;
3369 sparc*-*-*)
3370 libgloss_dir=sparc
3371 ;;
3372esac
3373
c7e4b184 3374# Disable newlib and libgloss for various target OSes.
a0da8069 3375case "${target}" in
c7e4b184
JM
3376 alpha*-dec-osf*)
3377 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3378 ;;
3379 i[3456789]86-*-linux*)
3380 # This section makes it possible to build newlib natively on linux.
3381 # If we are using a cross compiler then don't configure newlib.
3382 if test x${is_cross_compiler} != xno ; then
3383 noconfigdirs="$noconfigdirs target-newlib"
3384 fi
3385 noconfigdirs="$noconfigdirs target-libgloss"
3386 # If we are not using a cross compiler, do configure newlib.
3387 # Note however, that newlib will only be configured in this situation
3388 # if the --with-newlib option has been given, because otherwise
3389 # 'target-newlib' will appear in skipdirs.
3390 ;;
3391 i[3456789]86-*-rdos*)
3392 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3393 ;;
3394 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3395 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3396 ;;
3397 sparc-*-sunos4*)
3398 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3399 ;;
3400 *-*-aix*)
3401 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3402 ;;
3403 *-*-beos*)
3404 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3405 ;;
a0da8069 3406 *-*-chorusos)
b2f14e4a 3407 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3408 ;;
c7e4b184
JM
3409 *-*-dragonfly*)
3410 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3411 ;;
3412 *-*-freebsd*)
3413 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3414 ;;
3415 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3416 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3417 ;;
3418 *-*-lynxos*)
3419 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3420 ;;
3421 *-*-mingw*)
3422 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3423 ;;
3424 *-*-netbsd*)
3425 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3426 ;;
3427 *-*-netware*)
3428 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3429 ;;
3430 *-*-tpf*)
3431 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3432 ;;
3433 *-*-uclinux*)
3434 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3435 ;;
3436 *-*-vxworks*)
3437 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3438 ;;
3439esac
3440
3441case "${target}" in
3442 *-*-chorusos)
3443 ;;
24741ab2 3444 powerpc-*-darwin*)
9d39db92 3445 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3446 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3447 ;;
85bd1942
TG
3448 i[3456789]86-*-darwin*)
3449 noconfigdirs="$noconfigdirs ld gprof"
3450 noconfigdirs="$noconfigdirs sim target-rda"
3451 ;;
e8a5fa9c 3452 x86_64-*-darwin[912]*)
652dec25
TG
3453 noconfigdirs="$noconfigdirs ld gas gprof"
3454 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3455 ;;
04d1ab34 3456 *-*-darwin*)
d320aacb 3457 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3458 noconfigdirs="$noconfigdirs sim target-rda"
04d1ab34 3459 ;;
5b806d27 3460 *-*-dragonfly*)
5b806d27 3461 ;;
de0b4a87 3462 *-*-freebsd*)
4b1cb4fe
DD
3463 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3464 && test -f /usr/local/include/gmp.h; then
3465 with_gmp=/usr/local
3466 fi
4b1cb4fe 3467 ;;
f8a495c8
NC
3468 *-*-kaos*)
3469 # Remove unsupported stuff on all kaOS configurations.
f8a495c8
NC
3470 noconfigdirs="$noconfigdirs target-libgloss"
3471 ;;
a0da8069 3472 *-*-netbsd*)
a0da8069 3473 ;;
2a3124ca 3474 *-*-netware*)
a0da8069
NN
3475 ;;
3476 *-*-rtems*)
9863d716 3477 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3478 ;;
1587117a
EC
3479 # The tpf target doesn't support gdb yet.
3480 *-*-tpf*)
c7e4b184 3481 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
1587117a 3482 ;;
c1968181 3483 *-*-uclinux*)
c7e4b184 3484 noconfigdirs="$noconfigdirs target-rda"
c1968181 3485 ;;
a0da8069 3486 *-*-vxworks*)
a0da8069
NN
3487 ;;
3488 alpha*-dec-osf*)
3489 # ld works, but does not support shared libraries.
a0da8069 3490 # gas doesn't generate exception information.
c7e4b184 3491 noconfigdirs="$noconfigdirs gas ld"
a0da8069
NN
3492 ;;
3493 alpha*-*-*vms*)
9863d716 3494 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
a0da8069 3495 ;;
a0da8069
NN
3496 alpha*-*-*)
3497 # newlib is not 64 bit ready
9863d716 3498 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3499 ;;
a0da8069 3500 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
675c6968 3501 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
3502 ;;
3503 arc-*-*)
782cb41f 3504 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3505 ;;
a0da8069 3506 arm-*-pe*)
9863d716 3507 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3508 ;;
a0da8069 3509 arm-*-riscix*)
b2f14e4a 3510 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3511 ;;
8e71395b
L
3512 avr-*-rtems*)
3513 ;;
3514 avr-*-*)
3515 if test x${with_avrlibc} != xno; then
3516 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3517 fi
3518 ;;
a0da8069 3519 c4x-*-* | tic4x-*-*)
b2f14e4a 3520 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3521 ;;
b2f14e4a
JM
3522 tic54x-*-*)
3523 noconfigdirs="$noconfigdirs target-libgloss gdb"
a0da8069 3524 ;;
a0da8069 3525 d10v-*-*)
b2f14e4a 3526 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3527 ;;
3528 d30v-*-*)
b2f14e4a 3529 noconfigdirs="$noconfigdirs gdb"
a0da8069
NN
3530 ;;
3531 fr30-*-elf*)
9863d716 3532 noconfigdirs="$noconfigdirs gdb"
a0da8069 3533 ;;
20135e4c 3534 moxie-*-*)
20135e4c
NC
3535 noconfigdirs="$noconfigdirs gprof"
3536 ;;
a0da8069 3537 h8300*-*-*)
9863d716 3538 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3539 ;;
3540 h8500-*-*)
b2f14e4a 3541 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3542 ;;
caeba88f 3543 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3544 ;;
93cc359e 3545 hppa*64*-*-linux*)
a0da8069 3546 ;;
f0ff0f90 3547 hppa*-*-linux*)
5dcac624 3548 ;;
a0da8069 3549 hppa*-*-*elf* | \
a0da8069
NN
3550 hppa*-*-lites* | \
3551 hppa*-*-openbsd* | \
3552 hppa*64*-*-*)
4f0ef2d8
CD
3553 ;;
3554 hppa*-hp-hpux11*)
0377a422 3555 noconfigdirs="$noconfigdirs ld"
a0da8069 3556 ;;
691bb5a1 3557 hppa*-*-pro*)
691bb5a1 3558 ;;
a0da8069 3559 hppa*-*-*)
9863d716 3560 noconfigdirs="$noconfigdirs ld"
a0da8069 3561 ;;
b07c2aad 3562 i960-*-*)
b2f14e4a 3563 noconfigdirs="$noconfigdirs gdb"
b07c2aad 3564 ;;
a0da8069
NN
3565 ia64*-*-elf*)
3566 # No gdb support yet.
0377a422 3567 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
a0da8069
NN
3568 ;;
3569 ia64*-**-hpux*)
92c9a463 3570 # No ld support yet.
9863d716 3571 noconfigdirs="$noconfigdirs libgui itcl ld"
a0da8069 3572 ;;
19e99079 3573 ia64*-*-*vms*)
7ec59b9e
L
3574 # No ld support yet.
3575 noconfigdirs="$noconfigdirs libgui itcl ld"
19e99079 3576 ;;
1f53ca9a 3577 i[3456789]86-w64-mingw*)
1f53ca9a
AO
3578 ;;
3579 i[3456789]86-*-mingw*)
45055374 3580 target_configdirs="$target_configdirs target-winsup"
c6b750e1 3581 ;;
a0da8069
NN
3582 *-*-cygwin*)
3583 target_configdirs="$target_configdirs target-libtermcap target-winsup"
0377a422 3584 noconfigdirs="$noconfigdirs target-libgloss"
b76d7de0 3585 # always build newlib if winsup directory is present.
45055374 3586 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3587 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3588 elif test -d "$srcdir/newlib"; then
45055374 3589 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3590 fi
c6b750e1 3591 ;;
ec11bdc6 3592 i[3456789]86-*-pe)
782cb41f 3593 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3594 ;;
ec11bdc6 3595 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3596 # The linker does not yet know about weak symbols in COFF,
3597 # and is not configured to handle mixed ELF and COFF.
b2f14e4a 3598 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3599 ;;
ec11bdc6 3600 i[3456789]86-*-sco*)
b2f14e4a 3601 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3602 ;;
cff32a7c 3603 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
a0da8069
NN
3604 noconfigdirs="$noconfigdirs target-libgloss"
3605 ;;
ec11bdc6 3606 i[3456789]86-*-sysv4*)
b2f14e4a 3607 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3608 ;;
ec11bdc6 3609 i[3456789]86-*-beos*)
c7e4b184 3610 noconfigdirs="$noconfigdirs gdb"
bba45b8b 3611 ;;
b59bea8a 3612 i[3456789]86-*-rdos*)
c7e4b184 3613 noconfigdirs="$noconfigdirs gdb"
691bb5a1 3614 ;;
a0da8069 3615 mmix-*-*)
9863d716 3616 noconfigdirs="$noconfigdirs gdb"
a0da8069 3617 ;;
4970f871 3618 mt-*-*)
cdb9b172
AH
3619 noconfigdirs="$noconfigdirs sim"
3620 ;;
a0da8069
NN
3621 powerpc-*-aix*)
3622 # copied from rs6000-*-* entry
c7e4b184 3623 noconfigdirs="$noconfigdirs gprof"
a0da8069 3624 ;;
93cc359e 3625 powerpc*-*-winnt* | powerpc*-*-pe*)
a0da8069 3626 target_configdirs="$target_configdirs target-winsup"
b2f14e4a 3627 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
a0da8069
NN
3628 # always build newlib.
3629 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3630 ;;
3631 # This is temporary until we can link against shared libraries
3632 powerpcle-*-solaris*)
b2f14e4a 3633 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
a0da8069
NN
3634 ;;
3635 powerpc-*-beos*)
c7e4b184 3636 noconfigdirs="$noconfigdirs gdb"
a0da8069 3637 ;;
a0da8069 3638 rs6000-*-lynxos*)
c7e4b184 3639 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3640 ;;
3641 rs6000-*-aix*)
c7e4b184 3642 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3643 ;;
3644 rs6000-*-*)
9863d716 3645 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3646 ;;
3647 m68k-apollo-*)
b2f14e4a 3648 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
a0da8069 3649 ;;
25a07265 3650 microblaze*)
9863d716 3651 noconfigdirs="$noconfigdirs gprof"
25a07265 3652 ;;
d09bbf00 3653 mips*-sde-elf* | mips*-mti-elf*)
5bd8be13
RS
3654 if test x$with_newlib = xyes; then
3655 noconfigdirs="$noconfigdirs gprof"
3656 fi
5bd8be13 3657 ;;
a0da8069 3658 mips*-*-irix5*)
b2f14e4a 3659 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069
NN
3660 ;;
3661 mips*-*-irix6*)
9863d716 3662 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3663 ;;
a0da8069 3664 mips*-*-bsd*)
b2f14e4a 3665 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3666 ;;
a0da8069 3667 mips*-*-linux*)
a0da8069
NN
3668 ;;
3669 mips*-*-*)
9863d716 3670 noconfigdirs="$noconfigdirs gprof"
a0da8069 3671 ;;
dbf85af7 3672 sh-*-* | sh64-*-*)
e8a5fa9c
RW
3673 case "${target}" in
3674 sh*-*-elf)
9863d716 3675 ;;
e8a5fa9c 3676 *)
9863d716 3677 noconfigdirs="$noconfigdirs target-libgloss" ;;
e8a5fa9c 3678 esac
a0da8069 3679 ;;
a0da8069 3680 sparc-*-sunos4*)
c7e4b184 3681 if test x${is_cross_compiler} = xno ; then
a0da8069
NN
3682 use_gnu_ld=no
3683 fi
3684 ;;
619a3713 3685 tic6x-*-*)
40ae9136 3686 noconfigdirs="$noconfigdirs sim"
619a3713 3687 ;;
eb4b2452
NC
3688 tilepro-*-* | tilegx-*-*)
3689 noconfigdirs="$noconfigdirs sim"
3690 ;;
a0da8069 3691 v810-*-*)
b2f14e4a 3692 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
a0da8069
NN
3693 ;;
3694 vax-*-*)
9863d716 3695 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3696 ;;
a0da8069 3697esac
252b5132 3698
a0da8069
NN
3699# If we aren't building newlib, then don't build libgloss, since libgloss
3700# depends upon some newlib header files.
3701case "${noconfigdirs}" in
3702 *target-libgloss*) ;;
3703 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3704esac
3705
a0da8069 3706# Work in distributions that contain no compiler tools, like Autoconf.
a0da8069
NN
3707host_makefile_frag=/dev/null
3708if test -d ${srcdir}/config ; then
3709case "${host}" in
ec11bdc6 3710 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3711 host_makefile_frag="config/mh-djgpp"
3712 ;;
3713 *-cygwin*)
e33b51a6 3714
81ecdfbb
RW
3715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3716$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3717echo a >cygwin-cat-check
1f53ca9a 3718if test `cat cygwin-cat-check` = a ; then
8ade07e9 3719 rm cygwin-cat-check
81ecdfbb
RW
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3721$as_echo "yes" >&6; }
e33b51a6 3722else
8ade07e9 3723 rm cygwin-cat-check
81ecdfbb
RW
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3725$as_echo "no" >&6; }
3726 as_fn_error "The cat command does not ignore carriage return characters.
e33b51a6
NC
3727 Please either mount the build directory in binary mode or run the following
3728 commands before running any configure script:
3729set -o igncr
3730export SHELLOPTS
81ecdfbb 3731 " "$LINENO" 5
e33b51a6 3732fi
e33b51a6 3733
a0da8069
NN
3734 host_makefile_frag="config/mh-cygwin"
3735 ;;
8a1599ab 3736 *-mingw*)
84e7906e 3737 host_makefile_frag="config/mh-mingw"
2d1e8239 3738 ;;
da888c87 3739 hppa*-hp-hpux10*)
da888c87 3740 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3741 ;;
3516a403 3742 hppa*-hp-hpux*)
da888c87
PB
3743 host_makefile_frag="config/mh-pa"
3744 ;;
3745 hppa*-*)
3746 host_makefile_frag="config/mh-pa"
3747 ;;
e552509b
ILT
3748 *-*-darwin*)
3749 host_makefile_frag="config/mh-darwin"
0df3d27f 3750 ;;
f6d183c0
PB
3751 powerpc-*-aix*)
3752 host_makefile_frag="config/mh-ppc-aix"
3753 ;;
3754 rs6000-*-aix*)
3755 host_makefile_frag="config/mh-ppc-aix"
3756 ;;
a0da8069
NN
3757esac
3758fi
3759
9e07f89d 3760if test "${build}" != "${host}" ; then
1576798e
PB
3761 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3762 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 3763 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
3764 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3765 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3766 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 3767 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
1576798e
PB
3768 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3769 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3770 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3771 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3772 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3773 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3774else
3775 AR_FOR_BUILD="\$(AR)"
3776 AS_FOR_BUILD="\$(AS)"
512b7dfb 3777 CC_FOR_BUILD="\$(CC)"
1576798e
PB
3778 CXX_FOR_BUILD="\$(CXX)"
3779 GCJ_FOR_BUILD="\$(GCJ)"
3780 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 3781 GOC_FOR_BUILD="\$(GOC)"
1576798e
PB
3782 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3783 LD_FOR_BUILD="\$(LD)"
3784 NM_FOR_BUILD="\$(NM)"
3785 RANLIB_FOR_BUILD="\$(RANLIB)"
3786 WINDRES_FOR_BUILD="\$(WINDRES)"
3787 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
3788fi
3789
3790ac_ext=c
c6b750e1
DJ
3791ac_cpp='$CPP $CPPFLAGS'
3792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3794ac_compiler_gnu=$ac_cv_c_compiler_gnu
3795if test -n "$ac_tool_prefix"; then
3796 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3797set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3799$as_echo_n "checking for $ac_word... " >&6; }
3800if test "${ac_cv_prog_CC+set}" = set; then :
3801 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3802else
3803 if test -n "$CC"; then
3804 ac_cv_prog_CC="$CC" # Let the user override the test.
3805else
3806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807for as_dir in $PATH
3808do
3809 IFS=$as_save_IFS
3810 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3811 for ac_exec_ext in '' $ac_executable_extensions; do
3812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3813 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3815 break 2
3816 fi
3817done
81ecdfbb
RW
3818 done
3819IFS=$as_save_IFS
c6b750e1
DJ
3820
3821fi
3822fi
3823CC=$ac_cv_prog_CC
3824if test -n "$CC"; then
81ecdfbb
RW
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3826$as_echo "$CC" >&6; }
c6b750e1 3827else
81ecdfbb
RW
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3829$as_echo "no" >&6; }
c6b750e1
DJ
3830fi
3831
81ecdfbb 3832
c6b750e1
DJ
3833fi
3834if test -z "$ac_cv_prog_CC"; then
3835 ac_ct_CC=$CC
6a9cf61e 3836 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 3837set dummy gcc; ac_word=$2
81ecdfbb
RW
3838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3839$as_echo_n "checking for $ac_word... " >&6; }
3840if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3841 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3842else
3843 if test -n "$ac_ct_CC"; then
3844 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3845else
3846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847for as_dir in $PATH
3848do
3849 IFS=$as_save_IFS
3850 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3853 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3855 break 2
3856 fi
3857done
81ecdfbb
RW
3858 done
3859IFS=$as_save_IFS
c6b750e1
DJ
3860
3861fi
3862fi
3863ac_ct_CC=$ac_cv_prog_ac_ct_CC
3864if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3866$as_echo "$ac_ct_CC" >&6; }
c6b750e1 3867else
81ecdfbb
RW
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3869$as_echo "no" >&6; }
c6b750e1
DJ
3870fi
3871
81ecdfbb
RW
3872 if test "x$ac_ct_CC" = x; then
3873 CC=""
3874 else
3875 case $cross_compiling:$ac_tool_warned in
3876yes:)
3877{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3878$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3879ac_tool_warned=yes ;;
3880esac
3881 CC=$ac_ct_CC
3882 fi
c6b750e1
DJ
3883else
3884 CC="$ac_cv_prog_CC"
3885fi
3886
3887if test -z "$CC"; then
81ecdfbb
RW
3888 if test -n "$ac_tool_prefix"; then
3889 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 3890set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3892$as_echo_n "checking for $ac_word... " >&6; }
3893if test "${ac_cv_prog_CC+set}" = set; then :
3894 $as_echo_n "(cached) " >&6
9e07f89d
NN
3895else
3896 if test -n "$CC"; then
3897 ac_cv_prog_CC="$CC" # Let the user override the test.
3898else
c6b750e1
DJ
3899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900for as_dir in $PATH
3901do
3902 IFS=$as_save_IFS
3903 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3904 for ac_exec_ext in '' $ac_executable_extensions; do
3905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3906 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 3907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3908 break 2
3909 fi
3910done
81ecdfbb
RW
3911 done
3912IFS=$as_save_IFS
c6b750e1 3913
9e07f89d
NN
3914fi
3915fi
c6b750e1 3916CC=$ac_cv_prog_CC
9e07f89d 3917if test -n "$CC"; then
81ecdfbb
RW
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3919$as_echo "$CC" >&6; }
c6b750e1 3920else
81ecdfbb
RW
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3922$as_echo "no" >&6; }
c6b750e1
DJ
3923fi
3924
c6b750e1 3925
81ecdfbb 3926 fi
c6b750e1 3927fi
9e07f89d
NN
3928if test -z "$CC"; then
3929 # Extract the first word of "cc", so it can be a program name with args.
3930set dummy cc; ac_word=$2
81ecdfbb
RW
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3932$as_echo_n "checking for $ac_word... " >&6; }
3933if test "${ac_cv_prog_CC+set}" = set; then :
3934 $as_echo_n "(cached) " >&6
9e07f89d
NN
3935else
3936 if test -n "$CC"; then
3937 ac_cv_prog_CC="$CC" # Let the user override the test.
3938else
9e07f89d 3939 ac_prog_rejected=no
c6b750e1
DJ
3940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941for as_dir in $PATH
3942do
3943 IFS=$as_save_IFS
3944 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3945 for ac_exec_ext in '' $ac_executable_extensions; do
3946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1
DJ
3947 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3948 ac_prog_rejected=yes
3949 continue
3950 fi
3951 ac_cv_prog_CC="cc"
81ecdfbb 3952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3953 break 2
3954 fi
3955done
81ecdfbb
RW
3956 done
3957IFS=$as_save_IFS
c6b750e1 3958
9e07f89d
NN
3959if test $ac_prog_rejected = yes; then
3960 # We found a bogon in the path, so make sure we never use it.
3961 set dummy $ac_cv_prog_CC
3962 shift
c6b750e1 3963 if test $# != 0; then
9e07f89d
NN
3964 # We chose a different compiler from the bogus one.
3965 # However, it has the same basename, so the bogon will be chosen
3966 # first if we set CC to just the basename; use the full file name.
3967 shift
c6b750e1 3968 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3969 fi
3970fi
3971fi
3972fi
c6b750e1 3973CC=$ac_cv_prog_CC
9e07f89d 3974if test -n "$CC"; then
81ecdfbb
RW
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3976$as_echo "$CC" >&6; }
9e07f89d 3977else
81ecdfbb
RW
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979$as_echo "no" >&6; }
9e07f89d
NN
3980fi
3981
81ecdfbb 3982
c6b750e1
DJ
3983fi
3984if test -z "$CC"; then
3985 if test -n "$ac_tool_prefix"; then
81ecdfbb 3986 for ac_prog in cl.exe
c6b750e1
DJ
3987 do
3988 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3989set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
3990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3991$as_echo_n "checking for $ac_word... " >&6; }
3992if test "${ac_cv_prog_CC+set}" = set; then :
3993 $as_echo_n "(cached) " >&6
9e07f89d
NN
3994else
3995 if test -n "$CC"; then
3996 ac_cv_prog_CC="$CC" # Let the user override the test.
3997else
c6b750e1
DJ
3998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999for as_dir in $PATH
4000do
4001 IFS=$as_save_IFS
4002 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4003 for ac_exec_ext in '' $ac_executable_extensions; do
4004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4005 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 4007 break 2
376a0e54 4008 fi
c6b750e1 4009done
81ecdfbb
RW
4010 done
4011IFS=$as_save_IFS
cac3d6c4 4012
c6b750e1
DJ
4013fi
4014fi
4015CC=$ac_cv_prog_CC
4016if test -n "$CC"; then
81ecdfbb
RW
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4018$as_echo "$CC" >&6; }
cac3d6c4 4019else
81ecdfbb
RW
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4021$as_echo "no" >&6; }
9e07f89d 4022fi
cac3d6c4 4023
81ecdfbb 4024
c6b750e1
DJ
4025 test -n "$CC" && break
4026 done
cac3d6c4 4027fi
c6b750e1
DJ
4028if test -z "$CC"; then
4029 ac_ct_CC=$CC
81ecdfbb 4030 for ac_prog in cl.exe
c6b750e1
DJ
4031do
4032 # Extract the first word of "$ac_prog", so it can be a program name with args.
4033set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4035$as_echo_n "checking for $ac_word... " >&6; }
4036if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4037 $as_echo_n "(cached) " >&6
cac3d6c4 4038else
c6b750e1
DJ
4039 if test -n "$ac_ct_CC"; then
4040 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 4041else
c6b750e1
DJ
4042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043for as_dir in $PATH
4044do
4045 IFS=$as_save_IFS
4046 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4047 for ac_exec_ext in '' $ac_executable_extensions; do
4048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4049 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4051 break 2
4052 fi
4053done
81ecdfbb
RW
4054 done
4055IFS=$as_save_IFS
c6b750e1 4056
cac3d6c4
CM
4057fi
4058fi
c6b750e1
DJ
4059ac_ct_CC=$ac_cv_prog_ac_ct_CC
4060if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4062$as_echo "$ac_ct_CC" >&6; }
9e07f89d 4063else
81ecdfbb
RW
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4065$as_echo "no" >&6; }
cac3d6c4 4066fi
376a0e54 4067
81ecdfbb 4068
c6b750e1
DJ
4069 test -n "$ac_ct_CC" && break
4070done
4071
81ecdfbb
RW
4072 if test "x$ac_ct_CC" = x; then
4073 CC=""
4074 else
4075 case $cross_compiling:$ac_tool_warned in
4076yes:)
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4078$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4079ac_tool_warned=yes ;;
4080esac
4081 CC=$ac_ct_CC
4082 fi
c6b750e1
DJ
4083fi
4084
4085fi
4086
4087
81ecdfbb
RW
4088test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4089$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4090as_fn_error "no acceptable C compiler found in \$PATH
4091See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4092
4093# Provide some information about the compiler.
81ecdfbb
RW
4094$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4095set X $ac_compile
4096ac_compiler=$2
4097for ac_option in --version -v -V -qversion; do
4098 { { ac_try="$ac_compiler $ac_option >&5"
4099case "(($ac_try" in
4100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101 *) ac_try_echo=$ac_try;;
4102esac
4103eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4104$as_echo "$ac_try_echo"; } >&5
4105 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4106 ac_status=$?
81ecdfbb
RW
4107 if test -s conftest.err; then
4108 sed '10a\
4109... rest of stderr output deleted ...
4110 10q' conftest.err >conftest.er1
4111 cat conftest.er1 >&5
4112 rm -f conftest.er1 conftest.err
4113 fi
4114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4115 test $ac_status = 0; }
4116done
c6b750e1 4117
81ecdfbb 4118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4119/* end confdefs.h. */
4120
4121int
4122main ()
4123{
4124
4125 ;
4126 return 0;
4127}
4128_ACEOF
4129ac_clean_files_save=$ac_clean_files
81ecdfbb 4130ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
c6b750e1
DJ
4131# Try to create an executable without -o first, disregard a.out.
4132# It will help us diagnose broken compilers, and finding out an intuition
4133# of exeext.
81ecdfbb
RW
4134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4135$as_echo_n "checking for C compiler default output file name... " >&6; }
4136ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4137
4138# The possible output files:
4139ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4140
4141ac_rmfiles=
4142for ac_file in $ac_files
4143do
4144 case $ac_file in
4145 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4146 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4147 esac
4148done
4149rm -f $ac_rmfiles
4150
4151if { { ac_try="$ac_link_default"
4152case "(($ac_try" in
4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154 *) ac_try_echo=$ac_try;;
4155esac
4156eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4157$as_echo "$ac_try_echo"; } >&5
4158 (eval "$ac_link_default") 2>&5
c6b750e1 4159 ac_status=$?
81ecdfbb
RW
4160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4161 test $ac_status = 0; }; then :
4162 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4163# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4164# in a Makefile. We should not override ac_cv_exeext if it was cached,
4165# so that the user can short-circuit this test for compilers unknown to
4166# Autoconf.
4167for ac_file in $ac_files ''
c6b750e1
DJ
4168do
4169 test -f "$ac_file" || continue
4170 case $ac_file in
81ecdfbb 4171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4172 ;;
4173 [ab].out )
4174 # We found the default executable, but exeext='' is most
4175 # certainly right.
4176 break;;
4177 *.* )
81ecdfbb
RW
4178 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4179 then :; else
4180 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4181 fi
4182 # We set ac_cv_exeext here because the later test for it is not
4183 # safe: cross compilers may not add the suffix if given an `-o'
4184 # argument, so we may need to know it at that point already.
4185 # Even if this section looks crufty: it has the advantage of
4186 # actually working.
c6b750e1
DJ
4187 break;;
4188 * )
4189 break;;
4190 esac
4191done
81ecdfbb
RW
4192test "$ac_cv_exeext" = no && ac_cv_exeext=
4193
c6b750e1 4194else
81ecdfbb
RW
4195 ac_file=''
4196fi
4197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4198$as_echo "$ac_file" >&6; }
4199if test -z "$ac_file"; then :
4200 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4201sed 's/^/| /' conftest.$ac_ext >&5
4202
81ecdfbb
RW
4203{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4204$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4205{ as_fn_set_status 77
4206as_fn_error "C compiler cannot create executables
4207See \`config.log' for more details." "$LINENO" 5; }; }
c6b750e1 4208fi
c6b750e1 4209ac_exeext=$ac_cv_exeext
c6b750e1 4210
81ecdfbb 4211# Check that the compiler produces executables we can run. If not, either
c6b750e1 4212# the compiler is broken, or we cross compile.
81ecdfbb
RW
4213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4214$as_echo_n "checking whether the C compiler works... " >&6; }
c6b750e1
DJ
4215# If not cross compiling, check that we can run a simple program.
4216if test "$cross_compiling" != yes; then
4217 if { ac_try='./$ac_file'
81ecdfbb
RW
4218 { { case "(($ac_try" in
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4221esac
4222eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4223$as_echo "$ac_try_echo"; } >&5
4224 (eval "$ac_try") 2>&5
c6b750e1 4225 ac_status=$?
81ecdfbb
RW
4226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4227 test $ac_status = 0; }; }; then
c6b750e1
DJ
4228 cross_compiling=no
4229 else
4230 if test "$cross_compiling" = maybe; then
4231 cross_compiling=yes
4232 else
81ecdfbb
RW
4233 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4234$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4235as_fn_error "cannot run C compiled programs.
c6b750e1 4236If you meant to cross compile, use \`--host'.
81ecdfbb 4237See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4238 fi
4239 fi
4240fi
81ecdfbb
RW
4241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4242$as_echo "yes" >&6; }
c6b750e1 4243
81ecdfbb 4244rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
c6b750e1 4245ac_clean_files=$ac_clean_files_save
81ecdfbb 4246# Check that the compiler produces executables we can run. If not, either
c6b750e1 4247# the compiler is broken, or we cross compile.
81ecdfbb
RW
4248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4249$as_echo_n "checking whether we are cross compiling... " >&6; }
4250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4251$as_echo "$cross_compiling" >&6; }
4252
4253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4254$as_echo_n "checking for suffix of executables... " >&6; }
4255if { { ac_try="$ac_link"
4256case "(($ac_try" in
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4259esac
4260eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4261$as_echo "$ac_try_echo"; } >&5
4262 (eval "$ac_link") 2>&5
c6b750e1 4263 ac_status=$?
81ecdfbb
RW
4264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4265 test $ac_status = 0; }; then :
c6b750e1
DJ
4266 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4267# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4268# work properly (i.e., refer to `conftest.exe'), while it won't with
4269# `rm'.
4270for ac_file in conftest.exe conftest conftest.*; do
4271 test -f "$ac_file" || continue
4272 case $ac_file in
81ecdfbb 4273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4274 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4275 break;;
4276 * ) break;;
4277 esac
4278done
4279else
81ecdfbb
RW
4280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4281$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4282as_fn_error "cannot compute suffix of executables: cannot compile and link
4283See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4284fi
c6b750e1 4285rm -f conftest$ac_cv_exeext
81ecdfbb
RW
4286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4287$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4288
4289rm -f conftest.$ac_ext
4290EXEEXT=$ac_cv_exeext
4291ac_exeext=$EXEEXT
81ecdfbb
RW
4292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4293$as_echo_n "checking for suffix of object files... " >&6; }
4294if test "${ac_cv_objext+set}" = set; then :
4295 $as_echo_n "(cached) " >&6
c6b750e1 4296else
81ecdfbb 4297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4298/* end confdefs.h. */
4299
4300int
4301main ()
4302{
4303
4304 ;
4305 return 0;
4306}
4307_ACEOF
4308rm -f conftest.o conftest.obj
81ecdfbb
RW
4309if { { ac_try="$ac_compile"
4310case "(($ac_try" in
4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4313esac
4314eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4315$as_echo "$ac_try_echo"; } >&5
4316 (eval "$ac_compile") 2>&5
c6b750e1 4317 ac_status=$?
81ecdfbb
RW
4318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4319 test $ac_status = 0; }; then :
4320 for ac_file in conftest.o conftest.obj conftest.*; do
4321 test -f "$ac_file" || continue;
c6b750e1 4322 case $ac_file in
81ecdfbb 4323 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4324 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4325 break;;
4326 esac
4327done
cac3d6c4 4328else
81ecdfbb 4329 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4330sed 's/^/| /' conftest.$ac_ext >&5
4331
81ecdfbb
RW
4332{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4333$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4334as_fn_error "cannot compute suffix of object files: cannot compile
4335See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4336fi
c6b750e1
DJ
4337rm -f conftest.$ac_cv_objext conftest.$ac_ext
4338fi
81ecdfbb
RW
4339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4340$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4341OBJEXT=$ac_cv_objext
4342ac_objext=$OBJEXT
81ecdfbb
RW
4343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4344$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4345if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4346 $as_echo_n "(cached) " >&6
c6b750e1 4347else
81ecdfbb 4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4349/* end confdefs.h. */
4350
4351int
4352main ()
4353{
4354#ifndef __GNUC__
4355 choke me
4356#endif
4357
4358 ;
4359 return 0;
4360}
4361_ACEOF
81ecdfbb 4362if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4363 ac_compiler_gnu=yes
4364else
81ecdfbb 4365 ac_compiler_gnu=no
c6b750e1 4366fi
81ecdfbb 4367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4368ac_cv_c_compiler_gnu=$ac_compiler_gnu
4369
4370fi
81ecdfbb
RW
4371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4372$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4373if test $ac_compiler_gnu = yes; then
4374 GCC=yes
4375else
4376 GCC=
4377fi
c6b750e1
DJ
4378ac_test_CFLAGS=${CFLAGS+set}
4379ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4381$as_echo_n "checking whether $CC accepts -g... " >&6; }
4382if test "${ac_cv_prog_cc_g+set}" = set; then :
4383 $as_echo_n "(cached) " >&6
4384else
4385 ac_save_c_werror_flag=$ac_c_werror_flag
4386 ac_c_werror_flag=yes
4387 ac_cv_prog_cc_g=no
4388 CFLAGS="-g"
4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4390/* end confdefs.h. */
4391
4392int
4393main ()
4394{
4395
4396 ;
4397 return 0;
4398}
4399_ACEOF
81ecdfbb 4400if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4401 ac_cv_prog_cc_g=yes
4402else
81ecdfbb
RW
4403 CFLAGS=""
4404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4405/* end confdefs.h. */
4406
4407int
4408main ()
4409{
4410
4411 ;
4412 return 0;
4413}
4414_ACEOF
4415if ac_fn_c_try_compile "$LINENO"; then :
4416
4417else
4418 ac_c_werror_flag=$ac_save_c_werror_flag
4419 CFLAGS="-g"
4420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4421/* end confdefs.h. */
cac3d6c4 4422
81ecdfbb
RW
4423int
4424main ()
4425{
4426
4427 ;
4428 return 0;
4429}
4430_ACEOF
4431if ac_fn_c_try_compile "$LINENO"; then :
4432 ac_cv_prog_cc_g=yes
4433fi
4434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4435fi
81ecdfbb 4436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4437fi
81ecdfbb
RW
4438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4439 ac_c_werror_flag=$ac_save_c_werror_flag
4440fi
4441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4442$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4443if test "$ac_test_CFLAGS" = set; then
c6b750e1 4444 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4445elif test $ac_cv_prog_cc_g = yes; then
4446 if test "$GCC" = yes; then
4447 CFLAGS="-g -O2"
4448 else
4449 CFLAGS="-g"
4450 fi
4451else
4452 if test "$GCC" = yes; then
4453 CFLAGS="-O2"
4454 else
4455 CFLAGS=
4456 fi
4457fi
81ecdfbb
RW
4458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4459$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4460if test "${ac_cv_prog_cc_c89+set}" = set; then :
4461 $as_echo_n "(cached) " >&6
c6b750e1 4462else
81ecdfbb 4463 ac_cv_prog_cc_c89=no
c6b750e1 4464ac_save_CC=$CC
81ecdfbb 4465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4466/* end confdefs.h. */
4467#include <stdarg.h>
4468#include <stdio.h>
4469#include <sys/types.h>
4470#include <sys/stat.h>
4471/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4472struct buf { int x; };
4473FILE * (*rcsopen) (struct buf *, struct stat *, int);
4474static char *e (p, i)
4475 char **p;
4476 int i;
4477{
4478 return p[i];
4479}
4480static char *f (char * (*g) (char **, int), char **p, ...)
4481{
4482 char *s;
4483 va_list v;
4484 va_start (v,p);
4485 s = g (p, va_arg (v,int));
4486 va_end (v);
4487 return s;
4488}
4489
4490/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4491 function prototypes and stuff, but not '\xHH' hex character constants.
4492 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4493 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4494 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4495 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4496 that's true only with -std. */
c6b750e1
DJ
4497int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4498
81ecdfbb
RW
4499/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4500 inside strings and character constants. */
4501#define FOO(x) 'x'
4502int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4503
c6b750e1
DJ
4504int test (int i, double x);
4505struct s1 {int (*f) (int a);};
4506struct s2 {int (*f) (double a);};
4507int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4508int argc;
4509char **argv;
4510int
4511main ()
4512{
4513return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4514 ;
4515 return 0;
4516}
4517_ACEOF
81ecdfbb
RW
4518for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4519 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4520do
4521 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4522 if ac_fn_c_try_compile "$LINENO"; then :
4523 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4524fi
81ecdfbb
RW
4525rm -f core conftest.err conftest.$ac_objext
4526 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4527done
81ecdfbb 4528rm -f conftest.$ac_ext
c6b750e1
DJ
4529CC=$ac_save_CC
4530
4531fi
81ecdfbb
RW
4532# AC_CACHE_VAL
4533case "x$ac_cv_prog_cc_c89" in
4534 x)
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4536$as_echo "none needed" >&6; } ;;
4537 xno)
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4539$as_echo "unsupported" >&6; } ;;
c6b750e1 4540 *)
81ecdfbb
RW
4541 CC="$CC $ac_cv_prog_cc_c89"
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4543$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4544esac
81ecdfbb 4545if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4546
c6b750e1
DJ
4547fi
4548
c6b750e1
DJ
4549ac_ext=c
4550ac_cpp='$CPP $CPPFLAGS'
4551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4553ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4554
81ecdfbb 4555ac_ext=cpp
18f6b6ee
PB
4556ac_cpp='$CXXCPP $CPPFLAGS'
4557ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4558ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4559ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4560if test -z "$CXX"; then
4561 if test -n "$CCC"; then
4562 CXX=$CCC
4563 else
4564 if test -n "$ac_tool_prefix"; then
4565 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4566 do
4567 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4568set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4570$as_echo_n "checking for $ac_word... " >&6; }
4571if test "${ac_cv_prog_CXX+set}" = set; then :
4572 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4573else
4574 if test -n "$CXX"; then
4575 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4576else
4577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578for as_dir in $PATH
4579do
4580 IFS=$as_save_IFS
4581 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4584 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4586 break 2
4587 fi
4588done
81ecdfbb
RW
4589 done
4590IFS=$as_save_IFS
512b7dfb 4591
18f6b6ee
PB
4592fi
4593fi
4594CXX=$ac_cv_prog_CXX
4595if test -n "$CXX"; then
81ecdfbb
RW
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4597$as_echo "$CXX" >&6; }
18f6b6ee 4598else
81ecdfbb
RW
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4600$as_echo "no" >&6; }
18f6b6ee
PB
4601fi
4602
81ecdfbb 4603
18f6b6ee
PB
4604 test -n "$CXX" && break
4605 done
4606fi
4607if test -z "$CXX"; then
4608 ac_ct_CXX=$CXX
81ecdfbb 4609 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4610do
4611 # Extract the first word of "$ac_prog", so it can be a program name with args.
4612set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4614$as_echo_n "checking for $ac_word... " >&6; }
4615if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4616 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4617else
4618 if test -n "$ac_ct_CXX"; then
4619 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4620else
4621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622for as_dir in $PATH
4623do
4624 IFS=$as_save_IFS
4625 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4628 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4630 break 2
512b7dfb 4631 fi
18f6b6ee 4632done
81ecdfbb
RW
4633 done
4634IFS=$as_save_IFS
512b7dfb 4635
18f6b6ee
PB
4636fi
4637fi
4638ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4639if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4641$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4642else
81ecdfbb
RW
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4644$as_echo "no" >&6; }
18f6b6ee
PB
4645fi
4646
81ecdfbb 4647
18f6b6ee
PB
4648 test -n "$ac_ct_CXX" && break
4649done
18f6b6ee 4650
81ecdfbb
RW
4651 if test "x$ac_ct_CXX" = x; then
4652 CXX="g++"
4653 else
4654 case $cross_compiling:$ac_tool_warned in
4655yes:)
4656{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4657$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4658ac_tool_warned=yes ;;
4659esac
4660 CXX=$ac_ct_CXX
4661 fi
18f6b6ee
PB
4662fi
4663
81ecdfbb
RW
4664 fi
4665fi
18f6b6ee 4666# Provide some information about the compiler.
81ecdfbb
RW
4667$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4668set X $ac_compile
4669ac_compiler=$2
4670for ac_option in --version -v -V -qversion; do
4671 { { ac_try="$ac_compiler $ac_option >&5"
4672case "(($ac_try" in
4673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4674 *) ac_try_echo=$ac_try;;
4675esac
4676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4677$as_echo "$ac_try_echo"; } >&5
4678 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4679 ac_status=$?
81ecdfbb
RW
4680 if test -s conftest.err; then
4681 sed '10a\
4682... rest of stderr output deleted ...
4683 10q' conftest.err >conftest.er1
4684 cat conftest.er1 >&5
4685 rm -f conftest.er1 conftest.err
4686 fi
4687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4688 test $ac_status = 0; }
4689done
18f6b6ee 4690
81ecdfbb
RW
4691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4692$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4693if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4694 $as_echo_n "(cached) " >&6
18f6b6ee 4695else
81ecdfbb 4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4697/* end confdefs.h. */
4698
4699int
4700main ()
4701{
4702#ifndef __GNUC__
4703 choke me
4704#endif
4705
4706 ;
4707 return 0;
4708}
4709_ACEOF
81ecdfbb 4710if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4711 ac_compiler_gnu=yes
4712else
81ecdfbb 4713 ac_compiler_gnu=no
18f6b6ee 4714fi
81ecdfbb 4715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4716ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4717
4718fi
81ecdfbb
RW
4719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4720$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4721if test $ac_compiler_gnu = yes; then
4722 GXX=yes
4723else
4724 GXX=
4725fi
18f6b6ee
PB
4726ac_test_CXXFLAGS=${CXXFLAGS+set}
4727ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4729$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4730if test "${ac_cv_prog_cxx_g+set}" = set; then :
4731 $as_echo_n "(cached) " >&6
4732else
4733 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4734 ac_cxx_werror_flag=yes
4735 ac_cv_prog_cxx_g=no
4736 CXXFLAGS="-g"
4737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4738/* end confdefs.h. */
4739
4740int
4741main ()
4742{
4743
4744 ;
4745 return 0;
4746}
4747_ACEOF
81ecdfbb 4748if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4749 ac_cv_prog_cxx_g=yes
4750else
81ecdfbb
RW
4751 CXXFLAGS=""
4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4753/* end confdefs.h. */
81ecdfbb 4754
18f6b6ee
PB
4755int
4756main ()
4757{
81ecdfbb 4758
18f6b6ee
PB
4759 ;
4760 return 0;
4761}
4762_ACEOF
81ecdfbb 4763if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 4764
81ecdfbb
RW
4765else
4766 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4767 CXXFLAGS="-g"
4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4769/* end confdefs.h. */
81ecdfbb 4770
18f6b6ee
PB
4771int
4772main ()
4773{
81ecdfbb 4774
18f6b6ee
PB
4775 ;
4776 return 0;
4777}
4778_ACEOF
81ecdfbb
RW
4779if ac_fn_cxx_try_compile "$LINENO"; then :
4780 ac_cv_prog_cxx_g=yes
18f6b6ee 4781fi
81ecdfbb
RW
4782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4783fi
4784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4785fi
4786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4787 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4788fi
4789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4790$as_echo "$ac_cv_prog_cxx_g" >&6; }
4791if test "$ac_test_CXXFLAGS" = set; then
4792 CXXFLAGS=$ac_save_CXXFLAGS
4793elif test $ac_cv_prog_cxx_g = yes; then
4794 if test "$GXX" = yes; then
4795 CXXFLAGS="-g -O2"
4796 else
4797 CXXFLAGS="-g"
4798 fi
4799else
4800 if test "$GXX" = yes; then
4801 CXXFLAGS="-O2"
4802 else
4803 CXXFLAGS=
4804 fi
18f6b6ee 4805fi
18f6b6ee
PB
4806ac_ext=c
4807ac_cpp='$CPP $CPPFLAGS'
4808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4810ac_compiler_gnu=$ac_cv_c_compiler_gnu
4811
4812
4813# We must set the default linker to the linker used by gcc for the correct
4814# operation of libtool. If LD is not defined and we are using gcc, try to
4815# set the LD default to the ld used by gcc.
4816if test -z "$LD"; then
4817 if test "$GCC" = yes; then
4818 case $build in
4819 *-*-mingw*)
4820 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4821 *)
4822 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4823 esac
4824 case $gcc_prog_ld in
4825 # Accept absolute paths.
4826 [\\/]* | [A-Za-z]:[\\/]*)
4827 LD="$gcc_prog_ld" ;;
4828 esac
4829 fi
512b7dfb
PB
4830fi
4831
4832
4833
4834
c6b750e1 4835if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4836 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4837set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
4838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4839$as_echo_n "checking for $ac_word... " >&6; }
4840if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4841 $as_echo_n "(cached) " >&6
9e07f89d 4842else
512b7dfb
PB
4843 if test -n "$GNATBIND"; then
4844 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4845else
c6b750e1
DJ
4846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847for as_dir in $PATH
4848do
4849 IFS=$as_save_IFS
4850 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4851 for ac_exec_ext in '' $ac_executable_extensions; do
4852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4853 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 4854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4855 break 2
4856 fi
4857done
81ecdfbb
RW
4858 done
4859IFS=$as_save_IFS
c6b750e1 4860
9e07f89d
NN
4861fi
4862fi
512b7dfb
PB
4863GNATBIND=$ac_cv_prog_GNATBIND
4864if test -n "$GNATBIND"; then
81ecdfbb
RW
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4866$as_echo "$GNATBIND" >&6; }
9e07f89d 4867else
81ecdfbb
RW
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4869$as_echo "no" >&6; }
9e07f89d
NN
4870fi
4871
81ecdfbb 4872
c6b750e1 4873fi
512b7dfb
PB
4874if test -z "$ac_cv_prog_GNATBIND"; then
4875 ac_ct_GNATBIND=$GNATBIND
4876 # Extract the first word of "gnatbind", so it can be a program name with args.
4877set dummy gnatbind; ac_word=$2
81ecdfbb
RW
4878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4879$as_echo_n "checking for $ac_word... " >&6; }
4880if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4881 $as_echo_n "(cached) " >&6
9e07f89d 4882else
512b7dfb
PB
4883 if test -n "$ac_ct_GNATBIND"; then
4884 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4885else
c6b750e1
DJ
4886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887for as_dir in $PATH
4888do
4889 IFS=$as_save_IFS
4890 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4891 for ac_exec_ext in '' $ac_executable_extensions; do
4892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4893 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 4894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4895 break 2
4896 fi
4897done
81ecdfbb
RW
4898 done
4899IFS=$as_save_IFS
c6b750e1 4900
9e07f89d
NN
4901fi
4902fi
512b7dfb
PB
4903ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4904if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4906$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 4907else
81ecdfbb
RW
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4909$as_echo "no" >&6; }
9e07f89d
NN
4910fi
4911
81ecdfbb
RW
4912 if test "x$ac_ct_GNATBIND" = x; then
4913 GNATBIND="no"
4914 else
4915 case $cross_compiling:$ac_tool_warned in
4916yes:)
4917{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4918$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4919ac_tool_warned=yes ;;
4920esac
4921 GNATBIND=$ac_ct_GNATBIND
4922 fi
24ff9987 4923else
512b7dfb 4924 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4925fi
4926
7df2cd5d 4927if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4928 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4929set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
4930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4931$as_echo_n "checking for $ac_word... " >&6; }
4932if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4933 $as_echo_n "(cached) " >&6
7df2cd5d 4934else
512b7dfb
PB
4935 if test -n "$GNATMAKE"; then
4936 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4937else
4938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939for as_dir in $PATH
4940do
4941 IFS=$as_save_IFS
4942 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4943 for ac_exec_ext in '' $ac_executable_extensions; do
4944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4945 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 4946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
4947 break 2
4948 fi
4949done
81ecdfbb
RW
4950 done
4951IFS=$as_save_IFS
7df2cd5d
PB
4952
4953fi
4954fi
512b7dfb
PB
4955GNATMAKE=$ac_cv_prog_GNATMAKE
4956if test -n "$GNATMAKE"; then
81ecdfbb
RW
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4958$as_echo "$GNATMAKE" >&6; }
7df2cd5d 4959else
81ecdfbb
RW
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4961$as_echo "no" >&6; }
7df2cd5d
PB
4962fi
4963
81ecdfbb 4964
7df2cd5d 4965fi
512b7dfb
PB
4966if test -z "$ac_cv_prog_GNATMAKE"; then
4967 ac_ct_GNATMAKE=$GNATMAKE
4968 # Extract the first word of "gnatmake", so it can be a program name with args.
4969set dummy gnatmake; ac_word=$2
81ecdfbb
RW
4970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4971$as_echo_n "checking for $ac_word... " >&6; }
4972if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4973 $as_echo_n "(cached) " >&6
7df2cd5d 4974else
512b7dfb
PB
4975 if test -n "$ac_ct_GNATMAKE"; then
4976 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4977else
4978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979for as_dir in $PATH
4980do
4981 IFS=$as_save_IFS
4982 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4985 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 4986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
4987 break 2
4988 fi
4989done
81ecdfbb
RW
4990 done
4991IFS=$as_save_IFS
7df2cd5d 4992
7df2cd5d
PB
4993fi
4994fi
512b7dfb
PB
4995ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4996if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4998$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 4999else
81ecdfbb
RW
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5001$as_echo "no" >&6; }
7df2cd5d
PB
5002fi
5003
81ecdfbb
RW
5004 if test "x$ac_ct_GNATMAKE" = x; then
5005 GNATMAKE="no"
5006 else
5007 case $cross_compiling:$ac_tool_warned in
5008yes:)
5009{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5010$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5011ac_tool_warned=yes ;;
5012esac
5013 GNATMAKE=$ac_ct_GNATMAKE
5014 fi
7df2cd5d 5015else
512b7dfb 5016 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
5017fi
5018
81ecdfbb
RW
5019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5020$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5021if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5022 $as_echo_n "(cached) " >&6
9e07f89d
NN
5023else
5024 cat >conftest.adb <<EOF
5025procedure conftest is begin null; end conftest;
5026EOF
5027acx_cv_cc_gcc_supports_ada=no
5028# There is a bug in old released versions of GCC which causes the
5029# driver to exit successfully when the appropriate language module
5030# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5031# Therefore we must check for the error message as well as an
5032# unsuccessful exit.
b8908782
DD
5033# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5034# given a .adb file, but produce no object file. So we must check
5035# if an object file was really produced to guard against this.
9e07f89d 5036errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 5037if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 5038 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
5039fi
5040rm -f conftest.*
5041fi
81ecdfbb
RW
5042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5043$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 5044
64b986c0 5045if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
5046 have_gnat=yes
5047else
5048 have_gnat=no
5049fi
5050
81ecdfbb
RW
5051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5052$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5053if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5054 $as_echo_n "(cached) " >&6
b8908782
DD
5055else
5056 echo abfoo >t1
5057 echo cdfoo >t2
5058 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5059 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5060 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5061 :
5062 else
5063 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5064 fi
5065 fi
b8908782
DD
5066 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5067 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5068 :
b8908782
DD
5069 else
5070 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5071 fi
5072 fi
5073 rm t1 t2
5074
5075fi
81ecdfbb
RW
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5077$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5078do_compare="$gcc_cv_prog_cmp_skip"
5079
5080
9e07f89d 5081
ffdd6afc
ILT
5082# Check whether --enable-bootstrap was given.
5083if test "${enable_bootstrap+set}" = set; then :
5084 enableval=$enable_bootstrap;
5085else
5086 enable_bootstrap=default
5087fi
5088
5089
5090# Issue errors and warnings for invalid/strange bootstrap combinations.
5091if test -r $srcdir/gcc/configure; then
5092 have_compiler=yes
5093else
5094 have_compiler=no
5095fi
5096
5097case "$have_compiler:$host:$target:$enable_bootstrap" in
5098 *:*:*:no) ;;
5099
5100 # Default behavior. Enable bootstrap if we have a compiler
5101 # and we are in a native configuration.
5102 yes:$build:$build:default)
5103 enable_bootstrap=yes ;;
5104
5105 *:*:*:default)
5106 enable_bootstrap=no ;;
5107
5108 # We have a compiler and we are in a native configuration, bootstrap is ok
5109 yes:$build:$build:yes)
5110 ;;
5111
5112 # Other configurations, but we have a compiler. Assume the user knows
5113 # what he's doing.
5114 yes:*:*:yes)
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5116$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5117 ;;
5118
5119 # No compiler: if they passed --enable-bootstrap explicitly, fail
5120 no:*:*:yes)
5121 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5122
5123 # Fail if wrong command line
5124 *)
5125 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5126 ;;
5127esac
5128
d5f2ee2e
KG
5129# Used for setting $lt_cv_objdir
5130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5131$as_echo_n "checking for objdir... " >&6; }
5132if test "${lt_cv_objdir+set}" = set; then :
5133 $as_echo_n "(cached) " >&6
5134else
5135 rm -f .libs 2>/dev/null
5136mkdir .libs 2>/dev/null
5137if test -d .libs; then
5138 lt_cv_objdir=.libs
5139else
5140 # MS-DOS does not allow filenames that begin with a dot.
5141 lt_cv_objdir=_libs
5142fi
5143rmdir .libs 2>/dev/null
5144fi
5145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5146$as_echo "$lt_cv_objdir" >&6; }
5147objdir=$lt_cv_objdir
5148
5149
5150
5151
5152
5153cat >>confdefs.h <<_ACEOF
5154#define LT_OBJDIR "$lt_cv_objdir/"
5155_ACEOF
5156
5157
5158
e8a5fa9c 5159# Check for GMP, MPFR and MPC
d9b76ff9 5160gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 5161gmpinc=
4b900473 5162have_gmp=no
e8a5fa9c
RW
5163
5164# Specify a location for mpc
5165# check for this first so it ends up on the link line before mpfr.
5166
81ecdfbb
RW
5167# Check whether --with-mpc was given.
5168if test "${with_mpc+set}" = set; then :
5169 withval=$with_mpc;
5170fi
e8a5fa9c 5171
e8a5fa9c 5172
e552509b 5173# Check whether --with-mpc-include was given.
81ecdfbb
RW
5174if test "${with_mpc_include+set}" = set; then :
5175 withval=$with_mpc_include;
5176fi
e8a5fa9c 5177
e8a5fa9c 5178
e552509b 5179# Check whether --with-mpc-lib was given.
81ecdfbb
RW
5180if test "${with_mpc_lib+set}" = set; then :
5181 withval=$with_mpc_lib;
5182fi
e8a5fa9c 5183
e8a5fa9c
RW
5184
5185if test "x$with_mpc" != x; then
d9b76ff9
KG
5186 gmplibs="-L$with_mpc/lib $gmplibs"
5187 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5188fi
5189if test "x$with_mpc_include" != x; then
d9b76ff9 5190 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5191fi
5192if test "x$with_mpc_lib" != x; then
d9b76ff9 5193 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5194fi
5195if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5196 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5197 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5198 # Do not test the mpc version. Assume that it is sufficient, since
5199 # it is in the source tree, and the library has not been built yet
5200 # but it would be included on the link line in the version check below
5201 # hence making the test fail.
d9b76ff9 5202 have_gmp=yes
e8a5fa9c 5203fi
4b900473 5204
11b04d1f
DD
5205# Specify a location for mpfr
5206# check for this first so it ends up on the link line before gmp.
c6b750e1 5207
81ecdfbb
RW
5208# Check whether --with-mpfr-dir was given.
5209if test "${with_mpfr_dir+set}" = set; then :
5210 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5211Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5212fi
5213
11b04d1f
DD
5214
5215
81ecdfbb
RW
5216# Check whether --with-mpfr was given.
5217if test "${with_mpfr+set}" = set; then :
5218 withval=$with_mpfr;
5219fi
c6b750e1 5220
11b04d1f 5221
e552509b 5222# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5223if test "${with_mpfr_include+set}" = set; then :
5224 withval=$with_mpfr_include;
5225fi
c6b750e1 5226
8a0d8a5c 5227
e552509b 5228# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5229if test "${with_mpfr_lib+set}" = set; then :
5230 withval=$with_mpfr_lib;
5231fi
8a0d8a5c 5232
11b04d1f
DD
5233
5234if test "x$with_mpfr" != x; then
5235 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5236 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5237fi
8a0d8a5c 5238if test "x$with_mpfr_include" != x; then
d9b76ff9 5239 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5240fi
5241if test "x$with_mpfr_lib" != x; then
5242 gmplibs="-L$with_mpfr_lib $gmplibs"
5243fi
4b900473 5244if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
58b1dd21
NC
5245 # MPFR v3.1.0 moved the sources into a src sub-directory.
5246 if test -d ${srcdir}/mpfr/src; then
5247 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5248 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5249 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5250 else
5251 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5252 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5253 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5254 fi
4b900473
PB
5255 # Do not test the mpfr version. Assume that it is sufficient, since
5256 # it is in the source tree, and the library has not been built yet
5257 # but it would be included on the link line in the version check below
5258 # hence making the test fail.
5259 have_gmp=yes
5260fi
11b04d1f 5261
4b1cb4fe 5262# Specify a location for gmp
c6b750e1 5263
81ecdfbb
RW
5264# Check whether --with-gmp-dir was given.
5265if test "${with_gmp_dir+set}" = set; then :
5266 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5267Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5268fi
5269
4b1cb4fe
DD
5270
5271
81ecdfbb
RW
5272# Check whether --with-gmp was given.
5273if test "${with_gmp+set}" = set; then :
5274 withval=$with_gmp;
5275fi
c6b750e1 5276
4b1cb4fe 5277
e552509b 5278# Check whether --with-gmp-include was given.
81ecdfbb
RW
5279if test "${with_gmp_include+set}" = set; then :
5280 withval=$with_gmp_include;
5281fi
c6b750e1 5282
8a0d8a5c 5283
e552509b 5284# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5285if test "${with_gmp_lib+set}" = set; then :
5286 withval=$with_gmp_lib;
5287fi
8a0d8a5c
PB
5288
5289
4b1cb4fe 5290
11b04d1f
DD
5291if test "x$with_gmp" != x; then
5292 gmplibs="-L$with_gmp/lib $gmplibs"
5293 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5294fi
8a0d8a5c
PB
5295if test "x$with_gmp_include" != x; then
5296 gmpinc="-I$with_gmp_include $gmpinc"
5297fi
5298if test "x$with_gmp_lib" != x; then
5299 gmplibs="-L$with_gmp_lib $gmplibs"
5300fi
4b900473 5301if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5302 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5303 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5304 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5305 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7ec59b9e 5306 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
4b900473
PB
5307 # Do not test the gmp version. Assume that it is sufficient, since
5308 # it is in the source tree, and the library has not been built yet
5309 # but it would be included on the link line in the version check below
5310 # hence making the test fail.
5311 have_gmp=yes
5312fi
4b1cb4fe 5313
ceb92e78 5314if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5315 have_gmp=yes
5316 saved_CFLAGS="$CFLAGS"
5317 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5318 # Check for the recommended and required versions of GMP.
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5320$as_echo_n "checking for the correct version of gmp.h... " >&6; }
a009f2e7
RW
5321
5322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5323/* end confdefs.h. */
5324#include "gmp.h"
5325int
5326main ()
5327{
5328
5329 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5330 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8e71395b 5331 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
a6b5846e
KG
5332 choke me
5333 #endif
5334
5335 ;
5336 return 0;
5337}
5338_ACEOF
5339if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5341/* end confdefs.h. */
a6b5846e 5342#include <gmp.h>
c6b750e1
DJ
5343int
5344main ()
5345{
4b1cb4fe 5346
a6b5846e
KG
5347 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5348 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5349 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5350 choke me
5351 #endif
c6b750e1
DJ
5352
5353 ;
5354 return 0;
5355}
5356_ACEOF
81ecdfbb
RW
5357if ac_fn_c_try_compile "$LINENO"; then :
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5359$as_echo "yes" >&6; }
a6b5846e
KG
5360else
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5362$as_echo "buggy but acceptable" >&6; }
5363fi
5364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5365else
81ecdfbb
RW
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5368fi
81ecdfbb 5369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5370
e8a5fa9c 5371 # If we have GMP, check the MPFR version.
4b900473 5372 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5373 # Check for the recommended and required versions of MPFR.
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5375$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5377/* end confdefs.h. */
9b134994 5378#include <gmp.h>
4b900473 5379 #include <mpfr.h>
c6b750e1
DJ
5380int
5381main ()
5382{
9b134994 5383
7ec59b9e 5384 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
4b900473
PB
5385 choke me
5386 #endif
c6b750e1
DJ
5387
5388 ;
5389 return 0;
5390}
5391_ACEOF
81ecdfbb
RW
5392if ac_fn_c_try_compile "$LINENO"; then :
5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5394/* end confdefs.h. */
4b1cb4fe 5395#include <gmp.h>
4b900473 5396 #include <mpfr.h>
c6b750e1
DJ
5397int
5398main ()
5399{
9dbaa842 5400
a6b5846e 5401 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5402 choke me
5403 #endif
e8a5fa9c
RW
5404
5405 ;
5406 return 0;
5407}
5408_ACEOF
81ecdfbb
RW
5409if ac_fn_c_try_compile "$LINENO"; then :
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5411$as_echo "yes" >&6; }
e8a5fa9c 5412else
81ecdfbb
RW
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5414$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5415fi
81ecdfbb 5416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5417else
81ecdfbb
RW
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5419$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5420fi
81ecdfbb 5421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5422 fi
5423
5424 # Check for the MPC header version.
d9b76ff9 5425 if test x"$have_gmp" = xyes ; then
a6b5846e 5426 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5428$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5430/* end confdefs.h. */
5431#include <mpc.h>
5432int
5433main ()
5434{
5435
a6b5846e
KG
5436 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5437 choke me
5438 #endif
5439
5440 ;
5441 return 0;
5442}
5443_ACEOF
5444if ac_fn_c_try_compile "$LINENO"; then :
5445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5446/* end confdefs.h. */
5447#include <mpc.h>
5448int
5449main ()
5450{
5451
5452 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
5453 choke me
5454 #endif
5455
5456 ;
5457 return 0;
5458}
5459_ACEOF
81ecdfbb
RW
5460if ac_fn_c_try_compile "$LINENO"; then :
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 5462$as_echo "yes" >&6; }
a6b5846e
KG
5463else
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5465$as_echo "buggy but acceptable" >&6; }
5466fi
5467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5468else
81ecdfbb 5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 5470$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5471fi
81ecdfbb 5472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5473 fi
5474
5475 # Now check the MPFR library.
5476 if test x"$have_gmp" = xyes; then
5477 saved_LIBS="$LIBS"
5478 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5480$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 5481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 5482/* end confdefs.h. */
d9b76ff9 5483#include <mpc.h>
e8a5fa9c
RW
5484int
5485main ()
5486{
5487
5488 mpfr_t n;
5489 mpfr_t x;
d9b76ff9 5490 mpc_t c;
e8a5fa9c
RW
5491 int t;
5492 mpfr_init (n);
5493 mpfr_init (x);
5494 mpfr_atan2 (n, n, x, GMP_RNDN);
5495 mpfr_erfc (n, x, GMP_RNDN);
5496 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
5497 mpfr_clear(n);
5498 mpfr_clear(x);
5499 mpc_init2 (c, 53);
5500 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5501 mpc_cosh (c, c, MPC_RNDNN);
5502 mpc_pow (c, c, c, MPC_RNDNN);
5503 mpc_acosh (c, c, MPC_RNDNN);
5504 mpc_clear (c);
c6b750e1
DJ
5505
5506 ;
5507 return 0;
5508}
5509_ACEOF
81ecdfbb
RW
5510if ac_fn_c_try_link "$LINENO"; then :
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5512$as_echo "yes" >&6; }
c6b750e1 5513else
81ecdfbb
RW
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5515$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5516fi
81ecdfbb
RW
5517rm -f core conftest.err conftest.$ac_objext \
5518 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5519 LIBS="$saved_LIBS"
5520 fi
5521
4b900473 5522 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5523
a6b5846e
KG
5524# The library versions listed in the error message below should match
5525# the HARD-minimums enforced above.
4b900473 5526 if test x$have_gmp != xyes; then
7ec59b9e 5527 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
d9b76ff9
KG
5528Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5529their locations. Source code for these libraries can be found at
5530their respective hosting sites as well as at
5531ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5532http://gcc.gnu.org/install/prerequisites.html for additional info. If
5533you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5534make sure that you have installed both the libraries and the header
5535files. They may be located in separate packages." "$LINENO" 5
4b900473 5536 fi
9dbaa842
DD
5537fi
5538
e8a5fa9c
RW
5539# Flags needed for both GMP, MPFR and/or MPC.
5540
5541
5542
4b1cb4fe
DD
5543
5544
5545
7ec59b9e 5546
29383458
JM
5547# Allow host libstdc++ to be specified for static linking with PPL.
5548
81ecdfbb
RW
5549# Check whether --with-host-libstdcxx was given.
5550if test "${with_host_libstdcxx+set}" = set; then :
5551 withval=$with_host_libstdcxx;
5552fi
29383458 5553
29383458
JM
5554
5555case $with_host_libstdcxx in
5556 no|yes)
81ecdfbb 5557 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
29383458
JM
5558 ;;
5559esac
e28c595f 5560
e8a5fa9c
RW
5561# Linker flags to use for stage1 or when not boostrapping.
5562
81ecdfbb
RW
5563# Check whether --with-stage1-ldflags was given.
5564if test "${with_stage1_ldflags+set}" = set; then :
5565 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5566 stage1_ldflags=
5567 else
5568 stage1_ldflags=$withval
5569 fi
5570else
5571 stage1_ldflags=
81ecdfbb
RW
5572fi
5573
e8a5fa9c
RW
5574
5575
5576# Libraries to use for stage1 or when not bootstrapping.
5577
81ecdfbb
RW
5578# Check whether --with-stage1-libs was given.
5579if test "${with_stage1_libs+set}" = set; then :
5580 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5581 stage1_libs=
5582 else
5583 stage1_libs=$withval
5584 fi
5585else
5586 stage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5587fi
5588
e8a5fa9c
RW
5589
5590
e8a5fa9c
RW
5591# Libraries to use for stage2 and later builds. This defaults to the
5592# argument passed to --with-host-libstdcxx.
5593
81ecdfbb
RW
5594# Check whether --with-boot-libs was given.
5595if test "${with_boot_libs+set}" = set; then :
5596 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5597 poststage1_libs=
5598 else
5599 poststage1_libs=$withval
5600 fi
5601else
5602 poststage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5603fi
5604
e8a5fa9c
RW
5605
5606
143754cd
NC
5607# Linker flags to use for stage2 and later builds.
5608
5609# Check whether --with-boot-ldflags was given.
5610if test "${with_boot_ldflags+set}" = set; then :
5611 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5612 poststage1_ldflags=
5613 else
5614 poststage1_ldflags=$withval
5615 fi
5616else
5617 poststage1_ldflags=
4f11b223
ILT
5618 # In stages 2 and 3, default to linking libstdc++ and libgcc
5619 # statically. But if the user explicitly specified the libraries to
5620 # use, trust that they are doing what they want.
5621 if test "$poststage1_libs" = ""; then
143754cd
NC
5622 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5623 fi
5624fi
5625
5626
5627
8e71395b
L
5628# GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
5629# Basic setup is inlined here, actual checks are in config/cloog.m4 and
5630# config/isl.m4
5631
5632
5633# Check whether --with-cloog was given.
5634if test "${with_cloog+set}" = set; then :
5635 withval=$with_cloog;
5636fi
e28c595f
JM
5637
5638
7ec59b9e
L
5639# Check whether --with-isl was given.
5640if test "${with_isl+set}" = set; then :
5641 withval=$with_isl;
81ecdfbb 5642fi
e28c595f 5643
e28c595f 5644
8e71395b
L
5645# Treat either --without-cloog or --without-isl as a request to disable
5646# GRAPHITE support and skip all following checks.
5647if test "x$with_isl" != "xno" &&
5648 test "x$with_cloog" != "xno"; then
5649 # Check for ISL
5650
5651
7ec59b9e
L
5652# Check whether --with-isl-include was given.
5653if test "${with_isl_include+set}" = set; then :
5654 withval=$with_isl_include;
81ecdfbb
RW
5655fi
5656
e28c595f 5657
7ec59b9e
L
5658# Check whether --with-isl-lib was given.
5659if test "${with_isl_lib+set}" = set; then :
5660 withval=$with_isl_lib;
81ecdfbb 5661fi
e28c595f 5662
e28c595f 5663
7ec59b9e
L
5664 # Check whether --enable-isl-version-check was given.
5665if test "${enable_isl_version_check+set}" = set; then :
5666 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5667else
5668 ENABLE_ISL_CHECK=yes
b123da99
SP
5669fi
5670
5671
7ec59b9e
L
5672 # Initialize isllibs and islinc.
5673 case $with_isl in
5674 no)
5675 isllibs=
5676 islinc=
5677 ;;
5678 "" | yes)
5679 ;;
5680 *)
5681 isllibs="-L$with_isl/lib"
5682 islinc="-I$with_isl/include"
5683 ;;
5684 esac
5685 if test "x${with_isl_include}" != x ; then
5686 islinc="-I$with_isl_include"
5687 fi
5688 if test "x${with_isl_lib}" != x; then
5689 isllibs="-L$with_isl_lib"
5690 fi
5691 if test "x${islinc}" = x && test "x${isllibs}" = x \
5692 && test -d ${srcdir}/isl; then
5693 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5694 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5695 ENABLE_ISL_CHECK=no
5696 fi
b123da99 5697
b123da99 5698
e28c595f 5699
7ec59b9e
L
5700 if test "${ENABLE_ISL_CHECK}" = yes ; then
5701 _isl_saved_CFLAGS=$CFLAGS
5702 _isl_saved_LDFLAGS=$LDFLAGS
5703 _isl_saved_LIBS=$LIBS
5704
5705 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5706 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5707 LIBS="${_isl_saved_LIBS} -lisl"
5708 echo $CFLAGS
5709
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5711$as_echo_n "checking for version 0.10 of ISL... " >&6; }
5712if test "${gcc_cv_isl+set}" = set; then :
b123da99
SP
5713 $as_echo_n "(cached) " >&6
5714else
7ec59b9e
L
5715 if test "$cross_compiling" = yes; then :
5716 gcc_cv_isl=yes
5717else
5718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b123da99 5719/* end confdefs.h. */
7ec59b9e
L
5720#include <isl/version.h>
5721 #include <string.h>
b123da99
SP
5722int
5723main ()
5724{
7ec59b9e
L
5725if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
5726 return 1;
5727
b123da99
SP
5728 ;
5729 return 0;
5730}
5731_ACEOF
7ec59b9e
L
5732if ac_fn_c_try_run "$LINENO"; then :
5733 gcc_cv_isl=yes
e28c595f 5734else
7ec59b9e 5735 gcc_cv_isl=no
b123da99 5736fi
7ec59b9e
L
5737rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5738 conftest.$ac_objext conftest.beam conftest.$ac_ext
b123da99 5739fi
7ec59b9e 5740
81ecdfbb 5741fi
7ec59b9e
L
5742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5743$as_echo "$gcc_cv_isl" >&6; }
81ecdfbb 5744
7ec59b9e
L
5745 CFLAGS=$_isl_saved_CFLAGS
5746 LDFLAGS=$_isl_saved_LDFLAGS
5747 LIBS=$_isl_saved_LIBS
b123da99 5748 fi
e28c595f 5749
b123da99 5750
e28c595f 5751
e28c595f 5752
7ec59b9e
L
5753
5754
7ec59b9e
L
5755 if test "x${with_isl}" = xno; then
5756 graphite_requested=no
5757 elif test "x${with_isl}" != x \
5758 || test "x${with_isl_include}" != x \
5759 || test "x${with_isl_lib}" != x ; then
5760 graphite_requested=yes
5761 else
5762 graphite_requested=no
b123da99 5763 fi
e28c595f 5764
e28c595f
JM
5765
5766
7ec59b9e
L
5767 if test "${gcc_cv_isl}" = no ; then
5768 isllibs=
5769 islinc=
5770 fi
e28c595f 5771
7ec59b9e
L
5772 if test "${graphite_requested}" = yes \
5773 && test "x${isllibs}" = x \
5774 && test "x${islinc}" = x ; then
e28c595f 5775
7ec59b9e
L
5776 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
5777 fi
e552509b 5778
e28c595f
JM
5779
5780
8e71395b
L
5781 if test "x$gcc_cv_isl" != "xno"; then
5782 # Check for CLOOG
81ecdfbb 5783
e28c595f 5784
e552509b 5785# Check whether --with-cloog-include was given.
81ecdfbb
RW
5786if test "${with_cloog_include+set}" = set; then :
5787 withval=$with_cloog_include;
5788fi
e28c595f 5789
e28c595f 5790
e552509b 5791# Check whether --with-cloog-lib was given.
81ecdfbb
RW
5792if test "${with_cloog_lib+set}" = set; then :
5793 withval=$with_cloog_lib;
5794fi
e28c595f 5795
e28c595f 5796
e552509b
ILT
5797 # Check whether --enable-cloog-version-check was given.
5798if test "${enable_cloog_version_check+set}" = set; then :
5799 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5800else
5801 ENABLE_CLOOG_CHECK=yes
5802fi
5803
5804
5805 # Initialize clooglibs and clooginc.
5806 case $with_cloog in
5807 no)
5808 clooglibs=
5809 clooginc=
5810 ;;
5811 "" | yes)
5812 ;;
5813 *)
5814 clooglibs="-L$with_cloog/lib"
5815 clooginc="-I$with_cloog/include"
5816 ;;
5817 esac
5818 if test "x${with_cloog_include}" != x ; then
5819 clooginc="-I$with_cloog_include"
5820 fi
5821 if test "x${with_cloog_lib}" != x; then
5822 clooglibs="-L$with_cloog_lib"
5823 fi
7ec59b9e
L
5824 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
5825 && test -d ${srcdir}/cloog; then
5826 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5827 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
8d8eef9a
RW
5828 fi
5829
7ec59b9e 5830 clooginc="-DCLOOG_INT_GMP ${clooginc}"
8e71395b 5831 clooglibs="${clooglibs} -lcloog-isl ${isllibs} -lisl"
e28c595f 5832
e552509b
ILT
5833
5834
5835
5836
5837 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5838 _cloog_saved_CFLAGS=$CFLAGS
5839 _cloog_saved_LDFLAGS=$LDFLAGS
5840
7ec59b9e
L
5841 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
5842 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
e552509b 5843
7ec59b9e
L
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
5845$as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
5846if test "${gcc_cv_cloog+set}" = set; then :
e552509b
ILT
5847 $as_echo_n "(cached) " >&6
5848else
5849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5850/* end confdefs.h. */
7ec59b9e 5851#include "cloog/version.h"
e552509b
ILT
5852int
5853main ()
5854{
5855#if CLOOG_VERSION_MAJOR != 0 \
7ec59b9e
L
5856 || CLOOG_VERSION_MINOR != 17 \
5857 || CLOOG_VERSION_REVISION < 0
e552509b
ILT
5858 choke me
5859 #endif
5860 ;
5861 return 0;
5862}
5863_ACEOF
5864if ac_fn_c_try_compile "$LINENO"; then :
7ec59b9e 5865 gcc_cv_cloog=yes
e552509b 5866else
7ec59b9e 5867 gcc_cv_cloog=no
e552509b
ILT
5868fi
5869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5870fi
7ec59b9e
L
5871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
5872$as_echo "$gcc_cv_cloog" >&6; }
e552509b
ILT
5873
5874 CFLAGS=$_cloog_saved_CFLAGS
5875 LDFLAGS=$_cloog_saved_LDFLAGS
5876 fi
5877
5878
5879
e28c595f 5880
e28c595f
JM
5881
5882
5883
8d8eef9a
RW
5884 if test "x${with_cloog}" = xno; then
5885 graphite_requested=no
5886 elif test "x${with_cloog}" != x \
e552509b
ILT
5887 || test "x${with_cloog_include}" != x \
5888 || test "x${with_cloog_lib}" != x ; then
5889 graphite_requested=yes
5890 else
5891 graphite_requested=no
5892 fi
5893
5894
5895
7ec59b9e 5896 if test "${gcc_cv_cloog}" = no ; then
e552509b
ILT
5897 clooglibs=
5898 clooginc=
5899 fi
5900
5901 if test "${graphite_requested}" = yes \
5902 && test "x${clooglibs}" = x \
5903 && test "x${clooginc}" = x ; then
5904
8e71395b 5905 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
e552509b
ILT
5906 fi
5907
5908
8e71395b 5909 fi
e552509b
ILT
5910fi
5911
7ec59b9e
L
5912# If either the ISL or the CLooG check failed, disable builds of in-tree
5913# variants of both
8e71395b
L
5914if test "x$with_isl" = xno ||
5915 test "x$with_cloog" = xno ||
5916 test "x$gcc_cv_cloog" = xno ||
5917 test "x$gcc_cv_isl" = xno; then
7ec59b9e 5918 noconfigdirs="$noconfigdirs cloog isl"
8e71395b
L
5919 islinc=
5920 clooginc=
5921 clooglibs=
7ec59b9e
L
5922fi
5923
8e71395b
L
5924
5925
5926
5927
5928
700d40ca
ILT
5929# Check for LTO support.
5930# Check whether --enable-lto was given.
5931if test "${enable_lto+set}" = set; then :
5932 enableval=$enable_lto; enable_lto=$enableval
5933else
5934 enable_lto=yes; default_enable_lto=yes
5935fi
5936
5937
143754cd 5938
e49e5c92
DK
5939
5940
5941target_elf=no
5942case $target in
5943 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
090bc50f 5944 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
a009f2e7 5945 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
e49e5c92
DK
5946 target_elf=no
5947 ;;
5948 *)
5949 target_elf=yes
5950 ;;
5951esac
5952
5953if test $target_elf = yes; then :
74cea91b
DK
5954 # ELF platforms build the lto-plugin always.
5955 build_lto_plugin=yes
e49e5c92 5956
e49e5c92
DK
5957else
5958 if test x"$default_enable_lto" = x"yes" ; then
29821356 5959 case $target in
899b04ef 5960 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
74cea91b 5961 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
5962 *) enable_lto=no ;;
5963 esac
e49e5c92 5964 else
29821356
RW
5965 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
5966 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
5967 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
5968 # warn during gcc/ subconfigure; unless you're bootstrapping with
5969 # -flto it won't be needed until after installation anyway.
5970 case $target in
a8eb3f0a 5971 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
e49e5c92
DK
5972 *) if test x"$enable_lto" = x"yes"; then
5973 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
5974 fi
5975 ;;
5976 esac
5977 fi
a8eb3f0a 5978 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 5979 # Build it unless LTO was explicitly disabled.
a8eb3f0a 5980 case $target in
74cea91b 5981 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
5982 *) ;;
5983 esac
74cea91b 5984
e49e5c92
DK
5985fi
5986
700d40ca 5987
e28c595f 5988
7ec59b9e 5989# By default, C and C++ are the only stage 1 languages.
9b134994 5990stage1_languages=,c,
1d39f329 5991
e8a5fa9c 5992# Target libraries that we bootstrap.
2aa2364a 5993bootstrap_target_libs=,target-libgcc,
e8a5fa9c 5994
9e07f89d
NN
5995# Figure out what language subdirectories are present.
5996# Look if the user specified --enable-languages="..."; if not, use
5997# the environment variable $LANGUAGES if defined. $LANGUAGES might
5998# go away some day.
5999# NB: embedded tabs in this IF block -- do not untabify
6000if test -d ${srcdir}/gcc; then
6001 if test x"${enable_languages+set}" != xset; then
6002 if test x"${LANGUAGES+set}" = xset; then
6003 enable_languages="${LANGUAGES}"
6004 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6005 else
6006 enable_languages=all
6007 fi
6008 else
6009 if test x"${enable_languages}" = x ||
6010 test x"${enable_languages}" = xyes;
6011 then
6012 echo configure.in: --enable-languages needs at least one language argument 1>&2
6013 exit 1
6014 fi
6015 fi
6016 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6017
096f7d00
DE
6018 # 'f95' is the old name for the 'fortran' language. We issue a warning
6019 # and make the substitution.
6020 case ,${enable_languages}, in
6021 *,f95,*)
6022 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6023 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6024 ;;
6025 esac
6026
7ec59b9e
L
6027 # If bootstrapping, C++ must be enabled.
6028 case ",$enable_languages,:$enable_bootstrap" in
6029 *,c++,*:*) ;;
6030 *:yes)
ffdd6afc
ILT
6031 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6032 enable_languages="${enable_languages},c++"
6033 else
7ec59b9e 6034 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
ffdd6afc
ILT
6035 fi
6036 ;;
6037 esac
6038
9e07f89d
NN
6039 # First scan to see if an enabled language requires some other language.
6040 # We assume that a given config-lang.in will list all the language
6041 # front ends it requires, even if some are required indirectly.
6042 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6043 case ${lang_frag} in
6044 ..) ;;
6045 # The odd quoting in the next line works around
6046 # an apparent bug in bash 1.12 on linux.
6047 ${srcdir}/gcc/[*]/config-lang.in) ;;
6048 *)
e552509b
ILT
6049 # From the config-lang.in, get $language, $lang_requires, and
6050 # $lang_requires_boot_languages.
9e07f89d
NN
6051 language=
6052 lang_requires=
e552509b 6053 lang_requires_boot_languages=
9e07f89d 6054 . ${lang_frag}
e552509b 6055 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6056 case ,${enable_languages}, in
6057 *,$other,*) ;;
6058 *,all,*) ;;
6059 *,$language,*)
6060 echo " \`$other' language required by \`$language'; enabling" 1>&2
6061 enable_languages="${enable_languages},${other}"
6062 ;;
6063 esac
6064 done
e552509b
ILT
6065 for other in ${lang_requires_boot_languages} ; do
6066 if test "$other" != "c"; then
6067 case ,${enable_stage1_languages}, in
6068 *,$other,*) ;;
6069 *,all,*) ;;
6070 *)
6071 case ,${enable_languages}, in
6072 *,$language,*)
6073 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6074 enable_stage1_languages="$enable_stage1_languages,${other}"
6075 ;;
6076 esac
6077 ;;
6078 esac
6079 fi
6080 done
9e07f89d
NN
6081 ;;
6082 esac
6083 done
6084
9b134994 6085 new_enable_languages=,c,
700d40ca
ILT
6086
6087 # If LTO is enabled, add the LTO front end.
6088 extra_host_libiberty_configure_flags=
6089 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6090 case ,${enable_languages}, in
6091 *,lto,*) ;;
6092 *) enable_languages="${enable_languages},lto" ;;
6093 esac
a8eb3f0a 6094 if test "${build_lto_plugin}" = "yes" ; then
700d40ca
ILT
6095 configdirs="$configdirs lto-plugin"
6096 extra_host_libiberty_configure_flags=--enable-shared
6097 fi
6098 fi
6099
6100
9e07f89d 6101 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6102 potential_languages=,c,
9e07f89d 6103
9e1a94f4
ILT
6104 enabled_target_libs=
6105 disabled_target_libs=
6106
9e07f89d
NN
6107 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6108 case ${lang_frag} in
6109 ..) ;;
6110 # The odd quoting in the next line works around
6111 # an apparent bug in bash 1.12 on linux.
6112 ${srcdir}/gcc/[*]/config-lang.in) ;;
6113 *)
c6b750e1 6114 # From the config-lang.in, get $language, $target_libs,
1d39f329 6115 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6116 language=
6117 target_libs=
6118 lang_dirs=
64ce424c 6119 subdir_requires=
9b134994
PB
6120 boot_language=no
6121 build_by_default=yes
9e07f89d 6122 . ${lang_frag}
9b134994
PB
6123 if test x${language} = x; then
6124 echo "${lang_frag} doesn't set \$language." 1>&2
6125 exit 1
6126 fi
6127
ffdd6afc 6128 if test "$language" = "c++"; then
7ec59b9e 6129 boot_language=yes
e8a5fa9c
RW
6130 fi
6131
8e71395b 6132 add_this_lang=no
9b134994
PB
6133 case ,${enable_languages}, in
6134 *,${language},*)
7ec59b9e
L
6135 # Language was explicitly selected; include it
6136 # unless it is C, which is enabled by default.
6137 if test "$language" != "c"; then
6138 add_this_lang=yes
6139 fi
9e07f89d 6140 ;;
9b134994
PB
6141 *,all,*)
6142 # 'all' was selected, select it if it is a default language
8e71395b
L
6143 if test "$language" != "c"; then
6144 add_this_lang=${build_by_default}
6145 fi
9e07f89d
NN
6146 ;;
6147 esac
4b1cb4fe 6148
64ce424c 6149 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6150 for i in $subdir_requires; do
3d3adb43 6151 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
6152 case ,${enable_languages}, in
6153 *,${language},*)
6154 # Specifically requested language; tell them.
81ecdfbb 6155 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c
PB
6156 ;;
6157 *)
6158 # Silently disable.
9b134994 6159 add_this_lang=unsupported
64ce424c
PB
6160 ;;
6161 esac
6162 done
6163
9b134994
PB
6164 # Disable Ada if no preexisting GNAT is available.
6165 case ,${enable_languages},:${language}:${have_gnat} in
6166 *,${language},*:ada:no)
6167 # Specifically requested language; tell them.
81ecdfbb 6168 as_fn_error "GNAT is required to build $language" "$LINENO" 5
9b134994
PB
6169 ;;
6170 *:ada:no)
6171 # Silently disable.
6172 add_this_lang=unsupported
6173 ;;
6174 esac
6175
59f7ec45
HPN
6176 # Disable a language that is unsupported by the target.
6177 case " $unsupported_languages " in
6178 *" $language "*)
9b134994 6179 add_this_lang=unsupported
59f7ec45
HPN
6180 ;;
6181 esac
6182
4b1cb4fe 6183 case $add_this_lang in
9b134994 6184 unsupported)
9e07f89d 6185 # Remove language-dependent dirs.
9e1a94f4
ILT
6186 disabled_target_libs="$disabled_target_libs $target_libs"
6187 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 6188 ;;
9b134994
PB
6189 no)
6190 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
6191 disabled_target_libs="$disabled_target_libs $target_libs"
6192 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
6193 potential_languages="${potential_languages}${language},"
6194 ;;
6195 yes)
6196 new_enable_languages="${new_enable_languages}${language},"
6197 potential_languages="${potential_languages}${language},"
1d39f329 6198 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 6199 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
6200 case "${boot_language}:,$enable_stage1_languages," in
6201 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6202 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6203 case ",$stage1_languages," in
6204 *,$language,* | ,yes, | ,all,) ;;
6205 *) stage1_languages="${stage1_languages}${language}," ;;
6206 esac
e8a5fa9c
RW
6207 # We need to bootstrap any supporting libraries.
6208 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6209 ;;
6210 esac
6211 ;;
9e07f89d
NN
6212 esac
6213 ;;
6214 esac
6215 done
6216
9e1a94f4
ILT
6217 # Add target libraries which are only needed for disabled languages
6218 # to noconfigdirs.
6219 if test -n "$disabled_target_libs"; then
6220 for dir in $disabled_target_libs; do
6221 case " $enabled_target_libs " in
6222 *" ${dir} "*) ;;
6223 *) noconfigdirs="$noconfigdirs $dir" ;;
6224 esac
6225 done
6226 fi
6227
81ecdfbb
RW
6228 # Check whether --enable-stage1-languages was given.
6229if test "${enable_stage1_languages+set}" = set; then :
6230 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6231 ,no,|,,)
6232 # Set it to something that will have no effect in the loop below
6233 enable_stage1_languages=c ;;
6234 ,yes,)
6235 enable_stage1_languages=`echo $new_enable_languages | \
6236 sed -e "s/^,//" -e "s/,$//" ` ;;
6237 *,all,*)
6238 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6239 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6240 esac
6241
6242 # Add "good" languages from enable_stage1_languages to stage1_languages,
6243 # while "bad" languages go in missing_languages. Leave no duplicates.
6244 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6245 case $potential_languages in
6246 *,$i,*)
6247 case $stage1_languages in
6248 *,$i,*) ;;
6249 *) stage1_languages="$stage1_languages$i," ;;
6250 esac ;;
6251 *)
6252 case $missing_languages in
6253 *,$i,*) ;;
6254 *) missing_languages="$missing_languages$i," ;;
6255 esac ;;
6256 esac
6257 done
81ecdfbb
RW
6258fi
6259
9b134994
PB
6260
6261 # Remove leading/trailing commas that were added for simplicity
6262 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6263 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6264 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6265 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6266
9e07f89d 6267 if test "x$missing_languages" != x; then
81ecdfbb 6268 as_fn_error "
27258dd4 6269The following requested languages could not be built: ${missing_languages}
81ecdfbb 6270Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6271 fi
9e07f89d
NN
6272 if test "x$new_enable_languages" != "x$enable_languages"; then
6273 echo The following languages will be built: ${new_enable_languages}
9b134994 6274 enable_languages="$new_enable_languages"
9e07f89d 6275 fi
9b134994 6276
c6b750e1 6277
81ec575a 6278 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6279fi
6280
a6df5a19
PB
6281# Handle --disable-<component> generically.
6282for dir in $configdirs $build_configdirs $target_configdirs ; do
6283 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6284 varname=`echo $dirname | sed -e s/+/_/g`
6285 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6286 noconfigdirs="$noconfigdirs $dir"
6287 fi
6288done
6289
4f0ef2d8 6290# Check for Boehm's garbage collector
81ecdfbb
RW
6291# Check whether --enable-objc-gc was given.
6292if test "${enable_objc_gc+set}" = set; then :
6293 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4f0ef2d8 6294 *,objc,*:*:yes:*target-boehm-gc*)
81ecdfbb 6295 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
4f0ef2d8
CD
6296 ;;
6297esac
81ecdfbb
RW
6298fi
6299
4f0ef2d8
CD
6300
6301# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
6302case ,${enable_languages},:${enable_objc_gc} in
6303 *,objc,*:yes)
4f0ef2d8
CD
6304 # Keep target-boehm-gc if requested for Objective-C.
6305 ;;
4f0ef2d8 6306 *)
d42c4017
DA
6307 # Otherwise remove target-boehm-gc depending on target-libjava.
6308 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6309 noconfigdirs="$noconfigdirs target-boehm-gc"
6310 fi
4f0ef2d8
CD
6311 ;;
6312esac
6313
7ec59b9e
L
6314# Disable libitm if we're not building C++
6315case ,${enable_languages}, in
6316 *,c++,*) ;;
6317 *)
6318 noconfigdirs="$noconfigdirs target-libitm"
6319 ;;
6320esac
6321
caeba88f
AL
6322# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6323# $build_configdirs and $target_configdirs.
9e07f89d
NN
6324# If we have the source for $noconfigdirs entries, add them to $notsupp.
6325
6326notsupp=""
6327for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6328 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6329 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6330 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6331 if test -r $srcdir/$dirname/configure ; then
6332 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6333 true
6334 else
6335 notsupp="$notsupp $dir"
6336 fi
6337 fi
6338 fi
caeba88f
AL
6339 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6340 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6341 if test -r $srcdir/$dirname/configure ; then
6342 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6343 true
6344 else
6345 notsupp="$notsupp $dir"
6346 fi
6347 fi
6348 fi
9e07f89d
NN
6349 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6350 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6351 if test -r $srcdir/$dirname/configure ; then
6352 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6353 true
6354 else
6355 notsupp="$notsupp $dir"
6356 fi
6357 fi
6358 fi
6359done
6360
9e07f89d
NN
6361# Quietly strip out all directories which aren't configurable in this tree.
6362# This relies on all configurable subdirectories being autoconfiscated, which
6363# is now the case.
6a9cf61e
PB
6364build_configdirs_all="$build_configdirs"
6365build_configdirs=
6366for i in ${build_configdirs_all} ; do
c6b750e1 6367 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6368 if test -f ${srcdir}/$j/configure ; then
6369 build_configdirs="${build_configdirs} $i"
6370 fi
6371done
6372
9e07f89d
NN
6373configdirs_all="$configdirs"
6374configdirs=
6375for i in ${configdirs_all} ; do
6376 if test -f ${srcdir}/$i/configure ; then
6377 configdirs="${configdirs} $i"
6378 fi
6379done
6a9cf61e 6380
9e07f89d
NN
6381target_configdirs_all="$target_configdirs"
6382target_configdirs=
6383for i in ${target_configdirs_all} ; do
c6b750e1 6384 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6385 if test -f ${srcdir}/$j/configure ; then
6386 target_configdirs="${target_configdirs} $i"
6387 fi
6388done
6389
6390# Produce a warning message for the subdirs we can't configure.
6391# This isn't especially interesting in the Cygnus tree, but in the individual
6392# FSF releases, it's important to let people know when their machine isn't
6393# supported by the one or two programs in a package.
6394
6395if test -n "${notsupp}" && test -z "${norecursion}" ; then
6396 # If $appdirs is non-empty, at least one of those directories must still
6397 # be configured, or we error out. (E.g., if the gas release supports a
6398 # specified target in some subdirs but not the gas subdir, we shouldn't
6399 # pretend that all is well.)
6400 if test -n "$appdirs" ; then
6401 for dir in $appdirs ; do
6402 if test -r $dir/Makefile.in ; then
6403 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6404 appdirs=""
6405 break
6406 fi
6a9cf61e 6407 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6408 appdirs=""
6409 break
6410 fi
6411 fi
6412 done
6413 if test -n "$appdirs" ; then
6414 echo "*** This configuration is not supported by this package." 1>&2
6415 exit 1
6416 fi
6417 fi
6418 # Okay, some application will build, or we don't care to check. Still
6419 # notify of subdirs not getting built.
6420 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6421 echo " ${notsupp}" 1>&2
6422 echo " (Any other directories should still work fine.)" 1>&2
6423fi
6424
6425case "$host" in
6426 *msdosdjgpp*)
6427 enable_gdbtk=no ;;
6428esac
6429
18f6b6ee
PB
6430# To find our prefix, in gcc_cv_tool_prefix.
6431
6432# The user is always right.
6433if test "${PATH_SEPARATOR+set}" != set; then
6434 echo "#! /bin/sh" >conf$$.sh
6435 echo "exit 0" >>conf$$.sh
6436 chmod +x conf$$.sh
6437 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6438 PATH_SEPARATOR=';'
6439 else
6440 PATH_SEPARATOR=:
6441 fi
6442 rm -f conf$$.sh
6443fi
6444
6445
6446
6447if test "x$exec_prefix" = xNONE; then
6448 if test "x$prefix" = xNONE; then
6449 gcc_cv_tool_prefix=$ac_default_prefix
6450 else
6451 gcc_cv_tool_prefix=$prefix
6452 fi
6453else
6454 gcc_cv_tool_prefix=$exec_prefix
6455fi
6456
6457# If there is no compiler in the tree, use the PATH only. In any
6458# case, if there is no compiler in the tree nobody should use
6459# AS_FOR_TARGET and LD_FOR_TARGET.
6460if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6461 gcc_version=`cat $srcdir/gcc/BASE-VER`
6462 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6463 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6464 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6465 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6466 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6467 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6468else
6469 gcc_cv_tool_dirs=
6470fi
6471
6472if test x$build = x$target && test -n "$md_exec_prefix"; then
6473 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6474fi
6475
6476
6477
9e07f89d
NN
6478copy_dirs=
6479
c6b750e1 6480
81ecdfbb
RW
6481# Check whether --with-build-sysroot was given.
6482if test "${with_build_sysroot+set}" = set; then :
6483 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
6484 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6485 fi
6486else
6487 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 6488fi
a19b6204
MM
6489
6490
8a6ee3ab 6491
81ecdfbb
RW
6492
6493# Check whether --with-debug-prefix-map was given.
6494if test "${with_debug_prefix_map+set}" = set; then :
6495 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6496 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6497 for debug_map in $withval; do
6498 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6499 done
6500 fi
6501else
6502 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6503fi
6504
8a6ee3ab
JM
6505
6506
7f6ef0c0
PB
6507# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6508# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6509# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6510# We want to ensure that TARGET libraries (which we know are built with
6511# gcc) are built with "-O2 -g", so include those options when setting
6512# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6513if test "x$CFLAGS_FOR_TARGET" = x; then
6514 CFLAGS_FOR_TARGET=$CFLAGS
6515 case " $CFLAGS " in
6516 *" -O2 "*) ;;
68f107fa 6517 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
7f6ef0c0
PB
6518 esac
6519 case " $CFLAGS " in
6520 *" -g "* | *" -g3 "*) ;;
68f107fa 6521 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
7f6ef0c0
PB
6522 esac
6523fi
6524
6525
6526if test "x$CXXFLAGS_FOR_TARGET" = x; then
6527 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6528 case " $CXXFLAGS " in
6529 *" -O2 "*) ;;
68f107fa 6530 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
7f6ef0c0
PB
6531 esac
6532 case " $CXXFLAGS " in
6533 *" -g "* | *" -g3 "*) ;;
68f107fa 6534 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
7f6ef0c0
PB
6535 esac
6536fi
6537
6538
91c1f14c
DK
6539
6540
9e07f89d
NN
6541# Handle --with-headers=XXX. If the value is not "yes", the contents of
6542# the named directory are copied to $(tooldir)/sys-include.
6543if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6544 if test x${is_cross_compiler} = xno ; then
6545 echo 1>&2 '***' --with-headers is only supported when cross compiling
6546 exit 1
6547 fi
6548 if test x"${with_headers}" != xyes ; then
18f6b6ee 6549 x=${gcc_cv_tool_prefix}
c6b750e1 6550 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6551 fi
6552fi
6553
6554# Handle --with-libs=XXX. If the value is not "yes", the contents of
6555# the name directories are copied to $(tooldir)/lib. Multiple directories
6556# are permitted.
6557if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6558 if test x${is_cross_compiler} = xno ; then
6559 echo 1>&2 '***' --with-libs is only supported when cross compiling
6560 exit 1
6561 fi
6562 if test x"${with_libs}" != xyes ; then
6563 # Copy the libraries in reverse order, so that files in the first named
6564 # library override files in subsequent libraries.
18f6b6ee 6565 x=${gcc_cv_tool_prefix}
9e07f89d 6566 for l in ${with_libs}; do
c6b750e1 6567 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6568 done
6569 fi
6570fi
6571
700d40ca 6572# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
6573#
6574# This is done by determining whether or not the appropriate directory
6575# is available, and by checking whether or not specific configurations
6576# have requested that this magic not happen.
c6b750e1
DJ
6577#
6578# The command line options always override the explicit settings in
2429c060
PB
6579# configure.in, and the settings in configure.in override this magic.
6580#
c6b750e1 6581# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 6582# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
6583# --without-gnu-ld options for the configure script. Similarly, if
6584# the default is to use the included zlib and you don't want to do that,
6585# you should use the --with-system-zlib option for the configure script.
2429c060
PB
6586
6587if test x${use_gnu_as} = x &&
6588 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6589 with_gnu_as=yes
6590 extra_host_args="$extra_host_args --with-gnu-as"
6591fi
6592
6593if test x${use_gnu_ld} = x &&
93f9b408 6594 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
6595 with_gnu_ld=yes
6596 extra_host_args="$extra_host_args --with-gnu-ld"
6597fi
6598
700d40ca
ILT
6599if test x${use_included_zlib} = x &&
6600 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6601 :
6602else
6603 with_system_zlib=yes
6604 extra_host_args="$extra_host_args --with-system-zlib"
6605fi
6606
2429c060
PB
6607# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6608# can detect this case.
6609
6610if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6611 with_newlib=yes
6612 extra_host_args="$extra_host_args --with-newlib"
6613fi
6614
9e07f89d
NN
6615# Handle ${copy_dirs}
6616set fnord ${copy_dirs}
6617shift
6618while test $# != 0 ; do
6619 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6620 :
6621 else
6622 echo Copying $1 to $2
6623
6624 # Use the install script to create the directory and all required
6625 # parent directories.
6626 if test -d $2 ; then
6627 :
6628 else
6629 echo >config.temp
6630 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6631 fi
6632
6633 # Copy the directory, assuming we have tar.
6634 # FIXME: Should we use B in the second tar? Not all systems support it.
6635 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6636
6637 # It is the responsibility of the user to correctly adjust all
6638 # symlinks. If somebody can figure out how to handle them correctly
6639 # here, feel free to add the code.
6640
6641 echo $1 > $2/COPIED
6642 fi
6643 shift; shift
6644done
6645
2429c060
PB
6646# Determine a target-dependent exec_prefix that the installed
6647# gcc will search in. Keep this list sorted by triplet, with
6648# the *-*-osname triplets last.
6649md_exec_prefix=
6650case "${target}" in
521ec477 6651 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6652 md_exec_prefix=/dev/env/DJDIR/bin
6653 ;;
2429c060 6654 *-*-hpux* | \
2429c060 6655 *-*-nto-qnx* | \
1f111696 6656 *-*-solaris2*)
2429c060
PB
6657 md_exec_prefix=/usr/ccs/bin
6658 ;;
6659esac
6660
a0da8069
NN
6661extra_arflags_for_target=
6662extra_nmflags_for_target=
6663extra_ranlibflags_for_target=
6664target_makefile_frag=/dev/null
6665case "${target}" in
77d7106f
AM
6666 spu-*-*)
6667 target_makefile_frag="config/mt-spu"
6668 ;;
d09bbf00 6669 mips*-sde-elf* | mips*-mti-elf*)
429acdec
RS
6670 target_makefile_frag="config/mt-sde"
6671 ;;
f3b1e08e
RS
6672 mipsisa*-*-elfoabi*)
6673 target_makefile_frag="config/mt-mips-elfoabi"
6674 ;;
e7c8859c
RS
6675 mips*-*-*linux* | mips*-*-gnu*)
6676 target_makefile_frag="config/mt-mips-gnu"
6677 ;;
29383458 6678 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 6679 target_makefile_frag="config/mt-gnu"
a0da8069
NN
6680 ;;
6681 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 6682 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
6683 # commands to handle both 32-bit and 64-bit objects. These flags are
6684 # harmless if we're using GNU nm or ar.
6685 extra_arflags_for_target=" -X32_64"
6686 extra_nmflags_for_target=" -B -X32_64"
6687 ;;
a0da8069
NN
6688esac
6689
6690alphaieee_frag=/dev/null
6691case $target in
6692 alpha*-*-*)
6693 # This just makes sure to use the -mieee option to build target libs.
6694 # This should probably be set individually by each library.
6695 alphaieee_frag="config/mt-alphaieee"
6696 ;;
6697esac
6698
6699# If --enable-target-optspace always use -Os instead of -O2 to build
6700# the target libraries, similarly if it is not specified, use -Os
6701# on selected platforms.
6702ospace_frag=/dev/null
6703case "${enable_target_optspace}:${target}" in
6704 yes:*)
6705 ospace_frag="config/mt-ospace"
6706 ;;
6707 :d30v-*)
6708 ospace_frag="config/mt-d30v"
6709 ;;
6710 :m32r-* | :d10v-* | :fr30-*)
6711 ospace_frag="config/mt-ospace"
6712 ;;
6713 no:* | :*)
6714 ;;
6715 *)
6716 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6717 ;;
6718esac
6719
a0da8069
NN
6720# Some systems (e.g., one of the i386-aix systems the gas testers are
6721# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 6722tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
6723build_tooldir=${tooldir}
6724
a0da8069
NN
6725# Create a .gdbinit file which runs the one in srcdir
6726# and tells GDB to look there for source files.
6727
6728if test -r ${srcdir}/.gdbinit ; then
6729 case ${srcdir} in
6730 .) ;;
6731 *) cat > ./.gdbinit <<EOF
6732# ${NO_EDIT}
6733dir ${srcdir}
6734dir .
6735source ${srcdir}/.gdbinit
6736EOF
6737 ;;
6738 esac
6739fi
6740
a0da8069
NN
6741# Make sure that the compiler is able to generate an executable. If it
6742# can't, we are probably in trouble. We don't care whether we can run the
6743# executable--we might be using a cross compiler--we only care whether it
6744# can be created. At this point the main configure script has set CC.
6745we_are_ok=no
6746echo "int main () { return 0; }" > conftest.c
6747${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6748if test $? = 0 ; then
6749 if test -s conftest || test -s conftest.exe ; then
6750 we_are_ok=yes
6751 fi
c6b750e1 6752fi
a0da8069
NN
6753case $we_are_ok in
6754 no)
6755 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6756 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6757 rm -f conftest*
6758 exit 1
6759 ;;
6760esac
6761rm -f conftest*
6762
3bbd2f8f 6763# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
6764case "${host}" in
6765 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3516a403 6766 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 6767 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
6768 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6769esac
6770
3bbd2f8f 6771# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
6772# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6773# built executables to PATH.
3bbd2f8f
AL
6774if test "$RPATH_ENVVAR" = PATH; then
6775 GCC_SHLIB_SUBDIR=/shlib
6776else
6777 GCC_SHLIB_SUBDIR=
6778fi
6779
a0da8069
NN
6780# Record target_configdirs and the configure arguments for target and
6781# build configuration in Makefile.
6782target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 6783build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 6784
2aa2364a
JR
6785# If we are building libgomp, bootstrap it.
6786if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6787 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6788fi
6789
a0da8069
NN
6790# Determine whether gdb needs tk/tcl or not.
6791# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6792# and in that case we want gdb to be built without tk. Ugh!
6793# In fact I believe gdb is the *only* package directly dependent on tk,
6794# so we should be able to put the 'maybe's in unconditionally and
6795# leave out the maybe dependencies when enable_gdbtk is false. I'm not
6796# 100% sure that that's safe though.
c180f501 6797
675c6968 6798gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
6799case "$enable_gdbtk" in
6800 no)
6801 GDB_TK="" ;;
c180f501
AC
6802 yes)
6803 GDB_TK="${gdb_tk}" ;;
a0da8069 6804 *)
c180f501
AC
6805 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6806 # distro. Eventually someone will fix this and move Insight, nee
6807 # gdbtk to a separate directory.
6808 if test -d ${srcdir}/gdb/gdbtk ; then
6809 GDB_TK="${gdb_tk}"
6810 else
6811 GDB_TK=""
6812 fi
6813 ;;
a0da8069 6814esac
907be67c
DJ
6815CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6816INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 6817
6bd3dfaa 6818# Strip out unwanted targets.
dd12c3a8
NN
6819
6820# While at that, we remove Makefiles if we were started for recursive
6821# configuration, so that the top-level Makefile reconfigures them,
6822# like we used to do when configure itself was recursive.
dd12c3a8 6823
06a51eac
RW
6824# Loop over modules. We used to use the "$extrasub" feature from Autoconf
6825# but now we're fixing up the Makefile ourselves with the additional
6826# commands passed to AC_CONFIG_FILES. Use separate variables
6827# extrasub-{build,host,target} not because there is any reason to split
6828# the substitutions up that way, but only to remain below the limit of
6829# 99 commands in a script, for HP-UX sed.
6830# Do not nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 6831
16b1ad29
RW
6832case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6833 yes:yes:*\ gold\ *:*,c++,*) ;;
6834 yes:yes:*\ gold\ *:*)
6835 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
6836 ;;
6837esac
6838
9cb3fa6f 6839# Adjust the toplevel makefile according to whether bootstrap was selected.
96655cc4 6840case $enable_bootstrap in
319cab08 6841 yes)
96655cc4
AO
6842 bootstrap_suffix=bootstrap
6843 BUILD_CONFIG=bootstrap-debug
6844 ;;
319cab08 6845 no)
96655cc4
AO
6846 bootstrap_suffix=no-bootstrap
6847 BUILD_CONFIG=
6848 ;;
319cab08
PB
6849esac
6850
96655cc4
AO
6851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6852$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6853
6854
6855# Check whether --with-build-config was given.
6856if test "${with_build_config+set}" = set; then :
6857 withval=$with_build_config; case $with_build_config in
6858 yes) with_build_config= ;;
6859 no) with_build_config= BUILD_CONFIG= ;;
6860 esac
6861fi
6862
6863
6864if test "x${with_build_config}" != x; then
6865 BUILD_CONFIG=$with_build_config
6866else
6867 case $BUILD_CONFIG in
6868 bootstrap-debug)
6869 if echo "int f (void) { return 0; }" > conftest.c &&
6870 ${CC} -c conftest.c &&
6871 mv conftest.o conftest.o.g0 &&
6872 ${CC} -c -g conftest.c &&
6873 mv conftest.o conftest.o.g &&
a009f2e7 6874 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
96655cc4
AO
6875 :
6876 else
6877 BUILD_CONFIG=
6878 fi
6879 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6880 ;;
6881 esac
6882fi
6883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6884$as_echo "$BUILD_CONFIG" >&6; }
6885
6886
06a51eac 6887extrasub_build=
6a9cf61e 6888for module in ${build_configdirs} ; do
498d4a71
CF
6889 if test -z "${no_recursion}" \
6890 && test -f ${build_subdir}/${module}/Makefile; then
6891 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6892 rm -f ${build_subdir}/${module}/Makefile
6893 fi
06a51eac 6894 extrasub_build="$extrasub_build
498d4a71
CF
6895/^@if build-$module\$/d
6896/^@endif build-$module\$/d
6897/^@if build-$module-$bootstrap_suffix\$/d
6898/^@endif build-$module-$bootstrap_suffix\$/d"
6899done
06a51eac 6900extrasub_host=
498d4a71 6901for module in ${configdirs} ; do
80911fe1 6902 if test -z "${no_recursion}"; then
8cf39b1b 6903 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
6904 if test -f ${file}; then
6905 echo 1>&2 "*** removing ${file} to force reconfigure"
6906 rm -f ${file}
6907 fi
6908 done
498d4a71 6909 fi
06a51eac 6910 extrasub_host="$extrasub_host
498d4a71
CF
6911/^@if $module\$/d
6912/^@endif $module\$/d
6913/^@if $module-$bootstrap_suffix\$/d
6914/^@endif $module-$bootstrap_suffix\$/d"
6915done
06a51eac 6916extrasub_target=
498d4a71
CF
6917for module in ${target_configdirs} ; do
6918 if test -z "${no_recursion}" \
6919 && test -f ${target_subdir}/${module}/Makefile; then
6920 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6921 rm -f ${target_subdir}/${module}/Makefile
6922 fi
e8a5fa9c
RW
6923
6924 # We only bootstrap target libraries listed in bootstrap_target_libs.
6925 case $bootstrap_target_libs in
6926 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
6927 *) target_bootstrap_suffix=no-bootstrap ;;
6928 esac
6929
06a51eac 6930 extrasub_target="$extrasub_target
498d4a71
CF
6931/^@if target-$module\$/d
6932/^@endif target-$module\$/d
e8a5fa9c
RW
6933/^@if target-$module-$target_bootstrap_suffix\$/d
6934/^@endif target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
6935done
6936
06a51eac
RW
6937# Do the final fixup along with target modules.
6938extrasub_target="$extrasub_target
6bd3dfaa 6939/^@if /,/^@endif /d"
a0da8069
NN
6940
6941# Create the serialization dependencies. This uses a temporary file.
6942
81ecdfbb
RW
6943# Check whether --enable-serial-configure was given.
6944if test "${enable_serial_configure+set}" = set; then :
6945 enableval=$enable_serial_configure;
6946fi
e6bfb94a
AO
6947
6948
1047cb91
DD
6949case ${enable_serial_configure} in
6950 yes)
6951 enable_serial_build_configure=yes
6952 enable_serial_host_configure=yes
6953 enable_serial_target_configure=yes
6954 ;;
6955esac
6956
a0da8069
NN
6957# These force 'configure's to be done one at a time, to avoid problems
6958# with contention over a shared config.cache.
6959rm -f serdep.tmp
e6bfb94a 6960echo '# serdep.tmp' > serdep.tmp
a0da8069 6961olditem=
1047cb91 6962test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
6963for item in ${build_configdirs} ; do
6964 case ${olditem} in
6965 "") ;;
e6bfb94a 6966 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6967 esac
6968 olditem=${item}
6969done
6970olditem=
1047cb91 6971test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
6972for item in ${configdirs} ; do
6973 case ${olditem} in
6974 "") ;;
e6bfb94a 6975 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6976 esac
6977 olditem=${item}
6978done
6979olditem=
1047cb91 6980test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
6981for item in ${target_configdirs} ; do
6982 case ${olditem} in
6983 "") ;;
e6bfb94a 6984 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6985 esac
6986 olditem=${item}
6987done
6988serialization_dependencies=serdep.tmp
6989
6990
e6bfb94a 6991# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 6992# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
6993# might not want to pass down to subconfigures. The exception being
6994# --cache-file=/dev/null, which is used to turn off the use of cache
6995# files altogether, and which should be passed on to subconfigures.
6996# Also strip program-prefix, program-suffix, and program-transform-name,
6997# so that we can pass down a consistent program-transform-name.
c6b750e1 6998baseargs=
65b4571a 6999tbaseargs=
c6b750e1
DJ
7000keep_next=no
7001skip_next=no
7002eval "set -- $ac_configure_args"
18f6b6ee
PB
7003for ac_arg
7004do
c6b750e1
DJ
7005 if test X"$skip_next" = X"yes"; then
7006 skip_next=no
7007 continue
7008 fi
7009 if test X"$keep_next" = X"yes"; then
7010 case $ac_arg in
7011 *\'*)
7012 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7013 esac
7014 baseargs="$baseargs '$ac_arg'"
65b4571a 7015 tbaseargs="$tbaseargs '$ac_arg'"
c6b750e1
DJ
7016 keep_next=no
7017 continue
7018 fi
7019
7020 # Handle separated arguments. Based on the logic generated by
7021 # autoconf 2.59.
7022 case $ac_arg in
7023 *=* | --config-cache | -C | -disable-* | --disable-* \
7024 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7025 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7026 | -with-* | --with-* | -without-* | --without-* | --x)
7027 separate_arg=no
7028 ;;
7029 -*)
7030 separate_arg=yes
7031 ;;
7032 *)
7033 separate_arg=no
7034 ;;
7035 esac
7036
65b4571a
AO
7037 skip_targ=no
7038 case $ac_arg in
7039
7040 --with-* | --without-*)
7041 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7042
7043 case $libopt in
7044 *[-_]include)
7045 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7046 ;;
7047 *[-_]lib)
7048 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7049 ;;
7050 *)
7051 lib=$libopt
7052 ;;
7053 esac
7054
7055
7056 case $lib in
7ec59b9e 7057 mpc | mpfr | gmp | cloog)
65b4571a
AO
7058 # If we're processing --with-$lib, --with-$lib-include or
7059 # --with-$lib-lib, for one of the libs above, and target is
7060 # different from host, don't pass the current argument to any
7061 # target library's configure.
7062 if test x$is_cross_compiler = xyes; then
7063 skip_targ=yes
7064 fi
7065 ;;
7066 esac
7067 ;;
7068 esac
7069
c6b750e1 7070 case "$ac_arg" in
30167e0a
NC
7071 --cache-file=/dev/null | \
7072 -cache-file=/dev/null )
7073 # Handled here to avoid the test to skip args below.
7074 baseargs="$baseargs '$ac_arg'"
65b4571a 7075 tbaseargs="$tbaseargs '$ac_arg'"
30167e0a
NC
7076 # Assert: $separate_arg should always be no.
7077 keep_next=$separate_arg
7078 ;;
c6b750e1
DJ
7079 --no*)
7080 continue
7081 ;;
7082 --c* | \
7083 --sr* | \
7084 --ho* | \
7085 --bu* | \
7086 --t* | \
7087 --program-* | \
7088 -cache_file* | \
7089 -srcdir* | \
7090 -host* | \
7091 -build* | \
7092 -target* | \
7093 -program-prefix* | \
7094 -program-suffix* | \
7095 -program-transform-name* )
7096 skip_next=$separate_arg
7097 continue
7098 ;;
7099 -*)
7100 # An option. Add it.
7101 case $ac_arg in
7102 *\'*)
7103 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7104 esac
7105 baseargs="$baseargs '$ac_arg'"
65b4571a
AO
7106 if test X"$skip_targ" = Xno; then
7107 tbaseargs="$tbaseargs '$ac_arg'"
7108 fi
c6b750e1
DJ
7109 keep_next=$separate_arg
7110 ;;
7111 *)
7112 # Either a variable assignment, or a nonopt (triplet). Don't
7113 # pass it down; let the Makefile handle this.
7114 continue
7115 ;;
7116 esac
7117done
7118# Remove the initial space we just introduced and, as these will be
7119# expanded by make, quote '$'.
7120baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7121
f27d4f92
DJ
7122# Add in --program-transform-name, after --program-prefix and
7123# --program-suffix have been applied to it. Autoconf has already
7124# doubled dollar signs and backslashes in program_transform_name; we want
7125# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7126# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7127# Also, because we want to override the logic in subdir configure scripts to
7128# choose program_transform_name, replace any s,x,x, with s,y,y,.
7129sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7130${program_transform_name}
7131EOF_SED
7132gcc_transform_name=`cat conftestsed.out`
7133rm -f conftestsed.out
7134baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
65b4571a 7135tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7136if test "$silent" = yes; then
7137 baseargs="$baseargs --silent"
65b4571a 7138 tbaseargs="$tbaseargs --silent"
2444379b 7139fi
34a0f3cf 7140baseargs="$baseargs --disable-option-checking"
65b4571a 7141tbaseargs="$tbaseargs --disable-option-checking"
f27d4f92 7142
4074d5f2
RW
7143# Record and document user additions to sub configure arguments.
7144
7145
7146
7147
a0da8069
NN
7148# For the build-side libraries, we just need to pretend we're native,
7149# and not use the same cache file. Multilibs are neither needed nor
7150# desired.
4074d5f2 7151build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
a0da8069
NN
7152
7153# For host modules, accept cache file option, or specification as blank.
7154case "${cache_file}" in
7155"") # empty
7156 cache_file_option="" ;;
7157/* | [A-Za-z]:[\\/]* ) # absolute path
7158 cache_file_option="--cache-file=${cache_file}" ;;
7159*) # relative path
7160 cache_file_option="--cache-file=../${cache_file}" ;;
7161esac
7162
82252c06
NN
7163# Host dirs don't like to share a cache file either, horribly enough.
7164# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7165host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7166
65b4571a 7167target_configargs="$target_configargs ${tbaseargs}"
a0da8069
NN
7168
7169# Passing a --with-cross-host argument lets the target libraries know
7170# whether they are being built with a cross-compiler or being built
7171# native. However, it would be better to use other mechanisms to make the
7172# sorts of decisions they want to make on this basis. Please consider
7173# this option to be deprecated. FIXME.
7174if test x${is_cross_compiler} = xyes ; then
c6b750e1 7175 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7176fi
7177
938d2b74
RW
7178# Default to --enable-multilib.
7179if test x${enable_multilib} = x ; then
a0da8069 7180 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7181fi
a0da8069
NN
7182
7183# Pass --with-newlib if appropriate. Note that target_configdirs has
7184# changed from the earlier setting of with_newlib.
7185if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7186 target_configargs="--with-newlib ${target_configargs}"
7187fi
7188
95036d20
NN
7189# Different target subdirs use different values of certain variables
7190# (notably CXX). Worse, multilibs use *lots* of different values.
7191# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7192# it doesn't automatically accept command-line overrides of them.
7193# This means it's not safe for target subdirs to share a cache file,
7194# which is disgusting, but there you have it. Hopefully this can be
7195# fixed in future. It's still worthwhile to use a cache file for each
7196# directory. I think.
7197
ae380b45
MS
7198# Pass the appropriate --build, --host, --target and --cache-file arguments.
7199# We need to pass --target, as newer autoconf's requires consistency
7200# for target_alias and gcc doesn't manage it consistently.
4b900473 7201target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7202
a0da8069
NN
7203FLAGS_FOR_TARGET=
7204case " $target_configdirs " in
7205 *" newlib "*)
7206 case " $target_configargs " in
7207 *" --with-newlib "*)
7208 case "$target" in
1f53ca9a
AO
7209 *-cygwin*)
7210 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include'
7211 ;;
a0da8069
NN
7212 esac
7213
7214 # If we're not building GCC, don't discard standard headers.
7215 if test -d ${srcdir}/gcc; then
7216 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7217
7218 if test "${build}" != "${host}"; then
7219 # On Canadian crosses, CC_FOR_TARGET will have already been set
7220 # by `configure', so we won't have an opportunity to add -Bgcc/
7221 # to it. This is right: we don't want to search that directory
7222 # for binaries, but we want the header files in there, so add
7223 # them explicitly.
e552509b 7224 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7225
7226 # Someone might think of using the pre-installed headers on
7227 # Canadian crosses, in case the installed compiler is not fully
7228 # compatible with the compiler being built. In this case, it
7229 # would be better to flag an error than risking having
7230 # incompatible object files being constructed. We can't
7231 # guarantee that an error will be flagged, but let's hope the
7232 # compiler will do it, when presented with incompatible header
7233 # files.
7234 fi
7235 fi
7236
7237 case "${target}-${is_cross_compiler}" in
ec11bdc6 7238 i[3456789]86-*-linux*-no)
a0da8069
NN
7239 # Here host == target, so we don't need to build gcc,
7240 # so we don't want to discard standard headers.
7241 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7242 ;;
7243 *)
7244 # If we're building newlib, use its generic headers last, but search
7245 # for any libc-related directories first (so make it the last -B
7246 # switch).
7247 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
691bb5a1
DD
7248
7249 # If we're building libgloss, find the startup file, simulator library
7250 # and linker script.
7251 case " $target_configdirs " in
7252 *" libgloss "*)
7253 # Look for startup file, simulator library and maybe linker script.
7254 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7255 # Look for libnosys.a in case the target needs it.
7256 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7257 # Most targets have the linker script in the source directory.
7258 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7259 ;;
7260 esac
a0da8069
NN
7261 ;;
7262 esac
7263 ;;
7264 esac
7265 ;;
7266esac
1f53ca9a 7267
45055374 7268case "$target" in
1f53ca9a
AO
7269 x86_64-*mingw* | *-w64-mingw*)
7270 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7271 # however, use a symlink named 'mingw' in ${prefix} .
7272 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7273 ;;
7274 *-mingw*)
7275 # MinGW can't be handled as Cygwin above since it does not use newlib.
7276 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'
7277 ;;
45055374 7278esac
a0da8069 7279
5fbad20a
DD
7280# Allow the user to override the flags for
7281# our build compiler if desired.
c66487f8
NC
7282if test x"${build}" = x"${host}" ; then
7283 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7284 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7285 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7286fi
5fbad20a 7287
a0da8069
NN
7288# On Canadian crosses, we'll be searching the right directories for
7289# the previously-installed cross compiler, so don't bother to add
7290# flags for directories within the install tree of the compiler
7291# being built; programs in there won't even run.
7292if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7293 # Search for pre-installed headers if nothing else fits.
bba45b8b 7294 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
a0da8069
NN
7295fi
7296
7297if test "x${use_gnu_ld}" = x &&
7298 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7299 # Arrange for us to find uninstalled linker scripts.
b00612cc 7300 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
7301fi
7302
a481dbb7
DD
7303# Search for other target-specific linker scripts and such.
7304case "${target}" in
4e206d7e
DB
7305 mep*)
7306 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7307 ;;
7308esac
7309
a0da8069 7310# Makefile fragments.
3e707e94
PB
7311for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7312do
7313 eval fragval=\$$frag
7314 if test $fragval != /dev/null; then
7315 eval $frag=${srcdir}/$fragval
7316 fi
7317done
a0da8069
NN
7318
7319
7320
7321
7322
7323# Miscellanea: directories, flags, etc.
7324
7325
7326
7327
7328
7329
7330
3bbd2f8f 7331
6a9cf61e 7332# Build module lists & subconfigure args.
a0da8069
NN
7333
7334
7335
be01d343
PB
7336# Host module lists & subconfigure args.
7337
7338
7339
911e63d0 7340
be01d343
PB
7341# Target module lists & subconfigure args.
7342
7343
7344
7345# Build tools.
7346
7347
7348
1576798e
PB
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
be01d343
PB
7363# Generate default definitions for YACC, M4, LEX and other programs that run
7364# on the build machine. These are used if the Makefile can't locate these
7365# programs in objdir.
7366MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7367
7368for ac_prog in 'bison -y' byacc yacc
7369do
c6b750e1 7370 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7371set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7373$as_echo_n "checking for $ac_word... " >&6; }
7374if test "${ac_cv_prog_YACC+set}" = set; then :
7375 $as_echo_n "(cached) " >&6
be01d343
PB
7376else
7377 if test -n "$YACC"; then
7378 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7379else
c6b750e1
DJ
7380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381for as_dir in $PATH
7382do
7383 IFS=$as_save_IFS
7384 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7385 for ac_exec_ext in '' $ac_executable_extensions; do
7386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7387 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 7388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7389 break 2
7390 fi
7391done
81ecdfbb
RW
7392 done
7393IFS=$as_save_IFS
c6b750e1 7394
be01d343
PB
7395fi
7396fi
c6b750e1 7397YACC=$ac_cv_prog_YACC
be01d343 7398if test -n "$YACC"; then
81ecdfbb
RW
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7400$as_echo "$YACC" >&6; }
be01d343 7401else
81ecdfbb
RW
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7403$as_echo "no" >&6; }
be01d343
PB
7404fi
7405
81ecdfbb 7406
c6b750e1 7407 test -n "$YACC" && break
be01d343
PB
7408done
7409test -n "$YACC" || YACC="$MISSING bison -y"
7410
7411case " $build_configdirs " in
7412 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
be01d343
PB
7413esac
7414
7415for ac_prog in bison
7416do
c6b750e1 7417 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7418set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7420$as_echo_n "checking for $ac_word... " >&6; }
7421if test "${ac_cv_prog_BISON+set}" = set; then :
7422 $as_echo_n "(cached) " >&6
be01d343
PB
7423else
7424 if test -n "$BISON"; then
7425 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7426else
c6b750e1
DJ
7427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428for as_dir in $PATH
7429do
7430 IFS=$as_save_IFS
7431 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7432 for ac_exec_ext in '' $ac_executable_extensions; do
7433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7434 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 7435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7436 break 2
7437 fi
7438done
81ecdfbb
RW
7439 done
7440IFS=$as_save_IFS
c6b750e1 7441
be01d343
PB
7442fi
7443fi
c6b750e1 7444BISON=$ac_cv_prog_BISON
be01d343 7445if test -n "$BISON"; then
81ecdfbb
RW
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7447$as_echo "$BISON" >&6; }
be01d343 7448else
81ecdfbb
RW
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450$as_echo "no" >&6; }
be01d343
PB
7451fi
7452
81ecdfbb 7453
c6b750e1 7454 test -n "$BISON" && break
be01d343
PB
7455done
7456test -n "$BISON" || BISON="$MISSING bison"
7457
7458case " $build_configdirs " in
7459 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7460esac
7461
7462for ac_prog in gm4 gnum4 m4
7463do
c6b750e1 7464 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7465set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7467$as_echo_n "checking for $ac_word... " >&6; }
7468if test "${ac_cv_prog_M4+set}" = set; then :
7469 $as_echo_n "(cached) " >&6
be01d343
PB
7470else
7471 if test -n "$M4"; then
7472 ac_cv_prog_M4="$M4" # Let the user override the test.
7473else
c6b750e1
DJ
7474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475for as_dir in $PATH
7476do
7477 IFS=$as_save_IFS
7478 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7481 ac_cv_prog_M4="$ac_prog"
81ecdfbb 7482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7483 break 2
7484 fi
7485done
81ecdfbb
RW
7486 done
7487IFS=$as_save_IFS
c6b750e1 7488
be01d343
PB
7489fi
7490fi
c6b750e1 7491M4=$ac_cv_prog_M4
be01d343 7492if test -n "$M4"; then
81ecdfbb
RW
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7494$as_echo "$M4" >&6; }
be01d343 7495else
81ecdfbb
RW
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7497$as_echo "no" >&6; }
be01d343
PB
7498fi
7499
81ecdfbb 7500
c6b750e1 7501 test -n "$M4" && break
be01d343
PB
7502done
7503test -n "$M4" || M4="$MISSING m4"
7504
7505case " $build_configdirs " in
7506 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7507esac
7508
7509for ac_prog in flex lex
7510do
c6b750e1 7511 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7512set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7514$as_echo_n "checking for $ac_word... " >&6; }
7515if test "${ac_cv_prog_LEX+set}" = set; then :
7516 $as_echo_n "(cached) " >&6
be01d343
PB
7517else
7518 if test -n "$LEX"; then
7519 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7520else
c6b750e1
DJ
7521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522for as_dir in $PATH
7523do
7524 IFS=$as_save_IFS
7525 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7526 for ac_exec_ext in '' $ac_executable_extensions; do
7527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7528 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 7529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7530 break 2
7531 fi
7532done
81ecdfbb
RW
7533 done
7534IFS=$as_save_IFS
c6b750e1 7535
be01d343
PB
7536fi
7537fi
c6b750e1 7538LEX=$ac_cv_prog_LEX
be01d343 7539if test -n "$LEX"; then
81ecdfbb
RW
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7541$as_echo "$LEX" >&6; }
be01d343 7542else
81ecdfbb
RW
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7544$as_echo "no" >&6; }
be01d343
PB
7545fi
7546
81ecdfbb 7547
c6b750e1 7548 test -n "$LEX" && break
be01d343
PB
7549done
7550test -n "$LEX" || LEX="$MISSING flex"
7551
7552case " $build_configdirs " in
7553 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7554 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7555esac
7556
7557for ac_prog in flex
7558do
c6b750e1 7559 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7560set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7562$as_echo_n "checking for $ac_word... " >&6; }
7563if test "${ac_cv_prog_FLEX+set}" = set; then :
7564 $as_echo_n "(cached) " >&6
be01d343
PB
7565else
7566 if test -n "$FLEX"; then
7567 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7568else
c6b750e1
DJ
7569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7570for as_dir in $PATH
7571do
7572 IFS=$as_save_IFS
7573 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7574 for ac_exec_ext in '' $ac_executable_extensions; do
7575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7576 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 7577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7578 break 2
7579 fi
7580done
81ecdfbb
RW
7581 done
7582IFS=$as_save_IFS
c6b750e1 7583
be01d343
PB
7584fi
7585fi
c6b750e1 7586FLEX=$ac_cv_prog_FLEX
be01d343 7587if test -n "$FLEX"; then
81ecdfbb
RW
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7589$as_echo "$FLEX" >&6; }
be01d343 7590else
81ecdfbb
RW
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7592$as_echo "no" >&6; }
be01d343
PB
7593fi
7594
81ecdfbb 7595
c6b750e1 7596 test -n "$FLEX" && break
be01d343
PB
7597done
7598test -n "$FLEX" || FLEX="$MISSING flex"
7599
7600case " $build_configdirs " in
7601 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7602esac
7603
7604for ac_prog in makeinfo
7605do
c6b750e1 7606 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7607set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7609$as_echo_n "checking for $ac_word... " >&6; }
7610if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7611 $as_echo_n "(cached) " >&6
be01d343
PB
7612else
7613 if test -n "$MAKEINFO"; then
7614 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7615else
c6b750e1
DJ
7616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617for as_dir in $PATH
7618do
7619 IFS=$as_save_IFS
7620 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7621 for ac_exec_ext in '' $ac_executable_extensions; do
7622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7623 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 7624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7625 break 2
7626 fi
7627done
81ecdfbb
RW
7628 done
7629IFS=$as_save_IFS
c6b750e1 7630
be01d343
PB
7631fi
7632fi
c6b750e1 7633MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 7634if test -n "$MAKEINFO"; then
81ecdfbb
RW
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7636$as_echo "$MAKEINFO" >&6; }
be01d343 7637else
81ecdfbb
RW
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7639$as_echo "no" >&6; }
be01d343
PB
7640fi
7641
81ecdfbb 7642
c6b750e1 7643 test -n "$MAKEINFO" && break
be01d343
PB
7644done
7645test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7646
7647case " $build_configdirs " in
7648 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7649 *)
7650
10ad8ef3 7651 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
7652 # higher, else we use the "missing" dummy.
7653 if ${MAKEINFO} --version \
10ad8ef3 7654 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
7655 :
7656 else
7657 MAKEINFO="$MISSING makeinfo"
7658 fi
7659 ;;
7660
7661esac
a0da8069 7662
be01d343 7663# FIXME: expect and dejagnu may become build tools?
a0da8069 7664
be01d343
PB
7665for ac_prog in expect
7666do
c6b750e1 7667 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7668set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7670$as_echo_n "checking for $ac_word... " >&6; }
7671if test "${ac_cv_prog_EXPECT+set}" = set; then :
7672 $as_echo_n "(cached) " >&6
be01d343
PB
7673else
7674 if test -n "$EXPECT"; then
7675 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7676else
c6b750e1
DJ
7677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678for as_dir in $PATH
7679do
7680 IFS=$as_save_IFS
7681 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7682 for ac_exec_ext in '' $ac_executable_extensions; do
7683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7684 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 7685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7686 break 2
7687 fi
7688done
81ecdfbb
RW
7689 done
7690IFS=$as_save_IFS
c6b750e1 7691
be01d343
PB
7692fi
7693fi
c6b750e1 7694EXPECT=$ac_cv_prog_EXPECT
be01d343 7695if test -n "$EXPECT"; then
81ecdfbb
RW
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7697$as_echo "$EXPECT" >&6; }
be01d343 7698else
81ecdfbb
RW
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700$as_echo "no" >&6; }
be01d343 7701fi
a0da8069 7702
81ecdfbb 7703
c6b750e1 7704 test -n "$EXPECT" && break
be01d343
PB
7705done
7706test -n "$EXPECT" || EXPECT="expect"
a0da8069 7707
be01d343
PB
7708case " $configdirs " in
7709 *" expect "*)
7710 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7711 ;;
7712esac
a0da8069 7713
be01d343
PB
7714for ac_prog in runtest
7715do
c6b750e1 7716 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7717set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7719$as_echo_n "checking for $ac_word... " >&6; }
7720if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7721 $as_echo_n "(cached) " >&6
be01d343
PB
7722else
7723 if test -n "$RUNTEST"; then
7724 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7725else
c6b750e1
DJ
7726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727for as_dir in $PATH
7728do
7729 IFS=$as_save_IFS
7730 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7731 for ac_exec_ext in '' $ac_executable_extensions; do
7732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7733 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 7734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7735 break 2
7736 fi
7737done
81ecdfbb
RW
7738 done
7739IFS=$as_save_IFS
c6b750e1 7740
be01d343
PB
7741fi
7742fi
c6b750e1 7743RUNTEST=$ac_cv_prog_RUNTEST
be01d343 7744if test -n "$RUNTEST"; then
81ecdfbb
RW
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7746$as_echo "$RUNTEST" >&6; }
be01d343 7747else
81ecdfbb
RW
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7749$as_echo "no" >&6; }
be01d343 7750fi
a0da8069 7751
81ecdfbb 7752
c6b750e1 7753 test -n "$RUNTEST" && break
be01d343
PB
7754done
7755test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 7756
be01d343
PB
7757case " $configdirs " in
7758 *" dejagnu "*)
6b89cc21 7759 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
7760 ;;
7761esac
a0da8069
NN
7762
7763
a0da8069 7764# Host tools.
859789af
AC
7765ncn_tool_prefix=
7766test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7767ncn_target_tool_prefix=
7768test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7769
9a819804
AO
7770
7771
7772if test -n "$AR"; then
7773 ac_cv_prog_AR=$AR
7774elif test -n "$ac_cv_prog_AR"; then
7775 AR=$ac_cv_prog_AR
7776fi
7777
7778if test -n "$ac_cv_prog_AR"; then
7779 for ncn_progname in ar; do
7780 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7781set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7783$as_echo_n "checking for $ac_word... " >&6; }
7784if test "${ac_cv_prog_AR+set}" = set; then :
7785 $as_echo_n "(cached) " >&6
9a819804
AO
7786else
7787 if test -n "$AR"; then
7788 ac_cv_prog_AR="$AR" # Let the user override the test.
7789else
7790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7791for as_dir in $PATH
7792do
7793 IFS=$as_save_IFS
7794 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7795 for ac_exec_ext in '' $ac_executable_extensions; do
7796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 7797 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 7798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
7799 break 2
7800 fi
7801done
81ecdfbb
RW
7802 done
7803IFS=$as_save_IFS
9a819804
AO
7804
7805fi
7806fi
7807AR=$ac_cv_prog_AR
7808if test -n "$AR"; then
81ecdfbb
RW
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7810$as_echo "$AR" >&6; }
9a819804 7811else
81ecdfbb
RW
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7813$as_echo "no" >&6; }
9a819804
AO
7814fi
7815
81ecdfbb 7816
9a819804
AO
7817 done
7818fi
7819
7820for ncn_progname in ar; do
05cbd757
PB
7821 if test -n "$ncn_tool_prefix"; then
7822 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7823set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
7824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7825$as_echo_n "checking for $ac_word... " >&6; }
7826if test "${ac_cv_prog_AR+set}" = set; then :
7827 $as_echo_n "(cached) " >&6
859789af
AC
7828else
7829 if test -n "$AR"; then
7830 ac_cv_prog_AR="$AR" # Let the user override the test.
7831else
c6b750e1
DJ
7832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833for as_dir in $PATH
7834do
7835 IFS=$as_save_IFS
7836 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7837 for ac_exec_ext in '' $ac_executable_extensions; do
7838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7839 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 7840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7841 break 2
7842 fi
7843done
81ecdfbb
RW
7844 done
7845IFS=$as_save_IFS
c6b750e1 7846
859789af
AC
7847fi
7848fi
c6b750e1 7849AR=$ac_cv_prog_AR
859789af 7850if test -n "$AR"; then
81ecdfbb
RW
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7852$as_echo "$AR" >&6; }
859789af 7853else
81ecdfbb
RW
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7855$as_echo "no" >&6; }
859789af
AC
7856fi
7857
81ecdfbb 7858
05cbd757
PB
7859 fi
7860 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7861 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7862set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7864$as_echo_n "checking for $ac_word... " >&6; }
7865if test "${ac_cv_prog_AR+set}" = set; then :
7866 $as_echo_n "(cached) " >&6
859789af 7867else
05cbd757
PB
7868 if test -n "$AR"; then
7869 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 7870else
c6b750e1
DJ
7871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872for as_dir in $PATH
7873do
7874 IFS=$as_save_IFS
7875 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7876 for ac_exec_ext in '' $ac_executable_extensions; do
7877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7878 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 7879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7880 break 2
7881 fi
7882done
81ecdfbb
RW
7883 done
7884IFS=$as_save_IFS
c6b750e1 7885
859789af
AC
7886fi
7887fi
c6b750e1 7888AR=$ac_cv_prog_AR
05cbd757 7889if test -n "$AR"; then
81ecdfbb
RW
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7891$as_echo "$AR" >&6; }
859789af 7892else
81ecdfbb
RW
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7894$as_echo "no" >&6; }
859789af 7895fi
c6b750e1 7896
81ecdfbb 7897
05cbd757
PB
7898 fi
7899 test -n "$ac_cv_prog_AR" && break
7900done
7901
7902if test -z "$ac_cv_prog_AR" ; then
7903 set dummy ar
7904 if test $build = $host ; then
7905 AR="$2"
859789af 7906 else
05cbd757 7907 AR="${ncn_tool_prefix}$2"
859789af 7908 fi
859789af
AC
7909fi
7910
9a819804
AO
7911
7912
7913if test -n "$AS"; then
7914 ac_cv_prog_AS=$AS
7915elif test -n "$ac_cv_prog_AS"; then
7916 AS=$ac_cv_prog_AS
7917fi
7918
7919if test -n "$ac_cv_prog_AS"; then
7920 for ncn_progname in as; do
7921 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7922set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7924$as_echo_n "checking for $ac_word... " >&6; }
7925if test "${ac_cv_prog_AS+set}" = set; then :
7926 $as_echo_n "(cached) " >&6
9a819804
AO
7927else
7928 if test -n "$AS"; then
7929 ac_cv_prog_AS="$AS" # Let the user override the test.
7930else
7931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7932for as_dir in $PATH
7933do
7934 IFS=$as_save_IFS
7935 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7936 for ac_exec_ext in '' $ac_executable_extensions; do
7937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 7938 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 7939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
7940 break 2
7941 fi
7942done
81ecdfbb
RW
7943 done
7944IFS=$as_save_IFS
9a819804
AO
7945
7946fi
7947fi
7948AS=$ac_cv_prog_AS
7949if test -n "$AS"; then
81ecdfbb
RW
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7951$as_echo "$AS" >&6; }
9a819804 7952else
81ecdfbb
RW
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7954$as_echo "no" >&6; }
9a819804
AO
7955fi
7956
81ecdfbb 7957
9a819804
AO
7958 done
7959fi
7960
7961for ncn_progname in as; do
05cbd757
PB
7962 if test -n "$ncn_tool_prefix"; then
7963 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7964set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
7965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7966$as_echo_n "checking for $ac_word... " >&6; }
7967if test "${ac_cv_prog_AS+set}" = set; then :
7968 $as_echo_n "(cached) " >&6
859789af
AC
7969else
7970 if test -n "$AS"; then
7971 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
7972else
7973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7974for as_dir in $PATH
7975do
7976 IFS=$as_save_IFS
7977 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7978 for ac_exec_ext in '' $ac_executable_extensions; do
7979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7980 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 7981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7982 break 2
7983 fi
7984done
81ecdfbb
RW
7985 done
7986IFS=$as_save_IFS
c6b750e1 7987
859789af
AC
7988fi
7989fi
c6b750e1 7990AS=$ac_cv_prog_AS
859789af 7991if test -n "$AS"; then
81ecdfbb
RW
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7993$as_echo "$AS" >&6; }
859789af 7994else
81ecdfbb
RW
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996$as_echo "no" >&6; }
859789af
AC
7997fi
7998
81ecdfbb 7999
05cbd757
PB
8000 fi
8001 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8002 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8003set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8005$as_echo_n "checking for $ac_word... " >&6; }
8006if test "${ac_cv_prog_AS+set}" = set; then :
8007 $as_echo_n "(cached) " >&6
859789af 8008else
05cbd757
PB
8009 if test -n "$AS"; then
8010 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 8011else
c6b750e1
DJ
8012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8013for as_dir in $PATH
8014do
8015 IFS=$as_save_IFS
8016 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8017 for ac_exec_ext in '' $ac_executable_extensions; do
8018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8019 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8021 break 2
8022 fi
8023done
81ecdfbb
RW
8024 done
8025IFS=$as_save_IFS
c6b750e1 8026
859789af
AC
8027fi
8028fi
c6b750e1 8029AS=$ac_cv_prog_AS
05cbd757 8030if test -n "$AS"; then
81ecdfbb
RW
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8032$as_echo "$AS" >&6; }
859789af 8033else
81ecdfbb
RW
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8035$as_echo "no" >&6; }
859789af 8036fi
c6b750e1 8037
81ecdfbb 8038
05cbd757
PB
8039 fi
8040 test -n "$ac_cv_prog_AS" && break
8041done
8042
8043if test -z "$ac_cv_prog_AS" ; then
8044 set dummy as
8045 if test $build = $host ; then
8046 AS="$2"
859789af 8047 else
05cbd757 8048 AS="${ncn_tool_prefix}$2"
859789af 8049 fi
859789af
AC
8050fi
8051
9a819804
AO
8052
8053
8054if test -n "$DLLTOOL"; then
8055 ac_cv_prog_DLLTOOL=$DLLTOOL
8056elif test -n "$ac_cv_prog_DLLTOOL"; then
8057 DLLTOOL=$ac_cv_prog_DLLTOOL
8058fi
8059
8060if test -n "$ac_cv_prog_DLLTOOL"; then
8061 for ncn_progname in dlltool; do
8062 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8063set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8065$as_echo_n "checking for $ac_word... " >&6; }
8066if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8067 $as_echo_n "(cached) " >&6
9a819804
AO
8068else
8069 if test -n "$DLLTOOL"; then
8070 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8071else
8072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8073for as_dir in $PATH
8074do
8075 IFS=$as_save_IFS
8076 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8077 for ac_exec_ext in '' $ac_executable_extensions; do
8078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8079 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8081 break 2
8082 fi
8083done
81ecdfbb
RW
8084 done
8085IFS=$as_save_IFS
9a819804
AO
8086
8087fi
8088fi
8089DLLTOOL=$ac_cv_prog_DLLTOOL
8090if test -n "$DLLTOOL"; then
81ecdfbb
RW
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8092$as_echo "$DLLTOOL" >&6; }
9a819804 8093else
81ecdfbb
RW
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8095$as_echo "no" >&6; }
9a819804
AO
8096fi
8097
81ecdfbb 8098
9a819804
AO
8099 done
8100fi
8101
8102for ncn_progname in dlltool; do
05cbd757
PB
8103 if test -n "$ncn_tool_prefix"; then
8104 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8105set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8107$as_echo_n "checking for $ac_word... " >&6; }
8108if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8109 $as_echo_n "(cached) " >&6
859789af
AC
8110else
8111 if test -n "$DLLTOOL"; then
8112 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8113else
c6b750e1
DJ
8114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8115for as_dir in $PATH
8116do
8117 IFS=$as_save_IFS
8118 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8119 for ac_exec_ext in '' $ac_executable_extensions; do
8120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8121 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8123 break 2
8124 fi
8125done
81ecdfbb
RW
8126 done
8127IFS=$as_save_IFS
c6b750e1 8128
859789af
AC
8129fi
8130fi
c6b750e1 8131DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8132if test -n "$DLLTOOL"; then
81ecdfbb
RW
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8134$as_echo "$DLLTOOL" >&6; }
859789af 8135else
81ecdfbb
RW
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8137$as_echo "no" >&6; }
859789af
AC
8138fi
8139
81ecdfbb 8140
05cbd757
PB
8141 fi
8142 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8143 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8144set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8146$as_echo_n "checking for $ac_word... " >&6; }
8147if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8148 $as_echo_n "(cached) " >&6
859789af 8149else
05cbd757
PB
8150 if test -n "$DLLTOOL"; then
8151 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8152else
c6b750e1
DJ
8153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8154for as_dir in $PATH
8155do
8156 IFS=$as_save_IFS
8157 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8158 for ac_exec_ext in '' $ac_executable_extensions; do
8159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8160 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8162 break 2
8163 fi
8164done
81ecdfbb
RW
8165 done
8166IFS=$as_save_IFS
c6b750e1 8167
859789af
AC
8168fi
8169fi
c6b750e1 8170DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8171if test -n "$DLLTOOL"; then
81ecdfbb
RW
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8173$as_echo "$DLLTOOL" >&6; }
859789af 8174else
81ecdfbb
RW
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8176$as_echo "no" >&6; }
859789af 8177fi
c6b750e1 8178
81ecdfbb 8179
05cbd757
PB
8180 fi
8181 test -n "$ac_cv_prog_DLLTOOL" && break
8182done
8183
8184if test -z "$ac_cv_prog_DLLTOOL" ; then
8185 set dummy dlltool
8186 if test $build = $host ; then
8187 DLLTOOL="$2"
859789af 8188 else
05cbd757 8189 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8190 fi
859789af
AC
8191fi
8192
9a819804
AO
8193
8194
8195if test -n "$LD"; then
8196 ac_cv_prog_LD=$LD
8197elif test -n "$ac_cv_prog_LD"; then
8198 LD=$ac_cv_prog_LD
8199fi
8200
8201if test -n "$ac_cv_prog_LD"; then
8202 for ncn_progname in ld; do
8203 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8204set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8206$as_echo_n "checking for $ac_word... " >&6; }
8207if test "${ac_cv_prog_LD+set}" = set; then :
8208 $as_echo_n "(cached) " >&6
9a819804
AO
8209else
8210 if test -n "$LD"; then
8211 ac_cv_prog_LD="$LD" # Let the user override the test.
8212else
8213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8214for as_dir in $PATH
8215do
8216 IFS=$as_save_IFS
8217 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8218 for ac_exec_ext in '' $ac_executable_extensions; do
8219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8220 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8222 break 2
8223 fi
8224done
81ecdfbb
RW
8225 done
8226IFS=$as_save_IFS
9a819804
AO
8227
8228fi
8229fi
8230LD=$ac_cv_prog_LD
8231if test -n "$LD"; then
81ecdfbb
RW
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8233$as_echo "$LD" >&6; }
9a819804 8234else
81ecdfbb
RW
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8236$as_echo "no" >&6; }
9a819804
AO
8237fi
8238
81ecdfbb 8239
9a819804
AO
8240 done
8241fi
8242
8243for ncn_progname in ld; do
05cbd757
PB
8244 if test -n "$ncn_tool_prefix"; then
8245 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8246set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8248$as_echo_n "checking for $ac_word... " >&6; }
8249if test "${ac_cv_prog_LD+set}" = set; then :
8250 $as_echo_n "(cached) " >&6
859789af
AC
8251else
8252 if test -n "$LD"; then
8253 ac_cv_prog_LD="$LD" # Let the user override the test.
8254else
c6b750e1
DJ
8255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8256for as_dir in $PATH
8257do
8258 IFS=$as_save_IFS
8259 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8260 for ac_exec_ext in '' $ac_executable_extensions; do
8261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8262 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8264 break 2
8265 fi
8266done
81ecdfbb
RW
8267 done
8268IFS=$as_save_IFS
c6b750e1 8269
859789af
AC
8270fi
8271fi
c6b750e1 8272LD=$ac_cv_prog_LD
859789af 8273if test -n "$LD"; then
81ecdfbb
RW
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8275$as_echo "$LD" >&6; }
859789af 8276else
81ecdfbb
RW
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8278$as_echo "no" >&6; }
859789af
AC
8279fi
8280
81ecdfbb 8281
05cbd757
PB
8282 fi
8283 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8284 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8285set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8287$as_echo_n "checking for $ac_word... " >&6; }
8288if test "${ac_cv_prog_LD+set}" = set; then :
8289 $as_echo_n "(cached) " >&6
859789af 8290else
05cbd757
PB
8291 if test -n "$LD"; then
8292 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 8293else
c6b750e1
DJ
8294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8295for as_dir in $PATH
8296do
8297 IFS=$as_save_IFS
8298 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8299 for ac_exec_ext in '' $ac_executable_extensions; do
8300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8301 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8303 break 2
8304 fi
8305done
81ecdfbb
RW
8306 done
8307IFS=$as_save_IFS
c6b750e1 8308
859789af
AC
8309fi
8310fi
c6b750e1 8311LD=$ac_cv_prog_LD
05cbd757 8312if test -n "$LD"; then
81ecdfbb
RW
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8314$as_echo "$LD" >&6; }
859789af 8315else
81ecdfbb
RW
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8317$as_echo "no" >&6; }
859789af 8318fi
c6b750e1 8319
81ecdfbb 8320
05cbd757
PB
8321 fi
8322 test -n "$ac_cv_prog_LD" && break
8323done
8324
8325if test -z "$ac_cv_prog_LD" ; then
8326 set dummy ld
8327 if test $build = $host ; then
8328 LD="$2"
859789af 8329 else
05cbd757 8330 LD="${ncn_tool_prefix}$2"
859789af 8331 fi
859789af
AC
8332fi
8333
9a819804
AO
8334
8335
8336if test -n "$LIPO"; then
8337 ac_cv_prog_LIPO=$LIPO
8338elif test -n "$ac_cv_prog_LIPO"; then
8339 LIPO=$ac_cv_prog_LIPO
8340fi
8341
8342if test -n "$ac_cv_prog_LIPO"; then
8343 for ncn_progname in lipo; do
8344 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8345set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8347$as_echo_n "checking for $ac_word... " >&6; }
8348if test "${ac_cv_prog_LIPO+set}" = set; then :
8349 $as_echo_n "(cached) " >&6
9a819804
AO
8350else
8351 if test -n "$LIPO"; then
8352 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8353else
8354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8355for as_dir in $PATH
8356do
8357 IFS=$as_save_IFS
8358 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8359 for ac_exec_ext in '' $ac_executable_extensions; do
8360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8361 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8363 break 2
8364 fi
8365done
81ecdfbb
RW
8366 done
8367IFS=$as_save_IFS
9a819804
AO
8368
8369fi
8370fi
8371LIPO=$ac_cv_prog_LIPO
8372if test -n "$LIPO"; then
81ecdfbb
RW
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8374$as_echo "$LIPO" >&6; }
9a819804 8375else
81ecdfbb
RW
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8377$as_echo "no" >&6; }
9a819804
AO
8378fi
8379
81ecdfbb 8380
9a819804
AO
8381 done
8382fi
8383
8384for ncn_progname in lipo; do
be01d343
PB
8385 if test -n "$ncn_tool_prefix"; then
8386 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8387set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8389$as_echo_n "checking for $ac_word... " >&6; }
8390if test "${ac_cv_prog_LIPO+set}" = set; then :
8391 $as_echo_n "(cached) " >&6
be01d343
PB
8392else
8393 if test -n "$LIPO"; then
8394 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8395else
c6b750e1
DJ
8396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8397for as_dir in $PATH
8398do
8399 IFS=$as_save_IFS
8400 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8401 for ac_exec_ext in '' $ac_executable_extensions; do
8402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8403 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8405 break 2
8406 fi
8407done
81ecdfbb
RW
8408 done
8409IFS=$as_save_IFS
c6b750e1 8410
be01d343
PB
8411fi
8412fi
c6b750e1 8413LIPO=$ac_cv_prog_LIPO
be01d343 8414if test -n "$LIPO"; then
81ecdfbb
RW
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8416$as_echo "$LIPO" >&6; }
be01d343 8417else
81ecdfbb
RW
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8419$as_echo "no" >&6; }
be01d343
PB
8420fi
8421
81ecdfbb 8422
be01d343
PB
8423 fi
8424 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8425 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8426set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8428$as_echo_n "checking for $ac_word... " >&6; }
8429if test "${ac_cv_prog_LIPO+set}" = set; then :
8430 $as_echo_n "(cached) " >&6
be01d343
PB
8431else
8432 if test -n "$LIPO"; then
8433 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8434else
c6b750e1
DJ
8435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8436for as_dir in $PATH
8437do
8438 IFS=$as_save_IFS
8439 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8440 for ac_exec_ext in '' $ac_executable_extensions; do
8441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8442 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8444 break 2
8445 fi
8446done
81ecdfbb
RW
8447 done
8448IFS=$as_save_IFS
c6b750e1 8449
be01d343
PB
8450fi
8451fi
c6b750e1 8452LIPO=$ac_cv_prog_LIPO
be01d343 8453if test -n "$LIPO"; then
81ecdfbb
RW
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8455$as_echo "$LIPO" >&6; }
be01d343 8456else
81ecdfbb
RW
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8458$as_echo "no" >&6; }
be01d343 8459fi
c6b750e1 8460
81ecdfbb 8461
be01d343
PB
8462 fi
8463 test -n "$ac_cv_prog_LIPO" && break
8464done
8465
8466if test -z "$ac_cv_prog_LIPO" ; then
8467 set dummy lipo
8468 if test $build = $host ; then
8469 LIPO="$2"
8470 else
8471 LIPO="${ncn_tool_prefix}$2"
8472 fi
8473fi
8474
9a819804
AO
8475
8476
8477if test -n "$NM"; then
8478 ac_cv_prog_NM=$NM
8479elif test -n "$ac_cv_prog_NM"; then
8480 NM=$ac_cv_prog_NM
8481fi
8482
8483if test -n "$ac_cv_prog_NM"; then
8484 for ncn_progname in nm; do
8485 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8486set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8488$as_echo_n "checking for $ac_word... " >&6; }
8489if test "${ac_cv_prog_NM+set}" = set; then :
8490 $as_echo_n "(cached) " >&6
859789af
AC
8491else
8492 if test -n "$NM"; then
8493 ac_cv_prog_NM="$NM" # Let the user override the test.
8494else
c6b750e1
DJ
8495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8496for as_dir in $PATH
8497do
8498 IFS=$as_save_IFS
8499 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8500 for ac_exec_ext in '' $ac_executable_extensions; do
8501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8502 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8504 break 2
8505 fi
8506done
81ecdfbb
RW
8507 done
8508IFS=$as_save_IFS
c6b750e1 8509
859789af
AC
8510fi
8511fi
c6b750e1 8512NM=$ac_cv_prog_NM
859789af 8513if test -n "$NM"; then
81ecdfbb
RW
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8515$as_echo "$NM" >&6; }
859789af 8516else
81ecdfbb
RW
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8518$as_echo "no" >&6; }
859789af
AC
8519fi
8520
81ecdfbb 8521
9a819804
AO
8522 done
8523fi
8524
8525for ncn_progname in nm; do
8526 if test -n "$ncn_tool_prefix"; then
8527 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8528set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8530$as_echo_n "checking for $ac_word... " >&6; }
8531if test "${ac_cv_prog_NM+set}" = set; then :
8532 $as_echo_n "(cached) " >&6
859789af 8533else
05cbd757
PB
8534 if test -n "$NM"; then
8535 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 8536else
c6b750e1
DJ
8537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8538for as_dir in $PATH
8539do
8540 IFS=$as_save_IFS
8541 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8542 for ac_exec_ext in '' $ac_executable_extensions; do
8543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8544 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8546 break 2
8547 fi
8548done
81ecdfbb
RW
8549 done
8550IFS=$as_save_IFS
c6b750e1 8551
859789af
AC
8552fi
8553fi
c6b750e1 8554NM=$ac_cv_prog_NM
05cbd757 8555if test -n "$NM"; then
81ecdfbb
RW
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8557$as_echo "$NM" >&6; }
859789af 8558else
81ecdfbb
RW
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8560$as_echo "no" >&6; }
859789af 8561fi
c6b750e1 8562
81ecdfbb 8563
05cbd757 8564 fi
9a819804
AO
8565 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8566 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8567set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8569$as_echo_n "checking for $ac_word... " >&6; }
8570if test "${ac_cv_prog_NM+set}" = set; then :
8571 $as_echo_n "(cached) " >&6
9a819804
AO
8572else
8573 if test -n "$NM"; then
8574 ac_cv_prog_NM="$NM" # Let the user override the test.
8575else
8576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8577for as_dir in $PATH
8578do
8579 IFS=$as_save_IFS
8580 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8581 for ac_exec_ext in '' $ac_executable_extensions; do
8582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8583 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8585 break 2
8586 fi
8587done
81ecdfbb
RW
8588 done
8589IFS=$as_save_IFS
9a819804
AO
8590
8591fi
8592fi
8593NM=$ac_cv_prog_NM
8594if test -n "$NM"; then
81ecdfbb
RW
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8596$as_echo "$NM" >&6; }
9a819804 8597else
81ecdfbb
RW
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8599$as_echo "no" >&6; }
9a819804
AO
8600fi
8601
81ecdfbb 8602
9a819804
AO
8603 fi
8604 test -n "$ac_cv_prog_NM" && break
8605done
8606
8607if test -z "$ac_cv_prog_NM" ; then
8608 set dummy nm
8609 if test $build = $host ; then
8610 NM="$2"
8611 else
8612 NM="${ncn_tool_prefix}$2"
8613 fi
8614fi
8615
8616
8617
8618if test -n "$RANLIB"; then
8619 ac_cv_prog_RANLIB=$RANLIB
8620elif test -n "$ac_cv_prog_RANLIB"; then
8621 RANLIB=$ac_cv_prog_RANLIB
8622fi
8623
8624if test -n "$ac_cv_prog_RANLIB"; then
8625 for ncn_progname in ranlib; do
8626 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8627set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8629$as_echo_n "checking for $ac_word... " >&6; }
8630if test "${ac_cv_prog_RANLIB+set}" = set; then :
8631 $as_echo_n "(cached) " >&6
9a819804
AO
8632else
8633 if test -n "$RANLIB"; then
8634 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8635else
8636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8637for as_dir in $PATH
8638do
8639 IFS=$as_save_IFS
8640 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8641 for ac_exec_ext in '' $ac_executable_extensions; do
8642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8643 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8645 break 2
8646 fi
8647done
81ecdfbb
RW
8648 done
8649IFS=$as_save_IFS
9a819804
AO
8650
8651fi
8652fi
8653RANLIB=$ac_cv_prog_RANLIB
8654if test -n "$RANLIB"; then
81ecdfbb
RW
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8656$as_echo "$RANLIB" >&6; }
9a819804 8657else
81ecdfbb
RW
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8659$as_echo "no" >&6; }
9a819804
AO
8660fi
8661
81ecdfbb 8662
9a819804
AO
8663 done
8664fi
859789af 8665
9a819804 8666for ncn_progname in ranlib; do
05cbd757
PB
8667 if test -n "$ncn_tool_prefix"; then
8668 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8669set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8671$as_echo_n "checking for $ac_word... " >&6; }
8672if test "${ac_cv_prog_RANLIB+set}" = set; then :
8673 $as_echo_n "(cached) " >&6
859789af
AC
8674else
8675 if test -n "$RANLIB"; then
8676 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8677else
c6b750e1
DJ
8678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8679for as_dir in $PATH
8680do
8681 IFS=$as_save_IFS
8682 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8683 for ac_exec_ext in '' $ac_executable_extensions; do
8684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8685 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8687 break 2
8688 fi
8689done
81ecdfbb
RW
8690 done
8691IFS=$as_save_IFS
c6b750e1 8692
859789af
AC
8693fi
8694fi
c6b750e1 8695RANLIB=$ac_cv_prog_RANLIB
859789af 8696if test -n "$RANLIB"; then
81ecdfbb
RW
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8698$as_echo "$RANLIB" >&6; }
859789af 8699else
81ecdfbb
RW
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8701$as_echo "no" >&6; }
859789af
AC
8702fi
8703
81ecdfbb 8704
05cbd757
PB
8705 fi
8706 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8707 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8708set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8710$as_echo_n "checking for $ac_word... " >&6; }
8711if test "${ac_cv_prog_RANLIB+set}" = set; then :
8712 $as_echo_n "(cached) " >&6
859789af 8713else
05cbd757
PB
8714 if test -n "$RANLIB"; then
8715 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 8716else
c6b750e1
DJ
8717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8718for as_dir in $PATH
8719do
8720 IFS=$as_save_IFS
8721 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8722 for ac_exec_ext in '' $ac_executable_extensions; do
8723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8724 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8726 break 2
8727 fi
8728done
81ecdfbb
RW
8729 done
8730IFS=$as_save_IFS
c6b750e1 8731
859789af
AC
8732fi
8733fi
c6b750e1 8734RANLIB=$ac_cv_prog_RANLIB
05cbd757 8735if test -n "$RANLIB"; then
81ecdfbb
RW
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8737$as_echo "$RANLIB" >&6; }
859789af 8738else
81ecdfbb
RW
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8740$as_echo "no" >&6; }
859789af 8741fi
c6b750e1 8742
81ecdfbb 8743
859789af 8744 fi
05cbd757
PB
8745 test -n "$ac_cv_prog_RANLIB" && break
8746done
8747
8748if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 8749 RANLIB="true"
859789af
AC
8750fi
8751
9a819804
AO
8752
8753
8754if test -n "$STRIP"; then
8755 ac_cv_prog_STRIP=$STRIP
8756elif test -n "$ac_cv_prog_STRIP"; then
8757 STRIP=$ac_cv_prog_STRIP
8758fi
8759
8760if test -n "$ac_cv_prog_STRIP"; then
8761 for ncn_progname in strip; do
8762 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8763set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8765$as_echo_n "checking for $ac_word... " >&6; }
8766if test "${ac_cv_prog_STRIP+set}" = set; then :
8767 $as_echo_n "(cached) " >&6
9a819804
AO
8768else
8769 if test -n "$STRIP"; then
8770 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8771else
8772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8773for as_dir in $PATH
8774do
8775 IFS=$as_save_IFS
8776 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8777 for ac_exec_ext in '' $ac_executable_extensions; do
8778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8779 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 8780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8781 break 2
8782 fi
8783done
81ecdfbb
RW
8784 done
8785IFS=$as_save_IFS
9a819804
AO
8786
8787fi
8788fi
8789STRIP=$ac_cv_prog_STRIP
8790if test -n "$STRIP"; then
81ecdfbb
RW
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8792$as_echo "$STRIP" >&6; }
9a819804 8793else
81ecdfbb
RW
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8795$as_echo "no" >&6; }
9a819804
AO
8796fi
8797
81ecdfbb 8798
9a819804
AO
8799 done
8800fi
8801
8802for ncn_progname in strip; do
be01d343
PB
8803 if test -n "$ncn_tool_prefix"; then
8804 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8805set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8807$as_echo_n "checking for $ac_word... " >&6; }
8808if test "${ac_cv_prog_STRIP+set}" = set; then :
8809 $as_echo_n "(cached) " >&6
be01d343
PB
8810else
8811 if test -n "$STRIP"; then
8812 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8813else
c6b750e1
DJ
8814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8815for as_dir in $PATH
8816do
8817 IFS=$as_save_IFS
8818 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8819 for ac_exec_ext in '' $ac_executable_extensions; do
8820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8821 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8823 break 2
8824 fi
8825done
81ecdfbb
RW
8826 done
8827IFS=$as_save_IFS
c6b750e1 8828
be01d343
PB
8829fi
8830fi
c6b750e1 8831STRIP=$ac_cv_prog_STRIP
be01d343 8832if test -n "$STRIP"; then
81ecdfbb
RW
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8834$as_echo "$STRIP" >&6; }
be01d343 8835else
81ecdfbb
RW
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8837$as_echo "no" >&6; }
be01d343
PB
8838fi
8839
81ecdfbb 8840
be01d343
PB
8841 fi
8842 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8843 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8844set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8846$as_echo_n "checking for $ac_word... " >&6; }
8847if test "${ac_cv_prog_STRIP+set}" = set; then :
8848 $as_echo_n "(cached) " >&6
be01d343
PB
8849else
8850 if test -n "$STRIP"; then
8851 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8852else
c6b750e1
DJ
8853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8854for as_dir in $PATH
8855do
8856 IFS=$as_save_IFS
8857 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8858 for ac_exec_ext in '' $ac_executable_extensions; do
8859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8860 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 8861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8862 break 2
8863 fi
8864done
81ecdfbb
RW
8865 done
8866IFS=$as_save_IFS
c6b750e1 8867
be01d343
PB
8868fi
8869fi
c6b750e1 8870STRIP=$ac_cv_prog_STRIP
be01d343 8871if test -n "$STRIP"; then
81ecdfbb
RW
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8873$as_echo "$STRIP" >&6; }
be01d343 8874else
81ecdfbb
RW
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8876$as_echo "no" >&6; }
be01d343 8877fi
c6b750e1 8878
81ecdfbb 8879
be01d343
PB
8880 fi
8881 test -n "$ac_cv_prog_STRIP" && break
8882done
8883
8884if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 8885 STRIP="true"
be01d343
PB
8886fi
8887
9a819804
AO
8888
8889
8890if test -n "$WINDRES"; then
8891 ac_cv_prog_WINDRES=$WINDRES
8892elif test -n "$ac_cv_prog_WINDRES"; then
8893 WINDRES=$ac_cv_prog_WINDRES
8894fi
8895
8896if test -n "$ac_cv_prog_WINDRES"; then
8897 for ncn_progname in windres; do
8898 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8899set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8901$as_echo_n "checking for $ac_word... " >&6; }
8902if test "${ac_cv_prog_WINDRES+set}" = set; then :
8903 $as_echo_n "(cached) " >&6
9a819804
AO
8904else
8905 if test -n "$WINDRES"; then
8906 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8907else
8908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8909for as_dir in $PATH
8910do
8911 IFS=$as_save_IFS
8912 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8913 for ac_exec_ext in '' $ac_executable_extensions; do
8914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8915 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 8916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8917 break 2
8918 fi
8919done
81ecdfbb
RW
8920 done
8921IFS=$as_save_IFS
9a819804
AO
8922
8923fi
8924fi
8925WINDRES=$ac_cv_prog_WINDRES
8926if test -n "$WINDRES"; then
81ecdfbb
RW
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8928$as_echo "$WINDRES" >&6; }
9a819804 8929else
81ecdfbb
RW
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8931$as_echo "no" >&6; }
9a819804
AO
8932fi
8933
81ecdfbb 8934
9a819804
AO
8935 done
8936fi
8937
8938for ncn_progname in windres; do
05cbd757
PB
8939 if test -n "$ncn_tool_prefix"; then
8940 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8941set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8943$as_echo_n "checking for $ac_word... " >&6; }
8944if test "${ac_cv_prog_WINDRES+set}" = set; then :
8945 $as_echo_n "(cached) " >&6
859789af
AC
8946else
8947 if test -n "$WINDRES"; then
8948 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8949else
c6b750e1
DJ
8950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8951for as_dir in $PATH
8952do
8953 IFS=$as_save_IFS
8954 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8955 for ac_exec_ext in '' $ac_executable_extensions; do
8956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8957 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8959 break 2
8960 fi
8961done
81ecdfbb
RW
8962 done
8963IFS=$as_save_IFS
c6b750e1 8964
859789af
AC
8965fi
8966fi
c6b750e1 8967WINDRES=$ac_cv_prog_WINDRES
859789af 8968if test -n "$WINDRES"; then
81ecdfbb
RW
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8970$as_echo "$WINDRES" >&6; }
859789af 8971else
81ecdfbb
RW
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8973$as_echo "no" >&6; }
859789af
AC
8974fi
8975
81ecdfbb 8976
05cbd757
PB
8977 fi
8978 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
8979 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8980set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8982$as_echo_n "checking for $ac_word... " >&6; }
8983if test "${ac_cv_prog_WINDRES+set}" = set; then :
8984 $as_echo_n "(cached) " >&6
859789af 8985else
05cbd757
PB
8986 if test -n "$WINDRES"; then
8987 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 8988else
c6b750e1
DJ
8989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8990for as_dir in $PATH
8991do
8992 IFS=$as_save_IFS
8993 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8994 for ac_exec_ext in '' $ac_executable_extensions; do
8995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8996 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 8997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8998 break 2
8999 fi
9000done
81ecdfbb
RW
9001 done
9002IFS=$as_save_IFS
c6b750e1 9003
859789af
AC
9004fi
9005fi
c6b750e1 9006WINDRES=$ac_cv_prog_WINDRES
05cbd757 9007if test -n "$WINDRES"; then
81ecdfbb
RW
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9009$as_echo "$WINDRES" >&6; }
859789af 9010else
81ecdfbb
RW
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9012$as_echo "no" >&6; }
859789af 9013fi
c6b750e1 9014
81ecdfbb 9015
05cbd757
PB
9016 fi
9017 test -n "$ac_cv_prog_WINDRES" && break
9018done
9019
9020if test -z "$ac_cv_prog_WINDRES" ; then
9021 set dummy windres
9022 if test $build = $host ; then
9023 WINDRES="$2"
859789af 9024 else
05cbd757 9025 WINDRES="${ncn_tool_prefix}$2"
859789af 9026 fi
859789af
AC
9027fi
9028
9a819804
AO
9029
9030
0c24b341
NC
9031if test -n "$WINDMC"; then
9032 ac_cv_prog_WINDMC=$WINDMC
9033elif test -n "$ac_cv_prog_WINDMC"; then
9034 WINDMC=$ac_cv_prog_WINDMC
9035fi
9036
9037if test -n "$ac_cv_prog_WINDMC"; then
9038 for ncn_progname in windmc; do
9039 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9040set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9042$as_echo_n "checking for $ac_word... " >&6; }
9043if test "${ac_cv_prog_WINDMC+set}" = set; then :
9044 $as_echo_n "(cached) " >&6
0c24b341
NC
9045else
9046 if test -n "$WINDMC"; then
9047 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9048else
9049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9050for as_dir in $PATH
9051do
9052 IFS=$as_save_IFS
9053 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9054 for ac_exec_ext in '' $ac_executable_extensions; do
9055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9056 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9058 break 2
9059 fi
9060done
81ecdfbb
RW
9061 done
9062IFS=$as_save_IFS
0c24b341
NC
9063
9064fi
9065fi
9066WINDMC=$ac_cv_prog_WINDMC
9067if test -n "$WINDMC"; then
81ecdfbb
RW
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9069$as_echo "$WINDMC" >&6; }
0c24b341 9070else
81ecdfbb
RW
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9072$as_echo "no" >&6; }
0c24b341
NC
9073fi
9074
81ecdfbb 9075
0c24b341
NC
9076 done
9077fi
9078
9079for ncn_progname in windmc; do
9080 if test -n "$ncn_tool_prefix"; then
9081 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9082set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9084$as_echo_n "checking for $ac_word... " >&6; }
9085if test "${ac_cv_prog_WINDMC+set}" = set; then :
9086 $as_echo_n "(cached) " >&6
0c24b341
NC
9087else
9088 if test -n "$WINDMC"; then
9089 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9090else
9091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9092for as_dir in $PATH
9093do
9094 IFS=$as_save_IFS
9095 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9096 for ac_exec_ext in '' $ac_executable_extensions; do
9097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9098 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9100 break 2
9101 fi
9102done
81ecdfbb
RW
9103 done
9104IFS=$as_save_IFS
0c24b341
NC
9105
9106fi
9107fi
9108WINDMC=$ac_cv_prog_WINDMC
9109if test -n "$WINDMC"; then
81ecdfbb
RW
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9111$as_echo "$WINDMC" >&6; }
0c24b341 9112else
81ecdfbb
RW
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9114$as_echo "no" >&6; }
0c24b341
NC
9115fi
9116
81ecdfbb 9117
0c24b341
NC
9118 fi
9119 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9120 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9121set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9123$as_echo_n "checking for $ac_word... " >&6; }
9124if test "${ac_cv_prog_WINDMC+set}" = set; then :
9125 $as_echo_n "(cached) " >&6
0c24b341
NC
9126else
9127 if test -n "$WINDMC"; then
9128 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9129else
9130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9131for as_dir in $PATH
9132do
9133 IFS=$as_save_IFS
9134 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9135 for ac_exec_ext in '' $ac_executable_extensions; do
9136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9137 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9139 break 2
9140 fi
9141done
81ecdfbb
RW
9142 done
9143IFS=$as_save_IFS
0c24b341
NC
9144
9145fi
9146fi
9147WINDMC=$ac_cv_prog_WINDMC
9148if test -n "$WINDMC"; then
81ecdfbb
RW
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9150$as_echo "$WINDMC" >&6; }
0c24b341 9151else
81ecdfbb
RW
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9153$as_echo "no" >&6; }
0c24b341
NC
9154fi
9155
81ecdfbb 9156
0c24b341
NC
9157 fi
9158 test -n "$ac_cv_prog_WINDMC" && break
9159done
9160
9161if test -z "$ac_cv_prog_WINDMC" ; then
9162 set dummy windmc
9163 if test $build = $host ; then
9164 WINDMC="$2"
9165 else
9166 WINDMC="${ncn_tool_prefix}$2"
9167 fi
9168fi
9169
9170
9171
9a819804
AO
9172if test -n "$OBJCOPY"; then
9173 ac_cv_prog_OBJCOPY=$OBJCOPY
9174elif test -n "$ac_cv_prog_OBJCOPY"; then
9175 OBJCOPY=$ac_cv_prog_OBJCOPY
9176fi
9177
9178if test -n "$ac_cv_prog_OBJCOPY"; then
9179 for ncn_progname in objcopy; do
9180 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9181set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9183$as_echo_n "checking for $ac_word... " >&6; }
9184if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9185 $as_echo_n "(cached) " >&6
9a819804
AO
9186else
9187 if test -n "$OBJCOPY"; then
9188 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9189else
9190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9191for as_dir in $PATH
9192do
9193 IFS=$as_save_IFS
9194 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9195 for ac_exec_ext in '' $ac_executable_extensions; do
9196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9197 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9199 break 2
9200 fi
9201done
81ecdfbb
RW
9202 done
9203IFS=$as_save_IFS
9a819804
AO
9204
9205fi
9206fi
9207OBJCOPY=$ac_cv_prog_OBJCOPY
9208if test -n "$OBJCOPY"; then
81ecdfbb
RW
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9210$as_echo "$OBJCOPY" >&6; }
9a819804 9211else
81ecdfbb
RW
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9213$as_echo "no" >&6; }
9a819804
AO
9214fi
9215
81ecdfbb 9216
9a819804
AO
9217 done
9218fi
9219
9220for ncn_progname in objcopy; do
05cbd757
PB
9221 if test -n "$ncn_tool_prefix"; then
9222 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9223set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9225$as_echo_n "checking for $ac_word... " >&6; }
9226if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9227 $as_echo_n "(cached) " >&6
859789af
AC
9228else
9229 if test -n "$OBJCOPY"; then
9230 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9231else
c6b750e1
DJ
9232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9233for as_dir in $PATH
9234do
9235 IFS=$as_save_IFS
9236 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9237 for ac_exec_ext in '' $ac_executable_extensions; do
9238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9239 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9241 break 2
9242 fi
9243done
81ecdfbb
RW
9244 done
9245IFS=$as_save_IFS
c6b750e1 9246
859789af
AC
9247fi
9248fi
c6b750e1 9249OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9250if test -n "$OBJCOPY"; then
81ecdfbb
RW
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9252$as_echo "$OBJCOPY" >&6; }
859789af 9253else
81ecdfbb
RW
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9255$as_echo "no" >&6; }
859789af
AC
9256fi
9257
81ecdfbb 9258
05cbd757
PB
9259 fi
9260 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9261 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9262set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9264$as_echo_n "checking for $ac_word... " >&6; }
9265if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9266 $as_echo_n "(cached) " >&6
859789af 9267else
05cbd757
PB
9268 if test -n "$OBJCOPY"; then
9269 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 9270else
c6b750e1
DJ
9271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9272for as_dir in $PATH
9273do
9274 IFS=$as_save_IFS
9275 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9276 for ac_exec_ext in '' $ac_executable_extensions; do
9277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9278 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9280 break 2
9281 fi
9282done
81ecdfbb
RW
9283 done
9284IFS=$as_save_IFS
c6b750e1 9285
859789af
AC
9286fi
9287fi
c6b750e1 9288OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 9289if test -n "$OBJCOPY"; then
81ecdfbb
RW
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9291$as_echo "$OBJCOPY" >&6; }
859789af 9292else
81ecdfbb
RW
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9294$as_echo "no" >&6; }
859789af 9295fi
c6b750e1 9296
81ecdfbb 9297
05cbd757
PB
9298 fi
9299 test -n "$ac_cv_prog_OBJCOPY" && break
9300done
9301
9302if test -z "$ac_cv_prog_OBJCOPY" ; then
9303 set dummy objcopy
9304 if test $build = $host ; then
9305 OBJCOPY="$2"
859789af 9306 else
05cbd757 9307 OBJCOPY="${ncn_tool_prefix}$2"
859789af 9308 fi
859789af
AC
9309fi
9310
9a819804
AO
9311
9312
9313if test -n "$OBJDUMP"; then
9314 ac_cv_prog_OBJDUMP=$OBJDUMP
9315elif test -n "$ac_cv_prog_OBJDUMP"; then
9316 OBJDUMP=$ac_cv_prog_OBJDUMP
9317fi
9318
9319if test -n "$ac_cv_prog_OBJDUMP"; then
9320 for ncn_progname in objdump; do
9321 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9322set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9324$as_echo_n "checking for $ac_word... " >&6; }
9325if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9326 $as_echo_n "(cached) " >&6
9a819804
AO
9327else
9328 if test -n "$OBJDUMP"; then
9329 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9330else
9331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9332for as_dir in $PATH
9333do
9334 IFS=$as_save_IFS
9335 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9336 for ac_exec_ext in '' $ac_executable_extensions; do
9337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9338 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9340 break 2
9341 fi
9342done
81ecdfbb
RW
9343 done
9344IFS=$as_save_IFS
9a819804
AO
9345
9346fi
9347fi
9348OBJDUMP=$ac_cv_prog_OBJDUMP
9349if test -n "$OBJDUMP"; then
81ecdfbb
RW
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9351$as_echo "$OBJDUMP" >&6; }
9a819804 9352else
81ecdfbb
RW
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9354$as_echo "no" >&6; }
9a819804
AO
9355fi
9356
81ecdfbb 9357
9a819804
AO
9358 done
9359fi
9360
9361for ncn_progname in objdump; do
05cbd757
PB
9362 if test -n "$ncn_tool_prefix"; then
9363 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9364set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9366$as_echo_n "checking for $ac_word... " >&6; }
9367if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9368 $as_echo_n "(cached) " >&6
859789af
AC
9369else
9370 if test -n "$OBJDUMP"; then
9371 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9372else
c6b750e1
DJ
9373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9374for as_dir in $PATH
9375do
9376 IFS=$as_save_IFS
9377 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9378 for ac_exec_ext in '' $ac_executable_extensions; do
9379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9380 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9382 break 2
9383 fi
9384done
81ecdfbb
RW
9385 done
9386IFS=$as_save_IFS
c6b750e1 9387
859789af
AC
9388fi
9389fi
c6b750e1 9390OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 9391if test -n "$OBJDUMP"; then
81ecdfbb
RW
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9393$as_echo "$OBJDUMP" >&6; }
859789af 9394else
81ecdfbb
RW
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9396$as_echo "no" >&6; }
859789af
AC
9397fi
9398
81ecdfbb 9399
05cbd757
PB
9400 fi
9401 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9402 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9403set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9405$as_echo_n "checking for $ac_word... " >&6; }
9406if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9407 $as_echo_n "(cached) " >&6
859789af 9408else
05cbd757
PB
9409 if test -n "$OBJDUMP"; then
9410 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 9411else
c6b750e1
DJ
9412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9413for as_dir in $PATH
9414do
9415 IFS=$as_save_IFS
9416 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9417 for ac_exec_ext in '' $ac_executable_extensions; do
9418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9419 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9421 break 2
9422 fi
9423done
81ecdfbb
RW
9424 done
9425IFS=$as_save_IFS
c6b750e1 9426
859789af
AC
9427fi
9428fi
c6b750e1 9429OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 9430if test -n "$OBJDUMP"; then
81ecdfbb
RW
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9432$as_echo "$OBJDUMP" >&6; }
859789af 9433else
81ecdfbb
RW
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9435$as_echo "no" >&6; }
859789af 9436fi
c6b750e1 9437
81ecdfbb 9438
05cbd757
PB
9439 fi
9440 test -n "$ac_cv_prog_OBJDUMP" && break
9441done
9442
9443if test -z "$ac_cv_prog_OBJDUMP" ; then
9444 set dummy objdump
9445 if test $build = $host ; then
9446 OBJDUMP="$2"
859789af 9447 else
05cbd757 9448 OBJDUMP="${ncn_tool_prefix}$2"
859789af 9449 fi
859789af
AC
9450fi
9451
a0da8069
NN
9452
9453
b121d7d4
DD
9454if test -n "$READELF"; then
9455 ac_cv_prog_READELF=$READELF
9456elif test -n "$ac_cv_prog_READELF"; then
9457 READELF=$ac_cv_prog_READELF
9458fi
9459
9460if test -n "$ac_cv_prog_READELF"; then
9461 for ncn_progname in readelf; do
9462 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9463set dummy ${ncn_progname}; ac_word=$2
9464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9465$as_echo_n "checking for $ac_word... " >&6; }
9466if test "${ac_cv_prog_READELF+set}" = set; then :
9467 $as_echo_n "(cached) " >&6
9468else
9469 if test -n "$READELF"; then
9470 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9471else
9472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9473for as_dir in $PATH
9474do
9475 IFS=$as_save_IFS
9476 test -z "$as_dir" && as_dir=.
9477 for ac_exec_ext in '' $ac_executable_extensions; do
9478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9479 ac_cv_prog_READELF="${ncn_progname}"
9480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9481 break 2
9482 fi
9483done
9484 done
9485IFS=$as_save_IFS
9486
9487fi
9488fi
9489READELF=$ac_cv_prog_READELF
9490if test -n "$READELF"; then
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9492$as_echo "$READELF" >&6; }
9493else
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9495$as_echo "no" >&6; }
9496fi
9497
9498
9499 done
9500fi
9501
9502for ncn_progname in readelf; do
9503 if test -n "$ncn_tool_prefix"; then
9504 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9505set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9507$as_echo_n "checking for $ac_word... " >&6; }
9508if test "${ac_cv_prog_READELF+set}" = set; then :
9509 $as_echo_n "(cached) " >&6
9510else
9511 if test -n "$READELF"; then
9512 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9513else
9514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9515for as_dir in $PATH
9516do
9517 IFS=$as_save_IFS
9518 test -z "$as_dir" && as_dir=.
9519 for ac_exec_ext in '' $ac_executable_extensions; do
9520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9521 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9523 break 2
9524 fi
9525done
9526 done
9527IFS=$as_save_IFS
9528
9529fi
9530fi
9531READELF=$ac_cv_prog_READELF
9532if test -n "$READELF"; then
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9534$as_echo "$READELF" >&6; }
9535else
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9537$as_echo "no" >&6; }
9538fi
9539
9540
9541 fi
9542 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9543 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9544set dummy ${ncn_progname}; ac_word=$2
9545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9546$as_echo_n "checking for $ac_word... " >&6; }
9547if test "${ac_cv_prog_READELF+set}" = set; then :
9548 $as_echo_n "(cached) " >&6
9549else
9550 if test -n "$READELF"; then
9551 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9552else
9553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9554for as_dir in $PATH
9555do
9556 IFS=$as_save_IFS
9557 test -z "$as_dir" && as_dir=.
9558 for ac_exec_ext in '' $ac_executable_extensions; do
9559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9560 ac_cv_prog_READELF="${ncn_progname}"
9561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9562 break 2
9563 fi
9564done
9565 done
9566IFS=$as_save_IFS
9567
9568fi
9569fi
9570READELF=$ac_cv_prog_READELF
9571if test -n "$READELF"; then
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9573$as_echo "$READELF" >&6; }
9574else
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9576$as_echo "no" >&6; }
9577fi
9578
9579
9580 fi
9581 test -n "$ac_cv_prog_READELF" && break
9582done
9583
9584if test -z "$ac_cv_prog_READELF" ; then
9585 set dummy readelf
9586 if test $build = $host ; then
9587 READELF="$2"
9588 else
9589 READELF="${ncn_tool_prefix}$2"
9590 fi
9591fi
9592
9593
9594
a0da8069
NN
9595
9596
9597
be01d343 9598# Target tools.
c6b750e1 9599
81ecdfbb
RW
9600# Check whether --with-build-time-tools was given.
9601if test "${with_build_time_tools+set}" = set; then :
9602 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
9603 x/*) ;;
9604 *)
9605 with_build_time_tools=
81ecdfbb
RW
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9607$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
9608 ;;
9609 esac
859789af 9610else
2429c060 9611 with_build_time_tools=
81ecdfbb
RW
9612fi
9613
859789af 9614
9a819804
AO
9615
9616
9617if test -n "$CC_FOR_TARGET"; then
9618 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9619elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9620 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9621fi
9622
9623if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9624 for ncn_progname in cc gcc; do
9625 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9626set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9628$as_echo_n "checking for $ac_word... " >&6; }
9629if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9630 $as_echo_n "(cached) " >&6
9a819804
AO
9631else
9632 if test -n "$CC_FOR_TARGET"; then
9633 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9634else
9635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9636for as_dir in $PATH
9637do
9638 IFS=$as_save_IFS
9639 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9640 for ac_exec_ext in '' $ac_executable_extensions; do
9641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9642 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9644 break 2
9645 fi
9646done
81ecdfbb
RW
9647 done
9648IFS=$as_save_IFS
9a819804
AO
9649
9650fi
9651fi
9652CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9653if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9655$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 9656else
81ecdfbb
RW
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9658$as_echo "no" >&6; }
9a819804
AO
9659fi
9660
81ecdfbb 9661
9a819804
AO
9662 done
9663fi
9664
9665if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9666 for ncn_progname in cc gcc; do
81ecdfbb
RW
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9668$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9669 if test -x $with_build_time_tools/${ncn_progname}; then
9670 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9672$as_echo "yes" >&6; }
cac3d6c4 9673 break
2429c060 9674 else
81ecdfbb
RW
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9676$as_echo "no" >&6; }
cac3d6c4
CM
9677 fi
9678 done
55db4b87
PB
9679fi
9680
2429c060
PB
9681if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9682 for ncn_progname in cc gcc; do
9683 if test -n "$ncn_target_tool_prefix"; then
9684 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9685set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9687$as_echo_n "checking for $ac_word... " >&6; }
9688if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9689 $as_echo_n "(cached) " >&6
55db4b87
PB
9690else
9691 if test -n "$CC_FOR_TARGET"; then
9692 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9693else
c6b750e1
DJ
9694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9695for as_dir in $PATH
9696do
9697 IFS=$as_save_IFS
9698 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9699 for ac_exec_ext in '' $ac_executable_extensions; do
9700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9701 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9703 break 2
9704 fi
9705done
81ecdfbb
RW
9706 done
9707IFS=$as_save_IFS
c6b750e1 9708
55db4b87
PB
9709fi
9710fi
c6b750e1 9711CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 9712if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9714$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9715else
81ecdfbb
RW
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9717$as_echo "no" >&6; }
55db4b87
PB
9718fi
9719
81ecdfbb 9720
2429c060
PB
9721 fi
9722 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9723 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9724set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
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_CC_FOR_TARGET+set}" = set; then :
9728 $as_echo_n "(cached) " >&6
55db4b87 9729else
05cbd757
PB
9730 if test -n "$CC_FOR_TARGET"; then
9731 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 9732else
c6b750e1
DJ
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=.
81ecdfbb
RW
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
c6b750e1 9740 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9742 break 2
9743 fi
9744done
81ecdfbb
RW
9745 done
9746IFS=$as_save_IFS
c6b750e1 9747
55db4b87
PB
9748fi
9749fi
c6b750e1 9750CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 9751if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9753$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9754else
81ecdfbb
RW
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9756$as_echo "no" >&6; }
55db4b87 9757fi
c6b750e1 9758
81ecdfbb 9759
2429c060
PB
9760 fi
9761 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9762 done
9763fi
c6b750e1 9764
05cbd757
PB
9765if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9766 set dummy cc gcc
9767 if test $build = $target ; then
9768 CC_FOR_TARGET="$2"
55db4b87 9769 else
05cbd757 9770 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9771 fi
d3f5afc4
MS
9772else
9773 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
9774fi
9775
9a819804
AO
9776
9777
9778if test -n "$CXX_FOR_TARGET"; then
9779 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9780elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9781 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9782fi
9783
9784if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9785 for ncn_progname in c++ g++ cxx gxx; do
9786 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9787set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9789$as_echo_n "checking for $ac_word... " >&6; }
9790if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9791 $as_echo_n "(cached) " >&6
9a819804
AO
9792else
9793 if test -n "$CXX_FOR_TARGET"; then
9794 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9795else
9796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9797for as_dir in $PATH
9798do
9799 IFS=$as_save_IFS
9800 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9801 for ac_exec_ext in '' $ac_executable_extensions; do
9802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9803 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9805 break 2
9806 fi
9807done
81ecdfbb
RW
9808 done
9809IFS=$as_save_IFS
9a819804
AO
9810
9811fi
9812fi
9813CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9814if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9816$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 9817else
81ecdfbb
RW
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9819$as_echo "no" >&6; }
9a819804
AO
9820fi
9821
81ecdfbb 9822
9a819804
AO
9823 done
9824fi
9825
9826if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9827 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9829$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9830 if test -x $with_build_time_tools/${ncn_progname}; then
9831 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9833$as_echo "yes" >&6; }
2429c060
PB
9834 break
9835 else
81ecdfbb
RW
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9837$as_echo "no" >&6; }
2429c060
PB
9838 fi
9839 done
9840fi
9841
9842if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9843 for ncn_progname in c++ g++ cxx gxx; do
9844 if test -n "$ncn_target_tool_prefix"; then
9845 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9846set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9848$as_echo_n "checking for $ac_word... " >&6; }
9849if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9850 $as_echo_n "(cached) " >&6
55db4b87
PB
9851else
9852 if test -n "$CXX_FOR_TARGET"; then
9853 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9854else
c6b750e1
DJ
9855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9856for as_dir in $PATH
9857do
9858 IFS=$as_save_IFS
9859 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9860 for ac_exec_ext in '' $ac_executable_extensions; do
9861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9862 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9864 break 2
9865 fi
9866done
81ecdfbb
RW
9867 done
9868IFS=$as_save_IFS
c6b750e1 9869
55db4b87
PB
9870fi
9871fi
c6b750e1 9872CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 9873if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9875$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 9876else
81ecdfbb
RW
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9878$as_echo "no" >&6; }
55db4b87
PB
9879fi
9880
81ecdfbb 9881
2429c060
PB
9882 fi
9883 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9884 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9885set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9887$as_echo_n "checking for $ac_word... " >&6; }
9888if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9889 $as_echo_n "(cached) " >&6
55db4b87 9890else
05cbd757
PB
9891 if test -n "$CXX_FOR_TARGET"; then
9892 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 9893else
c6b750e1
DJ
9894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9895for as_dir in $PATH
9896do
9897 IFS=$as_save_IFS
9898 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9899 for ac_exec_ext in '' $ac_executable_extensions; do
9900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9901 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9903 break 2
9904 fi
9905done
81ecdfbb
RW
9906 done
9907IFS=$as_save_IFS
c6b750e1 9908
55db4b87
PB
9909fi
9910fi
c6b750e1 9911CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 9912if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9914$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 9915else
81ecdfbb
RW
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9917$as_echo "no" >&6; }
55db4b87 9918fi
c6b750e1 9919
81ecdfbb 9920
2429c060
PB
9921 fi
9922 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9923 done
9924fi
c6b750e1 9925
05cbd757
PB
9926if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9927 set dummy c++ g++ cxx gxx
9928 if test $build = $target ; then
9929 CXX_FOR_TARGET="$2"
55db4b87 9930 else
05cbd757 9931 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9932 fi
d3f5afc4
MS
9933else
9934 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
9935fi
9936
9a819804
AO
9937
9938
9939if test -n "$GCC_FOR_TARGET"; then
9940 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9941elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9942 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9943fi
9944
9945if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9946 for ncn_progname in gcc; do
9947 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9948set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9950$as_echo_n "checking for $ac_word... " >&6; }
9951if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9952 $as_echo_n "(cached) " >&6
9a819804
AO
9953else
9954 if test -n "$GCC_FOR_TARGET"; then
9955 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9956else
9957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9958for as_dir in $PATH
9959do
9960 IFS=$as_save_IFS
9961 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9962 for ac_exec_ext in '' $ac_executable_extensions; do
9963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9964 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9966 break 2
9967 fi
9968done
81ecdfbb
RW
9969 done
9970IFS=$as_save_IFS
9a819804
AO
9971
9972fi
9973fi
9974GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9975if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9977$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 9978else
81ecdfbb
RW
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9980$as_echo "no" >&6; }
9a819804
AO
9981fi
9982
81ecdfbb 9983
9a819804
AO
9984 done
9985fi
9986
9987if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9988 for ncn_progname in gcc; do
81ecdfbb
RW
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9990$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9991 if test -x $with_build_time_tools/${ncn_progname}; then
9992 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9994$as_echo "yes" >&6; }
2429c060
PB
9995 break
9996 else
81ecdfbb
RW
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9998$as_echo "no" >&6; }
2429c060
PB
9999 fi
10000 done
10001fi
10002
10003if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10004 for ncn_progname in gcc; do
10005 if test -n "$ncn_target_tool_prefix"; then
10006 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10007set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10009$as_echo_n "checking for $ac_word... " >&6; }
10010if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10011 $as_echo_n "(cached) " >&6
859789af 10012else
2429c060
PB
10013 if test -n "$GCC_FOR_TARGET"; then
10014 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10015else
c6b750e1
DJ
10016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10017for as_dir in $PATH
10018do
10019 IFS=$as_save_IFS
10020 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10021 for ac_exec_ext in '' $ac_executable_extensions; do
10022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10023 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10025 break 2
10026 fi
10027done
81ecdfbb
RW
10028 done
10029IFS=$as_save_IFS
c6b750e1 10030
55db4b87
PB
10031fi
10032fi
c6b750e1 10033GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10034if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10036$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10037else
81ecdfbb
RW
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10039$as_echo "no" >&6; }
55db4b87
PB
10040fi
10041
81ecdfbb 10042
2429c060
PB
10043 fi
10044 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10045 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10046set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10048$as_echo_n "checking for $ac_word... " >&6; }
10049if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10050 $as_echo_n "(cached) " >&6
55db4b87 10051else
05cbd757
PB
10052 if test -n "$GCC_FOR_TARGET"; then
10053 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10054else
c6b750e1
DJ
10055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10056for as_dir in $PATH
10057do
10058 IFS=$as_save_IFS
10059 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10060 for ac_exec_ext in '' $ac_executable_extensions; do
10061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10062 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10064 break 2
10065 fi
10066done
81ecdfbb
RW
10067 done
10068IFS=$as_save_IFS
c6b750e1 10069
55db4b87
PB
10070fi
10071fi
c6b750e1 10072GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10073if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10075$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10076else
81ecdfbb
RW
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10078$as_echo "no" >&6; }
55db4b87 10079fi
c6b750e1 10080
81ecdfbb 10081
2429c060
PB
10082 fi
10083 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10084 done
10085fi
c6b750e1 10086
05cbd757
PB
10087if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10088 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10089else
10090 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10091fi
10092
9a819804
AO
10093
10094
10095if test -n "$GCJ_FOR_TARGET"; then
10096 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10097elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10098 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10099fi
10100
10101if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10102 for ncn_progname in gcj; do
10103 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10104set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
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_GCJ_FOR_TARGET+set}" = set; then :
10108 $as_echo_n "(cached) " >&6
9a819804
AO
10109else
10110 if test -n "$GCJ_FOR_TARGET"; then
10111 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10112else
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=.
81ecdfbb
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
9a819804 10120 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10122 break 2
10123 fi
10124done
81ecdfbb
RW
10125 done
10126IFS=$as_save_IFS
9a819804
AO
10127
10128fi
10129fi
10130GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10131if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10133$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10134else
81ecdfbb
RW
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10136$as_echo "no" >&6; }
9a819804
AO
10137fi
10138
81ecdfbb 10139
9a819804
AO
10140 done
10141fi
10142
10143if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10144 for ncn_progname in gcj; do
81ecdfbb
RW
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10146$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10147 if test -x $with_build_time_tools/${ncn_progname}; then
10148 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10150$as_echo "yes" >&6; }
2429c060
PB
10151 break
10152 else
81ecdfbb
RW
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10154$as_echo "no" >&6; }
2429c060
PB
10155 fi
10156 done
10157fi
10158
10159if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10160 for ncn_progname in gcj; do
10161 if test -n "$ncn_target_tool_prefix"; then
10162 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10163set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10165$as_echo_n "checking for $ac_word... " >&6; }
10166if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10167 $as_echo_n "(cached) " >&6
55db4b87
PB
10168else
10169 if test -n "$GCJ_FOR_TARGET"; then
10170 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10171else
c6b750e1
DJ
10172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10173for as_dir in $PATH
10174do
10175 IFS=$as_save_IFS
10176 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10177 for ac_exec_ext in '' $ac_executable_extensions; do
10178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10179 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10181 break 2
10182 fi
10183done
81ecdfbb
RW
10184 done
10185IFS=$as_save_IFS
c6b750e1 10186
55db4b87
PB
10187fi
10188fi
9a819804
AO
10189GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10190if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10192$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10193else
81ecdfbb
RW
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10195$as_echo "no" >&6; }
9a819804
AO
10196fi
10197
81ecdfbb 10198
9a819804
AO
10199 fi
10200 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10201 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10202set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10204$as_echo_n "checking for $ac_word... " >&6; }
10205if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10206 $as_echo_n "(cached) " >&6
9a819804
AO
10207else
10208 if test -n "$GCJ_FOR_TARGET"; then
10209 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10210else
10211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10212for as_dir in $PATH
10213do
10214 IFS=$as_save_IFS
10215 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10216 for ac_exec_ext in '' $ac_executable_extensions; do
10217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10218 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10220 break 2
10221 fi
10222done
81ecdfbb
RW
10223 done
10224IFS=$as_save_IFS
9a819804
AO
10225
10226fi
10227fi
10228GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10229if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10231$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10232else
81ecdfbb
RW
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10234$as_echo "no" >&6; }
9a819804
AO
10235fi
10236
81ecdfbb 10237
9a819804
AO
10238 fi
10239 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10240 done
10241fi
10242
10243if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10244 set dummy gcj
10245 if test $build = $target ; then
10246 GCJ_FOR_TARGET="$2"
10247 else
10248 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10249 fi
d3f5afc4
MS
10250else
10251 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
10252fi
10253
10254
10255
10256if test -n "$GFORTRAN_FOR_TARGET"; then
10257 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10258elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10259 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10260fi
10261
9a819804
AO
10262if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10263 for ncn_progname in gfortran; do
10264 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10265set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
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_GFORTRAN_FOR_TARGET+set}" = set; then :
10269 $as_echo_n "(cached) " >&6
55db4b87 10270else
9a819804
AO
10271 if test -n "$GFORTRAN_FOR_TARGET"; then
10272 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10273else
c6b750e1
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=.
81ecdfbb
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
9a819804 10281 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10283 break 2
10284 fi
10285done
81ecdfbb
RW
10286 done
10287IFS=$as_save_IFS
c6b750e1 10288
55db4b87
PB
10289fi
10290fi
9a819804
AO
10291GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10292if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10294$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10295else
81ecdfbb
RW
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10297$as_echo "no" >&6; }
55db4b87 10298fi
c6b750e1 10299
81ecdfbb 10300
2429c060
PB
10301 done
10302fi
c6b750e1 10303
9a819804 10304if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10305 for ncn_progname in gfortran; do
81ecdfbb
RW
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10307$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10308 if test -x $with_build_time_tools/${ncn_progname}; then
10309 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10311$as_echo "yes" >&6; }
2429c060
PB
10312 break
10313 else
81ecdfbb
RW
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10315$as_echo "no" >&6; }
2429c060
PB
10316 fi
10317 done
10318fi
10319
10320if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10321 for ncn_progname in gfortran; do
10322 if test -n "$ncn_target_tool_prefix"; then
10323 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10324set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10326$as_echo_n "checking for $ac_word... " >&6; }
10327if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10328 $as_echo_n "(cached) " >&6
55db4b87
PB
10329else
10330 if test -n "$GFORTRAN_FOR_TARGET"; then
10331 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10332else
c6b750e1
DJ
10333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10334for as_dir in $PATH
10335do
10336 IFS=$as_save_IFS
10337 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10338 for ac_exec_ext in '' $ac_executable_extensions; do
10339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10340 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10342 break 2
10343 fi
10344done
81ecdfbb
RW
10345 done
10346IFS=$as_save_IFS
c6b750e1 10347
55db4b87
PB
10348fi
10349fi
c6b750e1 10350GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 10351if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10353$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10354else
81ecdfbb
RW
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10356$as_echo "no" >&6; }
55db4b87
PB
10357fi
10358
81ecdfbb 10359
2429c060
PB
10360 fi
10361 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10362 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10363set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10365$as_echo_n "checking for $ac_word... " >&6; }
10366if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10367 $as_echo_n "(cached) " >&6
55db4b87 10368else
05cbd757 10369 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
10370 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10371else
10372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10373for as_dir in $PATH
10374do
10375 IFS=$as_save_IFS
10376 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10377 for ac_exec_ext in '' $ac_executable_extensions; do
10378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10379 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10381 break 2
10382 fi
10383done
81ecdfbb
RW
10384 done
10385IFS=$as_save_IFS
c6b750e1 10386
55db4b87
PB
10387fi
10388fi
c6b750e1 10389GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 10390if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10392$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10393else
81ecdfbb
RW
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10395$as_echo "no" >&6; }
55db4b87 10396fi
c6b750e1 10397
81ecdfbb 10398
2429c060
PB
10399 fi
10400 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10401 done
10402fi
c6b750e1 10403
05cbd757
PB
10404if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10405 set dummy gfortran
10406 if test $build = $target ; then
10407 GFORTRAN_FOR_TARGET="$2"
55db4b87 10408 else
05cbd757 10409 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10410 fi
d3f5afc4
MS
10411else
10412 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
10413fi
10414
2429c060
PB
10415
10416
e552509b
ILT
10417if test -n "$GOC_FOR_TARGET"; then
10418 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10419elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10420 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10421fi
10422
10423if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10424 for ncn_progname in gccgo; do
10425 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10426set dummy ${ncn_progname}; ac_word=$2
10427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10428$as_echo_n "checking for $ac_word... " >&6; }
10429if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10430 $as_echo_n "(cached) " >&6
10431else
10432 if test -n "$GOC_FOR_TARGET"; then
10433 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10434else
10435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10436for as_dir in $PATH
10437do
10438 IFS=$as_save_IFS
10439 test -z "$as_dir" && as_dir=.
10440 for ac_exec_ext in '' $ac_executable_extensions; do
10441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10442 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10444 break 2
10445 fi
10446done
10447 done
10448IFS=$as_save_IFS
10449
10450fi
10451fi
10452GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10453if test -n "$GOC_FOR_TARGET"; then
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10455$as_echo "$GOC_FOR_TARGET" >&6; }
10456else
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10458$as_echo "no" >&6; }
10459fi
10460
10461
10462 done
10463fi
10464
10465if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10466 for ncn_progname in gccgo; do
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10468$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10469 if test -x $with_build_time_tools/${ncn_progname}; then
10470 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10472$as_echo "yes" >&6; }
10473 break
10474 else
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10476$as_echo "no" >&6; }
10477 fi
10478 done
10479fi
10480
10481if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10482 for ncn_progname in gccgo; do
10483 if test -n "$ncn_target_tool_prefix"; then
10484 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10485set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10487$as_echo_n "checking for $ac_word... " >&6; }
10488if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10489 $as_echo_n "(cached) " >&6
10490else
10491 if test -n "$GOC_FOR_TARGET"; then
10492 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10493else
10494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10495for as_dir in $PATH
10496do
10497 IFS=$as_save_IFS
10498 test -z "$as_dir" && as_dir=.
10499 for ac_exec_ext in '' $ac_executable_extensions; do
10500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10501 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10503 break 2
10504 fi
10505done
10506 done
10507IFS=$as_save_IFS
10508
10509fi
10510fi
10511GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10512if test -n "$GOC_FOR_TARGET"; then
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10514$as_echo "$GOC_FOR_TARGET" >&6; }
10515else
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10517$as_echo "no" >&6; }
10518fi
10519
10520
10521 fi
10522 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10523 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10524set dummy ${ncn_progname}; ac_word=$2
10525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10526$as_echo_n "checking for $ac_word... " >&6; }
10527if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10528 $as_echo_n "(cached) " >&6
10529else
10530 if test -n "$GOC_FOR_TARGET"; then
10531 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10532else
10533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10534for as_dir in $PATH
10535do
10536 IFS=$as_save_IFS
10537 test -z "$as_dir" && as_dir=.
10538 for ac_exec_ext in '' $ac_executable_extensions; do
10539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10540 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10542 break 2
10543 fi
10544done
10545 done
10546IFS=$as_save_IFS
10547
10548fi
10549fi
10550GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10551if test -n "$GOC_FOR_TARGET"; then
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10553$as_echo "$GOC_FOR_TARGET" >&6; }
10554else
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10556$as_echo "no" >&6; }
10557fi
10558
10559
10560 fi
10561 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10562 done
10563fi
10564
10565if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10566 set dummy gccgo
10567 if test $build = $target ; then
10568 GOC_FOR_TARGET="$2"
10569 else
10570 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10571 fi
10572else
10573 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10574fi
10575
10576
10577
2429c060
PB
10578cat > conftest.c << \EOF
10579#ifdef __GNUC__
10580 gcc_yay;
10581#endif
10582EOF
10583if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10584 have_gcc_for_target=yes
859789af 10585else
2429c060
PB
10586 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10587 have_gcc_for_target=no
859789af 10588fi
2429c060
PB
10589rm conftest.c
10590
10591
10592
859789af 10593
2429c060
PB
10594if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10595 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10597$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10598 if test -x $with_build_time_tools/ar; then
10599 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10600 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10602$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 10603 else
81ecdfbb
RW
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10605$as_echo "no" >&6; }
3a35eeb3 10606 fi
2429c060
PB
10607 elif test $build != $host && test $have_gcc_for_target = yes; then
10608 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
10609 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10610 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 10611 fi
2429c060 10612fi
c6b750e1 10613if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10614 # Extract the first word of "ar", so it can be a program name with args.
10615set dummy ar; ac_word=$2
81ecdfbb
RW
10616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10617$as_echo_n "checking for $ac_word... " >&6; }
10618if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10619 $as_echo_n "(cached) " >&6
859789af 10620else
c6b750e1
DJ
10621 case $AR_FOR_TARGET in
10622 [\\/]* | ?:[\\/]*)
2429c060
PB
10623 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10624 ;;
2429c060 10625 *)
c6b750e1
DJ
10626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10627for as_dir in $gcc_cv_tool_dirs
10628do
10629 IFS=$as_save_IFS
10630 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10631 for ac_exec_ext in '' $ac_executable_extensions; do
10632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10633 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10635 break 2
10636 fi
10637done
81ecdfbb
RW
10638 done
10639IFS=$as_save_IFS
c6b750e1 10640
2429c060
PB
10641 ;;
10642esac
859789af 10643fi
c6b750e1 10644AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 10645if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10647$as_echo "$AR_FOR_TARGET" >&6; }
859789af 10648else
81ecdfbb
RW
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10650$as_echo "no" >&6; }
859789af 10651fi
05cbd757 10652
81ecdfbb 10653
2429c060
PB
10654fi
10655if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
10656
10657
10658if test -n "$AR_FOR_TARGET"; then
10659 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10660elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10661 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10662fi
10663
10664if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10665 for ncn_progname in ar; do
10666 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10667set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10669$as_echo_n "checking for $ac_word... " >&6; }
10670if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10671 $as_echo_n "(cached) " >&6
9a819804
AO
10672else
10673 if test -n "$AR_FOR_TARGET"; then
10674 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10675else
10676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10677for as_dir in $PATH
10678do
10679 IFS=$as_save_IFS
10680 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10681 for ac_exec_ext in '' $ac_executable_extensions; do
10682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10683 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10685 break 2
10686 fi
10687done
81ecdfbb
RW
10688 done
10689IFS=$as_save_IFS
9a819804
AO
10690
10691fi
10692fi
10693AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10694if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10696$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 10697else
81ecdfbb
RW
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10699$as_echo "no" >&6; }
9a819804
AO
10700fi
10701
81ecdfbb 10702
9a819804
AO
10703 done
10704fi
10705
10706if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10707 for ncn_progname in ar; do
81ecdfbb
RW
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10709$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10710 if test -x $with_build_time_tools/${ncn_progname}; then
10711 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10713$as_echo "yes" >&6; }
2429c060
PB
10714 break
10715 else
81ecdfbb
RW
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10717$as_echo "no" >&6; }
2429c060
PB
10718 fi
10719 done
859789af
AC
10720fi
10721
2429c060
PB
10722if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10723 for ncn_progname in ar; do
10724 if test -n "$ncn_target_tool_prefix"; then
10725 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10726set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10728$as_echo_n "checking for $ac_word... " >&6; }
10729if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10730 $as_echo_n "(cached) " >&6
7e0f7140 10731else
2429c060
PB
10732 if test -n "$AR_FOR_TARGET"; then
10733 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 10734else
c6b750e1
DJ
10735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10736for as_dir in $PATH
10737do
10738 IFS=$as_save_IFS
10739 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10740 for ac_exec_ext in '' $ac_executable_extensions; do
10741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10742 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10744 break 2
10745 fi
10746done
81ecdfbb
RW
10747 done
10748IFS=$as_save_IFS
c6b750e1 10749
7e0f7140
GK
10750fi
10751fi
c6b750e1 10752AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10753if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10755$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10756else
81ecdfbb
RW
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10758$as_echo "no" >&6; }
7e0f7140
GK
10759fi
10760
81ecdfbb 10761
2429c060
PB
10762 fi
10763 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10764 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10765set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10767$as_echo_n "checking for $ac_word... " >&6; }
10768if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10769 $as_echo_n "(cached) " >&6
7e0f7140 10770else
2429c060
PB
10771 if test -n "$AR_FOR_TARGET"; then
10772 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 10773else
c6b750e1
DJ
10774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10775for as_dir in $PATH
10776do
10777 IFS=$as_save_IFS
10778 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10779 for ac_exec_ext in '' $ac_executable_extensions; do
10780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10781 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10783 break 2
10784 fi
10785done
81ecdfbb
RW
10786 done
10787IFS=$as_save_IFS
c6b750e1 10788
7e0f7140
GK
10789fi
10790fi
c6b750e1 10791AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10792if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10794$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10795else
81ecdfbb
RW
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10797$as_echo "no" >&6; }
7e0f7140 10798fi
c6b750e1 10799
81ecdfbb 10800
2429c060
PB
10801 fi
10802 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10803 done
10804fi
c6b750e1 10805
2429c060
PB
10806if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10807 set dummy ar
7e0f7140 10808 if test $build = $target ; then
2429c060 10809 AR_FOR_TARGET="$2"
7e0f7140 10810 else
2429c060 10811 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 10812 fi
d3f5afc4
MS
10813else
10814 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
10815fi
10816
3a35eeb3
PB
10817else
10818 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
10819fi
10820
10821
10822
10823
10824if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10825 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10827$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10828 if test -x $with_build_time_tools/as; then
10829 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10830 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10832$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 10833 else
81ecdfbb
RW
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10835$as_echo "no" >&6; }
3a35eeb3 10836 fi
2429c060
PB
10837 elif test $build != $host && test $have_gcc_for_target = yes; then
10838 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
10839 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10840 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
10841 fi
10842fi
c6b750e1 10843if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10844 # Extract the first word of "as", so it can be a program name with args.
10845set dummy as; ac_word=$2
81ecdfbb
RW
10846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10847$as_echo_n "checking for $ac_word... " >&6; }
10848if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10849 $as_echo_n "(cached) " >&6
2429c060 10850else
c6b750e1
DJ
10851 case $AS_FOR_TARGET in
10852 [\\/]* | ?:[\\/]*)
2429c060
PB
10853 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10854 ;;
2429c060 10855 *)
c6b750e1
DJ
10856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10857for as_dir in $gcc_cv_tool_dirs
10858do
10859 IFS=$as_save_IFS
10860 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10861 for ac_exec_ext in '' $ac_executable_extensions; do
10862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10863 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10865 break 2
10866 fi
10867done
81ecdfbb
RW
10868 done
10869IFS=$as_save_IFS
c6b750e1 10870
2429c060
PB
10871 ;;
10872esac
10873fi
c6b750e1 10874AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 10875if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10877$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10878else
81ecdfbb
RW
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10880$as_echo "no" >&6; }
2429c060
PB
10881fi
10882
81ecdfbb 10883
2429c060
PB
10884fi
10885if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
10886
10887
10888if test -n "$AS_FOR_TARGET"; then
10889 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10890elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10891 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10892fi
10893
10894if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10895 for ncn_progname in as; do
10896 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10897set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10899$as_echo_n "checking for $ac_word... " >&6; }
10900if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10901 $as_echo_n "(cached) " >&6
9a819804
AO
10902else
10903 if test -n "$AS_FOR_TARGET"; then
10904 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10905else
10906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10907for as_dir in $PATH
10908do
10909 IFS=$as_save_IFS
10910 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10911 for ac_exec_ext in '' $ac_executable_extensions; do
10912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10913 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 10914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10915 break 2
10916 fi
10917done
81ecdfbb
RW
10918 done
10919IFS=$as_save_IFS
9a819804
AO
10920
10921fi
10922fi
10923AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10924if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10926$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 10927else
81ecdfbb
RW
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10929$as_echo "no" >&6; }
9a819804
AO
10930fi
10931
81ecdfbb 10932
9a819804
AO
10933 done
10934fi
10935
10936if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10937 for ncn_progname in as; do
81ecdfbb
RW
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10939$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10940 if test -x $with_build_time_tools/${ncn_progname}; then
10941 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10943$as_echo "yes" >&6; }
2429c060
PB
10944 break
10945 else
81ecdfbb
RW
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10947$as_echo "no" >&6; }
2429c060
PB
10948 fi
10949 done
10950fi
10951
10952if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10953 for ncn_progname in as; do
10954 if test -n "$ncn_target_tool_prefix"; then
10955 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10956set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10958$as_echo_n "checking for $ac_word... " >&6; }
10959if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10960 $as_echo_n "(cached) " >&6
2429c060
PB
10961else
10962 if test -n "$AS_FOR_TARGET"; then
10963 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10964else
c6b750e1
DJ
10965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10966for as_dir in $PATH
10967do
10968 IFS=$as_save_IFS
10969 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10970 for ac_exec_ext in '' $ac_executable_extensions; do
10971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10972 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10974 break 2
10975 fi
10976done
81ecdfbb
RW
10977 done
10978IFS=$as_save_IFS
c6b750e1 10979
2429c060
PB
10980fi
10981fi
c6b750e1 10982AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 10983if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10985$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10986else
81ecdfbb
RW
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10988$as_echo "no" >&6; }
2429c060
PB
10989fi
10990
81ecdfbb 10991
2429c060
PB
10992 fi
10993 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
10994 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10995set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10997$as_echo_n "checking for $ac_word... " >&6; }
10998if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10999 $as_echo_n "(cached) " >&6
2429c060
PB
11000else
11001 if test -n "$AS_FOR_TARGET"; then
11002 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11003else
c6b750e1
DJ
11004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11005for as_dir in $PATH
11006do
11007 IFS=$as_save_IFS
11008 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11009 for ac_exec_ext in '' $ac_executable_extensions; do
11010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11011 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11013 break 2
11014 fi
11015done
81ecdfbb
RW
11016 done
11017IFS=$as_save_IFS
c6b750e1 11018
2429c060
PB
11019fi
11020fi
c6b750e1 11021AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11022if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11024$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11025else
81ecdfbb
RW
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11027$as_echo "no" >&6; }
2429c060 11028fi
c6b750e1 11029
81ecdfbb 11030
2429c060
PB
11031 fi
11032 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11033 done
11034fi
c6b750e1 11035
2429c060
PB
11036if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11037 set dummy as
11038 if test $build = $target ; then
11039 AS_FOR_TARGET="$2"
11040 else
11041 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11042 fi
d3f5afc4
MS
11043else
11044 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11045fi
11046
3a35eeb3
PB
11047else
11048 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11049fi
11050
11051
11052
11053
11054if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11055 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11057$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11058 if test -x $with_build_time_tools/dlltool; then
11059 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11060 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11062$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11063 else
81ecdfbb
RW
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11065$as_echo "no" >&6; }
3a35eeb3 11066 fi
2429c060
PB
11067 elif test $build != $host && test $have_gcc_for_target = yes; then
11068 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11069 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11070 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11071 fi
11072fi
c6b750e1 11073if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11074 # Extract the first word of "dlltool", so it can be a program name with args.
11075set dummy dlltool; ac_word=$2
81ecdfbb
RW
11076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11077$as_echo_n "checking for $ac_word... " >&6; }
11078if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11079 $as_echo_n "(cached) " >&6
2429c060 11080else
c6b750e1
DJ
11081 case $DLLTOOL_FOR_TARGET in
11082 [\\/]* | ?:[\\/]*)
2429c060
PB
11083 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11084 ;;
2429c060 11085 *)
c6b750e1
DJ
11086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11087for as_dir in $gcc_cv_tool_dirs
11088do
11089 IFS=$as_save_IFS
11090 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11091 for ac_exec_ext in '' $ac_executable_extensions; do
11092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11093 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11095 break 2
11096 fi
11097done
81ecdfbb
RW
11098 done
11099IFS=$as_save_IFS
c6b750e1 11100
2429c060
PB
11101 ;;
11102esac
11103fi
c6b750e1 11104DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11105if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11107$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11108else
81ecdfbb
RW
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11110$as_echo "no" >&6; }
2429c060
PB
11111fi
11112
81ecdfbb 11113
2429c060
PB
11114fi
11115if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11116
11117
11118if test -n "$DLLTOOL_FOR_TARGET"; then
11119 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11120elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11121 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11122fi
11123
11124if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11125 for ncn_progname in dlltool; do
11126 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11127set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11129$as_echo_n "checking for $ac_word... " >&6; }
11130if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11131 $as_echo_n "(cached) " >&6
9a819804
AO
11132else
11133 if test -n "$DLLTOOL_FOR_TARGET"; then
11134 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11135else
11136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11137for as_dir in $PATH
11138do
11139 IFS=$as_save_IFS
11140 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11141 for ac_exec_ext in '' $ac_executable_extensions; do
11142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11143 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11145 break 2
11146 fi
11147done
81ecdfbb
RW
11148 done
11149IFS=$as_save_IFS
9a819804
AO
11150
11151fi
11152fi
11153DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11154if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11156$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11157else
81ecdfbb
RW
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11159$as_echo "no" >&6; }
9a819804
AO
11160fi
11161
81ecdfbb 11162
9a819804
AO
11163 done
11164fi
11165
11166if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11167 for ncn_progname in dlltool; do
81ecdfbb
RW
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11169$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11170 if test -x $with_build_time_tools/${ncn_progname}; then
11171 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11173$as_echo "yes" >&6; }
2429c060
PB
11174 break
11175 else
81ecdfbb
RW
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11177$as_echo "no" >&6; }
2429c060
PB
11178 fi
11179 done
11180fi
11181
11182if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11183 for ncn_progname in dlltool; do
11184 if test -n "$ncn_target_tool_prefix"; then
11185 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11186set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11188$as_echo_n "checking for $ac_word... " >&6; }
11189if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11190 $as_echo_n "(cached) " >&6
2429c060
PB
11191else
11192 if test -n "$DLLTOOL_FOR_TARGET"; then
11193 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11194else
c6b750e1
DJ
11195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11196for as_dir in $PATH
11197do
11198 IFS=$as_save_IFS
11199 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11200 for ac_exec_ext in '' $ac_executable_extensions; do
11201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11202 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11204 break 2
11205 fi
11206done
81ecdfbb
RW
11207 done
11208IFS=$as_save_IFS
c6b750e1 11209
2429c060
PB
11210fi
11211fi
c6b750e1 11212DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11213if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11215$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11216else
81ecdfbb
RW
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11218$as_echo "no" >&6; }
2429c060
PB
11219fi
11220
81ecdfbb 11221
2429c060
PB
11222 fi
11223 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11224 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11225set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11227$as_echo_n "checking for $ac_word... " >&6; }
11228if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11229 $as_echo_n "(cached) " >&6
2429c060
PB
11230else
11231 if test -n "$DLLTOOL_FOR_TARGET"; then
11232 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11233else
c6b750e1
DJ
11234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11235for as_dir in $PATH
11236do
11237 IFS=$as_save_IFS
11238 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11239 for ac_exec_ext in '' $ac_executable_extensions; do
11240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11241 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11243 break 2
11244 fi
11245done
81ecdfbb
RW
11246 done
11247IFS=$as_save_IFS
c6b750e1 11248
2429c060
PB
11249fi
11250fi
c6b750e1 11251DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11252if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11254$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11255else
81ecdfbb
RW
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11257$as_echo "no" >&6; }
2429c060 11258fi
c6b750e1 11259
81ecdfbb 11260
2429c060
PB
11261 fi
11262 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11263 done
11264fi
c6b750e1 11265
2429c060
PB
11266if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11267 set dummy dlltool
11268 if test $build = $target ; then
11269 DLLTOOL_FOR_TARGET="$2"
11270 else
11271 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11272 fi
d3f5afc4
MS
11273else
11274 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
11275fi
11276
3a35eeb3
PB
11277else
11278 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
11279fi
11280
11281
11282
11283
11284if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11285 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11287$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11288 if test -x $with_build_time_tools/ld; then
11289 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11290 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11292$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 11293 else
81ecdfbb
RW
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11295$as_echo "no" >&6; }
3a35eeb3 11296 fi
2429c060
PB
11297 elif test $build != $host && test $have_gcc_for_target = yes; then
11298 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
11299 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11300 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
11301 fi
11302fi
c6b750e1 11303if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11304 # Extract the first word of "ld", so it can be a program name with args.
11305set dummy ld; ac_word=$2
81ecdfbb
RW
11306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11307$as_echo_n "checking for $ac_word... " >&6; }
11308if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11309 $as_echo_n "(cached) " >&6
2429c060 11310else
c6b750e1
DJ
11311 case $LD_FOR_TARGET in
11312 [\\/]* | ?:[\\/]*)
2429c060
PB
11313 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11314 ;;
2429c060 11315 *)
c6b750e1
DJ
11316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11317for as_dir in $gcc_cv_tool_dirs
11318do
11319 IFS=$as_save_IFS
11320 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11321 for ac_exec_ext in '' $ac_executable_extensions; do
11322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11323 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11325 break 2
11326 fi
11327done
81ecdfbb
RW
11328 done
11329IFS=$as_save_IFS
c6b750e1 11330
2429c060
PB
11331 ;;
11332esac
11333fi
c6b750e1 11334LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 11335if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11337$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11338else
81ecdfbb
RW
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11340$as_echo "no" >&6; }
2429c060
PB
11341fi
11342
81ecdfbb 11343
2429c060
PB
11344fi
11345if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
11346
11347
11348if test -n "$LD_FOR_TARGET"; then
11349 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11350elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11351 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11352fi
11353
11354if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11355 for ncn_progname in ld; do
11356 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11357set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11359$as_echo_n "checking for $ac_word... " >&6; }
11360if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11361 $as_echo_n "(cached) " >&6
9a819804
AO
11362else
11363 if test -n "$LD_FOR_TARGET"; then
11364 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11365else
11366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11367for as_dir in $PATH
11368do
11369 IFS=$as_save_IFS
11370 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11371 for ac_exec_ext in '' $ac_executable_extensions; do
11372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11373 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11375 break 2
11376 fi
11377done
81ecdfbb
RW
11378 done
11379IFS=$as_save_IFS
9a819804
AO
11380
11381fi
11382fi
11383LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11384if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11386$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 11387else
81ecdfbb
RW
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11389$as_echo "no" >&6; }
9a819804
AO
11390fi
11391
81ecdfbb 11392
9a819804
AO
11393 done
11394fi
11395
11396if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11397 for ncn_progname in ld; do
81ecdfbb
RW
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11399$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11400 if test -x $with_build_time_tools/${ncn_progname}; then
11401 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11403$as_echo "yes" >&6; }
2429c060
PB
11404 break
11405 else
81ecdfbb
RW
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11407$as_echo "no" >&6; }
2429c060
PB
11408 fi
11409 done
11410fi
11411
11412if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11413 for ncn_progname in ld; do
11414 if test -n "$ncn_target_tool_prefix"; then
11415 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11416set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11418$as_echo_n "checking for $ac_word... " >&6; }
11419if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11420 $as_echo_n "(cached) " >&6
2429c060
PB
11421else
11422 if test -n "$LD_FOR_TARGET"; then
11423 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11424else
c6b750e1
DJ
11425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11426for as_dir in $PATH
11427do
11428 IFS=$as_save_IFS
11429 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11430 for ac_exec_ext in '' $ac_executable_extensions; do
11431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11432 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11434 break 2
11435 fi
11436done
81ecdfbb
RW
11437 done
11438IFS=$as_save_IFS
c6b750e1 11439
2429c060
PB
11440fi
11441fi
c6b750e1 11442LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11443if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11445$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11446else
81ecdfbb
RW
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11448$as_echo "no" >&6; }
2429c060
PB
11449fi
11450
81ecdfbb 11451
2429c060
PB
11452 fi
11453 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11454 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11455set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11457$as_echo_n "checking for $ac_word... " >&6; }
11458if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11459 $as_echo_n "(cached) " >&6
2429c060
PB
11460else
11461 if test -n "$LD_FOR_TARGET"; then
11462 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11463else
c6b750e1
DJ
11464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11465for as_dir in $PATH
11466do
11467 IFS=$as_save_IFS
11468 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11469 for ac_exec_ext in '' $ac_executable_extensions; do
11470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11471 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11473 break 2
11474 fi
11475done
81ecdfbb
RW
11476 done
11477IFS=$as_save_IFS
c6b750e1 11478
2429c060
PB
11479fi
11480fi
c6b750e1 11481LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11482if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11484$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11485else
81ecdfbb
RW
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11487$as_echo "no" >&6; }
2429c060 11488fi
c6b750e1 11489
81ecdfbb 11490
2429c060
PB
11491 fi
11492 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11493 done
11494fi
c6b750e1 11495
2429c060
PB
11496if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11497 set dummy ld
11498 if test $build = $target ; then
11499 LD_FOR_TARGET="$2"
11500 else
11501 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11502 fi
d3f5afc4
MS
11503else
11504 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
11505fi
11506
3a35eeb3
PB
11507else
11508 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
11509fi
11510
11511
11512
11513
11514if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11515 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11517$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11518 if test -x $with_build_time_tools/lipo; then
11519 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11520 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11522$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 11523 else
81ecdfbb
RW
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11525$as_echo "no" >&6; }
3a35eeb3 11526 fi
2429c060
PB
11527 elif test $build != $host && test $have_gcc_for_target = yes; then
11528 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
11529 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11530 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
11531 fi
11532fi
9a819804
AO
11533if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11534 # Extract the first word of "lipo", so it can be a program name with args.
11535set dummy lipo; ac_word=$2
81ecdfbb
RW
11536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11537$as_echo_n "checking for $ac_word... " >&6; }
11538if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11539 $as_echo_n "(cached) " >&6
9a819804
AO
11540else
11541 case $LIPO_FOR_TARGET in
11542 [\\/]* | ?:[\\/]*)
11543 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11544 ;;
11545 *)
11546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11547for as_dir in $gcc_cv_tool_dirs
11548do
11549 IFS=$as_save_IFS
11550 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11551 for ac_exec_ext in '' $ac_executable_extensions; do
11552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11553 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11555 break 2
11556 fi
11557done
81ecdfbb
RW
11558 done
11559IFS=$as_save_IFS
9a819804
AO
11560
11561 ;;
11562esac
11563fi
11564LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 11565if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11567$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 11568else
81ecdfbb
RW
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11570$as_echo "no" >&6; }
9a819804
AO
11571fi
11572
81ecdfbb 11573
9a819804
AO
11574fi
11575if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11576
11577
11578if test -n "$LIPO_FOR_TARGET"; then
11579 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11580elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11581 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11582fi
11583
11584if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11585 for ncn_progname in lipo; do
11586 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11587set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11589$as_echo_n "checking for $ac_word... " >&6; }
11590if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11591 $as_echo_n "(cached) " >&6
2429c060 11592else
9a819804
AO
11593 if test -n "$LIPO_FOR_TARGET"; then
11594 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11595else
11596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11597for as_dir in $PATH
c6b750e1
DJ
11598do
11599 IFS=$as_save_IFS
11600 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11601 for ac_exec_ext in '' $ac_executable_extensions; do
11602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11603 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11605 break 2
11606 fi
11607done
81ecdfbb
RW
11608 done
11609IFS=$as_save_IFS
c6b750e1 11610
2429c060 11611fi
9a819804
AO
11612fi
11613LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11614if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11616$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11617else
81ecdfbb
RW
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11619$as_echo "no" >&6; }
2429c060
PB
11620fi
11621
81ecdfbb 11622
9a819804 11623 done
2429c060 11624fi
9a819804
AO
11625
11626if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11627 for ncn_progname in lipo; do
81ecdfbb
RW
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11629$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11630 if test -x $with_build_time_tools/${ncn_progname}; then
11631 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11633$as_echo "yes" >&6; }
2429c060
PB
11634 break
11635 else
81ecdfbb
RW
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11637$as_echo "no" >&6; }
2429c060
PB
11638 fi
11639 done
11640fi
11641
11642if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11643 for ncn_progname in lipo; do
11644 if test -n "$ncn_target_tool_prefix"; then
11645 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11646set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11648$as_echo_n "checking for $ac_word... " >&6; }
11649if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11650 $as_echo_n "(cached) " >&6
2429c060
PB
11651else
11652 if test -n "$LIPO_FOR_TARGET"; then
11653 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11654else
c6b750e1
DJ
11655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11656for as_dir in $PATH
11657do
11658 IFS=$as_save_IFS
11659 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11660 for ac_exec_ext in '' $ac_executable_extensions; do
11661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11662 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11664 break 2
11665 fi
11666done
81ecdfbb
RW
11667 done
11668IFS=$as_save_IFS
c6b750e1 11669
2429c060
PB
11670fi
11671fi
c6b750e1 11672LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11673if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11675$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11676else
81ecdfbb
RW
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11678$as_echo "no" >&6; }
2429c060
PB
11679fi
11680
81ecdfbb 11681
2429c060
PB
11682 fi
11683 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11684 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11685set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11687$as_echo_n "checking for $ac_word... " >&6; }
11688if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11689 $as_echo_n "(cached) " >&6
2429c060
PB
11690else
11691 if test -n "$LIPO_FOR_TARGET"; then
11692 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11693else
c6b750e1
DJ
11694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11695for as_dir in $PATH
11696do
11697 IFS=$as_save_IFS
11698 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11699 for ac_exec_ext in '' $ac_executable_extensions; do
11700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11701 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11703 break 2
11704 fi
11705done
81ecdfbb
RW
11706 done
11707IFS=$as_save_IFS
c6b750e1 11708
2429c060
PB
11709fi
11710fi
c6b750e1 11711LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11712if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11714$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11715else
81ecdfbb
RW
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11717$as_echo "no" >&6; }
2429c060 11718fi
c6b750e1 11719
81ecdfbb 11720
2429c060
PB
11721 fi
11722 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11723 done
11724fi
c6b750e1 11725
2429c060
PB
11726if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11727 set dummy lipo
11728 if test $build = $target ; then
11729 LIPO_FOR_TARGET="$2"
11730 else
11731 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11732 fi
d3f5afc4
MS
11733else
11734 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
11735fi
11736
3a35eeb3
PB
11737else
11738 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
11739fi
11740
11741
11742
11743
11744if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11745 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11747$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11748 if test -x $with_build_time_tools/nm; then
11749 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11750 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11752$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 11753 else
81ecdfbb
RW
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11755$as_echo "no" >&6; }
3a35eeb3 11756 fi
2429c060
PB
11757 elif test $build != $host && test $have_gcc_for_target = yes; then
11758 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
11759 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11760 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
11761 fi
11762fi
c6b750e1 11763if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11764 # Extract the first word of "nm", so it can be a program name with args.
11765set dummy nm; ac_word=$2
81ecdfbb
RW
11766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11767$as_echo_n "checking for $ac_word... " >&6; }
11768if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11769 $as_echo_n "(cached) " >&6
2429c060 11770else
c6b750e1
DJ
11771 case $NM_FOR_TARGET in
11772 [\\/]* | ?:[\\/]*)
2429c060
PB
11773 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11774 ;;
2429c060 11775 *)
c6b750e1
DJ
11776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11777for as_dir in $gcc_cv_tool_dirs
11778do
11779 IFS=$as_save_IFS
11780 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11781 for ac_exec_ext in '' $ac_executable_extensions; do
11782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11783 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11785 break 2
11786 fi
11787done
81ecdfbb
RW
11788 done
11789IFS=$as_save_IFS
c6b750e1 11790
2429c060
PB
11791 ;;
11792esac
11793fi
c6b750e1 11794NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 11795if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11797$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 11798else
81ecdfbb
RW
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11800$as_echo "no" >&6; }
2429c060
PB
11801fi
11802
81ecdfbb 11803
2429c060
PB
11804fi
11805if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
11806
11807
11808if test -n "$NM_FOR_TARGET"; then
11809 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11810elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11811 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11812fi
11813
11814if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11815 for ncn_progname in nm; do
11816 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11817set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11819$as_echo_n "checking for $ac_word... " >&6; }
11820if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11821 $as_echo_n "(cached) " >&6
9a819804
AO
11822else
11823 if test -n "$NM_FOR_TARGET"; then
11824 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11825else
11826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11827for as_dir in $PATH
11828do
11829 IFS=$as_save_IFS
11830 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11831 for ac_exec_ext in '' $ac_executable_extensions; do
11832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11833 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11835 break 2
11836 fi
11837done
81ecdfbb
RW
11838 done
11839IFS=$as_save_IFS
9a819804
AO
11840
11841fi
11842fi
11843NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11844if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11846$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 11847else
81ecdfbb
RW
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11849$as_echo "no" >&6; }
9a819804
AO
11850fi
11851
81ecdfbb 11852
9a819804
AO
11853 done
11854fi
11855
11856if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11857 for ncn_progname in nm; do
81ecdfbb
RW
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11859$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11860 if test -x $with_build_time_tools/${ncn_progname}; then
11861 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11863$as_echo "yes" >&6; }
2429c060
PB
11864 break
11865 else
81ecdfbb
RW
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11867$as_echo "no" >&6; }
2429c060
PB
11868 fi
11869 done
11870fi
11871
11872if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11873 for ncn_progname in nm; do
11874 if test -n "$ncn_target_tool_prefix"; then
11875 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 11876set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11878$as_echo_n "checking for $ac_word... " >&6; }
11879if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11880 $as_echo_n "(cached) " >&6
859789af 11881else
55db4b87
PB
11882 if test -n "$NM_FOR_TARGET"; then
11883 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 11884else
c6b750e1
DJ
11885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11886for as_dir in $PATH
11887do
11888 IFS=$as_save_IFS
11889 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11890 for ac_exec_ext in '' $ac_executable_extensions; do
11891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11892 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11894 break 2
11895 fi
11896done
81ecdfbb
RW
11897 done
11898IFS=$as_save_IFS
c6b750e1 11899
859789af
AC
11900fi
11901fi
c6b750e1 11902NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 11903if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11905$as_echo "$NM_FOR_TARGET" >&6; }
859789af 11906else
81ecdfbb
RW
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11908$as_echo "no" >&6; }
859789af
AC
11909fi
11910
81ecdfbb 11911
2429c060
PB
11912 fi
11913 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11914 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11915set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11917$as_echo_n "checking for $ac_word... " >&6; }
11918if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11919 $as_echo_n "(cached) " >&6
859789af 11920else
05cbd757
PB
11921 if test -n "$NM_FOR_TARGET"; then
11922 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 11923else
c6b750e1
DJ
11924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11925for as_dir in $PATH
11926do
11927 IFS=$as_save_IFS
11928 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11929 for ac_exec_ext in '' $ac_executable_extensions; do
11930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11931 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11933 break 2
11934 fi
11935done
81ecdfbb
RW
11936 done
11937IFS=$as_save_IFS
c6b750e1 11938
859789af
AC
11939fi
11940fi
c6b750e1 11941NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 11942if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11944$as_echo "$NM_FOR_TARGET" >&6; }
859789af 11945else
81ecdfbb
RW
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11947$as_echo "no" >&6; }
859789af 11948fi
c6b750e1 11949
81ecdfbb 11950
2429c060
PB
11951 fi
11952 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11953 done
11954fi
c6b750e1 11955
05cbd757
PB
11956if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11957 set dummy nm
11958 if test $build = $target ; then
11959 NM_FOR_TARGET="$2"
859789af 11960 else
05cbd757 11961 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 11962 fi
d3f5afc4
MS
11963else
11964 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
11965fi
11966
3a35eeb3
PB
11967else
11968 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
11969fi
11970
11971
11972
11973
11974if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11975 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11977$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11978 if test -x $with_build_time_tools/objdump; then
11979 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11980 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11982$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 11983 else
81ecdfbb
RW
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11985$as_echo "no" >&6; }
3a35eeb3 11986 fi
2429c060
PB
11987 elif test $build != $host && test $have_gcc_for_target = yes; then
11988 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
11989 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
11990 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
11991 fi
11992fi
c6b750e1 11993if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11994 # Extract the first word of "objdump", so it can be a program name with args.
11995set dummy objdump; ac_word=$2
81ecdfbb
RW
11996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11997$as_echo_n "checking for $ac_word... " >&6; }
11998if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
11999 $as_echo_n "(cached) " >&6
2429c060 12000else
c6b750e1
DJ
12001 case $OBJDUMP_FOR_TARGET in
12002 [\\/]* | ?:[\\/]*)
2429c060
PB
12003 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12004 ;;
2429c060 12005 *)
c6b750e1
DJ
12006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12007for as_dir in $gcc_cv_tool_dirs
12008do
12009 IFS=$as_save_IFS
12010 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12011 for ac_exec_ext in '' $ac_executable_extensions; do
12012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12013 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12015 break 2
12016 fi
12017done
81ecdfbb
RW
12018 done
12019IFS=$as_save_IFS
c6b750e1 12020
2429c060
PB
12021 ;;
12022esac
12023fi
c6b750e1 12024OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 12025if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12027$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 12028else
81ecdfbb
RW
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12030$as_echo "no" >&6; }
2429c060
PB
12031fi
12032
81ecdfbb 12033
2429c060
PB
12034fi
12035if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12036
12037
12038if test -n "$OBJDUMP_FOR_TARGET"; then
12039 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12040elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12041 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12042fi
12043
12044if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12045 for ncn_progname in objdump; do
12046 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12047set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12049$as_echo_n "checking for $ac_word... " >&6; }
12050if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12051 $as_echo_n "(cached) " >&6
9a819804
AO
12052else
12053 if test -n "$OBJDUMP_FOR_TARGET"; then
12054 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12055else
12056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12057for as_dir in $PATH
12058do
12059 IFS=$as_save_IFS
12060 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12061 for ac_exec_ext in '' $ac_executable_extensions; do
12062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12063 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12065 break 2
12066 fi
12067done
81ecdfbb
RW
12068 done
12069IFS=$as_save_IFS
9a819804
AO
12070
12071fi
12072fi
12073OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12074if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12076$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 12077else
81ecdfbb
RW
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12079$as_echo "no" >&6; }
9a819804
AO
12080fi
12081
81ecdfbb 12082
9a819804
AO
12083 done
12084fi
12085
12086if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12087 for ncn_progname in objdump; do
81ecdfbb
RW
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12089$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12090 if test -x $with_build_time_tools/${ncn_progname}; then
12091 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12093$as_echo "yes" >&6; }
2429c060
PB
12094 break
12095 else
81ecdfbb
RW
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12097$as_echo "no" >&6; }
2429c060
PB
12098 fi
12099 done
12100fi
12101
12102if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12103 for ncn_progname in objdump; do
12104 if test -n "$ncn_target_tool_prefix"; then
12105 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12106set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12108$as_echo_n "checking for $ac_word... " >&6; }
12109if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12110 $as_echo_n "(cached) " >&6
5ae72758
DJ
12111else
12112 if test -n "$OBJDUMP_FOR_TARGET"; then
12113 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12114else
c6b750e1
DJ
12115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12116for as_dir in $PATH
12117do
12118 IFS=$as_save_IFS
12119 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12120 for ac_exec_ext in '' $ac_executable_extensions; do
12121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12122 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12124 break 2
12125 fi
12126done
81ecdfbb
RW
12127 done
12128IFS=$as_save_IFS
c6b750e1 12129
5ae72758
DJ
12130fi
12131fi
c6b750e1 12132OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12133if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12135$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12136else
81ecdfbb
RW
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12138$as_echo "no" >&6; }
5ae72758
DJ
12139fi
12140
81ecdfbb 12141
2429c060
PB
12142 fi
12143 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12144 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 12145set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12147$as_echo_n "checking for $ac_word... " >&6; }
12148if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12149 $as_echo_n "(cached) " >&6
5ae72758
DJ
12150else
12151 if test -n "$OBJDUMP_FOR_TARGET"; then
12152 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12153else
c6b750e1
DJ
12154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12155for as_dir in $PATH
12156do
12157 IFS=$as_save_IFS
12158 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12159 for ac_exec_ext in '' $ac_executable_extensions; do
12160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12161 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12163 break 2
12164 fi
12165done
81ecdfbb
RW
12166 done
12167IFS=$as_save_IFS
c6b750e1 12168
5ae72758
DJ
12169fi
12170fi
c6b750e1 12171OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12172if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12174$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12175else
81ecdfbb
RW
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12177$as_echo "no" >&6; }
5ae72758 12178fi
c6b750e1 12179
81ecdfbb 12180
2429c060
PB
12181 fi
12182 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12183 done
12184fi
c6b750e1 12185
5ae72758
DJ
12186if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12187 set dummy objdump
12188 if test $build = $target ; then
12189 OBJDUMP_FOR_TARGET="$2"
12190 else
12191 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12192 fi
d3f5afc4
MS
12193else
12194 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
12195fi
12196
3a35eeb3
PB
12197else
12198 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
12199fi
12200
12201
12202
12203
12204if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12205 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12207$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12208 if test -x $with_build_time_tools/ranlib; then
12209 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12210 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12212$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 12213 else
81ecdfbb
RW
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12215$as_echo "no" >&6; }
3a35eeb3 12216 fi
2429c060
PB
12217 elif test $build != $host && test $have_gcc_for_target = yes; then
12218 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
12219 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12220 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
12221 fi
12222fi
c6b750e1 12223if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12224 # Extract the first word of "ranlib", so it can be a program name with args.
12225set dummy ranlib; ac_word=$2
81ecdfbb
RW
12226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12227$as_echo_n "checking for $ac_word... " >&6; }
12228if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12229 $as_echo_n "(cached) " >&6
2429c060 12230else
c6b750e1
DJ
12231 case $RANLIB_FOR_TARGET in
12232 [\\/]* | ?:[\\/]*)
2429c060
PB
12233 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12234 ;;
2429c060 12235 *)
c6b750e1
DJ
12236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12237for as_dir in $gcc_cv_tool_dirs
12238do
12239 IFS=$as_save_IFS
12240 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12241 for ac_exec_ext in '' $ac_executable_extensions; do
12242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12243 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12245 break 2
12246 fi
12247done
81ecdfbb
RW
12248 done
12249IFS=$as_save_IFS
c6b750e1 12250
2429c060
PB
12251 ;;
12252esac
12253fi
c6b750e1 12254RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 12255if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12257$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 12258else
81ecdfbb
RW
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12260$as_echo "no" >&6; }
2429c060
PB
12261fi
12262
81ecdfbb 12263
2429c060
PB
12264fi
12265if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
12266
12267
12268if test -n "$RANLIB_FOR_TARGET"; then
12269 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12270elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12271 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12272fi
12273
12274if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12275 for ncn_progname in ranlib; do
12276 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12277set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12279$as_echo_n "checking for $ac_word... " >&6; }
12280if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12281 $as_echo_n "(cached) " >&6
9a819804
AO
12282else
12283 if test -n "$RANLIB_FOR_TARGET"; then
12284 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12285else
12286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12287for as_dir in $PATH
12288do
12289 IFS=$as_save_IFS
12290 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12291 for ac_exec_ext in '' $ac_executable_extensions; do
12292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12293 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12295 break 2
12296 fi
12297done
81ecdfbb
RW
12298 done
12299IFS=$as_save_IFS
9a819804
AO
12300
12301fi
12302fi
12303RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12304if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12306$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 12307else
81ecdfbb
RW
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12309$as_echo "no" >&6; }
9a819804
AO
12310fi
12311
81ecdfbb 12312
9a819804
AO
12313 done
12314fi
12315
12316if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12317 for ncn_progname in ranlib; do
81ecdfbb
RW
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12319$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12320 if test -x $with_build_time_tools/${ncn_progname}; then
12321 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12323$as_echo "yes" >&6; }
2429c060
PB
12324 break
12325 else
81ecdfbb
RW
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12327$as_echo "no" >&6; }
2429c060
PB
12328 fi
12329 done
12330fi
12331
12332if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12333 for ncn_progname in ranlib; do
12334 if test -n "$ncn_target_tool_prefix"; then
12335 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 12336set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12338$as_echo_n "checking for $ac_word... " >&6; }
12339if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12340 $as_echo_n "(cached) " >&6
859789af 12341else
55db4b87
PB
12342 if test -n "$RANLIB_FOR_TARGET"; then
12343 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12344else
c6b750e1
DJ
12345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12346for as_dir in $PATH
12347do
12348 IFS=$as_save_IFS
12349 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12350 for ac_exec_ext in '' $ac_executable_extensions; do
12351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12352 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12354 break 2
12355 fi
12356done
81ecdfbb
RW
12357 done
12358IFS=$as_save_IFS
c6b750e1 12359
859789af
AC
12360fi
12361fi
c6b750e1 12362RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 12363if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12365$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12366else
81ecdfbb
RW
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12368$as_echo "no" >&6; }
859789af
AC
12369fi
12370
81ecdfbb 12371
2429c060
PB
12372 fi
12373 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12374 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12375set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12377$as_echo_n "checking for $ac_word... " >&6; }
12378if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12379 $as_echo_n "(cached) " >&6
859789af 12380else
05cbd757
PB
12381 if test -n "$RANLIB_FOR_TARGET"; then
12382 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12383else
c6b750e1
DJ
12384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12385for as_dir in $PATH
12386do
12387 IFS=$as_save_IFS
12388 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12389 for ac_exec_ext in '' $ac_executable_extensions; do
12390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12391 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12393 break 2
12394 fi
12395done
81ecdfbb
RW
12396 done
12397IFS=$as_save_IFS
c6b750e1 12398
859789af
AC
12399fi
12400fi
c6b750e1 12401RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 12402if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12404$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12405else
81ecdfbb
RW
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12407$as_echo "no" >&6; }
859789af 12408fi
c6b750e1 12409
81ecdfbb 12410
2429c060
PB
12411 fi
12412 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12413 done
12414fi
c6b750e1 12415
2429c060
PB
12416if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12417 set dummy ranlib
12418 if test $build = $target ; then
12419 RANLIB_FOR_TARGET="$2"
12420 else
12421 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12422 fi
d3f5afc4
MS
12423else
12424 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 12425fi
05cbd757 12426
3a35eeb3
PB
12427else
12428 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
12429fi
12430
2429c060
PB
12431
12432
12433
b121d7d4
DD
12434if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12435 if test -n "$with_build_time_tools"; then
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12437$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12438 if test -x $with_build_time_tools/readelf; then
12439 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12440 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12442$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12443 else
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12445$as_echo "no" >&6; }
12446 fi
12447 elif test $build != $host && test $have_gcc_for_target = yes; then
12448 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12449 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12450 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12451 fi
12452fi
12453if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12454 # Extract the first word of "readelf", so it can be a program name with args.
12455set dummy readelf; ac_word=$2
12456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12457$as_echo_n "checking for $ac_word... " >&6; }
12458if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12459 $as_echo_n "(cached) " >&6
12460else
12461 case $READELF_FOR_TARGET in
12462 [\\/]* | ?:[\\/]*)
12463 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12464 ;;
12465 *)
12466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12467for as_dir in $gcc_cv_tool_dirs
12468do
12469 IFS=$as_save_IFS
12470 test -z "$as_dir" && as_dir=.
12471 for ac_exec_ext in '' $ac_executable_extensions; do
12472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12473 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12475 break 2
12476 fi
12477done
12478 done
12479IFS=$as_save_IFS
12480
12481 ;;
12482esac
12483fi
12484READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12485if test -n "$READELF_FOR_TARGET"; then
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12487$as_echo "$READELF_FOR_TARGET" >&6; }
12488else
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12490$as_echo "no" >&6; }
12491fi
12492
12493
12494fi
12495if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12496
12497
12498if test -n "$READELF_FOR_TARGET"; then
12499 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12500elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12501 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12502fi
12503
12504if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12505 for ncn_progname in readelf; do
12506 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12507set dummy ${ncn_progname}; ac_word=$2
12508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12509$as_echo_n "checking for $ac_word... " >&6; }
12510if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12511 $as_echo_n "(cached) " >&6
12512else
12513 if test -n "$READELF_FOR_TARGET"; then
12514 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12515else
12516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12517for as_dir in $PATH
12518do
12519 IFS=$as_save_IFS
12520 test -z "$as_dir" && as_dir=.
12521 for ac_exec_ext in '' $ac_executable_extensions; do
12522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12523 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12525 break 2
12526 fi
12527done
12528 done
12529IFS=$as_save_IFS
12530
12531fi
12532fi
12533READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12534if test -n "$READELF_FOR_TARGET"; then
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12536$as_echo "$READELF_FOR_TARGET" >&6; }
12537else
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12539$as_echo "no" >&6; }
12540fi
12541
12542
12543 done
12544fi
12545
12546if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12547 for ncn_progname in readelf; do
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12549$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12550 if test -x $with_build_time_tools/${ncn_progname}; then
12551 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12553$as_echo "yes" >&6; }
12554 break
12555 else
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12557$as_echo "no" >&6; }
12558 fi
12559 done
12560fi
12561
12562if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12563 for ncn_progname in readelf; do
12564 if test -n "$ncn_target_tool_prefix"; then
12565 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12566set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12568$as_echo_n "checking for $ac_word... " >&6; }
12569if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12570 $as_echo_n "(cached) " >&6
12571else
12572 if test -n "$READELF_FOR_TARGET"; then
12573 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12574else
12575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12576for as_dir in $PATH
12577do
12578 IFS=$as_save_IFS
12579 test -z "$as_dir" && as_dir=.
12580 for ac_exec_ext in '' $ac_executable_extensions; do
12581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12582 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12584 break 2
12585 fi
12586done
12587 done
12588IFS=$as_save_IFS
12589
12590fi
12591fi
12592READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12593if test -n "$READELF_FOR_TARGET"; then
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12595$as_echo "$READELF_FOR_TARGET" >&6; }
12596else
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12598$as_echo "no" >&6; }
12599fi
12600
12601
12602 fi
12603 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12604 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12605set dummy ${ncn_progname}; ac_word=$2
12606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12607$as_echo_n "checking for $ac_word... " >&6; }
12608if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12609 $as_echo_n "(cached) " >&6
12610else
12611 if test -n "$READELF_FOR_TARGET"; then
12612 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12613else
12614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12615for as_dir in $PATH
12616do
12617 IFS=$as_save_IFS
12618 test -z "$as_dir" && as_dir=.
12619 for ac_exec_ext in '' $ac_executable_extensions; do
12620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12621 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12623 break 2
12624 fi
12625done
12626 done
12627IFS=$as_save_IFS
12628
12629fi
12630fi
12631READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12632if test -n "$READELF_FOR_TARGET"; then
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12634$as_echo "$READELF_FOR_TARGET" >&6; }
12635else
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12637$as_echo "no" >&6; }
12638fi
12639
12640
12641 fi
12642 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12643 done
12644fi
12645
12646if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12647 set dummy readelf
12648 if test $build = $target ; then
12649 READELF_FOR_TARGET="$2"
12650 else
12651 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12652 fi
12653else
12654 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12655fi
12656
12657else
12658 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12659fi
12660
12661
12662
12663
2429c060
PB
12664if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12665 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12667$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12668 if test -x $with_build_time_tools/strip; then
12669 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12670 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12672$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 12673 else
81ecdfbb
RW
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12675$as_echo "no" >&6; }
3a35eeb3 12676 fi
2429c060
PB
12677 elif test $build != $host && test $have_gcc_for_target = yes; then
12678 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
12679 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12680 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
12681 fi
12682fi
c6b750e1 12683if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12684 # Extract the first word of "strip", so it can be a program name with args.
12685set dummy strip; ac_word=$2
81ecdfbb
RW
12686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12687$as_echo_n "checking for $ac_word... " >&6; }
12688if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12689 $as_echo_n "(cached) " >&6
2429c060 12690else
c6b750e1
DJ
12691 case $STRIP_FOR_TARGET in
12692 [\\/]* | ?:[\\/]*)
2429c060
PB
12693 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12694 ;;
2429c060 12695 *)
c6b750e1
DJ
12696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12697for as_dir in $gcc_cv_tool_dirs
12698do
12699 IFS=$as_save_IFS
12700 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12701 for ac_exec_ext in '' $ac_executable_extensions; do
12702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12703 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12705 break 2
12706 fi
12707done
81ecdfbb
RW
12708 done
12709IFS=$as_save_IFS
c6b750e1 12710
2429c060
PB
12711 ;;
12712esac
12713fi
c6b750e1 12714STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 12715if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12717$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 12718else
81ecdfbb
RW
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12720$as_echo "no" >&6; }
2429c060
PB
12721fi
12722
81ecdfbb 12723
2429c060
PB
12724fi
12725if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
12726
12727
12728if test -n "$STRIP_FOR_TARGET"; then
12729 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12730elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12731 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12732fi
12733
12734if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12735 for ncn_progname in strip; do
12736 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12737set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12739$as_echo_n "checking for $ac_word... " >&6; }
12740if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12741 $as_echo_n "(cached) " >&6
9a819804
AO
12742else
12743 if test -n "$STRIP_FOR_TARGET"; then
12744 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12745else
12746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12747for as_dir in $PATH
12748do
12749 IFS=$as_save_IFS
12750 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12751 for ac_exec_ext in '' $ac_executable_extensions; do
12752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12753 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12755 break 2
12756 fi
12757done
81ecdfbb
RW
12758 done
12759IFS=$as_save_IFS
9a819804
AO
12760
12761fi
12762fi
12763STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12764if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12766$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 12767else
81ecdfbb
RW
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12769$as_echo "no" >&6; }
9a819804
AO
12770fi
12771
81ecdfbb 12772
9a819804
AO
12773 done
12774fi
12775
12776if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12777 for ncn_progname in strip; do
81ecdfbb
RW
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12779$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12780 if test -x $with_build_time_tools/${ncn_progname}; then
12781 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12783$as_echo "yes" >&6; }
2429c060
PB
12784 break
12785 else
81ecdfbb
RW
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12787$as_echo "no" >&6; }
2429c060
PB
12788 fi
12789 done
12790fi
12791
12792if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12793 for ncn_progname in strip; do
12794 if test -n "$ncn_target_tool_prefix"; then
12795 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12796set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12798$as_echo_n "checking for $ac_word... " >&6; }
12799if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12800 $as_echo_n "(cached) " >&6
7e0f7140
GK
12801else
12802 if test -n "$STRIP_FOR_TARGET"; then
12803 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
12804else
12805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12806for as_dir in $PATH
12807do
12808 IFS=$as_save_IFS
12809 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12810 for ac_exec_ext in '' $ac_executable_extensions; do
12811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12812 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12814 break 2
12815 fi
12816done
81ecdfbb
RW
12817 done
12818IFS=$as_save_IFS
c6b750e1 12819
7e0f7140
GK
12820fi
12821fi
c6b750e1 12822STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12823if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12825$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12826else
81ecdfbb
RW
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12828$as_echo "no" >&6; }
7e0f7140
GK
12829fi
12830
81ecdfbb 12831
2429c060
PB
12832 fi
12833 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12834 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 12835set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12837$as_echo_n "checking for $ac_word... " >&6; }
12838if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12839 $as_echo_n "(cached) " >&6
7e0f7140
GK
12840else
12841 if test -n "$STRIP_FOR_TARGET"; then
12842 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12843else
c6b750e1
DJ
12844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12845for as_dir in $PATH
12846do
12847 IFS=$as_save_IFS
12848 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12849 for ac_exec_ext in '' $ac_executable_extensions; do
12850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12851 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12853 break 2
12854 fi
12855done
81ecdfbb
RW
12856 done
12857IFS=$as_save_IFS
c6b750e1 12858
7e0f7140
GK
12859fi
12860fi
c6b750e1 12861STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12862if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12864$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12865else
81ecdfbb
RW
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12867$as_echo "no" >&6; }
7e0f7140 12868fi
c6b750e1 12869
81ecdfbb 12870
2429c060
PB
12871 fi
12872 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12873 done
12874fi
c6b750e1 12875
7e0f7140
GK
12876if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12877 set dummy strip
12878 if test $build = $target ; then
12879 STRIP_FOR_TARGET="$2"
12880 else
12881 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12882 fi
d3f5afc4
MS
12883else
12884 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
12885fi
12886
3a35eeb3
PB
12887else
12888 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
12889fi
12890
12891
12892
12893
12894if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12895 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12897$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12898 if test -x $with_build_time_tools/windres; then
12899 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12900 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12902$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 12903 else
81ecdfbb
RW
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12905$as_echo "no" >&6; }
3a35eeb3 12906 fi
2429c060
PB
12907 elif test $build != $host && test $have_gcc_for_target = yes; then
12908 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
12909 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12910 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
12911 fi
12912fi
c6b750e1 12913if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12914 # Extract the first word of "windres", so it can be a program name with args.
12915set dummy windres; ac_word=$2
81ecdfbb
RW
12916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12917$as_echo_n "checking for $ac_word... " >&6; }
12918if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12919 $as_echo_n "(cached) " >&6
2429c060 12920else
c6b750e1
DJ
12921 case $WINDRES_FOR_TARGET in
12922 [\\/]* | ?:[\\/]*)
2429c060
PB
12923 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12924 ;;
2429c060 12925 *)
c6b750e1
DJ
12926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12927for as_dir in $gcc_cv_tool_dirs
12928do
12929 IFS=$as_save_IFS
12930 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12931 for ac_exec_ext in '' $ac_executable_extensions; do
12932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12933 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12935 break 2
12936 fi
12937done
81ecdfbb
RW
12938 done
12939IFS=$as_save_IFS
c6b750e1 12940
2429c060
PB
12941 ;;
12942esac
12943fi
c6b750e1 12944WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 12945if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12947$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 12948else
81ecdfbb
RW
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12950$as_echo "no" >&6; }
2429c060
PB
12951fi
12952
81ecdfbb 12953
2429c060
PB
12954fi
12955if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
12956
12957
12958if test -n "$WINDRES_FOR_TARGET"; then
12959 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12960elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12961 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12962fi
12963
12964if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12965 for ncn_progname in windres; do
12966 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12967set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12969$as_echo_n "checking for $ac_word... " >&6; }
12970if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12971 $as_echo_n "(cached) " >&6
9a819804
AO
12972else
12973 if test -n "$WINDRES_FOR_TARGET"; then
12974 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12975else
12976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12977for as_dir in $PATH
12978do
12979 IFS=$as_save_IFS
12980 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12981 for ac_exec_ext in '' $ac_executable_extensions; do
12982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12983 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 12984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12985 break 2
12986 fi
12987done
81ecdfbb
RW
12988 done
12989IFS=$as_save_IFS
9a819804
AO
12990
12991fi
12992fi
12993WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12994if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12996$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 12997else
81ecdfbb
RW
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12999$as_echo "no" >&6; }
9a819804
AO
13000fi
13001
81ecdfbb 13002
9a819804
AO
13003 done
13004fi
13005
13006if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13007 for ncn_progname in windres; do
81ecdfbb
RW
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13009$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13010 if test -x $with_build_time_tools/${ncn_progname}; then
13011 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13013$as_echo "yes" >&6; }
2429c060
PB
13014 break
13015 else
81ecdfbb
RW
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13017$as_echo "no" >&6; }
2429c060
PB
13018 fi
13019 done
13020fi
13021
13022if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13023 for ncn_progname in windres; do
13024 if test -n "$ncn_target_tool_prefix"; then
13025 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13026set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13028$as_echo_n "checking for $ac_word... " >&6; }
13029if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13030 $as_echo_n "(cached) " >&6
859789af 13031else
55db4b87
PB
13032 if test -n "$WINDRES_FOR_TARGET"; then
13033 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13034else
c6b750e1
DJ
13035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13036for as_dir in $PATH
13037do
13038 IFS=$as_save_IFS
13039 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13040 for ac_exec_ext in '' $ac_executable_extensions; do
13041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13042 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13044 break 2
13045 fi
13046done
81ecdfbb
RW
13047 done
13048IFS=$as_save_IFS
c6b750e1 13049
859789af
AC
13050fi
13051fi
c6b750e1 13052WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 13053if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13055$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13056else
81ecdfbb
RW
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13058$as_echo "no" >&6; }
859789af
AC
13059fi
13060
81ecdfbb 13061
2429c060
PB
13062 fi
13063 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13064 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13065set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13067$as_echo_n "checking for $ac_word... " >&6; }
13068if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13069 $as_echo_n "(cached) " >&6
859789af 13070else
05cbd757
PB
13071 if test -n "$WINDRES_FOR_TARGET"; then
13072 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13073else
c6b750e1
DJ
13074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13075for as_dir in $PATH
13076do
13077 IFS=$as_save_IFS
13078 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13079 for ac_exec_ext in '' $ac_executable_extensions; do
13080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13081 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13083 break 2
13084 fi
13085done
81ecdfbb
RW
13086 done
13087IFS=$as_save_IFS
c6b750e1 13088
859789af
AC
13089fi
13090fi
c6b750e1 13091WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 13092if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13094$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13095else
81ecdfbb
RW
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13097$as_echo "no" >&6; }
859789af 13098fi
c6b750e1 13099
81ecdfbb 13100
2429c060
PB
13101 fi
13102 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13103 done
13104fi
c6b750e1 13105
05cbd757
PB
13106if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13107 set dummy windres
13108 if test $build = $target ; then
13109 WINDRES_FOR_TARGET="$2"
859789af 13110 else
05cbd757 13111 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 13112 fi
d3f5afc4
MS
13113else
13114 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
13115fi
13116
3a35eeb3
PB
13117else
13118 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
13119fi
13120
852e5f18 13121
0c24b341
NC
13122
13123
13124if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13125 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13127$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
13128 if test -x $with_build_time_tools/windmc; then
13129 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13130 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13132$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 13133 else
81ecdfbb
RW
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13135$as_echo "no" >&6; }
0c24b341
NC
13136 fi
13137 elif test $build != $host && test $have_gcc_for_target = yes; then
13138 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13139 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13140 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13141 fi
13142fi
13143if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13144 # Extract the first word of "windmc", so it can be a program name with args.
13145set dummy windmc; ac_word=$2
81ecdfbb
RW
13146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13147$as_echo_n "checking for $ac_word... " >&6; }
13148if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13149 $as_echo_n "(cached) " >&6
0c24b341
NC
13150else
13151 case $WINDMC_FOR_TARGET in
13152 [\\/]* | ?:[\\/]*)
13153 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13154 ;;
13155 *)
13156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13157for as_dir in $gcc_cv_tool_dirs
13158do
13159 IFS=$as_save_IFS
13160 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13161 for ac_exec_ext in '' $ac_executable_extensions; do
13162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13163 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13165 break 2
13166 fi
13167done
81ecdfbb
RW
13168 done
13169IFS=$as_save_IFS
0c24b341
NC
13170
13171 ;;
13172esac
13173fi
13174WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 13175if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13177$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13178else
81ecdfbb
RW
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13180$as_echo "no" >&6; }
0c24b341
NC
13181fi
13182
81ecdfbb 13183
0c24b341
NC
13184fi
13185if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13186
13187
13188if test -n "$WINDMC_FOR_TARGET"; then
13189 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13190elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13191 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13192fi
13193
13194if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13195 for ncn_progname in windmc; do
13196 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13197set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13199$as_echo_n "checking for $ac_word... " >&6; }
13200if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13201 $as_echo_n "(cached) " >&6
0c24b341
NC
13202else
13203 if test -n "$WINDMC_FOR_TARGET"; then
13204 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13205else
13206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13207for as_dir in $PATH
13208do
13209 IFS=$as_save_IFS
13210 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13211 for ac_exec_ext in '' $ac_executable_extensions; do
13212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13213 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13215 break 2
13216 fi
13217done
81ecdfbb
RW
13218 done
13219IFS=$as_save_IFS
0c24b341
NC
13220
13221fi
13222fi
13223WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13224if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13226$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13227else
81ecdfbb
RW
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13229$as_echo "no" >&6; }
0c24b341
NC
13230fi
13231
81ecdfbb 13232
0c24b341
NC
13233 done
13234fi
13235
13236if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13237 for ncn_progname in windmc; do
81ecdfbb
RW
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13239$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
13240 if test -x $with_build_time_tools/${ncn_progname}; then
13241 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13243$as_echo "yes" >&6; }
0c24b341
NC
13244 break
13245 else
81ecdfbb
RW
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13247$as_echo "no" >&6; }
0c24b341
NC
13248 fi
13249 done
13250fi
13251
13252if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13253 for ncn_progname in windmc; do
13254 if test -n "$ncn_target_tool_prefix"; then
13255 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13256set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13258$as_echo_n "checking for $ac_word... " >&6; }
13259if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13260 $as_echo_n "(cached) " >&6
0c24b341
NC
13261else
13262 if test -n "$WINDMC_FOR_TARGET"; then
13263 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13264else
13265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13266for as_dir in $PATH
13267do
13268 IFS=$as_save_IFS
13269 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13270 for ac_exec_ext in '' $ac_executable_extensions; do
13271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13272 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13274 break 2
13275 fi
13276done
81ecdfbb
RW
13277 done
13278IFS=$as_save_IFS
0c24b341
NC
13279
13280fi
13281fi
13282WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13283if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13285$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13286else
81ecdfbb
RW
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13288$as_echo "no" >&6; }
0c24b341
NC
13289fi
13290
81ecdfbb 13291
0c24b341
NC
13292 fi
13293 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13294 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13295set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13297$as_echo_n "checking for $ac_word... " >&6; }
13298if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13299 $as_echo_n "(cached) " >&6
0c24b341
NC
13300else
13301 if test -n "$WINDMC_FOR_TARGET"; then
13302 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13303else
13304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13305for as_dir in $PATH
13306do
13307 IFS=$as_save_IFS
13308 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13309 for ac_exec_ext in '' $ac_executable_extensions; do
13310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13311 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13313 break 2
13314 fi
13315done
81ecdfbb
RW
13316 done
13317IFS=$as_save_IFS
0c24b341
NC
13318
13319fi
13320fi
13321WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13322if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13324$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13325else
81ecdfbb
RW
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13327$as_echo "no" >&6; }
0c24b341
NC
13328fi
13329
81ecdfbb 13330
0c24b341
NC
13331 fi
13332 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13333 done
13334fi
13335
13336if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13337 set dummy windmc
13338 if test $build = $target ; then
13339 WINDMC_FOR_TARGET="$2"
13340 else
13341 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13342 fi
13343else
13344 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13345fi
13346
13347else
13348 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13349fi
13350
13351
be01d343
PB
13352RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13353
81ecdfbb
RW
13354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13355$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 13356if test "x${build}" != "x${host}" ; then
2429c060
PB
13357 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13358 # We already found the complete path
b8025f34 13359 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13361$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13362 else
13363 # Canadian cross, just use what we found
81ecdfbb
RW
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13365$as_echo "pre-installed" >&6; }
2429c060 13366 fi
be01d343
PB
13367else
13368 ok=yes
13369 case " ${configdirs} " in
13370 *" binutils "*) ;;
13371 *) ok=no ;;
13372 esac
c6b750e1 13373
be01d343
PB
13374 if test $ok = yes; then
13375 # An in-tree tool is available and we can use it
13376 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13378$as_echo "just compiled" >&6; }
2429c060
PB
13379 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13380 # We already found the complete path
b8025f34 13381 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13383$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13384 elif test "x$target" = "x$host"; then
13385 # We can use an host tool
13386 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13388$as_echo "host tool" >&6; }
be01d343
PB
13389 else
13390 # We need a cross tool
81ecdfbb
RW
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13392$as_echo "pre-installed" >&6; }
be01d343
PB
13393 fi
13394fi
4b900473 13395
81ecdfbb
RW
13396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13397$as_echo_n "checking where to find the target as... " >&6; }
be01d343 13398if test "x${build}" != "x${host}" ; then
2429c060
PB
13399 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13400 # We already found the complete path
b8025f34 13401 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13403$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13404 else
13405 # Canadian cross, just use what we found
81ecdfbb
RW
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13407$as_echo "pre-installed" >&6; }
2429c060 13408 fi
be01d343
PB
13409else
13410 ok=yes
13411 case " ${configdirs} " in
13412 *" gas "*) ;;
13413 *) ok=no ;;
13414 esac
c6b750e1 13415
be01d343
PB
13416 if test $ok = yes; then
13417 # An in-tree tool is available and we can use it
13418 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13420$as_echo "just compiled" >&6; }
2429c060
PB
13421 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13422 # We already found the complete path
b8025f34 13423 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13425$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13426 elif test "x$target" = "x$host"; then
13427 # We can use an host tool
13428 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13430$as_echo "host tool" >&6; }
be01d343
PB
13431 else
13432 # We need a cross tool
81ecdfbb
RW
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13434$as_echo "pre-installed" >&6; }
be01d343
PB
13435 fi
13436fi
4b900473 13437
81ecdfbb
RW
13438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13439$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 13440if test "x${build}" != "x${host}" ; then
2429c060
PB
13441 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13442 # We already found the complete path
b8025f34 13443 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13445$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13446 else
13447 # Canadian cross, just use what we found
81ecdfbb
RW
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13449$as_echo "pre-installed" >&6; }
2429c060 13450 fi
be01d343
PB
13451else
13452 ok=yes
13453 case " ${configdirs} " in
13454 *" gcc "*) ;;
13455 *) ok=no ;;
13456 esac
c6b750e1 13457
be01d343
PB
13458 if test $ok = yes; then
13459 # An in-tree tool is available and we can use it
13460 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13462$as_echo "just compiled" >&6; }
2429c060
PB
13463 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13464 # We already found the complete path
b8025f34 13465 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13467$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13468 elif test "x$target" = "x$host"; then
13469 # We can use an host tool
13470 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13472$as_echo "host tool" >&6; }
be01d343
PB
13473 else
13474 # We need a cross tool
81ecdfbb
RW
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13476$as_echo "pre-installed" >&6; }
be01d343
PB
13477 fi
13478fi
4b900473 13479
81ecdfbb
RW
13480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13481$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 13482if test "x${build}" != "x${host}" ; then
2429c060
PB
13483 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13484 # We already found the complete path
b8025f34 13485 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13487$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13488 else
13489 # Canadian cross, just use what we found
81ecdfbb
RW
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13491$as_echo "pre-installed" >&6; }
2429c060 13492 fi
be01d343
PB
13493else
13494 ok=yes
13495 case " ${configdirs} " in
13496 *" gcc "*) ;;
13497 *) ok=no ;;
13498 esac
13499 case ,${enable_languages}, in
13500 *,c++,*) ;;
13501 *) ok=no ;;
13502 esac
13503 if test $ok = yes; then
13504 # An in-tree tool is available and we can use it
87cda2cf 13505 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -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'
81ecdfbb
RW
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13507$as_echo "just compiled" >&6; }
2429c060
PB
13508 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13509 # We already found the complete path
b8025f34 13510 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13512$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13513 elif test "x$target" = "x$host"; then
13514 # We can use an host tool
13515 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13517$as_echo "host tool" >&6; }
be01d343
PB
13518 else
13519 # We need a cross tool
81ecdfbb
RW
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13521$as_echo "pre-installed" >&6; }
be01d343
PB
13522 fi
13523fi
4b900473 13524
81ecdfbb
RW
13525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13526$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 13527if test "x${build}" != "x${host}" ; then
2429c060
PB
13528 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13529 # We already found the complete path
b8025f34 13530 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13532$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13533 else
13534 # Canadian cross, just use what we found
81ecdfbb
RW
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13536$as_echo "pre-installed" >&6; }
2429c060 13537 fi
be01d343
PB
13538else
13539 ok=yes
13540 case " ${configdirs} " in
13541 *" gcc "*) ;;
13542 *) ok=no ;;
13543 esac
13544 case ,${enable_languages}, in
13545 *,c++,*) ;;
13546 *) ok=no ;;
13547 esac
13548 if test $ok = yes; then
13549 # An in-tree tool is available and we can use it
13550 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'
81ecdfbb
RW
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13552$as_echo "just compiled" >&6; }
2429c060
PB
13553 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13554 # We already found the complete path
b8025f34 13555 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13557$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13558 elif test "x$target" = "x$host"; then
13559 # We can use an host tool
13560 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13562$as_echo "host tool" >&6; }
be01d343
PB
13563 else
13564 # We need a cross tool
81ecdfbb
RW
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13566$as_echo "pre-installed" >&6; }
be01d343
PB
13567 fi
13568fi
4b900473 13569
81ecdfbb
RW
13570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13571$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 13572if test "x${build}" != "x${host}" ; then
2429c060
PB
13573 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13574 # We already found the complete path
b8025f34 13575 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13577$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13578 else
13579 # Canadian cross, just use what we found
81ecdfbb
RW
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13581$as_echo "pre-installed" >&6; }
2429c060 13582 fi
be01d343
PB
13583else
13584 ok=yes
13585 case " ${configdirs} " in
13586 *" binutils "*) ;;
13587 *) ok=no ;;
13588 esac
c6b750e1 13589
be01d343
PB
13590 if test $ok = yes; then
13591 # An in-tree tool is available and we can use it
13592 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13594$as_echo "just compiled" >&6; }
2429c060
PB
13595 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13596 # We already found the complete path
b8025f34 13597 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13599$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13600 elif test "x$target" = "x$host"; then
13601 # We can use an host tool
13602 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13604$as_echo "host tool" >&6; }
be01d343
PB
13605 else
13606 # We need a cross tool
81ecdfbb
RW
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13608$as_echo "pre-installed" >&6; }
be01d343
PB
13609 fi
13610fi
4b900473 13611
81ecdfbb
RW
13612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13613$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 13614if test "x${build}" != "x${host}" ; then
2429c060
PB
13615 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13616 # We already found the complete path
b8025f34 13617 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13619$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13620 else
13621 # Canadian cross, just use what we found
81ecdfbb
RW
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13623$as_echo "pre-installed" >&6; }
2429c060 13624 fi
be01d343
PB
13625else
13626 ok=yes
13627 case " ${configdirs} " in
13628 *" gcc "*) ;;
13629 *) ok=no ;;
13630 esac
c6b750e1 13631
be01d343
PB
13632 if test $ok = yes; then
13633 # An in-tree tool is available and we can use it
13634 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13636$as_echo "just compiled" >&6; }
2429c060
PB
13637 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13638 # We already found the complete path
b8025f34 13639 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13641$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13642 elif test "x$target" = "x$host"; then
13643 # We can use an host tool
13644 GCC_FOR_TARGET='$()'
81ecdfbb
RW
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13646$as_echo "host tool" >&6; }
be01d343
PB
13647 else
13648 # We need a cross tool
81ecdfbb
RW
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13650$as_echo "pre-installed" >&6; }
be01d343
PB
13651 fi
13652fi
4b900473 13653
81ecdfbb
RW
13654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13655$as_echo_n "checking where to find the target gcj... " >&6; }
be01d343 13656if test "x${build}" != "x${host}" ; then
2429c060
PB
13657 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13658 # We already found the complete path
b8025f34 13659 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13661$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13662 else
13663 # Canadian cross, just use what we found
81ecdfbb
RW
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13665$as_echo "pre-installed" >&6; }
2429c060 13666 fi
be01d343
PB
13667else
13668 ok=yes
13669 case " ${configdirs} " in
13670 *" gcc "*) ;;
13671 *) ok=no ;;
13672 esac
13673 case ,${enable_languages}, in
13674 *,java,*) ;;
13675 *) ok=no ;;
13676 esac
13677 if test $ok = yes; then
13678 # An in-tree tool is available and we can use it
13679 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13681$as_echo "just compiled" >&6; }
2429c060
PB
13682 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13683 # We already found the complete path
b8025f34 13684 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13686$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13687 elif test "x$target" = "x$host"; then
13688 # We can use an host tool
13689 GCJ_FOR_TARGET='$(GCJ)'
81ecdfbb
RW
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13691$as_echo "host tool" >&6; }
be01d343
PB
13692 else
13693 # We need a cross tool
81ecdfbb
RW
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13695$as_echo "pre-installed" >&6; }
be01d343
PB
13696 fi
13697fi
4b900473 13698
81ecdfbb
RW
13699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13700$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 13701if test "x${build}" != "x${host}" ; then
2429c060
PB
13702 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13703 # We already found the complete path
b8025f34 13704 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13706$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13707 else
13708 # Canadian cross, just use what we found
81ecdfbb
RW
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13710$as_echo "pre-installed" >&6; }
2429c060 13711 fi
be01d343
PB
13712else
13713 ok=yes
13714 case " ${configdirs} " in
13715 *" gcc "*) ;;
13716 *) ok=no ;;
13717 esac
13718 case ,${enable_languages}, in
13719 *,fortran,*) ;;
13720 *) ok=no ;;
13721 esac
13722 if test $ok = yes; then
13723 # An in-tree tool is available and we can use it
13724 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13726$as_echo "just compiled" >&6; }
2429c060
PB
13727 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13728 # We already found the complete path
b8025f34 13729 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13731$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13732 elif test "x$target" = "x$host"; then
13733 # We can use an host tool
13734 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13736$as_echo "host tool" >&6; }
be01d343
PB
13737 else
13738 # We need a cross tool
81ecdfbb
RW
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13740$as_echo "pre-installed" >&6; }
be01d343
PB
13741 fi
13742fi
4b900473 13743
e552509b
ILT
13744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13745$as_echo_n "checking where to find the target gccgo... " >&6; }
13746if test "x${build}" != "x${host}" ; then
13747 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13748 # We already found the complete path
13749 ac_dir=`dirname $GOC_FOR_TARGET`
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13751$as_echo "pre-installed in $ac_dir" >&6; }
13752 else
13753 # Canadian cross, just use what we found
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13755$as_echo "pre-installed" >&6; }
13756 fi
13757else
13758 ok=yes
13759 case " ${configdirs} " in
13760 *" gcc "*) ;;
13761 *) ok=no ;;
13762 esac
13763 case ,${enable_languages}, in
13764 *,go,*) ;;
13765 *) ok=no ;;
13766 esac
13767 if test $ok = yes; then
13768 # An in-tree tool is available and we can use it
13769 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13771$as_echo "just compiled" >&6; }
13772 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13773 # We already found the complete path
13774 ac_dir=`dirname $GOC_FOR_TARGET`
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13776$as_echo "pre-installed in $ac_dir" >&6; }
13777 elif test "x$target" = "x$host"; then
13778 # We can use an host tool
13779 GOC_FOR_TARGET='$(GOC)'
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13781$as_echo "host tool" >&6; }
13782 else
13783 # We need a cross tool
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13785$as_echo "pre-installed" >&6; }
13786 fi
13787fi
13788
81ecdfbb
RW
13789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13790$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 13791if test "x${build}" != "x${host}" ; then
2429c060
PB
13792 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13793 # We already found the complete path
b8025f34 13794 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13796$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13797 else
13798 # Canadian cross, just use what we found
81ecdfbb
RW
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13800$as_echo "pre-installed" >&6; }
2429c060 13801 fi
be01d343
PB
13802else
13803 ok=yes
13804 case " ${configdirs} " in
13805 *" ld "*) ;;
13806 *) ok=no ;;
13807 esac
c6b750e1 13808
be01d343
PB
13809 if test $ok = yes; then
13810 # An in-tree tool is available and we can use it
13811 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13813$as_echo "just compiled" >&6; }
2429c060
PB
13814 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13815 # We already found the complete path
b8025f34 13816 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13818$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13819 elif test "x$target" = "x$host"; then
13820 # We can use an host tool
13821 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13823$as_echo "host tool" >&6; }
be01d343
PB
13824 else
13825 # We need a cross tool
81ecdfbb
RW
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13827$as_echo "pre-installed" >&6; }
be01d343
PB
13828 fi
13829fi
4b900473 13830
81ecdfbb
RW
13831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13832$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 13833if test "x${build}" != "x${host}" ; then
2429c060
PB
13834 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13835 # We already found the complete path
b8025f34 13836 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13838$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13839 else
13840 # Canadian cross, just use what we found
81ecdfbb
RW
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13842$as_echo "pre-installed" >&6; }
2429c060 13843 fi
be01d343 13844else
2429c060
PB
13845 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13846 # We already found the complete path
b8025f34 13847 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13849$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 13850 elif test "x$target" = "x$host"; then
be01d343
PB
13851 # We can use an host tool
13852 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13854$as_echo "host tool" >&6; }
be01d343
PB
13855 else
13856 # We need a cross tool
81ecdfbb
RW
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13858$as_echo "pre-installed" >&6; }
be01d343
PB
13859 fi
13860fi
4b900473 13861
81ecdfbb
RW
13862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13863$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 13864if test "x${build}" != "x${host}" ; then
2429c060
PB
13865 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13866 # We already found the complete path
b8025f34 13867 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13869$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13870 else
13871 # Canadian cross, just use what we found
81ecdfbb
RW
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13873$as_echo "pre-installed" >&6; }
2429c060 13874 fi
be01d343
PB
13875else
13876 ok=yes
13877 case " ${configdirs} " in
13878 *" binutils "*) ;;
13879 *) ok=no ;;
13880 esac
c6b750e1 13881
be01d343
PB
13882 if test $ok = yes; then
13883 # An in-tree tool is available and we can use it
13884 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13886$as_echo "just compiled" >&6; }
2429c060
PB
13887 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13888 # We already found the complete path
b8025f34 13889 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13891$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13892 elif test "x$target" = "x$host"; then
13893 # We can use an host tool
13894 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13896$as_echo "host tool" >&6; }
be01d343
PB
13897 else
13898 # We need a cross tool
81ecdfbb
RW
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13900$as_echo "pre-installed" >&6; }
be01d343
PB
13901 fi
13902fi
4b900473 13903
81ecdfbb
RW
13904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13905$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 13906if test "x${build}" != "x${host}" ; then
2429c060
PB
13907 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13908 # We already found the complete path
b8025f34 13909 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13911$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13912 else
13913 # Canadian cross, just use what we found
81ecdfbb
RW
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13915$as_echo "pre-installed" >&6; }
2429c060 13916 fi
be01d343
PB
13917else
13918 ok=yes
13919 case " ${configdirs} " in
13920 *" binutils "*) ;;
13921 *) ok=no ;;
13922 esac
c6b750e1 13923
be01d343
PB
13924 if test $ok = yes; then
13925 # An in-tree tool is available and we can use it
13926 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13928$as_echo "just compiled" >&6; }
2429c060
PB
13929 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13930 # We already found the complete path
b8025f34 13931 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13933$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13934 elif test "x$target" = "x$host"; then
13935 # We can use an host tool
13936 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13938$as_echo "host tool" >&6; }
be01d343
PB
13939 else
13940 # We need a cross tool
81ecdfbb
RW
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13942$as_echo "pre-installed" >&6; }
be01d343
PB
13943 fi
13944fi
4b900473 13945
81ecdfbb
RW
13946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13947$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 13948if test "x${build}" != "x${host}" ; then
2429c060
PB
13949 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13950 # We already found the complete path
b8025f34 13951 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13953$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13954 else
13955 # Canadian cross, just use what we found
81ecdfbb
RW
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13957$as_echo "pre-installed" >&6; }
2429c060 13958 fi
be01d343
PB
13959else
13960 ok=yes
13961 case " ${configdirs} " in
13962 *" binutils "*) ;;
13963 *) ok=no ;;
13964 esac
c6b750e1 13965
be01d343
PB
13966 if test $ok = yes; then
13967 # An in-tree tool is available and we can use it
13968 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13970$as_echo "just compiled" >&6; }
2429c060
PB
13971 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13972 # We already found the complete path
b8025f34 13973 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13975$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13976 elif test "x$target" = "x$host"; then
13977 # We can use an host tool
13978 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13980$as_echo "host tool" >&6; }
be01d343
PB
13981 else
13982 # We need a cross tool
81ecdfbb
RW
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13984$as_echo "pre-installed" >&6; }
be01d343
PB
13985 fi
13986fi
4b900473 13987
b121d7d4
DD
13988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
13989$as_echo_n "checking where to find the target readelf... " >&6; }
13990if test "x${build}" != "x${host}" ; then
13991 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
13992 # We already found the complete path
13993 ac_dir=`dirname $READELF_FOR_TARGET`
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13995$as_echo "pre-installed in $ac_dir" >&6; }
13996 else
13997 # Canadian cross, just use what we found
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13999$as_echo "pre-installed" >&6; }
14000 fi
14001else
14002 ok=yes
14003 case " ${configdirs} " in
14004 *" binutils "*) ;;
14005 *) ok=no ;;
14006 esac
14007
14008 if test $ok = yes; then
14009 # An in-tree tool is available and we can use it
14010 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14012$as_echo "just compiled" >&6; }
14013 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14014 # We already found the complete path
14015 ac_dir=`dirname $READELF_FOR_TARGET`
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14017$as_echo "pre-installed in $ac_dir" >&6; }
14018 elif test "x$target" = "x$host"; then
14019 # We can use an host tool
14020 READELF_FOR_TARGET='$(READELF)'
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14022$as_echo "host tool" >&6; }
14023 else
14024 # We need a cross tool
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14026$as_echo "pre-installed" >&6; }
14027 fi
14028fi
14029
81ecdfbb
RW
14030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14031$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 14032if test "x${build}" != "x${host}" ; then
2429c060
PB
14033 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14034 # We already found the complete path
b8025f34 14035 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14037$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14038 else
14039 # Canadian cross, just use what we found
81ecdfbb
RW
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14041$as_echo "pre-installed" >&6; }
2429c060 14042 fi
be01d343
PB
14043else
14044 ok=yes
14045 case " ${configdirs} " in
14046 *" binutils "*) ;;
14047 *) ok=no ;;
14048 esac
c6b750e1 14049
be01d343
PB
14050 if test $ok = yes; then
14051 # An in-tree tool is available and we can use it
9b980aa1 14052 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14054$as_echo "just compiled" >&6; }
2429c060
PB
14055 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14056 # We already found the complete path
b8025f34 14057 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14059$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14060 elif test "x$target" = "x$host"; then
14061 # We can use an host tool
14062 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14064$as_echo "host tool" >&6; }
be01d343
PB
14065 else
14066 # We need a cross tool
81ecdfbb
RW
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14068$as_echo "pre-installed" >&6; }
be01d343
PB
14069 fi
14070fi
4b900473 14071
81ecdfbb
RW
14072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14073$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 14074if test "x${build}" != "x${host}" ; then
2429c060
PB
14075 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14076 # We already found the complete path
b8025f34 14077 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14079$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14080 else
14081 # Canadian cross, just use what we found
81ecdfbb
RW
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14083$as_echo "pre-installed" >&6; }
2429c060 14084 fi
be01d343
PB
14085else
14086 ok=yes
14087 case " ${configdirs} " in
14088 *" binutils "*) ;;
14089 *) ok=no ;;
14090 esac
c6b750e1 14091
be01d343
PB
14092 if test $ok = yes; then
14093 # An in-tree tool is available and we can use it
14094 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14096$as_echo "just compiled" >&6; }
2429c060
PB
14097 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14098 # We already found the complete path
b8025f34 14099 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14101$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14102 elif test "x$target" = "x$host"; then
14103 # We can use an host tool
14104 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14106$as_echo "host tool" >&6; }
be01d343
PB
14107 else
14108 # We need a cross tool
81ecdfbb
RW
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14110$as_echo "pre-installed" >&6; }
be01d343 14111 fi
a0da8069 14112fi
54752a6b 14113
81ecdfbb
RW
14114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14115$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
14116if test "x${build}" != "x${host}" ; then
14117 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14118 # We already found the complete path
14119 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14121$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14122 else
14123 # Canadian cross, just use what we found
81ecdfbb
RW
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14125$as_echo "pre-installed" >&6; }
0c24b341
NC
14126 fi
14127else
14128 ok=yes
14129 case " ${configdirs} " in
14130 *" binutils "*) ;;
14131 *) ok=no ;;
14132 esac
14133
14134 if test $ok = yes; then
14135 # An in-tree tool is available and we can use it
14136 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14138$as_echo "just compiled" >&6; }
0c24b341
NC
14139 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14140 # We already found the complete path
14141 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14143$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14144 elif test "x$target" = "x$host"; then
14145 # We can use an host tool
14146 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14148$as_echo "host tool" >&6; }
0c24b341
NC
14149 else
14150 # We need a cross tool
81ecdfbb
RW
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14152$as_echo "pre-installed" >&6; }
0c24b341
NC
14153 fi
14154fi
14155
54752a6b
NN
14156
14157
be01d343 14158
4b900473 14159
a0da8069
NN
14160# Certain tools may need extra flags.
14161AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14162RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14163NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14164
be01d343
PB
14165# When building target libraries, except in a Canadian cross, we use
14166# the same toolchain as the compiler we just built.
14167COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14168COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14169COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14170if test $host = $build; then
14171 case " $configdirs " in
14172 *" gcc "*)
14173 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14174 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14175 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14176 ;;
14177 esac
14178fi
14179
14180
14181
14182
14183
81ecdfbb
RW
14184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14185$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14186# Check whether --enable-maintainer-mode was given.
14187if test "${enable_maintainer_mode+set}" = set; then :
14188 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
14189else
14190 USE_MAINTAINER_MODE=no
81ecdfbb
RW
14191fi
14192
14193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14194$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
14195
14196
14197if test "$USE_MAINTAINER_MODE" = yes; then
14198 MAINTAINER_MODE_TRUE=
14199 MAINTAINER_MODE_FALSE='#'
14200else
14201 MAINTAINER_MODE_TRUE='#'
14202 MAINTAINER_MODE_FALSE=
c6b750e1 14203fi
3d5e36ae
AO
14204MAINT=$MAINTAINER_MODE_TRUE
14205
1d39f329
NN
14206# ---------------------
14207# GCC bootstrap support
14208# ---------------------
14209
14210# Stage specific cflags for build.
14211stage1_cflags="-g"
14212case $build in
14213 vax-*-*)
14214 case ${GCC} in
14215 yes) stage1_cflags="-g -Wa,-J" ;;
14216 *) stage1_cflags="-g -J" ;;
14217 esac ;;
1d39f329
NN
14218esac
14219
1d89b610 14220
1d39f329 14221
8a0d8a5c 14222# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
14223# Check whether --enable-stage1-checking was given.
14224if test "${enable_stage1_checking+set}" = set; then :
14225 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 14226else
5566c1fa 14227 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 14228 stage1_checking=--enable-checking=yes,types
8a0d8a5c 14229else
5566c1fa 14230 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 14231fi
81ecdfbb 14232fi
8a0d8a5c
PB
14233
14234
c6b750e1 14235
81ecdfbb
RW
14236# Enable -Werror in bootstrap stage2 and later.
14237# Check whether --enable-werror was given.
14238if test "${enable_werror+set}" = set; then :
14239 enableval=$enable_werror;
1d39f329 14240else
a0323144 14241 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 14242 enable_werror=yes
79fcd0ec
PB
14243else
14244 enable_werror=no
14245fi
81ecdfbb
RW
14246fi
14247
1a6f2dc7
NN
14248case ${enable_werror} in
14249 yes) stage2_werror_flag="--enable-werror-always" ;;
14250 *) stage2_werror_flag="" ;;
1d39f329
NN
14251esac
14252
14253
e8a5fa9c
RW
14254# Specify what files to not compare during bootstrap.
14255
14256compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14257case "$target" in
14258 hppa*64*-*-hpux*) ;;
14259 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
1488e230 14260 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
e8a5fa9c
RW
14261esac
14262
14263
81ecdfbb
RW
14264ac_config_files="$ac_config_files Makefile"
14265
c6b750e1 14266cat >confcache <<\_ACEOF
a0da8069
NN
14267# This file is a shell script that caches the results of configure
14268# tests run on this system so they can be shared between configure
c6b750e1
DJ
14269# scripts and configure runs, see configure's option --config-cache.
14270# It is not useful on other systems. If it contains results you don't
14271# want to keep, you may remove or edit it.
a0da8069 14272#
c6b750e1
DJ
14273# config.status only pays attention to the cache file if you give it
14274# the --recheck option to rerun configure.
a0da8069 14275#
c6b750e1
DJ
14276# `ac_cv_env_foo' variables (set or unset) will be overridden when
14277# loading this file, other *unset* `ac_cv_foo' will be assigned the
14278# following values.
14279
14280_ACEOF
14281
a0da8069
NN
14282# The following way of writing the cache mishandles newlines in values,
14283# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14284# So, we kill variables containing newlines.
a0da8069
NN
14285# Ultrix sh set writes to stderr and can't be redirected directly,
14286# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14287(
14288 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14289 eval ac_val=\$$ac_var
14290 case $ac_val in #(
14291 *${as_nl}*)
14292 case $ac_var in #(
14293 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14294$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14295 esac
14296 case $ac_var in #(
14297 _ | IFS | as_nl) ;; #(
14298 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14299 *) { eval $ac_var=; unset $ac_var;} ;;
14300 esac ;;
14301 esac
14302 done
14303
c6b750e1 14304 (set) 2>&1 |
81ecdfbb
RW
14305 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14306 *${as_nl}ac_space=\ *)
14307 # `set' does not quote correctly, so add quotes: double-quote
14308 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
14309 sed -n \
14310 "s/'/'\\\\''/g;
14311 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14312 ;; #(
c6b750e1
DJ
14313 *)
14314 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14315 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 14316 ;;
81ecdfbb
RW
14317 esac |
14318 sort
14319) |
c6b750e1 14320 sed '
81ecdfbb 14321 /^ac_cv_env_/b end
c6b750e1 14322 t clear
81ecdfbb 14323 :clear
c6b750e1
DJ
14324 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14325 t end
81ecdfbb
RW
14326 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14327 :end' >>confcache
14328if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14329 if test -w "$cache_file"; then
14330 test "x$cache_file" != "x/dev/null" &&
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14332$as_echo "$as_me: updating cache $cache_file" >&6;}
c6b750e1 14333 cat confcache >$cache_file
a0da8069 14334 else
81ecdfbb
RW
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14336$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 14337 fi
852e5f18 14338fi
a0da8069 14339rm -f confcache
852e5f18 14340
a0da8069
NN
14341test "x$prefix" = xNONE && prefix=$ac_default_prefix
14342# Let make expand exec_prefix.
14343test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 14344
a0da8069
NN
14345# Transform confdefs.h into DEFS.
14346# Protect against shell expansion while executing Makefile rules.
14347# Protect against Makefile macro expansion.
c6b750e1
DJ
14348#
14349# If the first sed substitution is executed (which looks for macros that
81ecdfbb 14350# take arguments), then branch to the quote section. Otherwise,
c6b750e1 14351# look for a macro that doesn't take arguments.
81ecdfbb
RW
14352ac_script='
14353:mline
14354/\\$/{
14355 N
14356 s,\\\n,,
14357 b mline
14358}
c6b750e1 14359t clear
81ecdfbb
RW
14360:clear
14361s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14362t quote
81ecdfbb 14363s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14364t quote
81ecdfbb
RW
14365b any
14366:quote
14367s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14368s/\[/\\&/g
14369s/\]/\\&/g
14370s/\$/$$/g
14371H
14372:any
14373${
14374 g
14375 s/^\n//
14376 s/\n/ /g
14377 p
14378}
14379'
14380DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
14381
14382
14383ac_libobjs=
14384ac_ltlibobjs=
14385for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14386 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14387 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14388 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14389 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14390 # will be set to the directory where LIBOBJS objects are built.
14391 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14392 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
14393done
14394LIBOBJS=$ac_libobjs
852e5f18 14395
c6b750e1 14396LTLIBOBJS=$ac_ltlibobjs
376a0e54 14397
cac3d6c4 14398
c6b750e1
DJ
14399
14400: ${CONFIG_STATUS=./config.status}
81ecdfbb 14401ac_write_fail=0
c6b750e1
DJ
14402ac_clean_files_save=$ac_clean_files
14403ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14404{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14405$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14406as_write_fail=0
14407cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
14408#! $SHELL
14409# Generated by $as_me.
a0da8069 14410# Run this file to recreate the current configuration.
a0da8069 14411# Compiler output produced by configure, useful for debugging
c6b750e1 14412# configure, is in config.log if it exists.
376a0e54 14413
c6b750e1
DJ
14414debug=false
14415ac_cs_recheck=false
14416ac_cs_silent=false
c6b750e1 14417
81ecdfbb
RW
14418SHELL=\${CONFIG_SHELL-$SHELL}
14419export SHELL
14420_ASEOF
14421cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14422## -------------------- ##
14423## M4sh Initialization. ##
14424## -------------------- ##
14425
14426# Be more Bourne compatible
14427DUALCASE=1; export DUALCASE # for MKS sh
14428if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
14429 emulate sh
14430 NULLCMD=:
81ecdfbb 14431 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
14432 # is contrary to our usage. Disable this feature.
14433 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14434 setopt NO_GLOB_SUBST
14435else
14436 case `(set -o) 2>/dev/null` in #(
14437 *posix*) :
14438 set -o posix ;; #(
14439 *) :
14440 ;;
14441esac
c6b750e1 14442fi
c6b750e1 14443
81ecdfbb
RW
14444
14445as_nl='
14446'
14447export as_nl
14448# Printing a long string crashes Solaris 7 /usr/bin/printf.
14449as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14450as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14451as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14452# Prefer a ksh shell builtin over an external printf program on Solaris,
14453# but without wasting forks for bash or zsh.
14454if test -z "$BASH_VERSION$ZSH_VERSION" \
14455 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14456 as_echo='print -r --'
14457 as_echo_n='print -rn --'
14458elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14459 as_echo='printf %s\n'
14460 as_echo_n='printf %s'
14461else
14462 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14463 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14464 as_echo_n='/usr/ucb/echo -n'
14465 else
14466 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14467 as_echo_n_body='eval
14468 arg=$1;
14469 case $arg in #(
14470 *"$as_nl"*)
14471 expr "X$arg" : "X\\(.*\\)$as_nl";
14472 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14473 esac;
14474 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14475 '
14476 export as_echo_n_body
14477 as_echo_n='sh -c $as_echo_n_body as_echo'
14478 fi
14479 export as_echo_body
14480 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
14481fi
14482
81ecdfbb
RW
14483# The user is always right.
14484if test "${PATH_SEPARATOR+set}" != set; then
14485 PATH_SEPARATOR=:
14486 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14487 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14488 PATH_SEPARATOR=';'
14489 }
14490fi
14491
14492
14493# IFS
14494# We need space, tab and new line, in precisely that order. Quoting is
14495# there to prevent editors from complaining about space-tab.
14496# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14497# splitting by setting IFS to empty value.)
14498IFS=" "" $as_nl"
14499
14500# Find who we are. Look in the path if we contain no directory separator.
14501case $0 in #((
14502 *[\\/]* ) as_myself=$0 ;;
14503 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14504for as_dir in $PATH
14505do
14506 IFS=$as_save_IFS
14507 test -z "$as_dir" && as_dir=.
14508 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14509 done
14510IFS=$as_save_IFS
14511
14512 ;;
14513esac
14514# We did not find ourselves, most probably we were run as `sh COMMAND'
14515# in which case we are not to be found in the path.
14516if test "x$as_myself" = x; then
14517 as_myself=$0
14518fi
14519if test ! -f "$as_myself"; then
14520 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14521 exit 1
14522fi
c6b750e1 14523
81ecdfbb
RW
14524# Unset variables that we do not need and which cause bugs (e.g. in
14525# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14526# suppresses any "Segmentation fault" message there. '((' could
14527# trigger a bug in pdksh 5.2.14.
14528for as_var in BASH_ENV ENV MAIL MAILPATH
14529do eval test x\${$as_var+set} = xset \
14530 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14531done
c6b750e1
DJ
14532PS1='$ '
14533PS2='> '
14534PS4='+ '
14535
14536# NLS nuisances.
81ecdfbb
RW
14537LC_ALL=C
14538export LC_ALL
14539LANGUAGE=C
14540export LANGUAGE
14541
14542# CDPATH.
14543(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14544
14545
14546# as_fn_error ERROR [LINENO LOG_FD]
14547# ---------------------------------
14548# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14549# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14550# script with status $?, using 1 if that was 0.
14551as_fn_error ()
14552{
14553 as_status=$?; test $as_status -eq 0 && as_status=1
14554 if test "$3"; then
14555 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14556 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
c6b750e1 14557 fi
81ecdfbb
RW
14558 $as_echo "$as_me: error: $1" >&2
14559 as_fn_exit $as_status
14560} # as_fn_error
14561
14562
14563# as_fn_set_status STATUS
14564# -----------------------
14565# Set $? to STATUS, without forking.
14566as_fn_set_status ()
14567{
14568 return $1
14569} # as_fn_set_status
14570
14571# as_fn_exit STATUS
14572# -----------------
14573# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14574as_fn_exit ()
14575{
14576 set +e
14577 as_fn_set_status $1
14578 exit $1
14579} # as_fn_exit
14580
14581# as_fn_unset VAR
14582# ---------------
14583# Portably unset VAR.
14584as_fn_unset ()
14585{
14586 { eval $1=; unset $1;}
14587}
14588as_unset=as_fn_unset
14589# as_fn_append VAR VALUE
14590# ----------------------
14591# Append the text in VALUE to the end of the definition contained in VAR. Take
14592# advantage of any shell optimizations that allow amortized linear growth over
14593# repeated appends, instead of the typical quadratic growth present in naive
14594# implementations.
14595if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14596 eval 'as_fn_append ()
14597 {
14598 eval $1+=\$2
14599 }'
14600else
14601 as_fn_append ()
14602 {
14603 eval $1=\$$1\$2
14604 }
14605fi # as_fn_append
14606
14607# as_fn_arith ARG...
14608# ------------------
14609# Perform arithmetic evaluation on the ARGs, and store the result in the
14610# global $as_val. Take advantage of shells that can avoid forks. The arguments
14611# must be portable across $(()) and expr.
14612if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14613 eval 'as_fn_arith ()
14614 {
14615 as_val=$(( $* ))
14616 }'
14617else
14618 as_fn_arith ()
14619 {
14620 as_val=`expr "$@" || test $? -eq 1`
14621 }
14622fi # as_fn_arith
14623
c6b750e1 14624
81ecdfbb
RW
14625if expr a : '\(a\)' >/dev/null 2>&1 &&
14626 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
14627 as_expr=expr
14628else
14629 as_expr=false
14630fi
14631
81ecdfbb 14632if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
14633 as_basename=basename
14634else
14635 as_basename=false
14636fi
14637
81ecdfbb
RW
14638if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14639 as_dirname=dirname
14640else
14641 as_dirname=false
14642fi
c6b750e1 14643
81ecdfbb 14644as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
14645$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14646 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
14647 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14648$as_echo X/"$0" |
14649 sed '/^.*\/\([^/][^/]*\)\/*$/{
14650 s//\1/
14651 q
14652 }
14653 /^X\/\(\/\/\)$/{
14654 s//\1/
14655 q
14656 }
14657 /^X\/\(\/\).*/{
14658 s//\1/
14659 q
14660 }
14661 s/.*/./; q'`
c6b750e1 14662
c6b750e1
DJ
14663# Avoid depending upon Character Ranges.
14664as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14665as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14666as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14667as_cr_digits='0123456789'
14668as_cr_alnum=$as_cr_Letters$as_cr_digits
14669
81ecdfbb
RW
14670ECHO_C= ECHO_N= ECHO_T=
14671case `echo -n x` in #(((((
14672-n*)
14673 case `echo 'xy\c'` in
14674 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14675 xy) ECHO_C='\c';;
14676 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14677 ECHO_T=' ';;
14678 esac;;
14679*)
14680 ECHO_N='-n';;
c6b750e1
DJ
14681esac
14682
81ecdfbb
RW
14683rm -f conf$$ conf$$.exe conf$$.file
14684if test -d conf$$.dir; then
14685 rm -f conf$$.dir/conf$$.file
c6b750e1 14686else
81ecdfbb
RW
14687 rm -f conf$$.dir
14688 mkdir conf$$.dir 2>/dev/null
c6b750e1 14689fi
81ecdfbb
RW
14690if (echo >conf$$.file) 2>/dev/null; then
14691 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 14692 as_ln_s='ln -s'
81ecdfbb
RW
14693 # ... but there are two gotchas:
14694 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14695 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14696 # In both cases, we have to default to `cp -p'.
14697 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14698 as_ln_s='cp -p'
14699 elif ln conf$$.file conf$$ 2>/dev/null; then
14700 as_ln_s=ln
14701 else
14702 as_ln_s='cp -p'
c6b750e1 14703 fi
c6b750e1
DJ
14704else
14705 as_ln_s='cp -p'
14706fi
81ecdfbb
RW
14707rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14708rmdir conf$$.dir 2>/dev/null
14709
14710
14711# as_fn_mkdir_p
14712# -------------
14713# Create "$as_dir" as a directory, including parents if necessary.
14714as_fn_mkdir_p ()
14715{
14716
14717 case $as_dir in #(
14718 -*) as_dir=./$as_dir;;
14719 esac
14720 test -d "$as_dir" || eval $as_mkdir_p || {
14721 as_dirs=
14722 while :; do
14723 case $as_dir in #(
14724 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14725 *) as_qdir=$as_dir;;
14726 esac
14727 as_dirs="'$as_qdir' $as_dirs"
14728 as_dir=`$as_dirname -- "$as_dir" ||
14729$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14730 X"$as_dir" : 'X\(//\)[^/]' \| \
14731 X"$as_dir" : 'X\(//\)$' \| \
14732 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14733$as_echo X"$as_dir" |
14734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14735 s//\1/
14736 q
14737 }
14738 /^X\(\/\/\)[^/].*/{
14739 s//\1/
14740 q
14741 }
14742 /^X\(\/\/\)$/{
14743 s//\1/
14744 q
14745 }
14746 /^X\(\/\).*/{
14747 s//\1/
14748 q
14749 }
14750 s/.*/./; q'`
14751 test -d "$as_dir" && break
14752 done
14753 test -z "$as_dirs" || eval "mkdir $as_dirs"
14754 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14755
c6b750e1 14756
81ecdfbb 14757} # as_fn_mkdir_p
c6b750e1 14758if mkdir -p . 2>/dev/null; then
81ecdfbb 14759 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
14760else
14761 test -d ./-p && rmdir ./-p
14762 as_mkdir_p=false
14763fi
14764
81ecdfbb
RW
14765if test -x / >/dev/null 2>&1; then
14766 as_test_x='test -x'
14767else
14768 if ls -dL / >/dev/null 2>&1; then
14769 as_ls_L_option=L
14770 else
14771 as_ls_L_option=
14772 fi
14773 as_test_x='
14774 eval sh -c '\''
14775 if test -d "$1"; then
14776 test -d "$1/.";
14777 else
14778 case $1 in #(
14779 -*)set "./$1";;
14780 esac;
14781 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14782 ???[sx]*):;;*)false;;esac;fi
14783 '\'' sh
14784 '
14785fi
14786as_executable_p=$as_test_x
c6b750e1
DJ
14787
14788# Sed expression to map a string onto a valid CPP name.
14789as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14790
14791# Sed expression to map a string onto a valid variable name.
14792as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14793
14794
c6b750e1 14795exec 6>&1
81ecdfbb
RW
14796## ----------------------------------- ##
14797## Main body of $CONFIG_STATUS script. ##
14798## ----------------------------------- ##
14799_ASEOF
14800test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14801
14802cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14803# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 14804# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
14805# values after options handling.
14806ac_log="
c6b750e1 14807This file was extended by $as_me, which was
81ecdfbb 14808generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
14809
14810 CONFIG_FILES = $CONFIG_FILES
14811 CONFIG_HEADERS = $CONFIG_HEADERS
14812 CONFIG_LINKS = $CONFIG_LINKS
14813 CONFIG_COMMANDS = $CONFIG_COMMANDS
14814 $ $0 $@
14815
81ecdfbb
RW
14816on `(hostname || uname -n) 2>/dev/null | sed 1q`
14817"
14818
c6b750e1
DJ
14819_ACEOF
14820
81ecdfbb
RW
14821case $ac_config_files in *"
14822"*) set x $ac_config_files; shift; ac_config_files=$*;;
14823esac
c6b750e1 14824
c6b750e1 14825
c6b750e1 14826
81ecdfbb
RW
14827cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14828# Files that config.status was made for.
14829config_files="$ac_config_files"
c6b750e1 14830
81ecdfbb 14831_ACEOF
c6b750e1 14832
81ecdfbb 14833cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14834ac_cs_usage="\
81ecdfbb
RW
14835\`$as_me' instantiates files and other configuration actions
14836from templates according to the current configuration. Unless the files
14837and actions are specified as TAGs, all are instantiated by default.
c6b750e1 14838
81ecdfbb 14839Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
14840
14841 -h, --help print this help, then exit
81ecdfbb
RW
14842 -V, --version print version number and configuration settings, then exit
14843 -q, --quiet, --silent
14844 do not print progress messages
c6b750e1
DJ
14845 -d, --debug don't remove temporary files
14846 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
14847 --file=FILE[:TEMPLATE]
14848 instantiate the configuration file FILE
c6b750e1
DJ
14849
14850Configuration files:
14851$config_files
14852
81ecdfbb 14853Report bugs to the package provider."
c6b750e1 14854
81ecdfbb
RW
14855_ACEOF
14856cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1
DJ
14857ac_cs_version="\\
14858config.status
81ecdfbb
RW
14859configured by $0, generated by GNU Autoconf 2.64,
14860 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
c6b750e1 14861
81ecdfbb 14862Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
14863This config.status script is free software; the Free Software Foundation
14864gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
14865
14866ac_pwd='$ac_pwd'
14867srcdir='$srcdir'
14868INSTALL='$INSTALL'
8e957354 14869AWK='$AWK'
81ecdfbb 14870test -n "\$AWK" || AWK=awk
c6b750e1
DJ
14871_ACEOF
14872
81ecdfbb
RW
14873cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14874# The default lists apply if the user does not specify any file.
c6b750e1
DJ
14875ac_need_defaults=:
14876while test $# != 0
a0da8069 14877do
c6b750e1
DJ
14878 case $1 in
14879 --*=*)
81ecdfbb
RW
14880 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14881 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
14882 ac_shift=:
14883 ;;
81ecdfbb 14884 *)
c6b750e1
DJ
14885 ac_option=$1
14886 ac_optarg=$2
14887 ac_shift=shift
14888 ;;
c6b750e1
DJ
14889 esac
14890
14891 case $ac_option in
14892 # Handling of the options.
a0da8069 14893 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 14894 ac_cs_recheck=: ;;
81ecdfbb
RW
14895 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14896 $as_echo "$ac_cs_version"; exit ;;
14897 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
14898 debug=: ;;
14899 --file | --fil | --fi | --f )
14900 $ac_shift
81ecdfbb
RW
14901 case $ac_optarg in
14902 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14903 esac
14904 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 14905 ac_need_defaults=false;;
81ecdfbb
RW
14906 --he | --h | --help | --hel | -h )
14907 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
14908 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14909 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14910 ac_cs_silent=: ;;
14911
14912 # This is an error.
81ecdfbb
RW
14913 -*) as_fn_error "unrecognized option: \`$1'
14914Try \`$0 --help' for more information." ;;
c6b750e1 14915
81ecdfbb
RW
14916 *) as_fn_append ac_config_targets " $1"
14917 ac_need_defaults=false ;;
c6b750e1 14918
376a0e54 14919 esac
c6b750e1 14920 shift
376a0e54
CM
14921done
14922
c6b750e1 14923ac_configure_extra_args=
376a0e54 14924
c6b750e1
DJ
14925if $ac_cs_silent; then
14926 exec 6>/dev/null
14927 ac_configure_extra_args="$ac_configure_extra_args --silent"
14928fi
376a0e54 14929
c6b750e1 14930_ACEOF
81ecdfbb 14931cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 14932if \$ac_cs_recheck; then
81ecdfbb
RW
14933 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14934 shift
14935 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14936 CONFIG_SHELL='$SHELL'
14937 export CONFIG_SHELL
14938 exec "\$@"
c6b750e1
DJ
14939fi
14940
14941_ACEOF
81ecdfbb
RW
14942cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14943exec 5>>config.log
14944{
14945 echo
14946 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14947## Running $as_me. ##
14948_ASBOX
14949 $as_echo "$ac_log"
14950} >&5
c6b750e1 14951
81ecdfbb
RW
14952_ACEOF
14953cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
14954#
14955# INIT-COMMANDS
14956#
14957extrasub_build="$extrasub_build"
14958 extrasub_host="$extrasub_host"
14959 extrasub_target="$extrasub_target"
14960
81ecdfbb 14961_ACEOF
c6b750e1 14962
81ecdfbb 14963cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14964
81ecdfbb 14965# Handling of arguments.
c6b750e1
DJ
14966for ac_config_target in $ac_config_targets
14967do
81ecdfbb
RW
14968 case $ac_config_target in
14969 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14970
14971 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
14972 esac
14973done
14974
81ecdfbb 14975
c6b750e1
DJ
14976# If the user did not use the arguments to specify the items to instantiate,
14977# then the envvar interface is used. Set only those that are not.
14978# We use the long form for the default assignment because of an extremely
14979# bizarre bug on SunOS 4.1.3.
14980if $ac_need_defaults; then
14981 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14982fi
14983
14984# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 14985# simply because there is no reason against having it here, and in addition,
c6b750e1 14986# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
14987# Hook for its removal unless debugging.
14988# Note that there is a small window in which the directory will not be cleaned:
14989# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
14990$debug ||
14991{
81ecdfbb
RW
14992 tmp=
14993 trap 'exit_status=$?
14994 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14995' 0
14996 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 14997}
c6b750e1
DJ
14998# Create a (secure) tmp directory for tmp files.
14999
15000{
81ecdfbb 15001 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
c6b750e1
DJ
15002 test -n "$tmp" && test -d "$tmp"
15003} ||
15004{
81ecdfbb
RW
15005 tmp=./conf$$-$RANDOM
15006 (umask 077 && mkdir "$tmp")
15007} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15008
15009# Set up the scripts for CONFIG_FILES section.
15010# No need to generate them if there are no CONFIG_FILES.
15011# This happens for instance with `./config.status config.h'.
15012if test -n "$CONFIG_FILES"; then
15013
15014if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15015 ac_cs_awk_getline=:
15016 ac_cs_awk_pipe_init=
15017 ac_cs_awk_read_file='
15018 while ((getline aline < (F[key])) > 0)
15019 print(aline)
15020 close(F[key])'
15021 ac_cs_awk_pipe_fini=
15022else
15023 ac_cs_awk_getline=false
15024 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15025 ac_cs_awk_read_file='
15026 print "|#_!!_#|"
15027 print "cat " F[key] " &&"
15028 '$ac_cs_awk_pipe_init
15029 # The final `:' finishes the AND list.
15030 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15031fi
15032ac_cr=`echo X | tr X '\015'`
15033# On cygwin, bash can eat \r inside `` if the user requested igncr.
15034# But we know of no other shell where ac_cr would be empty at this
15035# point, so we can use a bashism as a fallback.
15036if test "x$ac_cr" = x; then
15037 eval ac_cr=\$\'\\r\'
15038fi
15039ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15040if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15041 ac_cs_awk_cr='\r'
15042else
15043 ac_cs_awk_cr=$ac_cr
15044fi
15045
15046echo 'BEGIN {' >"$tmp/subs1.awk" &&
15047_ACEOF
15048
15049# Create commands to substitute file output variables.
c6b750e1 15050{
81ecdfbb
RW
15051 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15052 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15053 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15054 echo "_ACAWK" &&
15055 echo "_ACEOF"
15056} >conf$$files.sh &&
15057. ./conf$$files.sh ||
15058 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15059rm -f conf$$files.sh
c6b750e1 15060
81ecdfbb
RW
15061{
15062 echo "cat >conf$$subs.awk <<_ACEOF" &&
15063 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15064 echo "_ACEOF"
15065} >conf$$subs.sh ||
15066 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15067ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15068ac_delim='%!_!# '
15069for ac_last_try in false false false false false :; do
15070 . ./conf$$subs.sh ||
15071 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15072
15073 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15074 if test $ac_delim_n = $ac_delim_num; then
15075 break
15076 elif $ac_last_try; then
15077 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15078 else
15079 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15080 fi
15081done
15082rm -f conf$$subs.sh
15083
15084cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15085cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 15086_ACEOF
81ecdfbb
RW
15087sed -n '
15088h
15089s/^/S["/; s/!.*/"]=/
15090p
15091g
15092s/^[^!]*!//
15093:repl
15094t repl
15095s/'"$ac_delim"'$//
15096t delim
15097:nl
15098h
15099s/\(.\{148\}\).*/\1/
15100t more1
15101s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15102p
15103n
15104b repl
15105:more1
15106s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15107p
15108g
15109s/.\{148\}//
15110t nl
15111:delim
15112h
15113s/\(.\{148\}\).*/\1/
15114t more2
15115s/["\\]/\\&/g; s/^/"/; s/$/"/
15116p
15117b
15118:more2
15119s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15120p
15121g
15122s/.\{148\}//
15123t delim
15124' <conf$$subs.awk | sed '
15125/^[^""]/{
15126 N
15127 s/\n//
15128}
15129' >>$CONFIG_STATUS || ac_write_fail=1
15130rm -f conf$$subs.awk
15131cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15132_ACAWK
15133cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15134 for (key in S) S_is_set[key] = 1
15135 FS = "\a"
15136 \$ac_cs_awk_pipe_init
15137}
15138{
15139 line = $ 0
15140 nfields = split(line, field, "@")
15141 substed = 0
15142 len = length(field[1])
15143 for (i = 2; i < nfields; i++) {
15144 key = field[i]
15145 keylen = length(key)
15146 if (S_is_set[key]) {
15147 value = S[key]
15148 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15149 len += length(value) + length(field[++i])
15150 substed = 1
15151 } else
15152 len += 1 + keylen
15153 }
15154 if (nfields == 3 && !substed) {
15155 key = field[2]
15156 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15157 \$ac_cs_awk_read_file
15158 next
15159 }
15160 }
15161 print line
15162}
15163\$ac_cs_awk_pipe_fini
15164_ACAWK
15165_ACEOF
15166cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15167if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15168 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15169else
15170 cat
15171fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15172 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15173_ACEOF
15174
15175# VPATH may cause trouble with some makes, so we remove $(srcdir),
15176# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15177# trailing colons and then remove the whole line if VPATH becomes empty
15178# (actually we leave an empty line to preserve line numbers).
15179if test "x$srcdir" = x.; then
15180 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15181s/:*\$(srcdir):*/:/
15182s/:*\${srcdir}:*/:/
15183s/:*@srcdir@:*/:/
15184s/^\([^=]*=[ ]*\):*/\1/
15185s/:*$//
15186s/^[^=]*=[ ]*$//
15187}'
15188fi
c6b750e1 15189
81ecdfbb
RW
15190cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15191fi # test -n "$CONFIG_FILES"
c6b750e1 15192
c6b750e1 15193
81ecdfbb
RW
15194eval set X " :F $CONFIG_FILES "
15195shift
15196for ac_tag
15197do
15198 case $ac_tag in
15199 :[FHLC]) ac_mode=$ac_tag; continue;;
15200 esac
15201 case $ac_mode$ac_tag in
15202 :[FHL]*:*);;
15203 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15204 :[FH]-) ac_tag=-:-;;
15205 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15206 esac
15207 ac_save_IFS=$IFS
15208 IFS=:
15209 set x $ac_tag
15210 IFS=$ac_save_IFS
15211 shift
15212 ac_file=$1
15213 shift
252b5132 15214
81ecdfbb
RW
15215 case $ac_mode in
15216 :L) ac_source=$1;;
15217 :[FH])
15218 ac_file_inputs=
15219 for ac_f
15220 do
15221 case $ac_f in
15222 -) ac_f="$tmp/stdin";;
15223 *) # Look for the file first in the build tree, then in the source tree
15224 # (if the path is not absolute). The absolute path cannot be DOS-style,
15225 # because $ac_f cannot contain `:'.
15226 test -f "$ac_f" ||
15227 case $ac_f in
15228 [\\/$]*) false;;
15229 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15230 esac ||
15231 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15232 esac
15233 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15234 as_fn_append ac_file_inputs " '$ac_f'"
15235 done
c6b750e1 15236
81ecdfbb
RW
15237 # Let's still pretend it is `configure' which instantiates (i.e., don't
15238 # use $as_me), people would be surprised to read:
15239 # /* config.h. Generated by config.status. */
15240 configure_input='Generated from '`
15241 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15242 `' by configure.'
15243 if test x"$ac_file" != x-; then
15244 configure_input="$ac_file. $configure_input"
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15246$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 15247 fi
81ecdfbb
RW
15248 # Neutralize special characters interpreted by sed in replacement strings.
15249 case $configure_input in #(
15250 *\&* | *\|* | *\\* )
15251 ac_sed_conf_input=`$as_echo "$configure_input" |
15252 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15253 *) ac_sed_conf_input=$configure_input;;
15254 esac
cac3d6c4 15255
81ecdfbb
RW
15256 case $ac_tag in
15257 *:-:* | *:-) cat >"$tmp/stdin" \
15258 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15259 esac
15260 ;;
a0da8069 15261 esac
252b5132 15262
81ecdfbb 15263 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
15264$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15265 X"$ac_file" : 'X\(//\)[^/]' \| \
15266 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15267 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15268$as_echo X"$ac_file" |
15269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15270 s//\1/
15271 q
15272 }
15273 /^X\(\/\/\)[^/].*/{
15274 s//\1/
15275 q
15276 }
15277 /^X\(\/\/\)$/{
15278 s//\1/
15279 q
15280 }
15281 /^X\(\/\).*/{
15282 s//\1/
15283 q
15284 }
15285 s/.*/./; q'`
15286 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 15287 ac_builddir=.
252b5132 15288
81ecdfbb
RW
15289case "$ac_dir" in
15290.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15291*)
15292 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15293 # A ".." for each directory in $ac_dir_suffix.
15294 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15295 case $ac_top_builddir_sub in
15296 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15297 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15298 esac ;;
15299esac
15300ac_abs_top_builddir=$ac_pwd
15301ac_abs_builddir=$ac_pwd$ac_dir_suffix
15302# for backward compatibility:
15303ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
15304
15305case $srcdir in
81ecdfbb 15306 .) # We are building in place.
c6b750e1 15307 ac_srcdir=.
81ecdfbb
RW
15308 ac_top_srcdir=$ac_top_builddir_sub
15309 ac_abs_top_srcdir=$ac_pwd ;;
15310 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 15311 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15312 ac_top_srcdir=$srcdir
15313 ac_abs_top_srcdir=$srcdir ;;
15314 *) # Relative name.
15315 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15316 ac_top_srcdir=$ac_top_build_prefix$srcdir
15317 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 15318esac
81ecdfbb 15319ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 15320
252b5132 15321
81ecdfbb
RW
15322 case $ac_mode in
15323 :F)
15324 #
15325 # CONFIG_FILE
15326 #
c6b750e1
DJ
15327
15328 case $INSTALL in
15329 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 15330 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 15331 esac
81ecdfbb 15332_ACEOF
252b5132 15333
81ecdfbb
RW
15334cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15335# If the template does not know about datarootdir, expand it.
15336# FIXME: This hack should be removed a few years after 2.60.
15337ac_datarootdir_hack=; ac_datarootdir_seen=
15338ac_sed_dataroot='
15339/datarootdir/ {
15340 p
15341 q
15342}
15343/@datadir@/p
15344/@docdir@/p
15345/@infodir@/p
15346/@localedir@/p
15347/@mandir@/p'
15348case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15349*datarootdir*) ac_datarootdir_seen=yes;;
15350*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15352$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 15353_ACEOF
81ecdfbb
RW
15354cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15355 ac_datarootdir_hack='
15356 s&@datadir@&$datadir&g
15357 s&@docdir@&$docdir&g
15358 s&@infodir@&$infodir&g
15359 s&@localedir@&$localedir&g
15360 s&@mandir@&$mandir&g
15361 s&\\\${datarootdir}&$datarootdir&g' ;;
15362esac
15363_ACEOF
15364
15365# Neutralize VPATH when `$srcdir' = `.'.
15366# Shell code in configure.ac might set extrasub.
15367# FIXME: do we really want to maintain this feature?
15368cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15369ac_sed_extra="$ac_vpsub
c6b750e1
DJ
15370$extrasub
15371_ACEOF
81ecdfbb 15372cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
15373:t
15374/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15375s|@configure_input@|$ac_sed_conf_input|;t t
15376s&@top_builddir@&$ac_top_builddir_sub&;t t
15377s&@top_build_prefix@&$ac_top_build_prefix&;t t
15378s&@srcdir@&$ac_srcdir&;t t
15379s&@abs_srcdir@&$ac_abs_srcdir&;t t
15380s&@top_srcdir@&$ac_top_srcdir&;t t
15381s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15382s&@builddir@&$ac_builddir&;t t
15383s&@abs_builddir@&$ac_abs_builddir&;t t
15384s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15385s&@INSTALL@&$ac_INSTALL&;t t
15386$ac_datarootdir_hack
15387"
15388eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15389if $ac_cs_awk_getline; then
15390 $AWK -f "$tmp/subs.awk"
15391else
15392 $AWK -f "$tmp/subs.awk" | $SHELL
15393fi >$tmp/out \
15394 || as_fn_error "could not create $ac_file" "$LINENO" 5
15395
15396test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15397 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15398 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15400which seems to be undefined. Please make sure it is defined." >&5
15401$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15402which seems to be undefined. Please make sure it is defined." >&2;}
15403
15404 rm -f "$tmp/stdin"
15405 case $ac_file in
15406 -) cat "$tmp/out" && rm -f "$tmp/out";;
15407 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15408 esac \
15409 || as_fn_error "could not create $ac_file" "$LINENO" 5
15410 ;;
c148b4cb 15411
c148b4cb 15412
c148b4cb 15413
81ecdfbb
RW
15414 esac
15415
06a51eac
RW
15416
15417 case $ac_file$ac_mode in
15418 "Makefile":F) sed "$extrasub_build" Makefile |
15419 sed "$extrasub_host" |
15420 sed "$extrasub_target" > mf$$
15421 mv -f mf$$ Makefile ;;
15422
15423 esac
81ecdfbb
RW
15424done # for ac_tag
15425
15426
15427as_fn_exit 0
c6b750e1 15428_ACEOF
c6b750e1
DJ
15429ac_clean_files=$ac_clean_files_save
15430
81ecdfbb
RW
15431test $ac_write_fail = 0 ||
15432 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15433
c6b750e1
DJ
15434
15435# configure is writing to config.log, and then calls config.status.
15436# config.status does its own redirection, appending to config.log.
15437# Unfortunately, on DOS this fails, as config.log is still kept open
15438# by configure, so config.status won't be able to write to it; its
15439# output is simply discarded. So we exec the FD to /dev/null,
15440# effectively closing config.log, so it can be properly (re)opened and
15441# appended to by config.status. When coming back to configure, we
15442# need to make the FD available again.
15443if test "$no_create" != yes; then
15444 ac_cs_success=:
15445 ac_config_status_args=
15446 test "$silent" = yes &&
15447 ac_config_status_args="$ac_config_status_args --quiet"
15448 exec 5>/dev/null
15449 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15450 exec 5>>config.log
15451 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15452 # would make configure fail if this is the last instruction.
81ecdfbb
RW
15453 $ac_cs_success || as_fn_exit $?
15454fi
15455if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15457$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 15458fi
c148b4cb 15459
This page took 1.623473 seconds and 4 git commands to generate.